plotly.js
Version:
The open source JavaScript graphing library that also powers plotly.py and Plotly Dash
50 lines • 1.4 MB
JavaScript
/**
* plotly.js (geo - minified) v4.3.1
* 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 IY=Object.create;var Jv=Object.defineProperty,BY=Object.defineProperties,HY=Object.getOwnPropertyDescriptor,OY=Object.getOwnPropertyDescriptors,UY=Object.getOwnPropertyNames,Ap=Object.getOwnPropertySymbols,GY=Object.getPrototypeOf,Sy=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable;var z_=(e,r,t)=>r in e?Jv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,pa=(e,r)=>{for(var t in r||(r={}))Sy.call(r,t)&&z_(e,t,r[t]);if(Ap)for(var t of Ap(r))N_.call(r,t)&&z_(e,t,r[t]);return e},Ha=(e,r)=>BY(e,OY(r));var I_=(e,r)=>{var t={};for(var a in e)Sy.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Ap)for(var a of Ap(e))r.indexOf(a)<0&&N_.call(e,a)&&(t[a]=e[a]);return t};var Oa=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var oe=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ua=(e,r)=>{for(var t in r)Jv(e,t,{get:r[t],enumerable:!0})},B_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of UY(r))!Sy.call(e,n)&&n!==t&&Jv(e,n,{get:()=>r[n],enumerable:!(a=HY(r,n))||a.enumerable});return e};var H_=(e,r,t)=>(t=e!=null?IY(GY(e)):{},B_(r||!e||!e.__esModule?Jv(t,"default",{value:e,enumerable:!0}):t,e)),_r=e=>B_(Jv({},"__esModule",{value:!0}),e);var O_=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Kv=oe(U_=>{"use strict";U_.version="4.3.1"});var Y_=oe((G_,Tp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Tp!="undefined"&&Tp.exports&&(Tp.exports=t[r])})("Promise",typeof window!="undefined"?window:G_,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(A,k){this.fn=A,this.self=k,this.next=void 0}return{add:function(k,D){_=new M(k,D),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var k=C;for(C=x=t=void 0;k;)k.fn.call(k.self),k=k.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 s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(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(A){x.reject(A)}}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 h(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(s,x))}catch(_){c.call(new h(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(s,C))}function d(b,C,x,_){for(var M=0;M<C.length;M++)(function(k){b.resolve(C[k]).then(function(P){x(k,P)},_)})(M)}function h(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(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 p(this);this.then=function(_,M){var A={success:typeof _=="function"?_:!0,failure:typeof M=="function"?M:!1};return A.promise=new this.constructor(function(D,P){if(typeof D!="function"||typeof P!="function")throw TypeError("Not a function");A.resolve=D,A.reject=P}),C.chain.push(A),C.state!==0&&o(s,C),A.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",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(C){var x=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new x(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");M(C)})}),r(m,"reject",function(C){return new this(function(_,M){if(typeof _!="function"||typeof M!="function")throw TypeError("Not a function");M(C)})}),r(m,"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,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");var k=C.length,D=Array(k),P=0;d(x,C,function(B,Y){D[B]=Y,++P===k&&M(D)},A)})}),r(m,"race",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");d(x,C,function(D,P){M(P)},A)})}),m})});var qt=oe((v4e,kp)=>{(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,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.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,V;if(arguments.length===1){for(;++w<S;)if((F=v[w])!=null&&F>=F){L=V=F;break}for(;++w<S;)(F=v[w])!=null&&(L>F&&(L=F),V<F&&(V=F))}else{for(;++w<S;)if((F=g.call(v,v[w],w))!=null&&F>=F){L=V=F;break}for(;++w<S;)(F=g.call(v,v[w],w))!=null&&(L>F&&(L=F),V<F&&(V=F))}return[L,V]};function d(v){return v===null?NaN:+v}function h(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;)h(L=+v[F])&&(w+=L);else for(;++F<S;)h(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,V=S;if(arguments.length===1)for(;++F<S;)h(L=d(v[F]))?w+=L:--V;else for(;++F<S;)h(L=d(g.call(v,v[F],F)))?w+=L:--V;if(V)return w/V},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;)h(L=d(v[F]))&&w.push(L);else for(;++F<S;)h(L=d(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,V=0,I=-1,Z=0;if(arguments.length===1)for(;++I<w;)h(L=d(v[I]))&&(F=L-S,S+=F/++Z,V+=F*(L-S));else for(;++I<w;)h(L=d(g.call(v,v[I],I)))&&(F=L-S,S+=F/++Z,V+=F*(L-S));if(Z>1)return V/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(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 m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(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,V=S[g]=new Array(F);++L<F;)V[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,V;++S<g;)L+=v[S].length;for(F=new Array(L);--g>=0;)for(V=v[g],w=V.length;--w>=0;)F[--L]=V[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,V;if(v*=L,g*=L,w*=L,w<0)for(;(V=v+w*++F)>g;)S.push(V/L);else for(;(V=v+w*++F)<g;)S.push(V/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(I,Z){w.set(I,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 V in v)w.set(V,v[V]);return w};function _(){this._=Object.create(null)}var M="__proto__",A="\0";x(_,{has:P,get:function(v){return this._[k(v)]},set:function(v,g){return this._[k(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:Y,empty:H,forEach:function(v){for(var g in this._)v.call(this,D(g),this._[g])}});function k(v){return(v+="")===M||v[0]===A?A+v:v}function D(v){return(v+="")[0]===A?v.slice(1):v}function P(v){return k(v)in this._}function z(v){return(v=k(v))in this._&&delete this._[v]}function B(){var v=[];for(var g in this._)v.push(D(g));return v}function Y(){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(I,Z,te){if(te>=g.length)return L?L.call(v,Z):S?Z.sort(S):Z;for(var ne=-1,ge=Z.length,ye=g[te++],ze,Ve,_e,Se=new _,Fe;++ne<ge;)(Fe=Se.get(ze=ye(Ve=Z[ne])))?Fe.push(Ve):Se.set(ze,[Ve]);return I?(Ve=I(),_e=function(Ye,Xe){Ve.set(Ye,F(I,Xe,te))}):(Ve={},_e=function(Ye,Xe){Ve[Ye]=F(I,Xe,te)}),Se.forEach(_e),Ve}function V(I,Z){if(Z>=g.length)return I;var te=[],ne=w[Z++];return I.forEach(function(ge,ye){te.push({key:ge,values:V(ye,Z)})}),ne?te.sort(function(ge,ye){return ne(ge.key,ye.key)}):te}return v.map=function(I,Z){return F(Z,I,0)},v.entries=function(I){return V(F(e.map,I,0),0)},v.key=function(I){return g.push(I),v},v.sortKeys=function(I){return w[g.length-1]=I,v},v.sortValues=function(I){return S=I,v},v.rollup=function(I){return L=I,v},v},e.set=function(v){var g=new X;if(v)for(var w=0,S=v.length;w<S;++w)g.add(v[w]);return g};function X(){this._=Object.create(null)}x(X,{has:P,add:function(v){return this._[k(v+="")]=!0,v},remove:z,values:B,size:Y,empty:H,forEach:function(v){for(var g in this._)v.call(this,D(g))}}),e.behavior={};function N(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 ee(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,S=ae.length;w<S;++w){var L=ae[w]+g;if(L in v)return L}}var ae=["webkit","ms","moz","Moz","o","O"];function re(){}e.dispatch=function(){for(var v=new ie,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=ue(v);return v};function ie(){}ie.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 ue(v){var g=[],w=new _;function S(){for(var L=g,F=-1,V=L.length,I;++F<V;)(I=L[F].on)&&I.apply(this,arguments);return v}return S.on=function(L,F){var V=w.get(L),I;return arguments.length<2?V&&V.on:(V&&(V.on=null,g=g.slice(0,I=g.indexOf(V)).concat(g.slice(I+1)),w.remove(L)),F&&g.push(w.set(L,{on:F})),v)},S}e.event=null;function xe(){e.event.preventDefault()}function Ee(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function Re(v){for(var g=new ie,w=0,S=arguments.length;++w<S;)g[arguments[w]]=ue(g);return g.of=function(L,F){return function(V){try{var I=V.sourceEvent=e.event;V.target=v,e.event=V,g[V.type].apply(L,F)}finally{e.event=I}}},g}e.requote=function(v){return v.replace(Ne,"\\$&")};var Ne=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/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 W=function(v,g){return g.querySelector(v)},se=function(v,g){return g.querySelectorAll(v)},de=function(v,g){var w=v.matches||v[ee(v,"matchesSelector")];return de=function(S,L){return w.call(S,L)},de(v,g)};typeof Sizzle=="function"&&(W=function(v,g){return Sizzle(v,g)[0]||null},se=Sizzle,de=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=J(v);for(var V=-1,I=this.length;++V<I;){g.push(w=[]),w.parentNode=(L=this[V]).parentNode;for(var Z=-1,te=L.length;++Z<te;)(F=L[Z])?(w.push(S=v.call(F,F.__data__,Z,V)),S&&"__data__"in F&&(S.__data__=F.__data__)):w.push(null)}return We(g)};function J(v){return typeof v=="function"?v:function(){return W(v,this)}}K.selectAll=function(v){var g=[],w,S;v=ce(v);for(var L=-1,F=this.length;++L<F;)for(var V=this[L],I=-1,Z=V.length;++I<Z;)(S=V[I])&&(g.push(w=t(v.call(S,S.__data__,I,L))),w.parentNode=S);return We(g)};function ce(v){return typeof v=="function"?v:function(){return se(v,this)}}var be="http://www.w3.org/1999/xhtml",Le={svg:"http://www.w3.org/2000/svg",xhtml:be,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:Le,qualify:function(v){var g=v.indexOf(":"),w=v;return g>=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),Le.hasOwnProperty(w)?{space:Le[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(je(g,v[g]));return this}return this.each(je(v,g))};function je(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 V(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(v):this.setAttribute(v,Z)}function I(){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?I:V: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=ar(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(!$e(v[L]).test(g))return!1;return!0}for(g in v)this.each(Ie(g,v[g]));return this}return this.each(Ie(v,g))};function $e(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function ar(v){return(v+"").trim().split(/^|\s+/)}function Ie(v,g){v=ar(v).map(ir);var w=v.length;function S(){for(var F=-1;++F<w;)v[F](this,g)}function L(){for(var F=-1,V=g.apply(this,arguments);++F<w;)v[F](this,V)}return typeof g=="function"?L:S}function ir(v){var g=$e(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(dr(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(dr(v,g,w))};function dr(v,g,w){function S(){this.style.removeProperty(v)}function L(){this.style.setProperty(v,g,w)}function F(){var V=g.apply(this,arguments);V==null?this.style.removeProperty(v):this.style.setProperty(v,V,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(Ar(g,v[g]));return this}return this.each(Ar(v,g))};function Ar(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=Qe(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Qe(v){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===be&&S.documentElement.namespaceURI===be?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=Qe(v),g=J(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},K.remove=function(){return this.each(mr)};function mr(){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 V(ne,ge){var ye,ze=ne.length,Ve=ge.length,_e=Math.min(ze,Ve),Se=new Array(Ve),Fe=new Array(Ve),Ye=new Array(ze),Xe,Pe;if(g){var br=new _,Vr=new Array(ze),$r;for(ye=-1;++ye<ze;)(Xe=ne[ye])&&(br.has($r=g.call(Xe,Xe.__data__,ye))?Ye[ye]=Xe:br.set($r,Xe),Vr[ye]=$r);for(ye=-1;++ye<Ve;)(Xe=br.get($r=g.call(ge,Pe=ge[ye],ye)))?Xe!==!0&&(Se[ye]=Xe,Xe.__data__=Pe):Fe[ye]=Pr(Pe),br.set($r,!0);for(ye=-1;++ye<ze;)ye in Vr&&br.get(Vr[ye])!==!0&&(Ye[ye]=ne[ye])}else{for(ye=-1;++ye<_e;)Xe=ne[ye],Pe=ge[ye],Xe?(Xe.__data__=Pe,Se[ye]=Xe):Fe[ye]=Pr(Pe);for(;ye<Ve;++ye)Fe[ye]=Pr(ge[ye]);for(;ye<ze;++ye)Ye[ye]=ne[ye]}Fe.update=Se,Fe.parentNode=Se.parentNode=Ye.parentNode=ne.parentNode,I.push(Fe),Z.push(Se),te.push(Ye)}var I=Rr([]),Z=We([]),te=We([]);if(typeof v=="function")for(;++w<S;)V(L=this[w],v.call(L,L.parentNode.__data__,w));else for(;++w<S;)V(L=this[w],v);return Z.enter=function(){return I},Z.exit=function(){return te},Z};function Pr(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,V=this.length;F<V;F++){g.push(w=[]),w.parentNode=(S=this[F]).parentNode;for(var I=0,Z=S.length;I<Z;I++)(L=S[I])&&v.call(L,L.__data__,I,F)&&w.push(L)}return We(g)};function Te(v){return function(){return de(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 xr(this,function(g,w,S){v.call(g,g.__data__,w,S)})};function xr(v,g){for(var w=0,S=v.length;w<S;w++)for(var L=v[w],F=0,V=L.length,I;F<V;F++)(I=L[F])&&g(I,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 xr(this,function(){++v}),v};function Rr(v){return ke(v,zr),v}var zr=[];e.selection.enter=Rr,e.selection.enter.prototype=zr,zr.append=K.append,zr.empty=K.empty,zr.node=K.node,zr.call=K.call,zr.size=K.size,zr.select=function(v){for(var g=[],w,S,L,F,V,I=-1,Z=this.length;++I<Z;){L=(F=this[I]).update,g.push(w=[]),w.parentNode=F.parentNode;for(var te=-1,ne=F.length;++te<ne;)(V=F[te])?(w.push(L[te]=S=v.call(F.parentNode,V.__data__,te,I)),S.__data__=V.__data__):w.push(null)}return We(g)},zr.insert=function(v,g){return arguments.length<2&&(g=Ce(this)),K.insert.call(this,v,g)};function Ce(v){var g,w;return function(S,L,F){var V=v[F].update,I=V.length,Z;for(F!=w&&(w=F,g=0),L>=g&&(g=L+1);!(Z=V[g])&&++g<I;);return Z}}e.select=function(v){var g;return typeof v=="string"?(g=[W(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(se(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(Ue(w,v[w],g));return this}if(S<2)return(S=this.node()["__on"+v])&&S._;w=!1}return this.each(Ue(v,g,w))};function Ue(v,g,w){var S="__on"+v,L=v.indexOf("."),F=Mr;L>0&&(v=v.slice(0,L));var V=cr.get(v);V&&(v=V,F=hr);function I(){var ne=this[S];ne&&(this.removeEventListener(v,ne,ne.$),delete this[S])}function Z(){var ne=F(g,t(arguments));I.call(this),this.addEventListener(v,this[S]=ne,ne.$=w),ne._=g}function te(){var ne=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(ne)){var ze=this[ye];this.removeEventListener(ge[1],ze,ze.$),delete this[ye]}}return L?g?Z:I:g?re:te}var cr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&cr.forEach(function(v){"on"+v in a&&cr.remove(v)});function Mr(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 hr(v,g){var w=Mr(v,g);return function(S){var L=this,F=S.relatedTarget;(!F||F!==L&&!(F.compareDocumentPosition(L)&8))&&w.call(L,S)}}var kr,Lr=0;function Br(v){var g=".dragsuppress-"+ ++Lr,w="click"+g,S=e.select(i(v)).on("touchmove"+g,xe).on("dragstart"+g,xe).on("selectstart"+g,xe);if(kr==null&&(kr="onselectstart"in v?!1:ee(v.style,"userSelect")),kr){var L=n(v).style,F=L[kr];L[kr]="none"}return function(V){if(S.on(g,null),kr&&(L[kr]=F),V){var I=function(){S.on(w,null)};S.on(w,function(){xe(),I()},!0),setTimeout(I,0)}}}e.mouse=function(v){return lr(v,Ee())};var et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function lr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var S=w.createSVGPoint();if(et<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();et=!(F.f||F.e),w.remove()}}return et?(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 V=v.getBoundingClientRect();return[g.clientX-V.left-v.clientLeft,g.clientY-V.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 lr(v,F)}},e.behavior.drag=function(){var v=Re(L,"drag","dragstart","dragend"),g=null,w=F(re,e.mouse,i,"mousemove","mouseup"),S=F(Cr,e.touch,N,"touchmove","touchend");function L(){this.on("mousedown.drag",w).on("touchstart.drag",S)}function F(V,I,Z,te,ne){return function(){var ge=this,ye=e.event.target.correspondingElement||e.event.target,ze=ge.parentNode,Ve=v.of(ge,arguments),_e=0,Se=V(),Fe=".drag"+(Se==null?"":"-"+Se),Ye,Xe=e.select(Z(ye)).on(te+Fe,Vr).on(ne+Fe,$r),Pe=Br(ye),br=I(ze,Se);g?(Ye=g.apply(ge,arguments),Ye=[Ye.x-br[0],Ye.y-br[1]]):Ye=[0,0],Ve({type:"dragstart"});function Vr(){var Wr=I(ze,Se),tt,at;Wr&&(tt=Wr[0]-br[0],at=Wr[1]-br[1],_e|=tt|at,br=Wr,Ve({type:"drag",x:Wr[0]+Ye[0],y:Wr[1]+Ye[1],dx:tt,dy:at}))}function $r(){I(ze,Se)&&(Xe.on(te+Fe,null).on(ne+Fe,null),Pe(_e),Ve({type:"dragend"}))}}}return L.origin=function(V){return arguments.length?(g=V,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=lr(v,w);return S.identifier=w.identifier,S}):[]};var tr=1e-6,qr=tr*tr,Zr=Math.PI,Or=2*Zr,Xr=Or-tr,Me=Zr/2,Be=Zr/180,or=180/Zr;function vr(v){return v>0?1:v<0?-1:0}function Ft(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Kt(v){return v>1?0:v<-1?Zr:Math.acos(v)}function ua(v){return v>1?Me:v<-1?-Me:Math.asin(v)}function ga(v){return((v=Math.exp(v))-1/v)/2}function Ut(v){return((v=Math.exp(v))+1/v)/2}function Rt(v){return((v=Math.exp(2*v))-1)/(v+1)}function na(v){return(v=Math.sin(v/2))*v}var Gt=Math.SQRT2,Ma=2,Ca=4;e.interpolateZoom=function(v,g){var w=v[0],S=v[1],L=v[2],F=g[0],V=g[1],I=g[2],Z=F-w,te=V-S,ne=Z*Z+te*te,ge,ye;if(ne<qr)ye=Math.log(I/L)/Gt,ge=function(Ye){return[w+Ye*Z,S+Ye*te,L*Math.exp(Gt*Ye*ye)]};else{var ze=Math.sqrt(ne),Ve=(I*I-L*L+Ca*ne)/(2*L*Ma*ze),_e=(I*I-L*L-Ca*ne)/(2*I*Ma*ze),Se=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Fe=Math.log(Math.sqrt(_e*_e+1)-_e);ye=(Fe-Se)/Gt,ge=function(Ye){var Xe=Ye*ye,Pe=Ut(Se),br=L/(Ma*ze)*(Pe*Rt(Gt*Xe+Se)-ga(Se));return[w+br*Z,S+br*te,L*Pe/Ut(Gt*Xe+Se)]}}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=An,V=250,I=0,Z="mousedown.zoom",te="mousemove.zoom",ne="mouseup.zoom",ge,ye="touchstart.zoom",ze,Ve=Re(Xe,"zoomstart","zoom","zoomend"),_e,Se,Fe,Ye;Sa||(Sa="onwheel"in a?(cn=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(cn=function(){return e.event.wheelDelta},"mousewheel"):(cn=function(){return-e.event.detail},"MozMousePixelScroll"));function Xe(Hr){Hr.on(Z,_t).on(Sa+".zoom",pn).on("dblclick.zoom",ca).on(ye,ia)}Xe.event=function(Hr){Hr.each(function(){var St=Ve.of(this,arguments),Et=v;In?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},at(St)}).tween("zoom:zoom",function(){var oa=L[0],rn=L[1],Ln=w?w[0]:oa/2,ri=w?w[1]:rn/2,wi=e.interpolateZoom([(Ln-v.x)/v.k,(ri-v.y)/v.k,oa/v.k],[(Ln-Et.x)/Et.k,(ri-Et.y)/Et.k,oa/Et.k]);return function(Yi){var Mi=wi(Yi),ro=oa/Mi[2];this.__chart__=v={x:Ln-Mi[0]*ro,y:ri-Mi[1]*ro,k:ro},Ct(St)}}).each("interrupt.zoom",function(){it(St)}).each("end.zoom",function(){it(St)}):(this.__chart__=v,at(St),Ct(St),it(St))})},Xe.translate=function(Hr){return arguments.length?(v={x:+Hr[0],y:+Hr[1],k:v.k},tt(),Xe):[v.x,v.y]},Xe.scale=function(Hr){return arguments.length?(v={x:v.x,y:v.y,k:null},Vr(+Hr),tt(),Xe):v.k},Xe.scaleExtent=function(Hr){return arguments.length?(F=Hr==null?An:[+Hr[0],+Hr[1]],Xe):F},Xe.center=function(Hr){return arguments.length?(S=Hr&&[+Hr[0],+Hr[1]],Xe):S},Xe.size=function(Hr){return arguments.length?(L=Hr&&[+Hr[0],+Hr[1]],Xe):L},Xe.duration=function(Hr){return arguments.length?(V=+Hr,Xe):V},Xe.x=function(Hr){return arguments.length?(Se=Hr,_e=Hr.copy(),v={x:0,y:0,k:1},Xe):Se},Xe.y=function(Hr){return arguments.length?(Ye=Hr,Fe=Hr.copy(),v={x:0,y:0,k:1},Xe):Ye};function Pe(Hr){return[(Hr[0]-v.x)/v.k,(Hr[1]-v.y)/v.k]}function br(Hr){return[Hr[0]*v.k+v.x,Hr[1]*v.k+v.y]}function Vr(Hr){v.k=Math.max(F[0],Math.min(F[1],Hr))}function $r(Hr,St){St=br(St),v.x+=Hr[0]-St[0],v.y+=Hr[1]-St[1]}function Wr(Hr,St,Et,oa){Hr.__chart__={x:v.x,y:v.y,k:v.k},Vr(Math.pow(2,oa)),$r(w=St,Et),Hr=e.select(Hr),V>0&&(Hr=Hr.transition().duration(V)),Hr.call(Xe.event)}function tt(){Se&&Se.domain(_e.range().map(function(Hr){return(Hr-v.x)/v.k}).map(_e.invert)),Ye&&Ye.domain(Fe.range().map(function(Hr){return(Hr-v.y)/v.k}).map(Fe.invert))}function at(Hr){I++||Hr({type:"zoomstart"})}function Ct(Hr){tt(),Hr({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function it(Hr){--I||(Hr({type:"zoomend"}),w=null)}function _t(){var Hr=this,St=Ve.of(Hr,arguments),Et=0,oa=e.select(i(Hr)).on(te,ri).on(ne,wi),rn=Pe(e.mouse(Hr)),Ln=Br(Hr);bt.call(Hr),at(St);function ri(){Et=1,$r(e.mouse(Hr),rn),Ct(St)}function wi(){oa.on(te,null).on(ne,null),Ln(Et),it(St)}}function ia(){var Hr=this,St=Ve.of(Hr,arguments),Et={},oa=0,rn,Ln=".zoom-"+e.event.changedTouches[0].identifier,ri="touchmove"+Ln,wi="touchend"+Ln,Yi=[],Mi=e.select(Hr),ro=Br(Hr);to(),at(St),Mi.on(Z,null).on(ye,to);function fi(){var Nl=e.touches(Hr);return rn=v.k,Nl.forEach(function(ti){ti.identifier in Et&&(Et[ti.identifier]=Pe(ti))}),Nl}function to(){var Nl=e.event.target;e.select(Nl).on(ri,F0).on(wi,NY),Yi.push(Nl);for(var ti=e.event.changedTouches,Zo=0,ks=ti.length;Zo<ks;++Zo)Et[ti[Zo].identifier]=null;var $o=fi(),v1=Date.now();if($o.length===1){if(v1-ze<500){var q0=$o[0];Wr(Hr,q0,Et[q0.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),xe()}ze=v1}else if($o.length>1){var q0=$o[0],df=$o[1],Mp=q0[0]-df[0],R_=q0[1]-df[1];oa=Mp*Mp+R_*R_}}function F0(){var Nl=e.touches(Hr),ti,Zo,ks,$o;bt.call(Hr);for(var v1=0,q0=Nl.length;v1<q0;++v1,$o=null)if(ks=Nl[v1],$o=Et[ks.identifier]){if(Zo)break;ti=ks,Zo=$o}if($o){var df=(df=ks[0]-ti[0])*df+(df=ks[1]-ti[1])*df,Mp=oa&&Math.sqrt(df/oa);ti=[(ti[0]+ks[0])/2,(ti[1]+ks[1])/2],Zo=[(Zo[0]+$o[0])/2,(Zo[1]+$o[1])/2],Vr(Mp*rn)}ze=null,$r(ti,Zo),Ct(St)}function NY(){if(e.event.touches.length){for(var Nl=e.event.changedTouches,ti=0,Zo=Nl.length;ti<Zo;++ti)delete Et[Nl[ti].identifier];for(var ks in Et)return void fi()}e.selectAll(Yi).on(Ln,null),Mi.on(Z,_t).on(ye,ia),ro(),it(St)}}function pn(){var Hr=Ve.of(this,arguments);ge?clearTimeout(ge):(bt.call(this),g=Pe(w=S||e.mouse(this)),at(Hr)),ge=setTimeout(function(){ge=null,it(Hr)},50),xe(),Vr(Math.pow(2,cn()*.002)*v.k),$r(w,g),Ct(Hr)}function ca(){var Hr=e.mouse(this),St=Math.log(v.k)/Math.LN2;Wr(this,Hr,Pe(Hr),e.event.shiftKey?Math.ceil(St)-1:Math.floor(St)+1)}return e.rebind(Xe,Ve,"on")};var An=[0,1/0],cn,Sa;e.color=za;function za(){}za.prototype.toString=function(){return this.rgb()+""},e.hsl=Na;function Na(v,g,w){return this instanceof Na?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof Na?new Na(v.h,v.s,v.l):mo(""+v,ss,Na):new Na(v,g,w)}var Ea=Na.prototype=new za;Ea.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new Na(this.h,this.s,this.l/v)},Ea.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new Na(this.h,this.s,v*this.l)},Ea.rgb=function(){return vn(this.h,this.s,this.l)};function vn(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(I){return I>360?I-=360:I<0&&(I+=360),I<60?S+(L-S)*I/60:I<180?L:I<240?S+(L-S)*(240-I)/60:S}function V(I){return Math.round(F(I)*255)}return new jt(V(v+120),V(v),V(v-120))}e.hcl=Ia;function Ia(v,g,w){return this instanceof Ia?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Ia?new Ia(v.h,v.c,v.l):v instanceof kt?po(v.l,v.a,v.b):po((v=Ks((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Ia(v,g,w)}var dn=Ia.prototype=new za;dn.brighter=function(v){return new Ia(this.h,this.c,Math.min(100,this.l+pt*(arguments.length?v:1)))},dn.darker=function(v){return new Ia(this.h,this.c,Math.max(0,this.l-pt*(arguments.length?v:1)))},dn.rgb=function(){return Dr(this.h,this.c,this.l).rgb()};function Dr(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new kt(w,Math.cos(v*=Be)*g,Math.sin(v)*g)}e.lab=kt;function kt(v,g,w){return this instanceof kt?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof kt?new kt(v.l,v.a,v.b):v instanceof Ia?Dr(v.h,v.c,v.l):Ks((v=jt(v)).r,v.g,v.b):new kt(v,g,w)}var pt=18,Yt=.95047,Ba=1,Tn=1.08883,ya=kt.prototype=new za;ya.brighter=function(v){return new kt(Math.min(100,this.l+pt*(arguments.length?v:1)),this.a,this.b)},ya.darker=function(v){return new kt(Math.max(0,this.l-pt*(arguments.length?v:1)),this.a,this.b)},ya.rgb=function(){return bi(this.l,this.a,this.b)};function bi(v,g,w){var S=(v+16)/116,L=S+g/500,F=S-w/200;return L=Ni(L)*Yt,S=Ni(S)*Ba,F=Ni(F)*Tn,new jt(Ii(3.2404542*L-1.5371385*S-.4985314*F),Ii(-.969266*L+1.8760108*S+.041556*F),Ii(.0556434*L-.2040259*S+1.0572252*F))}function po(v,g,w){return v>0?new Ia(Math.atan2(w,g)*or,Math.sqrt(g*g+w*w),v):new Ia(NaN,NaN,v)}function Ni(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Bo(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function Ii(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=jt;function jt(v,g,w){return this instanceof jt?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof jt?new jt(v.r,v.g,v.b):mo(""+v,jt,vn):new jt(v,g,w)}function Bi(v){return new jt(v>>16,v>>8&255,v&255)}function Ja(v){return Bi(v)+""}var oi=jt.prototype=new za;oi.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 jt(L,L,L):(g&&g<L&&(g=L),w&&w<L&&(w=L),S&&S<L&&(S=L),new jt(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,S/v)))},oi.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new jt(v*this.r,v*this.g,v*this.b)},oi.hsl=function(){return ss(this.r,this.g,this.b)},oi.toString=function(){return"#"+li(this.r)+li(this.g)+li(this.b)};function li(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function mo(v,g,w){var S=0,L=0,F=0,V,I,Z;if(V=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),V)switch(I=V[2].split(","),V[1]){case"hsl":return w(parseFloat(I[0]),parseFloat(I[1])/100,parseFloat(I[2])/100);case"rgb":return g(Qs(I[0]),Qs(I[1]),Qs(I[2]))}return(Z=ot.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 ss(v,g,w){var S=Math.min(v/=255,g/=255,w/=255),L=Math.max(v,g,w),F=L-S,V,I,Z=(L+S)/2;return F?(I=Z<.5?F/(L+S):F/(2-L-S),v==L?V=(g-w)/F+(g<w?6:0):g==L?V=(w-v)/F+2:V=(v-g)/F+4,V*=60):(V=NaN,I=Z>0&&Z<1?0:V),new Na(V,I,Z)}function Ks(v,g,w){v=us(v),g=us(g),w=us(w);var S=Bo((.4124564*v+.3575761*g+.1804375*w)/Yt),L=Bo((.2126729*v+.7151522*g+.072175*w)/Ba),F=Bo((.0193339*v+.119192*g+.9503041*w)/Tn);return kt(116*L-16,500*(S-L),200*(L-F))}function us(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Qs(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ot=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});ot.forEach(function(v,g){ot.set(v,Bi(g))});function st(v){return typeof v=="function"?v:function(){return v}}e.functor=st,e.xhr=Wt(N);function Wt(v){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Ur(g,w,v,S)}}function Ur(v,g,w,S){var L={},F=e.dispatch("beforesend","progress","load","error"),V={},I=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in I)&&/^(http(s)?:)?\/\//.test(v)&&(I=new XDomainRequest),"onload"in I?I.onload=I.onerror=te:I.onreadystatechange=function(){I.readyState>3&&te()};function te(){var ne=I.status,ge;if(!ne&&la(I)||ne>=200&&ne<300||ne===304){try{ge=w.call(L,I)}catch(ye){F.error.call(L,ye);return}F.load.call(L,ge)}else F.error.call(L,I)}return I.onprogress=function(ne){var ge=e.event;e.event=ne;try{F.progress.call(L,I)}finally{e.event=ge}},L.header=function(ne,ge){return ne=(ne+"").toLowerCase(),arguments.length<2?V[ne]:(ge==null?delete V[ne]:V[ne]=ge+"",L)},L.mimeType=function(ne){return arguments.length?(g=ne==null?null:ne+"",L):g},L.responseType=function(ne){return arguments.length?(Z=ne,L):Z},L.response=function(ne){return w=ne,L},["get","post"].forEach(function(ne){L[ne]=function(){return L.send.apply(L,[ne].concat(t(arguments)))}}),L.send=function(ne,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),I.open(ne,v,!0),g!=null&&!("accept"in V)&&(V.accept=g+",*/*"),I.setRequestHeader)for(var ze in V)I.setRequestHeader(ze,V[ze]);return g!=null&&I.overrideMimeType&&I.overrideMimeType(g),Z!=null&&(I.responseType=Z),ye!=null&&L.on("error",ye).on("load",function(Ve){ye(null,Ve)}),F.beforesend.call(L,I),I.send(ge==null?null:ge),L},L.abort=function(){return I.abort(),L},e.rebind(L,F,"on"),S==null?L:L.get(kn(S))}function kn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function la(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(te,ne,ge){arguments.length<3&&(ge=ne,ne=null);var ye=Ur(te,g,ne==null?F:V(ne),ge);return ye.row=function(ze){return arguments.length?ye.response((ne=ze)==null?F:V(ze)):ne},ye}function F(te){return L.parse(te.responseText)}function V(te){return function(ne){return L.parse(ne.responseText,te)}}L.parse=function(te,ne){var ge;return L.parseRows(te,function(ye,ze){if(ge)return ge(ye,ze-1);var Ve=function(_e){for(var Se={},Fe=ye.length,Ye=0;Ye<Fe;++Ye)Se[ye[Ye]]=_e[Ye];return Se};ge=ne?function(_e,Se){return ne(Ve(_e),Se)}:Ve})},L.parseRows=function(te,ne){var ge={},ye={},ze=[],Ve=te.length,_e=0,Se=0,Fe,Ye;function Xe(){if(_e>=Ve)return ye;if(Ye)return Ye=!1,ge;var br=_e;if(te.charCodeAt(br)===34){for(var Vr=br;Vr++<Ve;)if(te.charCodeAt(Vr)===34){if(te.charCodeAt(Vr+1)!==34)break;++Vr}_e=Vr+2;var $r=te.charCodeAt(Vr+1);return $r===13?(Ye=!0,te.charCodeAt(Vr+2)===10&&++_e):$r===10&&(Ye=!0),te.slice(br+1,Vr).replace(/""/g,'"')}for(;_e<Ve;){var $r=te.charCodeAt(_e++),Wr=1;if($r===10)Ye=!0;else if($r===13)Ye=!0,te.charCodeAt(_e)===10&&(++_e,++Wr);else if($r!==S)continue;return te.slice(br,_e-Wr)}return te.slice(br)}for(;(Fe=Xe())!==ye;){for(var Pe=[];Fe!==ge&&Fe!==ye;)Pe.push(Fe),Fe=Xe();ne&&(Pe=ne(Pe,Se++))==null||ze.push(Pe)}return ze},L.format=function(te){if(Array.isArray(te[0]))return L.formatRows(te);var ne=new X,ge=[];return te.forEach(function(ye){for(var ze in ye)ne.has(ze)||ge.push(ne.add(ze))}),[ge.map(Z).join(v)].concat(te.map(function(ye){return ge.map(function(ze){return Z(ye[ze])}).join(v)})).join(`
`)},L.formatRows=function(te){return te.map(I).join(`
`)};function I(te){return te.map(Z).join(v)}function Z(te){return w.test(te)?'"'+te.replace(/\"/g,'""')+'"':te}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Xa,Ka,jn,bl,fs=this[ee(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){cs.apply(this,arguments)};function cs(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 Ka?Ka.n=F:Xa=F,Ka=F,jn||(bl=clearTimeout(bl),jn=1,fs(Wi)),F}function Wi(){var v=Ho(),g=_l()-v;g>24?(isFinite(g)&&(clearTimeout(bl),bl=setTimeout(Wi,g)),jn=0):(jn=1,fs(Wi))}e.timer.flush=function(){Ho(),_l()};function Ho(){for(var v=Date.now(),g=Xa;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function _l(){for(var v,g=Xa,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(v=g).n):g=v?v.n=g.n:Xa=g.n;return Ka=v,w}e.round=function(v,g){return g?Math.round(v*(g=Math.pow(10,g)))/g:Math.round(v)},e.geom={};function vs(v){return v[0]}function eu(v){return v[1]}e.geom.hull=function(v){var g=vs,w=eu;if(arguments.length)return S(v);function S(L){if(L.length<3)return[];var F=st(g),V=st(w),I,Z=L.length,te=[],ne=[];for(I=0;I<Z;I++)te.push([+F.call(this,L[I],I),+V.call(this,L[I],I),I]);for(te.sort(Gc),I=0;I<Z;I++)ne.push([te[I][0],-te[I][1]]);var ge=s0(te),ye=s0(ne),ze=ye[0]===ge[0],Ve=ye[ye.length-1]===ge[ge.length-1],_e=[];for(I=ge.length-1;I>=0;--I)_e.push(L[te[ge[I]][2]]);for(I=+ze;I<ye.length-Ve;++I)_e.push(L[te[ye[I]][2]]);return _e}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 s0(v){for(var g=v.length,w=[0,1],S=2,L=2;L<g;L++){for(;S>1&&Ft(v[w[S-2]],v[w[S-1]],v[L])<=0;)--S;w[S++]=L}return w.slice(0,S)}function Gc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,ru),v};var ru=e.geom.polygon.prototype=[];ru.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},ru.centroid=function(v){var g=-1,w=this.length,S=0,L=0,F,V=this[w-1],I;for(arguments.length||(v=-1/(6*this.area()));++g<w;)F=V,V=this[g],I=F[0]*V[1]-V[0]*F[1],S+=(F[0]+V[0])*I,L+=(F[1]+V[1])*I;return[S*v,L*v]},ru.clip=function(v){for(var g,w=xl(v),S=-1,L=this.length-xl(this),F,V,I=this[L-1],Z,te,ne;++S<L;){for(g=v.slice(),v.length=0,Z=this[S],te=g[(V=g.length-w)-1],F=-1;++F<V;)ne=g[F],tu(ne,I,Z)?(tu(te,I,Z)||v.push(au(te,ne,I,Z)),v.push(ne)):tu(te,I,Z)&&v.push(au(te,ne,I,Z)),te=ne;w&&v.push(v[0]),I=Z}return v};function tu(v,g,w){return(w[0]-g[0])*(v[1]-g[1])<(w[1]-g[1])*(v[0]-g[0])}function au(v,g,w,S){var L=v[0],F=w[0],V=g[0]-L,I=S[0]-F,Z=v[1],te=w[1],ne=g[1]-Z,ge=S[1]-te,ye=(I*(Z-te)-ge*(L-F))/(ge*V-I*ne);return[L+ye*V,Z+ye*ne]}function xl(v){var g=v[0],w=v[v.length-1];return!(g[0]-w[0]||g[1]-w[1])}var Oo,Uo,go,u0=[],Zu,ds,f0=[];function Yc(){Tl(this),this.edge=this.site=this.circle=null}function nu(v){var g=u0.pop()||new Yc;return g.site=v,g}function yo(v){Yo(v),go.remove(v),u0.push(v),Tl(v)}function iu(v){var g=v.circle,w=g.x,S=g.cy,L={x:w,y:S},F=v.P,V=v.N,I=[v];yo(v);for(var Z=F;Z.circle&&b(w-Z.circle.x)<tr&&b(S-Z.circle.cy)<tr;)F=Z.P,I.unshift(Z),yo(Z),Z=F;I.unshift(Z),Yo(Z);for(var te=V;te.circle&&b(w-te.circle.x)<tr&&b(S-te.circle.cy)<tr;)V=te.N,I.push(te),yo(te),te=V;I.push(te),Yo(te);var ne=I.length,ge;for(ge=1;ge<ne;++ge)te=I[ge],Z=I[ge-1],_o(te.edge,Z.site,te.site,L);Z=I[0],te=I[ne-1],te.edge=ps(Z.site,te.site,null,L),Go(Z),Go(te)}function Vc(v){for(var g=v.x,w=v.y,S,L,F,V,I=go._;I;)if(F=ou(I,w)-g,F>tr)I=I.L;else if(V=g-Nv(I,w),V>tr){if(!I.R){S=I;break}I=I.R}else{F>-tr?(S=I.P,L=I):V>-tr?(S=I,L=I.N):S=L=I;break}var Z=nu(v);if(go.insert(S,Z),!(!S&&!L)){if(S===L){Yo(S),L=nu(S.site),go.insert(Z,L),Z.edge=L.edge=ps(S.site,Z.site),Go(S),Go(L);return}if(!L){Z.edge=ps(S.site,Z.site);return}Yo(S),Yo(L);var te=S.site,ne=te.x,ge=te.y,ye=v.x-ne,ze=v.y-ge,Ve=L.site,_e=Ve.x-ne,Se=Ve.y-ge,Fe=2*(ye*Se-ze*_e),Ye=ye*ye+ze*ze,Xe=_e*_e+Se*Se,Pe={x:(Se*Ye-ze*Xe)/Fe+ne,y:(ye*Xe-_e*Ye)/Fe+ge};_o(L.edge,te,Ve,Pe),Z.edge=ps(te,v,null,Pe),L.edge=ps(v,Ve,null,Pe),Go(S),Go(L)}}function ou(v,g){var w=v.site,S=w.x,L=w.y,F=L-g;if(!F)return S;var V=v.P;if(!V)return-1/0;w=V.site;var I=w.x,Z=w.y,te=Z-g;if(!te)return I;var ne=I-S,ge=1/F-1/te,ye=ne/te;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ne*ne/(-2*te)-Z+te/2+L-F/2)))/ge+S:(S+I)/2}function Nv(v,g){var w=v.N;if(w)return ou(w,g);var S=v.site;return S.y===g?S.x:1/0}function wl(v){this.site=v,this.edges=[]}wl.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(hs),v.length};function c0(v){for(var g=v[0][0],w=v[1][0],S=v[0][1],L=v[1][1],F,V,I,Z,te=Uo,ne=te.length,ge,ye,ze,Ve,_e,Se;ne--;)if(ge=te[ne],!(!ge||!ge.prepare()))for(ze=ge.edges,Ve=ze.length,ye=0;ye<Ve;)Se=ze[ye].end(),I=Se.x,Z=Se.y,_e=ze[++ye%Ve].start(),F=_e.x,V=_e.y,(b(I-F)>tr||b(Z-V)>tr)&&(ze.splice(ye,0,new Ml(Bv(ge.site,Se,b(I-g)<tr&&L-Z>tr?{x:g,y:b(F-g)<tr?V:L}:b(Z-L)<tr&&w-I>tr?{x:b(V-L)<tr?F:w,y:L}:b(I-w)<tr&&Z-S>tr?{x:w,y:b(F-w)<tr?V:S}:b(Z-S)<tr&&I-g>tr?{x:b(V-S)<tr?F:g,y:S}:null),ge.site,null)),++Ve)}function hs(v,g){return g.angle-v.angle}function Xc(){Tl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Go(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 V=L.x,I=L.y,Z=S.x-V,te=S.y-I,ne=F.x-V,Se=F.y-I,ge=2*(Z*Se-te*ne);if(!(ge>=-qr)){var ye=Z*Z+te*te,ze=ne*ne+Se*Se,Ve=(Se*ye-te*ze)/ge,_e=(Z*ze-ne*ye)/ge,Se=_e+I,Fe=f0.pop()||new Xc;Fe.arc=v,Fe.site=L,Fe.x=Ve+V,Fe.y=Se+Math.sqrt(Ve*Ve+_e*_e),Fe.cy=Se,v.circle=Fe;for(var Ye=null,Xe=ds._;Xe;)if(Fe.y<Xe.y||Fe.y===Xe.y&&Fe.x<=Xe.x)if(Xe.L)Xe=Xe.L;else{Ye=Xe.P;break}else if(Xe.R)Xe=Xe.R;else{Ye=Xe;break}ds.insert(Ye,Fe),Ye||(Zu=Fe)}}}}function Yo(v){var g=v.circle;g&&(g.P||(Zu=g.N),ds.remove(g),f0.push(g),Tl(g),v.circle=null)}function v0(v,g,w,S){return function(L){var F=L.a,V=L.b,I=F.x,Z=F.y,te=V.x,ne=V.y,ge=0,ye=1,ze=te-I,Ve=ne-Z,_e;if(_e=v-I,!(!ze&&_e>0)){if(_e/=ze,ze<0){if(_e<ge)return;_e<ye&&(ye=_e)}else if(ze>0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=w-I,!(!ze&&_e<0)){if(_e/=ze,ze<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(ze>0){if(_e<ge)return;_e<ye&&(ye=_e)}if(_e=g-Z,!(!Ve&&_e>0)){if(_e/=Ve,Ve<0){if(_e<ge)return;_e<ye&&(ye=_e)}else if(Ve>0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=S-Z,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(Ve>0){if(_e<ge)return;_e<ye&&(ye=_e)}return ge>0&&(L.a={x:I+ge*ze,y:Z+ge*Ve}),ye<1&&(L.b={x:I+ye*ze,y:Z+ye*Ve}),L}}}}}}function Zi(v){for(var g=Oo,w=v0(v[0][0],v[0][1],v[1][0],v[1][1]),S=g.length,L;S--;)L=g[S],(!Iv(L,v)||!w(L)||b(L.a.x-L.b.x)<tr&&b(L.a.y-L.b.y)<tr)&&(L.a=L.b=null,g.splice(S,1))}function Iv(v,g){var w=v.b;if(w)return!0;var S=v.a,L=g[0][0],F=g[1][0],V=g[0][1],I=g[1][1],Z=v.l,te=v.r,ne=Z.x,ge=Z.y,ye=te.x,ze=te.y,Ve=(ne+ye)/2,_e=(ge+ze)/2,Se,Fe;if(ze===ge){if(Ve<L||Ve>=F)return;if(ne>ye){if(!S)S={x:Ve,y:V};else if(S.y>=I)return;w={x:Ve,y:I}}else{if(!S)S={x:Ve,y:I};else if(S.y<V)return;w={x:Ve,y:V}}}else if(Se=(ne-ye)/(ze-ge),Fe=_e-Se*Ve,Se<-1||Se>1)if(ne>ye){if(!S)S={x:(V-Fe)/Se,y:V};else if(S.y>=I)return;w={x:(I-Fe)/Se,y:I}}else{if(!S)S={x:(I-Fe)/Se,y:I};else if(S.y<V)return;w={x:(V-Fe)/Se,y:V}}else if(ge<ze){if(!S)S={x:L,y:Se*L+Fe};else if(S.x>=F)return;w={x:F,y:Se*F+Fe}}else{if(!S)S={x:F,y:Se*F+Fe};else if(S.x<L)return;w={x:L,y:Se*L+Fe}}return v.a=S,v.b=w,!0}function bo(v,g){this.l=v,this.r=g,this.a=this.b=null}function ps(v,g,w,S){var L=new bo(v,g);return Oo.push(L),w&&_o(L,v,g,w),S&&_o(L,g,v,S),Uo[v.i].edges.push(new Ml(L,v,g)),Uo[g.i].edges.push(new Ml(L,g,v)),L}function Bv(v,g,w){var S=new bo(v,null);return S.a=g,S.b=w,Oo.push(S),S}function _o(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 Ml(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)}Ml.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 Al(){this._=null}function Tl(v){v.U=v.C=v.L=v.R=v.P=v.N=null}Al.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=$u(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&&(Vo(this,w),v=w,w=v.U),w.C=!1,S.C=!0,lu(this,S))):(L=S.L,L&&L.C?(w.C=L.C=!1,S.C=!0,v=S):(v===w.L&&(lu(this,w),v=w,w=v.U),w.C=!1,S.C=!0,Vo(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,V;if(S?L?F=$u(L):F=S:F=L,g?g.L===v?g.L=F:g.R=F:this._=F,S&&L?(V=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)):(V=v.C,v=F),v&&(v.U=g),!V){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,Vo(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,lu(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,Vo(this,g),v=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,lu(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,Vo(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,lu(this,g),v=this._;break}w.C=!0,v=g,g=g.U}while(!v.C);v&&(v.C=!1)}}};function Vo(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 lu(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 $u(v){for(;v.L;)v=v.L;return v}function su(v,g){var w=v.sort(uu).pop(),S,L,F;for(Oo=[],Uo=new Array(v.length),go=new Al,ds=new Al;;)if(F=Zu,w&&(!F||w.y<F.y||w.y===F.y&&w.x<F.x))(w.x!==S||w.y!==L)&&(Uo[w.i]=new wl(w),Vc(w),S=w.x,L=w.y),w=v.pop();else if(F)iu(F.arc);else break;g&&(Zi(g),c0(g));var V={cells:Uo,edges:Oo};return go=ds=Oo=Uo=null,V}function uu(v,g){return g.y-v.y||g.x-v.x}e.geom.voronoi=function(v){var g=vs,w=eu,S=g,L=w,F=kl;if(v)return V(v);function V(Z){var te=new Array(Z.length),ne=F[0][0],ge=F[0][1],ye=F[1][0],ze=F[1][1];return su(I(Z),F).cells.forEach(function(Ve,_e){var Se=Ve.edges,Fe=Ve.site,Ye=te[_e]=Se.length?Se.map(function(Xe){var Pe=Xe.start();return[Pe.x,Pe.y]}):Fe.x>=ne&&Fe.x<=ye&&Fe.y>=ge&&Fe.y<=ze?[[ne,ze],[ye,ze],[ye,ge],[ne,ge]]:[];Ye.point=Z[_e]}),te}function I(Z){return Z.map(function(te,ne){return{x:Math.round(S(te,ne)/tr)*tr,y:Math.round(L(te,ne)/tr)*tr,i:ne}})}return V.links=function(Z){return su(I(Z)).edges.filter(function(te){return te.l&&te.r}).map(function(te){return{source:Z[te.l.i],target:Z[te.r.i]}})},V.triangles=function(Z){var te=[];return su(I(Z)).cells.forEach(function(ne,ge){for(var ye=ne.site,ze=ne.edges.sort(hs),Ve=-1,_e=ze.length,Se,Fe,Ye=ze[_e-1].edge,Xe=Ye.l===ye?Ye.r:Ye.l;++Ve<_e;)Se=Ye,Fe=Xe,Ye=ze[Ve].edge,Xe=Ye.l===ye?Ye.r:Ye.l,ge<Fe.i&&ge<Xe.i&&ms(ye,Fe,Xe)<0&&te.push([Z[ge],Z[Fe.i],Z[Xe.i]])}),te},V.x=function(Z){return arguments.length?(S=st(g=Z),V):g},V.y=function(Z){return arguments.length?(L=st(w=Z),V):w},V.clipExtent=function(Z){return arguments.length?(F=Z==null?kl:Z,V):F===kl?null:F},V.size=function(Z){return arguments.length?V.clipExtent(Z&&[[0,0],Z]):F===kl?null:F&&F[1]},V};var kl=[[-1e6,-1e6],[1e6,1e6]];function ms(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=vs,V=eu,I;if(I=arguments.length)return F=gs,V=Ju,I===3&&(L=w,S=g,w=g=0),Z(v);function Z(te){var ne,ge=st(F),ye=st(V),ze,Ve,_e,Se,Fe,Ye,Xe,Pe;if(g!=null)Fe=g,Ye=w,Xe=S,Pe=L;else if(Xe=Pe=-(Fe=Ye=1/0),ze=[],Ve=[],Se=te.length,I)for(_e=0;_e<Se;++_e)ne=te[_e],ne.x<Fe&&(Fe=ne.x),ne.y<Ye&&(Ye=ne.y),ne.x>Xe&&(Xe=ne.x),ne.y>Pe&&(Pe=ne.y),ze.push(ne.x),Ve.push(ne.y);else for(_e=0;_e<Se;++_e){var br=+ge(ne=te[_e],_e),Vr=+ye(ne,_e);br<Fe&&(Fe=br),Vr<Ye&&(Ye=Vr),br>Xe&&(Xe=br),Vr>Pe&&(Pe=Vr),ze.push(br),Ve.push(Vr)}var $r=Xe-Fe,Wr=Pe-Ye;$r>Wr?Pe=Ye+$r:Xe=Fe+Wr;function tt(it,_t,ia,pn,ca,Hr,St,Et){if(!(isNaN(ia)||isNaN(pn)))if(it.leaf){var oa=it.x,rn=it.y;if(oa!=null)if(b(oa-ia)+b(rn-pn)<.01)at(it,_t,ia,pn,ca,Hr,St,Et);else{var Ln=it.point;it.x=it.y=it.point=null,at(it,Ln,oa,rn,ca,Hr,St,Et),at(it,_t,ia,pn,ca,Hr,St,Et)}else it.x=ia,it.y=pn,it.point=_t}else at(it,_t,ia,pn,ca,Hr,St,Et)}function at(it,_t,ia,pn,ca,Hr,St,Et){var oa=(ca+St)*.5,rn=(Hr+Et)*.5,Ln=ia>=oa,ri=pn>=rn,wi=ri<<1|Ln;it.leaf=!1,it=it.nodes[wi]||(it.nodes[wi]=Ku()),Ln?ca=oa:St=oa,ri?Hr=rn:Et=rn,tt(it,_t,ia,pn,ca,Hr,St,Et)}var Ct=Ku();if(Ct.add=function(it){tt(Ct,it,+ge(it,++_e),+ye(it,_e),Fe,Ye,Xe,Pe)},Ct.visit=function(it){Hi(it,Ct,Fe,Ye,Xe,Pe)},Ct.find=function(it){return Qu(Ct,it[0],it[1],Fe,Ye,Xe,Pe)},_e=-1,g==null){for(;++_e<Se;)tt(Ct,te[_e],ze[_e],Ve[_e],Fe,Ye,Xe,Pe);--_e}else te.forEach(Ct.add);return ze=Ve=te=ne=null,Ct}return Z.x=function(te){return arguments.length?(F=te,Z):F},Z.y=function(te){return arguments.length?(V=te,Z):V},Z.extent=function(te){return arguments.length?(te==null?g=w=S=L=null:(g=+te[0][0],w=+te[0][1],S=+te[1][0],L=+te[1][1]),Z):g==null?null:[[g,w],[S,L]]},Z.size=function(te){return arguments.length?(te==null?g=w=S=L=null:(g=w=0,S=+te[0],L=+te[1]),Z):g==null?null:[S-g,L-w]},Z};function gs(v){return v.x}function Ju(v){return v.y}function Ku(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Hi(v,g,w,S,L,F){if(!v(g,w,S,L,F)){var V=(w+L)*.5,I=(S+F)*.5,Z=g.nodes;Z[0]&&Hi(v,Z[0],w,S,V,I),Z[1]&&Hi(v,Z[1],V,S,L,I),Z[2]&&Hi(v,Z[2],w,I,V,F),Z[3]&&Hi(v,Z[3],V,I,L,F)}}function Qu(v,g,w,S,L,F,V){var I=1/0,Z;return(function te(ne,ge,ye,ze,Ve){if(!(ge>F||ye>V||ze<S||Ve<L)){if(_e=ne.point){var _e,Se=g-ne.x,Fe=w-ne.y,Ye=Se*Se+Fe*Fe;if(Ye<I){var Xe=Math.sqrt(I=Ye);S=g-Xe,L=w-Xe,F=g+Xe,V=w+Xe,Z=_e}}for(var Pe=ne.nodes,br=(ge+ze)*.5,Vr=(ye+Ve)*.5,$r=g>=br,Wr=w>=Vr,tt=Wr<<1|$r,at=tt+4;tt<at;++tt)if(ne=Pe[tt&3])switch(tt&3){case 0:te(ne,ge,ye,br,Vr);break;case 1:te(ne,br,ye,ze,Vr);break;case 2:te(ne,ge,Vr,br,Ve);break;case 3:te(ne,br,Vr,ze,Ve);break}}})(v,S,L,F,V),Z}e.interpolateRgb=ef;function ef(v,g){v=e.rgb(v),g=e.rgb(g);var w=v.r,S=v.g,L=v.b,F=g.r-w,V=g.g-S,I=g.b-L;return function(Z){return"#"+li(Math.round(w+F*Z))+li(Math.round(S+V*Z))+li(Math.round(L+I*Z))}}e.interpolateObject=si;function si(v,g){var w={},S={},L;for(L in v)L in g?w[L]=Cl(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=Cn;function Cn(v,g){return v=+v,g=+g,function(w){return v*(1-w)+g*w}}e.interpolateString=Wn;function Wn(v,g){var w=xo.lastIndex=fu.lastIndex=0,S,L,F,V=-1,I=[],Z=[];for(v=v+"",g=g+"";(S=xo.exec(v))&&(L=fu.exec(g));)(F=L.index)>w&&(F=g.slice(w,F),I[V]?I[V]+=F:I[++V]=F),(S=S[0])===(L=L[0])?I[V]?I[V]+=L:I[++V]=L:(I[++V]=null,Z.push({i:V,x:Cn(S,L)})),w=fu.lastIndex;return w<g.length&&(F=g.slice(w),I[V]?I[V]+=F:I[++V]=F),I.length<2?Z[0]?(g=Z[0].x,function(te){return g(te)+""}):function(){return g}:(g=Z.length,function(te){for(var ne=0,ge;ne<g;++ne)I[(ge=Z[ne]).i]=ge.x(te);return I.join("")})}var xo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fu=new RegExp(xo.source,"g");e.interpolate=Cl;function Cl(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"?ot.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ef:Wn:g instanceof za?ef:Array.isArray(g)?ys:w==="object"&&isNaN(g)?si:Cn)(v,g)}],e.interpolateArray=ys;function ys(v,g){var w=[],S=[],L=v.length,F=g.length,V=Math.min(v.length,g.length),I;for(I=0;I<V;++I)w.push(Cl(v[I],g[I]));for(;I<L;++I)S[I]=v[I];for(;I<F;++I)S[I]=g[I];return function(Z){for(I=0;I<V;++I)S[I]=w[I](Z);return S}}var d0=function(){return N},jc=e.map({linear:d0,poly:Zc,quad:function(){return m0},cubic:function(){return g0},sin:function(){return cu},exp:function(){return vu},circle:function(){return $i},elastic:rf,back:du,bounce:function(){return tf}}),Hv=e.map({in:N,out:h0,"in-out":p0,"out-in":function(v){return p0(h0(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=jc.get(w)||d0,S=Hv.get(S)||N,Ov(S(w.apply(null,r.call(arguments,1))))};function Ov(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function h0(v){return function(g){return 1-v(1-g)}}function p0(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function m0(v){return v*v}function g0(v){return v*v*v}function Wc(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 Zc(v){return function(g){return Math.pow(g,v)}}function cu(v){return 1-Math.cos(v*Me)}function vu(v){return Math.pow(2,10*(v-1))}function $i(v){return 1-Math.sqrt(1-v*v)}function rf(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Or*Math.asin(1/v):(v=1,w=g/4),function(S){return 1+v*Math.pow(2,-10*S)*Math.sin((S-w)*Or/g)}}function du(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function tf(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=$c;function $c(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,S=v.c,L=v.l,F=g.h-w,V=g.c-S,I=g.l-L;return isNaN(V)&&(V=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 Dr(w+F*Z,S+V*Z,L+I*Z)+""}}e.interpolateHsl=y0;function y0(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,S=v.s,L=v.l,F=g.h-w,V=g.s-S,I=g.l-L;return isNaN(V)&&(V=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 vn(w+F*Z,S+V*Z,L+I*Z)+""}}e.interpolateLab=Uv;function Uv(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,S=v.a,L=v.b,F=g.l-w,V=g.a-S,I=g.b-L;return function(Z){return bi(w+F*Z,S+V*Z,L+I*Z)+""}}e.interpolateRound=Xo;function Xo(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 af(S?S.matrix:b0)})(v)};function af(v){var g=[v.a,v.b],w=[v.c,v.d],S=hu(g),L=bs(g,w),F=hu(pu(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]))*or,this.translate=[v.e,v.f],this.scale=[S,F],this.skew=F?Math.atan2(L,F)*or:0}af.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function bs(v,g){return v[0]*g[0]+v[1]*g[1]}function hu(v){var g=Math.sqrt(bs(v,v));return g&&(v[0]/=g,v[1]/=g),g}function pu(v,g,w){return v[0]+=w*g[0],v[1]+=w*g[1],v}var b0={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=nf;function jo(v){return v.length?v.pop()+",":""}function Jc(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:Cn(v[0],g[0])},{i:L-2,x:Cn(v[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function _0(v,g,w,S){v!==g?(v-g>180?g+=360:g-v>180&&(v+=360),S.push({i:w.push(jo(w)+"rotate(",null,")")-2,x:Cn(v,g)})):g&&w.push(jo(w)+"rotate("+g+")")}function Kc(v,g,w,S){v!==g?S.push({i:w.push(jo(w)+"skewX(",null,")")-2,x:Cn(v,g)}):g&&w.push(jo(w)+"skewX("+g+")")}function x0(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var L=w.push(jo(w)+"scale(",null,",",null,")");S.push({i:L-4,x:Cn(v[0],g[0])},{i:L-2,x:Cn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(jo(w)+"scale("+g+")")}function nf(v,g){var w=[],S=[];return v=e.transform(v),g=e.transform(g),Jc(v.translate,g.translate,w,S),_0(v.rotate,g.rotate,w,S),Kc(v.skew,g.skew,w,S),x0(v.scale,g.scale,w,S),v=g=null,function(L){for(var F=-1,V=S.length,I;++F<V;)w[(I=S[F]).i]=I.x(L);return w.join("")}}function w0(v,g){return g=(g-=v=+v)||1/g,function(w){return(w-v)/g}}function M0(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(Gv(v[w]));return g}};function Gv(v){for(var g=v.source,w=v.target,S=Ji(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 A0(v){for(var g=[],w=v.parent;w!=null;)g.push(v),v=w,w=w.parent;return g.push(v),g}function Ji(v,g){if(v===g)return v;for(var w=A0(v),S=A0(g),L=w.pop(),F=S.pop(),V=null;L===F;)V=L,L=w.pop(),F=S.pop();return V}e.layout.chord=function(){var v={},g,w,S,L,F=0,V,I,Z;function te(){var ge={},ye=[],ze=e.range(L),Ve=[],_e,Se,Fe,Ye,Xe;for(g=[],w=[],_e=0,Ye=-1;++Ye<L;){for(Se=0,Xe=-1;++Xe<L;)Se+=S[Ye][Xe];ye.push(Se),Ve.push(e.range(L)),_e+=Se}for(V&&ze.sort(function(Ct,it){return V(ye[Ct],ye[it])}),I&&Ve.forEach(function(Ct,it){Ct.sort(function(_t,ia){return I(S[it][_t],S[it][ia])})}),_e=(Or-F*L)/_e,Se=0,Ye=-1;++Ye<L;){for(Fe=Se,Xe=-1;++Xe<L;){var Pe=ze[Ye],br=Ve[Pe][Xe],Vr=S[Pe][br],$r=Se,Wr=Se+=Vr*_e;ge[Pe+"-"+br]={index:Pe,subindex:br,startAngle:$r,endAngle:Wr,value:Vr}}w[Pe]={index:Pe,startAngle:Fe,endAngle:Se,value:ye[Pe]},Se+=F}for(Ye=-1;++Ye<L;)for(Xe=Ye-1;++Xe<L;){var tt=ge[Ye+"-"+Xe],at=ge[Xe+"-"+Ye];(tt.value||at.value)&&g.push(tt.value<at.value?{source:at,target:tt}:{source:tt,target:at})}Z&&ne()}function ne(){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?(V=ge,g=w=null,v):V},v.sortSubgroups=function(ge){return arguments.length?(I=ge,g=null,v):I},v.sortChords=function(ge){return arguments.length?(Z=ge,g&&ne(),v):Z},v.chords=function(){return g||te(),g},v.groups=function(){return w||te(),w},v},e.layout.force=function(){var v={},g=e.dispatch("start","tick","end"),w,S=[1,1],L,F,V=.9,I=e1,Z=Yv,te=-30,ne=Vv,ge=.1,ye=.64,ze=[],Ve=[],_e,Se,Fe;function Ye(Pe){return function(br,Vr,$r,Wr){if(br.point!==Pe){var tt=br.cx-Pe.x,at=br.cy-Pe.y,Ct=Wr-Vr,it=tt*tt+at*at;if(Ct*Ct/ye<it){if(it<ne){var _t=br.charge/it;Pe.px-=tt*_t,Pe.py-=at*_t}return!0}if(br.point&&it&&it<ne){var _t=br.pointCharge/it;Pe.px-=tt*_t,Pe.py-=at*_t}}return!br.charge}}v.tick=function(){if((F*=.99)<.005)return w=null,g.end({type:"end",alpha:F=0}),!0;var Pe=ze.length,br=Ve.length,Vr,$r,Wr,tt,at,Ct,it,_t,ia;for($r=0;$r<br;++$r)Wr=Ve[$r],tt=Wr.source,at=Wr.target,_t=at.x-tt.x,ia=at.y-tt.y,(Ct=_t*_t+ia*ia)&&(Ct=F*Se[$r]*((Ct=Math.sqrt(Ct))-_e[$r])/Ct,_t*=Ct,ia*=Ct,at.x-=_t*(it=tt.weight+at.weight?tt.weight/(tt.weight+at.weight):.5),at.y-=ia*it,tt.x+=_t*(it=1-it),tt.y+=ia*it);if((it=F*ge)&&(_t=S[0]/2,ia=S[1]/2,$r=-1,it))for(;++$r<Pe;)Wr=ze[$r],Wr.x+=(_t-Wr.x)*it,Wr.y+=(ia-Wr.y)*it;if(te)for(Sl(Vr=e.geom.quadtree(ze),F,Fe),$r=-1;++$r<Pe;)(Wr=ze[$r]).fixed||Vr.visit(Ye(Wr));for($r=-1;++$r<Pe;)Wr=ze[$r],Wr.fixed?(Wr.x=Wr.px,Wr.y=Wr.py):(Wr.x-=(Wr.px-(Wr.px=Wr.x))*V,Wr.y-=(Wr.py-(Wr.py=Wr.y))*V);g.tick({type:"tick",alpha:F})},v.nodes=function(Pe){return arguments.length?(ze=Pe,v):ze},v.links=function(Pe){return arguments.length?(Ve=Pe,v):Ve},v.size=function(Pe){return arguments.length?(S=Pe,v):S},v.linkDistance=function(Pe){return arguments.length?(I=typeof Pe=="function"?Pe:+Pe,v):I},v.distance=v.linkDistance,v.linkStrength=function(Pe){return arguments.length?(Z=typeof Pe=="function"?Pe:+Pe,v):Z},v.friction=function(Pe){return arguments.length?(V=+Pe,v):V},v.charge=function(Pe){return arguments.length?(te=typeof Pe=="function"?Pe:+Pe,v):te},v.chargeDistance=function(Pe){return arguments.length?(ne=Pe*Pe,v):Math.sqrt(ne)},v.gravity=function(Pe){return arguments.length?(ge=+Pe,v):ge},v.theta=function(Pe){return arguments.length?(ye=Pe*Pe,v):Math.sqrt(ye)},v.alpha=function(Pe){return arguments.length?(Pe=+Pe,F?Pe>0?F=Pe:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:F=0})):Pe>0&&(g.start({type:"start",alpha:F=Pe}),w=cs(v.tick)),v):F},v.start=function(){var Pe,br=ze.length,Vr=Ve.length,$r=S[0],Wr=S[1],tt,at;for(Pe=0;Pe<br;++Pe)(at=ze[Pe]).index=Pe,at.weight=0;for(Pe=0;Pe<Vr;++Pe)at=Ve[Pe],typeof at.source=="number"&&(at.source=ze[at.source]),typeof at.target=="number"&&(at.target=ze[at.target]),++at.source.weight,++at.target.weight;for(Pe=0;Pe<br;++Pe)at=ze[Pe],isNaN(at.x)&&(at.x=Ct("x",$r)),isNaN(at.y)&&(at.y=Ct("y",Wr)),isNaN(at.px)&&(at.px=at.x),isNaN(at.py)&&(at.py=at.y);if(_e=[],typeof I=="function")for(Pe=0;Pe<Vr;++Pe)_e[Pe]=+I.call(this,Ve[Pe],Pe);else for(Pe=0;Pe<Vr;++Pe)_e[Pe]=I;if(Se=[],typeof Z=="function")for(Pe=0;Pe<Vr;++Pe)Se[Pe]=+Z.call(this,Ve[Pe],Pe);else for(Pe=0;Pe<Vr;++Pe)Se[Pe]=Z;if(Fe=[],typeof te=="function")for(Pe=0;Pe<br;++Pe)Fe[Pe]=+te.call(this,ze[Pe],Pe);else for(Pe=0;Pe<br;++Pe)Fe[Pe]=te;function Ct(it,_t){if(!tt){for(tt=new Array(br),ca=0;ca<br;++ca)tt[ca]=[];for(ca=0;ca<Vr;++ca){var ia=Ve[ca];tt[ia.source.index].push(ia.target),tt[ia.target.index].push(ia.source)}}for(var pn=tt[Pe],ca=-1,Hr=pn.length,St;++ca<Hr;)if(!isNaN(St=pn[ca][it]))return St;return Math.random()*_t}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(N).on("dragstart.force",T0).on("drag.force",Xe).on("dragend.force",_s)),!arguments.length)return L;this.on("mouseover.force",k0).on("mouseout.force",Qc).call(L)};function Xe(Pe){Pe.px=e.event.x,Pe.py=e.event.y,v.resume()}return e.rebind(v,g,"on")};function T0(v){v.fixed|=2}function _s(v){v.fixed&=-7}function k0(v){v.fixed|=4,v.px=v.x,v.py=v.y}function Qc(v){v.fixed&=-5}function Sl(v,g,w){var S=0,L=0;if(v.charge=0,!v.leaf)for(var F=v.nodes,V=F.length,I=-1,Z;++I<V;)Z=F[I],Z!=null&&(Sl(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 te=g*w[v.point.index];v.charge+=v.pointCharge=te,S+=te*v.point.x,L+=te*v.point.y}v.cx=S/v.charge,v.cy=L/v.charge}var e1=20,Yv=1,Vv=1/0;e.layout.hierarchy=function(){var v=r1,g=Xv,w=xs;function S(L){var F=[L],V=[],I;for(L.depth=0;(I=F.pop())!=null;)if(V.push(I),(te=g.call(S,I,I.depth))&&(Z=te.length)){for(var Z,te,ne;--Z>=0;)F.push(ne=te[Z]),ne.parent=I,ne.depth=I.depth+1;w&&(I.value=0),I.children=te}else w&&(I.value=+w.call(S,I,I.depth)||0),delete I.children;return ui(L,function(ge){var ye,ze;v&&(ye=ge.children)&&ye.sort(v),w&&(ze=ge.parent)&&(ze.value+=ge.value)}),V}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&&(Ki(L,function(F){F.children&&(F.value=0)}),ui(L,function(F){var V;F.children||(F.value=+w.call(S,F,F.depth)||0),(V=F.parent)&&(V.value+=F.value)})),L},S};function wo(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=_i,v}function Ki(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 ui(v,g){for(var w=[v],S=[];(v=w.pop())!=null;)if(S.push(v),(V=v.children)&&(F=V.length))for(var L=-1,F,V;++L<F;)w.push(V[L]);for(;(v=S.pop())!=null;)g(v)}function Xv(v){return v.children}function xs(v){return v.value}function r1(v,g){return g.value-v.value}function _i(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,V,I,Z){var te=F.children;if(F.x=V,F.y=F.depth*Z,F.dx=I,F.dy=Z,te&&(ge=te.length)){var ne=-1,ge,ye,ze;for(I=F.value?I/F.value:0;++ne<ge;)w(ye=te[ne],V,ze=ye.value*I,Z),V+=ze}}function S(F){var V=F.children,I=0;if(V&&(te=V.length))for(var Z=-1,te;++Z<te;)I=Math.max(I,S(V[Z]));return 1+I}function L(F,V){var I=v.call(this,F,V);return w(I[0],0,g[0],g[1]/S(I[0])),I}return L.size=function(F){return arguments.length?(g=F,L):g},wo(L,v)},e.layout.pie=function(){var v=Number,g=t1,w=0,S=Or,L=0;function F(V){var I=V.length,Z=V.map(function(Ye,Xe){return+v.call(F,Ye,Xe)}),te=+(typeof w=="function"?w.apply(this,arguments):w),ne=(typeof S=="function"?S.apply(this,arguments):S)-te,ge=Math.min(Math.abs(ne)/I,+(typeof L=="function"?L.apply(this,arguments):L)),ye=ge*(ne<0?-1:1),ze=e.sum(Z),Ve=ze?(ne-I*ye)/ze:0,_e=e.range(I),Se=[],Fe;return g!=null&&_e.sort(g===t1?function(Ye,Xe){return Z[Xe]-Z[Ye]}:function(Ye,Xe){return g(V[Ye],V[Xe])}),_e.forEach(function(Ye){Se[Ye]={data:V[Ye],value:Fe=Z[Ye],startAngle:te,endAngle:te+=Fe*Ve+ye,padAngle:ge}}),Se}return F.value=function(V){return arguments.length?(v=V,F):v},F.sort=function(V){return arguments.length?(g=V,F):g},F.startAngle=function(V){return arguments.length?(w=V,F):w},F.endAngle=function(V){return arguments.length?(S=V,F):S},F.padAngle=function(V){return arguments.length?(L=V,F):L},F};var t1={};e.layout.stack=function(){var v=N,g=lf,w=yu,S=n1,L=a1,F=mu;function V(I,Z){if(!(Ve=I.length))return I;var te=I.map(function(Ye,Xe){return v.call(V,Ye,Xe)}),ne=te.map(function(Ye){return Ye.map(function(Xe,Pe){return[L.call(V,Xe,Pe),F.call(V,Xe,Pe)]})}),ge=g.call(V,ne,Z);te=e.permute(te,ge),ne=e.permute(ne,ge);var ye=w.call(V,ne,Z),ze=te[0].length,Ve,_e,Se,Fe;for(Se=0;Se<ze;++Se)for(S.call(V,te[0][Se],Fe=ye[Se],ne[0][Se][1]),_e=1;_e<Ve;++_e)S.call(V,te[_e][Se],Fe+=ne[_e-1][Se][1],ne[_e][Se][1]);return I}return V.values=function(I){return arguments.length?(v=I,V):v},V.order=function(I){return arguments.length?(g=typeof I=="function"?I:of.get(I)||lf,V):g},V.offset=function(I){return arguments.length?(w=typeof I=="function"?I:gu.get(I)||yu,V):w},V.x=function(I){return arguments.length?(L=I,V):L},V.y=function(I){return arguments.length?(F=I,V):F},V.out=function(I){return arguments.length?(S=I,V):S},V};function a1(v){return v.x}function mu(v){return v.y}function n1(v,g,w){v.y0=g,v.y=w}var of=e.map({"inside-out":function(v){var g=v.length,w,S,L=v.map(jv),F=v.map(bu),V=e.range(g).sort(function(ge,ye){return L[ge]-L[ye]}),I=0,Z=0,te=[],ne=[];for(w=0;w<g;++w)S=V[w],I<Z?(I+=F[S],te.push(S)):(Z+=F[S],ne.push(S));return ne.reverse().concat(te)},reverse:function(v){return e.range(v.length).reverse()},default:lf}),gu=e.map({silhouette:function(v){var g=v.length,w=v[0].length,S=[],L=0,F,V,I,Z=[];for(V=0;V<w;++V){for(F=0,I=0;F<g;F++)I+=v[F][V][1];I>L&&(L=I),S.push(I)}for(V=0;V<w;++V)Z[V]=(L-S[V])/2;return Z},wiggle:function(v){var g=v.length,w=v[0],S=w.length,L,F,V,I,Z,te,ne,ge,ye,ze=[];for(ze[0]=ge=ye=0,F=1;F<S;++F){for(L=0,I=0;L<g;++L)I+=v[L][F][1];for(L=0,Z=0,ne=w[F][0]-w[F-1][0];L<g;++L){for(V=0,te=(v[L][F][1]-v[L][F-1][1])/(2*ne);V<L;++V)te+=(v[V][F][1]-v[V][F-1][1])/ne;Z+=te*v[L][F][1]}ze[F]=ge-=I?Z/I*ne:0,ge<ye&&(ye=ge)}for(F=0;F<S;++F)ze[F]-=ye;return ze},expand:function(v){var g=v.length,w=v[0].length,S=1/g,L,F,V,I=[];for(F=0;F<w;++F){for(L=0,V=0;L<g;L++)V+=v[L][F][1];if(V)for(L=0;L<g;L++)v[L][F][1]/=V;else for(L=0;L<g;L++)v[L][F][1]=S}for(F=0;F<w;++F)I[F]=0;return I},zero:yu});function lf(v){return e.range(v.length)}function yu(v){for(var g=-1,w=v[0].length,S=[];++g<w;)S[g]=0;return S}function jv(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 bu(v){return v.reduce(El,0)}function El(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=ws,S=_u;function L(F,ye){for(var I=[],Z=F.map(g,this),te=w.call(this,Z,ye),ne=S.call(this,te,Z,ye),ge,ye=-1,ze=Z.length,Ve=ne.length-1,_e=v?1:1/ze,Se;++ye<Ve;)ge=I[ye]=[],ge.dx=ne[ye+1]-(ge.x=ne[ye]),ge.y=0;if(Ve>0)for(ye=-1;++ye<ze;)Se=Z[ye],Se>=te[0]&&Se<=te[1]&&(ge=I[e.bisect(ne,Se,1,Ve)-1],ge.y+=_e,ge.push(F[ye]));return I}return L.value=function(F){return arguments.length?(g=F,L):g},L.range=function(F){return arguments.length?(w=st(F),L):w},L.bins=function(F){return arguments.length?(S=typeof F=="number"?function(V){return Ll(V,F)}:st(F),L):S},L.frequency=function(F){return arguments.length?(v=!!F,L):v},L};function _u(v,g){return Ll(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Ll(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 ws(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(sf),g=0,w=[1,1],S;function L(F,V){var I=v.call(this,F,V),Z=I[0],te=w[0],ne=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(Z.x=Z.y=0,ui(Z,function(ze){ze.r=+ge(ze.value)}),ui(Z,o1),g){var ye=g*(S?1:Math.max(2*Z.r/te,2*Z.r/ne))/2;ui(Z,function(ze){ze.r+=ye}),ui(Z,o1),ui(Z,function(ze){ze.r-=ye})}return ff(Z,te/2,ne/2,S?1:1/Math.max(2*Z.r/te,2*Z.r/ne)),I}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},wo(L,v)};function sf(v,g){return v.value-g.value}function xu(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function i1(v,g){v._pack_next=g,g._pack_prev=v}function uf(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 o1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,L=1/0,F=-1/0,V,I,Z,te,ne,ge,ye;function ze(Pe){w=Math.min(Pe.x-Pe.r,w),S=Math.max(Pe.x+Pe.r,S),L=Math.min(Pe.y-Pe.r,L),F=Math.max(Pe.y+Pe.r,F)}if(g.forEach(l1),V=g[0],V.x=-V.r,V.y=0,ze(V),ye>1&&(I=g[1],I.x=I.r,I.y=0,ze(I),ye>2))for(Z=g[2],hn(V,I,Z),ze(Z),xu(V,Z),V._pack_prev=Z,xu(Z,I),I=V._pack_next,te=3;te<ye;te++){hn(V,I,Z=g[te]);var Ve=0,_e=1,Se=1;for(ne=I._pack_next;ne!==I;ne=ne._pack_next,_e++)if(uf(ne,Z)){Ve=1;break}if(Ve==1)for(ge=V._pack_prev;ge!==ne._pack_prev&&!uf(ge,Z);ge=ge._pack_prev,Se++);Ve?(_e<Se||_e==Se&&I.r<V.r?i1(V,I=ne):i1(V=ge,I),te--):(xu(V,Z),I=Z,ze(Z))}var Fe=(w+S)/2,Ye=(L+F)/2,Xe=0;for(te=0;te<ye;te++)Z=g[te],Z.x-=Fe,Z.y-=Ye,Xe=Math.max(Xe,Z.r+Math.sqrt(Z.x*Z.x+Z.y*Z.y));v.r=Xe,g.forEach(C0)}function l1(v){v._pack_next=v._pack_prev=v}function C0(v){delete v._pack_next,delete v._pack_prev}function ff(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,V=L.length;++F<V;)ff(L[F],g,w,S)}function hn(v,g,w){var S=v.r+w.r,L=g.x-v.x,F=g.y-v.y;if(S&&(L||F)){var V=g.r+w.r,I=L*L+F*F;V*=V,S*=S;var Z=.5+(S-V)/(2*I),te=Math.sqrt(Math.max(0,2*V*(S+I)-(S-=I)*S-V*V))/(2*I);w.x=v.x+Z*L+te*F,w.y=v.y+Z*F-te*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=Oi,w=[1,1],S=null;function L(ne,ge){var ye=v.call(this,ne,ge),ze=ye[0],Ve=F(ze);if(ui(Ve,V),Ve.parent.m=-Ve.z,Ki(Ve,I),S)Ki(ze,te);else{var _e=ze,Se=ze,Fe=ze;Ki(ze,function(br){br.x<_e.x&&(_e=br),br.x>Se.x&&(Se=br),br.depth>Fe.depth&&(Fe=br)});var Ye=g(_e,Se)/2-_e.x,Xe=w[0]/(Se.x+g(Se,_e)/2+Ye),Pe=w[1]/(Fe.depth||1);Ki(ze,function(br){br.x=(br.x+Ye)*Xe,br.y=br.depth*Pe})}return ye}function F(ne){for(var ge={A:null,children:[ne]},ye=[ge],ze;(ze=ye.pop())!=null;)for(var Ve=ze.children,_e,Se=0,Fe=Ve.length;Se<Fe;++Se)ye.push((Ve[Se]=_e={_:Ve[Se],parent:ze,children:(_e=Ve[Se].children)&&_e.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Se}).a=_e);return ge.children[0]}function V(ne){var ge=ne.children,ye=ne.parent.children,ze=ne.i?ye[ne.i-1]:null;if(ge.length){S0(ne);var Ve=(ge[0].z+ge[ge.length-1].z)/2;ze?(ne.z=ze.z+g(ne._,ze._),ne.m=ne.z-Ve):ne.z=Ve}else ze&&(ne.z=ze.z+g(ne._,ze._));ne.parent.A=Z(ne,ze,ne.parent.A||ye[0])}function I(ne){ne._.x=ne.z+ne.parent.m,ne.m+=ne.parent.m}function Z(ne,ge,ye){if(ge){for(var ze=ne,Ve=ne,_e=ge,Se=ze.parent.children[0],Fe=ze.m,Ye=Ve.m,Xe=_e.m,Pe=Se.m,br;_e=cf(_e),ze=Ms(ze),_e&&ze;)Se=Ms(Se),Ve=cf(Ve),Ve.a=ne,br=_e.z+Xe-ze.z-Fe+g(_e._,ze._),br>0&&(wu(O(_e,ne,ye),ne,br),Fe+=br,Ye+=br),Xe+=_e.m,Fe+=ze.m,Pe+=Se.m,Ye+=Ve.m;_e&&!cf(Ve)&&(Ve.t=_e,Ve.m+=Xe-Ye),ze&&!Ms(Se)&&(Se.t=ze,Se.m+=Fe-Pe,ye=ne)}return ye}function te(ne){ne.x*=w[0],ne.y=ne.depth*w[1]}return L.separation=function(ne){return arguments.length?(g=ne,L):g},L.size=function(ne){return arguments.length?(S=(w=ne)==null?te:null,L):S?null:w},L.nodeSize=function(ne){return arguments.length?(S=(w=ne)==null?null:te,L):S?w:null},wo(L,v)};function Oi(v,g){return v.parent==g.parent?1:2}function Ms(v){var g=v.children;return g.length?g[0]:v.t}function cf(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function wu(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 S0(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=Oi,w=[1,1],S=!1;function L(F,V){var I=v.call(this,F,V),Z=I[0],te,ne=0;ui(Z,function(_e){var Se=_e.children;Se&&Se.length?(_e.x=he(Se),_e.y=$(Se)):(_e.x=te?ne+=g(_e,te):0,_e.y=0,te=_e)});var ge=le(Z),ye=Ae(Z),ze=ge.x-g(ge,ye)/2,Ve=ye.x+g(ye,ge)/2;return ui(Z,S?function(_e){_e.x=(_e.x-Z.x)*w[0],_e.y=(Z.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-ze)/(Ve-ze)*w[0],_e.y=(1-(Z.y?_e.y/Z.y:1))*w[1]}),I}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},wo(L,v)};function $(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 le(v){var g=v.children;return g&&g.length?le(g[0]):v}function Ae(v){var g=v.children,w;return g&&(w=g.length)?Ae(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,L=Ge,F=!1,V,I="squarify",Z=.5*(1+Math.sqrt(5));function te(_e,Se){for(var Fe=-1,Ye=_e.length,Xe,Pe;++Fe<Ye;)Pe=(Xe=_e[Fe]).value*(Se<0?0:Se),Xe.area=isNaN(Pe)||Pe<=0?0:Pe}function ne(_e){var Se=_e.children;if(Se&&Se.length){var Fe=L(_e),Ye=[],Xe=Se.slice(),Pe,br=1/0,Vr,$r=I==="slice"?Fe.dx:I==="dice"?Fe.dy:I==="slice-dice"?_e.depth&1?Fe.dy:Fe.dx:Math.min(Fe.dx,Fe.dy),Wr;for(te(Xe,Fe.dx*Fe.dy/_e.value),Ye.area=0;(Wr=Xe.length)>0;)Ye.push(Pe=Xe[Wr-1]),Ye.area+=Pe.area,I!=="squarify"||(Vr=ye(Ye,$r))<=br?(Xe.pop(),br=Vr):(Ye.area-=Ye.pop().area,ze(Ye,$r,Fe,!1),$r=Math.min(Fe.dx,Fe.dy),Ye.length=Ye.area=0,br=1/0);Ye.length&&(ze(Ye,$r,Fe,!0),Ye.length=Ye.area=0),Se.forEach(ne)}}function ge(_e){var Se=_e.children;if(Se&&Se.length){var Fe=L(_e),Ye=Se.slice(),Xe,Pe=[];for(te(Ye,Fe.dx*Fe.dy/_e.value),Pe.area=0;Xe=Ye.pop();)Pe.push(Xe),Pe.area+=Xe.area,Xe.z!=null&&(ze(Pe,Xe.z?Fe.dx:Fe.dy,Fe,!Ye.length),Pe.length=Pe.area=0);Se.forEach(ge)}}function ye(_e,Se){for(var Fe=_e.area,Ye,Xe=0,Pe=1/0,br=-1,Vr=_e.length;++br<Vr;)(Ye=_e[br].area)&&(Ye<Pe&&(Pe=Ye),Ye>Xe&&(Xe=Ye));return Fe*=Fe,Se*=Se,Fe?Math.max(Se*Xe*Z/Fe,Fe/(Se*Pe*Z)):1/0}function ze(_e,Se,Fe,Ye){var Xe=-1,Pe=_e.length,br=Fe.x,Vr=Fe.y,$r=Se?g(_e.area/Se):0,Wr;if(Se==Fe.dx){for((Ye||$r>Fe.dy)&&($r=Fe.dy);++Xe<Pe;)Wr=_e[Xe],Wr.x=br,Wr.y=Vr,Wr.dy=$r,br+=Wr.dx=Math.min(Fe.x+Fe.dx-br,$r?g(Wr.area/$r):0);Wr.z=!0,Wr.dx+=Fe.x+Fe.dx-br,Fe.y+=$r,Fe.dy-=$r}else{for((Ye||$r>Fe.dx)&&($r=Fe.dx);++Xe<Pe;)Wr=_e[Xe],Wr.x=br,Wr.y=Vr,Wr.dx=$r,Vr+=Wr.dy=Math.min(Fe.y+Fe.dy-Vr,$r?g(Wr.area/$r):0);Wr.z=!1,Wr.dy+=Fe.y+Fe.dy-Vr,Fe.x+=$r,Fe.dx-=$r}}function Ve(_e){var Se=V||v(_e),Fe=Se[0];return Fe.x=Fe.y=0,Fe.value?(Fe.dx=w[0],Fe.dy=w[1]):Fe.dx=Fe.dy=0,V&&v.revalue(Fe),te([Fe],Fe.dx*Fe.dy/Fe.value),(V?ge:ne)(Fe),F&&(V=Se),Se}return Ve.size=function(_e){return arguments.length?(w=_e,Ve):w},Ve.padding=function(_e){if(!arguments.length)return S;function Se(Xe){var Pe=_e.call(Ve,Xe,Xe.depth);return Pe==null?Ge(Xe):Ze(Xe,typeof Pe=="number"?[Pe,Pe,Pe,Pe]:Pe)}function Fe(Xe){return Ze(Xe,_e)}var Ye;return L=(S=_e)==null?Ge:(Ye=typeof _e)=="function"?Se:(Ye==="number"&&(_e=[_e,_e,_e,_e]),Fe),Ve},Ve.round=function(_e){return arguments.length?(g=_e?Math.round:Number,Ve):g!=Number},Ve.sticky=function(_e){return arguments.length?(F=_e,V=null,Ve):F},Ve.ratio=function(_e){return arguments.length?(Z=_e,Ve):Z},Ve.mode=function(_e){return arguments.length?(I=_e+"",Ve):I},wo(Ve,v)};function Ge(v){return{x:v.x,y:v.y,dx:v.dx,dy:v.dy}}function Ze(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 nr(v){return v.rangeExtent?v.rangeExtent():rr(v.range())}function yr(v,g,w,S){var L=w(v[0],v[1]),F=S(g[0],g[1]);return function(V){return F(L(V))}}function Je(v,g){var w=0,S=v.length-1,L=v[w],F=v[S],V;return F<L&&(V=w,w=S,S=V,V=L,L=F,F=V),v[w]=g.floor(L),v[S]=g.ceil(F),v}function fr(v){return v?{floor:function(g){return Math.floor(g/v)*v},ceil:function(g){return Math.ceil(g/v)*v}}:sr}var sr={floor:N,ceil:N};function wr(v,g,w,S){var L=[],F=[],V=0,I=Math.min(v.length,g.length)-1;for(v[I]<v[0]&&(v=v.slice().reverse(),g=g.slice().reverse());++V<=I;)L.push(w(v[V-1],v[V])),F.push(S(g[V-1],g[V]));return function(Z){var te=e.bisect(v,Z,1,I)-1;return F[te](L[te](Z))}}e.scale.linear=function(){return Er([0,1],[0,1],Cl,!1)};function Er(v,g,w,S){var L,F;function V(){var Z=Math.min(v.length,g.length)>2?wr:yr,te=S?M0:w0;return L=Z(v,g,te,w),F=Z(g,v,te,Cl),I}function I(Z){return L(Z)}return I.invert=function(Z){return F(Z)},I.domain=function(Z){return arguments.length?(v=Z.map(Number),V()):v},I.range=function(Z){return arguments.length?(g=Z,V()):g},I.rangeRound=function(Z){return I.range(Z).interpolate(Xo)},I.clamp=function(Z){return arguments.length?(S=Z,V()):S},I.interpolate=function(Z){return arguments.length?(w=Z,V()):w},I.ticks=function(Z){return ft(v,Z)},I.tickFormat=function(Z,te){return d3_scale_linearTickFormat(v,Z,te)},I.nice=function(Z){return rt(v,Z),V()},I.copy=function(){return Er(v,g,w,S)},V()}function lt(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function rt(v,g){return Je(v,fr(ut(v,g)[2])),Je(v,fr(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 ft(v,g){return e.range.apply(e,ut(v,g))}var Fr={s:1,g:1,p:1,r:1,e:1};function Gr(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function vt(v,g){var w=Gr(g[2]);return v in Fr?Math.abs(w-Gr(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return wt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function wt(v,g,w,S){function L(I){return(w?Math.log(I<0?0:I):-Math.log(I>0?0:-I))/Math.log(g)}function F(I){return w?Math.pow(g,I):-Math.pow(g,-I)}function V(I){return v(L(I))}return V.invert=function(I){return F(v.invert(I))},V.domain=function(I){return arguments.length?(w=I[0]>=0,v.domain((S=I.map(Number)).map(L)),V):S},V.base=function(I){return arguments.length?(g=+I,v.domain(S.map(L)),V):g},V.nice=function(){var I=Je(S.map(L),w?Math:Zt);return v.domain(I),S=I.map(F),V},V.ticks=function(){var I=rr(S),Z=[],te=I[0],ne=I[1],ge=Math.floor(L(te)),ye=Math.ceil(L(ne)),ze=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge<ye;ge++)for(var Ve=1;Ve<ze;Ve++)Z.push(F(ge)*Ve);Z.push(F(ge))}else for(Z.push(F(ge));ge++<ye;)for(var Ve=ze-1;Ve>0;Ve--)Z.push(F(ge)*Ve);for(ge=0;Z[ge]<te;ge++);for(ye=Z.length;Z[ye-1]>ne;ye--);Z=Z.slice(ge,ye)}return Z},V.copy=function(){return wt(v.copy(),g,w,S)},lt(V,v)}var Zt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return sa(e.scale.linear(),1,[0,1])};function sa(v,g,w){var S=Qt(g),L=Qt(1/g);function F(V){return v(S(V))}return F.invert=function(V){return L(v.invert(V))},F.domain=function(V){return arguments.length?(v.domain((w=V.map(Number)).map(S)),F):w},F.ticks=function(V){return ft(w,V)},F.tickFormat=function(V,I){return d3_scale_linearTickFormat(w,V,I)},F.nice=function(V){return F.domain(rt(w,V))},F.exponent=function(V){return arguments.length?(S=Qt(g=V),L=Qt(1/g),v.domain(w.map(S)),F):g},F.copy=function(){return sa(v.copy(),g,w)},lt(F,v)}function Qt(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 ba([],{t:"range",a:[[]]})};function ba(v,g){var w,S,L;function F(I){return S[((w.get(I)||(g.t==="range"?w.set(I,v.push(I)):NaN))-1)%S.length]}function V(I,Z){return e.range(v.length).map(function(te){return I+Z*te})}return F.domain=function(I){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,te=I.length,ne;++Z<te;)w.has(ne=I[Z])||w.set(ne,v.push(ne));return F[g.t].apply(F,g.a)},F.range=function(I){return arguments.length?(S=I,L=0,g={t:"range",a:arguments},F):S},F.rangePoints=function(I,Z){arguments.length<2&&(Z=0);var te=I[0],ne=I[1],ge=v.length<2?(te=(te+ne)/2,0):(ne-te)/(v.length-1+Z);return S=V(te+ge*Z/2,ge),L=0,g={t:"rangePoints",a:arguments},F},F.rangeRoundPoints=function(I,Z){arguments.length<2&&(Z=0);var te=I[0],ne=I[1],ge=v.length<2?(te=ne=Math.round((te+ne)/2),0):(ne-te)/(v.length-1+Z)|0;return S=V(te+Math.round(ge*Z/2+(ne-te-(v.length-1+Z)*ge)/2),ge),L=0,g={t:"rangeRoundPoints",a:arguments},F},F.rangeBands=function(I,Z,te){arguments.length<2&&(Z=0),arguments.length<3&&(te=Z);var ne=I[1]<I[0],ge=I[ne-0],ye=I[1-ne],ze=(ye-ge)/(v.length-Z+2*te);return S=V(ge+ze*te,ze),ne&&S.reverse(),L=ze*(1-Z),g={t:"rangeBands",a:arguments},F},F.rangeRoundBands=function(I,Z,te){arguments.length<2&&(Z=0),arguments.length<3&&(te=Z);var ne=I[1]<I[0],ge=I[ne-0],ye=I[1-ne],ze=Math.floor((ye-ge)/(v.length-Z+2*te));return S=V(ge+Math.round((ye-ge-(v.length-Z)*ze)/2),ze),ne&&S.reverse(),L=Math.round(ze*(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 ba(v,g)},F.domain(v)}e.scale.category10=function(){return e.scale.ordinal().range(zt)},e.scale.category20=function(){return e.scale.ordinal().range(En)},e.scale.category20b=function(){return e.scale.ordinal().range(Qa)},e.scale.category20c=function(){return e.scale.ordinal().range(_a)};var zt=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ja),En=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ja),Qa=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ja),_a=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ja);e.scale.quantile=function(){return jr([],[])};function jr(v,g){var w;function S(){var F=0,V=g.length;for(w=[];++F<V;)w[F-1]=e.quantile(v,F/V);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(d).filter(h).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 jr(v,g)},S()}e.scale.quantize=function(){return $t(0,1,[0,1])};function $t(v,g,w){var S,L;function F(I){return w[Math.max(0,Math.min(L,Math.floor(S*(I-v))))]}function V(){return S=w.length/(g-v),L=w.length-1,F}return F.domain=function(I){return arguments.length?(v=+I[0],g=+I[I.length-1],V()):[v,g]},F.range=function(I){return arguments.length?(w=I,V()):w},F.invertExtent=function(I){return I=w.indexOf(I),I=I<0?NaN:I/S+v,[I,I+1/S]},F.copy=function(){return $t(v,g,w)},V()}e.scale.threshold=function(){return ln([.5],[0,1])};function ln(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 ln(v,g)},w}e.scale.identity=function(){return Nn([0,1])};function Nn(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 ft(v,w)},g.tickFormat=function(w,S){return d3_scale_linearTickFormat(v,w,S)},g.copy=function(){return Nn(v)},g}e.svg={};function xi(){return 0}e.svg.arc=function(){var v=Qi,g=Dl,w=xi,S=Mo,L=Ui,F=Fl,V=As;function I(){var te=Math.max(0,+v.apply(this,arguments)),ne=Math.max(0,+g.apply(this,arguments)),ge=L.apply(this,arguments)-Me,ye=F.apply(this,arguments)-Me,ze=Math.abs(ye-ge),Ve=ge>ye?0:1;if(ne<te&&(_e=ne,ne=te,te=_e),ze>=Xr)return Z(ne,Ve)+(te?Z(te,1-Ve):"")+"Z";var _e,Se,Fe,Ye,Xe=0,Pe=0,br,Vr,$r,Wr,tt,at,Ct,it,_t=[];if((Ye=(+V.apply(this,arguments)||0)/2)&&(Fe=S===Mo?Math.sqrt(te*te+ne*ne):+S.apply(this,arguments),Ve||(Pe*=-1),ne&&(Pe=ua(Fe/ne*Math.sin(Ye))),te&&(Xe=ua(Fe/te*Math.sin(Ye)))),ne){br=ne*Math.cos(ge+Pe),Vr=ne*Math.sin(ge+Pe),$r=ne*Math.cos(ye-Pe),Wr=ne*Math.sin(ye-Pe);var ia=Math.abs(ye-ge-2*Pe)<=Zr?0:1;if(Pe&&vf(br,Vr,$r,Wr)===Ve^ia){var pn=(ge+ye)/2;br=ne*Math.cos(pn),Vr=ne*Math.sin(pn),$r=Wr=null}}else br=Vr=0;if(te){tt=te*Math.cos(ye-Xe),at=te*Math.sin(ye-Xe),Ct=te*Math.cos(ge+Xe),it=te*Math.sin(ge+Xe);var ca=Math.abs(ge-ye+2*Xe)<=Zr?0:1;if(Xe&&vf(tt,at,Ct,it)===1-Ve^ca){var Hr=(ge+ye)/2;tt=te*Math.cos(Hr),at=te*Math.sin(Hr),Ct=it=null}}else tt=at=0;if(ze>tr&&(_e=Math.min(Math.abs(ne-te)/2,+w.apply(this,arguments)))>.001){Se=te<ne^Ve?0:1;var St=_e,Et=_e;if(ze<Zr){var oa=Ct==null?[tt,at]:$r==null?[br,Vr]:au([br,Vr],[Ct,it],[$r,Wr],[tt,at]),rn=br-oa[0],Ln=Vr-oa[1],ri=$r-oa[0],wi=Wr-oa[1],Yi=1/Math.sin(Math.acos((rn*ri+Ln*wi)/(Math.sqrt(rn*rn+Ln*Ln)*Math.sqrt(ri*ri+wi*wi)))/2),Mi=Math.sqrt(oa[0]*oa[0]+oa[1]*oa[1]);Et=Math.min(_e,(te-Mi)/(Yi-1)),St=Math.min(_e,(ne-Mi)/(Yi+1))}if($r!=null){var ro=s1(Ct==null?[tt,at]:[Ct,it],[br,Vr],ne,St,Ve),fi=s1([$r,Wr],[tt,at],ne,St,Ve);_e===St?_t.push("M",ro[0],"A",St,",",St," 0 0,",Se," ",ro[1],"A",ne,",",ne," 0 ",1-Ve^vf(ro[1][0],ro[1][1],fi[1][0],fi[1][1]),",",Ve," ",fi[1],"A",St,",",St," 0 0,",Se," ",fi[0]):_t.push("M",ro[0],"A",St,",",St," 0 1,",Se," ",fi[0])}else _t.push("M",br,",",Vr);if(Ct!=null){var to=s1([br,Vr],[Ct,it],te,-Et,Ve),F0=s1([tt,at],$r==null?[br,Vr]:[$r,Wr],te,-Et,Ve);_e===Et?_t.push("L",F0[0],"A",Et,",",Et," 0 0,",Se," ",F0[1],"A",te,",",te," 0 ",Ve^vf(F0[1][0],F0[1][1],to[1][0],to[1][1]),",",1-Ve," ",to[1],"A",Et,",",Et," 0 0,",Se," ",to[0]):_t.push("L",F0[0],"A",Et,",",Et," 0 0,",Se," ",to[0])}else _t.push("L",tt,",",at)}else _t.push("M",br,",",Vr),$r!=null&&_t.push("A",ne,",",ne," 0 ",ia,",",Ve," ",$r,",",Wr),_t.push("L",tt,",",at),Ct!=null&&_t.push("A",te,",",te," 0 ",ca,",",1-Ve," ",Ct,",",it);return _t.push("Z"),_t.join("")}function Z(te,ne){return"M0,"+te+"A"+te+","+te+" 0 1,"+ne+" 0,"+-te+"A"+te+","+te+" 0 1,"+ne+" 0,"+te}return I.innerRadius=function(te){return arguments.length?(v=st(te),I):v},I.outerRadius=function(te){return arguments.length?(g=st(te),I):g},I.cornerRadius=function(te){return arguments.length?(w=st(te),I):w},I.padRadius=function(te){return arguments.length?(S=te==Mo?Mo:st(te),I):S},I.startAngle=function(te){return arguments.length?(L=st(te),I):L},I.endAngle=function(te){return arguments.length?(F=st(te),I):F},I.padAngle=function(te){return arguments.length?(V=st(te),I):V},I.centroid=function(){var te=(+v.apply(this,arguments)+ +g.apply(this,arguments))/2,ne=(+L.apply(this,arguments)+ +F.apply(this,arguments))/2-Me;return[Math.cos(ne)*te,Math.sin(ne)*te]},I};var Mo="auto";function Qi(v){return v.innerRadius}function Dl(v){return v.outerRadius}function Ui(v){return v.startAngle}function Fl(v){return v.endAngle}function As(v){return v&&v.padAngle}function vf(v,g,w,S){return(v-w)*g-(g-S)*v>0?0:1}function s1(v,g,w,S,L){var F=v[0]-g[0],V=v[1]-g[1],I=(L?S:-S)/Math.sqrt(F*F+V*V),Z=I*V,te=-I*F,ne=v[0]+Z,ge=v[1]+te,ye=g[0]+Z,ze=g[1]+te,Ve=(ne+ye)/2,_e=(ge+ze)/2,Se=ye-ne,Fe=ze-ge,Ye=Se*Se+Fe*Fe,Xe=w-S,Pe=ne*ze-ye*ge,br=(Fe<0?-1:1)*Math.sqrt(Math.max(0,Xe*Xe*Ye-Pe*Pe)),Vr=(Pe*Fe-Se*br)/Ye,$r=(-Pe*Se-Fe*br)/Ye,Wr=(Pe*Fe+Se*br)/Ye,tt=(-Pe*Se+Fe*br)/Ye,at=Vr-Ve,Ct=$r-_e,it=Wr-Ve,_t=tt-_e;return at*at+Ct*Ct>it*it+_t*_t&&(Vr=Wr,$r=tt),[[Vr-Z,$r-te],[Vr*w/Xe,$r*w/Xe]]}function u1(){return!0}function mp(v){var g=vs,w=eu,S=u1,L=Ao,F=L.key,V=.7;function I(Z){var te=[],ne=[],ge=-1,ye=Z.length,ze,Ve=st(g),_e=st(w);function Se(){te.push("M",L(v(ne),V))}for(;++ge<ye;)S.call(this,ze=Z[ge],ge)?ne.push([+Ve.call(this,ze,ge),+_e.call(this,ze,ge)]):ne.length&&(Se(),ne=[]);return ne.length&&Se(),te.length?te.join(""):null}return I.x=function(Z){return arguments.length?(g=Z,I):g},I.y=function(Z){return arguments.length?(w=Z,I):w},I.defined=function(Z){return arguments.length?(S=Z,I):S},I.interpolate=function(Z){return arguments.length?(typeof Z=="function"?F=L=Z:F=(L=E0.get(Z)||Ao).key,I):F},I.tension=function(Z){return arguments.length?(V=Z,I):V},I}e.svg.line=function(){return mp(N)};var E0=e.map({linear:Ao,"linear-closed":gp,step:yp,"step-before":f1,"step-after":Wv,basis:wp,"basis-open":Zv,"basis-closed":Cy,bundle:$v,cardinal:xp,"cardinal-open":bp,"cardinal-closed":_p,monotone:ve});E0.forEach(function(v,g){g.key=v,g.closed=/-closed$/.test(v)});function Ao(v){return v.length>1?v.join("L"):v+"Z"}function gp(v){return v.join("L")+"Z"}function yp(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 f1(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 Wv(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 bp(v,g){return v.length<4?Ao(v):v[1]+c1(v.slice(1,-1),L0(v,g))}function _p(v,g){return v.length<3?gp(v):v[0]+c1((v.push(v[0]),v),L0([v[v.length-2]].concat(v,[v[1]]),g))}function xp(v,g){return v.length<3?Ao(v):v[0]+c1(v,L0(v,g))}function c1(v,g){if(g.length<1||v.length!=g.length&&v.length!=g.length+2)return Ao(v);var w=v.length!=g.length,S="",L=v[0],F=v[1],V=g[0],I=V,Z=1;if(w&&(S+="Q"+(F[0]-V[0]*2/3)+","+(F[1]-V[1]*2/3)+","+F[0]+","+F[1],L=v[1],Z=2),g.length>1){I=g[1],F=v[Z],Z++,S+="C"+(L[0]+V[0])+","+(L[1]+V[1])+","+(F[0]-I[0])+","+(F[1]-I[1])+","+F[0]+","+F[1];for(var te=2;te<g.length;te++,Z++)F=v[Z],I=g[te],S+="S"+(F[0]-I[0])+","+(F[1]-I[1])+","+F[0]+","+F[1]}if(w){var ne=v[Z];S+="Q"+(F[0]+I[0]*2/3)+","+(F[1]+I[1]*2/3)+","+ne[0]+","+ne[1]}return S}function L0(v,g){for(var w=[],S=(1-g)/2,L,F=v[0],V=v[1],I=1,Z=v.length;++I<Z;)L=F,F=V,V=v[I],w.push([S*(V[0]-L[0]),S*(V[1]-L[1])]);return w}function wp(v){if(v.length<3)return Ao(v);var g=1,w=v.length,S=v[0],L=S[0],F=S[1],V=[L,L,L,(S=v[1])[0]],I=[F,F,F,S[1]],Z=[L,",",F,"L",eo(q,V),",",eo(q,I)];for(v.push(v[w-1]);++g<=w;)S=v[g],V.shift(),V.push(S[0]),I.shift(),I.push(S[1]),R(Z,V,I);return v.pop(),Z.push("L",S),Z.join("")}function Zv(v){if(v.length<4)return Ao(v);for(var g=[],w=-1,S=v.length,L,F=[0],V=[0];++w<3;)L=v[w],F.push(L[0]),V.push(L[1]);for(g.push(eo(q,F)+","+eo(q,V)),--w;++w<S;)L=v[w],F.shift(),F.push(L[0]),V.shift(),V.push(L[1]),R(g,F,V);return g.join("")}function Cy(v){for(var g,w=-1,S=v.length,L=S+4,F,V=[],I=[];++w<4;)F=v[w%S],V.push(F[0]),I.push(F[1]);for(g=[eo(q,V),",",eo(q,I)],--w;++w<L;)F=v[w%S],V.shift(),V.push(F[0]),I.shift(),I.push(F[1]),R(g,V,I);return g.join("")}function $v(v,g){var w=v.length-1;if(w)for(var S=v[0][0],L=v[0][1],F=v[w][0]-S,V=v[w][1]-L,I=-1,Z,te;++I<=w;)Z=v[I],te=I/w,Z[0]=g*Z[0]+(1-g)*(S+te*F),Z[1]=g*Z[1]+(1-g)*(L+te*V);return wp(v)}function eo(v,g){return v[0]*g[0]+v[1]*g[1]+v[2]*g[2]+v[3]*g[3]}var T=[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",eo(T,g),",",eo(T,w),",",eo(E,g),",",eo(E,w),",",eo(q,g),",",eo(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],V=S[0]=G(L,F);++g<w;)S[g]=(V+(V=G(L=F,F=v[g+1])))/2;return S[g]=V,S}function j(v){for(var g=[],w,S,L,F,V=U(v),I=-1,Z=v.length-1;++I<Z;)w=G(v[I],v[I+1]),b(w)<tr?V[I]=V[I+1]=0:(S=V[I]/w,L=V[I+1]/w,F=S*S+L*L,F>9&&(F=w*3/Math.sqrt(F),V[I]=F*S,V[I+1]=F*L));for(I=-1;++I<=Z;)F=(v[Math.min(Z,I+1)][0]-v[Math.max(0,I-1)][0])/(6*(1+V[I]*V[I])),g.push([F||0,V[I]*F||0]);return g}function ve(v){return v.length<3?Ao(v):v[0]+c1(v,j(v))}e.svg.line.radial=function(){var v=mp(pe);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function pe(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 fe(v){var g=vs,w=vs,S=0,L=eu,F=u1,V=Ao,I=V.key,Z=V,te="L",ne=.7;function ge(ye){var ze=[],Ve=[],_e=[],Se=-1,Fe=ye.length,Ye,Xe=st(g),Pe=st(S),br=g===w?function(){return $r}:st(w),Vr=S===L?function(){return Wr}:st(L),$r,Wr;function tt(){ze.push("M",V(v(_e),ne),te,Z(v(Ve.reverse()),ne),"Z")}for(;++Se<Fe;)F.call(this,Ye=ye[Se],Se)?(Ve.push([$r=+Xe.call(this,Ye,Se),Wr=+Pe.call(this,Ye,Se)]),_e.push([+br.call(this,Ye,Se),+Vr.call(this,Ye,Se)])):Ve.length&&(tt(),Ve=[],_e=[]);return Ve.length&&tt(),ze.length?ze.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"?I=V=ye:I=(V=E0.get(ye)||Ao).key,Z=V.reverse||V,te=V.closed?"M":"L",ge):I},ge.tension=function(ye){return arguments.length?(ne=ye,ge):ne},ge}f1.reverse=Wv,Wv.reverse=f1,e.svg.area=function(){return fe(N)},e.svg.area.radial=function(){var v=fe(pe);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 me(v){return v.source}function we(v){return v.target}e.svg.chord=function(){var v=me,g=we,w=De,S=Ui,L=Fl;function F(ne,ge){var ye=V(this,v,ne,ge),ze=V(this,g,ne,ge);return"M"+ye.p0+Z(ye.r,ye.p1,ye.a1-ye.a0)+(I(ye,ze)?te(ye.r,ye.p1,ye.r,ye.p0):te(ye.r,ye.p1,ze.r,ze.p0)+Z(ze.r,ze.p1,ze.a1-ze.a0)+te(ze.r,ze.p1,ye.r,ye.p0))+"Z"}function V(ne,ge,ye,ze){var Ve=ge.call(ne,ye,ze),_e=w.call(ne,Ve,ze),Se=S.call(ne,Ve,ze)-Me,Fe=L.call(ne,Ve,ze)-Me;return{r:_e,a0:Se,a1:Fe,p0:[_e*Math.cos(Se),_e*Math.sin(Se)],p1:[_e*Math.cos(Fe),_e*Math.sin(Fe)]}}function I(ne,ge){return ne.a0==ge.a0&&ne.a1==ge.a1}function Z(ne,ge,ye){return"A"+ne+","+ne+" 0 "+ +(ye>Zr)+",1 "+ge}function te(ne,ge,ye,ze){return"Q 0,0 "+ze}return F.radius=function(ne){return arguments.length?(w=st(ne),F):w},F.source=function(ne){return arguments.length?(v=st(ne),F):v},F.target=function(ne){return arguments.length?(g=st(ne),F):g},F.startAngle=function(ne){return arguments.length?(S=st(ne),F):S},F.endAngle=function(ne){return arguments.length?(L=st(ne),F):L},F};function De(v){return v.radius}e.svg.diagonal=function(){var v=me,g=we,w=He;function S(L,F){var V=v.call(this,L,F),I=g.call(this,L,F),Z=(V.y+I.y)/2,te=[V,{x:V.x,y:Z},{x:I.x,y:Z},I];return te=te.map(w),"M"+te[0]+"C"+te[1]+" "+te[2]+" "+te[3]}return S.source=function(L){return arguments.length?(v=st(L),S):v},S.target=function(L){return arguments.length?(g=st(L),S):g},S.projection=function(L){return arguments.length?(w=L,S):w},S};function He(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=He,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=ur;function w(S,L){return(ct.get(v.call(this,S,L))||Kr)(g.call(this,S,L))}return w.type=function(S){return arguments.length?(v=st(S),w):v},w.size=function(S){return arguments.length?(g=st(S),w):g},w};function ur(){return 64}function Tr(){return"circle"}function Kr(v){var g=Math.sqrt(v/Zr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ct=e.map({circle:Kr,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*mt)),w=g*mt;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/dt),w=g*dt/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/dt),w=g*dt/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ct.keys();var dt=Math.sqrt(3),mt=Math.tan(30*Be);K.transition=function(v){for(var g=In||++en,w=Qn(v),S=[],L,F,V=Gi||{time:Date.now(),ease:Wc,delay:0,duration:250},I=-1,Z=this.length;++I<Z;){S.push(L=[]);for(var te=this[I],ne=-1,ge=te.length;++ne<ge;)(F=te[ne])&&ei(F,ne,w,g,V),L.push(F)}return La(S,w,g)},K.interrupt=function(v){return this.each(v==null?bt:fa(Qn(v)))};var bt=fa(Qn());function fa(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 La(v,g,w){return ke(v,Vt),v.namespace=g,v.id=w,v}var Vt=[],en=0,In,Gi;Vt.call=K.call,Vt.empty=K.empty,Vt.node=K.node,Vt.size=K.size,e.transition=function(v,g){return v&&v.transition?In?v.transition(g):v:e.selection().transition(v)},e.transition.prototype=Vt,Vt.select=function(v){var g=this.id,w=this.namespace,S=[],L,F,V;v=J(v);for(var I=-1,Z=this.length;++I<Z;){S.push(L=[]);for(var te=this[I],ne=-1,ge=te.length;++ne<ge;)(V=te[ne])&&(F=v.call(V,V.__data__,ne,I))?("__data__"in V&&(F.__data__=V.__data__),ei(F,ne,w,g,V[w][g]),L.push(F)):L.push(null)}return La(S,w,g)},Vt.selectAll=function(v){var g=this.id,w=this.namespace,S=[],L,F,V,I,Z;v=ce(v);for(var te=-1,ne=this.length;++te<ne;)for(var ge=this[te],ye=-1,ze=ge.length;++ye<ze;)if(V=ge[ye]){Z=V[w][g],F=v.call(V,V.__data__,ye,te),S.push(L=[]);for(var Ve=-1,_e=F.length;++Ve<_e;)(I=F[Ve])&&ei(I,Ve,w,g,Z),L.push(I)}return La(S,w,g)},Vt.filter=function(v){var g=[],w,S,L;typeof v!="function"&&(v=Te(v));for(var F=0,V=this.length;F<V;F++){g.push(w=[]);for(var S=this[F],I=0,Z=S.length;I<Z;I++)(L=S[I])&&v.call(L,L.__data__,I,F)&&w.push(L)}return La(g,this.namespace,this.id)},Vt.tween=function(v,g){var w=this.id,S=this.namespace;return arguments.length<2?this.node()[S][w].tween.get(v):xr(this,g==null?function(L){L[S][w].tween.remove(v)}:function(L){L[S][w].tween.set(v,g)})};function ql(v,g,w,S){var L=v.id,F=v.namespace;return xr(v,typeof w=="function"?function(V,I,Z){V[F][L].tween.set(g,S(w.call(V,V.__data__,I,Z)))}:(w=S(w),function(V){V[F][L].tween.set(g,w)}))}Vt.attr=function(v,g){if(arguments.length<2){for(g in v)this.attr(g,v[g]);return this}var w=v=="transform"?nf:Cl,S=e.ns.qualify(v);function L(){this.removeAttribute(S)}function F(){this.removeAttributeNS(S.space,S.local)}function V(Z){return Z==null?L:(Z+="",function(){var te=this.getAttribute(S),ne;return te!==Z&&(ne=w(te,Z),function(ge){this.setAttribute(S,ne(ge))})})}function I(Z){return Z==null?F:(Z+="",function(){var te=this.getAttributeNS(S.space,S.local),ne;return te!==Z&&(ne=w(te,Z),function(ge){this.setAttributeNS(S.space,S.local,ne(ge))})})}return ql(this,"attr."+v,g,S.local?I:V)},Vt.attrTween=function(v,g){var w=e.ns.qualify(v);function S(F,V){var I=g.call(this,F,V,this.getAttribute(w));return I&&function(Z){this.setAttribute(w,I(Z))}}function L(F,V){var I=g.call(this,F,V,this.getAttributeNS(w.space,w.local));return I&&function(Z){this.setAttributeNS(w.space,w.local,I(Z))}}return this.tween("attr."+v,w.local?L:S)},Vt.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(V){return V==null?L:(V+="",function(){var I=i(this).getComputedStyle(this,null).getPropertyValue(v),Z;return I!==V&&(Z=Cl(I,V),function(te){this.style.setProperty(v,Z(te),w)})})}return ql(this,"style."+v,g,F)},Vt.styleTween=function(v,g,w){arguments.length<3&&(w="");function S(L,F){var V=g.call(this,L,F,i(this).getComputedStyle(this,null).getPropertyValue(v));return V&&function(I){this.style.setProperty(v,V(I),w)}}return this.tween("style."+v,S)},Vt.text=function(v){return ql(this,"text",v,Mu)};function Mu(v){return v==null&&(v=""),function(){this.textContent=v}}Vt.remove=function(){var v=this.namespace;return this.each("end.transition",function(){var g;this[v].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Vt.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)),xr(this,function(S){S[w][g].ease=v}))},Vt.delay=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:xr(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}))},Vt.duration=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:xr(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}))},Vt.each=function(v,g){var w=this.id,S=this.namespace;if(arguments.length<2){var L=Gi,F=In;try{In=w,xr(this,function(V,I,Z){Gi=V[S][w],v.call(V,V.__data__,I,Z)})}finally{Gi=L,In=F}}else xr(this,function(V){var I=V[S][w];(I.event||(I.event=e.dispatch("start","end","interrupt"))).on(v,g)});return this},Vt.transition=function(){for(var v=this.id,g=++en,w=this.namespace,S=[],L,F,V,I,Z=0,te=this.length;Z<te;Z++){S.push(L=[]);for(var F=this[Z],ne=0,ge=F.length;ne<ge;ne++)(V=F[ne])&&(I=V[w][v],ei(V,ne,w,g,{time:I.time,ease:I.ease,delay:I.delay+I.duration,duration:I.duration})),L.push(V)}return La(S,w,g)};function Qn(v){return v==null?"__transition__":"__transition_"+v+"__"}function ei(v,g,w,S,L){var F=v[w]||(v[w]={active:0,count:0}),V=F[S],I,Z,te,ne,ge;function ye(_e){var Se=V.delay;if(Z.t=Se+I,Se<=_e)return ze(_e-Se);Z.c=ze}function ze(_e){var Se=F.active,Fe=F[Se];Fe&&(Fe.timer.c=null,Fe.timer.t=NaN,--F.count,delete F[Se],Fe.event&&Fe.event.interrupt.call(v,v.__data__,Fe.index));for(var Ye in F)if(+Ye<S){var Xe=F[Ye];Xe.timer.c=null,Xe.timer.t=NaN,--F.count,delete F[Ye]}Z.c=Ve,cs(function(){return Z.c&&Ve(_e||1)&&(Z.c=null,Z.t=NaN),1},0,I),F.active=S,V.event&&V.event.start.call(v,v.__data__,g),ge=[],V.tween.forEach(function(Pe,br){(br=br.call(v,v.__data__,g))&&ge.push(br)}),ne=V.ease,te=V.duration}function Ve(_e){for(var Se=_e/te,Fe=ne(Se),Ye=ge.length;Ye>0;)ge[--Ye].call(v,Fe);if(Se>=1)return V.event&&V.event.end.call(v,v.__data__,g),--F.count?delete F[S]:delete v[w],1}V||(I=L.time,Z=cs(ye,0,I),V=F[S]={tween:new _,time:I,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=To,w=6,S=6,L=3,F=[10],V=null,I;function Z(te){te.each(function(){var ne=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),ze=V==null?ye.ticks?ye.ticks.apply(ye,F):ye.domain():V,Ve=I==null?ye.tickFormat?ye.tickFormat.apply(ye,F):N:I,_e=ne.selectAll(".tick").data(ze,ye),Se=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",tr),Fe=e.transition(_e.exit()).style("opacity",tr).remove(),Ye=e.transition(_e.order()).style("opacity",1),Xe=Math.max(w,0)+L,Pe,br=nr(ye),Vr=ne.selectAll(".domain").data([0]),$r=(Vr.enter().append("path").attr("class","domain"),e.transition(Vr));Se.append("line"),Se.append("text");var Wr=Se.select("line"),tt=Ye.select("line"),at=_e.select("text").text(Ve),Ct=Se.select("text"),it=Ye.select("text"),_t=g==="top"||g==="left"?-1:1,ia,pn,ca,Hr;if(g==="bottom"||g==="top"?(Pe=Rl,ia="x",ca="y",pn="x2",Hr="y2",at.attr("dy",_t<0?"0em":".71em").style("text-anchor","middle"),$r.attr("d","M"+br[0]+","+_t*S+"V0H"+br[1]+"V"+_t*S)):(Pe=zl,ia="y",ca="x",pn="y2",Hr="x2",at.attr("dy",".32em").style("text-anchor",_t<0?"end":"start"),$r.attr("d","M"+_t*S+","+br[0]+"H0V"+br[1]+"H"+_t*S)),Wr.attr(Hr,_t*w),Ct.attr(ca,_t*Xe),tt.attr(pn,0).attr(Hr,_t*w),it.attr(ia,0).attr(ca,_t*Xe),ye.rangeBand){var St=ye,Et=St.rangeBand()/2;ge=ye=function(oa){return St(oa)+Et}}else ge.rangeBand?ge=ye:Fe.call(Pe,ye,ge);Se.call(Pe,ge,ye),Ye.call(Pe,ye,ye)})}return Z.scale=function(te){return arguments.length?(v=te,Z):v},Z.orient=function(te){return arguments.length?(g=te in Pl?te+"":To,Z):g},Z.ticks=function(){return arguments.length?(F=t(arguments),Z):F},Z.tickValues=function(te){return arguments.length?(V=te,Z):V},Z.tickFormat=function(te){return arguments.length?(I=te,Z):I},Z.tickSize=function(te){var ne=arguments.length;return ne?(w=+te,S=+arguments[ne-1],Z):w},Z.innerTickSize=function(te){return arguments.length?(w=+te,Z):w},Z.outerTickSize=function(te){return arguments.length?(S=+te,Z):S},Z.tickPadding=function(te){return arguments.length?(L=+te,Z):L},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var To="bottom",Pl={top:1,right:1,bottom:1,left:1};function Rl(v,g,w){v.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:w(S))+",0)"})}function zl(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=Re(ne,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],L=[0,0],F,V,I=!0,Z=!0,te=Wo[0];function ne(_e){_e.each(function(){var Se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),Fe=Se.selectAll(".background").data([0]);Fe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ye=Se.selectAll(".resize").data(te,N);Ye.exit().remove(),Ye.enter().append("g").attr("class",function(Vr){return"resize "+Vr}).style("cursor",function(Vr){return Ts[Vr]}).append("rect").attr("x",function(Vr){return/[ew]$/.test(Vr)?-3:null}).attr("y",function(Vr){return/^[ns]/.test(Vr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ye.style("display",ne.empty()?"none":null);var Xe=e.transition(Se),Pe=e.transition(Fe),br;g&&(br=nr(g),Pe.attr("x",br[0]).attr("width",br[1]-br[0]),ye(Xe)),w&&(br=nr(w),Pe.attr("y",br[0]).attr("height",br[1]-br[0]),ze(Xe)),ge(Xe)})}ne.event=function(_e){_e.each(function(){var Se=v.of(this,arguments),Fe={x:S,y:L,i:F,j:V},Ye=this.__chart__||Fe;this.__chart__=Fe,In?e.select(this).transition().each("start.brush",function(){F=Ye.i,V=Ye.j,S=Ye.x,L=Ye.y,Se({type:"brushstart"})}).tween("brush:brush",function(){var Xe=ys(S,Fe.x),Pe=ys(L,Fe.y);return F=V=null,function(br){S=Fe.x=Xe(br),L=Fe.y=Pe(br),Se({type:"brush",mode:"resize"})}}).each("end.brush",function(){F=Fe.i,V=Fe.j,Se({type:"brush",mode:"resize"}),Se({type:"brushend"})}):(Se({type:"brushstart"}),Se({type:"brush",mode:"resize"}),Se({type:"brushend"}))})};function ge(_e){_e.selectAll(".resize").attr("transform",function(Se){return"translate("+S[+/e$/.test(Se)]+","+L[+/^s/.test(Se)]+")"})}function ye(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(_e){_e.select(".extent").attr("y",L[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Ve(){var _e=this,Se=e.select(e.event.target),Fe=v.of(_e,arguments),Ye=e.select(_e),Xe=Se.datum(),Pe=!/^(n|s)$/.test(Xe)&&g,br=!/^(e|w)$/.test(Xe)&&w,Vr=Se.classed("extent"),$r=Br(_e),Wr,tt=e.mouse(_e),at,Ct=e.select(i(_e)).on("keydown.brush",ia).on("keyup.brush",pn);if(e.event.changedTouches?Ct.on("touchmove.brush",ca).on("touchend.brush",St):Ct.on("mousemove.brush",ca).on("mouseup.brush",St),Ye.interrupt().selectAll("*").interrupt(),Vr)tt[0]=S[0]-tt[0],tt[1]=L[0]-tt[1];else if(Xe){var it=+/w$/.test(Xe),_t=+/^n/.test(Xe);at=[S[1-it]-tt[0],L[1-_t]-tt[1]],tt[0]=S[it],tt[1]=L[_t]}else e.event.altKey&&(Wr=tt.slice());Ye.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Se.style("cursor")),Fe({type:"brushstart"}),ca();function ia(){e.event.keyCode==32&&(Vr||(Wr=null,tt[0]-=S[1],tt[1]-=L[1],Vr=2),xe())}function pn(){e.event.keyCode==32&&Vr==2&&(tt[0]+=S[1],tt[1]+=L[1],Vr=0,xe())}function ca(){var Et=e.mouse(_e),oa=!1;at&&(Et[0]+=at[0],Et[1]+=at[1]),Vr||(e.event.altKey?(Wr||(Wr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),tt[0]=S[+(Et[0]<Wr[0])],tt[1]=L[+(Et[1]<Wr[1])]):Wr=null),Pe&&Hr(Et,g,0)&&(ye(Ye),oa=!0),br&&Hr(Et,w,1)&&(ze(Ye),oa=!0),oa&&(ge(Ye),Fe({type:"brush",mode:Vr?"move":"resize"}))}function Hr(Et,oa,rn){var Ln=nr(oa),ri=Ln[0],wi=Ln[1],Yi=tt[rn],Mi=rn?L:S,ro=Mi[1]-Mi[0],fi,to;if(Vr&&(ri-=Yi,wi-=ro+Yi),fi=(rn?Z:I)?Math.max(ri,Math.min(wi,Et[rn])):Et[rn],Vr?to=(fi+=Yi)+ro:(Wr&&(Yi=Math.max(ri,Math.min(wi,2*Wr[rn]-fi))),Yi<fi?(to=fi,fi=Yi):to=Yi),Mi[0]!=fi||Mi[1]!=to)return rn?V=null:F=null,Mi[0]=fi,Mi[1]=to,!0}function St(){ca(),Ye.style("pointer-events","all").selectAll(".resize").style("display",ne.empty()?"none":null),e.select("body").style("cursor",null),Ct.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),$r(),Fe({type:"brushend"})}}return ne.x=function(_e){return arguments.length?(g=_e,te=Wo[!g<<1|!w],ne):g},ne.y=function(_e){return arguments.length?(w=_e,te=Wo[!g<<1|!w],ne):w},ne.clamp=function(_e){return arguments.length?(g&&w?(I=!!_e[0],Z=!!_e[1]):g?I=!!_e:w&&(Z=!!_e),ne):g&&w?[I,Z]:g?I:w?Z:null},ne.extent=function(_e){var Se,Fe,Ye,Xe,Pe;return arguments.length?(g&&(Se=_e[0],Fe=_e[1],w&&(Se=Se[0],Fe=Fe[0]),F=[Se,Fe],g.invert&&(Se=g(Se),Fe=g(Fe)),Fe<Se&&(Pe=Se,Se=Fe,Fe=Pe),(Se!=S[0]||Fe!=S[1])&&(S=[Se,Fe])),w&&(Ye=_e[0],Xe=_e[1],g&&(Ye=Ye[1],Xe=Xe[1]),V=[Ye,Xe],w.invert&&(Ye=w(Ye),Xe=w(Xe)),Xe<Ye&&(Pe=Ye,Ye=Xe,Xe=Pe),(Ye!=L[0]||Xe!=L[1])&&(L=[Ye,Xe])),ne):(g&&(F?(Se=F[0],Fe=F[1]):(Se=S[0],Fe=S[1],g.invert&&(Se=g.invert(Se),Fe=g.invert(Fe)),Fe<Se&&(Pe=Se,Se=Fe,Fe=Pe))),w&&(V?(Ye=V[0],Xe=V[1]):(Ye=L[0],Xe=L[1],w.invert&&(Ye=w.invert(Ye),Xe=w.invert(Xe)),Xe<Ye&&(Pe=Ye,Ye=Xe,Xe=Pe))),g&&w?[[Se,Ye],[Fe,Xe]]:g?[Se,Fe]:w&&[Ye,Xe])},ne.clear=function(){return ne.empty()||(S=[0,0],L=[0,0],F=V=null),ne},ne.empty=function(){return!!g&&S[0]==S[1]||!!w&&L[0]==L[1]},e.rebind(ne,v,"on")};var Ts={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Wo=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=Wt(function(v){return v.responseText}),e.json=function(v,g){return Ur(v,"application/json",Au,g)};function Au(v){return JSON.parse(v.responseText)}e.html=function(v,g){return Ur(v,"text/html",D0,g)};function D0(v){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(v.responseText)}e.xml=Wt(function(v){return v.responseXML}),typeof kp=="object"&&kp.exports?kp.exports=e:this.d3=e}).apply(self)});var Ey=oe((Cp,V_)=>{(function(e,r){typeof Cp=="object"&&typeof V_!="undefined"?r(Cp):(e=e||self,r(e.d3=e.d3||{}))})(Cp,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Oe,xr,Rr){function zr(Ce){return Te(Ce=arguments.length===0?new Date:new Date(+Ce)),Ce}return zr.floor=function(Ce){return Te(Ce=new Date(+Ce)),Ce},zr.ceil=function(Ce){return Te(Ce=new Date(Ce-1)),Oe(Ce,1),Te(Ce),Ce},zr.round=function(Ce){var Ue=zr(Ce),cr=zr.ceil(Ce);return Ce-Ue<cr-Ce?Ue:cr},zr.offset=function(Ce,Ue){return Oe(Ce=new Date(+Ce),Ue==null?1:Math.floor(Ue)),Ce},zr.range=function(Ce,Ue,cr){var Mr=[],hr;if(Ce=zr.ceil(Ce),cr=cr==null?1:Math.floor(cr),!(Ce<Ue)||!(cr>0))return Mr;do Mr.push(hr=new Date(+Ce)),Oe(Ce,cr),Te(Ce);while(hr<Ce&&Ce<Ue);return Mr},zr.filter=function(Ce){return a(function(Ue){if(Ue>=Ue)for(;Te(Ue),!Ce(Ue);)Ue.setTime(Ue-1)},function(Ue,cr){if(Ue>=Ue)if(cr<0)for(;++cr<=0;)for(;Oe(Ue,-1),!Ce(Ue););else for(;--cr>=0;)for(;Oe(Ue,1),!Ce(Ue););})},xr&&(zr.count=function(Ce,Ue){return r.setTime(+Ce),t.setTime(+Ue),Te(r),Te(t),Math.floor(xr(r,t))},zr.every=function(Ce){return Ce=Math.floor(Ce),!isFinite(Ce)||!(Ce>0)?null:Ce>1?zr.filter(Rr?function(Ue){return Rr(Ue)%Ce===0}:function(Ue){return zr.count(0,Ue)%Ce===0}):zr}),zr}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,xr){Oe.setTime(+Oe+xr*Te)},function(Oe,xr){return(xr-Oe)/Te}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=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()}),d=c.range,h=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()}),p=h.range,m=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Oe){Te.setTime(+Te+Oe*s)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getHours()}),y=m.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)/u},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,xr){Oe.setDate(Oe.getDate()+xr*7)},function(Oe,xr){return(xr-Oe-(xr.getTimezoneOffset()-Oe.getTimezoneOffset())*l)/f})}var _=x(0),M=x(1),A=x(2),k=x(3),D=x(4),P=x(5),z=x(6),B=_.range,Y=M.range,H=A.range,X=k.range,N=D.range,Q=P.range,ee=z.range,ae=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()}),re=ae.range,ie=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()});ie.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,xr){Oe.setFullYear(Oe.getFullYear()+xr*Te)})};var ue=ie.range,xe=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=xe.range,Re=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Oe){Te.setTime(+Te+Oe*s)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getUTCHours()}),Ne=Re.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)/u},function(Te){return Te.getUTCDate()-1}),We=ke.range;function W(Te){return a(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-Te)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,xr){Oe.setUTCDate(Oe.getUTCDate()+xr*7)},function(Oe,xr){return(xr-Oe)/f})}var se=W(0),de=W(1),K=W(2),J=W(3),ce=W(4),be=W(5),Le=W(6),je=se.range,er=de.range,$e=K.range,ar=J.range,Ie=ce.range,ir=be.range,dr=Le.range,Ar=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()}),Qe=Ar.range,mr=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()});mr.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,xr){Oe.setUTCFullYear(Oe.getUTCFullYear()+xr*Te)})};var Pr=mr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=Y,e.timeMonth=ae,e.timeMonths=re,e.timeSaturday=z,e.timeSaturdays=ee,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=_,e.timeSundays=B,e.timeThursday=D,e.timeThursdays=N,e.timeTuesday=A,e.timeTuesdays=H,e.timeWednesday=k,e.timeWednesdays=X,e.timeWeek=_,e.timeWeeks=B,e.timeYear=ie,e.timeYears=ue,e.utcDay=ke,e.utcDays=We,e.utcFriday=be,e.utcFridays=ir,e.utcHour=Re,e.utcHours=Ne,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=xe,e.utcMinutes=Ee,e.utcMonday=de,e.utcMondays=er,e.utcMonth=Ar,e.utcMonths=Qe,e.utcSaturday=Le,e.utcSaturdays=dr,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=se,e.utcSundays=je,e.utcThursday=ce,e.utcThursdays=Ie,e.utcTuesday=K,e.utcTuesdays=$e,e.utcWednesday=J,e.utcWednesdays=ar,e.utcWeek=se,e.utcWeeks=je,e.utcYear=mr,e.utcYears=Pr,Object.defineProperty(e,"__esModule",{value:!0})})});var d1=oe((Sp,X_)=>{(function(e,r){typeof Sp=="object"&&typeof X_!="undefined"?r(Sp,Ey()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Sp,function(e,r){"use strict";function t(Me){if(0<=Me.y&&Me.y<100){var Be=new Date(-1,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L);return Be.setFullYear(Me.y),Be}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 Be=new Date(Date.UTC(-1,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L));return Be.setUTCFullYear(Me.y),Be}return new Date(Date.UTC(Me.y,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L))}function n(Me,Be,or){return{y:Me,m:Be,d:or,H:0,M:0,S:0,L:0}}function i(Me){var Be=Me.dateTime,or=Me.date,vr=Me.time,Ft=Me.periods,Kt=Me.days,ua=Me.shortDays,ga=Me.months,Ut=Me.shortMonths,Rt=d(Ft),na=h(Ft),Gt=d(Kt),Ma=h(Kt),Ca=d(ua),An=h(ua),cn=d(ga),Sa=h(ga),za=d(Ut),Na=h(Ut),Ea={a:Bo,A:Ii,b:jt,B:Bi,c:null,d:ae,e:ae,f:Ee,g:be,G:je,H:re,I:ie,j:ue,L:xe,m:Re,M:Ne,p:Ja,q:oi,Q:Br,s:et,S:ke,u:We,U:W,V:de,w:K,W:J,x:null,X:null,y:ce,Y:Le,Z:er,"%":Lr},vn={a:li,A:mo,b:ss,B:Ks,c:null,d:$e,e:$e,f:Ar,g:cr,G:hr,H:ar,I:Ie,j:ir,L:dr,m:Qe,M:mr,p:us,q:Qs,Q:Br,s:et,S:Pr,u:Te,U:Oe,V:Rr,w:zr,W:Ce,x:null,X:null,y:Ue,Y:Mr,Z:kr,"%":Lr},Ia={a:Yt,A:Ba,b:Tn,B:ya,c:bi,d:D,e:D,f:X,g:_,G:x,H:z,I:z,j:P,L:H,m:k,M:B,p:pt,q:A,Q,s:ee,S:Y,u:m,U:y,V:b,w:p,W:C,x:po,X:Ni,y:_,Y:x,Z:M,"%":N};Ea.x=dn(or,Ea),Ea.X=dn(vr,Ea),Ea.c=dn(Be,Ea),vn.x=dn(or,vn),vn.X=dn(vr,vn),vn.c=dn(Be,vn);function dn(ot,st){return function(Wt){var Ur=[],kn=-1,la=0,Xa=ot.length,Ka,jn,bl;for(Wt instanceof Date||(Wt=new Date(+Wt));++kn<Xa;)ot.charCodeAt(kn)===37&&(Ur.push(ot.slice(la,kn)),(jn=o[Ka=ot.charAt(++kn)])!=null?Ka=ot.charAt(++kn):jn=Ka==="e"?" ":"0",(bl=st[Ka])&&(Ka=bl(Wt,jn)),Ur.push(Ka),la=kn+1);return Ur.push(ot.slice(la,kn)),Ur.join("")}}function Dr(ot,st){return function(Wt){var Ur=n(1900,void 0,1),kn=kt(Ur,ot,Wt+="",0),la,Xa;if(kn!=Wt.length)return null;if("Q"in Ur)return new Date(Ur.Q);if("s"in Ur)return new Date(Ur.s*1e3+("L"in Ur?Ur.L:0));if(st&&!("Z"in Ur)&&(Ur.Z=0),"p"in Ur&&(Ur.H=Ur.H%12+Ur.p*12),Ur.m===void 0&&(Ur.m="q"in Ur?Ur.q:0),"V"in Ur){if(Ur.V<1||Ur.V>53)return null;"w"in Ur||(Ur.w=1),"Z"in Ur?(la=a(n(Ur.y,0,1)),Xa=la.getUTCDay(),la=Xa>4||Xa===0?r.utcMonday.ceil(la):r.utcMonday(la),la=r.utcDay.offset(la,(Ur.V-1)*7),Ur.y=la.getUTCFullYear(),Ur.m=la.getUTCMonth(),Ur.d=la.getUTCDate()+(Ur.w+6)%7):(la=t(n(Ur.y,0,1)),Xa=la.getDay(),la=Xa>4||Xa===0?r.timeMonday.ceil(la):r.timeMonday(la),la=r.timeDay.offset(la,(Ur.V-1)*7),Ur.y=la.getFullYear(),Ur.m=la.getMonth(),Ur.d=la.getDate()+(Ur.w+6)%7)}else("W"in Ur||"U"in Ur)&&("w"in Ur||(Ur.w="u"in Ur?Ur.u%7:"W"in Ur?1:0),Xa="Z"in Ur?a(n(Ur.y,0,1)).getUTCDay():t(n(Ur.y,0,1)).getDay(),Ur.m=0,Ur.d="W"in Ur?(Ur.w+6)%7+Ur.W*7-(Xa+5)%7:Ur.w+Ur.U*7-(Xa+6)%7);return"Z"in Ur?(Ur.H+=Ur.Z/100|0,Ur.M+=Ur.Z%100,a(Ur)):t(Ur)}}function kt(ot,st,Wt,Ur){for(var kn=0,la=st.length,Xa=Wt.length,Ka,jn;kn<la;){if(Ur>=Xa)return-1;if(Ka=st.charCodeAt(kn++),Ka===37){if(Ka=st.charAt(kn++),jn=Ia[Ka in o?st.charAt(kn++):Ka],!jn||(Ur=jn(ot,Wt,Ur))<0)return-1}else if(Ka!=Wt.charCodeAt(Ur++))return-1}return Ur}function pt(ot,st,Wt){var Ur=Rt.exec(st.slice(Wt));return Ur?(ot.p=na[Ur[0].toLowerCase()],Wt+Ur[0].length):-1}function Yt(ot,st,Wt){var Ur=Ca.exec(st.slice(Wt));return Ur?(ot.w=An[Ur[0].toLowerCase()],Wt+Ur[0].length):-1}function Ba(ot,st,Wt){var Ur=Gt.exec(st.slice(Wt));return Ur?(ot.w=Ma[Ur[0].toLowerCase()],Wt+Ur[0].length):-1}function Tn(ot,st,Wt){var Ur=za.exec(st.slice(Wt));return Ur?(ot.m=Na[Ur[0].toLowerCase()],Wt+Ur[0].length):-1}function ya(ot,st,Wt){var Ur=cn.exec(st.slice(Wt));return Ur?(ot.m=Sa[Ur[0].toLowerCase()],Wt+Ur[0].length):-1}function bi(ot,st,Wt){return kt(ot,Be,st,Wt)}function po(ot,st,Wt){return kt(ot,or,st,Wt)}function Ni(ot,st,Wt){return kt(ot,vr,st,Wt)}function Bo(ot){return ua[ot.getDay()]}function Ii(ot){return Kt[ot.getDay()]}function jt(ot){return Ut[ot.getMonth()]}function Bi(ot){return ga[ot.getMonth()]}function Ja(ot){return Ft[+(ot.getHours()>=12)]}function oi(ot){return 1+~~(ot.getMonth()/3)}function li(ot){return ua[ot.getUTCDay()]}function mo(ot){return Kt[ot.getUTCDay()]}function ss(ot){return Ut[ot.getUTCMonth()]}function Ks(ot){return ga[ot.getUTCMonth()]}function us(ot){return Ft[+(ot.getUTCHours()>=12)]}function Qs(ot){return 1+~~(ot.getUTCMonth()/3)}return{format:function(ot){var st=dn(ot+="",Ea);return st.toString=function(){return ot},st},parse:function(ot){var st=Dr(ot+="",!1);return st.toString=function(){return ot},st},utcFormat:function(ot){var st=dn(ot+="",vn);return st.toString=function(){return ot},st},utcParse:function(ot){var st=Dr(ot+="",!0);return st.toString=function(){return ot},st}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Me,Be,or){var vr=Me<0?"-":"",Ft=(vr?-Me:Me)+"",Kt=Ft.length;return vr+(Kt<or?new Array(or-Kt+1).join(Be)+Ft:Ft)}function c(Me){return Me.replace(u,"\\$&")}function d(Me){return new RegExp("^(?:"+Me.map(c).join("|")+")","i")}function h(Me){for(var Be={},or=-1,vr=Me.length;++or<vr;)Be[Me[or].toLowerCase()]=or;return Be}function p(Me,Be,or){var vr=l.exec(Be.slice(or,or+1));return vr?(Me.w=+vr[0],or+vr[0].length):-1}function m(Me,Be,or){var vr=l.exec(Be.slice(or,or+1));return vr?(Me.u=+vr[0],or+vr[0].length):-1}function y(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.U=+vr[0],or+vr[0].length):-1}function b(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.V=+vr[0],or+vr[0].length):-1}function C(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.W=+vr[0],or+vr[0].length):-1}function x(Me,Be,or){var vr=l.exec(Be.slice(or,or+4));return vr?(Me.y=+vr[0],or+vr[0].length):-1}function _(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.y=+vr[0]+(+vr[0]>68?1900:2e3),or+vr[0].length):-1}function M(Me,Be,or){var vr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Be.slice(or,or+6));return vr?(Me.Z=vr[1]?0:-(vr[2]+(vr[3]||"00")),or+vr[0].length):-1}function A(Me,Be,or){var vr=l.exec(Be.slice(or,or+1));return vr?(Me.q=vr[0]*3-3,or+vr[0].length):-1}function k(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.m=vr[0]-1,or+vr[0].length):-1}function D(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.d=+vr[0],or+vr[0].length):-1}function P(Me,Be,or){var vr=l.exec(Be.slice(or,or+3));return vr?(Me.m=0,Me.d=+vr[0],or+vr[0].length):-1}function z(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.H=+vr[0],or+vr[0].length):-1}function B(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.M=+vr[0],or+vr[0].length):-1}function Y(Me,Be,or){var vr=l.exec(Be.slice(or,or+2));return vr?(Me.S=+vr[0],or+vr[0].length):-1}function H(Me,Be,or){var vr=l.exec(Be.slice(or,or+3));return vr?(Me.L=+vr[0],or+vr[0].length):-1}function X(Me,Be,or){var vr=l.exec(Be.slice(or,or+6));return vr?(Me.L=Math.floor(vr[0]/1e3),or+vr[0].length):-1}function N(Me,Be,or){var vr=s.exec(Be.slice(or,or+1));return vr?or+vr[0].length:-1}function Q(Me,Be,or){var vr=l.exec(Be.slice(or));return vr?(Me.Q=+vr[0],or+vr[0].length):-1}function ee(Me,Be,or){var vr=l.exec(Be.slice(or));return vr?(Me.s=+vr[0],or+vr[0].length):-1}function ae(Me,Be){return f(Me.getDate(),Be,2)}function re(Me,Be){return f(Me.getHours(),Be,2)}function ie(Me,Be){return f(Me.getHours()%12||12,Be,2)}function ue(Me,Be){return f(1+r.timeDay.count(r.timeYear(Me),Me),Be,3)}function xe(Me,Be){return f(Me.getMilliseconds(),Be,3)}function Ee(Me,Be){return xe(Me,Be)+"000"}function Re(Me,Be){return f(Me.getMonth()+1,Be,2)}function Ne(Me,Be){return f(Me.getMinutes(),Be,2)}function ke(Me,Be){return f(Me.getSeconds(),Be,2)}function We(Me){var Be=Me.getDay();return Be===0?7:Be}function W(Me,Be){return f(r.timeSunday.count(r.timeYear(Me)-1,Me),Be,2)}function se(Me){var Be=Me.getDay();return Be>=4||Be===0?r.timeThursday(Me):r.timeThursday.ceil(Me)}function de(Me,Be){return Me=se(Me),f(r.timeThursday.count(r.timeYear(Me),Me)+(r.timeYear(Me).getDay()===4),Be,2)}function K(Me){return Me.getDay()}function J(Me,Be){return f(r.timeMonday.count(r.timeYear(Me)-1,Me),Be,2)}function ce(Me,Be){return f(Me.getFullYear()%100,Be,2)}function be(Me,Be){return Me=se(Me),f(Me.getFullYear()%100,Be,2)}function Le(Me,Be){return f(Me.getFullYear()%1e4,Be,4)}function je(Me,Be){var or=Me.getDay();return Me=or>=4||or===0?r.timeThursday(Me):r.timeThursday.ceil(Me),f(Me.getFullYear()%1e4,Be,4)}function er(Me){var Be=Me.getTimezoneOffset();return(Be>0?"-":(Be*=-1,"+"))+f(Be/60|0,"0",2)+f(Be%60,"0",2)}function $e(Me,Be){return f(Me.getUTCDate(),Be,2)}function ar(Me,Be){return f(Me.getUTCHours(),Be,2)}function Ie(Me,Be){return f(Me.getUTCHours()%12||12,Be,2)}function ir(Me,Be){return f(1+r.utcDay.count(r.utcYear(Me),Me),Be,3)}function dr(Me,Be){return f(Me.getUTCMilliseconds(),Be,3)}function Ar(Me,Be){return dr(Me,Be)+"000"}function Qe(Me,Be){return f(Me.getUTCMonth()+1,Be,2)}function mr(Me,Be){return f(Me.getUTCMinutes(),Be,2)}function Pr(Me,Be){return f(Me.getUTCSeconds(),Be,2)}function Te(Me){var Be=Me.getUTCDay();return Be===0?7:Be}function Oe(Me,Be){return f(r.utcSunday.count(r.utcYear(Me)-1,Me),Be,2)}function xr(Me){var Be=Me.getUTCDay();return Be>=4||Be===0?r.utcThursday(Me):r.utcThursday.ceil(Me)}function Rr(Me,Be){return Me=xr(Me),f(r.utcThursday.count(r.utcYear(Me),Me)+(r.utcYear(Me).getUTCDay()===4),Be,2)}function zr(Me){return Me.getUTCDay()}function Ce(Me,Be){return f(r.utcMonday.count(r.utcYear(Me)-1,Me),Be,2)}function Ue(Me,Be){return f(Me.getUTCFullYear()%100,Be,2)}function cr(Me,Be){return Me=xr(Me),f(Me.getUTCFullYear()%100,Be,2)}function Mr(Me,Be){return f(Me.getUTCFullYear()%1e4,Be,4)}function hr(Me,Be){var or=Me.getUTCDay();return Me=or>=4||or===0?r.utcThursday(Me):r.utcThursday.ceil(Me),f(Me.getUTCFullYear()%1e4,Be,4)}function kr(){return"+0000"}function Lr(){return"%"}function Br(Me){return+Me}function et(Me){return Math.floor(+Me/1e3)}var lr;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 lr=i(Me),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var tr="%Y-%m-%dT%H:%M:%S.%LZ";function qr(Me){return Me.toISOString()}var Zr=Date.prototype.toISOString?qr:e.utcFormat(tr);function Or(Me){var Be=new Date(Me);return isNaN(Be)?null:Be}var Xr=+new Date("2000-01-01T00:00:00.000Z")?Or:e.utcParse(tr);e.isoFormat=Zr,e.isoParse=Xr,e.timeFormatDefaultLocale=Cr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ly=oe((Ep,j_)=>{(function(e,r){typeof Ep=="object"&&typeof j_!="undefined"?r(Ep):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Ep,(function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,D){if((P=(k=D?k.toExponential(D-1):k.toExponential()).indexOf("e"))<0)return null;var P,z=k.slice(0,P);return[z.length>1?z[0]+z.slice(2):z,+k.slice(P+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,D){return function(P,z){for(var B=P.length,Y=[],H=0,X=k[0],N=0;B>0&&X>0&&(N+X+1>z&&(X=Math.max(1,z-N)),Y.push(P.substring(B-=X,B+X)),!((N+=X+1)>z));)X=k[H=(H+1)%k.length];return Y.reverse().join(D)}}function i(k){return function(D){return D.replace(/[0-9]/g,function(P){return k[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(k){if(!(D=o.exec(k)))throw new Error("invalid format: "+k);var D;return new s({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=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.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 u(k){e:for(var D=k.length,P=1,z=-1,B;P<D;++P)switch(k[P]){case".":z=B=P;break;case"0":z===0&&(z=P),B=P;break;default:if(!+k[P])break e;z>0&&(z=0);break}return z>0?k.slice(0,z)+k.slice(B+1):k}var f;function c(k,D){var P=t(k,D);if(!P)return k+"";var z=P[0],B=P[1],Y=B-(f=Math.max(-8,Math.min(8,Math.floor(B/3)))*3)+1,H=z.length;return Y===H?z:Y>H?z+new Array(Y-H+1).join("0"):Y>0?z.slice(0,Y)+"."+z.slice(Y):"0."+new Array(1-Y).join("0")+t(k,Math.max(0,D+Y-1))[0]}function d(k,D){var P=t(k,D);if(!P)return k+"";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 h={"%":function(k,D){return(k*100).toFixed(D)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,D){return k.toExponential(D)},f:function(k,D){return k.toFixed(D)},g:function(k,D){return k.toPrecision(D)},o:function(k){return Math.round(k).toString(8)},p:function(k,D){return d(k*100,D)},r:d,s:c,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function p(k){return k}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(k){var D=k.grouping===void 0||k.thousands===void 0?p:n(m.call(k.grouping,Number),k.thousands+""),P=k.currency===void 0?"":k.currency[0]+"",z=k.currency===void 0?"":k.currency[1]+"",B=k.decimal===void 0?".":k.decimal+"",Y=k.numerals===void 0?p:i(m.call(k.numerals,String)),H=k.percent===void 0?"%":k.percent+"",X=k.minus===void 0?"-":k.minus+"",N=k.nan===void 0?"NaN":k.nan+"";function Q(ae){ae=l(ae);var re=ae.fill,ie=ae.align,ue=ae.sign,xe=ae.symbol,Ee=ae.zero,Re=ae.width,Ne=ae.comma,ke=ae.precision,We=ae.trim,W=ae.type;W==="n"?(Ne=!0,W="g"):h[W]||(ke===void 0&&(ke=12),We=!0,W="g"),(Ee||re==="0"&&ie==="=")&&(Ee=!0,re="0",ie="=");var se=xe==="$"?P:xe==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",de=xe==="$"?z:/[%p]/.test(W)?H:"",K=h[W],J=/[defgprs%]/.test(W);ke=ke===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function ce(be){var Le=se,je=de,er,$e,ar;if(W==="c")je=K(be)+je,be="";else{be=+be;var Ie=be<0||1/be<0;if(be=isNaN(be)?N:K(Math.abs(be),ke),We&&(be=u(be)),Ie&&+be==0&&ue!=="+"&&(Ie=!1),Le=(Ie?ue==="("?ue:X:ue==="-"||ue==="("?"":ue)+Le,je=(W==="s"?y[8+f/3]:"")+je+(Ie&&ue==="("?")":""),J){for(er=-1,$e=be.length;++er<$e;)if(ar=be.charCodeAt(er),48>ar||ar>57){je=(ar===46?B+be.slice(er+1):be.slice(er))+je,be=be.slice(0,er);break}}}Ne&&!Ee&&(be=D(be,1/0));var ir=Le.length+be.length+je.length,dr=ir<Re?new Array(Re-ir+1).join(re):"";switch(Ne&&Ee&&(be=D(dr+be,dr.length?Re-je.length:1/0),dr=""),ie){case"<":be=Le+be+je+dr;break;case"=":be=Le+dr+be+je;break;case"^":be=dr.slice(0,ir=dr.length>>1)+Le+be+je+dr.slice(ir);break;default:be=dr+Le+be+je;break}return Y(be)}return ce.toString=function(){return ae+""},ce}function ee(ae,re){var ie=Q((ae=l(ae),ae.type="f",ae)),ue=Math.max(-8,Math.min(8,Math.floor(a(re)/3)))*3,xe=Math.pow(10,-ue),Ee=y[8+ue/3];return function(Re){return ie(xe*Re)+Ee}}return{format:Q,formatPrefix:ee}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(k){return C=b(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(k){return Math.max(0,-a(Math.abs(k)))}function M(k,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(D)/3)))*3-a(Math.abs(k)))}function A(k,D){return k=Math.abs(k),D=Math.abs(D)-k,Math.max(0,a(D)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=M,e.precisionRound=A,Object.defineProperty(e,"__esModule",{value:!0})}))});var Z_=oe((d4e,W_)=>{"use strict";W_.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 Jt=oe((h4e,$_)=>{"use strict";var YY=Z_();$_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&YY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var tn={};Ua(tn,{ALMOST_EQUAL:()=>uV,BADNUM:()=>Dy,EPOCHJD:()=>sV,FP_SAFE:()=>VY,LOG_CLIP:()=>fV,MINUS_SIGN:()=>cV,ONEAVGMONTH:()=>QY,ONEAVGQUARTER:()=>$Y,ONEAVGYEAR:()=>jY,ONEDAY:()=>tV,ONEHOUR:()=>aV,ONEMAXMONTH:()=>KY,ONEMAXQUARTER:()=>ZY,ONEMAXYEAR:()=>XY,ONEMICROSEC:()=>lV,ONEMILLI:()=>oV,ONEMIN:()=>nV,ONEMINMONTH:()=>eV,ONEMINQUARTER:()=>JY,ONEMINYEAR:()=>WY,ONESEC:()=>iV,ONEWEEK:()=>rV});var Dy,VY,XY,jY,WY,ZY,$Y,JY,KY,QY,eV,rV,tV,aV,nV,iV,oV,lV,sV,uV,fV,cV,ja=Oa(()=>{"use strict";Dy=void 0,VY=Number.MAX_VALUE*1e-4,XY=316224e5,jY=315576e5,WY=31536e6,ZY=79488e5,$Y=78894e5,JY=76896e5,KY=26784e5,QY=26298e5,eV=24192e5,rV=6048e5,tV=864e5,aV=36e5,nV=6e4,iV=1e3,oV=1,lV=.001,sV=24405875e-1,uV=1-1e-6,fV=10,cV="\u2212"});var Fy=oe((Lp,J_)=>{(function(e,r){typeof Lp=="object"&&typeof J_!="undefined"?r(Lp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Lp,(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),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,d,h,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],d=t[o.charCodeAt(u+1)],h=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],y[f++]=c<<2|d>>4,y[f++]=(d&15)<<4|h>>2,y[f++]=(h&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var hf=oe((p4e,K_)=>{"use strict";K_.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 ao=oe(Il=>{"use strict";var vV=Fy().decode,dV=hf(),qy=Array.isArray,hV=ArrayBuffer,pV=DataView;function Q_(e){return hV.isView(e)&&!(e instanceof pV)}Il.isTypedArray=Q_;function Dp(e){return qy(e)||Q_(e)}Il.isArrayOrTypedArray=Dp;function mV(e){return!Dp(e[0])}Il.isArray1D=mV;Il.ensureArray=function(e,r){return qy(e)||(e=[]),e.length=r,e};var Zn={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};Zn.uint8c=Zn.u1c;Zn.uint8=Zn.u1;Zn.int8=Zn.i1;Zn.uint16=Zn.u2;Zn.int16=Zn.i2;Zn.uint32=Zn.u4;Zn.int32=Zn.i4;Zn.float32=Zn.f4;Zn.float64=Zn.f8;function Py(e){return e.constructor===ArrayBuffer}Il.isArrayBuffer=Py;Il.decodeTypedArraySpec=function(e){var r=[],t=gV(e),a=t.dtype,n=Zn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;Py(o)||(o=vV(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],d=i*c,h=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,h,c),h+=d;else if(s===3){u=+l[1];for(var p=+l[2],m=0;m<p;m++)for(r[m]=[],f=0;f<u;f++)r[m][f]=new n(o,h,c),h+=d}else throw new Error("ndim: "+s+'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};Il.isTypedArraySpec=function(e){return dV(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 gV(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Il.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(n?e.push(o):(n=o,l=s),qy(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),i=0;i<e.length;i++)o=e[i],u.set(o,l),l+=o.length;return u}for(u=new Array(t),f=0;f<n.length;f++)u[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)u[l+f]=o[f];l+=f}return u};Il.maxRowLength=function(e){return ex(e,Math.max,0)};Il.minRowLength=function(e){return ex(e,Math.min,1/0)};function ex(e,r,t){if(Dp(e))if(Dp(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 Qv=oe((g4e,ix)=>{"use strict";var rx=Jt(),zy=ao().isArrayOrTypedArray;ix.exports=function(r,t){if(rx(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"?xV(r,t,a):{set:ax(r,a,t),get:tx(r,a),astr:t,parts:a,obj:r}};function tx(e,r){return function(t){var a=e,n,i,o,l,s;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],s=0;s<a.length;s++)o[s]=tx(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!zy(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 yV=/(^|\.)args\[/;function Ry(e,r){return e===void 0||e===null&&!r.match(yV)}function ax(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=Ry(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!zy(n))throw"array index but container is not an array";if(s===-1){if(l=!_V(n,r.slice(u+1),a,t),l)break;return}if(!nx(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=bV(i,s),o.push([n,i])}if(l){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function bV(e,r){var t=r;return rx(r)?t="["+r+"]":e&&(t="."+r),e+t}function _V(e,r,t,a){var n=zy(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:Ry(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],s=Ry(o,l)),s&&(i=!1),nx(e,f,u,s)&&ax(e[f],r,a.replace("-1",f))(o);return i}function nx(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function xV(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var ux=oe((y4e,sx)=>{"use strict";var h1=Qv(),wV=/^\w*$/,MV=0,ox=1,Fp=2,lx=3,P0=4;sx.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=h1(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][a]]=i;var f=wV.test(n),c={set:function(d,h){var p=h===null?P0:MV;if(!o){if(!l||p===P0)return;o=[],l.set(o)}var m=u[d];if(m===void 0){if(p===P0)return;p=p|lx,m=o.length,u[d]=m}else h!==(f?o[m][n]:h1(o[m],n).get())&&(p=p|Fp);var y=o[m]=o[m]||{};return y[a]=d,f?y[n]=h:h1(y,n).set(h),h!==null&&(p=p&~P0),s[m]=s[m]|p,c},get:function(d){if(o){var h=u[d];if(h!==void 0)return f?o[h][n]:h1(o[h],n).get()}},rename:function(d,h){var p=u[d];return p===void 0||(s[p]=s[p]|ox,u[h]=p,delete u[d],o[p][a]=h),c},remove:function(d){var h=u[d];if(h===void 0)return c;var p=o[h];if(Object.keys(p).length>2)return s[h]=s[h]|Fp,c.set(d,null);if(f){for(i=h;i<o.length;i++)s[i]=s[i]|lx;for(i=h;i<o.length;i++)u[o[i][a]]--;o.splice(h,1),delete u[d]}else h1(p,n).set(null),s[h]=s[h]|Fp|P0;return c},constructUpdate:function(){for(var d,h,p={},m=Object.keys(s),y=0;y<m.length;y++)h=m[y],d=t+"["+h+"]",o[h]?(s[h]&ox&&(p[d+"."+a]=o[h][a]),s[h]&Fp&&(f?p[d+"."+n]=s[h]&P0?null:o[h][n]:p[d+"."+n]=s[h]&P0?null:h1(o[h],n).get())):p[d]=null;return p}};return c}});var cx=oe((b4e,fx)=>{"use strict";var AV=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,TV=/^[^\.\[\]]+$/;fx.exports=function(e,r){for(;r;){var t=e.match(AV);if(t)e=t[1];else if(e.match(TV))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 qp=oe((_4e,vx)=>{"use strict";var kV=Jt();vx.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 kV(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var px=oe((x4e,hx)=>{"use strict";var dx=ao().isArrayOrTypedArray,ed=hf();hx.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(dx(n)&&dx(i)&&ed(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]&&ed(n[l])&&ed(i[l])&&e(i[l],n[l])}else ed(n)&&ed(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var p1={};Ua(p1,{mod:()=>CV,modHalf:()=>SV});function CV(e,r){let t=e%r;return t<0?t+r:t}function SV(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var m1=Oa(()=>{"use strict"});var Dn=oe(ad=>{"use strict";var mx=hf(),rd=Array.isArray;function EV(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}ad.extendFlat=function(...e){return td(e,!1,!1,!1)};ad.extendDeep=function(...e){return td(e,!0,!1,!1)};ad.extendDeepAll=function(...e){return td(e,!0,!0,!1)};ad.extendDeepNoArrays=function(...e){return td(e,!0,!1,!0)};function td(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,d;if(i===2&&rd(n)&&rd(e[1])&&n.length===0){if(d=EV(e[1],n),d)return n;n.splice(0,n.length)}for(var h=1;h<i;h++){o=e[h];for(l in o)s=Object.prototype.hasOwnProperty.call(n,l)?n[l]:void 0,u=o[l],a&&rd(u)?n[l]=u:r&&u&&(mx(u)||(f=rd(u)))?(f?(f=!1,c=s&&rd(s)?s:[]):c=s&&mx(s)?s:{},n[l]=td([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var Ai=oe((M4e,gx)=>{"use strict";gx.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 nd={};Ua(nd,{HOVERARROWSIZE:()=>DV,HOVERFONT:()=>PV,HOVERFONTSIZE:()=>qV,HOVERID:()=>zV,HOVERMINTIME:()=>RV,HOVERTEXTPAD:()=>FV,YANGLE:()=>LV});var LV,DV,FV,qV,PV,RV,zV,id=Oa(()=>{"use strict";LV=60,DV=6,FV=3,qV=13,PV="Arial, sans-serif",RV=50,zV="-hover"});var g1=oe((A4e,_x)=>{"use strict";var yx=(id(),_r(nd)),bx=Ai(),Ny=bx({editType:"none"});Ny.family.dflt=yx.HOVERFONT;Ny.size.dflt=yx.HOVERFONTSIZE;_x.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:Ny,grouptitlefont:bx({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 Pp=oe((T4e,xx)=>{"use strict";var NV=Ai(),od=g1().hoverlabel,ld=Dn().extendFlat;xx.exports={hoverlabel:{bgcolor:ld({},od.bgcolor,{arrayOk:!0}),bordercolor:ld({},od.bordercolor,{arrayOk:!0}),font:NV({arrayOk:!0,editType:"none"}),align:ld({},od.align,{arrayOk:!0}),namelength:ld({},od.namelength,{arrayOk:!0}),showarrow:ld({},od.showarrow),editType:"none"}}});var Jo=oe((k4e,wx)=>{"use strict";var IV=Ai(),BV=Pp();wx.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:IV({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:BV.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var hM=oe((q4e,dM)=>{var E4=Object.defineProperty,HV=Object.getOwnPropertyDescriptor,OV=Object.getOwnPropertyNames,UV=Object.prototype.hasOwnProperty,GV=(e,r)=>{for(var t in r)E4(e,t,{get:r[t],enumerable:!0})},YV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of OV(r))!UV.call(e,n)&&n!==t&&E4(e,n,{get:()=>r[n],enumerable:!(a=HV(r,n))||a.enumerable});return e},VV=e=>YV(E4({},"__esModule",{value:!0}),e),Fx={};GV(Fx,{a98:()=>zZ,average:()=>OX,averageAngle:()=>Es,averageNumber:()=>Zx,blend:()=>HW,blerp:()=>u4,clampChroma:()=>oZ,clampGamut:()=>t5,clampRgb:()=>iZ,colorsNamed:()=>Px,convertA98ToXyz65:()=>f4,convertCubehelixToRgb:()=>jx,convertDlchToLab65:()=>Gp,convertHsiToRgb:()=>aw,convertHslToRgb:()=>ow,convertHsvToRgb:()=>R4,convertHwbToRgb:()=>fw,convertItpToXyz65:()=>v4,convertJabToJch:()=>h4,convertJabToRgb:()=>O4,convertJabToXyz65:()=>B4,convertJchToJab:()=>p4,convertLab65ToDlch:()=>Yp,convertLab65ToRgb:()=>pd,convertLab65ToXyz65:()=>F4,convertLabToLch:()=>Tu,convertLabToRgb:()=>G4,convertLabToXyz50:()=>em,convertLchToLab:()=>ku,convertLchuvToLuv:()=>X4,convertLrgbToOklab:()=>j4,convertLrgbToRgb:()=>O0,convertLuvToLchuv:()=>V4,convertLuvToXyz50:()=>Xp,convertOkhslToOklab:()=>y4,convertOkhsvToOklab:()=>_4,convertOklabToLrgb:()=>T1,convertOklabToOkhsl:()=>g4,convertOklabToOkhsv:()=>b4,convertOklabToRgb:()=>yd,convertP3ToXyz65:()=>x4,convertProphotoToXyz50:()=>A4,convertRec2020ToXyz65:()=>k4,convertRgbToCubehelix:()=>Xx,convertRgbToHsi:()=>nw,convertRgbToHsl:()=>lw,convertRgbToHsv:()=>z4,convertRgbToHwb:()=>cw,convertRgbToJab:()=>H4,convertRgbToLab:()=>Y4,convertRgbToLab65:()=>md,convertRgbToLrgb:()=>H0,convertRgbToOklab:()=>gd,convertRgbToXyb:()=>Bw,convertRgbToXyz50:()=>A1,convertRgbToXyz65:()=>pf,convertRgbToYiq:()=>Xw,convertXybToRgb:()=>Hw,convertXyz50ToLab:()=>rm,convertXyz50ToLuv:()=>Vp,convertXyz50ToProphoto:()=>M4,convertXyz50ToRgb:()=>M1,convertXyz50ToXyz65:()=>Yw,convertXyz65ToA98:()=>c4,convertXyz65ToItp:()=>d4,convertXyz65ToJab:()=>I4,convertXyz65ToLab65:()=>q4,convertXyz65ToP3:()=>w4,convertXyz65ToRec2020:()=>T4,convertXyz65ToRgb:()=>mf,convertXyz65ToXyz50:()=>Gw,convertYiqToRgb:()=>jw,converter:()=>Da,cubehelix:()=>NZ,differenceCie76:()=>PX,differenceCie94:()=>RX,differenceCiede2000:()=>zX,differenceCmc:()=>NX,differenceEuclidean:()=>w1,differenceHueChroma:()=>hd,differenceHueNaive:()=>Wx,differenceHueSaturation:()=>dd,differenceHyab:()=>IX,differenceItp:()=>HX,differenceKotsarenkoRamos:()=>BX,displayable:()=>r5,dlab:()=>IZ,dlch:()=>BZ,easingGamma:()=>sM,easingInOutSine:()=>PZ,easingMidpoint:()=>rM,easingSmootherstep:()=>FZ,easingSmoothstep:()=>EZ,easingSmoothstepInverse:()=>LZ,filterBrightness:()=>pZ,filterContrast:()=>mZ,filterDeficiencyDeuter:()=>CZ,filterDeficiencyProt:()=>kZ,filterDeficiencyTrit:()=>SZ,filterGrayscale:()=>bZ,filterHueRotate:()=>xZ,filterInvert:()=>_Z,filterSaturate:()=>yZ,filterSepia:()=>gZ,fixupAlpha:()=>Hn,fixupHueDecreasing:()=>EX,fixupHueIncreasing:()=>SX,fixupHueLonger:()=>CX,fixupHueShorter:()=>Ss,formatCss:()=>qW,formatHex:()=>PW,formatHex8:()=>RW,formatHsl:()=>NW,formatRgb:()=>zW,getMode:()=>Ti,hsi:()=>HZ,hsl:()=>OZ,hsv:()=>UZ,hwb:()=>GZ,inGamut:()=>nm,interpolate:()=>ZW,interpolateWith:()=>aM,interpolateWithPremultipliedAlpha:()=>$W,interpolatorLinear:()=>nt,interpolatorPiecewise:()=>Yx,interpolatorSplineBasis:()=>iM,interpolatorSplineBasisClosed:()=>oM,interpolatorSplineMonotone:()=>QW,interpolatorSplineMonotone2:()=>eZ,interpolatorSplineMonotoneClosed:()=>rZ,interpolatorSplineNatural:()=>JW,interpolatorSplineNaturalClosed:()=>KW,itp:()=>YZ,jab:()=>VZ,jch:()=>XZ,lab:()=>jZ,lab65:()=>WZ,lch:()=>ZZ,lch65:()=>$Z,lchuv:()=>JZ,lerp:()=>z0,lrgb:()=>KZ,luv:()=>QZ,mapAlphaDivide:()=>eM,mapAlphaMultiply:()=>Qw,mapTransferGamma:()=>VW,mapTransferLinear:()=>K4,mapper:()=>bd,modeA98:()=>Vx,modeCubehelix:()=>$x,modeDlab:()=>rw,modeDlch:()=>tw,modeHsi:()=>iw,modeHsl:()=>P4,modeHsv:()=>N4,modeHwb:()=>dw,modeItp:()=>mw,modeJab:()=>gw,modeJch:()=>yw,modeLab:()=>tm,modeLab65:()=>_w,modeLch:()=>am,modeLch65:()=>ww,modeLchuv:()=>Tw,modeLrgb:()=>kw,modeLuv:()=>Cw,modeOkhsl:()=>Ew,modeOkhsv:()=>Lw,modeOklab:()=>Fw,modeOklch:()=>Pw,modeP3:()=>Rw,modeProphoto:()=>zw,modeRec2020:()=>Nw,modeRgb:()=>B0,modeXyb:()=>Ow,modeXyz50:()=>Uw,modeXyz65:()=>Vw,modeYiq:()=>Ww,nearest:()=>uZ,okhsl:()=>e$,okhsv:()=>r$,oklab:()=>t$,oklch:()=>a$,p3:()=>n$,parse:()=>Ox,parseHex:()=>zx,parseHsl:()=>uw,parseHslLegacy:()=>sw,parseHwb:()=>vw,parseLab:()=>bw,parseLch:()=>xw,parseNamed:()=>Rx,parseOklab:()=>Dw,parseOklch:()=>qw,parseRgb:()=>Ux,parseRgbLegacy:()=>Nx,parseTransparent:()=>Gx,prophoto:()=>i$,random:()=>YW,rec2020:()=>o$,removeParser:()=>iX,rgb:()=>l$,round:()=>Zw,samples:()=>nZ,serializeHex:()=>J4,serializeHex8:()=>$w,serializeHsl:()=>Kw,serializeRgb:()=>Jw,toGamut:()=>lZ,trilerp:()=>mX,unlerp:()=>pX,useMode:()=>xa,useParser:()=>Bx,wcagContrast:()=>RZ,wcagLuminance:()=>S4,xyb:()=>s$,xyz50:()=>u$,xyz65:()=>f$,yiq:()=>c$});dM.exports=VV(Fx);var XV=(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}}},qx=XV,jV={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},Px=jV,WV=e=>qx(Px[e.toLowerCase()],6),Rx=WV,ZV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,$V=e=>{let r;return(r=e.match(ZV))?qx(parseInt(r[1],16),r[1].length):void 0},zx=$V,no="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",C4e=`(?:${no}|none)`,fd=`${no}%`,S4e=`(?:${no}%|none)`,L4=`(?:${no}%|${no})`,JV=`(?:${no}%|${no}|none)`,KV=`(?:${no}(deg|grad|rad|turn)|${no})`,E4e=`(?:${no}(deg|grad|rad|turn)|${no}|none)`,_1="\\s*,\\s*",L4e=new RegExp("^"+JV+"$"),QV=new RegExp(`^rgba?\\(\\s*${no}${_1}${no}${_1}${no}\\s*(?:,\\s*${L4}\\s*)?\\)$`),eX=new RegExp(`^rgba?\\(\\s*${fd}${_1}${fd}${_1}${fd}\\s*(?:,\\s*${L4}\\s*)?\\)$`),rX=e=>{let r={mode:"rgb"},t;if(t=e.match(QV))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(eX))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},Nx=rX,tX=(e,r)=>e===void 0?void 0:typeof e!="object"?Ox(e):e.mode!==void 0?e:r?Ha(pa({},e),{mode:r}):void 0,Bl=tX,aX=(e="rgb")=>r=>(r=Bl(r,e))!==void 0?r.mode===e?r:Cs[r.mode][e]?Cs[r.mode][e](r):e==="rgb"?Cs[r.mode].rgb(r):Cs.rgb[e](Cs[r.mode].rgb(r)):void 0,Da=aX,Cs={},Ix={},x1=[],D4={},nX=e=>e,xa=e=>(Cs[e.mode]=pa(pa({},Cs[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Cs[r]||(Cs[r]={}),Cs[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=nX)}),Ix[e.mode]=e,(e.parse||[]).forEach(r=>{Bx(r,e.mode)}),Da(e.mode)),Ti=e=>Ix[e],Bx=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");D4[e]=r}else typeof e=="function"&&x1.indexOf(e)<0&&x1.push(e)},iX=e=>{if(typeof e=="string")delete D4[e];else if(typeof e=="function"){let r=x1.indexOf(e);r>0&&x1.splice(r,1)}},l4=/[^\x00-\x7F]|[a-zA-Z_]/,oX=/[^\x00-\x7F]|[-\w]/,Jr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Dt=0;function Rp(e){let r=e[Dt],t=e[Dt+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Dt+2]):r==="."?/\d/.test(t):/\d/.test(r)}function s4(e){if(Dt>=e.length)return!1;let r=e[Dt];if(l4.test(r))return!0;if(r==="-"){if(e.length-Dt<2)return!1;let t=e[Dt+1];return!!(t==="-"||l4.test(t))}return!1}var lX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function sd(e){let r="";if((e[Dt]==="-"||e[Dt]==="+")&&(r+=e[Dt++]),r+=zp(e),e[Dt]==="."&&/\d/.test(e[Dt+1])&&(r+=e[Dt++]+zp(e)),(e[Dt]==="e"||e[Dt]==="E")&&((e[Dt+1]==="-"||e[Dt+1]==="+")&&/\d/.test(e[Dt+2])?r+=e[Dt++]+e[Dt++]+zp(e):/\d/.test(e[Dt+1])&&(r+=e[Dt++]+zp(e))),s4(e)){let t=Bp(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Jr.Hue,value:r*lX[t]}:void 0}return e[Dt]==="%"?(Dt++,{type:Jr.Percentage,value:+r}):{type:Jr.Number,value:+r}}function zp(e){let r="";for(;/\d/.test(e[Dt]);)r+=e[Dt++];return r}function Bp(e){let r="";for(;Dt<e.length&&oX.test(e[Dt]);)r+=e[Dt++];return r}function sX(e){let r=Bp(e);return e[Dt]==="("?(Dt++,{type:Jr.Function,value:r}):r==="none"?{type:Jr.None,value:void 0}:{type:Jr.Ident,value:r}}function uX(e=""){let r=e.trim(),t=[],a;for(Dt=0;Dt<r.length;){if(a=r[Dt++],a===`
`||a===" "||a===" "){for(;Dt<r.length&&(r[Dt]===`
`||r[Dt]===" "||r[Dt]===" ");)Dt++;continue}if(a===",")return;if(a===")"){t.push({type:Jr.ParenClose});continue}if(a==="+"){if(Dt--,Rp(r)){t.push(sd(r));continue}return}if(a==="-"){if(Dt--,Rp(r)){t.push(sd(r));continue}if(s4(r)){t.push({type:Jr.Ident,value:Bp(r)});continue}return}if(a==="."){if(Dt--,Rp(r)){t.push(sd(r));continue}return}if(a==="/"){for(;Dt<r.length&&(r[Dt]===`
`||r[Dt]===" "||r[Dt]===" ");)Dt++;let n;if(Rp(r)&&(n=sd(r),n.type!==Jr.Hue)){t.push({type:Jr.Alpha,value:n});continue}if(s4(r)&&Bp(r)==="none"){t.push({type:Jr.Alpha,value:{type:Jr.None,value:void 0}});continue}return}if(/\d/.test(a)){Dt--,t.push(sd(r));continue}if(l4.test(a)){Dt--,t.push(sX(r));continue}return}return t}function fX(e){e._i=0;let r=e[e._i++];if(!r||r.type!==Jr.Function||r.value!=="color"||(r=e[e._i++],r.type!==Jr.Ident))return;let t=D4[r.value];if(!t)return;let a={mode:t},n=Hx(e,!1);if(!n)return;let i=Ti(t).channels;for(let o=0,l,s;o<i.length;o++)l=n[o],s=i[o],l.type!==Jr.None&&(a[s]=l.type===Jr.Number?l.value:l.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function Hx(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===Jr.None||a.type===Jr.Number||a.type===Jr.Alpha||a.type===Jr.Percentage||r&&a.type===Jr.Hue){t.push(a);continue}if(a.type===Jr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==Jr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Jr.None,value:void 0}),t.every(n=>n.type!==Jr.Alpha)?t:void 0}}function cX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Jr.Function)return;let a=Hx(e,r);if(a)return a.unshift(t.value),a}var vX=e=>{if(typeof e!="string")return;let r=uX(e),t=r?cX(r,!0):void 0,a,n=0,i=x1.length;for(;n<i;)if((a=x1[n++](e,t))!==void 0)return a;return r?fX(r):void 0},Ox=vX;function dX(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.r=a.type===Jr.Number?a.value/255:a.value/100),n.type!==Jr.None&&(t.g=n.type===Jr.Number?n.value/255:n.value/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value/255:i.value/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var Ux=dX,hX=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Gx=hX,z0=(e,r,t)=>e+t*(r-e),pX=(e,r,t)=>(t-e)/(r-e),u4=(e,r,t,a,n,i)=>z0(z0(e,r,n),z0(t,a,n),i),mX=(e,r,t,a,n,i,o,l,s,u,f)=>z0(u4(e,r,t,a,s,u),u4(n,i,o,l,s,u),f),gX=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},Yx=e=>r=>{let t=gX(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)}},nt=Yx(z0),Hn=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},yX={mode:"rgb",channels:["r","g","b","alpha"],parse:[Ux,zx,Nx,Rx,Gx,"srgb"],serialize:"srgb",interpolate:{r:nt,g:nt,b:nt,alpha:{use:nt,fixup:Hn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},B0=yX,Iy=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),bX=e=>{let r=Iy(e.r),t=Iy(e.g),a=Iy(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},f4=bX,By=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),_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={mode:"a98",r:By(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:By(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:By(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},c4=_X,Hy=(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)},xX=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Hy(e),g:Hy(r),b:Hy(t)};return a!==void 0&&(n.alpha=a),n},H0=xX,wX=e=>{let{r,g:t,b:a,alpha:n}=H0(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},pf=wX,Oy=(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},MX=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Oy(e),g:Oy(r),b:Oy(t)};return a!==void 0&&(i.alpha=a),i},O0=MX,AX=({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=O0({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},mf=AX,TX=Ha(pa({},B0),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>c4(pf(e)),xyz65:c4},toMode:{rgb:e=>mf(f4(e)),xyz65:f4}}),Vx=TX,kX=e=>(e=e%360)<0?e+360:e,ci=kX,Wp=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ci(t);return a===0||e[a-1]===void 0?i:r(i-ci(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),[]),Ss=e=>Wp(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),CX=e=>Wp(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),SX=e=>Wp(e,r=>r>=0?r:r+360),EX=e=>Wp(e,r=>r<=0?r:r-360),ai=[-.14861,1.78277,-.29227,-.90649,1.97294,0],LX=Math.PI/180,DX=180/Math.PI,Mx=ai[3]*ai[4],Ax=ai[1]*ai[4],Tx=ai[1]*ai[2]-ai[0]*ai[3],FX=({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=(Tx*t+e*Mx-r*Ax)/(Tx+Mx-Ax),i=t-n,o=(ai[4]*(r-n)-ai[2]*i)/ai[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(ai[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*DX-120),a!==void 0&&(l.alpha=a),l},Xx=FX,qX=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*LX,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*(ai[0]*o+ai[1]*l),n.g=t+i*(ai[2]*o+ai[3]*l),n.b=t+i*(ai[4]*o+ai[5]*l),a!==void 0&&(n.alpha=a),n},jx=qX,dd=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ci(e.h),a=ci(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Wx=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ci(e.h),a=ci(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},hd=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ci(e.h),a=ci(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},w1=(e="rgb",r=[1,1,1,0])=>{let t=Ti(e),a=t.channels,n=t.difference,i=Da(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,d)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[d]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},PX=()=>w1("lab65"),RX=(e=1,r=.045,t=.015)=>{let a=Da("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),d=l.l,h=l.a,p=l.b,m=Math.sqrt(h*h+p*p),y=Math.pow(s-d,2),b=Math.pow(c-m,2),C=Math.pow(u-h,2)+Math.pow(f-p,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},zX=(e=1,r=1,t=1)=>{let a=Da("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),d=l.l,h=l.a,p=l.b,m=Math.sqrt(h*h+p*p),y=(c+m)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),C=u*(1+b),x=h*(1+b),_=Math.sqrt(C*C+f*f),M=Math.sqrt(x*x+p*p),A=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);A+=(A<0)*2*Math.PI;let k=Math.abs(x)+Math.abs(p)===0?0:Math.atan2(p,x);k+=(k<0)*2*Math.PI;let D=d-s,P=M-_,z=_*M===0?0:k-A;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let B=2*Math.sqrt(_*M)*Math.sin(z/2),Y=(s+d)/2,H=(_+M)/2,X;_*M===0?X=A+k:(X=(A+k)/2,X-=(Math.abs(A-k)>Math.PI)*Math.PI,X+=(X<0)*2*Math.PI);let N=Math.pow(Y-50,2),Q=1-.17*Math.cos(X-Math.PI/6)+.24*Math.cos(2*X)+.32*Math.cos(3*X+Math.PI/30)-.2*Math.cos(4*X-63*Math.PI/180),ee=1+.015*N/Math.sqrt(20+N),ae=1+.045*H,re=1+.015*H*Q,ie=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*X-275)/25,2)),ue=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),xe=-1*Math.sin(2*ie)*ue;return Math.sqrt(Math.pow(D/(e*ee),2)+Math.pow(P/(r*ae),2)+Math.pow(B/(t*re),2)+xe*P/(r*ae)*B/(t*re))}},NX=(e=1,r=1)=>{let t=Da("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),d=c.l,h=c.a,p=c.b,m=Math.sqrt(h*h+p*p),y=Math.pow(o-d,2),b=Math.pow(u-m,2),C=Math.pow(l-h,2)+Math.pow(s-p,2)-b,x=Math.sqrt(Math.pow(u,4)/(Math.pow(u,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),A=.0638*u/(1+.0131*u)+.638,k=A*(x*_+1-x);return Math.sqrt(y/Math.pow(e*M,2)+b/Math.pow(r*A,2)+C/Math.pow(k,2))}},IX=()=>{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)}},BX=()=>w1("yiq",[.5053,.299,.1957]),HX=()=>w1("itp",[518400,129600,518400]),Es=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},Zx=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Uy=e=>typeof e=="function";function OX(e,r="rgb",t){let a=Ti(r),n=e.map(Da(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;Uy(t)?s=t:t&&Uy(t[o])?s=t[o]:a.average&&Uy(a.average[o])?s=a.average[o]:s=Zx,i[o]=s(l,o)}return i},{mode:r})}var UX={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Xx},toMode:{rgb:jx},interpolate:{h:{use:nt,fixup:Ss},s:nt,l:nt,alpha:{use:nt,fixup:Hn}},difference:{h:dd},average:{h:Es}},$x=UX,GX=({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=ci(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Tu=GX,YX=({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},ku=YX,Jx=Math.pow(29,3)/Math.pow(3,3),Kx=Math.pow(6,3)/Math.pow(29,3),Bn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},b1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},D4e=Math.pow(29,3)/Math.pow(3,3),F4e=Math.pow(6,3)/Math.pow(29,3),Gy=e=>Math.pow(e,3)>Kx?Math.pow(e,3):(116*e-16)/Jx,VX=({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:Gy(i)*b1.X,y:Gy(n)*b1.Y,z:Gy(o)*b1.Z};return a!==void 0&&(l.alpha=a),l},F4=VX,XX=e=>mf(F4(e)),pd=XX,Yy=e=>e>Kx?Math.cbrt(e):(Jx*e+16)/116,jX=({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=Yy(e/b1.X),i=Yy(r/b1.Y),o=Yy(t/b1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},q4=jX,WX=e=>{let r=q4(pf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},md=WX,Hp=1,Qx=1,vd=26/180*Math.PI,Op=Math.cos(vd),Up=Math.sin(vd),ew=100/Math.log(139/100),ZX=({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*Hp/ew)-1)/.0039},i=(Math.exp(.0435*r*Qx*Hp)-1)/.075,o=i*Math.cos(t/180*Math.PI-vd),l=i*Math.sin(t/180*Math.PI-vd);return n.a=o*Op-l/.83*Up,n.b=o*Up+l/.83*Op,a!==void 0&&(n.alpha=a),n},Gp=ZX,$X=({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*Op+t*Up,i=.83*(t*Op-r*Up),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:ew/Hp*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Qx*Hp)};return l.c&&(l.h=ci((Math.atan2(i,n)+vd)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Yp=$X,kx=e=>Gp(Tu(e,"dlch")),Cx=e=>ku(Yp(e),"dlab"),JX={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:kx,rgb:e=>pd(kx(e))},fromMode:{lab65:Cx,rgb:e=>Cx(md(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Hn}}},rw=JX,KX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gp,dlab:e=>ku(e,"dlab"),rgb:e=>pd(Gp(e))},fromMode:{lab65:Yp,dlab:e=>Tu(e,"dlch"),rgb:e=>Yp(md(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:nt,c:nt,h:{use:nt,fixup:Ss},alpha:{use:nt,fixup:Hn}},difference:{h:hd},average:{h:Es}},tw=KX;function aw({h:e,s:r,i:t,alpha:a}){e=ci(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 nw({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 QX={mode:"hsi",toMode:{rgb:aw},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:nw},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:nt,fixup:Ss},s:nt,i:nt,alpha:{use:nt,fixup:Hn}},difference:{h:dd},average:{h:Es}},iw=QX;function ow({h:e,s:r,l:t,alpha:a}){e=ci(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 lw({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 ej=(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}},rj=ej,tj=new RegExp(`^hsla?\\(\\s*${KV}${_1}${fd}${_1}${fd}\\s*(?:,\\s*${L4}\\s*)?\\)$`),aj=e=>{let r=e.match(tj);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=rj(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},sw=aj;function nj(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Percentage)return;t.h=a.value}if(n.type!==Jr.None){if(n.type===Jr.Hue)return;t.s=n.value/100}if(i.type!==Jr.None){if(i.type===Jr.Hue)return;t.l=i.value/100}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var uw=nj,ij={mode:"hsl",toMode:{rgb:ow},fromMode:{rgb:lw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[uw,sw],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:nt,fixup:Ss},s:nt,l:nt,alpha:{use:nt,fixup:Hn}},difference:{h:dd},average:{h:Es}},P4=ij;function R4({h:e,s:r,v:t,alpha:a}){e=ci(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 z4({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 oj={mode:"hsv",toMode:{rgb:R4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:z4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:nt,fixup:Ss},s:nt,v:nt,alpha:{use:nt,fixup:Hn}},difference:{h:dd},average:{h:Es}},N4=oj;function fw({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 R4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function cw(e){let r=z4(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 lj(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Percentage)return;t.h=a.value}if(n.type!==Jr.None){if(n.type===Jr.Hue)return;t.w=n.value/100}if(i.type!==Jr.None){if(i.type===Jr.Hue)return;t.b=i.value/100}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var vw=lj,sj={mode:"hwb",toMode:{rgb:fw},fromMode:{rgb:cw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[vw],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:nt,fixup:Ss},w:nt,b:nt,alpha:{use:nt,fixup:Hn}},difference:{h:Wx},average:{h:Es}},dw=sj,hw=203,Zp=.1593017578125,pw=78.84375,$p=.8359375,Jp=18.8515625,Kp=18.6875;function Vy(e){if(e<0)return 0;let r=Math.pow(e,1/pw);return 1e4*Math.pow(Math.max(0,r-$p)/(Jp-Kp*r),1/Zp)}function Xy(e){if(e<0)return 0;let r=Math.pow(e/1e4,Zp);return Math.pow(($p+Jp*r)/(1+Kp*r),pw)}var jy=e=>Math.max(e/hw,0),uj=({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=Vy(e+.008609037037932761*r+.11102962500302593*t),i=Vy(e-.00860903703793275*r-.11102962500302599*t),o=Vy(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:jy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:jy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:jy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},v4=uj,Wy=(e=0)=>Math.max(e*hw,0),fj=({x:e,y:r,z:t,alpha:a})=>{let n=Wy(e),i=Wy(r),o=Wy(t),l=Xy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=Xy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=Xy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,d=4.378173828125*l-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:d};return a!==void 0&&(h.alpha=a),h},d4=fj,cj={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:v4,rgb:e=>mf(v4(e))},fromMode:{xyz65:d4,rgb:e=>d4(pf(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:nt,t:nt,p:nt,alpha:{use:nt,fixup:Hn}}},mw=cj,vj=134.03437499999998,dj=16295499532821565e-27,Zy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Zp);return Math.pow(($p+Jp*r)/(1+Kp*r),vj)},$y=(e=0)=>Math.max(e*203,0),hj=({x:e,y:r,z:t,alpha:a})=>{e=$y(e),r=$y(r),t=$y(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Zy(.41478972*n+.579999*i+.014648*t),l=Zy(-.20151*n+1.120649*i+.0531008*t),s=Zy(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-dj,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},I4=hj,pj=134.03437499999998,Sx=16295499532821565e-27,Jy=e=>{if(e<0)return 0;let r=Math.pow(e,1/pj);return 1e4*Math.pow(($p-r)/(Kp*r-Jp),1/Zp)},Ky=e=>e/203,mj=({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+Sx)/(.44+.56*(e+Sx)),i=Jy(n+.13860504*r+.058047316*t),o=Jy(n-.13860504*r-.058047316*t),l=Jy(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:Ky(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:Ky(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:Ky(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},B4=mj,gj=e=>{let r=I4(pf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H4=gj,yj=e=>mf(B4(e)),O4=yj,bj={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:H4,xyz65:I4},toMode:{rgb:O4,xyz65:B4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:nt,a:nt,b:nt,alpha:{use:nt,fixup:Hn}}},gw=bj,_j=({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=ci(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},h4=_j,xj=({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},p4=xj,wj={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:p4,rgb:e=>O4(p4(e))},fromMode:{rgb:e=>h4(H4(e)),jab:h4},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:nt,fixup:Ss},c:nt,j:nt,alpha:{use:nt,fixup:Hn}},difference:{h:hd},average:{h:Es}},yw=wj,Qp=Math.pow(29,3)/Math.pow(3,3),U4=Math.pow(6,3)/Math.pow(29,3),Qy=e=>Math.pow(e,3)>U4?Math.pow(e,3):(116*e-16)/Qp,Mj=({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:Qy(i)*Bn.X,y:Qy(n)*Bn.Y,z:Qy(o)*Bn.Z};return a!==void 0&&(l.alpha=a),l},em=Mj,Aj=({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=O0({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},M1=Aj,Tj=e=>M1(em(e)),G4=Tj,kj=e=>{let{r,g:t,b:a,alpha:n}=H0(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},A1=kj,e4=e=>e>U4?Math.cbrt(e):(Qp*e+16)/116,Cj=({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=e4(e/Bn.X),i=e4(r/Bn.Y),o=e4(t/Bn.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},rm=Cj,Sj=e=>{let r=rm(A1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Y4=Sj;function Ej(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Jr.None&&(t.a=n.type===Jr.Number?n.value:n.value*125/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value:i.value*125/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var bw=Ej,Lj={mode:"lab",toMode:{xyz50:em,rgb:G4},fromMode:{xyz50:rm,rgb:Y4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[bw],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:nt,a:nt,b:nt,alpha:{use:nt,fixup:Hn}}},tm=Lj,Dj=Ha(pa({},tm),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:F4,rgb:pd},fromMode:{xyz65:q4,rgb:md},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),_w=Dj;function Fj(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Jr.None&&(t.c=Math.max(0,n.type===Jr.Number?n.value:n.value*150/100)),i.type!==Jr.None){if(i.type===Jr.Percentage)return;t.h=i.value}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var xw=Fj,qj={mode:"lch",toMode:{lab:ku,rgb:e=>G4(ku(e))},fromMode:{rgb:e=>Tu(Y4(e)),lab:Tu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[xw],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:nt,fixup:Ss},c:nt,l:nt,alpha:{use:nt,fixup:Hn}},difference:{h:hd},average:{h:Es}},am=qj,Pj=Ha(pa({},am),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ku(e,"lab65"),rgb:e=>pd(ku(e,"lab65"))},fromMode:{rgb:e=>Tu(md(e),"lch65"),lab65:e=>Tu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ww=Pj,Rj=({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=ci(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},V4=Rj,zj=({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},X4=zj,Mw=(e,r,t)=>4*e/(e+15*r+3*t),Aw=(e,r,t)=>9*r/(e+15*r+3*t),Nj=Mw(Bn.X,Bn.Y,Bn.Z),Ij=Aw(Bn.X,Bn.Y,Bn.Z),Bj=e=>e<=U4?Qp*e:116*Math.cbrt(e)-16,Hj=({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=Bj(r/Bn.Y),i=Mw(e,r,t),o=Aw(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Nj),o=13*n*(o-Ij));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Vp=Hj,Oj=(e,r,t)=>4*e/(e+15*r+3*t),Uj=(e,r,t)=>9*r/(e+15*r+3*t),Gj=Oj(Bn.X,Bn.Y,Bn.Z),Yj=Uj(Bn.X,Bn.Y,Bn.Z),Vj=({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)+Gj,i=t/(13*e)+Yj,o=Bn.Y*(e<=8?e/Qp:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},Xp=Vj,Xj=e=>V4(Vp(A1(e))),jj=e=>M1(Xp(X4(e))),Wj={mode:"lchuv",toMode:{luv:X4,rgb:jj},fromMode:{rgb:Xj,luv:V4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:nt,fixup:Ss},c:nt,l:nt,alpha:{use:nt,fixup:Hn}},difference:{h:hd},average:{h:Es}},Tw=Wj,Zj=Ha(pa({},B0),{mode:"lrgb",toMode:{rgb:O0},fromMode:{rgb:H0},parse:["srgb-linear"],serialize:"srgb-linear"}),kw=Zj,$j={mode:"luv",toMode:{xyz50:Xp,rgb:e=>M1(Xp(e))},fromMode:{xyz50:Vp,rgb:e=>Vp(A1(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:nt,u:nt,v:nt,alpha:{use:nt,fixup:Hn}}},Cw=$j,Jj=({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},j4=Jj,Kj=e=>{let r=j4(H0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gd=Kj,Qj=({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},T1=Qj,eW=e=>O0(T1(e)),yd=eW;function m4(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function jp(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function rW(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,d=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*d,y=1+f*h,b=p*p*p,C=m*m*m,x=y*y*y,_=3*c*p*p,M=3*d*m*m,A=3*h*y*y,k=6*c*c*p,D=6*d*d*m,P=6*h*h*y,z=l*b+s*C+u*x,B=l*_+s*M+u*A,Y=l*k+s*D+u*P;f=f-z*B/(B*B-.5*z*Y)}return f}function W4(e,r){let t=rW(e,r),a=T1({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 tW(e,r,t,a,n,i=null){i||(i=W4(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,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,d=l+s*u,h=l+s*f,p=l+s*c;{let m=n*(1-o)+o*t,y=o*a,b=m+y*u,C=m+y*f,x=m+y*c,_=b*b*b,M=C*C*C,A=x*x*x,k=3*d*b*b,D=3*h*C*C,P=3*p*x*x,z=6*d*d*b,B=6*h*h*C,Y=6*p*p*x,H=4.0767416621*_-3.3077115913*M+.2309699292*A-1,X=4.0767416621*k-3.3077115913*D+.2309699292*P,N=4.0767416621*z-3.3077115913*B+.2309699292*Y,Q=X/(X*X-.5*H*N),ee=-H*Q,ae=-1.2684380046*_+2.6097574011*M-.3413193965*A-1,re=-1.2684380046*k+2.6097574011*D-.3413193965*P,ie=-1.2684380046*z+2.6097574011*B-.3413193965*Y,ue=re/(re*re-.5*ae*ie),xe=-ae*ue,Ee=-.0041960863*_-.7034186147*M+1.707614701*A-1,Re=-.0041960863*k-.7034186147*D+1.707614701*P,Ne=-.0041960863*z-.7034186147*B+1.707614701*Y,ke=Re/(Re*Re-.5*Ee*Ne),We=-Ee*ke;ee=Q>=0?ee:1e6,xe=ue>=0?xe:1e6,We=ke>=0?We:1e6,o+=Math.min(ee,Math.min(xe,We))}}}return o}function Z4(e,r,t=null){t||(t=W4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function Sw(e,r,t){let a=W4(r,t),n=tW(r,t,e,1,e,a),i=Z4(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)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function g4(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:m4(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,s]=Sw(r,t/i,a/i),u;if(i<l){let f=0,c=.8*o,d=1-c/l;u=(i-f)/(c+d*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,d=1-c/(s-l);u=.8+.2*((i-f)/(c+d*(i-f)))}return u&&(n.s=u,n.h=ci(Math.atan2(a,t)*180/Math.PI)),n}function y4(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:jp(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,s,u]=Sw(n.l,i,o),f,c,d,h;t<.8?(f=1.25*t,c=0,d=.8*l,h=1-d/s):(f=5*(t-.8),c=s,d=.2*s*s*1.25*1.25/l,h=1-d/(u-s));let p=c+f*d/(1-h*f);return n.a=p*i,n.b=p*o,n}var aW=Ha(pa({},P4),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:g4,rgb:e=>g4(gd(e))},toMode:{oklab:y4,rgb:e=>yd(y4(e))}}),Ew=aW;function b4(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,s]=Z4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),d=c*r,h=c*n,p=jp(d),m=h*p/d,y=T1({l:p,a:i*m,b:o*m}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*m4(r)/r,r=m4(r);let C={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/d:0};return C.s&&(C.h=ci(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function _4(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,s]=Z4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),d=a*s*u/(u+s-s*f*a),h=jp(c),p=d*h/c,m=T1({l:h,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),b=jp(n*c),C=d*b/c;return r.l=b*y,r.a=C*i*y,r.b=C*o*y,r}var nW=Ha(pa({},N4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:b4,rgb:e=>b4(gd(e))},toMode:{oklab:_4,rgb:e=>yd(_4(e))}}),Lw=nW;function iW(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.l=Math.min(Math.max(0,a.type===Jr.Number?a.value:a.value/100),1)),n.type!==Jr.None&&(t.a=n.type===Jr.Number?n.value:n.value*.4/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value:i.value*.4/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var Dw=iW,oW=Ha(pa({},tm),{mode:"oklab",toMode:{lrgb:T1,rgb:yd},fromMode:{lrgb:j4,rgb:gd},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Dw],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}`:""})`}),Fw=oW;function lW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Hue)return;t.l=Math.min(Math.max(0,a.type===Jr.Number?a.value:a.value/100),1)}if(n.type!==Jr.None&&(t.c=Math.max(0,n.type===Jr.Number?n.value:n.value*.4/100)),i.type!==Jr.None){if(i.type===Jr.Percentage)return;t.h=i.value}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var qw=lW,sW=Ha(pa({},am),{mode:"oklch",toMode:{oklab:e=>ku(e,"oklab"),rgb:e=>yd(ku(e,"oklab"))},fromMode:{rgb:e=>Tu(gd(e),"oklch"),oklab:e=>Tu(e,"oklch")},parse:[qw],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]}}),Pw=sW,uW=e=>{let{r,g:t,b:a,alpha:n}=H0(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},x4=uW,fW=({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=O0({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},w4=fW,cW=Ha(pa({},B0),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>w4(pf(e)),xyz65:w4},toMode:{rgb:e=>mf(x4(e)),xyz65:x4}}),Rw=cW,r4=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},vW=({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:r4(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:r4(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:r4(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},M4=vW,t4=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},dW=e=>{let r=t4(e.r),t=t4(e.g),a=t4(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},A4=dW,hW=Ha(pa({},B0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:M4,rgb:e=>M4(A1(e))},toMode:{xyz50:A4,rgb:e=>M1(A4(e))}}),zw=hW,Ex=1.09929682680944,pW=.018053968510807,a4=e=>{let r=Math.abs(e);return r>pW?(Math.sign(e)||1)*(Ex*Math.pow(r,.45)-(Ex-1)):4.5*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:"rec2020",r:a4(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:a4(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:a4(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},T4=mW,Lx=1.09929682680944,gW=.018053968510807,n4=(e=0)=>{let r=Math.abs(e);return r<gW*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+Lx-1)/Lx,1/.45)},yW=e=>{let r=n4(e.r),t=n4(e.g),a=n4(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},k4=yW,bW=Ha(pa({},B0),{mode:"rec2020",fromMode:{xyz65:T4,rgb:e=>T4(pf(e))},toMode:{xyz65:k4,rgb:e=>mf(k4(e))},parse:["rec2020"],serialize:"rec2020"}),Nw=bW,N0=.0037930732552754493,Iw=Math.cbrt(N0),i4=e=>Math.cbrt(e)-Iw,_W=e=>{let{r,g:t,b:a,alpha:n}=H0(e),i=i4(.3*r+.622*t+.078*a+N0),o=i4(.23*r+.692*t+.078*a+N0),l=i4(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+N0),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},Bw=_W,o4=e=>Math.pow(e+Iw,3),xW=({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=o4(e+r)-N0,i=o4(r-e)-N0,o=o4(t+r)-N0,l=O0({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=xW,wW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Hw},fromMode:{rgb:Bw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:nt,y:nt,b:nt,alpha:{use:nt,fixup:Hn}}},Ow=wW,MW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:M1,lab:rm},fromMode:{rgb:A1,lab:em},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Hn}}},Uw=MW,AW=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},Gw=AW,TW=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},Yw=TW,kW={mode:"xyz65",toMode:{rgb:mf,xyz50:Gw},fromMode:{rgb:pf,xyz50:Yw},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:nt,y:nt,z:nt,alpha:{use:nt,fixup:Hn}}},Vw=kW,CW=({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},Xw=CW,SW=({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},jw=SW,EW={mode:"yiq",toMode:{rgb:jw},fromMode:{rgb:Xw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:nt,i:nt,q:nt,alpha:{use:nt,fixup:Hn}}},Ww=EW,LW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,DW=(e=4)=>r=>typeof r=="number"?LW(r,e):r,Zw=DW,ud=Zw(2),cd=e=>Math.max(0,Math.min(1,e||0)),I0=e=>Math.round(cd(e)*255),$4=Da("rgb"),FW=Da("hsl"),J4=e=>{if(e===void 0)return;let r=I0(e.r),t=I0(e.g),a=I0(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},$w=e=>{if(e===void 0)return;let r=I0(e.alpha!==void 0?e.alpha:1);return J4(e)+(256|r).toString(16).slice(1)},Jw=e=>{if(e===void 0)return;let r=I0(e.r),t=I0(e.g),a=I0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${ud(cd(e.alpha))})`},Kw=e=>{if(e===void 0)return;let r=ud(e.h||0),t=ud(cd(e.s)*100)+"%",a=ud(cd(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${ud(cd(e.alpha))})`},qW=e=>{let r=Bl(e);if(!r)return;let t=Ti(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)},PW=e=>J4($4(e)),RW=e=>$w($4(e)),zW=e=>Jw($4(e)),NW=e=>Kw(FW(e)),IW={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},BW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:IW[r],n=Da(t),i=Ti(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},HW=BW,OW=([e,r])=>e+Math.random()*(r-e),UW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),GW=(e="rgb",r={})=>{let t=Ti(e),a=UW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=OW(a[i]||t.ranges[i])),n),{mode:e})},YW=GW,bd=(e,r="rgb",t=!1)=>{let a=r?Ti(r).channels:null,n=r?Da(r):Bl;return i=>{let o=n(i);if(!o)return;let l=(a||Ti(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Bl(i);return s&&s.mode!==l.mode?Da(s.mode)(l):l}},Qw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,eM=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,K4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,VW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,XW=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},jW=XW,WW=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),rM=WW,Np=e=>typeof e=="function",R0=e=>e&&typeof e=="object",Dx=e=>typeof e=="number",tM=(e,r="rgb",t,a)=>{let n=Ti(r),i=Da(r),o=[],l=[],s={};e.forEach(d=>{Array.isArray(d)?(o.push(i(d[0])),l.push(d[1])):Dx(d)||Np(d)?s[l.length]=d:(o.push(i(d)),l.push(void 0))}),jW(l);let u=n.channels.reduce((d,h)=>{let p;return R0(t)&&R0(t[h])&&t[h].fixup?p=t[h].fixup:R0(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=m=>m,d[h]=p(o.map(m=>m[h])),d},{});if(a){let d=o.map((h,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=d.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),h),{})}let f=n.channels.reduce((d,h)=>{let p;return Np(t)?p=t:R0(t)&&Np(t[h])?p=t[h]:R0(t)&&R0(t[h])&&t[h].use?p=t[h].use:Np(n.interpolate[h])?p=n.interpolate[h]:R0(n.interpolate[h])&&(p=n.interpolate[h].use),d[h]=p(u[h]),d},{}),c=o.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=l[0])return o[0];if(d>l[c])return o[c];let h=0;for(;l[h]<d;)h++;let p=l[h-1],m=l[h]-p,y=(d-p)/m,b=s[h]||s[0];b!==void 0&&(Dx(b)&&(b=rM((b-p)/m)),y=b(y));let C=(h-1+y)/c;return n.channels.reduce((x,_)=>{let M=f[_](C);return M!==void 0&&(x[_]=M),x},{mode:r})}},ZW=(e,r="rgb",t)=>tM(e,r,t),aM=(e,r)=>(t,a="rgb",n)=>{let i=r?bd(r,a):void 0,o=tM(t,a,n,e);return i?l=>i(o(l)):o},$W=aM(Qw,eM),Ip=(e,r)=>(e+r)%r,nM=(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},iM=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return nM(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)},oM=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return nM(e[Ip(a-1,e.length)],e[Ip(a,e.length)],e[Ip(a+1,e.length)],e[Ip(a+2,e.length)],(r-a/t)*t)},lM=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},JW=e=>iM(lM(e)),KW=e=>oM(lM(e)),y1=Math.sign,C4=Math.min,ko=Math.abs,Q4=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?(y1(t[i-1])+y1(t[i]))*C4(ko(t[i-1]),ko(t[i]),.5*ko(a[i])):void 0);return[t,a,n]},e5=(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,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},QW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,,a]=Q4(e);return a[0]=t[0],a[r]=t[r-1],e5(e,a,t)},eZ=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,a,n]=Q4(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:ko(a[0])>2*ko(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:ko(a[r])>2*ko(t[r-1])?2*t[r-1]:a[r],e5(e,n,t)},rZ=e=>{let r=e.length-1,[t,a,n]=Q4(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]=(y1(i)+y1(t[0]))*C4(ko(i),ko(t[0]),.5*ko(a[0])),n[r]=(y1(t[r-1])+y1(o))*C4(ko(t[r-1]),ko(o),.5*ko(a[r])),e5(e,n,t)},tZ=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),sM=tZ,aZ=(e=2,r=1)=>{let t=sM(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},nZ=aZ,uM=Da("rgb"),fM=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},cM=e=>fM(uM(e)),vM=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 r5(e){return vM(uM(e))}function nm(e="rgb"){let{gamut:r}=Ti(e);if(!r)return a=>!0;let t=Da(typeof r=="string"?r:e);return a=>vM(t(a))}function iZ(e){return e=Bl(e),e===void 0||r5(e)?e:Da(e.mode)(cM(e))}function t5(e="rgb"){let{gamut:r}=Ti(e);if(!r)return i=>Bl(i);let t=typeof r=="string"?r:e,a=Da(t),n=nm(t);return i=>{let o=Bl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=fM(l);return o.mode===s.mode?s:Da(o.mode)(s)}}function oZ(e,r="lch",t="rgb"){e=Bl(e);let a=t==="rgb"?r5:nm(t),n=t==="rgb"?cM:t5(t);if(e===void 0||a(e))return e;let i=Da(e.mode);e=Da(r)(e);let o=Ha(pa({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Ti(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Ha(pa({},o),{c}))}function lZ(e="rgb",r="oklch",t=w1("oklch"),a=.02){let n=Da(e),i=Ti(e);if(!i.gamut)return f=>n(f);let o=nm(e),l=t5(e),s=Da(r),{ranges:u}=Ti(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Bl(f),f===void 0)return;let c=pa({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Ha(pa({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ha(pa({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let d=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;h-d>p;)c.c=(d+h)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?d=c.c:h=c.c;return n(o(c)?c:m)}}var sZ=(e,r=w1(),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,s)=>l.d-s.d).slice(0,i).filter(l=>l.d<o).map(l=>e[l.i]))},uZ=sZ,a5=e=>Math.max(e,0),n5=e=>Math.max(Math.min(e,1),0),fZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),cZ=e=>{let r=1-n5(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]},vZ=e=>{let r=a5(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]},dZ=e=>{let r=1-n5(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]},hZ=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]},im=(e,r,t=!1)=>{let a=Da(r),n=Ti(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c<e.length;c++)s=n[Math.floor(c/u)],o[s]!==void 0&&(l[s]=(l[s]||0)+e[c]*(o[n[c%u]]||0));if(!t)return l;let f=Bl(i);return f&&l.mode!==f.mode?Da(f.mode)(l):l}},pZ=(e=1,r="rgb")=>{let t=a5(e);return bd(K4(t),r,!0)},mZ=(e=1,r="rgb")=>{let t=a5(e);return bd(K4(t,(1-t)/2),r,!0)},gZ=(e=1,r="rgb")=>im(cZ(e),r,!0),yZ=(e=1,r="rgb")=>im(vZ(e),r,!0),bZ=(e=1,r="rgb")=>im(dZ(e),r,!0),_Z=(e=1,r="rgb")=>{let t=n5(e);return bd((a,n)=>n==="alpha"?a:fZ(t,1-t,a),r,!0)},xZ=(e=0,r="rgb")=>im(hZ(e),r,!0),wZ=Da("rgb"),MZ=[[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]],AZ=[[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]],TZ=[[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]],i5=(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,s)=>z0(i[s],o[s],n))}return o=>{let l=Bl(o);if(l===void 0)return;let{r:s,g:u,b:f}=wZ(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Da(l.mode)(c)}},kZ=(e=1)=>i5(MZ,e),CZ=(e=1)=>i5(AZ,e),SZ=(e=1)=>i5(TZ,e),EZ=e=>e*e*(3-2*e),LZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),DZ=e=>e*e*e*(e*(e*6-15)+10),FZ=DZ,qZ=e=>(1-Math.cos(e*Math.PI))/2,PZ=qZ;function S4(e){let r=Da("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function RZ(e,r){let t=S4(e),a=S4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var zZ=xa(Vx),NZ=xa($x),IZ=xa(rw),BZ=xa(tw),HZ=xa(iw),OZ=xa(P4),UZ=xa(N4),GZ=xa(dw),YZ=xa(mw),VZ=xa(gw),XZ=xa(yw),jZ=xa(tm),WZ=xa(_w),ZZ=xa(am),$Z=xa(ww),JZ=xa(Tw),KZ=xa(kw),QZ=xa(Cw),e$=xa(Ew),r$=xa(Lw),t$=xa(Fw),a$=xa(Pw),n$=xa(Rw),i$=xa(zw),o$=xa(Nw),l$=xa(B0),s$=xa(Ow),u$=xa(Uw),f$=xa(Vw),c$=xa(Ww)});var o5={};Ua(o5,{default:()=>d$});var v$,d$,l5=Oa(()=>{"use strict";v$={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},d$=v$});var gf=oe((z4e,bM)=>{"use strict";var{format:h$,width:p$,height:m$,scale:g$}=(l5(),_r(o5)).default,pM=g$,{dflt:R4e}=pM,y$=I_(pM,["dflt"]),mM={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:500,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:{format:h$,filename:{valType:"string"},width:p$,height:m$,scale:y$},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:{}}},gM={};function yM(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),yM(a,r[t])))}}yM(mM,gM);bM.exports={configAttributes:mM,dfltConfig:gM}});var u5=oe((I4e,_M)=>{"use strict";var s5=qt(),b$=Jt(),_d=[];_M.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||_d.indexOf(e)!==-1)return;_d.push(e);var a=1e3;b$(r)?a=r:r==="long"&&(a=3e3);var n=s5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(_d);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=_d.indexOf(u);f!==-1&&_d.splice(f,1),s5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=s5.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(/<br\s*\/?>/g),d=0;d<c.length;d++)d&&f.append("br"),f.append("span").text(c[d]);r==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(a).call(o)})}});var Cu=oe((B4e,xM)=>{"use strict";var k1=gf().dfltConfig,f5=u5(),c5=xM.exports={};c5.log=function(){var e;if(k1.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(k1.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);f5(t.join("<br>"),"long")}};c5.warn=function(){var e;if(k1.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(k1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);f5(t.join("<br>"),"stick")}};c5.error=function(){var e;if(k1.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(k1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);f5(t.join("<br>"),"stick")}}});var Hl=oe(U0=>{"use strict";U0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];U0.defaultLine="#444";U0.lightLine="#eee";U0.background="#fff";U0.borderLine="#BEC8D9";U0.lightFraction=1e3/11});var Nt=oe((O4e,LM)=>{"use strict";var{converter:wM,formatHex:_$,formatRgb:x$,wcagContrast:w$,wcagLuminance:M$}=hM(),{isArrayOrTypedArray:MM}=ao(),{warn:A$}=Cu(),{background:wd,defaultLine:h5,defaults:T$,lightLine:k$}=Hl(),AM=wM("rgb"),C$=wM("hsl"),TM=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return AM(r)}catch(t){return}},ki=e=>e>0?e>1?1:e:0,S$={mode:"rgb",r:0,g:0,b:0,alpha:1},v5=e=>Math.round(e*255e6)/255e6,kM=e=>Ha(pa({},e),{r:v5(e.r),g:v5(e.g),b:v5(e.b)}),Co=e=>x$(kM(e)),E$=e=>_$(kM(e)),L$=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:MM(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},an=(e,r)=>{var a;let t=TM(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&A$(`Invalid color specifier: ${L$(e)}. Defaulting to "#000"`),S$)},xd=e=>Co(Ha(pa({},an(e)),{alpha:1})),D$=e=>e?an(e).alpha:0,CM=e=>MM(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),F$=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}},q$=(e,r)=>{let t=CM(e)?F$(e):an(e,!0),a=[ki(t.r),ki(t.g),ki(t.b),ki(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},P$=(e,r)=>Co(Ha(pa({},an(e)),{alpha:ki(r)})),SM=(e,r)=>{let t=an(e),a=t.alpha;if(a===1)return Co(t);let n=an(r||wd),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return Co({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},R$=(e,r,t)=>{let a=an(e),n=an(r),i=(o,l)=>t*o+(1-t)*l;return Co({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},d5=(e,r)=>{let t=an(e),a=C$(t)||{mode:"hsl",h:0,s:0,l:0};return Co(AM(Ha(pa({},a),{l:ki((a.l*100+r)/100),alpha:t.alpha})))},om=(e,r)=>w$(an(e),an(r)),EM=e=>om(e,wd)>om(e,h5),z$=Co(an(wd)),N$=Co(an(h5)),I$=(e,r,t)=>(an(e).alpha!==1&&(e=SM(e,wd)),EM(e)?r?d5(e,r):z$:t?d5(e,-t):N$),B$=(e,r)=>{e.style({stroke:xd(r),"stroke-opacity":an(r).alpha})},H$=(e,r)=>{e.style({fill:xd(r),"fill-opacity":an(r).alpha})},O$=(e,r)=>!!(e&&r&&xd(e)===xd(r)),U$=e=>TM(e)!==void 0,G$=(e,r)=>{r=r===0?0:r||10;let t=an(e),a=r/100;return Co(Ha(pa({},t),{r:ki(t.r+a),g:ki(t.g+a),b:ki(t.b+a)}))},Y$=(e,r,t)=>{let a=an(e),n=an(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,d)=>u*c+s*d;return Co({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})},V$=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=om(e,n);i>a&&(a=i,t=Co(an(n)))}return t},X$=e=>Co(an(e)),j$=e=>E$(an(e)).toUpperCase(),W$=e=>{let r=an(e);return[ki(r.r)*255,ki(r.g)*255,ki(r.b)*255,ki(r.alpha)]},Z$=([e,r,t,a])=>Co({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),$$=e=>{let r=an(e);return M$({mode:"rgb",r:ki(r.r),g:ki(r.g),b:ki(r.b)})};LM.exports={addOpacity:P$,adjustLightness:d5,background:wd,brighten:G$,combine:SM,contrast:I$,defaultLine:h5,defaults:T$,equals:O$,fill:H$,hexString:j$,interpolate:R$,isChannelArray:CM,isDark:EM,isValid:U$,lightLine:k$,luminosity:$$,mix:Y$,mostReadable:V$,normalize:q$,opacity:D$,parse:an,rgb:xd,rgbaArray:W$,rgbaArrayToString:Z$,rgbaString:X$,stroke:B$,wcagContrast:om}});var G0=oe((G4e,qM)=>{"use strict";var J$=Nt(),lm={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)"]]},DM=lm.RdBu;function K$(e,r){if(r||(r=DM),!e)return r;function t(){try{e=lm[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),FM(e)?e:r}function FM(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||!J$.isValid(a[1]))return!1;r=+a[0]}return!0}function Q$(e){return lm[e]!==void 0?!0:FM(e)}qM.exports={scales:lm,defaultScale:DM,get:K$,isValid:Q$}});var sm={};Ua(sm,{DESELECTDIM:()=>tJ,HIDE_PLACEHOLDER:()=>rJ,SHOW_PLACEHOLDER:()=>eJ});var eJ,rJ,tJ,um=Oa(()=>{"use strict";eJ=100,rJ=1e3,tJ=.2});var Md={};Ua(Md,{counter:()=>Y0});function Y0(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+p5+"y"+p5+n):new RegExp(i+e+p5+n)}var p5,C1=Oa(()=>{"use strict";p5="([2-9]|[1-9][0-9]+)?"});var zM=oe(io=>{"use strict";var m5=Jt(),PM=Dn().extendFlat,aJ=Jo(),nJ=G0(),g5=Nt(),iJ=(um(),_r(sm)).DESELECTDIM,S1=Qv(),RM=(C1(),_r(Md)).counter,oJ=(m1(),_r(p1)).modHalf,Ol=ao().isArrayOrTypedArray,yf=ao().isTypedArraySpec,bf=ao().decodeTypedArraySpec;io.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ol(e)?e:yf(e)?bf(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){yf(e)&&(e=bf(e)),!m5(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}yf(e)&&(e=bf(e)),e%1||!m5(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){yf(e)&&(e=bf(e)),g5.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=>g5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(nJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){yf(e)&&(e=bf(e)),e==="auto"?r.set("auto"):m5(e)?r.set(oJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||RM(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Ol(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:!!RM(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(yf(e)?bf(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(C,x,_){var M,A={set:function(k){M=k}};return _===void 0&&(_=x.dflt),io.valObjectMeta[x.valType].coerceFunction(C,A,_,x),M}if(yf(e)&&(e=bf(e)),!Ol(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Ol(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&Ol(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,d,h,p,m,y,b;if(t=Array.isArray(t)?t:[],i)for(d=0;d<c;d++)for(l[d]=[],p=Ol(e[d])?e[d]:[],f?y=o.length:s?y=o[d].length:y=p.length,h=0;h<y;h++)f?m=o[h]:s?m=o[d][h]:m=o,b=n(p[h],m,(t[d]||[])[h]),b!==void 0&&(l[d][h]=b);else for(d=0;d<c;d++)b=n(e[d],s?o[d]:o,t[d]),b!==void 0&&(l[d]=b);r.set(l)},validateFunction:function(e,r){if(!Ol(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(!Ol(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!fm(e[i][o],a?t[i][o]:t))return!1}else if(!fm(e[i],a?t[i]:t))return!1;return!0}}};io.coerce=function(e,r,t,a,n){var i=S1(t,a).get(),o=S1(e,a),l=S1(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=S1(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Ol(s))return l.set(s),s;if(yf(s))return s=bf(s),l.set(s),s}var f=io.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!fm(s,i)&&(s=S1(u,a).get(),f(s,l,n,i),c=l.get()),c};io.coerce2=function(e,r,t,a,n){var i=S1(e,a),o=io.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};io.coerceFont=function(e,r,t,a){a||(a={}),t=PM({},t),t=PM(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};io.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 s=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?g5.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};io.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:aJ,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 io.coerce(e,r,n,"hoverinfo",o)};io.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Ol(t)&&!e.selected&&!e.unselected&&(a=t,n=iJ*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function fm(e,r){var t=io.valObjectMeta[r.valType];if(r.arrayOk&&Ol(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}io.validate=fm});var cm=oe((V4e,NM)=>{"use strict";NM.exports=function(){}});var y5=oe((X4e,IM)=>{"use strict";IM.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 HM=oe((j4e,BM)=>{BM.exports=lJ;function lJ(){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 UM=oe((W4e,OM)=>{OM.exports=sJ;function sJ(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 YM=oe((Z4e,GM)=>{GM.exports=uJ;function uJ(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 b5=oe(($4e,VM)=>{VM.exports=fJ;function fJ(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 jM=oe((J4e,XM)=>{XM.exports=cJ;function cJ(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 ZM=oe((K4e,WM)=>{WM.exports=vJ;function vJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],p=r[12],m=r[13],y=r[14],b=r[15],C=t*l-a*o,x=t*s-n*o,_=t*u-i*o,M=a*s-n*l,A=a*u-i*l,k=n*u-i*s,D=f*m-c*p,P=f*y-d*p,z=f*b-h*p,B=c*y-d*m,Y=c*b-h*m,H=d*b-h*y,X=C*H-x*Y+_*B+M*z-A*P+k*D;return X?(X=1/X,e[0]=(l*H-s*Y+u*B)*X,e[1]=(n*Y-a*H-i*B)*X,e[2]=(m*k-y*A+b*M)*X,e[3]=(d*A-c*k-h*M)*X,e[4]=(s*z-o*H-u*P)*X,e[5]=(t*H-n*z+i*P)*X,e[6]=(y*_-p*k-b*x)*X,e[7]=(f*k-d*_+h*x)*X,e[8]=(o*Y-l*z+u*D)*X,e[9]=(a*z-t*Y-i*D)*X,e[10]=(p*A-m*_+b*C)*X,e[11]=(c*_-f*A-h*C)*X,e[12]=(l*P-o*B-s*D)*X,e[13]=(t*B-a*P+n*D)*X,e[14]=(m*x-p*M-y*C)*X,e[15]=(f*M-c*x+d*C)*X,e):null}});var JM=oe((Q4e,$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],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=l*(d*b-h*y)-c*(s*b-u*y)+m*(s*h-u*d),e[1]=-(a*(d*b-h*y)-c*(n*b-i*y)+m*(n*h-i*d)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*h-u*d)-l*(n*h-i*d)+c*(n*u-i*s)),e[4]=-(o*(d*b-h*y)-f*(s*b-u*y)+p*(s*h-u*d)),e[5]=t*(d*b-h*y)-f*(n*b-i*y)+p*(n*h-i*d),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*h-u*d)-o*(n*h-i*d)+f*(n*u-i*s),e[8]=o*(c*b-h*m)-f*(l*b-u*m)+p*(l*h-u*c),e[9]=-(t*(c*b-h*m)-f*(a*b-i*m)+p*(a*h-i*c)),e[10]=t*(l*b-u*m)-o*(a*b-i*m)+p*(a*u-i*l),e[11]=-(t*(l*h-u*c)-o*(a*h-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-d*m)-f*(l*y-s*m)+p*(l*d-s*c)),e[13]=t*(c*y-d*m)-f*(a*y-n*m)+p*(a*d-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*d-s*c)-o*(a*d-n*c)+f*(a*s-n*l),e}});var QM=oe((e5e,KM)=>{KM.exports=hJ;function hJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],d=e[11],h=e[12],p=e[13],m=e[14],y=e[15],b=r*o-t*i,C=r*l-a*i,x=r*s-n*i,_=t*l-a*o,M=t*s-n*o,A=a*s-n*l,k=u*p-f*h,D=u*m-c*h,P=u*y-d*h,z=f*m-c*p,B=f*y-d*p,Y=c*y-d*m;return b*Y-C*B+x*z+_*P-M*D+A*k}});var rA=oe((r5e,eA)=>{eA.exports=pJ;function pJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],d=r[9],h=r[10],p=r[11],m=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],M=t[2],A=t[3];return e[0]=x*a+_*l+M*c+A*m,e[1]=x*n+_*s+M*d+A*y,e[2]=x*i+_*u+M*h+A*b,e[3]=x*o+_*f+M*p+A*C,x=t[4],_=t[5],M=t[6],A=t[7],e[4]=x*a+_*l+M*c+A*m,e[5]=x*n+_*s+M*d+A*y,e[6]=x*i+_*u+M*h+A*b,e[7]=x*o+_*f+M*p+A*C,x=t[8],_=t[9],M=t[10],A=t[11],e[8]=x*a+_*l+M*c+A*m,e[9]=x*n+_*s+M*d+A*y,e[10]=x*i+_*u+M*h+A*b,e[11]=x*o+_*f+M*p+A*C,x=t[12],_=t[13],M=t[14],A=t[15],e[12]=x*a+_*l+M*c+A*m,e[13]=x*n+_*s+M*d+A*y,e[14]=x*i+_*u+M*h+A*b,e[15]=x*o+_*f+M*p+A*C,e}});var aA=oe((t5e,tA)=>{tA.exports=mJ;function mJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,d,h,p,m,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],s=r[2],u=r[3],f=r[4],c=r[5],d=r[6],h=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=d,e[7]=h,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+d*n+y*i+r[14],e[15]=u*a+h*n+b*i+r[15]),e}});var iA=oe((a5e,nA)=>{nA.exports=gJ;function gJ(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 lA=oe((n5e,oA)=>{oA.exports=yJ;function yJ(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,d,h,p,m,y,b,C,x,_,M,A,k,D,P,z,B,Y,H,X,N;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],d=r[1],h=r[2],p=r[3],m=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],M=r[10],A=r[11],k=n*n*f+u,D=i*n*f+o*s,P=o*n*f-i*s,z=n*i*f-o*s,B=i*i*f+u,Y=o*i*f+n*s,H=n*o*f+i*s,X=i*o*f-n*s,N=o*o*f+u,e[0]=c*k+m*D+x*P,e[1]=d*k+y*D+_*P,e[2]=h*k+b*D+M*P,e[3]=p*k+C*D+A*P,e[4]=c*z+m*B+x*Y,e[5]=d*z+y*B+_*Y,e[6]=h*z+b*B+M*Y,e[7]=p*z+C*B+A*Y,e[8]=c*H+m*X+x*N,e[9]=d*H+y*X+_*N,e[10]=h*H+b*X+M*N,e[11]=p*H+C*X+A*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var uA=oe((i5e,sA)=>{sA.exports=bJ;function bJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],d=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+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+d*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=d*n-s*a,e}});var cA=oe((o5e,fA)=>{fA.exports=_J;function _J(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],d=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-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-d*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+d*n,e}});var dA=oe((l5e,vA)=>{vA.exports=xJ;function xJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],d=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+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+d*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=d*n-s*a,e}});var pA=oe((s5e,hA)=>{hA.exports=wJ;function wJ(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var gA=oe((u5e,mA)=>{mA.exports=MJ;function MJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,d=a*u,h=n*s,p=n*u,m=i*u,y=o*l,b=o*s,C=o*u;return e[0]=1-(h+m),e[1]=c+C,e[2]=d-b,e[3]=0,e[4]=c-C,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=d+b,e[9]=p-y,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var bA=oe((f5e,yA)=>{yA.exports=AJ;function AJ(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 xA=oe((c5e,_A)=>{_A.exports=TJ;function TJ(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 MA=oe((v5e,wA)=>{wA.exports=kJ;function kJ(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 TA=oe((d5e,AA)=>{AA.exports=CJ;function CJ(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 CA=oe((h5e,kA)=>{kA.exports=SJ;function SJ(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 EA=oe((p5e,SA)=>{SA.exports=EJ;function EJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,d=n*o,h=n*l,p=n*s,m=i*o,y=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=d-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=d+y,e[9]=h-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var DA=oe((m5e,LA)=>{LA.exports=LJ;function LJ(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=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*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var qA=oe((g5e,FA)=>{FA.exports=DJ;function DJ(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 RA=oe((y5e,PA)=>{PA.exports=FJ;function FJ(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),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.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 NA=oe((b5e,zA)=>{zA.exports=qJ;function qJ(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var BA=oe((_5e,IA)=>{var PJ=b5();IA.exports=RJ;function RJ(e,r,t,a){var n,i,o,l,s,u,f,c,d,h,p=r[0],m=r[1],y=r[2],b=a[0],C=a[1],x=a[2],_=t[0],M=t[1],A=t[2];return Math.abs(p-_)<1e-6&&Math.abs(m-M)<1e-6&&Math.abs(y-A)<1e-6?PJ(e):(f=p-_,c=m-M,d=y-A,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=C*d-x*c,i=x*f-b*d,o=b*c-C*f,h=Math.sqrt(n*n+i*i+o*o),h?(h=1/h,n*=h,i*=h,o*=h):(n=0,i=0,o=0),l=c*o-d*i,s=d*n-f*o,u=f*i-c*n,h=Math.sqrt(l*l+s*s+u*u),h?(h=1/h,l*=h,s*=h,u*=h):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=d,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+d*y),e[15]=1,e)}});var OA=oe((x5e,HA)=>{HA.exports=zJ;function zJ(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 _5=oe((w5e,UA)=>{UA.exports={create:HM(),clone:UM(),copy:YM(),identity:b5(),transpose:jM(),invert:ZM(),adjoint:JM(),determinant:QM(),multiply:rA(),translate:aA(),scale:iA(),rotate:lA(),rotateX:uA(),rotateY:cA(),rotateZ:dA(),fromRotation:pA(),fromRotationTranslation:gA(),fromScaling:bA(),fromTranslation:xA(),fromXRotation:MA(),fromYRotation:TA(),fromZRotation:CA(),fromQuat:EA(),frustum:DA(),perspective:qA(),perspectiveFromFieldOfView:RA(),ortho:NA(),lookAt:BA(),str:OA()}});var vm=oe(mn=>{"use strict";var NJ=_5();mn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};mn.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};mn.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]=mn.dot(e[n],r);else if(r[0].length){var i=mn.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=mn.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};mn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};mn.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]]};mn.rotationXYMatrix=function(e,r,t){return mn.dot(mn.dot(mn.translationMatrix(r,t),mn.rotationMatrix(e)),mn.translationMatrix(-r,-t))};mn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return mn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};mn.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 mn.dot(e,[t[0],t[1],1]).slice(0,2)}};mn.apply2DTransform2=function(e){var r=mn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};mn.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]};mn.inverseTransformMatrix=function(e){var r=[];return NJ.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 Ad=oe((A5e,WA)=>{"use strict";var IJ=qt(),GA=Cu(),BJ=vm(),HJ=_5();function OJ(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 UJ(e){var r=IJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function YA(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function GJ(e,r){VA("global",e,r)}function VA(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):GA.warn("addStyleRule failed"):GA.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function YJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&YA(t)}function VJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function XJ(e){var r=jA(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=XA(a);if(n){var i=BJ.convertCssMatrix(n);t=HJ.multiply(t,t,i)}}),t}function XA(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 jA(e){for(var r=[];jJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function jJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function WJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}WA.exports={getGraphDiv:OJ,isPlotDiv:UJ,removeElement:YA,addStyleRule:GJ,addRelatedStyleRule:VA,deleteRelatedStyleRule:YJ,setStyleOnHover:VJ,getFullTransformMatrix:XJ,getElementTransformMatrix:XA,getElementAndAncestors:jA,equalDomRects:WJ}});var Td=oe((T5e,ZA)=>{"use strict";ZA.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 Ko=oe((k5e,tT)=>{"use strict";var JA=Dn().extendFlat,ZJ=hf(),KA={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},QA={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},$J=KA.flags.slice().concat(["fullReplot"]),JJ=QA.flags.slice().concat("layoutReplot");tT.exports={traces:KA,layout:QA,traceFlags:function(){return $A($J)},layoutFlags:function(){return $A(JJ)},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:eT};function $A(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function eT(e,r,t){var a=JA({},e);for(var n in a){var i=a[n];ZJ(i)&&(a[n]=rT(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function rT(e,r,t,a){if(e.valType){var n=JA({},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]=rT(e.items[i],r,"from-root")}return n}else return eT(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Ls=oe(x5=>{"use strict";x5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};x5.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 w5={};Ua(w5,{DATE_FORMAT_LINK:()=>QJ,FORMAT_LINK:()=>KJ});var KJ,QJ,M5=Oa(()=>{"use strict";KJ="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",QJ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var V0=oe(E1=>{"use strict";var{DATE_FORMAT_LINK:eK,FORMAT_LINK:rK}=(M5(),_r(w5)),tK=["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 aK({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}".`,rK,"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}".`,eK,"for details on the date formatting syntax.",tK].join(" ")}E1.templateFormatStringDescription=aK;E1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>pa({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});E1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>pa({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});E1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});E1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var pm=oe((L5e,sT)=>{"use strict";function _f(e,r){return r?r.d2l(e):e}function aT(e,r){return r?r.l2d(e):e}function nK(e){return e.x0}function iK(e){return e.x1}function oK(e){return e.y0}function lK(e){return e.y1}function nT(e){return e.x0shift||0}function iT(e){return e.x1shift||0}function oT(e){return e.y0shift||0}function lT(e){return e.y1shift||0}function dm(e,r){return _f(e.x1,r)+iT(e)-_f(e.x0,r)-nT(e)}function hm(e,r,t){return _f(e.y1,t)+lT(e)-_f(e.y0,t)-oT(e)}function sK(e,r){return Math.abs(dm(e,r))}function uK(e,r,t){return Math.abs(hm(e,r,t))}function fK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(dm(e,r),2)+Math.pow(hm(e,r,t),2))}function cK(e,r){return aT((_f(e.x1,r)+iT(e)+_f(e.x0,r)+nT(e))/2,r)}function vK(e,r,t){return aT((_f(e.y1,t)+lT(e)+_f(e.y0,t)+oT(e))/2,t)}function dK(e,r,t){return e.type!=="line"?void 0:hm(e,r,t)/dm(e,r)}var hK=["x0","x1","y0","y1","dy","height","ycenter"],pK=["x0","x1","y0","y1","dx","width","xcenter"];sT.exports={x0:nK,x1:iK,y0:oK,y1:lK,slope:dK,dx:dm,dy:hm,width:sK,height:uK,length:fK,xcenter:cK,ycenter:vK,simpleXVariables:hK,simpleYVariables:pK}});var cT=oe((D5e,fT)=>{"use strict";var mK=Ko().overrideAll,X0=Jo(),uT=Ai(),gK=Ls().dash,xf=Dn().extendFlat,{shapeTexttemplateAttrs:yK,templatefallbackAttrs:bK}=V0(),_K=pm();fT.exports=mK({newshape:{visible:xf({},X0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:xf({},X0.legend,{}),legendgroup:xf({},X0.legendgroup,{}),legendgrouptitle:{text:xf({},X0.legendgrouptitle.text,{}),font:uT({})},legendrank:xf({},X0.legendrank,{}),legendwidth:xf({},X0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:xf({},gK,{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:xf({},X0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:yK({newshape:!0},{keys:Object.keys(_K)}),texttemplatefallback:bK({editType:"arraydraw"}),font:uT({}),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 dT=oe((F5e,vT)=>{"use strict";var xK=Ls().dash,wK=Dn().extendFlat;vT.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:wK({},xK,{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 mm=oe((q5e,hT)=>{"use strict";hT.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 L1=oe((P5e,yT)=>{"use strict";var A5=Ai(),MK=Td(),gm=Hl(),pT=cT(),mT=dT(),AK=mm(),gT=Dn().extendFlat,ym=A5({editType:"calc"});ym.family.dflt='"Open Sans", verdana, arial, sans-serif';ym.size.dflt=12;ym.color.dflt=gm.defaultLine;yT.exports={font:ym,title:{text:{valType:"string",editType:"layoutstyle"},font:A5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:A5({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:gT(AK({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:gm.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:gm.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:gm.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:pT.newshape,activeshape:pT.activeshape,newselection:mT.newselection,activeselection:mT.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:gT({},MK.transition,{editType:"none"})}});var bT=oe(()=>{(function(){if(!document.getElementById("17ae9e42e4fa3e7c06fe95ec91b1119e5a4c05dc79afabe050bbaba88da47580")){var e=document.createElement("style");e.id="17ae9e42e4fa3e7c06fe95ec91b1119e5a4c05dc79afabe050bbaba88da47580",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);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height: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{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media(forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}.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' viewBox='0 0 29 29' fill='%23333'%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' fill='%23333'%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' viewBox='0 0 29 29' fill='%23fff'%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' fill='%23fff'%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' fill='%23000'%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' fill='%23000'%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' viewBox='0 0 29 29' fill='%23333'%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' viewBox='0 0 29 29' fill='%23fff'%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' fill='%23fff'%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' fill='%23000'%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' fill='%23000'%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' viewBox='0 0 29 29' fill='%23333'%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' viewBox='0 0 29 29' fill='%23fff'%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' fill='%23000'%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' viewBox='0 0 22 22' stroke='%23333'%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.517-.195 0-.461-.118-.775-.517-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11c0-2.447.331-4.64.853-6.206.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517.195 0 .461.118.775.517.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.333 1.333 0 0 1-.224-.138c.047-.038.12-.085.224-.138.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138-.047.038-.12.085-.224.138-.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.33 1.33 0 0 1-.224-.138 1.33 1.33 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.33 1.33 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.465 1.465 0 0 1-.39-.272.293.293 0 0 1-.047-.064.293.293 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.33.33 0 0 1 .047.064.293.293 0 0 1-.048.064 1.435 1.435 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.002-.002Zm0 .018v.002-.002Zm17.002.002v-.002.002Zm0-.018v-.002.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' viewBox='0 0 22 22' stroke='%2333b5e5'%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.517-.195 0-.461-.118-.775-.517-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11c0-2.447.331-4.64.853-6.206.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517.195 0 .461.118.775.517.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.333 1.333 0 0 1-.224-.138c.047-.038.12-.085.224-.138.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138-.047.038-.12.085-.224.138-.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.33 1.33 0 0 1-.224-.138 1.33 1.33 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.33 1.33 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.465 1.465 0 0 1-.39-.272.293.293 0 0 1-.047-.064.293.293 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.33.33 0 0 1 .047.064.293.293 0 0 1-.048.064 1.435 1.435 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.002-.002Zm0 .018v.002-.002Zm17.002.002v-.002.002Zm0-.018v-.002.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' viewBox='0 0 22 22' fill='%23333'%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' viewBox='0 0 22 22' fill='%2333b5e5'%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' viewBox='0 0 20 20' fill='%23333'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23aaa'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%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' viewBox='0 0 20 20' fill='%2333b5e5'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23e58978'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%2333b5e5'%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 id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23e54e33'%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 id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23fff'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23999'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%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' viewBox='0 0 20 20' fill='%2333b5e5'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23e58978'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%2333b5e5'%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 id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23e54e33'%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 id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' fill='%23000'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%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' viewBox='0 0 20 20' fill='%23666'%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 id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;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")}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{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.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{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;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");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.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{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left: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-rule='evenodd' viewBox='0 0 20 20' fill='%23fff'%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);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.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,[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.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-right:none;border-left-color:#fff}[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{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.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{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media(prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s 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{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`,document.head.appendChild(e)}})()});var xt=oe(It=>{"use strict";var T5=Cu(),_T=cm(),xT=y5(),N5e=Ad().addStyleRule,wT=Dn(),TK=Jo(),kK=L1(),CK=wT.extendFlat,k5=wT.extendDeepAll;It.modules={};It.allCategories={};It.allTypes=[];It.subplotsRegistry={};It.componentsRegistry={};It.layoutArrayContainers=[];It.layoutArrayRegexes=[];It.traceLayoutAttributes={};It.localeRegistry={};It.apiMethodRegistry={};It.collectableSubplotTypes=null;It.register=function(r){if(It.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":SK(a);break;case"component":LK(a);break;case"locale":DK(a);break;case"apiMethod":var n=a.name;It.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};It.getModule=function(e){var r=It.modules[kT(e)];return r?r._module:!1};It.traceIs=function(e,r){if(e=kT(e),e==="various")return!1;var t=It.modules[e];return t||(e&&T5.log("Unrecognized trace type "+e+"."),t=It.modules[TK.type.dflt]),!!t.categories[r]};It.getComponentMethod=function(e,r){var t=It.componentsRegistry[e];return t&&t[r]||_T};It.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return It.apiMethodRegistry[e].apply(null,r)};function SK(e){var r=e.name,t=e.categories,a=e.meta;if(It.modules[r]){T5.log("Type "+r+" already registered");return}It.subplotsRegistry[e.basePlotModule.name]||EK(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,It.allCategories[t[i]]=!0;It.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(It.modules[r].meta=a),It.allTypes.push(r);for(var o in It.componentsRegistry)AT(o,r);e.layoutAttributes&&CK(It.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&bT(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function EK(e){var r=e.name;if(It.subplotsRegistry[r]){T5.log("Plot type "+r+" already registered.");return}MT(e),It.subplotsRegistry[r]=e;for(var t in It.componentsRegistry)TT(t,e.name)}function LK(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;It.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&xT(It.layoutArrayContainers,r),MT(e));for(var t in It.modules)AT(r,t);for(var a in It.subplotsRegistry)TT(r,a);e.schema&&e.schema.layout&&k5(kK,e.schema.layout)}function DK(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=It.localeRegistry,s=l[r];if(s||(l[r]=s={}),t!==r){var u=l[t];u||(l[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),o&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),o&&(s.format=n)}function MT(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)xT(It.layoutArrayRegexes,r[t])}}function AT(e,r){var t=It.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&k5(It.modules[r]._module.attributes,a)}}function TT(e,r){var t=It.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=It.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&&k5(n,o)}}function kT(e){return typeof e=="object"&&(e=e.type),e}});var RT=oe(gn=>{"use strict";var FK=d1().timeFormat,qT=Jt(),C5=Cu(),Mf=(m1(),_r(p1)).mod,q1=(ja(),_r(tn)),Qo=q1.BADNUM,oo=q1.ONEDAY,kd=q1.ONEHOUR,wf=q1.ONEMIN,F1=q1.ONESEC,Cd=q1.EPOCHJD,Su=xt(),CT=d1().utcFormat,qK=/^\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,PK=/^\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,ST=new Date().getFullYear()-70;function Eu(e){return e&&Su.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}gn.dateTick0=function(e,r){var t=RK(e,!!r);if(r<2)return t;var a=gn.dateTime2ms(t,e);return a+=oo*(r-1),gn.ms2DateTime(a,0,e)};function RK(e,r){return Eu(e)?r?Su.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Su.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}gn.dfltRange=function(e){return Eu(e)?Su.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};gn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var _m,xm;gn.dateTime2ms=function(e,r){if(gn.isJSDate(e)){var t=e.getTimezoneOffset()*wf,a=(e.getUTCMinutes()-e.getMinutes())*wf+(e.getUTCSeconds()-e.getSeconds())*F1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*wf;t=t-n/2+Mf(a-t+n/2,n)}return e=Number(e)-t,e>=_m&&e<=xm?e:Qo}if(typeof e!="string"&&typeof e!="number")return Qo;e=String(e);var i=Eu(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?PK:qK);if(!s)return Qo;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),d=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Qo;u=Number(u);var m;try{var y=Su.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(x){return Qo}return m?(m.toJD()-Cd)*oo+d*kd+h*wf+p*F1:Qo}u.length===2?u=(Number(u)+2e3-ST)%100+ST:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,c,d,h));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==c?Qo:C.getTime()+p*F1};_m=gn.MIN_MS=gn.dateTime2ms("-9999");xm=gn.MAX_MS=gn.dateTime2ms("9999-12-31 23:59:59.9999");gn.isDateTime=function(e,r){return gn.dateTime2ms(e,r)!==Qo};function D1(e,r){return String(e+Math.pow(10,r)).slice(1)}var bm=90*oo,ET=3*kd,LT=5*wf;gn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=_m&&e<=xm))return Qo;r||(r=0);var a=Math.floor(Mf(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Eu(t)){var c=Math.floor(n/oo)+Cd,d=Math.floor(Mf(e,oo));try{i=Su.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=CT("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<bm?Math.floor(d/kd):0,l=r<bm?Math.floor(d%kd/wf):0,s=r<ET?Math.floor(d%wf/F1):0,u=r<LT?d%F1*10+a:0}else f=new Date(n),i=CT("%Y-%m-%d")(f),o=r<bm?f.getUTCHours():0,l=r<bm?f.getUTCMinutes():0,s=r<ET?f.getUTCSeconds():0,u=r<LT?f.getUTCMilliseconds()*10+a:0;return PT(i,o,l,s,u)};gn.ms2DateTimeLocal=function(e){if(!(e>=_m+oo&&e<=xm-oo))return Qo;var r=Math.floor(Mf(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=FK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return PT(a,n,i,o,l)};function PT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+D1(r,2)+":"+D1(t,2),(a||n)&&(e+=":"+D1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+D1(n,i)}return e}gn.cleanDate=function(e,r,t){if(e===Qo)return r;if(gn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Eu(t))return C5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=gn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!gn.isDateTime(e,t))return C5.error("unrecognized date",e),r;return e};var zK=/%\d?f/g,NK=/%h/g,IK={1:"1",2:"1",3:"2",4:"2"};function DT(e,r,t,a){e=e.replace(zK,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(NK,function(){return IK[t("%q")(n)]}),Eu(a))try{e=Su.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var BK=[59,59.9,59.99,59.999,59.9999];function HK(e,r){var t=Mf(e+.05,oo),a=D1(Math.floor(t/kd),2)+":"+D1(Mf(Math.floor(t/wf),60),2);if(r!=="M"){qT(r)||(r=0);var n=Math.min(Mf(e/F1,60),BK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}gn.formatDate=function(e,r,t,a,n,i){if(n=Eu(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 HK(e,t)+`
`+DT(i.dayMonthYear,e,a,n);return DT(r,e,a,n)};var FT=3*oo;gn.incrementMonth=function(e,r,t){t=Eu(t)&&t;var a=Mf(e,oo);if(e=Math.round(e-a),t)try{var n=Math.round(e/oo)+Cd,i=Su.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Cd)*oo+a}catch(s){C5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+FT);return l.setUTCMonth(l.getUTCMonth()+r)+a-FT};gn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Eu(r)&&Su.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!qT(l)){i++;continue}if(!(l%oo))if(s)try{o=s.fromJD(l/oo+Cd),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 wm=oe((H5e,zT)=>{"use strict";zT.exports=function(r){return r}});var E5=oe(Lu=>{"use strict";var OK=Jt(),UK=Cu(),GK=wm(),YK=(ja(),_r(tn)).BADNUM,S5=1e-9;Lu.findBin=function(e,r,t){if(OK(r.start))return t?Math.ceil((e-r.start)/r.size-S5)-1:Math.floor((e-r.start)/r.size+S5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?VK:XK:s=t?WK:jK,e+=o*S5*(t?-1:1)*(o>=0?1:-1);a<n&&i++<100;)l=Math.floor((a+n)/2),s(r[l],e)?a=l+1:n=l;return i>90&&UK.log("Long binary search..."),a-1};function VK(e,r){return e<r}function XK(e,r){return e<=r}function jK(e,r){return e>r}function WK(e,r){return e>=r}Lu.sorterAsc=function(e,r){return e-r};Lu.sorterDes=function(e,r){return r-e};Lu.distinctVals=function(e){var r=e.slice();r.sort(Lu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===YK;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Lu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a<n&&o++<100;)i=u((a+n)/2),r[i]<=e?a=i+l:n=i-s;return r[a]};Lu.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()};Lu.findIndexOfMin=function(e,r){r=r||GK;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 Mm={};Ua(Mm,{default:()=>$K});function ZK(e){return Object.keys(e).sort()}var $K,Am=Oa(()=>{"use strict";$K=ZK});var NT=oe(yn=>{"use strict";var Sd=Jt(),JK=ao().isArrayOrTypedArray;yn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Sd(r)||(r=!1),JK(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=yn.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)Sd(r)?Sd(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};yn.len=function(e){return yn.aggNums(function(r){return r+1},0,e)};yn.mean=function(e,r){return r||(r=yn.len(e)),yn.aggNums(function(t,a){return t+a},0,e)/r};yn.geometricMean=function(e,r){return r||(r=yn.len(e)),Math.pow(yn.aggNums(function(t,a){return t*a},1,e),1/r)};yn.midRange=function(e){if(!(e===void 0||e.length===0))return(yn.aggNums(Math.max,null,e)+yn.aggNums(Math.min,null,e))/2};yn.variance=function(e,r,t){return r||(r=yn.len(e)),Sd(t)||(t=yn.mean(e,r)),yn.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};yn.stdev=function(e,r,t){return Math.sqrt(yn.variance(e,r,t))};yn.median=function(e){var r=e.slice().sort();return yn.interp(r,.5)};yn.interp=function(e,r){if(!Sd(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 UT=oe((G5e,OT)=>{"use strict";var IT=(m1(),_r(p1)),L5=IT.mod,KK=IT.modHalf,Ed=Math.PI,Af=2*Ed;function QK(e){return e/180*Ed}function eQ(e){return e/Ed*180}function D5(e){return Math.abs(e[1]-e[0])>Af-1e-14}function BT(e,r){return KK(r-e,Af)}function rQ(e,r){return Math.abs(BT(e,r))}function HT(e,r){if(D5(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=L5(t,Af),a=L5(a,Af),t>a&&(a+=Af);var n=L5(e,Af),i=n+Af;return n>=t&&n<=a||i>=t&&i<=a}function tQ(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=D5([t,a]),s,u,f,c,d;l?(s=0,u=Ed,f=Af):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,d=r):(c=r,d=e);function h(b,C){return[b*Math.cos(C)+n,i-b*Math.sin(C)]}var p=Math.abs(f-s)<=Ed?0:1;function m(b,C,x){return"A"+[b,b]+" "+[0,p,x]+" "+h(b,C)}var y;return l?c===null?y="M"+h(d,s)+m(d,u,0)+m(d,f,0)+"Z":y="M"+h(c,s)+m(c,u,0)+m(c,f,0)+"ZM"+h(d,s)+m(d,u,1)+m(d,f,1)+"Z":c===null?(y="M"+h(d,s)+m(d,f,0),o&&(y+="L0,0Z")):y="M"+h(c,s)+"L"+h(d,s)+m(d,f,0)+"L"+h(c,f)+m(c,s,1)+"Z",y}function aQ(e,r,t,a,n){return F5(null,e,r,t,a,n,0)}function nQ(e,r,t,a,n){return F5(null,e,r,t,a,n,1)}function iQ(e,r,t,a,n,i){return F5(e,r,t,a,n,i,1)}OT.exports={deg2rad:QK,rad2deg:eQ,angleDelta:BT,angleDist:rQ,isFullCircle:D5,isAngleInsideSector:HT,isPtInsideSector:tQ,pathArc:aQ,pathSector:nQ,pathAnnulus:iQ}});var GT=oe(j0=>{"use strict";j0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};j0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};j0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};j0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};j0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};j0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var XT=oe(W0=>{"use strict";var q5=(m1(),_r(p1)).mod;W0.segmentsIntersect=VT;function VT(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,d=i-r,h=l-i,p=s*h-f*c;if(p===0)return null;var m=(u*h-f*d)/p,y=(u*c-s*d)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}W0.segmentDistance=function(r,t,a,n,i,o,l,s){if(VT(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,d=s-o,h=u*u+f*f,p=c*c+d*d,m=Math.min(Tm(u,f,h,i-r,o-t),Tm(u,f,h,l-r,s-t),Tm(c,d,p,r-i,t-o),Tm(c,d,p,a-i,n-o));return Math.sqrt(m)};function Tm(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 s=a*r-n*e;return s*s/t}}var km,P5,YT;W0.getTextLocation=function(r,t,a,n){if((r!==P5||n!==YT)&&(km={},P5=r,YT=n),km[a])return km[a];var i=r.getPointAtLength(q5(a-n/2,t)),o=r.getPointAtLength(q5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(q5(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return km[a]=c,c};W0.clearLocationCache=function(){P5=null};W0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,d;function h(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(d=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 p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-d.x)<.1&&Math.abs(c.y-d.y)<.1}};W0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,d,h,p;u<l;){if(d=(f+c)/2,h=r.getPointAtLength(d),p=h[a]-t,Math.abs(p)<o)return h;s*p>0?c=d:f=d,u++}return h}});var Cm=oe(Ld=>{"use strict";var Du={};Ld.throttle=function(r,t,a){var n=Du[r],i=Date.now();if(!n){for(var o in Du)Du[o].ts<i-6e4&&delete Du[o];n=Du[r]={ts:0,timer:null}}jT(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)};Ld.done=function(e){var r=Du[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Ld.clear=function(e){if(e)jT(Du[e]),delete Du[e];else for(var r in Du)Ld.clear(r)};function jT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var ZT=oe((j5e,WT)=>{"use strict";WT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var $T=oe((W5e,Sm)=>{"use strict";Sm.exports=R5;Sm.exports.isMobile=R5;Sm.exports.default=R5;var oQ=/(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,lQ=/CrOS/,sQ=/android|ipad|playbook|silk/i;function R5(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=oQ.test(r)&&!lQ.test(r)||!!e.tablet&&sQ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var KT=oe((Z5e,JT)=>{"use strict";var uQ=Jt(),fQ=$T();JT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=cQ(),typeof t!="string")return!0;var a=fQ({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 s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(uQ(u)&&(u=+u),u>=13)return!0}}}return a};function cQ(){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 ek=oe(($5e,QT)=>{"use strict";var vQ=qt();QT.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]=vQ.select(this)}),n}});var tk=oe((J5e,rk)=>{"use strict";var dQ=xt();rk.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 s=l[t];if(s)return s}i=dQ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var nk=oe((K5e,ak)=>{"use strict";ak.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 ok=oe((Q5e,ik)=>{"use strict";ik.exports=function(r){for(var t=mQ(r)?pQ:hQ,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function hQ(e){return e.visible===!0}function pQ(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function mQ(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var sk=oe((e6e,lk)=>{"use strict";lk.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 s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var fk={};Ua(fk,{default:()=>bQ});function yQ(e){return typeof e=="string"&&(e=e.replace(gQ,"")),(0,uk.default)(e)?Number(e):void 0}var uk,gQ,bQ,ck=Oa(()=>{"use strict";uk=H_(Jt());ja();gQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;bQ=yQ});var hk=oe((t6e,dk)=>{"use strict";var _Q=/<[^>]*>/g,xQ=/[\p{S}\p{P}]/gu,wQ=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,MQ=/�/g,AQ=/\s+/g,Em="-",vk=Em.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),TQ=new RegExp(vk+"{3,}","g"),kQ=new RegExp(vk+"$","g"),CQ=60;function SQ(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}dk.exports=function(r,t=CQ){var a=SQ(r!=null?r:"").replace(MQ,"").replace(_Q," ").replace(xQ,n=>n===Em?n:"").toLowerCase().trim().replace(AQ,Em).replace(wQ,"").replace(TQ,Em);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(kQ,"")}});var pr=oe((a6e,kk)=>{"use strict";var Dd=qt(),EQ=d1().utcFormat,LQ=Ly().format,_k=Jt(),xk=(ja(),_r(tn)),wk=xk.FP_SAFE,DQ=-wk,pk=xk.BADNUM,qe={};kk.exports=qe;qe.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 mk={};qe.warnBadFormat=function(e){var r=String(e);mk[r]||(mk[r]=1,qe.warn('encountered bad format: "'+r+'"'))};qe.noFormat=function(e){return String(e)};qe.numberFormat=function(e){var r;try{r=LQ(qe.adjustFormat(e))}catch(t){return qe.warnBadFormat(e),qe.noFormat}return r};qe.nestedProperty=Qv();qe.keyedContainer=ux();qe.relativeAttr=cx();qe.isPlainObject=hf();qe.toLogRange=qp();qe.relinkPrivateKeys=px();var Tf=ao();qe.isArrayBuffer=Tf.isArrayBuffer;qe.isTypedArray=Tf.isTypedArray;qe.isArrayOrTypedArray=Tf.isArrayOrTypedArray;qe.isArray1D=Tf.isArray1D;qe.ensureArray=Tf.ensureArray;qe.concat=Tf.concat;qe.maxRowLength=Tf.maxRowLength;qe.minRowLength=Tf.minRowLength;var Mk=(m1(),_r(p1));qe.mod=Mk.mod;qe.modHalf=Mk.modHalf;var kf=zM();qe.valObjectMeta=kf.valObjectMeta;qe.coerce=kf.coerce;qe.coerce2=kf.coerce2;qe.coerceFont=kf.coerceFont;qe.coercePattern=kf.coercePattern;qe.coerceHoverinfo=kf.coerceHoverinfo;qe.coerceSelectionMarkerOpacity=kf.coerceSelectionMarkerOpacity;qe.validate=kf.validate;var So=RT();qe.dateTime2ms=So.dateTime2ms;qe.isDateTime=So.isDateTime;qe.ms2DateTime=So.ms2DateTime;qe.ms2DateTimeLocal=So.ms2DateTimeLocal;qe.cleanDate=So.cleanDate;qe.isJSDate=So.isJSDate;qe.formatDate=So.formatDate;qe.incrementMonth=So.incrementMonth;qe.dateTick0=So.dateTick0;qe.dfltRange=So.dfltRange;qe.findExactDates=So.findExactDates;qe.MIN_MS=So.MIN_MS;qe.MAX_MS=So.MAX_MS;var Z0=E5();qe.findBin=Z0.findBin;qe.sorterAsc=Z0.sorterAsc;qe.sorterDes=Z0.sorterDes;qe.distinctVals=Z0.distinctVals;qe.roundUp=Z0.roundUp;qe.sort=Z0.sort;qe.findIndexOfMin=Z0.findIndexOfMin;qe.sortObjectKeys=(Am(),_r(Mm)).default;var Fu=NT();qe.aggNums=Fu.aggNums;qe.len=Fu.len;qe.mean=Fu.mean;qe.geometricMean=Fu.geometricMean;qe.median=Fu.median;qe.midRange=Fu.midRange;qe.variance=Fu.variance;qe.stdev=Fu.stdev;qe.interp=Fu.interp;var Ul=vm();qe.init2dArray=Ul.init2dArray;qe.transposeRagged=Ul.transposeRagged;qe.dot=Ul.dot;qe.translationMatrix=Ul.translationMatrix;qe.rotationMatrix=Ul.rotationMatrix;qe.rotationXYMatrix=Ul.rotationXYMatrix;qe.apply3DTransform=Ul.apply3DTransform;qe.apply2DTransform=Ul.apply2DTransform;qe.apply2DTransform2=Ul.apply2DTransform2;qe.convertCssMatrix=Ul.convertCssMatrix;qe.inverseTransformMatrix=Ul.inverseTransformMatrix;var Ds=UT();qe.deg2rad=Ds.deg2rad;qe.rad2deg=Ds.rad2deg;qe.angleDelta=Ds.angleDelta;qe.angleDist=Ds.angleDist;qe.isFullCircle=Ds.isFullCircle;qe.isAngleInsideSector=Ds.isAngleInsideSector;qe.isPtInsideSector=Ds.isPtInsideSector;qe.pathArc=Ds.pathArc;qe.pathSector=Ds.pathSector;qe.pathAnnulus=Ds.pathAnnulus;var R1=GT();qe.isLeftAnchor=R1.isLeftAnchor;qe.isCenterAnchor=R1.isCenterAnchor;qe.isRightAnchor=R1.isRightAnchor;qe.isTopAnchor=R1.isTopAnchor;qe.isMiddleAnchor=R1.isMiddleAnchor;qe.isBottomAnchor=R1.isBottomAnchor;var z1=XT();qe.segmentsIntersect=z1.segmentsIntersect;qe.segmentDistance=z1.segmentDistance;qe.getTextLocation=z1.getTextLocation;qe.clearLocationCache=z1.clearLocationCache;qe.getVisibleSegment=z1.getVisibleSegment;qe.findPointOnPath=z1.findPointOnPath;var Fm=Dn();qe.extendFlat=Fm.extendFlat;qe.extendDeep=Fm.extendDeep;qe.extendDeepAll=Fm.extendDeepAll;qe.extendDeepNoArrays=Fm.extendDeepNoArrays;var z5=Cu();qe.log=z5.log;qe.warn=z5.warn;qe.error=z5.error;var FQ=(C1(),_r(Md));qe.counterRegex=FQ.counter;var N5=Cm();qe.throttle=N5.throttle;qe.throttleDone=N5.done;qe.clearThrottle=N5.clear;var Gl=Ad();qe.getGraphDiv=Gl.getGraphDiv;qe.isPlotDiv=Gl.isPlotDiv;qe.removeElement=Gl.removeElement;qe.addStyleRule=Gl.addStyleRule;qe.addRelatedStyleRule=Gl.addRelatedStyleRule;qe.deleteRelatedStyleRule=Gl.deleteRelatedStyleRule;qe.setStyleOnHover=Gl.setStyleOnHover;qe.getFullTransformMatrix=Gl.getFullTransformMatrix;qe.getElementTransformMatrix=Gl.getElementTransformMatrix;qe.getElementAndAncestors=Gl.getElementAndAncestors;qe.equalDomRects=Gl.equalDomRects;qe.clearResponsive=ZT();qe.preserveDrawingBuffer=KT();qe.makeTraceGroups=ek();qe._=tk();qe.notifier=u5();qe.filterUnique=nk();qe.filterVisible=ok();qe.pushUnique=y5();qe.increment=sk();qe.cleanNumber=(ck(),_r(fk)).default;qe.slugify=hk();qe.ensureNumber=function(r){return _k(r)?(r=Number(r),r>wk||r<DQ?pk:r):pk};qe.isIndex=function(e,r){return r!==void 0&&e>=r?!1:_k(e)&&e>=0&&e%1===0};qe.noop=cm();qe.identity=wm();qe.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};qe.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=qe.nestedProperty(e,i.replace("?",t)),l=qe.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};qe.raiseToTop=function(r){r.parentNode.appendChild(r)};qe.cancelTransition=function(e){return e.transition().duration(0)};qe.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};qe.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};qe.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};qe.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,s,u;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++)u=Math.floor(Math.random()*a).toString(a),o=u+o;f&&(s=Math.pow(a,f),u=Math.floor(Math.random()*s).toString(a),o=u+o);var c=parseInt(o,a);return r&&r[o]||c!==1/0&&c>=Math.pow(2,t)?n>10?(qe.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};qe.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};qe.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,s,u,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,s=0;s<n;s++)u=l+s+1-r,u<-t?u-=a*Math.round(u/a):u>=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};qe.syncOrAsync=function(e,r,t){var a,n;function i(){return qe.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)};qe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};qe.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]]}};qe.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(qe.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}};qe.mergeArrayCastPositive=function(e,r,t){return qe.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};qe.fillArray=function(e,r,t,a){if(a=a||qe.identity,qe.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};qe.castOption=function(e,r,t,a){a=a||qe.identity;var n=qe.nestedProperty(e,t).get();return qe.isArrayOrTypedArray(n)?Array.isArray(r)&&qe.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};qe.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=qe.nestedProperty(r,a).get();if(!Array.isArray(n))return n};qe.tagSelected=function(e,r,t){var a=r.selectedpoints;function n(u){return u!==void 0&&u<e.length}for(var i=0;i<a.length;i++){var o=a[i];if(qe.isIndex(o)||qe.isArrayOrTypedArray(o)&&qe.isIndex(o[0])&&qe.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};qe.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=qe.nestedProperty(e,t).get();return qe.isArrayOrTypedArray(a)?a:!1}else if(qe.isArrayOrTypedArray(t))return t;return!1};function Ak(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),o,l,s;for(o=0;o<i.length;o++)l=i[o],s=e[l],!(l.charAt(0)==="_"||typeof s=="function")&&(l==="module"?a[l]=s:Array.isArray(s)?l==="colorscale"||n===-1?a[l]=s.slice():a[l]=s.slice(0,n):qe.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=Ak(e[l],r[l],t):a[l]=s);for(i=Object.keys(r),o=0;o<i.length;o++)l=i[o],s=r[l],(typeof s!="object"||!(l in a)||typeof a[l]!="object")&&(a[l]=s);return a}qe.minExtend=Ak;qe.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};qe.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var qQ=/Version\/[\d\.]+.*Safari/;qe.isSafari=function(){return qQ.test(window.navigator.userAgent)};var PQ=/iPad|iPhone|iPod/;qe.isIOS=function(){return PQ.test(window.navigator.userAgent)};var RQ=/Macintosh.+AppleWebKit.+Gecko\)$/;qe.isMacWKWebView=()=>RQ.test(window.navigator.userAgent);var zQ=/Firefox\/(\d+)\.\d+/;qe.getFirefoxVersion=function(){var e=zQ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};qe.isD3Selection=function(e){return e instanceof Dd.selection};qe.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};qe.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};qe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var o=t[i],l=null,s=t[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[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 NQ=/^([^\[\.]+)\.(.+)?/,IQ=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Lm(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}qe.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(NQ)){if(n=e[t],a=r[1],Lm(e,a))continue;delete e[t],e[a]=qe.extendDeepNoArrays(e[a]||{},qe.objectFromPath(t,qe.expandObjectPaths(n))[a])}else if(r=t.match(IQ)){if(n=e[t],a=r[1],Lm(e,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]||{},qe.extendDeepNoArrays(o,qe.objectFromPath(l,qe.expandObjectPaths(n)));else{if(Lm(e,a))continue;e[a][i]=qe.expandObjectPaths(n)}}else{if(Lm(e,t))continue;e[t]=qe.expandObjectPaths(e[t])}}return e};qe.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],s=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+s};qe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Tk=/^\w*$/;qe.templateString=function(e,r){var t={};return e.replace(qe.TEMPLATE_STRING_REGEX,function(a,n){var i;return Tk.test(n)?i=r[n]:(t[n]=t[n]||qe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var BQ={max:10,count:0,name:"hovertemplate"};qe.hovertemplateString=e=>I5(Ha(pa({},e),{opts:BQ}));var HQ={max:10,count:0,name:"texttemplate"};qe.texttemplateString=e=>I5(Ha(pa({},e),{opts:HQ}));var OQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function UQ(e){var r=e.match(OQ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var GQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};qe.texttemplateStringForShapes=e=>I5(Ha(pa({},e),{opts:GQ}));var gk=/^[:|\|]/;function I5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(qe.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),d=["xother_","yother_"].includes(l),h=u||f||d||c;(f||c)&&(l=l.substring(1)),(d||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var y=UQ(l);l=y.key,p=y.op,m=y.number}let b;if(h){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(Tk.test(l)||(b=qe.nestedProperty(M,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:M,max:A,name:k}=n,D=t===!1?o:t;return M<A&&qe.warn([`Variable '${l}' in ${k} could not be found!`,"Please verify that the template is correct.",`Using value: '${D}'.`].join(" ")),M===A&&qe.warn(`Too many '${k}' warnings - additional warnings will be suppressed.`),n.count++,D}if(p==="*"&&(b*=m),p==="/"&&(b/=m),s){var C;if(s[0]===":"&&(C=r?r.numberFormat:qe.numberFormat,b!==""&&(b=C(s.replace(gk,""))(b))),s[0]==="|"){C=r?r.timeFormat:EQ;var x=qe.dateTime2ms(b);b=qe.formatDate(x,s.replace(gk,""),!1,C)}}else{var _=l+"Label";a.hasOwnProperty(_)&&(b=a[_])}return h&&(b="("+b+")",(f||c)&&(b=" "+b),(d||c)&&(b=b+" ")),b})}var Dm=48,yk=57;qe.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,s=o>=Dm&&o<=yk,u=l>=Dm&&l<=yk;if(s&&(a=10*a+o-Dm),u&&(n=10*n+l-Dm),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var P1=2e9;qe.seedPseudoRandom=function(){P1=2e9};qe.pseudoRandom=function(){var e=P1;return P1=(69069*P1+1)%4294967296,Math.abs(P1-e)<429496729?qe.pseudoRandom():P1/4294967296};qe.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=qe.extractOption(e,r,"htx","hovertext");if(qe.isValidTextValue(n))return a(n);var i=qe.extractOption(e,r,"tx","text");if(qe.isValidTextValue(i))return a(i)};qe.isValidTextValue=function(e){return e||e===0};qe.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};qe.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};qe.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};qe.strRotate=function(e){return e?"rotate("+e+")":""};qe.strScale=function(e){return e!==1?"scale("+e+")":""};qe.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,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,qe.strTranslate(n-u*(t+o),i-u*(a+l))+qe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};qe.setTransormAndDisplay=function(e,r){e.attr("transform",qe.getTextTransform(r)),e.style("display",r.scale?null:"none")};qe.ensureUniformFontSize=function(e,r){var t=qe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};qe.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)};qe.bigFont=function(e){return Math.round(1.2*e)};var bk=qe.getFirefoxVersion(),YQ=bk!==null&&bk<86;qe.getPositionFromD3Event=function(){return YQ?[Dd.event.layerX,Dd.event.layerY]:[Dd.event.offsetX,Dd.event.offsetY]}});var Ek=oe(()=>{"use strict";var VQ=pr(),Ck={"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(B5 in Ck)Sk=B5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),VQ.addStyleRule(Sk,Ck[B5]);var Sk,B5});var H5=oe((l6e,Lk)=>{Lk.exports=!0});var U5=oe((s6e,Dk)=>{"use strict";var XQ=H5(),O5;typeof window.matchMedia=="function"?O5=!window.matchMedia("(hover: none)").matches:O5=XQ;Dk.exports=O5});var Rm=oe((u6e,G5)=>{"use strict";var N1=typeof Reflect=="object"?Reflect:null,Fk=N1&&typeof N1.apply=="function"?N1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},qm;N1&&typeof N1.ownKeys=="function"?qm=N1.ownKeys:Object.getOwnPropertySymbols?qm=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:qm=function(r){return Object.getOwnPropertyNames(r)};function jQ(e){console&&console.warn&&console.warn(e)}var Pk=Number.isNaN||function(r){return r!==r};function Fa(){Fa.init.call(this)}G5.exports=Fa;G5.exports.once=JQ;Fa.EventEmitter=Fa;Fa.prototype._events=void 0;Fa.prototype._eventsCount=0;Fa.prototype._maxListeners=void 0;var qk=10;function Pm(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 qk},set:function(e){if(typeof e!="number"||e<0||Pk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qk=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||Pk(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 Rk(e){return e._maxListeners===void 0?Fa.defaultMaxListeners:e._maxListeners}Fa.prototype.getMaxListeners=function(){return Rk(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 s=i[r];if(s===void 0)return!1;if(typeof s=="function")Fk(s,this,t);else for(var u=s.length,f=Hk(s,u),a=0;a<u;++a)Fk(f[a],this,t);return!0};function zk(e,r,t,a){var n,i,o;if(Pm(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=Rk(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,jQ(l)}return e}Fa.prototype.addListener=function(r,t){return zk(this,r,t,!1)};Fa.prototype.on=Fa.prototype.addListener;Fa.prototype.prependListener=function(r,t){return zk(this,r,t,!0)};function WQ(){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 Nk(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=WQ.bind(a);return n.listener=t,a.wrapFn=n,n}Fa.prototype.once=function(r,t){return Pm(t),this.on(r,Nk(this,r,t)),this};Fa.prototype.prependOnceListener=function(r,t){return Pm(t),this.prependListener(r,Nk(this,r,t)),this};Fa.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Pm(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():ZQ(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 Ik(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?$Q(n):Hk(n,n.length)}Fa.prototype.listeners=function(r){return Ik(this,r,!0)};Fa.prototype.rawListeners=function(r){return Ik(this,r,!1)};Fa.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Bk.call(e,r)};Fa.prototype.listenerCount=Bk;function Bk(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?qm(this._events):[]};function Hk(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function ZQ(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function $Q(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function JQ(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))}Ok(e,r,i,{once:!0}),r!=="error"&&KQ(e,n,{once:!0})})}function KQ(e,r,t){typeof e.on=="function"&&Ok(e,"error",r,t)}function Ok(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 Fd=oe((f6e,Uk)=>{"use strict";var Y5=Rm().EventEmitter,QQ={init:function(e){if(e._ev instanceof Y5)return e;var r=new Y5,t=new Y5;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(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.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}};Uk.exports=QQ});var Vk=oe((c6e,Yk)=>{"use strict";var Gk=pr(),eee=gf().dfltConfig;function ree(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 qu={};qu.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>eee.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.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++)qu.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};qu.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++)qu.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};qu.plotDo=function(e,r,t){e.autoplay=!0,t=ree(e,t),r.apply(null,t)};Yk.exports=qu});var V5=oe((v6e,Xk)=>{"use strict";Xk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var H1=oe(Fn=>{"use strict";var el=xt(),qd=pr(),Nm=Jo(),X5=L1(),tee=V5(),aee=Td(),nee=gf().configAttributes,jk=Ko(),Yl=qd.extendDeepAll,I1=qd.isPlainObject,iee=qd.isArrayOrTypedArray,Im=qd.nestedProperty,oee=qd.valObjectMeta,j5="_isSubplotObj",Bm="_isLinkedToArray",lee="_arrayAttrRegexps",Zk="_deprecated",W5=[j5,Bm,lee,Zk];Fn.IS_SUBPLOT_OBJ=j5;Fn.IS_LINKED_TO_ARRAY=Bm;Fn.DEPRECATED=Zk;Fn.UNDERSCORE_ATTRS=W5;Fn.get=function(){var e={};return el.allTypes.forEach(function(r){e[r]=uee(r)}),{defs:{valObjects:oee,metaKeys:W5.concat(["description","role","editType","impliedEdits"]),editType:{traces:jk.traces,layout:jk.layout},impliedEdits:{}},traces:e,layout:fee(),frames:cee(),animation:B1(aee),config:B1(nee)}};Fn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(W5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Fn.isValObject(o)&&I1(o)&&i!=="impliedEdits"&&Fn.crawl(o,r,n+1,l)}})};Fn.isValObject=function(e){return e&&e.valType!==void 0};Fn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],d=f+t[u];if(u===t.length-1)iee(c)&&r.push(i+d);else if(a[u]){if(Array.isArray(c))for(var h=0;h<c.length;h++)I1(c[h])&&l(c[h],u+1,d+"["+h+"].")}else I1(c)&&l(c,u+1,d+".")}return n=e,i="",Fn.crawl(Nm,o),e._module&&e._module.attributes&&Fn.crawl(e._module.attributes,o),r};Fn.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(el.modules[e.type||Nm.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=Nm[t]),$k(i,r,a)};Fn.getLayoutValObject=function(e,r){var t=see(e,r[0]);return $k(t,r,1)};function see(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 s=n.baseLayoutAttrOverrides;if(s&&r in s)return s[r]}if(l)return l}var u=e._modules;if(u){for(t=0;t<u.length;t++)if(i=u[t].layoutAttributes,i&&r in i)return i[r]}for(a in el.componentsRegistry){if(n=el.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 X5?X5[r]:!1}function $k(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(zm(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(I1(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!zm(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!zm(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(!zm(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function zm(e){return e===Math.round(e)&&e>=0}function uee(e){var r,t;r=el.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Yl({},Nm),i=Yl({},r.attributes);Fn.crawl(i,function(s,u,f,c,d){Im(n,d).set(void 0),s===void 0&&Im(i,d).set(void 0)}),Yl(a,n),el.traceIs(e,"noOpacity")&&delete a.opacity,el.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),el.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Yl(a,i),t.attributes&&Yl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:B1(a)};if(r.layoutAttributes){var l={};Yl(l,r.layoutAttributes),o.layoutAttributes=B1(l)}return r.animatable||Fn.crawl(o,function(s){Fn.isValObject(s)&&"anim"in s&&delete s.anim}),o}function fee(){var e={},r,t;Yl(e,X5);for(r in el.subplotsRegistry)if(t=el.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 el.componentsRegistry){t=el.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"?Yl(e,t.layoutAttributes):t.layoutAttributes&&pee(e,t.layoutAttributes,t.name)}return{layoutAttributes:B1(e)}}function cee(){var e={frames:Yl({},tee)};return B1(e),e.frames}function B1(e){return vee(e),dee(e),hee(e),e}function vee(e){function r(t,a,n){!Fn.isValObject(t)&&I1(t)&&(t.role="object")}Fn.crawl(e,r)}function dee(e){function r(t,a,n){if(t){var i=t[Bm];i&&(delete t[Bm],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}Fn.crawl(e,r)}function hee(e){function r(t){for(var a in t)if(I1(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=Im(e,t),n=Yl({},r.layoutAttributes);n[j5]=!0,a.set(n)}function pee(e,r,t){var a=Im(e,t);a.set(Yl(a.get()||{},r))}});var Aa=oe($0=>{"use strict";var O1=pr(),mee=Jo(),Cf="templateitemname",Z5={name:{valType:"string",editType:"none"}};Z5[Cf]={valType:"string",editType:"calc"};$0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Z5.name,r[Cf]=Z5[Cf],r};$0.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=O1.coerce(i,{},mee,"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}};$0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);O1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};$0.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(u){var f={name:u.name,_input:u},c=f[Cf]=u[Cf];if(!Jk(c))return f._template=n,f;for(var d=0;d<i.length;d++){var h=i[d];if(h.name===c)return o[c]=1,f._template=h,f}return f[t]=u[t]||!1,f._template=!1,f}function s(){for(var u=[],f=0;f<i.length;f++){var c=i[f],d=c.name;if(Jk(d)&&!o[d]){var h={_template:c,name:d,_input:{_templateitemname:d}};h[Cf]=c[Cf],u.push(h),o[d]=1}}return u}return{newItem:l,defaultItems:s}};function Jk(e){return e&&typeof e=="string"}function Kk(e){var r=e.length-1;return e.charAt(r)!=="s"&&O1.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}$0.arrayDefaultKey=Kk;$0.arrayEditor=function(e,r,t){var a=(O1.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Cf]=i)}s();function u(h,p){l[h]=p}function f(h,p){i?O1.nestedProperty(l[o],h).set(p):l[o+"."+h]=p}function c(){var h=l;return s(),h}function d(h,p){h&&f(h,p);var m=c();for(var y in m)O1.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var On={};Ua(On,{AX_ID_PATTERN:()=>xee,AX_NAME_PATTERN:()=>wee,DFLTRANGEX:()=>Lee,DFLTRANGEY:()=>Dee,DRAGGERSIZE:()=>See,HOUR_PATTERN:()=>Aee,MINDRAG:()=>kee,MINZOOM:()=>Cee,REDRAWDELAY:()=>Eee,SUBPLOT_PATTERN:()=>Mee,WEEKDAY_PATTERN:()=>Tee,attrRegex:()=>yee,clipOnAxisFalseQuery:()=>qee,idRegex:()=>gee,layerValue2layerClass:()=>Pee,traceLayerClasses:()=>Fee,xAxisMatch:()=>bee,yAxisMatch:()=>_ee,zindexSeparator:()=>Ree});var gee,yee,bee,_ee,xee,wee,Mee,Aee,Tee,kee,Cee,See,Eee,Lee,Dee,Fee,qee,Pee,Ree,Un=Oa(()=>{"use strict";C1();gee={x:Y0("x","( domain)?"),y:Y0("y","( domain)?")},yee=Y0("[xy]axis"),bee=Y0("xaxis"),_ee=Y0("yaxis"),xee=/^[xyz][0-9]*( domain)?$/,wee=/^[xyz]axis[0-9]*$/,Mee=/^x([0-9]*)y([0-9]*)$/,Aee="hour",Tee="day of week",kee=8,Cee=20,See=20,Eee=50,Lee=[-1,6],Dee=[-1,4],Fee=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],qee=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Pee={"above traces":"above","below traces":"below"},Ree="z"});var qn=oe(lo=>{"use strict";var zee=xt(),$5=(Un(),_r(On));lo.id2name=function(r){if(!(typeof r!="string"||!r.match($5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};lo.name2id=function(r){if(r.match($5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};lo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match($5.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":"")}};lo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=lo.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 s=a._subplots.gl3d||[];for(o=0;o<s.length;o++){var u=a[s[o]];r?i.push(u[r+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i};lo.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)};lo.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[lo.id2name(r)]};lo.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(zee.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=lo.getFromId(e,r[t+"axis"]||t);return n};lo.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)};lo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Qk(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}lo.isLinked=function(e,r){return Qk(r,e._axisMatchGroups)||Qk(r,e._axisConstraintGroups)}});var Sf=oe((g6e,eC)=>{"use strict";function Nee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Iee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}eC.exports={clearOutlineControllers:Nee,clearOutline:Iee}});var Hm=oe((y6e,rC)=>{"use strict";rC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Pd=oe(Um=>{"use strict";var Om=xt(),b6e=(Un(),_r(On)).SUBPLOT_PATTERN;Um.getSubplotCalcData=function(e,r,t){var a=Om.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o<e.length;o++){var l=e[o],s=l[0].trace;s[n]===t&&i.push(l)}return i};Um.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Om.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 s=e[l],u=s[0].trace,f=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===i&&(!f||u.zorder===o)?a.push(s):n.push(s))}return[a,n]};Um.getSubplotData=function(r,t,a){if(!Om.subplotsRegistry[t])return[];for(var n=Om.subplotsRegistry[t].attr,i=[],o,l,s,u=0;u<r.length;u++)o=r[u],o[n]===a&&i.push(o);return i}});var iC=oe(J0=>{"use strict";var Bee=xt(),U1=pr();J0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=J0.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){tC(e,o,n.cache),n.check=function(){if(i){var f=tC(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"],s=0;s<l.length;s++)e._internalOn(l[s],n.check);n.remove=function(){for(var u=0;u<l.length;u++)e._removeInternalListener(l[u],n.check)}}else U1.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};J0.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var o,l=r[a],s=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!s)return!1;var f=J0.computeAPICommandBindings(e,s,u);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 d=o.value;if(Array.isArray(d))if(d.length===1)d=d[0];else return!1;t&&(t[d]=a)}return i};function tC(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=U1.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}}J0.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=Bee.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 U1.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};J0.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=nC(e,t);break;case"relayout":a=aC(e,t);break;case"update":a=nC(e,[t[0],t[2]]).concat(aC(e,[t[1]]));break;case"animate":a=Hee(e,t);break;default:a=[]}return a};function Hee(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 aC(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(U1.isPlainObject(a))n=a;else return t;return J5(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function nC(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(U1.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),J5(i,function(l,s,u){var f,c;if(Array.isArray(u)){c=u.slice();var d=Math.min(c.length,e.data.length);t&&(d=Math.min(d,t.length)),f=[];for(var h=0;h<d;h++)f[h]=t?t[h]:h}else c=u,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var p=c;c=[];for(var m=0;m<f.length;m++)c[m]=p}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function J5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;U1.isPlainObject(i)?J5(i,r,o,a+1):r(o,n,i)}})}});var Pn=oe((M6e,pC)=>{"use strict";var w6e=qt(),Oee=d1().timeFormatLocale,Uee=Ly().formatLocale,Rd=Jt(),Gee=Fy(),Yee=Kv().version,ea=xt(),Vee=H1(),Xee=Aa(),Qr=pr(),jee=Nt(),oC=(ja(),_r(tn)).BADNUM,so=qn(),Wee=Sf().clearOutline,Zee=Hm(),K5=Td(),$ee=V5(),Jee=Pd().getModuleCalcData,lC=Qr.relinkPrivateKeys,K0=Qr._,Ir=pC.exports={};Qr.extendFlat(Ir,ea);Ir.attributes=Jo();Ir.attributes.type.values=Ir.allTypes;Ir.fontAttrs=Ai();Ir.layoutAttributes=L1();var Ym=iC();Ir.executeAPICommand=Ym.executeAPICommand;Ir.computeAPICommandBindings=Ym.computeAPICommandBindings;Ir.manageCommandObserver=Ym.manageCommandObserver;Ir.hasSimpleAPICommandBindings=Ym.hasSimpleAPICommandBindings;Ir.redrawText=function(e){return e=Qr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ea.getComponentMethod("annotations","draw")(e),ea.getComponentMethod("legend","draw")(e),ea.getComponentMethod("colorbar","draw")(e),r(Ir.previousPromises(e)))},300)})};Ir.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,ea.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ir.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ir.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Ir.graphJson(e,!1,"object");a.version=Yee;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 Kee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Qee=["year","month","dayMonth","dayMonthYear"];Ir.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=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Ir.createTransitionData(e),n._dfltTitle={plot:K0(e,"Click to enter Plot title"),subtitle:K0(e,"Click to enter Plot subtitle"),x:K0(e,"Click to enter X axis title"),y:K0(e,"Click to enter Y axis title"),colorbar:K0(e,"Click to enter Colorscale title"),annotation:K0(e,"new text")},n._traceWord=K0(e,"trace");var d=sC(e,Kee);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;Ir.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=p),Ir.sanitizeMargins(n)}else{Ir.supplyLayoutGlobalDefaults(i,n,d);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,C=m&&(y||b);C?Ir.plotAutoSize(e,i,n):m&&Ir.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=tre(d,n.separators),n._extraFormat=sC(e,Qee),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=rre(),_=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=ere(o,s),Ir.supplyDataDefaults(s,l,i,n);var A=Object.keys(_.x),k=Object.keys(_.y);if(A.length>1&&k.length>1){for(ea.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<A.length;c++)Qr.pushUnique(x.xaxis,A[c]);for(c=0;c<k.length;c++)Qr.pushUnique(x.yaxis,k[c]);for(var D in M)Qr.pushUnique(x.cartesian,D)}if(n._has=Ir._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)lC(l[c],o[c]);Ir.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"&&A.length>15&&k.length>15&&n.shapes.length===0&&n.images.length===0,Ir.linkSubplots(l,n,o,a),Ir.cleanPlot(l,n,o,a);var Y=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),X=Y,N=H;X&&!N?a._bgLayer.remove():N&&!X&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Wee({_fullLayout:a}),are(l,n),lC(n,a),ea.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,ee={},ae;for(ae in Q)ee[ae]="old";for(c=0;c<l.length;c++)ae=l[c].uid,ee[ae]||(Q[ae]={}),ee[ae]="new";for(ae in ee)ee[ae]==="old"&&delete Q[ae];cC(n),ea.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&Ir.supplyDefaultsUpdateCalc(u,l)};Ir.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 ere(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 s(f,c){if(f&&typeof f=="string"&&!o[f])return l(f,c),!0}for(a=0;a<t;a++){var u=r[a].uid;typeof u=="number"&&(u=String(u)),!s(u,a)&&(a<n&&s(e[a].uid,a)||l(Qr.randstr(o),a))}return i}function rre(){var e=ea.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=ea.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 sC(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var d=!0,h=0;h<r.length;h++){var p=r[h];n[p]||(c[p]?n[p]=c[p]:d=!1)}d&&(a=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,s=0;s<2;s++){var u=(l[t]||{}).format;if(u&&(i(u),a))break;l=ea.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(ea.localeRegistry.en.format),n}function tre(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Uee(e).format(Qr.adjustFormat(t))}catch(a){return Qr.warnBadFormat(t),Qr.noFormat}return t},timeFormat:Oee(e).utcFormat}}function are(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)}Ir.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=[])};Ir._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=ea.modules[n];if(i&&i.categories[e])return!0}return!1};Ir.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 s=a._has&&a._has("gl"),u=r._has&&r._has("gl");s&&!u&&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],d=c.uid;for(i=0;i<e.length;i++){var h=e[i];if(d===h.uid)continue e}f&&a._infolayer.select(".cb"+d).remove()}};Ir.linkSubplots=function(e,r,t,a){var n,i,o=a._plots||{},l=r._plots={},s=r._subplots,u={_fullData:e,_fullLayout:r},f=s.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],d=o[c],h=so.getFromId(u,c,"x"),p=so.getFromId(u,c,"y"),m;for(d?m=l[c]=d:(m=l[c]={},m.id=c),h._counterAxes.push(p._id),p._counterAxes.push(h._id),h._subplotsWith.push(c),p._subplotsWith.push(c),m.xaxis=h,m.yaxis=p,m._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===m.xaxis._id&&y.yaxis===m.yaxis._id&&y.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var b=so.list(u,null,!0),C;for(n=0;n<b.length;n++){C=b[n];var x=null;C.overlaying&&(x=so.getFromId(u,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:so.getFromId(u,C.anchor)}for(n=0;n<b.length;n++)if(C=b[n],C._counterAxes.sort(so.idSort),C._subplotsWith.sort(Qr.subplotSort),C._mainSubplot=nre(C,r),C._counterAxes.length&&(C.automargin&&C.mirror&&C.anchor!=="free"||ea.getComponentMethod("rangeslider","isVisible")(C))){var _=1,M=0;for(i=0;i<C._counterAxes.length;i++){var A=so.getFromId(u,C._counterAxes[i]);_=Math.min(_,A.domain[0]),M=Math.max(M,A.domain[1])}_<M&&(C._counterDomainMin=_,C._counterDomainMax=M)}};function nre(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 s=e._counterAxes,u=0;u<s.length;u++){var f=s[u],c=a?e._id+f:f+e._id;o||(o=c);var d=so.getFromId(t,f);if(l&&d.overlaying===l){i=c;break}}}return i||o}Ir.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,s=0,u,f,c;function d(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&&s++)}var h={},p=[],m=(t.template||{}).data||{},y=Xee.traceTemplater(m);for(u=0;u<e.length;u++)c=e[u],f=y.newTrace(c),f.uid=a._traceUids[u],Ir.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,d(f),ea.traceIs(f,"carpetAxis")&&(h[f.carpet]=f),ea.traceIs(f,"carpetDependent")&&p.push(u);for(u=0;u<p.length;u++)if(f=r[p[u]],!!f.visible){var b=h[f.carpet];if(f._carpet=b,!b||!b.visible){f.visible=!1;continue}f.xaxis=b.xaxis,f.yaxis=b.yaxis}};Ir.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return Qr.coerce(e||{},t,K5,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]=Ir.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Ir.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Ir.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Ir.supplyAnimationTransitionDefaults(e.transition||{});return t};Ir.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,K5.frame,a,n)}return t("duration"),t("redraw"),r};Ir.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,K5.transition,a,n)}return t("duration"),t("easing"),r};Ir.supplyFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e,r,$ee,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Ir.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||jee.defaults,o=i[t%i.length],l;function s(x,_){return Qr.coerce(e,r,Ir.attributes,x,_)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=Ir.getModule(r);if(r._module=f,f){var c=f.basePlotModule,d=c.attr,h=c.attributes;if(d&&h){var p=a._subplots,m="";if(Array.isArray(d))for(l=0;l<d.length;l++){var y=d[l],b=Qr.coerce(e,r,h,y);p[y]&&Qr.pushUnique(p[y],b),m+=b}else m=Qr.coerce(e,r,h,d);p[c.name]&&Qr.pushUnique(p[c.name],m)}}if(u&&(s("customdata"),s("ids"),s("meta"),ea.traceIs(r,"showLegend")?(Qr.coerce(e,r,f.attributes.showlegend?f.attributes:Ir.attributes,"showlegend"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Ir.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Ir.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),ea.traceIs(r,"noOpacity")||s("opacity"),ea.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ea.traceIs(r,"noHover")||(r.hovertemplate||Qr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&ea.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var C=s("selectedpoints");Qr.isTypedArray(C)&&(r.selectedpoints=Array.from(C))}return r};Ir.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,d){return Qr.coerce(e,r,Ir.layoutAttributes,c,d)}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 s=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)}}),s&&(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 u=a("uniformtext.mode");u&&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&&Ir.sanitizeMargins(r),ea.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),ea.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ea.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),ea.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),Qr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),ea.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ea.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),Qr.coerce(e,r,Zee,"scattermode")};function Gm(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Ir.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=Qr.isPlotDiv(r);if(s&&r.emit("plotly_autosize"),n.fillFrame)o=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(r):{};if(o=Gm(u.width)||Gm(u.maxWidth)||a.width,l=Gm(u.height)||Gm(u.maxHeight)||a.height,Rd(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Ir.layoutAttributes.width.min,d=Ir.layoutAttributes.height.min;o<c&&(o=c),l<d&&(l=d);var h=!t.width&&Math.abs(a.width-o)>1,p=!t.height&&Math.abs(a.height-l)>1;(p||h)&&(h&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Ir.sanitizeMargins(a)};Ir.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ea.componentsRegistry,i=r._basePlotModules,o,l,s,u=ea.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ea.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Qr.subplotSort);for(l=0;l<i.length;l++)s=i[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)s=c[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);for(o in n)s=n[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t)};Ir.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._fontLoadToken,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()};Ir.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)};Ir.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))}};Ir.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Ir.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function cC(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 vC=2,dC=2;Ir.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=a.minreducedwidth,s=a.minreducedheight,u=Qr.constrain(n-o.l-o.r,vC,l),f=Qr.constrain(i-o.t-o.b,dC,s),c=Math.max(0,n-u),d=Math.max(0,i-f),h=a._pushmargin,p=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete h[r],delete p[r];else{var m=t.pad;if(m===void 0&&(m=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(d){var b=(t.t+t.b)/d;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;h[r]={l:{val:C,size:t.l+m},r:{val:x,size:t.r+m},b:{val:M,size:t.b+m},t:{val:_,size:t.t+m}},p[r]=1}if(!a._replotting)return Ir.doAutoMargin(e)}};function ire(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=so.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ir.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),cC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Qr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,d=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in d)h[y]||delete d[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],_)}d.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in o){var A=0;for(var k in d)k!=="base"&&Rd(d[k][M].size)&&(A=d[k][M].size>A?d[k][M].size:A);var D=Math.max(0,i[M]-A);o[M]=Math.max(0,o[M]-D)}for(var P in d){var z=d[P].l||{},B=d[P].b||{},Y=z.val,H=z.size,X=B.val,N=B.size,Q=t-o.r-o.l,ee=a-o.t-o.b;for(var ae in d){if(Rd(H)&&d[ae].r){var re=d[ae].r.val,ie=d[ae].r.size;if(re>Y){var ue=(H*re+(ie-Q)*Y)/(re-Y),xe=(ie*(1-Y)+(H-Q)*(1-re))/(re-Y);ue+xe>s+u&&(s=ue,u=xe)}}if(Rd(N)&&d[ae].t){var Ee=d[ae].t.val,Re=d[ae].t.size;if(Ee>X){var Ne=(N*Ee+(Re-ee)*X)/(Ee-X),ke=(Re*(1-X)+(N-ee)*(1-Ee))/(Ee-X);Ne+ke>c+f&&(c=Ne,f=ke)}}}}}var We=Qr.constrain(t-i.l-i.r,vC,p),W=Qr.constrain(a-i.t-i.b,dC,m),se=Math.max(0,t-We),de=Math.max(0,a-W);if(se){var K=(s+u)/se;K>1&&(s/=K,u/=K)}if(de){var J=(c+f)/de;J>1&&(c/=J,f/=J)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+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&&(Ir.didMarginChange(l,n)||ire(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ce=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount<ce)return ea.call("_doPlot",e);r._size=l,Qr.warn("Too many auto-margin redraws.")}ore(e)};function ore(e){var r=so.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var uC=["l","r","t","b","p","w","h"];Ir.didMarginChange=function(e,r){for(var t=0;t<uC.length;t++){var a=uC[t],n=e[a],i=r[a];if(!Rd(n)||Math.abs(i-n)>1)return!0}return!1};Ir.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Ir.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,d){if(typeof c=="function")return d?"_function_":null;if(Qr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){d&&(h[b]="_function");return}h[b]=s(c[b],d)}}),h}var p=Array.isArray(c),m=Qr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:Qr.isArrayBuffer(y)?Gee.encode(y):y},d)}return p?c.map(function(b){return s(b,d)}):m?Qr.simpleMap(c,Qr.identity):Qr.isJSDate(c)?Qr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var d=s(c);return r&&delete d.fit,d})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Ir.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,s=n.name;i[a.index]=o[s]=n,s!==l&&(delete o[l],o[s]=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()};Ir.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 s=[l],u=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&u.indexOf(l.name)===-1;)s.push(l),u.push(l.name);for(var f={};l=s.pop();)if(l.layout&&(f.layout=Ir.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]=Ir.extendTrace(f.data[o],l.data[a]))}return f};Ir.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)}};Ir.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=Qr.extendDeepNoArrays({},r||{}),d=Qr.expandObjectPaths(c),h={};if(t&&t.length)for(i=0;i<t.length;i++)a=Qr.nestedProperty(d,t[i]),n=a.get(),n===void 0?Qr.nestedProperty(h,t[i]).set(null):(a.set(null),Qr.nestedProperty(h,t[i]).set(n));if(e=Qr.extendDeepNoArrays(e||{},d),t&&t.length){for(i=0;i<t.length;i++)if(l=Qr.nestedProperty(h,t[i]),u=l.get(),!!u){for(s=Qr.nestedProperty(e,t[i]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),o=0;o<u.length;o++){var p=u[o];p===null?f[o]=null:f[o]=Ir.extendObjectWithContainers(f[o],p)}s.set(f)}}return e};Ir.dataArrayContainers=["dimensions"];Ir.layoutArrayContainers=ea.layoutArrayContainers;Ir.extendTrace=function(e,r){return Ir.extendObjectWithContainers(e,r,Ir.dataArrayContainers)};Ir.extendLayout=function(e,r){return Ir.extendObjectWithContainers(e,r,Ir.layoutArrayContainers)};Ir.transition=function(e,r,t,a,n,i){var o={redraw:n.redraw},l={},s=[];return o.prepareFn=function(){for(var u=Array.isArray(r)?r.length:0,f=a.slice(0,u),c=0;c<f.length;c++){var d=f[c],h=e._fullData[d],p=h._module;if(p){if(p.animatable){var m=p.basePlotModule.name;l[m]||(l[m]=[]),l[m].push(d)}e.data[f[c]]=Ir.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;Ir.extendLayout(e.layout,y),delete e.calcdata,Ir.supplyDefaults(e),Ir.doCalcdata(e);var x=Qr.expandObjectPaths(t);if(x){var _=e._fullLayout._plots;for(var M in _){var A=_[M],k=A.xaxis,D=A.yaxis,P=k.range.slice(),z=D.range.slice(),B=null,Y=null,H=null,X=null;Array.isArray(x[k._name+".range"])?B=x[k._name+".range"].slice():Array.isArray((x[k._name]||{}).range)&&(B=x[k._name].range.slice()),Array.isArray(x[D._name+".range"])?Y=x[D._name+".range"].slice():Array.isArray((x[D._name]||{}).range)&&(Y=x[D._name].range.slice()),P&&B&&(k.r2l(P[0])!==k.r2l(B[0])||k.r2l(P[1])!==k.r2l(B[1]))&&(H={xr0:P,xr1:B}),z&&Y&&(D.r2l(z[0])!==D.r2l(Y[0])||D.r2l(z[1])!==D.r2l(Y[1]))&&(X={yr0:z,yr1:Y}),(H||X)&&s.push(Qr.extendFlat({plotinfo:A},H,X))}}return Promise.resolve()},o.runFn=function(u){var f,c=e._fullLayout._basePlotModules,d=s.length,h;if(t)for(h=0;h<c.length;h++)c[h].transitionAxes&&c[h].transitionAxes(e,s,i,u);d?(f=Qr.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var p in l){var m=l[p],y=e._fullData[m[0]]._module;y.basePlotModule.plot(e,m,f,u)}},hC(e,i,o)};Ir.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var s=n._plots;o.redraw=!1,r.anim==="some"&&(o.redraw=!0),t.anim==="some"&&(o.redraw=!0);for(var u in s){var f=s[u],c=f.xaxis,d=f.yaxis,h=a[c._name].range.slice(),p=a[d._name].range.slice(),m=c.range.slice(),y=d.range.slice();c.setScale(),d.setScale();var b=null,C=null;(c.r2l(h[0])!==c.r2l(m[0])||c.r2l(h[1])!==c.r2l(m[1]))&&(b={xr0:h,xr1:m}),(d.r2l(p[0])!==d.r2l(y[0])||d.r2l(p[1])!==d.r2l(y[1]))&&(C={yr0:p,yr1:y}),(b||C)&&l.push(Qr.extendFlat({plotinfo:f},b,C))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,d,h,p,m=[],y=0;y<u.length;y++)m.push(y);function b(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,l,d,s)}function C(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].plot(e,p,h,s)}l.length&&r.anim?i.ordering==="traces first"?(d=Qr.extendFlat({},i,{duration:0}),p=m,h=i,setTimeout(b,i.duration),C()):(d=i,p=null,h=Qr.extendFlat({},i,{duration:0}),setTimeout(C,d.duration),b()):l.length?(d=i,b()):r.anim&&(p=m,h=i,C())},hC(e,i,o)};function hC(e,r,t){var a=!1;function n(c){var d=Promise.resolve();if(!c)return d;for(;c.length;)d=d.then(c.shift());return d}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 ea.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,h=0;function p(){return d++,function(){h++,!a&&h===d&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ea.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Ir.previousPromises,s,t.prepareFn,Ir.rehover,Ir.reselect,o],f=Qr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ir.doCalcdata=function(e,r){var t=so.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,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){s[l]=u[l];continue}for(l=0;l<a.length;l++)i=a[l],i._arrayAttrs=Vee.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 d=n[c];d.cauto!==!1&&(delete d.cmin,delete d.cmax)}function h(m,y){if(i=a[m],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:oC,y:oC}]),b[0].t||(b[0].t={}),b[0].trace=i,s[m]=b}}for(ure(t,a,n),l=0;l<a.length;l++)h(l,!0);for(l=0;l<a.length;l++)h(l,!1);fC(e);var p=sre(t,e);if(p.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<p.length;l++)h(p[l],!0);for(l=0;l<p.length;l++)h(p[l],!1);fC(e)}ea.getComponentMethod("fx","calc")(e),ea.getComponentMethod("errorbars","calc")(e)};var lre=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function sre(e,r){var t=[],a,n,i,o,l;function s(ae,re,ie){var ue=re._id.charAt(0);if(ae==="histogram2dcontour"){var xe=re._counterAxes[0],Ee=so.getFromId(r,xe),Re=ue==="x"||xe==="x"&&Ee.type==="category",Ne=ue==="y"||xe==="y"&&Ee.type==="category";return function(ke,We){return ke===0||We===0||Re&&ke===ie[We].length-1||Ne&&We===ie.length-1?-1:(ue==="y"?We:ke)-1}}else return function(ke,We){return ue==="y"?We:ke}}var u={min:function(ae){return Qr.aggNums(Math.min,null,ae)},max:function(ae){return Qr.aggNums(Math.max,null,ae)},sum:function(ae){return Qr.aggNums(function(re,ie){return re+ie},null,ae)},total:function(ae){return Qr.aggNums(function(re,ie){return re+ie},null,ae)},mean:function(ae){return Qr.mean(ae)},"geometric mean":function(ae){return Qr.geometricMean(ae)},median:function(ae){return Qr.median(ae)}};function f(ae,re){return ae[1]-re[1]}function c(ae,re){return re[1]-ae[1]}for(a=0;a<e.length;a++){var d=e[a];if(d.type==="category"){var h=d.categoryorder.match(lre);if(h){var p=h[1],m=h[2],y=d._id.charAt(0),b=y==="x",C=[];for(n=0;n<d._categories.length;n++)C.push([d._categories[n],[]]);for(n=0;n<d._traceIndices.length;n++){var x=d._traceIndices[n],_=r._fullData[x];if(_.visible===!0){var M=_.type;ea.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var A=M==="splom",k=M==="scattergl",D=r.calcdata[x];for(i=0;i<D.length;i++){var P=D[i],z,B;if(A){var Y=_._axesDim[d._id];if(!b){var H=_._diag[Y][0];H&&(d=r._fullLayout[so.id2name(H)])}var X=P.trace.dimensions[Y].values;for(o=0;o<X.length;o++)for(z=d._categoriesMap[X[o]],l=0;l<P.trace.dimensions.length;l++)if(l!==Y){var N=P.trace.dimensions[l];C[z][1].push(N.values[o])}}else if(k){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=s(_.type,d,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])}}}}d._categoriesValue=C;var ee=[];for(n=0;n<C.length;n++)ee.push([C[n][0],u[p](C[n][1])]);ee.sort(m==="descending"?c:f),d._categoriesAggregatedValue=ee,d._initialCategories=ee.map(function(ae){return ae[0]}),t=t.concat(d.sortByInitialCategories())}}}return t}function ure(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._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[so.id2name(l)])}function fC(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,o;for(i=0;i<t.length;i++){var l=t[i],s=l.crossTraceCalc;if(s){var u=l.basePlotModule.name;a[u]?Qr.pushUnique(a[u],s):a[u]=[s]}}for(o in a){var f=a[o],c=r._subplots[o];if(Array.isArray(c))for(n=0;n<c.length;n++){var d=c[n],h=o==="cartesian"?r._plots[d]:r[d];for(i=0;i<f.length;i++)f[i](e,h,d)}else for(i=0;i<f.length;i++)f[i](e)}}Ir.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Ir.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Ir.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);ea.getComponentMethod("selections","reselect")(e,n)};Ir.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},o;for(o=0;o<t.length;o++){var l=t[o],s=l[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(l))}for(var u in n)if(!i[u]){var f=n[u][0],c=f[0].trace;c.visible=!1,i[u]=[f]}for(var d in i){var h=i[d],p=h[0][0].trace._module;p.plot(e,r,Qr.filterVisible(h),a)}r.traceHash=i};Ir.plotBasePlot=function(e,r,t,a,n){var i=ea.getModule(e),o=Jee(r.calcdata,i)[0];i.plot(r,o,a,n)};Ir.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 Q0={};Ua(Q0,{svg:()=>mC,svgAttrs:()=>cre,xlink:()=>gC,xmlns:()=>fre});var fre,mC,gC,cre,ec=Oa(()=>{"use strict";fre="http://www.w3.org/2000/xmlns/",mC="http://www.w3.org/2000/svg",gC="http://www.w3.org/1999/xlink",cre={xmlns:mC,"xmlns:xlink":gC}});var vi={};Ua(vi,{CAP_SHIFT:()=>mre,FROM_BL:()=>vre,FROM_BR:()=>hre,FROM_TL:()=>dre,LINE_SPACING:()=>pre,MID_SHIFT:()=>gre,OPPOSITE_SIDE:()=>yre});var vre,dre,hre,pre,mre,gre,yre,di=Oa(()=>{"use strict";vre={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},dre={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},hre={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},pre=1.3,mre=.7,gre=.35,yre={left:"right",right:"left",top:"bottom",bottom:"top"}});var hi=oe(Ci=>{"use strict";var sn=qt(),rl=pr(),bre=rl.strTranslate,Q5=(ec(),_r(Q0)),_re=(di(),_r(vi)).LINE_SPACING,xre=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,t6=e=>e?e.match(xre):null;Ci.matchTex=t6;var wre=e=>{var r=t6(e);return!!r&&!r[1]&&!r[3]};Ci.isPureTex=wre;function MC(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,d=o===void 0?f:o,h=l===void 0?c:l;(f>d||c>h)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,b=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+bre(-f/2,b-c/2)}):r[0]==="l"?m=b-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=b):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+b-c/2),a.attr({x:p,y:m})}function Mre(e){e.selectAll("a").each(function(){var r=sn.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,i6(a)||null)})})}Ci.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&t6(a);n&&!Cre()&&(n=null);var i=sn.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 s=Nre(e.node(),a);s&&e.style("pointer-events","all"),Ci.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");Sre(n[2],f,function(d,h,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=d&&d.select("svg");if(!m||!m.node()){l(),s();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(m.node()),Mre(m),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var b=p.width,C=p.height;m.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",_=m.select("g");_.attr({fill:x,stroke:x}),MC(e,o,y,m,c,u,b,C),t&&t.call(e,y),s(y)})})):l(),e};Ci.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=sn.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);MC(e,r,a,n,i,o)}}};Ci.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=sn.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var Are=/(<|<|<)/g,Tre=/(>|>|>)/g;function kre(e){return e.replace(Are,"\\lt ").replace(Tre,"\\gt ")}var e6=null,AC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,yC=!1,bC=!1;function Cre(){let e=AC();return e===3||e===4?!0:(e===null?yC||(yC=!0,rl.warn("MathJax is not loaded. Math equations will not be rendered.")):bC||(bC=!0,rl.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Sre(e,r,t){let a=AC();var n;let i=function(){if(!e6){let u=MathJax._.output.svg_ts.SVG,f=rl.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=rl.extendFlat({},f.linebreaks,{inline:!1})),e6=MathJax._.mathjax.mathjax.document(document,rl.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+rl.randstr({},64);n=sn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=kre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return e6.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)rl.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{rl.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var TC={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"},Ere={sub:"0.3em",sup:"-0.6em"},Lre={sub:"-0.21em",sup:"0.42em"},_C="\u200B",xC=["http:","https:","mailto:","",void 0,":"],kC=Ci.NEWLINES=/(\r\n?|\n)/g,a6=/(<[^<>]*>)/,n6=/<(\/?)([^ >]*)(\s+(.*))?>/i,Dre=/<br(\s+.*)?>/i;Ci.BR_TAG_ALL=/<br(\s+.*)?>/gi;var CC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,SC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,EC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Fre=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function rc(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Vm(a)}var qre=/(^|;)\s*color:/;Ci.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(a6),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],d=c.match(n6),h=d&&d[2].toLowerCase();if(h)a.indexOf(h)!==-1&&(l.push(c),s=h);else{var p=c.length;if(u+p<t)l.push(c),u+=p;else if(u<t){var m=t-u;s&&(s!=="br"||m<=i||p<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var Pre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Rre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Vm(e){return e.replace(Rre,function(r,t){var a;return t.charAt(0)==="#"?a=zre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Pre[t],a||r})}Ci.convertEntities=Vm;function zre(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 Nre(e,r){r=r.replace(kC," ");var t=!1,a=[],n,i=-1;function o(){i++;var A=document.createElementNS(Q5.svg,"tspan");sn.select(A).attr({class:"line",dy:i*_re+"em"}),e.appendChild(A),n=A;var k=a;if(a=[{node:A}],k.length>1)for(var D=1;D<k.length;D++)l(k[D])}function l(A){var k=A.type,D={},P;if(k==="a"){P="a";var z=A.target,B=A.href,Y=A.popup;B&&(D={"xlink:xlink:show":z==="_blank"||z.charAt(0)!=="_"?"new":"replace",target:z,"xlink:xlink:href":B},Y&&(D.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Y+'");return false;'))}else P="tspan";A.style&&(D.style=A.style);var H=document.createElementNS(Q5.svg,P);if(k==="sup"||k==="sub"){s(n,_C),n.appendChild(H);var X=document.createElementNS(Q5.svg,"tspan");s(X,_C),sn.select(X).attr("dy",Lre[k]),D.dy=Ere[k],n.appendChild(H),n.appendChild(X)}else n.appendChild(H);sn.select(H).attr(D),n=A.node=H,a.push(A)}function s(A,k){A.appendChild(document.createTextNode(k))}function u(A){if(a.length===1){rl.log("Ignoring unexpected end tag </"+A+">.",r);return}var k=a.pop();A!==k.type&&rl.log("Start tag <"+k.type+"> doesnt match end tag <"+A+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Dre.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(a6),d=0;d<c.length;d++){var h=c[d],p=h.match(n6),m=p&&p[2].toLowerCase(),y=TC[m];if(m==="br")o();else if(y===void 0)s(n,Vm(h));else if(p[1])u(m);else{var b=p[4],C={type:m},x=rc(b,CC);if(x?(x=x.replace(qre,"$1 fill:"),y&&(x+=";"+y)):y&&(x=y),x&&(C.style=x),m==="a"){t=!0;var _=rc(b,SC);if(_){var M=i6(_);M&&(C.href=M,C.target=rc(b,EC)||"_blank",C.popup=rc(b,Fre))}}l(C)}}return t}function i6(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 xC.indexOf(n)!==-1&&xC.indexOf(i)!==-1?r:""}Ci.sanitizeHTML=function(r){r=r.replace(kC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(a6),o=0;o<i.length;o++){var l=i[o],s=l.match(n6),u=s&&s[2].toLowerCase();if(u in TC)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=rc(f,CC),d=c?{style:c}:{};if(u==="a"){var h=rc(f,SC);if(h){var p=i6(h);if(p){d.href=p;var m=rc(f,EC);m&&(d.target=m)}}}var y=document.createElement(u);a.appendChild(y),sn.select(y).attr(d),a=y,n.push(y)}else a.appendChild(document.createTextNode(Vm(l)))}var b="innerHTML";return t[b]};Ci.lineCount=function(r){return r.selectAll("tspan.line").size()||1};Ci.positionText=function(r,t,a){return r.each(function(){var n=sn.select(this);function i(s,u){return u===void 0?(u=n.attr(s),u===null&&(n.attr(s,0),u=0)):n.attr(s,u),u}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function wC(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),o=r.node().getBoundingClientRect(),l,s,u;return n==="bottom"?s=function(){return i.bottom-l.height}:n==="middle"?s=function(){return i.top+(i.height-l.height)/2}:s=function(){return i.top},a==="right"?u=function(){return i.right-l.width}:a==="center"?u=function(){return i.left+(i.width-l.width)/2}:u=function(){return i.left},function(){l=this.node().getBoundingClientRect();var f=u()-o.left,c=s()-o.top,d=t.gd||{};if(t.gd){d._fullLayout._calcInverseTransform(d);var h=rl.apply3DTransform(d._fullLayout._invTransform)(f,c);f=h[0],c=h[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var r6="1px ";Ci.makeTextShadow=function(e){var r=r6,t=r6,a=r6;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};Ci.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=sn.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&sn.select(e.node().parentNode).select(f).style({opacity:0})}function l(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var d=window.getSelection();d.removeAllRanges(),d.addRange(c),f.focus()}function s(){var u=sn.select(t),f=u.select(".svg-container"),c=f.append("div"),d=e.node().style,h=parseFloat(d.fontSize||12),p=r.text;p===void 0&&(p=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":d.fontFamily||"Arial","font-size":h,color:r.fill||d.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-h/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(p).call(wC(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var m=sn.select(this).attr("class"),y;m?y="."+m.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&sn.select(e.node().parentNode).select(y).style({opacity:0});var b=this.textContent;sn.select(this).transition().duration(0).remove(),sn.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var m=this;t._editing=!0,sn.select(document).on("mouseup",function(){if(sn.event.target===m)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){sn.event.which===27?(t._editing=!1,e.style({opacity:1}),sn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),sn.select(this).call(wC(e,f,r)))}).on("keydown",function(){sn.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),sn.rebind(e,n,"on")}});var Fs=oe((T6e,RC)=>{"use strict";var Ire=qt(),Nd=Jt(),Xm=pr(),tc=Nt(),Bre=G0().isValid;function Hre(e,r,t){var a=r?Xm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Xm.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Nd(n[o])){i=!0;break}}return Xm.isPlainObject(a)&&(i||a.showscale===!0||Nd(a.cmin)&&Nd(a.cmax)||Bre(a.colorscale)||Xm.isPlainObject(a.colorbar))}var LC=["showscale","autocolorscale","colorscale","reversescale","colorbar"],zd=["min","max","mid","auto"];function DC(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<LC.length;i++)o=LC[i],a[o]=t[o];if(r)for(n="c",i=0;i<zd.length;i++)o=zd[i],a[o]=t["c"+o];else{var l;for(i=0;i<zd.length;i++){if(o=zd[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(s,u){var f=zd.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function FC(e){for(var r=DC(e),t=r.min,a=r.max,n=r.reversescale?qC(r.colorscale):r.colorscale,i=n.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var u=n[s];o[s]=t+u[0]*(a-t),l[s]=u[1]}return{domain:o,range:l}}function qC(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 PC(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]=tc.rgbaArray(a[o]);var l=Ire.scale.linear().domain(t).range(i).clamp(!0),s=r.noNumericCheck,u=r.returnArray,f;return s&&u?f=l:s?f=function(c){return tc.rgbaArrayToString(l(c))}:u?f=function(c){return Nd(c)?l(c):tc.isValid(c)?c:tc.defaultLine}:f=function(c){return Nd(c)?tc.rgbaArrayToString(l(c)):tc.isValid(c)?c:tc.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function Ore(e,r){return PC(FC(e),r)}RC.exports={hasColorscale:Hre,extractOpts:DC,extractScale:FC,flipScale:qC,makeColorScaleFunc:PC,makeColorScaleFuncFromTrace:Ore}});var l6=oe((k6e,IC)=>{"use strict";var zC=(M5(),_r(w5)),Ure=zC.FORMAT_LINK,Gre=zC.DATE_FORMAT_LINK;function Yre(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?o6:NC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function o6(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: "+Ure+"."].join(" ")}function NC(e,r){return o6(e,r)+[" And for dates see: "+Gre+".","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(" ")}IC.exports={axisHoverFormat:Yre,descriptionOnlyNumbers:o6,descriptionWithDates:NC}});var Vl=oe((S6e,rS)=>{"use strict";var BC=Ai(),G1=Hl(),eS=Ls().dash,u6=Dn().extendFlat,HC=Aa().templatedArray,C6e=V0().templateFormatStringDescription,OC=l6().descriptionWithDates,Vre=(ja(),_r(tn)).ONEDAY,qs=(Un(),_r(On)),Xre=qs.HOUR_PATTERN,jre=qs.WEEKDAY_PATTERN,s6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Wre=u6({},s6,{values:s6.values.slice().concat(["sync"])});function UC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var GC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},YC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},VC={valType:"data_array",editType:"ticks"},XC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function WC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var ZC={valType:"color",dflt:G1.defaultLine,editType:"ticks"},$C={valType:"color",dflt:G1.lightLine,editType:"ticks"};function JC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var KC=u6({},eS,{editType:"ticks"}),QC={valType:"boolean",editType:"ticks"};rS.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:G1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:BC({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:[qs.idRegex.x.toString(),qs.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:[qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"calc"},rangebreaks:HC("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:[jre,Xre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Vre},editType:"calc"}),tickmode:Wre,nticks:UC(),tick0:GC,dtick:YC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:VC,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:jC(),tickwidth:WC(),tickcolor:ZC,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:u6({},eS,{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:BC({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:OC("tick label")},tickformatstops:HC("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:OC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:G1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:QC,gridcolor:$C,gridwidth:JC(),griddash:KC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:G1.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:G1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:s6,nticks:UC("minor"),tick0:GC,dtick:YC,tickvals:VC,ticks:XC,ticklen:jC("minor"),tickwidth:WC("minor"),tickcolor:ZC,gridcolor:$C,gridwidth:JC("minor"),griddash:KC,showgrid:QC,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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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 jm=oe((E6e,aS)=>{"use strict";var qa=Vl(),tS=Ai(),f6=Dn().extendFlat,Zre=Ko().overrideAll;aS.exports=Zre({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:f6({},qa.dtick,{}),tickvals:qa.tickvals,ticktext:qa.ticktext,ticks:f6({},qa.ticks,{dflt:""}),ticklabeloverflow:f6({},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:tS({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:tS({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Y1=oe((D6e,iS)=>{"use strict";var $re=jm(),Jre=(C1(),_r(Md)).counter,Kre=(Am(),_r(Mm)).default,nS=G0().scales,L6e=Kre(nS);function Wm(e){return"`"+e+"`"}iS.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"?nS[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Wm(u+f));var d=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=Wm(u+h),C=Wm(u+p),x=Wm(u+m),_=C+" and "+x,M={};M[p]=M[m]=void 0;var A={};A[h]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},k[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:A},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:A},k[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},k.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=$re),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Jre("coloraxis"),dflt:null,editType:"calc"}),k}});var v6=oe((F6e,oS)=>{"use strict";var Qre=Dn().extendFlat,ete=Y1(),c6=G0().scales;oS.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:c6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:c6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:c6.RdBu,editType:"calc"}},coloraxis:Qre({_isSubplotObj:!0,editType:"calc"},ete("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var d6=oe((q6e,lS)=>{"use strict";var rte=pr();lS.exports=function(r){return rte.isPlainObject(r.colorbar)}});var m6=oe(p6=>{"use strict";var h6=Jt(),sS=pr(),uS=(ja(),_r(tn)),tte=uS.ONEDAY,ate=uS.ONEWEEK;p6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?tte:1;if(!e)return i;if(h6(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=h6(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};p6.tick0=function(e,r,t,a){if(r==="date")return sS.cleanDate(e,sS.dateTick0(t,a%ate===0?1:0));if(!(a==="D1"||a==="D2"))return h6(e)?Number(e):0}});var g6=oe((R6e,cS)=>{"use strict";var fS=m6(),nte=pr().isArrayOrTypedArray,ite=ao().isTypedArraySpec,ote=ao().decodeTypedArraySpec;cS.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(_){var M=l[_];return ite(M)&&(M=ote(M)),M!==void 0?M:(s._template||{})[_]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;nte(h)?y="array":d?y="linear":p&&!m?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var C=s.dtick=fS.dtick(d,n);s.tick0=fS.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var b6=oe((z6e,dS)=>{"use strict";var y6=pr(),vS=Vl();dS.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?vS.minor:vS,u=i?"minor.":"",f=y6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=y6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),d=y6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||d?"outside":"");h||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var _6=oe((N6e,hS)=>{"use strict";hS.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 Xl=oe((I6e,pS)=>{"use strict";var Zm=pr(),lte=Aa();pS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Zm.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=lte.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var d=l[f];Zm.isPlainObject(d)?c=u.newItem(d):(c=u.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(d,c,t,a),s.push(c)}var h=u.defaultItems();for(f=0;f<h.length;f++)c=h[f],c._index=s.length,a.handleItemDefaults({},c,t,a,{}),s.push(c);if(Zm.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)Zm.relinkPrivateKeys(s[f],o[f])}return s}});var w6=oe((B6e,gS)=>{"use strict";var x6=pr(),ste=Nt().contrast,mS=Vl(),ute=_6(),fte=Xl();gS.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");x6.isPlainObject(o)||delete t.labelalias;var l=ute(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",d=c.indexOf("inside")!==-1?ste(i.bgColor):f&&f!==mS.color.dflt?f:u.color;if(x6.coerceFont(a,"tickfont",u,{overrideDflt:{color:d}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");fte(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:cte}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function cte(e,r){function t(n,i){return x6.coerce(e,r,mS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var M6=oe((H6e,yS)=>{"use strict";var vte=_6();yS.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=vte(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var A6=oe((O6e,bS)=>{"use strict";var Ef=pr(),dte=Aa(),hte=g6(),pte=b6(),mte=w6(),gte=M6(),yte=jm();bS.exports=function(r,t,a){var n=dte.newContainer(t,"colorbar"),i=r.colorbar||{};function o(B,Y){return Ef.coerce(i,n,yte,B,Y)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",d=o("thicknessmode");o("thickness",d==="fraction"?30/(c?s:u):30);var h=o("lenmode");o("len",h==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",b=m==="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),Ef.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),Ef.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"),Ef.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var A=Ef.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",A.indexOf("inside")!==-1?"hide past domain":"hide past div"),hte(i,n,o,"linear");var k=a.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};A.indexOf("inside")!==-1&&(D.bgColor="black"),gte(i,n,o,"linear",D),mte(i,n,o,"linear",D),pte(i,n,o,"linear",D),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:k,z=Ef.extendFlat({},k,{family:P.family,size:Ef.bigFont(P.size)});Ef.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var V1=oe((U6e,wS)=>{"use strict";var _S=Jt(),k6=pr(),bte=d6(),_te=A6(),xS=G0().isValid,xte=xt().traceIs;function T6(e,r){var t=r.slice(0,r.length-1);return r?k6.nestedProperty(e,t).get()||{}:e}wS.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=T6(r,o),f=T6(t,o),c=T6(t._template||{},o)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=xte(t,"contour")&&k6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[p];y?(y[2].push(d),y[0]!==m&&(y[0]=!1,k6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[m,t,[d]];return}}var b=u[l+"min"],C=u[l+"max"],x=_S(b)&&_S(C)&&b<C,_=n(o+l+"auto",!x);_?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var M=u.colorscale,A=c.colorscale,k;if(M!==void 0&&(k=!xS(M)),A!==void 0&&(k=!xS(A)),n(o+"autocolorscale",k),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var D;o&&s&&(D=bte(u));var P=n(o+"showscale",D);P&&(o&&c&&(f._template=c),_te(u,f,a))}}});var kS=oe((G6e,TS)=>{"use strict";var MS=pr(),wte=Aa(),AS=v6(),Mte=V1();TS.exports=function(r,t){function a(c,d){return MS.coerce(r,t,AS,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,d){return MS.coerce(i,o,AS.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=wte.newContainer(t,s,"coloraxis"),o._name=s,Mte(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<u[2].length;f++)u[2][f]();delete t._colorAxes[s]}}}});var SS=oe((Y6e,CS)=>{"use strict";var Ate=pr(),Tte=Fs().hasColorscale,kte=Fs().extractOpts;CS.exports=function(r,t){function a(f,c){var d=f["_"+c];d!==void 0&&(f[c]=d)}function n(f,c){var d=c.container?Ate.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=kte(d),p=h.auto;(p||h.min===void 0)&&a(d,c.min),(p||h.max===void 0)&&a(d,c.max),h.autocolorscale&&a(d,"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 s=0;s<l.length;s++)n(o,l[s]);else n(o,l);Tte(o,"marker.line")&&n(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)n(t[u],{min:"cmin",max:"cmax"})}});var $m=oe((V6e,LS)=>{"use strict";var ES=Jt(),C6=pr(),Cte=Fs().extractOpts;LS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?C6.nestedProperty(t,o).get():t,s=Cte(l),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return C6.aggNums(Math.min,null,i)},p=function(){return C6.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(l._colorAx&&ES(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(l._colorAx&&ES(c)?c=Math.max(c,p()):c=p()),u&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d<d-f&&(c=d+(d-f))),f===c&&(f-=.5,c+=.5),s._sync("min",f),s._sync("max",c),s.autocolorscale){var m;f*c<0?m=n.colorscale.diverging:f>=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Km=oe((X6e,DS)=>{"use strict";var Jm=G0(),X1=Fs();DS.exports={moduleType:"component",name:"colorscale",attributes:Y1(),layoutAttributes:v6(),supplyLayoutDefaults:kS(),handleDefaults:V1(),crossTraceDefaults:SS(),calc:$m(),scales:Jm.scales,defaultScale:Jm.defaultScale,getScale:Jm.get,isValidScale:Jm.isValid,hasColorscale:X1.hasColorscale,extractOpts:X1.extractOpts,extractScale:X1.extractScale,flipScale:X1.flipScale,makeColorScaleFunc:X1.makeColorScaleFunc,makeColorScaleFuncFromTrace:X1.makeColorScaleFuncFromTrace}});var Si=oe((j6e,qS)=>{"use strict";var FS=pr(),Ste=ao().isTypedArraySpec;qS.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 FS.isPlainObject(r)&&(FS.isArrayOrTypedArray(r.size)||Ste(r.size))}}});var RS=oe((W6e,PS)=>{"use strict";var Ete=Jt();PS.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 s=o(l/t);return Ete(s)&&s>0?Math.max(s,i):0}}});var Pu=oe(ni=>{"use strict";var Id=pr();ni.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ni.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(ni.getSubplot(e))!==-1};ni.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};ni.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};ni.c2dApply=function(e,r){e.length!==r.length&&Id.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};ni.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||ni.quadrature(r,t):e.charAt(0)==="x"?r:t};ni.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};ni.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};ni.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};ni.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)),ni.appendArrayPointValue(n,r,a),n};ni.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=zS(i);if(e[o]===void 0){var l=Id.nestedProperty(r,i).get(),s=NS(l,t);s!==void 0&&(e[o]=s)}}};ni.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=zS(i);if(e[o]===void 0){for(var l=Id.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=NS(l,t[u]);e[o]=s}}};var Lte={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function zS(e){return Lte[e]||e}function NS(e,r){if(Array.isArray(r)){if(Id.isArrayOrTypedArray(e)&&Id.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Dte={x:!0,y:!0},Fte={"x unified":!0,"y unified":!0};ni.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Fte[e]};ni.isXYhover=function(e){return typeof e!="string"?!1:!!Dte[e]}});var E6=oe(($6e,IS)=>{var S6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},qte=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Pte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Rte(e){let r=[];return e.replace(qte,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=zte(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===S6[i])return r.push([o,...l]),"";if(l.length<S6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,S6[i])])}}),r}function zte(e){let r=e.match(Pte);return r?r.map(Number):[]}IS.exports=Rte});var VS=oe((J6e,YS)=>{"use strict";var Nte=E6(),Sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Mt="M0,0Z",BS=Math.sqrt(2),Lf=Math.sqrt(3),L6=Math.PI,D6=Math.cos,F6=Math.sin;YS.exports={circle:{n:0,f:function(e,r,t){if(At(r))return Mt;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?Tt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2);return Tt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*1.3,2);return Tt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*.4,2),n=Sr(e*1.2,2);return Tt(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(At(r))return Mt;var a=Sr(e*.8/BS,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Tt(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(At(r))return Mt;var a=Sr(e*2/Lf,2),n=Sr(e/2,2),i=Sr(e,2);return Tt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*2/Lf,2),n=Sr(e/2,2),i=Sr(e,2);return Tt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*2/Lf,2),n=Sr(e/2,2),i=Sr(e,2);return Tt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*2/Lf,2),n=Sr(e/2,2),i=Sr(e,2);return Tt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Tt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Tt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Tt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Tt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(At(r))return Mt;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 Tt(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(At(r))return Mt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*Lf/2,2);return Tt(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(At(r))return Mt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*Lf/2,2);return Tt(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(At(r))return Mt;var a=Sr(e*.924,2),n=Sr(e*.383,2);return Tt(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(At(r))return Mt;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),s=Sr(-a,2),u=Sr(a*-.309,2),f=Sr(a*.118,2),c=Sr(a*.809,2),d=Sr(a*.382,2);return Tt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+d+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*.66,2),n=Sr(e*.38,2),i=Sr(e*.76,2);return Tt(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(At(r))return Mt;var a=Sr(e*Lf*.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 Tt(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(At(r))return Mt;var a=Sr(e*Lf*.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 Tt(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(At(r))return Mt;var a=Sr(e*1.1,2),n=Sr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Tt(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(At(r))return Mt;var a=Sr(e*1.4,2),n=Sr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Tt(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(At(r))return Mt;var a=Sr(e*.7,2),n=Sr(e*1.4,2);return Tt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*1.4,2),n=Sr(e*.7,2);return Tt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2);return Tt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e,2),n=Sr(e/BS,2);return Tt(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(At(r))return Mt;var a=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.3,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.3,2),n=Sr(e*.65,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.4,2);return Tt(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(At(r))return Mt;var a=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.2,2),n=Sr(e*.85,2);return Tt(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(At(r))return Mt;var a=Sr(e/2,2),n=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Tt(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(At(r))return Mt;var a=Sr(e*1.4,2);return Tt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*1.4,2);return Tt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2);return Tt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2);return Tt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2),n=Sr(e*2,2);return Tt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2),n=Sr(e*2,2);return Tt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*2,2),n=Sr(e,2);return Tt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e*2,2),n=Sr(e,2);return Tt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(At(r))return Mt;var a=Sr(e,2),n=Sr(e*2,2);return Tt(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(At(r))return Mt;var a=Sr(e,2),n=Sr(e*2,2);return Tt(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(At(r))return Mt;var a=Sr(e*2,2),n=Sr(e,2);return Tt(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(At(r))return Mt;var a=Sr(e*2,2),n=Sr(e,2);return Tt(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(At(r))return Mt;var a=L6/2.5,n=2*e*D6(a),i=2*e*F6(a);return Tt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(At(r))return Mt;var a=L6/4,n=2*e*D6(a),i=2*e*F6(a);return Tt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function At(e){return e===null}var HS,OS,US,GS;function Tt(e,r,t){if((!e||e%360===0)&&!r)return t;if(US===e&&GS===r&&HS===t)return OS;US=e,GS=r,HS=t;function a(y,b){var C=D6(y),x=F6(y),_=b[0],M=b[1]+(r||0);return[_*C-M*x,_*x+M*C]}for(var n=e/180*L6,i=0,o=0,l=Nte(t),s="",u=0;u<l.length;u++){var f=l[u],c=f[0],d=i,h=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 p=a(n,[+f[6],+f[7]]);f[6]=p[0],f[7]=p[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=d,o-=h);var m=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=m[0],f[2]=m[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return OS=s,s}});var da=oe((K6e,cE)=>{"use strict";var Gn=qt(),va=pr(),Ite=va.numberFormat,Df=Jt(),e2=xt(),Rn=Nt(),Bte=Km(),Hd=va.strTranslate,r2=hi(),Hte=(ec(),_r(Q0)),Ote=(di(),_r(vi)),Ute=Ote.LINE_SPACING,rE=(um(),_r(sm)).DESELECTDIM,Gte=Si(),Yte=RS(),Vte=Pu().appendArrayPointValue,Nr={};cE.exports=Nr;Nr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Rn.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",q6(jte(f))),s&&e.style("text-shadow",s==="auto"?r2.makeTextShadow(Rn.contrast(i)):q6(s)),u&&e.style("text-decoration-line",q6(Wte(u)))};function q6(e){return e==="none"?void 0:e}var Xte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function jte(e){return Xte[e]}function Wte(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Nr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Nr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Nr.setRect=function(e,r,t,a,n){e.call(Nr.setPosition,r,t).call(Nr.setSize,a,n)};Nr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Df(n)&&Df(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Hd(n,i));else return!1;return!0};Nr.translatePoints=function(e,r,t){e.each(function(a){var n=Gn.select(this);Nr.translatePoint(a,n,r,t)})};Nr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};Nr.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,s=e2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Nr.hideOutsideRangePoint(u,Gn.select(this),t,a,o,l)})})}};Nr.crispRound=function(e,r,t){return!r||!Df(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Nr.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||"";Rn.stroke(r,a||i.color),Nr.dashLine(r,l,o)};Nr.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||"";Gn.select(this).call(Rn.stroke,t||i.color).call(Nr.dashLine,l,o)})};Nr.dashLine=function(e,r,t){t=+t||0,r=Nr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Nr.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 tE(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=Nr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),d=o(n.solidity,0,.3),h=r.uid;Nr.pattern(e,"point",t,h,l,c,d,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="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(iE,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Nr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Rn.fill,r.fillcolor)}Nr.singleFillStyle=function(e,r){var t=Gn.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};tE(e,n,r,!1)};Nr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Gn.select(this);a[0].trace&&tE(n,a[0].trace,r,t)})};var XS=VS();Nr.symbolNames=[];Nr.symbolFuncs=[];Nr.symbolBackOffs=[];Nr.symbolNeedLines={};Nr.symbolNoDot={};Nr.symbolNoFill={};Nr.symbolList=[];Object.keys(XS).forEach(function(e){var r=XS[e],t=r.n;Nr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Nr.symbolNames[t]=e,Nr.symbolFuncs[t]=r.f,Nr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Nr.symbolNeedLines[t]=!0),r.noDot?Nr.symbolNoDot[t]=!0:Nr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Nr.symbolNoFill[t]=!0)});var Zte=Nr.symbolNames.length,$te="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Nr.symbolNumber=function(e){if(Df(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=Nr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Zte||e>=400?0:Math.floor(Math.max(e,0))};function aE(e,r,t,a){var n=e%100;return Nr.symbolFuncs[n](r,t,a)+(e>=200?$te:"")}var jS=Ite("~f"),nE={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}};Nr.gradient=function(e,r,t,a,n,i){var o=nE[a];return iE(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function iE(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var d=new Array(f),h=0;h<f;h++)c.reversed?d[f-1-h]=[jS((1-n[h][0])*100),n[h][1]]:d[h]=[jS(n[h][0]*100),n[h][1]];var p=r._fullLayout,m="g"+p._uid+"-"+t,y=p._defs.select(".gradients").selectAll("#"+m).data([a+d.join(";")],va.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var b=Gn.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",m);var C=b.selectAll("stop").data(d);C.exit().remove(),C.enter().append("stop"),C.each(function(x){Gn.select(this).attr({offset:x[0]+"%","stop-color":Rn.rgb(x[1]),"stop-opacity":Rn.parse(x[1]).alpha})})}),e.style(i,I6(m,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}Nr.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var d=r==="legend";l&&(s==="overlay"?(u=l,f=Rn.contrast(u)):(u=void 0,f=l));var h=t._fullLayout,p="p"+h._uid+"-"+a,m,y,b=function(Y,H,X,N,Q){return N+(Q-N)*(Y-H)/(X-H)},C,x,_,M,A={},k=Rn.rgb(f),D=Rn.parse(f).alpha,P=c*D;switch(n){case"/":m=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2,x=o*i,M="path",A={d:C,opacity:P,stroke:k,"stroke-width":x+"px"};break;case"\\":m=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,x=o*i,M="path",A={d:C,opacity:P,stroke:k,"stroke-width":x+"px"};break;case"x":m=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2+"M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,x=i-i*Math.sqrt(1-o),M="path",A={d:C,opacity:P,stroke:k,"stroke-width":x+"px"};break;case"|":m=i,y=i,M="path",C="M"+m/2+",0L"+m/2+","+y,x=o*i,M="path",A={d:C,opacity:P,stroke:k,"stroke-width":x+"px"};break;case"-":m=i,y=i,M="path",C="M0,"+y/2+"L"+m+","+y/2,x=o*i,M="path",A={d:C,opacity:P,stroke:k,"stroke-width":x+"px"};break;case"+":m=i,y=i,M="path",C="M"+m/2+",0L"+m/2+","+y+"M0,"+y/2+"L"+m+","+y/2,x=i-i*Math.sqrt(1-o),M="path",A={d:C,opacity:P,stroke:k,"stroke-width":x+"px"};break;case".":m=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",A={cx:m/2,cy:y/2,r:_,opacity:P,fill:k};break;default:m=i,y=i,M="path",A={d:n,opacity:P,fill:k};break}var z=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),B=h._defs.select(".patterns").selectAll("#"+p).data([z],va.identity);B.exit().remove(),B.enter().append("pattern").each(function(){var Y=Gn.select(this);if(Y.attr({id:p,width:m+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:d?"scale(0.8)":""}),u){var H=Rn.rgb(u),X=Rn.parse(u).alpha,N=Y.selectAll("rect").data([0]);N.exit().remove(),N.enter().append("rect").attr({width:m+"px",height:y+"px",fill:H,"fill-opacity":X})}var Q=Y.selectAll(M).data([0]);Q.exit().remove(),Q.enter().append(M).attr(A)}),e.style("fill",I6(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};Nr.initGradients=function(e){var r=e._fullLayout,t=va.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Gn.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};Nr.initPatterns=function(e){var r=e._fullLayout,t=va.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Gn.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};Nr.getPatternAttr=function(e,r,t){return e&&va.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};Nr.pointStyle=function(e,r,t,a){if(e.size()){var n=Nr.makePointStyleFns(r);e.each(function(i){Nr.singlePointStyle(i,Gn.select(this),r,n,t,a)})}};Nr.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 s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=Nr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=H6(e,t),c=B6(e,t);r.attr("d",aE(u,s,f,c))}var d=!1,h,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,h=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):va.isArrayOrTypedArray(l.color)?p=Rn.defaultLine:p=l.color,va.isArrayOrTypedArray(o.color)&&(h=Rn.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&Nr.dashLine(r,b,m),e.om)r.call(Rn.stroke,h).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var C=o.gradient,x=e.mgt;x?d=!0:x=C&&C.type,va.isArrayOrTypedArray(x)&&(x=x[0],nE[x]||(x=0));var _=o.pattern,M=Nr.getPatternAttr,A=_&&(M(_.shape,e.i,"")||M(_.path,e.i,""));if(x&&x!=="none"){var k=e.mgc;k?d=!0:k=C.color;var D=t.uid;d&&(D+="-"+e.i),Nr.gradient(r,n,D,x,[[0,k],[1,h]],"fill")}else if(A){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var B=M(z,e.i,i&&i.color||null),Y=M(_.bgcolor,e.i,null),H=_.fgopacity,X=M(_.size,e.i,8),N=M(_.solidity,e.i,.3);P=P||e.mcc||va.isArrayOrTypedArray(_.shape)||va.isArrayOrTypedArray(_.path)||va.isArrayOrTypedArray(_.bgcolor)||va.isArrayOrTypedArray(_.fgcolor)||va.isArrayOrTypedArray(_.size)||va.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),Nr.pattern(r,"point",n,Q,A,X,N,e.mcc,_.fillmode,Y,B,H)}else va.isArrayOrTypedArray(h)?Rn.fill(r,h[e.i]):Rn.fill(r,h);m&&Rn.stroke(r,p)}};Nr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Nr.tryColorscale(t,""),r.lineScale=Nr.tryColorscale(t,"line"),e2.traceIs(e,"symbols")&&(r.ms2mrc=Gte.isBubble(e)?Yte(e):function(){return(t.size||6)/2}),e.selectedpoints&&va.extendFlat(r,Nr.makeSelectedPointStyleFns(e)),r};Nr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(va.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var M=_.mo===void 0?n.opacity:_.mo;return _.selected?f?s:M:c?u:rE*M});var d=n.color,h=i.color,p=o.color;(h||p)&&(r.selectedColorFn=function(_){var M=_.mcc||d;return _.selected?h||M:p||M});var m=n.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return e2.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var M=_.mrc||m/2;return _.selected?C?y/2:M:x?b/2:M}),r};Nr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Rn.addOpacity(c,rE))},r};Nr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Nr.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){Rn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",aE(Nr.symbolNumber(l),s,H6(o,r),B6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Gn.select(this),l=0;l<n.length;l++)n[l](o,i)})}};Nr.tryColorscale=function(e,r){var t=r?va.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&va.isArrayOrTypedArray(a))return Bte.makeColorScaleFuncFromTrace(t)}return va.identity};var P6={start:1,end:-1,middle:0,bottom:1,top:-1};function oE(e,r,t,a,n){var i=Gn.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",s=a?a/.8+1:0,u=(r2.lineCount(e)-1)*Ute+1,f=P6[l]*s,c=t*.75+P6[o]*s+(P6[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Hd(f,c))}function lE(e,r){var t=e.ts||r.textfont.size;return Df(t)&&t>0?t:0}Nr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=Nr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Gn.select(this),u=i?va.extractOption(l,r,"txt","texttemplate"):va.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},d={};Vte(d,r,l.i),u=va.texttemplateString({data:[d,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var h=l.tp||r.textposition,p=lE(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(Nr.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:p,color:m}).text(u).call(r2.convertToTspans,t).call(oE,h,p,l.mrc)})}};Nr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Nr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Gn.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=lE(a,r);Rn.fill(n,i);var s=e2.traceIs(r,"bar-like");oE(n,o,l,a.mrc2||a.mrc,s)})}};var WS=.5;Nr.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(Qm(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};Nr.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[Qm(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(Qm(e[i-1],e[i],e[i+1],r));for(n.push(Qm(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 sE,uE;function j1(e,r,t){return t&&(e=fE(e)),r?ic(e[1]):nc(e[0])}function nc(e){var r=Gn.round(e,2);return sE=r,r}function ic(e){var r=Gn.round(e,2);return uE=r,r}function Qm(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],s=Math.pow(n*n+i*i,WS/2),u=Math.pow(o*o+l*l,WS/2),f=(u*u*n-s*s*o)*a,c=(u*u*i-s*s*l)*a,d=3*u*(s+u),h=3*s*(s+u);return[[nc(r[0]+(d&&f/d)),ic(r[1]+(d&&c/d))],[nc(r[0]-(h&&f/h)),ic(r[1]-(h&&c/h))]]}var Jte={hv:function(e,r,t){return"H"+nc(r[0])+"V"+j1(r,1,t)},vh:function(e,r,t){return"V"+ic(r[1])+"H"+j1(r,0,t)},hvh:function(e,r,t){return"H"+nc((e[0]+r[0])/2)+"V"+ic(r[1])+"H"+j1(r,0,t)},vhv:function(e,r,t){return"V"+ic((e[1]+r[1])/2)+"H"+nc(r[0])+"V"+j1(r,1,t)}},Kte=function(e,r,t){return"L"+j1(r,0,t)+","+j1(r,1,t)};Nr.steps=function(e){var r=Jte[e]||Kte;return function(t){for(var a="M"+nc(t[0][0])+","+ic(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function fE(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=va.isArrayOrTypedArray(t),l=e,s=r?r[0]:sE||0,u=r?r[1]:uE||0,f=l[0],c=l[1],d=f-s,h=c-u,p=Math.atan2(h,d),m=o?t[i]:t;if(m==="auto"){var y=l.i;a.type==="scatter"&&y--;var b=l.marker,C=b.symbol;va.isArrayOrTypedArray(C)&&(C=C[y]);var x=b.size;va.isArrayOrTypedArray(x)&&(x=x[y]),m=b?Nr.symbolBackOffs[Nr.symbolNumber(C)]*x:0,m+=Nr.getMarkerStandoff(n[y],a)||0}var _=f-m*Math.cos(p),M=c-m*Math.sin(p);(_<=f&&_>=s||_>=f&&_<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[_,M])}return e}Nr.applyBackoff=fE;Nr.makeTester=function(){var e=va.ensureSingleById(Gn.select("body"),"svg","js-plotly-tester",function(t){t.attr(Hte.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=va.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Nr.tester=e,Nr.testref=r};Nr.savedBBoxes={};var R6=0,Qte=1e4;Nr.bBox=function(e,r,t){t||(t=ZS(e));var a;if(t){if(a=Nr.savedBBoxes[t],a)return va.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=ZS(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=Nr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=Nr.savedBBoxes[t],a)return va.extendFlat({},a)}}var u,f;r?u=e:(f=Nr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Gn.select(u).attr("transform",null).call(r2.positionText,0,0);var c=u.getBoundingClientRect(),d=Nr.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-d.left,top:c.top-d.top,right:c.right-d.left,bottom:c.bottom-d.top};return R6>=Qte&&(Nr.savedBBoxes={},R6=0),t&&(Nr.savedBBoxes[t]=h),R6++,va.extendFlat({},h)};function ZS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Nr.setClipUrl=function(e,r,t){e.attr("clip-path",I6(r,t))};function I6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}Nr.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}};Nr.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+=Hd(r,t),o=o.trim(),e[i]("transform",o),o};Nr.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}};Nr.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 eae=/\s*sc.*/;Nr.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(eae,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var rae=/translate\([^)]*\)\s*$/;Nr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Gn.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(rae);r===1&&t===1?a=[]:a=[Hd(o,l),"scale("+r+","+t+")",Hd(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function B6(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}Nr.getMarkerStandoff=B6;var Bd=Math.atan2,ac=Math.cos,W1=Math.sin;function $S(e,r){var t=r[0],a=r[1];return[t*ac(e)-a*W1(e),t*W1(e)+a*ac(e)]}var JS,KS,QS,eE,z6,N6;function H6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Df(t)||va.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,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),d=r._geo.project([u+1e-5,f]),h=Bd(d[1]-n,d[0]-a),p=Bd(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,C=JS/180*Math.PI,x=KS/180*Math.PI,_=C-y,M=ac(x)*W1(_),A=W1(x)*ac(b)-ac(x)*W1(b)*ac(_);m=-Bd(M,A)-Math.PI,JS=u,KS=f}var k=$S(h,[ac(m),0]),D=$S(p,[W1(m),0]);t=Bd(k[1]+D[1],k[0]+D[0])/Math.PI*180,i==="previous"&&!(N6===r.uid&&e.i===z6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(N6===r.uid&&e.i===z6+1&&Df(a)&&Df(n)){var P=a-QS,z=n-eE,B=r.line&&r.line.shape||"",Y=B.slice(B.length-1);Y==="h"&&(z=0),Y==="v"&&(P=0),t+=Bd(z,P)/Math.PI*180+90}else t=null}return QS=a,eE=n,z6=e.i,N6=r.uid,t}Nr.getMarkerAngle=H6});var Od=oe((Q6e,pE)=>{"use strict";var Z1=qt(),tae=Jt(),aae=Pn(),O6=xt(),oc=pr(),vE=oc.strTranslate,t2=da(),a2=Nt(),$1=hi(),dE=(um(),_r(sm)),nae=(di(),_r(vi)).OPPOSITE_SIDE,hE=/ [XY][0-9]* /,U6=1.6,G6=1.6;function iae(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,d=1,h=n.title,p=(h&&h.text?h.text:"").trim(),m=!1,y=h&&h.font?h.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,M=y.style,A=y.variant,k=y.textcase,D=y.lineposition,P=y.shadow,z=t.subtitlePropName,B=!!z,Y=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},X=(H.text||"").trim(),N=!1,Q=1,ee=H.font,ae=ee.family,re=ee.size,ie=ee.color,ue=ee.weight,xe=ee.style,Ee=ee.variant,Re=ee.textcase,Ne=ee.lineposition,ke=ee.shadow,We;i==="title.text"?We="titleText":i.indexOf("axis")!==-1?We="axisTitleText":i.indexOf("colorbar")!==-1&&(We="colorbarTitleText");var W=e._context.edits[We];function se(dr,Ar){return dr===void 0||Ar===void 0?!1:dr.replace(hE," % ")===Ar.replace(hE," % ")}p===""?d=0:se(p,o)&&(W||(p=""),d=.2,m=!0),B&&(X===""?Q=0:se(X,Y)&&(W||(X=""),Q=.2,N=!0)),t._meta?p=oc.templateString(p,t._meta):a._meta&&(p=oc.templateString(p,a._meta));var de=p||X||W,K;c||(c=oc.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var J=c.selectAll("text."+r).data(de?[0]:[]);J.enter().append("text"),J.text(p).attr("class",r),J.exit().remove();var ce=null,be=r+"-subtitle",Le=X||W;if(B&&(ce=c.selectAll("text."+be).data(Le?[0]:[]),ce.enter().append("text"),ce.text(X).attr("class",be),ce.exit().remove()),!de)return c;function je(dr,Ar){oc.syncOrAsync([er,$e],{title:dr,subtitle:Ar})}function er(dr){var Ar=dr.title,Qe=dr.subtitle,mr;!f&&K&&(f={}),f?(mr="",f.rotate&&(mr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||K)&&(mr+=vE(0,(f.offset||0)-(K||0)))):mr=null,Ar.attr("transform",mr);function Pr(Ce){if(Ce){var Ue=Z1.select(Ce.node().parentNode).select("."+be);if(!Ue.empty()){var cr=Ce.node().getBBox();if(cr.height){var Mr=cr.y+cr.height+U6*re;Ue.attr("y",Mr)}}}}if(Ar.style("opacity",d*a2.opacity(x)).call(t2.font,{color:a2.rgb(x),size:Z1.round(C,2),family:b,weight:_,style:M,variant:A,textcase:k,shadow:P,lineposition:D}).attr(u).call($1.convertToTspans,e,Pr),Qe&&!Qe.empty()){var Te=c.select("."+r+"-math-group"),Oe=Ar.node().getBBox(),xr=Te.node()?Te.node().getBBox():void 0,Rr=xr?xr.y+xr.height+U6*re:Oe.y+Oe.height+G6*re,zr=oc.extendFlat({},u,{y:Rr});Qe.attr("transform",mr),Qe.style("opacity",Q*a2.opacity(ie)).call(t2.font,{color:a2.rgb(ie),size:Z1.round(re,2),family:ae,weight:ue,style:xe,variant:Ee,textcase:Re,shadow:ke,lineposition:Ne}).attr(zr).call($1.convertToTspans,e)}return aae.previousPromises(e)}function $e(dr){var Ar=dr.title,Qe=Z1.select(Ar.node().parentNode);if(s&&s.selection&&s.side&&p){Qe.attr("transform",null);var mr=nae[s.side],Pr=s.side==="left"||s.side==="top"?-1:1,Te=tae(s.pad)?s.pad:2,Oe=t2.bBox(Qe.node()),xr={t:0,b:0,l:0,r:0},Rr=e._fullLayout._reservedMargin;for(var zr in Rr)for(var Ce in Rr[zr]){var Ue=Rr[zr][Ce];xr[Ce]=Math.max(xr[Ce],Ue)}var cr={left:xr.l,top:xr.t,right:a.width-xr.r,bottom:a.height-xr.b},Mr=s.maxShift||Pr*(cr[s.side]-Oe[s.side]),hr=0;if(Mr<0)hr=Mr;else{var kr=s.offsetLeft||0,Lr=s.offsetTop||0;Oe.left-=kr,Oe.right-=kr,Oe.top-=Lr,Oe.bottom-=Lr,s.selection.each(function(){var et=t2.bBox(this);oc.bBoxIntersect(Oe,et,Te)&&(hr=Math.max(hr,Pr*(et[s.side]-Oe[mr])+Te))}),hr=Math.min(Mr,hr),n._titleScoot=Math.abs(hr)}if(hr>0||Mr<0){var Br={left:[-hr,0],right:[hr,0],top:[0,-hr],bottom:[0,hr]}[s.side];Qe.attr("transform",vE(Br[0],Br[1]))}}}J.call(je,ce);function ar(dr,Ar){dr.text(Ar).on("mouseover.opacity",function(){Z1.select(this).transition().duration(dE.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Z1.select(this).transition().duration(dE.HIDE_PLACEHOLDER).style("opacity",0)})}if(W&&(p?J.on(".opacity",null):(ar(J,o),m=!0),J.call($1.makeEditable,{gd:e}).on("edit",function(dr){l!==void 0?O6.call("_guiRestyle",e,i,dr,l):O6.call("_guiRelayout",e,i,dr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(je)}).on("input",function(dr){this.text(dr||" ").call($1.positionText,u.x,u.y)}),B)){if(B&&!p){var Ie=J.node().getBBox(),ir=Ie.y+Ie.height+G6*re;ce.attr("y",ir)}X?ce.on(".opacity",null):(ar(ce,Y),N=!0),ce.call($1.makeEditable,{gd:e}).on("edit",function(dr){O6.call("_guiRelayout",e,"title.subtitle.text",dr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(je)}).on("input",function(dr){this.text(dr||" ").call($1.positionText,ce.attr("x"),ce.attr("y"))})}return J.classed("js-placeholder",m),ce&&!ce.empty()&&ce.classed("js-placeholder",N),c}pE.exports={draw:iae,SUBTITLE_PADDING_EM:G6,SUBTITLE_PADDING_MATHJAX_EM:U6}});var c2=oe((ebe,_E)=>{"use strict";var oae=qt(),lae=d1().utcFormat,wa=pr(),sae=wa.numberFormat,Ps=Jt(),Ff=wa.cleanNumber,uae=wa.ms2DateTime,mE=wa.dateTime2ms,Rs=wa.ensureNumber,gE=wa.isArrayOrTypedArray,qf=(ja(),_r(tn)),n2=qf.FP_SAFE,jl=qf.BADNUM,fae=qf.LOG_CLIP,cae=qf.ONEWEEK,i2=qf.ONEDAY,o2=qf.ONEHOUR,yE=qf.ONEMIN,bE=qf.ONESEC,l2=qn(),f2=(Un(),_r(On)),s2=f2.HOUR_PATTERN,u2=f2.WEEKDAY_PATTERN;function Ud(e){return Math.pow(10,e)}function Y6(e){return e!=null}var vae=2;function dae(e,r){if(e<=0)return 0;let t=Math.max(0,r-vae);return e>t?t/e:1}_E.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 A=r.range[0],k=r.range[1];return .5*(A+k-2*fae*Math.abs(A-k))}else return jl}function o(_,M,A,k){if((k||{}).msUTC&&Ps(_))return+_;var D=mE(_,A||r.calendar);if(D===jl)if(Ps(_)){_=+_;var P=Math.floor(wa.mod(_+.05,1)*10),z=Math.round(_-P/10);D=mE(new Date(z))+P/10}else return jl;return D}function l(_,M,A){return uae(_,M,A||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(Y6(_)){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 jl}function f(_,M){for(var A=new Array(M),k=0;k<M;k++){var D=(_[0]||[])[k],P=(_[1]||[])[k];A[k]=c([D,P])}return A}function c(_){if(r._categoriesMap)return r._categoriesMap[_]}function d(_){var M=c(_);if(M!==void 0)return M;if(Ps(_))return+_}function h(_){return Ps(_)?+_:c(_)}function p(_,M,A){return oae.round(A+M*_,2)}function m(_,M,A){return(_-A)/M}var y=function(M){return Ps(M)?p(M,r._m,r._b):jl},b=function(_){return m(_,r._m,r._b)};if(r.rangebreaks){var C=n==="y";y=function(_){if(!Ps(_))return jl;var M=r._rangebreaks.length;if(!M)return p(_,r._m,r._b);var A=C;r.range[0]>r.range[1]&&(A=!A);for(var k=A?-1:1,D=k*_,P=0,z=0;z<M;z++){var B=k*r._rangebreaks[z].min,Y=k*r._rangebreaks[z].max;if(D<B)break;if(D>Y)P=z+1;else{P=D<(B+Y)/2?z:z+1;break}}var H=r._B[P]||0;return isFinite(H)?p(_,r._m2,H):0},b=function(_){var M=r._rangebreaks.length;if(!M)return m(_,r._m,r._b);for(var A=0,k=0;k<M&&!(_<r._rangebreaks[k].pmin);k++)_>r._rangebreaks[k].pmax&&(A=k+1);return m(_,r._m2,r._B[A])}}r.c2l=r.type==="log"?i:Rs,r.l2c=r.type==="log"?Ud:Rs,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 Ud(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Ff,r.c2d=r.c2r=r.l2d=r.l2r=Rs,r.d2p=r.r2p=function(_){return r.l2p(Ff(_))},r.p2d=r.p2r=b,r.cleanPos=Rs):r.type==="log"?(r.d2r=r.d2l=function(_,M){return i(Ff(_),M)},r.r2d=r.r2c=function(_){return Ud(Ff(_))},r.d2c=r.r2l=Ff,r.c2d=r.l2r=Rs,r.c2r=i,r.l2d=Ud,r.d2p=function(_,M){return r.l2p(r.d2r(_,M))},r.p2d=function(_){return Ud(b(_))},r.r2p=function(_){return r.l2p(Ff(_))},r.p2r=b,r.cleanPos=Rs):r.type==="date"?(r.d2r=r.r2d=wa.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,A){return r.l2p(o(_,0,A))},r.p2d=r.p2r=function(_,M,A){return l(b(_),M,A)},r.cleanPos=function(_){return wa.cleanDate(_,jl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(_){var M=h(_);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Rs,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Rs(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(_){var M=d(_);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Rs,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Rs(_)},r.setupMultiCategory=function(_){var M=r._traceIndices,A,k,D=r._matchGroup;if(D&&r._categories.length===0){for(var P in D)if(P!==a){var z=t[l2.id2name(P)];M=M.concat(z._traceIndices)}}var B=[[0,{}],[0,{}]],Y=[];for(A=0;A<M.length;A++){var H=_[M[A]];if(n in H){var X=H[n],N=H._length||wa.minRowLength(X);if(gE(X[0])&&gE(X[1]))for(k=0;k<N;k++){var Q=X[0][k],ee=X[1][k];Y6(Q)&&Y6(ee)&&(Y.push([Q,ee]),Q in B[0][1]||(B[0][1][Q]=B[0][0]++),ee in B[1][1]||(B[1][1][ee]=B[1][0]++))}}}for(Y.sort(function(ae,re){var ie=B[0][1],ue=ie[ae[0]]-ie[re[0]];if(ue)return ue;var xe=B[1][1];return xe[ae[1]]-xe[re[1]]}),A=0;A<Y.length;A++)u(Y[A])}),r.fraction2r=function(_){var M=r.r2l(r.range[0]),A=r.r2l(r.range[1]);return r.l2r(M+_*(A-M))},r.r2fraction=function(_){var M=r.r2l(r.range[0]),A=r.r2l(r.range[1]);return(r.r2l(_)-M)/(A-M)},r.limitRange=function(_){var M=r.minallowed,A=r.maxallowed;if(!(M===void 0&&A===void 0)){_||(_="range");var k=wa.nestedProperty(r,_).get(),D=wa.simpleMap(k,r.r2l),P=D[1]<D[0];P&&D.reverse();var z=wa.simpleMap([M,A],r.r2l);if(M!==void 0&&D[0]<z[0]&&(k[P?1:0]=M,D[0]=z[0]),A!==void 0&&D[1]>z[1]&&(k[P?0:1]=A,D[1]=z[1]),D[0]>=D[1])if(M!==void 0){var B=z[0]+1;A!==void 0&&(B=Math.min(B,z[1])),k[P?0:1]=r.l2r(B)}else A!==void 0&&(k[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 A=wa.nestedProperty(r,_).get(),k,D;if(r.type==="date"?D=wa.dfltRange(r.calendar):n==="y"?D=f2.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=M.dfltRange||f2.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!A||A.length!==2){wa.nestedProperty(r,_).set(D);return}var P=A[0]===null,z=A[1]===null;for(r.type==="date"&&!r.autorange&&(A[0]=wa.cleanDate(A[0],jl,r.calendar),A[1]=wa.cleanDate(A[1],jl,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!wa.isDateTime(A[k],r.calendar)){r[_]=D;break}if(r.r2l(A[0])===r.r2l(A[1])){var B=wa.constrain(r.r2l(A[0]),wa.MIN_MS+1e3,wa.MAX_MS-1e3);A[0]=r.l2r(B-1e3),A[1]=r.l2r(B+1e3);break}}else{if(!Ps(A[k]))if(!(P||z)&&Ps(A[1-k]))A[k]=A[1-k]*(k?10:.1);else{r[_]=D;break}if(A[k]<-n2?A[k]=-n2:A[k]>n2&&(A[k]=n2),A[0]===A[1]){var Y=Math.max(1,Math.abs(A[0]*1e-6));A[0]-=Y,A[1]+=Y}}},r.setScale=function(_){var M=t._size;if(r.overlaying){var A=l2.getFromId({_fullLayout:t},r.overlaying);r.domain=A.domain,r.domainpad=A.domainpad}var k=_&&r._r?"_r":"range",D=r.calendar;r.cleanRange(k);var P=r.r2l(r[k][0],D),z=r.r2l(r[k][1],D),B=n==="y";let Y=(B?M.h:M.w)*(r.domain[1]-r.domain[0]),H=r.domainpad,X=0,N=0;if(H){X=(B?H.top:H.left)||0,N=(B?H.bottom:H.right)||0;let ie=dae(X+N,Y);X*=ie,N*=ie}if(r._length=Y-X-N,r._padStart=X,r._padEnd=N,B?(r._offset=M.t+(1-r.domain[1])*M.h+X,r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=M.l+r.domain[0]*M.w+X,r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var Q,ee;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(Q=0;Q<r._rangebreaks.length;Q++)ee=r._rangebreaks[Q],r._lBreaks+=Math.abs(ee.max-ee.min);var ae=B;P>z&&(ae=!ae),ae&&r._rangebreaks.reverse();var re=ae?-1:1;for(r._m2=re*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(B?z:P)),Q=0;Q<r._rangebreaks.length;Q++)ee=r._rangebreaks[Q],r._B.push(r._B[r._B.length-1]-re*r._m2*(ee.max-ee.min));for(Q=0;Q<r._rangebreaks.length;Q++)ee=r._rangebreaks[Q],ee.pmin=y(ee.min),ee.pmax=y(ee.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||[],A,k,D,P,z;M._cachedPatterns||(M._cachedPatterns=M.map(function(ie){return ie.enabled&&ie.bounds?wa.simpleMap(ie.bounds,ie.pattern?Ff:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(ie){return ie.enabled&&ie.values?wa.simpleMap(ie.values,r.d2c).sort(wa.sorterAsc):null}));for(var B=0;B<M.length;B++){var Y=M[B];if(Y.enabled){if(Y.bounds){var H=Y.pattern;switch(A=M._cachedPatterns[B],k=A[0],D=A[1],H){case u2:z=new Date(_),P=z.getUTCDay(),k>D&&(D+=7,P<k&&(P+=7));break;case s2:z=new Date(_);var X=z.getUTCHours(),N=z.getUTCMinutes(),Q=z.getUTCSeconds(),ee=z.getUTCMilliseconds();P=X+(N/60+Q/3600+ee/36e5),k>D&&(D+=24,P<k&&(P+=24));break;case"":P=_;break}if(P>=k&&P<D)return jl}else for(var ae=M._cachedValues[B],re=0;re<ae.length;re++)if(k=ae[re],D=k+Y.dvalue,_>=k&&_<D)return jl}}return _},r.locateBreaks=function(_,M){var A,k,D,P,z=[];if(!r.rangebreaks)return z;var B=r.rangebreaks.slice().sort(function(xe,Ee){return xe.pattern===u2&&Ee.pattern===s2?-1:Ee.pattern===u2&&xe.pattern===s2?1:0}),Y=function(xe,Ee){if(xe=wa.constrain(xe,_,M),Ee=wa.constrain(Ee,_,M),xe===Ee)return;let Re;for(let Ne=0;Ne<z.length;Ne++){let ke=z[Ne];xe<ke.max&&Ee>=ke.min&&(Re?(Re.min=Math.min(Re.min,ke.min),Re.max=Math.max(Re.max,ke.max),z.splice(Ne,1),Ne--):(Re=ke,Re.min=Math.min(Re.min,xe),Re.max=Math.max(Re.max,Ee)))}Re||z.push({min:xe,max:Ee})};for(A=0;A<B.length;A++){var H=B[A];if(H.enabled)if(H.bounds){var X=_,N=M;H.pattern&&(X=Math.floor(X)),k=wa.simpleMap(H.bounds,H.pattern?Ff:r.r2l),D=k[0],P=k[1];var Q=new Date(X),ee,ae;switch(H.pattern){case u2:ae=cae,ee=((P<D?7:0)+(P-D))*i2,X+=D*i2-(Q.getUTCDay()*i2+Q.getUTCHours()*o2+Q.getUTCMinutes()*yE+Q.getUTCSeconds()*bE+Q.getUTCMilliseconds());break;case s2:ae=i2,ee=((P<D?24:0)+(P-D))*o2,X+=D*o2-(Q.getUTCHours()*o2+Q.getUTCMinutes()*yE+Q.getUTCSeconds()*bE+Q.getUTCMilliseconds());break;default:X=Math.min(k[0],k[1]),N=Math.max(k[0],k[1]),ae=N-X,ee=ae}for(var re=X;re<N;re+=ae)Y(re,re+ee)}else for(var ie=wa.simpleMap(H.values,r.d2c),ue=0;ue<ie.length;ue++)D=ie[ue],P=D+H.dvalue,Y(D,P)}return z.sort(function(xe,Ee){return xe.min-Ee.min}),z},r.makeCalcdata=function(_,M,A){var k,D,P,z,B=r.type,Y=B==="date"&&_[M+"calendar"];if(M in _){if(k=_[M],z=_._length||wa.minRowLength(k),wa.isTypedArray(k)&&(B==="linear"||B==="log")){if(z===k.length)return k;if(k.subarray)return k.subarray(0,z)}if(B==="multicategory")return f(k,z);for(D=new Array(z),P=0;P<z;P++)D[P]=r.d2c(k[P],0,Y,A)}else{var H=M+"0"in _?r.d2c(_[M+"0"],0,Y):0,X=_["d"+M]?Number(_["d"+M]):1;for(k=_[{x:"y",y:"x"}[M]],z=_._length||k.length,D=new Array(z),P=0;P<z;P++)D[P]=H+P*X}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||Ps(r.r2l(_[0])))&&(M&&_[1]===null||Ps(r.r2l(_[1])))},r.getAutorangeDflt=function(_,M){var A=!r.isValidRange(_,"nullOk");return A&&M&&M.reverseDflt?A="reversed":_&&(_[0]===null&&_[1]===null?A=!0:_[0]===null&&_[1]!==null?A="min":_[0]!==null&&_[1]===null&&(A="max")),A},r.isReversed=function(){var _=r.autorange;return _==="reversed"||_==="min reversed"||_==="max reversed"},r.isPtWithinRange=function(_,M){var A=r.c2l(_[n],null,M),k=r.r2l(r.range[0]),D=r.r2l(r.range[1]);return k<D?k<=A&&A<=D:D<=A&&A<=k},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var _=r._matchGroup;if(_){var M=null,A=null;for(var k in _){var D=t[l2.id2name(k)];if(D._categories){M=D._categories,A=D._categoriesMap;break}}M&&A?(r._categories=M,r._categoriesMap=A):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var P=0;P<r._initialCategories.length;P++)u(r._initialCategories[P])},r.sortByInitialCategories=function(){var _=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)u(r._initialCategories[M]);_=_.concat(r._traceIndices);var A=r._matchGroup;for(var k in A)if(a!==k){var D=t[l2.id2name(k)];D._categories=r._categories,D._categoriesMap=r._categoriesMap,_=_.concat(D._traceIndices)}return _};var x=t._d3locale;r.type==="date"&&(r._dateFormat=x?x.timeFormat:lae,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=x?x.numberFormat:sae,delete r._minDtick,delete r._forceTick0}});var X6=oe((rbe,AE)=>{"use strict";var xE=Jt(),V6=pr(),hae=(ja(),_r(tn)).BADNUM,v2=V6.isArrayOrTypedArray,pae=V6.isDateTime,mae=V6.cleanNumber,wE=Math.round;AE.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(v2(n)&&!n.length)return"-";if(!i&&xae(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(v2(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(bae(n,t))return"date";var u=a.autotypenumbers!=="strict";return _ae(n,u)?"category":yae(n,u)?"linear":"-"};function gae(e,r){return r?xE(e):typeof e=="number"}function yae(e,r){for(var t=e.length,a=0;a<t;a++)if(gae(e[a],r))return!0;return!1}function bae(e,r){for(var t=e.length,a=ME(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=wE(l),u=e[s],f=String(u);o[f]||(o[f]=1,pae(u,r)&&n++,xE(u)&&i++)}return n>i*2}function ME(e){return Math.max(1,(e-1)/1e3)}function _ae(e,r){for(var t=e.length,a=ME(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=wE(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?mae(u)!==hae:c==="number")?n++:c==="string"&&i++}}return i>n*2}function xae(e){return v2(e[0])&&v2(e[1])}});var Rf=oe((tbe,FE)=>{"use strict";var wae=qt(),SE=Jt(),Pf=pr(),d2=(ja(),_r(tn)).FP_SAFE,Mae=xt(),Aae=da(),EE=qn(),Tae=EE.getFromId,kae=EE.isLinked;FE.exports={applyAutorangeOptions:DE,getAutoRange:j6,makePadFn:W6,doAutoRange:Sae,findExtremes:Eae,concatExtremes:J6};function j6(e,r){var t,a,n=[],i=e._fullLayout,o=W6(i,r,0),l=W6(i,r,1),s=J6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Pf.simpleMap(r.range,r.r2l);var c=u[0].val,d=f[0].val;for(t=1;t<u.length&&c===d;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===d;t++)d=Math.max(d,f[t].val);var h=r.autorange,p=h==="reversed"||h==="min reversed"||h==="max reversed";if(!p&&r.range){var m=Pf.simpleMap(r.range,r.r2l);p=m[1]<m[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,b=y==="tozero",C=y==="nonnegative",x=r._length,_=x/10,M=0,A,k,D,P,z,B;for(t=0;t<u.length;t++)for(A=u[t],a=0;a<f.length;a++)k=f[a],B=k.val-A.val-TE(r,A.val,k.val),B>0&&(z=x-o(A)-l(k),z>_?B/z>M&&(D=A,P=k,M=B/z):B/x>M&&(D={val:A.val,nopad:1},P={val:k.val,nopad:1},M=B/x));function Y(ee,ae){return Math.max(ee,l(ae))}if(c===d){var H=c-1,X=c+1;if(b)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(Y,0),Q=c/(1-Math.min(.5,N/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,H),Math.max(1,X)]:n=[H,X]}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-TE(r,A.val,k.val))/(x-o(D)-l(P)),n=[D.val-M*o(D),P.val+M*l(P)];return n=DE(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Pf.simpleMap(n,r.l2r||Number)}function TE(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 W6(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=Pf.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return kae(e,r._id)||(l=Cae(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(u){return u.nopad?0:u.pad+(u.extrapad?a:l)}}var kE=3;function Cae(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 s=Pf.deg2rad(l._tickAngles[l._id+"tick"]||0),u=Math.abs(Math.cos(s)),f=Math.abs(Math.sin(s));if(!l._vals[0].bb){var c=l._id+"tick",d=l._selections[c];d.each(function(C){var x=wae.select(this),_=x.select(".text-math-group");_.empty()&&(C.bb=Aae.bBox(x.node()))})}for(var h=0;h<l._vals.length;h++){var p=l._vals[h],m=p.bb;if(m){var y=2*kE+m.width,b=2*kE+m.height;a=Math.max(a,n?Math.max(y*u,b*f):Math.max(b*u,y*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function J6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(y,b){for(s=0;s<b.length;s++){var C=y[b[s]],x=(C._extremes||{})[a];if(C.visible===!0&&x){for(u=0;u<x.min.length;u++)f=x.min[u],Z6(o,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<x.max.length;u++)f=x.max[u],$6(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 d in r._matchGroup)if(d!==r._id){var h=Tae(e,d),p=J6(e,h,!0),m=r._length/h._length;for(u=0;u<p.min.length;u++)f=p.min[u],Z6(o,f.val,f.pad*m,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],$6(l,f.val,f.pad*m,{extrapad:f.extrapad})}}return{min:o,max:l}}function Sae(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():j6(e,r),r._r=r.range.slice(),r._rl=Pf.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Mae.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=j6(e,r)),i._input.rangeslider[r._name]=Pf.extendFlat({},o)}}function Eae(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==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,d,h,p,m,y,b,C,x;function _(Y){if(Array.isArray(Y))return u=!0,function(X){return Math.max(Number(Y[X]||0),0)};var H=Math.max(Number(Y||0),0);return function(){return H}}var M=_((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),A=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=_(t.vpadplus||t.vpad),D=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(c=0;c<i;c++)d=r[c],d<C&&d>0&&(C=d),d>x&&d<d2&&(x=d);else for(c=0;c<i;c++)d=r[c],d<C&&d>-d2&&(C=d),d>x&&d<d2&&(x=d);r=[C,x],i=2}var P={tozero:l,extrapad:o};function z(Y){h=r[Y],SE(h)&&(y=M(Y),b=A(Y),f?(p=e.c2l(h)-D(Y),m=e.c2l(h)+k(Y)):(C=h-D(Y),x=h+k(Y),s&&C<x/10&&(C=x/10),p=e.c2l(C),m=e.c2l(x)),l&&(p=Math.min(0,p),m=Math.max(0,m)),CE(p)&&Z6(a,p,b,P),CE(m)&&$6(n,m,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 Z6(e,r,t,a){LE(e,r,t,a,Lae)}function $6(e,r,t,a){LE(e,r,t,a,Dae)}function LE(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(n(u.val,r)&&u.pad>=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function CE(e){return SE(e)&&Math.abs(e)<d2}function Lae(e,r){return e<=r}function Dae(e,r){return e>=r}function Fae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&h2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&h2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function qae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&h2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&h2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function h2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function DE(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);Pf.isArrayOrTypedArray(n)||(n=[n]);for(var l=0;l<n.length;l++){var s=r.d2l(n[l]);i>=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Fae(t,r),a=qae(a,r),[t,a]}});var Ga=oe((nbe,eL)=>{"use strict";var tl=qt(),bn=Jt(),J1=Pn(),Yd=xt(),ht=pr(),K1=ht.strTranslate,lc=hi(),Pae=Od(),Vd=Nt(),Eo=da(),Rae=Vl(),qE=m6(),abe=(Un(),_r(On)),ii=(ja(),_r(tn)),zae=ii.ONEMAXYEAR,g2=ii.ONEAVGYEAR,y2=ii.ONEMINYEAR,Nae=ii.ONEMAXQUARTER,rb=ii.ONEAVGQUARTER,b2=ii.ONEMINQUARTER,Iae=ii.ONEMAXMONTH,Q1=ii.ONEAVGMONTH,_2=ii.ONEMINMONTH,Lo=ii.ONEWEEK,Ei=ii.ONEDAY,zf=Ei/2,Ns=ii.ONEHOUR,Xd=ii.ONEMIN,x2=ii.ONESEC,Bae=ii.ONEMILLI,Hae=ii.ONEMICROSEC,sc=ii.MINUS_SIGN,M2=ii.BADNUM,tb={K:"zeroline"},ab={K:"gridline",L:"path"},nb={K:"minor-gridline",L:"path"},YE={K:"tick",L:"path"},PE={K:"tick",L:"text"},RE={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},A2=(di(),_r(vi)),Gd=A2.MID_SHIFT,uc=A2.CAP_SHIFT,jd=A2.LINE_SPACING,Oae=A2.OPPOSITE_SIDE,w2=3,gr=eL.exports={};gr.setConvert=c2();var Uae=X6(),Is=qn(),Gae=Is.idSort,Yae=Is.isLinked;gr.id2name=Is.id2name;gr.name2id=Is.name2id;gr.cleanId=Is.cleanId;gr.list=Is.list;gr.listIds=Is.listIds;gr.getFromId=Is.getFromId;gr.getFromTrace=Is.getFromTrace;var VE=Rf();gr.getAutoRange=VE.getAutoRange;gr.findExtremes=VE.findExtremes;var Vae=1e-4;function sb(e){var r=(e[1]-e[0])*Vae;return[e[0]-r,e[1]+r]}function Xae(e,r,t){if(![t,e,r].every(bn)||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}gr.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},ht.coerce(e,r,u,s)};gr.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(d=>d+" domain")),s=s.concat(i||[]),f.length>o?(ht.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(ht.warn("Array attribute "+u+" 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]=Is.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};gr.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};gr.coercePosition=function(e,r,t,a,n,i){var o,l,s=gr.getRefType(a);if(s!=="range")o=ht.ensureNumber,l=t(n,i);else{var u=gr.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};gr.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?ht.ensureNumber:gr.getFromId(r,t).cleanPos;return a(e)};gr.redrawComponents=function(e,r){r=r||gr.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=Yd.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[gr.id2name(r[f])],d=c[o],h=0;h<d.length;h++){var p=d[h];if(!u[p]&&(s(e,p),u[p]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var jae=gr.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(ht.isArrayOrTypedArray(i)){if(n={type:Uae(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},gr.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=gr.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:NE,c2d:NE}:{d2c:zE,c2d:zE}};function zE(e){return+e}function NE(e){return String(e)}gr.getDataToCoordFunc=function(e,r,t,a){return jae(e,r,t,a).d2c};gr.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};gr.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))};gr.saveRangeInitial=function(e,r){for(var t=gr.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,s=i.autorange;(o&&s!==!0||r&&l)&&(i._rangeInitial0=s==="min"||s==="max reversed"?void 0:i.range[0],i._rangeInitial1=s==="max"||s==="min reversed"?void 0:i.range[1],i._autorangeInitial=s,a=!0)}return a};gr.saveShowSpikeInitial=function(e,r){for(var t=gr.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var o=t[i],l=o._showSpikeInitial===void 0,s=l||o.showspikes!==o._showspikes;(l||r&&s)&&(o._showSpikeInitial=o.showspikes,a=!0),n==="on"&&!o.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};gr.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 s;if(r.type==="log"?s={type:"linear",range:[o,l]}:s={type:r.type,range:ht.simpleMap([o,l],r.c2r,0,n),calendar:n},gr.setConvert(s),i=i&&qE.dtick(i,s.type),i)s.dtick=i,s.tick0=qE.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=ht.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),d=c*ht.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(d,2*ht.stdev(e)/Math.pow(e.length,a?.25:.4)),bn(u)||(u=1)}gr.autoTicks(s,u)}var h=s.dtick,p=gr.tickIncrement(gr.tickFirst(s),h,"reverse",n),m,y;if(typeof h=="number")p=Wae(p,e,s,o,l),y=1+Math.floor((l-p)/h),m=p+y*h;else for(s.dtick.charAt(0)==="M"&&(p=Zae(p,e,h,o,n)),m=p,y=0;m<=l;)m=gr.tickIncrement(m,h,!1,n),y++;return{start:r.c2r(p,0,n),end:r.c2r(m,0,n),size:h,_dataSpan:l-o}};function Wae(e,r,t,a,n){var i=0,o=0,l=0,s=0;function u(h){return(1+(h-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:bn(r[f])||s++,u(r[f])&&i++,u(r[f]+t.dtick/2)&&o++;var c=r.length-s;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||u(a)||u(n))){var d=t.dtick/2;e+=e+d<a?d:-d}return e}function Zae(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=gr.tickIncrement(e,"M6","reverse")+Ei*1.5:i.exactMonths>o?e=gr.tickIncrement(e,"M1","reverse")+Ei*15.5:e-=zf;var s=gr.tickIncrement(e,t);if(s<=a)return s}return e}gr.prepMinorTicks=function(e,r,t){var c,d;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&bn(r._tmin),n;if(a){var i=gr.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,gr.prepTicks(e,t),a){var l=bn(r.dtick),s=bn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?K6(u,f)?u===2*Lo&&f===2*Ei&&(e.dtick=Lo):u===2*Lo&&f===3*Ei?e.dtick=Lo:u===Lo&&!(r._input.minor||{}).nticks?e.dtick=Ei:IE(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":K6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?K6(u,f)||(e.dtick=IE(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(ub(e),r.minor._tickround=e._tickround)};function K6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function IE(e,r){return Math.abs(e/r-1)<.001}gr.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,gr.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"&&$ae(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),ub(e)};function Q6(e){return+e.substring(1)}function $ae(e){var r;function t(){return!(bn(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=gr.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=Ns,i&&!a&&e.dtick<Ns&&(e.dtick=Ns)):/%p/.test(n)?(r=zf,i&&!a&&e.dtick<zf&&(e.dtick=zf)):/%[Aadejuwx]/.test(n)?(r=Ei,i&&!a&&e.dtick<Ei&&(e.dtick=Ei)):/%[UVW]/.test(n)?(r=Lo,i&&!a&&e.dtick<Lo&&(e.dtick=Lo)):/%[Bbm]/.test(n)?(r=Q1,i&&(a?Q6(e.dtick)<1:e.dtick<_2)&&(e.dtick="M1")):/%[q]/.test(n)?(r=rb,i&&(a?Q6(e.dtick)<3:e.dtick<b2)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=g2,i&&(a?Q6(e.dtick)<12:e.dtick<y2)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function Jae(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i,o;if(e[a].periodEndTick!=null)i=e[a].value,o=e[a].periodEndTick.value;else{var l=a,s=a+1;a<e.length-1?(l=a,s=a+1):a>0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=y2?u>=y2&&u<=zae?c=u:c=g2:t===rb&&f>=b2?u>=b2&&u<=Nae?c=u:c=rb:f>=_2?u>=_2&&u<=Iae?c=u:c=Q1:t===Lo&&f>=Lo?c=Lo:f>=Ei?c=Ei:t===zf&&f>=zf?c=zf:t===Ns&&f>=Ns&&(c=Ns);var d;c>=u&&(c=u,d=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;y<p;y++){var b=(y+.5)/p;r.maskBreaks(n*(1-b)+b*h)!==M2&&m++}c*=m/p,c||(e[a].drop=!0),d&&u>Lo&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}gr.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||ht.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;var u=ht.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]<u[0],c=Math.min(u[0],u[1]),d=Math.max(u[0],u[1]),h=Math.max(1e3,r._length||0),p=[],m=[],y=[],b=[],C=[],x=r.minor&&(r.minor.ticks||r.minor.showgrid),_=x||r._useTicklabelIndex;let M=0;if(o){let Le=r._useTicklabelIndex?Math.max(0,...Array.from(s,Math.abs)):0;M=Math.min(Le+1,Math.floor(h/2))}for(var A=1;A>=(_?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):_&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var D=A?r:ht.extendFlat({},r,_?r.minor:{minor:{}});if(k?gr.prepMinorTicks(D,r,t):gr.prepTicks(D,t),D.tickmode==="array"){A?(y=[],p=BE(r,!k)):(b=[],m=BE(r,!k));continue}if(D.tickmode==="sync"){y=[],p=Kae(r);continue}var P=sb(u),z=P[0],B=P[1];let Le=B;var Y=D.dtick;let je=bn(Y),er=a==="log"&&!(je||Y.charAt(0)==="L");var H=gr.tickFirst(D,t);if(A){if(r._tmin=H,H<z!==f)break;(a==="category"||a==="multicategory")&&(B=f?Math.max(-.5,B):Math.min(r._categories.length-.5,B))}var X=null,N=H,Q;if(A){var ee;je?ee=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(ee=Q1*r.dtick.substring(1)):ee=r._roughDTick,Q=Math.round((r.r2l(N)-r.r2l(r.tick0))/ee)-1}var ae=a==="linear"?D.r2l(D.tick0):void 0;if(D.rangebreaks&&D._tick0Init!==D.tick0&&(N=eb(N,r),f||(N=gr.tickIncrement(N,Y,!f,n))),A&&M){for(let $e=0;$e<M;$e++)N=gr.tickIncrement(N,Y,!f,n),r._useTicklabelIndex&&(B=gr.tickIncrement(B,Y,f,n));Q-=M}else if(k&&M&&r._useTicklabelIndex&&y.length){let $e=y[0].value;for(;f?N<$e:N>$e;)N=gr.tickIncrement(N,Y,!f,n);B=y[y.length-1].value}for(;f?N>=B:N<=B;N=gr.tickIncrement(N,Y,f,n)){if(A&&Q++,D.rangebreaks&&!f){if(N<z)continue;if(D.maskBreaks(N)===M2&&eb(N,D)>=d)break}if(y.length>h+2*M||N===X)break;X=N;var re={value:Xae(N,ae,Y)};(f?N>z||N<Le:N<z||N>Le)&&(re.noTick=!0),A?(N===H&&(re.first=!0),er&&N!==(N|0)&&(re.simpleLabel=!0),i>1&&Q%i&&(re.skipLabel=!0),y.push(re)):(re.minor=!0,b.push(re))}}function ie(Le,je){let er=je.find(ar=>ar.value===Le.value);if(er!=null)return er;let $e=1e7;for(let ar=0;ar<je.length;ar++)if($e+je[ar].value===$e+Le.value)return je[ar];return null}if(r._useTicklabelIndex){let Le=b.filter(je=>!je.noTick);if(Le.length<2)r._useTicklabelIndex=!1;else{let je=(Le[1].value-Le[0].value)*(l?-1:1);Mne(je,r.tickformat)||(r._useTicklabelIndex=!1)}}if(!r._useTicklabelIndex)C=y;else{let Le=b.filter($e=>ie($e,y)==null),je=y.concat(Le).sort(($e,ar)=>$e.value-ar.value),er=($e,ar)=>{let Ie=$e[ar],ir=o?$e[ar+1]:void 0;Ie.noTick&&!(ir&&!ir.noTick)||(C.push(Ie),ir&&(Ie.periodEndTick=ir))};y.forEach(function($e){$e.skipLabel||(s.forEach(ar=>{if(ar<0){let Ie=je.filter(Ar=>Ar.value<=$e.value),ir=Math.abs(ar),dr=Ie.length-ir-1;ir<Ie.length&&er(Ie,dr)}else{let Ie=je.filter(ir=>ir.value>=$e.value);ar<Ie.length&&er(Ie,ar)}}),$e.skipLabel=!0)}),C.forEach($e=>$e.skipLabel=!1)}if(x){var ue=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ue){for(var xe=[],Ee=0;Ee<b.length;Ee++)ie(b[Ee],y)==null&&xe.push(b[Ee]);b=xe}}o&&Jae(C,r,r._definedDelta);var Re;if(r.rangebreaks){var Ne=r._id.charAt(0)==="y",ke=1;r.tickmode==="auto"&&(ke=r.tickfont?r.tickfont.size:12);var We=NaN;for(Re=y.length-1;Re>-1;Re--){if(y[Re].drop){y.splice(Re,1);continue}y[Re].value=eb(y[Re].value,r);var W=r.c2p(y[Re].value);(Ne?We>W-ke:We<W+ke)?y.splice(f?Re+1:Re,1):We=W}}db(r)&&Math.abs(u[1]-u[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 se,de=function(Le){Le.text="",r._prevDateHead=se};y=y.concat(b);function K(Le,je){var er=gr.tickText(Le,je.value,!1,je.simpleLabel,{first:je.first,last:je.last}),$e=je.periodX;return $e!==void 0&&(er.periodX=$e,($e>d||$e<c)&&($e>d&&(er.periodX=d),$e<c&&(er.periodX=c),de(er))),er}var J;for(Re=0;Re<y.length;Re++){var ce=y[Re].minor,be=y[Re].value;ce?(r._useTicklabelIndex&&C.indexOf(y[Re])!==-1?J=K(r,y[Re]):J={x:be,text:""},J.noTick=y[Re].noTick,J.minor=!0,m.push(J)):(se=r._prevDateHead,J=K(r,y[Re]),y[Re].skipLabel&&de(J),J.noTick=y[Re].noTick,p.push(J))}return r._inCalcTicks=!1,p=p.concat(m),p};function XE(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==M2})),r}function Kae(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),s=e.p2l(l),u=gr.tickText(e,s,!1,void 0,{first:o===a,last:o===n});r._vals[o].minor&&(u.minor=!0,u.text=""),t.push(u)}}return t=XE(e,t),t}function BE(e,r){var t=ht.simpleMap(e.range,e.r2l),a=sb(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=[],s=0;s<=1;s++)if(!(r!==void 0&&(r&&s||r===!1&&!s))&&!(s&&!e.minor)){var u=s?e.minor.tickvals:e.tickvals,f=s?[]:e.ticktext;if(u){ht.isArrayOrTypedArray(f)||(f=[]);var c=-1,d=-1;if(!s)for(var h=0;h<u.length;h++){var p=o(u[h]);p>n&&p<i&&(c===-1&&(c=h),d=h)}for(var m=0;m<u.length;m++){var y=o(u[m]);if(y>n&&y<i){let b=gr.tickText(e,y,!1,f[m]!==void 0,{first:m===c,last:m===d});s&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=XE(e,l),l}var p2=[2,5,10],HE=[1,2,3,6,12],OE=[1,2,5,10,15,30],Qae=[1,2,3,7,14],jE=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],WE=[-.301,0,.301,.699,1],ene=[15,30,45,90,180];function zs(e,r,t){return r*ht.roundUp(e/r,t)}gr.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>g2)r/=g2,a=n(10),e.dtick="M"+12*zs(r,a,p2);else if(i>Q1)r/=Q1,e.dtick="M"+zs(r,1,HE);else if(i>Ei){if(e.dtick=zs(r,Ei,e._hasDayOfWeekBreaks?[1,2,7,14]:Qae),!t){var o=gr.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>Ns?e.dtick=zs(r,Ns,HE):i>Xd?e.dtick=zs(r,Xd,OE):i>x2?e.dtick=zs(r,x2,OE):(a=n(10),e.dtick=zs(r,a,p2))}else if(e.type==="log"){e.tick0=0;var s=ht.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+zs(r,a,p2)}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))):db(e)?(e.tick0=0,a=1,e.dtick=zs(r,a,ene)):(e.tick0=0,a=n(10),e.dtick=zs(r,a,p2));if(e.dtick===0&&(e.dtick=1),!bn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function ub(e){var r=e.dtick;if(e._tickexponent=0,!bn(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>=Ei&&n<=10||r>=Ei*15)e._tickround="d";else if(r>=Xd&&n<=16||r>=Ns)e._tickround="M";else if(r>=x2&&n<=19||r>=Xd)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(bn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);bn(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])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(ev(e.exponentformat)&&e.exponentformat!=="SI extended"&&!fb(s)||ev(e.exponentformat)&&e.exponentformat==="SI extended"&&!cb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}gr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(bn(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"?WE:jE,s=e+n*.01,u=ht.roundUp(ht.mod(s,1),l,t);return Math.floor(s)+Math.log(tl.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};gr.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=sb(a)[0],l=e.dtick,s=t(e.tick0);if(bn(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=ht.constrain(u,0,e._categories.length-1)),u}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var d=0,h=s,p,m,y;d<10;){if(p=gr.tickIncrement(h,l,n,e.calendar),(p-o)*(h-o)<=0)return n?Math.min(h,p):Math.max(h,p);m=(o-(h+p)/2)/(p-h),y=f+(Math.abs(Math.round(m))||1)*c,h=gr.tickIncrement(h,y,m<0?!n:n,e.calendar),d++}return ht.error("tickFirst did not converge",e),h}else{if(f==="L")return Math.log(i((Math.pow(10,o)-s)/c)*c+s)/Math.LN10;if(f==="D"){var b=l==="D2"?WE:jE,C=ht.roundUp(ht.mod(o,1),b,n);return Math.floor(o)+Math.log(tl.round(Math.pow(10,C),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};gr.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=ZE(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,d,h=function(x){var _=e.l2p(x);return _>=0&&_<=e._length?x:null};if(s&&ht.isArrayOrTypedArray(e.ticktext)){var p=ht.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(d=0;d<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[d]))<m);d++);if(d<e.ticktext.length)return l.text=String(e.ticktext[d]),l.xbnd=[h(l.x-.5),h(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"?rne(e,l,t,u):f==="log"?tne(e,l,t,u,b):f==="category"?ane(e,l):f==="multicategory"?nne(e,l,t):db(e)?one(e,l,t,u,b):ine(e,l,t,u,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=[h(l.x-.5),h(l.x+e.dtick-.5)]),l};gr.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 gr.hoverLabelText(e,a,t)+" - "+gr.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=gr.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":sc+o:o};function ZE(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 rne(e,r,t,a){var n=e._useTicklabelIndex?e.minor._tickround:e._tickround,i=t&&e.hoverformat||gr.getTickFormat(e);a=!i&&a,a&&(bn(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,s=o.indexOf(`
`);if(s!==-1&&(l=o.slice(s+1),o=o.slice(0,s)),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 u=Zd(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function tne(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Wd(Math.pow(10,o),e,n,a);else if(bn(i)||s==="D"&&(e.minorloglabels==="complete"||ht.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ht.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),d=+c[1],h=Math.abs(d),p=e.exponentformat;p==="power"||ev(p)&&p!=="SI extended"&&fb(d)||ev(p)&&p==="SI extended"&&cb(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+="<sup>"+(d>0?"":sc)+h+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(d>0?"+":sc)+h:(r.text=Wd(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="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 m=String(r.text).charAt(0);(m==="0"||m==="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 ane(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function nne(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 ine(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Wd(r.x,e,n,a)}function one(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=lne(i);if(o[1]>=100)r.text=Wd(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=sc+r.text)}}}else r.text=Wd(r.x,e,n,a)}function lne(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var $E=["f","p","n","\u03BC","m","","k","M","G","T"],sne=["q","r","y","z","a",...$E,"P","E","Z","Y","R","Q"],ev=e=>["SI","SI extended","B"].includes(e);function fb(e){return e>14||e<-15}function cb(e){return e>32||e<-30}function une(e,r){return ev(r)?!!(r==="SI extended"&&cb(e)||r!=="SI extended"&&fb(e)):!1}function Wd(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=gr.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:bn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};ub(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,sc);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 h=Math.pow(10,-i);e=String(Math.round(e/h)*h)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=ht.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){une(l,o)&&(o="power");var d;l<0?d=sc+-l:o!=="power"?d="+"+l:d=String(l),o==="e"||o==="E"?e+=o+d:o==="power"?e+="\xD710<sup>"+d+"</sup>":o==="B"&&l===9?e+="B":ev(o)&&(e+=o==="SI extended"?sne[l/3+10]:$E[l/3+5])}return n?sc+e:e}gr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Q1}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),d=f.indexOf(u.charAt(0));return c===d?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-d}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},d=u[0],h=u[1];return(!d&&typeof d!="number"||c(d)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,d=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||d)&&(c||h)}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};gr.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?gr.findSubplotsWithAxis(a,r):a;return n.sort(function(i,o){var l=i.slice(1).split("y"),s=o.slice(1).split("y");return l[0]===s[0]?+l[1]-+s[1]:+l[0]-+s[0]}),n};gr.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};gr.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=gr.list(e,"x",!0),i=gr.list(e,"y",!0),o=[],l,s;for(l=0;l<n.length;l++)for(o.push({x:n[l],y:a}),s=0;s<i.length;s++)l===0&&o.push({x:t,y:i[s]}),o.push({x:n[l],y:i[s]});var u=r._clips.selectAll(".axesclip").data(o,function(f){return f.x._id+f.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),u.exit().remove(),u.each(function(f){tl.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})})}};gr.draw=function(e,r,t){var a=e._fullLayout;r==="redraw"&&a._paper.selectAll("g.subplot").each(function(s){var u=s[0],f=a._plots[u];if(f){var c=f.xaxis,d=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+d._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+d._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+d._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-"+d._id+"title").remove()}});var n=!r||r==="redraw"?gr.listIds(e):r,i=gr.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=gr.getFromId(e,s);if(u.tickmode==="sync"&&u.overlaying){var f=n.findIndex(function(c){return c===u.overlaying});f>=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ht.syncOrAsync(n.map(function(s){return function(){if(s){var u=gr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=gr.drawOne(e,u,t);return u._shiftPusher&&lb(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=ht.simpleMap(u._r,u.r2l),f}}}))};gr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=gr.counterLetter(u),d=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!d)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),lb(r,p,a,!0),lb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=wne(r,a));var m=d[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=gr.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 A(Ie){var ir=u+(Ie||"tick");return M[ir]||(M[ir]=dne(r,ir,b)),M[ir]}if(r.visible){var k=gr.makeTransTickFn(r),D=gr.makeTransTickLabelFn(r),P,z,B=r.ticks==="inside",Y=r.ticks==="outside";if(r.tickson==="boundaries"){var H=fne(r,x);z=gr.clipEnds(r,H),P=B?z:H}else z=gr.clipEnds(r,x),P=B&&r.ticklabelmode!=="period"?z:x;var X=r._gridVals=z,N=vne(r,x);if(!s._hasOnlyLargeSploms){var Q=r._subplotsWith,ee={};for(i=0;i<Q.length;i++){o=Q[i],l=s._plots[o];var ae=l[c+"axis"],re=ae._mainAxis._id;if(!ee[re]){ee[re]=1;var ie=f==="x"?"M0,"+ae._offset+"v"+ae._length:"M"+ae._offset+",0h"+ae._length;gr.drawGrid(e,r,{vals:X,counterAxis:ae,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:ie,transFn:k}),gr.drawZeroLine(e,r,{counterAxis:ae,layer:h?l.zerolinelayerAbove:l.zerolinelayer,path:ie,transFn:k})}}}var ue,xe=gr.getTickSigns(r),Ee=gr.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var Re=gr.makeTickPath(r,b,xe[2]),Ne=gr.makeTickPath(r,b,Ee[2],{minor:!0}),ke,We,W,se;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(ke=gr.makeTickPath(r,C,xe[3]),We=gr.makeTickPath(r,C,Ee[3],{minor:!0}),W=Re+ke,se=Ne+We):(ke="",We="",W=Re,se=Ne),r.showdividers&&Y&&r.tickson==="boundaries"){var de={};for(i=0;i<N.length;i++)de[N[i].x]=1;ue=function(Ie){return de[Ie.x]?ke:W}}else ue=function(Ie){return Ie.minor?se:W}}if(gr.drawTicks(e,r,{vals:P,layer:m,path:ue,transFn:k}),r.mirror==="allticks"){var K=Object.keys(r._linepositions||{});for(i=0;i<K.length;i++){o=K[i],l=s._plots[o];var J=r._linepositions[o]||[],ce=J[0],be=J[1],Le=J[2],je=gr.makeTickPath(r,ce,Le?xe[0]:Ee[0],{minor:Le})+gr.makeTickPath(r,be,Le?xe[1]:Ee[1],{minor:Le});gr.drawTicks(e,r,{vals:P,layer:l[f+"axislayer"],path:je,transFn:k})}}var er=[];if(er.push(function(){return gr.drawLabels(e,r,{vals:x,layer:m,plotinfo:l,transFn:D,labelFns:gr.makeLabelFns(r,b)})}),r.type==="multicategory"){var $e={x:2,y:10}[f];er.push(function(){var Ie={x:"height",y:"width"}[f],ir=A()[Ie]+$e+(r._tickAngles[u+"tick"]?r.tickfont.size*jd:0);return gr.drawLabels(e,r,{vals:cne(r,x),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:k,labelFns:gr.makeLabelFns(r,b+ir*xe[4])})}),er.push(function(){return r._depth=xe[4]*(A("tick2")[r.side]-b),pne(e,r,{vals:N,layer:m,path:gr.makeTickPath(r,b,xe[4],{len:r._depth}),transFn:k})})}else r.title.hasOwnProperty("standoff")&&er.push(function(){r._depth=xe[4]*(A()[r.side]-b)});var ar=Yd.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(ar&&r.side==="bottom")&&er.push(function(){return mne(e,r)}),er.push(function(){var Ie=r.side.charAt(0),ir=Oae[r.side].charAt(0),dr=gr.getPxPosition(e,r),Ar=Y?r.ticklen:0,Qe,mr,Pr,Te;(r.automargin||ar||r._shiftPusher)&&(r.type==="multicategory"?Qe=A("tick2"):(Qe=A(),f==="x"&&Ie==="b"&&(r._depth=Math.max(Qe.width>0?Qe.bottom-dr:0,Ar))));var Oe=0,xr=0;if(r._shiftPusher&&(Oe=Math.max(Ar,Qe.height>0?Ie==="l"?dr-Qe.left:Qe.right-dr:0),r.title.text!==s._dfltTitle[f]&&(xr=(r._titleStandoff||0)+(r._titleScoot||0),Ie==="l"&&(xr+=GE(r))),r._fullDepth=Math.max(Oe,xr)),r.automargin){mr={x:0,y:0,r:0,l:0,t:0,b:0};var Rr=[0,1],zr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ie==="b"?mr[Ie]=r._depth:(mr[Ie]=r._depth=Math.max(Qe.width>0?dr-Qe.top:0,Ar),Rr.reverse()),Qe.width>0){var Ce=Qe.right-(r._offset+r._length);Ce>0&&(mr.xr=1,mr.r=Ce);var Ue=r._offset-Qe.left;Ue>0&&(mr.xl=0,mr.l=Ue)}}else if(Ie==="l"?(r._depth=Math.max(Qe.height>0?dr-Qe.left:0,Ar),mr[Ie]=r._depth-zr):(r._depth=Math.max(Qe.height>0?Qe.right-dr:0,Ar),mr[Ie]=r._depth+zr,Rr.reverse()),Qe.height>0){var cr=Qe.bottom-(r._offset+r._length);cr>0&&(mr.yb=0,mr.b=cr);var Mr=r._offset-Qe.top;Mr>0&&(mr.yt=1,mr.t=Mr)}mr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Rr[0]],r.title.text!==s._dfltTitle[f]&&(mr[Ie]+=GE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Pr={x:0,y:0,r:0,l:0,t:0,b:0},Pr[ir]=r.linewidth,r.mirror&&r.mirror!==!0&&(Pr[ir]+=Ar),r.mirror===!0||r.mirror==="ticks"?Pr[c]=r._anchorAxis.domain[Rr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Pr[c]=[r._counterDomainMin,r._counterDomainMax][Rr[1]]))}ar&&(Te=Yd.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(UE(mr,r.automargin),UE(Pr,r.automargin)),J1.autoMargin(e,vb(r),mr),J1.autoMargin(e,KE(r),Pr),J1.autoMargin(e,QE(r),Te)}),ht.syncOrAsync(er)}};function UE(e,r){if(e){var t=Object.keys(RE).reduce(function(a,n){return r.indexOf(n)!==-1&&RE[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 fne(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 cne(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(ZE(e,ht.interp(a[o],.5),o));return t}function vne(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,o=function(s,u){var f=s.xbnd[u];f!==null&&t.push(ht.extendFlat({},s,{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 dne(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 s=ob(this);if(s.node().style.display!=="none"){var u=Eo.bBox(s.node().parentNode);a=Math.min(a,u.top),n=Math.max(n,u.bottom),i=Math.min(i,u.left),o=Math.max(o,u.right)}});else{var l=gr.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}}gr.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};gr.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return K1(e._offset+e.l2p(r.x),0)}:function(r){return K1(0,e._offset+e.l2p(r.x))}};gr.makeTransTickLabelFn=function(e){var r=hne(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,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(d){return K1(n+e._offset+e.l2p(ib(d))+t,i+a)}:function(d){return K1(i+a,n+e._offset+e.l2p(ib(d))+t)}};function ib(e){return e.periodX!==void 0?e.periodX:e.x}function hne(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,d=w2,h=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=h*uc,d+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,d+=w2),s&&f==="top"&&(d-=h*(1-uc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d:0]}gr.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};gr.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"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),d=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,m=d?e.ticklen:0;if(c?m*=-1:f&&(m=0),d&&(h+=m,t)){var y=ht.deg2rad(t);h=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:h,labelShift:p},C,x,_,M,A=0,k=e.side,D=e._id.charAt(0),P=e.tickangle,z;if(D==="x")z=!c&&k==="bottom"||c&&k==="top",M=z?1:-1,c&&(M*=-1),C=p*M,x=r+h*M,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Gd:P===-90&&k==="bottom"?_=uc:P===90&&k==="top"?_=Gd:_=.5,A=Gd/2*(P/90)),b.xFn=function(H){return H.dx+C+A*H.fontSize},b.yFn=function(H){return H.dy+x+H.fontSize*_},b.anchorFn=function(H,X){if(f){if(l)return"end";if(s)return"start"}return!bn(X)||X===0||X===180?"middle":X*M<0!==c?"end":"start"},b.heightFn=function(H,X,N){return X<-60||X>60?-.5*N:e.side==="top"!==c?-N:0};else if(D==="y"){if(z=!c&&k==="left"||c&&k==="right",M=z?1:-1,c&&(M*=-1),C=h,x=p*M,_=0,!c&&Math.abs(P)===90&&(P===-90&&k==="left"||P===90&&k==="right"?_=uc:_=.5),c){var B=bn(P)?+P:0;if(B!==0){var Y=ht.deg2rad(B);A=Math.abs(Math.sin(Y))*uc*M,_=0}}b.xFn=function(H){return H.dx+r-(C+H.fontSize*_)*M+A*H.fontSize},b.yFn=function(H){return H.dy+x+H.fontSize*Gd},b.anchorFn=function(H,X){return bn(X)&&Math.abs(X)===90?"middle":z?"end":"start"},b.heightFn=function(H,X,N){return e.side==="right"&&(X*=-1),X<-30?-N:X<30?-.5*N:0}}return b};function T2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}gr.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,T2);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Vd.stroke(tl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Eo.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),k2(r,[YE]),i.attr("transform",t.transFn)};gr.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&&gr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u<o.length;u++){var f=o[u].x;if(s?!f:Math.abs(f)<r.dtick/100)if(o=o.slice(0,u).concat(o.slice(u+1)),s)u--;else break}r._gw=Eo.crispRound(e,r.gridwidth,1);for(var c=n?Eo.crispRound(e,r.minor.gridwidth,1):0,d=t.layer,h=t.minorLayer,p=1;p>=0;p--){var m=p?d:h;if(m){var y=m.selectAll("path."+a).data(p?o:i,T2);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 Vd.stroke(tl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Eo.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)}}k2(r,[ab,nb])}};gr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=gr.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 Gae(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Vd.stroke,r.zerolinecolor||Vd.defaultLine).style("stroke-width",Eo.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),k2(r,[tb])};gr.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(re){return re.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],T2),d=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(re){var ie=tl.select(this),ue=e._promises.length;ie.call(lc.positionText,s.xFn(re),s.yFn(re)).call(Eo.font,{family:re.font,size:re.fontSize,color:re.fontColor,weight:re.fontWeight,style:re.fontStyle,variant:re.fontVariant,textcase:re.fontTextcase,lineposition:re.fontLineposition,shadow:re.fontShadow}).text(re.text).call(lc.convertToTspans,e),e._promises[ue]?d.push(e._promises.pop().then(function(){h(ie,u)})):h(ie,u)}),k2(r,[PE]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(re){tl.select(this).select("text").call(lc.positionText,s.xFn(re),s.yFn(re))});function h(re,ie){re.each(function(ue){var xe=tl.select(this),Ee=xe.select(".text-math-group"),Re=s.anchorFn(ue,ie),Ne=t.transFn.call(xe.node(),ue)+(bn(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ue)+","+(s.yFn(ue)-ue.fontSize/2)+")":""),ke=lc.lineCount(xe),We=jd*ue.fontSize,W=s.heightFn(ue,bn(ie)?+ie:0,(ke-1)*We);if(W&&(Ne+=K1(0,W)),Ee.empty()){var se=xe.select("text");se.attr({transform:Ne,"text-anchor":Re}),se.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var de=Eo.bBox(Ee.node()).width,K=de*{end:-.5,start:.5}[Re];Ee.attr("transform",Ne+K1(K,0))}})}r._adjustTickLabelsOverflow=function(){var re=r.ticklabeloverflow;if(!(!re||re==="allow")){var ie=re.indexOf("hide")!==-1,ue=r._id.charAt(0)==="x",xe=0,Ee=ue?e._fullLayout.width:e._fullLayout.height;if(re.indexOf("domain")!==-1){var Re=ht.simpleMap(r.range,r.r2l);xe=r.l2p(Re[0])+r._offset,Ee=r.l2p(Re[1])+r._offset}var Ne=Math.min(xe,Ee),ke=Math.max(xe,Ee),We=r.side,W=1/0,se=-1/0;c.each(function(ce){var be=tl.select(this),Le=be.select(".text-math-group");if(Le.empty()){var je=Eo.bBox(be.node()),er=0;ue?(je.right>ke||je.left<Ne)&&(er=1):(je.bottom>ke||je.top+(r.tickangle?0:ce.fontSize/4)<Ne)&&(er=1);var $e=be.select("text");er?ie&&$e.style("display","none"):$e.node().style.display!=="none"&&($e.style("display",null),We==="bottom"||We==="right"?W=Math.min(W,ue?je.top:je.left):W=-1/0,We==="top"||We==="left"?se=Math.max(se,ue?je.bottom:je.right):se=1/0)}});for(var de in a._plots){var K=a._plots[de];if(!(r._id!==K.xaxis._id&&r._id!==K.yaxis._id)){var J=ue?K.yaxis:K.xaxis;J&&(J["_visibleLabelMin_"+r._id]=W,J["_visibleLabelMax_"+r._id]=se)}}}},r._hideCounterAxisInsideTickLabels=function(re){var ie=r._id.charAt(0)==="x",ue=[];for(var xe in a._plots){var Ee=a._plots[xe];r._id!==Ee.xaxis._id&&r._id!==Ee.yaxis._id||ue.push(ie?Ee.yaxis:Ee.xaxis)}ue.forEach(function(Re,Ne){Re&&Zd(Re)&&(re||[tb,nb,ab,YE,PE]).forEach(function(ke){var We=ke.K==="tick"&&ke.L==="text"&&r.ticklabelmode==="period",W=a._plots[r._mainSubplot],se;if(ke.K===tb.K){var de=i?W.zerolinelayerAbove:W.zerolinelayer;se=de.selectAll("."+r._id+"zl")}else ke.K===nb.K?se=W.minorGridlayer.selectAll("."+r._id):ke.K===ab.K?se=W.gridlayer.selectAll("."+r._id):se=W[r._id.charAt(0)+"axislayer"];se.each(function(){var K=tl.select(this);ke.L&&(K=K.selectAll(ke.L)),K.each(function(J){var ce=r.l2p(We?ib(J):J.x)+r._offset,be=tl.select(this);ce<r["_visibleLabelMax_"+Re._id]&&ce>r["_visibleLabelMin_"+Re._id]?be.style("display","none"):ke.K==="tick"&&!Ne&&be.node().style.display!=="none"&&be.style("display",null)})})})})},h(c,f+1?f:u);function p(){return d.length&&Promise.all(d)}var m=null;function y(){if(h(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var re=0,ie=[],ue,xe=1;c.each(function(mr){re=Math.max(re,mr.fontSize);var Pr=r.l2p(mr.x),Te=ob(this),Oe=Eo.bBox(Te.node());xe=Math.max(xe,lc.lineCount(Te)),ie.push({top:0,bottom:10,height:10,left:Pr-Oe.width/2,right:Pr+Oe.width/2+2,width:Oe.width+2})});var Ee=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Re=l.length,Ne=Math.abs((l[Re-1].x-l[0].x)*r._m)/(Re-1),ke=Ee?Ne/2:Ne,We=Ee?r.ticklen:re*1.25*xe,W=Math.sqrt(Math.pow(ke,2)+Math.pow(We,2)),se=ke/W,de=r.autotickangles.map(function(mr){return mr*Math.PI/180}),K=de.find(function(mr){return Math.abs(Math.cos(mr))<=se});K===void 0&&(K=de.reduce(function(mr,Pr){return Math.abs(Math.cos(mr))<Math.abs(Math.cos(Pr))?mr:Pr},de[0]));var J=K*(180/Math.PI);if(Ee){var ce=2;for(r.ticks&&(ce+=r.tickwidth/2),ue=0;ue<ie.length;ue++){var be=l[ue].xbnd,Le=ie[ue];if(be[0]!==null&&Le.left-r.l2p(be[0])<ce||be[1]!==null&&r.l2p(be[1])-Le.right<ce){m=J;break}}}else{var je=r.ticklabelposition||"",er=r.tickson||"",$e=function(mr){return je.indexOf(mr)!==-1},ar=$e("top"),Ie=$e("left"),ir=$e("right"),dr=$e("bottom"),Ar=er!=="boundaries"&&(dr||Ie||ar||ir),Qe=Ar?(r.tickwidth||0)+2*w2:0;for(ue=0;ue<ie.length-1;ue++)if(ht.bBoxIntersect(ie[ue],ie[ue+1],Qe)){m=J;break}}m&&h(c,m)}}r._selections&&(r._selections[o]=c);var b=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(m=f,b.push(function(){h(c,f)})):b.push(y),r._tickAngles&&b.push(function(){r._tickAngles[o]=m===null?bn(u)?u:0:m});var C=function(){var re=0,ie=0;return c.each(function(ue,xe){var Ee=ob(this),Re=Ee.select(".text-math-group");if(Re.empty()){var Ne;r._vals[xe]&&(Ne=r._vals[xe].bb||Eo.bBox(Ee.node()),r._vals[xe].bb=Ne),re=Math.max(re,Ne.width),ie=Math.max(ie,Ne.height)}}),{labelsMaxW:re,labelsMaxH:ie}},x=r._anchorAxis;if(x&&(x.autorange||x.insiderange)&&Zd(r)&&!Yae(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*w2,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var A=r.side==="right"||r.side==="top"?1:-1,k=A===1?1:0,D=A===1?0:1,P=[];P[D]=x.range[D];var z=x.range,B=x.r2p(z[k]),Y=x.r2p(z[D]),H=a._insideTickLabelsUpdaterange[x._name+".range"];if(H){var X=x.r2p(H[k]),N=x.r2p(H[D]),Q=A*(r._id.charAt(0)==="y"?1:-1);Q*B<Q*X&&(B=X,P[k]=z[k]=H[k]),Q*Y>Q*N&&(Y=N,P[D]=z[D]=H[D])}var ee=Math.abs(Y-B);ee-M>0?(ee-=M,M*=1+M/ee):M=0,r._id.charAt(0)!=="y"&&(M=-M),P[k]=x.p2r(x.r2p(z[k])+A*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 ae=ht.syncOrAsync(b);return ae&&ae.then&&e._promises.push(ae),ae};function pne(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,T2);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Vd.stroke,r.dividercolor).style("stroke-width",Eo.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}gr.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 GE(e){var r=e.title.font.size,t=(e.title.text.match(lc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(uc+t*jd):t?r*(t+1)*jd:r}function mne(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(lc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*uc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Gd+l*jd));else{var s=Zd(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(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=gr.getPxPosition(e,r),c,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-o:f+o):(h=r._offset+r._length/2,d=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Eo.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Pae.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:d,y:h,"text-anchor":"middle"}})}gr.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)===M2)&&(JE(r,0)||!gne(e,r,t,a)||yne(e,r))};gr.clipEnds=function(e,r){return r.filter(function(t){return JE(e,t.x)})};function JE(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function gne(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=gr.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function u(p){if(!p.showline||!p.linewidth)return!1;var m=Math.max((p.linewidth+r.zerolinewidth)/2,1);function y(x){return typeof x=="number"&&Math.abs(x-s)<m}if(y(p._mainLinePosition)||y(p._mainMirrorPosition))return!0;var b=p._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 u(t,s);for(var c=gr.list(e,l),d=0;d<c.length;d++){var h=c[d];if(h._mainAxis===n&&u(h,s))return!0}}function yne(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&&(Yd.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 ob(e){var r=tl.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}gr.allowAutoMargin=function(e){for(var r=gr.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(J1.allowAutoMargin(e,vb(a)),a.mirror&&J1.allowAutoMargin(e,KE(a))),Yd.getComponentMethod("rangeslider","isVisible")(a)&&J1.allowAutoMargin(e,QE(a))}};function vb(e){return e._id+".automargin"}function KE(e){return vb(e)+".mirror"}function QE(e){return e._id+".rangeslider"}gr.swap=function(e,r){for(var t=bne(e,r),a=0;a<t.length;a++)_ne(e,t[a].x,t[a].y)};function bne(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 s=t[i[0]],u;if(i.length>1)for(n=1;n<i.length;n++)u=t[i[n]],m2(s.x,u.x),m2(s.y,u.y);m2(s.x,[o]),m2(s.y,[l])}}return t}function m2(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function _ne(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(gr.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(gr.getFromId(e,t[o]));var s=Object.keys(Rae),u=["anchor","domain","domainpad","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<s.length;o++){var c=s[o],d=a[0][c],h=n[0][c],p=!0,m=!1,y=!1;if(!(c.charAt(0)==="_"||typeof d=="function"||u.indexOf(c)!==-1)){for(l=1;l<a.length&&p;l++){var b=a[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(b)!==-1&&d!==b?m=!0:b!==d&&(p=!1)}for(l=1;l<n.length&&p;l++){var C=n[l][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(C)!==-1&&h!==C?y=!0:n[l][c]!==h&&(p=!1)}p&&(m&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),xne(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 xne(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(),s;for(r==="title"&&(o&&o.text===n.x&&(o.text=n.y),l&&l.text===n.y&&(l.text=n.x)),s=0;s<t.length;s++)i(e,t[s]._name+"."+r).set(l);for(s=0;s<a.length;s++)i(e,a[s]._name+"."+r).set(o)}function db(e){return e._id==="angularaxis"}function eb(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 Zd(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function k2(e,r){Zd(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function lb(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 wne(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Mne(e,r){return/%f/.test(r)?e>=Hae:/%L/.test(r)?e>=Bae:/%[SX]/.test(r)?e>=x2:/%M/.test(r)?e>=Xd:/%[HI]/.test(r)?e>=Ns:/%p/.test(r)?e>=zf:/%[Aadejuwx]/.test(r)?e>=Ei:/%[UVW]/.test(r)?e>=Lo:/%[Bbm]/.test(r)?e>=_2:/%[q]/.test(r)?e>=b2:/%[Yy]/.test(r)?e>=y2:!0}});var tL=oe((ibe,rL)=>{"use strict";rL.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),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var hb=oe((obe,aL)=>{"use strict";var Ane=tL();aL.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 s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),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||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(Ane(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iL=oe((lbe,nL)=>{var Tne={left:0,top:0};nL.exports=kne;function kne(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=Cne(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Cne(e){return e===window||e===document||e===document.body?Tne:e.getBoundingClientRect()}});var pb=oe((sbe,oL)=>{"use strict";var Sne=H5();function Ene(){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}oL.exports=Sne&&Ene()});var sL=oe((ube,lL)=>{"use strict";lL.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var cL=oe((fbe,fL)=>{"use strict";var uL=pr(),Lne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];fL.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=uL.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=uL.constrain(Math.floor(t*3),0,2),Lne[t][r]}});var dL=oe((cbe,vL)=>{"use strict";var Dne=Fd(),Fne=Cm(),qne=Ad().getGraphDiv,Pne=(id(),_r(nd)),mb=vL.exports={};mb.wrapped=function(e,r,t){var i;e=qne(e),e._fullLayout&&Fne.clear(e._fullLayout._uid+Pne.HOVERID);let a=e._hoverdata;mb.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:[]}))};mb.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Dne.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 al=oe((vbe,gL)=>{"use strict";var Rne=iL(),gb=U5(),zne=pb(),Nne=pr().removeElement,Ine=(Un(),_r(On)),fc=gL.exports={};fc.align=sL();fc.getCursor=cL();var pL=dL();fc.unhover=pL.wrapped;fc.unhoverRaw=pL.raw;fc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,zne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(x,_,M){return Math.abs(x)<M&&(x=0),Math.abs(_)<M&&(_=0),[x,_]}var m=r.clampFn||p;function y(x){t._dragged=!1,t._dragging=!0;var _=hL(x);o=_[0],l=_[1],d=x.target,c=x,h=x.buttons===2||x.ctrlKey,typeof x.clientX=="undefined"&&typeof x.clientY=="undefined"&&(x.clientX=o,x.clientY=l),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(x,o,l),gb&&!h?(f=mL(),f.style.cursor=window.getComputedStyle(i).cursor):gb||(f=document,u=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 _=hL(x),M=r.minDrag||Ine.MINDRAG,A=m(_[0]-o,_[1]-l,M),k=A[0],D=A[1];(k||D)&&(t._dragged=!0,fc.unhover(t,x)),t._dragged&&r.moveFn&&!h&&(t._dragdata={element:i,dx:k,dy:D},r.moveFn(k,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),gb?Nne(f):u&&(f.documentElement.style.cursor=u,u=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===d?_=c:(_={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var A=c[M];!_[M]&&typeof A!="function"&&(_[M]=A)})),r.clickFn&&r.clickFn(a,_),h||d.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function mL(){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}fc.coverSlip=mL;function hL(e){return Rne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Nf=oe((dbe,yL)=>{"use strict";yL.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 xL=oe((hbe,_L)=>{"use strict";var yb=Nf(),$d="data-savedcursor",bL="!!";_L.exports=function(r,t){var a=r.attr($d);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($d,o.slice(7)).classed(o,!1)}r.attr($d)||r.attr($d,bL)}yb(r,t)}else a&&(r.attr($d,null),a===bL?yb(r):yb(r,a))}});var C2={};Ua(C2,{dfltFillHeight:()=>Xne,itemGap:()=>Vne,itemHeightPad:()=>Wne,itemMinHeight:()=>jne,scrollBarColor:()=>One,scrollBarEnterAttrs:()=>Gne,scrollBarMargin:()=>Une,scrollBarMinHeight:()=>Hne,scrollBarWidth:()=>Bne,titlePad:()=>Yne});var Bne,Hne,One,Une,Gne,Yne,Vne,Xne,jne,Wne,S2=Oa(()=>{"use strict";Bne=6,Hne=20,One="#808BA4",Une=4,Gne={rx:20,ry:3,width:0,height:0},Yne=2,Vne=5,Xne=6,jne=16,Wne=3});var _b=oe((pbe,ML)=>{"use strict";var bb=Ai(),Zne=Hl(),{dfltFillHeight:wL}=(S2(),_r(C2));ML.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Zne.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:bb({editType:"legend"}),grouptitlefont:bb({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"},itemheight:{valType:"number",min:wL,dflt:wL,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"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","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:bb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kd=oe(Jd=>{"use strict";Jd.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jd.isVertical=function(r){return r.orientation!=="h"};Jd.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Jd.getId=function(r){return r._id||"legend"}});var wb=oe((gbe,AL)=>{"use strict";var E2=xt(),Do=pr(),$ne=Aa(),Jne=Jo(),Kne=_b(),Qne=L1(),xb=Kd();function eie(e,r,t,a,n){var i=r[e]||{},o=$ne.newContainer(t,e);function l(ie,ue){return Do.coerce(i,o,Kne,ie,ue)}var s=Do.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(ie,ue){var xe=f._input,Ee=f;return Do.coerce(xe,Ee,Jne,ie,ue)},d=t.font||{},h=Do.coerceFont(l,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(ie){return ie.showlegend});function C(ie){return E2.traceIs(ie,"pie-like")&&ie._length!=null&&(Array.isArray(ie.legend)||Array.isArray(ie.showlegend))}a.filter(C).forEach(function(ie){ie.visible&&p++;for(var ue=0;ue<ie._length;ue++){var xe=(Array.isArray(ie.legend)?ie.legend[ue]:ie.legend)||"legend";xe===e&&((Array.isArray(ie.showlegend)?ie.showlegend[ue]:ie.showlegend)||ie._dfltShowLegend)&&(m=!0,p++)}if(e==="legend"&&ie._length>ie.legend.length)for(var Ee=ie.legend.length;Ee<ie._length;Ee++)m=!0,p++});for(var x=a.concat(b).filter(function(ie){return!C(f)&&e===(ie.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))&&(p++,f.showlegend&&(m=!0,(!M&&E2.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),Do.coerceFont(c,"legendgrouptitle.font",h)),(!M&&E2.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=xb.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=xb.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var A=Do.coerce(r,t,Qne,"showlegend",t.showlegend||m&&p>(e==="legend"?1:0));if(A===!1&&(t[e]=void 0),A===!1&&!i.uirevision||(l("uirevision",t.uirevision),A===!1))return;l("borderwidth");var k=l("orientation"),D=l("yref"),P=l("xref"),z=k==="h",B=D==="paper",Y=P==="paper",H,X,N,Q="left";z?(H=0,E2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?B?(X=1.1,N="bottom"):(X=1,N="top"):B?(X=-.1,N="top"):(X=0,N="bottom")):(X=1,N="auto",Y?H=1.02:(H=1,Q="right")),Do.coerce(i,o,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:H}},"x"),Do.coerce(i,o,{y:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:X}},"y"),l("traceorder",y),xb.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let ee=l("groupclick");l("groupdoubleclick",ee),l("xanchor",Q),l("yanchor",N),l("maxheight"),l("valign"),Do.noneOrAll(i,o,["x","y"]);var ae=l("title.text");if(ae){l("title.side",z?"left":"top");var re=Do.extendFlat({},s,{size:Do.bigFont(s.size)});Do.coerceFont(l,"title.font",re);let ie=n>1;l("titleclick",ie?"toggle":!1),l("titledoubleclick",ie?"toggleothers":!1)}}AL.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 s={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(s)}}var u=["legend"];for(n=0;n<i.length;n++)Array.isArray(i[n].legend)?u=u.concat(i[n].legend):Do.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];eie(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Tb=oe(Ab=>{"use strict";var If=xt(),Mb=pr(),rie=Mb.pushUnique,tie=Kd(),TL=!0;Ab.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&TL&&t.data&&t._context.showTips&&(Mb.notifier(Mb._(t,"Double-click on legend to isolate one trace"),"long",t),TL=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let d=(o.shapes||[]).filter($e=>$e.showlegend||$e.legendgroup);var h=c.concat(d),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,y,b,C,x,_,M,A={},k=[],D=[],P=[];function z($e,ar){var Ie=k.indexOf($e),ir=A.visible;return ir||(ir=A.visible=[]),k.indexOf($e)===-1&&(k.push($e),Ie=k.length-1),ir[Ie]=ar,Ie}var B=(o.shapes||[]).map(function($e){return $e._input}),Y=!1;function H($e,ar){B[$e].visible=ar,Y=!0}function X($e,ar){if(!(l.groupTitle&&!u)){var Ie=$e._isShape,ir=$e.index;ir===void 0&&(ir=$e._index);var dr=$e.visible===!1?!1:ar;Ie?H(ir,dr):z(ir,dr)}}var N=p.legend;if(!p._isShape&&If.traceIs(p,"pie-like")){var Q=l.label,ee=f.indexOf(Q);if(n==="toggle")ee===-1?f.push(Q):f.splice(ee,1);else if(n==="toggleothers"){var ae=ee!==-1,re=[];for(y=0;y<t.calcdata.length;y++){var ie=t.calcdata[y];for(b=0;b<ie.length;b++){var ue=ie[b],xe=ue.label;N===ie[0].trace.legend&&Q!==xe&&(f.indexOf(xe)===-1&&(ae=!0),rie(f,xe),re.push(xe))}}if(!ae)for(var Ee=0;Ee<re.length;Ee++){var Re=f.indexOf(re[Ee]);Re!==-1&&f.splice(Re,1)}}If.call("_guiRelayout",t,"hiddenlabels",f)}else{var Ne=m&&m.length,ke=[],We;if(Ne)for(y=0;y<h.length;y++)We=h[y],We.visible&&We.legendgroup===m&&ke.push(y);if(n==="toggle"){var W;switch(p.visible){case!0:W="legendonly";break;case!1:W=!1;break;case"legendonly":W=!0;break}if(Ne)if(u)for(y=0;y<h.length;y++){var se=h[y];se.visible!==!1&&se.legendgroup===m&&X(se,W)}else X(p,W);else X(p,W)}else if(n==="toggleothers"){var de,K,J,ce,be,Le=!0;let $e=Ne&&u;for(y=0;y<h.length;y++)if(be=h[y],de=be===p,J=be.showlegend!==!0,!(de||J)&&(K=$e&&be.legendgroup===m,!K&&be.legend===N&&be.visible===!0&&!If.traceIs(be,"notLegendIsolatable"))){Le=!1;break}for(y=0;y<h.length;y++)if(be=h[y],!(be.visible===!1||be.legend!==N)&&!If.traceIs(be,"notLegendIsolatable"))switch(p.visible){case"legendonly":X(be,!0);break;case!0:ce=Le?!0:"legendonly",de=be===p,J=be.showlegend!==!0&&!be.legendgroup,K=de||$e&&be.legendgroup===m,X(be,K||J?!0:ce);break}}for(y=0;y<D.length;y++)if(C=D[y],!!C){var je=C.constructUpdate(),er=Object.keys(je);for(b=0;b<er.length;b++)x=er[b],M=A[x]=A[x]||[],M[P[y]]=je[x]}for(_=Object.keys(A),y=0;y<_.length;y++)for(x=_[y],b=0;b<k.length;b++)A[x].hasOwnProperty(b)||(A[x][b]=void 0);Y?If.call("_guiUpdate",t,A,{shapes:B},k):If.call("_guiRestyle",t,A,k)}};Ab.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=tie.getId(t),l=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),c=!1;else{let b=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!b}let d={visible:[]},h=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y<s.length;y++){let b=s[y],C=u(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?(p[b._index].visible=_,m=!0):(h.push(b.index),d.visible.push(_)))}m?If.call("_guiUpdate",r,d,{shapes:p},h):h.length&&If.call("_guiRestyle",r,d,h)}});var SL=oe((bbe,CL)=>{"use strict";var{isArrayOrTypedArray:kb}=ao(),kL=xt(),Cb=Kd();CL.exports=function(r,t,a){var n=t._inHover,i=Cb.isGrouped(t),o=Cb.isReversed(t),l={},s=[],u=!1,f={},c=0,d=0,h,p;function m(ie,ue,xe){if(t.visible!==!1&&!(a&&ie!==t._id))if(ue===""||!Cb.isGrouped(t)){var Ee="~~i"+c;s.push(Ee),l[Ee]=[xe],c++}else s.indexOf(ue)===-1?(s.push(ue),u=!0,l[ue]=[xe]):l[ue].push(xe)}for(h=0;h<r.length;h++){var y=r[h],b=y[0],C=b.trace,x=C.legend,_=C.legendgroup;if(!(!n&&(!C.visible||!C.showlegend)))if(kL.traceIs(C,"pie-like")){var M=Array.isArray(C.legend),A=Array.isArray(C.showlegend);for(f[_]||(f[_]={}),p=0;p<y.length;p++)if(!(A&&C.showlegend[y[p].i]===!1)){M&&(x=C.legend[y[p].i]||"legend");var k=y[p].label;f[_][k]||(m(x,_,{label:k,color:y[p].color,i:y[p].i,trace:C,pts:y[p].pts}),f[_][k]=!0,d=Math.max(d,(k||"").length))}}else m(x,_,b),d=Math.max(d,(C.name||"").length)}if(!s.length)return[];var D=!u||!i,P=[];for(h=0;h<s.length;h++){var z=l[s[h]];D?P.push(z[0]):P.push(z)}for(D&&(P=[P]),h=0;h<P.length;h++){var B=1/0;for(p=0;p<P[h].length;p++){var Y=P[h][p].trace.legendrank,H=kb(Y)?Math.min(Y):Y;B>H&&(B=H)}P[h][0]._groupMinRank=B,P[h][0]._preGroupSort=h}var X=function(ie,ue){return ie[0]._groupMinRank-ue[0]._groupMinRank||ie[0]._preGroupSort-ue[0]._preGroupSort},N=function(ie,ue){var xe=kb(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,Ee=kb(ue.trace.legendrank)?ue.trace.legendrank[ue.i]:ue.trace.legendrank;return xe-Ee||ie._preSort-ue._preSort};for(P.forEach(function(ie,ue){ie[0]._preGroupSort=ue}),P.sort(X),h=0;h<P.length;h++){P[h].forEach(function(ie,ue){ie._preSort=ue}),P[h].sort(N);var Q=P[h][0].trace,ee=null;for(p=0;p<P[h].length;p++){var ae=P[h][p].trace.legendgrouptitle;if(ae&&ae.text){ee=ae,n&&(ae.font=t._groupTitleFont);break}}if(o&&P[h].reverse(),ee){var re=!1;for(p=0;p<P[h].length;p++)if(kL.traceIs(P[h][p].trace,"pie-like")){re=!0;break}P[h].unshift({i:-1,groupTitle:ee,noClick:re,trace:{showlegend:Q.showlegend,legendgroup:Q.legendgroup,legend:Q.legend,visible:t.groupclick==="toggleitem"?!0:Q.visible}})}for(p=0;p<P[h].length;p++)P[h][p]=[P[h][p]]}return t._lgroupsLength=P.length,t._maxNameLength=d,P}});var Sb=oe(cc=>{"use strict";var L2=pr();function EL(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}cc.formatPiePercent=function(r,t){var a=EL((r*100).toPrecision(3));return L2.numSeparate(a,t)+"%"};cc.formatPieValue=function(r,t){var a=EL(r.toPrecision(10));return L2.numSeparate(a,t)};cc.getFirstFilled=function(r,t){if(L2.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};cc.castOption=function(r,t){if(L2.isArrayOrTypedArray(r))return cc.getFirstFilled(r,t);if(r)return r};cc.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var DL=oe((xbe,LL)=>{"use strict";var aie=da(),nie=Nt();LL.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?aie.pointStyle(r,a,n,t):nie.fill(r,t.color)}});var RL=oe((wbe,PL)=>{"use strict";var FL=Nt(),qL=Sb().castOption,iie=DL();PL.exports=function(r,t,a,n){var i=a.marker.line,o=qL(i.color,t.pts)||FL.defaultLine,l=qL(i.width,t.pts)||0;r.call(iie,t,a,n).style("stroke-width",l).call(FL.stroke,o)}});var qb=oe((Mbe,HL)=>{"use strict";var Li=qt(),Eb=xt(),pi=pr(),Lb=pi.strTranslate,Fo=da(),nl=Nt(),Db=Fs().extractOpts,F2=Si(),oie=RL(),lie=Sb().castOption,zL=(S2(),_r(C2)),NL=12,IL=5,vc=2,sie=10,rv=5;HL.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+zL.itemGap*2)/2,u=Lb(s,0),f=function(D,P,z,B){var Y;if(D+1)Y=D;else if(P&&P.width>0)Y=P.width;else return 0;return i?B:Math.min(Y,z)};r.each(function(D){var P=Li.select(this),z=pi.ensureSingle(P,"g","layers");z.style("opacity",D[0].trace.opacity);var B=a.indentation,Y=a.valign,H=D[0].lineHeight,X=D[0].height;if(Y==="middle"&&B===0||!H||!X)z.attr("transform",null);else{var N={top:1,bottom:-1}[Y],Q=N*(.5*(H-X+3))||0,ee=a.indentation;z.attr("transform",Lb(ee,Q))}var ae=z.selectAll("g.legendfill").data([D]);ae.enter().append("g").classed("legendfill",!0);var re=z.selectAll("g.legendlines").data([D]);re.enter().append("g").classed("legendlines",!0);var ie=z.selectAll("g.legendsymbols").data([D]);ie.enter().append("g").classed("legendsymbols",!0),ie.selectAll("g.legendpoints").data([D]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(p).each(b).each(M).each(_).each(c).each(d).each(C).each(x);function c(D){var P=BL(D),z=P.showFill,B=P.showLine,Y=P.showGradientLine,H=P.showGradientFill,X=P.anyFill,N=P.anyLine,Q=D[0],ee=Q.trace,ae,re,ie=Db(ee),ue=ie.colorscale,xe=ie.reversescale,Ee=function(K){if(K.size())if(z)Fo.fillGroupStyle(K,t,!0);else{var J="legendfill-"+ee.uid;Fo.gradient(K,t,J,Fb(xe),ue,"fill")}},Re=function(K){if(K.size()){var J="legendline-"+ee.uid;Fo.lineGroupStyle(K),Fo.gradient(K,t,J,Fb(xe),ue,"stroke")}},Ne=F2.hasMarkers(ee)||!X?"M5,0":N?"M5,-2":"M5,-3",ke=Li.select(this),We=ke.select(".legendfill").selectAll("path").data(z||H?[D]:[]);We.enter().append("path").classed("js-fill",!0),We.exit().remove(),We.attr("d",Ne+"h"+o+"v"+l+"h-"+o+"z").call(Ee);let W=z||H?(zL.dfltFillHeight-l)/2:0;if(ke.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",W?Lb(0,W):null),B||Y){var se=f(void 0,ee.line,sie,IL);re=pi.minExtend(ee,{line:{width:se}}),ae=[pi.minExtend(Q,{trace:re})]}var de=ke.select(".legendlines").selectAll("path").data(B||Y?[ae]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",Ne+(Y?"l"+o+",0.0001":"h"+o)).call(B?Fo.lineGroupStyle:Re)}function d(D){var P=BL(D),z=P.anyFill,B=P.anyLine,Y=P.showLine,H=P.showMarker,X=D[0],N=X.trace,Q=!H&&!B&&!z&&F2.hasText(N),ee,ae;function re(W,se,de,K){var J=pi.nestedProperty(N,W).get(),ce=pi.isArrayOrTypedArray(J)&&se?se(J):J;if(i&&ce&&K!==void 0&&(ce=K),de){if(ce<de[0])return de[0];if(ce>de[1])return de[1]}return ce}function ie(W){return X._distinct&&X.index&&W[X.index]?W[X.index]:W[0]}if(H||Q||Y){var ue={},xe={};if(H){ue.mc=re("marker.color",ie);var Ee=N.type==="scattermap";ue.mx=Ee?"circle":re("marker.symbol",ie),ue.mo=re("marker.opacity",pi.mean,[.2,1]),ue.mlc=re("marker.line.color",ie),ue.mlw=re("marker.line.width",pi.mean,[0,5],vc),ue.mld=re("marker.line.dash",ie),xe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Re=re("marker.size",pi.mean,[2,16],NL);ue.ms=Re,xe.marker.size=Re}Y&&(xe.line={width:re("line.width",ie,[0,10],IL)}),Q&&(ue.tx="Aa",ue.tp=re("textposition",ie),ue.ts=10,ue.tc=re("textfont.color",ie),ue.tf=re("textfont.family",ie),ue.tw=re("textfont.weight",ie),ue.ty=re("textfont.style",ie),ue.tv=re("textfont.variant",ie),ue.tC=re("textfont.textcase",ie),ue.tE=re("textfont.lineposition",ie),ue.tS=re("textfont.shadow",ie)),ee=[pi.minExtend(X,ue)],ae=pi.minExtend(N,xe),ae.selectedpoints=null,ae.texttemplate=null}var Ne=Li.select(this).select("g.legendpoints"),ke=Ne.selectAll("path.scatterpts").data(H?ee:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),ke.exit().remove(),ke.call(Fo.pointStyle,ae,t),H&&(ee[0].mrc=3);var We=Ne.selectAll("g.pointtext").data(Q?ee:[]);We.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),We.exit().remove(),We.selectAll("text").call(Fo.textPointStyle,ae,t)}function h(D){var P=D[0].trace,z=P.type==="waterfall";if(D[0]._distinct&&z){var B=D[0].trace[D[0].dir].marker;return D[0].mc=B.color,D[0].mlw=B.line.width,D[0].mlc=B.line.color,y(D,this,"waterfall")}var Y=[];P.visible&&z&&(Y=D[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 H=Li.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Y);H.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(X){var N=Li.select(this),Q=P[X[0]].marker,ee=f(void 0,Q.line,rv,vc);N.attr("d",X[1]).style("stroke-width",ee+"px").call(nl.fill,Q.color),ee&&N.call(nl.stroke,Q.line.color)})}function p(D){y(D,this)}function m(D){y(D,this,"funnel")}function y(D,P,z){var B=D[0].trace,Y=B.marker||{},H=Y.line||{},X=Y.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",N=z?B.visible&&B.type===z:Eb.traceIs(B,"bar"),Q=Li.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(N?[D]:[]);Q.enter().append("path").classed("legend"+z,!0).attr("d",X).attr("transform",u),Q.exit().remove(),Q.each(function(ee){var ae=Li.select(this),re=ee[0],ie=f(re.mlw,Y.line,rv,vc);ae.style("stroke-width",ie+"px");var ue=re.mcc;if(!a._inHover&&"mc"in re){var xe=Db(Y),Ee=xe.mid;Ee===void 0&&(Ee=(xe.max+xe.min)/2),ue=Fo.tryColorscale(Y,"")(Ee)}var Re=ue||re.mc||Y.color,Ne=Y.pattern,ke=Fo.getPatternAttr;let We=0;a._inHover&&re._distinct&&re.index!=null&&(We=re.index);let W=Ne&&(ke(Ne.shape,We,"")||ke(Ne.path,We,""));if(W){let de=ke(Ne.bgcolor,We,null),K=ke(Ne.fgcolor,We,null);var se=Ne.fgopacity;let J=a._inHover?D2(ke(Ne.size,We,8),8,10):D2(Ne.size,8,10),ce=a._inHover?D2(ke(Ne.solidity,We,.5),.5,1):D2(Ne.solidity,.5,1),be=a._inHover?`hover-${B.uid}-${We}`:`legend-${B.uid}`;ae.call(Fo.pattern,"legend",t,be,W,J,ce,ue,Ne.fillmode,de,K,se)}else ae.call(nl.fill,Re);ie&&nl.stroke(ae,re.mlc||H.color)})}function b(D){var P=D[0].trace,z=Li.select(this).select("g.legendpoints").selectAll("path.legendbox").data(P.visible&&Eb.traceIs(P,"box-violin")?[D]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),z.exit().remove(),z.each(function(){var B=Li.select(this);if((P.boxpoints==="all"||P.points==="all")&&nl.opacity(P.fillcolor)===0&&nl.opacity((P.line||{}).color)===0){var Y=pi.minExtend(P,{marker:{size:i?NL:pi.constrain(P.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(Fo.pointStyle,Y,t)}else{var H=f(void 0,P.line,rv,vc);B.style("stroke-width",H+"px").call(nl.fill,P.fillcolor),H&&nl.stroke(B,P.line.color)}})}function C(D){var P=D[0].trace,z=Li.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(P.visible&&P.type==="candlestick"?[D,D]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(B,Y){return Y?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(B,Y){var H=Li.select(this),X=P[Y?"increasing":"decreasing"],N=f(void 0,X.line,rv,vc);H.style("stroke-width",N+"px").call(nl.fill,X.fillcolor),N&&nl.stroke(H,X.line.color)})}function x(D){var P=D[0].trace,z=Li.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(P.visible&&P.type==="ohlc"?[D,D]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(B,Y){return Y?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(B,Y){var H=Li.select(this),X=P[Y?"increasing":"decreasing"],N=f(void 0,X.line,rv,vc);H.style("fill","none").call(Fo.dashLine,X.line.dash,N),N&&nl.stroke(H,X.line.color)})}function _(D){A(D,this,"pie")}function M(D){A(D,this,"funnelarea")}function A(D,P,z){var B=D[0],Y=B.trace,H=z?Y.visible&&Y.type===z:Eb.traceIs(Y,z),X=Li.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(H?[D]:[]);if(X.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),X.exit().remove(),X.size()){var N=Y.marker||{},Q=f(lie(N.line.width,B.pts),N.line,rv,vc),ee="pieLike",ae=pi.minExtend(Y,{marker:{line:{width:Q}}},ee),re=pi.minExtend(B,{trace:ae},ee);oie(X,re,ae,t)}}function k(D){var P=D[0].trace,z,B=[];if(P.visible)switch(P.type){case"histogram2d":case"heatmap":B=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmap":B=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymap":B=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":B=[["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"]],z=!1;break;case"streamtube":B=[["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"]],z=!1;break;case"surface":B=[["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"]],z=!0;break;case"mesh3d":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var Y=Li.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(B);Y.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),Y.exit().remove(),Y.each(function(H,X){var N=Li.select(this),Q=Db(P),ee=Q.colorscale,ae=Q.reversescale,re=function(Ee){if(Ee.size()){var Re="legendfill-"+P.uid;Fo.gradient(Ee,t,Re,Fb(ae,z==="radial"),ee,"fill")}},ie;if(ee){if(!z){var xe=ee.length;ie=X===0?ee[ae?xe-1:0][1]:X===1?ee[ae?0:xe-1][1]:ee[Math.floor((xe-1)/2)][1]}}else{var ue=P.vertexcolor||P.facecolor||P.color;ie=pi.isArrayOrTypedArray(ue)?ue[X]||ue[0]:ue}N.attr("d",H[0]),ie?N.call(nl.fill,ie):N.call(re)})}};function Fb(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function BL(e){var r=e[0].trace,t=r.contours,a=F2.hasLines(r)||r.visible&&r.type==="quiver",n=F2.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function D2(e,r,t){return e&&pi.isArrayOrTypedArray(e)?r:e>t?t:e}});var Nb=oe((Abe,$L)=>{"use strict";var Di=qt(),_n=pr(),Rb=Pn(),dc=xt(),R2=Fd(),Pb=al(),xn=da(),Qd=Nt(),Ru=hi(),OL=Tb().handleItemClick,UL=Tb().handleTitleClick,Wa=(S2(),_r(C2)),zb=(di(),_r(vi)),WL=zb.LINE_SPACING,av=zb.FROM_TL,GL=zb.FROM_BR,YL=SL(),uie=qb(),nv=Kd(),tv=1,fie=/^legend[0-9]*$/;$L.exports=function(r,t){if(t)VL(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Di.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(fie)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];VL(r,s)}}};function cie(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*WL,i=0,o=e.node(),l=xn.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*Wa.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*Wa.titlePad-l),Ru.positionText(e,t+Wa.titlePad+i,t+n)}}function VL(e,r){var t=r||{},a=e._fullLayout,n=nv.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 s;if(l){if(!t.entries)return;s=YL(t.entries,t)}else{for(var u=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var d=f[c];if(d.showlegend){var h={_isShape:!0,index:d._index,name:d.name||d.label.text||"shape "+d._index,legend:d.legend,legendgroup:d.legendgroup,legendgrouptitle:d.legendgrouptitle,legendrank:d.legendrank,legendwidth:d.legendwidth,showlegend:d.showlegend,visible:d.visible,opacity:d.opacity,mode:d.type==="line"?"lines":"markers",line:d.line,marker:{line:d.line,color:d.fillcolor,size:12,symbol:d.type==="rect"?"square":d.type==="circle"?"circle":"hexagon2"}};u.push([{trace:h}])}}s=a.showlegend&&YL(u,t,a._legends.length>1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Rb.autoMargin(e,n);var m=_n.ensureSingle(o,"g",n,function(D){l||D.attr("pointer-events","all")}),y=_n.ensureSingleById(a._topdefs,"clipPath",i,function(D){D.append("rect")}),b=_n.ensureSingle(m,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});b.call(Qd.stroke,t.bordercolor).call(Qd.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=_n.ensureSingle(m,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=_n.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(xn.font,x.font).text(x.text),P2(_,C,e,t,tv),!l&&(t.titleclick||t.titledoubleclick)&&hie(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var M=_n.ensureSingle(m,"rect","scrollbar",function(D){D.attr(Wa.scrollBarEnterAttrs).call(Qd.fill,Wa.scrollBarColor)}),A=C.selectAll("g.groups").data(s);A.enter().append("g").attr("class","groups"),A.exit().remove();var k=A.selectAll("g.traces").data(_n.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(D){let P=D[0],z=P.trace;if(P.groupTitle){let B=z.legendgroup,Y=(a.shapes||[]).filter(function(X){return X.showlegend});return e._fullData.concat(Y).some(function(X){return X.legendgroup===B&&(X.legend||"legend")===n&&X.visible===!0})?1:.5}return dc.traceIs(z,"pie-like")?p.indexOf(D[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Di.select(this).call(vie,e,t)}).call(uie,e,t).each(function(D){l||D[0].groupTitle&&t.groupclick==="toggleitem"||Di.select(this).call(die,e,n)}),_n.syncOrAsync([Rb.previousPromises,function(){return gie(e,A,k,t,C)},function(){var D=a._size,P=t.borderwidth,z=t.xref==="paper",B=t.yref==="paper";if(x.text){let Le=(a.shapes||[]).filter(function(er){return er.showlegend}),je=e._fullData.concat(Le).some(function(er){let $e=er.legend||"legend";var ar=Array.isArray($e)?$e.includes(n):$e===n;return ar&&er.visible===!0});_.style("opacity",je?1:.5)}if(!l){var Y,H;z?Y=D.l+D.w*t.x-av[z2(t)]*t._width:Y=a.width*t.x-av[z2(t)]*t._width,B?H=D.t+D.h*(1-t.y)-av[N2(t)]*t._effHeight:H=a.height*(1-t.y)-av[N2(t)]*t._effHeight;var X=yie(e,n,Y,H);if(X)return;if(a.margin.autoexpand){var N=Y,Q=H;Y=z?_n.constrain(Y,0,a.width-t._width):N,H=B?_n.constrain(H,0,a.height-t._effHeight):Q,Y!==N&&_n.log("Constrain "+n+".x to make legend fit inside graph"),H!==Q&&_n.log("Constrain "+n+".y to make legend fit inside graph")}xn.setTranslate(m,Y,H)}if(M.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ee=t._effHeight;l&&(ee=t._height),b.attr({width:t._width-P,height:ee-P,x:P/2,y:P/2}),xn.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*P,height:ee-2*P,x:P,y:P}),xn.setClipUrl(C,i,e),xn.setRect(M,0,0,0,0),delete t._scrollY}else{var ae=Math.max(Wa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),re=t._effHeight-ae-2*Wa.scrollBarMargin,ie=t._height-t._effHeight,ue=re/ie,xe=Math.min(t._scrollY||0,ie);b.attr({width:t._width-2*P+Wa.scrollBarWidth+Wa.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),y.select("rect").attr({width:t._width-2*P+Wa.scrollBarWidth+Wa.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+xe}),xn.setClipUrl(C,i,e),de(xe,ae,ue),m.on("wheel",function(){xe=_n.constrain(t._scrollY+Di.event.deltaY/ie*re,0,ie),de(xe,ae,ue),xe!==0&&xe!==ie&&Di.event.preventDefault()});var Ee,Re,Ne,ke=function(Le,je,er){var $e=(er-je)/ue+Le;return _n.constrain($e,0,ie)},We=function(Le,je,er){var $e=(je-er)/ue+Le;return _n.constrain($e,0,ie)},W=Di.behavior.drag().on("dragstart",function(){var Le=Di.event.sourceEvent;Le.type==="touchstart"?Ee=Le.changedTouches[0].clientY:Ee=Le.clientY,Ne=xe}).on("drag",function(){var Le=Di.event.sourceEvent;Le.buttons===2||Le.ctrlKey||(Le.type==="touchmove"?Re=Le.changedTouches[0].clientY:Re=Le.clientY,xe=ke(Ne,Ee,Re),de(xe,ae,ue))});M.call(W);var se=Di.behavior.drag().on("dragstart",function(){var Le=Di.event.sourceEvent;Le.type==="touchstart"&&(Ee=Le.changedTouches[0].clientY,Ne=xe)}).on("drag",function(){var Le=Di.event.sourceEvent;Le.type==="touchmove"&&(Re=Le.changedTouches[0].clientY,xe=We(Ne,Ee,Re),de(xe,ae,ue))});C.call(se)}function de(Le,je,er){t._scrollY=e._fullLayout[n]._scrollY=Le,xn.setTranslate(C,0,-Le),xn.setRect(M,t._width,Wa.scrollBarMargin+Le*er,Wa.scrollBarWidth,je),y.select("rect").attr("y",P+Le)}if(e._context.edits.legendPosition){var K,J,ce,be;m.classed("cursor-move",!0),Pb.init({element:m.node(),gd:e,prepFn:function(Le){if(Le.target!==M.node()){var je=xn.getTranslate(m);ce=je.x,be=je.y}},moveFn:function(Le,je){if(ce!==void 0&&be!==void 0){var er=ce+Le,$e=be+je;xn.setTranslate(m,er,$e),K=Pb.align(er,t._width,D.l,D.l+D.w,t.xanchor),J=Pb.align($e+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&J!==void 0){var Le={};Le[n+".x"]=K,Le[n+".y"]=J,dc.call("_guiRelayout",e,Le)}},clickFn:function(Le,je){var er=o.selectAll("g.traces").filter(function(){var $e=this.getBoundingClientRect();return je.clientX>=$e.left&&je.clientX<=$e.right&&je.clientY>=$e.top&&je.clientY<=$e.bottom});er.size()>0&&ZL(e,t,er,Le,je)}})}}],e)}}function q2(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 ZL(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={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&&(u.group=o._group),dc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=R2.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&OL(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=R2.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&OL(t,e,r,s,a)}}function vie(e,r,t){var a=nv.getId(t),n=e.data()[0][0],i=n.trace,o=dc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=_n.templateString(u,i._meta))));var c=_n.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(xn.font,f).text(l?XL(u,s):u);var d=t.indentation+t.itemwidth+Wa.itemGap*2;Ru.positionText(c,d,0),l?c.call(Ru.makeEditable,{gd:r,text:u}).call(P2,e,r,t).on("edit",function(h){this.text(XL(h,s)).call(P2,e,r,t);var p={};return p.name=h,n.trace._isShape?dc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):dc.call("_guiRestyle",r,p,i.index)}):P2(c,e,r,t)}function XL(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 die(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=_n.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Qd.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)),ZL(r,l,e,i,Di.event)}}))}function hie(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&dc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=_n.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Qd.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTime<i?l+=1:(l=1,r._legendMouseDownTime=o)}),s.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(l=Math.max(l-1,1));let u={event:Di.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(R2.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&UL(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,R2.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&UL(r,t,t.titledoubleclick))}))}function P2(e,r,t,a,n){a._inHover&&e.attr("data-notex",Ru.isPureTex(e.text())?null:!0),Ru.convertToTspans(e,t,function(){pie(r,t,a,n)})}function pie(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(),s=nv.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===tv?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*WL,d,h;if(l){var p=xn.bBox(l);d=p.height,h=p.width,a===tv?xn.setTranslate(o,u,u+d*.75):xn.setTranslate(o,0,d*.25)}else{var m="."+s+(a===tv?"title":"")+"text",y=e.select(m),b=Ru.lineCount(y),C=y.node();if(d=c*b,h=C?xn.bBox(C).width:0,a===tv)t.title.side==="left"&&(h+=Wa.itemGap*2),Ru.positionText(y,u+Wa.titlePad,u+c);else{var x=Wa.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=Wa.itemGap,h-=t.indentation+t.itemwidth),Ru.positionText(y,x,-c*((b-1)/2-.3))}}if(a===tv)t._titleWidth=h,t._titleHeight=d;else{n.lineHeight=c;let _=Wa.itemMinHeight+t.itemheight-Wa.dfltFillHeight;n.height=Math.max(d,Wa.itemMinHeight,_)+Wa.itemHeightPad,n.width=h}}function mie(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 gie(e,r,t,a,n){var i=e._fullLayout,o=nv.getId(a);a||(a=i[o]);var l=i._size,s=nv.isVertical(a),u=nv.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,d=2*c,h=Wa.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),y=N2(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:A}=a,{maxheight:k}=a,D=b||C||M!=="v"||A!=="paper";k||(k=D?.5:1);let P=D?i.height:l.h;if(a._maxHeight=Math.max(k>1?k:k*P,30),A==="container"){let Le=jL(a.y,y)*i.height;a._maxHeight=Math.max(Math.min(a._maxHeight,Le),30)}var z=0;a._width=0,a._height=0;var B=mie(a);if(s)t.each(function(Le){var je=Le[0].height;xn.setTranslate(this,c+B[0],c+B[1]+a._height+je/2+h),a._height+=je,a._width=Math.max(a._width,Le[0].width)}),z=p+a._width,a._width+=h+p+d,a._height+=m,u&&(r.each(function(Le,je){xn.setTranslate(this,0,je*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var Y=z2(a),H=a.x<0||a.x===0&&Y==="right",X=a.x>1||a.x===1&&Y==="left",N=C||b,Q=i.width/2;if(a._maxWidth=Math.max(H?N&&Y==="left"?l.l+l.w:Q:X?N&&Y==="right"?l.r+l.w:Q:l.w,2*p),a.xref==="container"){let Le=jL(a.x,Y)*i.width;a._maxWidth=Math.max(Le,2*p)}var ee=0,ae=0;t.each(function(Le){var je=q2(Le,a,p);ee=Math.max(ee,je),ae+=je}),z=null;var re=0;if(u){var ie=0,ue=0,xe=0;r.each(function(){var Le=0,je=0;Di.select(this).selectAll("g.traces").each(function($e){var ar=q2($e,a,p),Ie=$e[0].height;xn.setTranslate(this,B[0],B[1]+c+h+Ie/2+je),je+=Ie,Le=Math.max(Le,ar),_[$e[0].trace.legendgroup]=Le});var er=Le+h;ue>0&&er+c+ue>a._maxWidth?(re=Math.max(re,ue),ue=0,xe+=ie+x,ie=je):ie=Math.max(ie,je),xn.setTranslate(this,ue,xe),ue+=er}),a._width=Math.max(re,ue)+c,a._height=xe+ie+m}else{var Ee=t.size(),Re=ae+d+(Ee-1)*h<a._maxWidth,Ne=0,ke=0,We=0,W=0;t.each(function(Le){var je=Le[0].height,er=q2(Le,a,p,u),$e=Re?er:ee;f||($e+=h),$e+c+ke-h>=a._maxWidth&&(re=Math.max(re,W),ke=0,We+=Ne,a._height+=Ne,Ne=0),xn.setTranslate(this,B[0]+c+ke,B[1]+c+We+je/2+h),W=ke+er+h,ke+=$e,Ne=Math.max(Ne,je)}),Re?(a._width=ke+d,a._height=Ne+m):(a._width=Math.max(re,W)+d,a._height+=Ne+m)}}a._width=Math.ceil(Math.max(a._width+B[0],a._titleWidth+2*(c+Wa.titlePad))),a._height=Math.ceil(Math.max(a._height+B[1],a._titleHeight+2*(c+Wa.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var se=e._context.edits,de=se.legendText||se.legendPosition;if(t.each(function(Le){var je=Di.select(this).select("."+o+"toggle"),er=Le[0].height,$e=Le[0].trace.legendgroup,ar=q2(Le,a,p);u&&$e!==""&&(ar=_[$e]);var Ie=de?p:z||ar;!s&&!f&&(Ie+=h/2),xn.setRect(je,0,-er/2,Ie,er)}),a._inHover){let Le=a._width-d-h-B[0];t.each(function(je){je[0].textAlign==="right"&&Di.select(this).select("."+o+"text").attr("text-anchor","end").call(Ru.positionText,Le)})}var K=n.select("."+o+"titletext");K.node()&&cie(K,a,c);var J=n.select("."+o+"titletoggle");if(J.size()&&K.node()){var ce=K.attr("x")||0,be=Wa.titlePad;xn.setRect(J,ce-be,c,a._titleWidth+2*be,a._titleHeight+2*be)}}function yie(e,r,t,a){var n=e._fullLayout,i=n[r],o=z2(i),l=N2(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",d={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Rb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*av[o],r:i._width*GL[o],b:i._effHeight*GL[l],t:i._effHeight*av[l]});s?e._fullLayout._reservedMargin[r][f]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[f]}function z2(e){return _n.isRightAnchor(e)?"right":_n.isCenterAnchor(e)?"center":"left"}function N2(e){return _n.isBottomAnchor(e)?"bottom":_n.isMiddleAnchor(e)?"middle":"top"}function jL(e,r){switch(r){case"left":case"bottom":return 1-e;case"right":case"top":return e;default:return 2*Math.min(e,1-e)}}});var Ub=oe(Ob=>{"use strict";var Nu=qt(),zu=Jt(),Za=pr(),bie=Za.pushUnique,Ib=Za.strTranslate,_ie=Za.strRotate,xie=Fd(),Ya=hi(),wie=xL(),Bs=da(),Sn=Nt(),I2=al(),Wl=Ga(),Mie=(Un(),_r(On)).zindexSeparator,hc=xt(),uo=Pu(),pc=(id(),_r(nd)),Aie=wb(),Tie=Nb(),oD=pc.YANGLE,Hb=Math.PI*oD/180,kie=1/Math.sin(Hb),Cie=Math.cos(Hb),Sie=Math.sin(Hb),Pa=pc.HOVERARROWSIZE,Ht=pc.HOVERTEXTPAD,JL={box:!0,ohlc:!0,violin:!0,candlestick:!0},Eie={scatter:!0,scattergl:!0,splom:!0};function KL(e,r){return e.distance-r.distance}Ob.hover=function(r,t,a,n){r=Za.getGraphDiv(r);var i=t.target;Za.throttle(r._fullLayout._uid+pc.HOVERID,pc.HOVERMINTIME,function(){Die(r,t,a,n,i)})};Ob.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=fD(n),o=cD(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,b=p._y0||p.y0||p.y||0,C=p._y1||p.y1||p.y||0,x=p.eventData;if(x){var _=Math.min(m,y),M=Math.max(m,y),A=Math.min(b,C),k=Math.max(b,C),D=p.trace;if(hc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,z=P.offsetLeft,B=P.offsetTop;_+=z,M+=z,A+=B,k+=B}x.bbox={x0:_+o,x1:M+o,y0:A+i,y1:k+i},x.xPixel=(m+y)/2,x.yPixel=(b+C)/2,t.inOut_bbox&&t.inOut_bbox.push(x.bbox)}else x=!1;return{color:p.color||Sn.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:x}}),s=!1,u=sD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Sn.background,container:Nu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,y=0;f.sort(function(b,C){return b.y0-C.y0}).each(function(b,C){var x=b.y0-b.by/2;x-p<m?b.offset=m-x+p:b.offset=0,m=x+b.by+b.offset,C===t.anchorIndex&&(y=b.offset)}).each(function(b){b.offset-=y})}var d=n._fullLayout._invScaleX,h=n._fullLayout._invScaleY;return c(),H2(f,s,d,h),u.mathjaxPromise&&u.mathjaxPromise.then(function(){c(),H2(f,s,d,h),f.each(function(){var p=Nu.select(this);Ya.repositionMathGroup(p.select("text.nums")),Ya.repositionMathGroup(p.select("text.name"))})}),a?f:f.node()};function Lie(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function Die(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(Mie)[0]);var i=Array.isArray(t)?t:[t],o,l=e._fullLayout,s=l.hoversubplots,u=l._plots||[],f=u[t],c=l._has("cartesian"),d=l._has("ternary"),h=r.hovermode||l.hovermode,p=(h||"").charAt(0)==="x",m=(h||"").charAt(0)==="y",y,b;if(c&&(p||m)&&s==="axis"){for(var C=i.length,x=0;x<C;x++)if(o=i[x],u[o]){y=Wl.getFromId(e,o,"x"),b=Wl.getFromId(e,o,"y");var _=(p?y:b)._subplotsWith;if(_&&_.length)for(var M=0;M<_.length;M++)bie(i,_[M])}}if(f&&s!=="single"){var A=f.overlays.map(function(Dr){return Dr.id});i=i.concat(A)}for(var k=i.length,D=new Array(k),P=new Array(k),z=!1,B=0;B<k;B++)if(o=i[B],u[o])z=!0,D[B]=u[o].xaxis,P[B]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var Y=l[o]._subplot;D[B]=Y.xaxis,P[B]=Y.yaxis}else{Za.warn("Unrecognized subplot: "+o);return}if(h&&!z&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return I2.unhoverRaw(e,r);var H=l.hoverdistance;H===-1&&(H=1/0);var X=l.spikedistance;X===-1&&(X=1/0);var N=[],Q=[],ee,ae,re,ie,ue,xe,Ee,Re,Ne,ke,We,W,se,de={hLinePoint:null,vLinePoint:null};let K={};var J=!1;if(Array.isArray(r))for(h="array",re=0;re<r.length;re++)ue=e.calcdata[r[re].curveNumber||0],ue&&(xe=ue[0].trace,ue[0].trace.hoverinfo!=="skip"&&(Q.push(ue),xe.orientation==="h"&&(J=!0)));else{var ce=e.calcdata.slice();for(ce.sort(function(Dr,kt){var pt=Dr[0].trace.zorder||0,Yt=kt[0].trace.zorder||0;return pt-Yt}),ie=0;ie<ce.length;ie++)ue=ce[ie],xe=ue[0].trace,xe.hoverinfo!=="skip"&&uo.isTraceInSubplots(xe,i)&&(Q.push(ue),xe.orientation==="h"&&(J=!0));var be=!n,Le,je;if(be)"xpx"in r?Le=r.xpx:Le=D[0]._length/2,"ypx"in r?je=r.ypx:je=P[0]._length/2;else{if(xie.triggerHandler(e,"plotly_beforehover",r)===!1)return;var er=n.getBoundingClientRect();Le=r.clientX-er.left,je=r.clientY-er.top,l._calcInverseTransform(e);var $e=Za.apply3DTransform(l._invTransform)(Le,je);if(Le=$e[0],je=$e[1],Le<0||Le>D[0]._length||je<0||je>P[0]._length)return I2.unhoverRaw(e,r)}if(r.pointerX=Le+D[0]._offset,r.pointerY=je+P[0]._offset,"xval"in r?ee=uo.flat(i,r.xval):ee=uo.p2c(D,Le),"yval"in r?ae=uo.flat(i,r.yval):ae=uo.p2c(P,je),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!zu(ee[0])||!zu(ae[0]))return Za.warn("Fx.hover failed",r,e),I2.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=ee,e._hoverYVals=ae,e._hoverXAxes=D,e._hoverYAxes=P);var ar=1/0;function Ie(Dr,kt){for(ie=0;ie<Q.length;ie++)if(ue=Q[ie],!(!ue||!ue[0]||!ue[0].trace)&&(xe=ue[0].trace,!(xe.visible!==!0||xe._length===0)&&["carpet","contourcarpet"].indexOf(xe._module.name)===-1)){if(Ne=h,uo.isUnifiedHover(Ne)&&(Ne=Ne.charAt(0)),xe.type==="splom"?(Re=0,Ee=i[Re]):(Ee=uo.getSubplot(xe),Re=i.indexOf(Ee)),W={cd:ue,trace:xe,xa:D[Re],ya:P[Re],maxHoverDistance:H,maxSpikeDistance:X,index:!1,distance:Math.min(ar,H),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:Sn.defaultLine,name:xe.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[Ee]&&(W.subplot=l[Ee]._subplot),l._splomScenes&&l._splomScenes[xe.uid]&&(W.scene=l._splomScenes[xe.uid]),Ne==="array"){var pt=r[ie];if("pointNumber"in pt){let jt=ue[pt.pointNumber];jt&&(W.index=pt.pointNumber,jt.lonlat?(ke=jt.lonlat[0],We=jt.lonlat[1]):(ke=jt.x,We=jt.y)),Ne="closest"}else Ne="","xval"in pt&&(ke=pt.xval,Ne="x"),"yval"in pt&&(We=pt.yval,Ne=Ne?"closest":"y")}else Dr!==void 0&&kt!==void 0?(ke=Dr,We=kt):(ke=ee[Re],We=ae[Re]);if(se=N.length,H!==0)if(xe._module&&xe._module.hoverPoints){var Yt=xe._module.hoverPoints(W,ke,We,Ne,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(Yt)for(var Ba,Tn=0;Tn<Yt.length;Tn++)Ba=Yt[Tn],zu(Ba.x0)&&zu(Ba.y0)&&N.push(Pie(Ba,h))}else Za.log("Unrecognized trace type in hover:",xe);if(h==="closest"&&N.length>se&&(N.splice(0,se),ar=N[0].distance),hc.traceIs(xe,"ternary")&&X!==0){let jt=W.subplot;if(["aaxis","baxis","caxis"].some(Ja=>jt[Ja].showspikes&&jt[Ja].spikesnap!=="hovered data")){let Ja=Yt==null?void 0:Yt[0];if(!Number.isFinite(Ja==null?void 0:Ja.spikeDistance)){let li=Za.extendFlat({},W,{distance:X,index:!1}),mo=xe._module.hoverPoints(li,ke,We,"closest");Ja=mo&&mo[0]}let oi=K[Ee];Ja&&Ja.index!==void 0&&Ja.index!==!1&&Ja.spikeDistance<=X&&(!oi||Ja.spikeDistance<oi.spikeDistance)&&(K[Ee]=Ja)}}if(c&&N.length===0&&X!==0&&Lie(W.xa,W.ya)){W.distance=X,W.index=!1;var ya=xe._module.hoverPoints(W,ke,We,"closest",{hoverLayer:l._hoverlayer});if(ya&&(ya=ya.filter(function(jt){return jt.spikeDistance<=X})),ya!=null&&ya.length){var bi,po=ya.filter(function(jt){return jt.xa.showspikes&&jt.xa.spikesnap!=="hovered data"});if(po.length){var Ni=po[0];zu(Ni.x0)&&zu(Ni.y0)&&(bi=Ar(Ni),(!de.vLinePoint||de.vLinePoint.spikeDistance>bi.spikeDistance)&&(de.vLinePoint=bi))}var Bo=ya.filter(function(jt){return jt.ya.showspikes&&jt.ya.spikesnap!=="hovered data"});if(Bo.length){var Ii=Bo[0];zu(Ii.x0)&&zu(Ii.y0)&&(bi=Ar(Ii),(!de.hLinePoint||de.hLinePoint.spikeDistance>bi.spikeDistance)&&(de.hLinePoint=bi))}}}}}Ie();function ir(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),X!==0)for(let Dr=0;Dr<i.length;Dr++){let kt=i[Dr],pt=l[kt]&&l[kt]._subplot;if(pt&&pt.drawSpikelines){let Yt=N.find(Ba=>Ba.trace.subplot===kt&&Ba.index!==void 0&&Ba.index!==!1&&Ba.spikeDistance<=X);pt.drawSpikelines(Yt,K[kt],ee&&ee[Dr],ae&&ae[Dr])}}}function dr(Dr,kt,pt){for(var Yt=null,Ba=1/0,Tn,ya=0;ya<Dr.length;ya++)y&&y._id!==Dr[ya].xa._id||b&&b._id!==Dr[ya].ya._id||(Tn=Dr[ya].spikeDistance,pt&&ya===0&&(Tn=-1/0),Tn<=Ba&&Tn<=kt&&(Yt=Dr[ya],Ba=Tn));return Yt}function Ar(Dr){return Dr?{xa:Dr.xa,ya:Dr.ya,x:Dr.xSpike!==void 0?Dr.xSpike:(Dr.x0+Dr.x1)/2,y:Dr.ySpike!==void 0?Dr.ySpike:(Dr.y0+Dr.y1)/2,distance:Dr.distance,spikeDistance:Dr.spikeDistance,curveNumber:Dr.trace.index,color:Dr.color,pointNumber:Dr.index}:null}var Qe={fullLayout:l,container:l._hoverlayer,event:r},mr=e._spikepoints,Pr={vLinePoint:de.vLinePoint,hLinePoint:de.hLinePoint};e._spikepoints=Pr;var Te=function(){var Dr=N.filter(function(pt){return y&&y._id===pt.xa._id&&b&&b._id===pt.ya._id}),kt=N.filter(function(pt){return!(y&&y._id===pt.xa._id&&b&&b._id===pt.ya._id)});Dr.sort(KL),kt.sort(KL),N=Dr.concat(kt),N=zie(N,h)};Te();var Oe=h.charAt(0);let xr=Dr=>Dr&&["category","multicategory"].includes(Dr.type),Rr=Oe==="x"?D:P,zr=Oe==="x"?ee:ae;if(uo.isXYhover(Ne)&&zr){let Dr=N.filter(kt=>{let pt=kt[Oe+"a"],Yt=Rr.indexOf(pt);return!xr(pt)||Yt===-1?!0:kt[Oe+"LabelVal"]===Math.round(zr[Yt])});Dr.length&&(N=Dr)}var Ce=(Oe==="x"||Oe==="y")&&N[0]&&Eie[N[0].trace.type];if(c&&X!==0&&N.length!==0){var Ue=N.filter(function(Dr){return Dr.ya.showspikes}),cr=dr(Ue,X,Ce);de.hLinePoint=Ar(cr);var Mr=N.filter(function(Dr){return Dr.xa.showspikes}),hr=dr(Mr,X,Ce);de.vLinePoint=Ar(hr)}if(N.length===0){var kr=I2.unhoverRaw(e,r);if(c&&(de.hLinePoint!==null||de.vLinePoint!==null)&&aD(mr)&&tD(e,de,Qe),l.hoveranywhere&&!a&&n){var Lr=e._hoverdata;Lr&&Lr.length&&(e.emit("plotly_unhover",{event:r,points:Lr}),e._hoverdata=[]),dn([]),e._hoverAnywhereActive=!0}return d&&ir(),kr}if(c&&aD(mr)&&tD(e,de,Qe),d&&ir(),uo.isXYhover(Ne)&&N[0].length!==0&&N[0].trace.type!=="splom"){var Br=N[0];JL[Br.trace.type]?N=N.filter(Dr=>Dr.trace.index===Br.trace.index):N=[Br];var et=N.length,lr=iD("x",Br,l),Cr=iD("y",Br,l);Ie(lr,Cr);var tr=[],qr={},Zr=0,Or=function(Dr){var kt=JL[Dr.trace.type]?lD(Dr):Dr.trace.index;if(!qr[kt])Zr++,qr[kt]=Zr,tr.push(Dr);else{var pt=qr[kt]-1,Yt=tr[pt];pt>0&&Math.abs(Dr.distance)<Math.abs(Yt.distance)&&(tr[pt]=Dr)}},Xr;for(Xr=0;Xr<et;Xr++)Or(N[Xr]);for(Xr=N.length-1;Xr>et-1;Xr--)Or(N[Xr]);var Me=Br[Oe+"a"];if(Me&&(Me.type==="category"||Me.type==="multicategory")){var Be=Br[Oe+"LabelVal"];tr=tr.filter(function(Dr){var kt=Dr[Oe+"a"];return!kt||kt.type!=="category"&&kt.type!=="multicategory"?!0:Dr[Oe+"LabelVal"]===Be})}N=tr,Te()}var or=e._hoverdata,vr=[],Ft=fD(e),Kt=cD(e);for(let Dr of N){var ua=uo.makeEventData(Dr,Dr.trace,Dr.cd);if(Dr.hovertemplate!==!1){var ga=!1;Dr.cd[Dr.index]&&Dr.cd[Dr.index].ht&&(ga=Dr.cd[Dr.index].ht),Dr.hovertemplate=ga||Dr.trace.hovertemplate||!1}if(Dr.xa&&Dr.ya){var Ut=Dr.x0+Dr.xa._offset,Rt=Dr.x1+Dr.xa._offset,na=Dr.y0+Dr.ya._offset,Gt=Dr.y1+Dr.ya._offset,Ma=Math.min(Ut,Rt),Ca=Math.max(Ut,Rt),An=Math.min(na,Gt),cn=Math.max(na,Gt);ua.bbox={x0:Ma+Kt,x1:Ca+Kt,y0:An+Ft,y1:cn+Ft},ua.xPixel=(Ut+Rt)/2,ua.yPixel=(na+Gt)/2}Dr.eventData=[ua],vr.push(ua)}e._hoverdata=vr;var Sa=h==="y"&&(Q.length>1||N.length>1)||h==="closest"&&J&&N.length>1,za=Sn.combine(l.plot_bgcolor||Sn.background,l.paper_bgcolor),Na=sD(N,{gd:e,hovermode:h,rotateLabels:Sa,bgColor:za,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Ea=Na.hoverLabels;if(uo.isUnifiedHover(h)||(eD(Ea,Sa,l,Na.commonLabelBoundingBox),H2(Ea,Sa,l._invScaleX,l._invScaleY),Na.mathjaxPromise&&Na.mathjaxPromise.then(function(){e._hoverdata===vr&&(eD(Ea,Sa,l,Na.commonLabelBoundingBox),H2(Ea,Sa,l._invScaleX,l._invScaleY),Ea.each(function(){var Dr=Nu.select(this);Ya.repositionMathGroup(Dr.select("text.nums")),Ya.repositionMathGroup(Dr.select("text.name"))}))})),n&&n.tagName){var vn=hc.getComponentMethod("annotations","hasClickToShow")(e,vr);wie(Nu.select(n),vn?"pointer":"")}var Ia=Rie(e,r,or);if(!n||a||!Ia&&!l.hoveranywhere)return;or&&Ia&&e.emit("plotly_unhover",{event:r,points:or}),dn(e._hoverdata);function dn(Dr){e.emit("plotly_hover",{event:r,points:Dr,xaxes:D,yaxes:P,xvals:uo.c2dApply(D,ee),yvals:uo.c2dApply(P,ae),xPixel:r.pointerX,yPixel:r.pointerY})}}function lD(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 Fie=/<extra>([\s\S]*)<\/extra>/;function Bb(e,r){return B2(e,Ya.getMathOrTextNode(r))}function sD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||pc.HOVERFONT,d=r.fontSize||pc.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,b=r.fontLineposition||a.font.lineposition,C=r.fontShadow||a.font.shadow,x=e[0],_=x.xa,M=x.ya,A=n.charAt(0),k=A+"Label",D=x[k];if(D===void 0&&_.type==="multicategory")for(var P=0;P<e.length&&(D=e[P][k],D===void 0);P++);var z=B2(t,s),B=z.top,Y=z.width,H=z.height,X=D!==void 0&&x.distance<=r.hoverdistance&&(n==="x"||n==="y");if(X){var N=!0,Q,ee;for(Q=0;Q<e.length;Q++)if(N&&e[Q].zLabel===void 0&&(N=!1),ee=e[Q].hoverinfo||e[Q].trace.hoverinfo,ee){var ae=Array.isArray(ee)?ee:ee.split("+");if(ae.indexOf("all")===-1&&ae.indexOf(n)===-1){X=!1;break}}N&&(X=!1)}var re=l.selectAll("g.axistext").data(X?[0]:[]);re.enter().append("g").classed("axistext",!0),re.exit().remove();var ie={minX:0,maxX:0,minY:0,maxY:0};if(re.each(function(){var Ce=Nu.select(this),Ue=Za.ensureSingle(Ce,"path","",function(tr){tr.style({"stroke-width":"1px"})}),cr=Za.ensureSingle(Ce,"text",""),Mr=u.bgcolor||Sn.defaultLine,hr=u.bordercolor||Sn.contrast(Mr),kr=Sn.contrast(Mr),Lr=u.font,Br={weight:Lr.weight||h,style:Lr.style||p,variant:Lr.variant||m,textcase:Lr.textcase||y,lineposition:Lr.lineposition||b,shadow:Lr.shadow||C,family:Lr.family||c,size:Lr.size||d,color:Lr.color||kr};Ue.style({fill:Mr,stroke:hr});var et=Ya.isPureTex(String(D)),lr;et&&f.push(new Promise(function(tr){lr=function(){if(!cr.node().parentNode){tr();return}Cr(),Ya.repositionMathGroup(cr),tr()}})),cr.text(D).call(Bs.font,Br).attr("data-notex",et?null:1).call(Ya.positionText,0,0).call(Ya.convertToTspans,t,lr),Cr();function Cr(){Ce.attr("transform",""),Ya.positionText(cr,0,0),Ya.repositionMathGroup(cr);var tr=Bb(t,cr),qr,Zr;if(n==="x"){var Or=_.side==="top"?"-":"";cr.attr("text-anchor","middle").call(Ya.positionText,0,_.side==="top"?B-tr.bottom-Pa-Ht:B-tr.top+Pa+Ht),qr=_._offset+(x.x0+x.x1)/2,Zr=M._offset+(_.side==="top"?0:M._length);var Xr=tr.width/2+Ht,Me=qr;qr<Xr?Me=Xr:qr>a.width-Xr&&(Me=a.width-Xr),Ue.attr("d","M"+(qr-Me)+",0L"+(qr-Me+Pa)+","+Or+Pa+"H"+Xr+"v"+Or+(Ht*2+tr.height)+"H"+-Xr+"V"+Or+Pa+"H"+(qr-Me-Pa)+"Z"),qr=Me,ie.minX=qr-Xr,ie.maxX=qr+Xr,_.side==="top"?(ie.minY=Zr-(Ht*2+tr.height),ie.maxY=Zr-Ht):(ie.minY=Zr+Ht,ie.maxY=Zr+(Ht*2+tr.height))}else{var Be,or,vr;M.side==="right"?(Be="start",or=1,vr="",qr=_._offset+_._length):(Be="end",or=-1,vr="-",qr=_._offset),Zr=M._offset+(x.y0+x.y1)/2,cr.attr("text-anchor",Be),Ue.attr("d","M0,0L"+vr+Pa+","+Pa+"V"+(Ht+tr.height/2)+"h"+vr+(Ht*2+tr.width)+"V-"+(Ht+tr.height/2)+"H"+vr+Pa+"V-"+Pa+"Z"),ie.minY=Zr-(Ht+tr.height/2),ie.maxY=Zr+(Ht+tr.height/2),M.side==="right"?(ie.minX=qr+Pa,ie.maxX=qr+Pa+(Ht*2+tr.width)):(ie.minX=qr-Pa-(Ht*2+tr.width),ie.maxX=qr-Pa);var Ft=tr.height/2,Kt=B-tr.top-Ft,ua="clip"+a._uid+"commonlabel"+M._id,ga;if(qr<tr.width+2*Ht+Pa){ga="M-"+(Pa+Ht)+"-"+Ft+"h-"+(tr.width-Ht)+"V"+Ft+"h"+(tr.width-Ht)+"Z";var Ut=tr.width-qr+Ht;Ya.positionText(cr,Ut,Kt),Be==="end"&&cr.selectAll("tspan").each(function(){var na=Nu.select(this),Gt=Bs.tester.append("text").text(na.text()).call(Bs.font,Br),Ma=B2(t,Gt.node());Math.round(Ma.width)<Math.round(tr.width)&&na.attr("x",Ut-Ma.width),Gt.remove()})}else Ya.positionText(cr,or*(Ht+Pa),Kt),ga=null;var Rt=a._topclips.selectAll("#"+ua).data(ga?[0]:[]);Rt.enter().append("clipPath").attr("id",ua).append("path"),Rt.exit().remove(),Rt.select("path").attr("d",ga),Bs.setClipUrl(cr,ga?ua:null,t)}Ce.attr("transform",Ib(qr,Zr))}}),uo.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Ce=e.filter(Ue=>Ue.hoverinfo!=="none");if(Ce.length===0)return[];var ue=a.hoverlabel,xe=ue.font,Ee=Ce[0],Re=((n==="x unified"?Ee.xa:Ee.ya).unifiedhovertitle||{}).text,Ne=Re?Za.hovertemplateString({data:n==="x unified"?[{xa:Ee.xa,x:Ee.xVal}]:[{ya:Ee.ya,y:Ee.yVal}],fallback:Ee.trace.hovertemplatefallback,locale:a._d3locale,template:Re}):D,ke={showlegend:!0,legend:{title:{text:Ne,font:xe},font:xe,bgcolor:ue.bgcolor,bordercolor:ue.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},We={font:xe};Aie(ke,We,t._fullData);var W=We.legend;W.entries=[];for(var se=0;se<Ce.length;se++){var de=Ce[se];if(de.hoverinfo!=="none"){var K=QL(de,!0,n,a,D),J=K[0],ce=K[1];de.name=ce,ce!==""?de.text=ce+" : "+J:de.text=J;var be=de.cd[de.index];be&&(be.mc&&(de.mc=be.mc),be.mcc&&(de.mc=be.mcc),be.mlc&&(de.mlc=be.mlc),be.mlcc&&(de.mlc=be.mlcc),be.mlw&&(de.mlw=be.mlw),be.mrc&&(de.mrc=be.mrc),be.dir&&(de.dir=be.dir)),de._distinct=!0,W.entries.push([de])}}W.entries.sort(function(Ue,cr){var Mr=a.hoversort;if(Mr==="value descending"||Mr==="value ascending"){var hr=n.charAt(0)==="x"?"y":"x",kr=Ue[0][hr+"LabelVal"],Lr=cr[0][hr+"LabelVal"];if(kr!==Lr)return Mr==="value descending"?Lr-kr:kr-Lr}return Ue[0].trace.index-cr[0].trace.index}),W.layer=l,W._inHover=!0,W._groupTitleFont=ue.grouptitlefont,Tie(t,W);var Le=l.select("g.legend"),je=B2(t,Le.node()),er=je.width+2*Ht,$e=je.height+2*Ht,ar=Ce[0],Ie=(ar.x0+ar.x1)/2,ir=(ar.y0+ar.y1)/2,dr=!(hc.traceIs(ar.trace,"bar-like")||hc.traceIs(ar.trace,"box-violin")),Ar,Qe;A==="y"?dr?(Qe=ir-Ht,Ar=ir+Ht):(Qe=Math.min.apply(null,Ce.map(function(Ue){return Math.min(Ue.y0,Ue.y1)})),Ar=Math.max.apply(null,Ce.map(function(Ue){return Math.max(Ue.y0,Ue.y1)}))):Qe=Ar=Za.mean(Ce.map(function(Ue){return(Ue.y0+Ue.y1)/2}))-$e/2;var mr,Pr;A==="x"?dr?(mr=Ie+Ht,Pr=Ie-Ht):(mr=Math.max.apply(null,Ce.map(function(Ue){return Math.max(Ue.x0,Ue.x1)})),Pr=Math.min.apply(null,Ce.map(function(Ue){return Math.min(Ue.x0,Ue.x1)}))):mr=Pr=Za.mean(Ce.map(function(Ue){return(Ue.x0+Ue.x1)/2}))-er/2;var Te=_._offset,Oe=M._offset;Ar+=Oe,mr+=Te,Pr+=Te-er,Qe+=Oe-$e;var xr,Rr;return mr+er<Y&&mr>=0?xr=mr:Pr+er<Y&&Pr>=0?xr=Pr:Te+er<Y?xr=Te:mr-Ie<Ie-Pr+er?xr=Y-er:xr=0,xr+=Ht,Ar+$e<H&&Ar>=0?Rr=Ar:Qe+$e<H&&Qe>=0?Rr=Qe:Oe+$e<H?Rr=Oe:Ar-ir<ir-Qe+$e?Rr=H-$e:Rr=0,Rr+=Ht,Le.attr("transform",Ib(xr-1,Rr-1)),Le}var zr=l.selectAll("g.hovertext").data(e,function(Ce){return lD(Ce)});return zr.enter().append("g").classed("hovertext",!0).each(function(){var Ce=Nu.select(this);Ce.append("rect").call(Sn.fill,Sn.addOpacity(o,.8)),Ce.append("text").classed("name",!0),Ce.append("path").style("stroke-width","1px"),Ce.append("text").classed("nums",!0).call(Bs.font,{weight:h,style:p,variant:m,textcase:y,lineposition:b,shadow:C,family:c,size:d})}),zr.exit().remove(),zr.each(function(Ce){var Ue=Nu.select(this).attr("transform",""),cr=Ce.color;Array.isArray(cr)&&(cr=cr[Ce.eventData[0].pointNumber]);var Mr=Ce.bgcolor||cr,hr=Sn.combine(Sn.opacity(Mr)?Mr:Sn.defaultLine,o),kr=Sn.combine(Sn.opacity(cr)?cr:Sn.defaultLine,o),Lr=Ce.borderColor||Sn.contrast(hr),Br=QL(Ce,X,n,a,D,Ue),et=Br[0],lr=Br[1],Cr=!!(lr&&lr!==et),tr=Ya.isPureTex(et),qr=Cr&&Ya.isPureTex(lr),Zr=(tr?1:0)+(qr?1:0),Or;Zr&&f.push(new Promise(function(or){Or=function(){--Zr===0&&(Ue.node().parentNode&&Be(),or())}}));var Xr=Ue.select("text.nums").call(Bs.font,{family:Ce.fontFamily||c,size:Ce.fontSize||d,color:Ce.fontColor||Lr,weight:Ce.fontWeight||h,style:Ce.fontStyle||p,variant:Ce.fontVariant||m,textcase:Ce.fontTextcase||y,lineposition:Ce.fontLineposition||b,shadow:Ce.fontShadow||C}).text(et).attr("data-notex",tr?null:1).call(Ya.positionText,0,0).call(Ya.convertToTspans,t,tr?Or:void 0),Me=Ue.select("text.name");Cr?Me.call(Bs.font,{family:Ce.fontFamily||c,size:Ce.fontSize||d,color:kr,weight:Ce.fontWeight||h,style:Ce.fontStyle||p,variant:Ce.fontVariant||m,textcase:Ce.fontTextcase||y,lineposition:Ce.fontLineposition||b,shadow:Ce.fontShadow||C}).text(lr).attr("data-notex",qr?null:1).call(Ya.positionText,0,0).call(Ya.convertToTspans,t,qr?Or:void 0):(Me.remove(),Ue.select("rect").remove()),Be();function Be(){Ue.attr("transform",""),Xr.call(Ya.positionText,0,0),Ya.repositionMathGroup(Xr),Cr&&(Me.call(Ya.positionText,0,0),Ya.repositionMathGroup(Me)),Ue.select("path").style({fill:hr,stroke:Lr});var or=Ce.xa._offset+(Ce.x0+Ce.x1)/2,vr=Ce.ya._offset+(Ce.y0+Ce.y1)/2,Ft=Math.abs(Ce.x1-Ce.x0),Kt=Math.abs(Ce.y1-Ce.y0),ua=0,ga=0;if(Cr){var Ut=Bb(t,Me);ua=Ut.width+2*Ht,ga=Ut.height+2*Ht}var Rt=Bb(t,Xr),na=Rt.width/a._invScaleX,Gt=Rt.height/a._invScaleY;Ce.ty0=(B-Rt.top)/a._invScaleY,Ce.bx=na+2*Ht,Ce.by=Math.max(Gt+2*Ht,ga),Ce.anchor="start",Ce.txwidth=na,Ce.tx2width=ua,Ce.offset=0;var Ma=(na+Pa+Ht+ua)*a._invScaleX,Ca,An;if(i)Ce.pos=or,Ca=vr+Kt/2+Ma<=H,An=vr-Kt/2-Ma>=0,(Ce.idealAlign==="top"||!Ca)&&An?(vr-=Kt/2,Ce.anchor="end"):Ca?(vr+=Kt/2,Ce.anchor="start"):Ce.anchor="middle",Ce.crossPos=vr;else{if(Ce.pos=vr,Ca=or+Ft/2+Ma<=Y,An=or-Ft/2-Ma>=0,(Ce.idealAlign==="left"||!Ca)&&An)or-=Ft/2,Ce.anchor="end";else if(Ca)or+=Ft/2,Ce.anchor="start";else{Ce.anchor="middle";var cn=Ma/2,Sa=or+cn-Y,za=or-cn;Sa>0&&(or-=Sa),za<0&&(or+=-za)}Ce.crossPos=or}Xr.attr("text-anchor",Ce.anchor),ua&&Me.attr("text-anchor",Ce.anchor),Ue.attr("transform",Ib(or,vr)+(i?_ie(oD):""))}}),{hoverLabels:zr,commonLabelBoundingBox:ie,mathjaxPromise:f.length?Promise.all(f):null}}function QL(e,r,t,a,n,i){var c,d;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Za.templateString(e.name,e.trace._meta)),o=nD(e.name,e.nameLength));var s=t.charAt(0),u=s==="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[s+"Label"]===n?l=e[u+"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),(d=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),l=Za.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),l=l.replace(Fie,(p,m)=>(o=nD(m,e.nameLength),""))}return[l,o]}function eD(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,d=a.maxX,h=a.minY,p=a.maxY,m=function(Q){return Q*t._invScaleX},y=function(Q){return Q*t._invScaleY};e.each(function(Q){var ee=Q[n],ae=Q[i],re=ee._id.charAt(0)==="x",ie=ee.range;f===0&&ie&&ie[0]>ie[1]!==re&&(l=-1);var ue=0,xe=re?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ee=uD(Q,r),Re=Q.anchor,Ne=Re==="end"?-1:1,ke,We;if(Re==="middle")ke=Q.crossPos+(re?y(Ee.y-Q.by/2):m(Q.bx/2+Q.tx2width/2)),We=ke+(re?y(Q.by):m(Q.bx));else if(re)ke=Q.crossPos+y(Pa+Ee.y)-y(Q.by/2-Pa),We=ke+y(Q.by);else{var W=m(Ne*Pa+Ee.x),se=W+m(Ne*Q.bx);ke=Q.crossPos+Math.min(W,se),We=Q.crossPos+Math.max(W,se)}re?h!==void 0&&p!==void 0&&Math.min(We,p)-Math.max(ke,h)>1&&(ae.side==="left"?(ue=ae._mainLinePosition,xe=t.width):xe=ae._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(We,d)-Math.max(ke,c)>1&&(ae.side==="top"?(ue=ae._mainLinePosition,xe=t.height):xe=ae._mainLinePosition)}u[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(re?kie:1)/2,pmin:ue,pmax:xe}]}),u.sort(function(Q,ee){return Q[0].posref-ee[0].posref||l*(ee[0].traceIndex-Q[0].traceIndex)});var b,C,x,_,M,A,k;function D(Q){var ee=Q[0],ae=Q[Q.length-1];if(C=ee.pmin-ee.pos-ee.dp+ee.size,x=ae.pos+ae.dp+ae.size-ee.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 re=0;for(_=0;_<Q.length;_++)A=Q[_],A.pos+A.dp+A.size>ee.pmax&&re++;for(_=Q.length-1;_>=0&&!(re<=0);_--)A=Q[_],A.pos>ee.pmax-1&&(A.del=!0,re--);for(_=0;_<Q.length&&!(re<=0);_++)if(A=Q[_],A.pos<ee.pmin+1)for(A.del=!0,re--,x=A.size*2,M=Q.length-1;M>=0;M--)Q[M].dp-=x;for(_=Q.length-1;_>=0&&!(re<=0);_--)A=Q[_],A.pos+A.dp+A.size>ee.pmax&&(A.del=!0,re--)}}}for(;!b&&o<=s;){for(o++,b=!0,_=0;_<u.length-1;){var P=u[_],z=u[_+1],B=P[P.length-1],Y=z[0];if(C=B.pos+B.dp+B.size-Y.pos-Y.dp+Y.size,C>.01){for(M=z.length-1;M>=0;M--)z[M].dp+=C;for(P.push.apply(P,z),u.splice(_+1,1),k=0,M=P.length-1;M>=0;M--)k+=P[M].dp;for(x=k/P.length,M=P.length-1;M>=0;M--)P[M].dp-=x;b=!1}else _++}u.forEach(D)}for(_=u.length-1;_>=0;_--){var H=u[_];for(M=H.length-1;M>=0;M--){var X=H[M],N=X.datum;N.offset=X.dp,N.del=X.del}}}function uD(e,r){var t=0,a=e.offset;return r&&(a*=-Sie,t=e.offset*Cie),{x:t,y:a}}function qie(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Pa+Ht),a=t+r*(e.txwidth+Ht),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Ht),{alignShift:r,textShiftX:t,text2ShiftX:a}}function H2(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Nu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=qie(o),d=uD(o,r),h=d.x,p=d.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Pa+h)+","+i(Pa+p)+"v"+i(o.by/2-Pa)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Pa+h)+"V"+i(p-Pa)+"Z":b="M"+n(f*Pa+h)+","+i(p-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=h+c.textShiftX,x=p+o.ty0-o.by/2+Ht,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=m?-o.bx/2-o.tx2width/2+Ht:-o.bx-Ht):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=m?o.bx/2-o.tx2width/2-Ht:o.bx+Ht)),s.call(Ya.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Ya.positionText,n(c.text2ShiftX+c.alignShift*Ht+h),i(p+o.ty0-o.by/2+Ht)),l.select("rect").call(Bs.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+h),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Pie(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(d){return d||zu(d)&&d===0}var l=Array.isArray(t)?function(d,h){var p=Za.castOption(n,t,d);return o(p)?p:Za.extractOption({},a,"",h)}:function(d,h){return Za.extractOption(i,a,d,h)};function s(d,h,p){var m=l(h,p);o(m)&&(e[d]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("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=Za.constrain(e.x0,0,e.xa._length),e.x1=Za.constrain(e.x1,0,e.xa._length),e.y0=Za.constrain(e.y0,0,e.ya._length),e.y1=Za.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Wl.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:Wl.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 u=Wl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Wl.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Wl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Wl.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 rD(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=Wl.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function tD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Sn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var d=r.hLinePoint,h,p;u=d&&d.xa,f=d&&d.ya;var m=f.spikesnap;m==="cursor"?(h=o.pointerX,p=o.pointerY):(h=u._offset+d.x,p=f._offset+d.y);var y=Sn.wcagContrast(d.color,c)<1.5?Sn.contrast(c):d.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=Wl.getPxPosition(e,f),M,A;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=_,A=h),b.indexOf("across")!==-1){let ae=rD(e,f,i);M=ae[0],A=ae[1]}a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"stroke-width":C,stroke:x,"stroke-dasharray":Bs.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"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:p,r:C,fill:x}).classed("spikeline",!0)}if(s){var k=r.vLinePoint,D,P;u=k&&k.xa,f=k&&k.ya;var z=u.spikesnap;z==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+k.x,P=f._offset+k.y);var B=Sn.wcagContrast(k.color,c)<1.5?Sn.contrast(c):k.color,Y=u.spikemode,H=u.spikethickness,X=u.spikecolor||B,N=Wl.getPxPosition(e,u),Q,ee;if(Y.indexOf("toaxis")!==-1||Y.indexOf("across")!==-1){if(Y.indexOf("toaxis")!==-1&&(Q=N,ee=P),Y.indexOf("across")!==-1){let ae=rD(e,u,i);Q=ae[0],ee=ae[1]}a.insert("line",":first-child").attr({x1:D,x2:D,y1:Q,y2:ee,"stroke-width":H,stroke:X,"stroke-dasharray":Bs.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:Q,y2:ee,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}Y.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:N-(u.side!=="top"?H:-H),r:H,fill:X}).classed("spikeline",!0)}}}function Rie(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 aD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function nD(e,r){return Ya.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function zie(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];hc.traceIs(l.trace,"bar-like")||hc.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 iD(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],s=l[e+"Start"];s===void 0&&(s=l[e]);var u=l[e+"End"];u===void 0&&(u=l[e]);var f=u-s;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 fD=e=>e.offsetTop+e.clientTop,cD=e=>e.offsetLeft+e.clientLeft;function B2(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Za.apply3DTransform(t._invTransform)(n,i),u=Za.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],d=u[0],h=u[1];return{x:f,y:c,width:d-f,height:h-c,top:Math.min(c,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(c,h)}}});var O2=oe((kbe,vD)=>{"use strict";var Nie=pr(),Iie=Nt(),Bie=Pu().isUnifiedHover;vD.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&&Bie(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Iie.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),Nie.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var hD=oe((Cbe,dD)=>{"use strict";var Hie=pr(),Oie=O2(),Uie=g1();dD.exports=function(r,t){function a(n,i){return Hie.coerce(r,t,Uie,n,i)}Oie(r,t,a)}});var gD=oe((Sbe,mD)=>{"use strict";var pD=pr(),Gie=Pp(),Yie=O2();mD.exports=function(r,t,a,n){function i(l,s){return pD.coerce(r,t,Gie,l,s)}var o=pD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Yie(r,t,i,o)}});var Gb=oe((Ebe,yD)=>{"use strict";var Vie=pr(),Xie=g1();yD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Vie.coerce(r,t,Xie,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var xD=oe((Lbe,_D)=>{"use strict";var bD=pr(),jie=g1(),Wie=Gb(),Zie=O2();_D.exports=function(r,t){function a(u,f){return bD.coerce(r,t,jie,u,f)}var n=Wie(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"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),Zie(r,t,a),bD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var AD=oe((Dbe,MD)=>{"use strict";var Yb=pr(),wD=xt();MD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Yb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!wD.traceIs(l,"pie-like")){var s=wD.traceIs(l,"2dMap")?$ie:Yb.fillArray;s(l.hoverinfo,o,"hi",n(l)),l.hovertemplate&&s(l.hovertemplate,o,"ht"),l.hoverlabel&&(s(l.hoverlabel.bgcolor,o,"hbg"),s(l.hoverlabel.bordercolor,o,"hbc"),s(l.hoverlabel.font.size,o,"hts"),s(l.hoverlabel.font.color,o,"htc"),s(l.hoverlabel.font.family,o,"htf"),s(l.hoverlabel.font.weight,o,"htw"),s(l.hoverlabel.font.style,o,"hty"),s(l.hoverlabel.font.variant,o,"htv"),s(l.hoverlabel.namelength,o,"hnl"),s(l.hoverlabel.align,o,"hta"),s(l.hoverlabel.showarrow,o,"htsa"))}}};function $ie(e,r,t,a){a=a||Yb.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var CD=oe((Fbe,kD)=>{"use strict";var Jie=xt(),TD=Pu(),Kie=Ub().hover;kD.exports=function(r,t,a){var n=Jie.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Kie(r,t,a,!0);function o(){var s,u,f,c,d,h;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&TD.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&TD.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(h=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 Zl=oe((qbe,LD)=>{"use strict";var Qie=qt(),U2=pr(),eoe=al(),eh=Pu(),SD=g1(),ED=Ub();LD.exports={moduleType:"component",name:"fx",constants:(id(),_r(nd)),schema:{layout:SD},attributes:Pp(),layoutAttributes:SD,supplyLayoutGlobalDefaults:hD(),supplyDefaults:gD(),supplyLayoutDefaults:xD(),calc:AD(),getDistanceFunction:eh.getDistanceFunction,getClosest:eh.getClosest,inbox:eh.inbox,quadrature:eh.quadrature,appendArrayPointValue:eh.appendArrayPointValue,castHoverOption:toe,castHoverinfo:aoe,hover:ED.hover,unhover:eoe.unhover,loneHover:ED.loneHover,loneUnhover:roe,click:CD()};function roe(e){var r=U2.isD3Selection(e)?e:Qie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function toe(e,r,t){return U2.castOption(e,r,"hoverlabel."+t)}function aoe(e,r,t){function a(n){return U2.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return U2.castOption(e,t,"hoverinfo",a)}});var iv=oe(Iu=>{"use strict";Iu.selectMode=function(e){return e==="lasso"||e==="select"};Iu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Iu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Iu.selectingOrDrawing=function(e){return Iu.freeMode(e)||Iu.rectMode(e)}});var G2=oe((Rbe,DD)=>{"use strict";DD.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 Y2=oe((zbe,FD)=>{"use strict";FD.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)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},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 V2={};Ua(V2,{CIRCLE_SIDES:()=>noe,SQRT2:()=>coe,cos45:()=>uoe,i000:()=>ioe,i090:()=>ooe,i180:()=>loe,i270:()=>soe,sin45:()=>foe});var noe,ioe,ooe,loe,soe,uoe,foe,coe,X2=Oa(()=>{"use strict";noe=32,ioe=0,ooe=8,loe=16,soe=24,uoe=Math.cos(Math.PI/4),foe=Math.sin(Math.PI/4),coe=Math.sqrt(2)});var j2=oe((Nbe,PD)=>{"use strict";var voe=pr().strTranslate;function qD(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 doe(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 hoe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return qD(e,t[r])}}function poe(e){return voe(e.xaxis._offset,e.yaxis._offset)}PD.exports={p2r:qD,r2p:doe,axValue:hoe,getTransform:poe}});var Bf=oe(Bu=>{"use strict";var moe=E6(),ND=(X2(),_r(V2)),ov=ND.CIRCLE_SIDES,Vb=ND.SQRT2,ID=j2(),RD=ID.p2r,zD=ID.r2p,goe=[0,3,4,5,6,1,2],yoe=[0,3,4,1,2];Bu.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,s=0;s<l;s++){var u=s;o==="Q"||o==="S"?u=yoe[s]:o==="C"&&(u=goe[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Bu.readPaths=function(e,r,t,a){var n=moe(e),i=[],o=-1,l=function(){o++,i[o]=[]},s,u=0,f=0,c,d,h=function(){c=u,d=f};h();for(var p=0;p<n.length;p++){var m=[],y,b,C,x,_=n[p][0],M=_;switch(_){case"M":l(),u=+n[p][1],f=+n[p][2],m.push([M,u,f]),h();break;case"Q":case"S":y=+n[p][1],C=+n[p][2],u=+n[p][3],f=+n[p][4],m.push([M,u,f,y,C]);break;case"C":y=+n[p][1],C=+n[p][2],b=+n[p][3],x=+n[p][4],u=+n[p][5],f=+n[p][6],m.push([M,u,f,y,C,b,x]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],m.push([M,u,f]);break;case"H":M="L",u=+n[p][1],m.push([M,u,f]);break;case"V":M="L",f=+n[p][1],m.push([M,u,f]);break;case"A":M="L";var A=+n[p][1],k=+n[p][2];+n[p][4]||(A=-A,k=-k);var D=u-A,P=f;for(s=1;s<=ov/2;s++){var z=2*Math.PI*s/ov;m.push([M,D+A*Math.cos(z),P+k*Math.sin(z)])}break;case"Z":(u!==c||f!==d)&&(u=c,f=d,m.push([M,u,f]));break}for(var B=(t||{}).domain,Y=r._fullLayout._size,H=t&&t.xsizemode==="pixel",X=t&&t.ysizemode==="pixel",N=a===!1,Q=0;Q<m.length;Q++){for(s=0;s+2<7;s+=2){var ee=m[Q][s+1],ae=m[Q][s+2];ee===void 0||ae===void 0||(u=ee,f=ae,t&&(t.xaxis&&t.xaxis.p2r?(N&&(ee-=t.xaxis._offset),H?ee=zD(t.xaxis,t.xanchor)+ee:ee=RD(t.xaxis,ee)):(N&&(ee-=Y.l),B?ee=B.x[0]+ee/Y.w:ee=ee/Y.w),t.yaxis&&t.yaxis.p2r?(N&&(ae-=t.yaxis._offset),X?ae=zD(t.yaxis,t.yanchor)-ae:ae=RD(t.yaxis,ae)):(N&&(ae-=Y.t),B?ae=B.y[1]-ae/Y.h:ae=1-ae/Y.h)),m[Q][s+1]=ee,m[Q][s+2]=ae)}i[o].push(m[Q].slice())}}return i};function rh(e,r){return Math.abs(e-r)<=1e-6}function W2(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Bu.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(!rh(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!rh(i,o))return!1}return!rh(e[0][1],e[1][1])&&!rh(e[0][1],e[3][1])?!1:!!(W2(e[0],e[1])*W2(e[0],e[3]))};Bu.pointsOnEllipse=function(e){var r=e.length;if(r!==ov+1)return!1;r=ov;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!rh(W2(e[t],e[i]),W2(e[a],e[n])))return!1}return!0};Bu.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Bu.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/Vb),l||(l=o=o/Vb);for(var s=[],u=0;u<ov;u++){var f=u*2*Math.PI/ov;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};Bu.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,s=(t+n)/2,u=Vb;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};Bu.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 J2=oe((Bbe,jD)=>{"use strict";var BD=qn(),YD=iv(),boe=YD.drawMode,_oe=YD.openMode,lv=(X2(),_r(V2)),HD=lv.i000,OD=lv.i090,UD=lv.i180,GD=lv.i270,xoe=lv.cos45,woe=lv.sin45,VD=j2(),Z2=VD.p2r,Hf=VD.r2p,Moe=Sf(),Aoe=Moe.clearOutline,$2=Bf(),Toe=$2.readPaths,koe=$2.writePaths,Coe=$2.ellipseOver,Soe=$2.fixDatesForPaths;function Eoe(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(!boe(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 s=o[l].path||"";s[s.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var u=XD(e,r,i);Aoe(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,d=[],h=0;h<o.length;h++){var p=a._fullLayout.shapes[h];if(d[h]=p._input,n!==void 0&&h===a._fullLayout._activeShapeIndex){var m=u;switch(p.type){case"line":case"rect":case"circle":var y=BD.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",m.x0-(p.x0shift||0)),c("x1",m.x1-(p.x1shift||0))):(c("x0",m.x0),c("x1",m.x1));var b=BD.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",m.y0-(p.y0shift||0)),c("y1",m.y1-(p.y1shift||0))):(c("y0",m.y0),c("y1",m.y1));break;case"path":c("path",m.path);break}}}return n===void 0?(d.push(u),d):f?f.getUpdateObj():{}}}}function XD(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),o=n._fullLayout.newshape,l=r.plotinfo,s=r.isActiveShape,u=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,d=!!l.domain||!l.yaxis,h=_oe(t),p=Toe(i,n,l,s),m={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":u._id,yref:d?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};h||(m.fillcolor=o.fillcolor,m.fillrule=o.fillrule);var y;if(p.length===1&&(y=p[0]),y&&y.length===5&&t==="drawrect")m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2];else if(y&&t==="drawline")m.type="line",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[1][1],m.y1=y[1][2];else if(y&&t==="drawcircle"){m.type="circle";var b=y[HD][1],C=y[OD][1],x=y[UD][1],_=y[GD][1],M=y[HD][2],A=y[OD][2],k=y[UD][2],D=y[GD][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=Hf(l.xaxis,b),C=Hf(l.xaxis,C),x=Hf(l.xaxis,x),_=Hf(l.xaxis,_)),z&&(M=Hf(l.yaxis,M),A=Hf(l.yaxis,A),k=Hf(l.yaxis,k),D=Hf(l.yaxis,D));var B=(C+_)/2,Y=(M+k)/2,H=(_-C+x-b)/2,X=(D-A+k-M)/2,N=Coe({x0:B,y0:Y,x1:B+H*xoe,y1:Y+X*woe});P&&(N.x0=Z2(l.xaxis,N.x0),N.x1=Z2(l.xaxis,N.x1)),z&&(N.y0=Z2(l.yaxis,N.y0),N.y1=Z2(l.yaxis,N.y1)),m.x0=N.x0,m.y0=N.y0,m.x1=N.x1,m.y1=N.y1}else m.type="path",u&&f&&Soe(p,u,f),m.path=koe(p),y=null;return m}jD.exports={newShapes:Eoe,createShapeObj:XD}});var jb=oe((Hbe,WD)=>{"use strict";var Loe=iv(),Doe=Loe.selectMode,Foe=Sf(),qoe=Foe.clearOutline,Xb=Bf(),Poe=Xb.readPaths,Roe=Xb.writePaths,zoe=Xb.fixDatesForPaths;WD.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,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,d=(i.layout||{}).selections||[];if(!Doe(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h<d.length)switch(i._fullLayout.selections[h].type){case"rect":c="select";break;case"path":c="lasso";break}}var p=Poe(n,i,l,f),m={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;p.length===1&&(y=p[0]),y&&y.length===5&&c==="select"?(m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2]):(m.type="path",s&&u&&zoe(p,s,u),m.path=Roe(p),y=null),qoe(i);for(var b=t.editHelpers,C=(b||{}).modifyItem,x=[],_=0;_<d.length;_++){var M=i._fullLayout.selections[_];if(!M){x[_]=M;continue}if(x[_]=M._input,f!==void 0&&_===i._fullLayout._activeSelectionIndex){var A=m;switch(M.type){case"rect":C("x0",A.x0),C("x1",A.x1),C("y0",A.y0),C("y1",A.y1);break;case"path":C("path",A.path);break}}}return f===void 0?(x.push(m),x):b?b.getUpdateObj():{}}}}});var th={};Ua(th,{numParams:()=>Ooe,paramIsX:()=>Boe,paramIsY:()=>Hoe,paramRE:()=>Ioe,segmentRE:()=>Noe});var Noe,Ioe,Boe,Hoe,Ooe,ah=Oa(()=>{"use strict";Noe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Ioe=/[^\s,]+/g,Boe={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:{}},Hoe={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:{}},Ooe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Uf=oe($n=>{"use strict";var Os=(ah(),_r(th)),ZD=pr(),Of=Ga();$n.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};$n.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};$n.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};$n.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};$n.extractPathCoords=function(e,r,t){var a=[],n=e.match(Os.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Os.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:ZD.cleanNumber(s);a.push(u)}}}),a};$n.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Os.segmentRE);if(!a)return 0;let n=t==="x"?Os.paramIsX:Os.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};$n.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=$n.shapePositionToRange(r);o=function(s){var u=Hs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=$n.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};$n.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=$n.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};$n.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};$n.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}};$n.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}};$n.getPathString=function(e,r){let t=r.type,a=Of.getRefType(r.xref),n=Of.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,d,h,p,m,y,b;function C(z,B,Y,H){var X;if(z)if(B==="domain")H?X=function(N){return z._offset+z._length*(1-N)}:X=function(N){return z._offset+z._length*N};else{let N=$n.shapePositionToRange(z);X=function(Q){return z._offset+z.r2p(N(Q,!0))},Y==="path"&&z.type==="date"&&(X=$n.decodeDate(X))}else H?X=function(N){return i.t+i.h*(1-N)}:X=function(N){return i.l+i.w*N};return X}if(a==="array"?(d=[],o=r.xref.map(function(z){return Of.getFromId(e,z)}),d=r.xref.map(function(z,B){return C(o[B],Of.getRefType(z),t,!1)})):(o=Of.getFromId(e,r.xref),d=C(o,a,t,!1)),n==="array"?(h=[],l=r.yref.map(function(z){return Of.getFromId(e,z)}),h=r.yref.map(function(z,B){return C(l[B],Of.getRefType(z),t,!0)})):(l=Of.getFromId(e,r.yref),h=C(l,n,t,!0)),t==="path")return Uoe(r,d,h);if(a==="array")s=Hs(o[0],r.x0shift),u=Hs(o[1],r.x1shift),p=d[0](r.x0)+s,m=d[1](r.x1)+u;else if(s=Hs(o,r.x0shift),u=Hs(o,r.x1shift),r.xsizemode==="pixel"){let z=d(r.xanchor);p=z+r.x0+s,m=z+r.x1+u}else p=d(r.x0)+s,m=d(r.x1)+u;if(n==="array")f=Hs(l[0],r.y0shift),c=Hs(l[1],r.y1shift),y=h[0](r.y0)+f,b=h[1](r.y1)+c;else if(f=Hs(l,r.y0shift),c=Hs(l,r.y1shift),r.ysizemode==="pixel"){let z=h(r.yanchor);y=z-r.y0+f,b=z-r.y1+c}else y=h(r.y0)+f,b=h(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var x=(p+m)/2,_=(y+b)/2,M=Math.abs(x-p),A=Math.abs(_-y),k="A"+M+","+A,D=x+M+","+_,P=x+","+(_-A);return"M"+D+k+" 0 1,1 "+P+k+" 0 0,1 "+D+"Z"};function Uoe(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Os.segmentRE,function(d){var h=0,p=d.charAt(0),m=Os.paramIsX[p],y=Os.paramIsY[p],b=Os.numParams[p];let C=m.drawn!==void 0,x=y.drawn!==void 0,_=s?r[f]:r,M=u?t[c]:t;var A=d.slice(1).replace(Os.paramRE,function(k){return m[h]?n==="pixel"?k=_(o)+Number(k):k=_(k):y[h]&&(i==="pixel"?k=M(l)-Number(k):k=M(k)),h++,h>b&&(k="X"),k});return h>b&&(A=A.replace(/[\s,]*X.*/,""),ZD.log("Ignoring extra params in segment "+d)),C&&f++,x&&c++,p+A})}$n.getPixelShift=Hs;function Hs(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 Wb=oe((Ube,KD)=>{"use strict";var Goe=pr(),Us=Ga(),$D=hi(),JD=da(),Yoe=Bf().readPaths,mc=Uf(),Voe=mc.getPathString,nh=pm(),Xoe=(di(),_r(vi)).FROM_TL;KD.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=Us.getFromId(r,a.xref),s=Us.getFromId(r,a.yref);let ue=Array.isArray(a.xref),xe=Array.isArray(a.yref);for(var u in nh){var f=typeof nh[u]=="function",c=!ue||nh.simpleXVariables.includes(u),d=!xe||nh.simpleYVariables.includes(u);if(f&&c&&d){var h=nh[u](a,l,s);h!==void 0&&(o[u]=h)}}}i=Goe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),C=b.append("text").attr(y).classed("shape-label-text",!0).text(i),x,_,M,A;if(a.path){var k=Voe(r,a),D=Yoe(k,r);x=1/0,M=1/0,_=-1/0,A=-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],Y=1;Y<B.length;Y+=2){var H=B[Y],X=B[Y+1];x=Math.min(x,H),_=Math.max(_,H),M=Math.min(M,X),A=Math.max(A,X)}}else{let ue=Array.isArray(a.xref),xe=Array.isArray(a.yref),Ee=Us.getFromId(r,ue?a.xref[0]:a.xref),Re=Us.getFromId(r,ue?a.xref[1]:a.xref),Ne=Us.getFromId(r,xe?a.yref[0]:a.yref),ke=Us.getFromId(r,xe?a.yref[1]:a.yref),We=Us.getRefType(ue?a.xref[0]:a.xref),W=Us.getRefType(ue?a.xref[1]:a.xref),se=Us.getRefType(xe?a.yref[0]:a.yref),de=Us.getRefType(xe?a.yref[1]:a.yref),K=(ce,be,Le,je)=>mc.getDataToPixel(r,Le,be,!1,je)(ce),J=(ce,be,Le,je)=>mc.getDataToPixel(r,Le,be,!0,je)(ce);if(a.xsizemode==="pixel"){let ce=K(a.xanchor,void 0,Ee,We),be=mc.getPixelShift(Ee,a.x0shift),Le=mc.getPixelShift(Ee,a.x1shift);x=ce+a.x0+be,_=ce+a.x1+Le}else x=K(a.x0,a.x0shift,Ee,We),_=K(a.x1,a.x1shift,Re,W);if(a.ysizemode==="pixel"){let ce=J(a.yanchor,void 0,Ne,se),be=mc.getPixelShift(Ne,a.y0shift),Le=mc.getPixelShift(Ne,a.y1shift);M=ce-a.y0+be,A=ce-a.y1+Le}else M=J(a.y0,a.y0shift,Ne,se),A=J(a.y1,a.y1shift,ke,de)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=joe(x,M,_,A):N=0),C.call(function(ue){return ue.call(JD.font,m).attr({}),$D.convertToTspans(ue,r),ue});var Q=JD.bBox(C.node()),ee=Woe(x,M,_,A,a,N,Q),ae=ee.textx,re=ee.texty,ie=ee.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:re,x:ae,transform:"rotate("+N+","+ae+","+re+")"}).call($D.positionText,ae,re)}};function joe(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 Woe(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,d=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,m=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),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":t<e?p="right":p="center":t>e?p="right":t<e?p="left":p="center":l==="end"?s==="auto"?t>e?p="right":t<e?p="left":p="center":t>e?p="left":t<e?p="right":p="center":p="center");var _={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(s==="auto"){var A=M[m];C=-u*d*A,x=u*h*A}else{var k=_[p],D=M[m];C=u*k,x=u*D}y=y+C,b=b+x}else C=u+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-C,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+C,p==="auto"&&(p="left")):(y=(e+t)/2,p==="auto"&&(p="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,x=u,m==="bottom"?b=b-x:m==="top"&&(b=b+x);var P=Xoe[m],z=n.label.font.size,B=o.height,Y=(B*P-z)*d,H=-(B*P-z)*h;return{textx:y+Y,texty:b+H,xanchor:p}}});var eg=oe((Gbe,oF)=>{"use strict";var Zoe=pr(),$oe=Zoe.strTranslate,QD=al(),tF=iv(),Joe=tF.drawMode,aF=tF.selectMode,nF=xt(),eF=Nt(),Q2=(X2(),_r(V2)),Koe=Q2.i000,Qoe=Q2.i090,ele=Q2.i180,rle=Q2.i270,tle=Sf(),iF=tle.clearOutlineControllers,$b=Bf(),K2=$b.pointsOnRectangle,Zb=$b.pointsOnEllipse,ale=$b.writePaths,nle=J2().newShapes,ile=J2().createShapeObj,ole=jb(),lle=Wb();oF.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(Zb(r[0])||a.hasText)&&l({redrawing:!0})}function l(ee){var ae={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,ae=nle(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,ae=ole(t,a),i._fullLayout._reselect=!0),Object.keys(ae).length&&nF.call((ee||{}).redrawing?"relayout":"_guiRelayout",i,ae)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Joe(f),d=aF(f);(c||d)&&(i._fullLayout._outlining=!0),iF(i),t.attr("d",ale(r));var h,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=sle([],r);var C=u.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=u.select(".label-temp"),_=ile(t,a,a.dragmode);lle(i,"label-temp",_,x)}function M(ee){m=+ee.srcElement.getAttribute("data-i"),y=+ee.srcElement.getAttribute("data-j"),h[m][y].moveFn=A}function A(ee,ae){if(r.length){var re=b[m][y][1],ie=b[m][y][2],ue=r[m],xe=ue.length;if(K2(ue)){var Ee=ee,Re=ae;if(a.isActiveSelection){var Ne=rF(ue,y);Ne[1]===ue[y][1]?Re=0:Ee=0}for(var ke=0;ke<xe;ke++)if(ke!==y){var We=ue[ke];We[1]===ue[y][1]&&(We[1]=re+Ee),We[2]===ue[y][2]&&(We[2]=ie+Re)}if(ue[y][1]=re+Ee,ue[y][2]=ie+Re,!K2(ue))for(var W=0;W<xe;W++)for(var se=0;se<ue[W].length;se++)ue[W][se]=b[m][W][se]}else ue[y][1]=re+ee,ue[y][2]=ie+ae;o()}}function k(){l()}function D(){if(r.length&&r[m]&&r[m].length){for(var ee=[],ae=0;ae<r[m].length;ae++)ae!==y&&ee.push(r[m][ae]);ee.length>1&&!(ee.length===2&&ee[1][0]==="Z")&&(y===0&&(ee[0][0]="M"),r[m]=ee,o(),l())}}function P(ee,ae){if(ee===2){m=+ae.srcElement.getAttribute("data-i"),y=+ae.srcElement.getAttribute("data-j");var re=r[m];!K2(re)&&!Zb(re)&&D()}}function z(ee){h=[];for(var ae=0;ae<r.length;ae++){var re=r[ae],ie=K2(re),ue=!ie&&Zb(re);h[ae]=[];for(var xe=re.length,Ee=0;Ee<xe;Ee++)if(re[Ee][0]!=="Z"&&!(ue&&Ee!==Koe&&Ee!==Qoe&&Ee!==ele&&Ee!==rle)){var Re=ie&&a.isActiveSelection,Ne;Re&&(Ne=rF(re,Ee));var ke=re[Ee][1],We=re[Ee][2],W=ee.append(Re?"rect":"circle").attr("data-i",ae).attr("data-j",Ee).style({fill:eF.background,stroke:eF.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Re){var se=Ne[1]-ke,de=Ne[2]-We,K=de?5:Math.max(Math.min(25,Math.abs(se)-5),5),J=se?5:Math.max(Math.min(25,Math.abs(de)-5),5);W.classed(de?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",K).attr("height",J).attr("x",ke-K/2).attr("y",We-J/2).attr("transform",$oe(se/2,de/2))}else W.classed("cursor-grab",!0).attr("r",5).attr("cx",ke).attr("cy",We);h[ae][Ee]={element:W.node(),gd:i,prepFn:M,doneFn:k,clickFn:P},QD.init(h[ae][Ee])}}}function B(ee,ae){if(r.length)for(var re=0;re<r.length;re++)for(var ie=0;ie<r[re].length;ie++)for(var ue=0;ue+2<r[re][ie].length;ue+=2)r[re][ie][ue+1]=b[re][ie][ue+1]+ee,r[re][ie][ue+2]=b[re][ie][ue+2]+ae}function Y(ee,ae){B(ee,ae),o()}function H(ee){m=+ee.srcElement.getAttribute("data-i"),m||(m=0),p[m].moveFn=Y}function X(){l()}function N(ee){ee===2&&ule(i)}function Q(){if(p=[],!!r.length){var ee=0;p[ee]={element:t[0][0],gd:i,prepFn:H,doneFn:X,clickFn:N},QD.init(p[ee])}}};function sle(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 rF(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 ule(e){if(aF(e._fullLayout.dragmode)){iF(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},nF.call("_guiRelayout",e,{selections:a})}}}});var ig=oe((Ybe,mF)=>{"use strict";var fle=qt(),vF=xt(),Kb=pr(),gc=Ga(),cle=Bf().readPaths,vle=eg(),tg=Wb(),dF=Sf().clearOutlineControllers,Jb=Nt(),ag=da(),dle=Aa().arrayEditor,lF=al(),sF=Zl(),uF=Nf(),yc=(ah(),_r(th)),fo=Uf(),Qb=fo.getPathString;mF.exports={draw:e7,drawOne:hF,eraseActiveShape:yle,drawLabel:tg};function e7(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&&hF(e,n)}function rg(e){return!!e._fullLayout._outlining}function ng(e){return!e._context.edits.shapePosition}function hF(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=fo.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(s){var u=Qb(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,d=a.fillcolor,h=a.line.width?a.line.color:"rgba(0,0,0,0)",p=a.line.width,m=a.line.dash;!p&&a.editable===!0&&(p=5,m="solid");var y=u[u.length-1]!=="Z",b=ng(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(d=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var C=s.append("g").classed("shape-group",!0).attr({"data-index":r}),x=C.append("path").attr(f).style("opacity",c).call(Jb.stroke,h).call(Jb.fill,d).call(ag.dashLine,m,p);pF(C,e,a),tg(e,r,a,C);var _;if((b||e._context.edits.shapePosition)&&(_=dle(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},A=cle(u,e);vle(A,x,M)}else e._context.edits.shapePosition?mle(e,x,a,r,s,_):a.editable===!0&&x.style("pointer-events",y||Jb.opacity(d)*c<=.5?"stroke":"all");x.node().addEventListener("click",function(){return gle(e,x)}),hle(e,x,n)}}function hle(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var s;let o=t.mainplotinfo||t,l=(s=o==null?void 0:o.draglayer)==null?void 0:s.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&&sF.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&sF.click(e,o,t.id)}})}function pF(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=ple(r,a,n);Kb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),ag.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");ag.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function ple(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(d=>gc.getFromId(e,d)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(d){return d._offset}),c=u.map(function(d){return d._offset+d._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 mle(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",d=i.modifyItem,h,p,m,y,b,C,x,_,M,A,k,D,P,z,B,Y=fle.select(r.node().parentNode),H=gc.getFromId(e,t.xref),X=gc.getRefType(t.xref),N=gc.getFromId(e,t.yref),Q=gc.getRefType(t.yref),ee=t.x0shift,ae=t.x1shift,re=t.y0shift,ie=t.y1shift,ue=function(ar,Ie){var ir=fo.getDataToPixel(e,H,Ie,!1,X);return ir(ar)},xe=function(ar,Ie){var ir=fo.getDataToPixel(e,N,Ie,!0,Q);return ir(ar)},Ee=fo.getPixelToData(e,H,!1,X),Re=fo.getPixelToData(e,N,!0,Q),Ne=W(),ke={element:Ne.node(),gd:e,prepFn:K,doneFn:J,clickFn:ce},We;lF.init(ke),Ne.node().onmousemove=de;function W(){return f?se():r}function se(){var ar=10,Ie=Math.max(t.line.width,ar),ir=n.append("g").attr("data-index",a).attr("drag-helper",!0);ir.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ie,"stroke-opacity":"0"});var dr={"fill-opacity":"0"},Ar=Math.max(Ie/2,ar);return ir.append("circle").attr({"data-line-point":"start-point",cx:s?ue(t.xanchor)+t.x0:ue(t.x0,ee),cy:u?xe(t.yanchor)-t.y0:xe(t.y0,re),r:Ar}).style(dr).classed("cursor-grab",!0),ir.append("circle").attr({"data-line-point":"end-point",cx:s?ue(t.xanchor)+t.x1:ue(t.x1,ae),cy:u?xe(t.yanchor)-t.y1:xe(t.y1,ie),r:Ar}).style(dr).classed("cursor-grab",!0),ir}function de(ar){if(rg(e)){We=null;return}if(f)ar.target.tagName==="path"?We="move":We=ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=ke.element.getBoundingClientRect(),ir=Ie.right-Ie.left,dr=Ie.bottom-Ie.top,Ar=ar.clientX-Ie.left,Qe=ar.clientY-Ie.top,mr=!c&&ir>o&&dr>l&&!ar.shiftKey?lF.getCursor(Ar/ir,1-Qe/dr):"move";uF(r,mr),We=mr.split("-")[0]}}function K(ar){rg(e)||(s&&(b=ue(t.xanchor)),u&&(C=xe(t.yanchor)),t.type==="path"?B=t.path:(h=s?t.x0:ue(t.x0),p=u?t.y0:xe(t.y0),m=s?t.x1:ue(t.x1),y=u?t.y1:xe(t.y1)),h<m?(M=h,P="x0",A=m,z="x1"):(M=m,P="x1",A=h,z="x0"),!u&&p<y||u&&p>y?(x=p,k="y0",_=y,D="y1"):(x=y,k="y1",_=p,D="y0"),de(ar),je(n,t),$e(r,t,e),ke.moveFn=We==="move"?be:Le,ke.altKey=ar.altKey)}function J(){rg(e)||(uF(r),er(n),pF(r,e,t),vF.call("_guiRelayout",e,i.getUpdateObj()))}function ce(){rg(e)||er(n)}function be(ar,Ie){if(t.type==="path"){var ir=function(Qe){return Qe},dr=ir,Ar=ir;s?d("xanchor",t.xanchor=Ee(b+ar)):(dr=function(mr){return Ee(ue(mr)+ar)},H&&H.type==="date"&&(dr=fo.encodeDate(dr))),u?d("yanchor",t.yanchor=Re(C+Ie)):(Ar=function(mr){return Re(xe(mr)+Ie)},N&&N.type==="date"&&(Ar=fo.encodeDate(Ar))),d("path",t.path=fF(B,dr,Ar))}else s?d("xanchor",t.xanchor=Ee(b+ar)):(d("x0",t.x0=Ee(h+ar)),d("x1",t.x1=Ee(m+ar))),u?d("yanchor",t.yanchor=Re(C+Ie)):(d("y0",t.y0=Re(p+Ie)),d("y1",t.y1=Re(y+Ie)));r.attr("d",Qb(e,t)),je(n,t),tg(e,a,t,Y)}function Le(ar,Ie){if(c){var ir=function(kr){return kr},dr=ir,Ar=ir;s?d("xanchor",t.xanchor=Ee(b+ar)):(dr=function(Lr){return Ee(ue(Lr)+ar)},H&&H.type==="date"&&(dr=fo.encodeDate(dr))),u?d("yanchor",t.yanchor=Re(C+Ie)):(Ar=function(Lr){return Re(xe(Lr)+Ie)},N&&N.type==="date"&&(Ar=fo.encodeDate(Ar))),d("path",t.path=fF(B,dr,Ar))}else if(f){if(We==="resize-over-start-point"){var Qe=h+ar,mr=u?p-Ie:p+Ie;d("x0",t.x0=s?Qe:Ee(Qe)),d("y0",t.y0=u?mr:Re(mr))}else if(We==="resize-over-end-point"){var Pr=m+ar,Te=u?y-Ie:y+Ie;d("x1",t.x1=s?Pr:Ee(Pr)),d("y1",t.y1=u?Te:Re(Te))}}else{var Oe=function(kr){return We.indexOf(kr)!==-1},xr=Oe("n"),Rr=Oe("s"),zr=Oe("w"),Ce=Oe("e"),Ue=xr?x+Ie:x,cr=Rr?_+Ie:_,Mr=zr?M+ar:M,hr=Ce?A+ar:A;u&&(xr&&(Ue=x-Ie),Rr&&(cr=_-Ie)),(!u&&cr-Ue>l||u&&Ue-cr>l)&&(d(k,t[k]=u?Ue:Re(Ue)),d(D,t[D]=u?cr:Re(cr))),hr-Mr>o&&(d(P,t[P]=s?Mr:Ee(Mr)),d(z,t[z]=s?hr:Ee(hr)))}r.attr("d",Qb(e,t)),je(n,t),tg(e,a,t,Y)}function je(ar,Ie){(s||u)&&ir();function ir(){var dr=Ie.type!=="path",Ar=ar.selectAll(".visual-cue").data([0]),Qe=1;Ar.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Qe}).classed("visual-cue",!0);var mr=ue(s?Ie.xanchor:Kb.midRange(dr?[Ie.x0,Ie.x1]:fo.extractPathCoords(Ie.path,yc.paramIsX))),Pr=xe(u?Ie.yanchor:Kb.midRange(dr?[Ie.y0,Ie.y1]:fo.extractPathCoords(Ie.path,yc.paramIsY)));if(mr=fo.roundPositionForSharpStrokeRendering(mr,Qe),Pr=fo.roundPositionForSharpStrokeRendering(Pr,Qe),s&&u){var Te="M"+(mr-1-Qe)+","+(Pr-1-Qe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ar.attr("d",Te)}else if(s){var Oe="M"+(mr-1-Qe)+","+(Pr-9-Qe)+"v18 h2 v-18 Z";Ar.attr("d",Oe)}else{var xr="M"+(mr-9-Qe)+","+(Pr-1-Qe)+"h18 v2 h-18 Z";Ar.attr("d",xr)}}}function er(ar){ar.selectAll(".visual-cue").remove()}function $e(ar,Ie,ir){var dr=Ie.xref,Ar=Ie.yref,Qe=gc.getFromId(ir,dr),mr=gc.getFromId(ir,Ar),Pr="";dr!=="paper"&&!Qe.autorange&&(Pr+=dr),Ar!=="paper"&&!mr.autorange&&(Pr+=Ar),ag.setClipUrl(ar,Pr?"clip"+ir._fullLayout._uid+Pr:null,ir)}}function fF(e,r,t){return e.replace(yc.segmentRE,function(a){var n=0,i=a.charAt(0),o=yc.paramIsX[i],l=yc.paramIsY[i],s=yc.numParams[i],u=a.slice(1).replace(yc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function gle(e,r){if(ng(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){cF(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=cF,e7(e)}}}function cF(e){if(ng(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(dF(e),delete e._fullLayout._activeShapeIndex,e7(e))}}function yle(e){if(ng(e)){dF(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,vF.call("_guiRelayout",e,{shapes:a})}}}});var yF=oe((Vbe,gF)=>{"use strict";var sv=pr()._,ble=function(e){return{DIALOG_TITLE:sv(e,"Share chart"),DIALOG_MESSAGE_CLOUD:sv(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:sv(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:sv(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:sv(e,"Cancel"),DIALOG_CONFIRM:sv(e,"Share")}};gF.exports=ble});var xF=oe((Xbe,_F)=>{"use strict";var bF=qt(),{dfltConfig:_le}=gf(),xle=yF(),wle=(e,r,t,a,n)=>{let i=xle(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===_le.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],d=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(d),s.append("span").text(h),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),d=c[0],h=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(d),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}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)},Mle=(e,r,t)=>{let a=bF.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",()=>{bF.event.target===n.node()&&i()}),wle(e,n,r,()=>{i(),t()},i)};_F.exports=Mle});var a7=oe((jbe,SF)=>{"use strict";var qo=xt(),Ale=Pn(),MF=qn(),ta=Y2(),Tle=ig().eraseActiveShape,kle=xF(),uv=pr(),Ot=uv._,ra={};SF.exports=ra;ra.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ot(e,"Download plot as a PNG"):Ot(e,"Download plot")},icon:ta.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};uv.notifier(Ot(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])}),qo.call("downloadImage",e,t).then(function(a){uv.notifier(Ot(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){uv.notifier(Ot(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ra.downloadJson={name:"downloadJson",title:function(e){return Ot(e,"Download plot as JSON")},icon:ta.curlybraces,click:function(e){qo.call("downloadImage",e,{format:"full-json"}).then(function(r){uv.notifier(Ot(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){uv.notifier(Ot(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ra.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Ot(e,"Share chart...")},icon:ta.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}kle(e,r,function(){Ale.sendDataToCloud(e,r)})}};ra.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ot(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ta.zoombox,click:Fi};ra.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ot(e,"Pan")},attr:"dragmode",val:"pan",icon:ta.pan,click:Fi};ra.select2d={name:"select2d",_cat:"select",title:function(e){return Ot(e,"Box Select")},attr:"dragmode",val:"select",icon:ta.selectbox,click:Fi};ra.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ot(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ta.lasso,click:Fi};ra.drawclosedpath={name:"drawclosedpath",title:function(e){return Ot(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ta.drawclosedpath,click:Fi};ra.drawopenpath={name:"drawopenpath",title:function(e){return Ot(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ta.drawopenpath,click:Fi};ra.drawline={name:"drawline",title:function(e){return Ot(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ta.drawline,click:Fi};ra.drawrect={name:"drawrect",title:function(e){return Ot(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ta.drawrect,click:Fi};ra.drawcircle={name:"drawcircle",title:function(e){return Ot(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ta.drawcircle,click:Fi};ra.eraseshape={name:"eraseshape",title:function(e){return Ot(e,"Erase active shape")},icon:ta.eraseshape,click:Tle};ra.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ot(e,"Zoom in")},attr:"zoom",val:"in",icon:ta.zoom_plus,click:Fi};ra.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ot(e,"Zoom out")},attr:"zoom",val:"out",icon:ta.zoom_minus,click:Fi};ra.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ot(e,"Autoscale")},attr:"zoom",val:"auto",icon:ta.autoscale,click:Fi};ra.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ot(e,"Reset axes")},attr:"zoom",val:"reset",icon:ta.home,click:Fi};ra.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ot(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ta.tooltip_basic,gravity:"ne",click:Fi};ra.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ot(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ta.tooltip_compare,gravity:"ne",click:Fi};function Fi(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=MF.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,d=(1+c)/2,h=(1-c)/2,p,m;for(f=0;f<l.length;f++)if(u=l[f],m=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,m&&!u.fixedrange)if(p=u._name,n==="auto")o[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[p+".autorange"]=!0:u._rangeInitial0===void 0?(o[p+".autorange"]=u._autorangeInitial,o[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[p+".range"]=[u._rangeInitial0,null],o[p+".autorange"]=u._autorangeInitial):o[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[d*y[0]+h*y[1],d*y[1]+h*y[0]];o[p+".range[0]"]=u.l2r(b[0]),o[p+".range[1]"]=u.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=s,qo.call("_guiRelayout",e,o)}ra.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Ot(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:ta.zoombox,click:lg};ra.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Ot(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:ta.pan,click:lg};ra.orbitRotation={name:"orbitRotation",title:function(e){return Ot(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:ta["3d_rotate"],click:lg};ra.tableRotation={name:"tableRotation",title:function(e){return Ot(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:ta["z-axis"],click:lg};function lg(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("."),s=0;s<i.length;s++)o[i[s]+"."+l[1]]=n;var u=n==="pan"?n:"zoom";o.dragmode=u,qo.call("_guiRelayout",e,o)}ra.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Ot(e,"Reset camera to default")},attr:"resetDefault",icon:ta.home,click:r7};ra.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Ot(e,"Reset camera to last save")},attr:"resetLastSave",icon:ta.movie,click:r7};function r7(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||[],s={},u=0;u<l.length;u++){var f=l[u],c=f+".camera",d=f+".aspectratio",h=f+".aspectmode",p=o[f]._scene,m;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,m=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,m=!0),m&&(s[d+".x"]=p.viewInitial.aspectratio.x,s[d+".y"]=p.viewInitial.aspectratio.y,s[d+".z"]=p.viewInitial.aspectratio.z,s[h]=p.viewInitial.aspectmode)}qo.call("_guiRelayout",e,s)}ra.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Ot(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ta.tooltip_basic,gravity:"ne",click:Cle};function AF(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],d=f+".hovermode";l[d]=c.hovermode,s[d]=!1;for(var h=0;h<3;h++){var p=o[h],m=f+"."+p+".showspikes";s[m]=!1,l[m]=c[p].showspikes}}t._previousVal=l}return s}function Cle(e,r){var t=AF(e,r);qo.call("_guiRelayout",e,t)}ra.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Ot(e,"Zoom in")},attr:"zoom",val:"in",icon:ta.zoom_plus,click:t7};ra.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Ot(e,"Zoom out")},attr:"zoom",val:"out",icon:ta.zoom_minus,click:t7};ra.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Ot(e,"Reset")},attr:"reset",val:null,icon:ta.autoscale,click:t7};ra.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Ot(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ta.tooltip_basic,gravity:"ne",click:kF};var wF=2;function t7(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 s of o){let u=i[s],f=u._subplot;if(a==="zoom"){let c=f.projection,d=c.scale()/f.fitScale,[h,p]=c.rotate().map(A=>-A),[m,y]=c.invert(f.midPt),{minscale:b}=u.projection,C=(l=u.projection.maxscale)!=null?l:1/0,x=Math.min(b,C),_=Math.max(b,C),M=n==="in"?wF*d:1/wF*d;M>_?M=_:M<x&&(M=x),M!==d&&qo.call("_guiRelayout",e,{[s+".projection.scale"]:M,[s+".projection.rotation.lon"]:h,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&og(e,"geo")}ra.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Ot(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:ta.tooltip_basic,gravity:"ne",click:kF};function TF(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function kF(e){var r=TF(e);qo.call("_guiRelayout",e,"hovermode",r)}ra.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Ot(e,"Reset view")},icon:ta.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())}qo.call("restyle",e,r)}};ra.toggleHover={name:"toggleHover",title:function(e){return Ot(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ta.tooltip_basic,gravity:"ne",click:function(e,r){var t=AF(e,r);t.hovermode=TF(e),qo.call("_guiRelayout",e,t)}};ra.resetViews={name:"resetViews",title:function(e){return Ot(e,"Reset views")},icon:ta.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),Fi(e,r),t.setAttribute("data-attr","resetLastSave"),r7(e,r),og(e,"geo"),og(e,"map")}};ra.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Ot(e,"Toggle Spike Lines")},icon:ta.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",qo.call("_guiRelayout",e,Sle(e))}};function Sle(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=MF.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}ra.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Ot(e,"Reset view")},attr:"reset",icon:ta.home,click:function(e){og(e,"map")}};ra.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Ot(e,"Zoom in")},attr:"zoom",val:"in",icon:ta.zoom_plus,click:CF};ra.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Ot(e,"Zoom out")},attr:"zoom",val:"out",icon:ta.zoom_minus,click:CF};function CF(e,r){Ele(e,r,"map")}function Ele(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[t]||[],l=1.05,s={},u=0;u<o.length;u++){var f=o[u],c=i[f].zoom,d=n==="in"?l*c:c/l;s[f+".zoom"]=d}qo.call("_guiRelayout",e,s)}function og(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,s=l.viewInitial,u=Object.keys(s),f=0;f<u.length;f++){var c=u[f];n[o+"."+c]=s[c]}qo.call("_guiRelayout",e,n)}});var n7=oe((Wbe,FF)=>{"use strict";var EF=a7(),Lle=Object.keys(EF),LF=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],DF=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(LF,["downloadJson"]),fv=[],Dle=function(e){if(DF.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();fv.indexOf(r)===-1&&fv.push(r),fv.indexOf(t)===-1&&fv.push(t)}};Lle.forEach(function(e){Dle(EF[e])});fv.sort();FF.exports={DRAW_MODES:LF,backButtons:DF,foreButtons:fv}});var o7={};Ua(o7,{default:()=>qle});var i7,Fle,qle,l7=Oa(()=>{"use strict";i7=H_(n7()),Fle={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 *${i7.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 *${i7.default.foreButtons.join("*, *")}*.`].join(" ")}},qle=Fle});var PF=oe((Zbe,qF)=>{"use strict";var Ple=pr(),ih=Nt(),Rle=Aa(),zle=(l7(),_r(o7)).default;qF.exports=function(r,t){var a=r.modebar||{},n=Rle.newContainer(t,"modebar");function i(l,s){return Ple.coerce(a,n,zle,l,s)}i("orientation"),i("bgcolor",ih.addOpacity(t.paper_bgcolor,.5));var o=ih.contrast(ih.rgb(t.modebar.bgcolor));i("color",ih.addOpacity(o,.3)),i("activecolor",ih.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var IF=oe(($be,NF)=>{"use strict";var s7=qt(),Nle=Jt(),sg=pr(),RF=Y2(),Ile=Kv().version,Ble=new DOMParser;function zF(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Gs=zF.prototype;Gs.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),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(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(),sg.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Gs.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)})};Gs.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Gs.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&&s7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||RF.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Gs.createIcon=function(e){var r=Nle(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=Ble.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Gs.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=s7.select(a),s=function(c,d){var h=r.modebar,p=c.querySelector(".icon path");p&&(d||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:sg.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Gs.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 Hle(e){return e+" (v"+Ile+")"}Gs.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Hle(sg._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(RF.newplotlylogo)),e.appendChild(r),e};Gs.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Gs.destroy=function(){sg.removeElement(this.container.querySelector(".modebar"))};function Ole(e,r){var t=e._fullLayout,a=new zF({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&s7.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}NF.exports=Ole});var OF=oe((Jbe,HF)=>{"use strict";var Ule=qn(),BF=Si(),u7=xt(),Gle=Pu().isUnifiedHover,Yle=IF(),ug=a7(),Vle=n7().DRAW_MODES,Xle=pr().extendDeep;HF.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=Kle(i):!a.displayModeBar&&a.watermark?o=[]:o=jle(r),n?n.update(r,o):t._modeBar=Yle(r,o)};function jle(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(ae,re){if(typeof re=="string"){if(re.toLowerCase()===ae.toLowerCase())return!0}else{var ie=re.name,ue=re._cat||re.name;if(ie===ae||ue===ae.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(ae){for(var re=0;re<a.modeBarButtonsToRemove.length;re++)if(n(ae,a.modeBarButtonsToRemove[re]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(ae){for(var re=0;re<a.modeBarButtonsToAdd.length;re++)if(n(ae,a.modeBarButtonsToAdd[re]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),d=r._has("pie"),h=r._has("funnelarea"),p=r._has("ternary"),m=r._has("map"),y=r._has("polar"),b=r._has("smith"),C=r._has("sankey"),x=Wle(r),_=Gle(r.hovermode),M=[];function A(ae){if(ae.length){for(var re=[],ie=0;ie<ae.length;ie++){for(var ue=ae[ie],xe=ug[ue],Ee=xe.name.toLowerCase(),Re=(xe._cat||xe.name).toLowerCase(),Ne=!1,ke=0;ke<s.length;ke++){var We=s[ke].toLowerCase();if(We===Ee||We===Re){Ne=!0;break}}Ne||re.push(ug[ue])}M.push(re)}}var k=!1,D=[],P=[],z=[],B=[];(u||d||h||p)+c+f+m+y+b>1?(P=["toggleHover"],z=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(D=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):d?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),($le(t)||_)&&(P=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?B=["zoom2d","pan2d"]:m||c?B=["pan2d"]:y&&(B=["zoom2d"]),Zle(t)&&B.push("select2d","lasso2d");var Y=[],H=function(ae){Y.indexOf(ae)===-1&&P.indexOf(ae)!==-1&&Y.push(ae)};if(Array.isArray(l)){for(var X=[],N=0;N<l.length;N++){var Q=l[N];typeof Q=="string"?(Q=Q.toLowerCase(),Vle.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")):Q==="downloadjson"&&(k=!0)):X.push(Q)}l=X}var ee=["toImage"];return k&&ee.push("downloadJson"),a.showSendToCloud&&ee.push("sendChartToCloud"),A(ee),A(B),A(D.concat(z)),A(Y),Jle(M,l)}function Wle(e){for(var r=Ule.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 Zle(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(u7.traceIs(a,"scatter-like")&&a.type!=="quiver"?(BF.hasMarkers(a)||BF.hasText(a))&&(r=!0):u7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function $le(e){for(var r=0;r<e.length;r++)if(!u7.traceIs(e[r],"noHover"))return!1;return!0}function Jle(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 Kle(e){for(var r=Xle([],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(ug[i]!==void 0)r[t][n]=ug[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var f7=oe((Kbe,UF)=>{"use strict";UF.exports={moduleType:"component",name:"modebar",layoutAttributes:(l7(),_r(o7)).default,supplyLayoutDefaults:PF(),manage:OF()}});var c7=oe((Qbe,GF)=>{"use strict";var Qle=(di(),_r(vi)).FROM_BL;GF.exports=function(r,t,a){a===void 0&&(a=Qle[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 lh=oe(oh=>{"use strict";var bc=pr(),v7=Rf(),$l=qn().id2name,ese=Vl(),YF=c7(),rse=c2(),tse=(ja(),_r(tn)).ALMOST_EQUAL,ase=(di(),_r(vi)).FROM_BL;oh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,d,h,p;for(l=0;l<a.length;l++)f=$l(a[l]),c=e[f],d=r[f],nse(c,d,{axIds:a,layoutOut:r,hasImage:n[f]});function m(D,P){for(l=0;l<D.length;l++){s=D[l];for(u in s)r[$l(u)][P]=s}}for(m(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(d=r[$l(u)],d.fixedrange){for(var y in s){var b=$l(y);(e[b]||{}).fixedrange===!1&&bc.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;){s=i[l];for(u in s){d=r[$l(u)],d._matchGroup&&Object.keys(d._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}m(i,"_constraintGroup");var C=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],x=!1,_=!1;function M(){p=d[h],h==="range"&&(x=!!(p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null)),h==="rangebreaks"&&(_=d._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l],x=!1;for(var A=0;A<C.length;A++){h=C[A],p=null;var k;for(u in s)if(f=$l(u),c=e[f],d=r[f],h in d){if(!d.matches&&(k=d,h in c)){M();break}p===null&&h in c&&M()}if(h==="autorange"&&p===null&&x&&(p=!1),p===null&&h in k&&(p=k[h]),p!==null)for(u in s)d=r[$l(u)],d[h]=h==="range"?p.slice():p,h==="rangebreaks"&&(d._hasDayOfWeekBreaks=_,rse(d,r))}}};function nse(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,o=n._axisConstraintGroups,l=n._axisMatchGroups,s=r._id,u=s.charAt(0),f=((n._splomAxes||{})[u]||{})[s]||{},c=r._id,d=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function h(Y,H){return bc.coerce(e,r,ese,Y,H)}h("constrain",i?"domain":"range"),bc.coerce(e,r,{constraintoward:{valType:"enumerated",values:d?["left","center","right"]:["bottom","middle","top"],dflt:d?"center":"middle"}},"constraintoward");var p=r.type,m,y,b=[];for(m=0;m<a.length;m++)if(y=a[m],y!==c){var C=n[$l(y)];C.type===p&&b.push(y)}var x=jF(o,c);if(x){var _=[];for(m=0;m<b.length;m++)y=b[m],x[y]||_.push(y);b=_}var M=b.length,A,k;M&&(e.matches||f.matches)&&(A=bc.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var D=i&&!d?r.anchor:void 0;if(M&&!A&&(e.scaleanchor||D)&&(k=bc.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",D)),A){r._matchGroup=d7(l,c,A,1);var P=n[$l(A)],z=VF(n,r)/VF(n,P);d!==(A.charAt(0)==="x")&&(z=(d?"x":"y")+z),d7(o,c,A,z)}else e.matches&&a.indexOf(e.matches)!==-1&&bc.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(k){var B=h("scaleratio");B||(B=r.scaleratio=1),d7(o,c,k,B)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&bc.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 VF(e,r){var t=r.domain;return t||(t=e[$l(r.overlaying)].domain),t[1]-t[0]}function jF(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function d7(e,r,t,a){var n,i,o,l,s,u=jF(e,r);u===null?(u={},u[r]=1,s=e.length,e.push(u)):s=e.indexOf(u);var f=Object.keys(u);for(n=0;n<e.length;n++)if(o=e[n],n!==s&&o[t]){var c=o[t];for(i=0;i<f.length;i++)l=f[i],o[l]=h7(c,h7(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var d=f[i];u[d]=h7(a,u[d])}u[t]=1}function h7(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 ise(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],s=e[l];if(typeof s=="string"){var u=s.match(/^[xy]*/)[0],f=u.length;s=+s.slice(f);for(var c=u.charAt(0)==="y"?a:1/a,d=0;d<f;d++)s*=c}n[l]=s}return n}oh.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,o,l,s,u,f,c;for(n=0;n<a.length;n++){o=ise(a[n],t);var d=Object.keys(o),h=1/0,p=0,m=1/0,y={},b={},C=!1;for(i=0;i<d.length;i++)l=d[i],b[l]=s=t[$l(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),y[l]=u=Math.abs(s._m)/o[l],h=Math.min(h,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(m=Math.min(m,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(C=!0);if(!(h>tse*p&&!C)){for(i=0;i<d.length;i++)if(l=d[i],u=y[l],s=b[l],f=s.constrain,u!==m||f==="domain")if(c=u/m,f==="range")YF(s,c);else{var x=s._inputDomain,_=(s.domain[1]-s.domain[0])/(x[1]-x[0]),M=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=_,c*M<1){s.domain=s._input.domain=x.slice(),YF(s,c);continue}if(M<1&&(s.range=s._input.range=s._inputRange.slice(),c*=M),s.autorange){var A=s.r2l(s.range[0]),k=s.r2l(s.range[1]),D=(A+k)/2,P=D,z=D,B=Math.abs(k-D),Y=D-B*c*1.0001,H=D+B*c*1.0001,X=v7.makePadFn(t,s,0),N=v7.makePadFn(t,s,1);XF(s,c,t);var Q=Math.abs(s._m),ee=v7.concatExtremes(r,s),ae=ee.min,re=ee.max,ie,ue;for(ue=0;ue<ae.length;ue++)ie=ae[ue].val-X(ae[ue])/Q,ie>Y&&ie<P&&(P=ie);for(ue=0;ue<re.length;ue++)ie=re[ue].val+N(re[ue])/Q,ie<H&&ie>z&&(z=ie);var xe=(z-P)/(2*B);c/=xe,P=s.l2r(P),z=s.l2r(z),s.range=s._input.range=A<k?[P,z]:[z,P]}XF(s,c,t)}}}};oh.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};oh.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 ose(e,r){let t=e.domainpad;if(!t)return 0;let a=r._size;return e._id.charAt(0)==="y"?((t.top||0)+(t.bottom||0))/a.h:((t.left||0)+(t.right||0))/a.w}function XF(e,r,t){var a=e._inputDomain,n=ase[e.constraintoward],i=a[0]+(a[1]-a[0])*n;let o=r,l=ose(e,t);if(l>0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var vg=oe(Yn=>{"use strict";var cg=qt(),qi=xt(),Po=Pn(),il=pr(),p7=hi(),m7=G2(),sh=Nt(),cv=da(),WF=Od(),QF=f7(),uh=Ga(),Hu=(di(),_r(vi)),eq=lh(),lse=eq.enforce,sse=eq.clean,ZF=Rf().doAutoRange,rq="start",use="middle",tq="end",fse=(Un(),_r(On)).zindexSeparator;Yn.layoutStyles=function(e){return il.syncOrAsync([Po.doAutoMargin,vse],e)};function cse(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 vse(e){var r=e._fullLayout,t=r._size,a=t.p,n=uh.list(e,"",!0),i,o,l,s,u,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(cv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Yn.drawMainTitle(e),QF.manage(e),!r._has("cartesian"))return Po.previousPromises(e);function c(K,J,ce){var be=K._lw/2;if(K._id.charAt(0)==="x"){if(J){if(ce==="top")return J._offset-a-be}else return t.t+t.h*(1-(K.position||0))+be%1;return J._offset+J._length+a+be}if(J){if(ce==="right")return J._offset+J._length+a+be}else return t.l+t.w*(K.position||0)+be%1;return J._offset-a-be}for(i=0;i<n.length;i++){s=n[i];var d=s._anchorAxis;s._linepositions={},s._lw=cv.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,d,s.side),s._mainMirrorPosition=s.mirror&&d?c(s,d,Hu.OPPOSITE_SIDE[s.side]):null}var h=[],p=[],m=[],y=sh.opacity(r.paper_bgcolor)===1&&sh.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(cse(b,C,m)&&o.indexOf(fse)===-1){var _=x.node(),M=l.bg=il.ensureSingle(x,"rect","bg");_.insertBefore(M.node(),_.childNodes[0]),p.push(o)}else x.select("rect.bg").remove(),m.push([b,C]),y||(h.push(o),p.push(o))}var A=r._bgLayer.selectAll(".bg").data(h);for(A.enter().append("rect").classed("bg",!0),A.exit().remove(),A.each(function(K){r._plots[K].bg=cg.select(this)}),i=0;i<p.length;i++)l=r._plots[p[i]],u=l.xaxis,f=l.yaxis,l.bg&&u._offset!==void 0&&f._offset!==void 0&&l.bg.call(cv.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(sh.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var k=l.clipId="clip"+r._uid+o+"plot",D=il.ensureSingleById(r._clips,"clipPath",k,function(K){K.classed("plotclip",!0).append("rect")});l.clipRect=D.select("rect").attr({width:u._length,height:f._length}),cv.setTranslate(l.plot,u._offset,f._offset);var P,z;l._hasClipOnAxisFalse?(P=null,z=k):(P=k,z=null),cv.setClipUrl(l.plot,P,e),l.layerClipId=z}var B,Y,H,X,N,Q,ee,ae,re,ie,ue,xe,Ee;function Re(K){return"M"+B+","+K+"H"+Y}function Ne(K){return"M"+u._offset+","+K+"h"+u._length}function ke(K){return"M"+K+","+ae+"V"+ee}function We(K){return f._shift!==void 0&&(K+=f._shift),"M"+K+","+f._offset+"v"+f._length}function W(K,J,ce){if(!K.showline||o!==K._mainSubplot)return"";if(!K._anchorAxis)return ce(K._mainLinePosition);var be=J(K._mainLinePosition);return K.mirror&&(be+=J(K._mainMirrorPosition)),be}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var se="M0,0";$F(u,o)&&(N=fg(u,"left",f,n),B=u._offset-(N?a+N:0),Q=fg(u,"right",f,n),Y=u._offset+u._length+(Q?a+Q:0),H=c(u,f,"bottom"),X=c(u,f,"top"),Ee=!u._anchorAxis||o!==u._mainSubplot,Ee&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[H,X]),se=W(u,Re,Ne),Ee&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(se+=Re(H)+Re(X)),l.xlines.style("stroke-width",u._lw+"px").call(sh.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",se);var de="M0,0";$F(f,o)&&(ue=fg(f,"bottom",u,n),ee=f._offset+f._length+(ue?a:0),xe=fg(f,"top",u,n),ae=f._offset-(xe?a:0),re=c(f,u,"left"),ie=c(f,u,"right"),Ee=!f._anchorAxis||o!==f._mainSubplot,Ee&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[re,ie]),de=W(f,ke,We),Ee&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(de+=ke(re)+ke(ie)),l.ylines.style("stroke-width",f._lw+"px").call(sh.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",de)}return uh.makeClipPaths(e),Po.previousPromises(e)}function $F(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function JF(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=Hu.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function fg(e,r,t,a){if(JF(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&JF(e,r,i))return i._lw}return 0}Yn.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=bse(t),n=_se(t),i=yse(t,n),o=gse(t,a);if(WF.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=cg.select(e).selectAll(".gtitle"),s=cv.bBox(cg.select(e).selectAll(".g-gtitle").node()).height,u=pse(e,r,s);if(u>0){mse(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:KF(r.yanchor)}).call(p7.positionText,o,i);var f=(r.text.match(p7.BR_TAG_ALL)||[]).length;if(f){var c=Hu.LINE_SPACING*f+Hu.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 d=cg.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=l.node().getBBox(),p=h.y+h.height,m=p+WF.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:o,y:m,"text-anchor":a,dy:KF(r.yanchor)}).call(p7.positionText,o,m)}}}};function dse(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=il.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return il.isTopAnchor(r)&&t==="t"||il.isBottomAnchor(r)&&t==="b"?!1:l<n}function hse(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 pse(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=hse(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function mse(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},s={};i.yref==="paper"&&dse(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Po.allowAutoMargin(e,n),Po.autoMargin(e,n,l)}function gse(e,r){var t=e.title,a=e._size,n=0;return r===rq?n=t.pad.l:r===tq&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function yse(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Hu.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 KF(e){return e==="top"?Hu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Hu.MID_SHIFT+"em"}function bse(e){var r=e.title,t=use;return il.isRightAnchor(r)?t=tq:il.isLeftAnchor(r)&&(t=rq),t}function _se(e){var r=e.title,t="0em";return il.isTopAnchor(r)?t=Hu.CAP_SHIFT+"em":il.isMiddleAnchor(r)&&(t=Hu.MID_SHIFT+"em"),t}Yn.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||{},s=l.arraysToCalcdata;s&&s(n,o);var u=l.editStyle;u&&t.push({fn:u,cd0:i})}if(t.length){for(a=0;a<t.length;a++){var f=t[a];f.fn(e,f.cd0)}m7(e),Yn.redrawReglTraces(e)}return Po.style(e),qi.getComponentMethod("legend","draw")(e),Po.previousPromises(e)};Yn.doColorBars=function(e){return qi.getComponentMethod("colorbar","draw")(e),Po.previousPromises(e)};Yn.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,qi.call("_doPlot",e,"",r)};Yn.doLegend=function(e){return qi.getComponentMethod("legend","draw")(e),Po.previousPromises(e)};Yn.doTicksRelayout=function(e){var r=uh.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(qi.subplotsRegistry.splom.updateGrid(e),m7(e),Yn.redrawReglTraces(e)),Yn.drawMainTitle(e),Promise.resolve(r).then(function(){return Po.previousPromises(e)})};Yn.doModeBar=function(e){var r=e._fullLayout;QF.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return Po.previousPromises(e)};Yn.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)}};Yn.drawData=function(e){var r=e._fullLayout;m7(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return Yn.redrawReglTraces(e),Po.style(e),qi.getComponentMethod("selections","draw")(e),qi.getComponentMethod("shapes","draw")(e),qi.getComponentMethod("annotations","draw")(e),qi.getComponentMethod("images","draw")(e),r._replotting=!1,Po.previousPromises(e)};Yn.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"?il.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&il.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()}};Yn.doAutoRangeAndConstraints=function(e){for(var r=uh.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,sse(e,t),ZF(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=uh.getFromId(e,o);ZF(e,l,t.range),a[o]=1}}lse(e)};Yn.finalDraw=function(e){qi.getComponentMethod("rangeslider","draw")(e),qi.getComponentMethod("rangeselector","draw")(e)};Yn.drawMarginPushers=function(e){qi.getComponentMethod("legend","draw")(e),qi.getComponentMethod("rangeselector","draw")(e),qi.getComponentMethod("sliders","draw")(e),qi.getComponentMethod("updatemenus","draw")(e),qi.getComponentMethod("colorbar","draw")(e)}});var b7=oe((t7e,lq)=>{"use strict";var xse=Bf().readPaths,wse=eg(),aq=Sf().clearOutlineControllers,g7=Nt(),nq=da(),Mse=Aa().arrayEditor,iq=Uf(),Ase=iq.getPathString;lq.exports={draw:dg,drawOne:oq,activateLastSelection:Cse};function dg(e){var r=e._fullLayout;aq(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++)oq(e,n)}function hg(e){return e._context.editSelection}function oq(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=iq.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=Ase(e,a),s={"data-index":r,"fill-rule":"evenodd",d:l},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||g7.contrast(e._fullLayout.plot_bgcolor),d=a.line.width,h=a.line.dash;d||(d=5,h="solid");var p=hg(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],y=1;y>=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(g7.stroke,c).call(g7.fill,f).call(nq.dashLine,y?"solid":h,y?4+d:d);if(Tse(b,e,a),p){var C=Mse(e.layout,"selections",a);b.style({cursor:"move"});var x={element:b.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=xse(l,e);wse(_,b,x)}else b.style("pointer-events",y?"all":"none");m[y]=b}var M=m[0],A=m[1];A.node().addEventListener("click",function(){return kse(e,M)})}}function Tse(e,r,t){var a=t.xref+t.yref;nq.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function kse(e,r){if(hg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){y7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=y7,dg(e)}}}function Cse(e){if(hg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=y7,dg(e)}}function y7(e){if(hg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(aq(e),delete e._fullLayout._activeSelectionIndex,dg(e))}}});var uq=oe((a7e,sq)=>{function Sse(){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}sq.exports=Sse});var cq=oe((n7e,fq)=>{function Ese(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],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u<e)return!1;var f=o*o+s*s;return!(u-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],s=a[1]-n[1];return Math.abs(i*s-l*o)<e},linesIntersect:function(t,a,n,i){var o=a[0]-t[0],l=a[1]-t[1],s=i[0]-n[0],u=i[1]-n[1],f=o*u-l*s;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],d=t[1]-n[1],h=(s*d-u*c)/f,p=(o*d-l*c)/f,m={alongA:0,alongB:0,pt:[t[0]+h*o,t[1]+h*l]};return h<=-e?m.alongA=-2:h<e?m.alongA=-1:h-1<=-e?m.alongA=0:h-1<e?m.alongA=1:m.alongA=2,p<=-e?m.alongB=-2:p<e?m.alongB=-1:p-1<=-e?m.alongB=0:p-1<e?m.alongB=1:m.alongB=2,m},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],s=!1,u=0;u<a.length;u++){var f=a[u][0],c=a[u][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}fq.exports=Ese});var dq=oe((i7e,vq)=>{var Lse={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}};vq.exports=Lse});var pq=oe((o7e,hq)=>{var fh=dq();function Dse(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=fh.create();function o(p,m,y,b,C,x){var _=r.pointsCompare(m,C);return _!==0?_:r.pointsSame(y,x)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(p,m){i.insertBefore(p,function(y){var b=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=fh.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var b=fh.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function d(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function h(p,m){var y=fh.create();function b(N,Q){var ee=N.seg.start,ae=N.seg.end,re=Q.seg.start,ie=Q.seg.end;return r.pointsCollinear(ee,re,ie)?r.pointsCollinear(ae,re,ie)||r.pointAboveOrOnLine(ae,re,ie)?1:-1:r.pointAboveOrOnLine(ee,re,ie)?1:-1}function C(N){return y.findTransition(function(Q){var ee=b(N,Q.ev);return ee>0})}function x(N,Q){var ee=N.seg,ae=Q.seg,re=ee.start,ie=ee.end,ue=ae.start,xe=ae.end;t&&t.checkIntersection(ee,ae);var Ee=r.linesIntersect(re,ie,ue,xe);if(Ee===!1){if(!r.pointsCollinear(re,ie,ue)||r.pointsSame(re,xe)||r.pointsSame(ie,ue))return!1;var Re=r.pointsSame(re,ue),Ne=r.pointsSame(ie,xe);if(Re&&Ne)return Q;var ke=!Re&&r.pointBetween(re,ue,xe),We=!Ne&&r.pointBetween(ie,ue,xe);if(Re)return We?d(Q,ie):d(N,xe),Q;ke&&(Ne||(We?d(Q,ie):d(N,xe)),d(Q,re))}else Ee.alongA===0&&(Ee.alongB===-1?d(N,ue):Ee.alongB===0?d(N,Ee.pt):Ee.alongB===1&&d(N,xe)),Ee.alongB===0&&(Ee.alongA===-1?d(Q,re):Ee.alongA===0?d(Q,Ee.pt):Ee.alongA===1&&d(Q,ie));return!1}for(var _=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let N=function(){if(k){var Q=x(M,k);if(Q)return Q}return D?x(M,D):!1};var X=N;t&&t.segmentNew(M.seg,M.primary);var A=C(M),k=A.before?A.before.ev:null,D=A.after?A.after.ev:null;t&&t.tempStatus(M.seg,k?k.seg:!1,D?D.seg:!1);var P=N();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=p,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?m:p,M.seg.otherFill={above:B,below:B}}t&&t.status(M.seg,k?k.seg:!1,D?D.seg:!1),M.other.status=A.insert(fh.node({ev:M}))}else{var Y=M.status;if(Y===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(Y.prev)&&y.exists(Y.next)&&x(Y.prev.ev,Y.next.ev),t&&t.statusRemove(Y.ev.seg),Y.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(p){for(var m,y=p[p.length-1],b=0;b<p.length;b++){m=y,y=p[b];var C=r.pointsCompare(m,y);C!==0&&f(a(C<0?m:y,C<0?y:m),!0)}},calculate:function(p){return h(p,!1)}}:{calculate:function(p,m,y,b){return p.forEach(function(C){f(n(C.start,C.end,C),!0)}),y.forEach(function(C){f(n(C.start,C.end,C),!1)}),h(m,b)}}}hq.exports=Dse});var gq=oe((l7e,mq)=>{function Fse(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 s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(X,N,Q){return f.index=X,f.matches_head=N,f.matches_pt1=Q,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d<a.length;d++){var h=a[d],p=h[0],m=h[1],y=h[h.length-1],b=h[h.length-2];if(r.pointsSame(p,o)){if(c(d,!0,!0))break}else if(r.pointsSame(p,l)){if(c(d,!0,!1))break}else if(r.pointsSame(y,o)){if(c(d,!1,!0))break}else if(r.pointsSame(y,l)&&c(d,!1,!1))break}if(f===s){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===u){t&&t.chainMatch(s.index);var C=s.index,x=s.matches_pt1?l:o,_=s.matches_head,h=a[C],M=_?h[0]:h[h.length-1],A=_?h[1]:h[h.length-2],k=_?h[h.length-1]:h[0],D=_?h[h.length-2]:h[1];if(r.pointsCollinear(A,M,x)&&(_?(t&&t.chainRemoveHead(s.index,x),h.shift()):(t&&t.chainRemoveTail(s.index,x),h.pop()),M=A),r.pointsSame(k,x)){a.splice(C,1),r.pointsCollinear(D,k,M)&&(_?(t&&t.chainRemoveTail(s.index,M),h.pop()):(t&&t.chainRemoveHead(s.index,M),h.shift())),t&&t.chainClose(s.index),n.push(h);return}_?(t&&t.chainAddHead(s.index,x),h.unshift(x)):(t&&t.chainAddTail(s.index,x),h.push(x));return}function P(X){t&&t.chainReverse(X),a[X].reverse()}function z(X,N){var Q=a[X],ee=a[N],ae=Q[Q.length-1],re=Q[Q.length-2],ie=ee[0],ue=ee[1];r.pointsCollinear(re,ae,ie)&&(t&&t.chainRemoveTail(X,ae),Q.pop(),ae=re),r.pointsCollinear(ae,ie,ue)&&(t&&t.chainRemoveHead(N,ie),ee.shift()),t&&t.chainJoin(X,N),a[X]=Q.concat(ee),a.splice(N,1)}var B=s.index,Y=u.index;t&&t.chainConnect(B,Y);var H=a[B].length<a[Y].length;s.matches_head?u.matches_head?H?(P(B),z(B,Y)):(P(Y),z(Y,B)):z(Y,B):u.matches_head?z(B,Y):H?(P(B),z(Y,B)):(P(Y),z(B,Y))}),n}mq.exports=Fse});var bq=oe((s7e,yq)=>{function ch(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 qse={union:function(e,r){return ch(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ch(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ch(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ch(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ch(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};yq.exports=qse});var xq=oe((u7e,_q)=>{var Pse={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s<i.length;s++)l=e.selectDifference(e.combine(l,o(i[s])));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(h,p){return r.pointInsideRegion([(h[0][0]+h[1][0])*.5,(h[0][1]+h[1][1])*.5],p)}function n(h){return{region:h,children:[]}}var i=n(null);function o(h,p){for(var m=0;m<h.children.length;m++){var y=h.children[m];if(a(p,y.region)){o(y,p);return}}for(var b=n(p),m=0;m<h.children.length;m++){var y=h.children[m];a(y.region,p)&&(b.children.push(y),h.children.splice(m,1),m--)}h.children.push(b)}for(var l=0;l<t.regions.length;l++){var s=t.regions[l];s.length<3||o(i,s)}function u(h,p){for(var m=0,y=h[h.length-1][0],b=h[h.length-1][1],C=[],x=0;x<h.length;x++){var _=h[x][0],M=h[x][1];C.push([_,M]),m+=M*y-_*b,y=_,b=M}var A=m<0;return A!==p&&C.reverse(),C.push([C[0][0],C[0][1]]),C}var f=[];function c(h){var p=[u(h.region,!1)];f.push(p);for(var m=0;m<h.children.length;m++)p.push(d(h.children[m]))}function d(h){for(var p=0;p<h.children.length;p++)c(h.children[p]);return u(h.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}}};_q.exports=Pse});var Tq=oe((f7e,Aq)=>{var Rse=uq(),zse=cq(),wq=pq(),Nse=gq(),vh=bq(),Mq=xq(),ol=!1,dh=zse(),co;co={buildLog:function(e){return e===!0?ol=Rse():e===!1&&(ol=!1),ol===!1?!1:ol.list},epsilon:function(e){return dh.epsilon(e)},segments:function(e){var r=wq(!0,dh,ol);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=wq(!1,dh,ol);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:vh.union(e.combined,ol),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:vh.intersect(e.combined,ol),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:vh.difference(e.combined,ol),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:vh.differenceRev(e.combined,ol),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:vh.xor(e.combined,ol),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Nse(e.segments,dh,ol),inverted:e.inverted}},polygonFromGeoJSON:function(e){return Mq.toPolygon(co,e)},polygonToGeoJSON:function(e){return Mq.fromPolygon(co,dh,e)},union:function(e,r){return hh(e,r,co.selectUnion)},intersect:function(e,r){return hh(e,r,co.selectIntersect)},difference:function(e,r){return hh(e,r,co.selectDifference)},differenceRev:function(e,r){return hh(e,r,co.selectDifferenceRev)},xor:function(e,r){return hh(e,r,co.selectXor)}};function hh(e,r,t){var a=co.segments(e),n=co.segments(r),i=co.combine(a,n),o=t(i);return co.polygon(o)}typeof window=="object"&&(window.PolyBool=co);Aq.exports=co});var Cq=oe((c7e,kq)=>{kq.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 s=n-a,u=0,f=s-1;u<s;f=u++){var c=t[u+a][0],d=t[u+a][1],h=t[f+a][0],p=t[f+a][1],m=d>o!=p>o&&i<(h-c)*(o-d)/(p-d)+c;m&&(l=!l)}return l}});var gg=oe((v7e,Sq)=>{"use strict";var _7=vm().dot,pg=(ja(),_r(tn)).BADNUM,mg=Sq.exports={};mg.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 s=!1,u;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]&&(s=!0,u=function(p){return p[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]&&(s=!0,u=function(p){return p[1]===t[0][1]}));function f(p,m){var y=p[0],b=p[1];return!(y===pg||y<a||y>n||b===pg||b<i||b>o||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===pg||y<a||y>n||b===pg||b<i||b>o)return!1;var C=t.length,x=t[0][0],_=t[0][1],M=0,A,k,D,P,z;for(A=1;A<C;A++)if(k=x,D=_,x=t[A][0],_=t[A][1],P=Math.min(k,x),!(y<P||y>Math.max(k,x)||b>Math.max(D,_)))if(b<Math.min(D,_))y!==P&&M++;else{if(x===k?z=b:z=D+(y-k)*(_-D)/(x-k),b===z)return!(A===1&&m);b<=z&&y!==P&&M++}return M%2===1}var d=!0,h=t[0];for(l=1;l<t.length;l++)if(h[0]!==t[l][0]||h[1]!==t[l][1]){d=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:s?f:c,isRect:s,degenerate:d}};mg.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=_7(o,o),s=Math.sqrt(l),u=[-o[1]/s,o[0]/s],f,c,d;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],d=_7(c,o),d<0||d>l||Math.abs(_7(c,u))>n)return!0;return!1};mg.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||mg.isSegmentBent(r,f,c+1,t))&&(a.push(r[c]),a.length<u-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 Eq={};Ua(Eq,{BENDPX:()=>Ise,MINSELECT:()=>Bse,SELECTDELAY:()=>Hse,SELECTID:()=>Ose});var Ise,Bse,Hse,Ose,Lq=Oa(()=>{"use strict";Ise=1.5,Bse=12,Hse=100,Ose="-select"});var Kq=oe((d7e,Jq)=>{"use strict";var Dq=Tq(),Use=Cq(),gh=xt(),Gse=da().dashStyle,ph=Nt(),Yse=Zl(),Vse=Pu().makeEventData,wh=iv(),Xse=wh.freeMode,jse=wh.rectMode,yh=wh.drawMode,A7=wh.openMode,T7=wh.selectMode,Fq=Uf(),qq=(ah(),_r(th)),Iq=eg(),Bq=Sf().clearOutline,Hq=Bf(),x7=Hq.handleEllipse,Wse=Hq.readPaths,Zse=J2().newShapes,$se=jb(),Jse=b7().activateLastSelection,bg=pr(),Kse=bg.sorterAsc,Oq=gg(),mh=Cm(),ll=qn().getFromId,Qse=G2(),eue=vg().redrawReglTraces,_g=(Lq(),_r(Eq)),Ys=_g.MINSELECT,rue=Oq.filter,k7=Oq.tester,C7=j2(),Pq=C7.p2r,tue=C7.axValue,aue=C7.getTransform;function S7(e){return e.subplot!==void 0}function nue(e,r,t,a,n){var i=!S7(a),o=Xse(n),l=jse(n),s=A7(n),u=yh(n),f=T7(n),c=n==="drawline",d=n==="drawcircle",h=c||d,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=aue(x),M=r-C.left,A=t-C.top;m._calcInverseTransform(p);var k=bg.apply3DTransform(m._invTransform)(M,A);M=k[0],A=k[1];var D=m._invScaleX,P=m._invScaleY,z=M,B=A,Y="M"+M+","+A,H=a.xaxes[0],X=a.yaxes[0],N=H._length,Q=X._length,ee=e.altKey&&!(yh(n)&&s),ae,re,ie,ue,xe,Ee,Re;Gq(e,p,a),o&&(ae=rue([[M,A]],_g.BENDPX));var Ne=b.selectAll("path.select-outline-"+x.id).data([1]),ke=u?m.newshape:m.newselection;u&&(a.hasText=ke.label.text||ke.label.texttemplate);var We=u&&!s?ke.fillcolor:"rgba(0,0,0,0)",W=ke.line.color||(i?ph.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ne.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?ke.opacity/2:1,"stroke-dasharray":Gse(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(ph.stroke,W).call(ph.fill,We).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",Y+"Z");var se=b.append("path").attr("class","zoombox-corners").style({fill:ph.background,stroke:ph.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&a.hasText){var de=b.select(".label-temp");de.empty()&&(de=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=m._uid+_g.SELECTID,J=[],ce=xg(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Le=H._id,je=X._id;Wq(p,Le,je,ce);for(var er=(p.layout||{}).selections||[],$e=[],ar=!1,Ie=0;Ie<er.length;Ie++){var ir=m.selections[Ie];!ir||ir.xref!==Le||ir.yref!==je?$e.push(er[Ie]):ar=!0}ar&&(p._fullLayout._noEmitSelectedAtStart=!0,gh.call("_guiRelayout",p,{selections:$e}))}});var be=yue(a);a.moveFn=function(Le,je){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),z=Math.max(0,Math.min(N,D*Le+M)),B=Math.max(0,Math.min(Q,P*je+A));var er=Math.abs(z-M),$e=Math.abs(B-A);if(l){var ar,Ie,ir;if(f){var dr=m.selectdirection;switch(dr==="any"?$e<Math.min(er*.6,Ys)?ar="h":er<Math.min($e*.6,Ys)?ar="v":ar="d":ar=dr,ar){case"h":Ie=d?Q/2:0,ir=Q;break;case"v":Ie=d?N/2:0,ir=N;break}}if(u)switch(m.newshape.drawdirection){case"vertical":ar="h",Ie=d?Q/2:0,ir=Q;break;case"horizontal":ar="v",Ie=d?N/2:0,ir=N;break;case"ortho":er<$e?(ar="h",Ie=A,ir=B):(ar="v",Ie=M,ir=z);break;default:ar="d"}ar==="h"?(ue=h?x7(d,[z,Ie],[z,ir]):[[M,Ie],[M,ir],[z,ir],[z,Ie]],ue.xmin=h?z:Math.min(M,z),ue.xmax=h?z:Math.max(M,z),ue.ymin=Math.min(Ie,ir),ue.ymax=Math.max(Ie,ir),se.attr("d","M"+ue.xmin+","+(A-Ys)+"h-4v"+2*Ys+"h4ZM"+(ue.xmax-1)+","+(A-Ys)+"h4v"+2*Ys+"h-4Z")):ar==="v"?(ue=h?x7(d,[Ie,B],[ir,B]):[[Ie,A],[Ie,B],[ir,B],[ir,A]],ue.xmin=Math.min(Ie,ir),ue.xmax=Math.max(Ie,ir),ue.ymin=h?B:Math.min(A,B),ue.ymax=h?B:Math.max(A,B),se.attr("d","M"+(M-Ys)+","+ue.ymin+"v-4h"+2*Ys+"v4ZM"+(M-Ys)+","+(ue.ymax-1)+"v4h"+2*Ys+"v-4Z")):ar==="d"&&(ue=h?x7(d,[M,A],[z,B]):[[M,A],[M,B],[z,B],[z,A]],ue.xmin=Math.min(M,z),ue.xmax=Math.max(M,z),ue.ymin=Math.min(A,B),ue.ymax=Math.max(A,B),se.attr("d","M0,0Z"))}else o&&(ae.addPt([z,B]),ue=ae.filtered);if(a.selectionDefs&&a.selectionDefs.length?(ie=Yq(a.mergedPolygons,ue,ee),ue.subtract=ee,re=E7(a.selectionDefs.concat([ue]))):(ie=[ue],re=k7(ue)),Iq(Xq(ie,s),Ne,a),f){var Ar=M7(p,!1),Qe=Ar.eventData?Ar.eventData.points.slice():[];Ar=M7(p,!1,re,ce,a),re=Ar.selectionTesters,Re=Ar.eventData;var mr;ae?mr=ae.filtered:mr=Zq(ie),mh.throttle(K,_g.SELECTDELAY,function(){J=jq(re,ce);for(var Pr=J.slice(),Te=0;Te<Qe.length;Te++){for(var Oe=Qe[Te],xr=!1,Rr=0;Rr<Pr.length;Rr++)if(Pr[Rr].curveNumber===Oe.curveNumber&&Pr[Rr].pointNumber===Oe.pointNumber){xr=!0;break}xr||Pr.push(Oe)}Pr.length&&(Re||(Re={}),Re.points=Pr),be(Re,mr),bue(p,Re)})}},a.clickFn=function(Le,je){if(se.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var er=m.clickmode;mh.done(K).then(function(){if(mh.clear(K),Le===2){for(Ne.remove(),xe=0;xe<ce.length;xe++)Ee=ce[xe],Ee._module.selectPoints(Ee,!1);if(_h(p,ce),bh(a),D7(p),ce.length){var $e=ce[0].xaxis,ar=ce[0].yaxis;if($e&&ar){for(var Ie=[],ir=p._fullLayout.selections,dr=0;dr<ir.length;dr++){var Ar=ir[dr];Ar&&(Ar.xref!==$e._id||Ar.yref!==ar._id)&&Ie.push(Ar)}Ie.length<ir.length&&(p._fullLayout._noEmitSelectedAtStart=!0,gh.call("_guiRelayout",p,{selections:Ie}))}}}else er.indexOf("select")>-1&&Uq(je,p,a.xaxes,a.yaxes,a.subplot,a,Ne),er==="event"&&xh(p,void 0);Yse.click(p,je,x.id)}).catch(bg.error)}},a.doneFn=function(){se.remove(),mh.done(K).then(function(){mh.clear(K),!y&&ue&&a.selectionDefs&&(ue.subtract=ee,a.selectionDefs.push(ue),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(y||u)&&bh(a,y),a.doneFnCompleted&&a.doneFnCompleted(J),f&&xh(p,Re)}).catch(bg.error)}}function Uq(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],d,h,p,m,y,b,C,x,_,M;if(uue(l)){Gq(e,r,i),d=xg(r,t,a,n);var A=fue(l,d),k=A.pointNumbers.length>0;if(k?cue(d,A):vue(d)&&(C=zq(A))){for(o&&o.remove(),M=0;M<d.length;M++)h=d[M],h._module.selectPoints(h,!1);_h(r,d),bh(i),f&&D7(r)}else{x=e.shiftKey&&(C!==void 0?C:zq(A)),p=iue(A.pointNumber,A.searchInfo,x);var D=i.selectionDefs.concat([p]);for(m=E7(D,m),M=0;M<d.length;M++)if(y=d[M]._module.selectPoints(d[M],m),b=Vq(y,d[M]),c.length)for(var P=0;P<b.length;P++)c.push(b[P]);else c=b;if(_={points:c},_h(r,d,_),p&&i&&i.selectionDefs.push(p),o){var z=i.mergedPolygons,B=A7(i.dragmode);Iq(Xq(z,B),o,i)}f&&xh(r,_)}}}function iue(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function w7(e){return"pointNumber"in e&&"searchInfo"in e}function oue(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 E7(e){if(!e.length)return;for(var r=[],t=w7(e[0])?0:e[0][0][0],a=t,n=w7(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(w7(e[o]))r.push(oue(e[o]));else{var l=k7(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 s(u,f,c,d){for(var h=!1,p=0;p<r.length;p++)r[p].contains(u,f,c,d)&&(h=!r[p].subtract);return h}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function Gq(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)&&!(yh(i)&&A7(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&bh(t),o||(Bq(r),a._lastSelectedSubplot=n.id)}function lue(e){return e._fullLayout._activeShapeIndex>=0}function sue(e){return e._fullLayout._activeSelectionIndex>=0}function bh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;lue(n)&&n._fullLayout._deactivateShape(n),sue(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=yh(t),s=T7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Zse(u,e)),f&&gh.call("_guiRelayout",n,{shapes:f});var c;s&&!S7(e)&&(c=$se(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,gh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Jse(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function Rq(e){return e._id}function xg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(Rq),o=t.map(Rq),l,s,u;for(u=0;u<e.calcdata.length;u++)if(l=e.calcdata[u],s=l[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(S7({subplot:a})&&(s.subplot===a||s.geo===a))n.push(yg(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=yg(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=yg(s._module,l,r[0],t[0]);n.push(c)}else{if(i.indexOf(s.xaxis)===-1&&(!s._xA||!s._xA.overlaying)||o.indexOf(s.yaxis)===-1&&(!s._yA||!s._yA.overlaying))continue;n.push(yg(s._module,l,ll(e,s.xaxis),ll(e,s.yaxis)))}return n}function yg(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function uue(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function fue(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 zq(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 cue(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 vue(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 _h(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 s=o[l],u=s.data,f=s.pointIndex,c=s.pointIndices;c?[].push.apply(u.selectedpoints,c):u.selectedpoints.push(f)}}else for(a=0;a<r.length;a++)n=r[a].cd[0].trace,delete n.selectedpoints,delete n._input.selectedpoints;due(e,r)}function due(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;gh.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&&(Qse(e),eue(e))}function Yq(e,r,t){for(var a=t?Dq.difference:Dq.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=L7(l,i.slice(0,o))}return i}function Vq(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Vse(e[n],a,t);return e}function Xq(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 jq(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=Vq(i,l),t=t.concat(a)}return t}function M7(e,r,t,a,n){var i=!!a,o,l,s;n&&(o=n.plotinfo,l=n.xaxes[0]._id,s=n.yaxes[0]._id);var u=[],f=[],c=Nq(e),d=e._fullLayout;if(o){var h=d._zoomlayer,p=d.dragmode,m=yh(p),y=T7(p);if(m||y){var b=ll(e,l,"x"),C=ll(e,s,"y");if(b&&C){var x=h.selectAll(".select-outline-"+o.id);if(x&&e._fullLayout._outlining&&x.length){for(var _=x[0][0],M=_.getAttribute("d"),A=Wse(M,e,o),k=[],D=0;D<A.length;D++){for(var P=A[D],z=[],B=0;B<P.length;B++)z.push([Gf(b,P[B][1]),Gf(C,P[B][2])]);z.xref=l,z.yref=s,z.subtract=L7(z,k),k.push(z)}c=c.concat(k)}}}}var Y=l&&s?[l+s]:d._subplots.cartesian;hue(e);for(var H={},X=0;X<Y.length;X++){var N=Y[X],Q=N.indexOf("y"),ee=N.slice(0,Q),ae=N.slice(Q),re=l&&s?t:void 0;if(re=mue(c,ee,ae,re),re){var ie=a;if(!i){var ue=ll(e,ee,"x"),xe=ll(e,ae,"y");ie=xg(e,[ue],[xe],N);for(var Ee=0;Ee<ie.length;Ee++){var Re=ie[Ee],Ne=Re.cd[0],ke=Ne.trace;if(Re._module.name==="scattergl"&&!Ne.t.xpx){var We=ke.x,W=ke.y,se=ke._length;Ne.t.xpx=[],Ne.t.ypx=[];for(var de=0;de<se;de++)Ne.t.xpx[de]=ue.c2p(We[de]),Ne.t.ypx[de]=xe.c2p(W[de])}Re._module.name==="splom"&&(H[ke.uid]||(H[ke.uid]=!0))}}var K=jq(re,ie);u=u.concat(K),f=f.concat(ie)}}var J={points:u};_h(e,f,J);var ce=d.clickmode,be=ce.indexOf("event")>-1&&r;if(!o&&r){var Le=Nq(e,!0);if(Le.length){var je=Le[0].xref,er=Le[0].yref;if(je&&er){var $e=Zq(Le),ar=$q([ll(e,je,"x"),ll(e,er,"y")]);ar(J,$e)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&xh(e,J),d._reselect=!1}if(!o&&d._deselect){var Ie=d._deselect;l=Ie.xref,s=Ie.yref,pue(l,s,f)||Wq(e,l,s,a),be&&(J.points.length?xh(e,J):D7(e)),d._deselect=!1}return{eventData:J,selectionTesters:t}}function hue(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 pue(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 Wq(e,r,t,a){a=xg(e,[ll(e,r,"x")],[ll(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}_h(e,a)}function mue(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=Yq(n,o,l),a=E7(n)}else n=[o],a=k7(o)}return a}function Nq(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 s=l.xref,u=l.yref,f=ll(e,s,"x"),c=ll(e,u,"y"),d,h,p,m,y;if(l.type==="rect"){y=[];var b=Gf(f,l.x0),C=Gf(f,l.x1),x=Gf(c,l.y0),_=Gf(c,l.y1);y=[[b,x],[b,_],[C,_],[C,x]],d=Math.min(b,C),h=Math.max(b,C),p=Math.min(x,_),m=Math.max(x,_),y.xmin=d,y.xmax=h,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=!1,y.isRect=!0,t.push(y)}else if(l.type==="path")for(var M=l.path.split("Z"),A=[],k=0;k<M.length;k++){var D=M[k];if(D){D+="Z";var P=Fq.extractPathCoords(D,qq.paramIsX,"raw"),z=Fq.extractPathCoords(D,qq.paramIsY,"raw");d=1/0,h=-1/0,p=1/0,m=-1/0,y=[];for(var B=0;B<P.length;B++){var Y=Gf(f,P[B]),H=Gf(c,z[B]);y.push([Y,H]),d=Math.min(Y,d),h=Math.max(Y,h),p=Math.min(H,p),m=Math.max(H,m)}y.xmin=d,y.xmax=h,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=L7(y,A),A.push(y),t.push(y)}}}}return t}function L7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Use(e[i],n)){t=!t;break}return t}function Gf(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function Zq(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 gue(t)}function gue(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 $q(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var o=e[i],l=o._id,s=l.charAt(0);if(t.isRect){a||(a={});var u=t[s+"min"],f=t[s+"max"];u!==void 0&&f!==void 0&&(a[l]=[Pq(o,u),Pq(o,f)].sort(Kse))}else n||(n={}),n[l]=t.map(tue(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function yue(e){var r=e.plotinfo;return r.fillRangeItems||$q(e.xaxes.concat(e.yaxes))}function bue(e,r){e.emit("plotly_selecting",r)}function xh(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function D7(e){e.emit("plotly_deselect",null)}Jq.exports={reselect:M7,prepSelect:nue,clearOutline:Bq,clearSelectionsCache:bh,selectOnClick:Uq}});var F7=oe((h7e,Qq)=>{"use strict";Qq.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 Mh={};Ua(Mh,{axisRefDescription:()=>_ue});function _ue(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 Ah=Oa(()=>{"use strict"});var vv=oe((m7e,tP)=>{"use strict";var eP=F7(),rP=Ai(),wg=(Un(),_r(On)),xue=Aa().templatedArray,p7e=(Ah(),_r(Mh));tP.exports=xue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:rP({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:eP.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:eP.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",wg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",wg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",wg.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",wg.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:rP({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Mg={};Ua(Mg,{PTS_LINESONLY:()=>wue,eventDataKeys:()=>kue,maxScreensAway:()=>Tue,minTolerance:()=>Mue,toleranceGrowth:()=>Aue});var wue,Mue,Aue,Tue,kue,Ag=Oa(()=>{"use strict";wue=20,Mue=.2,Aue=10,Tue=20,kue=[]});var q7=oe((g7e,aP)=>{"use strict";aP.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var _c=oe((y7e,cP)=>{"use strict";var nP=l6().axisHoverFormat,{hovertemplateAttrs:Cue,texttemplateAttrs:Sue,templatefallbackAttrs:iP}=V0(),oP=Y1(),Eue=Ai(),lP=Ls().dash,Lue=Ls().pattern,Due=da(),Fue=(Ag(),_r(Mg)),Th=Dn().extendFlat,que=q7();function sP(e){return{valType:"any",dflt:0,editType:"calc"}}function uP(e){return{valType:"any",editType:"calc"}}function fP(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}cP.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:sP("x"),yperiod:sP("y"),xperiod0:uP("x0"),yperiod0:uP("y0"),xperiodalignment:fP("x"),yperiodalignment:fP("y"),xhoverformat:nP("x"),yhoverformat:nP("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:Sue(),texttemplatefallback:iP({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:Cue({},{keys:Fue.eventDataKeys}),hovertemplatefallback:iP(),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:Th({},lP,{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:que(!0),fillgradient:Th({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:Lue,marker:Th({symbol:{valType:"enumerated",values:Due.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:Th({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Th({},lP,{arrayOk:!0}),editType:"calc"},oP("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"},oP("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:Eue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var P7=oe((_7e,hP)=>{"use strict";var vP=vv(),dP=_c().line,Pue=Ls().dash,Tg=Dn().extendFlat,Rue=Ko().overrideAll,zue=Aa().templatedArray,b7e=(Ah(),_r(Mh));hP.exports=Rue(zue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Tg({},vP.xref,{}),yref:Tg({},vP.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:dP.color,width:Tg({},dP.width,{min:1,dflt:1}),dash:Tg({},Pue,{dflt:"dot"})}}),"arraydraw","from-root")});var yP=oe((x7e,gP)=>{"use strict";var pP=pr(),kg=Ga(),Nue=Xl(),Iue=P7(),mP=Uf();gP.exports=function(r,t){Nue(r,t,{name:"selections",handleItemDefaults:Bue});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 Bue(e,r,t){function a(A,k){return pP.coerce(e,r,Iue,A,k)}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 s=["x","y"],u=0;u<2;u++){var f=s[u],c={_fullLayout:t},d,h,p,m=kg.coerceRef(e,r,c,f);if(d=kg.getFromId(c,m),d._selectionIndices.push(r._index),p=mP.rangeToShapePosition(d),h=mP.shapePositionToRange(d),l){var y=f+"0",b=f+"1",C=e[y],x=e[b];e[y]=h(e[y],!0),e[b]=h(e[b],!0),kg.coercePosition(r,c,a,m,y),kg.coercePosition(r,c,a,m,b);var _=r[y],M=r[b];_!==void 0&&M!==void 0&&(r[y]=p(_),r[b]=p(M),e[y]=C,e[b]=x)}}l&&pP.noneOrAll(e,r,["x0","x1","y0","y1"])}});var _P=oe((w7e,bP)=>{"use strict";bP.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 kh=oe((M7e,MP)=>{"use strict";var Hue=xt(),xP=pr(),wP=qn();MP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Hue.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,d=n._has("cartesian"),h=0;h<i.length;h++){var p=i[h];if(xP.isPlainObject(p)){var m=wP.cleanId(p.xref,"x",!1),y=wP.cleanId(p.yref,"y",!1),b=l.x.test(m),C=l.y.test(y);if(b||C){d||xP.pushUnique(n._basePlotModules,o);var x=!1;b&&u.indexOf(m)===-1&&(u.push(m),x=!0),C&&f.indexOf(y)===-1&&(f.push(y),x=!0),x&&b&&C&&c.push(m+y)}}}}}});var Ou=oe((A7e,TP)=>{"use strict";var AP=b7(),Ch=Kq();TP.exports={moduleType:"component",name:"selections",layoutAttributes:P7(),supplyLayoutDefaults:yP(),supplyDrawNewSelectionDefaults:_P(),includeBasePlot:kh()("selections"),draw:AP.draw,drawOne:AP.drawOne,reselect:Ch.reselect,prepSelect:Ch.prepSelect,clearOutline:Ch.clearOutline,clearSelectionsCache:Ch.clearSelectionsCache,selectOnClick:Ch.selectOnClick}});var VP=oe((T7e,YP)=>{"use strict";var H7=qt(),sl=pr(),kP=sl.numberFormat,Oue=pb(),Cg=xt(),PP=sl.strTranslate,Uue=hi(),z7=Nt(),Yf=da(),Gue=Zl(),CP=Ga(),Yue=Nf(),Vue=al(),RP=iv(),Sg=RP.selectingOrDrawing,Xue=RP.freeMode,jue=(di(),_r(vi)).FROM_TL,Wue=G2(),Zue=vg().redrawReglTraces,$ue=Pn(),N7=qn().getFromId,Jue=Ou().prepSelect,Kue=Ou().clearOutline,Que=Ou().selectOnClick,R7=c7(),O7=(Un(),_r(On)),SP=O7.MINDRAG,Vi=O7.MINZOOM,EP=!0;function efe(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,d,h,p,m,y,b,C,x,_,M,A,k,D,P,z,B,Y,H,X,N,Q,ee;t+=r.yaxis._shift;function ae(){if(c=r.xaxis,d=r.yaxis,x=c._length,_=d._length,b=c._offset,C=d._offset,h={},h[c._id]=c,p={},p[d._id]=d,o&&l)for(var Ce=r.overlays,Ue=0;Ue<Ce.length;Ue++){var cr=Ce[Ue].xaxis;h[cr._id]=cr;var Mr=Ce[Ue].yaxis;p[Mr._id]=Mr}m=qP(h),y=qP(p),k=LP(m,l),D=LP(y,o),P=!D&&!k,A=FP(e,e._fullLayout._axisMatchGroups,h,p),M=FP(e,e._fullLayout._axisConstraintGroups,h,p,A);var hr=M.isSubplotConstrained||A.isSubplotConstrained;z=l||hr,B=o||hr;var kr=e._fullLayout;Y=kr._has("scattergl"),H=kr._has("splom"),X=kr._has("svg")}ae();var re=afe(D+k,e._fullLayout.dragmode,u),ie=NP(r,o+l+"drag",re,t,a,n,i);if(P&&!u)return ie.onmousedown=null,ie.style.pointerEvents="none",ie;var ue={element:ie,gd:e,plotinfo:r};ue.prepFn=function(Ce,Ue,cr){var Mr=ue.dragmode,hr=e._fullLayout.dragmode;hr!==Mr&&(ue.dragmode=hr),ae(),Q=e._fullLayout._invScaleX,ee=e._fullLayout._invScaleY,P||(u?Ce.shiftKey?hr==="pan"?hr="zoom":Sg(hr)||(hr="pan"):Ce.ctrlKey&&(hr="pan"):hr="pan"),Xue(hr)?ue.minDrag=1:ue.minDrag=void 0,Sg(hr)?(ue.xaxes=m,ue.yaxes=y,Jue(Ce,Ue,cr,ue,hr)):(ue.clickFn=Ee,Sg(Mr)&&xe(),P||(hr==="zoom"?(ue.moveFn=Le,ue.doneFn=er,ue.minDrag=1,be(Ce,Ue,cr)):hr==="pan"&&(ue.moveFn=Ar,ue.doneFn=Te))),e._fullLayout._redrag=function(){var kr=e._dragdata;if(kr&&kr.element===ie){var Lr=e._fullLayout.dragmode;Sg(Lr)||(ae(),Oe([0,0,x,_]),ue.moveFn(kr.dx,kr.dy))}}};function xe(){ue.plotinfo.selection=!1,Kue(e)}function Ee(Ce,Ue){var cr=ue.gd;if(cr._fullLayout._activeShapeIndex>=0){cr._fullLayout._deactivateShape(cr);return}var Mr=cr._fullLayout.clickmode;if(B7(cr),Ce===2&&!f&&Pr(),u)Mr.indexOf("select")>-1&&Que(Ue,cr,m,y,r.id,ue),Mr.indexOf("event")>-1&&Gue.click(cr,Ue,r.id);else if(Ce===1&&f){var hr=o?d:c,kr=o==="s"||l==="w"?0:1,Lr=hr._name+".range["+kr+"]",Br=rfe(hr,kr),et="left",lr="middle";if(hr.fixedrange)return;o?(lr=o==="n"?"top":"bottom",hr.side==="right"&&(et="right")):l==="e"&&(et="right"),cr._context.showAxisRangeEntryBoxes&&H7.select(ie).call(Uue.makeEditable,{gd:cr,immediate:!0,background:cr._fullLayout.paper_bgcolor,text:String(Br),fill:hr.tickfont?hr.tickfont.color:"#444",horizontalAlign:et,verticalAlign:lr}).on("edit",function(Cr){var tr=hr.d2r(Cr);tr!==void 0&&Cg.call("_guiRelayout",cr,Lr,tr)})}}Vue.init(ue);var Re,Ne,ke,We,W,se,de,K,J,ce;function be(Ce,Ue,cr){var Mr=ie.getBoundingClientRect();Re=Ue-Mr.left,Ne=cr-Mr.top,e._fullLayout._calcInverseTransform(e);var hr=sl.apply3DTransform(e._fullLayout._invTransform)(Re,Ne);Re=hr[0],Ne=hr[1],ke={l:Re,r:Re,w:0,t:Ne,b:Ne,h:0},We=e._hmpixcount?e._hmlumcount/e._hmpixcount:z7.luminosity(e._fullLayout.plot_bgcolor),W="M0,0H"+x+"V"+_+"H0V0",se=!1,de="xy",ce=!1,K=IP(s,We,b,C,W),J=BP(s,b,C)}function Le(Ce,Ue){if(e._transitioningWithDuration)return!1;var cr=Math.max(0,Math.min(x,Q*Ce+Re)),Mr=Math.max(0,Math.min(_,ee*Ue+Ne)),hr=Math.abs(cr-Re),kr=Math.abs(Mr-Ne);ke.l=Math.min(Re,cr),ke.r=Math.max(Re,cr),ke.t=Math.min(Ne,Mr),ke.b=Math.max(Ne,Mr);function Lr(){de="",ke.r=ke.l,ke.t=ke.b,J.attr("d","M0,0Z")}if(M.isSubplotConstrained)hr>Vi||kr>Vi?(de="xy",hr/x>kr/_?(kr=hr*_/x,Ne>Mr?ke.t=Ne-kr:ke.b=Ne+kr):(hr=kr*x/_,Re>cr?ke.l=Re-hr:ke.r=Re+hr),J.attr("d",Eg(ke))):Lr();else if(A.isSubplotConstrained)if(hr>Vi||kr>Vi){de="xy";var Br=Math.min(ke.l/x,(_-ke.b)/_),et=Math.max(ke.r/x,(_-ke.t)/_);ke.l=Br*x,ke.r=et*x,ke.b=(1-Br)*_,ke.t=(1-et)*_,J.attr("d",Eg(ke))}else Lr();else!D||kr<Math.min(Math.max(hr*.6,SP),Vi)?hr<SP||!k?Lr():(ke.t=0,ke.b=_,de="x",J.attr("d",nfe(ke,Ne))):!k||hr<Math.min(kr*.6,Vi)?(ke.l=0,ke.r=x,de="y",J.attr("d",ife(ke,Re))):(de="xy",J.attr("d",Eg(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,de&&(ce=!0),e._dragged=ce,HP(K,J,ke,W,se,We),je(),e.emit("plotly_relayouting",N),se=!0}function je(){N={},(de==="xy"||de==="x")&&(I7(m,ke.l/x,ke.r/x,N,M.xaxes),Qe("x",N)),(de==="xy"||de==="y")&&(I7(y,(_-ke.b)/_,(_-ke.t)/_,N,M.yaxes),Qe("y",N))}function er(){je(),B7(e),Te(),UP(e)}var $e=[0,0,x,_],ar=null,Ie=O7.REDRAWDELAY,ir=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function dr(Ce){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(xe(),e._transitioningWithDuration){Ce.preventDefault(),Ce.stopPropagation();return}ae(),clearTimeout(ar);var Ue=-Ce.deltaY;if(isFinite(Ue)||(Ue=Ce.wheelDelta/10),!isFinite(Ue)){sl.log("Did not find wheel motion attributes: ",Ce);return}e._fullLayout._replotting=!0;var cr=Math.exp(-Math.min(Math.max(Ue,-20),20)/200),Mr=ir.draglayer.select(".nsewdrag").node().getBoundingClientRect(),hr=(Ce.clientX-Mr.left)/Mr.width,kr=(Mr.bottom-Ce.clientY)/Mr.height,Lr;function Br(et,lr,Cr){if(et.fixedrange)return;var tr=sl.simpleMap(et.range,et.r2l),qr=tr[0]+(tr[1]-tr[0])*lr;function Zr(Or){return et.l2r(qr+(Or-qr)*Cr)}et.range=tr.map(Zr)}if(z){for(l||(hr=.5),Lr=0;Lr<m.length;Lr++)Br(m[Lr],hr,cr);Qe("x"),$e[2]*=cr,$e[0]+=$e[2]*hr*(1/cr-1)}if(B){for(o||(kr=.5),Lr=0;Lr<y.length;Lr++)Br(y[Lr],kr,cr);Qe("y"),$e[3]*=cr,$e[1]+=$e[3]*(1-kr)*(1/cr-1)}Oe($e),mr(),e.emit("plotly_relayouting",N),ar=setTimeout(function(){e._fullLayout&&($e=[0,0,x,_],Te())},Ie),Ce.preventDefault()}o.length*l.length!==1&&GP(ie,dr);function Ar(Ce,Ue){if(Ce=Ce*Q,Ue=Ue*ee,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,k==="ew"||D==="ns"){var cr=k?-Ce:0,Mr=D?-Ue:0;if(A.isSubplotConstrained){if(k&&D){var hr=(Ce/x-Ue/_)/2;Ce=hr*x,Ue=-hr*_,cr=-Ce,Mr=-Ue}D?cr=-Mr*x/_:Mr=-cr*_/x}k&&(DP(m,Ce),Qe("x")),D&&(DP(y,Ue),Qe("y")),Oe([cr,Mr,x,_]),mr(),e.emit("plotly_relayouting",N);return}function kr(Zr,Or,Xr){for(var Me=1-Or,Be,or,vr=0;vr<Zr.length;vr++){var Ft=Zr[vr];if(!Ft.fixedrange){Be=Ft,or=Ft._rl[Me]+(Ft._rl[Or]-Ft._rl[Me])/tfe(Xr/Ft._length);var Kt=Ft.l2r(or);Kt!==!1&&Kt!==void 0&&(Ft.range[Or]=Kt)}}return Be._length*(Be._rl[Or]-or)/(Be._rl[Or]-Be._rl[Me])}var Lr=k==="w"==(D==="n")?1:-1;if(k&&D&&(M.isSubplotConstrained||A.isSubplotConstrained)){var Br=(Ce/x+Lr*Ue/_)/2;Ce=Br*x,Ue=Lr*Br*_}var et,lr;if(k==="w"?Ce=kr(m,0,Ce):k==="e"?Ce=kr(m,1,-Ce):k||(Ce=0),D==="n"?Ue=kr(y,1,Ue):D==="s"?Ue=kr(y,0,-Ue):D||(Ue=0),et=k==="w"?Ce:0,lr=D==="n"?Ue:0,M.isSubplotConstrained&&!A.isSubplotConstrained||A.isSubplotConstrained&&k&&D&&Lr>0){var Cr;if(A.isSubplotConstrained||!k&&D.length===1){for(Cr=0;Cr<m.length;Cr++)m[Cr].range=m[Cr]._r.slice(),R7(m[Cr],1-Ue/_);Ce=Ue*x/_,et=Ce/2}if(A.isSubplotConstrained||!D&&k.length===1){for(Cr=0;Cr<y.length;Cr++)y[Cr].range=y[Cr]._r.slice(),R7(y[Cr],1-Ce/x);Ue=Ce*_/x,lr=Ue/2}}(!A.isSubplotConstrained||!D)&&Qe("x"),(!A.isSubplotConstrained||!k)&&Qe("y");var tr=x-Ce,qr=_-Ue;A.isSubplotConstrained&&!(k&&D)&&(k?(lr=et?0:Ce*_/x,qr=tr*_/x):(et=lr?0:Ue*x/_,tr=qr*x/_)),Oe([et,lr,tr,qr]),mr(),e.emit("plotly_relayouting",N)}function Qe(Ce,Ue){for(var cr=A.isSubplotConstrained?{x:y,y:m}[Ce]:A[Ce+"axes"],Mr=A.isSubplotConstrained?{x:m,y}[Ce]:[],hr=0;hr<cr.length;hr++){var kr=cr[hr],Lr=kr._id,Br=A.xLinks[Lr]||A.yLinks[Lr],et=Mr[0]||h[Br]||p[Br];et&&(Ue?(Ue[kr._name+".range[0]"]=Ue[et._name+".range[0]"],Ue[kr._name+".range[1]"]=Ue[et._name+".range[1]"]):kr.range=et.range.slice())}}function mr(){var Ce=[],Ue;function cr(Lr){for(Ue=0;Ue<Lr.length;Ue++)Lr[Ue].fixedrange||Ce.push(Lr[Ue]._id)}function Mr(Lr,Br){for(Ue=0;Ue<Lr.length;Ue++){var et=Lr[Ue],lr=et[Br],Cr=lr._id;!et.fixedrange&&lr.tickmode==="sync"&&!Ce.includes(Cr)&&Ce.push(Cr)}}for(z&&(cr(m),cr(M.xaxes),cr(A.xaxes),Mr(r.overlays,"xaxis")),B&&(cr(y),cr(M.yaxes),cr(A.yaxes),Mr(r.overlays,"yaxis")),N={},Ue=0;Ue<Ce.length;Ue++){var hr=Ce[Ue],kr=N7(e,hr);CP.drawOne(e,kr,{skipTitle:!0}),N[kr._name+".range[0]"]=kr.range[0],N[kr._name+".range[1]"]=kr.range[1]}CP.redrawComponents(e,Ce)}function Pr(){if(!e._transitioningWithDuration){var Ce=e._context.doubleClick,Ue=[];k&&(Ue=Ue.concat(m)),D&&(Ue=Ue.concat(y)),A.xaxes&&(Ue=Ue.concat(A.xaxes)),A.yaxes&&(Ue=Ue.concat(A.yaxes));var cr={},Mr,hr;if(Ce==="reset+autosize")for(Ce="autosize",hr=0;hr<Ue.length;hr++){Mr=Ue[hr];var kr=Mr._rangeInitial0,Lr=Mr._rangeInitial1,Br=kr!==void 0||Lr!==void 0;if(Br&&(kr!==void 0&&kr!==Mr.range[0]||Lr!==void 0&&Lr!==Mr.range[1])||!Br&&Mr.autorange!==!0){Ce="reset";break}}if(Ce==="autosize")for(hr=0;hr<Ue.length;hr++)Mr=Ue[hr],Mr.fixedrange||(cr[Mr._name+".autorange"]=!0);else if(Ce==="reset"){for((k||M.isSubplotConstrained)&&(Ue=Ue.concat(M.xaxes)),D&&!M.isSubplotConstrained&&(Ue=Ue.concat(M.yaxes)),M.isSubplotConstrained&&(k?D||(Ue=Ue.concat(y)):Ue=Ue.concat(m)),hr=0;hr<Ue.length;hr++)if(Mr=Ue[hr],!Mr.fixedrange){var et=Mr._name,lr=Mr._autorangeInitial;Mr._rangeInitial0===void 0&&Mr._rangeInitial1===void 0?cr[et+".autorange"]=!0:Mr._rangeInitial0===void 0?(cr[et+".autorange"]=lr,cr[et+".range"]=[null,Mr._rangeInitial1]):Mr._rangeInitial1===void 0?(cr[et+".range"]=[Mr._rangeInitial0,null],cr[et+".autorange"]=lr):cr[et+".range"]=[Mr._rangeInitial0,Mr._rangeInitial1]}}e.emit("plotly_doubleclick",null),Cg.call("_guiRelayout",e,cr)}}function Te(){Oe([0,0,x,_]),sl.syncOrAsync([$ue.previousPromises,function(){e._fullLayout._replotting=!1,Cg.call("_guiRelayout",e,N)}],e)}function Oe(Ce){var Ue=e._fullLayout,cr=Ue._plots,Mr=Ue._subplots.cartesian,hr,kr,Lr,Br;if(H&&Cg.subplotsRegistry.splom.drag(e),Y){for(hr=0;hr<Mr.length;hr++)if(kr=cr[Mr[hr]],Lr=kr.xaxis,Br=kr.yaxis,kr._scene){Lr.limitRange&&Lr.limitRange(),Br.limitRange&&Br.limitRange();var et=sl.simpleMap(Lr.range,Lr.r2l),lr=sl.simpleMap(Br.range,Br.r2l);kr._scene.update({range:[et[0],lr[0],et[1],lr[1]]})}}if((H||Y)&&(Wue(e),Zue(e)),X){var Cr=Ce[2]/c._length,tr=Ce[3]/d._length;for(hr=0;hr<Mr.length;hr++){kr=cr[Mr[hr]],Lr=kr.xaxis,Br=kr.yaxis;var qr=(z||A.isSubplotConstrained)&&!Lr.fixedrange&&h[Lr._id],Zr=(B||A.isSubplotConstrained)&&!Br.fixedrange&&p[Br._id],Or,Xr,Me,Be;if(qr?(Or=Cr,Me=l||A.isSubplotConstrained?Ce[0]:zr(Lr,Or)):A.xaHash[Lr._id]?(Or=Cr,Me=Ce[0]*Lr._length/c._length):A.yaHash[Lr._id]?(Or=tr,Me=D==="ns"?-Ce[1]*Lr._length/d._length:zr(Lr,Or,{n:"top",s:"bottom"}[D])):(Or=xr(Lr,Cr,tr),Me=Rr(Lr,Or)),Or>1&&(Lr.maxallowed!==void 0&&z===(Lr.range[0]<Lr.range[1]?"e":"w")||Lr.minallowed!==void 0&&z===(Lr.range[0]<Lr.range[1]?"w":"e"))&&(Or=1,Me=0),Zr?(Xr=tr,Be=o||A.isSubplotConstrained?Ce[1]:zr(Br,Xr)):A.yaHash[Br._id]?(Xr=tr,Be=Ce[1]*Br._length/d._length):A.xaHash[Br._id]?(Xr=Cr,Be=k==="ew"?-Ce[0]*Br._length/c._length:zr(Br,Xr,{e:"right",w:"left"}[k])):(Xr=xr(Br,Cr,tr),Be=Rr(Br,Xr)),Xr>1&&(Br.maxallowed!==void 0&&B===(Br.range[0]<Br.range[1]?"n":"s")||Br.minallowed!==void 0&&B===(Br.range[0]<Br.range[1]?"s":"n"))&&(Xr=1,Be=0),!(!Or&&!Xr)){Or||(Or=1),Xr||(Xr=1);var or=Lr._offset-Me/Or,vr=Br._offset-Be/Xr;kr.clipRect.call(Yf.setTranslate,Me,Be).call(Yf.setScale,Or,Xr),kr.plot.call(Yf.setTranslate,or,vr).call(Yf.setScale,1/Or,1/Xr),(Or!==kr.xScaleFactor||Xr!==kr.yScaleFactor)&&(Yf.setPointGroupScale(kr.zoomScalePts,Or,Xr),Yf.setTextPointsScale(kr.zoomScaleTxt,Or,Xr)),Yf.hideOutsideRangePoints(kr.clipOnAxisFalseTraces,kr),kr.xScaleFactor=Or,kr.yScaleFactor=Xr}}}}function xr(Ce,Ue,cr){return Ce.fixedrange?0:z&&M.xaHash[Ce._id]?Ue:B&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[Ce._id]?cr:0}function Rr(Ce,Ue){return Ue?(Ce.range=Ce._r.slice(),R7(Ce,Ue),zr(Ce,Ue)):0}function zr(Ce,Ue,cr){return Ce._length*(1-Ue)*jue[cr||Ce.constraintoward||"middle"]}return ie}function zP(e,r,t,a){var n=sl.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(Yue,a),n.node()}function NP(e,r,t,a,n,i,o){var l=zP(e,"rect",r,t);return H7.select(l).call(Yf.setRect,a,n,i,o),l}function LP(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function rfe(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,kP("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,kP("."+String(n)+"g")(t))}function I7(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",s=l?1-r:r,u=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(u*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 d=(r+(1-t))/2;I7(n,d,1-d,a,[])}}function DP(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),s=(o+l)/2;a.range=[a.l2r(a._rl[0]-s),a.l2r(a._rl[1]-s)]}else a.range=[a.l2r(a._rl[0]-r/a._m),a.l2r(a._rl[1]-r/a._m)];a.limitRange&&a.limitRange()}}}function tfe(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function afe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function IP(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",PP(t,a)).attr("d",n+"Z")}function BP(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:z7.background,stroke:z7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",PP(r,t)).attr("d","M0,0Z")}function HP(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"),OP(e,r,n,i)}function OP(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 B7(e){H7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function UP(e){EP&&e.data&&e._context.showTips&&(sl.notifier(sl._(e,"Double-click to zoom back out"),"long",e),EP=!1)}function nfe(e,r){return"M"+(e.l-.5)+","+(r-Vi-.5)+"h-3v"+(2*Vi+1)+"h3ZM"+(e.r+.5)+","+(r-Vi-.5)+"h3v"+(2*Vi+1)+"h-3Z"}function ife(e,r){return"M"+(r-Vi-.5)+","+(e.t-.5)+"v-3h"+(2*Vi+1)+"v3ZM"+(r-Vi-.5)+","+(e.b+.5)+"v3h"+(2*Vi+1)+"v-3Z"}function Eg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Vi)/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 FP(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,d=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p<r.length;p++){var m=r[p];for(s in t)if(m[s]){for(f in m)!(n&&(d[f]||h[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(d[u]||h[u]))&&m[u]&&(i=!0)}for(u in a)if(m[u])for(c in m)!(n&&(d[c]||h[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(sl.extendFlat(o,l),l={});var y={},b=[];for(f in o){var C=N7(e,f);b.push(C),y[C._id]=C}var x={},_=[];for(c in l){var M=N7(e,c);_.push(M),x[M._id]=M}return{xaHash:y,yaHash:x,xaxes:b,yaxes:_,xLinks:o,yLinks:l,isSubplotConstrained:i}}function GP(e,r){if(!Oue)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 qP(e){var r=[];for(var t in e)r.push(e[t]);return r}YP.exports={makeDragBox:efe,makeDragger:zP,makeRectDragger:NP,makeZoombox:IP,makeCorners:BP,updateZoombox:HP,xyCorners:Eg,transitionZoombox:OP,removeZoombox:B7,showDoubleClickNotifier:UP,attachWheelEventHandler:GP}});var U7=oe(Dg=>{"use strict";var ofe=qt(),Lg=Zl(),lfe=al(),sfe=Nf(),Jl=VP().makeDragBox,Vn=(Un(),_r(On)).DRAGGERSIZE;Dg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){ofe.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"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Jl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Lg.hover(r,d,i)},Lg.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,lfe.unhover(r,d))},r._context.showAxisDragHandles&&(Jl(r,o,l._offset-Vn,s._offset-Vn,Vn,Vn,"n","w"),Jl(r,o,l._offset+l._length,s._offset-Vn,Vn,Vn,"n","e"),Jl(r,o,l._offset-Vn,s._offset+s._length,Vn,Vn,"s","w"),Jl(r,o,l._offset+l._length,s._offset+s._length,Vn,Vn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Vn),Jl(r,o,l._offset+l._length*.1,f,l._length*.8,Vn,"","ew"),Jl(r,o,l._offset,f,l._length*.1,Vn,"","w"),Jl(r,o,l._offset+l._length*.9,f,l._length*.1,Vn,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Vn),Jl(r,o,c,s._offset+s._length*.1,Vn,s._length*.8,"ns",""),Jl(r,o,c,s._offset+s._length*.9,Vn,s._length*.1,"s",""),Jl(r,o,c,s._offset,Vn,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Lg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Lg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Dg.updateFx(r)}};Dg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";sfe(r._draggers,t)}});var WP=oe((C7e,jP)=>{"use strict";var XP=xt();jP.exports=function(r){for(var t=XP.layoutArrayContainers,a=XP.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 s=r.slice(i.length);return s?(o=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:i,index:Number(o[1]),property:o[3]||""}:!1):{array:i,index:"",property:""}}});var $P=oe(Eh=>{"use strict";var ufe=hf(),G7=cm(),Sh=Cu(),ffe=E5().sorterAsc,Y7=xt();Eh.containerArrayMatch=WP();var cfe=Eh.isAddVal=function(r){return r==="add"||ufe(r)},ZP=Eh.isRemoveVal=function(r){return r===null||r==="remove"};Eh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Y7.getComponentMethod(o,"supplyLayoutDefaults"),s=Y7.getComponentMethod(o,"draw"),u=Y7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===G7||s===G7,c=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Sh.warn("Full array edits are incompatible with other edits",o);var h=a[""][""];if(ZP(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Sh.warn("Unrecognized full array edit value",o,h),!0;return f?!1:(l(c,d),s(r),!0)}var p=Object.keys(a).map(Number).sort(ffe),m=t.get(),y=m||[],b=i(d,o).get(),C=[],x=-1,_=y.length,M,A,k,D,P,z,B,Y;for(M=0;M<p.length;M++){if(k=p[M],D=a[k],P=Object.keys(D),z=D[""],B=cfe(z),k<0||k>y.length-(B?0:1)){Sh.warn("index out of range",o,k);continue}if(z!==void 0)P.length>1&&Sh.warn("Insertion & removal are incompatible with edits to the same index.",o,k),ZP(z)?C.push(k):B?(z==="add"&&(z={}),y.splice(k,0,z),b&&b.splice(k,0,{})):Sh.warn("Unrecognized full object edit value",o,k,z),x===-1&&(x=k);else for(A=0;A<P.length;A++)Y=o+"["+k+"].",i(y[k],P[A],Y).set(D[P[A]])}for(M=C.length-1;M>=0;M--)y.splice(C[M],1),b&&b.splice(C[M],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,d),u!==G7){var H;if(x===-1)H=p;else{for(_=Math.max(y.length,_),H=[],M=0;M<p.length&&(k=p[M],!(k>=x));M++)H.push(k);for(M=x;M<_;M++)H.push(M)}for(M=0;M<H.length;M++)u(r,H[M])}else s(r);return!0}});var aR=oe(ul=>{"use strict";var eR=Jt(),rR=xt(),Pi=pr(),Lh=Pn(),tR=qn(),Dh=tR.cleanId,vfe=tR.getFromTrace,V7=rR.traceIs,dfe=["x","y","z"];ul.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Pi.log("Clearing previous rejected promises from queue."),e._promises=[]};ul.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=(Lh.subplotsRegistry.cartesian||{}).attrRegex,n=(Lh.subplotsRegistry.polar||{}).attrRegex,i=(Lh.subplotsRegistry.ternary||{}).attrRegex,o=(Lh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var s=l[r];if(a&&a.test(s)){var u=e[s];u.anchor&&u.anchor!=="free"&&(u.anchor=Dh(u.anchor)),u.overlaying&&(u.overlaying=Dh(u.overlaying)),u.type||(u.isdate?u.type="date":u.islog?u.type="log":u.isdate===!1&&u.islog===!1&&(u.type="linear")),(u.autorange==="withzero"||u.autorange==="tozero")&&(u.autorange=!0,u.rangemode="tozero"),u.insiderange&&delete u.range,delete u.islog,delete u.isdate,delete u.categories,Fg(u,"domain")&&delete u.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];Pi.isPlainObject(c)&&(dv(c,"xref"),dv(c,"yref"))}var d=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<d;r++){var h=e.shapes[r];Pi.isPlainObject(h)&&(dv(h,"xref",!0),dv(h,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var m=e.images[r];Pi.isPlainObject(m)&&(dv(m,"xref"),dv(m,"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&&ul.cleanLayout(e.template.layout),e};function dv(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Dh(a,n,!0))}ul.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"&&ul.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=Dh(t.xaxis,"x")),t.yaxis&&(t.yaxis=Dh(t.yaxis,"y")),V7(t,"gl3d")&&t.scene&&(t.scene=Lh.subplotsRegistry.gl3d.cleanId(t.scene)),!V7(t,"pie-like")&&!V7(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=KP(t.textposition[a]);else t.textposition&&(t.textposition=KP(t.textposition));var n=rR.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"&&Pi.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];Pi.isPlainObject(s)&&(s.highlightColor&&(s.highlightcolor=s.highlightColor,delete s.highlightColor),s.highlightWidth&&(s.highlightwidth=s.highlightWidth,delete s.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var u=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=JP(t.increasing),d=JP(t.decreasing);if(c!==!1&&d!==!1){var h=hfe(c,d,u,f);h&&(t.name=h)}else(c||d)&&!t.name&&(t.name=c||d)}Fg(t,"line")&&delete t.line,"marker"in t&&(Fg(t.marker,"line")&&delete t.marker.line,Fg(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function JP(e){if(!Pi.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function hfe(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 KP(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 Fg(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}ul.swapXYData=function(e){var r;if(Pi.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);Pi.swapAttrs(e,["error_?.copy_ystyle"]),a&&Pi.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("+")}};ul.coerceTraceIndices=function(e,r){if(eR(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++)Pi.isIndex(r[a],e.data.length)?t.push(r[a]):Pi.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};ul.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=eR(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=Pi.nestedProperty(a,s).get();u.splice(o,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var pfe=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function QP(e){var r=e.search(pfe);if(r>0)return e.slice(0,r)}ul.hasParent=function(e,r){for(var t=QP(r);t;){if(t in e)return!0;t=QP(t)}return!1};ul.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=vfe(e,n,dfe[i]);if(o&&o.type!=="log"){var l=o._name,s=o._id.slice(1);if(s.slice(0,5)==="scene"){if(t[s]!==void 0)continue;l=s+"."+l}var u=l+".type";t[l]===void 0&&t[u]===void 0&&Pi.nestedProperty(e.layout,u).set(null)}}};var X7=(e,r)=>{let t=(...a)=>a.every(n=>Pi.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)?X7(n,i):!1))return!1}return!0}else if([e,r].every(a=>Pi.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)?X7(n,i):!1))return!1}return!0}return!1};ul.collectionsAreEqual=X7});var J7=oe(Xt=>{"use strict";var zg=qt(),mfe=Jt(),gfe=U5(),Yr=pr(),Ta=Yr.nestedProperty,W7=Fd(),Xi=Vk(),fl=xt(),Gg=H1(),yt=Pn(),Ri=Ga(),yfe=hb(),bfe=Vl(),Pg=da(),_fe=Nt(),xfe=U7().initInteractions,wfe=(ec(),_r(Q0)),Mfe=Ou().clearOutline,sR=gf().dfltConfig,qg=$P(),wn=aR(),ha=vg(),Vf=Ko(),Afe=(Un(),_r(On)).AX_NAME_PATTERN,j7=0,nR=5;function Tfe(e,r,t,a){var n;if(e=Yr.getGraphDiv(e),W7.init(e),Yr.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&&!Yr.isPlotDiv(e)&&Yr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Xt.addFrames(e,n)}fR(e,a),t||(t={}),zg.select(e).classed("js-plotly-plot",!0),Pg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(wn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=wn.cleanLayout(t)),yt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Zfe(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Pg.initGradients(e),Pg.initPatterns(e),s&&Ri.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&yt.doCalcdata(e);for(var d=0;d<e.calcdata.length;d++)e.calcdata[d][0].trace=e._fullData[d];if(e._context.responsive){if(!e._clearResponsive){let D=()=>{Yr.isHidden(e)||yt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",D),e._clearResponsive=()=>window.removeEventListener("resize",D);else{let P=e.offsetWidth,z=e.offsetHeight,B=new ResizeObserver(()=>{let Y=e.offsetWidth,H=e.offsetHeight,X=Math.abs(Y-P)>1||Math.abs(H-z)>1;P=Y,z=H,X&&Y&&H&&D()});B.observe(e),e._clearResponsive=()=>B.disconnect()}}}else Yr.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(D=>D.status!=="loaded"):[];var p=Yr.extendFlat({},u._size),m=0;function y(){for(var D=u._basePlotModules,P=0;P<D.length;P++)D[P].drawFramework&&D[P].drawFramework(e);!u._glcanvas&&u._has("gl")&&(u._glcanvas=u._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(H){return H.key}),u._glcanvas.enter().append("canvas").attr("class",function(H){return"gl-canvas gl-canvas-"+H.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var z=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*z).attr("height",u.height*z).style("width",u.width+"px").style("height",u.height+"px");var B=u._glcanvas.data()[0].regl;if(B&&(Math.floor(u.width*z)!==B._gl.drawingBufferWidth||Math.floor(u.height*z)!==B._gl.drawingBufferHeight)){var Y="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(m)Yr.error(Y);else return Yr.log(Y+" Clearing graph and plotting again."),yt.cleanPlot([],{},e._fullData,u),yt.supplyDefaults(e),u=e._fullLayout,yt.doCalcdata(e),m++,y()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),yt.previousPromises(e)}function b(){if(yt.clearAutoMarginIds(e),ha.drawMarginPushers(e),Ri.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&yt.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var D=e._fullData,P=0;P<D.length;P++){var z=D[P];z.type==="pie"&&z.automargin&&yt.allowAutoMargin(e,"pie."+z.uid+".automargin")}return yt.doAutoMargin(e),yt.previousPromises(e)}function C(){if(yt.didMarginChange(p,u._size))return b()}function x(){if(!c){_();return}return Yr.syncOrAsync([fl.getComponentMethod("shapes","calcAutorange"),fl.getComponentMethod("annotations","calcAutorange"),_],e)}function _(){e._transitioning||(ha.doAutoRangeAndConstraints(e),s&&Ri.saveRangeInitial(e),fl.getComponentMethod("rangeslider","calcAutorange")(e))}function M(){return Ri.draw(e,s?"":"redraw")}var A=[yt.previousPromises,l,y,b,C];f&&A.push(x),A.push(ha.layoutStyles),f&&A.push(M,function(P){var z=P._fullLayout._insideTickLabelsUpdaterange;if(z)return P._fullLayout._insideTickLabelsUpdaterange=void 0,Fh(P,z).then(function(){Ri.saveRangeInitial(P,!0)})}),A.push(ha.drawData,ha.finalDraw,xfe,yt.rehover,yt.redrag,yt.reselect,yt.doAutoMargin,yt.previousPromises);var k=Yr.syncOrAsync(A,e);return(!k||!k.then)&&(k=Promise.resolve()),k.then(function(){return kfe(e,h),qh(e),e})}function kfe(e,r){return O_(this,null,function*(){let t=r.filter(n=>["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Pg.savedBBoxes={},Xt._doPlot(e))})}function qh(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function Cfe(e){return Yr.extendFlat(sR,e)}function uR(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Yr.error(t)}}function Sfe(e,r){var t=_fe.combine(r,"white");uR(e,t)}function fR(e,r){if(!e._context){e._context=Yr.extendDeep({},sR);var t=zg.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]=Sfe: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"&&!gfe&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=uR),a._hasZeroHeight=a._hasZeroHeight||e.clientHeight===0,a._hasZeroWidth=a._hasZeroWidth||e.clientWidth===0;var s=a.scrollZoom,u=a._scrollZoom={};if(s===!0)u.cartesian=1,u.gl3d=1,u.geo=1,u.map=1;else if(typeof s=="string"){var f=s.split("+");for(n=0;n<f.length;n++)u[f[n]]=1}else s!==!1&&(u.gl3d=1,u.geo=1,u.map=1)}function Efe(e){if(e=Yr.getGraphDiv(e),!Yr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return wn.cleanData(e.data),wn.cleanLayout(e.layout),e.calcdata=void 0,Xt._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function Lfe(e,r,t,a){return e=Yr.getGraphDiv(e),yt.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),yt.purge(e),Xt._doPlot(e,r,t,a)}function Ng(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 Ig(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 cR(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]),Ig(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Ig(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Dfe(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 Ffe(e,r,t,a){var n=Yr.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Yr.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");Ig(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 qfe(e,r,t,a){var n=Yr.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=Ng(t,e.data.length-1);for(var c in r)for(var d=0;d<t.length;d++){if(o=e.data[t[d]],s=Ta(o,c),l=s.get(),u=r[c][d],!Yr.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+d+" must be an array");if(!Yr.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][d]:a,mfe(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function vR(e,r,t,a,n){Ffe(e,r,t,a);for(var i=qfe(e,r,t,a),o={},l={},s=0;s<i.length;s++){var u=i[s].prop,f=i[s].maxp,c=n(i[s].target,i[s].insert,f);u.set(c[0]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(c[1]),Array.isArray(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(i[s].target.length)}return{update:o,maxPoints:l}}function dR(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function hR(e,r,t,a){e=Yr.getGraphDiv(e);function n(s,u,f){var c,d;if(Yr.isTypedArray(s))if(f<0){var h=new s.constructor(0),p=dR(s,u);f<0?(c=p,d=h):(c=h,d=p)}else if(c=new s.constructor(f),d=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),d.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(m)),d.set(s),d.set(u.subarray(0,m),s.length)}else{var y=f-u.length,b=s.length-y;c.set(s.subarray(b)),c.set(u,y),d.set(s.subarray(0,b))}else c=s.concat(u),d=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,d]}var i=vR(e,r,t,a,n),o=Xt.redraw(e),l=[e,i.update,t,i.maxPoints];return Xi.add(e,Xt.prependTraces,l,hR,arguments),o}function pR(e,r,t,a){e=Yr.getGraphDiv(e);function n(s,u,f){var c,d;if(Yr.isTypedArray(s))if(f<=0){var h=new s.constructor(0),p=dR(u,s);f<0?(c=p,d=h):(c=h,d=p)}else if(c=new s.constructor(f),d=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),d.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(0,m)),d.set(u.subarray(m)),d.set(s,m)}else{var y=f-u.length;c.set(u),c.set(s.subarray(0,y),u.length),d.set(s.subarray(y))}else c=u.concat(s),d=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,d]}var i=vR(e,r,t,a,n),o=Xt.redraw(e),l=[e,i.update,t,i.maxPoints];return Xi.add(e,Xt.extendTraces,l,pR,arguments),o}function mR(e,r,t){e=Yr.getGraphDiv(e);var a=[],n=Xt.deleteTraces,i=mR,o=[e,a],l=[e,r],s,u;for(Dfe(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return Yr.extendFlat({},f)}),wn.cleanData(r),s=0;s<r.length;s++)e.data.push(r[s]);for(s=0;s<r.length;s++)a.push(-r.length+s);if(typeof t=="undefined")return u=Xt.redraw(e),Xi.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{cR(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Xi.startSequence(e),Xi.add(e,n,o,i,l),u=Xt.moveTraces(e,a,t),Xi.stopSequence(e),u}function gR(e,r){e=Yr.getGraphDiv(e);var t=[],a=Xt.addTraces,n=gR,i=[e,t,r],o=[e,r],l,s;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Ig(e,r,"indices"),r=Ng(r,e.data.length-1),r.sort(Yr.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=Xt.redraw(e);return Xi.add(e,a,i,n,o),u}function Z7(e,r,t){e=Yr.getGraphDiv(e);var a=[],n=[],i=Z7,o=Z7,l=[e,t,r],s=[e,r,t],u;if(cR(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],u=0;u<r.length;u++)t.push(-r.length+u);for(t=Array.isArray(t)?t:[t],r=Ng(r,e.data.length-1),t=Ng(t,e.data.length-1),u=0;u<e.data.length;u++)r.indexOf(u)===-1&&a.push(e.data[u]);for(u=0;u<r.length;u++)n.push({newIndex:t[u],trace:e.data[r[u]]});for(n.sort(function(c,d){return c.newIndex-d.newIndex}),u=0;u<n.length;u+=1)a.splice(n[u].newIndex,0,n[u].trace);e.data=a;var f=Xt.redraw(e);return Xi.add(e,i,l,o,s),f}function Bg(e,r,t,a){e=Yr.getGraphDiv(e),wn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(Yr.isPlainObject(r))n=Yr.extendFlat({},r),a===void 0&&(a=t);else return Yr.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=wn.coerceTraceIndices(e,a),o=yR(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&wn.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push(Xt._doPlot):(s.push(yt.previousPromises),yt.supplyDefaults(e),l.markerSize&&(yt.doCalcdata(e),Yg(s)),l.style&&s.push(ha.doTraceStyle),l.colorbars&&s.push(ha.doColorBars),s.push(qh)),s.push(yt.rehover,yt.redrag,yt.reselect),Xi.add(e,Bg,[e,o.undoit,o.traces],Bg,[e,o.redoit,o.traces]);var u=Yr.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function Uu(e){return e===void 0?null:e}function Rg(e,r){return r?function(t,a,n){var i=Ta(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;Hg(s,i.get(),l,e),o(l)},i}:Ta}function Hg(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++)Hg(e+"["+l+"]",n[l],i[l],a);else if(Yr.isPlainObject(r)||Yr.isPlainObject(t)){var s=Yr.isPlainObject(r)?r:{},u=Yr.isPlainObject(t)?t:{},f=Yr.extendFlat({},s,u);for(var c in f)Hg(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Uu(r))}function Pfe(e,r,t){for(var a in t){var n=Ta(e,a);Hg(a,n.get(),t[a],r)}}function yR(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=Rg(a._preGUI,o),s=Yr.extendDeepAll({},r),u,f=Vf.traceFlags(),c={},d={},h;function p(){return t.map(function(){})}function m(K){var J=Ri.id2name(K);h.indexOf(J)===-1&&h.push(J)}function y(K){return"LAYOUT"+K+".autorange"}function b(K){return"LAYOUT"+K+".range"}function C(K,J,ce){if(Array.isArray(K)){K.forEach(function(er){C(er,J,ce)});return}if(!(K in r||wn.hasParent(r,K))){var be;if(K.slice(0,6)==="LAYOUT")be=l(e.layout,K.replace("LAYOUT",""));else{var Le=t[ce],je=a._tracePreGUI[n[Le].uid];be=Rg(je,o)(i[Le],K)}K in d||(d[K]=p()),d[K][ce]===void 0&&(d[K][ce]=Uu(be.get())),J!==void 0&&be.set(J)}}function x(K){return function(J){return n[J][K]}}function _(K){return function(J,ce){return J===!1?n[t[ce]][K]:null}}for(var M in r){if(wn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var A=r[M],k,D,P,z,B,Y;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(A)?A=A.map(_(M)):A===!1?A=t.map(x(M)):A=null),c[M]=A,M.slice(0,6)==="LAYOUT"){P=l(e.layout,M.replace("LAYOUT","")),d[M]=[Uu(P.get())],P.set(Array.isArray(A)?A[0]:A),f.calc=!0;continue}for(d[M]=p(),u=0;u<t.length;u++){k=i[t[u]],D=n[t[u]];var H=a._tracePreGUI[D.uid];if(P=Rg(H,o)(k,M),z=P.get(),B=Array.isArray(A)?A[u%A.length]:A,B!==void 0){var X=P.parts[P.parts.length-1],N=M.slice(0,M.length-X.length-1),Q=N?N+".":"",ee=N?Ta(D,N).get():D;if(Y=Gg.getTraceValObject(D,P.parts),Y&&Y.impliedEdits&&B!==null)for(var ae in Y.impliedEdits)C(Yr.relativeAttr(M,ae),Y.impliedEdits[ae],u);else if((X==="thicknessmode"||X==="lenmode")&&z!==B&&(B==="fraction"||B==="pixels")&&ee){var re=a._size,ie=ee.orient,ue=ie==="top"||ie==="bottom";if(X==="thicknessmode"){var xe=ue?re.h:re.w;C(Q+"thickness",ee.thickness*(B==="fraction"?1/xe:xe),u)}else{var Ee=ue?re.w:re.h;C(Q+"len",ee.len*(B==="fraction"?1/Ee:Ee),u)}}else if(M==="type"&&(B==="pie"!=(z==="pie")||B==="funnelarea"!=(z==="funnelarea"))){var Re="x",Ne="y";(B==="bar"||z==="bar")&&k.orientation==="h"&&(Re="y",Ne="x"),Yr.swapAttrs(k,["?"],"labels",Re),Yr.swapAttrs(k,["d?","?0"],"label",Re),Yr.swapAttrs(k,["?"],"values",Ne),z==="pie"||z==="funnelarea"?(Ta(k,"marker.color").set(Ta(k,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):fl.traceIs(k,"cartesian")&&Ta(k,"marker.colors").set(Ta(k,"marker.color").get())}d[M][u]=Uu(z);var ke=["swapxy","swapxyaxes","orientation","orientationaxes"];if(ke.indexOf(M)!==-1){if(M==="orientation"){P.set(B);var We=k.x&&!k.y?"h":"v";if((P.get()||We)===D.orientation)continue}else M==="orientationaxes"&&(k.orientation={v:"h",h:"v"}[D.orientation]);wn.swapXYData(k),f.calc=f.clearAxisTypes=!0}else yt.dataArrayContainers.indexOf(P.parts[0])!==-1?(wn.manageArrayContainers(P,B,d),f.calc=!0):(Y?Y.arrayOk&&!fl.traceIs(D,"regl")&&(Yr.isArrayOrTypedArray(B)||Yr.isArrayOrTypedArray(z))?f.calc=!0:Vf.update(f,Y):f.calc=!0,P.set(B))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&Ri.swap(e,t),M==="orientationaxes"){var W=Ta(e.layout,"hovermode"),se=W.get();se==="x"?W.set("y"):se==="y"?W.set("x"):se==="x unified"?W.set("y unified"):se==="y unified"&&W.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(h=[],u=0;u<t.length;u++){var de=i[t[u]];fl.traceIs(de,"cartesian")&&(m(de.xaxis||"x"),m(de.yaxis||"y"))}C(h.map(y),!0,0),C(h.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:d,redoit:c,traces:t,eventData:Yr.extendDeepNoArrays([],[s,t])}}function Fh(e,r,t){e=Yr.getGraphDiv(e),wn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(Yr.isPlainObject(r))a=Yr.extendFlat({},r);else return Yr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=wR(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[yt.previousPromises];i.layoutReplot?o.push(ha.layoutReplot):Object.keys(a).length&&(bR(e,i,n)||yt.supplyDefaults(e),i.legend&&o.push(ha.doLegend),i.layoutstyle&&o.push(ha.layoutStyles),i.axrange&&Yg(o,n.rangesAltered),i.ticks&&o.push(ha.doTicksRelayout),i.modebar&&o.push(ha.doModeBar),i.camera&&o.push(ha.doCamera),i.colorbars&&o.push(ha.doColorBars),o.push(qh)),o.push(yt.rehover,yt.redrag,yt.reselect),Xi.add(e,Fh,[e,n.undoit],Fh,[e,n.redoit]);var l=Yr.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function bR(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(h,p){return Yr.coerce(i,o,bfe,h,p)},s={};for(var u in t.rangesAltered){var f=Ri.id2name(u);if(i=e.layout[f],o=a[f],yfe(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var d=a[Ri.id2name(c)];d.autorange=o.autorange,d.range=o.range.slice(),d._input.range=o.range.slice()}}}return!0}function Yg(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=Ri.getFromId(a,o);if(n.push(o),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&n.push(l._anchorAxis._id),l._matchGroup)for(var s in l._matchGroup)r[s]||n.push(s)}return Ri.draw(a,n,{skipTitle:i})}:function(a){return Ri.draw(a,"redraw")};e.push(Mfe,ha.doAutoRangeAndConstraints,t,ha.drawData,ha.finalDraw)}var _R=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,xR=/^[xyz]axis[0-9]*\.autorange$/,Rfe=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function wR(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=Rg(a._preGUI,n),o=Object.keys(r),l=Ri.list(e),s=Yr.extendDeepAll({},r),u={},f,c,d;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(d=0;d<l.length;d++){var h=l[d]._id.slice(1),p=h.indexOf("scene")!==-1?h+".":"",m=o[c].replace("allaxes",p+l[d]._name);r[m]||(r[m]=r[o[c]])}delete r[o[c]]}var y=Vf.layoutFlags(),b={},C={};function x(er,$e){if(Array.isArray(er)){er.forEach(function(Ie){x(Ie,$e)});return}if(!(er in r||wn.hasParent(r,er))){var ar=i(t,er);er in C||(C[er]=Uu(ar.get())),$e!==void 0&&ar.set($e)}}var _={},M;function A(er){var $e=Ri.name2id(er.split(".")[0]);return _[$e]=1,$e}for(var k in r){if(wn.hasParent(r,k))throw new Error("cannot set "+k+" and a parent attribute simultaneously");for(var D=i(t,k),P=r[k],z=D.parts.length,B=z-1;B>0&&typeof D.parts[B]!="string";)B--;var Y=D.parts[B],H=D.parts[B-1]+"."+Y,X=D.parts.slice(0,B).join("."),N=Ta(e.layout,X).get(),Q=Ta(a,X).get(),ee=D.get();if(P!==void 0){b[k]=P,C[k]=Y==="reverse"?P:Uu(ee);var ae=Gg.getLayoutValObject(a,D.parts);if(ae&&ae.impliedEdits&&P!==null)for(var re in ae.impliedEdits)x(Yr.relativeAttr(k,re),ae.impliedEdits[re]);if(["width","height"].indexOf(k)!==-1)if(P){x("autosize",null);var ie=k==="height"?"width":"height";x(ie,a[ie])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")x("width",P?null:a.width),x("height",P?null:a.height);else if(H.match(_R))A(H),Ta(a,X+"._inputRange").set(null);else if(H.match(xR)){A(H),Ta(a,X+"._inputRange").set(null);var ue=Ta(a,X).get();ue._inputDomain&&(ue._input.domain=ue._inputDomain.slice())}else H.match(Rfe)&&Ta(a,X+"._inputDomain").set(null);if(Y==="type"){M=N;var xe=Q.type==="linear"&&P==="log",Ee=Q.type==="log"&&P==="linear";if(xe||Ee){if(!M||!M.range)x(X+".autorange",!0);else if(Q.autorange)xe&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Re=M.range[0],Ne=M.range[1];xe?(Re<=0&&Ne<=0&&x(X+".autorange",!0),Re<=0?Re=Ne/1e6:Ne<=0&&(Ne=Re/1e6),x(X+".range[0]",Math.log(Re)/Math.LN10),x(X+".range[1]",Math.log(Ne)/Math.LN10)):(x(X+".range[0]",Math.pow(10,Re)),x(X+".range[1]",Math.pow(10,Ne)))}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"],fl.getComponentMethod("annotations","convertCoords")(e,Q,P,x),fl.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(X+".autorange",!0),x(X+".range",null);Ta(a,X+"._inputRange").set(null)}else if(Y.match(Afe)){var ke=Ta(a,k).get(),We=(P||{}).type;(!We||We==="-")&&(We="linear"),fl.getComponentMethod("annotations","convertCoords")(e,ke,We,x),fl.getComponentMethod("images","convertCoords")(e,ke,We,x),!X&&ke&&P&&(P.range!==void 0||P.autorange!==void 0)&&(A(`${Y}.range`),ke._inputRange=null)}var W=qg.containerArrayMatch(k);if(W){f=W.array,c=W.index;var se=W.property,de=ae||{editType:"calc"};c!==""&&se===""&&(qg.isAddVal(P)?C[k]=null:qg.isRemoveVal(P)?C[k]=(Ta(t,f).get()||[])[c]:Yr.warn("unrecognized full object value",r)),Vf.update(y,de),u[f]||(u[f]={});var K=u[f][c];K||(K=u[f][c]={}),K[se]=P,delete r[k]}else Y==="reverse"?(N.range?N.range.reverse():(x(X+".autorange",!0),N.range=[1,0]),Q.autorange?y.calc=!0:y.plot=!0):(k==="dragmode"&&(P===!1&&ee!==!1||P!==!1&&ee===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(P==="lasso"||P==="select")&&!(ee==="lasso"||ee==="select")?y.plot=!0:ae?Vf.update(y,ae):y.calc=!0,D.set(P))}}for(f in u){var J=qg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);J||(y.plot=!0)}for(var ce in _){M=Ri.getFromId(e,ce);var be=M&&M._constraintGroup;if(be){y.calc=!0;for(var Le in be)_[Le]||(Ri.getFromId(e,Le)._constraintShrinkable=!0)}}(MR(e)||r.height||r.width)&&(y.plot=!0);var je=a.shapes;for(c=0;c<je.length;c++)if(je[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:_,undoit:C,redoit:b,eventData:s}}function MR(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&yt.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Og(e,r,t,a){e=Yr.getGraphDiv(e),wn.clearPromiseQueue(e),Yr.isPlainObject(r)||(r={}),Yr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=wn.coerceTraceIndices(e,a),i=yR(e,Yr.extendFlat({},r),n),o=i.flags,l=wR(e,Yr.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&wn.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(ha.layoutReplot):o.fullReplot?u.push(Xt._doPlot):(u.push(yt.previousPromises),bR(e,s,l)||yt.supplyDefaults(e),o.style&&u.push(ha.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(ha.doColorBars),s.legend&&u.push(ha.doLegend),s.layoutstyle&&u.push(ha.layoutStyles),s.axrange&&Yg(u,l.rangesAltered),s.ticks&&u.push(ha.doTicksRelayout),s.modebar&&u.push(ha.doModeBar),s.camera&&u.push(ha.doCamera),u.push(qh)),u.push(yt.rehover,yt.redrag,yt.reselect),Xi.add(e,Og,[e,i.undoit,l.undoit,i.traces],Og,[e,i.redoit,l.redoit,i.traces]);var f=Yr.syncOrAsync(u,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 $7(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var zfe=[{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"}],Nfe=[{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 iR(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 oR(e,r){var t=Ta(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=Ta(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Ife(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function Bfe(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 lR(e,r){var t=Yr.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&Yr.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function Hfe(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,d,h,p,m=[],y={},b={};for(i in n){if(u=iR(i,zfe),u){if(h=u.head,p=u.tail,o=u.attr||h+".uirevision",l=Ta(a,o).get(),s=l&&oR(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=Ta(r,i),d=c.get(),lR(d,f)){d===void 0&&p==="autorange"&&m.push(h),c.set(Uu(Ta(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var C=n[h+".range[0]"],x=n[h+".range[1]"],_=n[h+".autorange"];if(_||_===null&&C===null&&x===null){if(!(h in y)){var M=Ta(r,h).get();y[h]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(y[h]){c.set(Uu(Ta(a,i).get()));continue}}}}}else Yr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(b[u.head]=1)}for(var A=0;A<m.length;A++){var k=m[A];if(b[k]){var D=Ta(r,k).get();D&&delete D.autorange}}var P=a._tracePreGUI;for(var z in P){var B=P[z],Y=null,H;for(i in B){if(!Y){var X=Ife(z,t);if(X<0){delete P[z];break}H=t[X];var N=Bfe(z,e,H.index);if(N<0){delete P[z];break}Y=e[N]}if(u=iR(i,Nfe),u){if(u.attr?(l=Ta(a,u.attr).get(),s=l&&oR(u.attr,r)):(l=H.uirevision,s=Y.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=B[i],f===null&&(f=void 0),c=Ta(Y,i),d=c.get(),lR(d,f))){c.set(Uu(Ta(H,i).get()));continue}}else Yr.warn("unrecognized GUI edit: "+i+" in trace uid "+z);delete B[i]}}}function Ofe(e,r,t,a){var n,i;function o(){return Xt.addFrames(e,n)}e=Yr.getGraphDiv(e),wn.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!Yr.isPlotDiv(e)||!l||!s)i=Xt.newPlot(e,r,t,a);else{if(Yr.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let H=Yr.extendDeepAll({},e._context);e._context=void 0,fR(e,a),f=!wn.collectionsAreEqual(H,e._context)}if(f){let H=e._ev.eventNames().map(X=>[X,e._ev.listeners(X)]);i=Xt.newPlot(e,r,t,a).then(()=>{for(let[X,N]of H)N.forEach(Q=>e.on(X,Q));return Xt.react(e,r,t,a)})}else{e.data=r||[],wn.cleanData(e.data),e.layout=t||{},wn.cleanLayout(e.layout),Hfe(e.data,e.layout,l,s),yt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,p=d.transition,m=Gfe(e,s,d,h,p),y=m.newDataRevision,b=Ufe(e,l,c,h,p,y);if(MR(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(d),x=0;x<C.length;x++){var _=C[x],M=_.substring(0,5);if(M==="xaxis"||M==="yaxis"){var A=d[_]._emptyCategories;A&&A()}}}else yt.supplyDefaultsUpdateCalc(e.calcdata,c);var k=[];if(n&&(e._transitionData={},yt.createTransitionData(e),k.push(o)),d.transition&&(b.anim||m.anim))m.ticks&&k.push(ha.doTicksRelayout),yt.doCalcdata(e),ha.doAutoRangeAndConstraints(e),k.push(function(){return yt.transitionFromReact(e,b,m,s)});else if(b.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,k.push(Xt._doPlot);else{for(var D in m.arrays){var P=m.arrays[D];if(P.length){var z=fl.getComponentMethod(D,"drawOne");if(z!==Yr.noop)for(var B=0;B<P.length;B++)z(e,P[B]);else{var Y=fl.getComponentMethod(D,"draw");if(Y===Yr.noop)throw new Error("cannot draw components: "+D);Y(e)}}}k.push(yt.previousPromises),b.style&&k.push(ha.doTraceStyle),(b.colorbars||m.colorbars)&&k.push(ha.doColorBars),m.legend&&k.push(ha.doLegend),m.layoutstyle&&k.push(ha.layoutStyles),m.axrange&&Yg(k),m.ticks&&k.push(ha.doTicksRelayout),m.modebar&&k.push(ha.doModeBar),m.camera&&k.push(ha.doCamera),k.push(qh)}k.push(yt.rehover,yt.redrag,yt.reselect),i=Yr.syncOrAsync(k,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Ufe(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Vf.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(h){var p=Gg.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},d={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],d[u.uid])continue;d[u.uid]=1,Ug(r[s],u,[],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 Gfe(e,r,t,a,n){var i=Vf.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(d){return Gg.getLayoutValObject(t,d)}for(var l in t){if(!l.startsWith("xaxis")&&!l.startsWith("yaxis")||!r[l])continue;var s=t[l].domain,u=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[l].domain=r[l].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[l]._inputDomain=null));let d=t[l].range,h=r[l].range,p=r[l]._inputRange;if(p&&d&&h){let m=d[0]===p[0]&&d[1]===p[1],y=d[0]===h[0]&&d[1]===h[1];!m&&!y&&(t[l]._inputRange=null)}}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Ug(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 Ug(e,r,t,a){var n,i,o,l=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function d(){var X=n.editType;if(f&&X.indexOf("arraydraw")!==-1){Yr.pushUnique(s.arrays[f],c);return}Vf.update(s,n),X!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(_R.test(o)||xR.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function h(X){return X.valType==="data_array"||X.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],m=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===m)){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(p)===JSON.stringify(m)))){var C=n.valType,x,_=h(n),M=Array.isArray(p),A=Array.isArray(m);if(M&&A){var k="_input_"+i,D=e[k],P=r[k];if(Array.isArray(D)&&D===P)continue}if(m===void 0)_&&M?s.calc=!0:d();else if(n._isLinkedToArray){var z=[],B=!1;f||(s.arrays[i]=z);var Y=Math.min(p.length,m.length),H=Math.max(p.length,m.length);if(Y!==H)if(n.editType==="arraydraw")B=!0;else{d();continue}for(x=0;x<Y;x++)Ug(p[x],m[x],y.concat(x),Yr.extendFlat({inArray:i,arrayIndex:x},a));if(B)for(x=Y;x<H;x++)z.push(x)}else!C&&Yr.isPlainObject(p)?Ug(p,m,y,a):_?M&&A?(u&&(s.calc=!0),(u||a.newDataRevision)&&d()):M!==A?s.calc=!0:d():M&&A?(p.length!==m.length||String(p)!==String(m))&&d():d()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),h(n)&&Array.isArray(r[i])){s.calc=!0;return}else d()}function Yfe(e,r,t){if(e=Yr.getGraphDiv(e),!Yr.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=yt.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function o(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var Y=a._frameQueue.pop();Y.onInterrupt&&Y.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(Y){if(Y.length!==0){for(var H=0;H<Y.length;H++){var X;Y[H].type==="byname"?X=yt.computeFrame(e,Y[H].name):X=Y[H].data;var N=l(H),Q=o(H);Q.duration=Math.min(Q.duration,N.duration);var ee={frame:X,name:Y[H].name,frameOpts:N,transitionOpts:Q};H===Y.length-1&&(ee.onComplete=s(u,2),ee.onInterrupt=f),a._frameQueue.push(ee)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||m()}}function h(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var Y=a._currentFrame=a._frameQueue.shift();if(Y){var H=Y.name?Y.name.toString():null;e._fullLayout._currentFrame=H,a._lastFrameAt=Date.now(),a._timeToNext=Y.frameOpts.duration,yt.transition(e,Y.frame.data,Y.frame.layout,wn.coerceTraceIndices(e,Y.frame.traces),Y.frameOpts,Y.transitionOpts).then(function(){Y.onComplete&&Y.onComplete()}),e.emit("plotly_animatingframe",{name:H,frame:Y.frame,animation:{frame:Y.frameOpts,transition:Y.transitionOpts}})}else h()}function m(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var Y=function(){a._animationRaf=window.requestAnimationFrame(Y),Date.now()-a._lastFrameAt>a._timeToNext&&p()};Y()}var y=0;function b(Y){return Array.isArray(n)?y>=n.length?Y.transitionOpts=n[y]:Y.transitionOpts=n[0]:Y.transitionOpts=n,y++,Y}var C,x,_=[],M=r==null,A=Array.isArray(r),k=!M&&!A&&Yr.isPlainObject(r);if(k)_.push({type:"object",data:b(Yr.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(A)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})})):Yr.isPlainObject(D)&&_.push({type:"object",data:b(Yr.extendFlat({},D))})}for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&!a._frameHash[x.data.name]){Yr.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?d(_):(e.emit("plotly_animated"),u())})}function Vfe(e,r,t){if(e=Yr.getGraphDiv(e),r==null)return Promise.resolve();if(!Yr.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,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Yr.isPlainObject(r[a])){var d=r[a].name,h=(s[d]||c[d]||{}).name,p=r[a].name,m=s[h]||c[h];h&&p&&typeof p=="number"&&m&&j7<nR&&(j7++,Yr.warn('addFrames: overwriting frame "'+(s[h]||c[h]).name+'" with a frame whose name of type "number" also equates to "'+h+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),j7===nR&&Yr.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[d]={name:d},f.push({frame:yt.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(k,D){return k.index>D.index?-1:k.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"&&Yr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[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=yt.modifyFrames,_=yt.modifyFrames,M=[e,b],A=[e,y];return Xi&&Xi.add(e,x,M,_,A),yt.modifyFrames(e,y)}function Xfe(e,r){if(e=Yr.getGraphDiv(e),!Yr.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=yt.modifyFrames,s=yt.modifyFrames,u=[e,o],f=[e,i];return Xi&&Xi.add(e,l,u,s,f),yt.modifyFrames(e,i)}function jfe(e){e=Yr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return yt.cleanPlot([],{},t,r),yt.purge(e),W7.purge(e),r._container&&r._container.remove(),delete e._context,e}function Wfe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Yr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Yr.inverseTransformMatrix(Yr.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 Zfe(e){var r=zg.select(e),t=e._fullLayout;if(t._calcInverseTransform=Wfe,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={};zg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Yr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(wfe.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")}Xt.animate=Yfe;Xt.addFrames=Vfe;Xt.deleteFrames=Xfe;Xt.addTraces=mR;Xt.deleteTraces=gR;Xt.extendTraces=hR;Xt.moveTraces=Z7;Xt.prependTraces=pR;Xt.newPlot=Lfe;Xt._doPlot=Tfe;Xt.purge=jfe;Xt.react=Ofe;Xt.redraw=Efe;Xt.relayout=Fh;Xt.restyle=Bg;Xt.setPlotConfig=Cfe;Xt.update=Og;Xt._guiRelayout=$7(Fh);Xt._guiRestyle=$7(Bg);Xt._guiUpdate=$7(Og);Xt._storeDirectGUIEdit=Pfe});var xc=oe(cl=>{"use strict";var $fe=xt();cl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};cl.getRedrawFunc=function(e){return function(){$fe.getComponentMethod("colorbar","draw")(e)}};cl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};cl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var AR=window.URL||window.webkitURL;cl.createObjectURL=function(e){return AR.createObjectURL(e)};cl.revokeObjectURL=function(e){return AR.revokeObjectURL(e)};cl.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=Jfe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};cl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};cl.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};cl.getPlotSubtitle=function(e){var a,n,i,o,l,s;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(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function Jfe(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}cl.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Vg=oe((R7e,TR)=>{"use strict";var Q7=qt(),q7e=pr(),Kfe=da(),Qfe=Nt(),P7e=(ec(),_r(Q0)),K7=/"/g,wc="TOBESTRIPPED",e0e=new RegExp(`("${wc})|(${wc}")|("${wc})|(${wc}")`,"g"),r0e=["&","&","&",""",""",""","'","'","'"],t0e=["<","<","<"],a0e=[">",">",">"];function n0e(e){let r=Q7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return r0e.includes(n)?a:t0e.includes(n)?"<":a0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function i0e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}TR.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(Kfe.setRect,0,0,l,s).call(Qfe.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u<f.length;u++){var c=f[u];c.toSVG&&c.toSVG(r)}if(o){var d=o.node().childNodes,h=Array.prototype.slice.call(d);for(u=0;u<h.length;u++){var p=h[u];p.childNodes.length&&i.node().appendChild(p)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=Q7.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,wc));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=Q7.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(K7,wc));var C=this.style.stroke;C&&C.indexOf("url(")!==-1&&y.style("stroke",C.replace(K7,wc))}),(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*s),i.attr("viewBox","0 0 "+l+" "+s));var m=new window.XMLSerializer().serializeToString(i.node());return m=n0e(m),m=i0e(m),m=m.replace(e0e,"'"),m}});var Xg=oe((z7e,kR)=>{"use strict";var o0e=pr(),l0e=Rm().EventEmitter,Ph=xc();function s0e(e){var r=e.emitter||new l0e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,d=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;l==="svg"||o0e.isSafari()?b=Ph.encodeSVG(o):(y=Ph.createBlob(o,"svg"),b=Ph.createObjectURL(y)),s.width=d,s.height=h,m.onload=function(){var C;switch(y=null,Ph.revokeObjectURL(b),l!=="svg"&&p.drawImage(m,0,0,d,h),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.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)},m.onerror=function(C){if(y=null,Ph.revokeObjectURL(b),n(C),!e.promise)return r.emit("error",C)},m.src=b});return e.promise?t:r}kR.exports=s0e});var r9=oe((N7e,ER)=>{"use strict";var CR=Jt(),SR=J7(),u0e=Pn(),Vs=pr(),Rh=xc(),f0e=Vg(),c0e=Xg(),v0e=Kv().version,e9=(l5(),_r(o5)).default;function d0e(e,r){r=r||{};var t,a,n,i;Vs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Vs.getGraphDiv(e),t=Vs.extendDeep([],e.data),a=Vs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(A){return!(A in r)||Vs.validate(r[A],e9[A])}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 "+Vs.join2(e9.format.values,", "," or ")+".");var l={};function s(A,k){return Vs.coerce(r,l,e9,A,k)}var u=s("format"),f=s("width"),c=s("height"),d=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Vs.extendFlat({},a);f?y.width=f:r.width===null&&CR(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&CR(i.height)&&(y.height=i.height);var b=Vs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),C=Rh.getRedrawFunc(m);function x(){return new Promise(function(A){setTimeout(A,Rh.getDelay(m._fullLayout))})}function _(){return new Promise(function(A,k){var D=f0e(m,u,d),P=m._fullLayout.width,z=m._fullLayout.height;function B(){SR.purge(m),document.body.removeChild(m)}if(u==="full-json"){var Y=u0e.graphJson(m,!1,"object",!0,!0);return Y.version=v0e,Y=JSON.stringify(Y),B(),A(p?Y:Rh.encodeJSON(Y))}if(B(),u==="svg")return A(p?D:Rh.encodeSVG(D));var H=document.createElement("canvas");H.id=Vs.randstr(),c0e({format:u,width:P,height:z,scale:d,canvas:H,svg:D,promise:!0}).then(A).catch(k)})}function M(A){return p?A.replace(Rh.IMAGE_URL_PREFIX,""):A}return new Promise(function(A,k){SR.newPlot(m,t,y,b).then(C).then(x).then(_).then(function(D){A(M(D))}).catch(function(D){k(D)})})}ER.exports=d0e});var FR=oe((I7e,DR)=>{"use strict";var vl=pr(),h0e=Pn(),p0e=H1(),m0e=gf().dfltConfig,Kl=vl.isPlainObject,Ac=Array.isArray,t9=vl.isArrayOrTypedArray;DR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=p0e.get(),n=[],i={_context:vl.extendFlat({},m0e)},o,l;Ac(r)?(i.data=vl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Xn("array","data"))),Kl(t)?(i.layout=vl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Xn("object","layout"))),h0e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],d=["data",f];if(!Kl(c)){n.push(Xn("object",d));continue}var h=s[f],p=h.type,m=a.traces[p].attributes;m.type={valType:"enumerated",values:[p]},h.visible===!1&&c.visible!==!1&&n.push(Xn("invisible",d)),jg(c,h,m,n,d)}var y=i._fullLayout,b=g0e(a,s);return jg(l,y,b,n,"layout"),n.length===0?void 0:n};function jg(e,r,t,a,n,i){i=i||[];for(var o=Object.keys(e),l=0;l<o.length;l++){var s=o[l],u=i.slice();u.push(s);var f=e[s],c=r[s],d=_0e(t,s),h=(d||{}).valType,p=h==="info_array",m=h==="colorscale",y=(d||{}).items;if(!b0e(t,s))a.push(Xn("schema",n,u));else if(Kl(f)&&Kl(c)&&h!=="any")jg(f,c,d,a,n,u);else if(p&&Ac(f)){f.length>c.length&&a.push(Xn("unused",n,u.concat(c.length)));var b=c.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,M,A,k;if(d.dimensions===2)for(_=0;_<b;_++)if(Ac(f[_])){f[_].length>c[_].length&&a.push(Xn("unused",n,u.concat(_,c[_].length)));var D=c[_].length;for(x=0;x<(C?Math.min(D,y[_].length):D);x++)M=C?y[_][x]:y,A=f[_][x],k=c[_][x],vl.validate(A,M)?k!==A&&k!==+A&&a.push(Xn("dynamic",n,u.concat(_,x),A,k)):a.push(Xn("value",n,u.concat(_,x),A))}else a.push(Xn("array",n,u.concat(_),f[_]));else for(_=0;_<b;_++)M=C?y[_]:y,A=f[_],k=c[_],vl.validate(A,M)?k!==A&&k!==+A&&a.push(Xn("dynamic",n,u.concat(_),A,k)):a.push(Xn("value",n,u.concat(_),A))}else if(d.items&&!p&&Ac(f)){var P=y[Object.keys(y)[0]],z=[],B,Y;for(B=0;B<c.length;B++){var H=c[B]._index||B;if(Y=u.slice(),Y.push(H),Kl(f[H])&&Kl(c[B])){z.push(H);var X=f[H],N=c[B];Kl(X)&&X.visible!==!1&&N.visible===!1?a.push(Xn("invisible",n,Y)):jg(X,N,P,a,n,Y)}}for(B=0;B<f.length;B++)Y=u.slice(),Y.push(B),Kl(f[B])?z.indexOf(B)===-1&&a.push(Xn("unused",n,Y)):a.push(Xn("object",n,Y,f[B]))}else!Kl(f)&&Kl(c)?a.push(Xn("object",n,u,f)):!t9(f)&&t9(c)&&!p&&!m?a.push(Xn("array",n,u,f)):s in r?vl.validate(f,d)?d.valType==="enumerated"&&(d.coerceNumber&&f!==+c||!t9(f)&&f!==c||String(f)!==String(c))&&a.push(Xn("dynamic",n,u,f,c)):a.push(Xn("value",n,u,f)):a.push(Xn("unused",n,u,f))}return a}function g0e(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?vl.extendFlat(t[i.attributes.subplot.dflt],o):vl.extendFlat(t,o))}return t}var y0e={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=Mc(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=Mc(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return Mc(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Kl(t)?"container":"key";return Mc(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[Mc(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?Mc(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[Mc(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function Mc(e){return Ac(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Xn(e,r,t,a,n){t=t||"";var i,o;Ac(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=w0e(t),s=y0e[e](r,l,a,n);return vl.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function b0e(e,r){var t=LR(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function _0e(e,r){if(r in e)return e[r];var t=LR(r);return e[t.keyMinusId]}var x0e=vl.counterRegex("([a-z]+)");function LR(e){var r=e.match(x0e);return{keyMinusId:r&&r[1],id:r&&r[2]}}function w0e(e){if(!Ac(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 PR=oe((B7e,qR)=>{"use strict";var M0e=pr(),Wg=xc();function A0e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=Wg.createBlob(e,t),u=Wg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Wg.revokeObjectURL(u),s=null,o(r);if(M0e.isSafari()){var f=t==="svg"?",":";base64,";return Wg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}qR.exports=A0e});var a9=oe((H7e,IR)=>{"use strict";var Zg=pr(),RR=hi(),T0e=r9(),k0e=PR(),zR=xc(),NR=40;function C0e(e,r){var t;return Zg.isPlainObject(e)||(t=Zg.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=T0e(e,r),o=r.filename||e.fn;if(!o){let s=zR.getPlotTitle(e);if(s&&!RR.matchTex(s))o=Zg.slugify(s,NR);else{let u=zR.getPlotSubtitle(e);u&&!RR.matchTex(u)&&(o=Zg.slugify(u,NR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),k0e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}IR.exports=C0e});var GR=oe(n9=>{"use strict";var vo=pr(),ho=vo.isPlainObject,BR=H1(),HR=Pn(),S0e=Jo(),OR=Aa(),UR=gf().dfltConfig;n9.makeTemplate=function(e){e=vo.isPlainObject(e)?e:vo.getGraphDiv(e),e=vo.extendDeep({_context:UR},{data:e.data,layout:e.layout}),HR.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(h){var p={};zh(h,p,L0e.bind(null,h));var m=vo.coerce(h,{},S0e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),zh(t,a.layout,E0e.bind(null,t)),delete a.layout.template;var n=t.template;if(ho(n)){var i=n.layout,o,l,s,u,f,c;ho(i)&&$g(i,a.layout);var d=n.data;if(ho(d)){for(l in a.data)if(s=d[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;o<c;o++)$g(s[o%u],f[o]);for(o=c;o<u;o++)f.push(vo.extendDeep({},s[o]))}for(l in d)l in a.data||(a.data[l]=vo.extendDeep([],d[l]))}}return a};function $g(e,r){e=vo.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,d){if(ho(c)&&ho(f))$g(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var h=OR.arrayTemplater({_template:e},d);for(n=0;n<c.length;n++){var p=c[n],m=h.newItem(p)._template;m&&$g(m,p)}var y=h.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,Jg(o)===o)for(var s in r){var u=Jg(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function Jg(e){return e.replace(/[0-9]+$/,"")}function zh(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=dl(e,o,a),u=dl(e,o,n),f=t(u);if(!f){var c=Jg(o);c!==o&&(u=dl(e,c,n),f=t(u))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&ho(l))zh(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var d=!1,h=0,p={},m=0;m<l.length;m++){var y=l[m];if(ho(y)){var b=y.name;if(b)p[b]||(zh(y,r,t,dl(l,h,s),dl(l,h,u)),h++,p[b]=1);else if(!d){var C=OR.arrayDefaultKey(o),x=dl(e,C,a),_=dl(l,h,s);zh(y,r,t,_,dl(l,h,u));var M=vo.nestedProperty(r,_),A=vo.nestedProperty(r,x);A.set(M.get()),M.set(null),d=!0}}}else{var k=vo.nestedProperty(r,s);k.set(l)}}}function E0e(e,r){return BR.getLayoutValObject(e,vo.nestedProperty({},r).parts)}function L0e(e,r){return BR.getTraceValObject(e,vo.nestedProperty({},r).parts)}function dl(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}n9.validateTemplate=function(e,r){var t=vo.extendDeep({},{_context:UR,data:e.data,layout:e.layout}),a=t.layout||{};ho(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,HR.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(x,_){for(var M in x)if(M.charAt(0)!=="_"&&ho(x[M])){var A=Jg(M),k=[],D;for(D=0;D<_.length;D++)k.push(dl(x,M,_[D])),A!==M&&k.push(dl(x,A,_[D]));for(D=0;D<k.length;D++)u[k[D]]=1;f(x[M],k)}}function c(x,_){for(var M in x)if(M.indexOf("defaults")===-1&&ho(x[M])){var A=dl(x,M,_);u[A]?c(x[M],A):o.push({code:"unused",path:A})}}if(ho(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!ho(i))o.push({code:"data"});else{for(var d={},h,p=0;p<s.length;p++){var m=s[p];h=m.type,d[h]=(d[h]||0)+1,m._template||o.push({code:"missing",index:m.index,traceType:h})}for(h in i){var y=i[h].length,b=d[h]||0;y>b?o.push({code:"unused",traceType:h,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:h,templateCount:y,dataCount:b})}}function C(x,_){for(var M in x)if(M.charAt(0)!=="_"){var A=x[M],k=dl(x,M,_);ho(A)?(Array.isArray(x)&&A._template===!1&&A.templateitemname&&o.push({code:"missing",path:k,templateitemname:A.templateitemname}),C(A,k)):Array.isArray(A)&&D0e(A)&&C(A,k)}}if(C({data:s,layout:l},""),o.length)return o.map(F0e)};function D0e(e){for(var r=0;r<e.length;r++)if(ho(e[r]))return!0}function F0e(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 VR=oe(Ra=>{"use strict";var zn=J7();Ra._doPlot=zn._doPlot;Ra.newPlot=zn.newPlot;Ra.restyle=zn.restyle;Ra.relayout=zn.relayout;Ra.redraw=zn.redraw;Ra.update=zn.update;Ra._guiRestyle=zn._guiRestyle;Ra._guiRelayout=zn._guiRelayout;Ra._guiUpdate=zn._guiUpdate;Ra._storeDirectGUIEdit=zn._storeDirectGUIEdit;Ra.react=zn.react;Ra.extendTraces=zn.extendTraces;Ra.prependTraces=zn.prependTraces;Ra.addTraces=zn.addTraces;Ra.deleteTraces=zn.deleteTraces;Ra.moveTraces=zn.moveTraces;Ra.purge=zn.purge;Ra.addFrames=zn.addFrames;Ra.deleteFrames=zn.deleteFrames;Ra.animate=zn.animate;Ra.setPlotConfig=zn.setPlotConfig;var q0e=Ad().getGraphDiv,P0e=ig().eraseActiveShape;Ra.deleteActiveShape=function(e){return P0e(q0e(e))};Ra.toImage=r9();Ra.validate=FR();Ra.downloadImage=a9();var YR=GR();Ra.makeTemplate=YR.makeTemplate;Ra.validateTemplate=YR.validateTemplate});var jR=oe((G7e,XR)=>{"use strict";var i9=pr(),R0e=xt();XR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=R0e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=i9.minRowLength(i);o?l=Math.min(u,i9.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=i9.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var JR=oe((Y7e,$R)=>{"use strict";var WR=pr().dateTick0,z0e=(ja(),_r(tn)),N0e=z0e.ONEWEEK;function ZR(e,r){return e%N0e===0?WR(r,1):WR(r,0)}$R.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",ZR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",ZR(l,t.ycalendar)),n("yperiodalignment"))}}});var ez=oe((V7e,QR)=>{"use strict";var KR=["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,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},d=0;d<KR.length;d++){var h=KR[d],p=h+"Found";if(!u[p]){var m=r[h]!==void 0,y=h==="orientation";if((m||f)&&(u[h]=n(h,c[h]),y&&(u.fillDflt=u[h]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][h],y))))for(var b=0;b<u.traces.length-1;b++){var C=u.traces[b];C._input.fill!==C.fill&&(C.fill=u.fillDflt)}}}return u}}});var o9=oe((X7e,nz)=>{"use strict";var rz=Nt(),tz=Fs().hasColorscale,az=V1(),I0e=Si();nz.exports=function(r,t,a,n,i,o={}){var l=I0e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),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),tz(r,"marker")&&az(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||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=rz.background:u=rz.defaultLine,i("marker.line.color",u),tz(r,"marker.line")&&az(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 l9=oe((j7e,iz)=>{"use strict";var B0e=pr().isArrayOrTypedArray,H0e=Fs().hasColorscale,O0e=V1();iz.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),H0e(r,"line"))O0e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(B0e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var lz=oe((W7e,oz)=>{"use strict";oz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var s9=oe((Z7e,sz)=>{"use strict";var U0e=pr();sz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),U0e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var u9=oe(($7e,fz)=>{"use strict";var Kg=Nt(),uz=pr().isArrayOrTypedArray;function G0e(e){for(var r=Kg.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Kg.interpolate(e[t-1][1],e[t][1],.5);r=Kg.interpolate(r,a,e[t-1][0]/e[t][0])}return r}fz.exports=function(r,t,a,n,i){i||(i={});var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!uz(l)?o=l:s&&!uz(s)&&(o=s)}var u;if(i.moduleHasFillgradient){var f=n("fillgradient.type");if(f!=="none"){n("fillgradient.start"),n("fillgradient.stop");var c=n("fillgradient.colorscale");c&&(u=G0e(c))}}n("fillcolor",Kg.addOpacity((t.line||{}).color||o||u||a,.5))}});var hz=oe((J7e,dz)=>{"use strict";var cz=pr(),Y0e=xt(),V0e=_c(),X0e=(Ag(),_r(Mg)),hv=Si(),j0e=jR(),W0e=JR(),Z0e=ez(),$0e=o9(),J0e=l9(),vz=lz(),K0e=s9(),Q0e=u9(),ece=pr().coercePattern;dz.exports=function(r,t,a,n){function i(h,p){return cz.coerce(r,t,V0e,h,p)}var o=j0e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){W0e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Z0e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<X0e.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),hv.hasMarkers(t)&&$0e(r,t,a,n,i,{gradient:!0}),hv.hasLines(t)&&(J0e(r,t,a,n,i,{backoff:!0}),vz(r,t,i),i("connectgaps"),i("line.simplify")),hv.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),K0e(r,t,n,i));var u=[];(hv.hasMarkers(t)||hv.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Q0e(r,t,a,i,{moduleHasFillgradient:!0}),hv.hasLines(t)||vz(r,t,i),ece(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&u.push("fills"),i("hoveron",u.join("+")||"points"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var d=Y0e.getComponentMethod("errorbars","supplyDefaults");d(r,t,f||c||a,{axis:"y"}),d(r,t,f||c||a,{axis:"x",inherit:"y"}),cz.coerceSelectionMarkerOpacity(t,i)}}});var mz=oe((K7e,pz)=>{"use strict";var rce=lh().getAxisGroup;pz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=rce(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var d=c[f];d?d.traces.push(t):d=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=d.offsetGroups,m=p[h];t._offsetIndex=0,(i!=="group"||h)&&(m||(m=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var yz=oe((Q7e,gz)=>{"use strict";var tce=pr(),ace=mz(),nce=_c();gz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(d){return tce.coerce(n._input,n,nce,d)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,ace(a,n,t,l,o));for(i=0;i<r.length;i++){var s=r[i];if(s.type==="scatter"){var u=s.fill;if(!(u==="none"||u==="toself")&&(s.opacity=void 0,u==="tonexty"||u==="tonextx"))for(var f=i-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var _z=oe((e9e,bz)=>{"use strict";var ice=pr(),oce=Hm();bz.exports=function(e,r){function t(n,i){return ice.coerce(e,r,oce,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Mz=oe((r9e,wz)=>{"use strict";var lce=Jt(),xz=pr(),sce=xz.dateTime2ms,Qg=xz.incrementMonth,uce=(ja(),_r(tn)),fce=uce.ONEAVGMONTH;wz.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(lce(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",d=r[a+"period0"],h=sce(d,u)||0,p=[],m=[],y=[],b=n.length,C=0;C<b;C++){var x=n[C],_,M,A;if(l){for(_=Math.round((x-h)/(l*fce)),A=Qg(h,l*_,u);A>x;)A=Qg(A,-l,u);for(;A<=x;)A=Qg(A,l,u);M=Qg(A,-l,u)}else{for(_=Math.round((x-h)/o),A=h+_*o;A>x;)A-=o;for(;A<=x;)A+=o;M=A-o}p[C]=f?M:c?A:(M+A)/2,m[C]=M,y[C]=A}return{vals:p,starts:m,ends:y}}});var v9=oe((t9e,Tz)=>{"use strict";var f9=Fs().hasColorscale,c9=$m(),Az=Si();Tz.exports=function(r,t){Az.hasLines(t)&&f9(t,"line")&&c9(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Az.hasMarkers(t)&&(f9(t,"marker")&&c9(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),f9(t,"marker.line")&&c9(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Nh=oe((a9e,kz)=>{"use strict";var nn=pr();kz.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;nn.mergeArray(t.text,r,"tx"),nn.mergeArray(t.texttemplate,r,"txt"),nn.mergeArray(t.hovertext,r,"htx"),nn.mergeArray(t.customdata,r,"data"),nn.mergeArray(t.textposition,r,"tp"),t.textfont&&(nn.mergeArrayCastPositive(t.textfont.size,r,"ts"),nn.mergeArray(t.textfont.color,r,"tc"),nn.mergeArray(t.textfont.family,r,"tf"),nn.mergeArray(t.textfont.weight,r,"tw"),nn.mergeArray(t.textfont.style,r,"ty"),nn.mergeArray(t.textfont.variant,r,"tv"),nn.mergeArray(t.textfont.textcase,r,"tC"),nn.mergeArray(t.textfont.lineposition,r,"tE"),nn.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){nn.mergeArrayCastPositive(n.size,r,"ms"),nn.mergeArrayCastPositive(n.opacity,r,"mo"),nn.mergeArray(n.symbol,r,"mx"),nn.mergeArray(n.angle,r,"ma"),nn.mergeArray(n.standoff,r,"mf"),nn.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(nn.mergeArray(i.color,r,"mlc"),nn.mergeArrayCastPositive(i.width,r,"mlw"),nn.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(nn.mergeArray(o.type,r,"mgt"),nn.mergeArray(o.color,r,"mgc"))}}});var e3=oe((n9e,Sz)=>{"use strict";var Cz=pr();Sz.exports=function(r,t){Cz.isArrayOrTypedArray(t.selectedpoints)&&Cz.tagSelected(r,t)}});var r3=oe((i9e,Rz)=>{"use strict";var Ez=Jt(),h9=pr(),Ih=Ga(),Lz=Mz(),d9=(ja(),_r(tn)).BADNUM,p9=Si(),cce=v9(),vce=Nh(),dce=e3();function hce(e,r){var t=e._fullLayout,a=r._xA=Ih.getFromId(e,r.xaxis||"x","x"),n=r._yA=Ih.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Lz(r,a,"x",i),s=Lz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,p=m9(r,t,a,n),m=!1,y,b,C,x,_,M;qz(t,r);var A="x",k="y",D;if(p)h9.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(k="s",D="x"):(A="s",D="y"),_=p.stackgaps==="interpolate";else{var P=Fz(r,c);Dz(e,r,a,n,u,f,P)}var z=!!r.xperiodalignment,B=!!r.yperiodalignment;for(b=0;b<c;b++){var Y=d[b]={},H=Ez(u[b]),X=Ez(f[b]);H&&X?(Y[A]=u[b],Y[k]=f[b],z&&(Y.orig_x=i[b],Y.xEnd=l.ends[b],Y.xStart=l.starts[b]),B&&(Y.orig_y=o[b],Y.yEnd=s.ends[b],Y.yStart=s.starts[b])):p&&(y?H:X)?(Y[D]=y?u[b]:f[b],Y.gap=!0,_?(Y.s=d9,m=!0):Y.s=0):Y[A]=Y[k]=d9,h&&(Y.id=String(h[b]))}if(vce(d,r),cce(e,r),dce(d,r),p){for(b=0;b<d.length;)d[b][D]===d9?d.splice(b,1):b++;if(h9.sort(d,function(ae,re){return ae[D]-re[D]||ae.i-re.i}),m){for(b=0;b<d.length-1&&d[b].gap;)b++;for(M=d[b].s,M||(M=d[b].s=0),C=0;C<b;C++)d[C].s=M;for(x=d.length-1;x>b&&d[x].gap;)x--;for(M=d[x].s,C=d.length-1;C>x;C--)d[C].s=M;for(;b<x;)if(b++,d[b].gap){for(C=b+1;d[C].gap;)C++;for(var N=d[b-1][D],Q=d[b-1].s,ee=(d[C].s-Q)/(d[C][D]-N);b<C;)d[b].s=Q+(d[b][D]-N)*ee,b++}}}return d}function Dz(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[Pz(r)]===r.uid,d=(m9(r,s,t,a)||{}).orientation,h=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},m={padded:!0};o&&(p.ppad=m.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(h==="tozerox"||h==="tonextx"&&(c||d==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(h==="tonexty"||h==="tozeroy"||!p9.hasMarkers(r)&&!p9.hasText(r))&&(p.padded=!1,p.ppad=0),y&&(h==="tozeroy"||h==="tonexty"&&(c||d==="v"))?m.tozero=!0:(h==="tonextx"||h==="tozerox")&&(m.padded=!1),u&&(r._extremes[u]=Ih.findExtremes(t,n,p)),f&&(r._extremes[f]=Ih.findExtremes(a,i,m))}function Fz(e,r){if(p9.hasMarkers(e)){var t=e.marker,a=1.6*(e.marker.sizeref||1),n;if(e.marker.sizemode==="area"?n=function(u){return Math.max(Math.sqrt((u||0)/a),3)}:n=function(u){return Math.max((u||0)/a,3)},h9.isArrayOrTypedArray(t.size)){var i={type:"linear"};Ih.setConvert(i);for(var o=i.makeCalcdata(e.marker,"size"),l=new Array(r),s=0;s<r;s++)l[s]=n(o[s]);return l}else return n(t.size)}}function qz(e,r){var t=Pz(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function Pz(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function m9(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}}Rz.exports={calc:hce,calcMarkerSize:Fz,calcAxisExpansion:Dz,setFirstScatter:qz,getStackOpts:m9}});var Nz=oe((o9e,zz)=>{"use strict";zz.exports=t3;var pce=pr().distinctVals;function t3(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 s=o[l],u=s.p;u===void 0&&(u=s[a]),u!==void 0&&n.push(u)}o[0]&&o[0].width1&&(t=Math.min(o[0].width1,t))}this.positions=n;var f=pce(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={}}t3.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};t3.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};t3.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 Iz={};Ua(Iz,{TEXTPAD:()=>mce,eventDataKeys:()=>gce});var mce,gce,Bz=Oa(()=>{"use strict";mce=3,gce=["value","label"]});var Yz=oe((l9e,Gz)=>{"use strict";var hl=Jt(),{isArrayOrTypedArray:Gu}=pr(),{BADNUM:pv}=(ja(),_r(tn)),yce=xt(),Bh=Ga(),{getAxisGroup:bce}=lh(),a3=Nz(),{TEXTPAD:_ce}=(Bz(),_r(Iz)),{LINE_SPACING:xce}=(di(),_r(vi)),{BR_TAG_ALL:wce}=hi();function Mce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];if(f.visible===!0&&yce.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):s.push(o[u]),f._computePh))for(var c=e.calcdata[u],d=0;d<c.length;d++)typeof c[d].ph0=="function"&&(c[d].ph0=c[d].ph0()),typeof c[d].ph1=="function"&&(c[d].ph1=c[d].ph1())}var h={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};y9(e,t,a,s,h),y9(e,a,t,l,h)}function y9(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(kce(t,a),n.mode){case"overlay":g9(e,r,t,a,n);break;case"group":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.offset===void 0?o.push(s):i.push(s);o.length&&Cce(e,r,t,o,n),i.length&&g9(e,r,t,i,n);break;case"stack":case"relative":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.base===void 0?o.push(s):i.push(s);Tce(o),o.length&&Sce(e,r,t,o,n),i.length&&g9(e,r,t,i,n);break}Ace(a),Pce(a,r)}}function Ace(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=hl(i)?+i:+i.slice(0,-1),l=hl(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function Tce(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=hl(i)?+i:+i.slice(0,-1),l=hl(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function kce(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,s=i.orientation==="h"?i.xcalendar:i.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Gu(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),hl(l)?(n[a].b=+l,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{l=u(o,0,s);var f=hl(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function g9(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new a3([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});b9(e,r,l,n),n.norm?(Uz(l),_9(t,l,n)):Oz(t,l)}}function Cce(e,r,t,a,n){var i=new a3(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});b9(e,r,i,n),Fce(i,r),n.norm?(Uz(i),_9(t,i,n)):Oz(t,i)}function Sce(e,r,t,a,n){var i=new a3(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});b9(e,r,i,n),Dce(t,i,n);for(var o=0;o<a.length;o++)for(var l=a[o],s=l[0].t.offsetindex,u=0;u<l.length;u++){var f=l[u];if(f.s!==pv){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&_9(t,i,n)}function b9(e,r,t,a){var n=e._fullLayout,i=t.positions,o=t.distinctPositions,l=t.minDiff,s=t.traces,u=s.length,f=i.length!==o.length,c=l*(1-a.gap),d,h,p,m;if(r._id==="angularaxis")d=c,h=d*(1-(a.groupgap||0)),p=-h/2;else{var y=bce(n,r._id)+s[0][0].trace.orientation;m=n._alignmentOpts[y]||{}}for(var b=0;b<u;b++){var C=s[b],x=C[0].trace;if(r._id!=="angularaxis"){var _=m[x.alignmentgroup]||{},M=Object.keys(_.offsetGroups||{}).length;M?d=c/M:d=f?c/u:c,h=d*(1-(a.groupgap||0)),M?p=((2*x._offsetIndex+1-M)*d-h)/2:p=f?((2*b+1-u)*d-h)/2:-h/2}var A=C[0].t;A.barwidth=h,A.offsetindex=x._offsetIndex||0,A.poffset=p,A.bargroupwidth=c,A.bardelta=l}t.binWidth=s[0][0].t.barwidth/100,Ece(t),Lce(r,t),r._id==="angularaxis"?Hz(r,t):Hz(r,t,f)}function Ece(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,s=o._offset||o.offset,u=l.poffset,f;if(Gu(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)hl(f[a])||(f[a]=u);for(a=f.length;a<n.length;a++)f.push(u);l.poffset=f}else s!==void 0&&(l.poffset=s);var c=o._width||o.width,d=l.barwidth;if(Gu(c)){var h=Array.prototype.slice.call(c,0,n.length);for(a=0;a<h.length;a++)hl(h[a])||(h[a]=d);for(a=h.length;a<n.length;a++)h.push(d);if(l.barwidth=h,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(d-h[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,s===void 0&&(l.poffset=u+(d-c)/2))}}function Lce(e,r){for(var t=r.traces,a=mv(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=Gu(l),u=o.barwidth,f=Gu(u),c=0;c<i.length;c++){var d=i[c],h=d.w=f?u[c]:u;d.p===void 0&&(d.p=d[a],d["orig_"+a]=d[a]);var p=(s?l[c]:l)+h/2;d[a]=d.p+p}}function Hz(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Bh.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],s=l[0],u=s.trace,f=[],c,d,h,p;for(p=0;p<l.length;p++)c=l[p],d=c.p-i,h=c.p+i,f.push(d,h);if(u.width||u.offset){var m=s.t,y=m.poffset,b=m.barwidth,C=Gu(y),x=Gu(b);for(p=0;p<l.length;p++){c=l[p];var _=C?y[p]:y,M=x?b[p]:b;d=c.p+_,h=d+M,f.push(d,h)}}u._extremes[e._id]=Bh.findExtremes(e,f,{padded:!1})}}function Oz(e,r){for(var t=r.traces,a=mv(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",s=o.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var d=i[c],h=l?0:d.b,p=l?s?d.y:d.x:h+d.s;d[a]=p,u.push(p),d.hasB&&u.push(h),(!d.hasB||!d.b)&&(f=!0)}let{ppadminus:m,ppadplus:y}=x9(o,i);o._extremes[e._id]=Bh.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:y,ppadminus:m})}}function Dce(e,r,t){var a=mv(e),n=r.traces,i,o,l,s,u,f,c;for(s=0;s<n.length;s++)if(i=n[s],o=i[0].trace,o.type==="funnel")for(c=i[0].t.offsetindex,u=0;u<i.length;u++)f=i[u],f.s!==pv&&r.put(f.p,c,-.5*f.s);for(s=0;s<n.length;s++){i=n[s],o=i[0].trace,l=o.type==="funnel",c=o.type==="barpolar"?0:i[0].t.offsetindex;var d=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==pv){var h;l?h=f.s:h=f.s+f.b;var p=r.put(f.p,c,h),m=p+h;f.b=p,f[a]=m,t.norm||(d.push(m),f.hasB&&d.push(p))}if(!t.norm){let{ppadminus:y,ppadplus:b}=x9(o,i);o._extremes[e._id]=Bh.findExtremes(e,d,{tozero:!0,padded:!0,ppadplus:b,ppadminus:y})}}}function Uz(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!==pv&&e.put(o.p,n,o.b+o.s)}}function Fce(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 a3([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==pv){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function _9(e,r,t){var a=r.traces,n=mv(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:l;function u(A){return hl(e.c2l(A))&&(A<l-o||A>s+o||!hl(l))}for(var f=0;f<a.length;f++){for(var c=a[f],d=c[0].t.offsetindex,h=c[0].trace,p=[],m=!1,y=!1,b=0;b<c.length;b++){var C=c[b];if(C.s!==pv){var x=Math.abs(i/r.get(C.p,d,C.s));C.b*=x,C.s*=x;var _=C.b,M=_+C.s;C[n]=M,p.push(M),y=y||u(M),C.hasB&&(p.push(_),y=y||u(_)),(!C.hasB||!C.b)&&(m=!0)}}let{ppadminus:A,ppadplus:k}=x9(h,c);h._extremes[e._id]=Bh.findExtremes(e,p,{tozero:m,padded:y,ppadplus:k,ppadminus:A})}}function x9(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(wce)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Gu(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*xce*t+_ce;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 qce(e,r,t,a){for(var n=mv(a),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s[n];s._sMin=r[u],s._sMax=t[u]}}function Pce(e,r){var t=mv(r),a={},n,i,o,l=1/0,s=-1/0;for(n=0;n<e.length;n++)for(o=e[n],i=0;i<o.length;i++){var u=o[i].p;hl(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var f=1e4/(s-l),c=a.round=function(D){return String(Math.round(f*(D-l)))},d={},h={},p=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 m=o[0].t.poffset,y=Gu(m);for(i=0;i<o.length;i++){var b=o[i],C=b[t]-b.w/2;if(hl(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?m[i]:m),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,p){var M=Math.min(b.s0,b.s1)||0,A=Math.max(b.s0,b.s1)||0,k=b[t];d[k]=k in d?Math.min(d[k],M):M,h[k]=k in h?Math.max(h[k],A):A}}}p&&qce(e,d,h,r)}function mv(e){return e._id.charAt(0)}Gz.exports={crossTraceCalc:Mce,setGroupPositions:y9}});var Wz=oe((s9e,jz)=>{"use strict";var Vz=r3(),Xz=Yz().setGroupPositions;function Rce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):f.orientation==="v"&&s.push(o[u]))}var c={mode:n.scattermode,gap:n.scattergap};Xz(e,t,a,s,c),Xz(e,a,t,l,c)}jz.exports=function(r,t){r._fullLayout.scattermode==="group"&&Rce(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,s,u,f,c,d,h,p,m,y,b,C,x,_,M,A;for(var k in o){b=o[k];var D=b.traceIndices;if(D.length){for(C=b.stackgaps==="interpolate",x=b.groupnorm,b.orientation==="v"?(_="x",M="y"):(_="y",M="x"),A=new Array(D.length),s=0;s<A.length;s++)A[s]=!1;h=l[D[0]];var P=new Array(h.length);for(s=0;s<h.length;s++)P[s]=h[s][_];for(s=1;s<D.length;s++){for(d=l[D[s]],u=f=0;u<d.length;u++){for(p=d[u][_];p>P[f]&&f<P.length;f++)w9(d,u,P[f],s,A,C,_),u++;if(p!==P[f]){for(c=0;c<s;c++)w9(l[D[c]],f,p,c,A,C,_);P.splice(f,0,p)}f++}for(;f<P.length;f++)w9(d,u,P[f],s,A,C,_),u++}var z=P.length;for(u=0;u<h.length;u++){for(m=h[u][M]=h[u].s,s=1;s<D.length;s++)d=l[D[s]],d[0].trace._rawLength=d[0].trace._length,d[0].trace._length=z,m+=d[u].s,d[u][M]=m;if(x)for(y=(x==="fraction"?m:m/100)||1,s=0;s<D.length;s++){var B=l[D[s]][u];B[M]/=y,B.sNorm=B.s/y}}for(s=0;s<D.length;s++){d=l[D[s]];var Y=d[0].trace,H=Vz.calcMarkerSize(Y,Y._rawLength),X=Array.isArray(H);if(H&&A[s]||X){var N=H;for(H=new Array(z),u=0;u<z;u++)H[u]=d[u].gap?0:X?N[d[u].i]:N}var Q=new Array(z),ee=new Array(z);for(u=0;u<z;u++)Q[u]=d[u].x,ee[u]=d[u].y;Vz.calcAxisExpansion(r,Y,a,n,Q,ee,H),d[0].t.orientation=b.orientation}}}}};function w9(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 s=e[r-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=zce(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 zce(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 rN=oe((u9e,eN)=>{"use strict";var Nce=da(),Kz=(ja(),_r(tn)),Hh=Kz.BADNUM,Qz=Kz.LOG_CLIP,Zz=Qz+.5,$z=Qz-.5,n3=pr(),Ice=n3.segmentsIntersect,Jz=n3.constrain,M9=(Ag(),_r(Mg));eN.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,d=t.connectGaps,h=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],C=M9.minTolerance,x=r.length,_=new Array(x),M=0,A,k,D,P,z,B,Y,H,X,N,Q,ee,ae,re,ie,ue;function xe(lr){var Cr=r[lr];if(!Cr)return!1;var tr=t.linearized?n.l2p(Cr.x):n.c2p(Cr.x),qr=t.linearized?i.l2p(Cr.y):i.c2p(Cr.y);if(tr===Hh){if(o&&(tr=n.c2p(Cr.x,!0)),tr===Hh)return!1;l&&qr===Hh&&(tr*=Math.abs(n._m*u*(n._m>0?Zz:$z)/(i._m*s*(i._m>0?Zz:$z)))),tr*=1e3}if(qr===Hh){if(l&&(qr=i.c2p(Cr.y,!0)),qr===Hh)return!1;qr*=1e3}return[tr,qr]}function Ee(lr,Cr,tr,qr){var Zr=tr-lr,Or=qr-Cr,Xr=.5-lr,Me=.5-Cr,Be=Zr*Zr+Or*Or,or=Zr*Xr+Or*Me;if(or>0&&or<Be){var vr=Xr*Or-Me*Zr;if(vr*vr<Be)return!0}}var Re,Ne;function ke(lr,Cr){var tr=lr[0]/s,qr=lr[1]/u,Zr=Math.max(0,-tr,tr-1,-qr,qr-1);return Zr&&Re!==void 0&&Ee(tr,qr,Re,Ne)&&(Zr=0),Zr&&Cr&&Ee(tr,qr,Cr[0]/s,Cr[1]/u)&&(Zr=0),(1+M9.toleranceGrowth*Zr)*h}function We(lr,Cr){var tr=lr[0]-Cr[0],qr=lr[1]-Cr[1];return Math.sqrt(tr*tr+qr*qr)}var W=M9.maxScreensAway,se=-s*W,de=s*(1+W),K=-u*W,J=u*(1+W),ce=[[se,K,de,K],[de,K,de,J],[de,J,se,J],[se,J,se,K]],be,Le,je,er,$e,ar;function Ie(lr,Cr){for(var tr=[],qr=0,Zr=0;Zr<4;Zr++){var Or=ce[Zr],Xr=Ice(lr[0],lr[1],Cr[0],Cr[1],Or[0],Or[1],Or[2],Or[3]);Xr&&(!qr||Math.abs(Xr.x-tr[0][0])>1||Math.abs(Xr.y-tr[0][1])>1)&&(Xr=[Xr.x,Xr.y],qr&&We(Xr,lr)<We(tr[0],lr)?tr.unshift(Xr):tr.push(Xr),qr++)}return tr}function ir(lr){if(lr[0]<se||lr[0]>de||lr[1]<K||lr[1]>J)return[Jz(lr[0],se,de),Jz(lr[1],K,J)]}function dr(lr,Cr){if(lr[0]===Cr[0]&&(lr[0]===se||lr[0]===de)||lr[1]===Cr[1]&&(lr[1]===K||lr[1]===J))return!0}function Ar(lr,Cr){var tr=[],qr=ir(lr),Zr=ir(Cr);return qr&&Zr&&dr(qr,Zr)||(qr&&tr.push(qr),Zr&&tr.push(Zr)),tr}function Qe(lr,Cr,tr){return function(qr,Zr){var Or=ir(qr),Xr=ir(Zr),Me=[];if(Or&&Xr&&dr(Or,Xr))return Me;Or&&Me.push(Or),Xr&&Me.push(Xr);var Be=2*n3.constrain((qr[lr]+Zr[lr])/2,Cr,tr)-((Or||qr)[lr]+(Xr||Zr)[lr]);if(Be){var or;Or&&Xr?or=Be>0==Or[lr]>Xr[lr]?Or:Xr:or=Or||Xr,or[lr]+=Be}return Me}}var mr;p==="linear"||p==="spline"?mr=Ie:p==="hv"||p==="vh"?mr=Ar:p==="hvh"?mr=Qe(0,se,de):p==="vhv"&&(mr=Qe(1,K,J));function Pr(lr,Cr){var tr=Cr[0]-lr[0],qr=(Cr[1]-lr[1])/tr,Zr=(lr[1]*Cr[0]-Cr[1]*lr[0])/tr;return Zr>0?[qr>0?se:de,J]:[qr>0?de:se,K]}function Te(lr){var Cr=lr[0],tr=lr[1],qr=Cr===_[M-1][0],Zr=tr===_[M-1][1];if(!(qr&&Zr))if(M>1){var Or=Cr===_[M-2][0],Xr=tr===_[M-2][1];qr&&(Cr===se||Cr===de)&&Or?Xr?M--:_[M-1]=lr:Zr&&(tr===K||tr===J)&&Xr?Or?M--:_[M-1]=lr:_[M++]=lr}else _[M++]=lr}function Oe(lr){_[M-1][0]!==lr[0]&&_[M-1][1]!==lr[1]&&Te([je,er]),Te(lr),$e=null,je=er=0}var xr=n3.isArrayOrTypedArray(c);function Rr(lr){if(lr&&f&&(lr.i=A,lr.d=r,lr.trace=a,lr.marker=xr?c[lr.i]:c,lr.backoff=f),Re=lr[0]/s,Ne=lr[1]/u,be=lr[0]<se?se:lr[0]>de?de:0,Le=lr[1]<K?K:lr[1]>J?J:0,be||Le){if(!M)_[M++]=[be||lr[0],Le||lr[1]];else if($e){var Cr=mr($e,lr);Cr.length>1&&(Oe(Cr[0]),_[M++]=Cr[1])}else ar=mr(_[M-1],lr)[0],_[M++]=ar;var tr=_[M-1];be&&Le&&(tr[0]!==be||tr[1]!==Le)?($e&&(je!==be&&er!==Le?Te(je&&er?Pr($e,lr):[je||be,er||Le]):je&&er&&Te([je,er])),Te([be,Le])):je-be&&er-Le&&Te([be||je,Le||er]),$e=lr,je=be,er=Le}else $e&&Oe(mr($e,lr)[0]),_[M++]=lr}for(A=0;A<x;A++)if(k=xe(A),!!k){for(M=0,$e=null,Rr(k),A++;A<x;A++){if(P=xe(A),!P){if(d)continue;break}if(!m||!t.simplify){Rr(P);continue}var zr=xe(A+1);if(N=We(P,k),!(!(y&&(M===0||M===x-1))&&N<ke(P,zr)*C)){for(H=[(P[0]-k[0])/N,(P[1]-k[1])/N],z=k,Q=N,ee=re=ie=0,Y=!1,D=P,A++;A<r.length;A++){if(B=zr,zr=xe(A+1),!B){if(d)continue;break}if(X=[B[0]-k[0],B[1]-k[1]],ue=X[0]*H[1]-X[1]*H[0],re=Math.min(re,ue),ie=Math.max(ie,ue),ie-re>ke(B,zr))break;D=B,ae=X[0]*H[0]+X[1]*H[1],ae>Q?(Q=ae,P=B,Y=!1):ae<ee&&(ee=ae,z=B,Y=!0)}if(Y?(Rr(P),D!==z&&Rr(z)):(z!==k&&Rr(z),D!==P&&Rr(P)),Rr(D),A>=r.length||!B)break;Rr(B),k=B}}$e&&Te([je||$e[0],er||$e[1]]),b.push(_.slice(0,M))}var Ce=p.slice(p.length-1);if(f&&Ce!=="h"&&Ce!=="v"){for(var Ue=!1,cr=-1,Mr=[],hr=0;hr<b.length;hr++)for(var kr=0;kr<b[hr].length-1;kr++){var Lr=b[hr][kr],Br=b[hr][kr+1],et=Nce.applyBackoff(Br,Lr);(et[0]!==Br[0]||et[1]!==Br[1])&&(Ue=!0),Mr[cr+1]||(cr++,Mr[cr]=[Lr,[et[0],et[1]]])}return Ue?Mr:b}return b}});var nN=oe((f9e,aN)=>{"use strict";var tN={tonextx:1,tonexty:1,tonext:1};aN.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,d=0,h=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,o=n.stackgroup||"",o?o in u?s=u[o]:(s=u[o]=d,d++):n.fill in tN&&h>=0?s=h:(s=h=d,d++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(y,b){var C=y[0].trace,x=b[0].trace;return C._groupIndex-x._groupIndex||C.index-x.index});var m={};for(i=0;i<p.length;i++)n=p[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in tN&&(l=m[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),m[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var sN=oe((c9e,lN)=>{"use strict";var Ql=qt(),Bce=xt(),Oh=pr(),gv=Oh.ensureSingle,oN=Oh.identity,un=da(),yv=Si(),Hce=rN(),Oce=nN(),i3=gg().tester;lN.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Oce(r,t,a);if(l=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),l.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Uce(r,l,t),f){o&&(s=o());var d=Ql.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});d.each(function(){n.selectAll("g.trace").each(function(h,p){iN(r,p,t,h,c,this,i)})})}else l.each(function(h,p){iN(r,p,t,h,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Uce(e,r,t){r.each(function(a){var n=gv(Ql.select(this),"g","fills");un.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,oN);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=gv(Ql.select(this),"path","js-fill")})})}function iN(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Gce(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Qe){return u?Qe.transition():Qe}var c=t.xaxis,d=t.yaxis,h=a[0].trace,p=h.line,m=Ql.select(i),y=gv(m,"g","errorbars"),b=gv(m,"g","lines"),C=gv(m,"g","points"),x=gv(m,"g","text");if(Bce.getComponentMethod("errorbars","plot")(e,y,t,o),h.visible!==!0)return;f(m).style("opacity",h.opacity);var _,M,A=h.fill.charAt(h.fill.length-1);A!=="x"&&A!=="y"&&(A="");var k,D;A==="y"?(k=1,D=d.c2p(0,!0)):A==="x"&&(k=0,D=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var P="",z=[],B=h._prevtrace,Y=null,H=null;B&&(P=B._prevRevpath||"",M=B._nextFill,z=B._ownPolygons,Y=B._fillsegments,H=B._fillElement);var X,N,Q="",ee="",ae,re,ie,ue,xe,Ee,Re=[];h._polygons=[];var Ne=[],ke=[],We=Oh.noop;if(_=h._ownFill,yv.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(ae=un.steps(p.shape),re=un.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?ae=re=function(Qe){var mr=Qe[Qe.length-1];return Qe.length>1&&Qe[0][0]===mr[0]&&Qe[0][1]===mr[1]?un.smoothclosed(Qe.slice(1),p.smoothing):un.smoothopen(Qe,p.smoothing)}:ae=re=function(Qe){return"M"+Qe.join("L")},ie=function(Qe){return re(Qe.reverse())},ke=Hce(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),Ne=new Array(ke.length);var W=0;for(s=0;s<ke.length;s++){var se,de=ke[s];!se||!A?(se=de.slice(),Ne[W]=se,W++):se.push.apply(se,de)}h._fillElement=null,h._fillExclusionElement=H,h._fillsegments=Ne.slice(0,W),Ne=h._fillsegments,ke.length&&(ue=ke[0][0].slice(),xe=ke[ke.length-1],Ee=xe[xe.length-1].slice()),We=function(Qe){return function(mr){if(X=ae(mr),N=ie(mr),Q?A?(Q+="L"+X.slice(1),ee=N+("L"+ee.slice(1))):(Q+="Z"+X,ee=N+"Z"+ee):(Q=X,ee=N),yv.hasLines(h)){var Pr=Ql.select(this);if(Pr.datum(a),Qe)f(Pr.style("opacity",0).attr("d",X).call(un.lineGroupStyle)).style("opacity",1);else{var Te=f(Pr);Te.attr("d",X),un.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(un.lineGroupStyle).each(We(!0)),un.setClipUrl(K,t.layerClipId,e);function J(Qe){f(Qe).attr("d","M0,0Z")}var ce=function(){var Qe=new Array(Ne.length);for(s=0;s<Ne.length;s++)Qe[s]=i3(Ne[s]);return Qe},be=function(Qe){var mr,Pr;if(!Qe||Qe.length===0)for(mr=new Array(Ne.length),Pr=0;Pr<Ne.length;Pr++){var Te=Ne[Pr][0].slice(),Oe=Ne[Pr][Ne[Pr].length-1].slice();Te[k]=Oe[k]=D;var xr=[Oe,Te],Rr=xr.concat(Ne[Pr]);mr[Pr]=i3(Rr)}else{for(mr=new Array(Qe.length-1+Ne.length),Pr=0;Pr<Qe.length-1;Pr++)mr[Pr]=i3(Qe[Pr]);var zr=Qe[Qe.length-1].slice();for(zr.reverse(),Pr=0;Pr<Ne.length;Pr++)mr[Qe.length-1+Pr]=i3(Ne[Pr].concat(zr))}return mr};ke.length?(_?(_.datum(a),ue&&Ee&&(A?(ue[k]=Ee[k]=D,f(_).attr("d","M"+Ee+"L"+ue+"L"+Q.slice(1)).call(un.singleFillStyle,e),Re=be(null)):(f(_).attr("d",Q+"Z").call(un.singleFillStyle,e),Re=ce())),h._polygons=Re,h._fillElement=_):M&&(h.fill.slice(0,6)==="tonext"&&Q&&P?(h.fill==="tonext"?(f(M).attr("d",Q+"Z"+P+"Z").call(un.singleFillStyle,e),Re=ce(),h._polygons=Re.concat(z)):(f(M).attr("d",Q+"L"+P.slice(1)+"Z").call(un.singleFillStyle,e),Re=be(Y),h._polygons=Re),h._fillElement=M):J(M)),h._prevRevpath=ee):(_?J(_):M&&J(M),h._prevRevpath=null),h._ownPolygons=Re;function Le(Qe){return Qe.filter(function(mr){return!mr.gap&&mr.vis})}function je(Qe){return Qe.filter(function(mr){return mr.vis})}function er(Qe){return Qe.filter(function(mr){return!mr.gap})}function $e(Qe){return Qe.id}function ar(Qe){if(Qe.ids)return $e}function Ie(){return!1}function ir(Qe,mr,Pr){var Te,Oe,xr,Rr=Pr[0].trace,zr=yv.hasMarkers(Rr),Ce=yv.hasText(Rr),Ue=ar(Rr),cr=Ie,Mr=Ie;if(zr||Ce){var hr=oN,kr=Rr.stackgroup,Lr=kr&&e._fullLayout._scatterStackOpts[c._id+d._id][kr].stackgaps==="infer zero";Rr.marker.maxdisplayed||Rr._needsCull?hr=Lr?je:Le:kr&&!Lr&&(hr=er),zr&&(cr=hr),Ce&&(Mr=hr)}Oe=Qe.selectAll("path.point"),Te=Oe.data(cr,Ue);var Br=Te.enter().append("path").classed("point",!0);u&&Br.call(un.pointStyle,Rr,e).call(un.translatePoints,c,d).style("opacity",0).transition().style("opacity",1),Te.order();var et;zr&&(et=un.makePointStyleFns(Rr)),Te.each(function(lr){var Cr=Ql.select(this),tr=f(Cr);xr=un.translatePoint(lr,tr,c,d),xr?(un.singlePointStyle(lr,tr,Rr,et,e),t.layerClipId&&un.hideOutsideRangePoint(lr,tr,c,d,Rr.xcalendar,Rr.ycalendar),Rr.customdata&&Cr.classed("plotly-customdata",lr.data!==null&&lr.data!==void 0)):tr.remove()}),u?Te.exit().transition().style("opacity",0).remove():Te.exit().remove(),Oe=mr.selectAll("g"),Te=Oe.data(Mr,Ue),Te.enter().append("g").classed("textpoint",!0).append("text"),Te.order(),Te.each(function(lr){var Cr=Ql.select(this),tr=f(Cr.select("text"));xr=un.translatePoint(lr,tr,c,d),xr?t.layerClipId&&un.hideOutsideRangePoint(lr,Cr,c,d,Rr.xcalendar,Rr.ycalendar):Cr.remove()}),Te.selectAll("text").call(un.textPointStyle,Rr,e).each(function(lr){var Cr=c.c2p(lr.x),tr=d.c2p(lr.y);Ql.select(this).selectAll("tspan.line").each(function(){f(Ql.select(this)).attr({x:Cr,y:tr})})}),Te.exit().remove()}C.datum(a),x.datum(a),ir(C,x,a);var dr=h.cliponaxis===!1,Ar=dr?null:t.layerClipId;un.setClipUrl(C,Ar,e),un.setClipUrl(x,Ar,e)}function Gce(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Ql.extent(Oh.simpleMap(i.range,i.r2c)),s=Ql.extent(Oh.simpleMap(o.range,o.r2c)),u=a[0].trace;if(yv.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(m){return m.x>=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),d=Math.ceil(c.length/f),h=0;n.forEach(function(m,y){var b=m[0].trace;yv.hasMarkers(b)&&b.marker.maxdisplayed>0&&y<r&&h++});var p=Math.round(h*d/3+Math.floor(h/3)*d/7.1);a.forEach(function(m){delete m.vis}),c.forEach(function(m,y){Math.round((y+p)%d)===0&&(m.vis=!0)})}}}});var A9=oe((v9e,uN)=>{"use strict";uN.exports={container:"marker",min:"cmin",max:"cmax"}});var cN=oe((d9e,fN)=>{"use strict";var o3=Ga();fN.exports=function(r,t,a){var n={},i={_fullLayout:a},o=o3.getFromTrace(i,t,"x"),l=o3.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=o3.tickText(o,o.c2l(s),!0).text,n.yLabel=o3.tickText(l,l.c2l(u),!0).text,n}});var Uh=oe((h9e,vN)=>{"use strict";var T9=qt(),bv=da(),Yce=xt();function Vce(e){var r=T9.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=T9.select(this),n=t.trace||t[0].trace;k9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=T9.select(this),n=t.trace||t[0].trace;C9(a,n,e)}),r.selectAll("g.trace path.js-line").call(bv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(bv.fillGroupStyle,e,!1),Yce.getComponentMethod("errorbars","style")(r)}function k9(e,r,t){bv.pointStyle(e.selectAll("path.point"),r,t)}function C9(e,r,t){bv.textPointStyle(e.selectAll("text"),r,t)}function Xce(e,r,t){var a=r[0].trace;a.selectedpoints?(bv.selectedPointStyle(t.selectAll("path.point"),a),bv.selectedTextStyle(t.selectAll("text"),a)):(k9(t,a,e),C9(t,a,e))}vN.exports={style:Vce,stylePoints:k9,styleText:C9,styleOnSelect:Xce}});var S9=oe((p9e,dN)=>{"use strict";var _v=Nt(),jce=Si();dN.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&_v.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&_v.opacity(i)?i:o&&_v.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?_v.opacity(n)<.3?_v.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&_v.opacity(a)&&jce.hasLines(r)&&r.line.width?a:r.fillcolor)}});var mN=oe((m9e,pN)=>{"use strict";var l3=pr(),hN=Zl(),Wce=xt(),Zce=S9(),E9=Nt(),$ce=l3.fillText;pN.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],d=o.hoveron||"",h=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(d.indexOf("points")!==-1){var y=function(ee){if(p){var ae=l.c2p(ee.xStart),re=l.c2p(ee.xEnd);return u>=Math.min(ae,re)&&u<=Math.max(ae,re)?0:1/0}var ie=Math.max(3,ee.mrc||0),ue=1-1/ie,xe=Math.abs(l.c2p(ee.x)-u);return xe<ie?ue*xe/ie:xe-ie+ue},b=function(ee){if(m){var ae=s.c2p(ee.yStart),re=s.c2p(ee.yEnd);return f>=Math.min(ae,re)&&f<=Math.max(ae,re)?0:1/0}var ie=Math.max(3,ee.mrc||0),ue=1-1/ie,xe=Math.abs(s.c2p(ee.y)-f);return xe<ie?ue*xe/ie:xe-ie+ue},C=function(ee){var ae=Math.max(h,ee.mrc||0),re=l.c2p(ee.x)-u,ie=s.c2p(ee.y)-f;return Math.max(Math.sqrt(re*re+ie*ie)-ae,1-h/ae)},x=hN.getDistanceFunction(n,y,b,C);if(hN.getClosest(i,x,r),r.index!==!1){var _=i[r.index],M=l.c2p(_.x,!0),A=s.c2p(_.y,!0),k=_.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 l3.extendFlat(r,{color:Zce(o,_),x0:M-k,x1:M+k,xLabelVal:z,y0:A-k,y1:A+k,yLabelVal:B,spikeDistance:C(_),hovertemplate:o.hovertemplate}),$ce(_,o,r),Wce.getComponentMethod("errorbars","hoverInfo")(_,o,r),[r]}}function Y(ee){if(!ee)return!1;var ae=ee.node();try{var re=new DOMPoint(c[0],c[1]);return ae.isPointInFill(re)}catch(ue){var ie=ae.ownerSVGElement.createSVGPoint();return ie.x=c[0],ie.y=c[1],ae.isPointInFill(ie)}}function H(ee){var ae,re=[],ie=1/0,ue=-1/0,xe=1/0,Ee=-1/0,Re;for(ae=0;ae<ee.length;ae++){var Ne=ee[ae];Ne.contains(c)&&(re.push(Ne),xe=Math.min(xe,Ne.ymin),Ee=Math.max(Ee,Ne.ymax))}if(re.length===0)return null;xe=Math.max(xe,0),Ee=Math.min(Ee,s._length),Re=(xe+Ee)/2;var ke,We,W,se,de,K,J;for(ae=0;ae<re.length;ae++)for(We=re[ae].pts,ke=1;ke<We.length;ke++)K=We[ke-1][1],J=We[ke][1],K>Re!=J>=Re&&(se=We[ke-1][0],de=We[ke][0],J-K&&(W=se+(de-se)*(Re-K)/(J-K),ie=Math.min(ie,W),ue=Math.max(ue,W)));return ie=Math.max(ie,0),ue=Math.min(ue,l._length),{x0:ie,x1:ue,y0:Re,y1:Re}}if(d.indexOf("fills")!==-1&&o._fillElement){var X=Y(o._fillElement)&&!Y(o._fillExclusionElement);if(X){var N=H(o._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=E9.defaultLine;return E9.opacity(o.fillcolor)?Q=o.fillcolor:E9.opacity((o.line||{}).color)&&(Q=o.line.color),l3.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!l3.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var bN=oe((g9e,yN)=>{"use strict";var gN=Si();yN.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,d=l.mode&&!gN.hasMarkers(l)&&!gN.hasText(l);if(d)return[];if(t===!1)for(s=0;s<a.length;s++)a[s].selected=0;else for(s=0;s<a.length;s++)u=a[s],f=n.c2p(u.x),c=i.c2p(u.y),u.i!==null&&t.contains([f,c],!1,s,r)?(o.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0;return o}});var xN=oe((y9e,_N)=>{"use strict";_N.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var TN=oe((b9e,AN)=>{"use strict";var s3=xt().traceIs,L9=X6();AN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Jce(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Jce(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Kce(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],s={noMultiCategory:!s3(i,"cartesian")||s3(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,MN(i,a)){var u=wN(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!s3(c,"box-violin")||(c[a+"axis"]||a)!==t||(c[u]!==void 0?f.push(c[u][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[o]!==l&&(l=void 0))}e.type=L9(f,l,s)}else if(i.type==="splom"){var d=i.dimensions,h=d[i._axesDim[t]];h.visible&&(e.type=L9(h.values,l,s))}else e.type=L9(i[a]||[i[a+"0"]],l,s)}}}function Kce(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(MN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function wN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function MN(e,r){var t=wN(e),a=s3(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var CN=oe((_9e,kN)=>{"use strict";var Qce=ao().isTypedArraySpec;function e1e(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 s=n[i][t];for(o=0;o<s.length;o++){var u=s[o];u!=null&&(a[u]=1)}}return Object.keys(a)}kN.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||Qce(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=e1e(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var LN=oe((x9e,EN)=>{"use strict";var SN=Nt(),r1e=Hl(),t1e=pr();EN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(D,P){return t1e.coerce2(r,t,n.attributes,D,P)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=SN.mix(i,n.bgColor,n.blend||r1e.lightFraction),c=o("gridcolor",f),d=o("gridwidth"),h=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!d||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=SN.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",m),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),A=o("zerolinewidth"),k=a("zeroline",n.showGrid||!!M||!!A);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var F9=oe((w9e,zN)=>{"use strict";var DN=Jt(),a1e=xt(),Gh=pr(),n1e=Aa(),i1e=Xl(),D9=Vl(),FN=g6(),qN=b6(),o1e=w6(),l1e=M6(),s1e=CN(),u1e=LN(),f1e=hb(),PN=c2(),u3=(Un(),_r(On)).WEEKDAY_PATTERN,c1e=(Un(),_r(On)).HOUR_PATTERN;zN.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",d;if(c==="date"){var h=a1e.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(d=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Gh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="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",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),PN(t,i),f1e(r,t,a,n),s1e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==D9.color.dflt?m:l.color,b=s.label||i._dfltTitle[o];if(l1e(r,t,a,c,n),!u)return t;a("title.text",b),Gh.coerceFont(a,"title.font",l,{overrideDflt:{size:Gh.bigFont(l.size),color:y}}),FN(r,t,a,c);var C=n.hasMinor;if(C&&(n1e.newContainer(t,"minor"),FN(r,t,a,c,{isMinor:!0})),o1e(r,t,a,c,n),qN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,qN(r,t,a,n),n.isMinor=x}u1e(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:D9}),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(i1e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:v1e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var A=0;A<t.rangebreaks.length;A++)if(t.rangebreaks[A].pattern===u3){t._hasDayOfWeekBreaks=!0;break}if(PN(t,i),i._has("scattergl")||i._has("splom"))for(var k=0;k<n.data.length;k++){var D=n.data[k];(D.type==="scattergl"||D.type==="splom")&&(D.visible=!1,Gh.warn(D.type+" traces do not work on axes with rangebreaks. Setting trace "+D.index+" to `visible: false`."))}}return t};function v1e(e,r,t){function a(d,h){return Gh.coerce(e,r,D9.rangebreaks,d,h)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=RN(i[l]),s){o=u3;break}}var u=a("pattern",o);if(u===u3)for(l=0;l<2;l++)s=RN(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case u3:if(!DN(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case c1e:if(!DN(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;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 d1e={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function RN(e){if(typeof e=="string")return d1e[e.slice(0,3).toLowerCase()]}});var q9=oe((M9e,NN)=>{"use strict";var h1e=Jt(),f3=pr();NN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,d,h,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(d=s[l+"side"].split(" ")[0],h=s.domain[l][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(h1e(r.position)?"free":i[0]||"free"),d=d||(l==="x"?"bottom":"left"),h=h||0,p=0,m=!1;var y=f3.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=f3.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(y==="free"){if(l==="y"){var C=a("autoshift");C&&(h=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",m);var x=!1;if(o.length&&(x=f3.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),f3.noneOrAll(r.domain,t.domain,c),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var XN=oe((A9e,VN)=>{"use strict";var Tc=pr(),IN=Nt(),p1e=Pu().isUnifiedHover,m1e=Gb(),BN=Aa(),g1e=L1(),HN=Vl(),y1e=TN(),ON=F9(),b1e=lh(),UN=q9(),R9=qn(),Xs=R9.id2name,GN=R9.name2id,_1e=(Un(),_r(On)).AX_ID_PATTERN,YN=xt(),c3=YN.traceIs,P9=YN.getComponentMethod;function v3(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}VN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},d={},h={},p={},m,y;for(m=0;m<a.length;m++){var b=a[m];if(c3(b,"cartesian")){var C;if(b.xaxis)C=Xs(b.xaxis),v3(i,C,b);else if(b.xaxes)for(y=0;y<b.xaxes.length;y++)v3(i,Xs(b.xaxes[y]),b);var x;if(b.yaxis)x=Xs(b.yaxis),v3(i,x,b);else if(b.yaxes)for(y=0;y<b.yaxes.length;y++)v3(i,Xs(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&&(d[x]=!0),C&&(d[C]=!0)):(x&&(u[x]=!0,f[x]=!0),(!c3(b,"carpet")||b.type==="carpet"&&!b._cheater)&&C&&(s[C]=!0)),b.type==="carpet"&&b._cheater&&C&&(o[C]=!0),c3(b,"2dMap")&&(h[C]=!0,h[x]=!0),c3(b,"oriented")){var _=b.orientation==="h"?x:C;p[_]=!0}}}var M=t._subplots,A=M.xaxis,k=M.yaxis,D=Tc.simpleMap(A,Xs),P=Tc.simpleMap(k,Xs),z=D.concat(P),B=IN.background;A.length&&k.length&&(B=Tc.coerce(r,t,g1e,"plot_bgcolor"));var Y=IN.combine(B,t.paper_bgcolor),H,X,N,Q,ee;function ae(){var Oe=i[H]||[];ee._traceIndices=Oe.map(function(xr){return xr.index}),ee._annIndices=[],ee._shapeIndices=[],ee._selectionIndices=[],ee._imgIndices=[],ee._subplotsWith=[],ee._counterAxes=[],ee._name=ee._attr=H,ee._id=X}function re(Oe,xr){return Tc.coerce(Q,ee,HN,Oe,xr)}function ie(Oe,xr){return Tc.coerce2(Q,ee,HN,Oe,xr)}function ue(Oe){return Oe==="x"?k:A}function xe(Oe,xr){for(var Rr=Oe==="x"?D:P,zr=[],Ce=0;Ce<Rr.length;Ce++){var Ue=Rr[Ce];Ue!==xr&&!(r[Ue]||{}).overlaying&&zr.push(GN(Ue))}return zr}var Ee={x:ue("x"),y:ue("y")},Re=Ee.x.concat(Ee.y),Ne={},ke=[];function We(){var Oe=Q.matches;_1e.test(Oe)&&Re.indexOf(Oe)===-1&&(Ne[Oe]=Q.type,ke=Object.keys(Ne))}var W=m1e(r,t),se=p1e(W);for(m=0;m<z.length;m++){H=z[m],X=GN(H),N=H.charAt(0),Tc.isPlainObject(r[H])||(r[H]={}),Q=r[H],ee=BN.newContainer(t,H,N+"axis"),ae();var de=N==="x"&&!s[H]&&o[H]||N==="y"&&!u[H]&&l[H],K=N==="y"&&(!f[H]&&c[H]||d[H]),J={hasMinor:!0,letter:N,font:t.font,outerTicks:h[H],showGrid:!p[H],data:i[H]||[],bgColor:Y,calendar:t.calendar,automargin:!0,visibleDflt:de,reverseDflt:K,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[N]||{})[X],noAutotickangles:N==="y"};re("uirevision",t.uirevision),y1e(Q,ee,re,J),ON(Q,ee,re,J,t);var ce=se&&N===W.charAt(0),be=ie("spikecolor",se?ee.color:void 0),Le=ie("spikethickness",se?1.5:void 0),je=ie("spikedash",se?"dot":void 0),er=ie("spikemode",se?"across":void 0),$e=ie("spikesnap"),ar=re("showspikes",!!ce||!!be||!!Le||!!je||!!er||!!$e);ar||(delete ee.spikecolor,delete ee.spikethickness,delete ee.spikedash,delete ee.spikemode,delete ee.spikesnap);var Ie=Xs(Q.overlaying),ir=[0,1];if(t[Ie]!==void 0){var dr=Xs(t[Ie].anchor);t[dr]!==void 0&&(ir=t[dr].domain)}UN(Q,ee,re,{letter:N,counterAxes:Ee[N],overlayableAxes:xe(N,H),grid:t.grid,overlayingDomain:ir}),re("title.standoff"),We(),ee._input=Q}for(m=0;m<ke.length;){X=ke[m++],H=Xs(X),N=H.charAt(0),Tc.isPlainObject(r[H])||(r[H]={}),Q=r[H],ee=BN.newContainer(t,H,N+"axis"),ae();var Ar={letter:N,font:t.font,outerTicks:h[H],showGrid:!p[H],data:[],bgColor:Y,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[N]||{})[X]};re("uirevision",t.uirevision),ee.type=Ne[X]||"linear",ON(Q,ee,re,Ar,t),UN(Q,ee,re,{letter:N,counterAxes:Ee[N],overlayableAxes:xe(N,H),grid:t.grid}),re("fixedrange"),re("modebardisable"),We(),ee._input=Q}var Qe=P9("rangeslider","handleDefaults"),mr=P9("rangeselector","handleDefaults");for(m=0;m<D.length;m++)H=D[m],Q=r[H],ee=t[H],Qe(r,t,H),ee.type==="date"&&mr(Q,ee,t,P,ee.calendar),re("fixedrange"),re("modebardisable");for(m=0;m<P.length;m++){H=P[m],Q=r[H],ee=t[H];var Pr=t[Xs(ee.anchor)],Te=P9("rangeslider","isVisible")(Pr);re("fixedrange",Te),re("modebardisable")}b1e.handleDefaults(r,t,{axIds:Re.concat(ke).sort(R9.idSort),axHasImage:d})}});var ZN=oe((T9e,WN)=>{"use strict";var x1e=qt(),jN=xt(),d3=pr(),Ro=da(),h3=Ga();WN.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){h3.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Ro.setTranslate,0,0).call(Ro.setScale,1,1),y.plot.call(Ro.setTranslate,b._offset,C._offset).call(Ro.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(Ro.setPointGroupScale,1,1),x.selectAll(".textpoint").call(Ro.setTextPointsScale,1,1),x.call(Ro.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,M=x._length,A=_._length,k=!!y.xr1,D=!!y.yr1,P=[];if(k){var z=d3.simpleMap(y.xr0,x.r2l),B=d3.simpleMap(y.xr1,x.r2l),Y=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/Y),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 X=d3.simpleMap(y.yr0,_.r2l),N=d3.simpleMap(y.yr1,_.r2l),Q=X[1]-X[0],ee=N[1]-N[0];P[1]=(X[1]*(1-b)+b*N[1]-X[1])/(X[0]-X[1])*A,P[3]=A*(1-b+b*ee/Q),_.range[0]=x.l2r(X[0]*(1-b)+b*N[0]),_.range[1]=_.l2r(X[1]*(1-b)+b*N[1])}else P[1]=0,P[3]=A;h3.drawOne(r,x,{skipTitle:!0}),h3.drawOne(r,_,{skipTitle:!0}),h3.redrawComponents(r,[x._id,_._id]);var ae=k?M/P[2]:1,re=D?A/P[3]:1,ie=k?P[0]:0,ue=D?P[1]:0,xe=k?P[0]/P[2]*M:0,Ee=D?P[1]/P[3]*A:0,Re=x._offset-xe,Ne=_._offset-Ee;C.clipRect.call(Ro.setTranslate,ie,ue).call(Ro.setScale,1/ae,1/re),C.plot.call(Ro.setTranslate,Re,Ne).call(Ro.setScale,ae,re),Ro.setPointGroupScale(C.zoomScalePts,1/ae,1/re),Ro.setTextPointsScale(C.zoomScaleTxt,1/ae,1/re)}var s;n&&(s=n());function u(){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 s&&s(),jN.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 jN.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)o(t[M].plotinfo)})}var c,d,h,p=x1e.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(h),h=null,f()});function m(){d=Date.now();for(var y=Math.min(1,(d-c)/a.duration),b=p(y),C=0;C<t.length;C++)l(t[C],b);d-c>a.duration?(u(),h=window.cancelAnimationFrame(m)):h=window.requestAnimationFrame(m)}return c=Date.now(),h=window.requestAnimationFrame(m),Promise.resolve()}});var z9=oe(mi=>{"use strict";var m3=qt(),$N=xt(),kc=pr(),w1e=Pn(),M1e=da(),JN=Pd().getModuleCalcData,Xf=qn(),es=(Un(),_r(On)),A1e=(ec(),_r(Q0)),aa=kc.ensureSingle;function p3(e,r,t){return kc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Cc=es.zindexSeparator;mi.name="cartesian";mi.attr=["xaxis","yaxis"];mi.idRoot=["x","y"];mi.idRegex=es.idRegex;mi.attrRegex=es.attrRegex;mi.attributes=xN();mi.layoutAttributes=Vl();mi.supplyLayoutDefaults=XN();mi.transitionAxes=ZN();mi.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u<o.length;u++){var d=o[u].split("y");l[d[0]]=1,s["y"+d[1]]=1}for(u=0;u<a.length;u++)f=a[u],l[f]||(c=(e[Xf.id2name(f)]||{}).anchor,es.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,kc.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[Xf.id2name(c)]||{}).anchor,es.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,kc.pushUnique(a,f)));if(!o.length){f="",c="";for(var h in e)if(es.attrRegex.test(h)){var p=h.charAt(0);p==="x"?(!f||+h.slice(5)<+f.slice(5))&&(f=h):(!c||+h.slice(5)<+c.slice(5))&&(c=h)}f=f?Xf.name2id(f):"x",c=c?Xf.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};mi.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 s=n._zindices,u=0;u<s.length;u++){var f=s[u];for(l=0;l<i.length;l++){var c=i[l],d=n._plots[c];if(u>0){var h=d.id;if(h.indexOf(Cc)!==-1)continue;h+=Cc+(u+1),d=kc.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],m,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)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(C.fill)!==-1&&p.indexOf(m)===-1&&p.push(m),p.push(b)),m=b)}KN(e,d,p,t,a)}}};function KN(e,r,t,a,n){for(var i=es.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,d=[],h=[],p=0;p<l.length;p++)for(var m=l[p],y=0;y<s.length;y++){u=s[y];var b=u.name,C=$N.modules[b].categories;if(C.svg){var x=u.layerName||b+"layer",_=x+(p?Number(p)+1:""),M=u.plot;f=JN(t,M,m),c=f[0],t=f[1],c.length&&d.push({i:i.indexOf(x),zindex:p,className:_,plotMethod:M,cdModule:c}),C.zoomScale&&h.push("."+_)}}d.sort(function(D,P){return(D.zindex||0)-(P.zindex||0)||D.i-P.i});var A=r.plot.selectAll("g.mlayer").data(d,function(D){return D.className});if(A.enter().append("g").attr("class",function(D){return D.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),A.exit().remove(),A.order(),A.each(function(D){var P=m3.select(this),z=D.className;D.plotMethod(e,r,D.cdModule,P,a,n),es.clipOnAxisFalseQuery.indexOf("."+z)===-1&&M1e.setClipUrl(P,r.layerClipId,e)}),o._has("scattergl")&&(u=$N.getModule("scattergl"),c=JN(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(es.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),h.length)){var k=r.plot.selectAll(h.join(",")).selectAll(".trace");r.zoomScalePts=k.selectAll("path.point"),r.zoomScaleTxt=k.selectAll(".textpoint")}}mi.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},o=a._subplots||{},l,s,u;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(u in n)l=n[u],l.plotgroup&&l.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(u in n)l=n[u],l._scene&&l._scene.destroy();if(o.xaxis&&o.yaxis){var d=Xf.listIds({_fullLayout:a});for(s=0;s<d.length;s++){var h=d[s];r[Xf.id2name(h)]||a._infolayer.selectAll(".g-"+h+"title").remove()}}var p=a._has&&a._has("cartesian"),m=r._has&&r._has("cartesian");if(p&&!m)eI(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(s=0;s<o.cartesian.length;s++){var y=o.cartesian[s];if(y.indexOf(Cc)===-1&&!i[y]){var b="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(b).remove(),rI(y,a)}}};mi.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 s=Object.keys(n).map(Number).sort(kc.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=T1e(e),f=u.length,c=[];for(a=0;a<f;a++)c[a]=u[a].slice();for(var d=1;d<s.length;d++){var h=[];for(a=0;a<f;a++)h[a]=u[a].slice(),h[a][0]+=Cc+(d+1);c=c.concat(h)}var p=r._cartesianlayer.selectAll(".subplot").data(c,String);p.enter().append("g").attr("class",function(m){return"subplot "+m[0]}),p.order(),p.exit().call(eI,r),p.each(function(m){var y=m[0],b=y.indexOf(Cc),C=b!==-1,x=C?y.slice(0,b):y,_=r._plots[y];_||(_=kc.extendFlat({},r._plots[x]),_&&(_.id=y,r._plots[y]=_,r._subplots.cartesian.push(y))),_&&(_.plotgroup=m3.select(this),QN(e,_),C||(_.draglayer=aa(r._draggers,"g",y)))})};mi.rangePlot=function(e,r,t){QN(e,r),KN(e,r,t),w1e.style(e)};function T1e(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,s,u,f,c=[],d=[];for(i=0;i<n;i++){l=a[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;var h=u._mainAxis,p=f._mainAxis,m=h._id+p._id,y=r._plots[m];s.overlays=[],m!==l&&y?(s.mainplot=m,s.mainplotinfo=y,d.push(l)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(l))}for(i=0;i<d.length;i++)l=d[i],s=r._plots[l],s.mainplotinfo.overlays.push(s);var b=c.concat(d),C=[];for(i=0;i<n;i++){l=b[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var x=[],_=1;_<=t;_++){var M="";for(_>1&&(M+=Cc+_),x.push(l+M),o=0;o<s.overlays.length;o++)x.push(s.overlays[o].id+M)}x=x.concat([u.layer,f.layer,u.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(Cc),o=i!==-1,l=es.layerValue2layerClass[r.xaxis.layer],s=es.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=aa(a,"path","xlines-above"),r.ylines=aa(a,"path","ylines-above"),r.xaxislayer=aa(a,"g","xaxislayer-above"),r.yaxislayer=aa(a,"g","yaxislayer-above");else{if(!o){var d=aa(a,"g","layer-subplot");r.shapelayer=aa(d,"g","shapelayer"),r.imagelayer=aa(d,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=aa(a,"g","minor-gridlayer"),r.gridlayer=aa(a,"g","gridlayer"),r.zerolinelayer=aa(a,"g","zerolinelayer"));var h=aa(a,"g","layer-between");r.shapelayerBetween=aa(h,"g","shapelayer"),r.imagelayerBetween=aa(h,"g","imagelayer"),aa(a,"path","xlines-below"),aa(a,"path","ylines-below"),r.overlinesBelow=aa(a,"g","overlines-below"),aa(a,"g","xaxislayer-below"),aa(a,"g","yaxislayer-below"),r.overaxesBelow=aa(a,"g","overaxes-below")}r.overplot=aa(a,"g","overplot"),r.plot=aa(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=aa(a,"g","zerolinelayer-above"),o||(r.xlines=aa(a,"path","xlines-above"),r.ylines=aa(a,"path","ylines-above"),r.overlinesAbove=aa(a,"g","overlines-above"),aa(a,"g","xaxislayer-above"),aa(a,"g","yaxislayer-above"),r.overaxesAbove=aa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,aa(c.overlinesBelow,"path",m),aa(c.overlinesBelow,"path",y),aa(c.overaxesBelow,"g",m),aa(c.overaxesBelow,"g",y),r.plot=aa(c.overplot,"g",n),aa(c.overlinesAbove,"path",m),aa(c.overlinesAbove,"path",y),aa(c.overaxesAbove,"g",m),aa(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(p3(r.minorGridlayer,"g",r.xaxis._id),p3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Xf.idSort),p3(r.gridlayer,"g",r.xaxis._id),p3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Xf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function eI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=m3.select(this);f.remove(),rI(u,r),t[u]=!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 rI(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}mi.toSVG=function(e){var r=e._fullLayout._glimages,t=m3.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:A1e.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};mi.updateFx=U7().updateFx});var aI=oe((C9e,tI)=>{"use strict";var g3=Si();tI.exports={hasLines:g3.hasLines,hasMarkers:g3.hasMarkers,hasText:g3.hasText,isBubble:g3.isBubble,attributes:_c(),layoutAttributes:Hm(),supplyDefaults:hz(),crossTraceDefaults:yz(),supplyLayoutDefaults:_z(),calc:r3().calc,crossTraceCalc:Wz(),arraysToCalcdata:Nh(),plot:sN(),colorbar:A9(),formatLabels:cN(),style:Uh().style,styleOnSelect:Uh().styleOnSelect,hoverPoints:mN(),selectPoints:bN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:z9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var oI=oe((S9e,iI)=>{"use strict";var k1e=qt(),C1e=Nt(),nI=F7(),N9=pr(),S1e=N9.strScale,E1e=N9.strRotate,L1e=N9.strTranslate;iI.exports=function(r,t,a){var n=r.node(),i=nI[a.arrowhead||0],o=nI[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,d=o.backoff*s+a.startstandoff,h,p,m,y;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=h.x-p.x,C=h.y-p.y;if(m=Math.atan2(C,b),y=m+Math.PI,c&&d&&c+d>Math.sqrt(b*b+C*C)){X();return}if(c){if(c*c>b*b+C*C){X();return}var x=c*Math.cos(m),_=c*Math.sin(m);p.x+=x,p.y+=_,r.attr({x2:p.x,y2:p.y})}if(d){if(d*d>b*b+C*C){X();return}var M=d*Math.cos(m),A=d*Math.sin(m);h.x-=M,h.y-=A,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),D="";if(k<c+d){X();return}var P=n.getPointAtLength(0),z=n.getPointAtLength(.1);m=Math.atan2(P.y-z.y,P.x-z.x),h=n.getPointAtLength(Math.min(d,k)),D="0px,"+d+"px,";var B=n.getPointAtLength(k),Y=n.getPointAtLength(k-.1);y=Math.atan2(B.y-Y.y,B.x-Y.x),p=n.getPointAtLength(Math.max(0,k-c));var H=D?d+c:c;D+=k-H+"px,"+k+"px",r.style("stroke-dasharray",D)}function X(){r.style("stroke-dasharray","0px,100px")}function N(Q,ee,ae,re){Q.path&&(Q.noRotate&&(ae=0),k1e.select(n.parentNode).append("path").attr({class:r.attr("class"),d:Q.path,transform:L1e(ee.x,ee.y)+E1e(ae*180/Math.PI)+S1e(re)}).style({fill:C1e.rgb(a.arrowcolor),"stroke-width":0}))}u&&N(o,h,m,s),f&&N(i,p,y,l)}});var y3=oe((E9e,cI)=>{"use strict";var lI=qt(),I9=xt(),D1e=Pn(),Wf=pr(),B9=Wf.strTranslate,Vh=Ga(),Sc=Nt(),Yu=da(),sI=Zl(),H9=hi(),O9=Nf(),Yh=al(),F1e=Aa().arrayEditor,q1e=oI();cI.exports={draw:P1e,drawOne:uI,drawRaw:fI};function P1e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&uI(e,t);return D1e.previousPromises(e)}function uI(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Vh.getFromId(e,a.xref),i=Vh.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),fI(e,a,r,!1,n,i)}function jf(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=Vh.getRefType(o)==="domain",u=l?a.h:a.w;return e?s?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/u}function fI(e,r,t,a,n,i){var o=e._fullLayout,l=e._fullLayout._size,s=e._context.edits,u,f;a?(u="annotation-"+a,f=a+".annotations"):(u="annotation",f="annotations");var c=F1e(e.layout,f,r),d=c.modifyBase,h=c.modifyItem,p=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var m="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){lI.selectAll("#"+m).remove();return}var y={x:{},y:{}},b=+r.textangle||0,C=o._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),x=C.append("g").classed("annotation-text-g",!0),_=s[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||s.annotationText||_;function A(re){var ie={index:t,annotation:r._input,fullAnnotation:r,event:re};return a&&(ie.subplotId=a),ie}var k=x.append("g").style("pointer-events",M?"all":null).call(O9,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",A(lI.event))});r.hovertext&&k.on("mouseover",function(){var re=r.hoverlabel,ie=re.font,ue=this.getBoundingClientRect(),xe=e.getBoundingClientRect();sI.loneHover({x0:ue.left-xe.left,x1:ue.right-xe.left,y:(ue.top+ue.bottom)/2-xe.top,text:r.hovertext,color:re.bgcolor,borderColor:re.bordercolor,fontFamily:ie.family,fontSize:ie.size,fontColor:ie.color,fontWeight:ie.weight,fontStyle:ie.style,fontVariant:ie.variant,fontShadow:ie.fontShadow,fontLineposition:ie.fontLineposition,fontTextcase:ie.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){sI.loneUnhover(o._hoverlayer.node())});var D=r.borderwidth,P=r.borderpad,z=D+P,B=k.append("rect").attr("class","bg").style("stroke-width",D+"px").call(Sc.stroke,r.bordercolor).call(Sc.fill,r.bgcolor),Y=r.width||r.height,H=o._topclips.selectAll("#"+m).data(Y?[0]:[]);H.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),H.exit().remove();var X=r.font,N=o._meta?Wf.templateString(r.text,o._meta):r.text,Q=k.append("text").classed("annotation-text",!0).text(N);function ee(re){return re.call(Yu.font,X).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),H9.convertToTspans(re,e,ae),re}function ae(){var re=Q.selectAll("a");if(re.size()===1&&re.text()===Q.text()){var ie=k.insert("a",":first-child").attr({"xlink:xlink:href":re.attr("xlink:href"),"xlink:xlink:show":re.attr("xlink:show")}).style({cursor:"pointer"});ie.node().appendChild(B.node())}var ue=k.select(".annotation-text-math-group"),xe=!ue.empty(),Ee=Yu.bBox((xe?ue:Q).node()),Re=Ee.width,Ne=Ee.height,ke=r.width||Re,We=r.height||Ne,W=Math.round(ke+2*z),se=Math.round(We+2*z);function de(qr,Zr){return Zr==="auto"&&(qr<1/3?Zr="left":qr>2/3?Zr="right":Zr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Zr]}for(var K=!1,J=["x","y"],ce=0;ce<J.length;ce++){var be=J[ce],Le=r[be+"ref"]||be,je=r["a"+be+"ref"],er={x:n,y:i}[be],$e=(b+(be==="x"?0:-90))*Math.PI/180,ar=W*Math.cos($e),Ie=se*Math.sin($e),ir=Math.abs(ar)+Math.abs(Ie),dr=r[be+"anchor"],Ar=r[be+"shift"]*(be==="x"?1:-1),Qe=y[be],mr,Pr,Te,Oe,xr,Rr=Vh.getRefType(Le);if(er&&Rr!=="domain"){var zr=er.r2fraction(r[be]);(zr<0||zr>1)&&(je===Le?(zr=er.r2fraction(r["a"+be]),(zr<0||zr>1)&&(K=!0)):K=!0),mr=er._offset+er.r2p(r[be]),Oe=.5}else{var Ce=Rr==="domain";be==="x"?(Te=r[be],mr=Ce?er._offset+er._length*Te:mr=l.l+l.w*Te):(Te=1-r[be],mr=Ce?er._offset+er._length*Te:mr=l.t+l.h*Te),Oe=r.showarrow?.5:Te}if(r.showarrow){Qe.head=mr;var Ue=r["a"+be];if(xr=ar*de(.5,r.xanchor)-Ie*de(.5,r.yanchor),je===Le){var cr=Vh.getRefType(je);cr==="domain"?(be==="y"&&(Ue=1-Ue),Qe.tail=er._offset+er._length*Ue):cr==="paper"?be==="y"?(Ue=1-Ue,Qe.tail=l.t+l.h*Ue):Qe.tail=l.l+l.w*Ue:Qe.tail=er._offset+er.r2p(Ue),Pr=xr}else Qe.tail=mr+Ue,Pr=xr+Ue;Qe.text=Qe.tail+xr;var Mr=o[be==="x"?"width":"height"];if(Le==="paper"&&(Qe.head=Wf.constrain(Qe.head,1,Mr-1)),je==="pixel"){var hr=-Math.max(Qe.tail-3,Qe.text),kr=Math.min(Qe.tail+3,Qe.text)-Mr;hr>0?(Qe.tail+=hr,Qe.text+=hr):kr>0&&(Qe.tail-=kr,Qe.text-=kr)}Qe.tail+=Ar,Qe.head+=Ar}else xr=ir*de(Oe,dr),Pr=xr,Qe.text=mr+xr;Qe.text+=Ar,xr+=Ar,Pr+=Ar,r["_"+be+"padplus"]=ir/2+Pr,r["_"+be+"padminus"]=ir/2-Pr,r["_"+be+"size"]=ir,r["_"+be+"shift"]=xr}if(K){k.remove();return}var Lr=0,Br=0;if(r.align!=="left"&&(Lr=(ke-Re)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Br=(We-Ne)*(r.valign==="middle"?.5:1)),xe)ue.select("svg").attr({x:z+Lr-1,y:z+Br}).call(Yu.setClipUrl,Y?m:null,e);else{var et=z+Br-Ee.top,lr=z+Lr-Ee.left;Q.call(H9.positionText,lr,et).call(Yu.setClipUrl,Y?m:null,e)}H.select("rect").call(Yu.setRect,z,z,ke,We),B.call(Yu.setRect,D/2,D/2,W-D,se-D),k.call(Yu.setTranslate,Math.round(y.x.text-W/2),Math.round(y.y.text-se/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Cr=function(qr,Zr){C.selectAll(".annotation-arrow-g").remove();var Or=y.x.head,Xr=y.y.head,Me=y.x.tail+qr,Be=y.y.tail+Zr,or=y.x.text+qr,vr=y.y.text+Zr,Ft=Wf.rotationXYMatrix(b,or,vr),Kt=Wf.apply2DTransform(Ft),ua=Wf.apply2DTransform2(Ft),ga=+B.attr("width"),Ut=+B.attr("height"),Rt=or-.5*ga,na=Rt+ga,Gt=vr-.5*Ut,Ma=Gt+Ut,Ca=[[Rt,Gt,Rt,Ma],[Rt,Ma,na,Ma],[na,Ma,na,Gt],[na,Gt,Rt,Gt]].map(ua);if(!Ca.reduce(function(pt,Yt){return pt^!!Wf.segmentsIntersect(Or,Xr,Or+1e6,Xr+1e6,Yt[0],Yt[1],Yt[2],Yt[3])},!1)){Ca.forEach(function(pt){var Yt=Wf.segmentsIntersect(Me,Be,Or,Xr,pt[0],pt[1],pt[2],pt[3]);Yt&&(Me=Yt.x,Be=Yt.y)});var An=r.arrowwidth,cn=r.arrowcolor,Sa=r.arrowside,za=C.append("g").style({opacity:Sc.opacity(cn)}).classed("annotation-arrow-g",!0),Na=za.append("path").attr("d","M"+Me+","+Be+"L"+Or+","+Xr).style("stroke-width",An+"px").call(Sc.stroke,Sc.rgb(cn));if(q1e(Na,Sa,r),s.annotationPosition&&Na.node().parentNode&&!a){var Ea=Or,vn=Xr;if(r.standoff){var Ia=Math.sqrt(Math.pow(Or-Me,2)+Math.pow(Xr-Be,2));Ea+=r.standoff*(Me-Or)/Ia,vn+=r.standoff*(Be-Xr)/Ia}var dn=za.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Me-Ea)+","+(Be-vn),transform:B9(Ea,vn)}).style("stroke-width",An+6+"px").call(Sc.stroke,"rgba(0,0,0,0)").call(Sc.fill,"rgba(0,0,0,0)"),Dr,kt;Yh.init({element:dn.node(),gd:e,prepFn:function(){var pt=Yu.getTranslate(k);Dr=pt.x,kt=pt.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function(pt,Yt){var Ba=Kt(Dr,kt),Tn=Ba[0]+pt,ya=Ba[1]+Yt;k.call(Yu.setTranslate,Tn,ya),h("x",jf(n,pt,"x",l,r)),h("y",jf(i,Yt,"y",l,r)),r.axref===r.xref&&h("ax",jf(n,pt,"ax",l,r)),r.ayref===r.yref&&h("ay",jf(i,Yt,"ay",l,r)),za.attr("transform",B9(pt,Yt)),x.attr({transform:"rotate("+b+","+Tn+","+ya+")"})},doneFn:function(){I9.call("_guiRelayout",e,p());var pt=document.querySelector(".js-notes-box-panel");pt&&pt.redraw(pt.selectedObj)}})}}};if(r.showarrow&&Cr(0,0),_){var tr;Yh.init({element:k.node(),gd:e,prepFn:function(){tr=x.attr("transform")},moveFn:function(qr,Zr){var Or="pointer";if(r.showarrow)r.axref===r.xref?h("ax",jf(n,qr,"ax",l,r)):h("ax",r.ax+qr),r.ayref===r.yref?h("ay",jf(i,Zr,"ay",l.w,r)):h("ay",r.ay+Zr),Cr(qr,Zr);else{if(a)return;var Xr,Me;if(n)Xr=jf(n,qr,"x",l,r);else{var Be=r._xsize/l.w,or=r.x+(r._xshift-r.xshift)/l.w-Be/2;Xr=Yh.align(or+qr/l.w,Be,0,1,r.xanchor)}if(i)Me=jf(i,Zr,"y",l,r);else{var vr=r._ysize/l.h,Ft=r.y-(r._yshift+r.yshift)/l.h-vr/2;Me=Yh.align(Ft-Zr/l.h,vr,0,1,r.yanchor)}h("x",Xr),h("y",Me),(!n||!i)&&(Or=Yh.getCursor(n?.5:Xr,i?.5:Me,r.xanchor,r.yanchor))}x.attr({transform:B9(qr,Zr)+tr}),O9(k,Or)},clickFn:function(qr,Zr){r.captureevents&&e.emit("plotly_clickannotation",A(Zr))},doneFn:function(){O9(k),I9.call("_guiRelayout",e,p());var qr=document.querySelector(".js-notes-box-panel");qr&&qr.redraw(qr.selectedObj)}})}}s.annotationText?Q.call(H9.makeEditable,{delegate:k,gd:e}).call(ee).on("edit",function(re){r.text=re,this.call(ee),h("text",re),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),I9.call("_guiRelayout",e,p())}):Q.call(ee)}});var gI=oe((L9e,mI)=>{"use strict";var vI=pr(),R1e=xt(),dI=Aa().arrayEditor;mI.exports={hasClickToShow:z1e,onClick:N1e};function z1e(e,r){var t=pI(e,r);return t.on.length>0||t.explicitOff.length>0}function N1e(e,r){var t=pI(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l<a.length;l++)s=dI(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),vI.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=dI(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),vI.extendFlat(i,s.getUpdateObj());return R1e.call("update",e,{},i)}}function pI(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,s,u,f,c,d,h,p;for(l=0;l<t.length;l++)if(u=t[l],f=u.clicktoshow,f){for(s=0;s<o;s++)if(c=r[s],d=c.xaxis,h=c.yaxis,d._id===u.xref&&h._id===u.yref&&d.d2r(c.x)===hI(u._xclick,d)&&h.d2r(c.y)===hI(u._yclick,h)){u.visible?f==="onout"?p=n:p=i:p=a,p.push(l);break}s===o&&u.visible&&f==="onout"&&n.push(l)}return{on:a,off:n,explicitOff:i}}function hI(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var G9=oe((D9e,yI)=>{"use strict";var U9=pr(),xv=Nt();yI.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=xv.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),U9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),d,h;c.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),n("arrowcolor",l?t.bordercolor:xv.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(xv.opacity(i)?xv.rgb(i):xv.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||xv.contrast(y)),C=U9.extendFlat({},m.font);C.color||(C.color=b),U9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!p)}});var _I=oe((F9e,bI)=>{"use strict";var Y9=pr(),Ec=Ga(),I1e=Xl(),B1e=G9(),H1e=vv();bI.exports=function(r,t){I1e(r,t,{name:"annotations",handleItemDefaults:O1e})};function O1e(e,r,t){function a(x,_){return Y9.coerce(e,r,H1e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){B1e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],d=Ec.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Ec.getFromId(u,d);h._annIndices.push(r._index)}if(Ec.coercePosition(r,u,a,d,c,.5),o){var p="a"+c,m=Ec.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==d&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Ec.coercePosition(r,u,a,m,p,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:Ec.cleanPosition(b,u,r.xref),r._yclick=C===void 0?r.y:Ec.cleanPosition(C,u,r.yref)}}}});var MI=oe((q9e,wI)=>{"use strict";var V9=pr(),Lc=Ga(),U1e=y3().draw;wI.exports=function(r){var t=r._fullLayout,a=V9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return V9.syncOrAsync([U1e,G1e],r)};function G1e(e){var r=e._fullLayout;V9.filterVisible(r.annotations).forEach(function(t){var a=Lc.getFromId(e,t.xref),n=Lc.getFromId(e,t.yref),i=Lc.getRefType(t.xref),o=Lc.getRefType(t.yref);t._extremes={},i==="range"&&xI(t,a),o==="range"&&xI(t,n)})}function xI(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"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,d=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(l===o){var C=Lc.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),x=Lc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=Lc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,m),ppadminus:Math.max(u,h,y)});e._extremes[t]=b}});var TI=oe((P9e,AI)=>{"use strict";var Y1e=Jt(),V1e=qp();AI.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,s=t._id.charAt(0),u,f;function c(h){var p=u[h],m=null;i?m=V1e(p,t.range):m=Math.pow(10,p),Y1e(m)||(m=null),n(f+h,m)}for(var d=0;d<l.length;d++)u=l[d],f="annotations["+d+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var SI=oe((R9e,CI)=>{"use strict";var X9=y3(),kI=gI();CI.exports={moduleType:"component",name:"annotations",layoutAttributes:vv(),supplyLayoutDefaults:_I(),includeBasePlot:kh()("annotations"),calcAutorange:MI(),draw:X9.draw,drawOne:X9.drawOne,drawRaw:X9.drawRaw,hasClickToShow:kI.hasClickToShow,onClick:kI.onClick,convertCoords:TI()}});var b3=oe((z9e,EI)=>{"use strict";var ka=vv(),X1e=Ko().overrideAll,j1e=Aa().templatedArray;EI.exports=X1e(j1e("annotation",{visible:ka.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ka.xanchor,xshift:ka.xshift,yanchor:ka.yanchor,yshift:ka.yshift,text:ka.text,textangle:ka.textangle,font:ka.font,width:ka.width,height:ka.height,opacity:ka.opacity,align:ka.align,valign:ka.valign,bgcolor:ka.bgcolor,bordercolor:ka.bordercolor,borderpad:ka.borderpad,borderwidth:ka.borderwidth,showarrow:ka.showarrow,arrowcolor:ka.arrowcolor,arrowhead:ka.arrowhead,startarrowhead:ka.startarrowhead,arrowside:ka.arrowside,arrowsize:ka.arrowsize,startarrowsize:ka.startarrowsize,arrowwidth:ka.arrowwidth,standoff:ka.standoff,startstandoff:ka.startstandoff,hovertext:ka.hovertext,hoverlabel:ka.hoverlabel,captureevents:ka.captureevents}),"calc","from-root")});var DI=oe((N9e,LI)=>{"use strict";var j9=pr(),W1e=Ga(),Z1e=Xl(),$1e=G9(),J1e=b3();LI.exports=function(r,t,a){Z1e(r,t,{name:"annotations",handleItemDefaults:K1e,fullLayout:a.fullLayout})};function K1e(e,r,t,a){function n(l,s){return j9.coerce(e,r,J1e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],W1e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&($1e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),j9.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),j9.noneOrAll(e,r,["ax","ay"])))}});var RI=oe((I9e,PI)=>{"use strict";var FI=pr(),qI=Ga();PI.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)Q1e(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Q1e(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={},FI.extendFlat(e._xa,i),qI.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={},FI.extendFlat(e._ya,i),qI.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 NI=oe((B9e,zI)=>{"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 eve(e,r){var t=W9(e.projection,W9(e.view,W9(e.model,[r[0],r[1],r[2],1])));return t}zI.exports=eve});var BI=oe((H9e,II)=>{"use strict";var rve=y3().drawRaw,tve=NI(),ave=["x","y","z"];II.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,s=0;s<3;s++){var u=ave[s],f=o[u],c=t[u+"axis"],d=c.r2fraction(f);if(d<0||d>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=tve(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),rve(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var UI=oe((O9e,OI)=>{"use strict";var nve=xt(),HI=pr();OI.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:b3()}}},layoutAttributes:b3(),handleDefaults:DI(),includeBasePlot:ive,convert:RI(),draw:BI()};function ive(e,r){var t=nve.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&&(HI.pushUnique(r._basePlotModules,t),HI.pushUnique(r._subplots.gl3d,o))}}});var Z9=oe((Y9e,XI)=>{"use strict";var U9e=(Un(),_r(On)),GI=Ai(),YI=_c().line,ove=Ls().dash,rs=Dn().extendFlat,lve=Aa().templatedArray,G9e=(Ah(),_r(Mh)),wv=Jo(),VI=vv(),{shapeTexttemplateAttrs:sve,templatefallbackAttrs:uve}=V0(),fve=pm();XI.exports=lve("shape",{visible:rs({},wv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:rs({},wv.legend,{editType:"calc+arraydraw"}),legendgroup:rs({},wv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:rs({},wv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:GI({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:rs({},wv.legendrank,{editType:"calc+arraydraw"}),legendwidth:rs({},wv.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:rs({},VI.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:rs({},VI.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:rs({},YI.color,{editType:"arraydraw"}),width:rs({},YI.width,{editType:"calc+arraydraw"}),dash:rs({},ove,{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:sve({},{keys:Object.keys(fve)}),texttemplatefallback:uve({editType:"arraydraw"}),font:GI({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 WI=oe((V9e,jI)=>{"use strict";var Mv=pr(),zo=Ga(),cve=Xl(),vve=Z9(),Xh=Uf();jI.exports=function(r,t){cve(r,t,{name:"shapes",handleItemDefaults:hve})};function dve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function hve(e,r,t){function a(x,_){return Mv.coerce(e,r,vve,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"),Mv.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&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"),d=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",M=x==="x"?c:d,A={_fullLayout:t},k,D,P,z;let B=x+"ref",Y=e[B];if(Array.isArray(Y)&&Y.length>0){let H=Xh.countDefiningCoords(s,o,x);z=zo.coerceRefArray(e,r,A,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else z=zo.coerceRef(e,r,A,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(H){zo.getRefType(H)==="range"&&(k=zo.getFromId(A,H),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let X=z[H];zo.getRefType(X)==="range"?(k=zo.getFromId(A,X),D=Xh.shapePositionToRange(k),P=Xh.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(x+H+"shift")):D=P=Mv.identity;let Q=x+H,ee=e[Q];if(e[Q]=D(e[Q],!0),M==="pixel"?a(Q,p[H]):zo.coercePosition(r,A,a,X,Q,h[H]),r[Q]=P(r[Q]),e[Q]=ee,H===0&&M==="pixel"){let ae=e[_];e[_]=D(e[_],!0),zo.coercePosition(r,A,a,X,_,.25),r[_]=P(r[_]),e[_]=ae}});else{if(zo.getRefType(z)==="range"?(k=zo.getFromId(A,z),k._shapeIndices.push(r._index),P=Xh.rangeToShapePosition(k),D=Xh.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):D=P=Mv.identity,u){let X=x+"0",N=x+"1",Q=e[X],ee=e[N];e[X]=D(e[X],!0),e[N]=D(e[N],!0),M==="pixel"?(a(X,p[0]),a(N,p[1])):(zo.coercePosition(r,A,a,z,X,h[0]),zo.coercePosition(r,A,a,z,N,h[1])),r[X]=P(r[X]),r[N]=P(r[N]),e[X]=Q,e[N]=ee}if(M==="pixel"){let X=e[_];e[_]=D(e[_],!0),zo.coercePosition(r,A,a,z,_,.25),r[_]=P(r[_]),e[_]=X}}}),u&&Mv.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var C=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",dve(m,C)),a("label.padding"),Mv.coerceFont(a,"label.font",t.font)}}});var JI=oe((X9e,$I)=>{"use strict";var pve=Nt(),ZI=pr();function mve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}$I.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"),ZI.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",pve.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",mve(o,u)),a("newshape.label.padding"),ZI.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var nB=oe((j9e,aB)=>{"use strict";var $9=pr(),pl=Ga(),js=(ah(),_r(th)),J9=Uf();aB.exports=function(r){var t=r._fullLayout,a=$9.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,s=pl.getRefType(i.xref),u=pl.getRefType(i.yref);if(s==="array"){let f=KI(r,i,"x");Object.entries(f).forEach(([c,d])=>{o=pl.getFromId(r,c),i._extremes[o._id]=pl.findExtremes(o,d,QI(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=pl.getFromId(r,i.xref),l=rB(o,i,js.paramIsX),l&&(i._extremes[o._id]=pl.findExtremes(o,l,QI(i))));if(u==="array"){let f=KI(r,i,"y");Object.entries(f).forEach(([c,d])=>{o=pl.getFromId(r,c),i._extremes[o._id]=pl.findExtremes(o,d,eB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=pl.getFromId(r,i.yref),l=rB(o,i,js.paramIsY),l&&(i._extremes[o._id]=pl.findExtremes(o,l,eB(i))))}};function KI(e,r,t){let a=r[t+"ref"],n=t==="x"?js.paramIsX:js.paramIsY;function i(c,d){c==="paper"||pl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(d))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(js.segmentRE)||[];for(var l=0,s=0;s<c.length;s++){let d=c[s],h=d.charAt(0),p=n[h].drawn;if(p===void 0)continue;let m=d.slice(1).match(js.paramRE);m&&m.length>p&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let d=pl.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=J9.decodeDate(f)),u[d._id]=o[c].map(f)}}return u}function QI(e){return tB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function eB(e){return tB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function tB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?J9.extractPathCoords(n,i?js.paramIsY:js.paramIsX):[t,a],u=$9.aggNums(Math.max,null,s),f=$9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,d=u>0?u+o:o;return{ppad:o,ppadplus:l?c:d,ppadminus:l?d: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,s=0,u=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"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,d=-1/0,h=r.path.match(js.segmentRE),p,m,y,b,C;for(e.type==="date"&&(u=J9.decodeDate(u)),p=0;p<h.length;p++)m=h[p],y=t[m.charAt(0)].drawn,y!==void 0&&(b=h[p].slice(1).match(js.paramRE),!(!b||b.length<y)&&(C=u(b[y]),C<c&&(c=C),C>d&&(d=C)));if(d>=c)return[c,d]}}});var lB=oe((W9e,oB)=>{"use strict";var iB=ig();oB.exports={moduleType:"component",name:"shapes",layoutAttributes:Z9(),supplyLayoutDefaults:WI(),supplyDrawNewShapeDefaults:JI(),includeBasePlot:kh()("shapes"),calcAutorange:nB(),draw:iB.draw,drawOne:iB.drawOne}});var K9=oe(($9e,uB)=>{"use strict";var sB=(Un(),_r(On)),gve=Aa().templatedArray,Z9e=(Ah(),_r(Mh));uB.exports=gve("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",sB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",sB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var cB=oe((J9e,fB)=>{"use strict";var yve=pr(),Q9=Ga(),bve=Xl(),_ve=K9(),xve="images";fB.exports=function(r,t){var a={name:xve,handleItemDefaults:wve};bve(r,t,a)};function wve(e,r,t){function a(d,h){return yve.coerce(e,r,_ve,d,h)}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"],s=0;s<2;s++){var u=l[s],f=Q9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=Q9.getFromId(o,f);c._imgIndices.push(r._index)}Q9.coercePosition(r,o,a,f,u,0)}return r}});var pB=oe((K9e,hB)=>{"use strict";var vB=qt(),Mve=da(),Av=Ga(),dB=qn(),Ave=(ec(),_r(Q0));hB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l<t.images.length;l++){var s=t.images[l];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){o=dB.ref2id(s.xref)+dB.ref2id(s.yref);var u=t._plots[o];if(!u){i.push(s);continue}u.mainplot&&(o=u.mainplot.id),n[o]||(n[o]=[]),n[o].push(s)}else s.layer==="above"?a.push(s):i.push(s)}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=vB.select(this);if(this._imgSrc!==_.source)if(M.attr("xmlns",Ave.svg),!r._context.staticPlot||_.source&&_.source.slice(0,5)==="data:")M.attr("xlink:href",_.source),this._imgSrc=_.source;else{var A=new Promise(function(k){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 Y=z.toDataURL("image/png");M.attr("xlink:href",Y),k()},M.on("error",P),D.src=_.source,this._imgSrc=_.source;function P(){M.remove(),k()}}.bind(this));r._promises.push(A)}}function d(_){var M=vB.select(this),A=Av.getFromId(r,_.xref),k=Av.getFromId(r,_.yref),D=Av.getRefType(_.xref)==="domain",P=Av.getRefType(_.yref)==="domain",z=t._size,B,Y;A!==void 0?B=typeof _.xref=="string"&&D?A._length*_.sizex:Math.abs(A.l2p(_.sizex)-A.l2p(0)):B=_.sizex*z.w,k!==void 0?Y=typeof _.yref=="string"&&P?k._length*_.sizey:Math.abs(k.l2p(_.sizey)-k.l2p(0)):Y=_.sizey*z.h;var H=B*f.x[_.xanchor].offset,X=Y*f.y[_.yanchor].offset,N=f.x[_.xanchor].sizing+f.y[_.yanchor].sizing,Q,ee;switch(A!==void 0?Q=typeof _.xref=="string"&&D?A._length*_.x+A._offset:A.r2p(_.x)+A._offset:Q=_.x*z.w+z.l,Q+=H,k!==void 0?ee=typeof _.yref=="string"&&P?k._length*(1-_.y)+k._offset:k.r2p(_.y)+k._offset:ee=z.h-_.y*z.h+z.t,ee+=X,_.sizing){case"fill":N+=" slice";break;case"stretch":N="none";break}M.attr({x:Q,y:ee,width:B,height:Y,preserveAspectRatio:N,opacity:_.opacity});var ae=A&&Av.getRefType(_.xref)!=="domain"?A._id:"",re=k&&Av.getRefType(_.yref)!=="domain"?k._id:"",ie=ae+re;Mve.setClipUrl(M,ie?"clip"+t._uid+ie:null,r)}function h(_){return[_.xref,_.x,_.sizex,_.yref,_.y,_.sizey].join("_")}function p(_,M){return _._index-M._index}var m=t._imageLowerLayer.selectAll("image").data(i,h),y=t._imageUpperLayer.selectAll("image").data(a,h);m.enter().append("image"),y.enter().append("image"),m.exit().remove(),y.exit().remove(),m.each(function(_){c.bind(this)(_),d.bind(this)(_)}),y.each(function(_){c.bind(this)(_),d.bind(this)(_)}),m.sort(p),y.sort(p);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]||[],h);x.enter().append("image"),x.exit().remove(),x.each(function(_){c.bind(this)(_),d.bind(this)(_)}),x.sort(p)}}}});var yB=oe((Q9e,gB)=>{"use strict";var mB=Jt(),Tve=qp();gB.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,s=t._id.charAt(0),u,f,c=0;c<l.length;c++)if(u=l[c],f="images["+c+"].",u[s+"ref"]===t._id){var d=u[s],h=u["size"+s],p=null,m=null;if(i){p=Tve(d,t.range);var y=h/Math.pow(10,p)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else p=Math.pow(10,d),m=p*(Math.pow(10,h/2)-Math.pow(10,-h/2));mB(p)?mB(m)||(m=null):(p=null,m=null),n(f+s,p),n(f+"size"+s,m)}}}});var _B=oe((e8e,bB)=>{"use strict";bB.exports={moduleType:"component",name:"images",layoutAttributes:K9(),supplyLayoutDefaults:cB(),includeBasePlot:kh()("images"),draw:pB(),convertCoords:yB()}});var _3={};Ua(_3,{activeColor:()=>$ve,arrowOffsetX:()=>jve,arrowPadX:()=>Uve,arrowSymbol:()=>Kve,autoMarginIdRoot:()=>Nve,blankHeaderOpts:()=>Ive,buttonClassName:()=>qve,containerClassName:()=>Cve,dropdownButtonClassName:()=>Fve,dropdownButtonGroupClassName:()=>Dve,gapButton:()=>Zve,gapButtonHeader:()=>Wve,headerArrowClassName:()=>Lve,headerClassName:()=>Eve,headerGroupClassName:()=>Sve,hoverColor:()=>Jve,itemRectClassName:()=>Pve,itemTextClassName:()=>Rve,menuIndexAttrName:()=>zve,minHeight:()=>Hve,minWidth:()=>Bve,name:()=>kve,rx:()=>Gve,ry:()=>Yve,textOffsetX:()=>Vve,textOffsetY:()=>Xve,textPadX:()=>Ove});var kve,Cve,Sve,Eve,Lve,Dve,Fve,qve,Pve,Rve,zve,Nve,Ive,Bve,Hve,Ove,Uve,Gve,Yve,Vve,Xve,jve,Wve,Zve,$ve,Jve,Kve,x3=Oa(()=>{"use strict";kve="updatemenus",Cve="updatemenu-container",Sve="updatemenu-header-group",Eve="updatemenu-header",Lve="updatemenu-header-arrow",Dve="updatemenu-dropdown-button-group",Fve="updatemenu-dropdown-button",qve="updatemenu-button",Pve="updatemenu-item-rect",Rve="updatemenu-item-text",zve="updatemenu-active-index",Nve="updatemenu-",Ive={label:" "},Bve=30,Hve=30,Ove=24,Uve=16,Gve=2,Yve=2,Vve=12,Xve=3,jve=4,Wve=5,Zve=2,$ve="#F4FAFF",Jve="#F4FAFF",Kve={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var e8=oe((r8e,wB)=>{"use strict";var Qve=Ai(),ede=Hl(),rde=Dn().extendFlat,tde=Ko().overrideAll,ade=mm(),xB=Aa().templatedArray,nde=xB("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}});wB.exports=tde(xB("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:nde,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:rde(ade({editType:"arraydraw"}),{}),font:Qve({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:ede.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var kB=oe((t8e,TB)=>{"use strict";var w3=pr(),MB=Xl(),AB=e8(),ide=(x3(),_r(_3)),ode=ide.name,lde=AB.buttons;TB.exports=function(r,t){var a={name:ode,handleItemDefaults:sde};MB(r,t,a)};function sde(e,r,t){function a(o,l){return w3.coerce(e,r,AB,o,l)}var n=MB(e,r,{name:"buttons",handleItemDefaults:ude}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),w3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),w3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function ude(e,r){function t(n,i){return w3.coerce(e,r,lde,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 EB=oe((a8e,SB)=>{"use strict";SB.exports=$a;var ts=qt(),CB=Nt(),Tv=da(),M3=pr();function $a(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})}$a.barWidth=2;$a.barLength=20;$a.barRadius=2;$a.barPad=1;$a.barColor="#808BA4";$a.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,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,d=c==="down",h=c==="left",p=c==="right",m=c==="up",y=s,b=f,C,x,_,M;!d&&!h&&!p&&!m&&(this.position.direction="down",d=!0);var A=d||m;A?(C=l,x=C+y,d?(_=u,M=Math.min(_+b,o),b=M-_):(M=u+b,_=Math.max(M-b,0),b=M-_)):(_=u,M=_+b,h?(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 k=s>y,D=$a.barLength+2*$a.barPad,P=$a.barWidth+2*$a.barPad,z=l,B=u+f;B+P>o&&(B=o-P);var Y=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-horizontal",!0).call(CB.fill,$a.barColor),k?(this.hbar=Y.attr({rx:$a.barRadius,ry:$a.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,X=$a.barWidth+2*$a.barPad,N=$a.barLength+2*$a.barPad,Q=l+s,ee=u;Q+X>i&&(Q=i-X);var ae=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);ae.exit().on(".drag",null).remove(),ae.enter().append("rect").classed("scrollbar-vertical",!0).call(CB.fill,$a.barColor),H?(this.vbar=ae.attr({rx:$a.barRadius,ry:$a.barRadius,x:Q,y:ee,width:X,height:N}),this._vbarYMin=ee+N/2,this._vbarTranslateMax=b-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var re=this.id,ie=C-.5,ue=H?x+X+.5:x+.5,xe=_-.5,Ee=k?M+P+.5:M+.5,Re=n._topdefs.selectAll("#"+re).data(k||H?[0]:[]);if(Re.exit().remove(),Re.enter().append("clipPath").attr("id",re).append("rect"),k||H?(this._clipRect=Re.select("rect").attr({x:Math.floor(ie),y:Math.floor(xe),width:Math.ceil(ue)-Math.floor(ie),height:Math.ceil(Ee)-Math.floor(xe)}),this.container.call(Tv.setClipUrl,re,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),k||H){var Ne=ts.behavior.drag().on("dragstart",function(){ts.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ne);var ke=ts.behavior.drag().on("dragstart",function(){ts.event.sourceEvent.preventDefault(),ts.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ke),H&&this.vbar.on(".drag",null).call(ke)}this.setTranslate(t,a)};$a.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.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)};$a.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ts.event.dx),this.vbar&&(t-=ts.event.dy),this.setTranslate(r,t)};$a.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ts.event.deltaY),this.vbar&&(t+=ts.event.deltaY),this.setTranslate(r,t)};$a.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=M3.constrain(ts.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=M3.constrain(ts.event.y,s,u),c=(f-s)/(u-s),d=this.position.h-this._box.h;t=c*d}this.setTranslate(r,t)};$a.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=M3.constrain(r||0,0,a),t=M3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Tv.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(Tv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Tv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var BB=oe((n8e,IB)=>{"use strict";var kv=qt(),jh=Pn(),Wh=Nt(),Cv=da(),No=pr(),A3=hi(),fde=Aa().arrayEditor,DB=(di(),_r(vi)).LINE_SPACING,gt=(x3(),_r(_3)),cde=EB();IB.exports=function(r){var t=r._fullLayout,a=No.filterVisible(t[gt.name]);function n(d){jh.autoMargin(r,zB(d))}var i=t._menulayer.selectAll("g."+gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){kv.select(this).selectAll("g."+gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+gt.headerGroupClassName).data(a,vde);o.enter().append("g").classed(gt.headerGroupClassName,!0);for(var l=No.ensureSingle(i,"g",gt.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];yde(r,u)}var f="updatemenus"+t._uid,c=new cde(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(t8)),o.exit().each(function(d){l.call(t8),n(d)}).remove(),o.each(function(d){var h=kv.select(this),p=d.type==="dropdown"?l:null;jh.manageCommandObserver(r,d,d.buttons,function(m){r8(r,d,d.buttons[m.index],h,p,c,m.index,!0)}),d.type==="dropdown"?(qB(r,h,l,c,d),FB(l,d)&&Zh(r,h,l,c,d)):Zh(r,h,null,null,d)})}};function vde(e){return e._index}function dde(e){return+e.attr(gt.menuIndexAttrName)==-1}function FB(e,r){return+e.attr(gt.menuIndexAttrName)===r._index}function r8(e,r,t,a,n,i,o,l){r.active=o,fde(e.layout,gt.name,r).applyUpdate("active",o),r.type==="buttons"?Zh(e,a,null,null,r):r.type==="dropdown"&&(n.attr(gt.menuIndexAttrName,"-1"),qB(e,a,n,i,r),l||Zh(e,a,n,i,r))}function qB(e,r,t,a,n){var i=No.ensureSingle(r,"g",gt.headerClassName,function(d){d.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||gt.blankHeaderOpts,u={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:o.headerWidth,height:o.headerHeight};i.call(a8,n,s,e).call(NB,n,u,f);var c=No.ensureSingle(r,"text",gt.headerArrowClassName,function(d){d.attr("text-anchor","end").call(Cv.font,n.font).text(gt.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-gt.arrowOffsetX+n.pad.l,y:o.headerHeight/2+gt.textOffsetY+n.pad.t}),i.on("click",function(){t.call(t8,String(FB(t,n)?-1:n._index)),Zh(e,r,t,a,n)}),i.on("mouseover",function(){i.call(PB)}),i.on("mouseout",function(){i.call(RB,n)}),Cv.setTranslate(r,o.lx,o.ly)}function Zh(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!dde(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?gt.dropdownButtonClassName:gt.buttonClassName,l=t.selectAll("g."+o).data(No.filterVisible(i)),s=l.enter().append("g").classed(o,!0),u=l.exit();n.type==="dropdown"?(s.attr("opacity","0").transition().attr("opacity","1"),u.transition().attr("opacity","0").remove()):u.remove();var f=0,c=0,d=n._dims,h=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(h?c=d.headerHeight+gt.gapButtonHeader:f=d.headerWidth+gt.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-gt.gapButtonHeader+gt.gapButton-d.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-gt.gapButtonHeader+gt.gapButton-d.openWidth);var p={x:d.lx+f+n.pad.l,y:d.ly+c+n.pad.t,yPad:gt.gapButton,xPad:gt.gapButton,index:0},m={l:p.x+n.borderwidth,t:p.y+n.borderwidth};l.each(function(y,b){var C=kv.select(this);C.call(a8,n,y,e).call(NB,n,p),C.on("click",function(){kv.event.defaultPrevented||(y.execute&&(y.args2&&n.active===b?(r8(e,n,y,r,t,a,-1),jh.executeAPICommand(e,y.method,y.args2)):(r8(e,n,y,r,t,a,b),jh.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),C.on("mouseover",function(){C.call(PB)}),C.on("mouseout",function(){C.call(RB,n),l.call(LB,n)})}),l.call(LB,n),h?(m.w=Math.max(d.openWidth,d.headerWidth),m.h=p.y-m.t):(m.w=p.x-m.l,m.h=Math.max(d.openHeight,d.headerHeight)),m.direction=n.direction,a&&(l.size()?hde(e,r,t,a,n,m):pde(a))}function hde(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",s=n._dims,u=n.active,f,c,d;if(l)for(c=0,d=0;d<u;d++)c+=s.heights[d]+gt.gapButton;else for(f=0,d=0;d<u;d++)f+=s.widths[d]+gt.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 pde(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 a8(e,r,t,a){e.call(mde,r).call(gde,r,t,a)}function mde(e,r){var t=No.ensureSingle(e,"rect",gt.itemRectClassName,function(a){a.attr({rx:gt.rx,ry:gt.ry,"shape-rendering":"crispEdges"})});t.call(Wh.stroke,r.bordercolor).call(Wh.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function gde(e,r,t,a){var n=No.ensureSingle(e,"text",gt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=No.templateString(i,o)),n.call(Cv.font,r.font).text(i).call(A3.convertToTspans,a)}function LB(e,r){var t=r.active;e.each(function(a,n){var i=kv.select(this);n===t&&r.showactive&&i.select("rect."+gt.itemRectClassName).call(Wh.fill,gt.activeColor)})}function PB(e){e.select("rect."+gt.itemRectClassName).call(Wh.fill,gt.hoverColor)}function RB(e,r){e.select("rect."+gt.itemRectClassName).call(Wh.fill,r.bgcolor)}function yde(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=Cv.tester.selectAll("g."+gt.dropdownButtonClassName).data(No.filterVisible(r.buttons));a.enter().append("g").classed(gt.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var d=kv.select(this);d.call(a8,r,f,e);var h=d.select("."+gt.itemTextClassName),p=h.node()&&Cv.bBox(h.node()).width,m=Math.max(p+gt.textPadX,gt.minWidth),y=r.font.size*DB,b=A3.lineCount(h),C=Math.max(y*b,gt.minHeight)+gt.textOffsetY;C=Math.ceil(C),m=Math.ceil(m),t.widths[c]=m,t.heights[c]=C,t.height1=Math.max(t.height1,C),t.width1=Math.max(t.width1,m),n?(t.totalWidth=Math.max(t.totalWidth,m),t.openWidth=t.totalWidth,t.totalHeight+=C+gt.gapButton,t.openHeight+=C+gt.gapButton):(t.totalWidth+=m+gt.gapButton,t.openWidth+=m+gt.gapButton,t.totalHeight=Math.max(t.totalHeight,C),t.openHeight=t.totalHeight)}),n?t.totalHeight-=gt.gapButton:t.totalWidth-=gt.gapButton,t.headerWidth=t.width1+gt.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=gt.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=gt.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 s="left";No.isRightAnchor(r)&&(t.lx-=i,s="right"),No.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";No.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),No.isMiddleAnchor(r)&&(t.ly-=o/2,u="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),jh.autoMargin(e,zB(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:o*({top:1,middle:.5}[u]||0),t:o*({bottom:1,middle:.5}[u]||0)})}function zB(e){return gt.autoMarginIdRoot+e._index}function NB(e,r,t,a){a=a||{};var n=e.select("."+gt.itemRectClassName),i=e.select("."+gt.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;Cv.setTranslate(e,o+t.x,o+t.y);var u=["up","down"].indexOf(r.direction)!==-1,f=a.height||(u?s.heights[l]:s.height1);n.attr({x:0,y:0,width:a.width||(u?s.width1:s.widths[l]),height:f});var c=r.font.size*DB,d=A3.lineCount(i),h=(d-1)*c/2;A3.positionText(i,gt.textOffsetX,f/2-h+gt.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function t8(e,r){e.attr(gt.menuIndexAttrName,r||"-1").selectAll("g."+gt.dropdownButtonClassName).remove()}});var OB=oe((i8e,HB)=>{"use strict";var bde=(x3(),_r(_3));HB.exports={moduleType:"component",name:bde.name,layoutAttributes:e8(),supplyLayoutDefaults:kB(),draw:BB()}});var $h={};Ua($h,{arrowOffsetX:()=>Bde,autoMarginIdRoot:()=>Rde,containerClassName:()=>xde,currentValueClass:()=>Fde,currentValueInset:()=>vhe,currentValuePadding:()=>che,gripBgActiveColor:()=>rhe,gripBgColor:()=>ehe,gripBorder:()=>Jde,gripBorderColor:()=>Qde,gripBorderWidth:()=>Kde,gripHeight:()=>$de,gripRadius:()=>Wde,gripRectClass:()=>kde,gripWidth:()=>Zde,groupClassName:()=>wde,inputAreaClass:()=>Mde,inputProxyClass:()=>Sde,labelClass:()=>Dde,labelGroupClass:()=>Lde,labelOffset:()=>ahe,labelPadding:()=>the,labelsClass:()=>Ede,menuIndexAttrName:()=>Pde,minHeight:()=>Nde,minWidth:()=>zde,minorTickColor:()=>uhe,minorTickLength:()=>fhe,minorTickOffset:()=>she,name:()=>_de,railBgColor:()=>Vde,railBorder:()=>Ude,railBorderColor:()=>Yde,railBorderWidth:()=>Gde,railHeight:()=>qde,railInset:()=>Xde,railRadius:()=>Hde,railRectClass:()=>Ade,railTouchRectClass:()=>Tde,railWidth:()=>Ode,stepInset:()=>jde,textPadX:()=>Ide,tickColor:()=>ihe,tickLength:()=>lhe,tickOffset:()=>ohe,tickRectClass:()=>Cde,tickWidth:()=>nhe});var _de,xde,wde,Mde,Ade,Tde,kde,Cde,Sde,Ede,Lde,Dde,Fde,qde,Pde,Rde,zde,Nde,Ide,Bde,Hde,Ode,Ude,Gde,Yde,Vde,Xde,jde,Wde,Zde,$de,Jde,Kde,Qde,ehe,rhe,the,ahe,nhe,ihe,ohe,lhe,she,uhe,fhe,che,vhe,Jh=Oa(()=>{"use strict";_de="sliders",xde="slider-container",wde="slider-group",Mde="slider-input-area",Ade="slider-rail-rect",Tde="slider-rail-touch-rect",kde="slider-grip-rect",Cde="slider-tick-rect",Sde="slider-input-proxy",Ede="slider-labels",Lde="slider-label-group",Dde="slider-label",Fde="slider-current-value",qde=5,Pde="slider-active-index",Rde="slider-",zde=30,Nde=30,Ide=40,Bde=4,Hde=2,Ode=5,Ude=4,Gde=1,Yde="#bec8d9",Vde="#f8fafc",Xde=8,jde=10,Wde=10,Zde=20,$de=20,Jde=20,Kde=1,Qde="#bec8d9",ehe="#f6f8fa",rhe="#dbdde0",the=8,ahe=0,nhe=1,ihe="#333",ohe=25,lhe=7,she=25,uhe="#333",fhe=4,che=8,vhe=0});var n8=oe((o8e,YB)=>{"use strict";var UB=Ai(),dhe=mm(),hhe=Dn().extendDeepAll,phe=Ko().overrideAll,mhe=Td(),GB=Aa().templatedArray,Dc=(Jh(),_r($h)),ghe=GB("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}});YB.exports=phe(GB("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ghe,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:hhe(dhe({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:mhe.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:UB({})},font:UB({}),activebgcolor:{valType:"color",dflt:Dc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Dc.railBgColor},bordercolor:{valType:"color",dflt:Dc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Dc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Dc.tickLength},tickcolor:{valType:"color",dflt:Dc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Dc.minorTickLength}}),"arraydraw","from-root")});var WB=oe((l8e,jB)=>{"use strict";var Sv=pr(),VB=Xl(),XB=n8(),yhe=(Jh(),_r($h)),bhe=yhe.name,_he=XB.steps;jB.exports=function(r,t){VB(r,t,{name:bhe,handleItemDefaults:xhe})};function xhe(e,r,t){function a(c,d){return Sv.coerce(e,r,XB,c,d)}for(var n=VB(e,r,{name:"steps",handleItemDefaults:whe}),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 s=r._visibleSteps=Sv.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),Sv.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"),Sv.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),Sv.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 whe(e,r){function t(i,o){return Sv.coerce(e,r,_he,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 nH=oe((s8e,aH)=>{"use strict";var as=qt(),T3=Pn(),Zf=Nt(),ns=da(),Io=pr(),Mhe=Io.strTranslate,Kh=hi(),Ahe=Aa().arrayEditor,Lt=(Jh(),_r($h)),l8=(di(),_r(vi)),JB=l8.LINE_SPACING,i8=l8.FROM_TL,o8=l8.FROM_BR;aH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=The(a,r),i=a._infolayer.selectAll("g."+Lt.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Lt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),T3.autoMargin(r,KB(f))}if(i.exit().each(function(){as.select(this).selectAll("g."+Lt.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Lt.groupClassName).data(n,khe);l.enter().append("g").classed(Lt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];Che(r,u)}l.each(function(f){var c=as.select(this);Fhe(f),T3.manageCommandObserver(r,f,f._visibleSteps,function(d){var h=c.data()[0];h.active!==d.index&&(h._dragging||eH(r,c,h,d.index,!1,!0))}),She(r,as.select(this),f)})}};function KB(e){return Lt.autoMarginIdRoot+e._index}function The(e,r){for(var t=e[Lt.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function khe(e){return e._index}function Che(e,r){var t=ns.tester.selectAll("g."+Lt.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Lt.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var m=as.select(this),y=QB(m,{step:p},r),b=y.node();if(b){var C=ns.bBox(b);n=Math.max(n,C.height),a=Math.max(a,C.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Lt.railWidth,Lt.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*Lt.stepInset,s=l/(r._stepCount-1),u=a+Lt.labelPadding;if(i.labelStride=Math.max(1,Math.ceil(u/s)),i.labelHeight=n,i.currentValueMaxWidth=0,i.currentValueHeight=0,i.currentValueTotalHeight=0,i.currentValueMaxLines=1,r.currentvalue.visible){var f=ns.tester.append("g");t.each(function(p){var m=k3(f,r,p.label),y=m.node()&&ns.bBox(m.node())||{width:0,height:0},b=Kh.lineCount(m);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+Lt.tickOffset+r.ticklen+Lt.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Io.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Io.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var d="top";Io.isBottomAnchor(r)&&(i.ly-=i.height,d="bottom"),Io.isMiddleAnchor(r)&&(i.ly-=i.height/2,d="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 h={y:r.y,b:i.height*o8[d],t:i.height*i8[d]};r.lenmode==="fraction"?(h.l=0,h.xl=r.x-r.len*i8[c],h.r=0,h.xr=r.x+r.len*o8[c]):(h.x=r.x,h.l=i.outerLength*i8[c],h.r=i.outerLength*o8[c]),T3.autoMargin(e,KB(r),h)}function She(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(k3,t).call(Phe,t).call(Lhe,t).call(Dhe,t).call(qhe,e,t).call(Ehe,e,t);var a=t._dims;ns.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(tH,t,!1),r.call(k3,t)}function k3(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Lt.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Lt.currentValueInset,i="left"}var o=Io.ensureSingle(e,"text",Lt.labelClass,function(d){d.attr({"text-anchor":i,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var s=r.steps[r.active].label,u=r._gd._fullLayout._meta;u&&(s=Io.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(ns.font,r.currentvalue.font).text(l).call(Kh.convertToTspans,r._gd);var f=Kh.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*JB;return Kh.positionText(o,n,c),o}}function Ehe(e,r,t){var a=Io.ensureSingle(e,"rect",Lt.gripRectClass,function(n){n.call(rH,r,e,t).style("pointer-events","all")});a.attr({width:Lt.gripWidth,height:Lt.gripHeight,rx:Lt.gripRadius,ry:Lt.gripRadius}).call(Zf.stroke,t.bordercolor).call(Zf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function QB(e,r,t){var a=Io.ensureSingle(e,"text",Lt.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Io.templateString(n,i)),a.call(ns.font,t.font).text(n).call(Kh.convertToTspans,t._gd),a}function Lhe(e,r){var t=Io.ensureSingle(e,"g",Lt.labelsClass),a=r._dims,n=t.selectAll("g."+Lt.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Lt.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=as.select(this);o.call(QB,i,r),ns.setTranslate(o,s8(r,i.fraction),Lt.tickOffset+r.ticklen+r.font.size*JB+Lt.labelOffset+a.currentValueTotalHeight)})}function ZB(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&eH(e,r,t,o,!0,n)}function eH(e,r,t,a,n,i){var o=t.active;t.active=a,Ahe(e.layout,Lt.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(tH,t,i),r.call(k3,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 s=r._nextMethod.step;s.method&&(s.execute&&T3.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function rH(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=as.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+Lt.gripRectClass);as.event.stopPropagation(),as.event.preventDefault(),s.call(Zf.fill,l.activebgcolor);var u=$B(l,as.mouse(a)[0]);ZB(r,t,l,u,!0),l._dragging=!0;function f(){var d=i(),h=$B(d,as.mouse(a)[0]);ZB(r,t,d,h,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var d=i();d._dragging=!1,s.call(Zf.fill,d.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:d,step:d.steps[d.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",o),e.on("touchstart",o)}function Dhe(e,r){var t=e.selectAll("rect."+Lt.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Lt.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=as.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(Zf.fill,r.tickcolor),ns.setTranslate(l,s8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Lt.tickOffset:Lt.minorTickOffset)+a.currentValueTotalHeight)})}function Fhe(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 tH(e,r,t){for(var a=e.select("rect."+Lt.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=s8(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",Mhe(o-Lt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function s8(e,r){var t=e._dims;return t.inputAreaStart+Lt.stepInset+(t.inputAreaLength-2*Lt.stepInset)*Math.min(1,Math.max(0,r))}function $B(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Lt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Lt.stepInset-2*t.inputAreaStart)))}function qhe(e,r,t){var a=t._dims,n=Io.ensureSingle(e,"rect",Lt.railTouchRectClass,function(i){i.call(rH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Lt.tickOffset+t.ticklen+a.labelHeight)}).call(Zf.fill,t.bgcolor).attr("opacity",0),ns.setTranslate(n,0,a.currentValueTotalHeight)}function Phe(e,r){var t=r._dims,a=t.inputAreaLength-Lt.railInset*2,n=Io.ensureSingle(e,"rect",Lt.railRectClass);n.attr({width:a,height:Lt.railWidth,rx:Lt.railRadius,ry:Lt.railRadius,"shape-rendering":"crispEdges"}).call(Zf.stroke,r.bordercolor).call(Zf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),ns.setTranslate(n,Lt.railInset,(t.inputAreaWidth-Lt.railWidth)*.5+t.currentValueTotalHeight)}});var oH=oe((u8e,iH)=>{"use strict";var Rhe=(Jh(),_r($h));iH.exports={moduleType:"component",name:Rhe.name,layoutAttributes:n8(),supplyLayoutDefaults:WB(),draw:nH()}});var C3=oe((f8e,sH)=>{"use strict";var lH=Hl();sH.exports={bgcolor:{valType:"color",dflt:lH.background,editType:"plot"},bordercolor:{valType:"color",dflt:lH.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 u8=oe((c8e,uH)=>{"use strict";uH.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 S3={};Ua(S3,{bgClassName:()=>Ihe,containerClassName:()=>Nhe,extraPad:()=>lpe,grabAreaCursor:()=>tpe,grabAreaFill:()=>rpe,grabAreaMaxClassName:()=>jhe,grabAreaMinClassName:()=>Yhe,grabAreaWidth:()=>ape,grabberMaxClassName:()=>Xhe,grabberMinClassName:()=>Ghe,handleMaxClassName:()=>Whe,handleMinClassName:()=>Vhe,handleRadius:()=>ipe,handleStrokeWidth:()=>ope,handleWidth:()=>npe,maskColor:()=>Jhe,maskMaxClassName:()=>Ohe,maskMaxOppAxisClassName:()=>$he,maskMinClassName:()=>Hhe,maskMinOppAxisClassName:()=>Zhe,maskOppAxisColor:()=>Khe,name:()=>zhe,rangePlotClassName:()=>Bhe,slideBoxClassName:()=>Uhe,slideBoxCursor:()=>epe,slideBoxFill:()=>Qhe});var zhe,Nhe,Ihe,Bhe,Hhe,Ohe,Uhe,Ghe,Yhe,Vhe,Xhe,jhe,Whe,Zhe,$he,Jhe,Khe,Qhe,epe,rpe,tpe,ape,npe,ipe,ope,lpe,E3=Oa(()=>{"use strict";zhe="rangeslider",Nhe="rangeslider-container",Ihe="rangeslider-bg",Bhe="rangeslider-rangeplot",Hhe="rangeslider-mask-min",Ohe="rangeslider-mask-max",Uhe="rangeslider-slidebox",Ghe="rangeslider-grabber-min",Yhe="rangeslider-grabarea-min",Vhe="rangeslider-handle-min",Xhe="rangeslider-grabber-max",jhe="rangeslider-grabarea-max",Whe="rangeslider-handle-max",Zhe="rangeslider-mask-min-opp-axis",$he="rangeslider-mask-max-opp-axis",Jhe="rgba(0,0,0,0.4)",Khe="rgba(0,0,0,0.2)",Qhe="transparent",epe="ew-resize",rpe="transparent",tpe="col-resize",ape=10,npe=4,ipe=1,ope=1,lpe=15});var vH=oe(D3=>{"use strict";var spe=qn(),upe=hi(),fH=(E3(),_r(S3)),fpe=(di(),_r(vi)).LINE_SPACING,L3=fH.name;function cH(e){var r=e&&e[L3];return r&&r.visible}D3.isVisible=cH;D3.makeData=function(e){for(var r=spe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(cH(i)){a.push(i);var o=i[L3];o._id=L3+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[L3],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(upe.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*fpe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:fH.extraPad+a._offsetShift*2}}});var mH=oe((d8e,pH)=>{"use strict";var F3=pr(),dH=Aa(),hH=qn(),cpe=C3(),vpe=u8();pH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;F3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=dH.newContainer(i,"rangeslider");function s(M,A){return F3.coerce(o,l,cpe,M,A)}var u,f;function c(M,A){return F3.coerce(u,f,vpe,M,A)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===hH.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),m=F3.simpleMap(p,hH.id2name),y=0;y<m.length;y++){var b=m[y];u=o[b]||{},f=dH.newContainer(l,b,"yaxis");var C=t[b],x;u.range&&C.isValidRange(u.range)&&(x="fixed");var _=c("rangemode",x);_!=="match"&&c("range",C.range.slice())}l._input=o}}});var yH=oe((h8e,gH)=>{"use strict";var dpe=qn().list,hpe=Rf().getAutoRange,ppe=(E3(),_r(S3));gH.exports=function(r){for(var t=dpe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[ppe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=hpe(r,n))}}});var wH=oe((p8e,xH)=>{"use strict";var q3=qt(),mpe=xt(),gpe=Pn(),fn=pr(),P3=fn.strTranslate,_H=da(),$f=Nt(),ype=Od(),bpe=z9(),f8=qn(),_pe=al(),xpe=Nf(),Bt=(E3(),_r(S3));xH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Bt.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+Bt.containerClassName).data(t,i);o.exit().each(function(l){var s=l[Bt.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(Bt.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=q3.select(this),u=l[Bt.name],f=r[f8.id2name(l.anchor)],c=u[f8.id2name(l.anchor)];if(u.range){var d=fn.simpleMap(u.range,l.r2l),h=fn.simpleMap(l.range,l.r2l),p;h[0]<h[1]?p=[Math.min(d[0],h[0]),Math.max(d[1],h[1])]:p=[Math.max(d[0],h[0]),Math.min(d[1],h[1])],u.range=u._input.range=fn.simpleMap(p,l.l2r)}l.cleanRange("rangeslider.range");var m=r._size;u._width=l._length;let y=Math.round(l._offset);var b=Math.round(m.t+m.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+Bt.extraPad);s.attr("transform",P3(y,b)),u._rl=fn.simpleMap(u.range,l.r2l);var C=u._rl[0],x=u._rl[1],_=x-C;if(u.p2d=function(X){return X/u._width*_+C},u.d2p=function(X){return(X-C)/_*u._width},l.rangebreaks){var M=l.locateBreaks(C,x);if(M.length){var A,k,D=0;for(A=0;A<M.length;A++)k=M[A],D+=k.max-k.min;var P=u._width/(x-C-D),z=[-P*C];for(A=0;A<M.length;A++)k=M[A],z.push(z[z.length-1]-P*(k.max-k.min));for(u.d2p=function(X){for(var N=z[0],Q=0;Q<M.length;Q++){var ee=M[Q];if(X>=ee.max)N=z[Q+1];else if(X<ee.min)break}return N+P*X},A=0;A<M.length;A++)k=M[A],k.pmin=u.d2p(k.min),k.pmax=u.d2p(k.max);u.p2d=function(X){for(var N=z[0],Q=0;Q<M.length;Q++){var ee=M[Q];if(X>=ee.pmax)N=z[Q+1];else if(X<ee.pmin)break}return(X-N)/P}}}if(c.rangemode!=="match"){var B=f.r2l(c.range[0]),Y=f.r2l(c.range[1]),H=Y-B;u.d2pOppAxis=function(X){return(X-B)/H*u._height}}s.call(Tpe,e,l,u).call(kpe,e,l,u).call(Cpe,e,l,u).call(Epe,e,l,u,c).call(Lpe,e,l,u).call(Dpe,e,l,u),wpe(s,e,l,u),Ape(s,e,l,u,f,c),l.side==="bottom"&&ype.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:b+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function bH(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function wpe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Bt.slideBoxClassName).node(),i=e.select("rect."+Bt.grabAreaMinClassName).node(),o=e.select("rect."+Bt.grabAreaMaxClassName).node();function l(){var s=q3.event,u=s.target,f=bH(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=_pe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var C=bH(b),x=+C-f,_,M,A;switch(u){case n:if(A="ew-resize",d+x>t._length||h+x<0)return;_=d+x,M=h+x;break;case i:if(A="col-resize",d+x>t._length)return;_=d+x,M=h;break;case o:if(A="col-resize",h+x<0)return;_=d,M=h+x;break;default:A="ew-resize",_=c,M=c+x;break}if(M<_){var k=M;M=_,_=k}a._pixelMin=_,a._pixelMax=M,xpe(q3.select(p),A),Mpe(e,r,t,a)}function y(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",y),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",y),fn.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function Mpe(e,r,t,a){function n(l){return t.l2r(fn.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){mpe.call("_guiRelayout",r,t._name+".range",[i,o])})}function Ape(e,r,t,a,n,i){var o=Bt.handleWidth/2;function l(b){return fn.constrain(b,0,a._width)}function s(b){return fn.constrain(b,0,a._height)}function u(b){return fn.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."+Bt.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Bt.maskMinClassName).attr("width",f),e.select("rect."+Bt.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var d=a._height-s(a.d2pOppAxis(n._rl[1])),h=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Bt.maskMinOppAxisClassName).attr("x",f).attr("height",d).attr("width",c-f),e.select("rect."+Bt.maskMaxOppAxisClassName).attr("x",f).attr("y",h).attr("height",a._height-h).attr("width",c-f),e.select("rect."+Bt.slideBoxClassName).attr("y",d).attr("height",h-d)}var p=.5,m=Math.round(u(f-o))-p,y=Math.round(u(c-o))+p;e.select("g."+Bt.grabberMinClassName).attr("transform",P3(m,p)),e.select("g."+Bt.grabberMaxClassName).attr("transform",P3(y,p))}function Tpe(e,r,t,a){var n=fn.ensureSingle(e,"rect",Bt.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=_H.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:P3(o,o),"stroke-width":l}).call($f.stroke,a.bordercolor).call($f.fill,a.bgcolor)}function kpe(e,r,t,a){var n=r._fullLayout,i=fn.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 Cpe(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Bt.rangePlotClassName).data(t._subplotsWith,fn.identity);i.enter().append("g").attr("class",function(l){return Bt.rangePlotClassName+" "+l}).call(_H.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=q3.select(this),f=s===0,c=f8.getFromId(r,l,"y"),d=c._name,h=a[d],p={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&&(p.layout.xaxis.rangebreaks=t.rangebreaks),p.layout[d]={type:c.type,domain:[0,1],range:h.rangemode!=="match"?h.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[d].rangebreaks=c.rangebreaks),gpe.supplyDefaults(p);var m=p._fullLayout.xaxis,y=p._fullLayout[d];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:m,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),bpe.rangePlot(r,b,Spe(n,l))})}function Spe(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 Epe(e,r,t,a,n){var i=fn.ensureSingle(e,"rect",Bt.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call($f.fill,Bt.maskColor);var o=fn.ensureSingle(e,"rect",Bt.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call($f.fill,Bt.maskColor),n.rangemode!=="match"){var l=fn.ensureSingle(e,"rect",Bt.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call($f.fill,Bt.maskOppAxisColor);var s=fn.ensureSingle(e,"rect",Bt.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",Bt.maskOppBorder).call($f.fill,Bt.maskOppAxisColor)}}function Lpe(e,r,t,a){if(!r._context.staticPlot){var n=fn.ensureSingle(e,"rect",Bt.slideBoxClassName,function(i){i.attr({y:0,cursor:Bt.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Bt.slideBoxFill})}}function Dpe(e,r,t,a){var n=fn.ensureSingle(e,"g",Bt.grabberMinClassName),i=fn.ensureSingle(e,"g",Bt.grabberMaxClassName),o={x:0,width:Bt.handleWidth,rx:Bt.handleRadius,fill:$f.background,stroke:$f.defaultLine,"stroke-width":Bt.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=fn.ensureSingle(n,"rect",Bt.handleMinClassName,function(h){h.attr(o)});s.attr(l);var u=fn.ensureSingle(i,"rect",Bt.handleMaxClassName,function(h){h.attr(o)});u.attr(l);var f={width:Bt.grabAreaWidth,x:0,y:0,fill:Bt.grabAreaFill,cursor:r._context.staticPlot?void 0:Bt.grabAreaCursor},c=fn.ensureSingle(n,"rect",Bt.grabAreaMinClassName,function(h){h.attr(f)});c.attr("height",a._height);var d=fn.ensureSingle(i,"rect",Bt.grabAreaMaxClassName,function(h){h.attr(f)});d.attr("height",a._height)}});var AH=oe((m8e,MH)=>{"use strict";var Fpe=pr(),qpe=C3(),Ppe=u8(),c8=vH();MH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Fpe.extendFlat({},qpe,{yaxis:Ppe})}}},layoutAttributes:C3(),handleDefaults:mH(),calcAutorange:yH(),draw:wH(),isVisible:c8.isVisible,makeData:c8.makeData,autoMarginOpts:c8.autoMarginOpts}});var R3=oe((g8e,kH)=>{"use strict";var Rpe=Ai(),TH=Hl(),zpe=Aa().templatedArray,Npe=zpe("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"});kH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Npe,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:Rpe({editType:"plot"}),bgcolor:{valType:"color",dflt:TH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:TH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var v8={};Ua(v8,{darkAmount:()=>Gpe,lightAmount:()=>Upe,minButtonWidth:()=>Bpe,rx:()=>Hpe,ry:()=>Ope,yPad:()=>Ipe});var Ipe,Bpe,Hpe,Ope,Upe,Gpe,d8=Oa(()=>{"use strict";Ipe=.02,Bpe=30,Hpe=3,Ope=3,Upe=25,Gpe=10});var EH=oe((y8e,SH)=>{"use strict";var z3=pr(),Ype=Nt(),Vpe=Aa(),Xpe=Xl(),CH=R3(),h8=(d8(),_r(v8));SH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Vpe.newContainer(t,"rangeselector");function s(h,p){return z3.coerce(o,l,CH,h,p)}var u=Xpe(o,l,{name:"buttons",handleItemDefaults:jpe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Wpe(t,a,n);s("x",c[0]),s("y",c[1]),z3.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),z3.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",Ype.contrast(d,h8.lightAmount,h8.darkAmount)),s("bordercolor"),s("borderwidth")}};function jpe(e,r,t,a){var n=a.calendar;function i(s,u){return z3.coerce(e,r,CH.buttons,s,u)}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 Wpe(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+h8.yPad]}});var DH=oe((b8e,LH)=>{"use strict";var Zpe=Ey(),$pe=pr().titleCase;LH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Jpe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Jpe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Zpe["utc"+$pe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var BH=oe((_8e,IH)=>{"use strict";var I3=qt(),Kpe=xt(),Qpe=Pn(),FH=Nt(),NH=da(),Vu=pr(),qH=Vu.strTranslate,N3=hi(),eme=qn(),g8=(di(),_r(vi)),PH=g8.LINE_SPACING,RH=g8.FROM_TL,zH=g8.FROM_BR,m8=(d8(),_r(v8)),rme=DH();IH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(tme(r),ame);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=I3.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Vu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=I3.select(this),c=rme(o,u);u._isActive=nme(o,u,c),f.call(p8,l,u),f.call(ome,l,u,r),f.on("click",function(){r._dragged||Kpe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(p8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(p8,l,u)})}),sme(r,s,l,o._name,i)})};function tme(e){for(var r=eme.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 ame(e){return e._id}function nme(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 p8(e,r,t){var a=Vu.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:m8.rx,ry:m8.ry}),a.call(FH.stroke,r.bordercolor).call(FH.fill,ime(r,t)).style("stroke-width",r.borderwidth+"px")}function ime(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function ome(e,r,t,a){function n(o){N3.convertToTspans(o,a)}var i=Vu.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(NH.font,r.font).text(lme(t,a._fullLayout._meta)).call(n)}function lme(e,r){return e.label?r?Vu.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function sme(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var h=I3.select(this),p=h.select(".selector-text"),m=t.font.size*PH,y=Math.max(m*N3.lineCount(p),16)+3;o=Math.max(o,y)}),r.each(function(){var h=I3.select(this),p=h.select(".selector-rect"),m=h.select(".selector-text"),y=m.node()&&NH.bBox(m.node()).width,b=t.font.size*PH,C=N3.lineCount(m),x=Math.max(y+10,m8.minButtonWidth);h.attr("transform",qH(l+i,l)),p.attr({x:0,y:0,width:x,height:o}),N3.positionText(m,x/2,o/2-(C-1)*b/2+3),i+=x+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";Vu.isRightAnchor(t)&&(u-=i,c="right"),Vu.isCenterAnchor(t)&&(u-=i/2,c="center");var d="top";Vu.isBottomAnchor(t)&&(f-=o,d="bottom"),Vu.isMiddleAnchor(t)&&(f-=o/2,d="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),Qpe.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*RH[c],r:i*zH[c],b:o*zH[d],t:o*RH[d]}),n.attr("transform",qH(u,f))}});var OH=oe((x8e,HH)=>{"use strict";HH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:R3()}}},layoutAttributes:R3(),handleDefaults:EH(),draw:BH()}});var B3=oe(y8=>{"use strict";var UH=Dn().extendFlat;y8.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:UH({},t,{}),y:UH({},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};y8.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 s=t("domain.row");s!==void 0&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var u=t("domain.x",n),f=t("domain.y",i);u[0]<u[1]||(e.domain.x=n.slice()),f[0]<f[1]||(e.domain.y=i.slice())}});var jH=oe((M8e,XH)=>{"use strict";var ume=pr(),fme=(C1(),_r(Md)).counter,cme=B3().attributes,GH=(Un(),_r(On)).idRegex,vme=Aa(),b8={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:[fme("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GH.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:cme({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 H3(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 dme(e,r){var t=e.grid||{},a=H3(r,t,"x"),n=H3(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),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=vme.newContainer(r,"grid");function d(A,k){return ume.coerce(t,c,b8,A,k)}var h=d("rows",u),p=d("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=d("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=d("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,M;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:YH("x",d,C,_,p),y:YH("y",d,x,M,h,b)}}function YH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),d=0;d<n;d++){var h=u+f*d;s[i?n-1-d:d]=[h,h+c]}return s}function hme(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,s=t.pattern==="independent",u,f,c,d,h,p,m,y=t._axisMap={};if(i){var b=a.subplots||[];p=t.subplots=new Array(o);var C=1;for(u=0;u<o;u++){var x=p[u]=new Array(l),_=b[u]||[];for(f=0;f<l;f++)if(s?(h=C===1?"xy":"x"+C+"y"+C,C++):h=_[f],x[f]="",n.cartesian.indexOf(h)!==-1){if(m=h.indexOf("y"),c=h.slice(0,m),d=h.slice(m),y[c]!==void 0&&y[c]!==f||y[d]!==void 0&&y[d]!==u)continue;x[f]=h,y[c]=f,y[d]=u}}}else{var M=H3(r,a,"x"),A=H3(r,a,"y");t.xaxes=VH(M,n.xaxis,l,y,"x"),t.yaxes=VH(A,n.yaxis,o,y,"y")}var k=t._anchors={},D=t.roworder==="top to bottom";for(var P in y){var z=P.charAt(0),B=t[z+"side"],Y,H,X;if(B.length<8)k[P]="free";else if(z==="x"){if(B.charAt(0)==="t"===D?(Y=0,H=1,X=o):(Y=o-1,H=-1,X=-1),i){var N=y[P];for(u=Y;u!==X;u+=H)if(h=p[u][N],!!h&&(m=h.indexOf("y"),h.slice(0,m)===P)){k[P]=h.slice(m);break}}else for(u=Y;u!==X;u+=H)if(d=t.yaxes[u],n.cartesian.indexOf(P+d)!==-1){k[P]=d;break}}else if(B.charAt(0)==="l"?(Y=0,H=1,X=l):(Y=l-1,H=-1,X=-1),i){var Q=y[P];for(u=Y;u!==X;u+=H)if(h=p[Q][u],!!h&&(m=h.indexOf("y"),h.slice(m)===P)){k[P]=h.slice(0,m);break}}else for(u=Y;u!==X;u+=H)if(c=t.xaxes[u],n.cartesian.indexOf(c+P)!==-1){k[P]=c;break}}}}function VH(e,r,t,a,n){var i=new Array(t),o;function l(s,u){r.indexOf(u)!==-1&&a[u]===void 0?(i[s]=u,a[u]=s):i[s]=""}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}XH.exports={moduleType:"component",name:"grid",schema:{layout:{grid:b8}},layoutAttributes:b8,sizeDefaults:dme,contentDefaults:hme}});var _8=oe((A8e,WH)=>{"use strict";WH.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 JH=oe((T8e,$H)=>{"use strict";var ZH=Jt(),pme=xt(),mme=pr(),gme=Aa(),yme=_8();$H.exports=function(e,r,t,a){var n="error_"+a.axis,i=gme.newContainer(r,n),o=e[n]||{};function l(p,m){return mme.coerce(o,i,yme,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!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 d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&l(d,!(o.color||ZH(o.thickness)||ZH(o.width)))}(!a.inherit||!i[d])&&(l("color",t),l("thickness"),l("width",pme.traceIs(r,"gl3d")?0:4))}}});var x8=oe((k8e,QH)=>{"use strict";QH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],d=+i[f];return!isNaN(c)||!isNaN(d)?[d||0,c||0]:[NaN,NaN]}}else{var o=KH(t,r.value),l=KH(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function KH(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 tO=oe((C8e,rO)=>{"use strict";var w8=Jt(),bme=xt(),M8=Ga(),_me=pr(),xme=x8();rO.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&&bme.traceIs(i,"errorBarsOK")){var o=M8.getFromId(r,i.xaxis),l=M8.getFromId(r,i.yaxis);eO(n,i,o,"x"),eO(n,i,l,"y")}}};function eO(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=xme(n),s=0;s<e.length;s++){var u=e[s],f=u.i;if(f===void 0)f=s;else if(f===null)continue;var c=u[a];if(w8(t.c2l(c))){var d=l(c,f);if(w8(d[0])&&w8(d[1])){var h=u[a+"s"]=c-d[0],p=u[a+"h"]=c+d[1];o.push(h,p)}}}var m=t._id,y=r._extremes[m],b=M8.findExtremes(t,o,_me.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(b.min),y.max=y.max.concat(b.max)}}});var iO=oe((S8e,nO)=>{"use strict";var aO=qt(),Jf=Jt(),wme=da(),Mme=Si();nO.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(C){return C.id});var m=Mme.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var y=aO.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){d.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),wme.setClipUrl(y,a.layerClipId,r),y.each(function(C){var x=aO.select(this),_=Ame(C,o,l);if(!(m&&!C.vis)){var M,A=x.select("path.yerror");if(h.visible&&Jf(_.x)&&Jf(_.yh)&&Jf(_.ys)){var k=h.width;M="M"+(_.x-k)+","+_.yh+"h"+2*k+"m-"+k+",0V"+_.ys,_.noYS||(M+="m-"+k+",0h"+2*k),i=!A.size(),i?A=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(A=A.transition().duration(n.duration).ease(n.easing)),A.attr("d",M)}else A.remove();var D=x.select("path.xerror");if(d.visible&&Jf(_.y)&&Jf(_.xh)&&Jf(_.xs)){var P=(d.copy_ystyle?h:d).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",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(D=D.transition().duration(n.duration).ease(n.easing)),D.attr("d",M)}else D.remove()}})}})};function Ame(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),Jf(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),Jf(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var sO=oe((E8e,lO)=>{"use strict";var Tme=qt(),oO=Nt();lO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Tme.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(oO.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(oO.stroke,i.color)})}});var cO=oe((L8e,fO)=>{"use strict";var Qh=pr(),uO=Ko().overrideAll,ep=_8(),Fc={error_x:Qh.extendFlat({},ep),error_y:Qh.extendFlat({},ep)};delete Fc.error_x.copy_zstyle;delete Fc.error_y.copy_zstyle;delete Fc.error_y.copy_ystyle;var rp={error_x:Qh.extendFlat({},ep),error_y:Qh.extendFlat({},ep),error_z:Qh.extendFlat({},ep)};delete rp.error_x.copy_ystyle;delete rp.error_y.copy_ystyle;delete rp.error_z.copy_ystyle;delete rp.error_z.copy_zstyle;fO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Fc,bar:Fc,histogram:Fc,scatter3d:uO(rp,"calc","nested"),scattergl:uO(Fc,"calc","nested")}},supplyDefaults:JH(),calc:tO(),makeComputeError:x8(),plot:iO(),style:sO(),hoverInfo:kme};function kme(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 vO={};Ua(vO,{cn:()=>Cme});var Cme,dO=Oa(()=>{"use strict";Cme={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 xO=oe((D8e,_O)=>{"use strict";var Kf=qt(),U3=Pn(),hO=xt(),Xu=Ga(),O3=al(),ml=pr(),os=ml.strTranslate,bO=Dn().extendFlat,A8=Nf(),is=da(),Ev=Nt(),Sme=Od(),Eme=hi(),Lme=Fs().flipScale,Dme=F9(),Fme=q9(),qme=Vl(),k8=(di(),_r(vi)),pO=k8.LINE_SPACING,mO=k8.FROM_TL,gO=k8.FROM_BR,Va=(dO(),_r(vO)).cn;function Pme(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Va.colorbar).data(Rme(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Va.colorbar,!0),t.each(function(a){var n=Kf.select(this);ml.ensureSingle(n,"rect",Va.cbbg),ml.ensureSingle(n,"g",Va.cbfills),ml.ensureSingle(n,"g",Va.cblines),ml.ensureSingle(n,"g",Va.cbaxis,function(o){o.classed(Va.crisp,!0)}),ml.ensureSingle(n,"g",Va.cbtitleunshift,function(o){o.append("g").classed(Va.cbtitle,!0)}),ml.ensureSingle(n,"rect",Va.cboutline);var i=zme(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Nme(n,a,e)}),t.exit().each(function(a){U3.autoMargin(e,a._id)}).remove(),t.order()}function Rme(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(x){return bO(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Lme(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 d=o._module.colorbar;if(o.visible===!0&&d)for(var h=Array.isArray(d),p=h?d:[d],m=0;m<p.length;m++){l=p[m];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(h&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var C=r._colorAxes[b];n=s(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),u(),a.push(n)}return a}var T8=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],yO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function zme(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,d=r.yanchor,h=r.xpad,p=r.ypad,m=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,A=r._line,k=r.title,D=k.side,P=r._zrange||Kf.extent((typeof M=="function"?M:A.color).domain()),z=typeof A.color=="function"?A.color:function(){return A.color},B=typeof M=="function"?M:function(){return M},Y=r._levels,H=Ime(t,r,P),X=H.fill,N=H.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),ee=Q/(a?_.w:_.h),ae=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),re=ae/(a?_.h:_.w),ie=C?_.w:t._fullLayout.width,ue=b?_.h:t._fullLayout.height,xe=Math.round(a?m*ie+h:y*ue+p),Ee={center:.5,right:1}[c]||0,Re={top:1,middle:.5}[d]||0,Ne=a?m-Ee*ee:y-Re*ee,ke=a?y-Re*re:m-Ee*re,We=Math.round(a?ue*(1-ke):ie*ke);r._lenFrac=re,r._thickFrac=ee,r._uFrac=Ne,r._vFrac=ke;var W=r._axis=Bme(t,r,P);W.position=ee+(a?m+h/_.w:y+p/_.h);var se=["top","bottom"].indexOf(D)!==-1;if(a&&se&&(W.title.side=D,W.titlex=m+h/_.w,W.titley=ke+(k.side==="top"?re-p/_.h:p/_.h)),!a&&!se&&(W.title.side=D,W.titley=y+p/_.h,W.titlex=ke+h/_.w),A.color&&r.tickmode==="auto"){W.tickmode="linear",W.tick0=Y.start;var de=Y.size,K=ml.constrain(ae/50,4,15)+1,J=(P[1]-P[0])/((r.nticks||K)*de);if(J>1){var ce=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));de*=ce*ml.roundUp(J/ce,[2,5,10]),(Math.abs(Y.start)/Y.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=de}var be=a?p/_.h:h/_.w;W.domain=yO(T8([ke,ke+re],be),be),W.setScale(),e.attr("transform",os(Math.round(_.l),Math.round(_.t)));var Le=e.select("."+Va.cbtitleunshift).attr("transform",os(-Math.round(_.l),-Math.round(_.t))),je=W.ticklabelposition,er=W.title.font.size,$e=e.select("."+Va.cbaxis),ar,Ie=0,ir=0;function dr(Te,Oe){var xr={propContainer:W,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Va.cbtitle)},Rr=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Rr+",."+Rr+"-math-group").remove(),Sme.draw(t,Te,bO(xr,Oe||{}))}function Ar(){if(a&&se||!a&&!se){var Te,Oe;D==="top"&&(Te=h+_.l+ie*m,Oe=p+_.t+ue*(1-ke-re)+3+er*.75),D==="bottom"&&(Te=h+_.l+ie*m,Oe=p+_.t+ue*(1-ke)-3-er*.25),D==="right"&&(Oe=p+_.t+ue*y+3+er*.75,Te=h+_.l+ie*ke),dr(W._id+"title",{attributes:{x:Te,y:Oe,"text-anchor":a?"start":"middle"}})}}function Qe(){if(a&&!se||!a&&se){var Te=W.position||0,Oe=W._offset+W._length/2,xr,Rr;if(D==="right")Rr=Oe,xr=_.l+ie*Te+10+er*(W.showticklabels?1:.5);else if(xr=Oe,D==="bottom"&&(Rr=_.t+ue*Te+10+(je.indexOf("inside")===-1?W.tickfont.size:0)+(W.ticks!=="inside"&&r.ticklen||0)),D==="top"){var zr=k.text.split("<br>").length;Rr=_.t+ue*Te+10-Q-pO*er*zr}dr((a?"h":"v")+W._id+"title",{avoid:{selection:Kf.select(t).selectAll("g."+W._id+"tick"),side:D,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:xr,y:Rr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function mr(){if(!a&&!se||a&&se){var Te=e.select("."+Va.cbtitle),Oe=Te.select("text"),xr=[-s/2,s/2],Rr=Te.select(".h"+W._id+"title-math-group").node(),zr=15.6;Oe.node()&&(zr=parseInt(Oe.node().style.fontSize,10)*pO);var Ce;if(Rr?(Ce=is.bBox(Rr),ir=Ce.width,Ie=Ce.height,Ie>zr&&(xr[1]-=(Ie-zr)/2)):Oe.node()&&!Oe.classed(Va.jsPlaceholder)&&(Ce=is.bBox(Oe.node()),ir=Ce.width,Ie=Ce.height),a){if(Ie){if(Ie+=5,D==="top")W.domain=yO(W.domain,Ie/_.h),xr[1]*=-1;else{W.domain=T8(W.domain,Ie/_.h);var Ue=Eme.lineCount(Oe);xr[1]+=(1-Ue)*zr}Te.attr("transform",os(xr[0],xr[1])),W.setScale()}}else ir&&(D==="right"&&(W.domain=T8(W.domain,(ir+er/2)/_.w)),Te.attr("transform",os(xr[0],xr[1])),W.setScale())}e.selectAll("."+Va.cbfills+",."+Va.cblines).attr("transform",a?os(0,Math.round(_.h*(1-W.domain[1]))):os(Math.round(_.w*W.domain[0]),0)),$e.attr("transform",a?os(0,Math.round(-_.t)):os(Math.round(-_.l),0));var cr=e.select("."+Va.cbfills).selectAll("rect."+Va.cbfill).attr("style","").data(X);cr.enter().append("rect").classed(Va.cbfill,!0).attr("style",""),cr.exit().remove();var Mr=P.map(W.c2p).map(Math.round).sort(function(et,lr){return et-lr});cr.each(function(et,lr){var Cr=[lr===0?P[0]:(X[lr]+X[lr-1])/2,lr===X.length-1?P[1]:(X[lr]+X[lr+1])/2].map(W.c2p).map(Math.round);a&&(Cr[1]=ml.constrain(Cr[1]+(Cr[1]>Cr[0])?1:-1,Mr[0],Mr[1]));var tr=Kf.select(this).attr(a?"x":"y",xe).attr(a?"y":"x",Kf.min(Cr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(Kf.max(Cr)-Kf.min(Cr),2));if(r._fillgradient)is.gradient(tr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var qr=B(et).replace("e-","");tr.attr("fill",Ev.hexString(qr))}});var hr=e.select("."+Va.cblines).selectAll("path."+Va.cbline).data(A.color&&A.width?N:[]);hr.enter().append("path").classed(Va.cbline,!0),hr.exit().remove(),hr.each(function(et){var lr=xe,Cr=Math.round(W.c2p(et))+A.width/2%1;Kf.select(this).attr("d","M"+(a?lr+","+Cr:Cr+","+lr)+(a?"h":"v")+Q).call(is.lineGroupStyle,A.width,z(et),A.dash)}),$e.selectAll("g."+W._id+"tick,path").remove();var kr=xe+Q+(s||0)/2-(r.ticks==="outside"?1:0),Lr=Xu.calcTicks(W),Br=Xu.getTickSigns(W)[2];return Xu.drawTicks(t,W,{vals:W.ticks==="inside"?Xu.clipEnds(W,Lr):Lr,layer:$e,path:Xu.makeTickPath(W,kr,Br),transFn:Xu.makeTransTickFn(W)}),Xu.drawLabels(t,W,{vals:Lr,layer:$e,transFn:Xu.makeTransTickLabelFn(W),labelFns:Xu.makeLabelFns(W,kr)})}function Pr(){var Te,Oe=Q+s/2;je.indexOf("inside")===-1&&(Te=is.bBox($e.node()),Oe+=a?Te.width:Te.height),ar=Le.select("text");var xr=0,Rr=a&&D==="top",zr=!a&&D==="right",Ce=0;if(ar.node()&&!ar.classed(Va.jsPlaceholder)){var Ue,cr=Le.select(".h"+W._id+"title-math-group").node();cr&&(a&&se||!a&&!se)?(Te=is.bBox(cr),xr=Te.width,Ue=Te.height):(Te=is.bBox(Le.node()),xr=Te.right-_.l-(a?xe:We),Ue=Te.bottom-_.t-(a?We:xe),!a&&D==="top"&&(Oe+=Te.height,Ce=Te.height)),zr&&(ar.attr("transform",os(xr/2+er/2,0)),xr*=2),Oe=Math.max(Oe,a?xr:Ue)}var Mr=(a?h:p)*2+Oe+u+s/2,hr=0;!a&&k.text&&d==="bottom"&&y<=0&&(hr=Mr/2,Mr+=hr,Ce+=hr),x._hColorbarMoveTitle=hr,x._hColorbarMoveCBTitle=Ce;var kr=u+s,Lr=(a?xe:We)-kr/2-(a?h:0),Br=(a?We:xe)-(a?ae:p+Ce-hr);e.select("."+Va.cbbg).attr("x",Lr).attr("y",Br).attr(a?"width":"height",Math.max(Mr-hr,2)).attr(a?"height":"width",Math.max(ae+kr,2)).call(Ev.fill,f).call(Ev.stroke,r.bordercolor).style("stroke-width",u);var et=zr?Math.max(xr-10,0):0;e.selectAll("."+Va.cboutline).attr("x",(a?xe:We+h)+et).attr("y",(a?We+p-ae:xe)+(Rr?Ie:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(ae-(a?2*p+Ie:2*h+et),2)).call(Ev.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var lr=a?Ee*Mr:0,Cr=a?0:(1-Re)*Mr-Ce;if(lr=C?_.l-lr:-lr,Cr=b?_.t-Cr:-Cr,e.attr("transform",os(lr,Cr)),!a&&(u||Ev.opacity(f)&&!Ev.equals(x.paper_bgcolor,f))){var tr=$e.selectAll("text"),qr=tr[0].length,Zr=e.select("."+Va.cbbg).node(),Or=is.bBox(Zr),Xr=is.getTranslate(e),Me=2;tr.each(function(na,Gt){var Ma=0,Ca=qr-1;if(Gt===Ma||Gt===Ca){var An=is.bBox(this),cn=is.getTranslate(this),Sa;if(Gt===Ca){var za=An.right+cn.x,Na=Or.right+Xr.x+We-u-Me+m;Sa=Na-za,Sa>0&&(Sa=0)}else if(Gt===Ma){var Ea=An.left+cn.x,vn=Or.left+Xr.x+We+u+Me;Sa=vn-Ea,Sa<0&&(Sa=0)}Sa&&(qr<3?this.setAttribute("transform","translate("+Sa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Be={},or=mO[c],vr=gO[c],Ft=mO[d],Kt=gO[d],ua=Mr-Q;a?(i==="pixels"?(Be.y=y,Be.t=ae*Ft,Be.b=ae*Kt):(Be.t=Be.b=0,Be.yt=y+n*Ft,Be.yb=y-n*Kt),l==="pixels"?(Be.x=m,Be.l=Mr*or,Be.r=Mr*vr):(Be.l=ua*or,Be.r=ua*vr,Be.xl=m-o*or,Be.xr=m+o*vr)):(i==="pixels"?(Be.x=m,Be.l=ae*or,Be.r=ae*vr):(Be.l=Be.r=0,Be.xl=m+n*or,Be.xr=m-n*vr),l==="pixels"?(Be.y=1-y,Be.t=Mr*Ft,Be.b=Mr*Kt):(Be.t=ua*Ft,Be.b=ua*Kt,Be.yt=y-o*Ft,Be.yb=y+o*Kt));var ga=r.y<.5?"b":"t",Ut=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Rt={r:x.width-Lr-lr,l:Lr+Be.r,b:x.height-Br-Cr,t:Br+Be.b};C&&b?U3.autoMargin(t,r._id,Be):C?t._fullLayout._reservedMargin[r._id][ga]=Rt[ga]:b||a?t._fullLayout._reservedMargin[r._id][Ut]=Rt[Ut]:t._fullLayout._reservedMargin[r._id][ga]=Rt[ga]}return ml.syncOrAsync([U3.previousPromises,Ar,mr,Qe,U3.previousPromises,Pr],t)}function Nme(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;O3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),A8(e)},moveFn:function(u,f){e.attr("transform",o+os(u,f)),l=O3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=O3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=O3.getCursor(l,s,r.xanchor,r.yanchor);A8(e,c)},doneFn:function(){if(A8(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?hO.call("_guiRestyle",t,u,r._traceIndex):hO.call("_guiRelayout",t,u)}}})}function Ime(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=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*u,!(u>0?o>=s:o<=s));l++)o>f&&o<c&&n.push(o);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var d=r._filllevels;if(d)for(s=d.end+d.size/100,u=d.size,l=0;l<1e5&&(o=d.start+l*u,!(u>0?o>=s:o<=s));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(h){return h-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 Bme(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},s={letter:o,font:a.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function u(f,c){return ml.coerce(i,l,qme,f,c)}return Dme(i,l,u,s,a),Fme(i,l,u,s),l}_O.exports={draw:Pme}});var MO=oe((F8e,wO)=>{"use strict";wO.exports={moduleType:"component",name:"colorbar",attributes:jm(),supplyDefaults:A6(),draw:xO().draw,hasColorbar:d6()}});var TO=oe((q8e,AO)=>{"use strict";AO.exports={moduleType:"component",name:"legend",layoutAttributes:_b(),supplyLayoutDefaults:wb(),draw:Nb(),style:qb()}});var CO=oe((P8e,kO)=>{"use strict";kO.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 EO=oe((R8e,SO)=>{"use strict";SO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var S8=oe((z8e,qO)=>{"use strict";var Hme=xt(),FO=pr(),C8=FO.extendFlat,LO=FO.extendDeep;function DO(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 Ome(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}qO.exports=function(r,t){var a,n=r.data,i=r.layout,o=LO([],n),l=LO({},i,DO(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a<u.length;a++)Ome(u[a])&&(l[u[a]].title={text:""});for(a=0;a<o.length;a++){var f=o[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),Hme.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 d={};for(t.tileClass==="thumbnail"&&(d={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var h=l[c[a]];h.xaxis||(h.xaxis={}),h.yaxis||(h.yaxis={}),h.zaxis||(h.zaxis={}),C8(h.xaxis,d),C8(h.yaxis,d),C8(h.zaxis,d),h._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var m={gd:p,td:p,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"&&(m.config.setBackground=t.setBackground||"opaque"),m.gd.defaultLayout=DO(t.tileClass),m}});var zO=oe((N8e,RO)=>{"use strict";var Ume=Rm().EventEmitter,Gme=xt(),Yme=pr(),PO=xc(),Vme=S8(),Xme=Vg(),jme=Xg();function Wme(e,r){var t=new Ume,a=Vme(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=PO.getDelay(n._fullLayout);setTimeout(function(){var s=Xme(n),u=document.createElement("canvas");u.id=Yme.randstr(),t=jme({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=PO.getRedrawFunc(n);return Gme.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}RO.exports=Wme});var BO=oe((I8e,IO)=>{"use strict";var NO=xc(),Zme={getDelay:NO.getDelay,getRedrawFunc:NO.getRedrawFunc,clone:S8(),toSVG:Vg(),svgToImg:Xg(),toImage:zO(),downloadImage:a9()};IO.exports=Zme});var OO=oe(ju=>{"use strict";ju.version=Kv().version;Y_();Ek();var $me=xt(),tp=ju.register=$me.register,L8=VR(),HO=Object.keys(L8);for(G3=0;G3<HO.length;G3++)Lv=HO[G3],Lv.charAt(0)!=="_"&&(ju[Lv]=L8[Lv]),tp({moduleType:"apiMethod",name:Lv,fn:L8[Lv]});var Lv,G3;tp(aI());tp([SI(),UI(),Ou(),lB(),_B(),OB(),oH(),AH(),OH(),jH(),cO(),Km(),MO(),TO(),Zl(),f7()]);tp([CO(),EO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(tp(window.PlotlyLocales),delete window.PlotlyLocales);ju.Icons=Y2();var Y3=Zl(),E8=Pn();ju.Plots={resize:E8.resize,graphJson:E8.graphJson,sendDataToCloud:E8.sendDataToCloud};ju.Fx={hover:Y3.hover,unhover:Y3.unhover,loneHover:Y3.loneHover,loneUnhover:Y3.loneUnhover};ju.Snapshot=BO();ju.PlotSchema=H1()});var GO=oe((H8e,UO)=>{"use strict";UO.exports=OO()});var ap=oe((O8e,WO)=>{"use strict";var{hovertemplateAttrs:Jme,texttemplateAttrs:Kme,templatefallbackAttrs:YO}=V0(),Qme=q7(),Ws=_c(),e2e=Jo(),VO=Y1(),r2e=Ls().dash,qc=Dn().extendFlat,t2e=Ko().overrideAll,gl=Ws.marker,XO=Ws.line,jO=gl.line;WO.exports=t2e({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:qc({},Ws.mode,{dflt:"markers"}),text:qc({},Ws.text,{}),texttemplate:Kme({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:YO({editType:"plot"}),hovertext:qc({},Ws.hovertext,{}),textfont:Ws.textfont,textposition:Ws.textposition,line:{color:XO.color,width:XO.width,dash:r2e},connectgaps:Ws.connectgaps,marker:qc({symbol:gl.symbol,opacity:gl.opacity,angle:gl.angle,angleref:qc({},gl.angleref,{values:["previous","up","north"]}),standoff:gl.standoff,size:gl.size,sizeref:gl.sizeref,sizemin:gl.sizemin,sizemode:gl.sizemode,colorbar:gl.colorbar,line:qc({width:jO.width,dash:jO.dash},VO("marker.line")),gradient:gl.gradient},VO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Qme(),selected:Ws.selected,unselected:Ws.unselected,hoverinfo:qc({},e2e.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Jme(),hovertemplatefallback:YO()},"calc","nested")});var $O=oe((U8e,ZO)=>{"use strict";var D8=pr(),F8=Si(),a2e=o9(),n2e=l9(),i2e=s9(),o2e=u9(),l2e=ap();ZO.exports=function(r,t,a,n){function i(h,p){return D8.coerce(r,t,l2e,h,p)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||D8.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],d=i("lat")||[];l=Math.min(c.length,d.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),F8.hasMarkers(t)&&a2e(r,t,a,n,i,{gradient:!0}),F8.hasLines(t)&&(n2e(r,t,a,n,i),i("connectgaps")),F8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),i2e(r,t,n,i)),i("fill"),t.fill!=="none"&&o2e(r,t,a,i),D8.coerceSelectionMarkerOpacity(t,i)}});var QO=oe((G8e,KO)=>{"use strict";var JO=Ga();KO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=JO.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=JO.tickText(o,o.c2l(l[1]),!0).text,n}});var nU=oe((Y8e,aU)=>{"use strict";var q8=Jt(),eU=(ja(),_r(tn)).BADNUM,s2e=v9(),u2e=Nh(),f2e=e3(),c2e=pr().isArrayOrTypedArray,rU=pr()._;function tU(e){return e&&typeof e=="string"}aU.exports=function(r,t){var a=c2e(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(d){return tU(d)||q8(d)}:o=tU;for(var l=0;l<n;l++){var s=i[l]={};if(a){var u=t.locations[l];s.loc=o(u)?u:null}else{var f=t.lon[l],c=t.lat[l];q8(f)&&q8(c)?s.lonlat=[+f,+c]:s.lonlat=[eU,eU]}}return u2e(i,t),s2e(r,t),f2e(i,t),n&&(i[0].t={labels:{lat:rU(r,"lat:")+" ",lon:rU(r,"lon:")+" "}}),i}});var np={};Ua(np,{axesNames:()=>d2e,clipPad:()=>y2e,fillLayers:()=>A2e,fitboundsIncompatible:()=>m2e,landColor:()=>_2e,lataxisSpan:()=>p2e,layerNameToAdjective:()=>S2e,layers:()=>k2e,layersForChoropleth:()=>C2e,lineLayers:()=>T2e,locationmodeToLayer:()=>w2e,lonaxisSpan:()=>h2e,precision:()=>b2e,projNames:()=>v2e,scopeDefaults:()=>g2e,sphereSVG:()=>M2e,waterColor:()=>x2e});var v2e,d2e,h2e,p2e,m2e,g2e,y2e,b2e,_2e,x2e,w2e,M2e,A2e,T2e,k2e,C2e,S2e,ip=Oa(()=>{"use strict";v2e={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"},d2e=["lonaxis","lataxis"],h2e={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},p2e={"conic conformal":150,stereographic:179.5,"*":180},m2e=new Set(["albers usa","craig","peirce quincuncial","satellite"]),g2e={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]}},y2e=.001,b2e=.1,_2e="#F0DC82",x2e="#3399FF",w2e={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},M2e={type:"Sphere"},A2e={ocean:1,land:1,lakes:1},T2e={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},k2e=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],C2e=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],S2e={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var P8=oe((V3,iU)=>{(function(e,r){typeof V3=="object"&&typeof iU!="undefined"?r(V3):(e=e||self,r(e.topojson=e.topojson||{}))})(V3,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,M,A=x.scale[0],k=x.scale[1],D=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var Y=2,H=z.length,X=new Array(H);for(X[0]=(_+=z[0])*A+D,X[1]=(M+=z[1])*k+P;Y<H;)X[Y]=z[Y],++Y;return X}}function a(x){var _=t(x.transform),M,A=1/0,k=A,D=-A,P=-A;function z(Y){Y=_(Y),Y[0]<A&&(A=Y[0]),Y[0]>D&&(D=Y[0]),Y[1]<k&&(k=Y[1]),Y[1]>P&&(P=Y[1])}function B(Y){switch(Y.type){case"GeometryCollection":Y.geometries.forEach(B);break;case"Point":z(Y.coordinates);break;case"MultiPoint":Y.coordinates.forEach(z);break}}x.arcs.forEach(function(Y){for(var H=-1,X=Y.length,N;++H<X;)N=_(Y[H],H),N[0]<A&&(A=N[0]),N[0]>D&&(D=N[0]),N[1]<k&&(k=N[1]),N[1]>P&&(P=N[1])});for(M in x.objects)B(x.objects[M]);return[A,k,D,P]}function n(x,_){for(var M,A=x.length,k=A-_;k<--A;)M=x[k],x[k++]=x[A],x[A]=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,A=_.bbox,k=_.properties==null?{}:_.properties,D=l(x,_);return M==null&&A==null?{type:"Feature",properties:k,geometry:D}:A==null?{type:"Feature",id:M,properties:k,geometry:D}:{type:"Feature",id:M,bbox:A,properties:k,geometry:D}}function l(x,_){var M=t(x.transform),A=x.arcs;function k(H,X){X.length&&X.pop();for(var N=A[H<0?~H:H],Q=0,ee=N.length;Q<ee;++Q)X.push(M(N[Q],Q));H<0&&n(X,ee)}function D(H){return M(H)}function P(H){for(var X=[],N=0,Q=H.length;N<Q;++N)k(H[N],X);return X.length<2&&X.push(X[0]),X}function z(H){for(var X=P(H);X.length<4;)X.push(X[0]);return X}function B(H){return H.map(z)}function Y(H){var X=H.type,N;switch(X){case"GeometryCollection":return{type:X,geometries:H.geometries.map(Y)};case"Point":N=D(H.coordinates);break;case"MultiPoint":N=H.coordinates.map(D);break;case"LineString":N=P(H.arcs);break;case"MultiLineString":N=H.arcs.map(P);break;case"Polygon":N=B(H.arcs);break;case"MultiPolygon":N=H.arcs.map(B);break;default:return null}return{type:X,coordinates:N}}return Y(_)}function s(x,_){var M={},A={},k={},D=[],P=-1;_.forEach(function(Y,H){var X=x.arcs[Y<0?~Y:Y],N;X.length<3&&!X[1][0]&&!X[1][1]&&(N=_[++P],_[P]=Y,_[H]=N)}),_.forEach(function(Y){var H=z(Y),X=H[0],N=H[1],Q,ee;if(Q=k[X])if(delete k[Q.end],Q.push(Y),Q.end=N,ee=A[N]){delete A[ee.start];var ae=ee===Q?Q:Q.concat(ee);A[ae.start=Q.start]=k[ae.end=ee.end]=ae}else A[Q.start]=k[Q.end]=Q;else if(Q=A[N])if(delete A[Q.start],Q.unshift(Y),Q.start=X,ee=k[X]){delete k[ee.end];var re=ee===Q?Q:ee.concat(Q);A[re.start=ee.start]=k[re.end=Q.end]=re}else A[Q.start]=k[Q.end]=Q;else Q=[Y],A[Q.start=X]=k[Q.end=N]=Q});function z(Y){var H=x.arcs[Y<0?~Y:Y],X=H[0],N;return x.transform?(N=[0,0],H.forEach(function(Q){N[0]+=Q[0],N[1]+=Q[1]})):N=H[H.length-1],Y<0?[N,X]:[X,N]}function B(Y,H){for(var X in Y){var N=Y[X];delete H[N.start],delete N.start,delete N.end,N.forEach(function(Q){M[Q<0?~Q:Q]=1}),D.push(N)}}return B(k,A),B(A,k),_.forEach(function(Y){M[Y<0?~Y:Y]||D.push([Y])}),D}function u(x){return l(x,f.apply(this,arguments))}function f(x,_,M){var A,k,D;if(arguments.length>1)A=c(x,_,M);else for(k=0,A=new Array(D=x.arcs.length);k<D;++k)A[k]=k;return{type:"MultiLineString",arcs:s(x,A)}}function c(x,_,M){var A=[],k=[],D;function P(X){var N=X<0?~X:X;(k[N]||(k[N]=[])).push({i:X,g:D})}function z(X){X.forEach(P)}function B(X){X.forEach(z)}function Y(X){X.forEach(B)}function H(X){switch(D=X,X.type){case"GeometryCollection":X.geometries.forEach(H);break;case"LineString":z(X.arcs);break;case"MultiLineString":case"Polygon":B(X.arcs);break;case"MultiPolygon":Y(X.arcs);break}}return H(_),k.forEach(M==null?function(X){A.push(X[0].i)}:function(X){M(X[0].g,X[X.length-1].g)&&A.push(X[0].i)}),A}function d(x){for(var _=-1,M=x.length,A,k=x[M-1],D=0;++_<M;)A=k,k=x[_],D+=A[0]*k[1]-A[1]*k[0];return Math.abs(D)}function h(x){return l(x,p.apply(this,arguments))}function p(x,_){var M={},A=[],k=[];_.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(Y){Y.forEach(function(H){(M[H=H<0?~H:H]||(M[H]=[])).push(B)})}),A.push(B)}function z(B){return d(l(x,{type:"Polygon",arcs:[B]}).coordinates[0])}return A.forEach(function(B){if(!B._){var Y=[],H=[B];for(B._=1,k.push(Y);B=H.pop();)Y.push(B),B.forEach(function(X){X.forEach(function(N){M[N<0?~N:N].forEach(function(Q){Q._||(Q._=1,H.push(Q))})})})}}),A.forEach(function(B){delete B._}),{type:"MultiPolygon",arcs:k.map(function(B){var Y=[],H;if(B.forEach(function(ae){ae.forEach(function(re){re.forEach(function(ie){M[ie<0?~ie:ie].length<2&&Y.push(ie)})})}),Y=s(x,Y),(H=Y.length)>1)for(var X=1,N=z(Y[0]),Q,ee;X<H;++X)(Q=z(Y[X]))>N&&(ee=Y[0],Y[0]=Y[X],Y[X]=ee,N=Q);return Y}).filter(function(B){return B.length>0})}}function m(x,_){for(var M=0,A=x.length;M<A;){var k=M+A>>>1;x[k]<_?M=k+1:A=k}return M}function y(x){var _={},M=x.map(function(){return[]});function A(ae,re){ae.forEach(function(ie){ie<0&&(ie=~ie);var ue=_[ie];ue?ue.push(re):_[ie]=[re]})}function k(ae,re){ae.forEach(function(ie){A(ie,re)})}function D(ae,re){ae.type==="GeometryCollection"?ae.geometries.forEach(function(ie){D(ie,re)}):ae.type in P&&P[ae.type](ae.arcs,re)}var P={LineString:A,MultiLineString:k,Polygon:k,MultiPolygon:function(ae,re){ae.forEach(function(ie){k(ie,re)})}};x.forEach(D);for(var z in _)for(var B=_[z],Y=B.length,H=0;H<Y;++H)for(var X=H+1;X<Y;++X){var N=B[H],Q=B[X],ee;(ee=M[N])[z=m(ee,Q)]!==Q&&ee.splice(z,0,Q),(ee=M[Q])[z=m(ee,N)]!==N&&ee.splice(z,0,N)}return M}function b(x){if(x==null)return r;var _,M,A=x.scale[0],k=x.scale[1],D=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var Y=2,H=z.length,X=new Array(H),N=Math.round((z[0]-D)/A),Q=Math.round((z[1]-P)/k);for(X[0]=N-_,_=N,X[1]=Q-M,M=Q;Y<H;)X[Y]=z[Y],++Y;return X}}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],A=B[1],k=B[2],D=B[3],P;_={scale:[k-M?(k-M)/(P-1):1,D-A?(D-A)/(P-1):1],translate:[M,A]}}else B=x.bbox;var z=b(_),B,Y,H=x.objects,X={};function N(ae){return z(ae)}function Q(ae){var re;switch(ae.type){case"GeometryCollection":re={type:"GeometryCollection",geometries:ae.geometries.map(Q)};break;case"Point":re={type:"Point",coordinates:N(ae.coordinates)};break;case"MultiPoint":re={type:"MultiPoint",coordinates:ae.coordinates.map(N)};break;default:return ae}return ae.id!=null&&(re.id=ae.id),ae.bbox!=null&&(re.bbox=ae.bbox),ae.properties!=null&&(re.properties=ae.properties),re}function ee(ae){var re=0,ie=1,ue=ae.length,xe,Ee=new Array(ue);for(Ee[0]=z(ae[0],0);++re<ue;)((xe=z(ae[re],re))[0]||xe[1])&&(Ee[ie++]=xe);return ie===1&&(Ee[ie++]=[0,0]),Ee.length=ie,Ee}for(Y in H)X[Y]=Q(H[Y]);return{type:"Topology",bbox:B,transform:_,objects:X,arcs:x.arcs.map(ee)}}e.bbox=a,e.feature=i,e.merge=h,e.mergeArcs=p,e.mesh=u,e.meshArcs=f,e.neighbors=y,e.quantize=C,e.transform=t,e.untransform=b,Object.defineProperty(e,"__esModule",{value:!0})})});var X3=oe((V8e,oU)=>{"use strict";var R8=oU.exports={},E2e=(ip(),_r(np)).locationmodeToLayer,L2e=P8().feature;R8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};R8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};R8.getTopojsonFeatures=function(e,r){var t=E2e[e.locationmode],a=r.objects[t];return L2e(r,a).features}});var lU=oe(op=>{"use strict";var D2e=(ja(),_r(tn)).BADNUM;op.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]!==D2e?n.push(l):!t&&n.length>0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};op.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};op.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}};op.makeBlank=function(){return{type:"Point",coordinates:[]}}});var vU=oe((j8e,cU)=>{"use strict";var N8=Object.defineProperty,F2e=Object.getOwnPropertyDescriptor,q2e=Object.getOwnPropertyNames,P2e=Object.prototype.hasOwnProperty,R2e=(e,r)=>{for(var t in r)N8(e,t,{get:r[t],enumerable:!0})},z2e=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of q2e(r))!P2e.call(e,n)&&n!==t&&N8(e,n,{get:()=>r[n],enumerable:!(a=F2e(r,n))||a.enumerable});return e},N2e=e=>z2e(N8({},"__esModule",{value:!0}),e),sU={};R2e(sU,{COUNTRIES:()=>uU,byAlpha2:()=>O2e,byAlpha3:()=>H2e,byM49:()=>U2e,createLookup:()=>fU,lookup:()=>I2e,lookupAlpha3:()=>B2e,sanitize:()=>z8});cU.exports=N2e(sU);var uU=[{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","east pakistan","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","drc","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","macedonia former yugoslav republic of","macedonia fyr","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:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","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 z8(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function fU(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 s of[l.name,...l.aliases]){let u=z8(s),f=n.get(u);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${l.iso3}`);n.set(u,l.iso3)}function i(l){if(l==null)return;let s=String(l).trim();if(!s)return;if(/^\d+$/.test(s)){let f=a.get(String(parseInt(s,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(s)){let f=t.get(s.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(s)){let f=r.get(s.toUpperCase());if(f)return f}let u=n.get(z8(s));return u===void 0?void 0:r.get(u)}function o(l){var s;return(s=i(l))==null?void 0:s.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var lp=fU(uU),I2e=lp.lookup,B2e=lp.lookupAlpha3,H2e=lp.byAlpha3,O2e=lp.byAlpha2,U2e=lp.byM49});var $3=oe(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var Mn=63710088e-1,B8={centimeters:Mn*100,centimetres:Mn*100,cm:Mn*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Mn*3.28084,ft:Mn*3.28084,inches:Mn*39.37,in:Mn*39.37,kilometers:Mn/1e3,kilometres:Mn/1e3,km:Mn/1e3,meters:Mn,metres:Mn,m:Mn,miles:Mn/1609.344,mi:Mn/1609.344,millimeters:Mn*1e3,millimetres:Mn*1e3,mm:Mn*1e3,nauticalmiles:Mn/1852,nmi:Mn/1852,radians:1,rad:1,yards:Mn*1.0936,yd:Mn*1.0936},I8={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function Qf(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 G2e(e,r,t={}){switch(e){case"Point":return H8(r).geometry;case"LineString":return U8(r).geometry;case"Polygon":return O8(r).geometry;case"MultiPoint":return hU(r).geometry;case"MultiLineString":return dU(r).geometry;case"MultiPolygon":return pU(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(!W3(e[0])||!W3(e[1]))throw new Error("coordinates must contain numbers");return Qf({type:"Point",coordinates:e},r,t)}function Y2e(e,r,t={}){return Z3(e.map(a=>H8(a,r)),t)}function O8(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 Qf({type:"Polygon",coordinates:e},r,t)}function V2e(e,r,t={}){return Z3(e.map(a=>O8(a,r)),t)}function U8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return Qf({type:"LineString",coordinates:e},r,t)}function X2e(e,r,t={}){return Z3(e.map(a=>U8(a,r)),t)}function Z3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function dU(e,r,t={}){return Qf({type:"MultiLineString",coordinates:e},r,t)}function hU(e,r,t={}){return Qf({type:"MultiPoint",coordinates:e},r,t)}function pU(e,r,t={}){return Qf({type:"MultiPolygon",coordinates:e},r,t)}function j2e(e,r,t={}){return Qf({type:"GeometryCollection",geometries:e},r,t)}function W2e(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 mU(e,r="kilometers"){let t=B8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function G8(e,r="kilometers"){let t=B8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Z2e(e,r){return gU(G8(e,r))}function $2e(e){let r=e%360;return r<0&&(r+=360),r}function J2e(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function gU(e){return e%(2*Math.PI)*180/Math.PI}function K2e(e){return e%360*Math.PI/180}function Q2e(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return mU(G8(e,r),t)}function ege(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=I8[r];if(!a)throw new Error("invalid original units");let n=I8[t];if(!n)throw new Error("invalid final units");return e/a*n}function W3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function rge(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function j3(e){delete e.bbox,e.type==="Feature"?e.geometry&&j3(e.geometry):e.type==="FeatureCollection"?e.features.forEach(j3):e.type==="GeometryCollection"&&e.geometries.forEach(j3)}function tge(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(!W3(r))throw new Error("bbox must only contain numbers")})}function age(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")}ma.areaFactors=I8;ma.azimuthToBearing=J2e;ma.bearingToAzimuth=$2e;ma.convertArea=ege;ma.convertLength=Q2e;ma.degreesToRadians=K2e;ma.earthRadius=Mn;ma.factors=B8;ma.feature=Qf;ma.featureCollection=Z3;ma.geometry=G2e;ma.geometryCollection=j2e;ma.isNumber=W3;ma.isObject=rge;ma.lengthToDegrees=Z2e;ma.lengthToRadians=G8;ma.lineString=U8;ma.lineStrings=X2e;ma.multiLineString=dU;ma.multiPoint=hU;ma.multiPolygon=pU;ma.point=H8;ma.points=Y2e;ma.polygon=O8;ma.polygons=V2e;ma.radiansToDegrees=gU;ma.radiansToLength=mU;ma.removeBbox=j3;ma.round=W2e;ma.validateBBox=tge;ma.validateId=age});var K3=oe(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});var zi=$3();function sp(e,r,t){if(e!==null)for(var a,n,i,o,l,s,u,f=0,c=0,d,h=e.type,p=h==="FeatureCollection",m=h==="Feature",y=p?e.features.length:1,b=0;b<y;b++){u=p?e.features[b].geometry:m?e.geometry:e,d=u?u.type==="GeometryCollection":!1,l=d?u.geometries.length:1;for(var C=0;C<l;C++){var x=0,_=0;if(o=d?u.geometries[C]:u,o!==null){s=o.coordinates;var M=o.type;switch(f=t&&(M==="Polygon"||M==="MultiPolygon")?1:0,M){case null:break;case"Point":if(r(s,c,b,x,_)===!1)return!1;c++,x++;break;case"LineString":case"MultiPoint":for(a=0;a<s.length;a++){if(r(s[a],c,b,x,_)===!1)return!1;c++,M==="MultiPoint"&&x++}M==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(a=0;a<s.length;a++){for(n=0;n<s[a].length-f;n++){if(r(s[a][n],c,b,x,_)===!1)return!1;c++}M==="MultiLineString"&&x++,M==="Polygon"&&_++}M==="Polygon"&&x++;break;case"MultiPolygon":for(a=0;a<s.length;a++){for(_=0,n=0;n<s[a].length;n++){for(i=0;i<s[a][n].length-f;i++){if(r(s[a][n][i],c,b,x,_)===!1)return!1;c++}_++}x++}break;case"GeometryCollection":for(a=0;a<o.geometries.length;a++)if(sp(o.geometries[a],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function nge(e,r,t,a){var n=t;return sp(e,function(i,o,l,s,u){o===0&&t===void 0?n=i:n=r(n,i,o,l,s,u)},a),n}function yU(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 ige(e,r,t){var a=t;return yU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function bU(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 oge(e,r,t){var a=t;return bU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function lge(e){var r=[];return sp(e,function(t){r.push(t)}),r}function Y8(e,r){var t,a,n,i,o,l,s,u,f,c,d=0,h=e.type==="FeatureCollection",p=e.type==="Feature",m=h?e.features.length:1;for(t=0;t<m;t++){for(l=h?e.features[t].geometry:p?e.geometry:e,u=h?e.features[t].properties:p?e.properties:{},f=h?e.features[t].bbox:p?e.bbox:void 0,c=h?e.features[t].id:p?e.id:void 0,s=l?l.type==="GeometryCollection":!1,o=s?l.geometries.length:1,n=0;n<o;n++){if(i=s?l.geometries[n]:l,i===null){if(r(null,d,u,f,c)===!1)return!1;continue}switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(i,d,u,f,c)===!1)return!1;break}case"GeometryCollection":{for(a=0;a<i.geometries.length;a++)if(r(i.geometries[a],d,u,f,c)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}d++}}function sge(e,r,t){var a=t;return Y8(e,function(n,i,o,l,s){i===0&&t===void 0?a=n:a=r(a,n,i,o,l,s)}),a}function J3(e,r){Y8(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(zi.feature.call(void 0,t,n,{bbox:i,id:o}),a,0)===!1?!1:void 0}var s;switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var f=t.coordinates[u],c={type:s,coordinates:f};if(r(zi.feature.call(void 0,c,n),a,u)===!1)return!1}})}function uge(e,r,t){var a=t;return J3(e,function(n,i,o){i===0&&o===0&&t===void 0?a=n:a=r(a,n,i,o)}),a}function _U(e,r){J3(e,function(t,a,n){var i=0;if(t.geometry){var o=t.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,s=0,u=0,f=0;if(sp(t,function(c,d,h,p,m){if(l===void 0||a>s||p>u||m>f){l=c,s=a,u=p,f=m,i=0;return}var y=zi.lineString.call(void 0,[l,c],t.properties);if(r(y,a,n,m,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function fge(e,r,t){var a=t,n=!1;return _U(e,function(i,o,l,s,u){n===!1&&t===void 0?a=i:a=r(a,i,o,l,s,u),n=!0}),a}function xU(e,r){if(!e)throw new Error("geojson is required");J3(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(zi.lineString.call(void 0,o[l],t.properties),a,n,l)===!1)return!1;break}}})}function cge(e,r,t){var a=t;return xU(e,function(n,i,o,l){i===0&&t===void 0?a=n:a=r(a,n,i,o,l)}),a}function vge(e,r){if(r=r||{},!zi.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 s=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return i<0&&(i=s.length+i-1),zi.lineString.call(void 0,[s[i],s[i+1]],o,r);case"Polygon":return n<0&&(n=s.length+n),i<0&&(i=s[n].length+i-1),zi.lineString.call(void 0,[s[n][i],s[n][i+1]],o,r);case"MultiLineString":return a<0&&(a=s.length+a),i<0&&(i=s[a].length+i-1),zi.lineString.call(void 0,[s[a][i],s[a][i+1]],o,r);case"MultiPolygon":return a<0&&(a=s.length+a),n<0&&(n=s[a].length+n),i<0&&(i=s[a][n].length-i-1),zi.lineString.call(void 0,[s[a][n][i],s[a][n][i+1]],o,r)}throw new Error("geojson is invalid")}function dge(e,r){if(r=r||{},!zi.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 s=l.coordinates;switch(l.type){case"Point":return zi.point.call(void 0,s,o,r);case"MultiPoint":return a<0&&(a=s.length+a),zi.point.call(void 0,s[a],o,r);case"LineString":return i<0&&(i=s.length+i),zi.point.call(void 0,s[i],o,r);case"Polygon":return n<0&&(n=s.length+n),i<0&&(i=s[n].length+i),zi.point.call(void 0,s[n][i],o,r);case"MultiLineString":return a<0&&(a=s.length+a),i<0&&(i=s[a].length+i),zi.point.call(void 0,s[a][i],o,r);case"MultiPolygon":return a<0&&(a=s.length+a),n<0&&(n=s[a].length+n),i<0&&(i=s[a][n].length-i),zi.point.call(void 0,s[a][n][i],o,r)}throw new Error("geojson is invalid")}Jn.coordAll=lge;Jn.coordEach=sp;Jn.coordReduce=nge;Jn.featureEach=bU;Jn.featureReduce=oge;Jn.findPoint=dge;Jn.findSegment=vge;Jn.flattenEach=J3;Jn.flattenReduce=uge;Jn.geomEach=Y8;Jn.geomReduce=sge;Jn.lineEach=xU;Jn.lineReduce=cge;Jn.propEach=yU;Jn.propReduce=ige;Jn.segmentEach=_U;Jn.segmentReduce=fge});var kU=oe(Q3=>{"use strict";Object.defineProperty(Q3,"__esModule",{value:!0});var wU=$3(),hge=K3();function TU(e){return hge.geomReduce.call(void 0,e,(r,t)=>r+pge(t),0)}function pge(e){let r=0,t;switch(e.type){case"Polygon":return MU(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=MU(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function MU(e){let r=0;if(e&&e.length>0){r+=Math.abs(AU(e[0]));for(let t=1;t<e.length;t++)r-=Math.abs(AU(e[t]))}return r}var mge=wU.earthRadius*wU.earthRadius/2,V8=Math.PI/180;function AU(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]*V8,s=i[1]*V8,u=o[0]*V8;t+=(u-l)*Math.sin(s),a++}return t*mge}var gge=TU;Q3.area=TU;Q3.default=gge});var SU=oe(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var yge=$3(),bge=K3();function CU(e,r={}){let t=0,a=0,n=0;return bge.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),yge.point.call(void 0,[t/n,a/n],r.properties)}var _ge=CU;ey.centroid=CU;ey.default=_ge});var LU=oe((ry,EU)=>{(function(e,r){r(typeof ry=="object"&&typeof EU!="undefined"?ry:e.d3=e.d3||{})})(ry,(function(e){"use strict";function r(W,se){return W<se?-1:W>se?1:W>=se?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(se,de,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K<J;){var ce=K+J>>>1;W(se[ce],de)<0?K=ce+1:J=ce}return K},right:function(se,de,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K<J;){var ce=K+J>>>1;W(se[ce],de)>0?J=ce:K=ce+1}return K}}}function a(W){return function(se,de){return r(W(se),de)}}var n=t(r),i=n.right,o=n.left;function l(W,se){se==null&&(se=s);for(var de=0,K=W.length-1,J=W[0],ce=new Array(K<0?0:K);de<K;)ce[de]=se(J,J=W[++de]);return ce}function s(W,se){return[W,se]}function u(W,se,de){var K=W.length,J=se.length,ce=new Array(K*J),be,Le,je,er;for(de==null&&(de=s),be=je=0;be<K;++be)for(er=W[be],Le=0;Le<J;++Le,++je)ce[je]=de(er,se[Le]);return ce}function f(W,se){return se<W?-1:se>W?1:se>=W?0:NaN}function c(W){return W===null?NaN:+W}function d(W,se){var de=W.length,K=0,J=-1,ce=0,be,Le,je=0;if(se==null)for(;++J<de;)isNaN(be=c(W[J]))||(Le=be-ce,ce+=Le/++K,je+=Le*(be-ce));else for(;++J<de;)isNaN(be=c(se(W[J],J,W)))||(Le=be-ce,ce+=Le/++K,je+=Le*(be-ce));if(K>1)return je/(K-1)}function h(W,se){var de=d(W,se);return de&&Math.sqrt(de)}function p(W,se){var de=W.length,K=-1,J,ce,be;if(se==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(ce=be=J;++K<de;)(J=W[K])!=null&&(ce>J&&(ce=J),be<J&&(be=J))}else for(;++K<de;)if((J=se(W[K],K,W))!=null&&J>=J)for(ce=be=J;++K<de;)(J=se(W[K],K,W))!=null&&(ce>J&&(ce=J),be<J&&(be=J));return[ce,be]}var m=Array.prototype,y=m.slice,b=m.map;function C(W){return function(){return W}}function x(W){return W}function _(W,se,de){W=+W,se=+se,de=(J=arguments.length)<2?(se=W,W=0,1):J<3?1:+de;for(var K=-1,J=Math.max(0,Math.ceil((se-W)/de))|0,ce=new Array(J);++K<J;)ce[K]=W+K*de;return ce}var M=Math.sqrt(50),A=Math.sqrt(10),k=Math.sqrt(2);function D(W,se,de){var K,J=-1,ce,be,Le;if(se=+se,W=+W,de=+de,W===se&&de>0)return[W];if((K=se<W)&&(ce=W,W=se,se=ce),(Le=P(W,se,de))===0||!isFinite(Le))return[];if(Le>0)for(W=Math.ceil(W/Le),se=Math.floor(se/Le),be=new Array(ce=Math.ceil(se-W+1));++J<ce;)be[J]=(W+J)*Le;else for(W=Math.floor(W*Le),se=Math.ceil(se*Le),be=new Array(ce=Math.ceil(W-se+1));++J<ce;)be[J]=(W-J)/Le;return K&&be.reverse(),be}function P(W,se,de){var K=(se-W)/Math.max(0,de),J=Math.floor(Math.log(K)/Math.LN10),ce=K/Math.pow(10,J);return J>=0?(ce>=M?10:ce>=A?5:ce>=k?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(ce>=M?10:ce>=A?5:ce>=k?2:1)}function z(W,se,de){var K=Math.abs(se-W)/Math.max(0,de),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),ce=K/J;return ce>=M?J*=10:ce>=A?J*=5:ce>=k&&(J*=2),se<W?-J:J}function B(W){return Math.ceil(Math.log(W.length)/Math.LN2)+1}function Y(){var W=x,se=p,de=B;function K(J){var ce,be=J.length,Le,je=new Array(be);for(ce=0;ce<be;++ce)je[ce]=W(J[ce],ce,J);var er=se(je),$e=er[0],ar=er[1],Ie=de(je,$e,ar);Array.isArray(Ie)||(Ie=z($e,ar,Ie),Ie=_(Math.ceil($e/Ie)*Ie,ar,Ie));for(var ir=Ie.length;Ie[0]<=$e;)Ie.shift(),--ir;for(;Ie[ir-1]>ar;)Ie.pop(),--ir;var dr=new Array(ir+1),Ar;for(ce=0;ce<=ir;++ce)Ar=dr[ce]=[],Ar.x0=ce>0?Ie[ce-1]:$e,Ar.x1=ce<ir?Ie[ce]:ar;for(ce=0;ce<be;++ce)Le=je[ce],$e<=Le&&Le<=ar&&dr[i(Ie,Le,0,ir)].push(J[ce]);return dr}return K.value=function(J){return arguments.length?(W=typeof J=="function"?J:C(J),K):W},K.domain=function(J){return arguments.length?(se=typeof J=="function"?J:C([J[0],J[1]]),K):se},K.thresholds=function(J){return arguments.length?(de=typeof J=="function"?J:Array.isArray(J)?C(y.call(J)):C(J),K):de},K}function H(W,se,de){if(de==null&&(de=c),!!(K=W.length)){if((se=+se)<=0||K<2)return+de(W[0],0,W);if(se>=1)return+de(W[K-1],K-1,W);var K,J=(K-1)*se,ce=Math.floor(J),be=+de(W[ce],ce,W),Le=+de(W[ce+1],ce+1,W);return be+(Le-be)*(J-ce)}}function X(W,se,de){return W=b.call(W,c).sort(r),Math.ceil((de-se)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,se,de){return Math.ceil((de-se)/(3.5*h(W)*Math.pow(W.length,-1/3)))}function Q(W,se){var de=W.length,K=-1,J,ce;if(se==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(ce=J;++K<de;)(J=W[K])!=null&&J>ce&&(ce=J)}else for(;++K<de;)if((J=se(W[K],K,W))!=null&&J>=J)for(ce=J;++K<de;)(J=se(W[K],K,W))!=null&&J>ce&&(ce=J);return ce}function ee(W,se){var de=W.length,K=de,J=-1,ce,be=0;if(se==null)for(;++J<de;)isNaN(ce=c(W[J]))?--K:be+=ce;else for(;++J<de;)isNaN(ce=c(se(W[J],J,W)))?--K:be+=ce;if(K)return be/K}function ae(W,se){var de=W.length,K=-1,J,ce=[];if(se==null)for(;++K<de;)isNaN(J=c(W[K]))||ce.push(J);else for(;++K<de;)isNaN(J=c(se(W[K],K,W)))||ce.push(J);return H(ce.sort(r),.5)}function re(W){for(var se=W.length,de,K=-1,J=0,ce,be;++K<se;)J+=W[K].length;for(ce=new Array(J);--se>=0;)for(be=W[se],de=be.length;--de>=0;)ce[--J]=be[de];return ce}function ie(W,se){var de=W.length,K=-1,J,ce;if(se==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(ce=J;++K<de;)(J=W[K])!=null&&ce>J&&(ce=J)}else for(;++K<de;)if((J=se(W[K],K,W))!=null&&J>=J)for(ce=J;++K<de;)(J=se(W[K],K,W))!=null&&ce>J&&(ce=J);return ce}function ue(W,se){for(var de=se.length,K=new Array(de);de--;)K[de]=W[se[de]];return K}function xe(W,se){if(de=W.length){var de,K=0,J=0,ce,be=W[J];for(se==null&&(se=r);++K<de;)(se(ce=W[K],be)<0||se(be,be)!==0)&&(be=ce,J=K);if(se(be,be)===0)return J}}function Ee(W,se,de){for(var K=(de==null?W.length:de)-(se=se==null?0:+se),J,ce;K;)ce=Math.random()*K--|0,J=W[K+se],W[K+se]=W[ce+se],W[ce+se]=J;return W}function Re(W,se){var de=W.length,K=-1,J,ce=0;if(se==null)for(;++K<de;)(J=+W[K])&&(ce+=J);else for(;++K<de;)(J=+se(W[K],K,W))&&(ce+=J);return ce}function Ne(W){if(!(ce=W.length))return[];for(var se=-1,de=ie(W,ke),K=new Array(de);++se<de;)for(var J=-1,ce,be=K[se]=new Array(ce);++J<ce;)be[J]=W[J][se];return K}function ke(W){return W.length}function We(){return Ne(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=u,e.descending=f,e.deviation=h,e.extent=p,e.histogram=Y,e.thresholdFreedmanDiaconis=X,e.thresholdScott=N,e.thresholdSturges=B,e.max=Q,e.mean=ee,e.median=ae,e.merge=re,e.min=ie,e.pairs=l,e.permute=ue,e.quantile=H,e.range=_,e.scan=xe,e.shuffle=Ee,e.sum=Re,e.ticks=D,e.tickIncrement=P,e.tickStep=z,e.transpose=Ne,e.variance=d,e.zip=We,Object.defineProperty(e,"__esModule",{value:!0})}))});var ay=oe((ty,DU)=>{(function(e,r){typeof ty=="object"&&typeof DU!="undefined"?r(ty,LU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ty,(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,$,he){var le=O.s=$+he,Ae=le-$,Ge=le-Ae;O.t=$-Ge+(he-Ae)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,c=s*2,d=180/s,h=s/180,p=Math.abs,m=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,M=Math.pow,A=Math.sin,k=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?s:Math.acos(O)}function B(O){return O>1?u:O<-1?-u:Math.asin(O)}function Y(O){return(O=A(O/2))*O}function H(){}function X(O,$){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,$)}var N={Feature:function(O,$){X(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,le=-1,Ae=he.length;++le<Ae;)X(he[le].geometry,$)}},Q={Sphere:function(O,$){$.sphere()},Point:function(O,$){O=O.coordinates,$.point(O[0],O[1],O[2])},MultiPoint:function(O,$){for(var he=O.coordinates,le=-1,Ae=he.length;++le<Ae;)O=he[le],$.point(O[0],O[1],O[2])},LineString:function(O,$){ee(O.coordinates,$,0)},MultiLineString:function(O,$){for(var he=O.coordinates,le=-1,Ae=he.length;++le<Ae;)ee(he[le],$,0)},Polygon:function(O,$){ae(O.coordinates,$)},MultiPolygon:function(O,$){for(var he=O.coordinates,le=-1,Ae=he.length;++le<Ae;)ae(he[le],$)},GeometryCollection:function(O,$){for(var he=O.geometries,le=-1,Ae=he.length;++le<Ae;)X(he[le],$)}};function ee(O,$,he){var le=-1,Ae=O.length-he,Ge;for($.lineStart();++le<Ae;)Ge=O[le],$.point(Ge[0],Ge[1],Ge[2]);$.lineEnd()}function ae(O,$){var he=-1,le=O.length;for($.polygonStart();++he<le;)ee(O[he],$,1);$.polygonEnd()}function re(O,$){O&&N.hasOwnProperty(O.type)?N[O.type](O,$):X(O,$)}var ie=t(),ue=t(),xe,Ee,Re,Ne,ke,We={point:H,lineStart:H,lineEnd:H,polygonStart:function(){ie.reset(),We.lineStart=W,We.lineEnd=se},polygonEnd:function(){var O=+ie;ue.add(O<0?c+O:O),this.lineStart=this.lineEnd=this.point=H},sphere:function(){ue.add(c)}};function W(){We.point=de}function se(){K(xe,Ee)}function de(O,$){We.point=K,xe=O,Ee=$,O*=h,$*=h,Re=O,Ne=b($=$/2+f),ke=A($)}function K(O,$){O*=h,$*=h,$=$/2+f;var he=O-Re,le=he>=0?1:-1,Ae=le*he,Ge=b($),Ze=A($),rr=ke*Ze,nr=Ne*Ge+rr*b(Ae),yr=rr*le*A(Ae);ie.add(y(yr,nr)),Re=O,Ne=Ge,ke=Ze}function J(O){return ue.reset(),re(O,We),ue*2}function ce(O){return[y(O[1],O[0]),B(O[2])]}function be(O){var $=O[0],he=O[1],le=b(he);return[le*b($),le*A($),A(he)]}function Le(O,$){return O[0]*$[0]+O[1]*$[1]+O[2]*$[2]}function je(O,$){return[O[1]*$[2]-O[2]*$[1],O[2]*$[0]-O[0]*$[2],O[0]*$[1]-O[1]*$[0]]}function er(O,$){O[0]+=$[0],O[1]+=$[1],O[2]+=$[2]}function $e(O,$){return[O[0]*$,O[1]*$,O[2]*$]}function ar(O){var $=D(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=$,O[1]/=$,O[2]/=$}var Ie,ir,dr,Ar,Qe,mr,Pr,Te,Oe=t(),xr,Rr,zr={point:Ce,lineStart:cr,lineEnd:Mr,polygonStart:function(){zr.point=hr,zr.lineStart=kr,zr.lineEnd=Lr,Oe.reset(),We.polygonStart()},polygonEnd:function(){We.polygonEnd(),zr.point=Ce,zr.lineStart=cr,zr.lineEnd=Mr,ie<0?(Ie=-(dr=180),ir=-(Ar=90)):Oe>o?Ar=90:Oe<-o&&(ir=-90),Rr[0]=Ie,Rr[1]=dr},sphere:function(){Ie=-(dr=180),ir=-(Ar=90)}};function Ce(O,$){xr.push(Rr=[Ie=O,dr=O]),$<ir&&(ir=$),$>Ar&&(Ar=$)}function Ue(O,$){var he=be([O*h,$*h]);if(Te){var le=je(Te,he),Ae=[le[1],-le[0],0],Ge=je(Ae,le);ar(Ge),Ge=ce(Ge);var Ze=O-Qe,rr=Ze>0?1:-1,nr=Ge[0]*d*rr,yr,Je=p(Ze)>180;Je^(rr*Qe<nr&&nr<rr*O)?(yr=Ge[1]*d,yr>Ar&&(Ar=yr)):(nr=(nr+360)%360-180,Je^(rr*Qe<nr&&nr<rr*O)?(yr=-Ge[1]*d,yr<ir&&(ir=yr)):($<ir&&(ir=$),$>Ar&&(Ar=$))),Je?O<Qe?Br(Ie,O)>Br(Ie,dr)&&(dr=O):Br(O,dr)>Br(Ie,dr)&&(Ie=O):dr>=Ie?(O<Ie&&(Ie=O),O>dr&&(dr=O)):O>Qe?Br(Ie,O)>Br(Ie,dr)&&(dr=O):Br(O,dr)>Br(Ie,dr)&&(Ie=O)}else xr.push(Rr=[Ie=O,dr=O]);$<ir&&(ir=$),$>Ar&&(Ar=$),Te=he,Qe=O}function cr(){zr.point=Ue}function Mr(){Rr[0]=Ie,Rr[1]=dr,zr.point=Ce,Te=null}function hr(O,$){if(Te){var he=O-Qe;Oe.add(p(he)>180?he+(he>0?360:-360):he)}else mr=O,Pr=$;We.point(O,$),Ue(O,$)}function kr(){We.lineStart()}function Lr(){hr(mr,Pr),We.lineEnd(),p(Oe)>o&&(Ie=-(dr=180)),Rr[0]=Ie,Rr[1]=dr,Te=null}function Br(O,$){return($-=O)<0?$+360:$}function et(O,$){return O[0]-$[0]}function lr(O,$){return O[0]<=O[1]?O[0]<=$&&$<=O[1]:$<O[0]||O[1]<$}function Cr(O){var $,he,le,Ae,Ge,Ze,rr;if(Ar=dr=-(Ie=ir=1/0),xr=[],re(O,zr),he=xr.length){for(xr.sort(et),$=1,le=xr[0],Ge=[le];$<he;++$)Ae=xr[$],lr(le,Ae[0])||lr(le,Ae[1])?(Br(le[0],Ae[1])>Br(le[0],le[1])&&(le[1]=Ae[1]),Br(Ae[0],le[1])>Br(le[0],le[1])&&(le[0]=Ae[0])):Ge.push(le=Ae);for(Ze=-1/0,he=Ge.length-1,$=0,le=Ge[he];$<=he;le=Ae,++$)Ae=Ge[$],(rr=Br(le[1],Ae[0]))>Ze&&(Ze=rr,Ie=Ae[0],dr=le[1])}return xr=Rr=null,Ie===1/0||ir===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ie,ir],[dr,Ar]]}var tr,qr,Zr,Or,Xr,Me,Be,or,vr,Ft,Kt,ua,ga,Ut,Rt,na,Gt={sphere:H,point:Ma,lineStart:An,lineEnd:za,polygonStart:function(){Gt.lineStart=Na,Gt.lineEnd=Ea},polygonEnd:function(){Gt.lineStart=An,Gt.lineEnd=za}};function Ma(O,$){O*=h,$*=h;var he=b($);Ca(he*b(O),he*A(O),A($))}function Ca(O,$,he){++tr,Zr+=(O-Zr)/tr,Or+=($-Or)/tr,Xr+=(he-Xr)/tr}function An(){Gt.point=cn}function cn(O,$){O*=h,$*=h;var he=b($);Ut=he*b(O),Rt=he*A(O),na=A($),Gt.point=Sa,Ca(Ut,Rt,na)}function Sa(O,$){O*=h,$*=h;var he=b($),le=he*b(O),Ae=he*A(O),Ge=A($),Ze=y(D((Ze=Rt*Ge-na*Ae)*Ze+(Ze=na*le-Ut*Ge)*Ze+(Ze=Ut*Ae-Rt*le)*Ze),Ut*le+Rt*Ae+na*Ge);qr+=Ze,Me+=Ze*(Ut+(Ut=le)),Be+=Ze*(Rt+(Rt=Ae)),or+=Ze*(na+(na=Ge)),Ca(Ut,Rt,na)}function za(){Gt.point=Ma}function Na(){Gt.point=vn}function Ea(){Ia(ua,ga),Gt.point=Ma}function vn(O,$){ua=O,ga=$,O*=h,$*=h,Gt.point=Ia;var he=b($);Ut=he*b(O),Rt=he*A(O),na=A($),Ca(Ut,Rt,na)}function Ia(O,$){O*=h,$*=h;var he=b($),le=he*b(O),Ae=he*A(O),Ge=A($),Ze=Rt*Ge-na*Ae,rr=na*le-Ut*Ge,nr=Ut*Ae-Rt*le,yr=D(Ze*Ze+rr*rr+nr*nr),Je=B(yr),fr=yr&&-Je/yr;vr+=fr*Ze,Ft+=fr*rr,Kt+=fr*nr,qr+=Je,Me+=Je*(Ut+(Ut=le)),Be+=Je*(Rt+(Rt=Ae)),or+=Je*(na+(na=Ge)),Ca(Ut,Rt,na)}function dn(O){tr=qr=Zr=Or=Xr=Me=Be=or=vr=Ft=Kt=0,re(O,Gt);var $=vr,he=Ft,le=Kt,Ae=$*$+he*he+le*le;return Ae<l&&($=Me,he=Be,le=or,qr<o&&($=Zr,he=Or,le=Xr),Ae=$*$+he*he+le*le,Ae<l)?[NaN,NaN]:[y(he,$)*d,B(le/D(Ae))*d]}function Dr(O){return function(){return O}}function kt(O,$){function he(le,Ae){return le=O(le,Ae),$(le[0],le[1])}return O.invert&&$.invert&&(he.invert=function(le,Ae){return le=$.invert(le,Ae),le&&O.invert(le[0],le[1])}),he}function pt(O,$){return[p(O)>s?O+Math.round(-O/c)*c:O,$]}pt.invert=pt;function Yt(O,$,he){return(O%=c)?$||he?kt(Tn(O),ya($,he)):Tn(O):$||he?ya($,he):pt}function Ba(O){return function($,he){return $+=O,[$>s?$-c:$<-s?$+c:$,he]}}function Tn(O){var $=Ba(O);return $.invert=Ba(-O),$}function ya(O,$){var he=b(O),le=A(O),Ae=b($),Ge=A($);function Ze(rr,nr){var yr=b(nr),Je=b(rr)*yr,fr=A(rr)*yr,sr=A(nr),wr=sr*he+Je*le;return[y(fr*Ae-wr*Ge,Je*he-sr*le),B(wr*Ae+fr*Ge)]}return Ze.invert=function(rr,nr){var yr=b(nr),Je=b(rr)*yr,fr=A(rr)*yr,sr=A(nr),wr=sr*Ae-fr*Ge;return[y(fr*Ae+sr*Ge,Je*he+wr*le),B(wr*he-Je*le)]},Ze}function bi(O){O=Yt(O[0]*h,O[1]*h,O.length>2?O[2]*h:0);function $(he){return he=O(he[0]*h,he[1]*h),he[0]*=d,he[1]*=d,he}return $.invert=function(he){return he=O.invert(he[0]*h,he[1]*h),he[0]*=d,he[1]*=d,he},$}function po(O,$,he,le,Ae,Ge){if(he){var Ze=b($),rr=A($),nr=le*he;Ae==null?(Ae=$+le*c,Ge=$-nr/2):(Ae=Ni(Ze,Ae),Ge=Ni(Ze,Ge),(le>0?Ae<Ge:Ae>Ge)&&(Ae+=le*c));for(var yr,Je=Ae;le>0?Je>Ge:Je<Ge;Je-=nr)yr=ce([Ze,-rr*b(Je),-rr*A(Je)]),O.point(yr[0],yr[1])}}function Ni(O,$){$=be($),$[0]-=O,ar($);var he=z(-$[1]);return((-$[2]<0?-he:he)+c-o)%c}function Bo(){var O=Dr([0,0]),$=Dr(90),he=Dr(6),le,Ae,Ge={point:Ze};function Ze(nr,yr){le.push(nr=Ae(nr,yr)),nr[0]*=d,nr[1]*=d}function rr(){var nr=O.apply(this,arguments),yr=$.apply(this,arguments)*h,Je=he.apply(this,arguments)*h;return le=[],Ae=Yt(-nr[0]*h,-nr[1]*h,0).invert,po(Ge,yr,Je,1),nr={type:"Polygon",coordinates:[le]},le=Ae=null,nr}return rr.center=function(nr){return arguments.length?(O=typeof nr=="function"?nr:Dr([+nr[0],+nr[1]]),rr):O},rr.radius=function(nr){return arguments.length?($=typeof nr=="function"?nr:Dr(+nr),rr):$},rr.precision=function(nr){return arguments.length?(he=typeof nr=="function"?nr:Dr(+nr),rr):he},rr}function Ii(){var O=[],$;return{point:function(he,le,Ae){$.push([he,le,Ae])},lineStart:function(){O.push($=[])},lineEnd:H,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],$=null,he}}}function jt(O,$){return p(O[0]-$[0])<o&&p(O[1]-$[1])<o}function Bi(O,$,he,le){this.x=O,this.z=$,this.o=he,this.e=le,this.v=!1,this.n=this.p=null}function Ja(O,$,he,le,Ae){var Ge=[],Ze=[],rr,nr;if(O.forEach(function(Er){if(!((lt=Er.length-1)<=0)){var lt,rt=Er[0],ut=Er[lt],ft;if(jt(rt,ut)){if(!rt[2]&&!ut[2]){for(Ae.lineStart(),rr=0;rr<lt;++rr)Ae.point((rt=Er[rr])[0],rt[1]);Ae.lineEnd();return}ut[0]+=2*o}Ge.push(ft=new Bi(rt,Er,null,!0)),Ze.push(ft.o=new Bi(rt,null,ft,!1)),Ge.push(ft=new Bi(ut,Er,null,!1)),Ze.push(ft.o=new Bi(ut,null,ft,!0))}}),!!Ge.length){for(Ze.sort($),oi(Ge),oi(Ze),rr=0,nr=Ze.length;rr<nr;++rr)Ze[rr].e=he=!he;for(var yr=Ge[0],Je,fr;;){for(var sr=yr,wr=!0;sr.v;)if((sr=sr.n)===yr)return;Je=sr.z,Ae.lineStart();do{if(sr.v=sr.o.v=!0,sr.e){if(wr)for(rr=0,nr=Je.length;rr<nr;++rr)Ae.point((fr=Je[rr])[0],fr[1]);else le(sr.x,sr.n.x,1,Ae);sr=sr.n}else{if(wr)for(Je=sr.p.z,rr=Je.length-1;rr>=0;--rr)Ae.point((fr=Je[rr])[0],fr[1]);else le(sr.x,sr.p.x,-1,Ae);sr=sr.p}sr=sr.o,Je=sr.z,wr=!wr}while(!sr.v);Ae.lineEnd()}}}function oi(O){if($=O.length){for(var $,he=0,le=O[0],Ae;++he<$;)le.n=Ae=O[he],Ae.p=le,le=Ae;le.n=Ae=O[0],Ae.p=le}}var li=t();function mo(O){return p(O[0])<=s?O[0]:k(O[0])*((p(O[0])+s)%c-s)}function ss(O,$){var he=mo($),le=$[1],Ae=A(le),Ge=[A(he),-b(he),0],Ze=0,rr=0;li.reset(),Ae===1?le=u+o:Ae===-1&&(le=-u-o);for(var nr=0,yr=O.length;nr<yr;++nr)if(fr=(Je=O[nr]).length)for(var Je,fr,sr=Je[fr-1],wr=mo(sr),Er=sr[1]/2+f,lt=A(Er),rt=b(Er),ut=0;ut<fr;++ut,wr=Fr,lt=vt,rt=wt,sr=ft){var ft=Je[ut],Fr=mo(ft),Gr=ft[1]/2+f,vt=A(Gr),wt=b(Gr),Zt=Fr-wr,sa=Zt>=0?1:-1,Qt=sa*Zt,ba=Qt>s,zt=lt*vt;if(li.add(y(zt*sa*A(Qt),rt*wt+zt*b(Qt))),Ze+=ba?Zt+sa*c:Zt,ba^wr>=he^Fr>=he){var En=je(be(sr),be(ft));ar(En);var Qa=je(Ge,En);ar(Qa);var _a=(ba^Zt>=0?-1:1)*B(Qa[2]);(le>_a||le===_a&&(En[0]||En[1]))&&(rr+=ba^Zt>=0?1:-1)}}return(Ze<-o||Ze<o&&li<-o)^rr&1}function Ks(O,$,he,le){return function(Ae){var Ge=$(Ae),Ze=Ii(),rr=$(Ze),nr=!1,yr,Je,fr,sr={point:wr,lineStart:lt,lineEnd:rt,polygonStart:function(){sr.point=ut,sr.lineStart=ft,sr.lineEnd=Fr,Je=[],yr=[]},polygonEnd:function(){sr.point=wr,sr.lineStart=lt,sr.lineEnd=rt,Je=r.merge(Je);var Gr=ss(yr,le);Je.length?(nr||(Ae.polygonStart(),nr=!0),Ja(Je,Qs,Gr,he,Ae)):Gr&&(nr||(Ae.polygonStart(),nr=!0),Ae.lineStart(),he(null,null,1,Ae),Ae.lineEnd()),nr&&(Ae.polygonEnd(),nr=!1),Je=yr=null},sphere:function(){Ae.polygonStart(),Ae.lineStart(),he(null,null,1,Ae),Ae.lineEnd(),Ae.polygonEnd()}};function wr(Gr,vt){O(Gr,vt)&&Ae.point(Gr,vt)}function Er(Gr,vt){Ge.point(Gr,vt)}function lt(){sr.point=Er,Ge.lineStart()}function rt(){sr.point=wr,Ge.lineEnd()}function ut(Gr,vt){fr.push([Gr,vt]),rr.point(Gr,vt)}function ft(){rr.lineStart(),fr=[]}function Fr(){ut(fr[0][0],fr[0][1]),rr.lineEnd();var Gr=rr.clean(),vt=Ze.result(),wt,Zt=vt.length,sa,Qt,ba;if(fr.pop(),yr.push(fr),fr=null,!!Zt){if(Gr&1){if(Qt=vt[0],(sa=Qt.length-1)>0){for(nr||(Ae.polygonStart(),nr=!0),Ae.lineStart(),wt=0;wt<sa;++wt)Ae.point((ba=Qt[wt])[0],ba[1]);Ae.lineEnd()}return}Zt>1&&Gr&2&&vt.push(vt.pop().concat(vt.shift())),Je.push(vt.filter(us))}}return sr}}function us(O){return O.length>1}function Qs(O,$){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-(($=$.x)[0]<0?$[1]-u-o:u-$[1])}var ot=Ks(function(){return!0},st,Ur,[-s,-u]);function st(O){var $=NaN,he=NaN,le=NaN,Ae;return{lineStart:function(){O.lineStart(),Ae=1},point:function(Ge,Ze){var rr=Ge>0?s:-s,nr=p(Ge-$);p(nr-s)<o?(O.point($,he=(he+Ze)/2>0?u:-u),O.point(le,he),O.lineEnd(),O.lineStart(),O.point(rr,he),O.point(Ge,he),Ae=0):le!==rr&&nr>=s&&(p($-le)<o&&($-=le*o),p(Ge-rr)<o&&(Ge-=rr*o),he=Wt($,he,Ge,Ze),O.point(le,he),O.lineEnd(),O.lineStart(),O.point(rr,he),Ae=0),O.point($=Ge,he=Ze),le=rr},lineEnd:function(){O.lineEnd(),$=he=NaN},clean:function(){return 2-Ae}}}function Wt(O,$,he,le){var Ae,Ge,Ze=A(O-he);return p(Ze)>o?m((A($)*(Ge=b(le))*A(he)-A(le)*(Ae=b($))*A(O))/(Ae*Ge*Ze)):($+le)/2}function Ur(O,$,he,le){var Ae;if(O==null)Ae=he*u,le.point(-s,Ae),le.point(0,Ae),le.point(s,Ae),le.point(s,0),le.point(s,-Ae),le.point(0,-Ae),le.point(-s,-Ae),le.point(-s,0),le.point(-s,Ae);else if(p(O[0]-$[0])>o){var Ge=O[0]<$[0]?s:-s;Ae=he*Ge/2,le.point(-Ge,Ae),le.point(0,Ae),le.point(Ge,Ae)}else le.point($[0],$[1])}function kn(O){var $=b(O),he=6*h,le=$>0,Ae=p($)>o;function Ge(Je,fr,sr,wr){po(wr,O,he,sr,Je,fr)}function Ze(Je,fr){return b(Je)*b(fr)>$}function rr(Je){var fr,sr,wr,Er,lt;return{lineStart:function(){Er=wr=!1,lt=1},point:function(rt,ut){var ft=[rt,ut],Fr,Gr=Ze(rt,ut),vt=le?Gr?0:yr(rt,ut):Gr?yr(rt+(rt<0?s:-s),ut):0;if(!fr&&(Er=wr=Gr)&&Je.lineStart(),Gr!==wr&&(Fr=nr(fr,ft),(!Fr||jt(fr,Fr)||jt(ft,Fr))&&(ft[2]=1)),Gr!==wr)lt=0,Gr?(Je.lineStart(),Fr=nr(ft,fr),Je.point(Fr[0],Fr[1])):(Fr=nr(fr,ft),Je.point(Fr[0],Fr[1],2),Je.lineEnd()),fr=Fr;else if(Ae&&fr&&le^Gr){var wt;!(vt&sr)&&(wt=nr(ft,fr,!0))&&(lt=0,le?(Je.lineStart(),Je.point(wt[0][0],wt[0][1]),Je.point(wt[1][0],wt[1][1]),Je.lineEnd()):(Je.point(wt[1][0],wt[1][1]),Je.lineEnd(),Je.lineStart(),Je.point(wt[0][0],wt[0][1],3)))}Gr&&(!fr||!jt(fr,ft))&&Je.point(ft[0],ft[1]),fr=ft,wr=Gr,sr=vt},lineEnd:function(){wr&&Je.lineEnd(),fr=null},clean:function(){return lt|(Er&&wr)<<1}}}function nr(Je,fr,sr){var wr=be(Je),Er=be(fr),lt=[1,0,0],rt=je(wr,Er),ut=Le(rt,rt),ft=rt[0],Fr=ut-ft*ft;if(!Fr)return!sr&&Je;var Gr=$*ut/Fr,vt=-$*ft/Fr,wt=je(lt,rt),Zt=$e(lt,Gr),sa=$e(rt,vt);er(Zt,sa);var Qt=wt,ba=Le(Zt,Qt),zt=Le(Qt,Qt),En=ba*ba-zt*(Le(Zt,Zt)-1);if(!(En<0)){var Qa=D(En),_a=$e(Qt,(-ba-Qa)/zt);if(er(_a,Zt),_a=ce(_a),!sr)return _a;var jr=Je[0],$t=fr[0],ln=Je[1],Nn=fr[1],xi;$t<jr&&(xi=jr,jr=$t,$t=xi);var Mo=$t-jr,Qi=p(Mo-s)<o,Dl=Qi||Mo<o;if(!Qi&&Nn<ln&&(xi=ln,ln=Nn,Nn=xi),Dl?Qi?ln+Nn>0^_a[1]<(p(_a[0]-jr)<o?ln:Nn):ln<=_a[1]&&_a[1]<=Nn:Mo>s^(jr<=_a[0]&&_a[0]<=$t)){var Ui=$e(Qt,(-ba+Qa)/zt);return er(Ui,Zt),[_a,ce(Ui)]}}}function yr(Je,fr){var sr=le?O:s-O,wr=0;return Je<-sr?wr|=1:Je>sr&&(wr|=2),fr<-sr?wr|=4:fr>sr&&(wr|=8),wr}return Ks(Ze,rr,Ge,le?[0,-O]:[-s,O-s])}function la(O,$,he,le,Ae,Ge){var Ze=O[0],rr=O[1],nr=$[0],yr=$[1],Je=0,fr=1,sr=nr-Ze,wr=yr-rr,Er;if(Er=he-Ze,!(!sr&&Er>0)){if(Er/=sr,sr<0){if(Er<Je)return;Er<fr&&(fr=Er)}else if(sr>0){if(Er>fr)return;Er>Je&&(Je=Er)}if(Er=Ae-Ze,!(!sr&&Er<0)){if(Er/=sr,sr<0){if(Er>fr)return;Er>Je&&(Je=Er)}else if(sr>0){if(Er<Je)return;Er<fr&&(fr=Er)}if(Er=le-rr,!(!wr&&Er>0)){if(Er/=wr,wr<0){if(Er<Je)return;Er<fr&&(fr=Er)}else if(wr>0){if(Er>fr)return;Er>Je&&(Je=Er)}if(Er=Ge-rr,!(!wr&&Er<0)){if(Er/=wr,wr<0){if(Er>fr)return;Er>Je&&(Je=Er)}else if(wr>0){if(Er<Je)return;Er<fr&&(fr=Er)}return Je>0&&(O[0]=Ze+Je*sr,O[1]=rr+Je*wr),fr<1&&($[0]=Ze+fr*sr,$[1]=rr+fr*wr),!0}}}}}var Xa=1e9,Ka=-Xa;function jn(O,$,he,le){function Ae(yr,Je){return O<=yr&&yr<=he&&$<=Je&&Je<=le}function Ge(yr,Je,fr,sr){var wr=0,Er=0;if(yr==null||(wr=Ze(yr,fr))!==(Er=Ze(Je,fr))||nr(yr,Je)<0^fr>0)do sr.point(wr===0||wr===3?O:he,wr>1?le:$);while((wr=(wr+fr+4)%4)!==Er);else sr.point(Je[0],Je[1])}function Ze(yr,Je){return p(yr[0]-O)<o?Je>0?0:3:p(yr[0]-he)<o?Je>0?2:1:p(yr[1]-$)<o?Je>0?1:0:Je>0?3:2}function rr(yr,Je){return nr(yr.x,Je.x)}function nr(yr,Je){var fr=Ze(yr,1),sr=Ze(Je,1);return fr!==sr?fr-sr:fr===0?Je[1]-yr[1]:fr===1?yr[0]-Je[0]:fr===2?yr[1]-Je[1]:Je[0]-yr[0]}return function(yr){var Je=yr,fr=Ii(),sr,wr,Er,lt,rt,ut,ft,Fr,Gr,vt,wt,Zt={point:sa,lineStart:En,lineEnd:Qa,polygonStart:ba,polygonEnd:zt};function sa(jr,$t){Ae(jr,$t)&&Je.point(jr,$t)}function Qt(){for(var jr=0,$t=0,ln=wr.length;$t<ln;++$t)for(var Nn=wr[$t],xi=1,Mo=Nn.length,Qi=Nn[0],Dl,Ui,Fl=Qi[0],As=Qi[1];xi<Mo;++xi)Dl=Fl,Ui=As,Qi=Nn[xi],Fl=Qi[0],As=Qi[1],Ui<=le?As>le&&(Fl-Dl)*(le-Ui)>(As-Ui)*(O-Dl)&&++jr:As<=le&&(Fl-Dl)*(le-Ui)<(As-Ui)*(O-Dl)&&--jr;return jr}function ba(){Je=fr,sr=[],wr=[],wt=!0}function zt(){var jr=Qt(),$t=wt&&jr,ln=(sr=r.merge(sr)).length;($t||ln)&&(yr.polygonStart(),$t&&(yr.lineStart(),Ge(null,null,1,yr),yr.lineEnd()),ln&&Ja(sr,rr,jr,Ge,yr),yr.polygonEnd()),Je=yr,sr=wr=Er=null}function En(){Zt.point=_a,wr&&wr.push(Er=[]),vt=!0,Gr=!1,ft=Fr=NaN}function Qa(){sr&&(_a(lt,rt),ut&&Gr&&fr.rejoin(),sr.push(fr.result())),Zt.point=sa,Gr&&Je.lineEnd()}function _a(jr,$t){var ln=Ae(jr,$t);if(wr&&Er.push([jr,$t]),vt)lt=jr,rt=$t,ut=ln,vt=!1,ln&&(Je.lineStart(),Je.point(jr,$t));else if(ln&&Gr)Je.point(jr,$t);else{var Nn=[ft=Math.max(Ka,Math.min(Xa,ft)),Fr=Math.max(Ka,Math.min(Xa,Fr))],xi=[jr=Math.max(Ka,Math.min(Xa,jr)),$t=Math.max(Ka,Math.min(Xa,$t))];la(Nn,xi,O,$,he,le)?(Gr||(Je.lineStart(),Je.point(Nn[0],Nn[1])),Je.point(xi[0],xi[1]),ln||Je.lineEnd(),wt=!1):ln&&(Je.lineStart(),Je.point(jr,$t),wt=!1)}ft=jr,Fr=$t,Gr=ln}return Zt}}function bl(){var O=0,$=0,he=960,le=500,Ae,Ge,Ze;return Ze={stream:function(rr){return Ae&&Ge===rr?Ae:Ae=jn(O,$,he,le)(Ge=rr)},extent:function(rr){return arguments.length?(O=+rr[0][0],$=+rr[0][1],he=+rr[1][0],le=+rr[1][1],Ae=Ge=null,Ze):[[O,$],[he,le]]}}}var fs=t(),cs,Wi,Ho,_l={sphere:H,point:H,lineStart:vs,lineEnd:H,polygonStart:H,polygonEnd:H};function vs(){_l.point=s0,_l.lineEnd=eu}function eu(){_l.point=_l.lineEnd=H}function s0(O,$){O*=h,$*=h,cs=O,Wi=A($),Ho=b($),_l.point=Gc}function Gc(O,$){O*=h,$*=h;var he=A($),le=b($),Ae=p(O-cs),Ge=b(Ae),Ze=A(Ae),rr=le*Ze,nr=Ho*he-Wi*le*Ge,yr=Wi*he+Ho*le*Ge;fs.add(y(D(rr*rr+nr*nr),yr)),cs=O,Wi=he,Ho=le}function ru(O){return fs.reset(),re(O,_l),+fs}var tu=[null,null],au={type:"LineString",coordinates:tu};function xl(O,$){return tu[0]=O,tu[1]=$,ru(au)}var Oo={Feature:function(O,$){return go(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,le=-1,Ae=he.length;++le<Ae;)if(go(he[le].geometry,$))return!0;return!1}},Uo={Sphere:function(){return!0},Point:function(O,$){return u0(O.coordinates,$)},MultiPoint:function(O,$){for(var he=O.coordinates,le=-1,Ae=he.length;++le<Ae;)if(u0(he[le],$))return!0;return!1},LineString:function(O,$){return Zu(O.coordinates,$)},MultiLineString:function(O,$){for(var he=O.coordinates,le=-1,Ae=he.length;++le<Ae;)if(Zu(he[le],$))return!0;return!1},Polygon:function(O,$){return ds(O.coordinates,$)},MultiPolygon:function(O,$){for(var he=O.coordinates,le=-1,Ae=he.length;++le<Ae;)if(ds(he[le],$))return!0;return!1},GeometryCollection:function(O,$){for(var he=O.geometries,le=-1,Ae=he.length;++le<Ae;)if(go(he[le],$))return!0;return!1}};function go(O,$){return O&&Uo.hasOwnProperty(O.type)?Uo[O.type](O,$):!1}function u0(O,$){return xl(O,$)===0}function Zu(O,$){for(var he,le,Ae,Ge=0,Ze=O.length;Ge<Ze;Ge++){if(le=xl(O[Ge],$),le===0||Ge>0&&(Ae=xl(O[Ge],O[Ge-1]),Ae>0&&he<=Ae&&le<=Ae&&(he+le-Ae)*(1-Math.pow((he-le)/Ae,2))<l*Ae))return!0;he=le}return!1}function ds(O,$){return!!ss(O.map(f0),Yc($))}function f0(O){return O=O.map(Yc),O.pop(),O}function Yc(O){return[O[0]*h,O[1]*h]}function nu(O,$){return(O&&Oo.hasOwnProperty(O.type)?Oo[O.type]:go)(O,$)}function yo(O,$,he){var le=r.range(O,$-o,he).concat($);return function(Ae){return le.map(function(Ge){return[Ae,Ge]})}}function iu(O,$,he){var le=r.range(O,$-o,he).concat($);return function(Ae){return le.map(function(Ge){return[Ge,Ae]})}}function Vc(){var O,$,he,le,Ae,Ge,Ze,rr,nr=10,yr=nr,Je=90,fr=360,sr,wr,Er,lt,rt=2.5;function ut(){return{type:"MultiLineString",coordinates:ft()}}function ft(){return r.range(C(le/Je)*Je,he,Je).map(Er).concat(r.range(C(rr/fr)*fr,Ze,fr).map(lt)).concat(r.range(C($/nr)*nr,O,nr).filter(function(Fr){return p(Fr%Je)>o}).map(sr)).concat(r.range(C(Ge/yr)*yr,Ae,yr).filter(function(Fr){return p(Fr%fr)>o}).map(wr))}return ut.lines=function(){return ft().map(function(Fr){return{type:"LineString",coordinates:Fr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Er(le).concat(lt(Ze).slice(1),Er(he).reverse().slice(1),lt(rr).reverse().slice(1))]}},ut.extent=function(Fr){return arguments.length?ut.extentMajor(Fr).extentMinor(Fr):ut.extentMinor()},ut.extentMajor=function(Fr){return arguments.length?(le=+Fr[0][0],he=+Fr[1][0],rr=+Fr[0][1],Ze=+Fr[1][1],le>he&&(Fr=le,le=he,he=Fr),rr>Ze&&(Fr=rr,rr=Ze,Ze=Fr),ut.precision(rt)):[[le,rr],[he,Ze]]},ut.extentMinor=function(Fr){return arguments.length?($=+Fr[0][0],O=+Fr[1][0],Ge=+Fr[0][1],Ae=+Fr[1][1],$>O&&(Fr=$,$=O,O=Fr),Ge>Ae&&(Fr=Ge,Ge=Ae,Ae=Fr),ut.precision(rt)):[[$,Ge],[O,Ae]]},ut.step=function(Fr){return arguments.length?ut.stepMajor(Fr).stepMinor(Fr):ut.stepMinor()},ut.stepMajor=function(Fr){return arguments.length?(Je=+Fr[0],fr=+Fr[1],ut):[Je,fr]},ut.stepMinor=function(Fr){return arguments.length?(nr=+Fr[0],yr=+Fr[1],ut):[nr,yr]},ut.precision=function(Fr){return arguments.length?(rt=+Fr,sr=yo(Ge,Ae,90),wr=iu($,O,rt),Er=yo(rr,Ze,90),lt=iu(le,he,rt),ut):rt},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ou(){return Vc()()}function Nv(O,$){var he=O[0]*h,le=O[1]*h,Ae=$[0]*h,Ge=$[1]*h,Ze=b(le),rr=A(le),nr=b(Ge),yr=A(Ge),Je=Ze*b(he),fr=Ze*A(he),sr=nr*b(Ae),wr=nr*A(Ae),Er=2*B(D(Y(Ge-le)+Ze*nr*Y(Ae-he))),lt=A(Er),rt=Er?function(ut){var ft=A(ut*=Er)/lt,Fr=A(Er-ut)/lt,Gr=Fr*Je+ft*sr,vt=Fr*fr+ft*wr,wt=Fr*rr+ft*yr;return[y(vt,Gr)*d,y(wt,D(Gr*Gr+vt*vt))*d]}:function(){return[he*d,le*d]};return rt.distance=Er,rt}function wl(O){return O}var c0=t(),hs=t(),Xc,Go,Yo,v0,Zi={point:H,lineStart:H,lineEnd:H,polygonStart:function(){Zi.lineStart=Iv,Zi.lineEnd=Bv},polygonEnd:function(){Zi.lineStart=Zi.lineEnd=Zi.point=H,c0.add(p(hs)),hs.reset()},result:function(){var O=c0/2;return c0.reset(),O}};function Iv(){Zi.point=bo}function bo(O,$){Zi.point=ps,Xc=Yo=O,Go=v0=$}function ps(O,$){hs.add(v0*O-Yo*$),Yo=O,v0=$}function Bv(){ps(Xc,Go)}var _o=1/0,Ml=_o,Al=-_o,Tl=Al,Vo={point:lu,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var O=[[_o,Ml],[Al,Tl]];return Al=Tl=-(Ml=_o=1/0),O}};function lu(O,$){O<_o&&(_o=O),O>Al&&(Al=O),$<Ml&&(Ml=$),$>Tl&&(Tl=$)}var $u=0,su=0,uu=0,kl=0,ms=0,gs=0,Ju=0,Ku=0,Hi=0,Qu,ef,si,Cn,Wn={point:xo,lineStart:fu,lineEnd:d0,polygonStart:function(){Wn.lineStart=jc,Wn.lineEnd=Hv},polygonEnd:function(){Wn.point=xo,Wn.lineStart=fu,Wn.lineEnd=d0},result:function(){var O=Hi?[Ju/Hi,Ku/Hi]:gs?[kl/gs,ms/gs]:uu?[$u/uu,su/uu]:[NaN,NaN];return $u=su=uu=kl=ms=gs=Ju=Ku=Hi=0,O}};function xo(O,$){$u+=O,su+=$,++uu}function fu(){Wn.point=Cl}function Cl(O,$){Wn.point=ys,xo(si=O,Cn=$)}function ys(O,$){var he=O-si,le=$-Cn,Ae=D(he*he+le*le);kl+=Ae*(si+O)/2,ms+=Ae*(Cn+$)/2,gs+=Ae,xo(si=O,Cn=$)}function d0(){Wn.point=xo}function jc(){Wn.point=Ov}function Hv(){h0(Qu,ef)}function Ov(O,$){Wn.point=h0,xo(Qu=si=O,ef=Cn=$)}function h0(O,$){var he=O-si,le=$-Cn,Ae=D(he*he+le*le);kl+=Ae*(si+O)/2,ms+=Ae*(Cn+$)/2,gs+=Ae,Ae=Cn*O-si*$,Ju+=Ae*(si+O),Ku+=Ae*(Cn+$),Hi+=Ae*3,xo(si=O,Cn=$)}function p0(O){this._context=O}p0.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,$){switch(this._point){case 0:{this._context.moveTo(O,$),this._point=1;break}case 1:{this._context.lineTo(O,$);break}default:{this._context.moveTo(O+this._radius,$),this._context.arc(O,$,this._radius,0,c);break}}},result:H};var m0=t(),g0,Wc,Zc,cu,vu,$i={point:H,lineStart:function(){$i.point=rf},lineEnd:function(){g0&&du(Wc,Zc),$i.point=H},polygonStart:function(){g0=!0},polygonEnd:function(){g0=null},result:function(){var O=+m0;return m0.reset(),O}};function rf(O,$){$i.point=du,Wc=cu=O,Zc=vu=$}function du(O,$){cu-=O,vu-=$,m0.add(D(cu*cu+vu*vu)),cu=O,vu=$}function tf(){this._string=[]}tf.prototype={_radius:4.5,_circle:$c(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,$){switch(this._point){case 0:{this._string.push("M",O,",",$),this._point=1;break}case 1:{this._string.push("L",O,",",$);break}default:{this._circle==null&&(this._circle=$c(this._radius)),this._string.push("M",O,",",$,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function $c(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function y0(O,$){var he=4.5,le,Ae;function Ge(Ze){return Ze&&(typeof he=="function"&&Ae.pointRadius(+he.apply(this,arguments)),re(Ze,le(Ae))),Ae.result()}return Ge.area=function(Ze){return re(Ze,le(Zi)),Zi.result()},Ge.measure=function(Ze){return re(Ze,le($i)),$i.result()},Ge.bounds=function(Ze){return re(Ze,le(Vo)),Vo.result()},Ge.centroid=function(Ze){return re(Ze,le(Wn)),Wn.result()},Ge.projection=function(Ze){return arguments.length?(le=Ze==null?(O=null,wl):(O=Ze).stream,Ge):O},Ge.context=function(Ze){return arguments.length?(Ae=Ze==null?($=null,new tf):new p0($=Ze),typeof he!="function"&&Ae.pointRadius(he),Ge):$},Ge.pointRadius=function(Ze){return arguments.length?(he=typeof Ze=="function"?Ze:(Ae.pointRadius(+Ze),+Ze),Ge):he},Ge.projection(O).context($)}function Uv(O){return{stream:Xo(O)}}function Xo(O){return function($){var he=new af;for(var le in O)he[le]=O[le];return he.stream=$,he}}function af(){}af.prototype={constructor:af,point:function(O,$){this.stream.point(O,$)},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 bs(O,$,he){var le=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),le!=null&&O.clipExtent(null),re(he,O.stream(Vo)),$(Vo.result()),le!=null&&O.clipExtent(le),O}function hu(O,$,he){return bs(O,function(le){var Ae=$[1][0]-$[0][0],Ge=$[1][1]-$[0][1],Ze=Math.min(Ae/(le[1][0]-le[0][0]),Ge/(le[1][1]-le[0][1])),rr=+$[0][0]+(Ae-Ze*(le[1][0]+le[0][0]))/2,nr=+$[0][1]+(Ge-Ze*(le[1][1]+le[0][1]))/2;O.scale(150*Ze).translate([rr,nr])},he)}function pu(O,$,he){return hu(O,[[0,0],$],he)}function b0(O,$,he){return bs(O,function(le){var Ae=+$,Ge=Ae/(le[1][0]-le[0][0]),Ze=(Ae-Ge*(le[1][0]+le[0][0]))/2,rr=-Ge*le[0][1];O.scale(150*Ge).translate([Ze,rr])},he)}function jo(O,$,he){return bs(O,function(le){var Ae=+$,Ge=Ae/(le[1][1]-le[0][1]),Ze=-Ge*le[0][0],rr=(Ae-Ge*(le[1][1]+le[0][1]))/2;O.scale(150*Ge).translate([Ze,rr])},he)}var Jc=16,_0=b(30*h);function Kc(O,$){return+$?nf(O,$):x0(O)}function x0(O){return Xo({point:function($,he){$=O($,he),this.stream.point($[0],$[1])}})}function nf(O,$){function he(le,Ae,Ge,Ze,rr,nr,yr,Je,fr,sr,wr,Er,lt,rt){var ut=yr-le,ft=Je-Ae,Fr=ut*ut+ft*ft;if(Fr>4*$&<--){var Gr=Ze+sr,vt=rr+wr,wt=nr+Er,Zt=D(Gr*Gr+vt*vt+wt*wt),sa=B(wt/=Zt),Qt=p(p(wt)-1)<o||p(Ge-fr)<o?(Ge+fr)/2:y(vt,Gr),ba=O(Qt,sa),zt=ba[0],En=ba[1],Qa=zt-le,_a=En-Ae,jr=ft*Qa-ut*_a;(jr*jr/Fr>$||p((ut*Qa+ft*_a)/Fr-.5)>.3||Ze*sr+rr*wr+nr*Er<_0)&&(he(le,Ae,Ge,Ze,rr,nr,zt,En,Qt,Gr/=Zt,vt/=Zt,wt,lt,rt),rt.point(zt,En),he(zt,En,Qt,Gr,vt,wt,yr,Je,fr,sr,wr,Er,lt,rt))}}return function(le){var Ae,Ge,Ze,rr,nr,yr,Je,fr,sr,wr,Er,lt,rt={point:ut,lineStart:ft,lineEnd:Gr,polygonStart:function(){le.polygonStart(),rt.lineStart=vt},polygonEnd:function(){le.polygonEnd(),rt.lineStart=ft}};function ut(sa,Qt){sa=O(sa,Qt),le.point(sa[0],sa[1])}function ft(){fr=NaN,rt.point=Fr,le.lineStart()}function Fr(sa,Qt){var ba=be([sa,Qt]),zt=O(sa,Qt);he(fr,sr,Je,wr,Er,lt,fr=zt[0],sr=zt[1],Je=sa,wr=ba[0],Er=ba[1],lt=ba[2],Jc,le),le.point(fr,sr)}function Gr(){rt.point=ut,le.lineEnd()}function vt(){ft(),rt.point=wt,rt.lineEnd=Zt}function wt(sa,Qt){Fr(Ae=sa,Qt),Ge=fr,Ze=sr,rr=wr,nr=Er,yr=lt,rt.point=Fr}function Zt(){he(fr,sr,Je,wr,Er,lt,Ge,Ze,Ae,rr,nr,yr,Jc,le),rt.lineEnd=Gr,Gr()}return rt}}var w0=Xo({point:function(O,$){this.stream.point(O*h,$*h)}});function M0(O){return Xo({point:function($,he){var le=O($,he);return this.stream.point(le[0],le[1])}})}function Gv(O,$,he,le,Ae){function Ge(Ze,rr){return Ze*=le,rr*=Ae,[$+O*Ze,he-O*rr]}return Ge.invert=function(Ze,rr){return[(Ze-$)/O*le,(he-rr)/O*Ae]},Ge}function A0(O,$,he,le,Ae,Ge){var Ze=b(Ge),rr=A(Ge),nr=Ze*O,yr=rr*O,Je=Ze/O,fr=rr/O,sr=(rr*he-Ze*$)/O,wr=(rr*$+Ze*he)/O;function Er(lt,rt){return lt*=le,rt*=Ae,[nr*lt-yr*rt+$,he-yr*lt-nr*rt]}return Er.invert=function(lt,rt){return[le*(Je*lt-fr*rt+sr),Ae*(wr-fr*lt-Je*rt)]},Er}function Ji(O){return T0(function(){return O})()}function T0(O){var $,he=150,le=480,Ae=250,Ge=0,Ze=0,rr=0,nr=0,yr=0,Je,fr=0,sr=1,wr=1,Er=null,lt=ot,rt=null,ut,ft,Fr,Gr=wl,vt=.5,wt,Zt,sa,Qt,ba;function zt(jr){return sa(jr[0]*h,jr[1]*h)}function En(jr){return jr=sa.invert(jr[0],jr[1]),jr&&[jr[0]*d,jr[1]*d]}zt.stream=function(jr){return Qt&&ba===jr?Qt:Qt=w0(M0(Je)(lt(wt(Gr(ba=jr)))))},zt.preclip=function(jr){return arguments.length?(lt=jr,Er=void 0,_a()):lt},zt.postclip=function(jr){return arguments.length?(Gr=jr,rt=ut=ft=Fr=null,_a()):Gr},zt.clipAngle=function(jr){return arguments.length?(lt=+jr?kn(Er=jr*h):(Er=null,ot),_a()):Er*d},zt.clipExtent=function(jr){return arguments.length?(Gr=jr==null?(rt=ut=ft=Fr=null,wl):jn(rt=+jr[0][0],ut=+jr[0][1],ft=+jr[1][0],Fr=+jr[1][1]),_a()):rt==null?null:[[rt,ut],[ft,Fr]]},zt.scale=function(jr){return arguments.length?(he=+jr,Qa()):he},zt.translate=function(jr){return arguments.length?(le=+jr[0],Ae=+jr[1],Qa()):[le,Ae]},zt.center=function(jr){return arguments.length?(Ge=jr[0]%360*h,Ze=jr[1]%360*h,Qa()):[Ge*d,Ze*d]},zt.rotate=function(jr){return arguments.length?(rr=jr[0]%360*h,nr=jr[1]%360*h,yr=jr.length>2?jr[2]%360*h:0,Qa()):[rr*d,nr*d,yr*d]},zt.angle=function(jr){return arguments.length?(fr=jr%360*h,Qa()):fr*d},zt.reflectX=function(jr){return arguments.length?(sr=jr?-1:1,Qa()):sr<0},zt.reflectY=function(jr){return arguments.length?(wr=jr?-1:1,Qa()):wr<0},zt.precision=function(jr){return arguments.length?(wt=Kc(Zt,vt=jr*jr),_a()):D(vt)},zt.fitExtent=function(jr,$t){return hu(zt,jr,$t)},zt.fitSize=function(jr,$t){return pu(zt,jr,$t)},zt.fitWidth=function(jr,$t){return b0(zt,jr,$t)},zt.fitHeight=function(jr,$t){return jo(zt,jr,$t)};function Qa(){var jr=A0(he,0,0,sr,wr,fr).apply(null,$(Ge,Ze)),$t=(fr?A0:Gv)(he,le-jr[0],Ae-jr[1],sr,wr,fr);return Je=Yt(rr,nr,yr),Zt=kt($,$t),sa=kt(Je,Zt),wt=Kc(Zt,vt),_a()}function _a(){return Qt=ba=null,zt}return function(){return $=O.apply(this,arguments),zt.invert=$.invert&&En,Qa()}}function _s(O){var $=0,he=s/3,le=T0(O),Ae=le($,he);return Ae.parallels=function(Ge){return arguments.length?le($=Ge[0]*h,he=Ge[1]*h):[$*d,he*d]},Ae}function k0(O){var $=b(O);function he(le,Ae){return[le*$,A(Ae)/$]}return he.invert=function(le,Ae){return[le/$,B(Ae*$)]},he}function Qc(O,$){var he=A(O),le=(he+A($))/2;if(p(le)<o)return k0(O);var Ae=1+he*(2*le-he),Ge=D(Ae)/le;function Ze(rr,nr){var yr=D(Ae-2*le*A(nr))/le;return[yr*A(rr*=le),Ge-yr*b(rr)]}return Ze.invert=function(rr,nr){var yr=Ge-nr,Je=y(rr,p(yr))*k(yr);return yr*le<0&&(Je-=s*k(rr)*k(yr)),[Je/le,B((Ae-(rr*rr+yr*yr)*le*le)/(2*le))]},Ze}function Sl(){return _s(Qc).scale(155.424).center([0,33.6442])}function e1(){return Sl().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Yv(O){var $=O.length;return{point:function(he,le){for(var Ae=-1;++Ae<$;)O[Ae].point(he,le)},sphere:function(){for(var he=-1;++he<$;)O[he].sphere()},lineStart:function(){for(var he=-1;++he<$;)O[he].lineStart()},lineEnd:function(){for(var he=-1;++he<$;)O[he].lineEnd()},polygonStart:function(){for(var he=-1;++he<$;)O[he].polygonStart()},polygonEnd:function(){for(var he=-1;++he<$;)O[he].polygonEnd()}}}function Vv(){var O,$,he=e1(),le,Ae=Sl().rotate([154,0]).center([-2,58.5]).parallels([55,65]),Ge,Ze=Sl().rotate([157,0]).center([-3,19.9]).parallels([8,18]),rr,nr,yr={point:function(sr,wr){nr=[sr,wr]}};function Je(sr){var wr=sr[0],Er=sr[1];return nr=null,le.point(wr,Er),nr||(Ge.point(wr,Er),nr)||(rr.point(wr,Er),nr)}Je.invert=function(sr){var wr=he.scale(),Er=he.translate(),lt=(sr[0]-Er[0])/wr,rt=(sr[1]-Er[1])/wr;return(rt>=.12&&rt<.234&<>=-.425&<<-.214?Ae:rt>=.166&&rt<.234&<>=-.214&<<-.115?Ze:he).invert(sr)},Je.stream=function(sr){return O&&$===sr?O:O=Yv([he.stream($=sr),Ae.stream(sr),Ze.stream(sr)])},Je.precision=function(sr){return arguments.length?(he.precision(sr),Ae.precision(sr),Ze.precision(sr),fr()):he.precision()},Je.scale=function(sr){return arguments.length?(he.scale(sr),Ae.scale(sr*.35),Ze.scale(sr),Je.translate(he.translate())):he.scale()},Je.translate=function(sr){if(!arguments.length)return he.translate();var wr=he.scale(),Er=+sr[0],lt=+sr[1];return le=he.translate(sr).clipExtent([[Er-.455*wr,lt-.238*wr],[Er+.455*wr,lt+.238*wr]]).stream(yr),Ge=Ae.translate([Er-.307*wr,lt+.201*wr]).clipExtent([[Er-.425*wr+o,lt+.12*wr+o],[Er-.214*wr-o,lt+.234*wr-o]]).stream(yr),rr=Ze.translate([Er-.205*wr,lt+.212*wr]).clipExtent([[Er-.214*wr+o,lt+.166*wr+o],[Er-.115*wr-o,lt+.234*wr-o]]).stream(yr),fr()},Je.fitExtent=function(sr,wr){return hu(Je,sr,wr)},Je.fitSize=function(sr,wr){return pu(Je,sr,wr)},Je.fitWidth=function(sr,wr){return b0(Je,sr,wr)},Je.fitHeight=function(sr,wr){return jo(Je,sr,wr)};function fr(){return O=$=null,Je}return Je.scale(1070)}function wo(O){return function($,he){var le=b($),Ae=b(he),Ge=O(le*Ae);return[Ge*Ae*A($),Ge*A(he)]}}function Ki(O){return function($,he){var le=D($*$+he*he),Ae=O(le),Ge=A(Ae),Ze=b(Ae);return[y($*Ge,le*Ze),B(le&&he*Ge/le)]}}var ui=wo(function(O){return D(2/(1+O))});ui.invert=Ki(function(O){return 2*B(O/2)});function Xv(){return Ji(ui).scale(124.75).clipAngle(180-.001)}var xs=wo(function(O){return(O=z(O))&&O/A(O)});xs.invert=Ki(function(O){return O});function r1(){return Ji(xs).scale(79.4188).clipAngle(180-.001)}function _i(O,$){return[O,_(P((u+$)/2))]}_i.invert=function(O,$){return[O,2*m(x($))-u]};function t1(){return a1(_i).scale(961/c)}function a1(O){var $=Ji(O),he=$.center,le=$.scale,Ae=$.translate,Ge=$.clipExtent,Ze=null,rr,nr,yr;$.scale=function(fr){return arguments.length?(le(fr),Je()):le()},$.translate=function(fr){return arguments.length?(Ae(fr),Je()):Ae()},$.center=function(fr){return arguments.length?(he(fr),Je()):he()},$.clipExtent=function(fr){return arguments.length?(fr==null?Ze=rr=nr=yr=null:(Ze=+fr[0][0],rr=+fr[0][1],nr=+fr[1][0],yr=+fr[1][1]),Je()):Ze==null?null:[[Ze,rr],[nr,yr]]};function Je(){var fr=s*le(),sr=$(bi($.rotate()).invert([0,0]));return Ge(Ze==null?[[sr[0]-fr,sr[1]-fr],[sr[0]+fr,sr[1]+fr]]:O===_i?[[Math.max(sr[0]-fr,Ze),rr],[Math.min(sr[0]+fr,nr),yr]]:[[Ze,Math.max(sr[1]-fr,rr)],[nr,Math.min(sr[1]+fr,yr)]])}return Je()}function mu(O){return P((u+O)/2)}function n1(O,$){var he=b(O),le=O===$?A(O):_(he/b($))/_(mu($)/mu(O)),Ae=he*M(mu(O),le)/le;if(!le)return _i;function Ge(Ze,rr){Ae>0?rr<-u+o&&(rr=-u+o):rr>u-o&&(rr=u-o);var nr=Ae/M(mu(rr),le);return[nr*A(le*Ze),Ae-nr*b(le*Ze)]}return Ge.invert=function(Ze,rr){var nr=Ae-rr,yr=k(le)*D(Ze*Ze+nr*nr),Je=y(Ze,p(nr))*k(nr);return nr*le<0&&(Je-=s*k(Ze)*k(nr)),[Je/le,2*m(M(Ae/yr,1/le))-u]},Ge}function of(){return _s(n1).scale(109.5).parallels([30,30])}function gu(O,$){return[O,$]}gu.invert=gu;function lf(){return Ji(gu).scale(152.63)}function yu(O,$){var he=b(O),le=O===$?A(O):(he-b($))/($-O),Ae=he/le+O;if(p(le)<o)return gu;function Ge(Ze,rr){var nr=Ae-rr,yr=le*Ze;return[nr*A(yr),Ae-nr*b(yr)]}return Ge.invert=function(Ze,rr){var nr=Ae-rr,yr=y(Ze,p(nr))*k(nr);return nr*le<0&&(yr-=s*k(Ze)*k(nr)),[yr/le,Ae-k(le)*D(Ze*Ze+nr*nr)]},Ge}function jv(){return _s(yu).scale(131.154).center([0,13.9389])}var bu=1.340264,El=-.081106,_u=893e-6,Ll=.003796,ws=D(3)/2,sf=12;function xu(O,$){var he=B(ws*A($)),le=he*he,Ae=le*le*le;return[O*b(he)/(ws*(bu+3*El*le+Ae*(7*_u+9*Ll*le))),he*(bu+El*le+Ae*(_u+Ll*le))]}xu.invert=function(O,$){for(var he=$,le=he*he,Ae=le*le*le,Ge=0,Ze,rr,nr;Ge<sf&&(rr=he*(bu+El*le+Ae*(_u+Ll*le))-$,nr=bu+3*El*le+Ae*(7*_u+9*Ll*le),he-=Ze=rr/nr,le=he*he,Ae=le*le*le,!(p(Ze)<l));++Ge);return[ws*O*(bu+3*El*le+Ae*(7*_u+9*Ll*le))/b(he),B(A(he)/ws)]};function i1(){return Ji(xu).scale(177.158)}function uf(O,$){var he=b($),le=b(O)*he;return[he*A(O)/le,A($)/le]}uf.invert=Ki(m);function o1(){return Ji(uf).scale(144.049).clipAngle(60)}function l1(){var O=1,$=0,he=0,le=1,Ae=1,Ge=0,Ze,rr,nr=null,yr,Je,fr,sr=1,wr=1,Er=Xo({point:function(Gr,vt){var wt=Fr([Gr,vt]);this.stream.point(wt[0],wt[1])}}),lt=wl,rt,ut;function ft(){return sr=O*le,wr=O*Ae,rt=ut=null,Fr}function Fr(Gr){var vt=Gr[0]*sr,wt=Gr[1]*wr;if(Ge){var Zt=wt*Ze-vt*rr;vt=vt*Ze+wt*rr,wt=Zt}return[vt+$,wt+he]}return Fr.invert=function(Gr){var vt=Gr[0]-$,wt=Gr[1]-he;if(Ge){var Zt=wt*Ze+vt*rr;vt=vt*Ze-wt*rr,wt=Zt}return[vt/sr,wt/wr]},Fr.stream=function(Gr){return rt&&ut===Gr?rt:rt=Er(lt(ut=Gr))},Fr.postclip=function(Gr){return arguments.length?(lt=Gr,nr=yr=Je=fr=null,ft()):lt},Fr.clipExtent=function(Gr){return arguments.length?(lt=Gr==null?(nr=yr=Je=fr=null,wl):jn(nr=+Gr[0][0],yr=+Gr[0][1],Je=+Gr[1][0],fr=+Gr[1][1]),ft()):nr==null?null:[[nr,yr],[Je,fr]]},Fr.scale=function(Gr){return arguments.length?(O=+Gr,ft()):O},Fr.translate=function(Gr){return arguments.length?($=+Gr[0],he=+Gr[1],ft()):[$,he]},Fr.angle=function(Gr){return arguments.length?(Ge=Gr%360*h,rr=A(Ge),Ze=b(Ge),ft()):Ge*d},Fr.reflectX=function(Gr){return arguments.length?(le=Gr?-1:1,ft()):le<0},Fr.reflectY=function(Gr){return arguments.length?(Ae=Gr?-1:1,ft()):Ae<0},Fr.fitExtent=function(Gr,vt){return hu(Fr,Gr,vt)},Fr.fitSize=function(Gr,vt){return pu(Fr,Gr,vt)},Fr.fitWidth=function(Gr,vt){return b0(Fr,Gr,vt)},Fr.fitHeight=function(Gr,vt){return jo(Fr,Gr,vt)},Fr}function C0(O,$){var he=$*$,le=he*he;return[O*(.8707-.131979*he+le*(-.013791+le*(.003971*he-.001529*le))),$*(1.007226+he*(.015085+le*(-.044475+.028874*he-.005916*le)))]}C0.invert=function(O,$){var he=$,le=25,Ae;do{var Ge=he*he,Ze=Ge*Ge;he-=Ae=(he*(1.007226+Ge*(.015085+Ze*(-.044475+.028874*Ge-.005916*Ze)))-$)/(1.007226+Ge*(.015085*3+Ze*(-.044475*7+.028874*9*Ge-.005916*11*Ze)))}while(p(Ae)>o&&--le>0);return[O/(.8707+(Ge=he*he)*(-.131979+Ge*(-.013791+Ge*Ge*Ge*(.003971-.001529*Ge)))),he]};function ff(){return Ji(C0).scale(175.295)}function hn(O,$){return[b($)*A(O),A($)]}hn.invert=Ki(B);function Oi(){return Ji(hn).scale(249.5).clipAngle(90+o)}function Ms(O,$){var he=b($),le=1+b(O)*he;return[he*A(O)/le,A($)/le]}Ms.invert=Ki(function(O){return 2*m(O)});function cf(){return Ji(Ms).scale(250).clipAngle(142)}function wu(O,$){return[_(P((u+$)/2)),-O]}wu.invert=function(O,$){return[-$,2*m(x(O))-u]};function S0(){var O=a1(wu),$=O.center,he=O.rotate;return O.center=function(le){return arguments.length?$([-le[1],le[0]]):(le=$(),[le[1],-le[0]])},O.rotate=function(le){return arguments.length?he([le[0],le[1],le.length>2?le[2]+90:90]):(le=he(),[le[0],le[1],le[2]-90])},he([0,0,90]).scale(159.155)}e.geoAlbers=e1,e.geoAlbersUsa=Vv,e.geoArea=J,e.geoAzimuthalEqualArea=Xv,e.geoAzimuthalEqualAreaRaw=ui,e.geoAzimuthalEquidistant=r1,e.geoAzimuthalEquidistantRaw=xs,e.geoBounds=Cr,e.geoCentroid=dn,e.geoCircle=Bo,e.geoClipAntimeridian=ot,e.geoClipCircle=kn,e.geoClipExtent=bl,e.geoClipRectangle=jn,e.geoConicConformal=of,e.geoConicConformalRaw=n1,e.geoConicEqualArea=Sl,e.geoConicEqualAreaRaw=Qc,e.geoConicEquidistant=jv,e.geoConicEquidistantRaw=yu,e.geoContains=nu,e.geoDistance=xl,e.geoEqualEarth=i1,e.geoEqualEarthRaw=xu,e.geoEquirectangular=lf,e.geoEquirectangularRaw=gu,e.geoGnomonic=o1,e.geoGnomonicRaw=uf,e.geoGraticule=Vc,e.geoGraticule10=ou,e.geoIdentity=l1,e.geoInterpolate=Nv,e.geoLength=ru,e.geoMercator=t1,e.geoMercatorRaw=_i,e.geoNaturalEarth1=ff,e.geoNaturalEarth1Raw=C0,e.geoOrthographic=Oi,e.geoOrthographicRaw=hn,e.geoPath=y0,e.geoProjection=Ji,e.geoProjectionMutator=T0,e.geoRotation=bi,e.geoStereographic=cf,e.geoStereographicRaw=Ms,e.geoStream=re,e.geoTransform=Uv,e.geoTransverseMercator=S0,e.geoTransverseMercatorRaw=wu,Object.defineProperty(e,"__esModule",{value:!0})}))});var PU=oe((K8e,qU)=>{"use strict";var FU={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"},xge=new Set(Object.values(FU));qU.exports={usaLocationAbbreviations:xge,usaLocationList:FU}});var RU={};Ua(RU,{COUNTRIES_X:()=>wge});var wge,zU=Oa(()=>{"use strict";wge=[{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 Dv=oe((Q8e,BU)=>{"use strict";var Mge=qt(),{COUNTRIES:Age,createLookup:Tge}=vU(),{area:kge}=kU(),{centroid:Cge}=SU(),{coordAll:Sge}=K3(),{geoBounds:Ege}=ay(),Lge=wm(),e0=Cu(),Dge=hf(),Fge=Qv(),ny=gg(),{usaLocationAbbreviations:qge,usaLocationList:Pge}=PU(),{COUNTRIES_X:Rge}=(zU(),_r(RU)),{lookupAlpha3:zge}=Tge([...Age,...Rge]),Nge={"ISO-3":Lge,"USA-states":Bge,"country names":Ige};function Ige(e){let r=zge(e);return r||(e0.log("Unrecognized country name: "+e+"."),!1)}function Bge(e){e=e.trim();let r=qge.has(e.toUpperCase())?e.toUpperCase():Pge[e.toLowerCase()];return r||(e0.log("Unrecognized US location: "+e+"."),!1)}function Hge(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=Nge[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;e0.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var iy=360;function X8(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 Oge(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,s;switch(a==="RUS"||a==="FJI"?i=function(u){var f;if(X8(u)===null)f=u;else for(f=new Array(u.length),s=0;s<u.length;s++)f[s]=[u[s][0]<0?u[s][0]+iy:u[s][0],u[s][1]];n.push(ny.tester(f))}:a==="ATA"?i=function(u){var f=X8(u);if(f===null)return n.push(ny.tester(u));var c=new Array(u.length+1),d=0;for(s=0;s<u.length;s++)s>f?c[d++]=[u[s][0]+iy,u[s][1]]:s===f?(c[d++]=u[s],c[d++]=[u[s][0],-90]):c[d++]=u[s];var h=ny.tester(c);h.pts.pop(),n.push(h)}:i=function(u){n.push(ny.tester(u))},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 j8(e){var r=e.geojson,t=window.PlotlyGeoAssets||{},a=typeof r=="string"?t[r]:r;return Dge(a)?a:(e0.error("Oops ... something went wrong when fetching "+r),!1)}function Uge(e){var r=e[0].trace,t=j8(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=Fge(f,r.featureidkey||"id").get(),d=a[c];if(d){var h=f.geometry;if(h.type==="Polygon"||h.type==="MultiPolygon"){var p={type:"Feature",id:c,geometry:h,properties:{}};p.properties.ct=Gge(p),isNaN(p.properties.ct[0])&&e0.log(["Location",d.loc,"has no polygon with positive area.","Its centroid could not be computed,","so hover and selection will not work for it."].join(" ")),d.fIn=f,d.fOut=p,n.push(p)}else e0.log(["Location",d.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 s=t.features;for(i=0;i<s.length;i++)l(s[i]);break;case"Feature":l(t);break;default:return e0.warn(["Invalid GeoJSON type",(t.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var u in a)e0.log(["Location *"+u+"*","does not have a matching feature with id-key","*"+r.featureidkey+"*."].join(" "));return n}function Gge(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=kge(o);l>n&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(s=>s.length>0)?[NaN,NaN]:Cge(t).geometry.coordinates}function Yge(e){var r=window.PlotlyGeoAssets||{},t=[];function a(s){return new Promise(function(u,f){Mge.json(s,function(c,d){if(c){delete r[s];var h=c.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(h))}return r[s]=d,u(d)})})}function n(s){return new Promise(function(u,f){var c=0,d=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(d),u(r[s]);if(c>100)return clearInterval(d),f("Unexpected error while fetching from "+s);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 Vge=e=>Z8(W8(e));function W8(e){try{return Sge(e)}catch(r){return[]}}function Z8(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]]=Ege({type:"MultiPoint",coordinates:e});return[r,t,IU([r,a])[1],n]}var Xge=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",NU=(e,r)=>Xge(e,r)?W8(j8(e)):[],jge=(e,r)=>Z8(NU(e,r));function IU([e,r]){return[e,e>r?r+iy:r]}BU.exports={locationToFeature:Hge,feature2polygons:Oge,getTraceGeojson:j8,extractTraceFeature:Uge,fetchTraceGeoData:Yge,boundsOfCoords:Z8,computeBbox:Vge,coordsOf:W8,doesCrossAntiMeridian:X8,fitGeojsonBbox:jge,fitGeojsonCoords:NU,unwrapLonRange:IU,ANTIMERIDIAN_LON_SHIFT:iy}});var $8=oe((e_e,UU)=>{"use strict";var Wge=qt(),Zge=da(),HU=Nt(),OU=Uh(),$ge=OU.stylePoints,Jge=OU.styleText;UU.exports=function(r,t){t&&Kge(r,t)};function Kge(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),$ge(a,t,e),Jge(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=Wge.select(this),o=n.trace,l=o.line||{};i.call(HU.stroke,l.color).call(Zge.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(HU.fill,o.fillcolor)})}});var sy=oe((r_e,VU)=>{"use strict";var GU=qt(),oy=pr(),Qge=X3().getTopojsonFeatures,J8=lU(),ly=Dv(),YU=Rf().findExtremes,Q8=(ja(),_r(tn)).BADNUM,e3e=r3().calcMarkerSize,K8=Si(),r3e=$8();function t3e(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=oy.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===Q8&&GU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=GU.select(this),s=o[0].trace;if(K8.hasLines(s)||s.fill!=="none"){var u=J8.calcTraceToLineCoords(o),f=s.fill!=="none"?J8.makePolygon(u):J8.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}K8.hasMarkers(s)&&l.selectAll("path.point").data(oy.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),K8.hasText(s)&&l.selectAll("g").data(oy.identity).enter().append("g").append("text").each(function(c){i(c,this)}),r3e(e,o)})}function a3e(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(oy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ly.extractTraceFeature(e):Qge(t,n.topojson);for(o=0;o<i;o++){l=e[o];var f=s==="geojson-id"?l.fOut:ly.locationToFeature(s,l.loc,u);l.lonlat=f?f.properties.ct:[Q8,Q8]}}var c={padded:!0},d,h;let p=ly.fitGeojsonBbox(t,a);if(p){let[m,y,b,C]=p;d=[m,b],h=[y,C]}else{for(d=new Array(i),h=new Array(i),o=0;o<i;o++)l=e[o],d[o]=l.lonlat[0],h[o]=l.lonlat[1];c.ppad=e3e(t,i)}t._extremes.lon=YU(a.lonaxis._ax,d,c),t._extremes.lat=YU(a.lataxis._ax,h,c)}function n3e(e,r){let t=ly.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}VU.exports={calcGeoJSON:a3e,fitCoords:n3e,plot:t3e}});var jU=oe((t_e,XU)=>{"use strict";var i3e=Zl(),o3e=(ja(),_r(tn)).BADNUM,l3e=S9(),s3e=pr().fillText,u3e=ap();XU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function c(C){var x=C.lonlat;if(x[0]===o3e||u(x))return 1/0;var _=f(x),M=f([t,a]),A=Math.abs(_[0]-M[0]),k=Math.abs(_[1]-M[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(A*A+k*k)-D,1-3/D)}if(i3e.getClosest(n,c,r),r.index!==!1){var d=n[r.index],h=d.lonlat,p=[o.c2p(h),l.c2p(h)],m=d.mrc||1;r.x0=p[0]-m,r.x1=p[0]+m,r.y0=p[1]-m,r.y1=p[1]+m,r.loc=d.loc,r.lon=h[0],r.lat=h[1];var y={};y[i.geo]={_subplot:s};var b=i._module.formatLabels(d,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=l3e(i,d),r.extraText=f3e(i,d,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function f3e(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?u3e.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function c(d){return d+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):s&&f.push(a.lat+c(t.latLabel)),u&&s3e(r,e,f),f.join("<br>")}});var ZU=oe((a_e,WU)=>{"use strict";WU.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 KU=oe((n_e,JU)=>{"use strict";var $U=Si(),c3e=(ja(),_r(tn)).BADNUM;JU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,d,h=!$U.hasMarkers(l)&&!$U.hasText(l);if(h)return[];if(t===!1)for(d=0;d<a.length;d++)a[d].selected=0;else for(d=0;d<a.length;d++)s=a[d],u=s.lonlat,u[0]!==c3e&&(f=n.c2p(u),c=i.c2p(u),t.contains([f,c],null,d,r)?(o.push({pointNumber:d,lon:u[0],lat:u[1]}),s.selected=1):s.selected=0);return o}});var eG=oe((uy,QU)=>{(function(e,r){r(typeof uy=="object"&&typeof QU!="undefined"?uy:e.d3=e.d3||{})})(uy,(function(e){"use strict";function r(W,se){return W<se?-1:W>se?1:W>=se?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(se,de,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K<J;){var ce=K+J>>>1;W(se[ce],de)<0?K=ce+1:J=ce}return K},right:function(se,de,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K<J;){var ce=K+J>>>1;W(se[ce],de)>0?J=ce:K=ce+1}return K}}}function a(W){return function(se,de){return r(W(se),de)}}var n=t(r),i=n.right,o=n.left;function l(W,se){se==null&&(se=s);for(var de=0,K=W.length-1,J=W[0],ce=new Array(K<0?0:K);de<K;)ce[de]=se(J,J=W[++de]);return ce}function s(W,se){return[W,se]}function u(W,se,de){var K=W.length,J=se.length,ce=new Array(K*J),be,Le,je,er;for(de==null&&(de=s),be=je=0;be<K;++be)for(er=W[be],Le=0;Le<J;++Le,++je)ce[je]=de(er,se[Le]);return ce}function f(W,se){return se<W?-1:se>W?1:se>=W?0:NaN}function c(W){return W===null?NaN:+W}function d(W,se){var de=W.length,K=0,J=-1,ce=0,be,Le,je=0;if(se==null)for(;++J<de;)isNaN(be=c(W[J]))||(Le=be-ce,ce+=Le/++K,je+=Le*(be-ce));else for(;++J<de;)isNaN(be=c(se(W[J],J,W)))||(Le=be-ce,ce+=Le/++K,je+=Le*(be-ce));if(K>1)return je/(K-1)}function h(W,se){var de=d(W,se);return de&&Math.sqrt(de)}function p(W,se){var de=W.length,K=-1,J,ce,be;if(se==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(ce=be=J;++K<de;)(J=W[K])!=null&&(ce>J&&(ce=J),be<J&&(be=J))}else for(;++K<de;)if((J=se(W[K],K,W))!=null&&J>=J)for(ce=be=J;++K<de;)(J=se(W[K],K,W))!=null&&(ce>J&&(ce=J),be<J&&(be=J));return[ce,be]}var m=Array.prototype,y=m.slice,b=m.map;function C(W){return function(){return W}}function x(W){return W}function _(W,se,de){W=+W,se=+se,de=(J=arguments.length)<2?(se=W,W=0,1):J<3?1:+de;for(var K=-1,J=Math.max(0,Math.ceil((se-W)/de))|0,ce=new Array(J);++K<J;)ce[K]=W+K*de;return ce}var M=Math.sqrt(50),A=Math.sqrt(10),k=Math.sqrt(2);function D(W,se,de){var K,J=-1,ce,be,Le;if(se=+se,W=+W,de=+de,W===se&&de>0)return[W];if((K=se<W)&&(ce=W,W=se,se=ce),(Le=P(W,se,de))===0||!isFinite(Le))return[];if(Le>0)for(W=Math.ceil(W/Le),se=Math.floor(se/Le),be=new Array(ce=Math.ceil(se-W+1));++J<ce;)be[J]=(W+J)*Le;else for(W=Math.floor(W*Le),se=Math.ceil(se*Le),be=new Array(ce=Math.ceil(W-se+1));++J<ce;)be[J]=(W-J)/Le;return K&&be.reverse(),be}function P(W,se,de){var K=(se-W)/Math.max(0,de),J=Math.floor(Math.log(K)/Math.LN10),ce=K/Math.pow(10,J);return J>=0?(ce>=M?10:ce>=A?5:ce>=k?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(ce>=M?10:ce>=A?5:ce>=k?2:1)}function z(W,se,de){var K=Math.abs(se-W)/Math.max(0,de),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),ce=K/J;return ce>=M?J*=10:ce>=A?J*=5:ce>=k&&(J*=2),se<W?-J:J}function B(W){return Math.ceil(Math.log(W.length)/Math.LN2)+1}function Y(){var W=x,se=p,de=B;function K(J){var ce,be=J.length,Le,je=new Array(be);for(ce=0;ce<be;++ce)je[ce]=W(J[ce],ce,J);var er=se(je),$e=er[0],ar=er[1],Ie=de(je,$e,ar);Array.isArray(Ie)||(Ie=z($e,ar,Ie),Ie=_(Math.ceil($e/Ie)*Ie,ar,Ie));for(var ir=Ie.length;Ie[0]<=$e;)Ie.shift(),--ir;for(;Ie[ir-1]>ar;)Ie.pop(),--ir;var dr=new Array(ir+1),Ar;for(ce=0;ce<=ir;++ce)Ar=dr[ce]=[],Ar.x0=ce>0?Ie[ce-1]:$e,Ar.x1=ce<ir?Ie[ce]:ar;for(ce=0;ce<be;++ce)Le=je[ce],$e<=Le&&Le<=ar&&dr[i(Ie,Le,0,ir)].push(J[ce]);return dr}return K.value=function(J){return arguments.length?(W=typeof J=="function"?J:C(J),K):W},K.domain=function(J){return arguments.length?(se=typeof J=="function"?J:C([J[0],J[1]]),K):se},K.thresholds=function(J){return arguments.length?(de=typeof J=="function"?J:Array.isArray(J)?C(y.call(J)):C(J),K):de},K}function H(W,se,de){if(de==null&&(de=c),!!(K=W.length)){if((se=+se)<=0||K<2)return+de(W[0],0,W);if(se>=1)return+de(W[K-1],K-1,W);var K,J=(K-1)*se,ce=Math.floor(J),be=+de(W[ce],ce,W),Le=+de(W[ce+1],ce+1,W);return be+(Le-be)*(J-ce)}}function X(W,se,de){return W=b.call(W,c).sort(r),Math.ceil((de-se)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,se,de){return Math.ceil((de-se)/(3.5*h(W)*Math.pow(W.length,-1/3)))}function Q(W,se){var de=W.length,K=-1,J,ce;if(se==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(ce=J;++K<de;)(J=W[K])!=null&&J>ce&&(ce=J)}else for(;++K<de;)if((J=se(W[K],K,W))!=null&&J>=J)for(ce=J;++K<de;)(J=se(W[K],K,W))!=null&&J>ce&&(ce=J);return ce}function ee(W,se){var de=W.length,K=de,J=-1,ce,be=0;if(se==null)for(;++J<de;)isNaN(ce=c(W[J]))?--K:be+=ce;else for(;++J<de;)isNaN(ce=c(se(W[J],J,W)))?--K:be+=ce;if(K)return be/K}function ae(W,se){var de=W.length,K=-1,J,ce=[];if(se==null)for(;++K<de;)isNaN(J=c(W[K]))||ce.push(J);else for(;++K<de;)isNaN(J=c(se(W[K],K,W)))||ce.push(J);return H(ce.sort(r),.5)}function re(W){for(var se=W.length,de,K=-1,J=0,ce,be;++K<se;)J+=W[K].length;for(ce=new Array(J);--se>=0;)for(be=W[se],de=be.length;--de>=0;)ce[--J]=be[de];return ce}function ie(W,se){var de=W.length,K=-1,J,ce;if(se==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(ce=J;++K<de;)(J=W[K])!=null&&ce>J&&(ce=J)}else for(;++K<de;)if((J=se(W[K],K,W))!=null&&J>=J)for(ce=J;++K<de;)(J=se(W[K],K,W))!=null&&ce>J&&(ce=J);return ce}function ue(W,se){for(var de=se.length,K=new Array(de);de--;)K[de]=W[se[de]];return K}function xe(W,se){if(de=W.length){var de,K=0,J=0,ce,be=W[J];for(se==null&&(se=r);++K<de;)(se(ce=W[K],be)<0||se(be,be)!==0)&&(be=ce,J=K);if(se(be,be)===0)return J}}function Ee(W,se,de){for(var K=(de==null?W.length:de)-(se=se==null?0:+se),J,ce;K;)ce=Math.random()*K--|0,J=W[K+se],W[K+se]=W[ce+se],W[ce+se]=J;return W}function Re(W,se){var de=W.length,K=-1,J,ce=0;if(se==null)for(;++K<de;)(J=+W[K])&&(ce+=J);else for(;++K<de;)(J=+se(W[K],K,W))&&(ce+=J);return ce}function Ne(W){if(!(ce=W.length))return[];for(var se=-1,de=ie(W,ke),K=new Array(de);++se<de;)for(var J=-1,ce,be=K[se]=new Array(ce);++J<ce;)be[J]=W[J][se];return K}function ke(W){return W.length}function We(){return Ne(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=u,e.descending=f,e.deviation=h,e.extent=p,e.histogram=Y,e.thresholdFreedmanDiaconis=X,e.thresholdScott=N,e.thresholdSturges=B,e.max=Q,e.mean=ee,e.median=ae,e.merge=re,e.min=ie,e.pairs=l,e.permute=ue,e.quantile=H,e.range=_,e.scan=xe,e.shuffle=Ee,e.sum=Re,e.ticks=D,e.tickIncrement=P,e.tickStep=z,e.transpose=Ne,e.variance=d,e.zip=We,Object.defineProperty(e,"__esModule",{value:!0})}))});var tG=oe((fy,rG)=>{(function(e,r){typeof fy=="object"&&typeof rG!="undefined"?r(fy,ay(),eG()):r(e.d3=e.d3||{},e.d3,e.d3)})(fy,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,c=Math.min,d=Math.pow,h=Math.round,p=Math.sign||function(T){return T>0?1:T<0?-1:0},m=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,M=x/4,A=Math.SQRT1_2,k=N(2),D=N(x),P=x*2,z=180/x,B=x/180;function Y(T){return T?T/Math.sin(T):1}function H(T){return T>1?_:T<-1?-_:Math.asin(T)}function X(T){return T>1?0:T<-1?x:Math.acos(T)}function N(T){return T>0?Math.sqrt(T):0}function Q(T){return T=l(2*T),(T-1)/(T+1)}function ee(T){return(l(T)-l(-T))/2}function ae(T){return(l(T)+l(-T))/2}function re(T){return u(T+N(T*T+1))}function ie(T){return u(T+N(T*T-1))}function ue(T){var E=y(T/2),q=2*u(o(T/2))/(E*E);function R(G,U){var j=o(G),ve=o(U),pe=m(U),fe=ve*j,me=-((1-fe?u((1+fe)/2)/(1-fe):-.5)+q/(1+fe));return[me*ve*m(G),me*pe]}return R.invert=function(G,U){var j=N(G*G+U*U),ve=-T/2,pe=50,fe;if(!j)return[0,0];do{var me=ve/2,we=o(me),De=m(me),He=De/we,Ke=-u(a(we));ve-=fe=(2/He*Ke-q*He-j)/(-Ke/(De*De)+1-q/(2*we*we))*(we<0?.7:1)}while(a(fe)>b&&--pe>0);var ur=m(ve);return[i(G*ur,j*o(ve)),H(U*ur/j)]},R}function xe(){var T=_,E=r.geoProjectionMutator(ue),q=E(T);return q.radius=function(R){return arguments.length?E(T=R*B):T*z},q.scale(179.976).clipAngle(147)}function Ee(T,E){var q=o(E),R=Y(X(q*o(T/=2)));return[2*q*m(T)*R,m(E)*R]}Ee.invert=function(T,E){if(!(T*T+4*E*E>x*x+b)){var q=T,R=E,G=25;do{var U=m(q),j=m(q/2),ve=o(q/2),pe=m(R),fe=o(R),me=m(2*R),we=pe*pe,De=fe*fe,He=j*j,Ke=1-De*ve*ve,ur=Ke?X(fe*ve)*N(Tr=1/Ke):Tr=0,Tr,Kr=2*ur*fe*j-T,ct=ur*pe-E,dt=Tr*(De*He+ur*fe*ve*we),mt=Tr*(.5*U*me-ur*2*pe*j),bt=Tr*.25*(me*j-ur*pe*De*U),fa=Tr*(we*ve+ur*He*fe),La=mt*bt-fa*dt;if(!La)break;var Vt=(ct*mt-Kr*fa)/La,en=(Kr*bt-ct*dt)/La;q-=Vt,R-=en}while((a(Vt)>b||a(en)>b)&&--G>0);return[q,R]}};function Re(){return r.geoProjection(Ee).scale(152.63)}function Ne(T){var E=m(T),q=o(T),R=T>=0?1:-1,G=y(R*T),U=(1+E-q)/2;function j(ve,pe){var fe=o(pe),me=o(ve/=2);return[(1+fe)*m(ve),(R*pe>-i(me,G)-.001?0:-R*10)+U+m(pe)*q-(1+fe)*E*me]}return j.invert=function(ve,pe){var fe=0,me=0,we=50;do{var De=o(fe),He=m(fe),Ke=o(me),ur=m(me),Tr=1+Ke,Kr=Tr*He-ve,ct=U+ur*q-Tr*E*De-pe,dt=Tr*De/2,mt=-He*ur,bt=E*Tr*He/2,fa=q*Ke+E*De*ur,La=mt*bt-fa*dt,Vt=(ct*mt-Kr*fa)/La/2,en=(Kr*bt-ct*dt)/La;a(en)>2&&(en/=2),fe-=Vt,me-=en}while((a(Vt)>b||a(en)>b)&&--we>0);return R*me>-i(o(fe),G)-.001?[fe*2,me]:null},j}function ke(){var T=20*B,E=T>=0?1:-1,q=y(E*T),R=r.geoProjectionMutator(Ne),G=R(T),U=G.stream;return G.parallel=function(j){return arguments.length?(q=y((E=(T=j*B)>=0?1:-1)*T),R(T)):T*z},G.stream=function(j){var ve=G.rotate(),pe=U(j),fe=(G.rotate([0,0]),U(j)),me=G.precision();return G.rotate(ve),pe.sphere=function(){fe.polygonStart(),fe.lineStart();for(var we=E*-180;E*we<180;we+=E*90)fe.point(we,E*90);if(T)for(;E*(we-=3*E*me)>=-180;)fe.point(we,E*-i(o(we*B/2),q)*z);fe.lineEnd(),fe.polygonEnd()},pe},G.scale(218.695).center([0,28.0974])}function We(T,E){var q=y(E/2),R=N(1-q*q),G=1+R*o(T/=2),U=m(T)*R/G,j=q/G,ve=U*U,pe=j*j;return[4/3*U*(3+ve-3*pe),4/3*j*(3+3*ve-pe)]}We.invert=function(T,E){if(T*=3/8,E*=3/8,!T&&a(E)>1)return null;var q=T*T,R=E*E,G=1+q+R,U=N((G-N(G*G-4*E*E))/2),j=H(U)/3,ve=U?ie(a(E/U))/3:re(a(T))/3,pe=o(j),fe=ae(ve),me=fe*fe-pe*pe;return[p(T)*2*i(ee(ve)*pe,.25-me),p(E)*2*i(fe*m(j),.25+me)]};function W(){return r.geoProjection(We).scale(66.1603)}var se=N(8),de=u(1+k);function K(T,E){var q=a(E);return q<M?[T,u(y(M+E/2))]:[T*o(q)*(2*k-1/m(q)),p(E)*(2*k*(q-M)-u(y(q/2)))]}K.invert=function(T,E){if((U=a(E))<de)return[T,2*n(l(E))-_];var q=M,R=25,G,U;do{var j=o(q/2),ve=y(q/2);q-=G=(se*(q-M)-u(ve)-U)/(se-j*j/(2*ve))}while(a(G)>C&&--R>0);return[T/(o(q)*(se-1/m(q))),p(E)*q]};function J(){return r.geoProjection(K).scale(112.314)}function ce(T){var E=2*x/T;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var j=i(U[1],U[0]),ve=N(U[0]*U[0]+U[1]*U[1]),pe=E*h((j-_)/E)+_,fe=i(m(j-=pe),2-o(j));j=pe+H(x/ve*m(fe))-fe,U[0]=ve*o(j),U[1]=ve*m(j)}return U}return q.invert=function(R,G){var U=N(R*R+G*G);if(U>_){var j=i(G,R),ve=E*h((j-_)/E)+_,pe=j>ve?-1:1,fe=U*o(ve-j),me=1/y(pe*X((fe-x)/N(x*(x-2*fe)+U*U)));j=ve+2*n((me+pe*N(me*me-3))/3),R=U*o(j),G=U*m(j)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function be(){var T=5,E=r.geoProjectionMutator(ce),q=E(T),R=q.stream,G=.01,U=-o(G*B),j=m(G*B);return q.lobes=function(ve){return arguments.length?E(T=+ve):T},q.stream=function(ve){var pe=q.rotate(),fe=R(ve),me=(q.rotate([0,0]),R(ve));return q.rotate(pe),fe.sphere=function(){me.polygonStart(),me.lineStart();for(var we=0,De=360/T,He=2*x/T,Ke=90-180/T,ur=_;we<T;++we,Ke-=De,ur-=He)me.point(i(j*o(ur),U)*z,H(j*m(ur))*z),Ke<-90?(me.point(-90,-180-Ke-G),me.point(-90,-180-Ke+G)):(me.point(90,Ke+G),me.point(90,Ke-G));me.lineEnd(),me.polygonEnd()},fe},q.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function Le(T,E){if(arguments.length<2&&(E=T),E===1)return r.geoAzimuthalEqualAreaRaw;if(E===1/0)return je;function q(R,G){var U=r.geoAzimuthalEqualAreaRaw(R/E,G);return U[0]*=T,U}return q.invert=function(R,G){var U=r.geoAzimuthalEqualAreaRaw.invert(R/T,G);return U[0]*=E,U},q}function je(T,E){return[T*o(E)/o(E/=2),2*m(E)]}je.invert=function(T,E){var q=2*H(E/2);return[T*o(q/2)/o(q),q]};function er(){var T=2,E=r.geoProjectionMutator(Le),q=E(T);return q.coefficient=function(R){return arguments.length?E(T=+R):T},q.scale(169.529)}function $e(T,E,q){var R=100,G,U,j;q=q===void 0?0:+q,E=+E;do U=T(q),j=T(q+b),U===j&&(j=U+b),q-=G=-1*b*(U-E)/(U-j);while(R-- >0&&a(G)>b);return R<0?NaN:q}function ar(T,E,q){return E===void 0&&(E=40),q===void 0&&(q=C),function(R,G,U,j){var ve,pe,fe;U=U===void 0?0:+U,j=j===void 0?0:+j;for(var me=0;me<E;me++){var we=T(U,j),De=we[0]-R,He=we[1]-G;if(a(De)<q&&a(He)<q)break;var Ke=De*De+He*He;if(Ke>ve){U-=pe/=2,j-=fe/=2;continue}ve=Ke;var ur=(U>0?-1:1)*q,Tr=(j>0?-1:1)*q,Kr=T(U+ur,j),ct=T(U,j+Tr),dt=(Kr[0]-we[0])/ur,mt=(Kr[1]-we[1])/ur,bt=(ct[0]-we[0])/Tr,fa=(ct[1]-we[1])/Tr,La=fa*dt-mt*bt,Vt=(a(La)<.5?.5:1)/La;if(pe=(He*bt-De*fa)*Vt,fe=(De*mt-He*dt)*Vt,U+=pe,j+=fe,a(pe)<q&&a(fe)<q)break}return[U,j]}}function Ie(){var T=Le(1.68,2),E=1.4,q=12;function R(G,U){if(G+U<-E){var j=(G-U+1.6)*(G+U+E)/8;G+=j,U-=.8*j*m(U+x/2)}var ve=T(G,U),pe=(1-o(G*U))/q;return ve[1]<0&&(ve[0]*=1+pe),ve[1]>0&&(ve[1]*=1+pe/1.5*ve[0]*ve[0]),ve}return R.invert=ar(R),R}function ir(){return r.geoProjection(Ie()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function dr(T,E){var q=T*m(E),R=30,G;do E-=G=(E+m(E)-q)/(1+o(E));while(a(G)>b&&--R>0);return E/2}function Ar(T,E,q){function R(G,U){return[T*G*o(U=dr(q,U)),E*m(U)]}return R.invert=function(G,U){return U=H(U/E),[G/(T*o(U)),H((2*U+m(2*U))/q)]},R}var Qe=Ar(k/_,k,x);function mr(){return r.geoProjection(Qe).scale(169.529)}var Pr=2.00276,Te=1.11072;function Oe(T,E){var q=dr(x,E);return[Pr*T/(1/o(E)+Te/o(q)),(E+k*m(q))/Pr]}Oe.invert=function(T,E){var q=Pr*E,R=E<0?-M:M,G=25,U,j;do j=q-k*m(R),R-=U=(m(2*R)+2*R-x*m(j))/(2*o(2*R)+2+x*o(j)*k*o(R));while(a(U)>b&&--G>0);return j=q-k*m(R),[T*(1/o(j)+Te/o(R))/Pr,j]};function xr(){return r.geoProjection(Oe).scale(160.857)}function Rr(T){var E=0,q=r.geoProjectionMutator(T),R=q(E);return R.parallel=function(G){return arguments.length?q(E=G*B):E*z},R}function zr(T,E){return[T*o(E),E]}zr.invert=function(T,E){return[T/o(E),E]};function Ce(){return r.geoProjection(zr).scale(152.63)}function Ue(T){if(!T)return zr;var E=1/y(T);function q(R,G){var U=E+T-G,j=U&&R*o(G)/U;return[U*m(j),E-U*o(j)]}return q.invert=function(R,G){var U=N(R*R+(G=E-G)*G),j=E+T-U;return[U/o(j)*i(R,G),j]},q}function cr(){return Rr(Ue).scale(123.082).center([0,26.1441]).parallel(45)}function Mr(T){function E(q,R){var G=_-R,U=G&&q*T*m(G)/G;return[G*m(U)/T,_-G*o(U)]}return E.invert=function(q,R){var G=q*T,U=_-R,j=N(G*G+U*U),ve=i(G,U);return[(j?j/m(j):1)*ve/T,_-j]},E}function hr(){var T=.5,E=r.geoProjectionMutator(Mr),q=E(T);return q.fraction=function(R){return arguments.length?E(T=+R):T},q.scale(158.837)}var kr=Ar(1,4/x,x);function Lr(){return r.geoProjection(kr).scale(152.63)}function Br(T,E,q,R,G,U){var j=o(U),ve;if(a(T)>1||a(U)>1)ve=X(q*G+E*R*j);else{var pe=m(T/2),fe=m(U/2);ve=2*H(N(pe*pe+E*R*fe*fe))}return a(ve)>b?[ve,i(R*m(U),E*G-q*R*j)]:[0,0]}function et(T,E,q){return X((T*T+E*E-q*q)/(2*T*E))}function lr(T){return T-2*x*s((T+x)/(2*x))}function Cr(T,E,q){for(var R=[[T[0],T[1],m(T[1]),o(T[1])],[E[0],E[1],m(E[1]),o(E[1])],[q[0],q[1],m(q[1]),o(q[1])]],G=R[2],U,j=0;j<3;++j,G=U)U=R[j],G.v=Br(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ve=et(R[0].v[0],R[2].v[0],R[1].v[0]),pe=et(R[0].v[0],R[1].v[0],R[2].v[0]),fe=x-ve;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var me=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ve),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*m(ve))];function we(De,He){var Ke=m(He),ur=o(He),Tr=new Array(3),Kr;for(Kr=0;Kr<3;++Kr){var ct=R[Kr];if(Tr[Kr]=Br(He-ct[1],ct[3],ct[2],ur,Ke,De-ct[0]),!Tr[Kr][0])return ct.point;Tr[Kr][1]=lr(Tr[Kr][1]-ct.v[1])}var dt=me.slice();for(Kr=0;Kr<3;++Kr){var mt=Kr==2?0:Kr+1,bt=et(R[Kr].v[0],Tr[Kr][0],Tr[mt][0]);Tr[Kr][1]<0&&(bt=-bt),Kr?Kr==1?(bt=pe-bt,dt[0]-=Tr[Kr][0]*o(bt),dt[1]-=Tr[Kr][0]*m(bt)):(bt=fe-bt,dt[0]+=Tr[Kr][0]*o(bt),dt[1]+=Tr[Kr][0]*m(bt)):(dt[0]+=Tr[Kr][0]*o(bt),dt[1]-=Tr[Kr][0]*m(bt))}return dt[0]/=3,dt[1]/=3,dt}return we}function tr(T){return T[0]*=B,T[1]*=B,T}function qr(){return Zr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Zr(T,E,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[T,E,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),j=Cr(tr(U(T)),tr(U(E)),tr(U(q)));j.invert=ar(j);var ve=r.geoProjection(j).rotate(G),pe=ve.center;return delete ve.rotate,ve.center=function(fe){return arguments.length?pe(U(fe)):U.invert(pe())},ve.clipAngle(90)}function Or(T,E){var q=N(1-m(E));return[2/D*T*q,D*(1-q)]}Or.invert=function(T,E){var q=(q=E/D-1)*q;return[q>0?T*N(x/q)/2:0,H(1-q)]};function Xr(){return r.geoProjection(Or).scale(95.6464).center([0,30])}function Me(T){var E=y(T);function q(R,G){return[R,(R?R/m(R):1)*(m(G)*o(R)-E*o(G))]}return q.invert=E?function(R,G){R&&(G*=m(R)/R);var U=o(R);return[R,2*i(N(U*U+E*E-G*G)-U,E-G)]}:function(R,G){return[R,H(R?G*y(R)/R:G)]},q}function Be(){return Rr(Me).scale(249.828).clipAngle(90)}var or=N(3);function vr(T,E){return[or*T*(2*o(2*E/3)-1)/D,or*D*m(E/3)]}vr.invert=function(T,E){var q=3*H(E/(or*D));return[D*T/(or*(2*o(2*q/3)-1)),q]};function Ft(){return r.geoProjection(vr).scale(156.19)}function Kt(T){var E=o(T);function q(R,G){return[R*E,m(G)/E]}return q.invert=function(R,G){return[R/E,H(G*E)]},q}function ua(){return Rr(Kt).parallel(38.58).scale(195.044)}function ga(T){var E=o(T);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 Ut(){return Rr(ga).scale(124.75)}function Rt(T,E){var q=N(8/(3*x));return[q*T*(1-a(E)/x),q*E]}Rt.invert=function(T,E){var q=N(8/(3*x)),R=E/q;return[T/(q*(1-a(R)/x)),R]};function na(){return r.geoProjection(Rt).scale(165.664)}function Gt(T,E){var q=N(4-3*m(a(E)));return[2/N(6*x)*T*q,p(E)*N(2*x/3)*(2-q)]}Gt.invert=function(T,E){var q=2-a(E)/N(2*x/3);return[T*N(6*x)/(2*q),p(E)*H((4-q*q)/3)]};function Ma(){return r.geoProjection(Gt).scale(165.664)}function Ca(T,E){var q=N(x*(4+x));return[2/q*T*(1+N(1-4*E*E/(x*x))),4/q*E]}Ca.invert=function(T,E){var q=N(x*(4+x))/2;return[T*q/(1+N(1-E*E*(4+x)/(4*x))),E*q/2]};function An(){return r.geoProjection(Ca).scale(180.739)}function cn(T,E){var q=(2+_)*m(E);E/=2;for(var R=0,G=1/0;R<10&&a(G)>b;R++){var U=o(E);E-=G=(E+m(E)*(U+2)-q)/(2*U*(1+U))}return[2/N(x*(4+x))*T*(1+o(E)),2*N(x/(4+x))*m(E)]}cn.invert=function(T,E){var q=E*N((4+x)/x)/2,R=H(q),G=o(R);return[T/(2/N(x*(4+x))*(1+G)),H((R+q*(G+2))/(2+_))]};function Sa(){return r.geoProjection(cn).scale(180.739)}function za(T,E){return[T*(1+o(E))/N(2+x),2*E/N(2+x)]}za.invert=function(T,E){var q=N(2+x),R=E*q/2;return[q*T/(1+o(R)),R]};function Na(){return r.geoProjection(za).scale(173.044)}function Ea(T,E){for(var q=(1+_)*m(E),R=0,G=1/0;R<10&&a(G)>b;R++)E-=G=(E+m(E)-q)/(1+o(E));return q=N(2+x),[T*(1+o(E))/q,2*E/q]}Ea.invert=function(T,E){var q=1+_,R=N(q/2);return[T*2*R/(1+o(E*=R)),H((E+m(E))/q)]};function vn(){return r.geoProjection(Ea).scale(173.044)}var Ia=3+2*k;function dn(T,E){var q=m(T/=2),R=o(T),G=N(o(E)),U=o(E/=2),j=m(E)/(U+k*R*G),ve=N(2/(1+j*j)),pe=N((k*U+(R+q)*G)/(k*U+(R-q)*G));return[Ia*(ve*(pe-1/pe)-2*u(pe)),Ia*(ve*j*(pe+1/pe)-2*n(j))]}dn.invert=function(T,E){if(!(U=We.invert(T/1.2,E*1.065)))return null;var q=U[0],R=U[1],G=20,U;T/=Ia,E/=Ia;do{var j=q/2,ve=R/2,pe=m(j),fe=o(j),me=m(ve),we=o(ve),De=o(R),He=N(De),Ke=me/(we+k*fe*He),ur=Ke*Ke,Tr=N(2/(1+ur)),Kr=k*we+(fe+pe)*He,ct=k*we+(fe-pe)*He,dt=Kr/ct,mt=N(dt),bt=mt-1/mt,fa=mt+1/mt,La=Tr*bt-2*u(mt)-T,Vt=Tr*Ke*fa-2*n(Ke)-E,en=me&&A*He*pe*ur/me,In=(k*fe*we+He)/(2*(we+k*fe*He)*(we+k*fe*He)*He),Gi=-.5*Ke*Tr*Tr*Tr,ql=Gi*en,Mu=Gi*In,Qn=(Qn=2*we+k*He*(fe-pe))*Qn*mt,ei=(k*fe*we*He+De)/Qn,To=-(k*pe*me)/(He*Qn),Pl=bt*ql-2*ei/mt+Tr*(ei+ei/dt),Rl=bt*Mu-2*To/mt+Tr*(To+To/dt),zl=Ke*fa*ql-2*en/(1+ur)+Tr*fa*en+Tr*Ke*(ei-ei/dt),Ts=Ke*fa*Mu-2*In/(1+ur)+Tr*fa*In+Tr*Ke*(To-To/dt),Wo=Rl*zl-Ts*Pl;if(!Wo)break;var Au=(Vt*Rl-La*Ts)/Wo,D0=(La*zl-Vt*Pl)/Wo;q-=Au,R=f(-_,c(_,R-D0))}while((a(Au)>b||a(D0)>b)&&--G>0);return a(a(R)-_)<b?[0,R]:G&&[q,R]};function Dr(){return r.geoProjection(dn).scale(62.5271)}var kt=o(35*B);function pt(T,E){var q=y(E/2);return[T*kt*N(1-q*q),(1+kt)*q]}pt.invert=function(T,E){var q=E/(1+kt);return[T&&T/(kt*N(1-q*q)),2*n(q)]};function Yt(){return r.geoProjection(pt).scale(137.152)}function Ba(T,E){var q=E/2,R=o(q);return[2*T/D*o(E)*R*R,D*y(q)]}Ba.invert=function(T,E){var q=n(E/D),R=o(q),G=2*q;return[T*D/2/(o(G)*R*R),G]};function Tn(){return r.geoProjection(Ba).scale(135.264)}function ya(T){var E=1-T,q=U(x,0)[0]-U(-x,0)[0],R=U(0,_)[1]-U(0,-_)[1],G=N(2*R/q);function U(pe,fe){var me=o(fe),we=m(fe);return[me/(E+T*me)*pe,E*fe+T*we]}function j(pe,fe){var me=U(pe,fe);return[me[0]*G,me[1]/G]}function ve(pe){return j(0,pe)[1]}return j.invert=function(pe,fe){var me=$e(ve,fe),we=pe/G*(T+E/o(me));return[we,me]},j}function bi(){var T=.5,E=r.geoProjectionMutator(ya),q=E(T);return q.alpha=function(R){return arguments.length?E(T=+R):T},q.scale(168.725)}function po(T){return[T[0]/2,H(y(T[1]/2*B))*z]}function Ni(T){return[T[0]*2,2*n(m(T[1]*B))*z]}function Bo(T){T==null&&(T=r.geoOrthographic);var E=T(),q=r.geoEquirectangular().scale(z).precision(0).clipAngle(null).translate([0,0]);function R(U){return E(po(U))}E.invert&&(R.invert=function(U){return Ni(E.invert(U))}),R.stream=function(U){var j=E.stream(U),ve=q.stream({point:function(pe,fe){j.point(pe/2,H(y(-fe/2*B))*z)},lineStart:function(){j.lineStart()},lineEnd:function(){j.lineEnd()},polygonStart:function(){j.polygonStart()},polygonEnd:function(){j.polygonEnd()}});return ve.sphere=j.sphere,ve};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(po(U)),R):Ni(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 Ii(T,E){var q=2*x/E,R=T*T;function G(U,j){var ve=r.geoAzimuthalEquidistantRaw(U,j),pe=ve[0],fe=ve[1],me=pe*pe+fe*fe;if(me>R){var we=N(me),De=i(fe,pe),He=q*h(De/q),Ke=De-He,ur=T*o(Ke),Tr=(T*m(Ke)-Ke*m(ur))/(_-ur),Kr=jt(Ke,Tr),ct=(x-T)/Bi(Kr,ur,x);pe=we;var dt=50,mt;do pe-=mt=(T+Bi(Kr,ur,pe)*ct-we)/(Kr(pe)*ct);while(a(mt)>b&&--dt>0);fe=Ke*m(pe),pe<_&&(fe-=Tr*(pe-_));var bt=m(He),fa=o(He);ve[0]=pe*fa-fe*bt,ve[1]=pe*bt+fe*fa}return ve}return G.invert=function(U,j){var ve=U*U+j*j;if(ve>R){var pe=N(ve),fe=i(j,U),me=q*h(fe/q),we=fe-me;U=pe*o(we),j=pe*m(we);for(var De=U-_,He=m(U),Ke=j/He,ur=U<_?1/0:0,Tr=10;;){var Kr=T*m(Ke),ct=T*o(Ke),dt=m(ct),mt=_-ct,bt=(Kr-Ke*dt)/mt,fa=jt(Ke,bt);if(a(ur)<C||!--Tr)break;Ke-=ur=(Ke*He-bt*De-j)/(He-De*2*(mt*(ct+Ke*Kr*o(ct)-dt)-Kr*(Kr-Ke*dt))/(mt*mt))}pe=T+Bi(fa,ct,U)*(x-T)/Bi(fa,ct,x),fe=me+Ke,U=pe*o(fe),j=pe*m(fe)}return r.geoAzimuthalEquidistantRaw.invert(U,j)},G}function jt(T,E){return function(q){var R=T*o(q);return q<_&&(R-=E),N(1+R*R)}}function Bi(T,E,q){for(var R=50,G=(q-E)/R,U=T(E)+T(q),j=1,ve=E;j<R;++j)U+=2*T(ve+=G);return U*.5*G}function Ja(){var T=6,E=30*B,q=o(E),R=m(E),G=r.geoProjectionMutator(Ii),U=G(E,T),j=U.stream,ve=.01,pe=-o(ve*B),fe=m(ve*B);return U.radius=function(me){return arguments.length?(q=o(E=me*B),R=m(E),G(E,T)):E*z},U.lobes=function(me){return arguments.length?G(E,T=+me):T},U.stream=function(me){var we=U.rotate(),De=j(me),He=(U.rotate([0,0]),j(me));return U.rotate(we),De.sphere=function(){He.polygonStart(),He.lineStart();for(var Ke=0,ur=2*x/T,Tr=0;Ke<T;++Ke,Tr-=ur)He.point(i(fe*o(Tr),pe)*z,H(fe*m(Tr))*z),He.point(i(R*o(Tr-ur/2),q)*z,H(R*m(Tr-ur/2))*z);He.lineEnd(),He.polygonEnd()},De},U.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function oi(T,E,q,R,G,U,j,ve){arguments.length<8&&(ve=0);function pe(fe,me){if(!me)return[T*fe/x,0];var we=me*me,De=T+we*(E+we*(q+we*R)),He=me*(G-1+we*(U-ve+we*j)),Ke=(De*De+He*He)/(2*He),ur=fe*H(De/Ke)/x;return[Ke*m(ur),me*(1+we*ve)+Ke*(1-o(ur))]}return pe.invert=function(fe,me){var we=x*fe/T,De=me,He,Ke,ur=50;do{var Tr=De*De,Kr=T+Tr*(E+Tr*(q+Tr*R)),ct=De*(G-1+Tr*(U-ve+Tr*j)),dt=Kr*Kr+ct*ct,mt=2*ct,bt=dt/mt,fa=bt*bt,La=H(Kr/bt)/x,Vt=we*La,en=Kr*Kr,In=(2*E+Tr*(4*q+Tr*6*R))*De,Gi=G+Tr*(3*U+Tr*5*j),ql=2*(Kr*In+ct*(Gi-1)),Mu=2*(Gi-1),Qn=(ql*mt-dt*Mu)/(mt*mt),ei=o(Vt),To=m(Vt),Pl=bt*ei,Rl=bt*To,zl=we/x*(1/N(1-en/fa))*(In*bt-Kr*Qn)/fa,Ts=Rl-fe,Wo=De*(1+Tr*ve)+bt-Pl-me,Au=Qn*To+Pl*zl,D0=Pl*La,v=1+Qn-(Qn*ei-Rl*zl),g=Rl*La,w=Au*g-v*D0;if(!w)break;we-=He=(Wo*Au-Ts*v)/w,De-=Ke=(Ts*g-Wo*D0)/w}while((a(He)>b||a(Ke)>b)&&--ur>0);return[we,De]},pe}var li=oi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function mo(){return r.geoProjection(li).scale(149.995)}var ss=oi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ks(){return r.geoProjection(ss).scale(153.93)}var us=oi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Qs(){return r.geoProjection(us).scale(130.945)}function ot(T,E){var q=T*T,R=E*E;return[T*(1-.162388*R)*(.87-952426e-9*q*q),E*(1+R/12)]}ot.invert=function(T,E){var q=T,R=E,G=50,U;do{var j=R*R;R-=U=(R*(1+j/12)-E)/(1+j/4)}while(a(U)>b&&--G>0);G=50,T/=1-.162388*j;do{var ve=(ve=q*q)*ve;q-=U=(q*(.87-952426e-9*ve)-T)/(.87-.00476213*ve)}while(a(U)>b&&--G>0);return[q,R]};function st(){return r.geoProjection(ot).scale(131.747)}var Wt=oi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ur(){return r.geoProjection(Wt).scale(131.087)}function kn(T){var E=T(_,0)[0]-T(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,j=T(R+U*x,G);return j[0]-=U*E,j}return T.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,j=T.invert(R+U*E,G),ve=j[0]-U*x;return ve<-x?ve+=2*x:ve>x&&(ve-=2*x),j[0]=ve,j}),q}function la(T,E){var q=p(T),R=p(E),G=o(E),U=o(T)*G,j=m(T)*G,ve=m(R*E);T=a(i(j,ve)),E=H(U),a(T-_)>b&&(T%=_);var pe=Xa(T>x/4?_-T:T,E);return T>x/4&&(ve=pe[0],pe[0]=-pe[1],pe[1]=-ve),pe[0]*=q,pe[1]*=-R,pe}la.invert=function(T,E){a(T)>1&&(T=p(T)*2-T),a(E)>1&&(E=p(E)*2-E);var q=p(T),R=p(E),G=-q*T,U=-R*E,j=U/G<1,ve=Ka(j?U:G,j?G:U),pe=ve[0],fe=ve[1],me=o(fe);return j&&(pe=-_-pe),[q*(i(m(pe)*me,-m(fe))+x),R*H(o(pe)*me)]};function Xa(T,E){if(E===_)return[0,0];var q=m(E),R=q*q,G=R*R,U=1+G,j=1+3*G,ve=1-G,pe=H(1/N(U)),fe=ve+R*U*pe,me=(1-q)/fe,we=N(me),De=me*U,He=N(De),Ke=we*ve,ur,Tr;if(T===0)return[0,-(Ke+R*He)];var Kr=o(E),ct=1/Kr,dt=2*q*Kr,mt=(-3*R+pe*j)*dt,bt=(-fe*Kr-(1-q)*mt)/(fe*fe),fa=.5*bt/we,La=ve*fa-2*R*we*dt,Vt=R*U*bt+me*j*dt,en=-ct*dt,In=-ct*Vt,Gi=-2*ct*La,ql=4*T/x,Mu;if(T>.222*x||E<x/4&&T>.175*x){if(ur=(Ke+R*N(De*(1+G)-Ke*Ke))/(1+G),T>x/4)return[ur,ur];var Qn=ur,ei=.5*ur;ur=.5*(ei+Qn),Tr=50;do{var To=N(De-ur*ur),Pl=ur*(Gi+en*To)+In*H(ur/He)-ql;if(!Pl)break;Pl<0?ei=ur:Qn=ur,ur=.5*(ei+Qn)}while(a(Qn-ei)>b&&--Tr>0)}else{ur=b,Tr=25;do{var Rl=ur*ur,zl=N(De-Rl),Ts=Gi+en*zl,Wo=ur*Ts+In*H(ur/He)-ql,Au=Ts+(In-en*Rl)/zl;ur-=Mu=zl?Wo/Au:0}while(a(Mu)>b&&--Tr>0)}return[ur,-Ke-R*N(De-ur*ur)]}function Ka(T,E){for(var q=0,R=1,G=.5,U=50;;){var j=G*G,ve=N(G),pe=H(1/N(1+j)),fe=1-j+G*(1+j)*pe,me=(1-ve)/fe,we=N(me),De=me*(1+j),He=we*(1-j),Ke=De-T*T,ur=N(Ke),Tr=E+He+G*ur;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 Kr=H(ve),ct=o(Kr),dt=1/ct,mt=2*ve*ct,bt=(-3*G+pe*(1+3*j))*mt,fa=(-fe*ct-(1-ve)*bt)/(fe*fe),La=.5*fa/we,Vt=(1-j)*La-2*G*we*mt,en=-2*dt*Vt,In=-dt*mt,Gi=-dt*(G*(1+j)*fa+me*(1+3*j)*mt);return[x/4*(T*(en+In*ur)+Gi*H(T/N(De))),Kr]}function jn(){return r.geoProjection(kn(la)).scale(239.75)}function bl(T,E,q){var R,G,U;return T?(R=fs(T,q),E?(G=fs(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=fs(E,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function fs(T,E){var q,R,G,U,j;if(E<b)return U=m(T),R=o(T),q=E*(T-U*R)/4,[U-q*R,R+q*U,1-E*U*U/2,T-q];if(E>=1-b)return q=(1-E)/4,R=ae(T),U=Q(T),G=1/R,j=R*ee(T),[U+q*(j-T)/(R*R),G-q*U*G*(j-T),G+q*U*G*(j+T),2*n(l(T))-_+q*(j-T)/R];var ve=[1,0,0,0,0,0,0,0,0],pe=[N(E),0,0,0,0,0,0,0,0],fe=0;for(R=N(1-E),j=1;a(pe[fe]/ve[fe])>b&&fe<8;)q=ve[fe++],pe[fe]=(q-R)/2,ve[fe]=(q+R)/2,R=N(q*R),j*=2;G=j*ve[fe]*T;do U=pe[fe]*m(R=G)/ve[fe],G=(H(U)+G)/2;while(--fe);return[m(G),U=o(G),U/o(G-R),G]}function cs(T,E,q){var R=a(T),G=a(E),U=ee(G);if(R){var j=1/m(R),ve=1/(y(R)*y(R)),pe=-(ve+q*(U*U*j*j)-1+q),fe=(q-1)*ve,me=(-pe+N(pe*pe-4*fe))/2;return[Wi(n(1/N(me)),q)*p(T),Wi(n(N((me/ve-1)/q)),1-q)*p(E)]}return[0,Wi(n(U),1-q)*p(E)]}function Wi(T,E){if(!E)return T;if(E===1)return u(y(T/2+M));for(var q=1,R=N(1-E),G=N(E),U=0;a(G)>b;U++){if(T%x){var j=n(R*y(T)/q);j<0&&(j+=x),T+=j+~~(T/x)*x}else T+=T;G=(q+R)/2,R=N(q*R),G=((q=G)-R)/2}return T/(d(2,U)*q)}function Ho(T,E){var q=(k-1)/(k+1),R=N(1-q*q),G=Wi(_,R*R),U=-1,j=u(y(x/4+a(E)/2)),ve=l(U*j)/N(q),pe=_l(ve*o(U*T),ve*m(U*T)),fe=cs(pe[0],pe[1],R*R);return[-fe[1],(E>=0?1:-1)*(.5*G-fe[0])]}function _l(T,E){var q=T*T,R=E+1,G=1-q-E*E;return[.5*((T>=0?_:-_)-i(G,2*T)),-.25*u(G*G+4*q)+.5*u(R*R+q)]}function vs(T,E){var q=E[0]*E[0]+E[1]*E[1];return[(T[0]*E[0]+T[1]*E[1])/q,(T[1]*E[0]-T[0]*E[1])/q]}Ho.invert=function(T,E){var q=(k-1)/(k+1),R=N(1-q*q),G=Wi(_,R*R),U=-1,j=bl(.5*G-E,-T,R*R),ve=vs(j[0],j[1]),pe=i(ve[1],ve[0])/U;return[pe,2*n(l(.5/U*u(q*ve[0]*ve[0]+q*ve[1]*ve[1])))-_]};function eu(){return r.geoProjection(kn(Ho)).scale(151.496)}function s0(T){var E=m(T),q=o(T),R=Gc(T);R.invert=Gc(-T);function G(U,j){var ve=R(U,j);U=ve[0],j=ve[1];var pe=m(j),fe=o(j),me=o(U),we=X(E*pe+q*fe*me),De=m(we),He=a(De)>b?we/De:1;return[He*q*m(U),(a(U)>_?He:-He)*(E*fe-q*pe*me)]}return G.invert=function(U,j){var ve=N(U*U+j*j),pe=-m(ve),fe=o(ve),me=ve*fe,we=-j*pe,De=ve*E,He=N(me*me+we*we-De*De),Ke=i(me*De+we*He,we*De-me*He),ur=(ve>_?-1:1)*i(U*pe,ve*o(Ke)*fe+j*m(Ke)*pe);return R.invert(ur,Ke)},G}function Gc(T){var E=m(T),q=o(T);return function(R,G){var U=o(G),j=o(R)*U,ve=m(R)*U,pe=m(G);return[i(ve,j*q-pe*E),H(pe*q+j*E)]}}function ru(){var T=0,E=r.geoProjectionMutator(s0),q=E(T),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(j){if(!arguments.length)return T*z;var ve=q.rotate();return E(T=j*B).rotate(ve)},q.rotate=function(j){return arguments.length?(R.call(q,[j[0],j[1]-T*z]),U.center([-j[0],-j[1]]),q):(j=R.call(q),j[1]+=T*z,j)},q.stream=function(j){return j=G(j),j.sphere=function(){j.polygonStart();var ve=.01,pe=U.radius(90-ve)().coordinates[0],fe=pe.length-1,me=-1,we;for(j.lineStart();++me<fe;)j.point((we=pe[me])[0],we[1]);for(j.lineEnd(),pe=U.radius(90+ve)().coordinates[0],fe=pe.length-1,j.lineStart();--me>=0;)j.point((we=pe[me])[0],we[1]);j.lineEnd(),j.polygonEnd()},j},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var tu=3,au=H(1-1/tu)*z,xl=Kt(0);function Oo(T){var E=au*B,q=Or(x,E)[0]-Or(-x,E)[0],R=xl(0,E)[1],G=Or(0,E)[1],U=D-G,j=P/T,ve=4/P,pe=R+U*U*4/P;function fe(me,we){var De,He=a(we);if(He>E){var Ke=c(T-1,f(0,s((me+x)/j)));me+=x*(T-1)/T-Ke*j,De=Or(me,He),De[0]=De[0]*P/q-P*(T-1)/(2*T)+Ke*P/T,De[1]=R+(De[1]-G)*4*U/P,we<0&&(De[1]=-De[1])}else De=xl(me,we);return De[0]*=ve,De[1]/=pe,De}return fe.invert=function(me,we){me/=ve,we*=pe;var De=a(we);if(De>R){var He=c(T-1,f(0,s((me+x)/j)));me=(me+x*(T-1)/T-He*j)*q/P;var Ke=Or.invert(me,.25*(De-R)*P/U+G);return Ke[0]-=x*(T-1)/T-He*j,we<0&&(Ke[1]=-Ke[1]),Ke}return xl.invert(me,we)},fe}function Uo(T,E){return[T,E&1?90-b:au]}function go(T,E){return[T,E&1?-90+b:-au]}function u0(T){return[T[0]*(1-b),T[1]]}function Zu(T){var E=[].concat(t.range(-180,180+T/2,T).map(Uo),t.range(180,-180-T/2,-T).map(go));return{type:"Polygon",coordinates:[T===180?E.map(u0):E]}}function ds(){var T=4,E=r.geoProjectionMutator(Oo),q=E(T),R=q.stream;return q.lobes=function(G){return arguments.length?E(T=+G):T},q.stream=function(G){var U=q.rotate(),j=R(G),ve=(q.rotate([0,0]),R(G));return q.rotate(U),j.sphere=function(){r.geoStream(Zu(180/T),ve)},j},q.scale(239.75)}function f0(T){var E=1+T,q=m(1/E),R=H(q),G=2*N(x/(U=x+4*R*E)),U,j=.5*G*(E+N(T*(2+T))),ve=T*T,pe=E*E;function fe(me,we){var De=1-m(we),He,Ke;if(De&&De<2){var ur=_-we,Tr=25,Kr;do{var ct=m(ur),dt=o(ur),mt=R+i(ct,E-dt),bt=1+pe-2*E*dt;ur-=Kr=(ur-ve*R-E*ct+bt*mt-.5*De*U)/(2*E*ct*mt)}while(a(Kr)>C&&--Tr>0);He=G*N(bt),Ke=me*mt/x}else He=G*(T+De),Ke=me*R/x;return[He*m(Ke),j-He*o(Ke)]}return fe.invert=function(me,we){var De=me*me+(we-=j)*we,He=(1+pe-De/(G*G))/(2*E),Ke=X(He),ur=m(Ke),Tr=R+i(ur,E-He);return[H(me/N(De))*x/Tr,H(1-2*(Ke-ve*R-E*ur+(1+pe-2*E*He)*Tr)/U)]},fe}function Yc(){var T=1,E=r.geoProjectionMutator(f0),q=E(T);return q.ratio=function(R){return arguments.length?E(T=+R):T},q.scale(167.774).center([0,18.67])}var nu=.7109889596207567,yo=.0528035274542;function iu(T,E){return E>-nu?(T=Qe(T,E),T[1]+=yo,T):zr(T,E)}iu.invert=function(T,E){return E>-nu?Qe.invert(T,E-yo):zr.invert(T,E)};function Vc(){return r.geoProjection(iu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ou(T,E){return a(E)>nu?(T=Qe(T,E),T[1]-=E>0?yo:-yo,T):zr(T,E)}ou.invert=function(T,E){return a(E)>nu?Qe.invert(T,E+(E>0?yo:-yo)):zr.invert(T,E)};function Nv(){return r.geoProjection(ou).scale(152.63)}function wl(T,E,q,R){var G=N(4*x/(2*q+(1+T-E/2)*m(2*q)+(T+E)/2*m(4*q)+E/2*m(6*q))),U=N(R*m(q)*N((1+T*o(2*q)+E*o(4*q))/(1+T+E))),j=q*pe(1);function ve(we){return N(1+T*o(2*we)+E*o(4*we))}function pe(we){var De=we*q;return(2*De+(1+T-E/2)*m(2*De)+(T+E)/2*m(4*De)+E/2*m(6*De))/q}function fe(we){return ve(we)*m(we)}var me=function(we,De){var He=q*$e(pe,j*m(De)/q,De/x);isNaN(He)&&(He=q*p(De));var Ke=G*ve(He);return[Ke*U*we/x*o(He),Ke/U*m(He)]};return me.invert=function(we,De){var He=$e(fe,De*U/G);return[we*x/(o(He)*G*U*ve(He)),H(q*pe(He/q)/j)]},q===0&&(G=N(R/x),me=function(we,De){return[we*G,m(De)/G]},me.invert=function(we,De){return[we/G,H(De*G)]}),me}function c0(){var T=1,E=0,q=45*B,R=2,G=r.geoProjectionMutator(wl),U=G(T,E,q,R);return U.a=function(j){return arguments.length?G(T=+j,E,q,R):T},U.b=function(j){return arguments.length?G(T,E=+j,q,R):E},U.psiMax=function(j){return arguments.length?G(T,E,q=+j*B,R):q*z},U.ratio=function(j){return arguments.length?G(T,E,q,R=+j):R},U.scale(180.739)}function hs(T,E,q,R,G,U,j,ve,pe,fe,me){if(me.nanEncountered)return NaN;var we,De,He,Ke,ur,Tr,Kr,ct,dt,mt;if(we=q-E,De=T(E+we*.25),He=T(q-we*.25),isNaN(De)){me.nanEncountered=!0;return}if(isNaN(He)){me.nanEncountered=!0;return}return Ke=we*(R+4*De+G)/12,ur=we*(G+4*He+U)/12,Tr=Ke+ur,mt=(Tr-j)/15,fe>pe?(me.maxDepthCount++,Tr+mt):Math.abs(mt)<ve?Tr+mt:(Kr=E+we*.5,ct=hs(T,E,Kr,R,De,G,Ke,ve*.5,pe,fe+1,me),isNaN(ct)?(me.nanEncountered=!0,NaN):(dt=hs(T,Kr,q,G,He,U,ur,ve*.5,pe,fe+1,me),isNaN(dt)?(me.nanEncountered=!0,NaN):ct+dt))}function Xc(T,E,q,R,G){var U={maxDepthCount:0,nanEncountered:!1};R===void 0&&(R=1e-8),G===void 0&&(G=20);var j=T(E),ve=T(.5*(E+q)),pe=T(q),fe=(j+4*ve+pe)*(q-E)/6,me=hs(T,E,q,j,ve,pe,fe,R,G,1,U);return me}function Go(T,E,q){function R(He){return T+(1-T)*d(1-d(He,E),1/E)}function G(He){return Xc(R,0,He,1e-4)}for(var U=1/G(1),j=1e3,ve=(1+1e-8)*U,pe=[],fe=0;fe<=j;fe++)pe.push(G(fe/j)*ve);function me(He){var Ke=0,ur=j,Tr=j>>1;do pe[Tr]>He?ur=Tr:Ke=Tr,Tr=Ke+ur>>1;while(Tr>Ke);var Kr=pe[Tr+1]-pe[Tr];return Kr&&(Kr=(He-pe[Tr+1])/Kr),(Tr+1+Kr)/j}var we=2*me(1)/x*U/q,De=function(He,Ke){var ur=me(a(m(Ke))),Tr=R(ur)*He;return ur/=we,[Tr,Ke>=0?ur:-ur]};return De.invert=function(He,Ke){var ur;return Ke*=we,a(Ke)<1&&(ur=p(Ke)*H(G(a(Ke))*U)),[He/R(a(Ke)),ur]},De}function Yo(){var T=0,E=2.5,q=1.183136,R=r.geoProjectionMutator(Go),G=R(T,E,q);return G.alpha=function(U){return arguments.length?R(T=+U,E,q):T},G.k=function(U){return arguments.length?R(T,E=+U,q):E},G.gamma=function(U){return arguments.length?R(T,E,q=+U):q},G.scale(152.63)}function v0(T,E){return a(T[0]-E[0])<b&&a(T[1]-E[1])<b}function Zi(T,E){for(var q=-1,R=T.length,G=T[0],U,j,ve,pe=[];++q<R;){U=T[q],j=(U[0]-G[0])/E,ve=(U[1]-G[1])/E;for(var fe=0;fe<E;++fe)pe.push([G[0]+fe*j,G[1]+fe*ve]);G=U}return pe.push(U),pe}function Iv(T){var E=[],q,R,G,U,j,ve,pe,fe=T[0].length;for(pe=0;pe<fe;++pe)q=T[0][pe],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],E.push(Zi([[R+b,G+b],[R+b,U-b],[j-b,U-b],[j-b,ve+b]],30));for(pe=T[1].length-1;pe>=0;--pe)q=T[1][pe],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],E.push(Zi([[j-b,ve-b],[j-b,U+b],[R+b,U+b],[R+b,G-b]],30));return{type:"Polygon",coordinates:[t.merge(E)]}}function bo(T,E,q){var R,G;function U(pe,fe){for(var me=fe<0?-1:1,we=E[+(fe<0)],De=0,He=we.length-1;De<He&&pe>we[De][2][0];++De);var Ke=T(pe-we[De][1][0],fe);return Ke[0]+=T(we[De][1][0],me*fe>me*we[De][0][1]?we[De][0][1]:fe)[0],Ke}q?U.invert=q(U):T.invert&&(U.invert=function(pe,fe){for(var me=G[+(fe<0)],we=E[+(fe<0)],De=0,He=me.length;De<He;++De){var Ke=me[De];if(Ke[0][0]<=pe&&pe<Ke[1][0]&&Ke[0][1]<=fe&&fe<Ke[1][1]){var ur=T.invert(pe-T(we[De][1][0],0)[0],fe);return ur[0]+=we[De][1][0],v0(U(ur[0],ur[1]),[pe,fe])?ur:null}}});var j=r.geoProjection(U),ve=j.stream;return j.stream=function(pe){var fe=j.rotate(),me=ve(pe),we=(j.rotate([0,0]),ve(pe));return j.rotate(fe),me.sphere=function(){r.geoStream(R,we)},me},j.lobes=function(pe){return arguments.length?(R=Iv(pe),E=pe.map(function(fe){return fe.map(function(me){return[[me[0][0]*B,me[0][1]*B],[me[1][0]*B,me[1][1]*B],[me[2][0]*B,me[2][1]*B]]})}),G=E.map(function(fe){return fe.map(function(me){var we=T(me[0][0],me[0][1])[0],De=T(me[2][0],me[2][1])[0],He=T(me[1][0],me[0][1])[1],Ke=T(me[1][0],me[1][1])[1],ur;return He>Ke&&(ur=He,He=Ke,Ke=ur),[[we,He],[De,Ke]]})}),j):E.map(function(fe){return fe.map(function(me){return[[me[0][0]*z,me[0][1]*z],[me[1][0]*z,me[1][1]*z],[me[2][0]*z,me[2][1]*z]]})})},E!=null&&j.lobes(E),j}var ps=[[[[-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 Bv(){return bo(Oe,ps).scale(160.857)}var _o=[[[[-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 Ml(){return bo(ou,_o).scale(152.63)}var Al=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Tl(){return bo(Qe,Al).scale(169.529)}var Vo=[[[[-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 lu(){return bo(Qe,Vo).scale(169.529).rotate([20,0])}var $u=[[[[-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 su(){return bo(iu,$u,ar).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var uu=[[[[-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 kl(){return bo(zr,uu).scale(152.63).rotate([-20,0])}function ms(T,E){return[3/P*T*N(x*x/3-E*E),E]}ms.invert=function(T,E){return[P/3*T/N(x*x/3-E*E),E]};function gs(){return r.geoProjection(ms).scale(158.837)}function Ju(T){function E(q,R){if(a(a(R)-_)<b)return[0,R<0?-2:2];var G=m(R),U=d((1+G)/(1-G),T/2),j=.5*(U+1/U)+o(q*=T);return[2*m(q)/j,(U-1/U)/j]}return E.invert=function(q,R){var G=a(R);if(a(G-2)<b)return q?null:[0,p(R)*_];if(G>2)return null;q/=2,R/=2;var U=q*q,j=R*R,ve=2*R/(1+U+j);return ve=d((1+ve)/(1-ve),1/T),[i(2*q,1-U-j)/T,H((ve-1)/(ve+1))]},E}function Ku(){var T=.5,E=r.geoProjectionMutator(Ju),q=E(T);return q.spacing=function(R){return arguments.length?E(T=+R):T},q.scale(124.75)}var Hi=x/k;function Qu(T,E){return[T*(1+N(o(E)))/2,E/(o(E/2)*o(T/6))]}Qu.invert=function(T,E){var q=a(T),R=a(E),G=b,U=_;R<Hi?U*=R/Hi:G+=6*X(Hi/R);for(var j=0;j<25;j++){var ve=m(U),pe=N(o(U)),fe=m(U/2),me=o(U/2),we=m(G/6),De=o(G/6),He=.5*G*(1+pe)-q,Ke=U/(me*De)-R,ur=pe?-.25*G*ve/pe:0,Tr=.5*(1+pe),Kr=(1+.5*U*fe/me)/(me*De),ct=U/me*(we/6)/(De*De),dt=ur*ct-Kr*Tr,mt=(He*ct-Ke*Tr)/dt,bt=(Ke*ur-He*Kr)/dt;if(U-=mt,G-=bt,a(mt)<b&&a(bt)<b)break}return[T<0?-G:G,E<0?-U:U]};function ef(){return r.geoProjection(Qu).scale(97.2672)}function si(T,E){var q=T*T,R=E*E;return[T*(.975534+R*(-.119161+q*-.0143059+R*-.0547009)),E*(1.00384+q*(.0802894+R*-.02855+q*199025e-9)+R*(.0998909+R*-.0491032))]}si.invert=function(T,E){var q=p(T)*x,R=E/2,G=50;do{var U=q*q,j=R*R,ve=q*R,pe=q*(.975534+j*(-.119161+U*-.0143059+j*-.0547009))-T,fe=R*(1.00384+U*(.0802894+j*-.02855+U*199025e-9)+j*(.0998909+j*-.0491032))-E,me=.975534-j*(.119161+3*U*.0143059+j*.0547009),we=-ve*(2*.119161+4*.0547009*j+2*.0143059*U),De=ve*(2*.0802894+4*199025e-9*U+2*-.02855*j),He=1.00384+U*(.0802894+199025e-9*U)+j*(3*(.0998909-.02855*U)-5*.0491032*j),Ke=we*De-He*me,ur=(fe*we-pe*He)/Ke,Tr=(pe*De-fe*me)/Ke;q-=ur,R-=Tr}while((a(ur)>b||a(Tr)>b)&&--G>0);return G&&[q,R]};function Cn(){return r.geoProjection(si).scale(139.98)}function Wn(T,E){return[m(T)/o(E),y(E)*o(T)]}Wn.invert=function(T,E){var q=T*T,R=E*E,G=R+1,U=q+G,j=T?A*N((U-N(U*U-4*q))/q):1/N(G);return[H(T*j),p(E)*X(j)]};function xo(){return r.geoProjection(Wn).scale(144.049).clipAngle(90-.001)}function fu(T){var E=o(T),q=y(M+T/2);function R(G,U){var j=U-T,ve=a(j)<b?G*E:a(ve=M+U/2)<b||a(a(ve)-_)<b?0:G*j/u(y(ve)/q);return[ve,j]}return R.invert=function(G,U){var j,ve=U+T;return[a(U)<b?G/E:a(j=M+ve/2)<b||a(a(j)-_)<b?0:G*u(y(j)/q)/U,ve]},R}function Cl(){return Rr(fu).parallel(40).scale(158.837)}function ys(T,E){return[T,1.25*u(y(M+.4*E))]}ys.invert=function(T,E){return[T,2.5*n(l(.8*E))-.625*x]};function d0(){return r.geoProjection(ys).scale(108.318)}function jc(T){var E=T.length-1;function q(R,G){for(var U=o(G),j=2/(1+U*o(R)),ve=j*U*m(R),pe=j*m(G),fe=E,me=T[fe],we=me[0],De=me[1],He;--fe>=0;)me=T[fe],we=me[0]+ve*(He=we)-pe*De,De=me[1]+ve*De+pe*He;return we=ve*(He=we)-pe*De,De=ve*De+pe*He,[we,De]}return q.invert=function(R,G){var U=20,j=R,ve=G;do{for(var pe=E,fe=T[pe],me=fe[0],we=fe[1],De=0,He=0,Ke;--pe>=0;)fe=T[pe],De=me+j*(Ke=De)-ve*He,He=we+j*He+ve*Ke,me=fe[0]+j*(Ke=me)-ve*we,we=fe[1]+j*we+ve*Ke;De=me+j*(Ke=De)-ve*He,He=we+j*He+ve*Ke,me=j*(Ke=me)-ve*we-R,we=j*we+ve*Ke-G;var ur=De*De+He*He,Tr,Kr;j-=Tr=(me*De+we*He)/ur,ve-=Kr=(we*De-me*He)/ur}while(a(Tr)+a(Kr)>b*b&&--U>0);if(U){var ct=N(j*j+ve*ve),dt=2*n(ct*.5),mt=m(dt);return[i(j*mt,ct*o(dt)),ct?H(ve*mt/ct):0]}},q}var Hv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Ov=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],h0=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],p0=[[.9245,0],[0,0],[.01943,0]],m0=[[.721316,0],[0,0],[-.00881625,-.00617325]];function g0(){return $i(Hv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Wc(){return $i(Ov,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Zc(){return $i(h0,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function cu(){return $i(p0,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function vu(){return $i(m0,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function $i(T,E){var q=r.geoProjection(jc(T)).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 rf=N(6),du=N(7);function tf(T,E){var q=H(7*m(E)/(3*rf));return[rf*T*(2*o(2*q/3)-1)/du,9*m(q/3)/du]}tf.invert=function(T,E){var q=3*H(E*du/9);return[T*du/(rf*(2*o(2*q/3)-1)),H(m(q)*3*rf/7)]};function $c(){return r.geoProjection(tf).scale(164.859)}function y0(T,E){for(var q=(1+A)*m(E),R=E,G=0,U;G<25&&(R-=U=(m(R/2)+m(R)-q)/(.5*o(R/2)+o(R)),!(a(U)<b));G++);return[T*(1+2*o(R)/o(R/2))/(3*k),2*N(3)*m(R/2)/N(2+k)]}y0.invert=function(T,E){var q=E*N(2+k)/(2*N(3)),R=2*H(q);return[3*k*T/(1+2*o(R)/o(R/2)),H((q+m(R))/(1+A))]};function Uv(){return r.geoProjection(y0).scale(188.209)}function Xo(T,E){for(var q=N(6/(4+x)),R=(1+x/4)*m(E),G=E/2,U=0,j;U<25&&(G-=j=(G/2+m(G)-R)/(.5+o(G)),!(a(j)<b));U++);return[q*(.5+o(G))*T/1.5,q*G]}Xo.invert=function(T,E){var q=N(6/(4+x)),R=E/q;return a(a(R)-_)<b&&(R=R<0?-_:_),[1.5*T/(q*(.5+o(R))),H((R/2+m(R))/(1+x/4))]};function af(){return r.geoProjection(Xo).scale(166.518)}function bs(T,E){var q=E*E,R=q*q,G=q*R;return[T*(.84719-.13063*q+G*G*(-.04515+.05494*q-.02326*R+.00331*G)),E*(1.01183+R*R*(-.02625+.01926*q-.00396*R))]}bs.invert=function(T,E){var q=E,R=25,G,U,j,ve;do U=q*q,j=U*U,q-=G=(q*(1.01183+j*j*(-.02625+.01926*U-.00396*j))-E)/(1.01183+j*j*(9*-.02625+11*.01926*U+13*-.00396*j));while(a(G)>C&&--R>0);return U=q*q,j=U*U,ve=U*j,[T/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*j+.00331*ve)),q]};function hu(){return r.geoProjection(bs).scale(175.295)}function pu(T,E){return[T*(1+o(E))/2,2*(E-y(E/2))]}pu.invert=function(T,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*T/(1+o(E)),E]};function b0(){return r.geoProjection(pu).scale(152.63)}var jo=[[[[-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 Jc(){return bo(Le(1/0),jo).rotate([20,0]).scale(152.63)}function _0(T,E){var q=m(E),R=o(E),G=p(T);if(T===0||a(E)===_)return[0,E];if(E===0)return[T,0];if(a(T)===_)return[T*R,_*q];var U=x/(2*T)-2*T/x,j=2*E/x,ve=(1-j*j)/(q-j),pe=U*U,fe=ve*ve,me=1+pe/fe,we=1+fe/pe,De=(U*q/ve-U/2)/me,He=(fe*q/pe+ve/2)/we,Ke=De*De+R*R/me,ur=He*He-(fe*q*q/pe+ve*q-1)/we;return[_*(De+N(Ke)*G),_*(He+N(ur<0?0:ur)*p(-E*U)*G)]}_0.invert=function(T,E){T/=_,E/=_;var q=T*T,R=E*E,G=q+R,U=x*x;return[T?(G-1+N((1-G)*(1-G)+4*q))/(2*T)*_:0,$e(function(j){return G*(x*m(j)-2*j)*x+4*j*j*(E-m(j))+2*x*j-U*E},0)]};function Kc(){return r.geoProjection(_0).scale(127.267)}var x0=1.0148,nf=.23185,w0=-.14499,M0=.02406,Gv=x0,A0=5*nf,Ji=7*w0,T0=9*M0,_s=1.790857183;function k0(T,E){var q=E*E;return[T,E*(x0+q*q*(nf+q*(w0+M0*q)))]}k0.invert=function(T,E){E>_s?E=_s:E<-_s&&(E=-_s);var q=E,R;do{var G=q*q;q-=R=(q*(x0+G*G*(nf+G*(w0+M0*G)))-E)/(Gv+G*G*(A0+G*(Ji+T0*G)))}while(a(R)>b);return[T,q]};function Qc(){return r.geoProjection(k0).scale(139.319)}function Sl(T,E){if(a(E)<b)return[T,0];var q=y(E),R=T*m(E);return[m(R)/q,E+(1-o(R))/q]}Sl.invert=function(T,E){if(a(E)<b)return[T,0];var q=T*T+E*E,R=E*.5,G=10,U;do{var j=y(R),ve=1/o(R),pe=q-2*E*R+R*R;R-=U=(j*pe+2*(R-E))/(2+pe*ve*ve+2*(R-E)*j)}while(a(U)>b&&--G>0);return j=y(R),[(a(E)<a(R+1/j)?H(T*j):p(E)*p(T)*(X(a(T*j))+_))/m(R),R]};function e1(){return r.geoProjection(Sl).scale(103.74)}function Yv(T,E){var q=Ki(T[1],T[0]),R=Ki(E[1],E[0]),G=Xv(q,R),U=ui(q)/ui(R);return wo([1,0,T[0][0],0,1,T[0][1]],wo([U,0,0,0,U,0],wo([o(G),m(G),0,-m(G),o(G),0],[1,0,-E[0][0],0,1,-E[0][1]])))}function Vv(T){var E=1/(T[0]*T[4]-T[1]*T[3]);return[E*T[4],-E*T[1],E*(T[1]*T[5]-T[2]*T[4]),-E*T[3],E*T[0],E*(T[2]*T[3]-T[0]*T[5])]}function wo(T,E){return[T[0]*E[0]+T[1]*E[3],T[0]*E[1]+T[1]*E[4],T[0]*E[2]+T[1]*E[5]+T[2],T[3]*E[0]+T[4]*E[3],T[3]*E[1]+T[4]*E[4],T[3]*E[2]+T[4]*E[5]+T[5]]}function Ki(T,E){return[T[0]-E[0],T[1]-E[1]]}function ui(T){return N(T[0]*T[0]+T[1]*T[1])}function Xv(T,E){return i(T[0]*E[1]-T[1]*E[0],T[0]*E[0]+T[1]*E[1])}function xs(T,E,q){R(T,{transform:null});function R(fe,me){if(fe.edges=a1(fe.face),me.face){var we=fe.shared=t1(fe.face,me.face),De=Yv(we.map(me.project),we.map(fe.project));fe.transform=me.transform?wo(me.transform,De):De;for(var He=me.edges,Ke=0,ur=He.length;Ke<ur;++Ke)_i(we[0],He[Ke][1])&&_i(we[1],He[Ke][0])&&(He[Ke]=fe),_i(we[0],He[Ke][0])&&_i(we[1],He[Ke][1])&&(He[Ke]=fe);for(He=fe.edges,Ke=0,ur=He.length;Ke<ur;++Ke)_i(we[0],He[Ke][0])&&_i(we[1],He[Ke][1])&&(He[Ke]=me),_i(we[0],He[Ke][1])&&_i(we[1],He[Ke][0])&&(He[Ke]=me)}else fe.transform=me.transform;return fe.children&&fe.children.forEach(function(Tr){R(Tr,fe)}),fe}function G(fe,me){var we=E(fe,me),De=we.project([fe*z,me*z]),He;return(He=we.transform)?[He[0]*De[0]+He[1]*De[1]+He[2],-(He[3]*De[0]+He[4]*De[1]+He[5])]:(De[1]=-De[1],De)}mu(T)&&(G.invert=function(fe,me){var we=U(T,[fe,-me]);return we&&(we[0]*=B,we[1]*=B,we)});function U(fe,me){var we=fe.project.invert,De=fe.transform,He=me;if(De&&(De=Vv(De),He=[De[0]*He[0]+De[1]*He[1]+De[2],De[3]*He[0]+De[4]*He[1]+De[5]]),we&&fe===j(Ke=we(He)))return Ke;for(var Ke,ur=fe.children,Tr=0,Kr=ur&&ur.length;Tr<Kr;++Tr)if(Ke=U(ur[Tr],me))return Ke}function j(fe){return E(fe[0]*B,fe[1]*B)}var ve=r.geoProjection(G),pe=ve.stream;return ve.stream=function(fe){var me=ve.rotate(),we=pe(fe),De=(ve.rotate([0,0]),pe(fe));return ve.rotate(me),we.sphere=function(){De.polygonStart(),De.lineStart(),r1(De,T),De.lineEnd(),De.polygonEnd()},we},ve.angle(q==null?-30:q*z)}function r1(T,E,q){var R,G=E.edges,U=G.length,j,ve={type:"MultiPoint",coordinates:E.face},pe=E.face.filter(function(ur){return a(ur[1])!==90}),fe=r.geoBounds({type:"MultiPoint",coordinates:pe}),me=!1,we=-1,De=fe[1][0]-fe[0][0],He=De===180||De===360?[(fe[0][0]+fe[1][0])/2,(fe[0][1]+fe[1][1])/2]:r.geoCentroid(ve);if(q)for(;++we<U&&G[we]!==q;);++we;for(var Ke=0;Ke<U;++Ke)j=G[(Ke+we)%U],Array.isArray(j)?(me||(T.point((R=r.geoInterpolate(j[0],He)(b))[0],R[1]),me=!0),T.point((R=r.geoInterpolate(j[1],He)(b))[0],R[1])):(me=!1,j!==q&&r1(T,j,E))}function _i(T,E){return T&&E&&T[0]===E[0]&&T[1]===E[1]}function t1(T,E){for(var q,R,G=T.length,U=null,j=0;j<G;++j){q=T[j];for(var ve=E.length;--ve>=0;)if(R=E[ve],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function a1(T){for(var E=T.length,q=[],R=T[E-1],G=0;G<E;++G)q.push([R,R=T[G]]);return q}function mu(T){return T.project.invert||T.children&&T.children.some(mu)}var n1=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],of=[[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(T){return T.map(function(E){return n1[E]})});function gu(T){T=T||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=of.map(function(q){return{face:q,project:T(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])}),xs(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 lf=2/N(3);function yu(T,E){var q=Or(T,E);return[q[0]*lf,q[1]]}yu.invert=function(T,E){return Or.invert(T/lf,E)};function jv(T){T=T||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoProjection(yu).translate([0,0]).scale(1).rotate(R[1]>0?[-R[0],0]:[180-R[0],180])};var E=of.map(function(q){return{face:q,project:T(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])}),xs(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 bu(T){T=T||function(j){var ve=j.length===6?r.geoCentroid({type:"MultiPoint",coordinates:j}):j[0];return r.geoGnomonic().scale(1).translate([0,0]).rotate([-ve[0],-ve[1]])};var E=of.map(function(j){for(var ve=j.map(ws),pe=ve.length,fe=ve[pe-1],me,we=[],De=0;De<pe;++De)me=ve[De],we.push(Ll([fe[0]*.9486832980505138+me[0]*.31622776601683794,fe[1]*.9486832980505138+me[1]*.31622776601683794,fe[2]*.9486832980505138+me[2]*.31622776601683794]),Ll([me[0]*.9486832980505138+fe[0]*.31622776601683794,me[1]*.9486832980505138+fe[1]*.31622776601683794,me[2]*.9486832980505138+fe[2]*.31622776601683794])),fe=me;return we}),q=[],R=[-1,0,0,1,0,1,4,5];E.forEach(function(j,ve){for(var pe=of[ve],fe=pe.length,me=q[ve]=[],we=0;we<fe;++we)E.push([pe[we],j[(we*2+2)%(2*fe)],j[(we*2+1)%(2*fe)]]),R.push(ve),me.push(_u(ws(j[(we*2+2)%(2*fe)]),ws(j[(we*2+1)%(2*fe)])))});var G=E.map(function(j){return{project:T(j),face:j}});R.forEach(function(j,ve){var pe=G[j];pe&&(pe.children||(pe.children=[])).push(G[ve])});function U(j,ve){var pe=o(ve),fe=[pe*o(j),pe*m(j),m(ve)],me=j<-x/2?ve<0?6:4:j<0?ve<0?2:0:j<x/2?ve<0?3:1:ve<0?7:5,we=q[me];return G[El(we[0],fe)<0?8+3*me:El(we[1],fe)<0?8+3*me+1:El(we[2],fe)<0?8+3*me+2:me]}return xs(G[0],U).angle(-30).scale(110.625).center([0,45])}function El(T,E){for(var q=0,R=T.length,G=0;q<R;++q)G+=T[q]*E[q];return G}function _u(T,E){return[T[1]*E[2]-T[2]*E[1],T[2]*E[0]-T[0]*E[2],T[0]*E[1]-T[1]*E[0]]}function Ll(T){return[i(T[1],T[0])*z,H(f(-1,c(1,T[2])))*z]}function ws(T){var E=T[0]*B,q=T[1]*B,R=o(q);return[R*o(E),R*m(E),m(q)]}function sf(){}function xu(T){if((q=T.length)<4)return!1;for(var E=0,q,R=T[q-1][1]*T[0][0]-T[q-1][0]*T[0][1];++E<q;)R+=T[E-1][1]*T[E][0]-T[E-1][0]*T[E][1];return R<=0}function i1(T,E){for(var q=E[0],R=E[1],G=!1,U=0,j=T.length,ve=j-1;U<j;ve=U++){var pe=T[U],fe=pe[0],me=pe[1],we=T[ve],De=we[0],He=we[1];me>R^He>R&&q<(De-fe)*(R-me)/(He-me)+fe&&(G=!G)}return G}function uf(T,E){var q=E.stream,R;if(!q)throw new Error("invalid projection");switch(T&&T.type){case"Feature":R=l1;break;case"FeatureCollection":R=o1;break;default:R=ff;break}return R(T,q)}function o1(T,E){return{type:"FeatureCollection",features:T.features.map(function(q){return l1(q,E)})}}function l1(T,E){return{type:"Feature",id:T.id,properties:T.properties,geometry:ff(T.geometry,E)}}function C0(T,E){return{type:"GeometryCollection",geometries:T.geometries.map(function(q){return ff(q,E)})}}function ff(T,E){if(!T)return null;if(T.type==="GeometryCollection")return C0(T,E);var q;switch(T.type){case"Point":q=Ms;break;case"MultiPoint":q=Ms;break;case"LineString":q=cf;break;case"MultiLineString":q=cf;break;case"Polygon":q=wu;break;case"MultiPolygon":q=wu;break;case"Sphere":q=wu;break;default:return null}return r.geoStream(T,E(q)),q.result()}var hn=[],Oi=[],Ms={point:function(T,E){hn.push([T,E])},result:function(){var T=hn.length?hn.length<2?{type:"Point",coordinates:hn[0]}:{type:"MultiPoint",coordinates:hn}:null;return hn=[],T}},cf={lineStart:sf,point:function(T,E){hn.push([T,E])},lineEnd:function(){hn.length&&(Oi.push(hn),hn=[])},result:function(){var T=Oi.length?Oi.length<2?{type:"LineString",coordinates:Oi[0]}:{type:"MultiLineString",coordinates:Oi}:null;return Oi=[],T}},wu={polygonStart:sf,lineStart:sf,point:function(T,E){hn.push([T,E])},lineEnd:function(){var T=hn.length;if(T){do hn.push(hn[0].slice());while(++T<4);Oi.push(hn),hn=[]}},polygonEnd:sf,result:function(){if(!Oi.length)return null;var T=[],E=[];return Oi.forEach(function(q){xu(q)?T.push([q]):E.push(q)}),E.forEach(function(q){var R=q[0];T.some(function(G){if(i1(G[0],R))return G.push(q),!0})||T.push([q])}),Oi=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function S0(T){var E=T(_,0)[0]-T(-_,0)[0];function q(R,G){var U=a(R)<_,j=T(U?R:R>0?R-x:R+x,G),ve=(j[0]-j[1])*A,pe=(j[0]+j[1])*A;if(U)return[ve,pe];var fe=E*A,me=ve>0^pe>0?-1:1;return[me*ve-p(pe)*fe,me*pe-p(ve)*fe]}return T.invert&&(q.invert=function(R,G){var U=(R+G)*A,j=(G-R)*A,ve=a(U)<.5*E&&a(j)<.5*E;if(!ve){var pe=E*A,fe=U>0^j>0?-1:1,me=-fe*R+(j>0?1:-1)*pe,we=-fe*G+(U>0?1:-1)*pe;U=(-me-we)*A,j=(me-we)*A}var De=T.invert(U,j);return ve||(De[0]+=U>0?x:-x),De}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return S0(la).scale(176.423)}function $(){return S0(Ho).scale(111.48)}function he(T,E){if(!(0<=(E=+E)&&E<=20))throw new Error("invalid digits");function q(fe){var me=fe.length,we=2,De=new Array(me);for(De[0]=+fe[0].toFixed(E),De[1]=+fe[1].toFixed(E);we<me;)De[we]=fe[we],++we;return De}function R(fe){return fe.map(q)}function G(fe){for(var me=q(fe[0]),we=[me],De=1;De<fe.length;De++){var He=q(fe[De]);(He.length>2||He[0]!=me[0]||He[1]!=me[1])&&(we.push(He),me=He)}return we.length===1&&fe.length>1&&we.push(q(fe[fe.length-1])),we}function U(fe){return fe.map(G)}function j(fe){if(fe==null)return fe;var me;switch(fe.type){case"GeometryCollection":me={type:"GeometryCollection",geometries:fe.geometries.map(j)};break;case"Point":me={type:"Point",coordinates:q(fe.coordinates)};break;case"MultiPoint":me={type:fe.type,coordinates:R(fe.coordinates)};break;case"LineString":me={type:fe.type,coordinates:G(fe.coordinates)};break;case"MultiLineString":case"Polygon":me={type:fe.type,coordinates:U(fe.coordinates)};break;case"MultiPolygon":me={type:"MultiPolygon",coordinates:fe.coordinates.map(U)};break;default:return fe}return fe.bbox!=null&&(me.bbox=fe.bbox),me}function ve(fe){var me={type:"Feature",properties:fe.properties,geometry:j(fe.geometry)};return fe.id!=null&&(me.id=fe.id),fe.bbox!=null&&(me.bbox=fe.bbox),me}if(T!=null)switch(T.type){case"Feature":return ve(T);case"FeatureCollection":{var pe={type:"FeatureCollection",features:T.features.map(ve)};return T.bbox!=null&&(pe.bbox=T.bbox),pe}default:return j(T)}return T}function le(T){var E=m(T);function q(R,G){var U=E?y(R*E/2)/E:R/2;if(!G)return[2*U,-T];var j=2*n(U*m(G)),ve=1/y(G);return[m(j)*ve,G+(1-o(j))*ve-T]}return q.invert=function(R,G){if(a(G+=T)<b)return[E?2*n(E*R/2)/E:R,0];var U=R*R+G*G,j=0,ve=10,pe;do{var fe=y(j),me=1/o(j),we=U-2*G*j+j*j;j-=pe=(fe*we+2*(j-G))/(2+we*me*me+2*(j-G)*fe)}while(a(pe)>b&&--ve>0);var De=R*(fe=y(j)),He=y(a(G)<a(j+1/fe)?H(De)*.5:X(De)*.5+x/4)/m(j);return[E?2*n(E*He)/E:2*He,j]},q}function Ae(){return Rr(le).scale(131.215)}var Ge=[[.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]];Ge.forEach(function(T){T[1]*=1.0144});function Ze(T,E){var q=c(18,a(E)*36/x),R=s(q),G=q-R,U=(we=Ge[R])[0],j=we[1],ve=(we=Ge[++R])[0],pe=we[1],fe=(we=Ge[c(19,++R)])[0],me=we[1],we;return[T*(ve+G*(fe-U)/2+G*G*(fe-2*ve+U)/2),(E>0?_:-_)*(pe+G*(me-j)/2+G*G*(me-2*pe+j)/2)]}Ze.invert=function(T,E){var q=E/_,R=q*90,G=c(18,a(R/5)),U=f(0,s(G));do{var j=Ge[U][1],ve=Ge[U+1][1],pe=Ge[c(19,U+2)][1],fe=pe-j,me=pe-2*ve+j,we=2*(a(q)-ve)/fe,De=me/fe,He=we*(1-De*we*(1-2*De*we));if(He>=0||U===1){R=(E>=0?5:-5)*(He+G);var Ke=50,ur;do G=c(18,a(R)/5),U=s(G),He=G-U,j=Ge[U][1],ve=Ge[U+1][1],pe=Ge[c(19,U+2)][1],R-=(ur=(E>=0?_:-_)*(ve+He*(pe-j)/2+He*He*(pe-2*ve+j)/2)-E)*z;while(a(ur)>C&&--Ke>0);break}}while(--U>=0);var Tr=Ge[U][0],Kr=Ge[U+1][0],ct=Ge[c(19,U+2)][0];return[T/(Kr+He*(ct-Tr)/2+He*He*(ct-2*Kr+Tr)/2),R*B]};function rr(){return r.geoProjection(Ze).scale(152.63)}function nr(T){function E(q,R){var G=o(R),U=(T-1)/(T-G*o(q));return[U*G*m(q),U*m(R)]}return E.invert=function(q,R){var G=q*q+R*R,U=N(G),j=(T-N(1-G*(T+1)/(T-1)))/((T-1)/U+U/(T-1));return[i(q*j,U*N(1-j*j)),U?H(R*j/U):0]},E}function yr(T,E){var q=nr(T);if(!E)return q;var R=o(E),G=m(E);function U(j,ve){var pe=q(j,ve),fe=pe[1],me=fe*G/(T-1)+R;return[pe[0]*R/me,fe/me]}return U.invert=function(j,ve){var pe=(T-1)/(T-1-ve*G);return q.invert(pe*j,pe*ve*R)},U}function Je(){var T=2,E=0,q=r.geoProjectionMutator(yr),R=q(T,E);return R.distance=function(G){return arguments.length?q(T=+G,E):T},R.tilt=function(G){return arguments.length?q(T,E=G*B):E*z},R.scale(432.147).clipAngle(X(1/T)*z-1e-6)}var fr=1e-4,sr=1e4,wr=-180,Er=wr+fr,lt=180,rt=lt-fr,ut=-90,ft=ut+fr,Fr=90,Gr=Fr-fr;function vt(T){return T.length>0}function wt(T){return Math.floor(T*sr)/sr}function Zt(T){return T===ut||T===Fr?[0,T]:[wr,wt(T)]}function sa(T){var E=T[0],q=T[1],R=!1;return E<=Er?(E=wr,R=!0):E>=rt&&(E=lt,R=!0),q<=ft?(q=ut,R=!0):q>=Gr&&(q=Fr,R=!0),R?[E,q]:T}function Qt(T){return T.map(sa)}function ba(T,E,q){for(var R=0,G=T.length;R<G;++R){var U=T[R].slice();q.push({index:-1,polygon:E,ring:U});for(var j=0,ve=U.length;j<ve;++j){var pe=U[j],fe=pe[0],me=pe[1];if(fe<=Er||fe>=rt||me<=ft||me>=Gr){U[j]=sa(pe);for(var we=j+1;we<ve;++we){var De=U[we],He=De[0],Ke=De[1];if(He>Er&&He<rt&&Ke>ft&&Ke<Gr)break}if(we===j+1)continue;if(j){var ur={index:-1,polygon:E,ring:U.slice(0,j+1)};ur.ring[ur.ring.length-1]=Zt(me),q[q.length-1]=ur}else q.pop();if(we>=ve)break;q.push({index:-1,polygon:E,ring:U=U.slice(we-1)}),U[0]=Zt(U[0][1]),j=-1,ve=U.length}}}}function zt(T){var E,q=T.length,R={},G={},U,j,ve,pe,fe;for(E=0;E<q;++E){if(U=T[E],j=U.ring[0],pe=U.ring[U.ring.length-1],j[0]===pe[0]&&j[1]===pe[1]){U.polygon.push(U.ring),T[E]=null;continue}U.index=E,R[j]=G[pe]=U}for(E=0;E<q;++E)if(U=T[E],U){if(j=U.ring[0],pe=U.ring[U.ring.length-1],ve=G[j],fe=R[pe],delete R[j],delete G[pe],j[0]===pe[0]&&j[1]===pe[1]){U.polygon.push(U.ring);continue}ve?(delete G[j],delete R[ve.ring[0]],ve.ring.pop(),T[ve.index]=null,U={index:-1,polygon:ve.polygon,ring:ve.ring.concat(U.ring)},ve===fe?U.polygon.push(U.ring):(U.index=q++,T.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U))):fe?(delete R[pe],delete G[fe.ring[fe.ring.length-1]],U.ring.pop(),U={index:q++,polygon:fe.polygon,ring:U.ring.concat(fe.ring)},T[fe.index]=null,T.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 En(T){var E={type:"Feature",geometry:Qa(T.geometry)};return T.id!=null&&(E.id=T.id),T.bbox!=null&&(E.bbox=T.bbox),T.properties!=null&&(E.properties=T.properties),E}function Qa(T){if(T==null)return T;var E,q,R,G;switch(T.type){case"GeometryCollection":E={type:"GeometryCollection",geometries:T.geometries.map(Qa)};break;case"Point":E={type:"Point",coordinates:sa(T.coordinates)};break;case"MultiPoint":case"LineString":E={type:T.type,coordinates:Qt(T.coordinates)};break;case"MultiLineString":E={type:"MultiLineString",coordinates:T.coordinates.map(Qt)};break;case"Polygon":{var U=[];ba(T.coordinates,U,q=[]),zt(q),E={type:"Polygon",coordinates:U};break}case"MultiPolygon":{q=[],R=-1,G=T.coordinates.length;for(var j=new Array(G);++R<G;)ba(T.coordinates[R],j[R]=[],q);zt(q),E={type:"MultiPolygon",coordinates:j.filter(vt)};break}default:return T}return T.bbox!=null&&(E.bbox=T.bbox),E}function _a(T){if(T==null)return T;switch(T.type){case"Feature":return En(T);case"FeatureCollection":{var E={type:"FeatureCollection",features:T.features.map(En)};return T.bbox!=null&&(E.bbox=T.bbox),E}default:return Qa(T)}}function jr(T,E){var q=y(E/2),R=m(M*q);return[T*(.74482-.34588*R*R),1.70711*q]}jr.invert=function(T,E){var q=E/1.70711,R=m(M*q);return[T/(.74482-.34588*R*R),2*n(q)]};function $t(){return r.geoProjection(jr).scale(146.153)}function ln(T,E,q){var R=r.geoInterpolate(E,q),G=R(.5),U=r.geoRotation([-G[0],-G[1]])(E),j=R.distance/2,ve=-H(m(U[1]*B)/m(j)),pe=[-G[0],-G[1],-(U[0]>0?x-ve:ve)*z],fe=r.geoProjection(T(j)).rotate(pe),me=r.geoRotation(pe),we=fe.center;return delete fe.rotate,fe.center=function(De){return arguments.length?we(me(De)):me.invert(we())},fe.clipAngle(90)}function Nn(T){var E=o(T);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 xi(){return Mo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Mo(T,E){return ln(Nn,T,E)}function Qi(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var E=-T/2,q=-E,R=T*T,G=y(q),U=.5/m(q);function j(ve,pe){var fe=X(o(pe)*o(ve-E)),me=X(o(pe)*o(ve-q)),we=pe<0?-1:1;return fe*=fe,me*=me,[(fe-me)/(2*T),we*N(4*R*me-(R-fe+me)*(R-fe+me))/(2*T)]}return j.invert=function(ve,pe){var fe=pe*pe,me=o(N(fe+(De=ve+E)*De)),we=o(N(fe+(De=ve+q)*De)),De,He;return[i(He=me-we,De=(me+we)*G),(pe<0?-1:1)*X(N(De*De+He*He)*U)]},j}function Dl(){return Ui([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ui(T,E){return ln(Qi,T,E)}function Fl(T,E){if(a(E)<b)return[T,0];var q=a(E/_),R=H(q);if(a(T)<b||a(a(E)-_)<b)return[0,p(E)*x*y(R/2)];var G=o(R),U=a(x/T-T/x)/2,j=U*U,ve=G/(q+G-1),pe=ve*(2/q-1),fe=pe*pe,me=fe+j,we=ve-fe,De=j+ve;return[p(T)*x*(U*we+N(j*we*we-me*(ve*ve-fe)))/me,p(E)*x*(pe*De-U*N((j+1)*me-De*De))/me]}Fl.invert=function(T,E){if(a(E)<b)return[T,0];if(a(T)<b)return[0,_*m(2*n(E/x))];var q=(T/=x)*T,R=(E/=x)*E,G=q+R,U=G*G,j=-a(E)*(1+G),ve=j-2*R+q,pe=-2*j+1+2*R+U,fe=R/pe+(2*ve*ve*ve/(pe*pe*pe)-9*j*ve/(pe*pe))/27,me=(j-ve*ve/(3*pe))/pe,we=2*N(-me/3),De=X(3*fe/(me*we))/3;return[x*(G-1+N(1+2*(q-R)+U))/(2*T),p(E)*x*(-we*o(De+x/3)-ve/(3*pe))]};function As(){return r.geoProjection(Fl).scale(79.4183)}function vf(T,E){if(a(E)<b)return[T,0];var q=a(E/_),R=H(q);if(a(T)<b||a(a(E)-_)<b)return[0,p(E)*x*y(R/2)];var G=o(R),U=a(x/T-T/x)/2,j=U*U,ve=G*(N(1+j)-U*G)/(1+j*q*q);return[p(T)*x*ve,p(E)*x*N(1-ve*(2*U+ve))]}vf.invert=function(T,E){if(!T)return[0,_*m(2*n(E/x))];var q=a(T/x),R=(1-q*q-(E/=x)*E)/(2*q),G=R*R,U=N(G+1);return[p(T)*x*(U-R),p(E)*_*m(2*i(N((1-2*R*q)*(R+U)-q),N(U+R+q)))]};function s1(){return r.geoProjection(vf).scale(79.4183)}function u1(T,E){if(a(E)<b)return[T,0];var q=E/_,R=H(q);if(a(T)<b||a(a(E)-_)<b)return[0,x*y(R/2)];var G=(x/T-T/x)/2,U=q/(1+o(R));return[x*(p(T)*N(G*G+1-U*U)-G),x*U]}u1.invert=function(T,E){if(!E)return[T,0];var q=E/x,R=(x*x*(1-q*q)-T*T)/(2*x*T);return[T?x*(p(T)*N(R*R+1)-R):0,_*m(2*n(q))]};function mp(){return r.geoProjection(u1).scale(79.4183)}function E0(T,E){if(!E)return[T,0];var q=a(E);if(!T||q===_)return[0,E];var R=q/_,G=R*R,U=(8*R-G*(G+2)-5)/(2*G*(R-1)),j=U*U,ve=R*U,pe=G+j+2*ve,fe=R+3*U,me=T/_,we=me+1/me,De=p(a(T)-_)*N(we*we-4),He=De*De,Ke=pe*(G+j*He-1)+(1-G)*(G*(fe*fe+4*j)+12*ve*j+4*j*j),ur=(De*(pe+j-1)+2*N(Ke))/(4*pe+He);return[p(T)*_*ur,p(E)*_*N(1+De*a(ur)-ur*ur)]}E0.invert=function(T,E){var q;if(!T||!E)return[T,E];E/=x;var R=p(T)*T/_,G=(R*R-1+4*E*E)/a(R),U=G*G,j=2*E,ve=50;do{var pe=j*j,fe=(8*j-pe*(pe+2)-5)/(2*pe*(j-1)),me=(3*j-pe*j-10)/(2*pe*j),we=fe*fe,De=j*fe,He=j+fe,Ke=He*He,ur=j+3*fe,Tr=Ke*(pe+we*U-1)+(1-pe)*(pe*(ur*ur+4*we)+we*(12*De+4*we)),Kr=-2*He*(4*De*we+(1-4*pe+3*pe*pe)*(1+me)+we*(-6+14*pe-U+(-8+8*pe-2*U)*me)+De*(-8+12*pe+(-10+10*pe-U)*me)),ct=N(Tr),dt=G*(Ke+we-1)+2*ct-R*(4*Ke+U),mt=G*(2*fe*me+2*He*(1+me))+Kr/ct-8*He*(G*(-1+we+Ke)+2*ct)*(1+me)/(U+4*Ke);j-=q=dt/mt}while(q>b&&--ve>0);return[p(T)*(N(G*G+4)+G)*x/4,_*j]};function Ao(){return r.geoProjection(E0).scale(127.16)}function gp(T,E,q,R,G){function U(j,ve){var pe=q*m(R*ve),fe=N(1-pe*pe),me=N(2/(1+fe*o(j*=G)));return[T*fe*me*m(j),E*pe*me]}return U.invert=function(j,ve){var pe=j/T,fe=ve/E,me=N(pe*pe+fe*fe),we=2*H(me/2);return[i(j*y(we),T*me)/G,me&&H(ve*m(we)/(E*q*me))/R]},U}function yp(T,E,q,R){var G=x/3;T=f(T,b),E=f(E,b),T=c(T,_),E=c(E,x-b),q=f(q,0),q=c(q,100-b),R=f(R,b);var U=q/100+1,j=R/100,ve=X(U*o(G))/G,pe=m(T)/m(ve*_),fe=E/x,me=N(j*m(T/2)/m(E/2)),we=me/N(fe*pe*ve),De=1/(me*N(fe*pe*ve));return gp(we,De,pe,ve,fe)}function f1(){var T=65*B,E=60*B,q=20,R=200,G=r.geoProjectionMutator(yp),U=G(T,E,q,R);return U.poleline=function(j){return arguments.length?G(T=+j*B,E,q,R):T*z},U.parallels=function(j){return arguments.length?G(T,E=+j*B,q,R):E*z},U.inflation=function(j){return arguments.length?G(T,E,q=+j,R):q},U.ratio=function(j){return arguments.length?G(T,E,q,R=+j):R},U.scale(163.775)}function Wv(){return f1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var bp=4*x+3*N(3),_p=2*N(2*x*N(3)/bp),xp=Ar(_p*N(3)/x,_p,bp/6);function c1(){return r.geoProjection(xp).scale(176.84)}function L0(T,E){return[T*N(1-3*E*E/(x*x)),E]}L0.invert=function(T,E){return[T/N(1-3*E*E/(x*x)),E]};function wp(){return r.geoProjection(L0).scale(152.63)}function Zv(T,E){var q=o(E),R=o(T)*q,G=1-R,U=o(T=i(m(T)*q,-m(E))),j=m(T);return q=N(1-R*R),[j*q-U*G,-U*q-j*G]}Zv.invert=function(T,E){var q=(T*T+E*E)/-2,R=N(-q*(2+q)),G=E*q+T*R,U=T*q-E*R,j=N(U*U+G*G);return[i(R*G,j*(1+q)),j?-H(R*U/j):0]};function Cy(){return r.geoProjection(Zv).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function $v(T,E){var q=Ee(T,E);return[(q[0]+T/_)/2,(q[1]+E)/2]}$v.invert=function(T,E){var q=T,R=E,G=25;do{var U=o(R),j=m(R),ve=m(2*R),pe=j*j,fe=U*U,me=m(q),we=o(q/2),De=m(q/2),He=De*De,Ke=1-fe*we*we,ur=Ke?X(U*we)*N(Tr=1/Ke):Tr=0,Tr,Kr=.5*(2*ur*U*De+q/_)-T,ct=.5*(ur*j+R)-E,dt=.5*Tr*(fe*He+ur*U*we*pe)+.5/_,mt=Tr*(me*ve/4-ur*j*De),bt=.125*Tr*(ve*De-ur*j*fe*me),fa=.5*Tr*(pe*we+ur*He*U)+.5,La=mt*bt-fa*dt,Vt=(ct*mt-Kr*fa)/La,en=(Kr*bt-ct*dt)/La;q-=Vt,R-=en}while((a(Vt)>b||a(en)>b)&&--G>0);return[q,R]};function eo(){return r.geoProjection($v).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=xe,e.geoAiryRaw=ue,e.geoAitoff=Re,e.geoAitoffRaw=Ee,e.geoArmadillo=ke,e.geoArmadilloRaw=Ne,e.geoAugust=W,e.geoAugustRaw=We,e.geoBaker=J,e.geoBakerRaw=K,e.geoBerghaus=be,e.geoBerghausRaw=ce,e.geoBertin1953=ir,e.geoBertin1953Raw=Ie,e.geoBoggs=xr,e.geoBoggsRaw=Oe,e.geoBonne=cr,e.geoBonneRaw=Ue,e.geoBottomley=hr,e.geoBottomleyRaw=Mr,e.geoBromley=Lr,e.geoBromleyRaw=kr,e.geoChamberlin=Zr,e.geoChamberlinRaw=Cr,e.geoChamberlinAfrica=qr,e.geoCollignon=Xr,e.geoCollignonRaw=Or,e.geoCraig=Be,e.geoCraigRaw=Me,e.geoCraster=Ft,e.geoCrasterRaw=vr,e.geoCylindricalEqualArea=ua,e.geoCylindricalEqualAreaRaw=Kt,e.geoCylindricalStereographic=Ut,e.geoCylindricalStereographicRaw=ga,e.geoEckert1=na,e.geoEckert1Raw=Rt,e.geoEckert2=Ma,e.geoEckert2Raw=Gt,e.geoEckert3=An,e.geoEckert3Raw=Ca,e.geoEckert4=Sa,e.geoEckert4Raw=cn,e.geoEckert5=Na,e.geoEckert5Raw=za,e.geoEckert6=vn,e.geoEckert6Raw=Ea,e.geoEisenlohr=Dr,e.geoEisenlohrRaw=dn,e.geoFahey=Yt,e.geoFaheyRaw=pt,e.geoFoucaut=Tn,e.geoFoucautRaw=Ba,e.geoFoucautSinusoidal=bi,e.geoFoucautSinusoidalRaw=ya,e.geoGilbert=Bo,e.geoGingery=Ja,e.geoGingeryRaw=Ii,e.geoGinzburg4=mo,e.geoGinzburg4Raw=li,e.geoGinzburg5=Ks,e.geoGinzburg5Raw=ss,e.geoGinzburg6=Qs,e.geoGinzburg6Raw=us,e.geoGinzburg8=st,e.geoGinzburg8Raw=ot,e.geoGinzburg9=Ur,e.geoGinzburg9Raw=Wt,e.geoGringorten=jn,e.geoGringortenRaw=la,e.geoGuyou=eu,e.geoGuyouRaw=Ho,e.geoHammer=er,e.geoHammerRaw=Le,e.geoHammerRetroazimuthal=ru,e.geoHammerRetroazimuthalRaw=s0,e.geoHealpix=ds,e.geoHealpixRaw=Oo,e.geoHill=Yc,e.geoHillRaw=f0,e.geoHomolosine=Nv,e.geoHomolosineRaw=ou,e.geoHufnagel=c0,e.geoHufnagelRaw=wl,e.geoHyperelliptical=Yo,e.geoHyperellipticalRaw=Go,e.geoInterrupt=bo,e.geoInterruptedBoggs=Bv,e.geoInterruptedHomolosine=Ml,e.geoInterruptedMollweide=Tl,e.geoInterruptedMollweideHemispheres=lu,e.geoInterruptedSinuMollweide=su,e.geoInterruptedSinusoidal=kl,e.geoKavrayskiy7=gs,e.geoKavrayskiy7Raw=ms,e.geoLagrange=Ku,e.geoLagrangeRaw=Ju,e.geoLarrivee=ef,e.geoLarriveeRaw=Qu,e.geoLaskowski=Cn,e.geoLaskowskiRaw=si,e.geoLittrow=xo,e.geoLittrowRaw=Wn,e.geoLoximuthal=Cl,e.geoLoximuthalRaw=fu,e.geoMiller=d0,e.geoMillerRaw=ys,e.geoModifiedStereographic=$i,e.geoModifiedStereographicRaw=jc,e.geoModifiedStereographicAlaska=g0,e.geoModifiedStereographicGs48=Wc,e.geoModifiedStereographicGs50=Zc,e.geoModifiedStereographicMiller=cu,e.geoModifiedStereographicLee=vu,e.geoMollweide=mr,e.geoMollweideRaw=Qe,e.geoMtFlatPolarParabolic=$c,e.geoMtFlatPolarParabolicRaw=tf,e.geoMtFlatPolarQuartic=Uv,e.geoMtFlatPolarQuarticRaw=y0,e.geoMtFlatPolarSinusoidal=af,e.geoMtFlatPolarSinusoidalRaw=Xo,e.geoNaturalEarth2=hu,e.geoNaturalEarth2Raw=bs,e.geoNellHammer=b0,e.geoNellHammerRaw=pu,e.geoInterruptedQuarticAuthalic=Jc,e.geoNicolosi=Kc,e.geoNicolosiRaw=_0,e.geoPatterson=Qc,e.geoPattersonRaw=k0,e.geoPolyconic=e1,e.geoPolyconicRaw=Sl,e.geoPolyhedral=xs,e.geoPolyhedralButterfly=gu,e.geoPolyhedralCollignon=jv,e.geoPolyhedralWaterman=bu,e.geoProject=uf,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=$,e.geoPierceQuincuncial=$,e.geoQuantize=he,e.geoQuincuncial=S0,e.geoRectangularPolyconic=Ae,e.geoRectangularPolyconicRaw=le,e.geoRobinson=rr,e.geoRobinsonRaw=Ze,e.geoSatellite=Je,e.geoSatelliteRaw=yr,e.geoSinuMollweide=Vc,e.geoSinuMollweideRaw=iu,e.geoSinusoidal=Ce,e.geoSinusoidalRaw=zr,e.geoStitch=_a,e.geoTimes=$t,e.geoTimesRaw=jr,e.geoTwoPointAzimuthal=Mo,e.geoTwoPointAzimuthalRaw=Nn,e.geoTwoPointAzimuthalUsa=xi,e.geoTwoPointEquidistant=Ui,e.geoTwoPointEquidistantRaw=Qi,e.geoTwoPointEquidistantUsa=Dl,e.geoVanDerGrinten=As,e.geoVanDerGrintenRaw=Fl,e.geoVanDerGrinten2=s1,e.geoVanDerGrinten2Raw=vf,e.geoVanDerGrinten3=mp,e.geoVanDerGrinten3Raw=u1,e.geoVanDerGrinten4=Ao,e.geoVanDerGrinten4Raw=E0,e.geoWagner=f1,e.geoWagner7=Wv,e.geoWagnerRaw=yp,e.geoWagner4=c1,e.geoWagner4Raw=xp,e.geoWagner6=wp,e.geoWagner6Raw=L0,e.geoWiechel=Cy,e.geoWiechelRaw=Zv,e.geoWinkel3=eo,e.geoWinkel3Raw=$v,Object.defineProperty(e,"__esModule",{value:!0})}))});var lG=oe((i_e,oG)=>{"use strict";var on=qt(),e_=pr(),v3e=xt(),Fv=Math.PI/180,Pc=180/Math.PI,t_={cursor:"pointer"},a_={cursor:"auto"};function d3e(e,r){var t=e.projection,a;return r._isScoped?a=h3e:r._isClipped?a=m3e:a=p3e,a(e,t)}oG.exports=d3e;function n_(e,r){return on.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function i_(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,s=l[a],u={},f={};function c(d,h){u[a+"."+d]=e_.nestedProperty(o,d).get(),v3e.call("_storeDirectGUIEdit",i,l._preGUI,u);var p=e_.nestedProperty(s,d);p.get()!==h&&(p.set(h),e_.nestedProperty(o,d).set(h),f[a+"."+d]=h)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function h3e(e,r){var t=n_(e,r);function a(){on.select(this).style(t_)}function n(){r.scale(on.event.scale).translate(on.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 s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){on.select(this).style(a_),i_(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function p3e(e,r){var t=n_(e,r),a=2,n,i,o,l,s,u,f,c,d;function h(x){return r.invert(x)}function p(x){var _=h(x);if(!_)return!0;var M=r(_);return Math.abs(M[0]-x[0])>a||Math.abs(M[1]-x[1])>a}function m(){on.select(this).style(t_);let{x,y:_,width:M,height:A}=this.getBBox();n=on.event.sourceEvent?on.mouse(this):[x+M/2,_+A/2],i=r.rotate(),o=r.translate(),l=i,s=h(n)}function y(){let{x,y:_,width:M,height:A}=this.getBBox();if(u=on.event.sourceEvent?on.mouse(this):[x+M/2,_+A/2],p(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(on.event.scale),r.translate([o[0],on.event.translate[1]]),s?h(u)&&(c=h(u),f=[l[0]+(c[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(n=u,s=h(n)),d=!0,e.render(!0);var k=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":-k[0]})}function b(){on.select(this).style(a_),d&&i_(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",m).on("zoom",y).on("zoomend",b),t}function m3e(e,r){var t={r:r.rotate(),k:r.scale()},a=n_(e,r),n=A3e(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){on.select(this).style(t_);let{x:d,y:h,width:p,height:m}=this.getBBox(),y=on.event.sourceEvent?on.mouse(this):[d+p/2,h+m/2],b=r.rotate(),C=b,x=r.translate(),_=g3e(b);l=cy(r,y),o.call(a,"zoom",function(){let{x:M,y:A,width:k,height:D}=this.getBBox(),P=on.event.sourceEvent?on.mouse(this):[M+k/2,A+D/2];if(r.scale(t.k=on.event.scale),!l)y=P,l=cy(r,y);else if(cy(r,P)){r.rotate(b).translate(x);var z=cy(r,P),B=b3e(l,z),Y=x3e(y3e(_,B)),H=t.r=_3e(Y,l,C);(!isFinite(H[0])||!isFinite(H[1])||!isFinite(H[2]))&&(H=C),r.rotate(H),C=H}u(n.of(this,arguments))}),s(n.of(this,arguments))}).on("zoomend",function(){on.select(this).style(a_),o.call(a,"zoom",null),f(n.of(this,arguments)),i_(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var d=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-d[0],"geo.projection.rotation.lat":-d[1]})});function s(d){i++||d({type:"zoomstart"})}function u(d){d({type:"zoom"})}function f(d){--i||d({type:"zoomend"})}function c(d){var h=r.rotate();d("projection.rotation.lon",-h[0]),d("projection.rotation.lat",-h[1])}return on.rebind(a,n,"on")}function cy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&w3e(t)}function g3e(e){var r=.5*e[0]*Fv,t=.5*e[1]*Fv,a=.5*e[2]*Fv,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(a),u=Math.cos(a);return[i*l*u+n*o*s,n*l*u-i*o*s,i*o*u+n*l*s,i*l*s-n*o*u]}function y3e(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-a*l-n*s-i*u,t*l+a*o+n*u-i*s,t*s-a*u+n*o+i*l,t*u+a*s-n*l+i*o]}function b3e(e,r){if(!(!e||!r)){var t=M3e(e,r),a=Math.sqrt(iG(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,iG(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function _3e(e,r,t){var a=r_(r,2,e[0]);a=r_(a,1,e[1]),a=r_(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],s=a[1],u=a[2],f=Math.atan2(i,n)*Pc,c=Math.sqrt(n*n+i*i),d,h;Math.abs(s)>c?(h=(s>0?90:-90)-f,d=0):(h=Math.asin(s/c)*Pc-f,d=Math.sqrt(c*c-s*s));var p=180-h-2*f,m=(Math.atan2(u,l)-Math.atan2(o,d))*Pc,y=(Math.atan2(u,l)-Math.atan2(o,-d))*Pc,b=aG(t[0],t[1],h,m),C=aG(t[0],t[1],p,y);return b<=C?[h,m,t[2]]:[p,y,t[2]]}function aG(e,r,t,a){var n=nG(t-e),i=nG(a-r);return Math.sqrt(n*n+i*i)}function nG(e){return(e%360+540)%360-180}function r_(e,r,t){var a=t*Fv,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),s=Math.sin(a);return n[i]=e[i]*l-e[o]*s,n[o]=e[o]*l+e[i]*s,n}function x3e(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Pc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Pc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Pc]}function w3e(e){var r=e[0]*Fv,t=e[1]*Fv,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function iG(e,r){for(var t=0,a=0,n=e.length;a<n;++a)t+=e[a]*r[a];return t}function M3e(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 A3e(e){for(var r=0,t=arguments.length,a=[];++r<t;)a.push(arguments[r]);var n=on.dispatch.apply(null,a);return n.of=function(i,o){return function(l){var s;try{s=l.sourceEvent=on.event,l.target=e,on.event=l,n[l.type].apply(i,o)}finally{on.event=s}}},n}});var pG=oe((o_e,hG)=>{"use strict";var Zs=qt(),s_=ay(),T3e=s_.geoPath,k3e=s_.geoDistance,C3e=tG(),S3e=xt(),fp=pr(),E3e=fp.strTranslate,vy=Nt(),up=da(),sG=Zl(),L3e=Pn(),l_=Ga(),{concatExtremes:D3e,getAutoRange:uG,makePadFn:fG}=Rf(),o_=al(),F3e=Ou().prepSelect,q3e=Ou().clearOutline,P3e=Ou().selectOnClick,R3e=lG(),ji=(ip(),_r(np)),u_=Dv(),{unwrapLonRange:z3e}=u_,vG=X3(),N3e=P8().feature;function dG(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 ls=dG.prototype;hG.exports=function(r){return new dG(r)};ls.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 s in ji.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f<e.length;f++){var c=e[0][0].trace;c._geo=n,c.locationmode&&(l=!0);var d=c.marker;if(d){var h=d.angle,p=d.angleref;(h||p==="north"||p==="previous")&&(u=!0)}}if(this._hasMarkerAngles=u,l){var m=vG.getTopojsonName(i);(n.topojson===null||m!==n.topojsonName)&&(n.topojsonName=m,PlotlyGeoAssets.topojson[n.topojsonName]===void 0&&o.push(n.fetchTopojson()))}o=o.concat(u_.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)}))};ls.fetchTopojson=function(){var e=this,r=vG.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(t,a){Zs.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()})})};ls.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),L3e.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};ls.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,s=a.lataxis,u=l._ax,f=s._ax,c=this.projection=I3e(a),d=[[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])]],h=a.center||{},p=o.rotation||{},m=l.range||[],y=s.range||[];if(a.fitbounds){u._length=d[1][0]-d[0][0],f._length=d[1][1]-d[0][1],u.range=uG(t,u),f.range=uG(t,f);let N=[];for(let Ne of e){let ke=Ne[0].trace;ke.visible===!0&&ke._module.fitCoords&&N.push(ke._module.fitCoords(Ne,a))}let Q=D3e(t,u),ee=Q.min.reduce((Ne,{val:ke})=>Math.min(Ne,ke),1/0),re=Q.max.reduce((Ne,{val:ke})=>Math.max(Ne,ke),-1/0)-ee,ie=u_.boundsOfCoords(N.flat()),[ue,,xe]=ie||[],Ee=xe-ue;if(!!ie&&(re>360||re<360&&Ee<re)){let Ne=fG(r,u,0),ke=fG(r,u,1),We=Q.min.reduce((J,ce)=>Math.max(J,Ne(ce)),0),W=Q.max.reduce((J,ce)=>Math.max(J,ke(ce)),0),se=u._length-We-W,de=se>u._length/10?Ee*u._length/se:Ee,K=(ue+xe)/2;u.range=[K-de/2,K+de/2]}var b=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)h={lon:b,lat:C};else if(a._isClipped){h={lon:b,lat:C},p={lon:b,lat:C,roll:p.roll};var x=o.type,_=ji.lonaxisSpan[x]/2||180,M=ji.lataxisSpan[x]/2||90;m=[b-_,b+_],y=[C-M,C+M]}else h={lon:b,lat:C},p={lon:b,lat:p.lat,roll:p.roll}}c.center([h.lon-p.lon,h.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var A=cG(m,y);c.fitExtent(d,A);var k=this.bounds=c.getBounds(A),D=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var ee;let{minscale:N}=o,Q=(ee=o.maxscale)!=null?ee:1/0;return[D*Math.min(N,Q),D*Math.max(N,Q)]},a.fitbounds){var z=c.getBounds(cG(u.range,f.range)),B=Math.min((k[1][0]-k[0][0])/(z[1][0]-z[0][0]),(k[1][1]-k[0][1])/(z[1][1]-z[0][1]));isFinite(B)?c.scale(B*D):fp.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*D);var Y=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(c.translate([P[0]+(Y[0]-P[0]),P[1]+(Y[1]-P[1])]).clipExtent(k),a._isAlbersUsa){var H=c([h.lon,h.lat]);if(H){var X=c.translate();c.translate([X[0]-(H[0]-X[0]),X[1]-(H[1]-X[1])])}}};ls.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(d){return d==="lonaxis"||d==="lataxis"}function l(d){return!!ji.lineLayers[d]}function s(d){return!!ji.fillLayers[d]}var u=this.hasChoropleth?ji.layersForChoropleth:ji.layers,f=u.filter(function(d){return l(d)||s(d)?r["show"+d]:o(d)?r[d].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(d){delete n[d],delete i[d],Zs.select(this).remove()}),c.enter().append("g").attr("class",function(d){return"layer "+d}).each(function(d){var h=n[d]=Zs.select(this);d==="bg"?t.bgRect=h.append("rect").style("pointer-events","all"):o(d)?i[d]=h.append("path").style("fill","none"):d==="backplot"?h.append("g").classed("choroplethlayer",!0):d==="frontplot"?h.append("g").classed("scatterlayer",!0):l(d)?i[d]=h.append("path").style("fill","none").style("stroke-miterlimit",2):s(d)&&(i[d]=h.append("path").style("stroke","none"))}),c.order(),c.each(function(d){var h=i[d],p=ji.layerNameToAdjective[d];d==="frame"?h.datum(ji.sphereSVG):l(d)||s(d)?h.datum(N3e(a,a.objects[d])):o(d)&&h.datum(B3e(d,r,e)).call(vy.stroke,r[d].gridcolor).call(up.dashLine,r[d].griddash,r[d].gridwidth),l(d)?h.call(vy.stroke,r[p+"color"]).call(up.dashLine,"",r[p+"width"]):s(d)&&h.call(vy.fill,r[p+"color"])})};ls.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;up.setRect(this.clipRect,n,i,o,l),this.bgRect.call(up.setRect,n,i,o,l).call(vy.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};ls.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,d={};for(var h in c)d[t.id+"."+h]=c[h];S3e.call("_guiRelayout",a,d),a.emit("plotly_doubleclick",null)}function s(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var u=function(c,d){if(d.isRect){var h=c.range={};h[t.id]=[s([d.xmin,d.ymin]),s([d.xmax,d.ymax])]}else{var p=c.lassoPoints={};p[t.id]=d.map(s)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&q3e(a)}};if(i==="pan"){n.node().onmousedown=null;let c=R3e(t,r);if(n.call(c),!Zs.event){let d=t.projection.scale(),[h,p]=t.projection.scaleExtent();(d<h||d>p)&&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,d,h){F3e(c,d,h,f,i)},o_.init(f));n.on("mousemove",function(){var c=t.projection.invert(fp.getPositionFromD3Event());if(!c)return o_.unhover(a,Zs.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},sG.hover(a,Zs.event,t.id)}),n.on("mouseout",function(){a._dragging||o_.unhover(a,Zs.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&P3e(Zs.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&sG.click(a,Zs.event))})};ls.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=Zs.select(e.container).append("g").attr("class","geo "+e.id).call(up.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"},l_.setConvert(e.mockAxis,t)};ls.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},fp.extendFlat(this.viewInitial,n)};ls.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};ls._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?E3e(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 I3e(e){var r=e.projection,t=r.type,a=ji.projNames[t];a="geo"+fp.titleCase(a);for(var n=s_[a]||C3e[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?ji.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(c){return c?i:[]},u=0;u<l.length;u++){var f=l[u];typeof i[f]!="function"&&(i[f]=s)}return i.isLonLatOverEdges=function(c){if(i(c)===null)return!0;if(o){var d=i.rotate(),h=k3e(c,[-d[0],-d[1]]),p=o*Math.PI/180;return h>p}else return!1},i.getPath=function(){return T3e().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(ji.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-ji.clipPad),i}function B3e(e,r,t){var a=1e-6,n=2.5,i=r[e],o=ji.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};l_.setConvert(f,t);var c=l_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var d=c.length,h=new Array(d),p=0;p<d;p++)for(var m=c[p].x,y=h[p]=[],b=s[0];b<s[1]+n;b+=n)y.push(u(m,b));return{type:"MultiLineString",coordinates:h}}function cG(e,r){var t=ji.clipPad;let[a,n]=z3e([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 f_=oe((l_e,yG)=>{"use strict";var Pv=Hl(),H3e=B3().attributes,O3e=Ls().dash,qv=(ip(),_r(np)),U3e=Ko().overrideAll,mG=(Am(),_r(Mm)).default,gG={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:Pv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:O3e},G3e=yG.exports=U3e({domain:H3e({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:mG(qv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:mG(qv.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:Pv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:qv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:qv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:qv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:qv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Pv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Pv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Pv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Pv.background},lonaxis:gG,lataxis:gG},"plot","from-root");G3e.uirevision={valType:"any",editType:"none"}});var _G=oe((s_e,bG)=>{"use strict";var Y3e=pr(),V3e=Aa(),X3e=B3().defaults;bG.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),d,h;function p(C,x){return Y3e.coerce(d,h,o,C,x)}for(var m=0;m<f;m++){var y=u[m];r[y]?d=r[y]:d=r[y]={},h=V3e.newContainer(t,y,c),n.noUirevision||p("uirevision",t.uirevision);var b={};b[s]=[m/f,(m+1)/f],X3e(h,t,p,b),n.id=y,l(d,h,p,n)}}});var MG=oe((u_e,wG)=>{"use strict";var dy=pr(),j3e=_G(),W3e=Pd().getSubplotData,{unwrapLonRange:Z3e}=Dv(),cp=(ip(),_r(np)),$3e=f_(),xG=cp.axesNames;wG.exports=function(r,t,a){j3e(r,t,a,{type:"geo",attributes:$3e,handleDefaults:J3e,fullData:a,partition:"y"})};function J3e(e,r,t,a){var n=W3e(a.fullData,"geo",a.id),i=n.map(function(ie){return ie.index}),o=t("resolution"),l=t("scope"),s=cp.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",d=r._isSatellite=u==="satellite",h=r._isConic=u.indexOf("conic")!==-1||u==="albers",p=r._isClipped=!!cp.lonaxisSpan[u];if(e.visible===!1){var m=dy.extendDeep({},r._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),r._template=m}for(var y=t("visible"),b,C=0;C<xG.length;C++){var x=xG[C],_=[30,10][C],M;if(c)M=s[x+"Range"];else{var A=cp[x+"Span"],k=(A[u]||A["*"])/2,D=t("projection.rotation."+x.slice(0,3),s.projRotate[C]);M=[D-k,D+k]}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:dy.identity,c2l:dy.identity,r2l:dy.identity,autorange:!0,range:P.slice(),_m:1,_input:{}}}var z=r.lonaxis.range,B=r.lataxis.range;let[Y,H]=Z3e(z);var X=(Y+H)/2,N;if(!f){var Q=c?s.projRotate:[X,0,0];N=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 ee,ae;if(f?(ee=-96.6,ae=38.7):(ee=c?X:N,ae=(B[0]+B[1])/2),t("center.lon",ee),t("center.lat",ae),d&&(t("projection.tilt"),t("projection.distance")),h){var re=s.projParallels||[0,60];t("projection.parallels",re)}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 ie=e.center||{},ue=e.projection||{},xe=ue.rotation||{},Ee=e.lonaxis||{},Re=e.lataxis||{},Ne=[{dst:r.center,key:"lon",src:ie},{dst:r.center,key:"lat",src:ie},{dst:r.projection,key:"scale",src:ue}];c||(p?Ne.push({dst:r.projection.rotation,key:"lon",src:xe},{dst:r.projection.rotation,key:"lat",src:xe},{dst:r.lonaxis,key:"range",src:Ee},{dst:r.lataxis,key:"range",src:Re}):Ne.push({dst:r.projection.rotation,key:"lon",src:xe})),p||Ne.push({key:"range",src:Ee},{key:"range",src:Re}),Ne.some(({src:We,key:W})=>We[W]!=null)||cp.fitboundsIncompatible.has(u)?r.fitbounds=!1:Ne.forEach(({dst:We,key:W})=>We&&(We[W]=null))}}});var c_=oe((f_e,kG)=>{"use strict";var K3e=Pd().getSubplotCalcData,Q3e=pr().counterRegex,eye=pG(),$s="geo",AG=Q3e($s),TG={};TG[$s]={valType:"subplotid",dflt:$s,editType:"calc"};function rye(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[$s],n=0;n<a.length;n++){var i=a[n],o=K3e(t,$s,i),l=r[i],s=l._subplot;s||(s=eye({id:i,graphDiv:e,container:r._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),r[i]._subplot=s),s.plot(o,r,e._promises)}}function tye(e,r,t,a){for(var n=a._subplots[$s]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.framework.remove(),l.clipDef.remove())}}function aye(e){for(var r=e._fullLayout,t=r._subplots[$s],a=0;a<t.length;a++){var n=r[t[a]],i=n._subplot;i.updateFx(r,n)}}kG.exports={attr:$s,name:$s,idRoot:$s,idRegex:AG,attrRegex:AG,attributes:TG,layoutAttributes:f_(),supplyLayoutDefaults:MG(),plot:rye,updateFx:aye,clean:tye}});var SG=oe((c_e,CG)=>{"use strict";CG.exports={attributes:ap(),supplyDefaults:$O(),colorbar:A9(),formatLabels:QO(),calc:nU(),calcGeoJSON:sy().calcGeoJSON,fitCoords:sy().fitCoords,plot:sy().plot,style:$8(),styleOnSelect:Uh().styleOnSelect,hoverPoints:jU(),eventData:ZU(),selectPoints:KU(),moduleType:"trace",name:"scattergeo",basePlotModule:c_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var LG=oe((v_e,EG)=>{"use strict";EG.exports=SG()});var hy=oe((d_e,qG)=>{"use strict";var{hovertemplateAttrs:nye,templatefallbackAttrs:iye}=V0(),t0=ap(),oye=Y1(),DG=Jo(),lye=Hl().defaultLine,r0=Dn().extendFlat,FG=t0.marker.line;qG.exports=r0({locations:{valType:"data_array",editType:"calc"},locationmode:t0.locationmode,z:{valType:"data_array",editType:"calc"},geojson:r0({},t0.geojson,{}),featureidkey:t0.featureidkey,text:r0({},t0.text,{}),hovertext:r0({},t0.hovertext,{}),marker:{line:{color:r0({},FG.color,{dflt:lye}),width:r0({},FG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:t0.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:t0.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:r0({},DG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:nye(),hovertemplatefallback:iye(),showlegend:r0({},DG.showlegend,{dflt:!1})},oye("",{cLetter:"z",editTypeOverride:"calc"}))});var RG=oe((h_e,PG)=>{"use strict";var py=pr(),sye=V1(),uye=hy();PG.exports=function(r,t,a,n){function i(d,h){return py.coerce(r,t,uye,d,h)}var o=i("locations"),l=i("z");if(!(o&&o.length&&py.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||py.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);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"),sye(r,t,n,i,{prefix:"",cLetter:"z"}),py.coerceSelectionMarkerOpacity(t,i)}});var NG=oe((p_e,zG)=>{"use strict";zG.exports={min:"zmin",max:"zmax"}});var OG=oe((m_e,HG)=>{"use strict";var IG=Jt(),fye=(ja(),_r(tn)).BADNUM,cye=$m(),vye=Nh(),dye=e3();function BG(e){return e&&typeof e=="string"}HG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return BG(f)||IG(f)}:i=BG;for(var o=0;o<a;o++){var l=n[o]={},s=t.locations[o],u=t.z[o];i(s)&&IG(u)?(l.loc=s,l.z=u):(l.loc=null,l.z=fye),l.index=o}return vye(n,t),cye(r,t,{vals:t.z,containerStr:"",cLetter:"z"}),dye(n,t),n}});var my=oe((g_e,GG)=>{"use strict";var hye=qt(),pye=Nt(),v_=da(),mye=Km();function gye(e,r){r&&UG(e,r)}function UG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=mye.makeColorScaleFuncFromTrace(t);n.each(function(s){hye.select(this).attr("fill",l(s.z)).call(pye.stroke,s.mlc||o.color).call(v_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),v_.selectedPointStyle(n,t)}function yye(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?v_.selectedPointStyle(t.selectAll(".choroplethlocation"),a):UG(e,r)}GG.exports={style:gye,styleOnSelect:yye}});var gy=oe((y_e,XG)=>{"use strict";var bye=qt(),YG=pr(),Rc=Dv(),_ye=X3().getTopojsonFeatures,VG=Rf().findExtremes,xye=my().style;function wye(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");YG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=bye.select(this),o=i.selectAll("path.choroplethlocation").data(YG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),xye(e,n)})}function Mye(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Rc.extractTraceFeature(e):_ye(t,n.topojson);let s=Rc.fitGeojsonBbox(t,a);for(var u=[],f=[],c=0;c<o;c++){var d=e[c],h=i==="geojson-id"?d.fOut:Rc.locationToFeature(i,d.loc,l);if(h){if(d.geojson=h,d.ct=h.properties.ct,d._polygons=Rc.feature2polygons(h),!s){let m=Rc.computeBbox(h);if(m){let[y,b,C,x]=m;u.push(y,C),f.push(b,x)}}}else d.geojson=null}if(s){let[m,y,b,C]=s;u=[m,b],f=[y,C]}var p={padded:!0};t._extremes.lon=VG(a.lonaxis._ax,u,p),t._extremes.lat=VG(a.lataxis._ax,f,p)}function Aye(e,r){let t=Rc.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.geojson&&a.push(Rc.coordsOf(n.geojson));return a.flat()}XG.exports={calcGeoJSON:Mye,fitCoords:Aye,plot:wye}});var WG=oe((b_e,jG)=>{"use strict";var Tye=Ga(),kye=hy(),Cye=pr().fillText,{ANTIMERIDIAN_LON_SHIFT:Sye}=Dv();jG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,s,u,f,c=[t,a];let d=[t+Sye,a];for(s=0;s<n.length;s++)if(l=n[s],f=!1,l._polygons){for(u=0;u<l._polygons.length;u++)l._polygons[u].contains(c)&&(f=!f),l._polygons[u].contains(d)&&(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=Tye.tickText(o.mockAxis,o.mockAxis.c2l(l.z),"hover").text,r.hovertemplate=l.hovertemplate,Eye(r,i,l),[r]};function Eye(e,r,t){if(!r.hovertemplate){var a=t.hi||r.hoverinfo,n=String(t.loc),i=a==="all"?kye.hoverinfo.flags:a.split("+"),o=i.indexOf("name")!==-1,l=i.indexOf("location")!==-1,s=i.indexOf("z")!==-1,u=i.indexOf("text")!==-1,f=!o&&l,c=[];f?e.nameOverride=n:(o&&(e.nameOverride=r.name),l&&c.push(n)),s&&c.push(e.zLabel),u&&Cye(t,r,c),e.extraText=c.join("<br>")}}});var $G=oe((__e,ZG)=>{"use strict";ZG.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 KG=oe((x_e,JG)=>{"use strict";JG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s,u,f,c;if(t===!1)for(l=0;l<a.length;l++)a[l].selected=0;else for(l=0;l<a.length;l++)s=a[l],u=s.ct,u&&(f=n.c2p(u),c=i.c2p(u),t.contains([f,c],null,l,r)?(o.push({pointNumber:l,lon:u[0],lat:u[1]}),s.selected=1):s.selected=0);return o}});var eY=oe((w_e,QG)=>{"use strict";QG.exports={attributes:hy(),supplyDefaults:RG(),colorbar:NG(),calc:OG(),calcGeoJSON:gy().calcGeoJSON,fitCoords:gy().fitCoords,plot:gy().plot,style:my().style,styleOnSelect:my().styleOnSelect,hoverPoints:WG(),eventData:$G(),selectPoints:KG(),moduleType:"trace",name:"choropleth",basePlotModule:c_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var tY=oe((M_e,rY)=>{"use strict";rY.exports=eY()});var gi=oe((A_e,nY)=>{"use strict";var aY=Object.getOwnPropertySymbols,Lye=Object.prototype.hasOwnProperty,Dye=Object.prototype.propertyIsEnumerable;function Fye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qye(){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}}nY.exports=qye()?Object.assign:function(e,r){for(var t,a=Fye(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)Lye.call(t,o)&&(a[o]=t[o]);if(aY){n=aY(t);for(var l=0;l<n.length;l++)Dye.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var yi=oe((T_e,oY)=>{var by=gi();function iY(){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={}}by(iY.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 d_(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(Pt.local.invalidDate||Pt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function yy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}by(d_.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(Pt.local.invalidDate||Pt.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(Pt.local.differentCalendars||Pt.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?"-":"")+yy(Math.abs(this.year()),4)+"-"+yy(this.month(),2)+"-"+yy(this.day(),2)}});function h_(){this.shortYearCutoff="+10"}by(h_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pt.local.invalidDate||Pt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new d_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pt.local.invalidYear||Pt.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,Pt.local.invalidYear||Pt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+yy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pt.local.invalidYear||Pt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pt.local.invalidMonth||Pt.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,Pt.local.invalidMonth||Pt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pt.local.invalidYear||Pt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pt.local.invalidDate||Pt.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,Pt.local.invalidDate||Pt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pt.local.invalidDate||Pt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pt.local.invalidDate||Pt.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 s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_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,Pt.local.invalidDate||Pt.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,Pt.local.invalidDate||Pt.regionalOptions[""].invalidDate);return Pt.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Pt.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Pt.local.differentCalendars||Pt.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 p_(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}p_.prototype=new h_;by(p_.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,Pt.local.invalidYear||Pt.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,Pt.local.invalidMonth||Pt.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,Pt.local.invalidDate||Pt.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),s=o-(o>13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pt.local.invalidDate||Pt.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 Pt=oY.exports=new iY;Pt.cdate=d_;Pt.baseCalendar=h_;Pt.calendars.gregorian=p_});var lY=oe(()=>{var m_=gi(),Kn=yi();m_(Kn.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"});Kn.local=Kn.regionalOptions[""];m_(Kn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});m_(Kn.baseCalendar.prototype,{UNIX_EPOCH:Kn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Kn.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 Kn.local.invalidFormat||Kn.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,s=t.calculateWeek||this.local.calculateWeek,u=function(_,M){for(var A=1;x+A<e.length&&e.charAt(x+A)===_;)A++;return x+=A-1,Math.floor(A/(M||1))>1},f=function(_,M,A,k){var D=""+M;if(u(_,k))for(;D.length<A;)D="0"+D;return D},c=function(_,M,A,k){return u(_)?k[M]:A[M]},d=this,h=function(_){return typeof i=="function"?i.call(d,_,u("m")):y(f("m",_.month(),2))},p=function(_,M){return M?typeof l=="function"?l.call(d,_):l[_.month()-d.minMonth]:typeof o=="function"?o.call(d,_):o[_.month()-d.minMonth]},m=this.local.digits,y=function(_){return t.localNumbers&&m?m(_):_},b="",C=!1,x=0;x<e.length;x++)if(C)e.charAt(x)==="'"&&!u("'")?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+=h(r);break;case"M":b+=p(r,u("M"));break;case"y":b+=u("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":u("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"'":u("'")?b+="'":C=!0;break;default:b+=e.charAt(x)}return b},parseDate:function(e,r,t){if(r==null)throw Kn.local.invalidArguments||Kn.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,s=t.monthNamesShort||this.local.monthNamesShort,u=t.monthNames||this.local.monthNames,f=-1,c=-1,d=-1,h=-1,p=-1,m=!1,y=!1,b=function(Y,H){for(var X=1;P+X<e.length&&e.charAt(P+X)===Y;)X++;return P+=X-1,Math.floor(X/(H||1))>1},C=function(Y,H){var X=b(Y,H),N=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(Y)+1],Q=new RegExp("^-?\\d{1,"+N+"}"),ee=r.substring(D).match(Q);if(!ee)throw(Kn.local.missingNumberAt||Kn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ee[0].length,parseInt(ee[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var Y=l.call(x,r.substring(D));return D+=Y.length,Y}return C("m")},M=function(Y,H,X,N){for(var Q=b(Y,N)?X:H,ee=0;ee<Q.length;ee++)if(r.substr(D,Q[ee].length).toLowerCase()===Q[ee].toLowerCase())return D+=Q[ee].length,ee+x.minMonth;throw(Kn.local.unknownNameAt||Kn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,D)},A=function(){if(typeof u=="function"){var Y=b("M")?u.call(x,r.substring(D)):s.call(x,r.substring(D));return D+=Y.length,Y}return M("M",s,u)},k=function(){if(r.charAt(D)!==e.charAt(P))throw(Kn.local.unexpectedLiteralAt||Kn.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,D);D++},D=0,P=0;P<e.length;P++)if(y)e.charAt(P)==="'"&&!b("'")?y=!1:k();else switch(e.charAt(P)){case"d":h=C("d");break;case"D":M("D",n,i);break;case"o":p=C("o");break;case"w":C("w");break;case"m":d=_();break;case"M":d=A();break;case"y":var z=P;m=!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("'")?k():y=!0;break;default:k()}if(D<r.length)throw Kn.local.unexpectedText||Kn.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&m&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof d=="string"&&(d=o.call(this,c,d)),p>-1){d=1,h=p;for(var B=this.daysInMonth(c,d);h>B;B=this.daysInMonth(c,d))d++,h-=B}return f>-1?this.fromJD(f):this.newDate(c,d,h)},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 s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};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 sY=oe(()=>{var a0=yi(),Pye=gi(),g_=a0.instance();function _y(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_y.prototype=new a0.baseCalendar;Pye(_y.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(zye);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(Nye);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(Iye);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 a0.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 a0.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=n0[e-n0[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,a0.local.invalidyear),n=i0[a-i0[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=g_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/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=n0[e-n0[0]],a=t>>13,n=a?12:11;if(r>n)throw a0.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,a0.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=Hye(e,i,t,n);return g_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=g_.fromJD(e),t=Bye(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(Rye),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(_y.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var Rye=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,zye=/^\d?\d[iI]?/m,Nye=/^闰?十?[一二三四五六七八九]?月/m,Iye=/^闰?十?[一二三四五六七八九]?/m;a0.calendars.chinese=_y;var n0=[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],i0=[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 Bye(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 s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=i0[n.year-i0[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=i0[i.year-i0[0]];var c=u>>9&4095,d=u>>5&15,h=u&31,p,m=new Date(c,d-1,h),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=n0[i.year-n0[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(p<x)break;p-=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+p,i}function Hye(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 s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)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 d=n0[o.year-n0[0]],h=d>>13,p;h&&(o.month>h||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m<p;m++){var y=d&1<<12-m?30:29;c+=y}var b=i0[o.year-i0[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 uY=oe(()=>{var zc=yi(),Oye=gi();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new zc.baseCalendar;Oye(y_.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,zc.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,zc.local.invalidYear||zc.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,zc.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,zc.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)}});zc.calendars.coptic=y_});var fY=oe(()=>{var Wu=yi(),Uye=gi();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Wu.baseCalendar;Uye(b_.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,Wu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wu.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,Wu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Wu.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,Wu.local.invalidDate);return{century:Gye[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Wu.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 Gye={20:"Fruitbat",21:"Anchovy"};Wu.calendars.discworld=b_});var cY=oe(()=>{var Nc=yi(),Yye=gi();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Nc.baseCalendar;Yye(__.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,Nc.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,Nc.local.invalidYear||Nc.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,Nc.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,Nc.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)}});Nc.calendars.ethiopian=__});var vY=oe(()=>{var o0=yi(),Vye=gi();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new o0.baseCalendar;Vye(x_.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,o0.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,xy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,o0.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,o0.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,o0.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&xy(this.daysInYear(e),10)===5?30:r===9&&xy(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,o0.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,o0.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 xy(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 xy(e,r){return e-r*Math.floor(e/r)}o0.calendars.hebrew=x_});var dY=oe(()=>{var vp=yi(),Xye=gi();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new vp.baseCalendar;Xye(w_.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,vp.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,vp.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,vp.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)}});vp.calendars.islamic=w_});var hY=oe(()=>{var dp=yi(),jye=gi();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new dp.baseCalendar;jye(M_.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,dp.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,dp.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,dp.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),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});dp.calendars.julian=M_});var mY=oe(()=>{var yl=yi(),Wye=gi();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new yl.baseCalendar;Wye(T_.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,yl.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,yl.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,yl.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,yl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,yl.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,yl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,yl.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,yl.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,yl.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=A_(e+8+340,365);return[Math.floor(r/20)+1,A_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[pY(e+20,20),pY(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,yl.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 A_(e,r){return e-r*Math.floor(e/r)}function pY(e,r){return A_(e-1,r)+1}yl.calendars.mayan=T_});var yY=oe(()=>{var Ic=yi(),Zye=gi();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new Ic.baseCalendar;var gY=Ic.instance("gregorian");Zye(k_.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,Ic.local.invalidYear||Ic.regionalOptions[""].invalidYear);return gY.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,Ic.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,Ic.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+gY.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)}});Ic.calendars.nanakshahi=k_});var bY=oe(()=>{var Bc=yi(),$ye=gi();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Bc.baseCalendar;$ye(C_.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,Bc.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,Bc.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,Bc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Bc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=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(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Bc.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],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_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]}});Bc.calendars.nepali=C_});var _Y=oe(()=>{var Rv=yi(),Jye=gi();function My(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function wy(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}My.prototype=new Rv.baseCalendar;Jye(My.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,Rv.local.invalidYear);return wy(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,Rv.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,Rv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)wy(i)&&n++;else if(e<0)for(var i=e;i<0;i++)wy(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,wy(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)}});Rv.calendars.persian=My;Rv.calendars.jalali=My});var xY=oe(()=>{var Hc=yi(),Kye=gi(),Ay=Hc.instance();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Hc.baseCalendar;Kye(S_.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,Hc.local.invalidYear),t=this._t2gYear(r.year());return Ay.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Hc.local.invalidYear),n=this._t2gYear(a.year());return Ay.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hc.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,Hc.local.invalidDate),n=this._t2gYear(a.year());return Ay.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ay.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)}});Hc.calendars.taiwan=S_});var wY=oe(()=>{var Oc=yi(),Qye=gi(),Ty=Oc.instance();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Oc.baseCalendar;Qye(E_.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,Oc.local.invalidYear),t=this._t2gYear(r.year());return Ty.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Oc.local.invalidYear),n=this._t2gYear(a.year());return Ty.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.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,Oc.local.invalidDate),n=this._t2gYear(a.year());return Ty.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ty.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)}});Oc.calendars.thai=E_});var MY=oe(()=>{var Uc=yi(),e4e=gi();function L_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L_.prototype=new Uc.baseCalendar;e4e(L_.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,Uc.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,Uc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<l0.length;i++){if(l0[i]>a)return l0[n]-l0[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,Uc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+l0[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<l0.length&&!(l0[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-l0[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Uc.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=Uc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Uc.calendars.ummalqura=L_;var l0=[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 TY=oe((txe,AY)=>{"use strict";AY.exports=yi();lY();sY();uY();fY();cY();vY();dY();hY();mY();yY();bY();_Y();xY();wY();MY()});var FY=oe((axe,DY)=>{"use strict";var CY=TY(),hp=pr(),SY=(ja(),_r(tn)),r4e=SY.EPOCHJD,t4e=SY.ONEDAY,q_={valType:"enumerated",values:hp.sortObjectKeys(CY.calendars),editType:"calc",dflt:"gregorian"},EY=function(e,r,t,a){var n={};return n[t]=q_,hp.coerce(e,r,n,t,a)},a4e=function(e,r,t,a){for(var n=0;n<t.length;n++)EY(e,r,t[n]+"calendar",a.calendar)},n4e={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"},i4e={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"},o4e={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"]},ky="##",l4e={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:ky,w:ky,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function s4e(e,r,t){for(var a=Math.floor((r+.05)/t4e)+r4e,n=LY(t).fromJD(a),i=0,o,l,s,u,f;(i=e.indexOf("%",i))!==-1;)o=e.charAt(i+1),o==="0"||o==="-"||o==="_"?(s=3,l=e.charAt(i+2),o==="_"&&(o="-")):(l=o,o="0",s=2),u=l4e[l],u?(u===ky?f=ky:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var kY={};function LY(e){var r=kY[e];return r||(r=kY[e]=CY.instance(e),r)}function pp(e){return hp.extendFlat({},q_,{description:e})}function P_(e){return"Sets the calendar system to use with `"+e+"` date data."}var F_={xcalendar:pp(P_("x"))},Js=hp.extendFlat({},F_,{ycalendar:pp(P_("y"))}),D_=hp.extendFlat({},Js,{zcalendar:pp(P_("z"))}),zv=pp(["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(" "));DY.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Js,bar:Js,box:Js,heatmap:Js,contour:Js,histogram:Js,histogram2d:Js,histogram2dcontour:Js,scatter3d:D_,surface:D_,mesh3d:D_,scattergl:Js,ohlc:F_,candlestick:F_},layout:{calendar:pp(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:zv},yaxis:{calendar:zv},scene:{xaxis:{calendar:zv},yaxis:{calendar:zv},zaxis:{calendar:zv}},polar:{radialaxis:{calendar:zv}}}},layoutAttributes:q_,handleDefaults:EY,handleTraceDefaults:a4e,CANONICAL_SUNDAY:i4e,CANONICAL_TICK:n4e,DFLTRANGE:o4e,getCal:LY,worldCalFmt:s4e}});var PY=oe((nxe,qY)=>{"use strict";qY.exports=FY()});var u4e=oe((ixe,zY)=>{var RY=GO();RY.register([LG(),tY(),PY()]);zY.exports=RY});return u4e();})();
/*! 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;
}));