plotly.js
Version:
The open source JavaScript graphing library that also powers plotly.py and Plotly Dash
50 lines • 1.3 MB
JavaScript
/**
* plotly.js (finance - 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 FK=Object.create;var b0=Object.defineProperty,HK=Object.defineProperties,OK=Object.getOwnPropertyDescriptor,BK=Object.getOwnPropertyDescriptors,YK=Object.getOwnPropertyNames,_h=Object.getOwnPropertySymbols,GK=Object.getPrototypeOf,d2=Object.prototype.hasOwnProperty,f8=Object.prototype.propertyIsEnumerable;var u8=(e,r,t)=>r in e?b0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,vt=(e,r)=>{for(var t in r||(r={}))d2.call(r,t)&&u8(e,t,r[t]);if(_h)for(var t of _h(r))f8.call(r,t)&&u8(e,t,r[t]);return e},Dt=(e,r)=>HK(e,BK(r));var c8=(e,r)=>{var t={};for(var a in e)d2.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&_h)for(var a of _h(e))r.indexOf(a)<0&&f8.call(e,a)&&(t[a]=e[a]);return t};var lt=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var G=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},ht=(e,r)=>{for(var t in r)b0(e,t,{get:r[t],enumerable:!0})},v8=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of YK(r))!d2.call(e,n)&&n!==t&&b0(e,n,{get:()=>r[n],enumerable:!(a=OK(r,n))||a.enumerable});return e};var d8=(e,r,t)=>(t=e!=null?FK(GK(e)):{},v8(r||!e||!e.__esModule?b0(t,"default",{value:e,enumerable:!0}):t,e)),Ne=e=>v8(b0({},"__esModule",{value:!0}),e);var h8=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{o(t.next(s))}catch(u){n(u)}},l=s=>{try{o(t.throw(s))}catch(u){n(u)}},o=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,l);o((t=t.apply(e,r)).next())});var x0=G(p8=>{"use strict";p8.version="4.3.1"});var y8=G((m8,wh)=>{(function(r,t,a){t[r]=t[r]||a(),typeof wh!="undefined"&&wh.exports&&(wh.exports=t[r])})("Promise",typeof window!="undefined"?window:m8,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,M){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(w,x,M){return w[x]=M,w}}a=(function(){var _,w,x;function M(A,k){this.fn=A,this.self=k,this.next=void 0}return{add:function(k,S){x=new M(k,S),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var k=_;for(_=w=t=void 0;k;)k.fn.call(k.self),k=k.next}}})();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!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,_,w){var x,M;try{_===!1?w.reject(b.msg):(_===!0?x=b.msg:x=_.call(void 0,b.msg),x===w.promise?w.reject(TypeError("Promise-chain cycle")):(M=o(x))?M.call(x,w.resolve,w.reject):w.resolve(x))}catch(A){w.reject(A)}}function f(b){var _,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(_=o(b))?l(function(){var x=new h(w);try{_.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(M){c.call(x,M)}}):(w.msg=b,w.state=1,w.chain.length>0&&l(s,w))}catch(x){c.call(new h(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function v(b,_,w,x){for(var M=0;M<_.length;M++)(function(k){b.resolve(_[k]).then(function(D){w(k,D)},x)})(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 y(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,M){var A={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return A.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");A.resolve=S,A.reject=D}),_.chain.push(A),_.state!==0&&l(s,_),A.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");var k=_.length,S=Array(k),D=0;v(w,_,function(R,N){S[R]=N,++D===k&&M(S)},A)})}),r(y,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");v(w,_,function(S,D){M(D)},A)})}),y})});var Er=G((Uwe,Th)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(d){return r.call(d)},a=self.document;function n(d){return d&&(d.ownerDocument||d.document||d).documentElement}function i(d){return d&&(d.ownerDocument&&d.ownerDocument.defaultView||d.document&&d||d.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(d){t=function(g){for(var T=g.length,C=new Array(T);T--;)C[T]=g[T];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(d){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,C){s.call(this,g,T,C+"")},u.setProperty=function(g,T,C){f.call(this,g,T+"",C)}}e.ascending=c;function c(d,g){return d<g?-1:d>g?1:d>=g?0:NaN}e.descending=function(d,g){return g<d?-1:g>d?1:g>=d?0:NaN},e.min=function(d,g){var T=-1,C=d.length,L,q;if(arguments.length===1){for(;++T<C;)if((q=d[T])!=null&&q>=q){L=q;break}for(;++T<C;)(q=d[T])!=null&&L>q&&(L=q)}else{for(;++T<C;)if((q=g.call(d,d[T],T))!=null&&q>=q){L=q;break}for(;++T<C;)(q=g.call(d,d[T],T))!=null&&L>q&&(L=q)}return L},e.max=function(d,g){var T=-1,C=d.length,L,q;if(arguments.length===1){for(;++T<C;)if((q=d[T])!=null&&q>=q){L=q;break}for(;++T<C;)(q=d[T])!=null&&q>L&&(L=q)}else{for(;++T<C;)if((q=g.call(d,d[T],T))!=null&&q>=q){L=q;break}for(;++T<C;)(q=g.call(d,d[T],T))!=null&&q>L&&(L=q)}return L},e.extent=function(d,g){var T=-1,C=d.length,L,q,z;if(arguments.length===1){for(;++T<C;)if((q=d[T])!=null&&q>=q){L=z=q;break}for(;++T<C;)(q=d[T])!=null&&(L>q&&(L=q),z<q&&(z=q))}else{for(;++T<C;)if((q=g.call(d,d[T],T))!=null&&q>=q){L=z=q;break}for(;++T<C;)(q=g.call(d,d[T],T))!=null&&(L>q&&(L=q),z<q&&(z=q))}return[L,z]};function v(d){return d===null?NaN:+d}function h(d){return!isNaN(d)}e.sum=function(d,g){var T=0,C=d.length,L,q=-1;if(arguments.length===1)for(;++q<C;)h(L=+d[q])&&(T+=L);else for(;++q<C;)h(L=+g.call(d,d[q],q))&&(T+=L);return T},e.mean=function(d,g){var T=0,C=d.length,L,q=-1,z=C;if(arguments.length===1)for(;++q<C;)h(L=v(d[q]))?T+=L:--z;else for(;++q<C;)h(L=v(g.call(d,d[q],q)))?T+=L:--z;if(z)return T/z},e.quantile=function(d,g){var T=(d.length-1)*g+1,C=Math.floor(T),L=+d[C-1],q=T-C;return q?L+q*(d[C]-L):L},e.median=function(d,g){var T=[],C=d.length,L,q=-1;if(arguments.length===1)for(;++q<C;)h(L=v(d[q]))&&T.push(L);else for(;++q<C;)h(L=v(g.call(d,d[q],q)))&&T.push(L);if(T.length)return e.quantile(T.sort(c),.5)},e.variance=function(d,g){var T=d.length,C=0,L,q,z=0,P=-1,H=0;if(arguments.length===1)for(;++P<T;)h(L=v(d[P]))&&(q=L-C,C+=q/++H,z+=q*(L-C));else for(;++P<T;)h(L=v(g.call(d,d[P],P)))&&(q=L-C,C+=q/++H,z+=q*(L-C));if(H>1)return z/(H-1)},e.deviation=function(){var d=e.variance.apply(this,arguments);return d&&Math.sqrt(d)};function p(d){return{left:function(g,T,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C<L;){var q=C+L>>>1;d(g[q],T)<0?C=q+1:L=q}return C},right:function(g,T,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C<L;){var q=C+L>>>1;d(g[q],T)>0?L=q:C=q+1}return C}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(d){return p(d.length===1?function(g,T){return c(d(g),T)}:d)},e.shuffle=function(d,g,T){(C=arguments.length)<3&&(T=d.length,C<2&&(g=0));for(var C=T-g,L,q;C;)q=Math.random()*C--|0,L=d[C+g],d[C+g]=d[q+g],d[q+g]=L;return d},e.permute=function(d,g){for(var T=g.length,C=new Array(T);T--;)C[T]=d[g[T]];return C},e.pairs=function(d){for(var g=0,T=d.length-1,C,L=d[0],q=new Array(T<0?0:T);g<T;)q[g]=[C=L,L=d[++g]];return q},e.transpose=function(d){if(!(q=d.length))return[];for(var g=-1,T=e.min(d,m),C=new Array(T);++g<T;)for(var L=-1,q,z=C[g]=new Array(q);++L<q;)z[L]=d[L][g];return C};function m(d){return d.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(d){var g=[];for(var T in d)g.push(T);return g},e.values=function(d){var g=[];for(var T in d)g.push(d[T]);return g},e.entries=function(d){var g=[];for(var T in d)g.push({key:T,value:d[T]});return g},e.merge=function(d){for(var g=d.length,T,C=-1,L=0,q,z;++C<g;)L+=d[C].length;for(q=new Array(L);--g>=0;)for(z=d[g],T=z.length;--T>=0;)q[--L]=z[T];return q};var b=Math.abs;e.range=function(d,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=d,d=0)),(g-d)/T===1/0)throw new Error("infinite range");var C=[],L=_(b(T)),q=-1,z;if(d*=L,g*=L,T*=L,T<0)for(;(z=d+T*++q)>g;)C.push(z/L);else for(;(z=d+T*++q)<g;)C.push(z/L);return C};function _(d){for(var g=1;d*g%1;)g*=10;return g}function w(d,g){for(var T in g)Object.defineProperty(d.prototype,T,{value:g[T],enumerable:!1})}e.map=function(d,g){var T=new x;if(d instanceof x)d.forEach(function(P,H){T.set(P,H)});else if(Array.isArray(d)){var C=-1,L=d.length,q;if(arguments.length===1)for(;++C<L;)T.set(C,d[C]);else for(;++C<L;)T.set(g.call(d,q=d[C],C),q)}else for(var z in d)T.set(z,d[z]);return T};function x(){this._=Object.create(null)}var M="__proto__",A="\0";w(x,{has:D,get:function(d){return this._[k(d)]},set:function(d,g){return this._[k(d)]=g},remove:E,keys:R,values:function(){var d=[];for(var g in this._)d.push(this._[g]);return d},entries:function(){var d=[];for(var g in this._)d.push({key:S(g),value:this._[g]});return d},size:N,empty:O,forEach:function(d){for(var g in this._)d.call(this,S(g),this._[g])}});function k(d){return(d+="")===M||d[0]===A?A+d:d}function S(d){return(d+="")[0]===A?d.slice(1):d}function D(d){return k(d)in this._}function E(d){return(d=k(d))in this._&&delete this._[d]}function R(){var d=[];for(var g in this._)d.push(S(g));return d}function N(){var d=0;for(var g in this._)++d;return d}function O(){for(var d in this._)return!1;return!0}e.nest=function(){var d={},g=[],T=[],C,L;function q(P,H,Z){if(Z>=g.length)return L?L.call(d,H):C?H.sort(C):H;for(var $=-1,j=H.length,Q=g[Z++],he,_e,ee,ie=new x,ue;++$<j;)(ue=ie.get(he=Q(_e=H[$])))?ue.push(_e):ie.set(he,[_e]);return P?(_e=P(),ee=function(xe,we){_e.set(xe,q(P,we,Z))}):(_e={},ee=function(xe,we){_e[xe]=q(P,we,Z)}),ie.forEach(ee),_e}function z(P,H){if(H>=g.length)return P;var Z=[],$=T[H++];return P.forEach(function(j,Q){Z.push({key:j,values:z(Q,H)})}),$?Z.sort(function(j,Q){return $(j.key,Q.key)}):Z}return d.map=function(P,H){return q(H,P,0)},d.entries=function(P){return z(q(e.map,P,0),0)},d.key=function(P){return g.push(P),d},d.sortKeys=function(P){return T[g.length-1]=P,d},d.sortValues=function(P){return C=P,d},d.rollup=function(P){return L=P,d},d},e.set=function(d){var g=new F;if(d)for(var T=0,C=d.length;T<C;++T)g.add(d[T]);return g};function F(){this._=Object.create(null)}w(F,{has:D,add:function(d){return this._[k(d+="")]=!0,d},remove:E,values:R,size:N,empty:O,forEach:function(d){for(var g in this._)d.call(this,S(g))}}),e.behavior={};function I(d){return d}e.rebind=function(d,g){for(var T=1,C=arguments.length,L;++T<C;)d[L=arguments[T]]=Y(d,g,g[L]);return d};function Y(d,g,T){return function(){var C=T.apply(g,arguments);return C===g?d:C}}function B(d,g){if(g in d)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var T=0,C=U.length;T<C;++T){var L=U[T]+g;if(L in d)return L}}var U=["webkit","ms","moz","Moz","o","O"];function X(){}e.dispatch=function(){for(var d=new W,g=-1,T=arguments.length;++g<T;)d[arguments[g]]=V(d);return d};function W(){}W.prototype.on=function(d,g){var T=d.indexOf("."),C="";if(T>=0&&(C=d.slice(T+1),d=d.slice(0,T)),d)return arguments.length<2?this[d].on(C):this[d].on(C,g);if(arguments.length===2){if(g==null)for(d in this)this.hasOwnProperty(d)&&this[d].on(C,null);return this}};function V(d){var g=[],T=new x;function C(){for(var L=g,q=-1,z=L.length,P;++q<z;)(P=L[q].on)&&P.apply(this,arguments);return d}return C.on=function(L,q){var z=T.get(L),P;return arguments.length<2?z&&z.on:(z&&(z.on=null,g=g.slice(0,P=g.indexOf(z)).concat(g.slice(P+1)),T.remove(L)),q&&g.push(T.set(L,{on:q})),d)},C}e.event=null;function J(){e.event.preventDefault()}function re(){for(var d=e.event,g;g=d.sourceEvent;)d=g;return d}function ne(d){for(var g=new W,T=0,C=arguments.length;++T<C;)g[arguments[T]]=V(g);return g.of=function(L,q){return function(z){try{var P=z.sourceEvent=e.event;z.target=d,e.event=z,g[z.type].apply(L,q)}finally{e.event=P}}},g}e.requote=function(d){return d.replace(de,"\\$&")};var de=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,K={}.__proto__?function(d,g){d.__proto__=g}:function(d,g){for(var T in g)d[T]=g[T]};function ye(d){return K(d,fe),d}var oe=function(d,g){return g.querySelector(d)},Ce=function(d,g){return g.querySelectorAll(d)},se=function(d,g){var T=d.matches||d[B(d,"matchesSelector")];return se=function(C,L){return T.call(C,L)},se(d,g)};typeof Sizzle=="function"&&(oe=function(d,g){return Sizzle(d,g)[0]||null},Ce=Sizzle,se=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var fe=e.selection.prototype=[];fe.select=function(d){var g=[],T,C,L,q;d=Te(d);for(var z=-1,P=this.length;++z<P;){g.push(T=[]),T.parentNode=(L=this[z]).parentNode;for(var H=-1,Z=L.length;++H<Z;)(q=L[H])?(T.push(C=d.call(q,q.__data__,H,z)),C&&"__data__"in q&&(C.__data__=q.__data__)):T.push(null)}return ye(g)};function Te(d){return typeof d=="function"?d:function(){return oe(d,this)}}fe.selectAll=function(d){var g=[],T,C;d=Fe(d);for(var L=-1,q=this.length;++L<q;)for(var z=this[L],P=-1,H=z.length;++P<H;)(C=z[P])&&(g.push(T=t(d.call(C,C.__data__,P,L))),T.parentNode=C);return ye(g)};function Fe(d){return typeof d=="function"?d:function(){return Ce(d,this)}}var be="http://www.w3.org/1999/xhtml",Me={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:Me,qualify:function(d){var g=d.indexOf(":"),T=d;return g>=0&&(T=d.slice(0,g))!=="xmlns"&&(d=d.slice(g+1)),Me.hasOwnProperty(T)?{space:Me[T],local:d}:d}},fe.attr=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node();return d=e.ns.qualify(d),d.local?T.getAttributeNS(d.space,d.local):T.getAttribute(d)}for(g in d)this.each(Ae(g,d[g]));return this}return this.each(Ae(d,g))};function Ae(d,g){d=e.ns.qualify(d);function T(){this.removeAttribute(d)}function C(){this.removeAttributeNS(d.space,d.local)}function L(){this.setAttribute(d,g)}function q(){this.setAttributeNS(d.space,d.local,g)}function z(){var H=g.apply(this,arguments);H==null?this.removeAttribute(d):this.setAttribute(d,H)}function P(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(d.space,d.local):this.setAttributeNS(d.space,d.local,H)}return g==null?d.local?C:T:typeof g=="function"?d.local?P:z:d.local?q:L}function Le(d){return d.trim().replace(/\s+/g," ")}fe.classed=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node(),C=(d=ze(d)).length,L=-1;if(g=T.classList){for(;++L<C;)if(!g.contains(d[L]))return!1}else for(g=T.getAttribute("class");++L<C;)if(!ke(d[L]).test(g))return!1;return!0}for(g in d)this.each(Se(g,d[g]));return this}return this.each(Se(d,g))};function ke(d){return new RegExp("(?:^|\\s+)"+e.requote(d)+"(?:\\s+|$)","g")}function ze(d){return(d+"").trim().split(/^|\s+/)}function Se(d,g){d=ze(d).map(Ue);var T=d.length;function C(){for(var q=-1;++q<T;)d[q](this,g)}function L(){for(var q=-1,z=g.apply(this,arguments);++q<T;)d[q](this,z)}return typeof g=="function"?L:C}function Ue(d){var g=ke(d);return function(T,C){if(L=T.classList)return C?L.add(d):L.remove(d);var L=T.getAttribute("class")||"";C?(g.lastIndex=0,g.test(L)||T.setAttribute("class",Le(L+" "+d))):T.setAttribute("class",Le(L.replace(g," ")))}}fe.style=function(d,g,T){var C=arguments.length;if(C<3){if(typeof d!="string"){C<2&&(g="");for(T in d)this.each(Ke(T,d[T],g));return this}if(C<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(d)}T=""}return this.each(Ke(d,g,T))};function Ke(d,g,T){function C(){this.style.removeProperty(d)}function L(){this.style.setProperty(d,g,T)}function q(){var z=g.apply(this,arguments);z==null?this.style.removeProperty(d):this.style.setProperty(d,z,T)}return g==null?C:typeof g=="function"?q:L}fe.property=function(d,g){if(arguments.length<2){if(typeof d=="string")return this.node()[d];for(g in d)this.each(er(g,d[g]));return this}return this.each(er(d,g))};function er(d,g){function T(){delete this[d]}function C(){this[d]=g}function L(){var q=g.apply(this,arguments);q==null?delete this[d]:this[d]=q}return g==null?T:typeof g=="function"?L:C}fe.text=function(d){return arguments.length?this.each(typeof d=="function"?function(){var g=d.apply(this,arguments);this.textContent=g==null?"":g}:d==null?function(){this.textContent=""}:function(){this.textContent=d}):this.node().textContent},fe.html=function(d){return arguments.length?this.each(typeof d=="function"?function(){var g=d.apply(this,arguments);this.innerHTML=g==null?"":g}:d==null?function(){this.innerHTML=""}:function(){this.innerHTML=d}):this.node().innerHTML},fe.append=function(d){return d=De(d),this.select(function(){return this.appendChild(d.apply(this,arguments))})};function De(d){function g(){var C=this.ownerDocument,L=this.namespaceURI;return L===be&&C.documentElement.namespaceURI===be?C.createElement(d):C.createElementNS(L,d)}function T(){return this.ownerDocument.createElementNS(d.space,d.local)}return typeof d=="function"?d:(d=e.ns.qualify(d)).local?T:g}fe.insert=function(d,g){return d=De(d),g=Te(g),this.select(function(){return this.insertBefore(d.apply(this,arguments),g.apply(this,arguments)||null)})},fe.remove=function(){return this.each(Ye)};function Ye(){var d=this.parentNode;d&&d.removeChild(this)}fe.data=function(d,g){var T=-1,C=this.length,L,q;if(!arguments.length){for(d=new Array(C=(L=this[0]).length);++T<C;)(q=L[T])&&(d[T]=q.__data__);return d}function z($,j){var Q,he=$.length,_e=j.length,ee=Math.min(he,_e),ie=new Array(_e),ue=new Array(_e),xe=new Array(he),we,ve;if(g){var Ge=new x,lr=new Array(he),ur;for(Q=-1;++Q<he;)(we=$[Q])&&(Ge.has(ur=g.call(we,we.__data__,Q))?xe[Q]=we:Ge.set(ur,we),lr[Q]=ur);for(Q=-1;++Q<_e;)(we=Ge.get(ur=g.call(j,ve=j[Q],Q)))?we!==!0&&(ie[Q]=we,we.__data__=ve):ue[Q]=rr(ve),Ge.set(ur,!0);for(Q=-1;++Q<he;)Q in lr&&Ge.get(lr[Q])!==!0&&(xe[Q]=$[Q])}else{for(Q=-1;++Q<ee;)we=$[Q],ve=j[Q],we?(we.__data__=ve,ie[Q]=we):ue[Q]=rr(ve);for(;Q<_e;++Q)ue[Q]=rr(j[Q]);for(;Q<he;++Q)xe[Q]=$[Q]}ue.update=ie,ue.parentNode=ie.parentNode=xe.parentNode=$.parentNode,P.push(ue),H.push(ie),Z.push(xe)}var P=vr([]),H=ye([]),Z=ye([]);if(typeof d=="function")for(;++T<C;)z(L=this[T],d.call(L,L.parentNode.__data__,T));else for(;++T<C;)z(L=this[T],d);return H.enter=function(){return P},H.exit=function(){return Z},H};function rr(d){return{__data__:d}}fe.datum=function(d){return arguments.length?this.property("__data__",d):this.property("__data__")},fe.filter=function(d){var g=[],T,C,L;typeof d!="function"&&(d=te(d));for(var q=0,z=this.length;q<z;q++){g.push(T=[]),T.parentNode=(C=this[q]).parentNode;for(var P=0,H=C.length;P<H;P++)(L=C[P])&&d.call(L,L.__data__,P,q)&&T.push(L)}return ye(g)};function te(d){return function(){return se(this,d)}}fe.order=function(){for(var d=-1,g=this.length;++d<g;)for(var T=this[d],C=T.length-1,L=T[C],q;--C>=0;)(q=T[C])&&(L&&L!==q.nextSibling&&L.parentNode.insertBefore(q,L),L=q);return this},fe.sort=function(d){d=pe.apply(this,arguments);for(var g=-1,T=this.length;++g<T;)this[g].sort(d);return this.order()};function pe(d){return arguments.length||(d=c),function(g,T){return g&&T?d(g.__data__,T.__data__):!g-!T}}fe.each=function(d){return Ve(this,function(g,T,C){d.call(g,g.__data__,T,C)})};function Ve(d,g){for(var T=0,C=d.length;T<C;T++)for(var L=d[T],q=0,z=L.length,P;q<z;q++)(P=L[q])&&g(P,q,T);return d}fe.call=function(d){var g=t(arguments);return d.apply(g[0]=this,g),this},fe.empty=function(){return!this.node()},fe.node=function(){for(var d=0,g=this.length;d<g;d++)for(var T=this[d],C=0,L=T.length;C<L;C++){var q=T[C];if(q)return q}return null},fe.size=function(){var d=0;return Ve(this,function(){++d}),d};function vr(d){return K(d,hr),d}var hr=[];e.selection.enter=vr,e.selection.enter.prototype=hr,hr.append=fe.append,hr.empty=fe.empty,hr.node=fe.node,hr.call=fe.call,hr.size=fe.size,hr.select=function(d){for(var g=[],T,C,L,q,z,P=-1,H=this.length;++P<H;){L=(q=this[P]).update,g.push(T=[]),T.parentNode=q.parentNode;for(var Z=-1,$=q.length;++Z<$;)(z=q[Z])?(T.push(L[Z]=C=d.call(q.parentNode,z.__data__,Z,P)),C.__data__=z.__data__):T.push(null)}return ye(g)},hr.insert=function(d,g){return arguments.length<2&&(g=le(this)),fe.insert.call(this,d,g)};function le(d){var g,T;return function(C,L,q){var z=d[q].update,P=z.length,H;for(q!=T&&(T=q,g=0),L>=g&&(g=L+1);!(H=z[g])&&++g<P;);return H}}e.select=function(d){var g;return typeof d=="string"?(g=[oe(d,a)],g.parentNode=a.documentElement):(g=[d],g.parentNode=n(d)),ye([g])},e.selectAll=function(d){var g;return typeof d=="string"?(g=t(Ce(d,a)),g.parentNode=a.documentElement):(g=t(d),g.parentNode=null),ye([g])},fe.on=function(d,g,T){var C=arguments.length;if(C<3){if(typeof d!="string"){C<2&&(g=!1);for(T in d)this.each(ge(T,d[T],g));return this}if(C<2)return(C=this.node()["__on"+d])&&C._;T=!1}return this.each(ge(d,g,T))};function ge(d,g,T){var C="__on"+d,L=d.indexOf("."),q=Xe;L>0&&(d=d.slice(0,L));var z=Ie.get(d);z&&(d=z,q=He);function P(){var $=this[C];$&&(this.removeEventListener(d,$,$.$),delete this[C])}function H(){var $=q(g,t(arguments));P.call(this),this.addEventListener(d,this[C]=$,$.$=T),$._=g}function Z(){var $=new RegExp("^__on([^.]+)"+e.requote(d)+"$"),j;for(var Q in this)if(j=Q.match($)){var he=this[Q];this.removeEventListener(j[1],he,he.$),delete this[Q]}}return L?g?H:P:g?X:Z}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(d){"on"+d in a&&Ie.remove(d)});function Xe(d,g){return function(T){var C=e.event;e.event=T,g[0]=this.__data__;try{d.apply(this,g)}finally{e.event=C}}}function He(d,g){var T=Xe(d,g);return function(C){var L=this,q=C.relatedTarget;(!q||q!==L&&!(q.compareDocumentPosition(L)&8))&&T.call(L,C)}}var Ze,Je=0;function mr(d){var g=".dragsuppress-"+ ++Je,T="click"+g,C=e.select(i(d)).on("touchmove"+g,J).on("dragstart"+g,J).on("selectstart"+g,J);if(Ze==null&&(Ze="onselectstart"in d?!1:B(d.style,"userSelect")),Ze){var L=n(d).style,q=L[Ze];L[Ze]="none"}return function(z){if(C.on(g,null),Ze&&(L[Ze]=q),z){var P=function(){C.on(T,null)};C.on(T,function(){J(),P()},!0),setTimeout(P,0)}}}e.mouse=function(d){return Pe(d,re())};var _r=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Pe(d,g){g.changedTouches&&(g=g.changedTouches[0]);var T=d.ownerSVGElement||d;if(T.createSVGPoint){var C=T.createSVGPoint();if(_r<0){var L=i(d);if(L.scrollX||L.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var q=T[0][0].getScreenCTM();_r=!(q.f||q.e),T.remove()}}return _r?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(d.getScreenCTM().inverse()),[C.x,C.y]}var z=d.getBoundingClientRect();return[g.clientX-z.left-d.clientLeft,g.clientY-z.top-d.clientTop]}e.touch=function(d,g,T){if(arguments.length<3&&(T=g,g=re().changedTouches),g){for(var C=0,L=g.length,q;C<L;++C)if((q=g[C]).identifier===T)return Pe(d,q)}},e.behavior.drag=function(){var d=ne(L,"drag","dragstart","dragend"),g=null,T=q(X,e.mouse,i,"mousemove","mouseup"),C=q($e,e.touch,I,"touchmove","touchend");function L(){this.on("mousedown.drag",T).on("touchstart.drag",C)}function q(z,P,H,Z,$){return function(){var j=this,Q=e.event.target.correspondingElement||e.event.target,he=j.parentNode,_e=d.of(j,arguments),ee=0,ie=z(),ue=".drag"+(ie==null?"":"-"+ie),xe,we=e.select(H(Q)).on(Z+ue,lr).on($+ue,ur),ve=mr(Q),Ge=P(he,ie);g?(xe=g.apply(j,arguments),xe=[xe.x-Ge[0],xe.y-Ge[1]]):xe=[0,0],_e({type:"dragstart"});function lr(){var sr=P(he,ie),gr,br;sr&&(gr=sr[0]-Ge[0],br=sr[1]-Ge[1],ee|=gr|br,Ge=sr,_e({type:"drag",x:sr[0]+xe[0],y:sr[1]+xe[1],dx:gr,dy:br}))}function ur(){P(he,ie)&&(we.on(Z+ue,null).on($+ue,null),ve(ee),_e({type:"dragend"}))}}}return L.origin=function(z){return arguments.length?(g=z,L):g},e.rebind(L,d,"on")};function $e(){return e.event.changedTouches[0].identifier}e.touches=function(d,g){return arguments.length<2&&(g=re().touches),g?t(g).map(function(T){var C=Pe(d,T);return C.identifier=T.identifier,C}):[]};var Ee=1e-6,tr=Ee*Ee,pr=Math.PI,yr=2*pr,cr=yr-Ee,ae=pr/2,me=pr/180,Re=180/pr;function Be(d){return d>0?1:d<0?-1:0}function Kr(d,g,T){return(g[0]-d[0])*(T[1]-d[1])-(g[1]-d[1])*(T[0]-d[0])}function dt(d){return d>1?0:d<-1?pr:Math.acos(d)}function _t(d){return d>1?ae:d<-1?-ae:Math.asin(d)}function zt(d){return((d=Math.exp(d))-1/d)/2}function Bt(d){return((d=Math.exp(d))+1/d)/2}function Nt(d){return((d=Math.exp(2*d))-1)/(d+1)}function Da(d){return(d=Math.sin(d/2))*d}var qt=Math.SQRT2,$t=2,Ea=4;e.interpolateZoom=function(d,g){var T=d[0],C=d[1],L=d[2],q=g[0],z=g[1],P=g[2],H=q-T,Z=z-C,$=H*H+Z*Z,j,Q;if($<tr)Q=Math.log(P/L)/qt,j=function(xe){return[T+xe*H,C+xe*Z,L*Math.exp(qt*xe*Q)]};else{var he=Math.sqrt($),_e=(P*P-L*L+Ea*$)/(2*L*$t*he),ee=(P*P-L*L-Ea*$)/(2*P*$t*he),ie=Math.log(Math.sqrt(_e*_e+1)-_e),ue=Math.log(Math.sqrt(ee*ee+1)-ee);Q=(ue-ie)/qt,j=function(xe){var we=xe*Q,ve=Bt(ie),Ge=L/($t*he)*(ve*Nt(qt*we+ie)-zt(ie));return[T+Ge*H,C+Ge*Z,L*ve/Bt(qt*we+ie)]}}return j.duration=Q*1e3,j},e.behavior.zoom=function(){var d={x:0,y:0,k:1},g,T,C,L=[960,500],q=Qa,z=250,P=0,H="mousedown.zoom",Z="mousemove.zoom",$="mouseup.zoom",j,Q="touchstart.zoom",he,_e=ne(we,"zoomstart","zoom","zoomend"),ee,ie,ue,xe;Yt||(Yt="onwheel"in a?(en=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(en=function(){return e.event.wheelDelta},"mousewheel"):(en=function(){return-e.event.detail},"MozMousePixelScroll"));function we(ar){ar.on(H,Dr).on(Yt+".zoom",ta).on("dblclick.zoom",ut).on(Q,nt)}we.event=function(ar){ar.each(function(){var Fr=_e.of(this,arguments),Hr=d;Ss?e.select(this).transition().each("start.zoom",function(){d=this.__chart__||{x:0,y:0,k:1},br(Fr)}).tween("zoom:zoom",function(){var it=L[0],Ut=L[1],da=T?T[0]:it/2,Ba=T?T[1]:Ut/2,cn=e.interpolateZoom([(da-d.x)/d.k,(Ba-d.y)/d.k,it/d.k],[(da-Hr.x)/Hr.k,(Ba-Hr.y)/Hr.k,it/Hr.k]);return function(An){var vn=cn(An),Sn=it/vn[2];this.__chart__=d={x:da-vn[0]*Sn,y:Ba-vn[1]*Sn,k:Sn},Ir(Fr)}}).each("interrupt.zoom",function(){wr(Fr)}).each("end.zoom",function(){wr(Fr)}):(this.__chart__=d,br(Fr),Ir(Fr),wr(Fr))})},we.translate=function(ar){return arguments.length?(d={x:+ar[0],y:+ar[1],k:d.k},gr(),we):[d.x,d.y]},we.scale=function(ar){return arguments.length?(d={x:d.x,y:d.y,k:null},lr(+ar),gr(),we):d.k},we.scaleExtent=function(ar){return arguments.length?(q=ar==null?Qa:[+ar[0],+ar[1]],we):q},we.center=function(ar){return arguments.length?(C=ar&&[+ar[0],+ar[1]],we):C},we.size=function(ar){return arguments.length?(L=ar&&[+ar[0],+ar[1]],we):L},we.duration=function(ar){return arguments.length?(z=+ar,we):z},we.x=function(ar){return arguments.length?(ie=ar,ee=ar.copy(),d={x:0,y:0,k:1},we):ie},we.y=function(ar){return arguments.length?(xe=ar,ue=ar.copy(),d={x:0,y:0,k:1},we):xe};function ve(ar){return[(ar[0]-d.x)/d.k,(ar[1]-d.y)/d.k]}function Ge(ar){return[ar[0]*d.k+d.x,ar[1]*d.k+d.y]}function lr(ar){d.k=Math.max(q[0],Math.min(q[1],ar))}function ur(ar,Fr){Fr=Ge(Fr),d.x+=ar[0]-Fr[0],d.y+=ar[1]-Fr[1]}function sr(ar,Fr,Hr,it){ar.__chart__={x:d.x,y:d.y,k:d.k},lr(Math.pow(2,it)),ur(T=Fr,Hr),ar=e.select(ar),z>0&&(ar=ar.transition().duration(z)),ar.call(we.event)}function gr(){ie&&ie.domain(ee.range().map(function(ar){return(ar-d.x)/d.k}).map(ee.invert)),xe&&xe.domain(ue.range().map(function(ar){return(ar-d.y)/d.k}).map(ue.invert))}function br(ar){P++||ar({type:"zoomstart"})}function Ir(ar){gr(),ar({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function wr(ar){--P||(ar({type:"zoomend"}),T=null)}function Dr(){var ar=this,Fr=_e.of(ar,arguments),Hr=0,it=e.select(i(ar)).on(Z,Ba).on($,cn),Ut=ve(e.mouse(ar)),da=mr(ar);yh.call(ar),br(Fr);function Ba(){Hr=1,ur(e.mouse(ar),Ut),Ir(Fr)}function cn(){it.on(Z,null).on($,null),da(Hr),wr(Fr)}}function nt(){var ar=this,Fr=_e.of(ar,arguments),Hr={},it=0,Ut,da=".zoom-"+e.event.changedTouches[0].identifier,Ba="touchmove"+da,cn="touchend"+da,An=[],vn=e.select(ar),Sn=mr(ar);qn(),br(Fr),vn.on(H,null).on(Q,qn);function an(){var Ii=e.touches(ar);return Ut=d.k,Ii.forEach(function(Ya){Ya.identifier in Hr&&(Hr[Ya.identifier]=ve(Ya))}),Ii}function qn(){var Ii=e.event.target;e.select(Ii).on(Ba,qs).on(cn,IK),An.push(Ii);for(var Ya=e.event.changedTouches,fi=0,hl=Ya.length;fi<hl;++fi)Hr[Ya[fi].identifier]=null;var ci=an(),uf=Date.now();if(ci.length===1){if(uf-he<500){var Ds=ci[0];sr(ar,Ds,Hr[Ds.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),J()}he=uf}else if(ci.length>1){var Ds=ci[0],wo=ci[1],xh=Ds[0]-wo[0],s8=Ds[1]-wo[1];it=xh*xh+s8*s8}}function qs(){var Ii=e.touches(ar),Ya,fi,hl,ci;yh.call(ar);for(var uf=0,Ds=Ii.length;uf<Ds;++uf,ci=null)if(hl=Ii[uf],ci=Hr[hl.identifier]){if(fi)break;Ya=hl,fi=ci}if(ci){var wo=(wo=hl[0]-Ya[0])*wo+(wo=hl[1]-Ya[1])*wo,xh=it&&Math.sqrt(wo/it);Ya=[(Ya[0]+hl[0])/2,(Ya[1]+hl[1])/2],fi=[(fi[0]+ci[0])/2,(fi[1]+ci[1])/2],lr(xh*Ut)}he=null,ur(Ya,fi),Ir(Fr)}function IK(){if(e.event.touches.length){for(var Ii=e.event.changedTouches,Ya=0,fi=Ii.length;Ya<fi;++Ya)delete Hr[Ii[Ya].identifier];for(var hl in Hr)return void an()}e.selectAll(An).on(da,null),vn.on(H,Dr).on(Q,nt),Sn(),wr(Fr)}}function ta(){var ar=_e.of(this,arguments);j?clearTimeout(j):(yh.call(this),g=ve(T=C||e.mouse(this)),br(ar)),j=setTimeout(function(){j=null,wr(ar)},50),J(),lr(Math.pow(2,en()*.002)*d.k),ur(T,g),Ir(ar)}function ut(){var ar=e.mouse(this),Fr=Math.log(d.k)/Math.LN2;sr(this,ar,ve(ar),e.event.shiftKey?Math.ceil(Fr)-1:Math.floor(Fr)+1)}return e.rebind(we,_e,"on")};var Qa=[0,1/0],en,Yt;e.color=ga;function ga(){}ga.prototype.toString=function(){return this.rgb()+""},e.hsl=ea;function ea(d,g,T){return this instanceof ea?(this.h=+d,this.s=+g,void(this.l=+T)):arguments.length<2?d instanceof ea?new ea(d.h,d.s,d.l):As(""+d,eh,ea):new ea(d,g,T)}var ra=ea.prototype=new ga;ra.brighter=function(d){return d=Math.pow(.7,arguments.length?d:1),new ea(this.h,this.s,this.l/d)},ra.darker=function(d){return d=Math.pow(.7,arguments.length?d:1),new ea(this.h,this.s,d*this.l)},ra.rgb=function(){return Pa(this.h,this.s,this.l)};function Pa(d,g,T){var C,L;d=isNaN(d)?0:(d%=360)<0?d+360:d,g=isNaN(g)||g<0?0:g>1?1:g,T=T<0?0:T>1?1:T,L=T<=.5?T*(1+g):T+g-T*g,C=2*T-L;function q(P){return P>360?P-=360:P<0&&(P+=360),P<60?C+(L-C)*P/60:P<180?L:P<240?C+(L-C)*(240-P)/60:C}function z(P){return Math.round(q(P)*255)}return new st(z(d+120),z(d),z(d-120))}e.hcl=Ra;function Ra(d,g,T){return this instanceof Ra?(this.h=+d,this.c=+g,void(this.l=+T)):arguments.length<2?d instanceof Ra?new Ra(d.h,d.c,d.l):d instanceof Gr?Ms(d.l,d.a,d.b):Ms((d=rh((d=e.rgb(d)).r,d.g,d.b)).l,d.a,d.b):new Ra(d,g,T)}var rn=Ra.prototype=new ga;rn.brighter=function(d){return new Ra(this.h,this.c,Math.min(100,this.l+Nr*(arguments.length?d:1)))},rn.darker=function(d){return new Ra(this.h,this.c,Math.max(0,this.l-Nr*(arguments.length?d:1)))},rn.rgb=function(){return nr(this.h,this.c,this.l).rgb()};function nr(d,g,T){return isNaN(d)&&(d=0),isNaN(g)&&(g=0),new Gr(T,Math.cos(d*=me)*g,Math.sin(d)*g)}e.lab=Gr;function Gr(d,g,T){return this instanceof Gr?(this.l=+d,this.a=+g,void(this.b=+T)):arguments.length<2?d instanceof Gr?new Gr(d.l,d.a,d.b):d instanceof Ra?nr(d.h,d.c,d.l):rh((d=st(d)).r,d.g,d.b):new Gr(d,g,T)}var Nr=18,at=.95047,ba=1,tn=1.08883,Gt=Gr.prototype=new ga;Gt.brighter=function(d){return new Gr(Math.min(100,this.l+Nr*(arguments.length?d:1)),this.a,this.b)},Gt.darker=function(d){return new Gr(Math.max(0,this.l-Nr*(arguments.length?d:1)),this.a,this.b)},Gt.rgb=function(){return zi(this.l,this.a,this.b)};function zi(d,g,T){var C=(d+16)/116,L=C+g/500,q=C-T/200;return L=Bl(L)*at,C=Bl(C)*ba,q=Bl(q)*tn,new st(Yl(3.2404542*L-1.5371385*C-.4985314*q),Yl(-.969266*L+1.8760108*C+.041556*q),Yl(.0556434*L-.2040259*C+1.0572252*q))}function Ms(d,g,T){return d>0?new Ra(Math.atan2(T,g)*Re,Math.sqrt(g*g+T*T),d):new Ra(NaN,NaN,d)}function Bl(d){return d>.206893034?d*d*d:(d-4/29)/7.787037}function xo(d){return d>.008856?Math.pow(d,1/3):7.787037*d+4/29}function Yl(d){return Math.round(255*(d<=.00304?12.92*d:1.055*Math.pow(d,1/2.4)-.055))}e.rgb=st;function st(d,g,T){return this instanceof st?(this.r=~~d,this.g=~~g,void(this.b=~~T)):arguments.length<2?d instanceof st?new st(d.r,d.g,d.b):As(""+d,st,Pa):new st(d,g,T)}function o0(d){return new st(d>>16,d>>8&255,d&255)}function xa(d){return o0(d)+""}var Gl=st.prototype=new ga;Gl.brighter=function(d){d=Math.pow(.7,arguments.length?d:1);var g=this.r,T=this.g,C=this.b,L=30;return!g&&!T&&!C?new st(L,L,L):(g&&g<L&&(g=L),T&&T<L&&(T=L),C&&C<L&&(C=L),new st(Math.min(255,g/d),Math.min(255,T/d),Math.min(255,C/d)))},Gl.darker=function(d){return d=Math.pow(.7,arguments.length?d:1),new st(d*this.r,d*this.g,d*this.b)},Gl.hsl=function(){return eh(this.r,this.g,this.b)},Gl.toString=function(){return"#"+vl(this.r)+vl(this.g)+vl(this.b)};function vl(d){return d<16?"0"+Math.max(0,d).toString(16):Math.min(255,d).toString(16)}function As(d,g,T){var C=0,L=0,q=0,z,P,H;if(z=/([a-z]+)\((.*)\)/.exec(d=d.toLowerCase()),z)switch(P=z[2].split(","),z[1]){case"hsl":return T(parseFloat(P[0]),parseFloat(P[1])/100,parseFloat(P[2])/100);case"rgb":return g(u0(P[0]),u0(P[1]),u0(P[2]))}return(H=Mr.get(d))?g(H.r,H.g,H.b):(d!=null&&d.charAt(0)==="#"&&!isNaN(H=parseInt(d.slice(1),16))&&(d.length===4?(C=(H&3840)>>4,C=C>>4|C,L=H&240,L=L>>4|L,q=H&15,q=q<<4|q):d.length===7&&(C=(H&16711680)>>16,L=(H&65280)>>8,q=H&255)),g(C,L,q))}function eh(d,g,T){var C=Math.min(d/=255,g/=255,T/=255),L=Math.max(d,g,T),q=L-C,z,P,H=(L+C)/2;return q?(P=H<.5?q/(L+C):q/(2-L-C),d==L?z=(g-T)/q+(g<T?6:0):g==L?z=(T-d)/q+2:z=(d-g)/q+4,z*=60):(z=NaN,P=H>0&&H<1?0:z),new ea(z,P,H)}function rh(d,g,T){d=s0(d),g=s0(g),T=s0(T);var C=xo((.4124564*d+.3575761*g+.1804375*T)/at),L=xo((.2126729*d+.7151522*g+.072175*T)/ba),q=xo((.0193339*d+.119192*g+.9503041*T)/tn);return Gr(116*L-16,500*(C-L),200*(L-q))}function s0(d){return(d/=255)<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4)}function u0(d){var g=parseFloat(d);return d.charAt(d.length-1)==="%"?Math.round(g*2.55):g}var Mr=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});Mr.forEach(function(d,g){Mr.set(d,o0(g))});function Tr(d){return typeof d=="function"?d:function(){return d}}e.functor=Tr,e.xhr=ot(I);function ot(d){return function(g,T,C){return arguments.length===2&&typeof T=="function"&&(C=T,T=null),or(g,T,d,C)}}function or(d,g,T,C){var L={},q=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(d)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=Z:P.onreadystatechange=function(){P.readyState>3&&Z()};function Z(){var $=P.status,j;if(!$&&Tt(P)||$>=200&&$<300||$===304){try{j=T.call(L,P)}catch(Q){q.error.call(L,Q);return}q.load.call(L,j)}else q.error.call(L,P)}return P.onprogress=function($){var j=e.event;e.event=$;try{q.progress.call(L,P)}finally{e.event=j}},L.header=function($,j){return $=($+"").toLowerCase(),arguments.length<2?z[$]:(j==null?delete z[$]:z[$]=j+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(H=$,L):H},L.response=function($){return T=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,j,Q){if(arguments.length===2&&typeof j=="function"&&(Q=j,j=null),P.open($,d,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var he in z)P.setRequestHeader(he,z[he]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),H!=null&&(P.responseType=H),Q!=null&&L.on("error",Q).on("load",function(_e){Q(null,_e)}),q.beforesend.call(L,P),P.send(j==null?null:j),L},L.abort=function(){return P.abort(),L},e.rebind(L,q,"on"),C==null?L:L.get(fn(C))}function fn(d){return d.length===1?function(g,T){d(g==null?T:null)}:d}function Tt(d){var g=d.responseType;return g&&g!=="text"?d.response:d.responseText}e.dsv=function(d,g){var T=new RegExp('["'+d+`
]`),C=d.charCodeAt(0);function L(Z,$,j){arguments.length<3&&(j=$,$=null);var Q=or(Z,g,$==null?q:z($),j);return Q.row=function(he){return arguments.length?Q.response(($=he)==null?q:z(he)):$},Q}function q(Z){return L.parse(Z.responseText)}function z(Z){return function($){return L.parse($.responseText,Z)}}L.parse=function(Z,$){var j;return L.parseRows(Z,function(Q,he){if(j)return j(Q,he-1);var _e=function(ee){for(var ie={},ue=Q.length,xe=0;xe<ue;++xe)ie[Q[xe]]=ee[xe];return ie};j=$?function(ee,ie){return $(_e(ee),ie)}:_e})},L.parseRows=function(Z,$){var j={},Q={},he=[],_e=Z.length,ee=0,ie=0,ue,xe;function we(){if(ee>=_e)return Q;if(xe)return xe=!1,j;var Ge=ee;if(Z.charCodeAt(Ge)===34){for(var lr=Ge;lr++<_e;)if(Z.charCodeAt(lr)===34){if(Z.charCodeAt(lr+1)!==34)break;++lr}ee=lr+2;var ur=Z.charCodeAt(lr+1);return ur===13?(xe=!0,Z.charCodeAt(lr+2)===10&&++ee):ur===10&&(xe=!0),Z.slice(Ge+1,lr).replace(/""/g,'"')}for(;ee<_e;){var ur=Z.charCodeAt(ee++),sr=1;if(ur===10)xe=!0;else if(ur===13)xe=!0,Z.charCodeAt(ee)===10&&(++ee,++sr);else if(ur!==C)continue;return Z.slice(Ge,ee-sr)}return Z.slice(Ge)}for(;(ue=we())!==Q;){for(var ve=[];ue!==j&&ue!==Q;)ve.push(ue),ue=we();$&&(ve=$(ve,ie++))==null||he.push(ve)}return he},L.format=function(Z){if(Array.isArray(Z[0]))return L.formatRows(Z);var $=new F,j=[];return Z.forEach(function(Q){for(var he in Q)$.has(he)||j.push($.add(he))}),[j.map(H).join(d)].concat(Z.map(function(Q){return j.map(function(he){return H(Q[he])}).join(d)})).join(`
`)},L.formatRows=function(Z){return Z.map(P).join(`
`)};function P(Z){return Z.map(H).join(d)}function H(Z){return T.test(Z)?'"'+Z.replace(/\"/g,'""')+'"':Z}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Ha,Oa,si,ks,Z7=this[B(this,"requestAnimationFrame")]||function(d){setTimeout(d,17)};e.timer=function(){th.apply(this,arguments)};function th(d,g,T){var C=arguments.length;C<2&&(g=0),C<3&&(T=Date.now());var L=T+g,q={c:d,t:L,n:null};return Oa?Oa.n=q:Ha=q,Oa=q,si||(ks=clearTimeout(ks),si=1,Z7(Hg)),q}function Hg(){var d=$7(),g=J7()-d;g>24?(isFinite(g)&&(clearTimeout(ks),ks=setTimeout(Hg,g)),si=0):(si=1,Z7(Hg))}e.timer.flush=function(){$7(),J7()};function $7(){for(var d=Date.now(),g=Ha;g;)d>=g.t&&g.c(d-g.t)&&(g.c=null),g=g.n;return d}function J7(){for(var d,g=Ha,T=1/0;g;)g.c?(g.t<T&&(T=g.t),g=(d=g).n):g=d?d.n=g.n:Ha=g.n;return Oa=d,T}e.round=function(d,g){return g?Math.round(d*(g=Math.pow(10,g)))/g:Math.round(d)},e.geom={};function tf(d){return d[0]}function f0(d){return d[1]}e.geom.hull=function(d){var g=tf,T=f0;if(arguments.length)return C(d);function C(L){if(L.length<3)return[];var q=Tr(g),z=Tr(T),P,H=L.length,Z=[],$=[];for(P=0;P<H;P++)Z.push([+q.call(this,L[P],P),+z.call(this,L[P],P),P]);for(Z.sort(O$),P=0;P<H;P++)$.push([Z[P][0],-Z[P][1]]);var j=K7(Z),Q=K7($),he=Q[0]===j[0],_e=Q[Q.length-1]===j[j.length-1],ee=[];for(P=j.length-1;P>=0;--P)ee.push(L[Z[j[P]][2]]);for(P=+he;P<Q.length-_e;++P)ee.push(L[Z[Q[P]][2]]);return ee}return C.x=function(L){return arguments.length?(g=L,C):g},C.y=function(L){return arguments.length?(T=L,C):T},C};function K7(d){for(var g=d.length,T=[0,1],C=2,L=2;L<g;L++){for(;C>1&&Kr(d[T[C-2]],d[T[C-1]],d[L])<=0;)--C;T[C++]=L}return T.slice(0,C)}function O$(d,g){return d[0]-g[0]||d[1]-g[1]}e.geom.polygon=function(d){return K(d,ah),d};var ah=e.geom.polygon.prototype=[];ah.area=function(){for(var d=-1,g=this.length,T,C=this[g-1],L=0;++d<g;)T=C,C=this[d],L+=T[1]*C[0]-T[0]*C[1];return L*.5},ah.centroid=function(d){var g=-1,T=this.length,C=0,L=0,q,z=this[T-1],P;for(arguments.length||(d=-1/(6*this.area()));++g<T;)q=z,z=this[g],P=q[0]*z[1]-z[0]*q[1],C+=(q[0]+z[0])*P,L+=(q[1]+z[1])*P;return[C*d,L*d]},ah.clip=function(d){for(var g,T=j7(d),C=-1,L=this.length-j7(this),q,z,P=this[L-1],H,Z,$;++C<L;){for(g=d.slice(),d.length=0,H=this[C],Z=g[(z=g.length-T)-1],q=-1;++q<z;)$=g[q],Og($,P,H)?(Og(Z,P,H)||d.push(Bg(Z,$,P,H)),d.push($)):Og(Z,P,H)&&d.push(Bg(Z,$,P,H)),Z=$;T&&d.push(d[0]),P=H}return d};function Og(d,g,T){return(T[0]-g[0])*(d[1]-g[1])<(T[1]-g[1])*(d[0]-g[0])}function Bg(d,g,T,C){var L=d[0],q=T[0],z=g[0]-L,P=C[0]-q,H=d[1],Z=T[1],$=g[1]-H,j=C[1]-Z,Q=(P*(H-Z)-j*(L-q))/(j*z-P*$);return[L+Q*z,H+Q*$]}function j7(d){var g=d[0],T=d[d.length-1];return!(g[0]-T[0]||g[1]-T[1])}var af,Cs,nf,Q7=[],Yg,c0,e9=[];function B$(){lh(this),this.edge=this.site=this.circle=null}function r9(d){var g=Q7.pop()||new B$;return g.site=d,g}function Gg(d){of(d),nf.remove(d),Q7.push(d),lh(d)}function Y$(d){var g=d.circle,T=g.x,C=g.cy,L={x:T,y:C},q=d.P,z=d.N,P=[d];Gg(d);for(var H=q;H.circle&&b(T-H.circle.x)<Ee&&b(C-H.circle.cy)<Ee;)q=H.P,P.unshift(H),Gg(H),H=q;P.unshift(H),of(H);for(var Z=z;Z.circle&&b(T-Z.circle.x)<Ee&&b(C-Z.circle.cy)<Ee;)z=Z.N,P.push(Z),Gg(Z),Z=z;P.push(Z),of(Z);var $=P.length,j;for(j=1;j<$;++j)Z=P[j],H=P[j-1],nh(Z.edge,H.site,Z.site,L);H=P[0],Z=P[$-1],Z.edge=v0(H.site,Z.site,null,L),lf(H),lf(Z)}function G$(d){for(var g=d.x,T=d.y,C,L,q,z,P=nf._;P;)if(q=t9(P,T)-g,q>Ee)P=P.L;else if(z=g-U$(P,T),z>Ee){if(!P.R){C=P;break}P=P.R}else{q>-Ee?(C=P.P,L=P):z>-Ee?(C=P,L=P.N):C=L=P;break}var H=r9(d);if(nf.insert(C,H),!(!C&&!L)){if(C===L){of(C),L=r9(C.site),nf.insert(H,L),H.edge=L.edge=v0(C.site,H.site),lf(C),lf(L);return}if(!L){H.edge=v0(C.site,H.site);return}of(C),of(L);var Z=C.site,$=Z.x,j=Z.y,Q=d.x-$,he=d.y-j,_e=L.site,ee=_e.x-$,ie=_e.y-j,ue=2*(Q*ie-he*ee),xe=Q*Q+he*he,we=ee*ee+ie*ie,ve={x:(ie*xe-he*we)/ue+$,y:(Q*we-ee*xe)/ue+j};nh(L.edge,Z,_e,ve),H.edge=v0(Z,d,null,ve),L.edge=v0(d,_e,null,ve),lf(C),lf(L)}}function t9(d,g){var T=d.site,C=T.x,L=T.y,q=L-g;if(!q)return C;var z=d.P;if(!z)return-1/0;T=z.site;var P=T.x,H=T.y,Z=H-g;if(!Z)return P;var $=P-C,j=1/q-1/Z,Q=$/Z;return j?(-Q+Math.sqrt(Q*Q-2*j*($*$/(-2*Z)-H+Z/2+L-q/2)))/j+C:(C+P)/2}function U$(d,g){var T=d.N;if(T)return t9(T,g);var C=d.site;return C.y===g?C.x:1/0}function a9(d){this.site=d,this.edges=[]}a9.prototype.prepare=function(){for(var d=this.edges,g=d.length,T;g--;)T=d[g].edge,(!T.b||!T.a)&&d.splice(g,1);return d.sort(n9),d.length};function V$(d){for(var g=d[0][0],T=d[1][0],C=d[0][1],L=d[1][1],q,z,P,H,Z=Cs,$=Z.length,j,Q,he,_e,ee,ie;$--;)if(j=Z[$],!(!j||!j.prepare()))for(he=j.edges,_e=he.length,Q=0;Q<_e;)ie=he[Q].end(),P=ie.x,H=ie.y,ee=he[++Q%_e].start(),q=ee.x,z=ee.y,(b(P-q)>Ee||b(H-z)>Ee)&&(he.splice(Q,0,new ih(J$(j.site,ie,b(P-g)<Ee&&L-H>Ee?{x:g,y:b(q-g)<Ee?z:L}:b(H-L)<Ee&&T-P>Ee?{x:b(z-L)<Ee?q:T,y:L}:b(P-T)<Ee&&H-C>Ee?{x:T,y:b(q-T)<Ee?z:C}:b(H-C)<Ee&&P-g>Ee?{x:b(z-C)<Ee?q:g,y:C}:null),j.site,null)),++_e)}function n9(d,g){return g.angle-d.angle}function X$(){lh(this),this.x=this.y=this.arc=this.site=this.cy=null}function lf(d){var g=d.P,T=d.N;if(!(!g||!T)){var C=g.site,L=d.site,q=T.site;if(C!==q){var z=L.x,P=L.y,H=C.x-z,Z=C.y-P,$=q.x-z,ie=q.y-P,j=2*(H*ie-Z*$);if(!(j>=-tr)){var Q=H*H+Z*Z,he=$*$+ie*ie,_e=(ie*Q-Z*he)/j,ee=(H*he-$*Q)/j,ie=ee+P,ue=e9.pop()||new X$;ue.arc=d,ue.site=L,ue.x=_e+z,ue.y=ie+Math.sqrt(_e*_e+ee*ee),ue.cy=ie,d.circle=ue;for(var xe=null,we=c0._;we;)if(ue.y<we.y||ue.y===we.y&&ue.x<=we.x)if(we.L)we=we.L;else{xe=we.P;break}else if(we.R)we=we.R;else{xe=we;break}c0.insert(xe,ue),xe||(Yg=ue)}}}}function of(d){var g=d.circle;g&&(g.P||(Yg=g.N),c0.remove(g),e9.push(g),lh(g),d.circle=null)}function W$(d,g,T,C){return function(L){var q=L.a,z=L.b,P=q.x,H=q.y,Z=z.x,$=z.y,j=0,Q=1,he=Z-P,_e=$-H,ee;if(ee=d-P,!(!he&&ee>0)){if(ee/=he,he<0){if(ee<j)return;ee<Q&&(Q=ee)}else if(he>0){if(ee>Q)return;ee>j&&(j=ee)}if(ee=T-P,!(!he&&ee<0)){if(ee/=he,he<0){if(ee>Q)return;ee>j&&(j=ee)}else if(he>0){if(ee<j)return;ee<Q&&(Q=ee)}if(ee=g-H,!(!_e&&ee>0)){if(ee/=_e,_e<0){if(ee<j)return;ee<Q&&(Q=ee)}else if(_e>0){if(ee>Q)return;ee>j&&(j=ee)}if(ee=C-H,!(!_e&&ee<0)){if(ee/=_e,_e<0){if(ee>Q)return;ee>j&&(j=ee)}else if(_e>0){if(ee<j)return;ee<Q&&(Q=ee)}return j>0&&(L.a={x:P+j*he,y:H+j*_e}),Q<1&&(L.b={x:P+Q*he,y:H+Q*_e}),L}}}}}}function Z$(d){for(var g=af,T=W$(d[0][0],d[0][1],d[1][0],d[1][1]),C=g.length,L;C--;)L=g[C],(!$$(L,d)||!T(L)||b(L.a.x-L.b.x)<Ee&&b(L.a.y-L.b.y)<Ee)&&(L.a=L.b=null,g.splice(C,1))}function $$(d,g){var T=d.b;if(T)return!0;var C=d.a,L=g[0][0],q=g[1][0],z=g[0][1],P=g[1][1],H=d.l,Z=d.r,$=H.x,j=H.y,Q=Z.x,he=Z.y,_e=($+Q)/2,ee=(j+he)/2,ie,ue;if(he===j){if(_e<L||_e>=q)return;if($>Q){if(!C)C={x:_e,y:z};else if(C.y>=P)return;T={x:_e,y:P}}else{if(!C)C={x:_e,y:P};else if(C.y<z)return;T={x:_e,y:z}}}else if(ie=($-Q)/(he-j),ue=ee-ie*_e,ie<-1||ie>1)if($>Q){if(!C)C={x:(z-ue)/ie,y:z};else if(C.y>=P)return;T={x:(P-ue)/ie,y:P}}else{if(!C)C={x:(P-ue)/ie,y:P};else if(C.y<z)return;T={x:(z-ue)/ie,y:z}}else if(j<he){if(!C)C={x:L,y:ie*L+ue};else if(C.x>=q)return;T={x:q,y:ie*q+ue}}else{if(!C)C={x:q,y:ie*q+ue};else if(C.x<L)return;T={x:L,y:ie*L+ue}}return d.a=C,d.b=T,!0}function i9(d,g){this.l=d,this.r=g,this.a=this.b=null}function v0(d,g,T,C){var L=new i9(d,g);return af.push(L),T&&nh(L,d,g,T),C&&nh(L,g,d,C),Cs[d.i].edges.push(new ih(L,d,g)),Cs[g.i].edges.push(new ih(L,g,d)),L}function J$(d,g,T){var C=new i9(d,null);return C.a=g,C.b=T,af.push(C),C}function nh(d,g,T,C){!d.a&&!d.b?(d.a=C,d.l=g,d.r=T):d.l===T?d.b=C:d.a=C}function ih(d,g,T){var C=d.a,L=d.b;this.edge=d,this.site=g,this.angle=T?Math.atan2(T.y-g.y,T.x-g.x):d.l===g?Math.atan2(L.x-C.x,C.y-L.y):Math.atan2(C.x-L.x,L.y-C.y)}ih.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 Ug(){this._=null}function lh(d){d.U=d.C=d.L=d.R=d.P=d.N=null}Ug.prototype={insert:function(d,g){var T,C,L;if(d){if(g.P=d,g.N=d.N,d.N&&(d.N.P=g),d.N=g,d.R){for(d=d.R;d.L;)d=d.L;d.L=g}else d.R=g;T=d}else this._?(d=l9(this._),g.P=null,g.N=d,d.P=d.L=g,T=d):(g.P=g.N=null,this._=g,T=null);for(g.L=g.R=null,g.U=T,g.C=!0,d=g;T&&T.C;)C=T.U,T===C.L?(L=C.R,L&&L.C?(T.C=L.C=!1,C.C=!0,d=C):(d===T.R&&(d0(this,T),d=T,T=d.U),T.C=!1,C.C=!0,h0(this,C))):(L=C.L,L&&L.C?(T.C=L.C=!1,C.C=!0,d=C):(d===T.L&&(h0(this,T),d=T,T=d.U),T.C=!1,C.C=!0,d0(this,C))),T=d.U;this._.C=!1},remove:function(d){d.N&&(d.N.P=d.P),d.P&&(d.P.N=d.N),d.N=d.P=null;var g=d.U,T,C=d.L,L=d.R,q,z;if(C?L?q=l9(L):q=C:q=L,g?g.L===d?g.L=q:g.R=q:this._=q,C&&L?(z=q.C,q.C=d.C,q.L=C,C.U=q,q!==L?(g=q.U,q.U=d.U,d=q.R,g.L=d,q.R=L,L.U=q):(q.U=g,g=q,d=q.R)):(z=d.C,d=q),d&&(d.U=g),!z){if(d&&d.C){d.C=!1;return}do{if(d===this._)break;if(d===g.L){if(T=g.R,T.C&&(T.C=!1,g.C=!0,d0(this,g),T=g.R),T.L&&T.L.C||T.R&&T.R.C){(!T.R||!T.R.C)&&(T.L.C=!1,T.C=!0,h0(this,T),T=g.R),T.C=g.C,g.C=T.R.C=!1,d0(this,g),d=this._;break}}else if(T=g.L,T.C&&(T.C=!1,g.C=!0,h0(this,g),T=g.L),T.L&&T.L.C||T.R&&T.R.C){(!T.L||!T.L.C)&&(T.R.C=!1,T.C=!0,d0(this,T),T=g.L),T.C=g.C,g.C=T.L.C=!1,h0(this,g),d=this._;break}T.C=!0,d=g,g=g.U}while(!d.C);d&&(d.C=!1)}}};function d0(d,g){var T=g,C=g.R,L=T.U;L?L.L===T?L.L=C:L.R=C:d._=C,C.U=L,T.U=C,T.R=C.L,T.R&&(T.R.U=T),C.L=T}function h0(d,g){var T=g,C=g.L,L=T.U;L?L.L===T?L.L=C:L.R=C:d._=C,C.U=L,T.U=C,T.L=C.R,T.L&&(T.L.U=T),C.R=T}function l9(d){for(;d.L;)d=d.L;return d}function Vg(d,g){var T=d.sort(K$).pop(),C,L,q;for(af=[],Cs=new Array(d.length),nf=new Ug,c0=new Ug;;)if(q=Yg,T&&(!q||T.y<q.y||T.y===q.y&&T.x<q.x))(T.x!==C||T.y!==L)&&(Cs[T.i]=new a9(T),G$(T),C=T.x,L=T.y),T=d.pop();else if(q)Y$(q.arc);else break;g&&(Z$(g),V$(g));var z={cells:Cs,edges:af};return nf=c0=af=Cs=null,z}function K$(d,g){return g.y-d.y||g.x-d.x}e.geom.voronoi=function(d){var g=tf,T=f0,C=g,L=T,q=oh;if(d)return z(d);function z(H){var Z=new Array(H.length),$=q[0][0],j=q[0][1],Q=q[1][0],he=q[1][1];return Vg(P(H),q).cells.forEach(function(_e,ee){var ie=_e.edges,ue=_e.site,xe=Z[ee]=ie.length?ie.map(function(we){var ve=we.start();return[ve.x,ve.y]}):ue.x>=$&&ue.x<=Q&&ue.y>=j&&ue.y<=he?[[$,he],[Q,he],[Q,j],[$,j]]:[];xe.point=H[ee]}),Z}function P(H){return H.map(function(Z,$){return{x:Math.round(C(Z,$)/Ee)*Ee,y:Math.round(L(Z,$)/Ee)*Ee,i:$}})}return z.links=function(H){return Vg(P(H)).edges.filter(function(Z){return Z.l&&Z.r}).map(function(Z){return{source:H[Z.l.i],target:H[Z.r.i]}})},z.triangles=function(H){var Z=[];return Vg(P(H)).cells.forEach(function($,j){for(var Q=$.site,he=$.edges.sort(n9),_e=-1,ee=he.length,ie,ue,xe=he[ee-1].edge,we=xe.l===Q?xe.r:xe.l;++_e<ee;)ie=xe,ue=we,xe=he[_e].edge,we=xe.l===Q?xe.r:xe.l,j<ue.i&&j<we.i&&j$(Q,ue,we)<0&&Z.push([H[j],H[ue.i],H[we.i]])}),Z},z.x=function(H){return arguments.length?(C=Tr(g=H),z):g},z.y=function(H){return arguments.length?(L=Tr(T=H),z):T},z.clipExtent=function(H){return arguments.length?(q=H==null?oh:H,z):q===oh?null:q},z.size=function(H){return arguments.length?z.clipExtent(H&&[[0,0],H]):q===oh?null:q&&q[1]},z};var oh=[[-1e6,-1e6],[1e6,1e6]];function j$(d,g,T){return(d.x-T.x)*(g.y-d.y)-(d.x-g.x)*(T.y-d.y)}e.geom.delaunay=function(d){return e.geom.voronoi().triangles(d)},e.geom.quadtree=function(d,g,T,C,L){var q=tf,z=f0,P;if(P=arguments.length)return q=Q$,z=eJ,P===3&&(L=T,C=g,T=g=0),H(d);function H(Z){var $,j=Tr(q),Q=Tr(z),he,_e,ee,ie,ue,xe,we,ve;if(g!=null)ue=g,xe=T,we=C,ve=L;else if(we=ve=-(ue=xe=1/0),he=[],_e=[],ie=Z.length,P)for(ee=0;ee<ie;++ee)$=Z[ee],$.x<ue&&(ue=$.x),$.y<xe&&(xe=$.y),$.x>we&&(we=$.x),$.y>ve&&(ve=$.y),he.push($.x),_e.push($.y);else for(ee=0;ee<ie;++ee){var Ge=+j($=Z[ee],ee),lr=+Q($,ee);Ge<ue&&(ue=Ge),lr<xe&&(xe=lr),Ge>we&&(we=Ge),lr>ve&&(ve=lr),he.push(Ge),_e.push(lr)}var ur=we-ue,sr=ve-xe;ur>sr?ve=xe+ur:we=ue+sr;function gr(wr,Dr,nt,ta,ut,ar,Fr,Hr){if(!(isNaN(nt)||isNaN(ta)))if(wr.leaf){var it=wr.x,Ut=wr.y;if(it!=null)if(b(it-nt)+b(Ut-ta)<.01)br(wr,Dr,nt,ta,ut,ar,Fr,Hr);else{var da=wr.point;wr.x=wr.y=wr.point=null,br(wr,da,it,Ut,ut,ar,Fr,Hr),br(wr,Dr,nt,ta,ut,ar,Fr,Hr)}else wr.x=nt,wr.y=ta,wr.point=Dr}else br(wr,Dr,nt,ta,ut,ar,Fr,Hr)}function br(wr,Dr,nt,ta,ut,ar,Fr,Hr){var it=(ut+Fr)*.5,Ut=(ar+Hr)*.5,da=nt>=it,Ba=ta>=Ut,cn=Ba<<1|da;wr.leaf=!1,wr=wr.nodes[cn]||(wr.nodes[cn]=o9()),da?ut=it:Fr=it,Ba?ar=Ut:Hr=Ut,gr(wr,Dr,nt,ta,ut,ar,Fr,Hr)}var Ir=o9();if(Ir.add=function(wr){gr(Ir,wr,+j(wr,++ee),+Q(wr,ee),ue,xe,we,ve)},Ir.visit=function(wr){p0(wr,Ir,ue,xe,we,ve)},Ir.find=function(wr){return rJ(Ir,wr[0],wr[1],ue,xe,we,ve)},ee=-1,g==null){for(;++ee<ie;)gr(Ir,Z[ee],he[ee],_e[ee],ue,xe,we,ve);--ee}else Z.forEach(Ir.add);return he=_e=Z=$=null,Ir}return H.x=function(Z){return arguments.length?(q=Z,H):q},H.y=function(Z){return arguments.length?(z=Z,H):z},H.extent=function(Z){return arguments.length?(Z==null?g=T=C=L=null:(g=+Z[0][0],T=+Z[0][1],C=+Z[1][0],L=+Z[1][1]),H):g==null?null:[[g,T],[C,L]]},H.size=function(Z){return arguments.length?(Z==null?g=T=C=L=null:(g=T=0,C=+Z[0],L=+Z[1]),H):g==null?null:[C-g,L-T]},H};function Q$(d){return d.x}function eJ(d){return d.y}function o9(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function p0(d,g,T,C,L,q){if(!d(g,T,C,L,q)){var z=(T+L)*.5,P=(C+q)*.5,H=g.nodes;H[0]&&p0(d,H[0],T,C,z,P),H[1]&&p0(d,H[1],z,C,L,P),H[2]&&p0(d,H[2],T,P,z,q),H[3]&&p0(d,H[3],z,P,L,q)}}function rJ(d,g,T,C,L,q,z){var P=1/0,H;return(function Z($,j,Q,he,_e){if(!(j>q||Q>z||he<C||_e<L)){if(ee=$.point){var ee,ie=g-$.x,ue=T-$.y,xe=ie*ie+ue*ue;if(xe<P){var we=Math.sqrt(P=xe);C=g-we,L=T-we,q=g+we,z=T+we,H=ee}}for(var ve=$.nodes,Ge=(j+he)*.5,lr=(Q+_e)*.5,ur=g>=Ge,sr=T>=lr,gr=sr<<1|ur,br=gr+4;gr<br;++gr)if($=ve[gr&3])switch(gr&3){case 0:Z($,j,Q,Ge,lr);break;case 1:Z($,Ge,Q,he,lr);break;case 2:Z($,j,lr,Ge,_e);break;case 3:Z($,Ge,lr,he,_e);break}}})(d,C,L,q,z),H}e.interpolateRgb=Xg;function Xg(d,g){d=e.rgb(d),g=e.rgb(g);var T=d.r,C=d.g,L=d.b,q=g.r-T,z=g.g-C,P=g.b-L;return function(H){return"#"+vl(Math.round(T+q*H))+vl(Math.round(C+z*H))+vl(Math.round(L+P*H))}}e.interpolateObject=s9;function s9(d,g){var T={},C={},L;for(L in d)L in g?T[L]=Ls(d[L],g[L]):C[L]=d[L];for(L in g)L in d||(C[L]=g[L]);return function(q){for(L in T)C[L]=T[L](q);return C}}e.interpolateNumber=Ul;function Ul(d,g){return d=+d,g=+g,function(T){return d*(1-T)+g*T}}e.interpolateString=u9;function u9(d,g){var T=Wg.lastIndex=Zg.lastIndex=0,C,L,q,z=-1,P=[],H=[];for(d=d+"",g=g+"";(C=Wg.exec(d))&&(L=Zg.exec(g));)(q=L.index)>T&&(q=g.slice(T,q),P[z]?P[z]+=q:P[++z]=q),(C=C[0])===(L=L[0])?P[z]?P[z]+=L:P[++z]=L:(P[++z]=null,H.push({i:z,x:Ul(C,L)})),T=Zg.lastIndex;return T<g.length&&(q=g.slice(T),P[z]?P[z]+=q:P[++z]=q),P.length<2?H[0]?(g=H[0].x,function(Z){return g(Z)+""}):function(){return g}:(g=H.length,function(Z){for(var $=0,j;$<g;++$)P[(j=H[$]).i]=j.x(Z);return P.join("")})}var Wg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zg=new RegExp(Wg.source,"g");e.interpolate=Ls;function Ls(d,g){for(var T=e.interpolators.length,C;--T>=0&&!(C=e.interpolators[T](d,g)););return C}e.interpolators=[function(d,g){var T=typeof g;return(T==="string"?Mr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Xg:u9:g instanceof ga?Xg:Array.isArray(g)?sh:T==="object"&&isNaN(g)?s9:Ul)(d,g)}],e.interpolateArray=sh;function sh(d,g){var T=[],C=[],L=d.length,q=g.length,z=Math.min(d.length,g.length),P;for(P=0;P<z;++P)T.push(Ls(d[P],g[P]));for(;P<L;++P)C[P]=d[P];for(;P<q;++P)C[P]=g[P];return function(H){for(P=0;P<z;++P)C[P]=T[P](H);return C}}var f9=function(){return I},tJ=e.map({linear:f9,poly:sJ,quad:function(){return iJ},cubic:function(){return lJ},sin:function(){return uJ},exp:function(){return fJ},circle:function(){return cJ},elastic:vJ,back:dJ,bounce:function(){return hJ}}),aJ=e.map({in:I,out:c9,"in-out":v9,"out-in":function(d){return v9(c9(d))}});e.ease=function(d){var g=d.indexOf("-"),T=g>=0?d.slice(0,g):d,C=g>=0?d.slice(g+1):"in";return T=tJ.get(T)||f9,C=aJ.get(C)||I,nJ(C(T.apply(null,r.call(arguments,1))))};function nJ(d){return function(g){return g<=0?0:g>=1?1:d(g)}}function c9(d){return function(g){return 1-d(1-g)}}function v9(d){return function(g){return .5*(g<.5?d(2*g):2-d(2-2*g))}}function iJ(d){return d*d}function lJ(d){return d*d*d}function oJ(d){if(d<=0)return 0;if(d>=1)return 1;var g=d*d,T=g*d;return 4*(d<.5?T:3*(d-g)+T-.75)}function sJ(d){return function(g){return Math.pow(g,d)}}function uJ(d){return 1-Math.cos(d*ae)}function fJ(d){return Math.pow(2,10*(d-1))}function cJ(d){return 1-Math.sqrt(1-d*d)}function vJ(d,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/yr*Math.asin(1/d):(d=1,T=g/4),function(C){return 1+d*Math.pow(2,-10*C)*Math.sin((C-T)*yr/g)}}function dJ(d){return d||(d=1.70158),function(g){return g*g*((d+1)*g-d)}}function hJ(d){return d<1/2.75?7.5625*d*d:d<2/2.75?7.5625*(d-=1.5/2.75)*d+.75:d<2.5/2.75?7.5625*(d-=2.25/2.75)*d+.9375:7.5625*(d-=2.625/2.75)*d+.984375}e.interpolateHcl=pJ;function pJ(d,g){d=e.hcl(d),g=e.hcl(g);var T=d.h,C=d.c,L=d.l,q=g.h-T,z=g.c-C,P=g.l-L;return isNaN(z)&&(z=0,C=isNaN(C)?g.c:C),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(H){return nr(T+q*H,C+z*H,L+P*H)+""}}e.interpolateHsl=mJ;function mJ(d,g){d=e.hsl(d),g=e.hsl(g);var T=d.h,C=d.s,L=d.l,q=g.h-T,z=g.s-C,P=g.l-L;return isNaN(z)&&(z=0,C=isNaN(C)?g.s:C),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(H){return Pa(T+q*H,C+z*H,L+P*H)+""}}e.interpolateLab=yJ;function yJ(d,g){d=e.lab(d),g=e.lab(g);var T=d.l,C=d.a,L=d.b,q=g.l-T,z=g.a-C,P=g.b-L;return function(H){return zi(T+q*H,C+z*H,L+P*H)+""}}e.interpolateRound=d9;function d9(d,g){return g-=d,function(T){return Math.round(d+g*T)}}e.transform=function(d){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var C=g.transform.baseVal.consolidate()}return new h9(C?C.matrix:bJ)})(d)};function h9(d){var g=[d.a,d.b],T=[d.c,d.d],C=m9(g),L=p9(g,T),q=m9(gJ(T,g,-L))||0;g[0]*T[1]<T[0]*g[1]&&(g[0]*=-1,g[1]*=-1,C*=-1,L*=-1),this.rotate=(C?Math.atan2(g[1],g[0]):Math.atan2(-T[0],T[1]))*Re,this.translate=[d.e,d.f],this.scale=[C,q],this.skew=q?Math.atan2(L,q)*Re:0}h9.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function p9(d,g){return d[0]*g[0]+d[1]*g[1]}function m9(d){var g=Math.sqrt(p9(d,d));return g&&(d[0]/=g,d[1]/=g),g}function gJ(d,g,T){return d[0]+=T*g[0],d[1]+=T*g[1],d}var bJ={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=y9;function sf(d){return d.length?d.pop()+",":""}function xJ(d,g,T,C){if(d[0]!==g[0]||d[1]!==g[1]){var L=T.push("translate(",null,",",null,")");C.push({i:L-4,x:Ul(d[0],g[0])},{i:L-2,x:Ul(d[1],g[1])})}else(g[0]||g[1])&&T.push("translate("+g+")")}function _J(d,g,T,C){d!==g?(d-g>180?g+=360:g-d>180&&(d+=360),C.push({i:T.push(sf(T)+"rotate(",null,")")-2,x:Ul(d,g)})):g&&T.push(sf(T)+"rotate("+g+")")}function wJ(d,g,T,C){d!==g?C.push({i:T.push(sf(T)+"skewX(",null,")")-2,x:Ul(d,g)}):g&&T.push(sf(T)+"skewX("+g+")")}function TJ(d,g,T,C){if(d[0]!==g[0]||d[1]!==g[1]){var L=T.push(sf(T)+"scale(",null,",",null,")");C.push({i:L-4,x:Ul(d[0],g[0])},{i:L-2,x:Ul(d[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(sf(T)+"scale("+g+")")}function y9(d,g){var T=[],C=[];return d=e.transform(d),g=e.transform(g),xJ(d.translate,g.translate,T,C),_J(d.rotate,g.rotate,T,C),wJ(d.skew,g.skew,T,C),TJ(d.scale,g.scale,T,C),d=g=null,function(L){for(var q=-1,z=C.length,P;++q<z;)T[(P=C[q]).i]=P.x(L);return T.join("")}}function MJ(d,g){return g=(g-=d=+d)||1/g,function(T){return(T-d)/g}}function AJ(d,g){return g=(g-=d=+d)||1/g,function(T){return Math.max(0,Math.min(1,(T-d)/g))}}e.layout={},e.layout.bundle=function(){return function(d){for(var g=[],T=-1,C=d.length;++T<C;)g.push(kJ(d[T]));return g}};function kJ(d){for(var g=d.source,T=d.target,C=CJ(g,T),L=[g];g!==C;)g=g.parent,L.push(g);for(var q=L.length;T!==C;)L.splice(q,0,T),T=T.parent;return L}function g9(d){for(var g=[],T=d.parent;T!=null;)g.push(d),d=T,T=T.parent;return g.push(d),g}function CJ(d,g){if(d===g)return d;for(var T=g9(d),C=g9(g),L=T.pop(),q=C.pop(),z=null;L===q;)z=L,L=T.pop(),q=C.pop();return z}e.layout.chord=function(){var d={},g,T,C,L,q=0,z,P,H;function Z(){var j={},Q=[],he=e.range(L),_e=[],ee,ie,ue,xe,we;for(g=[],T=[],ee=0,xe=-1;++xe<L;){for(ie=0,we=-1;++we<L;)ie+=C[xe][we];Q.push(ie),_e.push(e.range(L)),ee+=ie}for(z&&he.sort(function(Ir,wr){return z(Q[Ir],Q[wr])}),P&&_e.forEach(function(Ir,wr){Ir.sort(function(Dr,nt){return P(C[wr][Dr],C[wr][nt])})}),ee=(yr-q*L)/ee,ie=0,xe=-1;++xe<L;){for(ue=ie,we=-1;++we<L;){var ve=he[xe],Ge=_e[ve][we],lr=C[ve][Ge],ur=ie,sr=ie+=lr*ee;j[ve+"-"+Ge]={index:ve,subindex:Ge,startAngle:ur,endAngle:sr,value:lr}}T[ve]={index:ve,startAngle:ue,endAngle:ie,value:Q[ve]},ie+=q}for(xe=-1;++xe<L;)for(we=xe-1;++we<L;){var gr=j[xe+"-"+we],br=j[we+"-"+xe];(gr.value||br.value)&&g.push(gr.value<br.value?{source:br,target:gr}:{source:gr,target:br})}H&&$()}function $(){g.sort(function(j,Q){return H((j.source.value+j.target.value)/2,(Q.source.value+Q.target.value)/2)})}return d.matrix=function(j){return arguments.length?(L=(C=j)&&C.length,g=T=null,d):C},d.padding=function(j){return arguments.length?(q=j,g=T=null,d):q},d.sortGroups=function(j){return arguments.length?(z=j,g=T=null,d):z},d.sortSubgroups=function(j){return arguments.length?(P=j,g=null,d):P},d.sortChords=function(j){return arguments.length?(H=j,g&&$(),d):H},d.chords=function(){return g||Z(),g},d.groups=function(){return T||Z(),T},d},e.layout.force=function(){var d={},g=e.dispatch("start","tick","end"),T,C=[1,1],L,q,z=.9,P=EJ,H=PJ,Z=-30,$=RJ,j=.1,Q=.64,he=[],_e=[],ee,ie,ue;function xe(ve){return function(Ge,lr,ur,sr){if(Ge.point!==ve){var gr=Ge.cx-ve.x,br=Ge.cy-ve.y,Ir=sr-lr,wr=gr*gr+br*br;if(Ir*Ir/Q<wr){if(wr<$){var Dr=Ge.charge/wr;ve.px-=gr*Dr,ve.py-=br*Dr}return!0}if(Ge.point&&wr&&wr<$){var Dr=Ge.pointCharge/wr;ve.px-=gr*Dr,ve.py-=br*Dr}}return!Ge.charge}}d.tick=function(){if((q*=.99)<.005)return T=null,g.end({type:"end",alpha:q=0}),!0;var ve=he.length,Ge=_e.length,lr,ur,sr,gr,br,Ir,wr,Dr,nt;for(ur=0;ur<Ge;++ur)sr=_e[ur],gr=sr.source,br=sr.target,Dr=br.x-gr.x,nt=br.y-gr.y,(Ir=Dr*Dr+nt*nt)&&(Ir=q*ie[ur]*((Ir=Math.sqrt(Ir))-ee[ur])/Ir,Dr*=Ir,nt*=Ir,br.x-=Dr*(wr=gr.weight+br.weight?gr.weight/(gr.weight+br.weight):.5),br.y-=nt*wr,gr.x+=Dr*(wr=1-wr),gr.y+=nt*wr);if((wr=q*j)&&(Dr=C[0]/2,nt=C[1]/2,ur=-1,wr))for(;++ur<ve;)sr=he[ur],sr.x+=(Dr-sr.x)*wr,sr.y+=(nt-sr.y)*wr;if(Z)for(b9(lr=e.geom.quadtree(he),q,ue),ur=-1;++ur<ve;)(sr=he[ur]).fixed||lr.visit(xe(sr));for(ur=-1;++ur<ve;)sr=he[ur],sr.fixed?(sr.x=sr.px,sr.y=sr.py):(sr.x-=(sr.px-(sr.px=sr.x))*z,sr.y-=(sr.py-(sr.py=sr.y))*z);g.tick({type:"tick",alpha:q})},d.nodes=function(ve){return arguments.length?(he=ve,d):he},d.links=function(ve){return arguments.length?(_e=ve,d):_e},d.size=function(ve){return arguments.length?(C=ve,d):C},d.linkDistance=function(ve){return arguments.length?(P=typeof ve=="function"?ve:+ve,d):P},d.distance=d.linkDistance,d.linkStrength=function(ve){return arguments.length?(H=typeof ve=="function"?ve:+ve,d):H},d.friction=function(ve){return arguments.length?(z=+ve,d):z},d.charge=function(ve){return arguments.length?(Z=typeof ve=="function"?ve:+ve,d):Z},d.chargeDistance=function(ve){return arguments.length?($=ve*ve,d):Math.sqrt($)},d.gravity=function(ve){return arguments.length?(j=+ve,d):j},d.theta=function(ve){return arguments.length?(Q=ve*ve,d):Math.sqrt(Q)},d.alpha=function(ve){return arguments.length?(ve=+ve,q?ve>0?q=ve:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:q=0})):ve>0&&(g.start({type:"start",alpha:q=ve}),T=th(d.tick)),d):q},d.start=function(){var ve,Ge=he.length,lr=_e.length,ur=C[0],sr=C[1],gr,br;for(ve=0;ve<Ge;++ve)(br=he[ve]).index=ve,br.weight=0;for(ve=0;ve<lr;++ve)br=_e[ve],typeof br.source=="number"&&(br.source=he[br.source]),typeof br.target=="number"&&(br.target=he[br.target]),++br.source.weight,++br.target.weight;for(ve=0;ve<Ge;++ve)br=he[ve],isNaN(br.x)&&(br.x=Ir("x",ur)),isNaN(br.y)&&(br.y=Ir("y",sr)),isNaN(br.px)&&(br.px=br.x),isNaN(br.py)&&(br.py=br.y);if(ee=[],typeof P=="function")for(ve=0;ve<lr;++ve)ee[ve]=+P.call(this,_e[ve],ve);else for(ve=0;ve<lr;++ve)ee[ve]=P;if(ie=[],typeof H=="function")for(ve=0;ve<lr;++ve)ie[ve]=+H.call(this,_e[ve],ve);else for(ve=0;ve<lr;++ve)ie[ve]=H;if(ue=[],typeof Z=="function")for(ve=0;ve<Ge;++ve)ue[ve]=+Z.call(this,he[ve],ve);else for(ve=0;ve<Ge;++ve)ue[ve]=Z;function Ir(wr,Dr){if(!gr){for(gr=new Array(Ge),ut=0;ut<Ge;++ut)gr[ut]=[];for(ut=0;ut<lr;++ut){var nt=_e[ut];gr[nt.source.index].push(nt.target),gr[nt.target.index].push(nt.source)}}for(var ta=gr[ve],ut=-1,ar=ta.length,Fr;++ut<ar;)if(!isNaN(Fr=ta[ut][wr]))return Fr;return Math.random()*Dr}return d.resume()},d.resume=function(){return d.alpha(.1)},d.stop=function(){return d.alpha(0)},d.drag=function(){if(L||(L=e.behavior.drag().origin(I).on("dragstart.force",LJ).on("drag.force",we).on("dragend.force",SJ)),!arguments.length)return L;this.on("mouseover.force",qJ).on("mouseout.force",DJ).call(L)};function we(ve){ve.px=e.event.x,ve.py=e.event.y,d.resume()}return e.rebind(d,g,"on")};function LJ(d){d.fixed|=2}function SJ(d){d.fixed&=-7}function qJ(d){d.fixed|=4,d.px=d.x,d.py=d.y}function DJ(d){d.fixed&=-5}function b9(d,g,T){var C=0,L=0;if(d.charge=0,!d.leaf)for(var q=d.nodes,z=q.length,P=-1,H;++P<z;)H=q[P],H!=null&&(b9(H,g,T),d.charge+=H.charge,C+=H.charge*H.cx,L+=H.charge*H.cy);if(d.point){d.leaf||(d.point.x+=Math.random()-.5,d.point.y+=Math.random()-.5);var Z=g*T[d.point.index];d.charge+=d.pointCharge=Z,C+=Z*d.point.x,L+=Z*d.point.y}d.cx=C/d.charge,d.cy=L/d.charge}var EJ=20,PJ=1,RJ=1/0;e.layout.hierarchy=function(){var d=IJ,g=zJ,T=NJ;function C(L){var q=[L],z=[],P;for(L.depth=0;(P=q.pop())!=null;)if(z.push(P),(Z=g.call(C,P,P.depth))&&(H=Z.length)){for(var H,Z,$;--H>=0;)q.push($=Z[H]),$.parent=P,$.depth=P.depth+1;T&&(P.value=0),P.children=Z}else T&&(P.value=+T.call(C,P,P.depth)||0),delete P.children;return dl(L,function(j){var Q,he;d&&(Q=j.children)&&Q.sort(d),T&&(he=j.parent)&&(he.value+=j.value)}),z}return C.sort=function(L){return arguments.length?(d=L,C):d},C.children=function(L){return arguments.length?(g=L,C):g},C.value=function(L){return arguments.length?(T=L,C):T},C.revalue=function(L){return T&&(y0(L,function(q){q.children&&(q.value=0)}),dl(L,function(q){var z;q.children||(q.value=+T.call(C,q,q.depth)||0),(z=q.parent)&&(z.value+=q.value)})),L},C};function m0(d,g){return e.rebind(d,g,"sort","children","value"),d.nodes=d,d.links=FJ,d}function y0(d,g){for(var T=[d];(d=T.pop())!=null;)if(g(d),(L=d.children)&&(C=L.length))for(var C,L;--C>=0;)T.push(L[C])}function dl(d,g){for(var T=[d],C=[];(d=T.pop())!=null;)if(C.push(d),(z=d.children)&&(q=z.length))for(var L=-1,q,z;++L<q;)T.push(z[L]);for(;(d=C.pop())!=null;)g(d)}function zJ(d){return d.children}function NJ(d){return d.value}function IJ(d,g){return g.value-d.value}function FJ(d){return e.merge(d.map(function(g){return(g.children||[]).map(function(T){return{source:g,target:T}})}))}e.layout.partition=function(){var d=e.layout.hierarchy(),g=[1,1];function T(q,z,P,H){var Z=q.children;if(q.x=z,q.y=q.depth*H,q.dx=P,q.dy=H,Z&&(j=Z.length)){var $=-1,j,Q,he;for(P=q.value?P/q.value:0;++$<j;)T(Q=Z[$],z,he=Q.value*P,H),z+=he}}function C(q){var z=q.children,P=0;if(z&&(Z=z.length))for(var H=-1,Z;++H<Z;)P=Math.max(P,C(z[H]));return 1+P}function L(q,z){var P=d.call(this,q,z);return T(P[0],0,g[0],g[1]/C(P[0])),P}return L.size=function(q){return arguments.length?(g=q,L):g},m0(L,d)},e.layout.pie=function(){var d=Number,g=x9,T=0,C=yr,L=0;function q(z){var P=z.length,H=z.map(function(xe,we){return+d.call(q,xe,we)}),Z=+(typeof T=="function"?T.apply(this,arguments):T),$=(typeof C=="function"?C.apply(this,arguments):C)-Z,j=Math.min(Math.abs($)/P,+(typeof L=="function"?L.apply(this,arguments):L)),Q=j*($<0?-1:1),he=e.sum(H),_e=he?($-P*Q)/he:0,ee=e.range(P),ie=[],ue;return g!=null&&ee.sort(g===x9?function(xe,we){return H[we]-H[xe]}:function(xe,we){return g(z[xe],z[we])}),ee.forEach(function(xe){ie[xe]={data:z[xe],value:ue=H[xe],startAngle:Z,endAngle:Z+=ue*_e+Q,padAngle:j}}),ie}return q.value=function(z){return arguments.length?(d=z,q):d},q.sort=function(z){return arguments.length?(g=z,q):g},q.startAngle=function(z){return arguments.length?(T=z,q):T},q.endAngle=function(z){return arguments.length?(C=z,q):C},q.padAngle=function(z){return arguments.length?(L=z,q):L},q};var x9={};e.layout.stack=function(){var d=I,g=$g,T=Jg,C=BJ,L=HJ,q=OJ;function z(P,H){if(!(_e=P.length))return P;var Z=P.map(function(xe,we){return d.call(z,xe,we)}),$=Z.map(function(xe){return xe.map(function(we,ve){return[L.call(z,we,ve),q.call(z,we,ve)]})}),j=g.call(z,$,H);Z=e.permute(Z,j),$=e.permute($,j);var Q=T.call(z,$,H),he=Z[0].length,_e,ee,ie,ue;for(ie=0;ie<he;++ie)for(C.call(z,Z[0][ie],ue=Q[ie],$[0][ie][1]),ee=1;ee<_e;++ee)C.call(z,Z[ee][ie],ue+=$[ee-1][ie][1],$[ee][ie][1]);return P}return z.values=function(P){return arguments.length?(d=P,z):d},z.order=function(P){return arguments.length?(g=typeof P=="function"?P:YJ.get(P)||$g,z):g},z.offset=function(P){return arguments.length?(T=typeof P=="function"?P:GJ.get(P)||Jg,z):T},z.x=function(P){return arguments.length?(L=P,z):L},z.y=function(P){return arguments.length?(q=P,z):q},z.out=function(P){return arguments.length?(C=P,z):C},z};function HJ(d){return d.x}function OJ(d){return d.y}function BJ(d,g,T){d.y0=g,d.y=T}var YJ=e.map({"inside-out":function(d){var g=d.length,T,C,L=d.map(UJ),q=d.map(VJ),z=e.range(g).sort(function(j,Q){return L[j]-L[Q]}),P=0,H=0,Z=[],$=[];for(T=0;T<g;++T)C=z[T],P<H?(P+=q[C],Z.push(C)):(H+=q[C],$.push(C));return $.reverse().concat(Z)},reverse:function(d){return e.range(d.length).reverse()},default:$g}),GJ=e.map({silhouette:function(d){var g=d.length,T=d[0].length,C=[],L=0,q,z,P,H=[];for(z=0;z<T;++z){for(q=0,P=0;q<g;q++)P+=d[q][z][1];P>L&&(L=P),C.push(P)}for(z=0;z<T;++z)H[z]=(L-C[z])/2;return H},wiggle:function(d){var g=d.length,T=d[0],C=T.length,L,q,z,P,H,Z,$,j,Q,he=[];for(he[0]=j=Q=0,q=1;q<C;++q){for(L=0,P=0;L<g;++L)P+=d[L][q][1];for(L=0,H=0,$=T[q][0]-T[q-1][0];L<g;++L){for(z=0,Z=(d[L][q][1]-d[L][q-1][1])/(2*$);z<L;++z)Z+=(d[z][q][1]-d[z][q-1][1])/$;H+=Z*d[L][q][1]}he[q]=j-=P?H/P*$:0,j<Q&&(Q=j)}for(q=0;q<C;++q)he[q]-=Q;return he},expand:function(d){var g=d.length,T=d[0].length,C=1/g,L,q,z,P=[];for(q=0;q<T;++q){for(L=0,z=0;L<g;L++)z+=d[L][q][1];if(z)for(L=0;L<g;L++)d[L][q][1]/=z;else for(L=0;L<g;L++)d[L][q][1]=C}for(q=0;q<T;++q)P[q]=0;return P},zero:Jg});function $g(d){return e.range(d.length)}function Jg(d){for(var g=-1,T=d[0].length,C=[];++g<T;)C[g]=0;return C}function UJ(d){for(var g=1,T=0,C=d[0][1],L,q=d.length;g<q;++g)(L=d[g][1])>C&&(T=g,C=L);return T}function VJ(d){return d.reduce(XJ,0)}function XJ(d,g){return d+g[1]}e.layout.histogram=function(){var d=!0,g=Number,T=ZJ,C=WJ;function L(q,Q){for(var P=[],H=q.map(g,this),Z=T.call(this,H,Q),$=C.call(this,Z,H,Q),j,Q=-1,he=H.length,_e=$.length-1,ee=d?1:1/he,ie;++Q<_e;)j=P[Q]=[],j.dx=$[Q+1]-(j.x=$[Q]),j.y=0;if(_e>0)for(Q=-1;++Q<he;)ie=H[Q],ie>=Z[0]&&ie<=Z[1]&&(j=P[e.bisect($,ie,1,_e)-1],j.y+=ee,j.push(q[Q]));return P}return L.value=function(q){return arguments.length?(g=q,L):g},L.range=function(q){return arguments.length?(T=Tr(q),L):T},L.bins=function(q){return arguments.length?(C=typeof q=="number"?function(z){return _9(z,q)}:Tr(q),L):C},L.frequency=function(q){return arguments.length?(d=!!q,L):d},L};function WJ(d,g){return _9(d,Math.ceil(Math.log(g.length)/Math.LN2+1))}function _9(d,g){for(var T=-1,C=+d[0],L=(d[1]-C)/g,q=[];++T<=g;)q[T]=L*T+C;return q}function ZJ(d){return[e.min(d),e.max(d)]}e.layout.pack=function(){var d=e.layout.hierarchy().sort($J),g=0,T=[1,1],C;function L(q,z){var P=d.call(this,q,z),H=P[0],Z=T[0],$=T[1],j=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(H.x=H.y=0,dl(H,function(he){he.r=+j(he.value)}),dl(H,M9),g){var Q=g*(C?1:Math.max(2*H.r/Z,2*H.r/$))/2;dl(H,function(he){he.r+=Q}),dl(H,M9),dl(H,function(he){he.r-=Q})}return A9(H,Z/2,$/2,C?1:1/Math.max(2*H.r/Z,2*H.r/$)),P}return L.size=function(q){return arguments.length?(T=q,L):T},L.radius=function(q){return arguments.length?(C=q==null||typeof q=="function"?q:+q,L):C},L.padding=function(q){return arguments.length?(g=+q,L):g},m0(L,d)};function $J(d,g){return d.value-g.value}function Kg(d,g){var T=d._pack_next;d._pack_next=g,g._pack_prev=d,g._pack_next=T,T._pack_prev=g}function w9(d,g){d._pack_next=g,g._pack_prev=d}function T9(d,g){var T=g.x-d.x,C=g.y-d.y,L=d.r+g.r;return .999*L*L>T*T+C*C}function M9(d){if(!(g=d.children)||!(Q=g.length))return;var g,T=1/0,C=-1/0,L=1/0,q=-1/0,z,P,H,Z,$,j,Q;function he(ve){T=Math.min(ve.x-ve.r,T),C=Math.max(ve.x+ve.r,C),L=Math.min(ve.y-ve.r,L),q=Math.max(ve.y+ve.r,q)}if(g.forEach(JJ),z=g[0],z.x=-z.r,z.y=0,he(z),Q>1&&(P=g[1],P.x=P.r,P.y=0,he(P),Q>2))for(H=g[2],k9(z,P,H),he(H),Kg(z,H),z._pack_prev=H,Kg(H,P),P=z._pack_next,Z=3;Z<Q;Z++){k9(z,P,H=g[Z]);var _e=0,ee=1,ie=1;for($=P._pack_next;$!==P;$=$._pack_next,ee++)if(T9($,H)){_e=1;break}if(_e==1)for(j=z._pack_prev;j!==$._pack_prev&&!T9(j,H);j=j._pack_prev,ie++);_e?(ee<ie||ee==ie&&P.r<z.r?w9(z,P=$):w9(z=j,P),Z--):(Kg(z,H),P=H,he(H))}var ue=(T+C)/2,xe=(L+q)/2,we=0;for(Z=0;Z<Q;Z++)H=g[Z],H.x-=ue,H.y-=xe,we=Math.max(we,H.r+Math.sqrt(H.x*H.x+H.y*H.y));d.r=we,g.forEach(KJ)}function JJ(d){d._pack_next=d._pack_prev=d}function KJ(d){delete d._pack_next,delete d._pack_prev}function A9(d,g,T,C){var L=d.children;if(d.x=g+=C*d.x,d.y=T+=C*d.y,d.r*=C,L)for(var q=-1,z=L.length;++q<z;)A9(L[q],g,T,C)}function k9(d,g,T){var C=d.r+T.r,L=g.x-d.x,q=g.y-d.y;if(C&&(L||q)){var z=g.r+T.r,P=L*L+q*q;z*=z,C*=C;var H=.5+(C-z)/(2*P),Z=Math.sqrt(Math.max(0,2*z*(C+P)-(C-=P)*C-z*z))/(2*P);T.x=d.x+H*L+Z*q,T.y=d.y+H*q-Z*L}else T.x=d.x+C,T.y=d.y}e.layout.tree=function(){var d=e.layout.hierarchy().sort(null).value(null),g=C9,T=[1,1],C=null;function L($,j){var Q=d.call(this,$,j),he=Q[0],_e=q(he);if(dl(_e,z),_e.parent.m=-_e.z,y0(_e,P),C)y0(he,Z);else{var ee=he,ie=he,ue=he;y0(he,function(Ge){Ge.x<ee.x&&(ee=Ge),Ge.x>ie.x&&(ie=Ge),Ge.depth>ue.depth&&(ue=Ge)});var xe=g(ee,ie)/2-ee.x,we=T[0]/(ie.x+g(ie,ee)/2+xe),ve=T[1]/(ue.depth||1);y0(he,function(Ge){Ge.x=(Ge.x+xe)*we,Ge.y=Ge.depth*ve})}return Q}function q($){for(var j={A:null,children:[$]},Q=[j],he;(he=Q.pop())!=null;)for(var _e=he.children,ee,ie=0,ue=_e.length;ie<ue;++ie)Q.push((_e[ie]=ee={_:_e[ie],parent:he,children:(ee=_e[ie].children)&&ee.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:ie}).a=ee);return j.children[0]}function z($){var j=$.children,Q=$.parent.children,he=$.i?Q[$.i-1]:null;if(j.length){QJ($);var _e=(j[0].z+j[j.length-1].z)/2;he?($.z=he.z+g($._,he._),$.m=$.z-_e):$.z=_e}else he&&($.z=he.z+g($._,he._));$.parent.A=H($,he,$.parent.A||Q[0])}function P($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function H($,j,Q){if(j){for(var he=$,_e=$,ee=j,ie=he.parent.children[0],ue=he.m,xe=_e.m,we=ee.m,ve=ie.m,Ge;ee=Qg(ee),he=jg(he),ee&&he;)ie=jg(ie),_e=Qg(_e),_e.a=$,Ge=ee.z+we-he.z-ue+g(ee._,he._),Ge>0&&(jJ(eK(ee,$,Q),$,Ge),ue+=Ge,xe+=Ge),we+=ee.m,ue+=he.m,ve+=ie.m,xe+=_e.m;ee&&!Qg(_e)&&(_e.t=ee,_e.m+=we-xe),he&&!jg(ie)&&(ie.t=he,ie.m+=ue-ve,Q=$)}return Q}function Z($){$.x*=T[0],$.y=$.depth*T[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(C=(T=$)==null?Z:null,L):C?null:T},L.nodeSize=function($){return arguments.length?(C=(T=$)==null?null:Z,L):C?T:null},m0(L,d)};function C9(d,g){return d.parent==g.parent?1:2}function jg(d){var g=d.children;return g.length?g[0]:d.t}function Qg(d){var g=d.children,T;return(T=g.length)?g[T-1]:d.t}function jJ(d,g,T){var C=T/(g.i-d.i);g.c-=C,g.s+=T,d.c+=C,g.z+=T,g.m+=T}function QJ(d){for(var g=0,T=0,C=d.children,L=C.length,q;--L>=0;)q=C[L],q.z+=g,q.m+=g,g+=q.s+(T+=q.c)}function eK(d,g,T){return d.a.parent===g.parent?d.a:T}e.layout.cluster=function(){var d=e.layout.hierarchy().sort(null).value(null),g=C9,T=[1,1],C=!1;function L(q,z){var P=d.call(this,q,z),H=P[0],Z,$=0;dl(H,function(ee){var ie=ee.children;ie&&ie.length?(ee.x=tK(ie),ee.y=rK(ie)):(ee.x=Z?$+=g(ee,Z):0,ee.y=0,Z=ee)});var j=L9(H),Q=S9(H),he=j.x-g(j,Q)/2,_e=Q.x+g(Q,j)/2;return dl(H,C?function(ee){ee.x=(ee.x-H.x)*T[0],ee.y=(H.y-ee.y)*T[1]}:function(ee){ee.x=(ee.x-he)/(_e-he)*T[0],ee.y=(1-(H.y?ee.y/H.y:1))*T[1]}),P}return L.separation=function(q){return arguments.length?(g=q,L):g},L.size=function(q){return arguments.length?(C=(T=q)==null,L):C?null:T},L.nodeSize=function(q){return arguments.length?(C=(T=q)!=null,L):C?T:null},m0(L,d)};function rK(d){return 1+e.max(d,function(g){return g.y})}function tK(d){return d.reduce(function(g,T){return g+T.x},0)/d.length}function L9(d){var g=d.children;return g&&g.length?L9(g[0]):d}function S9(d){var g=d.children,T;return g&&(T=g.length)?S9(g[T-1]):d}e.layout.treemap=function(){var d=e.layout.hierarchy(),g=Math.round,T=[1,1],C=null,L=e2,q=!1,z,P="squarify",H=.5*(1+Math.sqrt(5));function Z(ee,ie){for(var ue=-1,xe=ee.length,we,ve;++ue<xe;)ve=(we=ee[ue]).value*(ie<0?0:ie),we.area=isNaN(ve)||ve<=0?0:ve}function $(ee){var ie=ee.children;if(ie&&ie.length){var ue=L(ee),xe=[],we=ie.slice(),ve,Ge=1/0,lr,ur=P==="slice"?ue.dx:P==="dice"?ue.dy:P==="slice-dice"?ee.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),sr;for(Z(we,ue.dx*ue.dy/ee.value),xe.area=0;(sr=we.length)>0;)xe.push(ve=we[sr-1]),xe.area+=ve.area,P!=="squarify"||(lr=Q(xe,ur))<=Ge?(we.pop(),Ge=lr):(xe.area-=xe.pop().area,he(xe,ur,ue,!1),ur=Math.min(ue.dx,ue.dy),xe.length=xe.area=0,Ge=1/0);xe.length&&(he(xe,ur,ue,!0),xe.length=xe.area=0),ie.forEach($)}}function j(ee){var ie=ee.children;if(ie&&ie.length){var ue=L(ee),xe=ie.slice(),we,ve=[];for(Z(xe,ue.dx*ue.dy/ee.value),ve.area=0;we=xe.pop();)ve.push(we),ve.area+=we.area,we.z!=null&&(he(ve,we.z?ue.dx:ue.dy,ue,!xe.length),ve.length=ve.area=0);ie.forEach(j)}}function Q(ee,ie){for(var ue=ee.area,xe,we=0,ve=1/0,Ge=-1,lr=ee.length;++Ge<lr;)(xe=ee[Ge].area)&&(xe<ve&&(ve=xe),xe>we&&(we=xe));return ue*=ue,ie*=ie,ue?Math.max(ie*we*H/ue,ue/(ie*ve*H)):1/0}function he(ee,ie,ue,xe){var we=-1,ve=ee.length,Ge=ue.x,lr=ue.y,ur=ie?g(ee.area/ie):0,sr;if(ie==ue.dx){for((xe||ur>ue.dy)&&(ur=ue.dy);++we<ve;)sr=ee[we],sr.x=Ge,sr.y=lr,sr.dy=ur,Ge+=sr.dx=Math.min(ue.x+ue.dx-Ge,ur?g(sr.area/ur):0);sr.z=!0,sr.dx+=ue.x+ue.dx-Ge,ue.y+=ur,ue.dy-=ur}else{for((xe||ur>ue.dx)&&(ur=ue.dx);++we<ve;)sr=ee[we],sr.x=Ge,sr.y=lr,sr.dx=ur,lr+=sr.dy=Math.min(ue.y+ue.dy-lr,ur?g(sr.area/ur):0);sr.z=!1,sr.dy+=ue.y+ue.dy-lr,ue.x+=ur,ue.dx-=ur}}function _e(ee){var ie=z||d(ee),ue=ie[0];return ue.x=ue.y=0,ue.value?(ue.dx=T[0],ue.dy=T[1]):ue.dx=ue.dy=0,z&&d.revalue(ue),Z([ue],ue.dx*ue.dy/ue.value),(z?j:$)(ue),q&&(z=ie),ie}return _e.size=function(ee){return arguments.length?(T=ee,_e):T},_e.padding=function(ee){if(!arguments.length)return C;function ie(we){var ve=ee.call(_e,we,we.depth);return ve==null?e2(we):q9(we,typeof ve=="number"?[ve,ve,ve,ve]:ve)}function ue(we){return q9(we,ee)}var xe;return L=(C=ee)==null?e2:(xe=typeof ee)=="function"?ie:(xe==="number"&&(ee=[ee,ee,ee,ee]),ue),_e},_e.round=function(ee){return arguments.length?(g=ee?Math.round:Number,_e):g!=Number},_e.sticky=function(ee){return arguments.length?(q=ee,z=null,_e):q},_e.ratio=function(ee){return arguments.length?(H=ee,_e):H},_e.mode=function(ee){return arguments.length?(P=ee+"",_e):P},m0(_e,d)};function e2(d){return{x:d.x,y:d.y,dx:d.dx,dy:d.dy}}function q9(d,g){var T=d.x+g[3],C=d.y+g[0],L=d.dx-g[1]-g[3],q=d.dy-g[0]-g[2];return L<0&&(T+=L/2,L=0),q<0&&(C+=q/2,q=0),{x:T,y:C,dx:L,dy:q}}e.random={normal:function(d,g){var T=arguments.length;return T<2&&(g=1),T<1&&(d=0),function(){var C,L,q;do C=Math.random()*2-1,L=Math.random()*2-1,q=C*C+L*L;while(!q||q>1);return d+g*C*Math.sqrt(-2*Math.log(q)/q)}},logNormal:function(){var d=e.random.normal.apply(e,arguments);return function(){return Math.exp(d())}},bates:function(d){var g=e.random.irwinHall(d);return function(){return g()/d}},irwinHall:function(d){return function(){for(var g=0,T=0;T<d;T++)g+=Math.random();return g}}},e.scale={};function uh(d){var g=d[0],T=d[d.length-1];return g<T?[g,T]:[T,g]}function fh(d){return d.rangeExtent?d.rangeExtent():uh(d.range())}function aK(d,g,T,C){var L=T(d[0],d[1]),q=C(g[0],g[1]);return function(z){return q(L(z))}}function r2(d,g){var T=0,C=d.length-1,L=d[T],q=d[C],z;return q<L&&(z=T,T=C,C=z,z=L,L=q,q=z),d[T]=g.floor(L),d[C]=g.ceil(q),d}function D9(d){return d?{floor:function(g){return Math.floor(g/d)*d},ceil:function(g){return Math.ceil(g/d)*d}}:nK}var nK={floor:I,ceil:I};function iK(d,g,T,C){var L=[],q=[],z=0,P=Math.min(d.length,g.length)-1;for(d[P]<d[0]&&(d=d.slice().reverse(),g=g.slice().reverse());++z<=P;)L.push(T(d[z-1],d[z])),q.push(C(g[z-1],g[z]));return function(H){var Z=e.bisect(d,H,1,P)-1;return q[Z](L[Z](H))}}e.scale.linear=function(){return E9([0,1],[0,1],Ls,!1)};function E9(d,g,T,C){var L,q;function z(){var H=Math.min(d.length,g.length)>2?iK:aK,Z=C?AJ:MJ;return L=H(d,g,Z,T),q=H(g,d,Z,Ls),P}function P(H){return L(H)}return P.invert=function(H){return q(H)},P.domain=function(H){return arguments.length?(d=H.map(Number),z()):d},P.range=function(H){return arguments.length?(g=H,z()):g},P.rangeRound=function(H){return P.range(H).interpolate(d9)},P.clamp=function(H){return arguments.length?(C=H,z()):C},P.interpolate=function(H){return arguments.length?(T=H,z()):T},P.ticks=function(H){return a2(d,H)},P.tickFormat=function(H,Z){return d3_scale_linearTickFormat(d,H,Z)},P.nice=function(H){return R9(d,H),z()},P.copy=function(){return E9(d,g,T,C)},z()}function P9(d,g){return e.rebind(d,g,"range","rangeRound","interpolate","clamp")}function R9(d,g){return r2(d,D9(t2(d,g)[2])),r2(d,D9(t2(d,g)[2])),d}function t2(d,g){g==null&&(g=10);var T=uh(d),C=T[1]-T[0],L=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),q=g/C*L;return q<=.15?L*=10:q<=.35?L*=5:q<=.75&&(L*=2),T[0]=Math.ceil(T[0]/L)*L,T[1]=Math.floor(T[1]/L)*L+L*.5,T[2]=L,T}function a2(d,g){return e.range.apply(e,t2(d,g))}var lK={s:1,g:1,p:1,r:1,e:1};function z9(d){return-Math.floor(Math.log(d)/Math.LN10+.01)}function Bwe(d,g){var T=z9(g[2]);return d in lK?Math.abs(T-z9(Math.max(b(g[0]),b(g[1]))))+ +(d!=="e"):T-(d==="%")*2}e.scale.log=function(){return N9(e.scale.linear().domain([0,1]),10,!0,[1,10])};function N9(d,g,T,C){function L(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function q(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return d(L(P))}return z.invert=function(P){return q(d.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,d.domain((C=P.map(Number)).map(L)),z):C},z.base=function(P){return arguments.length?(g=+P,d.domain(C.map(L)),z):g},z.nice=function(){var P=r2(C.map(L),T?Math:oK);return d.domain(P),C=P.map(q),z},z.ticks=function(){var P=uh(C),H=[],Z=P[0],$=P[1],j=Math.floor(L(Z)),Q=Math.ceil(L($)),he=g%1?2:g;if(isFinite(Q-j)){if(T){for(;j<Q;j++)for(var _e=1;_e<he;_e++)H.push(q(j)*_e);H.push(q(j))}else for(H.push(q(j));j++<Q;)for(var _e=he-1;_e>0;_e--)H.push(q(j)*_e);for(j=0;H[j]<Z;j++);for(Q=H.length;H[Q-1]>$;Q--);H=H.slice(j,Q)}return H},z.copy=function(){return N9(d.copy(),g,T,C)},P9(z,d)}var oK={floor:function(d){return-Math.ceil(-d)},ceil:function(d){return-Math.floor(-d)}};e.scale.pow=function(){return I9(e.scale.linear(),1,[0,1])};function I9(d,g,T){var C=ch(g),L=ch(1/g);function q(z){return d(C(z))}return q.invert=function(z){return L(d.invert(z))},q.domain=function(z){return arguments.length?(d.domain((T=z.map(Number)).map(C)),q):T},q.ticks=function(z){return a2(T,z)},q.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},q.nice=function(z){return q.domain(R9(T,z))},q.exponent=function(z){return arguments.length?(C=ch(g=z),L=ch(1/g),d.domain(T.map(C)),q):g},q.copy=function(){return I9(d.copy(),g,T)},P9(q,d)}function ch(d){return function(g){return g<0?-Math.pow(-g,d):Math.pow(g,d)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return F9([],{t:"range",a:[[]]})};function F9(d,g){var T,C,L;function q(P){return C[((T.get(P)||(g.t==="range"?T.set(P,d.push(P)):NaN))-1)%C.length]}function z(P,H){return e.range(d.length).map(function(Z){return P+H*Z})}return q.domain=function(P){if(!arguments.length)return d;d=[],T=new x;for(var H=-1,Z=P.length,$;++H<Z;)T.has($=P[H])||T.set($,d.push($));return q[g.t].apply(q,g.a)},q.range=function(P){return arguments.length?(C=P,L=0,g={t:"range",a:arguments},q):C},q.rangePoints=function(P,H){arguments.length<2&&(H=0);var Z=P[0],$=P[1],j=d.length<2?(Z=(Z+$)/2,0):($-Z)/(d.length-1+H);return C=z(Z+j*H/2,j),L=0,g={t:"rangePoints",a:arguments},q},q.rangeRoundPoints=function(P,H){arguments.length<2&&(H=0);var Z=P[0],$=P[1],j=d.length<2?(Z=$=Math.round((Z+$)/2),0):($-Z)/(d.length-1+H)|0;return C=z(Z+Math.round(j*H/2+($-Z-(d.length-1+H)*j)/2),j),L=0,g={t:"rangeRoundPoints",a:arguments},q},q.rangeBands=function(P,H,Z){arguments.length<2&&(H=0),arguments.length<3&&(Z=H);var $=P[1]<P[0],j=P[$-0],Q=P[1-$],he=(Q-j)/(d.length-H+2*Z);return C=z(j+he*Z,he),$&&C.reverse(),L=he*(1-H),g={t:"rangeBands",a:arguments},q},q.rangeRoundBands=function(P,H,Z){arguments.length<2&&(H=0),arguments.length<3&&(Z=H);var $=P[1]<P[0],j=P[$-0],Q=P[1-$],he=Math.floor((Q-j)/(d.length-H+2*Z));return C=z(j+Math.round((Q-j-(d.length-H)*he)/2),he),$&&C.reverse(),L=Math.round(he*(1-H)),g={t:"rangeRoundBands",a:arguments},q},q.rangeBand=function(){return L},q.rangeExtent=function(){return uh(g.a[0])},q.copy=function(){return F9(d,g)},q.domain(d)}e.scale.category10=function(){return e.scale.ordinal().range(sK)},e.scale.category20=function(){return e.scale.ordinal().range(uK)},e.scale.category20b=function(){return e.scale.ordinal().range(fK)},e.scale.category20c=function(){return e.scale.ordinal().range(cK)};var sK=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xa),uK=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xa),fK=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xa),cK=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xa);e.scale.quantile=function(){return H9([],[])};function H9(d,g){var T;function C(){var q=0,z=g.length;for(T=[];++q<z;)T[q-1]=e.quantile(d,q/z);return L}function L(q){if(!isNaN(q=+q))return g[e.bisect(T,q)]}return L.domain=function(q){return arguments.length?(d=q.map(v).filter(h).sort(c),C()):d},L.range=function(q){return arguments.length?(g=q,C()):g},L.quantiles=function(){return T},L.invertExtent=function(q){return q=g.indexOf(q),q<0?[NaN,NaN]:[q>0?T[q-1]:d[0],q<T.length?T[q]:d[d.length-1]]},L.copy=function(){return H9(d,g)},C()}e.scale.quantize=function(){return O9(0,1,[0,1])};function O9(d,g,T){var C,L;function q(P){return T[Math.max(0,Math.min(L,Math.floor(C*(P-d))))]}function z(){return C=T.length/(g-d),L=T.length-1,q}return q.domain=function(P){return arguments.length?(d=+P[0],g=+P[P.length-1],z()):[d,g]},q.range=function(P){return arguments.length?(T=P,z()):T},q.invertExtent=function(P){return P=T.indexOf(P),P=P<0?NaN:P/C+d,[P,P+1/C]},q.copy=function(){return O9(d,g,T)},z()}e.scale.threshold=function(){return B9([.5],[0,1])};function B9(d,g){function T(C){if(C<=C)return g[e.bisect(d,C)]}return T.domain=function(C){return arguments.length?(d=C,T):d},T.range=function(C){return arguments.length?(g=C,T):g},T.invertExtent=function(C){return C=g.indexOf(C),[d[C-1],d[C]]},T.copy=function(){return B9(d,g)},T}e.scale.identity=function(){return Y9([0,1])};function Y9(d){function g(T){return+T}return g.invert=g,g.domain=g.range=function(T){return arguments.length?(d=T.map(g),g):d},g.ticks=function(T){return a2(d,T)},g.tickFormat=function(T,C){return d3_scale_linearTickFormat(d,T,C)},g.copy=function(){return Y9(d)},g}e.svg={};function vK(){return 0}e.svg.arc=function(){var d=dK,g=hK,T=vK,C=vh,L=G9,q=U9,z=pK;function P(){var Z=Math.max(0,+d.apply(this,arguments)),$=Math.max(0,+g.apply(this,arguments)),j=L.apply(this,arguments)-ae,Q=q.apply(this,arguments)-ae,he=Math.abs(Q-j),_e=j>Q?0:1;if($<Z&&(ee=$,$=Z,Z=ee),he>=cr)return H($,_e)+(Z?H(Z,1-_e):"")+"Z";var ee,ie,ue,xe,we=0,ve=0,Ge,lr,ur,sr,gr,br,Ir,wr,Dr=[];if((xe=(+z.apply(this,arguments)||0)/2)&&(ue=C===vh?Math.sqrt(Z*Z+$*$):+C.apply(this,arguments),_e||(ve*=-1),$&&(ve=_t(ue/$*Math.sin(xe))),Z&&(we=_t(ue/Z*Math.sin(xe)))),$){Ge=$*Math.cos(j+ve),lr=$*Math.sin(j+ve),ur=$*Math.cos(Q-ve),sr=$*Math.sin(Q-ve);var nt=Math.abs(Q-j-2*ve)<=pr?0:1;if(ve&&dh(Ge,lr,ur,sr)===_e^nt){var ta=(j+Q)/2;Ge=$*Math.cos(ta),lr=$*Math.sin(ta),ur=sr=null}}else Ge=lr=0;if(Z){gr=Z*Math.cos(Q-we),br=Z*Math.sin(Q-we),Ir=Z*Math.cos(j+we),wr=Z*Math.sin(j+we);var ut=Math.abs(j-Q+2*we)<=pr?0:1;if(we&&dh(gr,br,Ir,wr)===1-_e^ut){var ar=(j+Q)/2;gr=Z*Math.cos(ar),br=Z*Math.sin(ar),Ir=wr=null}}else gr=br=0;if(he>Ee&&(ee=Math.min(Math.abs($-Z)/2,+T.apply(this,arguments)))>.001){ie=Z<$^_e?0:1;var Fr=ee,Hr=ee;if(he<pr){var it=Ir==null?[gr,br]:ur==null?[Ge,lr]:Bg([Ge,lr],[Ir,wr],[ur,sr],[gr,br]),Ut=Ge-it[0],da=lr-it[1],Ba=ur-it[0],cn=sr-it[1],An=1/Math.sin(Math.acos((Ut*Ba+da*cn)/(Math.sqrt(Ut*Ut+da*da)*Math.sqrt(Ba*Ba+cn*cn)))/2),vn=Math.sqrt(it[0]*it[0]+it[1]*it[1]);Hr=Math.min(ee,(Z-vn)/(An-1)),Fr=Math.min(ee,($-vn)/(An+1))}if(ur!=null){var Sn=hh(Ir==null?[gr,br]:[Ir,wr],[Ge,lr],$,Fr,_e),an=hh([ur,sr],[gr,br],$,Fr,_e);ee===Fr?Dr.push("M",Sn[0],"A",Fr,",",Fr," 0 0,",ie," ",Sn[1],"A",$,",",$," 0 ",1-_e^dh(Sn[1][0],Sn[1][1],an[1][0],an[1][1]),",",_e," ",an[1],"A",Fr,",",Fr," 0 0,",ie," ",an[0]):Dr.push("M",Sn[0],"A",Fr,",",Fr," 0 1,",ie," ",an[0])}else Dr.push("M",Ge,",",lr);if(Ir!=null){var qn=hh([Ge,lr],[Ir,wr],Z,-Hr,_e),qs=hh([gr,br],ur==null?[Ge,lr]:[ur,sr],Z,-Hr,_e);ee===Hr?Dr.push("L",qs[0],"A",Hr,",",Hr," 0 0,",ie," ",qs[1],"A",Z,",",Z," 0 ",_e^dh(qs[1][0],qs[1][1],qn[1][0],qn[1][1]),",",1-_e," ",qn[1],"A",Hr,",",Hr," 0 0,",ie," ",qn[0]):Dr.push("L",qs[0],"A",Hr,",",Hr," 0 0,",ie," ",qn[0])}else Dr.push("L",gr,",",br)}else Dr.push("M",Ge,",",lr),ur!=null&&Dr.push("A",$,",",$," 0 ",nt,",",_e," ",ur,",",sr),Dr.push("L",gr,",",br),Ir!=null&&Dr.push("A",Z,",",Z," 0 ",ut,",",1-_e," ",Ir,",",wr);return Dr.push("Z"),Dr.join("")}function H(Z,$){return"M0,"+Z+"A"+Z+","+Z+" 0 1,"+$+" 0,"+-Z+"A"+Z+","+Z+" 0 1,"+$+" 0,"+Z}return P.innerRadius=function(Z){return arguments.length?(d=Tr(Z),P):d},P.outerRadius=function(Z){return arguments.length?(g=Tr(Z),P):g},P.cornerRadius=function(Z){return arguments.length?(T=Tr(Z),P):T},P.padRadius=function(Z){return arguments.length?(C=Z==vh?vh:Tr(Z),P):C},P.startAngle=function(Z){return arguments.length?(L=Tr(Z),P):L},P.endAngle=function(Z){return arguments.length?(q=Tr(Z),P):q},P.padAngle=function(Z){return arguments.length?(z=Tr(Z),P):z},P.centroid=function(){var Z=(+d.apply(this,arguments)+ +g.apply(this,arguments))/2,$=(+L.apply(this,arguments)+ +q.apply(this,arguments))/2-ae;return[Math.cos($)*Z,Math.sin($)*Z]},P};var vh="auto";function dK(d){return d.innerRadius}function hK(d){return d.outerRadius}function G9(d){return d.startAngle}function U9(d){return d.endAngle}function pK(d){return d&&d.padAngle}function dh(d,g,T,C){return(d-T)*g-(g-C)*d>0?0:1}function hh(d,g,T,C,L){var q=d[0]-g[0],z=d[1]-g[1],P=(L?C:-C)/Math.sqrt(q*q+z*z),H=P*z,Z=-P*q,$=d[0]+H,j=d[1]+Z,Q=g[0]+H,he=g[1]+Z,_e=($+Q)/2,ee=(j+he)/2,ie=Q-$,ue=he-j,xe=ie*ie+ue*ue,we=T-C,ve=$*he-Q*j,Ge=(ue<0?-1:1)*Math.sqrt(Math.max(0,we*we*xe-ve*ve)),lr=(ve*ue-ie*Ge)/xe,ur=(-ve*ie-ue*Ge)/xe,sr=(ve*ue+ie*Ge)/xe,gr=(-ve*ie+ue*Ge)/xe,br=lr-_e,Ir=ur-ee,wr=sr-_e,Dr=gr-ee;return br*br+Ir*Ir>wr*wr+Dr*Dr&&(lr=sr,ur=gr),[[lr-H,ur-Z],[lr*T/we,ur*T/we]]}function V9(){return!0}function X9(d){var g=tf,T=f0,C=V9,L=Ni,q=L.key,z=.7;function P(H){var Z=[],$=[],j=-1,Q=H.length,he,_e=Tr(g),ee=Tr(T);function ie(){Z.push("M",L(d($),z))}for(;++j<Q;)C.call(this,he=H[j],j)?$.push([+_e.call(this,he,j),+ee.call(this,he,j)]):$.length&&(ie(),$=[]);return $.length&&ie(),Z.length?Z.join(""):null}return P.x=function(H){return arguments.length?(g=H,P):g},P.y=function(H){return arguments.length?(T=H,P):T},P.defined=function(H){return arguments.length?(C=H,P):C},P.interpolate=function(H){return arguments.length?(typeof H=="function"?q=L=H:q=(L=n2.get(H)||Ni).key,P):q},P.tension=function(H){return arguments.length?(z=H,P):z},P}e.svg.line=function(){return X9(I)};var n2=e.map({linear:Ni,"linear-closed":W9,step:mK,"step-before":i2,"step-after":l2,basis:Z9,"basis-open":xK,"basis-closed":_K,bundle:wK,cardinal:bK,"cardinal-open":yK,"cardinal-closed":gK,monotone:AK});n2.forEach(function(d,g){g.key=d,g.closed=/-closed$/.test(d)});function Ni(d){return d.length>1?d.join("L"):d+"Z"}function W9(d){return d.join("L")+"Z"}function mK(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g<T;)L.push("H",(C[0]+(C=d[g])[0])/2,"V",C[1]);return T>1&&L.push("H",C[0]),L.join("")}function i2(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g<T;)L.push("V",(C=d[g])[1],"H",C[0]);return L.join("")}function l2(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g<T;)L.push("H",(C=d[g])[0],"V",C[1]);return L.join("")}function yK(d,g){return d.length<4?Ni(d):d[1]+ph(d.slice(1,-1),o2(d,g))}function gK(d,g){return d.length<3?W9(d):d[0]+ph((d.push(d[0]),d),o2([d[d.length-2]].concat(d,[d[1]]),g))}function bK(d,g){return d.length<3?Ni(d):d[0]+ph(d,o2(d,g))}function ph(d,g){if(g.length<1||d.length!=g.length&&d.length!=g.length+2)return Ni(d);var T=d.length!=g.length,C="",L=d[0],q=d[1],z=g[0],P=z,H=1;if(T&&(C+="Q"+(q[0]-z[0]*2/3)+","+(q[1]-z[1]*2/3)+","+q[0]+","+q[1],L=d[1],H=2),g.length>1){P=g[1],q=d[H],H++,C+="C"+(L[0]+z[0])+","+(L[1]+z[1])+","+(q[0]-P[0])+","+(q[1]-P[1])+","+q[0]+","+q[1];for(var Z=2;Z<g.length;Z++,H++)q=d[H],P=g[Z],C+="S"+(q[0]-P[0])+","+(q[1]-P[1])+","+q[0]+","+q[1]}if(T){var $=d[H];C+="Q"+(q[0]+P[0]*2/3)+","+(q[1]+P[1]*2/3)+","+$[0]+","+$[1]}return C}function o2(d,g){for(var T=[],C=(1-g)/2,L,q=d[0],z=d[1],P=1,H=d.length;++P<H;)L=q,q=z,z=d[P],T.push([C*(z[0]-L[0]),C*(z[1]-L[1])]);return T}function Z9(d){if(d.length<3)return Ni(d);var g=1,T=d.length,C=d[0],L=C[0],q=C[1],z=[L,L,L,(C=d[1])[0]],P=[q,q,q,C[1]],H=[L,",",q,"L",ui(_o,z),",",ui(_o,P)];for(d.push(d[T-1]);++g<=T;)C=d[g],z.shift(),z.push(C[0]),P.shift(),P.push(C[1]),s2(H,z,P);return d.pop(),H.push("L",C),H.join("")}function xK(d){if(d.length<4)return Ni(d);for(var g=[],T=-1,C=d.length,L,q=[0],z=[0];++T<3;)L=d[T],q.push(L[0]),z.push(L[1]);for(g.push(ui(_o,q)+","+ui(_o,z)),--T;++T<C;)L=d[T],q.shift(),q.push(L[0]),z.shift(),z.push(L[1]),s2(g,q,z);return g.join("")}function _K(d){for(var g,T=-1,C=d.length,L=C+4,q,z=[],P=[];++T<4;)q=d[T%C],z.push(q[0]),P.push(q[1]);for(g=[ui(_o,z),",",ui(_o,P)],--T;++T<L;)q=d[T%C],z.shift(),z.push(q[0]),P.shift(),P.push(q[1]),s2(g,z,P);return g.join("")}function wK(d,g){var T=d.length-1;if(T)for(var C=d[0][0],L=d[0][1],q=d[T][0]-C,z=d[T][1]-L,P=-1,H,Z;++P<=T;)H=d[P],Z=P/T,H[0]=g*H[0]+(1-g)*(C+Z*q),H[1]=g*H[1]+(1-g)*(L+Z*z);return Z9(d)}function ui(d,g){return d[0]*g[0]+d[1]*g[1]+d[2]*g[2]+d[3]*g[3]}var $9=[0,2/3,1/3,0],J9=[0,1/3,2/3,0],_o=[0,1/6,2/3,1/6];function s2(d,g,T){d.push("C",ui($9,g),",",ui($9,T),",",ui(J9,g),",",ui(J9,T),",",ui(_o,g),",",ui(_o,T))}function u2(d,g){return(g[1]-d[1])/(g[0]-d[0])}function TK(d){for(var g=0,T=d.length-1,C=[],L=d[0],q=d[1],z=C[0]=u2(L,q);++g<T;)C[g]=(z+(z=u2(L=q,q=d[g+1])))/2;return C[g]=z,C}function MK(d){for(var g=[],T,C,L,q,z=TK(d),P=-1,H=d.length-1;++P<H;)T=u2(d[P],d[P+1]),b(T)<Ee?z[P]=z[P+1]=0:(C=z[P]/T,L=z[P+1]/T,q=C*C+L*L,q>9&&(q=T*3/Math.sqrt(q),z[P]=q*C,z[P+1]=q*L));for(P=-1;++P<=H;)q=(d[Math.min(H,P+1)][0]-d[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([q||0,z[P]*q||0]);return g}function AK(d){return d.length<3?Ni(d):d[0]+ph(d,MK(d))}e.svg.line.radial=function(){var d=X9(K9);return d.radius=d.x,delete d.x,d.angle=d.y,delete d.y,d};function K9(d){for(var g,T=-1,C=d.length,L,q;++T<C;)g=d[T],L=g[0],q=g[1]-ae,g[0]=L*Math.cos(q),g[1]=L*Math.sin(q);return d}function j9(d){var g=tf,T=tf,C=0,L=f0,q=V9,z=Ni,P=z.key,H=z,Z="L",$=.7;function j(Q){var he=[],_e=[],ee=[],ie=-1,ue=Q.length,xe,we=Tr(g),ve=Tr(C),Ge=g===T?function(){return ur}:Tr(T),lr=C===L?function(){return sr}:Tr(L),ur,sr;function gr(){he.push("M",z(d(ee),$),Z,H(d(_e.reverse()),$),"Z")}for(;++ie<ue;)q.call(this,xe=Q[ie],ie)?(_e.push([ur=+we.call(this,xe,ie),sr=+ve.call(this,xe,ie)]),ee.push([+Ge.call(this,xe,ie),+lr.call(this,xe,ie)])):_e.length&&(gr(),_e=[],ee=[]);return _e.length&&gr(),he.length?he.join(""):null}return j.x=function(Q){return arguments.length?(g=T=Q,j):T},j.x0=function(Q){return arguments.length?(g=Q,j):g},j.x1=function(Q){return arguments.length?(T=Q,j):T},j.y=function(Q){return arguments.length?(C=L=Q,j):L},j.y0=function(Q){return arguments.length?(C=Q,j):C},j.y1=function(Q){return arguments.length?(L=Q,j):L},j.defined=function(Q){return arguments.length?(q=Q,j):q},j.interpolate=function(Q){return arguments.length?(typeof Q=="function"?P=z=Q:P=(z=n2.get(Q)||Ni).key,H=z.reverse||z,Z=z.closed?"M":"L",j):P},j.tension=function(Q){return arguments.length?($=Q,j):$},j}i2.reverse=l2,l2.reverse=i2,e.svg.area=function(){return j9(I)},e.svg.area.radial=function(){var d=j9(K9);return d.radius=d.x,delete d.x,d.innerRadius=d.x0,delete d.x0,d.outerRadius=d.x1,delete d.x1,d.angle=d.y,delete d.y,d.startAngle=d.y0,delete d.y0,d.endAngle=d.y1,delete d.y1,d};function Q9(d){return d.source}function e8(d){return d.target}e.svg.chord=function(){var d=Q9,g=e8,T=kK,C=G9,L=U9;function q($,j){var Q=z(this,d,$,j),he=z(this,g,$,j);return"M"+Q.p0+H(Q.r,Q.p1,Q.a1-Q.a0)+(P(Q,he)?Z(Q.r,Q.p1,Q.r,Q.p0):Z(Q.r,Q.p1,he.r,he.p0)+H(he.r,he.p1,he.a1-he.a0)+Z(he.r,he.p1,Q.r,Q.p0))+"Z"}function z($,j,Q,he){var _e=j.call($,Q,he),ee=T.call($,_e,he),ie=C.call($,_e,he)-ae,ue=L.call($,_e,he)-ae;return{r:ee,a0:ie,a1:ue,p0:[ee*Math.cos(ie),ee*Math.sin(ie)],p1:[ee*Math.cos(ue),ee*Math.sin(ue)]}}function P($,j){return $.a0==j.a0&&$.a1==j.a1}function H($,j,Q){return"A"+$+","+$+" 0 "+ +(Q>pr)+",1 "+j}function Z($,j,Q,he){return"Q 0,0 "+he}return q.radius=function($){return arguments.length?(T=Tr($),q):T},q.source=function($){return arguments.length?(d=Tr($),q):d},q.target=function($){return arguments.length?(g=Tr($),q):g},q.startAngle=function($){return arguments.length?(C=Tr($),q):C},q.endAngle=function($){return arguments.length?(L=Tr($),q):L},q};function kK(d){return d.radius}e.svg.diagonal=function(){var d=Q9,g=e8,T=r8;function C(L,q){var z=d.call(this,L,q),P=g.call(this,L,q),H=(z.y+P.y)/2,Z=[z,{x:z.x,y:H},{x:P.x,y:H},P];return Z=Z.map(T),"M"+Z[0]+"C"+Z[1]+" "+Z[2]+" "+Z[3]}return C.source=function(L){return arguments.length?(d=Tr(L),C):d},C.target=function(L){return arguments.length?(g=Tr(L),C):g},C.projection=function(L){return arguments.length?(T=L,C):T},C};function r8(d){return[d.x,d.y]}e.svg.diagonal.radial=function(){var d=e.svg.diagonal(),g=r8,T=d.projection;return d.projection=function(C){return arguments.length?T(CK(g=C)):g},d};function CK(d){return function(){var g=d.apply(this,arguments),T=g[0],C=g[1]-ae;return[T*Math.cos(C),T*Math.sin(C)]}}e.svg.symbol=function(){var d=SK,g=LK;function T(C,L){return(a8.get(d.call(this,C,L))||t8)(g.call(this,C,L))}return T.type=function(C){return arguments.length?(d=Tr(C),T):d},T.size=function(C){return arguments.length?(g=Tr(C),T):g},T};function LK(){return 64}function SK(){return"circle"}function t8(d){var g=Math.sqrt(d/pr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var a8=e.map({circle:t8,cross:function(d){var g=Math.sqrt(d/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(d){var g=Math.sqrt(d/(2*n8)),T=g*n8;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(d){var g=Math.sqrt(d)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(d){var g=Math.sqrt(d/mh),T=g*mh/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(d){var g=Math.sqrt(d/mh),T=g*mh/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=a8.keys();var mh=Math.sqrt(3),n8=Math.tan(30*me);fe.transition=function(d){for(var g=Ss||++l8,T=c2(d),C=[],L,q,z=gh||{time:Date.now(),ease:oJ,delay:0,duration:250},P=-1,H=this.length;++P<H;){C.push(L=[]);for(var Z=this[P],$=-1,j=Z.length;++$<j;)(q=Z[$])&&bh(q,$,T,g,z),L.push(q)}return g0(C,T,g)},fe.interrupt=function(d){return this.each(d==null?yh:i8(c2(d)))};var yh=i8(c2());function i8(d){return function(){var g,T,C;(g=this[d])&&(C=g[T=g.active])&&(C.timer.c=null,C.timer.t=NaN,--g.count?delete g[T]:delete this[d],g.active+=.5,C.event&&C.event.interrupt.call(this,this.__data__,C.index))}}function g0(d,g,T){return K(d,va),d.namespace=g,d.id=T,d}var va=[],l8=0,Ss,gh;va.call=fe.call,va.empty=fe.empty,va.node=fe.node,va.size=fe.size,e.transition=function(d,g){return d&&d.transition?Ss?d.transition(g):d:e.selection().transition(d)},e.transition.prototype=va,va.select=function(d){var g=this.id,T=this.namespace,C=[],L,q,z;d=Te(d);for(var P=-1,H=this.length;++P<H;){C.push(L=[]);for(var Z=this[P],$=-1,j=Z.length;++$<j;)(z=Z[$])&&(q=d.call(z,z.__data__,$,P))?("__data__"in z&&(q.__data__=z.__data__),bh(q,$,T,g,z[T][g]),L.push(q)):L.push(null)}return g0(C,T,g)},va.selectAll=function(d){var g=this.id,T=this.namespace,C=[],L,q,z,P,H;d=Fe(d);for(var Z=-1,$=this.length;++Z<$;)for(var j=this[Z],Q=-1,he=j.length;++Q<he;)if(z=j[Q]){H=z[T][g],q=d.call(z,z.__data__,Q,Z),C.push(L=[]);for(var _e=-1,ee=q.length;++_e<ee;)(P=q[_e])&&bh(P,_e,T,g,H),L.push(P)}return g0(C,T,g)},va.filter=function(d){var g=[],T,C,L;typeof d!="function"&&(d=te(d));for(var q=0,z=this.length;q<z;q++){g.push(T=[]);for(var C=this[q],P=0,H=C.length;P<H;P++)(L=C[P])&&d.call(L,L.__data__,P,q)&&T.push(L)}return g0(g,this.namespace,this.id)},va.tween=function(d,g){var T=this.id,C=this.namespace;return arguments.length<2?this.node()[C][T].tween.get(d):Ve(this,g==null?function(L){L[C][T].tween.remove(d)}:function(L){L[C][T].tween.set(d,g)})};function f2(d,g,T,C){var L=d.id,q=d.namespace;return Ve(d,typeof T=="function"?function(z,P,H){z[q][L].tween.set(g,C(T.call(z,z.__data__,P,H)))}:(T=C(T),function(z){z[q][L].tween.set(g,T)}))}va.attr=function(d,g){if(arguments.length<2){for(g in d)this.attr(g,d[g]);return this}var T=d=="transform"?y9:Ls,C=e.ns.qualify(d);function L(){this.removeAttribute(C)}function q(){this.removeAttributeNS(C.space,C.local)}function z(H){return H==null?L:(H+="",function(){var Z=this.getAttribute(C),$;return Z!==H&&($=T(Z,H),function(j){this.setAttribute(C,$(j))})})}function P(H){return H==null?q:(H+="",function(){var Z=this.getAttributeNS(C.space,C.local),$;return Z!==H&&($=T(Z,H),function(j){this.setAttributeNS(C.space,C.local,$(j))})})}return f2(this,"attr."+d,g,C.local?P:z)},va.attrTween=function(d,g){var T=e.ns.qualify(d);function C(q,z){var P=g.call(this,q,z,this.getAttribute(T));return P&&function(H){this.setAttribute(T,P(H))}}function L(q,z){var P=g.call(this,q,z,this.getAttributeNS(T.space,T.local));return P&&function(H){this.setAttributeNS(T.space,T.local,P(H))}}return this.tween("attr."+d,T.local?L:C)},va.style=function(d,g,T){var C=arguments.length;if(C<3){if(typeof d!="string"){C<2&&(g="");for(T in d)this.style(T,d[T],g);return this}T=""}function L(){this.style.removeProperty(d)}function q(z){return z==null?L:(z+="",function(){var P=i(this).getComputedStyle(this,null).getPropertyValue(d),H;return P!==z&&(H=Ls(P,z),function(Z){this.style.setProperty(d,H(Z),T)})})}return f2(this,"style."+d,g,q)},va.styleTween=function(d,g,T){arguments.length<3&&(T="");function C(L,q){var z=g.call(this,L,q,i(this).getComputedStyle(this,null).getPropertyValue(d));return z&&function(P){this.style.setProperty(d,z(P),T)}}return this.tween("style."+d,C)},va.text=function(d){return f2(this,"text",d,qK)};function qK(d){return d==null&&(d=""),function(){this.textContent=d}}va.remove=function(){var d=this.namespace;return this.each("end.transition",function(){var g;this[d].count<2&&(g=this.parentNode)&&g.removeChild(this)})},va.ease=function(d){var g=this.id,T=this.namespace;return arguments.length<1?this.node()[T][g].ease:(typeof d!="function"&&(d=e.ease.apply(e,arguments)),Ve(this,function(C){C[T][g].ease=d}))},va.delay=function(d){var g=this.id,T=this.namespace;return arguments.length<1?this.node()[T][g].delay:Ve(this,typeof d=="function"?function(C,L,q){C[T][g].delay=+d.call(C,C.__data__,L,q)}:(d=+d,function(C){C[T][g].delay=d}))},va.duration=function(d){var g=this.id,T=this.namespace;return arguments.length<1?this.node()[T][g].duration:Ve(this,typeof d=="function"?function(C,L,q){C[T][g].duration=Math.max(1,d.call(C,C.__data__,L,q))}:(d=Math.max(1,d),function(C){C[T][g].duration=d}))},va.each=function(d,g){var T=this.id,C=this.namespace;if(arguments.length<2){var L=gh,q=Ss;try{Ss=T,Ve(this,function(z,P,H){gh=z[C][T],d.call(z,z.__data__,P,H)})}finally{gh=L,Ss=q}}else Ve(this,function(z){var P=z[C][T];(P.event||(P.event=e.dispatch("start","end","interrupt"))).on(d,g)});return this},va.transition=function(){for(var d=this.id,g=++l8,T=this.namespace,C=[],L,q,z,P,H=0,Z=this.length;H<Z;H++){C.push(L=[]);for(var q=this[H],$=0,j=q.length;$<j;$++)(z=q[$])&&(P=z[T][d],bh(z,$,T,g,{time:P.time,ease:P.ease,delay:P.delay+P.duration,duration:P.duration})),L.push(z)}return g0(C,T,g)};function c2(d){return d==null?"__transition__":"__transition_"+d+"__"}function bh(d,g,T,C,L){var q=d[T]||(d[T]={active:0,count:0}),z=q[C],P,H,Z,$,j;function Q(ee){var ie=z.delay;if(H.t=ie+P,ie<=ee)return he(ee-ie);H.c=he}function he(ee){var ie=q.active,ue=q[ie];ue&&(ue.timer.c=null,ue.timer.t=NaN,--q.count,delete q[ie],ue.event&&ue.event.interrupt.call(d,d.__data__,ue.index));for(var xe in q)if(+xe<C){var we=q[xe];we.timer.c=null,we.timer.t=NaN,--q.count,delete q[xe]}H.c=_e,th(function(){return H.c&&_e(ee||1)&&(H.c=null,H.t=NaN),1},0,P),q.active=C,z.event&&z.event.start.call(d,d.__data__,g),j=[],z.tween.forEach(function(ve,Ge){(Ge=Ge.call(d,d.__data__,g))&&j.push(Ge)}),$=z.ease,Z=z.duration}function _e(ee){for(var ie=ee/Z,ue=$(ie),xe=j.length;xe>0;)j[--xe].call(d,ue);if(ie>=1)return z.event&&z.event.end.call(d,d.__data__,g),--q.count?delete q[C]:delete d[T],1}z||(P=L.time,H=th(Q,0,P),z=q[C]={tween:new x,time:P,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++q.count)}e.svg.axis=function(){var d=e.scale.linear(),g=o8,T=6,C=6,L=3,q=[10],z=null,P;function H(Z){Z.each(function(){var $=e.select(this),j=this.__chart__||d,Q=this.__chart__=d.copy(),he=z==null?Q.ticks?Q.ticks.apply(Q,q):Q.domain():z,_e=P==null?Q.tickFormat?Q.tickFormat.apply(Q,q):I:P,ee=$.selectAll(".tick").data(he,Q),ie=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Ee),ue=e.transition(ee.exit()).style("opacity",Ee).remove(),xe=e.transition(ee.order()).style("opacity",1),we=Math.max(T,0)+L,ve,Ge=fh(Q),lr=$.selectAll(".domain").data([0]),ur=(lr.enter().append("path").attr("class","domain"),e.transition(lr));ie.append("line"),ie.append("text");var sr=ie.select("line"),gr=xe.select("line"),br=ee.select("text").text(_e),Ir=ie.select("text"),wr=xe.select("text"),Dr=g==="top"||g==="left"?-1:1,nt,ta,ut,ar;if(g==="bottom"||g==="top"?(ve=EK,nt="x",ut="y",ta="x2",ar="y2",br.attr("dy",Dr<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ge[0]+","+Dr*C+"V0H"+Ge[1]+"V"+Dr*C)):(ve=PK,nt="y",ut="x",ta="y2",ar="x2",br.attr("dy",".32em").style("text-anchor",Dr<0?"end":"start"),ur.attr("d","M"+Dr*C+","+Ge[0]+"H0V"+Ge[1]+"H"+Dr*C)),sr.attr(ar,Dr*T),Ir.attr(ut,Dr*we),gr.attr(ta,0).attr(ar,Dr*T),wr.attr(nt,0).attr(ut,Dr*we),Q.rangeBand){var Fr=Q,Hr=Fr.rangeBand()/2;j=Q=function(it){return Fr(it)+Hr}}else j.rangeBand?j=Q:ue.call(ve,Q,j);ie.call(ve,j,Q),xe.call(ve,Q,Q)})}return H.scale=function(Z){return arguments.length?(d=Z,H):d},H.orient=function(Z){return arguments.length?(g=Z in DK?Z+"":o8,H):g},H.ticks=function(){return arguments.length?(q=t(arguments),H):q},H.tickValues=function(Z){return arguments.length?(z=Z,H):z},H.tickFormat=function(Z){return arguments.length?(P=Z,H):P},H.tickSize=function(Z){var $=arguments.length;return $?(T=+Z,C=+arguments[$-1],H):T},H.innerTickSize=function(Z){return arguments.length?(T=+Z,H):T},H.outerTickSize=function(Z){return arguments.length?(C=+Z,H):C},H.tickPadding=function(Z){return arguments.length?(L=+Z,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var o8="bottom",DK={top:1,right:1,bottom:1,left:1};function EK(d,g,T){d.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:T(C))+",0)"})}function PK(d,g,T){d.attr("transform",function(C){var L=g(C);return"translate(0,"+(isFinite(L)?L:T(C))+")"})}e.svg.brush=function(){var d=ne($,"brushstart","brush","brushend"),g=null,T=null,C=[0,0],L=[0,0],q,z,P=!0,H=!0,Z=v2[0];function $(ee){ee.each(function(){var ie=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",_e).on("touchstart.brush",_e),ue=ie.selectAll(".background").data([0]);ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ie.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var xe=ie.selectAll(".resize").data(Z,I);xe.exit().remove(),xe.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return RK[lr]}).append("rect").attr("x",function(lr){return/[ew]$/.test(lr)?-3:null}).attr("y",function(lr){return/^[ns]/.test(lr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),xe.style("display",$.empty()?"none":null);var we=e.transition(ie),ve=e.transition(ue),Ge;g&&(Ge=fh(g),ve.attr("x",Ge[0]).attr("width",Ge[1]-Ge[0]),Q(we)),T&&(Ge=fh(T),ve.attr("y",Ge[0]).attr("height",Ge[1]-Ge[0]),he(we)),j(we)})}$.event=function(ee){ee.each(function(){var ie=d.of(this,arguments),ue={x:C,y:L,i:q,j:z},xe=this.__chart__||ue;this.__chart__=ue,Ss?e.select(this).transition().each("start.brush",function(){q=xe.i,z=xe.j,C=xe.x,L=xe.y,ie({type:"brushstart"})}).tween("brush:brush",function(){var we=sh(C,ue.x),ve=sh(L,ue.y);return q=z=null,function(Ge){C=ue.x=we(Ge),L=ue.y=ve(Ge),ie({type:"brush",mode:"resize"})}}).each("end.brush",function(){q=ue.i,z=ue.j,ie({type:"brush",mode:"resize"}),ie({type:"brushend"})}):(ie({type:"brushstart"}),ie({type:"brush",mode:"resize"}),ie({type:"brushend"}))})};function j(ee){ee.selectAll(".resize").attr("transform",function(ie){return"translate("+C[+/e$/.test(ie)]+","+L[+/^s/.test(ie)]+")"})}function Q(ee){ee.select(".extent").attr("x",C[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function he(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function _e(){var ee=this,ie=e.select(e.event.target),ue=d.of(ee,arguments),xe=e.select(ee),we=ie.datum(),ve=!/^(n|s)$/.test(we)&&g,Ge=!/^(e|w)$/.test(we)&&T,lr=ie.classed("extent"),ur=mr(ee),sr,gr=e.mouse(ee),br,Ir=e.select(i(ee)).on("keydown.brush",nt).on("keyup.brush",ta);if(e.event.changedTouches?Ir.on("touchmove.brush",ut).on("touchend.brush",Fr):Ir.on("mousemove.brush",ut).on("mouseup.brush",Fr),xe.interrupt().selectAll("*").interrupt(),lr)gr[0]=C[0]-gr[0],gr[1]=L[0]-gr[1];else if(we){var wr=+/w$/.test(we),Dr=+/^n/.test(we);br=[C[1-wr]-gr[0],L[1-Dr]-gr[1]],gr[0]=C[wr],gr[1]=L[Dr]}else e.event.altKey&&(sr=gr.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ie.style("cursor")),ue({type:"brushstart"}),ut();function nt(){e.event.keyCode==32&&(lr||(sr=null,gr[0]-=C[1],gr[1]-=L[1],lr=2),J())}function ta(){e.event.keyCode==32&&lr==2&&(gr[0]+=C[1],gr[1]+=L[1],lr=0,J())}function ut(){var Hr=e.mouse(ee),it=!1;br&&(Hr[0]+=br[0],Hr[1]+=br[1]),lr||(e.event.altKey?(sr||(sr=[(C[0]+C[1])/2,(L[0]+L[1])/2]),gr[0]=C[+(Hr[0]<sr[0])],gr[1]=L[+(Hr[1]<sr[1])]):sr=null),ve&&ar(Hr,g,0)&&(Q(xe),it=!0),Ge&&ar(Hr,T,1)&&(he(xe),it=!0),it&&(j(xe),ue({type:"brush",mode:lr?"move":"resize"}))}function ar(Hr,it,Ut){var da=fh(it),Ba=da[0],cn=da[1],An=gr[Ut],vn=Ut?L:C,Sn=vn[1]-vn[0],an,qn;if(lr&&(Ba-=An,cn-=Sn+An),an=(Ut?H:P)?Math.max(Ba,Math.min(cn,Hr[Ut])):Hr[Ut],lr?qn=(an+=An)+Sn:(sr&&(An=Math.max(Ba,Math.min(cn,2*sr[Ut]-an))),An<an?(qn=an,an=An):qn=An),vn[0]!=an||vn[1]!=qn)return Ut?z=null:q=null,vn[0]=an,vn[1]=qn,!0}function Fr(){ut(),xe.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),e.select("body").style("cursor",null),Ir.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),ur(),ue({type:"brushend"})}}return $.x=function(ee){return arguments.length?(g=ee,Z=v2[!g<<1|!T],$):g},$.y=function(ee){return arguments.length?(T=ee,Z=v2[!g<<1|!T],$):T},$.clamp=function(ee){return arguments.length?(g&&T?(P=!!ee[0],H=!!ee[1]):g?P=!!ee:T&&(H=!!ee),$):g&&T?[P,H]:g?P:T?H:null},$.extent=function(ee){var ie,ue,xe,we,ve;return arguments.length?(g&&(ie=ee[0],ue=ee[1],T&&(ie=ie[0],ue=ue[0]),q=[ie,ue],g.invert&&(ie=g(ie),ue=g(ue)),ue<ie&&(ve=ie,ie=ue,ue=ve),(ie!=C[0]||ue!=C[1])&&(C=[ie,ue])),T&&(xe=ee[0],we=ee[1],g&&(xe=xe[1],we=we[1]),z=[xe,we],T.invert&&(xe=T(xe),we=T(we)),we<xe&&(ve=xe,xe=we,we=ve),(xe!=L[0]||we!=L[1])&&(L=[xe,we])),$):(g&&(q?(ie=q[0],ue=q[1]):(ie=C[0],ue=C[1],g.invert&&(ie=g.invert(ie),ue=g.invert(ue)),ue<ie&&(ve=ie,ie=ue,ue=ve))),T&&(z?(xe=z[0],we=z[1]):(xe=L[0],we=L[1],T.invert&&(xe=T.invert(xe),we=T.invert(we)),we<xe&&(ve=xe,xe=we,we=ve))),g&&T?[[ie,xe],[ue,we]]:g?[ie,ue]:T&&[xe,we])},$.clear=function(){return $.empty()||(C=[0,0],L=[0,0],q=z=null),$},$.empty=function(){return!!g&&C[0]==C[1]||!!T&&L[0]==L[1]},e.rebind($,d,"on")};var RK={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},v2=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=ot(function(d){return d.responseText}),e.json=function(d,g){return or(d,"application/json",zK,g)};function zK(d){return JSON.parse(d.responseText)}e.html=function(d,g){return or(d,"text/html",NK,g)};function NK(d){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(d.responseText)}e.xml=ot(function(d){return d.responseXML}),typeof Th=="object"&&Th.exports?Th.exports=e:this.d3=e}).apply(self)});var h2=G((Mh,g8)=>{(function(e,r){typeof Mh=="object"&&typeof g8!="undefined"?r(Mh):(e=e||self,r(e.d3=e.d3||{}))})(Mh,function(e){"use strict";var r=new Date,t=new Date;function a(te,pe,Ve,vr){function hr(le){return te(le=arguments.length===0?new Date:new Date(+le)),le}return hr.floor=function(le){return te(le=new Date(+le)),le},hr.ceil=function(le){return te(le=new Date(le-1)),pe(le,1),te(le),le},hr.round=function(le){var ge=hr(le),Ie=hr.ceil(le);return le-ge<Ie-le?ge:Ie},hr.offset=function(le,ge){return pe(le=new Date(+le),ge==null?1:Math.floor(ge)),le},hr.range=function(le,ge,Ie){var Xe=[],He;if(le=hr.ceil(le),Ie=Ie==null?1:Math.floor(Ie),!(le<ge)||!(Ie>0))return Xe;do Xe.push(He=new Date(+le)),pe(le,Ie),te(le);while(He<le&&le<ge);return Xe},hr.filter=function(le){return a(function(ge){if(ge>=ge)for(;te(ge),!le(ge);)ge.setTime(ge-1)},function(ge,Ie){if(ge>=ge)if(Ie<0)for(;++Ie<=0;)for(;pe(ge,-1),!le(ge););else for(;--Ie>=0;)for(;pe(ge,1),!le(ge););})},Ve&&(hr.count=function(le,ge){return r.setTime(+le),t.setTime(+ge),te(r),te(t),Math.floor(Ve(r,t))},hr.every=function(le){return le=Math.floor(le),!isFinite(le)||!(le>0)?null:le>1?hr.filter(vr?function(ge){return vr(ge)%le===0}:function(ge){return hr.count(0,ge)%le===0}):hr}),hr}var n=a(function(){},function(te,pe){te.setTime(+te+pe)},function(te,pe){return pe-te});n.every=function(te){return te=Math.floor(te),!isFinite(te)||!(te>0)?null:te>1?a(function(pe){pe.setTime(Math.floor(pe/te)*te)},function(pe,Ve){pe.setTime(+pe+Ve*te)},function(pe,Ve){return(Ve-pe)/te}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(te){te.setTime(te-te.getMilliseconds())},function(te,pe){te.setTime(+te+pe*l)},function(te,pe){return(pe-te)/l},function(te){return te.getUTCSeconds()}),v=c.range,h=a(function(te){te.setTime(te-te.getMilliseconds()-te.getSeconds()*l)},function(te,pe){te.setTime(+te+pe*o)},function(te,pe){return(pe-te)/o},function(te){return te.getMinutes()}),p=h.range,y=a(function(te){te.setTime(te-te.getMilliseconds()-te.getSeconds()*l-te.getMinutes()*o)},function(te,pe){te.setTime(+te+pe*s)},function(te,pe){return(pe-te)/s},function(te){return te.getHours()}),m=y.range,b=a(function(te){te.setHours(0,0,0,0)},function(te,pe){te.setDate(te.getDate()+pe)},function(te,pe){return(pe-te-(pe.getTimezoneOffset()-te.getTimezoneOffset())*o)/u},function(te){return te.getDate()-1}),_=b.range;function w(te){return a(function(pe){pe.setDate(pe.getDate()-(pe.getDay()+7-te)%7),pe.setHours(0,0,0,0)},function(pe,Ve){pe.setDate(pe.getDate()+Ve*7)},function(pe,Ve){return(Ve-pe-(Ve.getTimezoneOffset()-pe.getTimezoneOffset())*o)/f})}var x=w(0),M=w(1),A=w(2),k=w(3),S=w(4),D=w(5),E=w(6),R=x.range,N=M.range,O=A.range,F=k.range,I=S.range,Y=D.range,B=E.range,U=a(function(te){te.setDate(1),te.setHours(0,0,0,0)},function(te,pe){te.setMonth(te.getMonth()+pe)},function(te,pe){return pe.getMonth()-te.getMonth()+(pe.getFullYear()-te.getFullYear())*12},function(te){return te.getMonth()}),X=U.range,W=a(function(te){te.setMonth(0,1),te.setHours(0,0,0,0)},function(te,pe){te.setFullYear(te.getFullYear()+pe)},function(te,pe){return pe.getFullYear()-te.getFullYear()},function(te){return te.getFullYear()});W.every=function(te){return!isFinite(te=Math.floor(te))||!(te>0)?null:a(function(pe){pe.setFullYear(Math.floor(pe.getFullYear()/te)*te),pe.setMonth(0,1),pe.setHours(0,0,0,0)},function(pe,Ve){pe.setFullYear(pe.getFullYear()+Ve*te)})};var V=W.range,J=a(function(te){te.setUTCSeconds(0,0)},function(te,pe){te.setTime(+te+pe*o)},function(te,pe){return(pe-te)/o},function(te){return te.getUTCMinutes()}),re=J.range,ne=a(function(te){te.setUTCMinutes(0,0,0)},function(te,pe){te.setTime(+te+pe*s)},function(te,pe){return(pe-te)/s},function(te){return te.getUTCHours()}),de=ne.range,K=a(function(te){te.setUTCHours(0,0,0,0)},function(te,pe){te.setUTCDate(te.getUTCDate()+pe)},function(te,pe){return(pe-te)/u},function(te){return te.getUTCDate()-1}),ye=K.range;function oe(te){return a(function(pe){pe.setUTCDate(pe.getUTCDate()-(pe.getUTCDay()+7-te)%7),pe.setUTCHours(0,0,0,0)},function(pe,Ve){pe.setUTCDate(pe.getUTCDate()+Ve*7)},function(pe,Ve){return(Ve-pe)/f})}var Ce=oe(0),se=oe(1),fe=oe(2),Te=oe(3),Fe=oe(4),be=oe(5),Me=oe(6),Ae=Ce.range,Le=se.range,ke=fe.range,ze=Te.range,Se=Fe.range,Ue=be.range,Ke=Me.range,er=a(function(te){te.setUTCDate(1),te.setUTCHours(0,0,0,0)},function(te,pe){te.setUTCMonth(te.getUTCMonth()+pe)},function(te,pe){return pe.getUTCMonth()-te.getUTCMonth()+(pe.getUTCFullYear()-te.getUTCFullYear())*12},function(te){return te.getUTCMonth()}),De=er.range,Ye=a(function(te){te.setUTCMonth(0,1),te.setUTCHours(0,0,0,0)},function(te,pe){te.setUTCFullYear(te.getUTCFullYear()+pe)},function(te,pe){return pe.getUTCFullYear()-te.getUTCFullYear()},function(te){return te.getUTCFullYear()});Ye.every=function(te){return!isFinite(te=Math.floor(te))||!(te>0)?null:a(function(pe){pe.setUTCFullYear(Math.floor(pe.getUTCFullYear()/te)*te),pe.setUTCMonth(0,1),pe.setUTCHours(0,0,0,0)},function(pe,Ve){pe.setUTCFullYear(pe.getUTCFullYear()+Ve*te)})};var rr=Ye.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=Y,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=N,e.timeMonth=U,e.timeMonths=X,e.timeSaturday=E,e.timeSaturdays=B,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=I,e.timeTuesday=A,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=F,e.timeWeek=x,e.timeWeeks=R,e.timeYear=W,e.timeYears=V,e.utcDay=K,e.utcDays=ye,e.utcFriday=be,e.utcFridays=Ue,e.utcHour=ne,e.utcHours=de,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=re,e.utcMonday=se,e.utcMondays=Le,e.utcMonth=er,e.utcMonths=De,e.utcSaturday=Me,e.utcSaturdays=Ke,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Ce,e.utcSundays=Ae,e.utcThursday=Fe,e.utcThursdays=Se,e.utcTuesday=fe,e.utcTuesdays=ke,e.utcWednesday=Te,e.utcWednesdays=ze,e.utcWeek=Ce,e.utcWeeks=Ae,e.utcYear=Ye,e.utcYears=rr,Object.defineProperty(e,"__esModule",{value:!0})})});var ff=G((Ah,b8)=>{(function(e,r){typeof Ah=="object"&&typeof b8!="undefined"?r(Ah,h2()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Ah,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var me=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return me.setFullYear(ae.y),me}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var me=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return me.setUTCFullYear(ae.y),me}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,me,Re){return{y:ae,m:me,d:Re,H:0,M:0,S:0,L:0}}function i(ae){var me=ae.dateTime,Re=ae.date,Be=ae.time,Kr=ae.periods,dt=ae.days,_t=ae.shortDays,zt=ae.months,Bt=ae.shortMonths,Nt=v(Kr),Da=h(Kr),qt=v(dt),$t=h(dt),Ea=v(_t),Qa=h(_t),en=v(zt),Yt=h(zt),ga=v(Bt),ea=h(Bt),ra={a:xo,A:Yl,b:st,B:o0,c:null,d:U,e:U,f:re,g:be,G:Ae,H:X,I:W,j:V,L:J,m:ne,M:de,p:xa,q:Gl,Q:mr,s:_r,S:K,u:ye,U:oe,V:se,w:fe,W:Te,x:null,X:null,y:Fe,Y:Me,Z:Le,"%":Je},Pa={a:vl,A:As,b:eh,B:rh,c:null,d:ke,e:ke,f:er,g:Ie,G:He,H:ze,I:Se,j:Ue,L:Ke,m:De,M:Ye,p:s0,q:u0,Q:mr,s:_r,S:rr,u:te,U:pe,V:vr,w:hr,W:le,x:null,X:null,y:ge,Y:Xe,Z:Ze,"%":Je},Ra={a:at,A:ba,b:tn,B:Gt,c:zi,d:S,e:S,f:F,g:x,G:w,H:E,I:E,j:D,L:O,m:k,M:R,p:Nr,q:A,Q:Y,s:B,S:N,u:y,U:m,V:b,w:p,W:_,x:Ms,X:Bl,y:x,Y:w,Z:M,"%":I};ra.x=rn(Re,ra),ra.X=rn(Be,ra),ra.c=rn(me,ra),Pa.x=rn(Re,Pa),Pa.X=rn(Be,Pa),Pa.c=rn(me,Pa);function rn(Mr,Tr){return function(ot){var or=[],fn=-1,Tt=0,Ha=Mr.length,Oa,si,ks;for(ot instanceof Date||(ot=new Date(+ot));++fn<Ha;)Mr.charCodeAt(fn)===37&&(or.push(Mr.slice(Tt,fn)),(si=l[Oa=Mr.charAt(++fn)])!=null?Oa=Mr.charAt(++fn):si=Oa==="e"?" ":"0",(ks=Tr[Oa])&&(Oa=ks(ot,si)),or.push(Oa),Tt=fn+1);return or.push(Mr.slice(Tt,fn)),or.join("")}}function nr(Mr,Tr){return function(ot){var or=n(1900,void 0,1),fn=Gr(or,Mr,ot+="",0),Tt,Ha;if(fn!=ot.length)return null;if("Q"in or)return new Date(or.Q);if("s"in or)return new Date(or.s*1e3+("L"in or?or.L:0));if(Tr&&!("Z"in or)&&(or.Z=0),"p"in or&&(or.H=or.H%12+or.p*12),or.m===void 0&&(or.m="q"in or?or.q:0),"V"in or){if(or.V<1||or.V>53)return null;"w"in or||(or.w=1),"Z"in or?(Tt=a(n(or.y,0,1)),Ha=Tt.getUTCDay(),Tt=Ha>4||Ha===0?r.utcMonday.ceil(Tt):r.utcMonday(Tt),Tt=r.utcDay.offset(Tt,(or.V-1)*7),or.y=Tt.getUTCFullYear(),or.m=Tt.getUTCMonth(),or.d=Tt.getUTCDate()+(or.w+6)%7):(Tt=t(n(or.y,0,1)),Ha=Tt.getDay(),Tt=Ha>4||Ha===0?r.timeMonday.ceil(Tt):r.timeMonday(Tt),Tt=r.timeDay.offset(Tt,(or.V-1)*7),or.y=Tt.getFullYear(),or.m=Tt.getMonth(),or.d=Tt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),Ha="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(Ha+5)%7:or.w+or.U*7-(Ha+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function Gr(Mr,Tr,ot,or){for(var fn=0,Tt=Tr.length,Ha=ot.length,Oa,si;fn<Tt;){if(or>=Ha)return-1;if(Oa=Tr.charCodeAt(fn++),Oa===37){if(Oa=Tr.charAt(fn++),si=Ra[Oa in l?Tr.charAt(fn++):Oa],!si||(or=si(Mr,ot,or))<0)return-1}else if(Oa!=ot.charCodeAt(or++))return-1}return or}function Nr(Mr,Tr,ot){var or=Nt.exec(Tr.slice(ot));return or?(Mr.p=Da[or[0].toLowerCase()],ot+or[0].length):-1}function at(Mr,Tr,ot){var or=Ea.exec(Tr.slice(ot));return or?(Mr.w=Qa[or[0].toLowerCase()],ot+or[0].length):-1}function ba(Mr,Tr,ot){var or=qt.exec(Tr.slice(ot));return or?(Mr.w=$t[or[0].toLowerCase()],ot+or[0].length):-1}function tn(Mr,Tr,ot){var or=ga.exec(Tr.slice(ot));return or?(Mr.m=ea[or[0].toLowerCase()],ot+or[0].length):-1}function Gt(Mr,Tr,ot){var or=en.exec(Tr.slice(ot));return or?(Mr.m=Yt[or[0].toLowerCase()],ot+or[0].length):-1}function zi(Mr,Tr,ot){return Gr(Mr,me,Tr,ot)}function Ms(Mr,Tr,ot){return Gr(Mr,Re,Tr,ot)}function Bl(Mr,Tr,ot){return Gr(Mr,Be,Tr,ot)}function xo(Mr){return _t[Mr.getDay()]}function Yl(Mr){return dt[Mr.getDay()]}function st(Mr){return Bt[Mr.getMonth()]}function o0(Mr){return zt[Mr.getMonth()]}function xa(Mr){return Kr[+(Mr.getHours()>=12)]}function Gl(Mr){return 1+~~(Mr.getMonth()/3)}function vl(Mr){return _t[Mr.getUTCDay()]}function As(Mr){return dt[Mr.getUTCDay()]}function eh(Mr){return Bt[Mr.getUTCMonth()]}function rh(Mr){return zt[Mr.getUTCMonth()]}function s0(Mr){return Kr[+(Mr.getUTCHours()>=12)]}function u0(Mr){return 1+~~(Mr.getUTCMonth()/3)}return{format:function(Mr){var Tr=rn(Mr+="",ra);return Tr.toString=function(){return Mr},Tr},parse:function(Mr){var Tr=nr(Mr+="",!1);return Tr.toString=function(){return Mr},Tr},utcFormat:function(Mr){var Tr=rn(Mr+="",Pa);return Tr.toString=function(){return Mr},Tr},utcParse:function(Mr){var Tr=nr(Mr+="",!0);return Tr.toString=function(){return Mr},Tr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,me,Re){var Be=ae<0?"-":"",Kr=(Be?-ae:ae)+"",dt=Kr.length;return Be+(dt<Re?new Array(Re-dt+1).join(me)+Kr:Kr)}function c(ae){return ae.replace(u,"\\$&")}function v(ae){return new RegExp("^(?:"+ae.map(c).join("|")+")","i")}function h(ae){for(var me={},Re=-1,Be=ae.length;++Re<Be;)me[ae[Re].toLowerCase()]=Re;return me}function p(ae,me,Re){var Be=o.exec(me.slice(Re,Re+1));return Be?(ae.w=+Be[0],Re+Be[0].length):-1}function y(ae,me,Re){var Be=o.exec(me.slice(Re,Re+1));return Be?(ae.u=+Be[0],Re+Be[0].length):-1}function m(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.U=+Be[0],Re+Be[0].length):-1}function b(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.V=+Be[0],Re+Be[0].length):-1}function _(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.W=+Be[0],Re+Be[0].length):-1}function w(ae,me,Re){var Be=o.exec(me.slice(Re,Re+4));return Be?(ae.y=+Be[0],Re+Be[0].length):-1}function x(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.y=+Be[0]+(+Be[0]>68?1900:2e3),Re+Be[0].length):-1}function M(ae,me,Re){var Be=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(me.slice(Re,Re+6));return Be?(ae.Z=Be[1]?0:-(Be[2]+(Be[3]||"00")),Re+Be[0].length):-1}function A(ae,me,Re){var Be=o.exec(me.slice(Re,Re+1));return Be?(ae.q=Be[0]*3-3,Re+Be[0].length):-1}function k(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.m=Be[0]-1,Re+Be[0].length):-1}function S(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.d=+Be[0],Re+Be[0].length):-1}function D(ae,me,Re){var Be=o.exec(me.slice(Re,Re+3));return Be?(ae.m=0,ae.d=+Be[0],Re+Be[0].length):-1}function E(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.H=+Be[0],Re+Be[0].length):-1}function R(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.M=+Be[0],Re+Be[0].length):-1}function N(ae,me,Re){var Be=o.exec(me.slice(Re,Re+2));return Be?(ae.S=+Be[0],Re+Be[0].length):-1}function O(ae,me,Re){var Be=o.exec(me.slice(Re,Re+3));return Be?(ae.L=+Be[0],Re+Be[0].length):-1}function F(ae,me,Re){var Be=o.exec(me.slice(Re,Re+6));return Be?(ae.L=Math.floor(Be[0]/1e3),Re+Be[0].length):-1}function I(ae,me,Re){var Be=s.exec(me.slice(Re,Re+1));return Be?Re+Be[0].length:-1}function Y(ae,me,Re){var Be=o.exec(me.slice(Re));return Be?(ae.Q=+Be[0],Re+Be[0].length):-1}function B(ae,me,Re){var Be=o.exec(me.slice(Re));return Be?(ae.s=+Be[0],Re+Be[0].length):-1}function U(ae,me){return f(ae.getDate(),me,2)}function X(ae,me){return f(ae.getHours(),me,2)}function W(ae,me){return f(ae.getHours()%12||12,me,2)}function V(ae,me){return f(1+r.timeDay.count(r.timeYear(ae),ae),me,3)}function J(ae,me){return f(ae.getMilliseconds(),me,3)}function re(ae,me){return J(ae,me)+"000"}function ne(ae,me){return f(ae.getMonth()+1,me,2)}function de(ae,me){return f(ae.getMinutes(),me,2)}function K(ae,me){return f(ae.getSeconds(),me,2)}function ye(ae){var me=ae.getDay();return me===0?7:me}function oe(ae,me){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),me,2)}function Ce(ae){var me=ae.getDay();return me>=4||me===0?r.timeThursday(ae):r.timeThursday.ceil(ae)}function se(ae,me){return ae=Ce(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),me,2)}function fe(ae){return ae.getDay()}function Te(ae,me){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),me,2)}function Fe(ae,me){return f(ae.getFullYear()%100,me,2)}function be(ae,me){return ae=Ce(ae),f(ae.getFullYear()%100,me,2)}function Me(ae,me){return f(ae.getFullYear()%1e4,me,4)}function Ae(ae,me){var Re=ae.getDay();return ae=Re>=4||Re===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(ae.getFullYear()%1e4,me,4)}function Le(ae){var me=ae.getTimezoneOffset();return(me>0?"-":(me*=-1,"+"))+f(me/60|0,"0",2)+f(me%60,"0",2)}function ke(ae,me){return f(ae.getUTCDate(),me,2)}function ze(ae,me){return f(ae.getUTCHours(),me,2)}function Se(ae,me){return f(ae.getUTCHours()%12||12,me,2)}function Ue(ae,me){return f(1+r.utcDay.count(r.utcYear(ae),ae),me,3)}function Ke(ae,me){return f(ae.getUTCMilliseconds(),me,3)}function er(ae,me){return Ke(ae,me)+"000"}function De(ae,me){return f(ae.getUTCMonth()+1,me,2)}function Ye(ae,me){return f(ae.getUTCMinutes(),me,2)}function rr(ae,me){return f(ae.getUTCSeconds(),me,2)}function te(ae){var me=ae.getUTCDay();return me===0?7:me}function pe(ae,me){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),me,2)}function Ve(ae){var me=ae.getUTCDay();return me>=4||me===0?r.utcThursday(ae):r.utcThursday.ceil(ae)}function vr(ae,me){return ae=Ve(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),me,2)}function hr(ae){return ae.getUTCDay()}function le(ae,me){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),me,2)}function ge(ae,me){return f(ae.getUTCFullYear()%100,me,2)}function Ie(ae,me){return ae=Ve(ae),f(ae.getUTCFullYear()%100,me,2)}function Xe(ae,me){return f(ae.getUTCFullYear()%1e4,me,4)}function He(ae,me){var Re=ae.getUTCDay();return ae=Re>=4||Re===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(ae.getUTCFullYear()%1e4,me,4)}function Ze(){return"+0000"}function Je(){return"%"}function mr(ae){return+ae}function _r(ae){return Math.floor(+ae/1e3)}var Pe;$e({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 $e(ae){return Pe=i(ae),e.timeFormat=Pe.format,e.timeParse=Pe.parse,e.utcFormat=Pe.utcFormat,e.utcParse=Pe.utcParse,Pe}var Ee="%Y-%m-%dT%H:%M:%S.%LZ";function tr(ae){return ae.toISOString()}var pr=Date.prototype.toISOString?tr:e.utcFormat(Ee);function yr(ae){var me=new Date(ae);return isNaN(me)?null:me}var cr=+new Date("2000-01-01T00:00:00.000Z")?yr:e.utcParse(Ee);e.isoFormat=pr,e.isoParse=cr,e.timeFormatDefaultLocale=$e,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var p2=G((kh,x8)=>{(function(e,r){typeof kh=="object"&&typeof x8!="undefined"?r(kh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(kh,(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,S){if((D=(k=S?k.toExponential(S-1):k.toExponential()).indexOf("e"))<0)return null;var D,E=k.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,S){return function(D,E){for(var R=D.length,N=[],O=0,F=k[0],I=0;R>0&&F>0&&(I+F+1>E&&(F=Math.max(1,E-I)),N.push(D.substring(R-=F,R+F)),!((I+=F+1)>E));)F=k[O=(O+1)%k.length];return N.reverse().join(S)}}function i(k){return function(S){return S.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(S=l.exec(k)))throw new Error("invalid format: "+k);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.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 S=k.length,D=1,E=-1,R;D<S;++D)switch(k[D]){case".":E=R=D;break;case"0":E===0&&(E=D),R=D;break;default:if(!+k[D])break e;E>0&&(E=0);break}return E>0?k.slice(0,E)+k.slice(R+1):k}var f;function c(k,S){var D=t(k,S);if(!D)return k+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,O=E.length;return N===O?E:N>O?E+new Array(N-O+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(k,Math.max(0,S+N-1))[0]}function v(k,S){var D=t(k,S);if(!D)return k+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var h={"%":function(k,S){return(k*100).toFixed(S)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,S){return k.toExponential(S)},f:function(k,S){return k.toFixed(S)},g:function(k,S){return k.toPrecision(S)},o:function(k){return Math.round(k).toString(8)},p:function(k,S){return v(k*100,S)},r:v,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 y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(k){var S=k.grouping===void 0||k.thousands===void 0?p:n(y.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",E=k.currency===void 0?"":k.currency[1]+"",R=k.decimal===void 0?".":k.decimal+"",N=k.numerals===void 0?p:i(y.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",F=k.minus===void 0?"-":k.minus+"",I=k.nan===void 0?"NaN":k.nan+"";function Y(U){U=o(U);var X=U.fill,W=U.align,V=U.sign,J=U.symbol,re=U.zero,ne=U.width,de=U.comma,K=U.precision,ye=U.trim,oe=U.type;oe==="n"?(de=!0,oe="g"):h[oe]||(K===void 0&&(K=12),ye=!0,oe="g"),(re||X==="0"&&W==="=")&&(re=!0,X="0",W="=");var Ce=J==="$"?D:J==="#"&&/[boxX]/.test(oe)?"0"+oe.toLowerCase():"",se=J==="$"?E:/[%p]/.test(oe)?O:"",fe=h[oe],Te=/[defgprs%]/.test(oe);K=K===void 0?6:/[gprs]/.test(oe)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Fe(be){var Me=Ce,Ae=se,Le,ke,ze;if(oe==="c")Ae=fe(be)+Ae,be="";else{be=+be;var Se=be<0||1/be<0;if(be=isNaN(be)?I:fe(Math.abs(be),K),ye&&(be=u(be)),Se&&+be==0&&V!=="+"&&(Se=!1),Me=(Se?V==="("?V:F:V==="-"||V==="("?"":V)+Me,Ae=(oe==="s"?m[8+f/3]:"")+Ae+(Se&&V==="("?")":""),Te){for(Le=-1,ke=be.length;++Le<ke;)if(ze=be.charCodeAt(Le),48>ze||ze>57){Ae=(ze===46?R+be.slice(Le+1):be.slice(Le))+Ae,be=be.slice(0,Le);break}}}de&&!re&&(be=S(be,1/0));var Ue=Me.length+be.length+Ae.length,Ke=Ue<ne?new Array(ne-Ue+1).join(X):"";switch(de&&re&&(be=S(Ke+be,Ke.length?ne-Ae.length:1/0),Ke=""),W){case"<":be=Me+be+Ae+Ke;break;case"=":be=Me+Ke+be+Ae;break;case"^":be=Ke.slice(0,Ue=Ke.length>>1)+Me+be+Ae+Ke.slice(Ue);break;default:be=Ke+Me+be+Ae;break}return N(be)}return Fe.toString=function(){return U+""},Fe}function B(U,X){var W=Y((U=o(U),U.type="f",U)),V=Math.max(-8,Math.min(8,Math.floor(a(X)/3)))*3,J=Math.pow(10,-V),re=m[8+V/3];return function(ne){return W(J*ne)+re}}return{format:Y,formatPrefix:B}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(k){return _=b(k),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(k){return Math.max(0,-a(Math.abs(k)))}function M(k,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(k)))}function A(k,S){return k=Math.abs(k),S=Math.abs(S)-k,Math.max(0,a(S)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=A,Object.defineProperty(e,"__esModule",{value:!0})}))});var w8=G((Vwe,_8)=>{"use strict";_8.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 Ur=G((Xwe,T8)=>{"use strict";var UK=w8();T8.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&UK(t))return!1}else if(r!=="number")return!1;return e-e<1}});var It={};ht(It,{ALMOST_EQUAL:()=>uj,BADNUM:()=>m2,EPOCHJD:()=>sj,FP_SAFE:()=>VK,LOG_CLIP:()=>fj,MINUS_SIGN:()=>cj,ONEAVGMONTH:()=>QK,ONEAVGQUARTER:()=>JK,ONEAVGYEAR:()=>WK,ONEDAY:()=>tj,ONEHOUR:()=>aj,ONEMAXMONTH:()=>jK,ONEMAXQUARTER:()=>$K,ONEMAXYEAR:()=>XK,ONEMICROSEC:()=>oj,ONEMILLI:()=>lj,ONEMIN:()=>nj,ONEMINMONTH:()=>ej,ONEMINQUARTER:()=>KK,ONEMINYEAR:()=>ZK,ONESEC:()=>ij,ONEWEEK:()=>rj});var m2,VK,XK,WK,ZK,$K,JK,KK,jK,QK,ej,rj,tj,aj,nj,ij,lj,oj,sj,uj,fj,cj,Et=lt(()=>{"use strict";m2=void 0,VK=Number.MAX_VALUE*1e-4,XK=316224e5,WK=315576e5,ZK=31536e6,$K=79488e5,JK=78894e5,KK=76896e5,jK=26784e5,QK=26298e5,ej=24192e5,rj=6048e5,tj=864e5,aj=36e5,nj=6e4,ij=1e3,lj=1,oj=.001,sj=24405875e-1,uj=1-1e-6,fj=10,cj="\u2212"});var y2=G((Ch,M8)=>{(function(e,r){typeof Ch=="object"&&typeof M8!="undefined"?r(Ch):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ch,(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(l){var o=new Uint8Array(l),s,u=o.length,f="";for(s=0;s<u;s+=3)f+=r[o[s]>>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[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(l){var o=l.length*.75,s=l.length,u,f=0,c,v,h,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),m=new Uint8Array(y);for(u=0;u<s;u+=4)c=t[l.charCodeAt(u)],v=t[l.charCodeAt(u+1)],h=t[l.charCodeAt(u+2)],p=t[l.charCodeAt(u+3)],m[f++]=c<<2|v>>4,m[f++]=(v&15)<<4|h>>2,m[f++]=(h&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Es=G((Wwe,A8)=>{"use strict";A8.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 Dn=G(Fi=>{"use strict";var vj=y2().decode,dj=Es(),g2=Array.isArray,hj=ArrayBuffer,pj=DataView;function k8(e){return hj.isView(e)&&!(e instanceof pj)}Fi.isTypedArray=k8;function Lh(e){return g2(e)||k8(e)}Fi.isArrayOrTypedArray=Lh;function mj(e){return!Lh(e[0])}Fi.isArray1D=mj;Fi.ensureArray=function(e,r){return g2(e)||(e=[]),e.length=r,e};var za={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};za.uint8c=za.u1c;za.uint8=za.u1;za.int8=za.i1;za.uint16=za.u2;za.int16=za.i2;za.uint32=za.u4;za.int32=za.i4;za.float32=za.f4;za.float64=za.f8;function b2(e){return e.constructor===ArrayBuffer}Fi.isArrayBuffer=b2;Fi.decodeTypedArraySpec=function(e){var r=[],t=yj(e),a=t.dtype,n=za[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;b2(l)||(l=vj(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],v=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f<u;f++)r[f]=new n(l,h,c),h+=v;else if(s===3){u=+o[1];for(var p=+o[2],y=0;y<p;y++)for(r[y]=[],f=0;f<u;f++)r[y][f]=new n(l,h,c),h+=v}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=o.reverse().join(","),e._inputArray=r,r};Fi.isTypedArraySpec=function(e){return dj(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||b2(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function yj(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Fi.concat=function(){var e=[],r=!0,t=0,a,n,i,l,o,s,u,f;for(i=0;i<arguments.length;i++)l=arguments[i],s=l.length,s&&(n?e.push(l):(n=l,o=s),g2(l)?a=!1:(r=!1,t?a!==l.constructor&&(a=!1):a=l.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++)l=e[i],u.set(l,o),o+=l.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(l=e[i],f=0;f<l.length;f++)u[o+f]=l[f];o+=f}return u};Fi.maxRowLength=function(e){return C8(e,Math.max,0)};Fi.minRowLength=function(e){return C8(e,Math.min,1/0)};function C8(e,r,t){if(Lh(e))if(Lh(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 Sh=G(($we,E8)=>{"use strict";var L8=Ur(),_2=Dn().isArrayOrTypedArray;E8.exports=function(r,t){if(L8(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o<a.length;o++)if(String(a[o]).slice(0,2)==="__")throw"bad property string";for(o=0;o<a.length;){if(n=String(a[o]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[o]=n[1];else if(o===0)a.splice(0,1);else throw"bad property string";for(i=n[2].slice(1,-1).split("]["),l=0;l<i.length;l++)o++,a.splice(o,0,Number(i[l]))}o++}return typeof r!="object"?_j(r,t,a):{set:q8(r,a,t),get:S8(r,a),astr:t,parts:a,obj:r}};function S8(e,r){return function(t){var a=e,n,i,l,o,s;for(o=0;o<r.length-1;o++){if(n=r[o],n===-1){for(i=!0,l=[],s=0;s<a.length;s++)l[s]=S8(a[s],r.slice(o+1))(t),l[s]!==l[0]&&(i=!1);return i?l[0]:l}if(typeof n=="number"&&!_2(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(l=a[r[o]],!(!t&&l===null)))return l}}var gj=/(^|\.)args\[/;function x2(e,r){return e===void 0||e===null&&!r.match(gj)}function q8(e,r,t){return function(a){var n=e,i="",l=[[e,i]],o=x2(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!_2(n))throw"array index but container is not an array";if(s===-1){if(o=!xj(n,r.slice(u+1),a,t),o)break;return}if(!D8(n,s,r[u+1],o))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=bj(i,s),l.push([n,i])}if(o){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 bj(e,r){var t=r;return L8(r)?t="["+r+"]":e&&(t="."+r),e+t}function xj(e,r,t,a){var n=_2(t),i=!0,l=t,o=a.replace("-1",0),s=n?!1:x2(t,o),u=r[0],f;for(f=0;f<e.length;f++)o=a.replace("-1",f),n&&(l=t[f%t.length],s=x2(l,o)),s&&(i=!1),D8(e,f,u,s)&&q8(e[f],r,a.replace("-1",f))(l);return i}function D8(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function _j(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var N8=G((Jwe,z8)=>{"use strict";var cf=Sh(),wj=/^\w*$/,Tj=0,P8=1,qh=2,R8=3,Ps=4;z8.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=cf(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i<l.length;i++)u[l[i][a]]=i;var f=wj.test(n),c={set:function(v,h){var p=h===null?Ps:Tj;if(!l){if(!o||p===Ps)return;l=[],o.set(l)}var y=u[v];if(y===void 0){if(p===Ps)return;p=p|R8,y=l.length,u[v]=y}else h!==(f?l[y][n]:cf(l[y],n).get())&&(p=p|qh);var m=l[y]=l[y]||{};return m[a]=v,f?m[n]=h:cf(m,n).set(h),h!==null&&(p=p&~Ps),s[y]=s[y]|p,c},get:function(v){if(l){var h=u[v];if(h!==void 0)return f?l[h][n]:cf(l[h],n).get()}},rename:function(v,h){var p=u[v];return p===void 0||(s[p]=s[p]|P8,u[h]=p,delete u[v],l[p][a]=h),c},remove:function(v){var h=u[v];if(h===void 0)return c;var p=l[h];if(Object.keys(p).length>2)return s[h]=s[h]|qh,c.set(v,null);if(f){for(i=h;i<l.length;i++)s[i]=s[i]|R8;for(i=h;i<l.length;i++)u[l[i][a]]--;l.splice(h,1),delete u[v]}else cf(p,n).set(null),s[h]=s[h]|qh|Ps;return c},constructUpdate:function(){for(var v,h,p={},y=Object.keys(s),m=0;m<y.length;m++)h=y[m],v=t+"["+h+"]",l[h]?(s[h]&P8&&(p[v+"."+a]=l[h][a]),s[h]&qh&&(f?p[v+"."+n]=s[h]&Ps?null:l[h][n]:p[v+"."+n]=s[h]&Ps?null:cf(l[h],n).get())):p[v]=null;return p}};return c}});var F8=G((Kwe,I8)=>{"use strict";var Mj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Aj=/^[^\.\[\]]+$/;I8.exports=function(e,r){for(;r;){var t=e.match(Mj);if(t)e=t[1];else if(e.match(Aj))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 Dh=G((jwe,H8)=>{"use strict";var kj=Ur();H8.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 kj(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Y8=G((Qwe,B8)=>{"use strict";var O8=Dn().isArrayOrTypedArray,_0=Es();B8.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(O8(n)&&O8(i)&&_0(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o<l;o++)i[o]!==n[o]&&_0(n[o])&&_0(i[o])&&e(i[o],n[o])}else _0(n)&&_0(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var vf={};ht(vf,{mod:()=>Cj,modHalf:()=>Lj});function Cj(e,r){let t=e%r;return t<0?t+r:t}function Lj(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var df=lt(()=>{"use strict"});var Mt=G(M0=>{"use strict";var G8=Es(),w0=Array.isArray;function Sj(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}M0.extendFlat=function(...e){return T0(e,!1,!1,!1)};M0.extendDeep=function(...e){return T0(e,!0,!1,!1)};M0.extendDeepAll=function(...e){return T0(e,!0,!0,!1)};M0.extendDeepNoArrays=function(...e){return T0(e,!0,!1,!0)};function T0(e,r,t,a){var n=e[0],i=e.length,l,o,s,u,f,c,v;if(i===2&&w0(n)&&w0(e[1])&&n.length===0){if(v=Sj(e[1],n),v)return n;n.splice(0,n.length)}for(var h=1;h<i;h++){l=e[h];for(o in l)s=Object.prototype.hasOwnProperty.call(n,o)?n[o]:void 0,u=l[o],a&&w0(u)?n[o]=u:r&&u&&(G8(u)||(f=w0(u)))?(f?(f=!1,c=s&&w0(s)?s:[]):c=s&&G8(s)?s:{},n[o]=T0([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[o]=u)}return n}});var _a=G((rTe,U8)=>{"use strict";U8.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 A0={};ht(A0,{HOVERARROWSIZE:()=>Dj,HOVERFONT:()=>Rj,HOVERFONTSIZE:()=>Pj,HOVERID:()=>Nj,HOVERMINTIME:()=>zj,HOVERTEXTPAD:()=>Ej,YANGLE:()=>qj});var qj,Dj,Ej,Pj,Rj,zj,Nj,k0=lt(()=>{"use strict";qj=60,Dj=6,Ej=3,Pj=13,Rj="Arial, sans-serif",zj=50,Nj="-hover"});var hf=G((tTe,W8)=>{"use strict";var V8=(k0(),Ne(A0)),X8=_a(),w2=X8({editType:"none"});w2.family.dflt=V8.HOVERFONT;w2.size.dflt=V8.HOVERFONTSIZE;W8.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:w2,grouptitlefont:X8({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 S0=G((aTe,Z8)=>{"use strict";var Ij=_a(),C0=hf().hoverlabel,L0=Mt().extendFlat;Z8.exports={hoverlabel:{bgcolor:L0({},C0.bgcolor,{arrayOk:!0}),bordercolor:L0({},C0.bordercolor,{arrayOk:!0}),font:Ij({arrayOk:!0,editType:"none"}),align:L0({},C0.align,{arrayOk:!0}),namelength:L0({},C0.namelength,{arrayOk:!0}),showarrow:L0({},C0.showarrow),editType:"none"}}});var En=G((nTe,$8)=>{"use strict";var Fj=_a(),Hj=S0();$8.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:Fj({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:Hj.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var BT=G((cTe,OT)=>{var h3=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,Bj=Object.getOwnPropertyNames,Yj=Object.prototype.hasOwnProperty,Gj=(e,r)=>{for(var t in r)h3(e,t,{get:r[t],enumerable:!0})},Uj=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Bj(r))!Yj.call(e,n)&&n!==t&&h3(e,n,{get:()=>r[n],enumerable:!(a=Oj(r,n))||a.enumerable});return e},Vj=e=>Uj(h3({},"__esModule",{value:!0}),e),iw={};Gj(iw,{a98:()=>Nte,average:()=>BQ,averageAngle:()=>yl,averageNumber:()=>ww,blend:()=>Ore,blerp:()=>Z2,clampChroma:()=>lte,clampGamut:()=>B3,clampRgb:()=>ite,colorsNamed:()=>ow,convertA98ToXyz65:()=>$2,convertCubehelixToRgb:()=>xw,convertDlchToLab65:()=>Oh,convertHsiToRgb:()=>qw,convertHslToRgb:()=>Pw,convertHsvToRgb:()=>x3,convertHwbToRgb:()=>Iw,convertItpToXyz65:()=>K2,convertJabToJch:()=>Q2,convertJabToRgb:()=>k3,convertJabToXyz65:()=>M3,convertJchToJab:()=>e3,convertLab65ToDlch:()=>Bh,convertLab65ToRgb:()=>I0,convertLab65ToXyz65:()=>y3,convertLabToLch:()=>Vl,convertLabToRgb:()=>L3,convertLabToXyz50:()=>Kh,convertLchToLab:()=>Xl,convertLchuvToLuv:()=>D3,convertLrgbToOklab:()=>E3,convertLrgbToRgb:()=>Os,convertLuvToLchuv:()=>q3,convertLuvToXyz50:()=>Gh,convertOkhslToOklab:()=>a3,convertOkhsvToOklab:()=>i3,convertOklabToLrgb:()=>wf,convertOklabToOkhsl:()=>t3,convertOklabToOkhsv:()=>n3,convertOklabToRgb:()=>O0,convertP3ToXyz65:()=>l3,convertProphotoToXyz50:()=>u3,convertRec2020ToXyz65:()=>c3,convertRgbToCubehelix:()=>bw,convertRgbToHsi:()=>Dw,convertRgbToHsl:()=>Rw,convertRgbToHsv:()=>_3,convertRgbToHwb:()=>Fw,convertRgbToJab:()=>A3,convertRgbToLab:()=>S3,convertRgbToLab65:()=>F0,convertRgbToLrgb:()=>Hs,convertRgbToOklab:()=>H0,convertRgbToXyb:()=>vT,convertRgbToXyz50:()=>_f,convertRgbToXyz65:()=>To,convertRgbToYiq:()=>bT,convertXybToRgb:()=>dT,convertXyz50ToLab:()=>jh,convertXyz50ToLuv:()=>Yh,convertXyz50ToProphoto:()=>s3,convertXyz50ToRgb:()=>xf,convertXyz50ToXyz65:()=>yT,convertXyz65ToA98:()=>J2,convertXyz65ToItp:()=>j2,convertXyz65ToJab:()=>T3,convertXyz65ToLab65:()=>g3,convertXyz65ToP3:()=>o3,convertXyz65ToRec2020:()=>f3,convertXyz65ToRgb:()=>Mo,convertXyz65ToXyz50:()=>mT,convertYiqToRgb:()=>xT,converter:()=>At,cubehelix:()=>Ite,differenceCie76:()=>RQ,differenceCie94:()=>zQ,differenceCiede2000:()=>NQ,differenceCmc:()=>IQ,differenceEuclidean:()=>bf,differenceHueChroma:()=>N0,differenceHueNaive:()=>_w,differenceHueSaturation:()=>z0,differenceHyab:()=>FQ,differenceItp:()=>OQ,differenceKotsarenkoRamos:()=>HQ,displayable:()=>O3,dlab:()=>Fte,dlch:()=>Hte,easingGamma:()=>zT,easingInOutSine:()=>Rte,easingMidpoint:()=>LT,easingSmootherstep:()=>Ete,easingSmoothstep:()=>Ste,easingSmoothstepInverse:()=>qte,filterBrightness:()=>pte,filterContrast:()=>mte,filterDeficiencyDeuter:()=>Cte,filterDeficiencyProt:()=>kte,filterDeficiencyTrit:()=>Lte,filterGrayscale:()=>bte,filterHueRotate:()=>_te,filterInvert:()=>xte,filterSaturate:()=>gte,filterSepia:()=>yte,fixupAlpha:()=>Ta,fixupHueDecreasing:()=>SQ,fixupHueIncreasing:()=>LQ,fixupHueLonger:()=>CQ,fixupHueShorter:()=>ml,formatCss:()=>Pre,formatHex:()=>Rre,formatHex8:()=>zre,formatHsl:()=>Ire,formatRgb:()=>Nre,getMode:()=>dn,hsi:()=>Ote,hsl:()=>Bte,hsv:()=>Yte,hwb:()=>Gte,inGamut:()=>r1,interpolate:()=>$re,interpolateWith:()=>qT,interpolateWithPremultipliedAlpha:()=>Jre,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>yw,interpolatorSplineBasis:()=>ET,interpolatorSplineBasisClosed:()=>PT,interpolatorSplineMonotone:()=>Qre,interpolatorSplineMonotone2:()=>ete,interpolatorSplineMonotoneClosed:()=>rte,interpolatorSplineNatural:()=>Kre,interpolatorSplineNaturalClosed:()=>jre,itp:()=>Ute,jab:()=>Vte,jch:()=>Xte,lab:()=>Wte,lab65:()=>Zte,lch:()=>$te,lch65:()=>Jte,lchuv:()=>Kte,lerp:()=>zs,lrgb:()=>jte,luv:()=>Qte,mapAlphaDivide:()=>CT,mapAlphaMultiply:()=>kT,mapTransferGamma:()=>Vre,mapTransferLinear:()=>I3,mapper:()=>B0,modeA98:()=>gw,modeCubehelix:()=>Tw,modeDlab:()=>Lw,modeDlch:()=>Sw,modeHsi:()=>Ew,modeHsl:()=>b3,modeHsv:()=>w3,modeHwb:()=>Ow,modeItp:()=>Gw,modeJab:()=>Uw,modeJch:()=>Vw,modeLab:()=>Qh,modeLab65:()=>Ww,modeLch:()=>e1,modeLch65:()=>$w,modeLchuv:()=>jw,modeLrgb:()=>Qw,modeLuv:()=>eT,modeOkhsl:()=>tT,modeOkhsv:()=>aT,modeOklab:()=>iT,modeOklch:()=>oT,modeP3:()=>sT,modeProphoto:()=>uT,modeRec2020:()=>fT,modeRgb:()=>Fs,modeXyb:()=>hT,modeXyz50:()=>pT,modeXyz65:()=>gT,modeYiq:()=>_T,nearest:()=>ute,okhsl:()=>eae,okhsv:()=>rae,oklab:()=>tae,oklch:()=>aae,p3:()=>nae,parse:()=>hw,parseHex:()=>uw,parseHsl:()=>Nw,parseHslLegacy:()=>zw,parseHwb:()=>Hw,parseLab:()=>Xw,parseLch:()=>Zw,parseNamed:()=>sw,parseOklab:()=>nT,parseOklch:()=>lT,parseRgb:()=>pw,parseRgbLegacy:()=>fw,parseTransparent:()=>mw,prophoto:()=>iae,random:()=>Ure,rec2020:()=>lae,removeParser:()=>iQ,rgb:()=>oae,round:()=>wT,samples:()=>nte,serializeHex:()=>N3,serializeHex8:()=>TT,serializeHsl:()=>AT,serializeRgb:()=>MT,toGamut:()=>ote,trilerp:()=>mQ,unlerp:()=>pQ,useMode:()=>pt,useParser:()=>vw,wcagContrast:()=>zte,wcagLuminance:()=>d3,xyb:()=>sae,xyz50:()=>uae,xyz65:()=>fae,yiq:()=>cae});OT.exports=Vj(iw);var Xj=(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}}},lw=Xj,Wj={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},ow=Wj,Zj=e=>lw(ow[e.toLowerCase()],6),sw=Zj,$j=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Jj=e=>{let r;return(r=e.match($j))?lw(parseInt(r[1],16),r[1].length):void 0},uw=Jj,Pn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",iTe=`(?:${Pn}|none)`,E0=`${Pn}%`,lTe=`(?:${Pn}%|none)`,p3=`(?:${Pn}%|${Pn})`,Kj=`(?:${Pn}%|${Pn}|none)`,jj=`(?:${Pn}(deg|grad|rad|turn)|${Pn})`,oTe=`(?:${Pn}(deg|grad|rad|turn)|${Pn}|none)`,yf="\\s*,\\s*",sTe=new RegExp("^"+Kj+"$"),Qj=new RegExp(`^rgba?\\(\\s*${Pn}${yf}${Pn}${yf}${Pn}\\s*(?:,\\s*${p3}\\s*)?\\)$`),eQ=new RegExp(`^rgba?\\(\\s*${E0}${yf}${E0}${yf}${E0}\\s*(?:,\\s*${p3}\\s*)?\\)$`),rQ=e=>{let r={mode:"rgb"},t;if(t=e.match(Qj))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(eQ))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},fw=rQ,tQ=(e,r)=>e===void 0?void 0:typeof e!="object"?hw(e):e.mode!==void 0?e:r?Dt(vt({},e),{mode:r}):void 0,Hi=tQ,aQ=(e="rgb")=>r=>(r=Hi(r,e))!==void 0?r.mode===e?r:pl[r.mode][e]?pl[r.mode][e](r):e==="rgb"?pl[r.mode].rgb(r):pl.rgb[e](pl[r.mode].rgb(r)):void 0,At=aQ,pl={},cw={},gf=[],m3={},nQ=e=>e,pt=e=>(pl[e.mode]=vt(vt({},pl[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{pl[r]||(pl[r]={}),pl[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=nQ)}),cw[e.mode]=e,(e.parse||[]).forEach(r=>{vw(r,e.mode)}),At(e.mode)),dn=e=>cw[e],vw=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");m3[e]=r}else typeof e=="function"&&gf.indexOf(e)<0&&gf.push(e)},iQ=e=>{if(typeof e=="string")delete m3[e];else if(typeof e=="function"){let r=gf.indexOf(e);r>0&&gf.splice(r,1)}},X2=/[^\x00-\x7F]|[a-zA-Z_]/,lQ=/[^\x00-\x7F]|[-\w]/,fr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Br=0;function Eh(e){let r=e[Br],t=e[Br+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Br+2]):r==="."?/\d/.test(t):/\d/.test(r)}function W2(e){if(Br>=e.length)return!1;let r=e[Br];if(X2.test(r))return!0;if(r==="-"){if(e.length-Br<2)return!1;let t=e[Br+1];return!!(t==="-"||X2.test(t))}return!1}var oQ={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function q0(e){let r="";if((e[Br]==="-"||e[Br]==="+")&&(r+=e[Br++]),r+=Ph(e),e[Br]==="."&&/\d/.test(e[Br+1])&&(r+=e[Br++]+Ph(e)),(e[Br]==="e"||e[Br]==="E")&&((e[Br+1]==="-"||e[Br+1]==="+")&&/\d/.test(e[Br+2])?r+=e[Br++]+e[Br++]+Ph(e):/\d/.test(e[Br+1])&&(r+=e[Br++]+Ph(e))),W2(e)){let t=Nh(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:fr.Hue,value:r*oQ[t]}:void 0}return e[Br]==="%"?(Br++,{type:fr.Percentage,value:+r}):{type:fr.Number,value:+r}}function Ph(e){let r="";for(;/\d/.test(e[Br]);)r+=e[Br++];return r}function Nh(e){let r="";for(;Br<e.length&&lQ.test(e[Br]);)r+=e[Br++];return r}function sQ(e){let r=Nh(e);return e[Br]==="("?(Br++,{type:fr.Function,value:r}):r==="none"?{type:fr.None,value:void 0}:{type:fr.Ident,value:r}}function uQ(e=""){let r=e.trim(),t=[],a;for(Br=0;Br<r.length;){if(a=r[Br++],a===`
`||a===" "||a===" "){for(;Br<r.length&&(r[Br]===`
`||r[Br]===" "||r[Br]===" ");)Br++;continue}if(a===",")return;if(a===")"){t.push({type:fr.ParenClose});continue}if(a==="+"){if(Br--,Eh(r)){t.push(q0(r));continue}return}if(a==="-"){if(Br--,Eh(r)){t.push(q0(r));continue}if(W2(r)){t.push({type:fr.Ident,value:Nh(r)});continue}return}if(a==="."){if(Br--,Eh(r)){t.push(q0(r));continue}return}if(a==="/"){for(;Br<r.length&&(r[Br]===`
`||r[Br]===" "||r[Br]===" ");)Br++;let n;if(Eh(r)&&(n=q0(r),n.type!==fr.Hue)){t.push({type:fr.Alpha,value:n});continue}if(W2(r)&&Nh(r)==="none"){t.push({type:fr.Alpha,value:{type:fr.None,value:void 0}});continue}return}if(/\d/.test(a)){Br--,t.push(q0(r));continue}if(X2.test(a)){Br--,t.push(sQ(r));continue}return}return t}function fQ(e){e._i=0;let r=e[e._i++];if(!r||r.type!==fr.Function||r.value!=="color"||(r=e[e._i++],r.type!==fr.Ident))return;let t=m3[r.value];if(!t)return;let a={mode:t},n=dw(e,!1);if(!n)return;let i=dn(t).channels;for(let l=0,o,s;l<i.length;l++)o=n[l],s=i[l],o.type!==fr.None&&(a[s]=o.type===fr.Number?o.value:o.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function dw(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===fr.None||a.type===fr.Number||a.type===fr.Alpha||a.type===fr.Percentage||r&&a.type===fr.Hue){t.push(a);continue}if(a.type===fr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==fr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:fr.None,value:void 0}),t.every(n=>n.type!==fr.Alpha)?t:void 0}}function cQ(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==fr.Function)return;let a=dw(e,r);if(a)return a.unshift(t.value),a}var vQ=e=>{if(typeof e!="string")return;let r=uQ(e),t=r?cQ(r,!0):void 0,a,n=0,i=gf.length;for(;n<i;)if((a=gf[n++](e,t))!==void 0)return a;return r?fQ(r):void 0},hw=vQ;function dQ(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.r=a.type===fr.Number?a.value/255:a.value/100),n.type!==fr.None&&(t.g=n.type===fr.Number?n.value/255:n.value/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value/255:i.value/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var pw=dQ,hQ=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,mw=hQ,zs=(e,r,t)=>e+t*(r-e),pQ=(e,r,t)=>(t-e)/(r-e),Z2=(e,r,t,a,n,i)=>zs(zs(e,r,n),zs(t,a,n),i),mQ=(e,r,t,a,n,i,l,o,s,u,f)=>zs(Z2(e,r,t,a,s,u),Z2(n,i,l,o,s,u),f),yQ=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},yw=e=>r=>{let t=yQ(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},xr=yw(zs),Ta=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},gQ={mode:"rgb",channels:["r","g","b","alpha"],parse:[pw,uw,fw,sw,mw,"srgb"],serialize:"srgb",interpolate:{r:xr,g:xr,b:xr,alpha:{use:xr,fixup:Ta}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Fs=gQ,T2=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),bQ=e=>{let r=T2(e.r),t=T2(e.g),a=T2(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},$2=bQ,M2=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),xQ=({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:M2(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:M2(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:M2(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},J2=xQ,A2=(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)},_Q=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:A2(e),g:A2(r),b:A2(t)};return a!==void 0&&(n.alpha=a),n},Hs=_Q,wQ=e=>{let{r,g:t,b:a,alpha:n}=Hs(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},To=wQ,k2=(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},TQ=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:k2(e),g:k2(r),b:k2(t)};return a!==void 0&&(i.alpha=a),i},Os=TQ,MQ=({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=Os({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},Mo=MQ,AQ=Dt(vt({},Fs),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>J2(To(e)),xyz65:J2},toMode:{rgb:e=>Mo($2(e)),xyz65:$2}}),gw=AQ,kQ=e=>(e=e%360)<0?e+360:e,nn=kQ,Vh=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=nn(t);return a===0||e[a-1]===void 0?i:r(i-nn(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),[]),ml=e=>Vh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),CQ=e=>Vh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),LQ=e=>Vh(e,r=>r>=0?r:r+360),SQ=e=>Vh(e,r=>r<=0?r:r-360),Ga=[-.14861,1.78277,-.29227,-.90649,1.97294,0],qQ=Math.PI/180,DQ=180/Math.PI,J8=Ga[3]*Ga[4],K8=Ga[1]*Ga[4],j8=Ga[1]*Ga[2]-Ga[0]*Ga[3],EQ=({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=(j8*t+e*J8-r*K8)/(j8+J8-K8),i=t-n,l=(Ga[4]*(r-n)-Ga[2]*i)/Ga[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Ga[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*DQ-120),a!==void 0&&(o.alpha=a),o},bw=EQ,PQ=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*qQ,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Ga[0]*l+Ga[1]*o),n.g=t+i*(Ga[2]*l+Ga[3]*o),n.b=t+i*(Ga[4]*l+Ga[5]*o),a!==void 0&&(n.alpha=a),n},xw=PQ,z0=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=nn(e.h),a=nn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},_w=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=nn(e.h),a=nn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},N0=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=nn(e.h),a=nn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},bf=(e="rgb",r=[1,1,1,0])=>{let t=dn(e),a=t.channels,n=t.difference,i=At(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,c,v)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},RQ=()=>bf("lab65"),zQ=(e=1,r=.045,t=.015)=>{let a=At("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,y=Math.sqrt(h*h+p*p),m=Math.pow(s-v,2),b=Math.pow(c-y,2),_=Math.pow(u-h,2)+Math.pow(f-p,2)-b;return Math.sqrt(m/Math.pow(e,2)+b/Math.pow(1+r*c,2)+_/Math.pow(1+t*c,2))}},NQ=(e=1,r=1,t=1)=>{let a=At("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,y=Math.sqrt(h*h+p*p),m=(c+y)/2,b=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),_=u*(1+b),w=h*(1+b),x=Math.sqrt(_*_+f*f),M=Math.sqrt(w*w+p*p),A=Math.abs(_)+Math.abs(f)===0?0:Math.atan2(f,_);A+=(A<0)*2*Math.PI;let k=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);k+=(k<0)*2*Math.PI;let S=v-s,D=M-x,E=x*M===0?0:k-A;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let R=2*Math.sqrt(x*M)*Math.sin(E/2),N=(s+v)/2,O=(x+M)/2,F;x*M===0?F=A+k:(F=(A+k)/2,F-=(Math.abs(A-k)>Math.PI)*Math.PI,F+=(F<0)*2*Math.PI);let I=Math.pow(N-50,2),Y=1-.17*Math.cos(F-Math.PI/6)+.24*Math.cos(2*F)+.32*Math.cos(3*F+Math.PI/30)-.2*Math.cos(4*F-63*Math.PI/180),B=1+.015*I/Math.sqrt(20+I),U=1+.045*O,X=1+.015*O*Y,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*F-275)/25,2)),V=2*Math.sqrt(Math.pow(O,7)/(Math.pow(O,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*V;return Math.sqrt(Math.pow(S/(e*B),2)+Math.pow(D/(r*U),2)+Math.pow(R/(t*X),2)+J*D/(r*U)*R/(t*X))}},IQ=(e=1,r=1)=>{let t=At("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,h=c.a,p=c.b,y=Math.sqrt(h*h+p*p),m=Math.pow(l-v,2),b=Math.pow(u-y,2),_=Math.pow(o-h,2)+Math.pow(s-p,2)-b,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),x=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=l<16?.511:.040975*l/(1+.01765*l),A=.0638*u/(1+.0131*u)+.638,k=A*(w*x+1-w);return Math.sqrt(m/Math.pow(e*M,2)+b/Math.pow(r*A,2)+_/Math.pow(k,2))}},FQ=()=>{let e=At("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},HQ=()=>bf("yiq",[.5053,.299,.1957]),OQ=()=>bf("itp",[518400,129600,518400]),yl=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},ww=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},C2=e=>typeof e=="function";function BQ(e,r="rgb",t){let a=dn(r),n=e.map(At(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;C2(t)?s=t:t&&C2(t[l])?s=t[l]:a.average&&C2(a.average[l])?s=a.average[l]:s=ww,i[l]=s(o,l)}return i},{mode:r})}var YQ={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:bw},toMode:{rgb:xw},interpolate:{h:{use:xr,fixup:ml},s:xr,l:xr,alpha:{use:xr,fixup:Ta}},difference:{h:z0},average:{h:yl}},Tw=YQ,GQ=({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),l={mode:n,l:e,c:i};return i&&(l.h=nn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},Vl=GQ,UQ=({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},Xl=UQ,Mw=Math.pow(29,3)/Math.pow(3,3),Aw=Math.pow(6,3)/Math.pow(29,3),wa={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},mf={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},uTe=Math.pow(29,3)/Math.pow(3,3),fTe=Math.pow(6,3)/Math.pow(29,3),L2=e=>Math.pow(e,3)>Aw?Math.pow(e,3):(116*e-16)/Mw,VQ=({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,l=n-t/200,o={mode:"xyz65",x:L2(i)*mf.X,y:L2(n)*mf.Y,z:L2(l)*mf.Z};return a!==void 0&&(o.alpha=a),o},y3=VQ,XQ=e=>Mo(y3(e)),I0=XQ,S2=e=>e>Aw?Math.cbrt(e):(Mw*e+16)/116,WQ=({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=S2(e/mf.X),i=S2(r/mf.Y),l=S2(t/mf.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},g3=WQ,ZQ=e=>{let r=g3(To(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},F0=ZQ,Ih=1,kw=1,R0=26/180*Math.PI,Fh=Math.cos(R0),Hh=Math.sin(R0),Cw=100/Math.log(139/100),$Q=({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*Ih/Cw)-1)/.0039},i=(Math.exp(.0435*r*kw*Ih)-1)/.075,l=i*Math.cos(t/180*Math.PI-R0),o=i*Math.sin(t/180*Math.PI-R0);return n.a=l*Fh-o/.83*Hh,n.b=l*Hh+o/.83*Fh,a!==void 0&&(n.alpha=a),n},Oh=$Q,JQ=({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*Fh+t*Hh,i=.83*(t*Fh-r*Hh),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:Cw/Ih*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*kw*Ih)};return o.c&&(o.h=nn((Math.atan2(i,n)+R0)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},Bh=JQ,Q8=e=>Oh(Vl(e,"dlch")),ew=e=>Xl(Bh(e),"dlab"),KQ={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Q8,rgb:e=>I0(Q8(e))},fromMode:{lab65:ew,rgb:e=>ew(F0(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:Ta}}},Lw=KQ,jQ={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Oh,dlab:e=>Xl(e,"dlab"),rgb:e=>I0(Oh(e))},fromMode:{lab65:Bh,dlab:e=>Vl(e,"dlch"),rgb:e=>Bh(F0(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:xr,c:xr,h:{use:xr,fixup:ml},alpha:{use:xr,fixup:Ta}},difference:{h:N0},average:{h:yl}},Sw=jQ;function qw({h:e,s:r,i:t,alpha:a}){e=nn(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 Dw({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),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.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&&(l.alpha=a),l}var QQ={mode:"hsi",toMode:{rgb:qw},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Dw},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:ml},s:xr,i:xr,alpha:{use:xr,fixup:Ta}},difference:{h:z0},average:{h:yl}},Ew=QQ;function Pw({h:e,s:r,l:t,alpha:a}){e=nn(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),l;switch(Math.floor(e/60)){case 0:l={r:n,g:i,b:2*t-n};break;case 1:l={r:i,g:n,b:2*t-n};break;case 2:l={r:2*t-n,g:n,b:i};break;case 3:l={r:2*t-n,g:i,b:n};break;case 4:l={r:i,g:2*t-n,b:n};break;case 5:l={r:n,g:2*t-n,b:i};break;default:l={r:2*t-n,g:2*t-n,b:2*t-n}}return l.mode="rgb",a!==void 0&&(l.alpha=a),l}function Rw({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),l={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(l.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&&(l.alpha=a),l}var eee=(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}},ree=eee,tee=new RegExp(`^hsla?\\(\\s*${jj}${yf}${E0}${yf}${E0}\\s*(?:,\\s*${p3}\\s*)?\\)$`),aee=e=>{let r=e.match(tee);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=ree(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},zw=aee;function nee(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Percentage)return;t.h=a.value}if(n.type!==fr.None){if(n.type===fr.Hue)return;t.s=n.value/100}if(i.type!==fr.None){if(i.type===fr.Hue)return;t.l=i.value/100}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var Nw=nee,iee={mode:"hsl",toMode:{rgb:Pw},fromMode:{rgb:Rw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Nw,zw],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:xr,fixup:ml},s:xr,l:xr,alpha:{use:xr,fixup:Ta}},difference:{h:z0},average:{h:yl}},b3=iee;function x3({h:e,s:r,v:t,alpha:a}){e=nn(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 _3({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),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.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&&(l.alpha=a),l}var lee={mode:"hsv",toMode:{rgb:x3},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:_3},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:ml},s:xr,v:xr,alpha:{use:xr,fixup:Ta}},difference:{h:z0},average:{h:yl}},w3=lee;function Iw({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 x3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function Fw(e){let r=_3(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 oee(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Percentage)return;t.h=a.value}if(n.type!==fr.None){if(n.type===fr.Hue)return;t.w=n.value/100}if(i.type!==fr.None){if(i.type===fr.Hue)return;t.b=i.value/100}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var Hw=oee,see={mode:"hwb",toMode:{rgb:Iw},fromMode:{rgb:Fw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Hw],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:xr,fixup:ml},w:xr,b:xr,alpha:{use:xr,fixup:Ta}},difference:{h:_w},average:{h:yl}},Ow=see,Bw=203,Xh=.1593017578125,Yw=78.84375,Wh=.8359375,Zh=18.8515625,$h=18.6875;function q2(e){if(e<0)return 0;let r=Math.pow(e,1/Yw);return 1e4*Math.pow(Math.max(0,r-Wh)/(Zh-$h*r),1/Xh)}function D2(e){if(e<0)return 0;let r=Math.pow(e/1e4,Xh);return Math.pow((Wh+Zh*r)/(1+$h*r),Yw)}var E2=e=>Math.max(e/Bw,0),uee=({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=q2(e+.008609037037932761*r+.11102962500302593*t),i=q2(e-.00860903703793275*r-.11102962500302599*t),l=q2(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:E2(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:E2(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:E2(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},K2=uee,P2=(e=0)=>Math.max(e*Bw,0),fee=({x:e,y:r,z:t,alpha:a})=>{let n=P2(e),i=P2(r),l=P2(t),o=D2(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=D2(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=D2(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,c=1.61376953125*o-3.323486328125*s+1.709716796875*u,v=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(h.alpha=a),h},j2=fee,cee={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:K2,rgb:e=>Mo(K2(e))},fromMode:{xyz65:j2,rgb:e=>j2(To(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:xr,t:xr,p:xr,alpha:{use:xr,fixup:Ta}}},Gw=cee,vee=134.03437499999998,dee=16295499532821565e-27,R2=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Xh);return Math.pow((Wh+Zh*r)/(1+$h*r),vee)},z2=(e=0)=>Math.max(e*203,0),hee=({x:e,y:r,z:t,alpha:a})=>{e=z2(e),r=z2(r),t=z2(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=R2(.41478972*n+.579999*i+.014648*t),o=R2(-.20151*n+1.120649*i+.0531008*t),s=R2(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-dee,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},T3=hee,pee=134.03437499999998,rw=16295499532821565e-27,N2=e=>{if(e<0)return 0;let r=Math.pow(e,1/pee);return 1e4*Math.pow((Wh-r)/($h*r-Zh),1/Xh)},I2=e=>e/203,mee=({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+rw)/(.44+.56*(e+rw)),i=N2(n+.13860504*r+.058047316*t),l=N2(n-.13860504*r-.058047316*t),o=N2(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:I2(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:I2(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:I2(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},M3=mee,yee=e=>{let r=T3(To(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},A3=yee,gee=e=>Mo(M3(e)),k3=gee,bee={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:A3,xyz65:T3},toMode:{rgb:k3,xyz65:M3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:xr,a:xr,b:xr,alpha:{use:xr,fixup:Ta}}},Uw=bee,xee=({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=nn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Q2=xee,_ee=({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},e3=_ee,wee={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:e3,rgb:e=>k3(e3(e))},fromMode:{rgb:e=>Q2(A3(e)),jab:Q2},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:xr,fixup:ml},c:xr,j:xr,alpha:{use:xr,fixup:Ta}},difference:{h:N0},average:{h:yl}},Vw=wee,Jh=Math.pow(29,3)/Math.pow(3,3),C3=Math.pow(6,3)/Math.pow(29,3),F2=e=>Math.pow(e,3)>C3?Math.pow(e,3):(116*e-16)/Jh,Tee=({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,l=n-t/200,o={mode:"xyz50",x:F2(i)*wa.X,y:F2(n)*wa.Y,z:F2(l)*wa.Z};return a!==void 0&&(o.alpha=a),o},Kh=Tee,Mee=({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=Os({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},xf=Mee,Aee=e=>xf(Kh(e)),L3=Aee,kee=e=>{let{r,g:t,b:a,alpha:n}=Hs(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},_f=kee,H2=e=>e>C3?Math.cbrt(e):(Jh*e+16)/116,Cee=({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=H2(e/wa.X),i=H2(r/wa.Y),l=H2(t/wa.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},jh=Cee,Lee=e=>{let r=jh(_f(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},S3=Lee;function See(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==fr.None&&(t.a=n.type===fr.Number?n.value:n.value*125/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value:i.value*125/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var Xw=See,qee={mode:"lab",toMode:{xyz50:Kh,rgb:L3},fromMode:{xyz50:jh,rgb:S3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Xw],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:xr,a:xr,b:xr,alpha:{use:xr,fixup:Ta}}},Qh=qee,Dee=Dt(vt({},Qh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:y3,rgb:I0},fromMode:{xyz65:g3,rgb:F0},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Ww=Dee;function Eee(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==fr.None&&(t.c=Math.max(0,n.type===fr.Number?n.value:n.value*150/100)),i.type!==fr.None){if(i.type===fr.Percentage)return;t.h=i.value}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var Zw=Eee,Pee={mode:"lch",toMode:{lab:Xl,rgb:e=>L3(Xl(e))},fromMode:{rgb:e=>Vl(S3(e)),lab:Vl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Zw],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:xr,fixup:ml},c:xr,l:xr,alpha:{use:xr,fixup:Ta}},difference:{h:N0},average:{h:yl}},e1=Pee,Ree=Dt(vt({},e1),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Xl(e,"lab65"),rgb:e=>I0(Xl(e,"lab65"))},fromMode:{rgb:e=>Vl(F0(e),"lch65"),lab65:e=>Vl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),$w=Ree,zee=({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=nn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},q3=zee,Nee=({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},D3=Nee,Jw=(e,r,t)=>4*e/(e+15*r+3*t),Kw=(e,r,t)=>9*r/(e+15*r+3*t),Iee=Jw(wa.X,wa.Y,wa.Z),Fee=Kw(wa.X,wa.Y,wa.Z),Hee=e=>e<=C3?Jh*e:116*Math.cbrt(e)-16,Oee=({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=Hee(r/wa.Y),i=Jw(e,r,t),l=Kw(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-Iee),l=13*n*(l-Fee));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},Yh=Oee,Bee=(e,r,t)=>4*e/(e+15*r+3*t),Yee=(e,r,t)=>9*r/(e+15*r+3*t),Gee=Bee(wa.X,wa.Y,wa.Z),Uee=Yee(wa.X,wa.Y,wa.Z),Vee=({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)+Gee,i=t/(13*e)+Uee,l=wa.Y*(e<=8?e/Jh:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},Gh=Vee,Xee=e=>q3(Yh(_f(e))),Wee=e=>xf(Gh(D3(e))),Zee={mode:"lchuv",toMode:{luv:D3,rgb:Wee},fromMode:{rgb:Xee,luv:q3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:xr,fixup:ml},c:xr,l:xr,alpha:{use:xr,fixup:Ta}},difference:{h:N0},average:{h:yl}},jw=Zee,$ee=Dt(vt({},Fs),{mode:"lrgb",toMode:{rgb:Os},fromMode:{rgb:Hs},parse:["srgb-linear"],serialize:"srgb-linear"}),Qw=$ee,Jee={mode:"luv",toMode:{xyz50:Gh,rgb:e=>xf(Gh(e))},fromMode:{xyz50:Yh,rgb:e=>Yh(_f(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:xr,u:xr,v:xr,alpha:{use:xr,fixup:Ta}}},eT=Jee,Kee=({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),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},E3=Kee,jee=e=>{let r=E3(Hs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H0=jee,Qee=({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),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},wf=Qee,ere=e=>Os(wf(e)),O0=ere;function r3(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Uh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function rre(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,y=1+f*v,m=1+f*h,b=p*p*p,_=y*y*y,w=m*m*m,x=3*c*p*p,M=3*v*y*y,A=3*h*m*m,k=6*c*c*p,S=6*v*v*y,D=6*h*h*m,E=o*b+s*_+u*w,R=o*x+s*M+u*A,N=o*k+s*S+u*D;f=f-E*R/(R*R-.5*E*N)}return f}function P3(e,r){let t=rre(e,r),a=wf({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 tre(e,r,t,a,n,i=null){i||(i=P3(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=o+s*u,h=o+s*f,p=o+s*c;{let y=n*(1-l)+l*t,m=l*a,b=y+m*u,_=y+m*f,w=y+m*c,x=b*b*b,M=_*_*_,A=w*w*w,k=3*v*b*b,S=3*h*_*_,D=3*p*w*w,E=6*v*v*b,R=6*h*h*_,N=6*p*p*w,O=4.0767416621*x-3.3077115913*M+.2309699292*A-1,F=4.0767416621*k-3.3077115913*S+.2309699292*D,I=4.0767416621*E-3.3077115913*R+.2309699292*N,Y=F/(F*F-.5*O*I),B=-O*Y,U=-1.2684380046*x+2.6097574011*M-.3413193965*A-1,X=-1.2684380046*k+2.6097574011*S-.3413193965*D,W=-1.2684380046*E+2.6097574011*R-.3413193965*N,V=X/(X*X-.5*U*W),J=-U*V,re=-.0041960863*x-.7034186147*M+1.707614701*A-1,ne=-.0041960863*k-.7034186147*S+1.707614701*D,de=-.0041960863*E-.7034186147*R+1.707614701*N,K=ne/(ne*ne-.5*re*de),ye=-re*K;B=Y>=0?B:1e6,J=V>=0?J:1e6,ye=K>=0?ye:1e6,l+=Math.min(B,Math.min(J,ye))}}}return l}function R3(e,r,t=null){t||(t=P3(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function rT(e,r,t){let a=P3(r,t),n=tre(r,t,e,1,e,a),i=R3(r,t,a),l=.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)))),o=.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*l,f=(1-e)*o,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 t3(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:r3(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[l,o,s]=rT(r,t/i,a/i),u;if(i<o){let f=0,c=.8*l,v=1-c/o;u=(i-f)/(c+v*(i-f))*.8}else{let f=o,c=.2*o*o*1.25*1.25/l,v=1-c/(s-o);u=.8+.2*((i-f)/(c+v*(i-f)))}return u&&(n.s=u,n.h=nn(Math.atan2(a,t)*180/Math.PI)),n}function a3(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:Uh(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),l=Math.sin(r/180*Math.PI),[o,s,u]=rT(n.l,i,l),f,c,v,h;t<.8?(f=1.25*t,c=0,v=.8*o,h=1-v/s):(f=5*(t-.8),c=s,v=.2*s*s*1.25*1.25/o,h=1-v/(u-s));let p=c+f*v/(1-h*f);return n.a=p*i,n.b=p*l,n}var are=Dt(vt({},b3),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:t3,rgb:e=>t3(H0(e))},toMode:{oklab:a3,rgb:e=>O0(a3(e))}}),tT=are;function n3(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,l=n?a/n:1,[o,s]=R3(i,l),u=.5,f=1-u/o,c=s/(n+r*s),v=c*r,h=c*n,p=Uh(v),y=h*p/v,m=wf({l:p,a:i*y,b:l*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));r=r/b,n=n/b*r3(r)/r,r=r3(r);let _={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/v:0};return _.s&&(_.h=nn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(_.alpha=e.alpha),_}function i3(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),l=Math.sin(t/180*Math.PI),[o,s]=R3(i,l),u=.5,f=1-u/o,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),h=Uh(c),p=v*h/c,y=wf({l:h,a:i*p,b:l*p}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=Uh(n*c),_=v*b/c;return r.l=b*m,r.a=_*i*m,r.b=_*l*m,r}var nre=Dt(vt({},w3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:n3,rgb:e=>n3(H0(e))},toMode:{oklab:i3,rgb:e=>O0(i3(e))}}),aT=nre;function ire(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.l=Math.min(Math.max(0,a.type===fr.Number?a.value:a.value/100),1)),n.type!==fr.None&&(t.a=n.type===fr.Number?n.value:n.value*.4/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value:i.value*.4/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var nT=ire,lre=Dt(vt({},Qh),{mode:"oklab",toMode:{lrgb:wf,rgb:O0},fromMode:{lrgb:E3,rgb:H0},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[nT],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}`:""})`}),iT=lre;function ore(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Hue)return;t.l=Math.min(Math.max(0,a.type===fr.Number?a.value:a.value/100),1)}if(n.type!==fr.None&&(t.c=Math.max(0,n.type===fr.Number?n.value:n.value*.4/100)),i.type!==fr.None){if(i.type===fr.Percentage)return;t.h=i.value}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var lT=ore,sre=Dt(vt({},e1),{mode:"oklch",toMode:{oklab:e=>Xl(e,"oklab"),rgb:e=>O0(Xl(e,"oklab"))},fromMode:{rgb:e=>Vl(H0(e),"oklch"),oklab:e=>Vl(e,"oklch")},parse:[lT],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]}}),oT=sre,ure=e=>{let{r,g:t,b:a,alpha:n}=Hs(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},l3=ure,fre=({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=Os({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},o3=fre,cre=Dt(vt({},Fs),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>o3(To(e)),xyz65:o3},toMode:{rgb:e=>Mo(l3(e)),xyz65:l3}}),sT=cre,O2=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},vre=({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:O2(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:O2(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:O2(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},s3=vre,B2=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},dre=e=>{let r=B2(e.r),t=B2(e.g),a=B2(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},u3=dre,hre=Dt(vt({},Fs),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:s3,rgb:e=>s3(_f(e))},toMode:{xyz50:u3,rgb:e=>xf(u3(e))}}),uT=hre,tw=1.09929682680944,pre=.018053968510807,Y2=e=>{let r=Math.abs(e);return r>pre?(Math.sign(e)||1)*(tw*Math.pow(r,.45)-(tw-1)):4.5*e},mre=({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:Y2(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Y2(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Y2(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},f3=mre,aw=1.09929682680944,yre=.018053968510807,G2=(e=0)=>{let r=Math.abs(e);return r<yre*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+aw-1)/aw,1/.45)},gre=e=>{let r=G2(e.r),t=G2(e.g),a=G2(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},c3=gre,bre=Dt(vt({},Fs),{mode:"rec2020",fromMode:{xyz65:f3,rgb:e=>f3(To(e))},toMode:{xyz65:c3,rgb:e=>Mo(c3(e))},parse:["rec2020"],serialize:"rec2020"}),fT=bre,Ns=.0037930732552754493,cT=Math.cbrt(Ns),U2=e=>Math.cbrt(e)-cT,xre=e=>{let{r,g:t,b:a,alpha:n}=Hs(e),i=U2(.3*r+.622*t+.078*a+Ns),l=U2(.23*r+.692*t+.078*a+Ns),o=U2(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Ns),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},vT=xre,V2=e=>Math.pow(e+cT,3),_re=({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=V2(e+r)-Ns,i=V2(r-e)-Ns,l=V2(t+r)-Ns,o=Os({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},dT=_re,wre={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:dT},fromMode:{rgb:vT},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:xr,y:xr,b:xr,alpha:{use:xr,fixup:Ta}}},hT=wre,Tre={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:xf,lab:jh},fromMode:{rgb:_f,lab:Kh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:Ta}}},pT=Tre,Mre=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},mT=Mre,Are=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},yT=Are,kre={mode:"xyz65",toMode:{rgb:Mo,xyz50:mT},fromMode:{rgb:To,xyz50:yT},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:xr,y:xr,z:xr,alpha:{use:xr,fixup:Ta}}},gT=kre,Cre=({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},bT=Cre,Lre=({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},xT=Lre,Sre={mode:"yiq",toMode:{rgb:xT},fromMode:{rgb:bT},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:xr,i:xr,q:xr,alpha:{use:xr,fixup:Ta}}},_T=Sre,qre=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,Dre=(e=4)=>r=>typeof r=="number"?qre(r,e):r,wT=Dre,D0=wT(2),P0=e=>Math.max(0,Math.min(1,e||0)),Is=e=>Math.round(P0(e)*255),z3=At("rgb"),Ere=At("hsl"),N3=e=>{if(e===void 0)return;let r=Is(e.r),t=Is(e.g),a=Is(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},TT=e=>{if(e===void 0)return;let r=Is(e.alpha!==void 0?e.alpha:1);return N3(e)+(256|r).toString(16).slice(1)},MT=e=>{if(e===void 0)return;let r=Is(e.r),t=Is(e.g),a=Is(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${D0(P0(e.alpha))})`},AT=e=>{if(e===void 0)return;let r=D0(e.h||0),t=D0(P0(e.s)*100)+"%",a=D0(P0(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${D0(P0(e.alpha))})`},Pre=e=>{let r=Hi(e);if(!r)return;let t=dn(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)},Rre=e=>N3(z3(e)),zre=e=>TT(z3(e)),Nre=e=>MT(z3(e)),Ire=e=>AT(Ere(e)),Fre={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},Hre=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Fre[r],n=At(t),i=dn(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-o.alpha)*s[c]+s.alpha*o.alpha*a(o[c],s[c])+(1-s.alpha)*o.alpha*o[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},Ore=Hre,Bre=([e,r])=>e+Math.random()*(r-e),Yre=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Gre=(e="rgb",r={})=>{let t=dn(e),a=Yre(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Bre(a[i]||t.ranges[i])),n),{mode:e})},Ure=Gre,B0=(e,r="rgb",t=!1)=>{let a=r?dn(r).channels:null,n=r?At(r):Hi;return i=>{let l=n(i);if(!l)return;let o=(a||dn(l.mode).channels).reduce((u,f)=>{let c=e(l[f],f,l,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:l.mode});if(!t)return o;let s=Hi(i);return s&&s.mode!==o.mode?At(s.mode)(o):o}},kT=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,CT=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,I3=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Vre=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Xre=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},Wre=Xre,Zre=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),LT=Zre,Rh=e=>typeof e=="function",Rs=e=>e&&typeof e=="object",nw=e=>typeof e=="number",ST=(e,r="rgb",t,a)=>{let n=dn(r),i=At(r),l=[],o=[],s={};e.forEach(v=>{Array.isArray(v)?(l.push(i(v[0])),o.push(v[1])):nw(v)||Rh(v)?s[o.length]=v:(l.push(i(v)),o.push(void 0))}),Wre(o);let u=n.channels.reduce((v,h)=>{let p;return Rs(t)&&Rs(t[h])&&t[h].fixup?p=t[h].fixup:Rs(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=y=>y,v[h]=p(l.map(y=>y[h])),v},{});if(a){let v=l.map((h,p)=>n.channels.reduce((y,m)=>(y[m]=u[m][p],y),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=v.map(y=>{let m=a(y[p],p,y,r);return isNaN(m)?void 0:m}),h),{})}let f=n.channels.reduce((v,h)=>{let p;return Rh(t)?p=t:Rs(t)&&Rh(t[h])?p=t[h]:Rs(t)&&Rs(t[h])&&t[h].use?p=t[h].use:Rh(n.interpolate[h])?p=n.interpolate[h]:Rs(n.interpolate[h])&&(p=n.interpolate[h].use),v[h]=p(u[h]),v},{}),c=l.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=o[0])return l[0];if(v>o[c])return l[c];let h=0;for(;o[h]<v;)h++;let p=o[h-1],y=o[h]-p,m=(v-p)/y,b=s[h]||s[0];b!==void 0&&(nw(b)&&(b=LT((b-p)/y)),m=b(m));let _=(h-1+m)/c;return n.channels.reduce((w,x)=>{let M=f[x](_);return M!==void 0&&(w[x]=M),w},{mode:r})}},$re=(e,r="rgb",t)=>ST(e,r,t),qT=(e,r)=>(t,a="rgb",n)=>{let i=r?B0(r,a):void 0,l=ST(t,a,n,e);return i?o=>i(l(o)):l},Jre=qT(kT,CT),zh=(e,r)=>(e+r)%r,DT=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},ET=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return DT(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)},PT=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return DT(e[zh(a-1,e.length)],e[zh(a,e.length)],e[zh(a+1,e.length)],e[zh(a+2,e.length)],(r-a/t)*t)},RT=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},Kre=e=>ET(RT(e)),jre=e=>PT(RT(e)),pf=Math.sign,v3=Math.min,Vn=Math.abs,F3=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?(pf(t[i-1])+pf(t[i]))*v3(Vn(t[i-1]),Vn(t[i]),.5*Vn(a[i])):void 0);return[t,a,n]},H3=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},Qre=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,,a]=F3(e);return a[0]=t[0],a[r]=t[r-1],H3(e,a,t)},ete=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,a,n]=F3(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:Vn(a[0])>2*Vn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:Vn(a[r])>2*Vn(t[r-1])?2*t[r-1]:a[r],H3(e,n,t)},rte=e=>{let r=e.length-1,[t,a,n]=F3(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,l=i;return n[0]=(pf(i)+pf(t[0]))*v3(Vn(i),Vn(t[0]),.5*Vn(a[0])),n[r]=(pf(t[r-1])+pf(l))*v3(Vn(t[r-1]),Vn(l),.5*Vn(a[r])),H3(e,n,t)},tte=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),zT=tte,ate=(e=2,r=1)=>{let t=zT(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},nte=ate,NT=At("rgb"),IT=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},FT=e=>IT(NT(e)),HT=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 O3(e){return HT(NT(e))}function r1(e="rgb"){let{gamut:r}=dn(e);if(!r)return a=>!0;let t=At(typeof r=="string"?r:e);return a=>HT(t(a))}function ite(e){return e=Hi(e),e===void 0||O3(e)?e:At(e.mode)(FT(e))}function B3(e="rgb"){let{gamut:r}=dn(e);if(!r)return i=>Hi(i);let t=typeof r=="string"?r:e,a=At(t),n=r1(t);return i=>{let l=Hi(i);if(!l)return;let o=a(l);if(n(o))return l;let s=IT(o);return l.mode===s.mode?s:At(l.mode)(s)}}function lte(e,r="lch",t="rgb"){e=Hi(e);let a=t==="rgb"?O3:r1(t),n=t==="rgb"?FT:B3(t);if(e===void 0||a(e))return e;let i=At(e.mode);e=At(r)(e);let l=Dt(vt({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=dn(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(c=l.c,o=l.c):s=l.c;return i(a(l)?l:Dt(vt({},l),{c}))}function ote(e="rgb",r="oklch",t=bf("oklch"),a=.02){let n=At(e),i=dn(e);if(!i.gamut)return f=>n(f);let l=r1(e),o=B3(e),s=At(r),{ranges:u}=dn(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Hi(f),f===void 0)return;let c=vt({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let m=Dt(vt({},i.white),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(c.l<=u.l[0]){let m=Dt(vt({},i.black),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(l(c))return n(c);let v=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,y=o(c);for(;h-v>p;)c.c=(v+h)*.5,y=o(c),l(c)||t&&a>0&&t(c,y)<=a?v=c.c:h=c.c;return n(l(c)?c:y)}}var ste=(e,r=bf(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.d<l).map(o=>e[o.i]))},ute=ste,Y3=e=>Math.max(e,0),G3=e=>Math.max(Math.min(e,1),0),fte=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),cte=e=>{let r=1-G3(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]},vte=e=>{let r=Y3(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]},dte=e=>{let r=1-G3(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]},hte=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]},t1=(e,r,t=!1)=>{let a=At(r),n=dn(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let c=0;c<e.length;c++)s=n[Math.floor(c/u)],l[s]!==void 0&&(o[s]=(o[s]||0)+e[c]*(l[n[c%u]]||0));if(!t)return o;let f=Hi(i);return f&&o.mode!==f.mode?At(f.mode)(o):o}},pte=(e=1,r="rgb")=>{let t=Y3(e);return B0(I3(t),r,!0)},mte=(e=1,r="rgb")=>{let t=Y3(e);return B0(I3(t,(1-t)/2),r,!0)},yte=(e=1,r="rgb")=>t1(cte(e),r,!0),gte=(e=1,r="rgb")=>t1(vte(e),r,!0),bte=(e=1,r="rgb")=>t1(dte(e),r,!0),xte=(e=1,r="rgb")=>{let t=G3(e);return B0((a,n)=>n==="alpha"?a:fte(t,1-t,a),r,!0)},_te=(e=0,r="rgb")=>t1(hte(e),r,!0),wte=At("rgb"),Tte=[[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]],Mte=[[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]],Ate=[[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]],U3=(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 l=e[a+1];i=i.map((o,s)=>zs(i[s],l[s],n))}return l=>{let o=Hi(l);if(o===void 0)return;let{r:s,g:u,b:f}=wte(o),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 o.alpha!==void 0&&(c.alpha=o.alpha),At(o.mode)(c)}},kte=(e=1)=>U3(Tte,e),Cte=(e=1)=>U3(Mte,e),Lte=(e=1)=>U3(Ate,e),Ste=e=>e*e*(3-2*e),qte=e=>.5-Math.sin(Math.asin(1-2*e)/3),Dte=e=>e*e*e*(e*(e*6-15)+10),Ete=Dte,Pte=e=>(1-Math.cos(e*Math.PI))/2,Rte=Pte;function d3(e){let r=At("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function zte(e,r){let t=d3(e),a=d3(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var Nte=pt(gw),Ite=pt(Tw),Fte=pt(Lw),Hte=pt(Sw),Ote=pt(Ew),Bte=pt(b3),Yte=pt(w3),Gte=pt(Ow),Ute=pt(Gw),Vte=pt(Uw),Xte=pt(Vw),Wte=pt(Qh),Zte=pt(Ww),$te=pt(e1),Jte=pt($w),Kte=pt(jw),jte=pt(Qw),Qte=pt(eT),eae=pt(tT),rae=pt(aT),tae=pt(iT),aae=pt(oT),nae=pt(sT),iae=pt(uT),lae=pt(fT),oae=pt(Fs),sae=pt(hT),uae=pt(pT),fae=pt(gT),cae=pt(_T)});var V3={};ht(V3,{default:()=>dae});var vae,dae,X3=lt(()=>{"use strict";vae={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(" ")}},dae=vae});var Ao=G((hTe,XT)=>{"use strict";var{format:hae,width:pae,height:mae,scale:yae}=(X3(),Ne(V3)).default,YT=yae,{dflt:dTe}=YT,gae=c8(YT,["dflt"]),GT={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:hae,filename:{valType:"string"},width:pae,height:mae,scale:gae},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:{}}},UT={};function VT(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]={}),VT(a,r[t])))}}VT(GT,UT);XT.exports={configAttributes:GT,dfltConfig:UT}});var Z3=G((mTe,WT)=>{"use strict";var W3=Er(),bae=Ur(),Y0=[];WT.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||Y0.indexOf(e)!==-1)return;Y0.push(e);var a=1e3;bae(r)?a=r:r==="long"&&(a=3e3);var n=W3.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(Y0);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=Y0.indexOf(u);f!==-1&&Y0.splice(f,1),W3.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=W3.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(/<br\s*\/?>/g),v=0;v<c.length;v++)v&&f.append("br"),f.append("span").text(c[v]);r==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(a).call(l)})}});var ko=G((yTe,ZT)=>{"use strict";var Tf=Ao().dfltConfig,$3=Z3(),J3=ZT.exports={};J3.log=function(){var e;if(Tf.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Tf.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);$3(t.join("<br>"),"long")}};J3.warn=function(){var e;if(Tf.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Tf.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);$3(t.join("<br>"),"stick")}};J3.error=function(){var e;if(Tf.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(Tf.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);$3(t.join("<br>"),"stick")}}});var vi=G(Bs=>{"use strict";Bs.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bs.defaultLine="#444";Bs.lightLine="#eee";Bs.background="#fff";Bs.borderLine="#BEC8D9";Bs.lightFraction=1e3/11});var kr=G((bTe,aM)=>{"use strict";var{converter:$T,formatHex:xae,formatRgb:_ae,wcagContrast:wae,wcagLuminance:Tae}=BT(),{isArrayOrTypedArray:JT}=Dn(),{warn:Mae}=ko(),{background:U0,defaultLine:Q3,defaults:Aae,lightLine:kae}=vi(),KT=$T("rgb"),Cae=$T("hsl"),jT=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return KT(r)}catch(t){return}},hn=e=>e>0?e>1?1:e:0,Lae={mode:"rgb",r:0,g:0,b:0,alpha:1},K3=e=>Math.round(e*255e6)/255e6,QT=e=>Dt(vt({},e),{r:K3(e.r),g:K3(e.g),b:K3(e.b)}),Xn=e=>_ae(QT(e)),Sae=e=>xae(QT(e)),qae=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:JT(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}`},Vt=(e,r)=>{var a;let t=jT(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&Mae(`Invalid color specifier: ${qae(e)}. Defaulting to "#000"`),Lae)},G0=e=>Xn(Dt(vt({},Vt(e)),{alpha:1})),Dae=e=>e?Vt(e).alpha:0,eM=e=>JT(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),Eae=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},Pae=(e,r)=>{let t=eM(e)?Eae(e):Vt(e,!0),a=[hn(t.r),hn(t.g),hn(t.b),hn(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},Rae=(e,r)=>Xn(Dt(vt({},Vt(e)),{alpha:hn(r)})),rM=(e,r)=>{let t=Vt(e),a=t.alpha;if(a===1)return Xn(t);let n=Vt(r||U0),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return Xn({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},zae=(e,r,t)=>{let a=Vt(e),n=Vt(r),i=(l,o)=>t*l+(1-t)*o;return Xn({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},j3=(e,r)=>{let t=Vt(e),a=Cae(t)||{mode:"hsl",h:0,s:0,l:0};return Xn(KT(Dt(vt({},a),{l:hn((a.l*100+r)/100),alpha:t.alpha})))},a1=(e,r)=>wae(Vt(e),Vt(r)),tM=e=>a1(e,U0)>a1(e,Q3),Nae=Xn(Vt(U0)),Iae=Xn(Vt(Q3)),Fae=(e,r,t)=>(Vt(e).alpha!==1&&(e=rM(e,U0)),tM(e)?r?j3(e,r):Nae:t?j3(e,-t):Iae),Hae=(e,r)=>{e.style({stroke:G0(r),"stroke-opacity":Vt(r).alpha})},Oae=(e,r)=>{e.style({fill:G0(r),"fill-opacity":Vt(r).alpha})},Bae=(e,r)=>!!(e&&r&&G0(e)===G0(r)),Yae=e=>jT(e)!==void 0,Gae=(e,r)=>{r=r===0?0:r||10;let t=Vt(e),a=r/100;return Xn(Dt(vt({},t),{r:hn(t.r+a),g:hn(t.g+a),b:hn(t.b+a)}))},Uae=(e,r,t)=>{let a=Vt(e),n=Vt(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return Xn({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})},Vae=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=a1(e,n);i>a&&(a=i,t=Xn(Vt(n)))}return t},Xae=e=>Xn(Vt(e)),Wae=e=>Sae(Vt(e)).toUpperCase(),Zae=e=>{let r=Vt(e);return[hn(r.r)*255,hn(r.g)*255,hn(r.b)*255,hn(r.alpha)]},$ae=([e,r,t,a])=>Xn({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Jae=e=>{let r=Vt(e);return Tae({mode:"rgb",r:hn(r.r),g:hn(r.g),b:hn(r.b)})};aM.exports={addOpacity:Rae,adjustLightness:j3,background:U0,brighten:Gae,combine:rM,contrast:Fae,defaultLine:Q3,defaults:Aae,equals:Bae,fill:Oae,hexString:Wae,interpolate:zae,isChannelArray:eM,isDark:tM,isValid:Yae,lightLine:kae,luminosity:Jae,mix:Uae,mostReadable:Vae,normalize:Pae,opacity:Dae,parse:Vt,rgb:G0,rgbaArray:Zae,rgbaArrayToString:$ae,rgbaString:Xae,stroke:Hae,wcagContrast:a1}});var Ys=G((_Te,lM)=>{"use strict";var Kae=kr(),n1={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)"]]},nM=n1.RdBu;function jae(e,r){if(r||(r=nM),!e)return r;function t(){try{e=n1[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),iM(e)?e:r}function iM(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||!Kae.isValid(a[1]))return!1;r=+a[0]}return!0}function Qae(e){return n1[e]!==void 0?!0:iM(e)}lM.exports={scales:n1,defaultScale:nM,get:jae,isValid:Qae}});var Mf={};ht(Mf,{DESELECTDIM:()=>tne,HIDE_PLACEHOLDER:()=>rne,SHOW_PLACEHOLDER:()=>ene});var ene,rne,tne,Af=lt(()=>{"use strict";ene=100,rne=1e3,tne=.2});var V0={};ht(V0,{counter:()=>Gs});function Gs(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+e5+"y"+e5+n):new RegExp(i+e+e5+n)}var e5,kf=lt(()=>{"use strict";e5="([2-9]|[1-9][0-9]+)?"});var uM=G(Rn=>{"use strict";var r5=Ur(),oM=Mt().extendFlat,ane=En(),nne=Ys(),t5=kr(),ine=(Af(),Ne(Mf)).DESELECTDIM,Cf=Sh(),sM=(kf(),Ne(V0)).counter,lne=(df(),Ne(vf)).modHalf,Oi=Dn().isArrayOrTypedArray,Co=Dn().isTypedArraySpec,Lo=Dn().decodeTypedArraySpec;Rn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Oi(e)?e:Co(e)?Lo(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){Co(e)&&(e=Lo(e)),!r5(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}Co(e)&&(e=Lo(e)),e%1||!r5(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){Co(e)&&(e=Lo(e)),t5.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=>t5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(nne.get(e,t))}},angle:{coerceFunction:function(e,r,t){Co(e)&&(e=Lo(e)),e==="auto"?r.set("auto"):r5(e)?r.set(lne(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||sM(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Oi(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:!!sM(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 l=n[i];a.flags.indexOf(l)===-1||n.indexOf(l)<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(Co(e)?Lo(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(_,w,x){var M,A={set:function(k){M=k}};return x===void 0&&(x=w.dflt),Rn.valObjectMeta[w.valType].coerceFunction(_,A,x,w),M}if(Co(e)&&(e=Lo(e)),!Oi(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Oi(e[0]),l=a.items,o=[],s=Array.isArray(l),u=s&&i&&Oi(l[0]),f=i&&s&&!u,c=s&&!f?l.length:e.length,v,h,p,y,m,b;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(o[v]=[],p=Oi(e[v])?e[v]:[],f?m=l.length:s?m=l[v].length:m=p.length,h=0;h<m;h++)f?y=l[h]:s?y=l[v][h]:y=l,b=n(p[h],y,(t[v]||[])[h]),b!==void 0&&(o[v][h]=b);else for(v=0;v<c;v++)b=n(e[v],s?l[v]:l,t[v]),b!==void 0&&(o[v]=b);r.set(o)},validateFunction:function(e,r){if(!Oi(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(!Oi(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var l=0;l<e[i].length;l++)if(!i1(e[i][l],a?t[i][l]:t))return!1}else if(!i1(e[i],a?t[i]:t))return!1;return!0}}};Rn.coerce=function(e,r,t,a,n){var i=Cf(t,a).get(),l=Cf(e,a),o=Cf(r,a),s=l.get(),u=r._template;if(s===void 0&&u&&(s=Cf(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Oi(s))return o.set(s),s;if(Co(s))return s=Lo(s),o.set(s),s}var f=Rn.valObjectMeta[i.valType].coerceFunction;f(s,o,n,i);var c=o.get();return u&&c===n&&!i1(s,i)&&(s=Cf(u,a).get(),f(s,o,n,i),c=o.get()),c};Rn.coerce2=function(e,r,t,a,n){var i=Cf(e,a),l=Rn.coerce(e,r,t,a,n),o=i.get();return o!=null?l:!1};Rn.coerceFont=function(e,r,t,a){a||(a={}),t=oM({},t),t=oM(t,a.overrideDflt||{});var n={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};Rn.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 l=e(r+".fillmode"),o=l==="overlay";if(!a){var s=e(r+".bgcolor",o?t:void 0);e(r+".fgcolor",o?t5.contrast(s):t)}e(r+".fgopacity",o?.5:1)}};Rn.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:ane,i=n.hoverinfo,l;if(t._dataLength===1){var o=i.dflt==="all"?i.flags.slice():i.dflt.split("+");o.splice(o.indexOf("name"),1),l=o.join("+")}return Rn.coerce(e,r,n,"hoverinfo",l)};Rn.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Oi(t)&&!e.selected&&!e.unselected&&(a=t,n=ine*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function i1(e,r){var t=Rn.valObjectMeta[r.valType];if(r.arrayOk&&Oi(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(l){n=l}};return t.coerceFunction(e,i,a,r),n!==a}Rn.validate=i1});var l1=G((TTe,fM)=>{"use strict";fM.exports=function(){}});var a5=G((MTe,cM)=>{"use strict";cM.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 dM=G((ATe,vM)=>{vM.exports=one;function one(){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 pM=G((kTe,hM)=>{hM.exports=sne;function sne(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=G((CTe,mM)=>{mM.exports=une;function une(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 n5=G((LTe,gM)=>{gM.exports=fne;function fne(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 xM=G((STe,bM)=>{bM.exports=cne;function cne(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=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]=l,e[14]=o}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 wM=G((qTe,_M)=>{_M.exports=vne;function vne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],y=r[13],m=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,M=a*s-n*o,A=a*u-i*o,k=n*u-i*s,S=f*y-c*p,D=f*m-v*p,E=f*b-h*p,R=c*m-v*y,N=c*b-h*y,O=v*b-h*m,F=_*O-w*N+x*R+M*E-A*D+k*S;return F?(F=1/F,e[0]=(o*O-s*N+u*R)*F,e[1]=(n*N-a*O-i*R)*F,e[2]=(y*k-m*A+b*M)*F,e[3]=(v*A-c*k-h*M)*F,e[4]=(s*E-l*O-u*D)*F,e[5]=(t*O-n*E+i*D)*F,e[6]=(m*x-p*k-b*w)*F,e[7]=(f*k-v*x+h*w)*F,e[8]=(l*N-o*E+u*S)*F,e[9]=(a*E-t*N-i*S)*F,e[10]=(p*A-y*x+b*_)*F,e[11]=(c*x-f*A-h*_)*F,e[12]=(o*D-l*R-s*S)*F,e[13]=(t*R-a*D+n*S)*F,e[14]=(y*w-p*M-m*_)*F,e[15]=(f*M-c*w+v*_)*F,e):null}});var MM=G((DTe,TM)=>{TM.exports=dne;function dne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=o*(v*b-h*m)-c*(s*b-u*m)+y*(s*h-u*v),e[1]=-(a*(v*b-h*m)-c*(n*b-i*m)+y*(n*h-i*v)),e[2]=a*(s*b-u*m)-o*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*h-u*v)-o*(n*h-i*v)+c*(n*u-i*s)),e[4]=-(l*(v*b-h*m)-f*(s*b-u*m)+p*(s*h-u*v)),e[5]=t*(v*b-h*m)-f*(n*b-i*m)+p*(n*h-i*v),e[6]=-(t*(s*b-u*m)-l*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*h-u*v)-l*(n*h-i*v)+f*(n*u-i*s),e[8]=l*(c*b-h*y)-f*(o*b-u*y)+p*(o*h-u*c),e[9]=-(t*(c*b-h*y)-f*(a*b-i*y)+p*(a*h-i*c)),e[10]=t*(o*b-u*y)-l*(a*b-i*y)+p*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*m-v*y)-f*(o*m-s*y)+p*(o*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(o*m-s*y)-l*(a*m-n*y)+p*(a*s-n*o)),e[15]=t*(o*v-s*c)-l*(a*v-n*c)+f*(a*s-n*o),e}});var kM=G((ETe,AM)=>{AM.exports=hne;function hne(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],h=e[12],p=e[13],y=e[14],m=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,M=t*s-n*l,A=a*s-n*o,k=u*p-f*h,S=u*y-c*h,D=u*m-v*h,E=f*y-c*p,R=f*m-v*p,N=c*m-v*y;return b*N-_*R+w*E+x*D-M*S+A*k}});var LM=G((PTe,CM)=>{CM.exports=pne;function pne(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],h=r[10],p=r[11],y=r[12],m=r[13],b=r[14],_=r[15],w=t[0],x=t[1],M=t[2],A=t[3];return e[0]=w*a+x*o+M*c+A*y,e[1]=w*n+x*s+M*v+A*m,e[2]=w*i+x*u+M*h+A*b,e[3]=w*l+x*f+M*p+A*_,w=t[4],x=t[5],M=t[6],A=t[7],e[4]=w*a+x*o+M*c+A*y,e[5]=w*n+x*s+M*v+A*m,e[6]=w*i+x*u+M*h+A*b,e[7]=w*l+x*f+M*p+A*_,w=t[8],x=t[9],M=t[10],A=t[11],e[8]=w*a+x*o+M*c+A*y,e[9]=w*n+x*s+M*v+A*m,e[10]=w*i+x*u+M*h+A*b,e[11]=w*l+x*f+M*p+A*_,w=t[12],x=t[13],M=t[14],A=t[15],e[12]=w*a+x*o+M*c+A*y,e[13]=w*n+x*s+M*v+A*m,e[14]=w*i+x*u+M*h+A*b,e[15]=w*l+x*f+M*p+A*_,e}});var qM=G((RTe,SM)=>{SM.exports=mne;function mne(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,v,h,p,y,m,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]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],h=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=h,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+h*n+b*i+r[15]),e}});var EM=G((zTe,DM)=>{DM.exports=yne;function yne(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 RM=G((NTe,PM)=>{PM.exports=gne;function gne(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,v,h,p,y,m,b,_,w,x,M,A,k,S,D,E,R,N,O,F,I;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],h=r[2],p=r[3],y=r[4],m=r[5],b=r[6],_=r[7],w=r[8],x=r[9],M=r[10],A=r[11],k=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,O=n*l*f+i*s,F=i*l*f-n*s,I=l*l*f+u,e[0]=c*k+y*S+w*D,e[1]=v*k+m*S+x*D,e[2]=h*k+b*S+M*D,e[3]=p*k+_*S+A*D,e[4]=c*E+y*R+w*N,e[5]=v*E+m*R+x*N,e[6]=h*E+b*R+M*N,e[7]=p*E+_*R+A*N,e[8]=c*O+y*F+w*I,e[9]=v*O+m*F+x*I,e[10]=h*O+b*F+M*I,e[11]=p*O+_*F+A*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var NM=G((ITe,zM)=>{zM.exports=bne;function bne(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=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]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=v*n-s*a,e}});var FM=G((FTe,IM)=>{IM.exports=xne;function xne(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=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]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+v*n,e}});var OM=G((HTe,HM)=>{HM.exports=_ne;function _ne(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=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]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=v*n-s*a,e}});var YM=G((OTe,BM)=>{BM.exports=wne;function wne(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var UM=G((BTe,GM)=>{GM.exports=Tne;function Tne(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,v=a*u,h=n*s,p=n*u,y=i*u,m=l*o,b=l*s,_=l*u;return e[0]=1-(h+y),e[1]=c+_,e[2]=v-b,e[3]=0,e[4]=c-_,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,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 XM=G((YTe,VM)=>{VM.exports=Mne;function Mne(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 ZM=G((GTe,WM)=>{WM.exports=Ane;function Ane(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 JM=G((UTe,$M)=>{$M.exports=kne;function kne(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 jM=G((VTe,KM)=>{KM.exports=Cne;function Cne(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 eA=G((XTe,QM)=>{QM.exports=Lne;function Lne(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 tA=G((WTe,rA)=>{rA.exports=Sne;function Sne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,v=n*l,h=n*o,p=n*s,y=i*l,m=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=h+y,e[7]=0,e[8]=v+m,e[9]=h-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nA=G((ZTe,aA)=>{aA.exports=qne;function qne(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,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)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var lA=G(($Te,iA)=>{iA.exports=Dne;function Dne(e,r,t,a,n){var i=1/Math.tan(r/2),l=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)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var sA=G((JTe,oA)=>{oA.exports=Ene;function Ene(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),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]=-((l-o)*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 fA=G((KTe,uA)=>{uA.exports=Pne;function Pne(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,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)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var vA=G((jTe,cA)=>{var Rne=n5();cA.exports=zne;function zne(e,r,t,a){var n,i,l,o,s,u,f,c,v,h,p=r[0],y=r[1],m=r[2],b=a[0],_=a[1],w=a[2],x=t[0],M=t[1],A=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(m-A)<1e-6?Rne(e):(f=p-x,c=y-M,v=m-A,h=1/Math.sqrt(f*f+c*c+v*v),f*=h,c*=h,v*=h,n=_*v-w*c,i=w*f-b*v,l=b*c-_*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-v*i,s=v*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+l*m),e[13]=-(o*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var hA=G((QTe,dA)=>{dA.exports=Nne;function Nne(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 i5=G((eMe,pA)=>{pA.exports={create:dM(),clone:pM(),copy:yM(),identity:n5(),transpose:xM(),invert:wM(),adjoint:MM(),determinant:kM(),multiply:LM(),translate:qM(),scale:EM(),rotate:RM(),rotateX:NM(),rotateY:FM(),rotateZ:OM(),fromRotation:YM(),fromRotationTranslation:UM(),fromScaling:XM(),fromTranslation:ZM(),fromXRotation:JM(),fromYRotation:jM(),fromZRotation:eA(),fromQuat:tA(),frustum:nA(),perspective:lA(),perspectiveFromFieldOfView:sA(),ortho:fA(),lookAt:vA(),str:hA()}});var o1=G(aa=>{"use strict";var Ine=i5();aa.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};aa.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};aa.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]=aa.dot(e[n],r);else if(r[0].length){var i=aa.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=aa.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};aa.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};aa.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]]};aa.rotationXYMatrix=function(e,r,t){return aa.dot(aa.dot(aa.translationMatrix(r,t),aa.rotationMatrix(e)),aa.translationMatrix(-r,-t))};aa.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return aa.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};aa.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 aa.dot(e,[t[0],t[1],1]).slice(0,2)}};aa.apply2DTransform2=function(e){var r=aa.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};aa.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]};aa.inverseTransformMatrix=function(e){var r=[];return Ine.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 X0=G((tMe,_A)=>{"use strict";var Fne=Er(),mA=ko(),Hne=o1(),One=i5();function Bne(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 Yne(e){var r=Fne.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 Gne(e,r){gA("global",e,r)}function gA(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):mA.warn("addStyleRule failed"):mA.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Une(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&yA(t)}function Vne(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:l,inactiveStyleParts:o},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 Xne(e){var r=xA(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=bA(a);if(n){var i=Hne.convertCssMatrix(n);t=One.multiply(t,t,i)}}),t}function bA(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 xA(e){for(var r=[];Wne(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Wne(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Zne(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}_A.exports={getGraphDiv:Bne,isPlotDiv:Yne,removeElement:yA,addStyleRule:Gne,addRelatedStyleRule:gA,deleteRelatedStyleRule:Une,setStyleOnHover:Vne,getFullTransformMatrix:Xne,getElementTransformMatrix:bA,getElementAndAncestors:xA,equalDomRects:Zne}});var W0=G((aMe,wA)=>{"use strict";wA.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 Bi=G((nMe,SA)=>{"use strict";var MA=Mt().extendFlat,$ne=Es(),AA={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},kA={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Jne=AA.flags.slice().concat(["fullReplot"]),Kne=kA.flags.slice().concat("layoutReplot");SA.exports={traces:AA,layout:kA,traceFlags:function(){return TA(Jne)},layoutFlags:function(){return TA(Kne)},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:CA};function TA(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function CA(e,r,t){var a=MA({},e);for(var n in a){var i=a[n];$ne(i)&&(a[n]=LA(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function LA(e,r,t,a){if(e.valType){var n=MA({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=LA(e.items[i],r,"from-root")}return n}else return CA(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Yi=G(l5=>{"use strict";l5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};l5.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 o5={};ht(o5,{DATE_FORMAT_LINK:()=>Qne,FORMAT_LINK:()=>jne});var jne,Qne,s5=lt(()=>{"use strict";jne="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Qne="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Wn=G(Lf=>{"use strict";var{DATE_FORMAT_LINK:eie,FORMAT_LINK:rie}=(s5(),Ne(o5)),tie=["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 aie({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}".`,rie,"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}".`,eie,"for details on the date formatting syntax.",tie].join(" ")}Lf.templateFormatStringDescription=aie;Lf.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>vt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Lf.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>vt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Lf.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Lf.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var f1=G((sMe,zA)=>{"use strict";function So(e,r){return r?r.d2l(e):e}function qA(e,r){return r?r.l2d(e):e}function nie(e){return e.x0}function iie(e){return e.x1}function lie(e){return e.y0}function oie(e){return e.y1}function DA(e){return e.x0shift||0}function EA(e){return e.x1shift||0}function PA(e){return e.y0shift||0}function RA(e){return e.y1shift||0}function s1(e,r){return So(e.x1,r)+EA(e)-So(e.x0,r)-DA(e)}function u1(e,r,t){return So(e.y1,t)+RA(e)-So(e.y0,t)-PA(e)}function sie(e,r){return Math.abs(s1(e,r))}function uie(e,r,t){return Math.abs(u1(e,r,t))}function fie(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(s1(e,r),2)+Math.pow(u1(e,r,t),2))}function cie(e,r){return qA((So(e.x1,r)+EA(e)+So(e.x0,r)+DA(e))/2,r)}function vie(e,r,t){return qA((So(e.y1,t)+RA(e)+So(e.y0,t)+PA(e))/2,t)}function die(e,r,t){return e.type!=="line"?void 0:u1(e,r,t)/s1(e,r)}var hie=["x0","x1","y0","y1","dy","height","ycenter"],pie=["x0","x1","y0","y1","dx","width","xcenter"];zA.exports={x0:nie,x1:iie,y0:lie,y1:oie,slope:die,dx:s1,dy:u1,width:sie,height:uie,length:fie,xcenter:cie,ycenter:vie,simpleXVariables:hie,simpleYVariables:pie}});var FA=G((uMe,IA)=>{"use strict";var mie=Bi().overrideAll,Us=En(),NA=_a(),yie=Yi().dash,qo=Mt().extendFlat,{shapeTexttemplateAttrs:gie,templatefallbackAttrs:bie}=Wn(),xie=f1();IA.exports=mie({newshape:{visible:qo({},Us.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:qo({},Us.legend,{}),legendgroup:qo({},Us.legendgroup,{}),legendgrouptitle:{text:qo({},Us.legendgrouptitle.text,{}),font:NA({})},legendrank:qo({},Us.legendrank,{}),legendwidth:qo({},Us.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:qo({},yie,{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:qo({},Us.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:gie({newshape:!0},{keys:Object.keys(xie)}),texttemplatefallback:bie({editType:"arraydraw"}),font:NA({}),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 OA=G((fMe,HA)=>{"use strict";var _ie=Yi().dash,wie=Mt().extendFlat;HA.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:wie({},_ie,{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 c1=G((cMe,BA)=>{"use strict";BA.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 Sf=G((vMe,VA)=>{"use strict";var u5=_a(),Tie=W0(),v1=vi(),YA=FA(),GA=OA(),Mie=c1(),UA=Mt().extendFlat,d1=u5({editType:"calc"});d1.family.dflt='"Open Sans", verdana, arial, sans-serif';d1.size.dflt=12;d1.color.dflt=v1.defaultLine;VA.exports={font:d1,title:{text:{valType:"string",editType:"layoutstyle"},font:u5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:u5({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:UA(Mie({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:v1.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:v1.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:v1.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:YA.newshape,activeshape:YA.activeshape,newselection:GA.newselection,activeselection:GA.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:UA({},Tie.transition,{editType:"none"})}});var XA=G(()=>{(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 Ar=G(Vr=>{"use strict";var f5=ko(),WA=l1(),ZA=a5(),pMe=X0().addStyleRule,$A=Mt(),Aie=En(),kie=Sf(),Cie=$A.extendFlat,c5=$A.extendDeepAll;Vr.modules={};Vr.allCategories={};Vr.allTypes=[];Vr.subplotsRegistry={};Vr.componentsRegistry={};Vr.layoutArrayContainers=[];Vr.layoutArrayRegexes=[];Vr.traceLayoutAttributes={};Vr.localeRegistry={};Vr.apiMethodRegistry={};Vr.collectableSubplotTypes=null;Vr.register=function(r){if(Vr.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":Lie(a);break;case"component":qie(a);break;case"locale":Die(a);break;case"apiMethod":var n=a.name;Vr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Vr.getModule=function(e){var r=Vr.modules[QA(e)];return r?r._module:!1};Vr.traceIs=function(e,r){if(e=QA(e),e==="various")return!1;var t=Vr.modules[e];return t||(e&&f5.log("Unrecognized trace type "+e+"."),t=Vr.modules[Aie.type.dflt]),!!t.categories[r]};Vr.getComponentMethod=function(e,r){var t=Vr.componentsRegistry[e];return t&&t[r]||WA};Vr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Vr.apiMethodRegistry[e].apply(null,r)};function Lie(e){var r=e.name,t=e.categories,a=e.meta;if(Vr.modules[r]){f5.log("Type "+r+" already registered");return}Vr.subplotsRegistry[e.basePlotModule.name]||Sie(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Vr.allCategories[t[i]]=!0;Vr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Vr.modules[r].meta=a),Vr.allTypes.push(r);for(var l in Vr.componentsRegistry)KA(l,r);e.layoutAttributes&&Cie(Vr.traceLayoutAttributes,e.layoutAttributes);var o=e.basePlotModule,s=o.name;s==="map"&&XA(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Sie(e){var r=e.name;if(Vr.subplotsRegistry[r]){f5.log("Plot type "+r+" already registered.");return}JA(e),Vr.subplotsRegistry[r]=e;for(var t in Vr.componentsRegistry)jA(t,e.name)}function qie(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Vr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&ZA(Vr.layoutArrayContainers,r),JA(e));for(var t in Vr.modules)KA(r,t);for(var a in Vr.subplotsRegistry)jA(r,a);e.schema&&e.schema.layout&&c5(kie,e.schema.layout)}function Die(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,l=n&&Object.keys(n).length,o=Vr.localeRegistry,s=o[r];if(s||(o[r]=s={}),t!==r){var u=o[t];u||(o[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),l&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),l&&(s.format=n)}function JA(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)ZA(Vr.layoutArrayRegexes,r[t])}}function KA(e,r){var t=Vr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&c5(Vr.modules[r]._module.attributes,a)}}function jA(e,r){var t=Vr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Vr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var l=t.subplots[i];n&&l&&c5(n,l)}}function QA(e){return typeof e=="object"&&(e=e.type),e}});var sk=G(na=>{"use strict";var Eie=ff().timeFormat,lk=Ur(),v5=ko(),Eo=(df(),Ne(vf)).mod,Ef=(Et(),Ne(It)),di=Ef.BADNUM,zn=Ef.ONEDAY,Z0=Ef.ONEHOUR,Do=Ef.ONEMIN,Df=Ef.ONESEC,$0=Ef.EPOCHJD,Wl=Ar(),ek=ff().utcFormat,Pie=/^\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,Rie=/^\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,rk=new Date().getFullYear()-70;function Zl(e){return e&&Wl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}na.dateTick0=function(e,r){var t=zie(e,!!r);if(r<2)return t;var a=na.dateTime2ms(t,e);return a+=zn*(r-1),na.ms2DateTime(a,0,e)};function zie(e,r){return Zl(e)?r?Wl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Wl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}na.dfltRange=function(e){return Zl(e)?Wl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};na.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var p1,m1;na.dateTime2ms=function(e,r){if(na.isJSDate(e)){var t=e.getTimezoneOffset()*Do,a=(e.getUTCMinutes()-e.getMinutes())*Do+(e.getUTCSeconds()-e.getSeconds())*Df+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Do;t=t-n/2+Eo(a-t+n/2,n)}return e=Number(e)-t,e>=p1&&e<=m1?e:di}if(typeof e!="string"&&typeof e!="number")return di;e=String(e);var i=Zl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?Rie:Pie);if(!s)return di;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return di;u=Number(u);var y;try{var m=Wl.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return di}return y?(y.toJD()-$0)*zn+v*Z0+h*Do+p*Df:di}u.length===2?u=(Number(u)+2e3-rk)%100+rk:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,v,h));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?di:_.getTime()+p*Df};p1=na.MIN_MS=na.dateTime2ms("-9999");m1=na.MAX_MS=na.dateTime2ms("9999-12-31 23:59:59.9999");na.isDateTime=function(e,r){return na.dateTime2ms(e,r)!==di};function qf(e,r){return String(e+Math.pow(10,r)).slice(1)}var h1=90*zn,tk=3*Z0,ak=5*Do;na.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=p1&&e<=m1))return di;r||(r=0);var a=Math.floor(Eo(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Zl(t)){var c=Math.floor(n/zn)+$0,v=Math.floor(Eo(e,zn));try{i=Wl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=ek("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;l=r<h1?Math.floor(v/Z0):0,o=r<h1?Math.floor(v%Z0/Do):0,s=r<tk?Math.floor(v%Do/Df):0,u=r<ak?v%Df*10+a:0}else f=new Date(n),i=ek("%Y-%m-%d")(f),l=r<h1?f.getUTCHours():0,o=r<h1?f.getUTCMinutes():0,s=r<tk?f.getUTCSeconds():0,u=r<ak?f.getUTCMilliseconds()*10+a:0;return ok(i,l,o,s,u)};na.ms2DateTimeLocal=function(e){if(!(e>=p1+zn&&e<=m1-zn))return di;var r=Math.floor(Eo(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Eie("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return ok(a,n,i,l,o)};function ok(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+qf(r,2)+":"+qf(t,2),(a||n)&&(e+=":"+qf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+qf(n,i)}return e}na.cleanDate=function(e,r,t){if(e===di)return r;if(na.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Zl(t))return v5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=na.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!na.isDateTime(e,t))return v5.error("unrecognized date",e),r;return e};var Nie=/%\d?f/g,Iie=/%h/g,Fie={1:"1",2:"1",3:"2",4:"2"};function nk(e,r,t,a){e=e.replace(Nie,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(Iie,function(){return Fie[t("%q")(n)]}),Zl(a))try{e=Wl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Hie=[59,59.9,59.99,59.999,59.9999];function Oie(e,r){var t=Eo(e+.05,zn),a=qf(Math.floor(t/Z0),2)+":"+qf(Eo(Math.floor(t/Do),60),2);if(r!=="M"){lk(r)||(r=0);var n=Math.min(Eo(e/Df,60),Hie[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}na.formatDate=function(e,r,t,a,n,i){if(n=Zl(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 Oie(e,t)+`
`+nk(i.dayMonthYear,e,a,n);return nk(r,e,a,n)};var ik=3*zn;na.incrementMonth=function(e,r,t){t=Zl(t)&&t;var a=Eo(e,zn);if(e=Math.round(e-a),t)try{var n=Math.round(e/zn)+$0,i=Wl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-$0)*zn+a}catch(s){v5.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+ik);return o.setUTCMonth(o.getUTCMonth()+r)+a-ik};na.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Zl(r)&&Wl.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(o=e[u],!lk(o)){i++;continue}if(!(o%zn))if(s)try{l=s.fromJD(o/zn+$0),l.day()===1?l.month()===1?t++:a++:n++}catch(c){}else l=new Date(o),l.getUTCDate()===1?l.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 d5=G((gMe,uk)=>{"use strict";uk.exports=function(r){return r}});var p5=G($l=>{"use strict";var Bie=Ur(),Yie=ko(),Gie=d5(),Uie=(Et(),Ne(It)).BADNUM,h5=1e-9;$l.findBin=function(e,r,t){if(Bie(r.start))return t?Math.ceil((e-r.start)/r.size-h5)-1:Math.floor((e-r.start)/r.size+h5);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?Vie:Xie:s=t?Zie:Wie,e+=l*h5*(t?-1:1)*(l>=0?1:-1);a<n&&i++<100;)o=Math.floor((a+n)/2),s(r[o],e)?a=o+1:n=o;return i>90&&Yie.log("Long binary search..."),a-1};function Vie(e,r){return e<r}function Xie(e,r){return e<=r}function Wie(e,r){return e>r}function Zie(e,r){return e>=r}$l.sorterAsc=function(e,r){return e-r};$l.sorterDes=function(e,r){return r-e};$l.distinctVals=function(e){var r=e.slice();r.sort($l.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Uie;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};$l.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a<n&&l++<100;)i=u((a+n)/2),r[i]<=e?a=i+o:n=i-s;return r[a]};$l.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()};$l.findIndexOfMin=function(e,r){r=r||Gie;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 m5={};ht(m5,{default:()=>Jie});function $ie(e){return Object.keys(e).sort()}var Jie,y5=lt(()=>{"use strict";Jie=$ie});var fk=G(ia=>{"use strict";var J0=Ur(),Kie=Dn().isArrayOrTypedArray;ia.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),J0(r)||(r=!1),Kie(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=ia.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)J0(r)?J0(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};ia.len=function(e){return ia.aggNums(function(r){return r+1},0,e)};ia.mean=function(e,r){return r||(r=ia.len(e)),ia.aggNums(function(t,a){return t+a},0,e)/r};ia.geometricMean=function(e,r){return r||(r=ia.len(e)),Math.pow(ia.aggNums(function(t,a){return t*a},1,e),1/r)};ia.midRange=function(e){if(!(e===void 0||e.length===0))return(ia.aggNums(Math.max,null,e)+ia.aggNums(Math.min,null,e))/2};ia.variance=function(e,r,t){return r||(r=ia.len(e)),J0(t)||(t=ia.mean(e,r)),ia.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};ia.stdev=function(e,r,t){return Math.sqrt(ia.variance(e,r,t))};ia.median=function(e){var r=e.slice().sort();return ia.interp(r,.5)};ia.interp=function(e,r){if(!J0(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 pk=G((_Me,hk)=>{"use strict";var ck=(df(),Ne(vf)),g5=ck.mod,jie=ck.modHalf,K0=Math.PI,Po=2*K0;function Qie(e){return e/180*K0}function ele(e){return e/K0*180}function b5(e){return Math.abs(e[1]-e[0])>Po-1e-14}function vk(e,r){return jie(r-e,Po)}function rle(e,r){return Math.abs(vk(e,r))}function dk(e,r){if(b5(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=g5(t,Po),a=g5(a,Po),t>a&&(a+=Po);var n=g5(e,Po),i=n+Po;return n>=t&&n<=a||i>=t&&i<=a}function tle(e,r,t,a){if(!dk(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 x5(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=b5([t,a]),s,u,f,c,v;o?(s=0,u=K0,f=Po):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,v=r):(c=r,v=e);function h(b,_){return[b*Math.cos(_)+n,i-b*Math.sin(_)]}var p=Math.abs(f-s)<=K0?0:1;function y(b,_,w){return"A"+[b,b]+" "+[0,p,w]+" "+h(b,_)}var m;return o?c===null?m="M"+h(v,s)+y(v,u,0)+y(v,f,0)+"Z":m="M"+h(c,s)+y(c,u,0)+y(c,f,0)+"ZM"+h(v,s)+y(v,u,1)+y(v,f,1)+"Z":c===null?(m="M"+h(v,s)+y(v,f,0),l&&(m+="L0,0Z")):m="M"+h(c,s)+"L"+h(v,s)+y(v,f,0)+"L"+h(c,f)+y(c,s,1)+"Z",m}function ale(e,r,t,a,n){return x5(null,e,r,t,a,n,0)}function nle(e,r,t,a,n){return x5(null,e,r,t,a,n,1)}function ile(e,r,t,a,n,i){return x5(e,r,t,a,n,i,1)}hk.exports={deg2rad:Qie,rad2deg:ele,angleDelta:vk,angleDist:rle,isFullCircle:b5,isAngleInsideSector:dk,isPtInsideSector:tle,pathArc:ale,pathSector:nle,pathAnnulus:ile}});var mk=G(Vs=>{"use strict";Vs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var bk=G(Xs=>{"use strict";var _5=(df(),Ne(vf)).mod;Xs.segmentsIntersect=gk;function gk(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,v=i-r,h=o-i,p=s*h-f*c;if(p===0)return null;var y=(u*h-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Xs.segmentDistance=function(r,t,a,n,i,l,o,s){if(gk(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,v=s-l,h=u*u+f*f,p=c*c+v*v,y=Math.min(y1(u,f,h,i-r,l-t),y1(u,f,h,o-r,s-t),y1(c,v,p,r-i,t-l),y1(c,v,p,a-i,n-l));return Math.sqrt(y)};function y1(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var g1,w5,yk;Xs.getTextLocation=function(r,t,a,n){if((r!==w5||n!==yk)&&(g1={},w5=r,yk=n),g1[a])return g1[a];var i=r.getPointAtLength(_5(a-n/2,t)),l=r.getPointAtLength(_5(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(_5(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return g1[a]=c,c};Xs.clearLocationCache=function(){w5=null};Xs.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function h(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var b=m.x<n?n-m.x:m.x>i?m.x-i:0,_=m.y<l?l-m.y:m.y>o?m.y-o:0;return Math.sqrt(b*b+_*_)}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-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Xs.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,h,p;u<o;){if(v=(f+c)/2,h=r.getPointAtLength(v),p=h[a]-t,Math.abs(p)<l)return h;s*p>0?c=v:f=v,u++}return h}});var b1=G(j0=>{"use strict";var Jl={};j0.throttle=function(r,t,a){var n=Jl[r],i=Date.now();if(!n){for(var l in Jl)Jl[l].ts<i-6e4&&delete Jl[l];n=Jl[r]={ts:0,timer:null}}xk(n);function o(){a(),n.ts=Date.now(),n.onDone&&(n.onDone(),n.onDone=null)}if(i>n.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};j0.done=function(e){var r=Jl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};j0.clear=function(e){if(e)xk(Jl[e]),delete Jl[e];else for(var r in Jl)j0.clear(r)};function xk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var wk=G((AMe,_k)=>{"use strict";_k.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var Tk=G((kMe,x1)=>{"use strict";x1.exports=T5;x1.exports.isMobile=T5;x1.exports.default=T5;var lle=/(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,ole=/CrOS/,sle=/android|ipad|playbook|silk/i;function T5(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=lle.test(r)&&!ole.test(r)||!!e.tablet&&sle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Ak=G((CMe,Mk)=>{"use strict";var ule=Ur(),fle=Tk();Mk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=cle(),typeof t!="string")return!0;var a=fle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i<n.length;i++){var l=n[i];if(l.indexOf("Safari")!==-1)for(var o=i-1;o>-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(ule(u)&&(u=+u),u>=13)return!0}}}return a};function cle(){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 Ck=G((LMe,kk)=>{"use strict";var vle=Er();kk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[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(l){l[0][i]=vle.select(this)}),n}});var Sk=G((SMe,Lk)=>{"use strict";var dle=Ar();Lk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=dle.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var Dk=G((qMe,qk)=>{"use strict";qk.exports=function(r){for(var t={},a=[],n=0,i=0;i<r.length;i++){var l=r[i];t[l]!==1&&(t[l]=1,a[n++]=l)}return a}});var Pk=G((DMe,Ek)=>{"use strict";Ek.exports=function(r){for(var t=mle(r)?ple:hle,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function hle(e){return e.visible===!0}function ple(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function mle(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var zk=G((EMe,Rk)=>{"use strict";Rk.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 l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var Ik={};ht(Ik,{default:()=>ble});function gle(e){return typeof e=="string"&&(e=e.replace(yle,"")),(0,Nk.default)(e)?Number(e):void 0}var Nk,yle,ble,Fk=lt(()=>{"use strict";Nk=d8(Ur());Et();yle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;ble=gle});var Bk=G((RMe,Ok)=>{"use strict";var xle=/<[^>]*>/g,_le=/[\p{S}\p{P}]/gu,wle=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Tle=/�/g,Mle=/\s+/g,_1="-",Hk=_1.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ale=new RegExp(Hk+"{3,}","g"),kle=new RegExp(Hk+"$","g"),Cle=60;function Lle(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Ok.exports=function(r,t=Cle){var a=Lle(r!=null?r:"").replace(Tle,"").replace(xle," ").replace(_le,n=>n===_1?n:"").toLowerCase().trim().replace(Mle,_1).replace(wle,"").replace(Ale,_1);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(kle,"")}});var qe=G((zMe,Qk)=>{"use strict";var Q0=Er(),Sle=ff().utcFormat,qle=p2().format,Wk=Ur(),Zk=(Et(),Ne(It)),$k=Zk.FP_SAFE,Dle=-$k,Yk=Zk.BADNUM,ce={};Qk.exports=ce;ce.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 Gk={};ce.warnBadFormat=function(e){var r=String(e);Gk[r]||(Gk[r]=1,ce.warn('encountered bad format: "'+r+'"'))};ce.noFormat=function(e){return String(e)};ce.numberFormat=function(e){var r;try{r=qle(ce.adjustFormat(e))}catch(t){return ce.warnBadFormat(e),ce.noFormat}return r};ce.nestedProperty=Sh();ce.keyedContainer=N8();ce.relativeAttr=F8();ce.isPlainObject=Es();ce.toLogRange=Dh();ce.relinkPrivateKeys=Y8();var Ro=Dn();ce.isArrayBuffer=Ro.isArrayBuffer;ce.isTypedArray=Ro.isTypedArray;ce.isArrayOrTypedArray=Ro.isArrayOrTypedArray;ce.isArray1D=Ro.isArray1D;ce.ensureArray=Ro.ensureArray;ce.concat=Ro.concat;ce.maxRowLength=Ro.maxRowLength;ce.minRowLength=Ro.minRowLength;var Jk=(df(),Ne(vf));ce.mod=Jk.mod;ce.modHalf=Jk.modHalf;var zo=uM();ce.valObjectMeta=zo.valObjectMeta;ce.coerce=zo.coerce;ce.coerce2=zo.coerce2;ce.coerceFont=zo.coerceFont;ce.coercePattern=zo.coercePattern;ce.coerceHoverinfo=zo.coerceHoverinfo;ce.coerceSelectionMarkerOpacity=zo.coerceSelectionMarkerOpacity;ce.validate=zo.validate;var Zn=sk();ce.dateTime2ms=Zn.dateTime2ms;ce.isDateTime=Zn.isDateTime;ce.ms2DateTime=Zn.ms2DateTime;ce.ms2DateTimeLocal=Zn.ms2DateTimeLocal;ce.cleanDate=Zn.cleanDate;ce.isJSDate=Zn.isJSDate;ce.formatDate=Zn.formatDate;ce.incrementMonth=Zn.incrementMonth;ce.dateTick0=Zn.dateTick0;ce.dfltRange=Zn.dfltRange;ce.findExactDates=Zn.findExactDates;ce.MIN_MS=Zn.MIN_MS;ce.MAX_MS=Zn.MAX_MS;var Ws=p5();ce.findBin=Ws.findBin;ce.sorterAsc=Ws.sorterAsc;ce.sorterDes=Ws.sorterDes;ce.distinctVals=Ws.distinctVals;ce.roundUp=Ws.roundUp;ce.sort=Ws.sort;ce.findIndexOfMin=Ws.findIndexOfMin;ce.sortObjectKeys=(y5(),Ne(m5)).default;var Kl=fk();ce.aggNums=Kl.aggNums;ce.len=Kl.len;ce.mean=Kl.mean;ce.geometricMean=Kl.geometricMean;ce.median=Kl.median;ce.midRange=Kl.midRange;ce.variance=Kl.variance;ce.stdev=Kl.stdev;ce.interp=Kl.interp;var Gi=o1();ce.init2dArray=Gi.init2dArray;ce.transposeRagged=Gi.transposeRagged;ce.dot=Gi.dot;ce.translationMatrix=Gi.translationMatrix;ce.rotationMatrix=Gi.rotationMatrix;ce.rotationXYMatrix=Gi.rotationXYMatrix;ce.apply3DTransform=Gi.apply3DTransform;ce.apply2DTransform=Gi.apply2DTransform;ce.apply2DTransform2=Gi.apply2DTransform2;ce.convertCssMatrix=Gi.convertCssMatrix;ce.inverseTransformMatrix=Gi.inverseTransformMatrix;var gl=pk();ce.deg2rad=gl.deg2rad;ce.rad2deg=gl.rad2deg;ce.angleDelta=gl.angleDelta;ce.angleDist=gl.angleDist;ce.isFullCircle=gl.isFullCircle;ce.isAngleInsideSector=gl.isAngleInsideSector;ce.isPtInsideSector=gl.isPtInsideSector;ce.pathArc=gl.pathArc;ce.pathSector=gl.pathSector;ce.pathAnnulus=gl.pathAnnulus;var Rf=mk();ce.isLeftAnchor=Rf.isLeftAnchor;ce.isCenterAnchor=Rf.isCenterAnchor;ce.isRightAnchor=Rf.isRightAnchor;ce.isTopAnchor=Rf.isTopAnchor;ce.isMiddleAnchor=Rf.isMiddleAnchor;ce.isBottomAnchor=Rf.isBottomAnchor;var zf=bk();ce.segmentsIntersect=zf.segmentsIntersect;ce.segmentDistance=zf.segmentDistance;ce.getTextLocation=zf.getTextLocation;ce.clearLocationCache=zf.clearLocationCache;ce.getVisibleSegment=zf.getVisibleSegment;ce.findPointOnPath=zf.findPointOnPath;var M1=Mt();ce.extendFlat=M1.extendFlat;ce.extendDeep=M1.extendDeep;ce.extendDeepAll=M1.extendDeepAll;ce.extendDeepNoArrays=M1.extendDeepNoArrays;var M5=ko();ce.log=M5.log;ce.warn=M5.warn;ce.error=M5.error;var Ele=(kf(),Ne(V0));ce.counterRegex=Ele.counter;var A5=b1();ce.throttle=A5.throttle;ce.throttleDone=A5.done;ce.clearThrottle=A5.clear;var Ui=X0();ce.getGraphDiv=Ui.getGraphDiv;ce.isPlotDiv=Ui.isPlotDiv;ce.removeElement=Ui.removeElement;ce.addStyleRule=Ui.addStyleRule;ce.addRelatedStyleRule=Ui.addRelatedStyleRule;ce.deleteRelatedStyleRule=Ui.deleteRelatedStyleRule;ce.setStyleOnHover=Ui.setStyleOnHover;ce.getFullTransformMatrix=Ui.getFullTransformMatrix;ce.getElementTransformMatrix=Ui.getElementTransformMatrix;ce.getElementAndAncestors=Ui.getElementAndAncestors;ce.equalDomRects=Ui.equalDomRects;ce.clearResponsive=wk();ce.preserveDrawingBuffer=Ak();ce.makeTraceGroups=Ck();ce._=Sk();ce.notifier=Z3();ce.filterUnique=Dk();ce.filterVisible=Pk();ce.pushUnique=a5();ce.increment=zk();ce.cleanNumber=(Fk(),Ne(Ik)).default;ce.slugify=Bk();ce.ensureNumber=function(r){return Wk(r)?(r=Number(r),r>$k||r<Dle?Yk:r):Yk};ce.isIndex=function(e,r){return r!==void 0&&e>=r?!1:Wk(e)&&e>=0&&e%1===0};ce.noop=l1();ce.identity=d5();ce.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};ce.swapAttrs=function(e,r,t,a){t||(t="x"),a||(a="y");for(var n=0;n<r.length;n++){var i=r[n],l=ce.nestedProperty(e,i.replace("?",t)),o=ce.nestedProperty(e,i.replace("?",a)),s=l.get();l.set(o.get()),o.set(s)}};ce.raiseToTop=function(r){r.parentNode.appendChild(r)};ce.cancelTransition=function(e){return e.transition().duration(0)};ce.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};ce.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};ce.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o<i;o++)l[o]=r(e[o],t,a,n);return l};ce.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),l="",o,s,u;for(o=2;i===1/0;o*=2)i=Math.log(Math.pow(2,t/o))/Math.log(a)*o;var f=i-Math.floor(i);for(o=0;o<Math.floor(i);o++)u=Math.floor(Math.random()*a).toString(a),l=u+l;f&&(s=Math.pow(a,f),u=Math.floor(Math.random()*s).toString(a),l=u+l);var c=parseInt(l,a);return r&&r[l]||c!==1/0&&c>=Math.pow(2,t)?n>10?(ce.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};ce.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};ce.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),l=new Array(t),o,s,u,f;for(o=0;o<n;o++)i[o]=(1-Math.cos(Math.PI*(o+1)/r))/(2*r);for(o=0;o<t;o++){for(f=0,s=0;s<n;s++)u=o+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];l[o]=f}return l};ce.syncOrAsync=function(e,r,t){var a,n;function i(){return ce.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)};ce.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};ce.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i<t.length;i++)l=e[t[i]],l!=null?a=!0:n=!1;if(a&&!n)for(i=0;i<t.length;i++)e[t[i]]=r[t[i]]}};ce.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(ce.isArrayOrTypedArray(e))for(var i=Math.min(e.length,r.length),l=0;l<i;l++){var o=e[l];r[l][t]=n?a(o):o}};ce.mergeArrayCastPositive=function(e,r,t){return ce.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};ce.fillArray=function(e,r,t,a){if(a=a||ce.identity,ce.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};ce.castOption=function(e,r,t,a){a=a||ce.identity;var n=ce.nestedProperty(e,t).get();return ce.isArrayOrTypedArray(n)?Array.isArray(r)&&ce.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};ce.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=ce.nestedProperty(r,a).get();if(!Array.isArray(n))return n};ce.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 l=a[i];if(ce.isIndex(l)||ce.isArrayOrTypedArray(l)&&ce.isIndex(l[0])&&ce.isIndex(l[1])){var o=l,s=t?t[o]:o;n(s)&&(e[s].selected=1)}}};ce.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=ce.nestedProperty(e,t).get();return ce.isArrayOrTypedArray(a)?a:!1}else if(ce.isArrayOrTypedArray(t))return t;return!1};function Kk(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),l,o,s;for(l=0;l<i.length;l++)o=i[l],s=e[o],!(o.charAt(0)==="_"||typeof s=="function")&&(o==="module"?a[o]=s:Array.isArray(s)?o==="colorscale"||n===-1?a[o]=s.slice():a[o]=s.slice(0,n):ce.isTypedArray(s)?n===-1?a[o]=s.subarray():a[o]=s.subarray(0,n):s&&typeof s=="object"?a[o]=Kk(e[o],r[o],t):a[o]=s);for(i=Object.keys(r),l=0;l<i.length;l++)o=i[l],s=r[o],(typeof s!="object"||!(o in a)||typeof a[o]!="object")&&(a[o]=s);return a}ce.minExtend=Kk;ce.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};ce.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Ple=/Version\/[\d\.]+.*Safari/;ce.isSafari=function(){return Ple.test(window.navigator.userAgent)};var Rle=/iPad|iPhone|iPod/;ce.isIOS=function(){return Rle.test(window.navigator.userAgent)};var zle=/Macintosh.+AppleWebKit.+Gecko\)$/;ce.isMacWKWebView=()=>zle.test(window.navigator.userAgent);var Nle=/Firefox\/(\d+)\.\d+/;ce.getFirefoxVersion=function(){var e=Nle.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};ce.isD3Selection=function(e){return e instanceof Q0.selection};ce.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};ce.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};ce.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var l=t[i],o=null,s=t[i].match(/(.*)\[([0-9]+)\]/);s?(l=s[1],o=s[2],a=a[l]=[],i===t.length-1?a[o]=r:a[o]={},a=a[o]):(i===t.length-1?a[l]=r:a[l]={},a=a[l])}return n};var Ile=/^([^\[\.]+)\.(.+)?/,Fle=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function w1(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}ce.expandObjectPaths=function(e){var r,t,a,n,i,l,o;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(Ile)){if(n=e[t],a=r[1],w1(e,a))continue;delete e[t],e[a]=ce.extendDeepNoArrays(e[a]||{},ce.objectFromPath(t,ce.expandObjectPaths(n))[a])}else if(r=t.match(Fle)){if(n=e[t],a=r[1],w1(e,a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")o=r[4],l=e[a][i]=e[a][i]||{},ce.extendDeepNoArrays(l,ce.objectFromPath(o,ce.expandObjectPaths(n)));else{if(w1(e,a))continue;e[a][i]=ce.expandObjectPaths(n)}}else{if(w1(e,t))continue;e[t]=ce.expandObjectPaths(e[t])}}return e};ce.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),l=e.split("."),o=l[0],s=l.length>1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};ce.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var jk=/^\w*$/;ce.templateString=function(e,r){var t={};return e.replace(ce.TEMPLATE_STRING_REGEX,function(a,n){var i;return jk.test(n)?i=r[n]:(t[n]=t[n]||ce.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Hle={max:10,count:0,name:"hovertemplate"};ce.hovertemplateString=e=>k5(Dt(vt({},e),{opts:Hle}));var Ole={max:10,count:0,name:"texttemplate"};ce.texttemplateString=e=>k5(Dt(vt({},e),{opts:Ole}));var Ble=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yle(e){var r=e.match(Ble);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Gle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ce.texttemplateStringForShapes=e=>k5(Dt(vt({},e),{opts:Gle}));var Uk=/^[:|\|]/;function k5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(ce.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),v=["xother_","yother_"].includes(o),h=u||f||v||c;(f||c)&&(o=o.substring(1)),(v||c)&&(o=o.substring(0,o.length-1));let p=null,y=null;if(n.parseMultDiv){var m=Yle(o);o=m.key,p=m.op,y=m.number}let b;if(h){if(a[o]===void 0)return"";b=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){b=M[o];break}if(jk.test(o)||(b=ce.nestedProperty(M,o).get(!0)),b!==void 0)break}if(b===void 0){let{count:M,max:A,name:k}=n,S=t===!1?l:t;return M<A&&ce.warn([`Variable '${o}' in ${k} could not be found!`,"Please verify that the template is correct.",`Using value: '${S}'.`].join(" ")),M===A&&ce.warn(`Too many '${k}' warnings - additional warnings will be suppressed.`),n.count++,S}if(p==="*"&&(b*=y),p==="/"&&(b/=y),s){var _;if(s[0]===":"&&(_=r?r.numberFormat:ce.numberFormat,b!==""&&(b=_(s.replace(Uk,""))(b))),s[0]==="|"){_=r?r.timeFormat:Sle;var w=ce.dateTime2ms(b);b=ce.formatDate(w,s.replace(Uk,""),!1,_)}}else{var x=o+"Label";a.hasOwnProperty(x)&&(b=a[x])}return h&&(b="("+b+")",(f||c)&&(b=" "+b),(v||c)&&(b=b+" ")),b})}var T1=48,Vk=57;ce.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,a=0,n=0,i=0;i<t;i++){var l=e.charCodeAt(i)||0,o=r.charCodeAt(i)||0,s=l>=T1&&l<=Vk,u=o>=T1&&o<=Vk;if(s&&(a=10*a+l-T1),u&&(n=10*n+o-T1),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Pf=2e9;ce.seedPseudoRandom=function(){Pf=2e9};ce.pseudoRandom=function(){var e=Pf;return Pf=(69069*Pf+1)%4294967296,Math.abs(Pf-e)<429496729?ce.pseudoRandom():Pf/4294967296};ce.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=ce.extractOption(e,r,"htx","hovertext");if(ce.isValidTextValue(n))return a(n);var i=ce.extractOption(e,r,"tx","text");if(ce.isValidTextValue(i))return a(i)};ce.isValidTextValue=function(e){return e||e===0};ce.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};ce.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};ce.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};ce.strRotate=function(e){return e?"rotate("+e+")":""};ce.strScale=function(e){return e!==1?"scale("+e+")":""};ce.getTextTransform=function(e){var r=e.noCenter,t=e.textX,a=e.textY,n=e.targetX,i=e.targetY,l=e.anchorX||0,o=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,ce.strTranslate(n-u*(t+l),i-u*(a+o))+ce.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};ce.setTransormAndDisplay=function(e,r){e.attr("transform",ce.getTextTransform(r)),e.style("display",r.scale?null:"none")};ce.ensureUniformFontSize=function(e,r){var t=ce.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};ce.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)};ce.bigFont=function(e){return Math.round(1.2*e)};var Xk=ce.getFirefoxVersion(),Ule=Xk!==null&&Xk<86;ce.getPositionFromD3Event=function(){return Ule?[Q0.event.layerX,Q0.event.layerY]:[Q0.event.offsetX,Q0.event.offsetY]}});var tC=G(()=>{"use strict";var Vle=qe(),eC={"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(C5 in eC)rC=C5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Vle.addStyleRule(rC,eC[C5]);var rC,C5});var L5=G((HMe,aC)=>{aC.exports=!0});var q5=G((OMe,nC)=>{"use strict";var Xle=L5(),S5;typeof window.matchMedia=="function"?S5=!window.matchMedia("(hover: none)").matches:S5=Xle;nC.exports=S5});var C1=G((BMe,D5)=>{"use strict";var Nf=typeof Reflect=="object"?Reflect:null,iC=Nf&&typeof Nf.apply=="function"?Nf.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},A1;Nf&&typeof Nf.ownKeys=="function"?A1=Nf.ownKeys:Object.getOwnPropertySymbols?A1=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:A1=function(r){return Object.getOwnPropertyNames(r)};function Wle(e){console&&console.warn&&console.warn(e)}var oC=Number.isNaN||function(r){return r!==r};function kt(){kt.init.call(this)}D5.exports=kt;D5.exports.once=Kle;kt.EventEmitter=kt;kt.prototype._events=void 0;kt.prototype._eventsCount=0;kt.prototype._maxListeners=void 0;var lC=10;function k1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kt,"defaultMaxListeners",{enumerable:!0,get:function(){return lC},set:function(e){if(typeof e!="number"||e<0||oC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");lC=e}});kt.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};kt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||oC(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 sC(e){return e._maxListeners===void 0?kt.defaultMaxListeners:e._maxListeners}kt.prototype.getMaxListeners=function(){return sC(this)};kt.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 l;if(t.length>0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")iC(s,this,t);else for(var u=s.length,f=dC(s,u),a=0;a<u;++a)iC(f[a],this,t);return!0};function uC(e,r,t,a){var n,i,l;if(k1(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),l=i[r]),l===void 0)l=i[r]=t,++e._eventsCount;else if(typeof l=="function"?l=i[r]=a?[t,l]:[l,t]:a?l.unshift(t):l.push(t),n=sC(e),n>0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,Wle(o)}return e}kt.prototype.addListener=function(r,t){return uC(this,r,t,!1)};kt.prototype.on=kt.prototype.addListener;kt.prototype.prependListener=function(r,t){return uC(this,r,t,!0)};function Zle(){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 fC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Zle.bind(a);return n.listener=t,a.wrapFn=n,n}kt.prototype.once=function(r,t){return k1(t),this.on(r,fC(this,r,t)),this};kt.prototype.prependOnceListener=function(r,t){return k1(t),this.prependListener(r,fC(this,r,t)),this};kt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(k1(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,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():$le(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};kt.prototype.off=kt.prototype.removeListener;kt.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),l;for(n=0;n<i.length;++n)l=i[n],l!=="removeListener"&&this.removeAllListeners(l);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 cC(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?Jle(n):dC(n,n.length)}kt.prototype.listeners=function(r){return cC(this,r,!0)};kt.prototype.rawListeners=function(r){return cC(this,r,!1)};kt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):vC.call(e,r)};kt.prototype.listenerCount=vC;function vC(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}kt.prototype.eventNames=function(){return this._eventsCount>0?A1(this._events):[]};function dC(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function $le(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function Jle(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function Kle(e,r){return new Promise(function(t,a){function n(l){e.removeListener(r,i),a(l)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),t([].slice.call(arguments))}hC(e,r,i,{once:!0}),r!=="error"&&jle(e,n,{once:!0})})}function jle(e,r,t){typeof e.on=="function"&&hC(e,"error",r,t)}function hC(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 ev=G((YMe,pC)=>{"use strict";var E5=C1().EventEmitter,Qle={init:function(e){if(e._ev instanceof E5)return e;var r=new E5,t=new E5;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 l(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 o;for(o=0;o<i.length-1;o++)l(i[o]);return a=l(i[o]),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}};pC.exports=Qle});var gC=G((GMe,yC)=>{"use strict";var mC=qe(),eoe=Ao().dfltConfig;function roe(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)?mC.extendDeep([],a):mC.extendDeepAll({},a):t[n]=a;return t}var jl={};jl.add=function(e,r,t,a,n){var i,l;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=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(l,e.undoQueue.queue.length-l,i),e.undoQueue.index+=1):i=e.undoQueue.queue[l-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>eoe.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};jl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};jl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};jl.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++)jl.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};jl.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++)jl.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};jl.plotDo=function(e,r,t){e.autoplay=!0,t=roe(e,t),r.apply(null,t)};yC.exports=jl});var P5=G((UMe,bC)=>{"use strict";bC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Hf=G(ha=>{"use strict";var hi=Ar(),rv=qe(),S1=En(),R5=Sf(),toe=P5(),aoe=W0(),noe=Ao().configAttributes,xC=Bi(),Vi=rv.extendDeepAll,If=rv.isPlainObject,ioe=rv.isArrayOrTypedArray,q1=rv.nestedProperty,loe=rv.valObjectMeta,z5="_isSubplotObj",D1="_isLinkedToArray",ooe="_arrayAttrRegexps",wC="_deprecated",N5=[z5,D1,ooe,wC];ha.IS_SUBPLOT_OBJ=z5;ha.IS_LINKED_TO_ARRAY=D1;ha.DEPRECATED=wC;ha.UNDERSCORE_ATTRS=N5;ha.get=function(){var e={};return hi.allTypes.forEach(function(r){e[r]=uoe(r)}),{defs:{valObjects:loe,metaKeys:N5.concat(["description","role","editType","impliedEdits"]),editType:{traces:xC.traces,layout:xC.layout},impliedEdits:{}},traces:e,layout:foe(),frames:coe(),animation:Ff(aoe),config:Ff(noe)}};ha.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(N5.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!ha.isValObject(l)&&If(l)&&i!=="impliedEdits"&&ha.crawl(l,r,n+1,o)}})};ha.isValObject=function(e){return e&&e.valType!==void 0};ha.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)ioe(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var h=0;h<c.length;h++)If(c[h])&&o(c[h],u+1,v+"["+h+"].")}else If(c)&&o(c,u+1,v+".")}return n=e,i="",ha.crawl(S1,l),e._module&&e._module.attributes&&ha.crawl(e._module.attributes,l),r};ha.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,l=e._module;if(l||(l=(hi.modules[e.type||S1.type.dflt]||{})._module),!l)return!1;if(n=l.attributes,i=n&&n[t],!i){var o=l.basePlotModule;o&&o.attributes&&(i=o.attributes[t])}return i||(i=S1[t]),TC(i,r,a)};ha.getLayoutValObject=function(e,r){var t=soe(e,r[0]);return TC(t,r,1)};function soe(e,r){var t,a,n,i,l=e._basePlotModules;if(l){var o;for(t=0;t<l.length;t++){if(n=l[t],n.attrRegex&&n.attrRegex.test(r)){if(n.layoutAttrOverrides)return n.layoutAttrOverrides;!o&&n.layoutAttributes&&(o=n.layoutAttributes)}var s=n.baseLayoutAttrOverrides;if(s&&r in s)return s[r]}if(o)return o}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 hi.componentsRegistry){if(n=hi.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 R5?R5[r]:!1}function TC(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(L1(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(If(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!L1(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!L1(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 l=r[t];if(!L1(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function L1(e){return e===Math.round(e)&&e>=0}function uoe(e){var r,t;r=hi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Vi({},S1),i=Vi({},r.attributes);ha.crawl(i,function(s,u,f,c,v){q1(n,v).set(void 0),s===void 0&&q1(i,v).set(void 0)}),Vi(a,n),hi.traceIs(e,"noOpacity")&&delete a.opacity,hi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),hi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Vi(a,i),t.attributes&&Vi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ff(a)};if(r.layoutAttributes){var o={};Vi(o,r.layoutAttributes),l.layoutAttributes=Ff(o)}return r.animatable||ha.crawl(l,function(s){ha.isValObject(s)&&"anim"in s&&delete s.anim}),l}function foe(){var e={},r,t;Vi(e,R5);for(r in hi.subplotsRegistry)if(t=hi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)_C(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;_C(e,t,n)}for(r in hi.componentsRegistry){t=hi.componentsRegistry[r];var i=t.schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var o in l.xaxis)delete e.yaxis[o];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?Vi(e,t.layoutAttributes):t.layoutAttributes&&poe(e,t.layoutAttributes,t.name)}return{layoutAttributes:Ff(e)}}function coe(){var e={frames:Vi({},toe)};return Ff(e),e.frames}function Ff(e){return voe(e),doe(e),hoe(e),e}function voe(e){function r(t,a,n){!ha.isValObject(t)&&If(t)&&(t.role="object")}ha.crawl(e,r)}function doe(e){function r(t,a,n){if(t){var i=t[D1];i&&(delete t[D1],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}ha.crawl(e,r)}function hoe(e){function r(t){for(var a in t)if(If(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 _C(e,r,t){var a=q1(e,t),n=Vi({},r.layoutAttributes);n[z5]=!0,a.set(n)}function poe(e,r,t){var a=q1(e,t);a.set(Vi(a.get()||{},r))}});var mt=G(Zs=>{"use strict";var Of=qe(),moe=En(),No="templateitemname",I5={name:{valType:"string",editType:"none"}};I5[No]={valType:"string",editType:"calc"};Zs.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=I5.name,r[No]=I5[No],r};Zs.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=Of.coerce(i,{},moe,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Zs.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Of.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zs.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[AC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[No]=u[No];if(!MC(c))return f._template=n,f;for(var v=0;v<i.length;v++){var h=i[v];if(h.name===c)return l[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],v=c.name;if(MC(v)&&!l[v]){var h={_template:c,name:v,_input:{_templateitemname:v}};h[No]=c[No],u.push(h),l[v]=1}}return u}return{newItem:o,defaultItems:s}};function MC(e){return e&&typeof e=="string"}function AC(e){var r=e.length-1;return e.charAt(r)!=="s"&&Of.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Zs.arrayDefaultKey=AC;Zs.arrayEditor=function(e,r,t){var a=(Of.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][No]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?Of.nestedProperty(o[l],h).set(p):o[l+"."+h]=p}function c(){var h=o;return s(),h}function v(h,p){h&&f(h,p);var y=c();for(var m in y)Of.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ma={};ht(Ma,{AX_ID_PATTERN:()=>_oe,AX_NAME_PATTERN:()=>woe,DFLTRANGEX:()=>qoe,DFLTRANGEY:()=>Doe,DRAGGERSIZE:()=>Loe,HOUR_PATTERN:()=>Moe,MINDRAG:()=>koe,MINZOOM:()=>Coe,REDRAWDELAY:()=>Soe,SUBPLOT_PATTERN:()=>Toe,WEEKDAY_PATTERN:()=>Aoe,attrRegex:()=>goe,clipOnAxisFalseQuery:()=>Poe,idRegex:()=>yoe,layerValue2layerClass:()=>Roe,traceLayerClasses:()=>Eoe,xAxisMatch:()=>boe,yAxisMatch:()=>xoe,zindexSeparator:()=>zoe});var yoe,goe,boe,xoe,_oe,woe,Toe,Moe,Aoe,koe,Coe,Loe,Soe,qoe,Doe,Eoe,Poe,Roe,zoe,Aa=lt(()=>{"use strict";kf();yoe={x:Gs("x","( domain)?"),y:Gs("y","( domain)?")},goe=Gs("[xy]axis"),boe=Gs("xaxis"),xoe=Gs("yaxis"),_oe=/^[xyz][0-9]*( domain)?$/,woe=/^[xyz]axis[0-9]*$/,Toe=/^x([0-9]*)y([0-9]*)$/,Moe="hour",Aoe="day of week",koe=8,Coe=20,Loe=20,Soe=50,qoe=[-1,6],Doe=[-1,4],Eoe=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Poe=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Roe={"above traces":"above","below traces":"below"},zoe="z"});var fa=G(Nn=>{"use strict";var Noe=Ar(),F5=(Aa(),Ne(Ma));Nn.id2name=function(r){if(!(typeof r!="string"||!r.match(F5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Nn.name2id=function(r){if(r.match(F5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Nn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(F5.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":"")}};Nn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Nn.listIds(e,r),i=new Array(n.length),l;for(l=0;l<n.length;l++){var o=n[l];i[l]=a[o.charAt(0)+"axis"+o.slice(1)]}if(!t){var s=a._subplots.gl3d||[];for(l=0;l<s.length;l++){var u=a[s[l]];r?i.push(u[r+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i};Nn.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)};Nn.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[Nn.id2name(r)]};Nn.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(Noe.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Nn.getFromId(e,r[t+"axis"]||t);return n};Nn.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)};Nn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function kC(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Nn.isLinked=function(e,r){return kC(r,e._axisMatchGroups)||kC(r,e._axisConstraintGroups)}});var Io=G(($Me,CC)=>{"use strict";function Ioe(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Foe(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}CC.exports={clearOutlineControllers:Ioe,clearOutline:Foe}});var E1=G((JMe,LC)=>{"use strict";LC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var H5=G(R1=>{"use strict";var P1=Ar(),KMe=(Aa(),Ne(Ma)).SUBPLOT_PATTERN;R1.getSubplotCalcData=function(e,r,t){var a=P1.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l<e.length;l++){var o=e[l],s=o[0].trace;s[n]===t&&i.push(o)}return i};R1.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=P1.getModule(r).plot:typeof r=="function"?i=r:i=r.plot,!i)return[a,e];for(var l=t,o=0;o<e.length;o++){var s=e[o],u=s[0].trace,f=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===i&&(!f||u.zorder===l)?a.push(s):n.push(s))}return[a,n]};R1.getSubplotData=function(r,t,a){if(!P1.subplotsRegistry[t])return[];for(var n=P1.subplotsRegistry[t].attr,i=[],l,o,s,u=0;u<r.length;u++)l=r[u],l[n]===a&&i.push(l);return i}});var EC=G($s=>{"use strict";var Hoe=Ar(),Bf=qe();$s.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=$s.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){SC(e,l,n.cache),n.check=function(){if(i){var f=SC(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s<o.length;s++)e._internalOn(o[s],n.check);n.remove=function(){for(var u=0;u<o.length;u++)e._removeInternalListener(o[u],n.check)}}else Bf.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};$s.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var l,o=r[a],s=o.method,u=o.args;if(Array.isArray(u)||(u=[]),!s)return!1;var f=$s.computeAPICommandBindings(e,s,u);if(f.length!==1)return!1;if(!i)i=f[0],Array.isArray(i.traces)&&i.traces.sort();else{if(l=f[0],l.type!==i.type||l.prop!==i.prop)return!1;if(Array.isArray(i.traces))if(Array.isArray(l.traces)){l.traces.sort();for(var c=0;c<i.traces.length;c++)if(i.traces[c]!==l.traces[c])return!1}else return!1;else if(l.prop!==i.prop)return!1}l=f[0];var v=l.value;if(Array.isArray(v))if(v.length===1)v=v[0];else return!1;t&&(t[v]=a)}return i};function SC(e,r,t){var a,n,i,l=!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=Bf.nestedProperty(a,r.prop).get(),i=t[r.type]=t[r.type]||{},i.hasOwnProperty(r.prop)&&i[r.prop]!==n&&(l=!0),i[r.prop]=n,{changed:l,value:n}}$s.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=Hoe.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(l){return Bf.warn("API call to Plotly."+r+" rejected.",l),Promise.reject(l)})};$s.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=DC(e,t);break;case"relayout":a=qC(e,t);break;case"update":a=DC(e,[t[0],t[2]]).concat(qC(e,[t[1]]));break;case"animate":a=Ooe(e,t);break;default:a=[]}return a};function Ooe(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 qC(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(Bf.isPlainObject(a))n=a;else return t;return O5(n,function(i,l,o){t.push({type:"layout",prop:i,value:o})},"",0),t}function DC(e,r){var t,a,n,i,l=[];if(a=r[0],n=r[1],t=r[2],i={},typeof a=="string")i[a]=n;else if(Bf.isPlainObject(a))i=a,t===void 0&&(t=n);else return l;return t===void 0&&(t=null),O5(i,function(o,s,u){var f,c;if(Array.isArray(u)){c=u.slice();var v=Math.min(c.length,e.data.length);t&&(v=Math.min(v,t.length)),f=[];for(var h=0;h<v;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 y=0;y<f.length;y++)c[y]=p}c.length=Math.min(f.length,c.length)}l.push({type:"data",prop:o,traces:f,value:c})},"",0),l}function O5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var l=t+(a>0?".":"")+n;Bf.isPlainObject(i)?O5(i,r,l,a+1):r(l,n,i)}})}});var Jt=G((rAe,YC)=>{"use strict";var eAe=Er(),Boe=ff().timeFormatLocale,Yoe=p2().formatLocale,tv=Ur(),Goe=y2(),Uoe=x0().version,jr=Ar(),Voe=Hf(),Xoe=mt(),dr=qe(),Woe=kr(),PC=(Et(),Ne(It)).BADNUM,In=fa(),Zoe=Io().clearOutline,$oe=E1(),B5=W0(),Joe=P5(),Koe=H5().getModuleCalcData,RC=dr.relinkPrivateKeys,Js=dr._,Qe=YC.exports={};dr.extendFlat(Qe,jr);Qe.attributes=En();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=_a();Qe.layoutAttributes=Sf();var N1=EC();Qe.executeAPICommand=N1.executeAPICommand;Qe.computeAPICommandBindings=N1.computeAPICommandBindings;Qe.manageCommandObserver=N1.manageCommandObserver;Qe.hasSimpleAPICommandBindings=N1.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=dr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(jr.getComponentMethod("annotations","draw")(e),jr.getComponentMethod("legend","draw")(e),jr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=dr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||dr.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||dr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,jr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Qe.graphJson(e,!1,"object");a.version=Uoe;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 l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var joe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Qoe=["year","month","dayMonth","dayMonthYear"];Qe.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||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:Js(e,"Click to enter Plot title"),subtitle:Js(e,"Click to enter Plot subtitle"),x:Js(e,"Click to enter X axis title"),y:Js(e,"Click to enter Y axis title"),colorbar:Js(e,"Click to enter Colorscale title"),annotation:Js(e,"new text")},n._traceWord=Js(e,"trace");var v=zC(e,joe);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=h),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,_=y&&(m||b);_?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=tse(v,n.separators),n._extraFormat=zC(e,Qoe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=rse(),x=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=ese(l,s),Qe.supplyDataDefaults(s,o,i,n);var A=Object.keys(x.x),k=Object.keys(x.y);if(A.length>1&&k.length>1){for(jr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<A.length;c++)dr.pushUnique(w.xaxis,A[c]);for(c=0;c<k.length;c++)dr.pushUnique(w.yaxis,k[c]);for(var S in M)dr.pushUnique(w.cartesian,S)}if(n._has=Qe._hasPlotType.bind(n),l.length===o.length)for(c=0;c<o.length;c++)RC(o[c],l[c]);Qe.supplyLayoutModuleDefaults(i,n,o,e._transitionData);var D=n._visibleModules,E=[];for(c=0;c<D.length;c++){var R=D[c].crossTraceDefaults;R&&dr.pushUnique(E,R)}for(c=0;c<E.length;c++)E[c](o,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,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),O=!!(n._has&&n._has("cartesian")),F=N,I=O;F&&!I?a._bgLayer.remove():I&&!F&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Zoe({_fullLayout:a}),ase(o,n),RC(n,a),jr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,B={},U;for(U in Y)B[U]="old";for(c=0;c<o.length;c++)U=o[c].uid,B[U]||(Y[U]={}),B[U]="new";for(U in B)B[U]==="old"&&delete Y[U];FC(n),jr.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===o.length&&Qe.supplyDefaultsUpdateCalc(u,o)};Qe.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 ese(e,r){var t=r.length,a,n=e.length,i=new Array(t),l={};function o(f,c){i[c]=f,l[f]=1}function s(f,c){if(f&&typeof f=="string"&&!l[f])return o(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)||o(dr.randstr(l),a))}return i}function rse(){var e=jr.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=jr.subplotsRegistry;for(var i in n){var l=n[i],o=l.attr;if(o&&(e.push(i),Array.isArray(o)))for(a=0;a<o.length;a++)dr.pushUnique(e,o[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function zC(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var v=!0,h=0;h<r.length;h++){var p=r[h];n[p]||(c[p]?n[p]=c[p]:v=!1)}v&&(a=!0)}for(var l=0;l<2;l++){for(var o=e._context.locales,s=0;s<2;s++){var u=(o[t]||{}).format;if(u&&(i(u),a))break;o=jr.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(jr.localeRegistry.en.format),n}function tse(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Yoe(e).format(dr.adjustFormat(t))}catch(a){return dr.warnBadFormat(t),dr.noFormat}return t},timeFormat:Boe(e).utcFormat}}function ase(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)}Qe.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=[])};Qe._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=jr.modules[n];if(i&&i.categories[e])return!0}return!1};Qe.cleanPlot=function(e,r,t,a){var n,i,l=a._basePlotModules||[];for(n=0;n<l.length;n++){var o=l[n];o.clean&&o.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],v=c.uid;for(i=0;i<e.length;i++){var h=e[i];if(v===h.uid)continue e}f&&a._infolayer.select(".cb"+v).remove()}};Qe.linkSubplots=function(e,r,t,a){var n,i,l=a._plots||{},o=r._plots={},s=r._subplots,u={_fullData:e,_fullLayout:r},f=s.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],v=l[c],h=In.getFromId(u,c,"x"),p=In.getFromId(u,c,"y"),y;for(v?y=o[c]=v:(y=o[c]={},y.id=c),h._counterAxes.push(p._id),p._counterAxes.push(h._id),h._subplotsWith.push(c),p._subplotsWith.push(c),y.xaxis=h,y.yaxis=p,y._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var m=e[i];if(m.xaxis===y.xaxis._id&&m.yaxis===y.yaxis._id&&m.cliponaxis===!1){y._hasClipOnAxisFalse=!0;break}}}var b=In.list(u,null,!0),_;for(n=0;n<b.length;n++){_=b[n];var w=null;_.overlaying&&(w=In.getFromId(u,_.overlaying),w&&w.overlaying&&(_.overlaying=!1,w=null)),_._mainAxis=w||_,w&&(_.domain=w.domain.slice()),_._anchorAxis=_.anchor==="free"?null:In.getFromId(u,_.anchor)}for(n=0;n<b.length;n++)if(_=b[n],_._counterAxes.sort(In.idSort),_._subplotsWith.sort(dr.subplotSort),_._mainSubplot=nse(_,r),_._counterAxes.length&&(_.automargin&&_.mirror&&_.anchor!=="free"||jr.getComponentMethod("rangeslider","isVisible")(_))){var x=1,M=0;for(i=0;i<_._counterAxes.length;i++){var A=In.getFromId(u,_._counterAxes[i]);x=Math.min(x,A.domain[0]),M=Math.max(M,A.domain[1])}x<M&&(_._counterDomainMin=x,_._counterDomainMax=M)}};function nse(e,r){var t={_fullLayout:r},a=e._id.charAt(0)==="x",n=e._mainAxis._anchorAxis,i="",l="",o="";if(n&&(o=n._mainAxis._id,i=a?e._id+o:o+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;l||(l=c);var v=In.getFromId(t,f);if(o&&v.overlaying===o){i=c;break}}}return i||l}Qe.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,l=a._basePlotModules,o=0,s=0,u,f,c;function v(_){r.push(_);var w=_._module;w&&(dr.pushUnique(n,w),_.visible===!0&&dr.pushUnique(i,w),dr.pushUnique(l,_._module.basePlotModule),o++,_._input.visible!==!1&&s++)}var h={},p=[],y=(t.template||{}).data||{},m=Xoe.traceTemplater(y);for(u=0;u<e.length;u++)c=e[u],f=m.newTrace(c),f.uid=a._traceUids[u],Qe.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,v(f),jr.traceIs(f,"carpetAxis")&&(h[f.carpet]=f),jr.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}};Qe.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return dr.coerce(e||{},t,B5,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]=Qe.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Qe.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Qe.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Qe.supplyAnimationTransitionDefaults(e.transition||{});return t};Qe.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return dr.coerce(e||{},r,B5.frame,a,n)}return t("duration"),t("redraw"),r};Qe.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return dr.coerce(e||{},r,B5.transition,a,n)}return t("duration"),t("easing"),r};Qe.supplyFrameDefaults=function(e){var r={};function t(a,n){return dr.coerce(e,r,Joe,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Qe.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||Woe.defaults,l=i[t%i.length],o;function s(w,x){return dr.coerce(e,r,Qe.attributes,w,x)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=Qe.getModule(r);if(r._module=f,f){var c=f.basePlotModule,v=c.attr,h=c.attributes;if(v&&h){var p=a._subplots,y="";if(Array.isArray(v))for(o=0;o<v.length;o++){var m=v[o],b=dr.coerce(e,r,h,m);p[m]&&dr.pushUnique(p[m],b),y+=b}else y=dr.coerce(e,r,h,v);p[c.name]&&dr.pushUnique(p[c.name],y)}}if(u&&(s("customdata"),s("ids"),s("meta"),jr.traceIs(r,"showLegend")?(dr.coerce(e,r,f.attributes.showlegend?f.attributes:Qe.attributes,"showlegend"),dr.coerce(e,r,f.attributes.legend?f.attributes:Qe.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),dr.coerce(e,r,f.attributes.legend?f.attributes:Qe.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,l,a),jr.traceIs(r,"noOpacity")||s("opacity"),jr.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),jr.traceIs(r,"noHover")||(r.hovertemplate||dr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&jr.getComponentMethod("fx","supplyDefaults")(e,r,l,a)),f&&f.selectPoints)){var _=s("selectedpoints");dr.isTypedArray(_)&&(r.selectedpoints=Array.from(_))}return r};Qe.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,v){return dr.coerce(e,r,Qe.layoutAttributes,c,v)}var n=e.template;dr.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=dr.coerceFont(a,"font"),l=i.size;dr.coerceFont(a,"title.font",i,{overrideDflt:{size:Math.round(l*1.4)}}),a("title.text",r._dfltTitle.plot),a("title.xref");var o=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),dr.coerceFont(a,"title.subtitle.font",i,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),s&&(o==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),o==="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&&Qe.sanitizeMargins(r),jr.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),jr.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),jr.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),jr.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),dr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),jr.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),jr.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),dr.coerce(e,r,$oe,"scattermode")};function z1(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Qe.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,l,o,s=dr.isPlotDiv(r);if(s&&r.emit("plotly_autosize"),n.fillFrame)l=window.innerWidth,o=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(r):{};if(l=z1(u.width)||z1(u.maxWidth)||a.width,o=z1(u.height)||z1(u.maxHeight)||a.height,tv(i)&&i>0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Qe.layoutAttributes.width.min,v=Qe.layoutAttributes.height.min;l<c&&(l=c),o<v&&(o=v);var h=!t.width&&Math.abs(a.width-l)>1,p=!t.height&&Math.abs(a.height-o)>1;(p||h)&&(h&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=jr.componentsRegistry,i=r._basePlotModules,l,o,s,u=jr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(jr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(dr.subplotSort);for(o=0;o<i.length;o++)s=i[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);var c=r._modules;for(o=0;o<c.length;o++)s=c[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);for(l in n)s=n[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t)};Qe.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)),dr.clearThrottle(),dr.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()};Qe.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&dr.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};Qe.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),l;n<0&&(l=(r-1)/(a.l+a.r),a.l=Math.floor(l*a.l),a.r=Math.floor(l*a.r)),i<0&&(l=(t-1)/(a.t+a.b),a.t=Math.floor(l*a.t),a.b=Math.floor(l*a.b))}};Qe.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Qe.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function FC(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 HC=2,OC=2;Qe.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,l=a.margin,o=a.minreducedwidth,s=a.minreducedheight,u=dr.constrain(n-l.l-l.r,HC,o),f=dr.constrain(i-l.t-l.b,OC,s),c=Math.max(0,n-u),v=Math.max(0,i-f),h=a._pushmargin,p=a._pushmarginIds;if(l.autoexpand!==!1){if(!t)delete h[r],delete p[r];else{var y=t.pad;if(y===void 0&&(y=Math.min(12,l.l,l.r,l.t,l.b)),c){var m=(t.l+t.r)/c;m>1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:_,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function ise(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=In.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),FC(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=dr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)h[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}v.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 l){var A=0;for(var k in v)k!=="base"&&tv(v[k][M].size)&&(A=v[k][M].size>A?v[k][M].size:A);var S=Math.max(0,i[M]-A);l[M]=Math.max(0,l[M]-S)}for(var D in v){var E=v[D].l||{},R=v[D].b||{},N=E.val,O=E.size,F=R.val,I=R.size,Y=t-l.r-l.l,B=a-l.t-l.b;for(var U in v){if(tv(O)&&v[U].r){var X=v[U].r.val,W=v[U].r.size;if(X>N){var V=(O*X+(W-Y)*N)/(X-N),J=(W*(1-N)+(O-Y)*(1-X))/(X-N);V+J>s+u&&(s=V,u=J)}}if(tv(I)&&v[U].t){var re=v[U].t.val,ne=v[U].t.size;if(re>F){var de=(I*re+(ne-B)*F)/(re-F),K=(ne*(1-F)+(I-B)*(1-re))/(re-F);de+K>c+f&&(c=de,f=K)}}}}}var ye=dr.constrain(t-i.l-i.r,HC,p),oe=dr.constrain(a-i.t-i.b,OC,y),Ce=Math.max(0,t-ye),se=Math.max(0,a-oe);if(Ce){var fe=(s+u)/Ce;fe>1&&(s/=fe,u/=fe)}if(se){var Te=(c+f)/se;Te>1&&(c/=Te,f/=Te)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.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&&(Qe.didMarginChange(o,n)||ise(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Fe=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount<Fe)return jr.call("_doPlot",e);r._size=o,dr.warn("Too many auto-margin redraws.")}lse(e)};function lse(e){var r=In.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var NC=["l","r","t","b","p","w","h"];Qe.didMarginChange=function(e,r){for(var t=0;t<NC.length;t++){var a=NC[t],n=e[a],i=r[a];if(!tv(n)||Math.abs(i-n)>1)return!0}return!1};Qe.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(dr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(h[b]="_function");return}h[b]=s(c[b],v)}}),h}var p=Array.isArray(c),y=dr.isTypedArray(c);if((p||y)&&c.dtype&&c.shape){var m=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:dr.isArrayBuffer(m)?Goe.encode(m):m},v)}return p?c.map(function(b){return s(b,v)}):y?dr.simpleMap(c,dr.identity):dr.isJSDate(c)?dr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(a=r[t],a.type){case"replace":n=a.value;var o=(i[a.index]||{}).name,s=n.name;i[a.index]=l[s]=n,s!==o&&(delete l[o],l[s]=n);break;case"insert":n=a.value,l[n.name]=n,i.splice(a.index,0,n);break;case"delete":n=i[a.index],delete l[n.name],i.splice(a.index,1);break}return Promise.resolve()};Qe.computeFrame=function(e,r){var t=e._transitionData._frameHash,a,n,i,l;if(!r)throw new Error("computeFrame must be given a string frame name");var o=t[r.toString()];if(!o)return!1;for(var s=[o],u=[o.name];o.baseframe&&(o=t[o.baseframe.toString()])&&u.indexOf(o.name)===-1;)s.push(o),u.push(o.name);for(var f={};o=s.pop();)if(o.layout&&(f.layout=Qe.extendLayout(f.layout,o.layout)),o.data){if(f.data||(f.data=[]),n=o.traces,!n)for(n=[],a=0;a<o.data.length;a++)n[a]=a;for(f.traces||(f.traces=[]),a=0;a<o.data.length;a++)i=n[a],i!=null&&(l=f.traces.indexOf(i),l===-1&&(l=f.data.length,f.traces[l]=i),f.data[l]=Qe.extendTrace(f.data[l],o.data[a]))}return f};Qe.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)}};Qe.extendObjectWithContainers=function(e,r,t){var a,n,i,l,o,s,u,f,c=dr.extendDeepNoArrays({},r||{}),v=dr.expandObjectPaths(c),h={};if(t&&t.length)for(i=0;i<t.length;i++)a=dr.nestedProperty(v,t[i]),n=a.get(),n===void 0?dr.nestedProperty(h,t[i]).set(null):(a.set(null),dr.nestedProperty(h,t[i]).set(n));if(e=dr.extendDeepNoArrays(e||{},v),t&&t.length){for(i=0;i<t.length;i++)if(o=dr.nestedProperty(h,t[i]),u=o.get(),!!u){for(s=dr.nestedProperty(e,t[i]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),l=0;l<u.length;l++){var p=u[l];p===null?f[l]=null:f[l]=Qe.extendObjectWithContainers(f[l],p)}s.set(f)}}return e};Qe.dataArrayContainers=["dimensions"];Qe.layoutArrayContainers=jr.layoutArrayContainers;Qe.extendTrace=function(e,r){return Qe.extendObjectWithContainers(e,r,Qe.dataArrayContainers)};Qe.extendLayout=function(e,r){return Qe.extendObjectWithContainers(e,r,Qe.layoutArrayContainers)};Qe.transition=function(e,r,t,a,n,i){var l={redraw:n.redraw},o={},s=[];return l.prepareFn=function(){for(var u=Array.isArray(r)?r.length:0,f=a.slice(0,u),c=0;c<f.length;c++){var v=f[c],h=e._fullData[v],p=h._module;if(p){if(p.animatable){var y=p.basePlotModule.name;o[y]||(o[y]=[]),o[y].push(v)}e.data[f[c]]=Qe.extendTrace(e.data[f[c]],r[c])}}var m=dr.expandObjectPaths(dr.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var _ in m)b.test(_)&&delete m[_].range;Qe.extendLayout(e.layout,m),delete e.calcdata,Qe.supplyDefaults(e),Qe.doCalcdata(e);var w=dr.expandObjectPaths(t);if(w){var x=e._fullLayout._plots;for(var M in x){var A=x[M],k=A.xaxis,S=A.yaxis,D=k.range.slice(),E=S.range.slice(),R=null,N=null,O=null,F=null;Array.isArray(w[k._name+".range"])?R=w[k._name+".range"].slice():Array.isArray((w[k._name]||{}).range)&&(R=w[k._name].range.slice()),Array.isArray(w[S._name+".range"])?N=w[S._name+".range"].slice():Array.isArray((w[S._name]||{}).range)&&(N=w[S._name].range.slice()),D&&R&&(k.r2l(D[0])!==k.r2l(R[0])||k.r2l(D[1])!==k.r2l(R[1]))&&(O={xr0:D,xr1:R}),E&&N&&(S.r2l(E[0])!==S.r2l(N[0])||S.r2l(E[1])!==S.r2l(N[1]))&&(F={yr0:E,yr1:N}),(O||F)&&s.push(dr.extendFlat({plotinfo:A},O,F))}}return Promise.resolve()},l.runFn=function(u){var f,c=e._fullLayout._basePlotModules,v=s.length,h;if(t)for(h=0;h<c.length;h++)c[h].transitionAxes&&c[h].transitionAxes(e,s,i,u);v?(f=dr.extendFlat({},i),f.duration=0,delete o.cartesian):f=i;for(var p in o){var y=o[p],m=e._fullData[y[0]]._module;m.basePlotModule.plot(e,y,f,u)}},BC(e,i,l)};Qe.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,l={},o=[];return l.prepareFn=function(){var s=n._plots;l.redraw=!1,r.anim==="some"&&(l.redraw=!0),t.anim==="some"&&(l.redraw=!0);for(var u in s){var f=s[u],c=f.xaxis,v=f.yaxis,h=a[c._name].range.slice(),p=a[v._name].range.slice(),y=c.range.slice(),m=v.range.slice();c.setScale(),v.setScale();var b=null,_=null;(c.r2l(h[0])!==c.r2l(y[0])||c.r2l(h[1])!==c.r2l(y[1]))&&(b={xr0:h,xr1:y}),(v.r2l(p[0])!==v.r2l(m[0])||v.r2l(p[1])!==v.r2l(m[1]))&&(_={yr0:p,yr1:m}),(b||_)&&o.push(dr.extendFlat({plotinfo:f},b,_))}return Promise.resolve()},l.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,v,h,p,y=[],m=0;m<u.length;m++)y.push(m);function b(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].transitionAxes&&c[w].transitionAxes(e,o,v,s)}function _(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].plot(e,p,h,s)}o.length&&r.anim?i.ordering==="traces first"?(v=dr.extendFlat({},i,{duration:0}),p=y,h=i,setTimeout(b,i.duration),_()):(v=i,p=null,h=dr.extendFlat({},i,{duration:0}),setTimeout(_,v.duration),b()):o.length?(v=i,b()):r.anim&&(p=y,h=i,_())},BC(e,i,l)};function BC(e,r,t){var a=!1;function n(c){var v=Promise.resolve();if(!c)return v;for(;c.length;)v=v.then(c.shift());return v}function i(c){if(c)for(;c.length;)c.shift()}function l(){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 jr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,h=0;function p(){return v++,function(){h++,!a&&h===v&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return jr.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=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=dr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=In.list(e),a=e._fullData,n=e._fullLayout,i,l,o,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={},o=0;o<a.length;o++)if(Array.isArray(r)&&r.indexOf(o)===-1){s[o]=u[o];continue}for(o=0;o<a.length;o++)i=a[o],i._arrayAttrs=Voe.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(o=0;o<f.length;o++)t.push(n[f[o]].radialaxis,n[f[o]].angularaxis);for(var c in n._colorAxes){var v=n[c];v.cauto!==!1&&(delete v.cmin,delete v.cmax)}function h(y,m){if(i=a[y],l=i._module,!!l.isContainer===m){var b=[];i.visible===!0&&i._length!==0&&l&&l.calc&&(b=l.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:PC,y:PC}]),b[0].t||(b[0].t={}),b[0].trace=i,s[y]=b}}for(use(t,a,n),o=0;o<a.length;o++)h(o,!0);for(o=0;o<a.length;o++)h(o,!1);IC(e);var p=sse(t,e);if(p.length){for(n._numBoxes=0,n._numViolins=0,o=0;o<p.length;o++)h(p[o],!0);for(o=0;o<p.length;o++)h(p[o],!1);IC(e)}jr.getComponentMethod("fx","calc")(e),jr.getComponentMethod("errorbars","calc")(e)};var ose=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function sse(e,r){var t=[],a,n,i,l,o;function s(U,X,W){var V=X._id.charAt(0);if(U==="histogram2dcontour"){var J=X._counterAxes[0],re=In.getFromId(r,J),ne=V==="x"||J==="x"&&re.type==="category",de=V==="y"||J==="y"&&re.type==="category";return function(K,ye){return K===0||ye===0||ne&&K===W[ye].length-1||de&&ye===W.length-1?-1:(V==="y"?ye:K)-1}}else return function(K,ye){return V==="y"?ye:K}}var u={min:function(U){return dr.aggNums(Math.min,null,U)},max:function(U){return dr.aggNums(Math.max,null,U)},sum:function(U){return dr.aggNums(function(X,W){return X+W},null,U)},total:function(U){return dr.aggNums(function(X,W){return X+W},null,U)},mean:function(U){return dr.mean(U)},"geometric mean":function(U){return dr.geometricMean(U)},median:function(U){return dr.median(U)}};function f(U,X){return U[1]-X[1]}function c(U,X){return X[1]-U[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var h=v.categoryorder.match(ose);if(h){var p=h[1],y=h[2],m=v._id.charAt(0),b=m==="x",_=[];for(n=0;n<v._categories.length;n++)_.push([v._categories[n],[]]);for(n=0;n<v._traceIndices.length;n++){var w=v._traceIndices[n],x=r._fullData[w];if(x.visible===!0){var M=x.type;jr.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var A=M==="splom",k=M==="scattergl",S=r.calcdata[w];for(i=0;i<S.length;i++){var D=S[i],E,R;if(A){var N=x._axesDim[v._id];if(!b){var O=x._diag[N][0];O&&(v=r._fullLayout[In.id2name(O)])}var F=D.trace.dimensions[N].values;for(l=0;l<F.length;l++)for(E=v._categoriesMap[F[l]],o=0;o<D.trace.dimensions.length;o++)if(o!==N){var I=D.trace.dimensions[o];_[E][1].push(I.values[l])}}else if(k){for(l=0;l<D.t.x.length;l++)b?(E=D.t.x[l],R=D.t.y[l]):(E=D.t.y[l],R=D.t.x[l]),_[E][1].push(R);D.t&&D.t._scene&&delete D.t._scene.dirty}else if(D.hasOwnProperty("z")){R=D.z;var Y=s(x.type,v,R);for(l=0;l<R.length;l++)for(o=0;o<R[l].length;o++)E=Y(o,l),E+1&&_[E][1].push(R[l][o])}else{if(E=D.p,E===void 0&&(E=D[m]),isNaN(E)||E<0)continue;for(R=D.s,R===void 0&&(R=D.v),R===void 0&&(R=b?D.y:D.x),Array.isArray(R)||(R===void 0?R=[]:R=[R]),l=0;l<R.length;l++)_[E][1].push(R[l])}}}}v._categoriesValue=_;var B=[];for(n=0;n<_.length;n++)B.push([_[n][0],u[p](_[n][1])]);B.sort(y==="descending"?c:f),v._categoriesAggregatedValue=B,v._initialCategories=B.map(function(U){return U[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function use(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}dr.simpleMap(e,n);for(var i=t._axisMatchGroups||[],l=0;l<i.length;l++)for(var o in i[l])a[o]||n(t[In.id2name(o)])}function IC(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,l;for(i=0;i<t.length;i++){var o=t[i],s=o.crossTraceCalc;if(s){var u=o.basePlotModule.name;a[u]?dr.pushUnique(a[u],s):a[u]=[s]}}for(l in a){var f=a[l],c=r._subplots[l];if(Array.isArray(c))for(n=0;n<c.length;n++){var v=c[n],h=l==="cartesian"?r._plots[v]:r[v];for(i=0;i<f.length;i++)f[i](e,h,v)}else for(i=0;i<f.length;i++)f[i](e)}}Qe.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Qe.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Qe.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);jr.getComponentMethod("selections","reselect")(e,n)};Qe.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},l;for(l=0;l<t.length;l++){var o=t[l],s=o[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(o))}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 v in i){var h=i[v],p=h[0][0].trace._module;p.plot(e,r,dr.filterVisible(h),a)}r.traceHash=i};Qe.plotBasePlot=function(e,r,t,a,n){var i=jr.getModule(e),l=Koe(r.calcdata,i)[0];i.plot(r,l,a,n)};Qe.cleanBasePlot=function(e,r,t,a,n){var i=n._has&&n._has(e),l=t._has&&t._has(e);i&&!l&&n["_"+e+"layer"].selectAll("g.trace").remove()}});var Ks={};ht(Ks,{svg:()=>GC,svgAttrs:()=>cse,xlink:()=>UC,xmlns:()=>fse});var fse,GC,UC,cse,js=lt(()=>{"use strict";fse="http://www.w3.org/2000/xmlns/",GC="http://www.w3.org/2000/svg",UC="http://www.w3.org/1999/xlink",cse={xmlns:GC,"xmlns:xlink":UC}});var Ua={};ht(Ua,{CAP_SHIFT:()=>mse,FROM_BL:()=>vse,FROM_BR:()=>hse,FROM_TL:()=>dse,LINE_SPACING:()=>pse,MID_SHIFT:()=>yse,OPPOSITE_SIDE:()=>gse});var vse,dse,hse,pse,mse,yse,gse,Va=lt(()=>{"use strict";vse={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},dse={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},hse={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},pse=1.3,mse=.7,yse=.35,gse={left:"right",right:"left",top:"bottom",bottom:"top"}});var pa=G(pn=>{"use strict";var Kt=Er(),pi=qe(),bse=pi.strTranslate,Y5=(js(),Ne(Ks)),xse=(Va(),Ne(Ua)).LINE_SPACING,_se=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,V5=e=>e?e.match(_se):null;pn.matchTex=V5;var wse=e=>{var r=V5(e);return!!r&&!r[1]&&!r[3]};pn.isPureTex=wse;function JC(e,r,t,a,n,i,l,o){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,v=l===void 0?f:l,h=o===void 0?c:o;(f>v||c>h)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),y=+e.attr("y"),m=i||e.node().getBoundingClientRect().height,b=-m/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,y]+")"+bse(-f/2,b-c/2)}):r[0]==="l"?y=b-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,y=b):(p=p-f*(n==="middle"?.5:n==="end"?1:0),y=y+b-c/2),a.attr({x:p,y})}function Tse(e){e.selectAll("a").each(function(){var r=Kt.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,Z5(a)||null)})})}pn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&V5(a);n&&!Cse()&&(n=null);var i=Kt.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=Ise(e.node(),a);s&&e.style("pointer-events","all"),pn.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");Lse(n[2],f,function(v,h,p){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var y=v&&v.select("svg");if(!y||!y.node()){o(),s();return}e.style("display","none");var m=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(y.node()),Tse(y),h&&h.node()&&y.node().insertBefore(h.node().cloneNode(!0),y.node().firstChild);var b=p.width,_=p.height;y.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",x=y.select("g");x.attr({fill:w,stroke:w}),JC(e,l,m,y,c,u,b,_),t&&t.call(e,m),s(m)})})):o(),e};pn.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=Kt.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"),l=parseInt(e.node().style.fontSize,10);JC(e,r,a,n,i,l)}}};pn.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=Kt.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var Mse=/(<|<|<)/g,Ase=/(>|>|>)/g;function kse(e){return e.replace(Mse,"\\lt ").replace(Ase,"\\gt ")}var G5=null,KC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,VC=!1,XC=!1;function Cse(){let e=KC();return e===3||e===4?!0:(e===null?VC||(VC=!0,pi.warn("MathJax is not loaded. Math equations will not be rendered.")):XC||(XC=!0,pi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Lse(e,r,t){let a=KC();var n;let i=function(){if(!G5){let u=MathJax._.output.svg_ts.SVG,f=pi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=pi.extendFlat({},f.linebreaks,{inline:!1})),G5=MathJax._.mathjax.mathjax.document(document,pi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+pi.randstr({},64);n=Kt.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=kse(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return G5.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)pi.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{pi.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var jC={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"},Sse={sub:"0.3em",sup:"-0.6em"},qse={sub:"-0.21em",sup:"0.42em"},WC="\u200B",ZC=["http:","https:","mailto:","",void 0,":"],QC=pn.NEWLINES=/(\r\n?|\n)/g,X5=/(<[^<>]*>)/,W5=/<(\/?)([^ >]*)(\s+(.*))?>/i,Dse=/<br(\s+.*)?>/i;pn.BR_TAG_ALL=/<br(\s+.*)?>/gi;var eL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,rL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,tL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Ese=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Qs(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&I1(a)}var Pse=/(^|;)\s*color:/;pn.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,l=e.split(X5),o=[],s="",u=0,f=0;f<l.length;f++){var c=l[f],v=c.match(W5),h=v&&v[2].toLowerCase();if(h)a.indexOf(h)!==-1&&(o.push(c),s=h);else{var p=c.length;if(u+p<t)o.push(c),u+=p;else if(u<t){var y=t-u;s&&(s!=="br"||y<=i||p<=i)&&o.pop(),t>i?o.push(c.slice(0,Math.max(0,y-i))+n):o.push(c.slice(0,y));break}s=""}}return o.join("")};var Rse={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},zse=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function I1(e){return e.replace(zse,function(r,t){var a;return t.charAt(0)==="#"?a=Nse(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Rse[t],a||r})}pn.convertEntities=I1;function Nse(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 Ise(e,r){r=r.replace(QC," ");var t=!1,a=[],n,i=-1;function l(){i++;var A=document.createElementNS(Y5.svg,"tspan");Kt.select(A).attr({class:"line",dy:i*xse+"em"}),e.appendChild(A),n=A;var k=a;if(a=[{node:A}],k.length>1)for(var S=1;S<k.length;S++)o(k[S])}function o(A){var k=A.type,S={},D;if(k==="a"){D="a";var E=A.target,R=A.href,N=A.popup;R&&(S={"xlink:xlink:show":E==="_blank"||E.charAt(0)!=="_"?"new":"replace",target:E,"xlink:xlink:href":R},N&&(S.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+N+'");return false;'))}else D="tspan";A.style&&(S.style=A.style);var O=document.createElementNS(Y5.svg,D);if(k==="sup"||k==="sub"){s(n,WC),n.appendChild(O);var F=document.createElementNS(Y5.svg,"tspan");s(F,WC),Kt.select(F).attr("dy",qse[k]),S.dy=Sse[k],n.appendChild(O),n.appendChild(F)}else n.appendChild(O);Kt.select(O).attr(S),n=A.node=O,a.push(A)}function s(A,k){A.appendChild(document.createTextNode(k))}function u(A){if(a.length===1){pi.log("Ignoring unexpected end tag </"+A+">.",r);return}var k=a.pop();A!==k.type&&pi.log("Start tag <"+k.type+"> doesnt match end tag <"+A+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Dse.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(X5),v=0;v<c.length;v++){var h=c[v],p=h.match(W5),y=p&&p[2].toLowerCase(),m=jC[y];if(y==="br")l();else if(m===void 0)s(n,I1(h));else if(p[1])u(y);else{var b=p[4],_={type:y},w=Qs(b,eL);if(w?(w=w.replace(Pse,"$1 fill:"),m&&(w+=";"+m)):m&&(w=m),w&&(_.style=w),y==="a"){t=!0;var x=Qs(b,rL);if(x){var M=Z5(x);M&&(_.href=M,_.target=Qs(b,tL)||"_blank",_.popup=Qs(b,Ese))}}o(_)}}return t}function Z5(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 ZC.indexOf(n)!==-1&&ZC.indexOf(i)!==-1?r:""}pn.sanitizeHTML=function(r){r=r.replace(QC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(X5),l=0;l<i.length;l++){var o=i[l],s=o.match(W5),u=s&&s[2].toLowerCase();if(u in jC)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=Qs(f,eL),v=c?{style:c}:{};if(u==="a"){var h=Qs(f,rL);if(h){var p=Z5(h);if(p){v.href=p;var y=Qs(f,tL);y&&(v.target=y)}}}var m=document.createElement(u);a.appendChild(m),Kt.select(m).attr(v),a=m,n.push(m)}else a.appendChild(document.createTextNode(I1(o)))}var b="innerHTML";return t[b]};pn.lineCount=function(r){return r.selectAll("tspan.line").size()||1};pn.positionText=function(r,t,a){return r.each(function(){var n=Kt.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 l=i("x",t),o=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:l,y:o})})};function $C(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),l=r.node().getBoundingClientRect(),o,s,u;return n==="bottom"?s=function(){return i.bottom-o.height}:n==="middle"?s=function(){return i.top+(i.height-o.height)/2}:s=function(){return i.top},a==="right"?u=function(){return i.right-o.width}:a==="center"?u=function(){return i.left+(i.width-o.width)/2}:u=function(){return i.left},function(){o=this.node().getBoundingClientRect();var f=u()-l.left,c=s()-l.top,v=t.gd||{};if(t.gd){v._fullLayout._calcInverseTransform(v);var h=pi.apply3DTransform(v._fullLayout._invTransform)(f,c);f=h[0],c=h[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var U5="1px ";pn.makeTextShadow=function(e){var r=U5,t=U5,a=U5;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};pn.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=Kt.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function l(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&Kt.select(e.node().parentNode).select(f).style({opacity:0})}function o(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var v=window.getSelection();v.removeAllRanges(),v.addRange(c),f.focus()}function s(){var u=Kt.select(t),f=u.select(".svg-container"),c=f.append("div"),v=e.node().style,h=parseFloat(v.fontSize||12),p=r.text;p===void 0&&(p=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":v.fontFamily||"Arial","font-size":h,color:r.fill||v.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($C(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var y=Kt.select(this).attr("class"),m;y?m="."+y.split(" ")[0]+"-math-group":m="[class*=-math-group]",m&&Kt.select(e.node().parentNode).select(m).style({opacity:0});var b=this.textContent;Kt.select(this).transition().duration(0).remove(),Kt.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var y=this;t._editing=!0,Kt.select(document).on("mouseup",function(){if(Kt.event.target===y)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){Kt.event.which===27?(t._editing=!1,e.style({opacity:1}),Kt.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),Kt.select(this).call($C(e,f,r)))}).on("keydown",function(){Kt.event.which===13&&this.blur()}).call(o)}return r.immediate?l():i.on("click",l),Kt.rebind(e,n,"on")}});var $n=G((aAe,sL)=>{"use strict";var Fse=Er(),nv=Ur(),F1=qe(),eu=kr(),Hse=Ys().isValid;function Ose(e,r,t){var a=r?F1.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(F1.isArrayOrTypedArray(n)){for(var l=0;l<n.length;l++)if(nv(n[l])){i=!0;break}}return F1.isPlainObject(a)&&(i||a.showscale===!0||nv(a.cmin)&&nv(a.cmax)||Hse(a.colorscale)||F1.isPlainObject(a.colorbar))}var aL=["showscale","autocolorscale","colorscale","reversescale","colorbar"],av=["min","max","mid","auto"];function nL(e){var r=e._colorAx,t=r||e,a={},n,i,l;for(i=0;i<aL.length;i++)l=aL[i],a[l]=t[l];if(r)for(n="c",i=0;i<av.length;i++)l=av[i],a[l]=t["c"+l];else{var o;for(i=0;i<av.length;i++){if(l=av[i],o="c"+l,o in t){a[l]=t[o];continue}o="z"+l,o in t&&(a[l]=t[o])}n=o.charAt(0)}return a._sync=function(s,u){var f=av.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function iL(e){for(var r=nL(e),t=r.min,a=r.max,n=r.reversescale?lL(r.colorscale):r.colorscale,i=n.length,l=new Array(i),o=new Array(i),s=0;s<i;s++){var u=n[s];l[s]=t+u[0]*(a-t),o[s]=u[1]}return{domain:l,range:o}}function lL(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 oL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l<n;l++)i[l]=eu.rgbaArray(a[l]);var o=Fse.scale.linear().domain(t).range(i).clamp(!0),s=r.noNumericCheck,u=r.returnArray,f;return s&&u?f=o:s?f=function(c){return eu.rgbaArrayToString(o(c))}:u?f=function(c){return nv(c)?o(c):eu.isValid(c)?c:eu.defaultLine}:f=function(c){return nv(c)?eu.rgbaArrayToString(o(c)):eu.isValid(c)?c:eu.defaultLine},f.domain=o.domain,f.range=function(){return a},f}function Bse(e,r){return oL(iL(e),r)}sL.exports={hasColorscale:Ose,extractOpts:nL,extractScale:iL,flipScale:lL,makeColorScaleFunc:oL,makeColorScaleFuncFromTrace:Bse}});var Xi=G((nAe,cL)=>{"use strict";var uL=(s5(),Ne(o5)),Yse=uL.FORMAT_LINK,Gse=uL.DATE_FORMAT_LINK;function Use(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?$5:fL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function $5(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: "+Yse+"."].join(" ")}function fL(e,r){return $5(e,r)+[" And for dates see: "+Gse+".","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(" ")}cL.exports={axisHoverFormat:Use,descriptionOnlyNumbers:$5,descriptionWithDates:fL}});var Jn=G((lAe,LL)=>{"use strict";var vL=_a(),Yf=vi(),CL=Yi().dash,K5=Mt().extendFlat,dL=mt().templatedArray,iAe=Wn().templateFormatStringDescription,hL=Xi().descriptionWithDates,Vse=(Et(),Ne(It)).ONEDAY,bl=(Aa(),Ne(Ma)),Xse=bl.HOUR_PATTERN,Wse=bl.WEEKDAY_PATTERN,J5={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Zse=K5({},J5,{values:J5.values.slice().concat(["sync"])});function pL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var mL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},yL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},gL={valType:"data_array",editType:"ticks"},bL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function xL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function _L(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var wL={valType:"color",dflt:Yf.defaultLine,editType:"ticks"},TL={valType:"color",dflt:Yf.lightLine,editType:"ticks"};function ML(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var AL=K5({},CL,{editType:"ticks"}),kL={valType:"boolean",editType:"ticks"};LL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Yf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:vL({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:[bl.idRegex.x.toString(),bl.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:[bl.idRegex.x.toString(),bl.idRegex.y.toString()],editType:"calc"},rangebreaks:dL("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:[Wse,Xse,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Vse},editType:"calc"}),tickmode:Zse,nticks:pL(),tick0:mL,dtick:yL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:gL,ticktext:{valType:"data_array",editType:"ticks"},ticks:bL,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:xL(),tickwidth:_L(),tickcolor:wL,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:K5({},CL,{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:vL({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:hL("tick label")},tickformatstops:dL("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:hL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Yf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:kL,gridcolor:TL,gridwidth:ML(),griddash:AL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Yf.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:Yf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",bl.idRegex.x.toString(),bl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",bl.idRegex.x.toString(),bl.idRegex.y.toString()],editType:"plot"},minor:{tickmode:J5,nticks:pL("minor"),tick0:mL,dtick:yL,tickvals:gL,ticks:bL,ticklen:xL("minor"),tickwidth:_L("minor"),tickcolor:wL,gridcolor:TL,gridwidth:ML("minor"),griddash:AL,showgrid:kL,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 H1=G((oAe,qL)=>{"use strict";var Ct=Jn(),SL=_a(),j5=Mt().extendFlat,$se=Bi().overrideAll;qL.exports=$se({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:Ct.linecolor,outlinewidth:Ct.linewidth,bordercolor:Ct.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ct.minor.tickmode,nticks:Ct.nticks,tick0:Ct.tick0,dtick:j5({},Ct.dtick,{}),tickvals:Ct.tickvals,ticktext:Ct.ticktext,ticks:j5({},Ct.ticks,{dflt:""}),ticklabeloverflow:j5({},Ct.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:Ct.ticklen,tickwidth:Ct.tickwidth,tickcolor:Ct.tickcolor,ticklabelstep:Ct.ticklabelstep,showticklabels:Ct.showticklabels,labelalias:Ct.labelalias,tickfont:SL({description:"Sets the color bar's tick label font"}),tickangle:Ct.tickangle,tickformat:Ct.tickformat,tickformatstops:Ct.tickformatstops,tickprefix:Ct.tickprefix,showtickprefix:Ct.showtickprefix,ticksuffix:Ct.ticksuffix,showticksuffix:Ct.showticksuffix,separatethousands:Ct.separatethousands,exponentformat:Ct.exponentformat,minexponent:Ct.minexponent,showexponent:Ct.showexponent,title:{text:{valType:"string"},font:SL({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var iv=G((uAe,EL)=>{"use strict";var Jse=H1(),Kse=(kf(),Ne(V0)).counter,jse=(y5(),Ne(m5)).default,DL=Ys().scales,sAe=jse(DL);function O1(e){return"`"+e+"`"}EL.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",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?DL[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 "+O1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=O1(u+h),_=O1(u+p),w=O1(u+y),x=_+" and "+w,M={};M[p]=M[y]=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[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:A},k[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,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:l,editType:"calc"},k.colorbar=Jse),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Kse("coloraxis"),dflt:null,editType:"calc"}),k}});var eb=G((fAe,PL)=>{"use strict";var Qse=Mt().extendFlat,eue=iv(),Q5=Ys().scales;PL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Q5.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Q5.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Q5.RdBu,editType:"calc"}},coloraxis:Qse({_isSubplotObj:!0,editType:"calc"},eue("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var rb=G((cAe,RL)=>{"use strict";var rue=qe();RL.exports=function(r){return rue.isPlainObject(r.colorbar)}});var nb=G(ab=>{"use strict";var tb=Ur(),zL=qe(),NL=(Et(),Ne(It)),tue=NL.ONEDAY,aue=NL.ONEWEEK;ab.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?tue:1;if(!e)return i;if(tb(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 l=e.charAt(0),o=e.slice(1);return o=tb(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};ab.tick0=function(e,r,t,a){if(r==="date")return zL.cleanDate(e,zL.dateTick0(t,a%aue===0?1:0));if(!(a==="D1"||a==="D2"))return tb(e)?Number(e):0}});var B1=G((dAe,FL)=>{"use strict";var IL=nb(),nue=qe().isArrayOrTypedArray,iue=Dn().isTypedArraySpec,lue=Dn().decodeTypedArraySpec;FL.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(x){var M=o[x];return iue(M)&&(M=lue(M)),M!==void 0?M:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),h=f("tickvals"),p=f("overlaying"),y=n==="category"||n==="multicategory",m;nue(h)?m="array":v?m="linear":p&&!y?m="sync":m="auto";var b=a(u+"tickmode",m);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var _=s.dtick=IL.dtick(v,n);s.tick0=IL.tick0(c,n,t.calendar,_)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":l||a("ticktext")}}});var Y1=G((hAe,OL)=>{"use strict";var ib=qe(),HL=Jn();OL.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?HL.minor:HL,u=i?"minor.":"",f=ib.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=ib.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),v=ib.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var lb=G((pAe,BL)=>{"use strict";BL.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 mi=G((mAe,YL)=>{"use strict";var G1=qe(),oue=mt();YL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=G1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=oue.arrayTemplater(t,n,i),f,c;for(f=0;f<o.length;f++){var v=o[f];G1.isPlainObject(v)?c=u.newItem(v):(c=u.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(v,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(G1.isArrayOrTypedArray(l)){var p=Math.min(l.length,s.length);for(f=0;f<p;f++)G1.relinkPrivateKeys(s[f],l[f])}return s}});var U1=G((yAe,UL)=>{"use strict";var ob=qe(),sue=kr().contrast,GL=Jn(),uue=lb(),fue=mi();UL.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");ob.isPlainObject(l)||delete t.labelalias;var o=uue(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?sue(i.bgColor):f&&f!==GL.color.dflt?f:u.color;if(ob.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!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");fue(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:cue}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function cue(e,r){function t(n,i){return ob.coerce(e,r,GL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var V1=G((gAe,VL)=>{"use strict";var vue=lb();VL.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=vue(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var sb=G((bAe,XL)=>{"use strict";var Fo=qe(),due=mt(),hue=B1(),pue=Y1(),mue=U1(),yue=V1(),gue=H1();XL.exports=function(r,t,a){var n=due.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Fo.coerce(i,n,gue,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",v=l("thicknessmode");l("thickness",v==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var p=l("yref"),y=l("xref"),m=p==="paper",b=y==="paper",_,w,x,M="left";c?(x="middle",M=b?"left":"right",_=b?1.02:1,w=.5):(x=m?"bottom":"top",M="center",_=.5,w=m?1.02:1),Fo.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Fo.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",x),l("ypad"),Fo.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var A=Fo.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");l("ticklabeloverflow",A.indexOf("inside")!==-1?"hide past domain":"hide past div"),hue(i,n,l,"linear");var k=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};A.indexOf("inside")!==-1&&(S.bgColor="black"),yue(i,n,l,"linear",S),mue(i,n,l,"linear",S),pue(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,E=Fo.extendFlat({},k,{family:D.family,size:Fo.bigFont(D.size)});Fo.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Gf=G((xAe,$L)=>{"use strict";var WL=Ur(),fb=qe(),bue=rb(),xue=sb(),ZL=Ys().isValid,_ue=Ar().traceIs;function ub(e,r){var t=r.slice(0,r.length-1);return r?fb.nestedProperty(e,t).get()||{}:e}$L.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=ub(r,l),f=ub(t,l),c=ub(t._template||{},l)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(l+"coloraxis");if(p){var y=_ue(t,"contour")&&fb.nestedProperty(t,"contours.coloring").get()||"heatmap",m=h[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,fb.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[y,t,[v]];return}}var b=u[o+"min"],_=u[o+"max"],w=WL(b)&&WL(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,A=c.colorscale,k;if(M!==void 0&&(k=!ZL(M)),A!==void 0&&(k=!ZL(A)),n(l+"autocolorscale",k),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=bue(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),xue(u,f,a))}}});var QL=G((_Ae,jL)=>{"use strict";var JL=qe(),wue=mt(),KL=eb(),Tue=Gf();jL.exports=function(r,t){function a(c,v){return JL.coerce(r,t,KL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,v){return JL.coerce(i,l,KL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=wue.newContainer(t,s,"coloraxis"),l._name=s,Tue(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f<u[2].length;f++)u[2][f]();delete t._colorAxes[s]}}}});var rS=G((wAe,eS)=>{"use strict";var Mue=qe(),Aue=$n().hasColorscale,kue=$n().extractOpts;eS.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Mue.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var h=kue(v),p=h.auto;(p||h.min===void 0)&&a(v,c.min),(p||h.max===void 0)&&a(v,c.max),h.autocolorscale&&a(v,"colorscale")}}for(var i=0;i<r.length;i++){var l=r[i],o=l._module.colorbar;if(o)if(Array.isArray(o))for(var s=0;s<o.length;s++)n(l,o[s]);else n(l,o);Aue(l,"marker.line")&&n(l,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)n(t[u],{min:"cmin",max:"cmax"})}});var lv=G((TAe,aS)=>{"use strict";var tS=Ur(),cb=qe(),Cue=$n().extractOpts;aS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?cb.nestedProperty(t,l).get():t,s=Cue(o),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,h=function(){return cb.aggNums(Math.min,null,i)},p=function(){return cb.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&tS(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&tS(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v<v-f&&(c=v+(v-f))),f===c&&(f-=.5,c+=.5),s._sync("min",f),s._sync("max",c),s.autocolorscale){var y;f*c<0?y=n.colorscale.diverging:f>=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var vb=G((MAe,nS)=>{"use strict";var X1=Ys(),Uf=$n();nS.exports={moduleType:"component",name:"colorscale",attributes:iv(),layoutAttributes:eb(),supplyLayoutDefaults:QL(),handleDefaults:Gf(),crossTraceDefaults:rS(),calc:lv(),scales:X1.scales,defaultScale:X1.defaultScale,getScale:X1.get,isValidScale:X1.isValid,hasColorscale:Uf.hasColorscale,extractOpts:Uf.extractOpts,extractScale:Uf.extractScale,flipScale:Uf.flipScale,makeColorScaleFunc:Uf.makeColorScaleFunc,makeColorScaleFuncFromTrace:Uf.makeColorScaleFuncFromTrace}});var Kn=G((AAe,lS)=>{"use strict";var iS=qe(),Lue=Dn().isTypedArraySpec;lS.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 iS.isPlainObject(r)&&(iS.isArrayOrTypedArray(r.size)||Lue(r.size))}}});var sS=G((kAe,oS)=>{"use strict";var Sue=Ur();oS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return Sue(s)&&s>0?Math.max(s,i):0}}});var Wi=G(Xa=>{"use strict";var ov=qe();Xa.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Xa.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(Xa.getSubplot(e))!==-1};Xa.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};Xa.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};Xa.c2dApply=function(e,r){e.length!==r.length&&ov.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};Xa.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||Xa.quadrature(r,t):e.charAt(0)==="x"?r:t};Xa.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};Xa.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};Xa.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};Xa.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)),Xa.appendArrayPointValue(n,r,a),n};Xa.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],l=uS(i);if(e[l]===void 0){var o=ov.nestedProperty(r,i).get(),s=fS(o,t);s!==void 0&&(e[l]=s)}}};Xa.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],l=uS(i);if(e[l]===void 0){for(var o=ov.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=fS(o,t[u]);e[l]=s}}};var que={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function uS(e){return que[e]||e}function fS(e,r){if(Array.isArray(r)){if(ov.isArrayOrTypedArray(e)&&ov.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Due={x:!0,y:!0},Eue={"x unified":!0,"y unified":!0};Xa.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Eue[e]};Xa.isXYhover=function(e){return typeof e!="string"?!1:!!Due[e]}});var hb=G((LAe,cS)=>{var db={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Pue=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Rue=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function zue(e){let r=[];return e.replace(Pue,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=Nue(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===db[i])return r.push([l,...o]),"";if(o.length<db[i])throw new Error("malformed path data");r.push([l,...o.splice(0,db[i])])}}),r}function Nue(e){let r=e.match(Rue);return r?r.map(Number):[]}cS.exports=zue});var gS=G((SAe,yS)=>{"use strict";var Iue=hb(),We=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Pr="M0,0Z",vS=Math.sqrt(2),Ho=Math.sqrt(3),pb=Math.PI,mb=Math.cos,yb=Math.sin;yS.exports={circle:{n:0,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?zr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.4,2),n=We(e*1.2,2);return zr(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(Rr(r))return Pr;var a=We(e*.8/vS,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return zr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*2/Ho,2),n=We(e/2,2),i=We(e,2);return zr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*2/Ho,2),n=We(e/2,2),i=We(e,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*2/Ho,2),n=We(e/2,2),i=We(e,2);return zr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*2/Ho,2),n=We(e/2,2),i=We(e,2);return zr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.6,2),n=We(e*1.2,2);return zr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.6,2),n=We(e*1.2,2);return zr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.6,2),n=We(e*1.2,2);return zr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.6,2),n=We(e*1.2,2);return zr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.951,2),n=We(e*.588,2),i=We(-e,2),l=We(e*-.309,2),o=We(e*.809,2);return zr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2),n=We(e/2,2),i=We(e*Ho/2,2);return zr(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(Rr(r))return Pr;var a=We(e,2),n=We(e/2,2),i=We(e*Ho/2,2);return zr(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(Rr(r))return Pr;var a=We(e*.924,2),n=We(e*.383,2);return zr(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(Rr(r))return Pr;var a=e*1.4,n=We(a*.225,2),i=We(a*.951,2),l=We(a*.363,2),o=We(a*.588,2),s=We(-a,2),u=We(a*-.309,2),f=We(a*.118,2),c=We(a*.809,2),v=We(a*.382,2);return zr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+v+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*.66,2),n=We(e*.38,2),i=We(e*.76,2);return zr(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(Rr(r))return Pr;var a=We(e*Ho*.8,2),n=We(e*.8,2),i=We(e*1.6,2),l=We(e*4,2),o="A "+l+","+l+" 0 0 1 ";return zr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*Ho*.8,2),n=We(e*.8,2),i=We(e*1.6,2),l=We(e*4,2),o="A "+l+","+l+" 0 0 1 ";return zr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*1.1,2),n=We(e*2,2),i="A "+n+","+n+" 0 0 1 ";return zr(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(Rr(r))return Pr;var a=We(e*1.4,2),n=We(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return zr(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(Rr(r))return Pr;var a=We(e*.7,2),n=We(e*1.4,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*1.4,2),n=We(e*.7,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e,2),n=We(e/vS,2);return zr(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(Rr(r))return Pr;var a=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e*1.3,2);return zr(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(Rr(r))return Pr;var a=We(e*1.3,2),n=We(e*.65,2);return zr(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(Rr(r))return Pr;var a=We(e*1.4,2);return zr(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(Rr(r))return Pr;var a=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e*1.2,2),n=We(e*.85,2);return zr(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(Rr(r))return Pr;var a=We(e/2,2),n=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return zr(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(Rr(r))return Pr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return zr(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(Rr(r))return Pr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return zr(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(Rr(r))return Pr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return zr(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(Rr(r))return Pr;var a=We(e*1.4,2);return zr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2);return zr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2),n=We(e*2,2);return zr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2),n=We(e*2,2);return zr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*2,2),n=We(e,2);return zr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e*2,2),n=We(e,2);return zr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Rr(r))return Pr;var a=We(e,2),n=We(e*2,2);return zr(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(Rr(r))return Pr;var a=We(e,2),n=We(e*2,2);return zr(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(Rr(r))return Pr;var a=We(e*2,2),n=We(e,2);return zr(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(Rr(r))return Pr;var a=We(e*2,2),n=We(e,2);return zr(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(Rr(r))return Pr;var a=pb/2.5,n=2*e*mb(a),i=2*e*yb(a);return zr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Rr(r))return Pr;var a=pb/4,n=2*e*mb(a),i=2*e*yb(a);return zr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Rr(e){return e===null}var dS,hS,pS,mS;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(pS===e&&mS===r&&dS===t)return hS;pS=e,mS=r,dS=t;function a(m,b){var _=mb(m),w=yb(m),x=b[0],M=b[1]+(r||0);return[x*_-M*w,x*w+M*_]}for(var n=e/180*pb,i=0,l=0,o=Iue(t),s="",u=0;u<o.length;u++){var f=o[u],c=f[0],v=i,h=l;if(c==="M"||c==="L")i=+f[1],l=+f[2];else if(c==="m"||c==="l")i+=+f[1],l+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")l=+f[1];else if(c==="v")l+=+f[1];else if(c==="A"){i=+f[1],l=+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-=v,l-=h);var y=a(n,[i,l]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=y[0],f[2]=y[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return hS=s,s}});var $r=G((qAe,FS)=>{"use strict";var ka=Er(),ft=qe(),Fue=ft.numberFormat,Oo=Ur(),Z1=Ar(),ma=kr(),Hue=vb(),uv=ft.strTranslate,$1=pa(),Oue=(js(),Ne(Ks)),Bue=(Va(),Ne(Ua)),Yue=Bue.LINE_SPACING,LS=(Af(),Ne(Mf)).DESELECTDIM,Gue=Kn(),Uue=sS(),Vue=Wi().appendArrayPointValue,je={};FS.exports=je;je.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ma.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",gb(Wue(f))),s&&e.style("text-shadow",s==="auto"?$1.makeTextShadow(ma.contrast(i)):gb(s)),u&&e.style("text-decoration-line",gb(Zue(u)))};function gb(e){return e==="none"?void 0:e}var Xue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Wue(e){return Xue[e]}function Zue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}je.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};je.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};je.setRect=function(e,r,t,a,n){e.call(je.setPosition,r,t).call(je.setSize,a,n)};je.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Oo(n)&&Oo(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",uv(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=ka.select(this);je.translatePoint(a,n,r,t)})};je.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};je.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=Z1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,ka.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!Oo(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};je.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ma.stroke(r,a||i.color),je.dashLine(r,o,l)};je.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ka.select(this).call(ma.stroke,t||i.color).call(je.dashLine,o,l)})};je.dashLine=function(e,r,t){t=+t||0,r=je.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};je.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 SS(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=je.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),v=l(n.solidity,0,.3),h=r.uid;je.pattern(e,"point",t,h,o,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.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(ES,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(je.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ma.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=ka.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};SS(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ka.select(this);a[0].trace&&SS(n,a[0].trace,r,t)})};var bS=gS();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(bS).forEach(function(e){var r=bS[e],t=r.n;je.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),je.symbolNames[t]=e,je.symbolFuncs[t]=r.f,je.symbolBackOffs[t]=r.backoff||0,r.needLine&&(je.symbolNeedLines[t]=!0),r.noDot?je.symbolNoDot[t]=!0:je.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(je.symbolNoFill[t]=!0)});var $ue=je.symbolNames.length,Jue="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(Oo(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=je.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=$ue||e>=400?0:Math.floor(Math.max(e,0))};function qS(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?Jue:"")}var xS=Fue("~f"),DS={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}};je.gradient=function(e,r,t,a,n,i){var l=DS[a];return ES(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function ES(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),h=0;h<f;h++)c.reversed?v[f-1-h]=[xS((1-n[h][0])*100),n[h][1]]:v[h]=[xS(n[h][0]*100),n[h][1]];var p=r._fullLayout,y="g"+p._uid+"-"+t,m=p._defs.select(".gradients").selectAll("#"+y).data([a+v.join(";")],ft.identity);m.exit().remove(),m.enter().append(c.node).each(function(){var b=ka.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",y);var _=b.selectAll("stop").data(v);_.exit().remove(),_.enter().append("stop"),_.each(function(w){ka.select(this).attr({offset:w[0]+"%","stop-color":ma.rgb(w[1]),"stop-opacity":ma.parse(w[1]).alpha})})}),e.style(i,Tb(y,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}je.pattern=function(e,r,t,a,n,i,l,o,s,u,f,c){var v=r==="legend";o&&(s==="overlay"?(u=o,f=ma.contrast(u)):(u=void 0,f=o));var h=t._fullLayout,p="p"+h._uid+"-"+a,y,m,b=function(N,O,F,I,Y){return I+(Y-I)*(N-O)/(F-O)},_,w,x,M,A={},k=ma.rgb(f),S=ma.parse(f).alpha,D=c*S;switch(n){case"/":y=i*Math.sqrt(2),m=i*Math.sqrt(2),_="M-"+y/4+","+m/4+"l"+y/2+",-"+m/2+"M0,"+m+"L"+y+",0M"+y/4*3+","+m/4*5+"l"+y/2+",-"+m/2,w=l*i,M="path",A={d:_,opacity:D,stroke:k,"stroke-width":w+"px"};break;case"\\":y=i*Math.sqrt(2),m=i*Math.sqrt(2),_="M"+y/4*3+",-"+m/4+"l"+y/2+","+m/2+"M0,0L"+y+","+m+"M-"+y/4+","+m/4*3+"l"+y/2+","+m/2,w=l*i,M="path",A={d:_,opacity:D,stroke:k,"stroke-width":w+"px"};break;case"x":y=i*Math.sqrt(2),m=i*Math.sqrt(2),_="M-"+y/4+","+m/4+"l"+y/2+",-"+m/2+"M0,"+m+"L"+y+",0M"+y/4*3+","+m/4*5+"l"+y/2+",-"+m/2+"M"+y/4*3+",-"+m/4+"l"+y/2+","+m/2+"M0,0L"+y+","+m+"M-"+y/4+","+m/4*3+"l"+y/2+","+m/2,w=i-i*Math.sqrt(1-l),M="path",A={d:_,opacity:D,stroke:k,"stroke-width":w+"px"};break;case"|":y=i,m=i,M="path",_="M"+y/2+",0L"+y/2+","+m,w=l*i,M="path",A={d:_,opacity:D,stroke:k,"stroke-width":w+"px"};break;case"-":y=i,m=i,M="path",_="M0,"+m/2+"L"+y+","+m/2,w=l*i,M="path",A={d:_,opacity:D,stroke:k,"stroke-width":w+"px"};break;case"+":y=i,m=i,M="path",_="M"+y/2+",0L"+y/2+","+m+"M0,"+m/2+"L"+y+","+m/2,w=i-i*Math.sqrt(1-l),M="path",A={d:_,opacity:D,stroke:k,"stroke-width":w+"px"};break;case".":y=i,m=i,l<Math.PI/4?x=Math.sqrt(l*i*i/Math.PI):x=b(l,Math.PI/4,1,i/2,i/Math.sqrt(2)),M="circle",A={cx:y/2,cy:m/2,r:x,opacity:D,fill:k};break;default:y=i,m=i,M="path",A={d:n,opacity:D,fill:k};break}var E=[n||"noSh",u||"noBg",f||"noFg",i,l].join(";"),R=h._defs.select(".patterns").selectAll("#"+p).data([E],ft.identity);R.exit().remove(),R.enter().append("pattern").each(function(){var N=ka.select(this);if(N.attr({id:p,width:y+"px",height:m+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var O=ma.rgb(u),F=ma.parse(u).alpha,I=N.selectAll("rect").data([0]);I.exit().remove(),I.enter().append("rect").attr({width:y+"px",height:m+"px",fill:O,"fill-opacity":F})}var Y=N.selectAll(M).data([0]);Y.exit().remove(),Y.enter().append(M).attr(A)}),e.style("fill",Tb(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};je.initGradients=function(e){var r=e._fullLayout,t=ft.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),ka.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};je.initPatterns=function(e){var r=e._fullLayout,t=ft.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),ka.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};je.getPatternAttr=function(e,r,t){return e&&ft.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};je.pointStyle=function(e,r,t,a){if(e.size()){var n=je.makePointStyleFns(r);e.each(function(i){je.singlePointStyle(i,ka.select(this),r,n,t,a)})}};je.singlePointStyle=function(e,r,t,a,n,i){var l=t.marker,o=l.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?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=je.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Ab(e,t),c=Mb(e,t);r.attr("d",qS(u,s,f,c))}var v=!1,h,p,y;if(e.so)y=o.outlierwidth,p=o.outliercolor,h=l.outliercolor;else{var m=(o||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):ft.isArrayOrTypedArray(o.color)?p=ma.defaultLine:p=o.color,ft.isArrayOrTypedArray(l.color)&&(h=ma.defaultLine,v=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let b=e.mld||(o||{}).dash;if(b&&je.dashLine(r,b,y),e.om)r.call(ma.stroke,h).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var _=l.gradient,w=e.mgt;w?v=!0:w=_&&_.type,ft.isArrayOrTypedArray(w)&&(w=w[0],DS[w]||(w=0));var x=l.pattern,M=je.getPatternAttr,A=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?v=!0:k=_.color;var S=t.uid;v&&(S+="-"+e.i),je.gradient(r,n,S,w,[[0,k],[1,h]],"fill")}else if(A){var D=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,D=!0);var R=M(E,e.i,i&&i.color||null),N=M(x.bgcolor,e.i,null),O=x.fgopacity,F=M(x.size,e.i,8),I=M(x.solidity,e.i,.3);D=D||e.mcc||ft.isArrayOrTypedArray(x.shape)||ft.isArrayOrTypedArray(x.path)||ft.isArrayOrTypedArray(x.bgcolor)||ft.isArrayOrTypedArray(x.fgcolor)||ft.isArrayOrTypedArray(x.size)||ft.isArrayOrTypedArray(x.solidity);var Y=t.uid;D&&(Y+="-"+e.i),je.pattern(r,"point",n,Y,A,F,I,e.mcc,x.fillmode,N,R,O)}else ft.isArrayOrTypedArray(h)?ma.fill(r,h[e.i]):ma.fill(r,h);y&&ma.stroke(r,p)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),Z1.traceIs(e,"symbols")&&(r.ms2mrc=Gue.isBubble(e)?Uue(e):function(){return(t.size||6)/2}),e.selectedpoints&&ft.extendFlat(r,je.makeSelectedPointStyleFns(e)),r};je.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(ft.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:M:c?u:LS*M});var v=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(x){var M=x.mcc||v;return x.selected?h||M:p||M});var y=n.size,m=i.size,b=l.size,_=m!==void 0,w=b!==void 0;return Z1.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var M=x.mrc||y/2;return x.selected?_?m/2:M:w?b/2:M}),r};je.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ma.addOpacity(c,LS))},r};je.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ma.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",qS(je.symbolNumber(o),s,Ab(l,r),Mb(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ka.select(this),o=0;o<n.length;o++)n[o](l,i)})}};je.tryColorscale=function(e,r){var t=r?ft.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&ft.isArrayOrTypedArray(a))return Hue.makeColorScaleFuncFromTrace(t)}return ft.identity};var bb={start:1,end:-1,middle:0,bottom:1,top:-1};function PS(e,r,t,a,n){var i=ka.select(e.node().parentNode),l=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",o=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",s=a?a/.8+1:0,u=($1.lineCount(e)-1)*Yue+1,f=bb[o]*s,c=t*.75+bb[l]*s+(bb[l]-1)*u*t/2;e.attr("text-anchor",o),n||i.attr("transform",uv(f,c))}function RS(e,r){var t=e.ts||r.textfont.size;return Oo(t)&&t>0?t:0}je.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=je.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ka.select(this),u=i?ft.extractOption(o,r,"txt","texttemplate"):ft.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},v={};Vue(v,r,o.i),u=ft.texttemplateString({data:[v,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=RS(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(je.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:y}).text(u).call($1.convertToTspans,t).call(PS,h,p,o.mrc)})}};je.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedTextStyleFns(r);e.each(function(a){var n=ka.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=RS(a,r);ma.fill(n,i);var s=Z1.traceIs(r,"bar-like");PS(n,l,o,a.mrc2||a.mrc,s)})}};var _S=.5;je.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(W1(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};je.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[W1(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(W1(e[i-1],e[i],e[i+1],r));for(n.push(W1(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 zS,NS;function Vf(e,r,t){return t&&(e=IS(e)),r?au(e[1]):tu(e[0])}function tu(e){var r=ka.round(e,2);return zS=r,r}function au(e){var r=ka.round(e,2);return NS=r,r}function W1(e,r,t,a){var n=e[0]-r[0],i=e[1]-r[1],l=t[0]-r[0],o=t[1]-r[1],s=Math.pow(n*n+i*i,_S/2),u=Math.pow(l*l+o*o,_S/2),f=(u*u*n-s*s*l)*a,c=(u*u*i-s*s*o)*a,v=3*u*(s+u),h=3*s*(s+u);return[[tu(r[0]+(v&&f/v)),au(r[1]+(v&&c/v))],[tu(r[0]-(h&&f/h)),au(r[1]-(h&&c/h))]]}var Kue={hv:function(e,r,t){return"H"+tu(r[0])+"V"+Vf(r,1,t)},vh:function(e,r,t){return"V"+au(r[1])+"H"+Vf(r,0,t)},hvh:function(e,r,t){return"H"+tu((e[0]+r[0])/2)+"V"+au(r[1])+"H"+Vf(r,0,t)},vhv:function(e,r,t){return"V"+au((e[1]+r[1])/2)+"H"+tu(r[0])+"V"+Vf(r,1,t)}},jue=function(e,r,t){return"L"+Vf(r,0,t)+","+Vf(r,1,t)};je.steps=function(e){var r=Kue[e]||jue;return function(t){for(var a="M"+tu(t[0][0])+","+au(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function IS(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 l=ft.isArrayOrTypedArray(t),o=e,s=r?r[0]:zS||0,u=r?r[1]:NS||0,f=o[0],c=o[1],v=f-s,h=c-u,p=Math.atan2(h,v),y=l?t[i]:t;if(y==="auto"){var m=o.i;a.type==="scatter"&&m--;var b=o.marker,_=b.symbol;ft.isArrayOrTypedArray(_)&&(_=_[m]);var w=b.size;ft.isArrayOrTypedArray(w)&&(w=w[m]),y=b?je.symbolBackOffs[je.symbolNumber(_)]*w:0,y+=je.getMarkerStandoff(n[m],a)||0}var x=f-y*Math.cos(p),M=c-y*Math.sin(p);(x<=f&&x>=s||x>=f&&x<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[x,M])}return e}je.applyBackoff=IS;je.makeTester=function(){var e=ft.ensureSingleById(ka.select("body"),"svg","js-plotly-tester",function(t){t.attr(Oue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=ft.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});je.tester=e,je.testref=r};je.savedBBoxes={};var xb=0,Que=1e4;je.bBox=function(e,r,t){t||(t=wS(e));var a;if(t){if(a=je.savedBBoxes[t],a)return ft.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=wS(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=je.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=je.savedBBoxes[t],a)return ft.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ka.select(u).attr("transform",null).call($1.positionText,0,0);var c=u.getBoundingClientRect(),v=je.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return xb>=Que&&(je.savedBBoxes={},xb=0),t&&(je.savedBBoxes[t]=h),xb++,ft.extendFlat({},h)};function wS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}je.setClipUrl=function(e,r,t){e.attr("clip-path",Tb(r,t))};function Tb(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}je.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,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};je.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=uv(r,t),l=l.trim(),e[i]("transform",l),l};je.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,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};je.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var efe=/\s*sc.*/;je.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(efe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var rfe=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ka.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(rfe);r===1&&t===1?a=[]:a=[uv(l,o),"scale("+r+","+t+")",uv(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Mb(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}je.getMarkerStandoff=Mb;var sv=Math.atan2,ru=Math.cos,Xf=Math.sin;function TS(e,r){var t=r[0],a=r[1];return[t*ru(e)-a*Xf(e),t*Xf(e)+a*ru(e)]}var MS,AS,kS,CS,_b,wb;function Ab(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Oo(t)||ft.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.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]),v=r._geo.project([u+1e-5,f]),h=sv(v[1]-n,v[0]-a),p=sv(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,_=MS/180*Math.PI,w=AS/180*Math.PI,x=_-m,M=ru(w)*Xf(x),A=Xf(w)*ru(b)-ru(w)*Xf(b)*ru(x);y=-sv(M,A)-Math.PI,MS=u,AS=f}var k=TS(h,[ru(y),0]),S=TS(p,[Xf(y),0]);t=sv(k[1]+S[1],k[0]+S[0])/Math.PI*180,i==="previous"&&!(wb===r.uid&&e.i===_b+1)&&(t=null)}if(i==="previous"&&!r._geo)if(wb===r.uid&&e.i===_b+1&&Oo(a)&&Oo(n)){var D=a-kS,E=n-CS,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=sv(E,D)/Math.PI*180+90}else t=null}return kS=a,CS=n,_b=e.i,wb=r.uid,t}je.getMarkerAngle=Ab});var fv=G((DAe,YS)=>{"use strict";var Wf=Er(),tfe=Ur(),afe=Jt(),kb=Ar(),nu=qe(),HS=nu.strTranslate,J1=$r(),K1=kr(),Zf=pa(),OS=(Af(),Ne(Mf)),nfe=(Va(),Ne(Ua)).OPPOSITE_SIDE,BS=/ [XY][0-9]* /,Cb=1.6,Lb=1.6;function ife(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,h=n.title,p=(h&&h.text?h.text:"").trim(),y=!1,m=h&&h.font?h.font:{},b=m.family,_=m.size,w=m.color,x=m.weight,M=m.style,A=m.variant,k=m.textcase,S=m.lineposition,D=m.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,O=(n.title||{}).subtitle||{text:"",font:{}},F=(O.text||"").trim(),I=!1,Y=1,B=O.font,U=B.family,X=B.size,W=B.color,V=B.weight,J=B.style,re=B.variant,ne=B.textcase,de=B.lineposition,K=B.shadow,ye;i==="title.text"?ye="titleText":i.indexOf("axis")!==-1?ye="axisTitleText":i.indexOf("colorbar")!==-1&&(ye="colorbarTitleText");var oe=e._context.edits[ye];function Ce(Ke,er){return Ke===void 0||er===void 0?!1:Ke.replace(BS," % ")===er.replace(BS," % ")}p===""?v=0:Ce(p,l)&&(oe||(p=""),v=.2,y=!0),R&&(F===""?Y=0:Ce(F,N)&&(oe||(F=""),Y=.2,I=!0)),t._meta?p=nu.templateString(p,t._meta):a._meta&&(p=nu.templateString(p,a._meta));var se=p||F||oe,fe;c||(c=nu.ensureSingle(a._infolayer,"g","g-"+r),fe=a._hColorbarMoveTitle);var Te=c.selectAll("text."+r).data(se?[0]:[]);Te.enter().append("text"),Te.text(p).attr("class",r),Te.exit().remove();var Fe=null,be=r+"-subtitle",Me=F||oe;if(R&&(Fe=c.selectAll("text."+be).data(Me?[0]:[]),Fe.enter().append("text"),Fe.text(F).attr("class",be),Fe.exit().remove()),!se)return c;function Ae(Ke,er){nu.syncOrAsync([Le,ke],{title:Ke,subtitle:er})}function Le(Ke){var er=Ke.title,De=Ke.subtitle,Ye;!f&&fe&&(f={}),f?(Ye="",f.rotate&&(Ye+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||fe)&&(Ye+=HS(0,(f.offset||0)-(fe||0)))):Ye=null,er.attr("transform",Ye);function rr(le){if(le){var ge=Wf.select(le.node().parentNode).select("."+be);if(!ge.empty()){var Ie=le.node().getBBox();if(Ie.height){var Xe=Ie.y+Ie.height+Cb*X;ge.attr("y",Xe)}}}}if(er.style("opacity",v*K1.opacity(w)).call(J1.font,{color:K1.rgb(w),size:Wf.round(_,2),family:b,weight:x,style:M,variant:A,textcase:k,shadow:D,lineposition:S}).attr(u).call(Zf.convertToTspans,e,rr),De&&!De.empty()){var te=c.select("."+r+"-math-group"),pe=er.node().getBBox(),Ve=te.node()?te.node().getBBox():void 0,vr=Ve?Ve.y+Ve.height+Cb*X:pe.y+pe.height+Lb*X,hr=nu.extendFlat({},u,{y:vr});De.attr("transform",Ye),De.style("opacity",Y*K1.opacity(W)).call(J1.font,{color:K1.rgb(W),size:Wf.round(X,2),family:U,weight:V,style:J,variant:re,textcase:ne,shadow:K,lineposition:de}).attr(hr).call(Zf.convertToTspans,e)}return afe.previousPromises(e)}function ke(Ke){var er=Ke.title,De=Wf.select(er.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Ye=nfe[s.side],rr=s.side==="left"||s.side==="top"?-1:1,te=tfe(s.pad)?s.pad:2,pe=J1.bBox(De.node()),Ve={t:0,b:0,l:0,r:0},vr=e._fullLayout._reservedMargin;for(var hr in vr)for(var le in vr[hr]){var ge=vr[hr][le];Ve[le]=Math.max(Ve[le],ge)}var Ie={left:Ve.l,top:Ve.t,right:a.width-Ve.r,bottom:a.height-Ve.b},Xe=s.maxShift||rr*(Ie[s.side]-pe[s.side]),He=0;if(Xe<0)He=Xe;else{var Ze=s.offsetLeft||0,Je=s.offsetTop||0;pe.left-=Ze,pe.right-=Ze,pe.top-=Je,pe.bottom-=Je,s.selection.each(function(){var _r=J1.bBox(this);nu.bBoxIntersect(pe,_r,te)&&(He=Math.max(He,rr*(_r[s.side]-pe[Ye])+te))}),He=Math.min(Xe,He),n._titleScoot=Math.abs(He)}if(He>0||Xe<0){var mr={left:[-He,0],right:[He,0],top:[0,-He],bottom:[0,He]}[s.side];De.attr("transform",HS(mr[0],mr[1]))}}}Te.call(Ae,Fe);function ze(Ke,er){Ke.text(er).on("mouseover.opacity",function(){Wf.select(this).transition().duration(OS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Wf.select(this).transition().duration(OS.HIDE_PLACEHOLDER).style("opacity",0)})}if(oe&&(p?Te.on(".opacity",null):(ze(Te,l),y=!0),Te.call(Zf.makeEditable,{gd:e}).on("edit",function(Ke){o!==void 0?kb.call("_guiRestyle",e,i,Ke,o):kb.call("_guiRelayout",e,i,Ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ae)}).on("input",function(Ke){this.text(Ke||" ").call(Zf.positionText,u.x,u.y)}),R)){if(R&&!p){var Se=Te.node().getBBox(),Ue=Se.y+Se.height+Lb*X;Fe.attr("y",Ue)}F?Fe.on(".opacity",null):(ze(Fe,N),I=!0),Fe.call(Zf.makeEditable,{gd:e}).on("edit",function(Ke){kb.call("_guiRelayout",e,"title.subtitle.text",Ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ae)}).on("input",function(Ke){this.text(Ke||" ").call(Zf.positionText,Fe.attr("x"),Fe.attr("y"))})}return Te.classed("js-placeholder",y),Fe&&!Fe.empty()&&Fe.classed("js-placeholder",I),c}YS.exports={draw:ife,SUBTITLE_PADDING_EM:Lb,SUBTITLE_PADDING_MATHJAX_EM:Cb}});var ip=G((EAe,WS)=>{"use strict";var lfe=Er(),ofe=ff().utcFormat,yt=qe(),sfe=yt.numberFormat,xl=Ur(),Bo=yt.cleanNumber,ufe=yt.ms2DateTime,GS=yt.dateTime2ms,_l=yt.ensureNumber,US=yt.isArrayOrTypedArray,Yo=(Et(),Ne(It)),j1=Yo.FP_SAFE,Zi=Yo.BADNUM,ffe=Yo.LOG_CLIP,cfe=Yo.ONEWEEK,Q1=Yo.ONEDAY,ep=Yo.ONEHOUR,VS=Yo.ONEMIN,XS=Yo.ONESEC,rp=fa(),np=(Aa(),Ne(Ma)),tp=np.HOUR_PATTERN,ap=np.WEEKDAY_PATTERN;function cv(e){return Math.pow(10,e)}function Sb(e){return e!=null}var vfe=2;function dfe(e,r){if(e<=0)return 0;let t=Math.max(0,r-vfe);return e>t?t/e:1}WS.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var A=r.range[0],k=r.range[1];return .5*(A+k-2*ffe*Math.abs(A-k))}else return Zi}function l(x,M,A,k){if((k||{}).msUTC&&xl(x))return+x;var S=GS(x,A||r.calendar);if(S===Zi)if(xl(x)){x=+x;var D=Math.floor(yt.mod(x+.05,1)*10),E=Math.round(x-D/10);S=GS(new Date(E))+D/10}else return Zi;return S}function o(x,M,A){return ufe(x,M,A||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(Sb(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return Zi}function f(x,M){for(var A=new Array(M),k=0;k<M;k++){var S=(x[0]||[])[k],D=(x[1]||[])[k];A[k]=c([S,D])}return A}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function v(x){var M=c(x);if(M!==void 0)return M;if(xl(x))return+x}function h(x){return xl(x)?+x:c(x)}function p(x,M,A){return lfe.round(A+M*x,2)}function y(x,M,A){return(x-A)/M}var m=function(M){return xl(M)?p(M,r._m,r._b):Zi},b=function(x){return y(x,r._m,r._b)};if(r.rangebreaks){var _=n==="y";m=function(x){if(!xl(x))return Zi;var M=r._rangebreaks.length;if(!M)return p(x,r._m,r._b);var A=_;r.range[0]>r.range[1]&&(A=!A);for(var k=A?-1:1,S=k*x,D=0,E=0;E<M;E++){var R=k*r._rangebreaks[E].min,N=k*r._rangebreaks[E].max;if(S<R)break;if(S>N)D=E+1;else{D=S<(R+N)/2?E:E+1;break}}var O=r._B[D]||0;return isFinite(O)?p(x,r._m2,O):0},b=function(x){var M=r._rangebreaks.length;if(!M)return y(x,r._m,r._b);for(var A=0,k=0;k<M&&!(x<r._rangebreaks[k].pmin);k++)x>r._rangebreaks[k].pmax&&(A=k+1);return y(x,r._m2,r._B[A])}}r.c2l=r.type==="log"?i:_l,r.l2c=r.type==="log"?cv:_l,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,M){return m(i(x,M))}:m,r.p2c=r.type==="log"?function(x){return cv(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Bo,r.c2d=r.c2r=r.l2d=r.l2r=_l,r.d2p=r.r2p=function(x){return r.l2p(Bo(x))},r.p2d=r.p2r=b,r.cleanPos=_l):r.type==="log"?(r.d2r=r.d2l=function(x,M){return i(Bo(x),M)},r.r2d=r.r2c=function(x){return cv(Bo(x))},r.d2c=r.r2l=Bo,r.c2d=r.l2r=_l,r.c2r=i,r.l2d=cv,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return cv(b(x))},r.r2p=function(x){return r.l2p(Bo(x))},r.p2r=b,r.cleanPos=_l):r.type==="date"?(r.d2r=r.r2d=yt.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,M,A){return r.l2p(l(x,0,A))},r.p2d=r.p2r=function(x,M,A){return o(b(x),M,A)},r.cleanPos=function(x){return yt.cleanDate(x,Zi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var M=h(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=_l,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:_l(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var M=v(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=_l,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:_l(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,A,k,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var E=t[rp.id2name(D)];M=M.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(A=0;A<M.length;A++){var O=x[M[A]];if(n in O){var F=O[n],I=O._length||yt.minRowLength(F);if(US(F[0])&&US(F[1]))for(k=0;k<I;k++){var Y=F[0][k],B=F[1][k];Sb(Y)&&Sb(B)&&(N.push([Y,B]),Y in R[0][1]||(R[0][1][Y]=R[0][0]++),B in R[1][1]||(R[1][1][B]=R[1][0]++))}}}for(N.sort(function(U,X){var W=R[0][1],V=W[U[0]]-W[X[0]];if(V)return V;var J=R[1][1];return J[U[1]]-J[X[1]]}),A=0;A<N.length;A++)u(N[A])}),r.fraction2r=function(x){var M=r.r2l(r.range[0]),A=r.r2l(r.range[1]);return r.l2r(M+x*(A-M))},r.r2fraction=function(x){var M=r.r2l(r.range[0]),A=r.r2l(r.range[1]);return(r.r2l(x)-M)/(A-M)},r.limitRange=function(x){var M=r.minallowed,A=r.maxallowed;if(!(M===void 0&&A===void 0)){x||(x="range");var k=yt.nestedProperty(r,x).get(),S=yt.simpleMap(k,r.r2l),D=S[1]<S[0];D&&S.reverse();var E=yt.simpleMap([M,A],r.r2l);if(M!==void 0&&S[0]<E[0]&&(k[D?1:0]=M,S[0]=E[0]),A!==void 0&&S[1]>E[1]&&(k[D?0:1]=A,S[1]=E[1]),S[0]>=S[1])if(M!==void 0){var R=E[0]+1;A!==void 0&&(R=Math.min(R,E[1])),k[D?0:1]=r.l2r(R)}else A!==void 0&&(k[D?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var A=yt.nestedProperty(r,x).get(),k,S;if(r.type==="date"?S=yt.dfltRange(r.calendar):n==="y"?S=np.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=M.dfltRange||np.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!A||A.length!==2){yt.nestedProperty(r,x).set(S);return}var D=A[0]===null,E=A[1]===null;for(r.type==="date"&&!r.autorange&&(A[0]=yt.cleanDate(A[0],Zi,r.calendar),A[1]=yt.cleanDate(A[1],Zi,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!yt.isDateTime(A[k],r.calendar)){r[x]=S;break}if(r.r2l(A[0])===r.r2l(A[1])){var R=yt.constrain(r.r2l(A[0]),yt.MIN_MS+1e3,yt.MAX_MS-1e3);A[0]=r.l2r(R-1e3),A[1]=r.l2r(R+1e3);break}}else{if(!xl(A[k]))if(!(D||E)&&xl(A[1-k]))A[k]=A[1-k]*(k?10:.1);else{r[x]=S;break}if(A[k]<-j1?A[k]=-j1:A[k]>j1&&(A[k]=j1),A[0]===A[1]){var N=Math.max(1,Math.abs(A[0]*1e-6));A[0]-=N,A[1]+=N}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var A=rp.getFromId({_fullLayout:t},r.overlaying);r.domain=A.domain,r.domainpad=A.domainpad}var k=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],S),E=r.r2l(r[k][1],S),R=n==="y";let N=(R?M.h:M.w)*(r.domain[1]-r.domain[0]),O=r.domainpad,F=0,I=0;if(O){F=(R?O.top:O.left)||0,I=(R?O.bottom:O.right)||0;let W=dfe(F+I,N);F*=W,I*=W}if(r._length=N-F-I,r._padStart=F,r._padEnd=I,R?(r._offset=M.t+(1-r.domain[1])*M.h+F,r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=M.l+r.domain[0]*M.w+F,r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var Y,B;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(Y=0;Y<r._rangebreaks.length;Y++)B=r._rangebreaks[Y],r._lBreaks+=Math.abs(B.max-B.min);var U=R;D>E&&(U=!U),U&&r._rangebreaks.reverse();var X=U?-1:1;for(r._m2=X*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),Y=0;Y<r._rangebreaks.length;Y++)B=r._rangebreaks[Y],r._B.push(r._B[r._B.length-1]-X*r._m2*(B.max-B.min));for(Y=0;Y<r._rangebreaks.length;Y++)B=r._rangebreaks[Y],B.pmin=m(B.min),B.pmax=m(B.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(x){var M=r.rangebreaks||[],A,k,S,D,E;M._cachedPatterns||(M._cachedPatterns=M.map(function(W){return W.enabled&&W.bounds?yt.simpleMap(W.bounds,W.pattern?Bo:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(W){return W.enabled&&W.values?yt.simpleMap(W.values,r.d2c).sort(yt.sorterAsc):null}));for(var R=0;R<M.length;R++){var N=M[R];if(N.enabled){if(N.bounds){var O=N.pattern;switch(A=M._cachedPatterns[R],k=A[0],S=A[1],O){case ap:E=new Date(x),D=E.getUTCDay(),k>S&&(S+=7,D<k&&(D+=7));break;case tp:E=new Date(x);var F=E.getUTCHours(),I=E.getUTCMinutes(),Y=E.getUTCSeconds(),B=E.getUTCMilliseconds();D=F+(I/60+Y/3600+B/36e5),k>S&&(S+=24,D<k&&(D+=24));break;case"":D=x;break}if(D>=k&&D<S)return Zi}else for(var U=M._cachedValues[R],X=0;X<U.length;X++)if(k=U[X],S=k+N.dvalue,x>=k&&x<S)return Zi}}return x},r.locateBreaks=function(x,M){var A,k,S,D,E=[];if(!r.rangebreaks)return E;var R=r.rangebreaks.slice().sort(function(J,re){return J.pattern===ap&&re.pattern===tp?-1:re.pattern===ap&&J.pattern===tp?1:0}),N=function(J,re){if(J=yt.constrain(J,x,M),re=yt.constrain(re,x,M),J===re)return;let ne;for(let de=0;de<E.length;de++){let K=E[de];J<K.max&&re>=K.min&&(ne?(ne.min=Math.min(ne.min,K.min),ne.max=Math.max(ne.max,K.max),E.splice(de,1),de--):(ne=K,ne.min=Math.min(ne.min,J),ne.max=Math.max(ne.max,re)))}ne||E.push({min:J,max:re})};for(A=0;A<R.length;A++){var O=R[A];if(O.enabled)if(O.bounds){var F=x,I=M;O.pattern&&(F=Math.floor(F)),k=yt.simpleMap(O.bounds,O.pattern?Bo:r.r2l),S=k[0],D=k[1];var Y=new Date(F),B,U;switch(O.pattern){case ap:U=cfe,B=((D<S?7:0)+(D-S))*Q1,F+=S*Q1-(Y.getUTCDay()*Q1+Y.getUTCHours()*ep+Y.getUTCMinutes()*VS+Y.getUTCSeconds()*XS+Y.getUTCMilliseconds());break;case tp:U=Q1,B=((D<S?24:0)+(D-S))*ep,F+=S*ep-(Y.getUTCHours()*ep+Y.getUTCMinutes()*VS+Y.getUTCSeconds()*XS+Y.getUTCMilliseconds());break;default:F=Math.min(k[0],k[1]),I=Math.max(k[0],k[1]),U=I-F,B=U}for(var X=F;X<I;X+=U)N(X,X+B)}else for(var W=yt.simpleMap(O.values,r.d2c),V=0;V<W.length;V++)S=W[V],D=S+O.dvalue,N(S,D)}return E.sort(function(J,re){return J.min-re.min}),E},r.makeCalcdata=function(x,M,A){var k,S,D,E,R=r.type,N=R==="date"&&x[M+"calendar"];if(M in x){if(k=x[M],E=x._length||yt.minRowLength(k),yt.isTypedArray(k)&&(R==="linear"||R==="log")){if(E===k.length)return k;if(k.subarray)return k.subarray(0,E)}if(R==="multicategory")return f(k,E);for(S=new Array(E),D=0;D<E;D++)S[D]=r.d2c(k[D],0,N,A)}else{var O=M+"0"in x?r.d2c(x[M+"0"],0,N):0,F=x["d"+M]?Number(x["d"+M]):1;for(k=x[{x:"y",y:"x"}[M]],E=x._length||k.length,S=new Array(E),D=0;D<E;D++)S[D]=O+D*F}if(r.rangebreaks)for(D=0;D<E;D++)S[D]=r.maskBreaks(S[D]);return S},r.isValidRange=function(x,M){return Array.isArray(x)&&x.length===2&&(M&&x[0]===null||xl(r.r2l(x[0])))&&(M&&x[1]===null||xl(r.r2l(x[1])))},r.getAutorangeDflt=function(x,M){var A=!r.isValidRange(x,"nullOk");return A&&M&&M.reverseDflt?A="reversed":x&&(x[0]===null&&x[1]===null?A=!0:x[0]===null&&x[1]!==null?A="min":x[0]!==null&&x[1]===null&&(A="max")),A},r.isReversed=function(){var x=r.autorange;return x==="reversed"||x==="min reversed"||x==="max reversed"},r.isPtWithinRange=function(x,M){var A=r.c2l(x[n],null,M),k=r.r2l(r.range[0]),S=r.r2l(r.range[1]);return k<S?k<=A&&A<=S:S<=A&&A<=k},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var M=null,A=null;for(var k in x){var S=t[rp.id2name(k)];if(S._categories){M=S._categories,A=S._categoriesMap;break}}M&&A?(r._categories=M,r._categoriesMap=A):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var D=0;D<r._initialCategories.length;D++)u(r._initialCategories[D])},r.sortByInitialCategories=function(){var x=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)u(r._initialCategories[M]);x=x.concat(r._traceIndices);var A=r._matchGroup;for(var k in A)if(a!==k){var S=t[rp.id2name(k)];S._categories=r._categories,S._categoriesMap=r._categoriesMap,x=x.concat(S._traceIndices)}return x};var w=t._d3locale;r.type==="date"&&(r._dateFormat=w?w.timeFormat:ofe,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=w?w.numberFormat:sfe,delete r._minDtick,delete r._forceTick0}});var Db=G((PAe,KS)=>{"use strict";var ZS=Ur(),qb=qe(),hfe=(Et(),Ne(It)).BADNUM,lp=qb.isArrayOrTypedArray,pfe=qb.isDateTime,mfe=qb.cleanNumber,$S=Math.round;KS.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(lp(n)&&!n.length)return"-";if(!i&&_fe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;o<n.length;o++)if(lp(n[o]))for(var s=0;s<n[o].length;s++)l.push(n[o][s]);n=l}if(bfe(n,t))return"date";var u=a.autotypenumbers!=="strict";return xfe(n,u)?"category":gfe(n,u)?"linear":"-"};function yfe(e,r){return r?ZS(e):typeof e=="number"}function gfe(e,r){for(var t=e.length,a=0;a<t;a++)if(yfe(e[a],r))return!0;return!1}function bfe(e,r){for(var t=e.length,a=JS(t),n=0,i=0,l={},o=0;o<t;o+=a){var s=$S(o),u=e[s],f=String(u);l[f]||(l[f]=1,pfe(u,r)&&n++,ZS(u)&&i++)}return n>i*2}function JS(e){return Math.max(1,(e-1)/1e3)}function xfe(e,r){for(var t=e.length,a=JS(t),n=0,i=0,l={},o=0;o<t;o+=a){var s=$S(o),u=e[s],f=String(u);if(!l[f]){l[f]=1;var c=typeof u;c==="boolean"?i++:(r?mfe(u)!==hfe:c==="number")?n++:c==="string"&&i++}}return i>n*2}function _fe(e){return lp(e[0])&&lp(e[1])}});var vv=G((RAe,iq)=>{"use strict";var wfe=Er(),rq=Ur(),Go=qe(),op=(Et(),Ne(It)).FP_SAFE,Tfe=Ar(),Mfe=$r(),tq=fa(),Afe=tq.getFromId,kfe=tq.isLinked;iq.exports={applyAutorangeOptions:nq,getAutoRange:Eb,makePadFn:Pb,doAutoRange:Lfe,findExtremes:Sfe,concatExtremes:Nb};function Eb(e,r){var t,a,n=[],i=e._fullLayout,l=Pb(i,r,0),o=Pb(i,r,1),s=Nb(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Go.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t<u.length&&c===v;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===v;t++)v=Math.max(v,f[t].val);var h=r.autorange,p=h==="reversed"||h==="min reversed"||h==="max reversed";if(!p&&r.range){var y=Go.simpleMap(r.range,r.r2l);p=y[1]<y[0]}r.autorange==="reversed"&&(r.autorange=!0);var m=r.rangemode,b=m==="tozero",_=m==="nonnegative",w=r._length,x=w/10,M=0,A,k,S,D,E,R;for(t=0;t<u.length;t++)for(A=u[t],a=0;a<f.length;a++)k=f[a],R=k.val-A.val-jS(r,A.val,k.val),R>0&&(E=w-l(A)-o(k),E>x?R/E>M&&(S=A,D=k,M=R/E):R/w>M&&(S={val:A.val,nopad:1},D={val:k.val,nopad:1},M=R/w));function N(B,U){return Math.max(B,o(U))}if(c===v){var O=c-1,F=c+1;if(b)if(c===0)n=[0,1];else{var I=(c>0?f:u).reduce(N,0),Y=c/(1-Math.min(.5,I/w));n=c>0?[0,Y]:[Y,0]}else _?n=[Math.max(0,O),Math.max(1,F)]:n=[O,F]}else b?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-M*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-S.val-jS(r,A.val,k.val))/(w-l(S)-o(D)),n=[S.val-M*l(S),D.val+M*o(D)];return n=nq(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Go.simpleMap(n,r.l2r||Number)}function jS(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i<n.length;i++){var l=n[i];a+=l.max-l.min}return a}function Pb(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 l=Go.simpleMap(r.range,r.r2l);i=l[1]<l[0]}i&&(t=!t)}var o=0;return kfe(e,r._id)||(o=Cfe(e,r,t)),a=Math.max(o,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:o)}}var QS=3;function Cfe(e,r,t){var a=0,n=r._id.charAt(0)==="x";for(var i in e._plots){var l=e._plots[i];if(!(r._id!==l.xaxis._id&&r._id!==l.yaxis._id)){var o=(n?l.yaxis:l.xaxis)||{};if((o.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(o.side==="left"||o.side==="bottom")||t&&(o.side==="top"||o.side==="right"))){if(o._vals){var s=Go.deg2rad(o._tickAngles[o._id+"tick"]||0),u=Math.abs(Math.cos(s)),f=Math.abs(Math.sin(s));if(!o._vals[0].bb){var c=o._id+"tick",v=o._selections[c];v.each(function(_){var w=wfe.select(this),x=w.select(".text-math-group");x.empty()&&(_.bb=Mfe.bBox(w.node()))})}for(var h=0;h<o._vals.length;h++){var p=o._vals[h],y=p.bb;if(y){var m=2*QS+y.width,b=2*QS+y.height;a=Math.max(a,n?Math.max(m*u,b*f):Math.max(b*u,m*f))}}}o.ticks==="inside"&&o.ticklabelposition==="inside"&&(a+=o.ticklen||0)}}}return a}function Nb(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,l=[],o=[],s,u,f;function c(m,b){for(s=0;s<b.length;s++){var _=m[b[s]],w=(_._extremes||{})[a];if(_.visible===!0&&w){for(u=0;u<w.min.length;u++)f=w.min[u],Rb(l,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<w.max.length;u++)f=w.max[u],zb(o,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 v in r._matchGroup)if(v!==r._id){var h=Afe(e,v),p=Nb(e,h,!0),y=r._length/h._length;for(u=0;u<p.min.length;u++)f=p.min[u],Rb(l,f.val,f.pad*y,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],zb(o,f.val,f.pad*y,{extrapad:f.extrapad})}}return{min:l,max:o}}function Lfe(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():Eb(e,r),r._r=r.range.slice(),r._rl=Go.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Tfe.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 l=i.rangeslider[r._name];l&&l.rangemode==="auto"&&(l.range=Eb(e,r)),i._input.rangeslider[r._name]=Go.extendFlat({},l)}}function Sfe(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,l=t.padded||!1,o=t.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,v,h,p,y,m,b,_,w;function x(N){if(Array.isArray(N))return u=!0,function(F){return Math.max(Number(N[F]||0),0)};var O=Math.max(Number(N||0),0);return function(){return O}}var M=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),A=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c<i;c++)v=r[c],v<_&&v>0&&(_=v),v>w&&v<op&&(w=v);else for(c=0;c<i;c++)v=r[c],v<_&&v>-op&&(_=v),v>w&&v<op&&(w=v);r=[_,w],i=2}var D={tozero:o,extrapad:l};function E(N){h=r[N],rq(h)&&(m=M(N),b=A(N),f?(p=e.c2l(h)-S(N),y=e.c2l(h)+k(N)):(_=h-S(N),w=h+k(N),s&&_<w/10&&(_=w/10),p=e.c2l(_),y=e.c2l(w)),o&&(p=Math.min(0,p),y=Math.max(0,y)),eq(p)&&Rb(a,p,b,D),eq(y)&&zb(n,y,m,D))}var R=Math.min(6,i);for(c=0;c<R;c++)E(c);for(c=i-1;c>=R;c--)E(c);return{min:a,max:n,opts:t}}function Rb(e,r,t,a){aq(e,r,t,a,qfe)}function zb(e,r,t,a){aq(e,r,t,a,Dfe)}function aq(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s<e.length&&o;s++){var u=e[s];if(n(u.val,r)&&u.pad>=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function eq(e){return rq(e)&&Math.abs(e)<op}function qfe(e,r){return e<=r}function Dfe(e,r){return e>=r}function Efe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&sp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&sp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Pfe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&sp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&sp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function sp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function nq(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),l=r.d2l(a);Go.isArrayOrTypedArray(n)||(n=[n]);for(var o=0;o<n.length;o++){var s=r.d2l(n[o]);i>=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=Efe(t,r),a=Pfe(a,r),[t,a]}});var Qr=G((NAe,Cq)=>{"use strict";var yi=Er(),la=Ur(),$f=Jt(),hv=Ar(),Cr=qe(),Jf=Cr.strTranslate,iu=pa(),Rfe=fv(),pv=kr(),jn=$r(),zfe=Jn(),lq=nb(),zAe=(Aa(),Ne(Ma)),Wa=(Et(),Ne(It)),Nfe=Wa.ONEMAXYEAR,cp=Wa.ONEAVGYEAR,vp=Wa.ONEMINYEAR,Ife=Wa.ONEMAXQUARTER,Ob=Wa.ONEAVGQUARTER,dp=Wa.ONEMINQUARTER,Ffe=Wa.ONEMAXMONTH,Kf=Wa.ONEAVGMONTH,hp=Wa.ONEMINMONTH,Qn=Wa.ONEWEEK,mn=Wa.ONEDAY,Uo=mn/2,Tl=Wa.ONEHOUR,mv=Wa.ONEMIN,pp=Wa.ONESEC,Hfe=Wa.ONEMILLI,Ofe=Wa.ONEMICROSEC,lu=Wa.MINUS_SIGN,yp=Wa.BADNUM,Bb={K:"zeroline"},Yb={K:"gridline",L:"path"},Gb={K:"minor-gridline",L:"path"},yq={K:"tick",L:"path"},oq={K:"tick",L:"text"},sq={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},gp=(Va(),Ne(Ua)),dv=gp.MID_SHIFT,ou=gp.CAP_SHIFT,yv=gp.LINE_SPACING,Bfe=gp.OPPOSITE_SIDE,mp=3,Oe=Cq.exports={};Oe.setConvert=ip();var Yfe=Db(),Ml=fa(),Gfe=Ml.idSort,Ufe=Ml.isLinked;Oe.id2name=Ml.id2name;Oe.name2id=Ml.name2id;Oe.cleanId=Ml.cleanId;Oe.list=Ml.list;Oe.listIds=Ml.listIds;Oe.getFromId=Ml.getFromId;Oe.getFromTrace=Ml.getFromTrace;var gq=vv();Oe.getAutoRange=gq.getAutoRange;Oe.findExtremes=gq.findExtremes;var Vfe=1e-4;function Wb(e){var r=(e[1]-e[0])*Vfe;return[e[0]-r,e[1]+r]}function Xfe(e,r,t){if(![t,e,r].every(la)||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}Oe.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Cr.coerce(e,r,u,s)};Oe.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),f.length>l?(Cr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length<l&&(Cr.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),f=f.concat(Array(l-f.length).fill(n)));for(var c=0;c<f.length;c++)f[c]=Ml.cleanId(f[c],o,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};Oe.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Oe.coercePosition=function(e,r,t,a,n,i){var l,o,s=Oe.getRefType(a);if(s!=="range")l=Cr.ensureNumber,o=t(n,i);else{var u=Oe.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Oe.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?Cr.ensureNumber:Oe.getFromId(r,t).cleanPos;return a(e)};Oe.redrawComponents=function(e,r){r=r||Oe.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=hv.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[Oe.id2name(r[f])],v=c[l],h=0;h<v.length;h++){var p=v[h];if(!u[p]&&(s(e,p),u[p]=1,o))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var Wfe=Oe.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(Cr.isArrayOrTypedArray(i)){if(n={type:Yfe(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},Oe.setConvert(n),n.type==="category")for(var l=0;l<a.length;l++)n.d2c(a[l])}else n=Oe.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:fq,c2d:fq}:{d2c:uq,c2d:uq}};function uq(e){return+e}function fq(e){return String(e)}Oe.getDataToCoordFunc=function(e,r,t,a){return Wfe(e,r,t,a).d2c};Oe.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};Oe.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))};Oe.saveRangeInitial=function(e,r){for(var t=Oe.list(e,"",!0),a=!1,n=0;n<t.length;n++){var i=t[n],l=i._rangeInitial0===void 0&&i._rangeInitial1===void 0,o=l||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(l&&s!==!0||r&&o)&&(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};Oe.saveShowSpikeInitial=function(e,r){for(var t=Oe.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var l=t[i],o=l._showSpikeInitial===void 0,s=o||l.showspikes!==l._showspikes;(o||r&&s)&&(l._showSpikeInitial=l.showspikes,a=!0),n==="on"&&!l.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};Oe.autoBin=function(e,r,t,a,n,i){var l=Cr.aggNums(Math.min,null,e),o=Cr.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:l-.5,end:o+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:o-l};n||(n=r.calendar);var s;if(r.type==="log"?s={type:"linear",range:[l,o]}:s={type:r.type,range:Cr.simpleMap([l,o],r.c2r,0,n),calendar:n},Oe.setConvert(s),i=i&&lq.dtick(i,s.type),i)s.dtick=i,s.tick0=lq.tick0(void 0,s.type,n);else{var u;if(t)u=(o-l)/t;else{var f=Cr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),v=c*Cr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(v,2*Cr.stdev(e)/Math.pow(e.length,a?.25:.4)),la(u)||(u=1)}Oe.autoTicks(s,u)}var h=s.dtick,p=Oe.tickIncrement(Oe.tickFirst(s),h,"reverse",n),y,m;if(typeof h=="number")p=Zfe(p,e,s,l,o),m=1+Math.floor((o-p)/h),y=p+m*h;else for(s.dtick.charAt(0)==="M"&&(p=$fe(p,e,h,l,n)),y=p,m=0;y<=o;)y=Oe.tickIncrement(y,h,!1,n),m++;return{start:r.c2r(p,0,n),end:r.c2r(y,0,n),size:h,_dataSpan:o-l}};function Zfe(e,r,t,a,n){var i=0,l=0,o=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?o++:la(r[f])||s++,u(r[f])&&i++,u(r[f]+t.dtick/2)&&l++;var c=r.length-s;if(o===c&&t.type!=="date")t.dtick<1?e=a-.5*t.dtick:(e-=.5,e+t.dtick<a&&(e+=t.dtick));else if(l<c*.1&&(i>c*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+v<a?v:-v}return e}function $fe(e,r,t,a,n){var i=Cr.findExactDates(r,n),l=.8;if(i.exactDays>l){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Oe.tickIncrement(e,"M6","reverse")+mn*1.5:i.exactMonths>l?e=Oe.tickIncrement(e,"M1","reverse")+mn*15.5:e-=Uo;var s=Oe.tickIncrement(e,t);if(s<=a)return s}return e}Oe.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&la(r._tmin),n;if(a){var i=Oe.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=Cr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Cr.simpleMap(n,r.l2r),e._isMinor=!0,Oe.prepTicks(e,t),a){var o=la(r.dtick),s=la(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Ib(u,f)?u===2*Qn&&f===2*mn&&(e.dtick=Qn):u===2*Qn&&f===3*mn?e.dtick=Qn:u===Qn&&!(r._input.minor||{}).nticks?e.dtick=mn:cq(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Ib(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"?Ib(u,f)||(e.dtick=cq(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}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(Zb(e),r.minor._tickround=e._tickround)};function Ib(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function cq(e,r){return Math.abs(e/r-1)<.001}Oe.prepTicks=function(e,r){var t=Cr.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?Cr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Cr.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,Oe.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"&&Jfe(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),Zb(e)};function Fb(e){return+e.substring(1)}function Jfe(e){var r;function t(){return!(la(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=Oe.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=Tl,i&&!a&&e.dtick<Tl&&(e.dtick=Tl)):/%p/.test(n)?(r=Uo,i&&!a&&e.dtick<Uo&&(e.dtick=Uo)):/%[Aadejuwx]/.test(n)?(r=mn,i&&!a&&e.dtick<mn&&(e.dtick=mn)):/%[UVW]/.test(n)?(r=Qn,i&&!a&&e.dtick<Qn&&(e.dtick=Qn)):/%[Bbm]/.test(n)?(r=Kf,i&&(a?Fb(e.dtick)<1:e.dtick<hp)&&(e.dtick="M1")):/%[q]/.test(n)?(r=Ob,i&&(a?Fb(e.dtick)<3:e.dtick<dp)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=cp,i&&(a?Fb(e.dtick)<12:e.dtick<vp)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function Kfe(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i,l;if(e[a].periodEndTick!=null)i=e[a].value,l=e[a].periodEndTick.value;else{var o=a,s=a+1;a<e.length-1?(o=a,s=a+1):a>0?(o=a-1,s=a):(o=a,s=a),i=e[o].value,l=e[s].value}var u=Math.abs(l-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=vp?u>=vp&&u<=Nfe?c=u:c=cp:t===Ob&&f>=dp?u>=dp&&u<=Ife?c=u:c=Ob:f>=hp?u>=hp&&u<=Ffe?c=u:c=Kf:t===Qn&&f>=Qn?c=Qn:f>=mn?c=mn:t===Uo&&f>=Uo?c=Uo:t===Tl&&f>=Tl&&(c=Tl);var v;c>=u&&(c=u,v=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;m<p;m++){var b=(m+.5)/p;r.maskBreaks(n*(1-b)+b*h)!==yp&&y++}c*=y/p,c||(e[a].drop=!0),v&&u>Qn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Oe.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||Cr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;var u=Cr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]<u[0],c=Math.min(u[0],u[1]),v=Math.max(u[0],u[1]),h=Math.max(1e3,r._length||0),p=[],y=[],m=[],b=[],_=[],w=r.minor&&(r.minor.ticks||r.minor.showgrid),x=w||r._useTicklabelIndex;let M=0;if(l){let Me=r._useTicklabelIndex?Math.max(0,...Array.from(s,Math.abs)):0;M=Math.min(Me+1,Math.floor(h/2))}for(var A=1;A>=(x?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var S=A?r:Cr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Oe.prepMinorTicks(S,r,t):Oe.prepTicks(S,t),S.tickmode==="array"){A?(m=[],p=vq(r,!k)):(b=[],y=vq(r,!k));continue}if(S.tickmode==="sync"){m=[],p=jfe(r);continue}var D=Wb(u),E=D[0],R=D[1];let Me=R;var N=S.dtick;let Ae=la(N),Le=a==="log"&&!(Ae||N.charAt(0)==="L");var O=Oe.tickFirst(S,t);if(A){if(r._tmin=O,O<E!==f)break;(a==="category"||a==="multicategory")&&(R=f?Math.max(-.5,R):Math.min(r._categories.length-.5,R))}var F=null,I=O,Y;if(A){var B;Ae?B=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(B=Kf*r.dtick.substring(1)):B=r._roughDTick,Y=Math.round((r.r2l(I)-r.r2l(r.tick0))/B)-1}var U=a==="linear"?S.r2l(S.tick0):void 0;if(S.rangebreaks&&S._tick0Init!==S.tick0&&(I=Hb(I,r),f||(I=Oe.tickIncrement(I,N,!f,n))),A&&M){for(let ke=0;ke<M;ke++)I=Oe.tickIncrement(I,N,!f,n),r._useTicklabelIndex&&(R=Oe.tickIncrement(R,N,f,n));Y-=M}else if(k&&M&&r._useTicklabelIndex&&m.length){let ke=m[0].value;for(;f?I<ke:I>ke;)I=Oe.tickIncrement(I,N,!f,n);R=m[m.length-1].value}for(;f?I>=R:I<=R;I=Oe.tickIncrement(I,N,f,n)){if(A&&Y++,S.rangebreaks&&!f){if(I<E)continue;if(S.maskBreaks(I)===yp&&Hb(I,S)>=v)break}if(m.length>h+2*M||I===F)break;F=I;var X={value:Xfe(I,U,N)};(f?I>E||I<Me:I<E||I>Me)&&(X.noTick=!0),A?(I===O&&(X.first=!0),Le&&I!==(I|0)&&(X.simpleLabel=!0),i>1&&Y%i&&(X.skipLabel=!0),m.push(X)):(X.minor=!0,b.push(X))}}function W(Me,Ae){let Le=Ae.find(ze=>ze.value===Me.value);if(Le!=null)return Le;let ke=1e7;for(let ze=0;ze<Ae.length;ze++)if(ke+Ae[ze].value===ke+Me.value)return Ae[ze];return null}if(r._useTicklabelIndex){let Me=b.filter(Ae=>!Ae.noTick);if(Me.length<2)r._useTicklabelIndex=!1;else{let Ae=(Me[1].value-Me[0].value)*(o?-1:1);Tce(Ae,r.tickformat)||(r._useTicklabelIndex=!1)}}if(!r._useTicklabelIndex)_=m;else{let Me=b.filter(ke=>W(ke,m)==null),Ae=m.concat(Me).sort((ke,ze)=>ke.value-ze.value),Le=(ke,ze)=>{let Se=ke[ze],Ue=l?ke[ze+1]:void 0;Se.noTick&&!(Ue&&!Ue.noTick)||(_.push(Se),Ue&&(Se.periodEndTick=Ue))};m.forEach(function(ke){ke.skipLabel||(s.forEach(ze=>{if(ze<0){let Se=Ae.filter(er=>er.value<=ke.value),Ue=Math.abs(ze),Ke=Se.length-Ue-1;Ue<Se.length&&Le(Se,Ke)}else{let Se=Ae.filter(Ue=>Ue.value>=ke.value);ze<Se.length&&Le(Se,ze)}}),ke.skipLabel=!0)}),_.forEach(ke=>ke.skipLabel=!1)}if(w){var V=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!V){for(var J=[],re=0;re<b.length;re++)W(b[re],m)==null&&J.push(b[re]);b=J}}l&&Kfe(_,r,r._definedDelta);var ne;if(r.rangebreaks){var de=r._id.charAt(0)==="y",K=1;r.tickmode==="auto"&&(K=r.tickfont?r.tickfont.size:12);var ye=NaN;for(ne=m.length-1;ne>-1;ne--){if(m[ne].drop){m.splice(ne,1);continue}m[ne].value=Hb(m[ne].value,r);var oe=r.c2p(m[ne].value);(de?ye>oe-K:ye<oe+K)?m.splice(f?ne+1:ne,1):ye=oe}}jb(r)&&Math.abs(u[1]-u[0])===360&&m.pop(),r._tmax=(m[m.length-1]||{}).value,m.length&&(m[m.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var Ce,se=function(Me){Me.text="",r._prevDateHead=Ce};m=m.concat(b);function fe(Me,Ae){var Le=Oe.tickText(Me,Ae.value,!1,Ae.simpleLabel,{first:Ae.first,last:Ae.last}),ke=Ae.periodX;return ke!==void 0&&(Le.periodX=ke,(ke>v||ke<c)&&(ke>v&&(Le.periodX=v),ke<c&&(Le.periodX=c),se(Le))),Le}var Te;for(ne=0;ne<m.length;ne++){var Fe=m[ne].minor,be=m[ne].value;Fe?(r._useTicklabelIndex&&_.indexOf(m[ne])!==-1?Te=fe(r,m[ne]):Te={x:be,text:""},Te.noTick=m[ne].noTick,Te.minor=!0,y.push(Te)):(Ce=r._prevDateHead,Te=fe(r,m[ne]),m[ne].skipLabel&&se(Te),Te.noTick=m[ne].noTick,p.push(Te))}return r._inCalcTicks=!1,p=p.concat(y),p};function bq(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==yp})),r}function jfe(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 l=0;l<r._vals.length;l++)if(!r._vals[l].noTick){var o=r.l2p(r._vals[l].x),s=e.p2l(o),u=Oe.tickText(e,s,!1,void 0,{first:l===a,last:l===n});r._vals[l].minor&&(u.minor=!0,u.text=""),t.push(u)}}return t=bq(e,t),t}function vq(e,r){var t=Cr.simpleMap(e.range,e.r2l),a=Wb(t),n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]),l=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 o=[],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){Cr.isArrayOrTypedArray(f)||(f=[]);var c=-1,v=-1;if(!s)for(var h=0;h<u.length;h++){var p=l(u[h]);p>n&&p<i&&(c===-1&&(c=h),v=h)}for(var y=0;y<u.length;y++){var m=l(u[y]);if(m>n&&m<i){let b=Oe.tickText(e,m,!1,f[y]!==void 0,{first:y===c,last:y===v});s&&(b.minor=!0,b.text=""),o.push(b)}}}}return o=bq(e,o),o}var up=[2,5,10],dq=[1,2,3,6,12],hq=[1,2,5,10,15,30],Qfe=[1,2,3,7,14],xq=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],_q=[-.301,0,.301,.699,1],ece=[15,30,45,90,180];function wl(e,r,t){return r*Cr.roundUp(e/r,t)}Oe.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=Cr.dateTick0(e.calendar,0);var i=2*r;if(i>cp)r/=cp,a=n(10),e.dtick="M"+12*wl(r,a,up);else if(i>Kf)r/=Kf,e.dtick="M"+wl(r,1,dq);else if(i>mn){if(e.dtick=wl(r,mn,e._hasDayOfWeekBreaks?[1,2,7,14]:Qfe),!t){var l=Oe.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Cr.dateTick0(e.calendar,2):e.tick0=Cr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Tl?e.dtick=wl(r,Tl,dq):i>mv?e.dtick=wl(r,mv,hq):i>pp?e.dtick=wl(r,pp,hq):(a=n(10),e.dtick=wl(r,a,up))}else if(e.type==="log"){e.tick0=0;var s=Cr.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"+wl(r,a,up)}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))):jb(e)?(e.tick0=0,a=1,e.dtick=wl(r,a,ece)):(e.tick0=0,a=n(10),e.dtick=wl(r,a,up));if(e.dtick===0&&(e.dtick=1),!la(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Zb(e){var r=e.dtick;if(e._tickexponent=0,!la(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>=mn&&n<=10||r>=mn*15)e._tickround="d";else if(r>=mv&&n<=16||r>=Tl)e._tickround="M";else if(r>=pp&&n<=19||r>=mv)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(la(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);la(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(jf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!$b(s)||jf(e.exponentformat)&&e.exponentformat==="SI extended"&&!Jb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Oe.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(la(r))return Cr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return Cr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?_q:xq,s=e+n*.01,u=Cr.roundUp(Cr.mod(s,1),o,t);return Math.floor(s)+Math.log(yi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Oe.tickFirst=function(e,r){var t=e.r2l||Number,a=Cr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,l=Wb(a)[0],o=e.dtick,s=t(e.tick0);if(la(o)){var u=i((l-s)/o)*o+s;return(e.type==="category"||e.type==="multicategory")&&(u=Cr.constrain(u,0,e._categories.length-1)),u}var f=o.charAt(0),c=Number(o.slice(1));if(f==="M"){for(var v=0,h=s,p,y,m;v<10;){if(p=Oe.tickIncrement(h,o,n,e.calendar),(p-l)*(h-l)<=0)return n?Math.min(h,p):Math.max(h,p);y=(l-(h+p)/2)/(p-h),m=f+(Math.abs(Math.round(y))||1)*c,h=Oe.tickIncrement(h,m,y<0?!n:n,e.calendar),v++}return Cr.error("tickFirst did not converge",e),h}else{if(f==="L")return Math.log(i((Math.pow(10,l)-s)/c)*c+s)/Math.LN10;if(f==="D"){var b=o==="D2"?_q:xq,_=Cr.roundUp(Cr.mod(l,1),b,n);return Math.floor(l)+Math.log(yi.round(Math.pow(10,_),1))/Math.LN10}else throw"unrecognized dtick "+String(o)}};Oe.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),l=!!(n!=null&&n.last),o=wq(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,v,h=function(w){var x=e.l2p(w);return x>=0&&x<=e._length?w:null};if(s&&Cr.isArrayOrTypedArray(e.ticktext)){var p=Cr.simpleMap(e.range,e.r2l),y=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[v]))<y);v++);if(v<e.ticktext.length)return o.text=String(e.ticktext[v]),o.xbnd=[h(o.x-.5),h(o.x+e.dtick-.5)],o}function m(w){return w===void 0?!0:t?w==="none":w==="all"?!1:w==="first"?!i:w==="last"?!l:!0}var b=t?"never":e.exponentformat!=="none"&&m(e.showexponent)?"hide":"";if(f==="date"?rce(e,o,t,u):f==="log"?tce(e,o,t,u,b):f==="category"?ace(e,o):f==="multicategory"?nce(e,o,t):jb(e)?lce(e,o,t,u,b):ice(e,o,t,u,b),a||(e.tickprefix&&!m(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!m(e.showticksuffix)&&(o.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(o.text)){var _=e.labelalias[o.text];typeof _=="string"&&(o.text=_)}return(e.tickson==="boundaries"||e.showdividers)&&(o.xbnd=[h(o.x-.5),h(o.x+e.dtick-.5)]),o};Oe.hoverLabelText=function(e,r,t){t&&(e=Cr.extendFlat({},e,{hoverformat:t}));var a=Cr.isArrayOrTypedArray(r)?r[0]:r,n=Cr.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return Oe.hoverLabelText(e,a,t)+" - "+Oe.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,l=Oe.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":lu+l:l};function wq(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 rce(e,r,t,a){var n=e._useTicklabelIndex?e.minor._tickround:e._tickround,i=t&&e.hoverformat||Oe.getTickFormat(e);a=!i&&a,a&&(la(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var l=Cr.formatDate(r.x,i,n,e._dateFormat,e.calendar,e._extraFormat),o,s=l.indexOf(`
`);if(s!==-1&&(o=l.slice(s+1),l=l.slice(0,s)),a&&(o!==void 0&&(l==="00:00:00"||l==="00:00")?(l=o,o=""):l.length===8&&(l=l.replace(/:00$/,""))),o)if(t)n==="d"?l+=", "+o:l=o+(l?", "+l:"");else if(!e._inCalcTicks||e._prevDateHead!==o)e._prevDateHead=o,l+="<br>"+o;else{var u=bv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="<br> ")}r.text=l}function tce(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=gv(Math.pow(10,l),e,n,a);else if(la(i)||s==="D"&&(e.minorloglabels==="complete"||Cr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Cr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),v=+c[1],h=Math.abs(v),p=e.exponentformat;p==="power"||jf(p)&&p!=="SI extended"&&$b(v)||jf(p)&&p==="SI extended"&&Jb(v)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+="<sup>"+(v>0?"":lu)+h+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(v>0?"+":lu)+h:(r.text=gv(Math.pow(10,l),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,Cr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="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*(l<0?.5:.25)))}}function ace(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function nce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function ice(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=gv(r.x,e,n,a)}function lce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=oce(i);if(l[1]>=100)r.text=gv(Cr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["<sup>",l[0],"</sup>","\u2044","<sub>",l[1],"</sub>","\u03C0"].join(""),o&&(r.text=lu+r.text)}}}else r.text=gv(r.x,e,n,a)}function oce(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var Tq=["f","p","n","\u03BC","m","","k","M","G","T"],sce=["q","r","y","z","a",...Tq,"P","E","Z","Y","R","Q"],jf=e=>["SI","SI extended","B"].includes(e);function $b(e){return e>14||e<-15}function Jb(e){return e>32||e<-30}function uce(e,r){return jf(r)?!!(r==="SI extended"&&Jb(e)||r!=="SI extended"&&$b(e)):!1}function gv(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Oe.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:la(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Zb(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,lu);l==="none"&&(o=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(o&&(e*=Math.pow(10,-o),i+=o),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=Cr.numSeparate(e,r._separators,u)}if(o&&l!=="hide"){uce(o,l)&&(l="power");var v;o<0?v=lu+-o:l!=="power"?v="+"+o:v=String(o),l==="e"||l==="E"?e+=l+v:l==="power"?e+="\xD710<sup>"+v+"</sup>":l==="B"&&o===9?e+="B":jf(l)&&(e+=l==="SI extended"?sce[o/3+10]:Tq[o/3+5])}return n?lu+e:e}Oe.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Kf}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)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],h=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||v)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(o=e.tickformatstops[r],o.enabled&&n(e.dtick,o.dtickrange,t)){l=o;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(o=e.tickformatstops[r],o.enabled&&i(e.dtick,o.dtickrange)){l=o;break}break}default:}return l?l.value:e.tickformat};Oe.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?Oe.findSubplotsWithAxis(a,r):a;return n.sort(function(i,l){var o=i.slice(1).split("y"),s=l.slice(1).split("y");return o[0]===s[0]?+o[1]-+s[1]:+o[0]-+s[0]}),n};Oe.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};Oe.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=Oe.list(e,"x",!0),i=Oe.list(e,"y",!0),l=[],o,s;for(o=0;o<n.length;o++)for(l.push({x:n[o],y:a}),s=0;s<i.length;s++)o===0&&l.push({x:t,y:i[s]}),l.push({x:n[o],y:i[s]});var u=r._clips.selectAll(".axesclip").data(l,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){yi.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})})}};Oe.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,v=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+v._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+v._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+v._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-"+v._id+"title").remove()}});var n=!r||r==="redraw"?Oe.listIds(e):r,i=Oe.list(e),l=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=Oe.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 o={false:{left:0,right:0}};return Cr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Oe.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Oe.drawOne(e,u,t);return u._shiftPusher&&Xb(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=Cr.simpleMap(u._r,u.r2l),f}}}))};Oe.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Oe.counterLetter(u),v=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!v)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),Xb(r,p,a,!0),Xb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=wce(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,_=r._mainMirrorPosition,w=r._vals=Oe.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i<w.length;i++)w[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var M={};function A(Se){var Ue=u+(Se||"tick");return M[Ue]||(M[Ue]=dce(r,Ue,b)),M[Ue]}if(r.visible){var k=Oe.makeTransTickFn(r),S=Oe.makeTransTickLabelFn(r),D,E,R=r.ticks==="inside",N=r.ticks==="outside";if(r.tickson==="boundaries"){var O=fce(r,w);E=Oe.clipEnds(r,O),D=R?E:O}else E=Oe.clipEnds(r,w),D=R&&r.ticklabelmode!=="period"?E:w;var F=r._gridVals=E,I=vce(r,w);if(!s._hasOnlyLargeSploms){var Y=r._subplotsWith,B={};for(i=0;i<Y.length;i++){l=Y[i],o=s._plots[l];var U=o[c+"axis"],X=U._mainAxis._id;if(!B[X]){B[X]=1;var W=f==="x"?"M0,"+U._offset+"v"+U._length:"M"+U._offset+",0h"+U._length;Oe.drawGrid(e,r,{vals:F,counterAxis:U,layer:o.gridlayer.select("."+u),minorLayer:o.minorGridlayer.select("."+u),path:W,transFn:k}),Oe.drawZeroLine(e,r,{counterAxis:U,layer:h?o.zerolinelayerAbove:o.zerolinelayer,path:W,transFn:k})}}}var V,J=Oe.getTickSigns(r),re=Oe.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var ne=Oe.makeTickPath(r,b,J[2]),de=Oe.makeTickPath(r,b,re[2],{minor:!0}),K,ye,oe,Ce;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(K=Oe.makeTickPath(r,_,J[3]),ye=Oe.makeTickPath(r,_,re[3],{minor:!0}),oe=ne+K,Ce=de+ye):(K="",ye="",oe=ne,Ce=de),r.showdividers&&N&&r.tickson==="boundaries"){var se={};for(i=0;i<I.length;i++)se[I[i].x]=1;V=function(Se){return se[Se.x]?K:oe}}else V=function(Se){return Se.minor?Ce:oe}}if(Oe.drawTicks(e,r,{vals:D,layer:y,path:V,transFn:k}),r.mirror==="allticks"){var fe=Object.keys(r._linepositions||{});for(i=0;i<fe.length;i++){l=fe[i],o=s._plots[l];var Te=r._linepositions[l]||[],Fe=Te[0],be=Te[1],Me=Te[2],Ae=Oe.makeTickPath(r,Fe,Me?J[0]:re[0],{minor:Me})+Oe.makeTickPath(r,be,Me?J[1]:re[1],{minor:Me});Oe.drawTicks(e,r,{vals:D,layer:o[f+"axislayer"],path:Ae,transFn:k})}}var Le=[];if(Le.push(function(){return Oe.drawLabels(e,r,{vals:w,layer:y,plotinfo:o,transFn:S,labelFns:Oe.makeLabelFns(r,b)})}),r.type==="multicategory"){var ke={x:2,y:10}[f];Le.push(function(){var Se={x:"height",y:"width"}[f],Ue=A()[Se]+ke+(r._tickAngles[u+"tick"]?r.tickfont.size*yv:0);return Oe.drawLabels(e,r,{vals:cce(r,w),layer:y,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:k,labelFns:Oe.makeLabelFns(r,b+Ue*J[4])})}),Le.push(function(){return r._depth=J[4]*(A("tick2")[r.side]-b),pce(e,r,{vals:I,layer:y,path:Oe.makeTickPath(r,b,J[4],{len:r._depth}),transFn:k})})}else r.title.hasOwnProperty("standoff")&&Le.push(function(){r._depth=J[4]*(A()[r.side]-b)});var ze=hv.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(ze&&r.side==="bottom")&&Le.push(function(){return mce(e,r)}),Le.push(function(){var Se=r.side.charAt(0),Ue=Bfe[r.side].charAt(0),Ke=Oe.getPxPosition(e,r),er=N?r.ticklen:0,De,Ye,rr,te;(r.automargin||ze||r._shiftPusher)&&(r.type==="multicategory"?De=A("tick2"):(De=A(),f==="x"&&Se==="b"&&(r._depth=Math.max(De.width>0?De.bottom-Ke:0,er))));var pe=0,Ve=0;if(r._shiftPusher&&(pe=Math.max(er,De.height>0?Se==="l"?Ke-De.left:De.right-Ke:0),r.title.text!==s._dfltTitle[f]&&(Ve=(r._titleStandoff||0)+(r._titleScoot||0),Se==="l"&&(Ve+=mq(r))),r._fullDepth=Math.max(pe,Ve)),r.automargin){Ye={x:0,y:0,r:0,l:0,t:0,b:0};var vr=[0,1],hr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Se==="b"?Ye[Se]=r._depth:(Ye[Se]=r._depth=Math.max(De.width>0?Ke-De.top:0,er),vr.reverse()),De.width>0){var le=De.right-(r._offset+r._length);le>0&&(Ye.xr=1,Ye.r=le);var ge=r._offset-De.left;ge>0&&(Ye.xl=0,Ye.l=ge)}}else if(Se==="l"?(r._depth=Math.max(De.height>0?Ke-De.left:0,er),Ye[Se]=r._depth-hr):(r._depth=Math.max(De.height>0?De.right-Ke:0,er),Ye[Se]=r._depth+hr,vr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(Ye.yb=0,Ye.b=Ie);var Xe=r._offset-De.top;Xe>0&&(Ye.yt=1,Ye.t=Xe)}Ye[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[vr[0]],r.title.text!==s._dfltTitle[f]&&(Ye[Se]+=mq(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(rr={x:0,y:0,r:0,l:0,t:0,b:0},rr[Ue]=r.linewidth,r.mirror&&r.mirror!==!0&&(rr[Ue]+=er),r.mirror===!0||r.mirror==="ticks"?rr[c]=r._anchorAxis.domain[vr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(rr[c]=[r._counterDomainMin,r._counterDomainMax][vr[1]]))}ze&&(te=hv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(pq(Ye,r.automargin),pq(rr,r.automargin)),$f.autoMargin(e,Kb(r),Ye),$f.autoMargin(e,Aq(r),rr),$f.autoMargin(e,kq(r),te)}),Cr.syncOrAsync(Le)}};function pq(e,r){if(e){var t=Object.keys(sq).reduce(function(a,n){return r.indexOf(n)!==-1&&sq[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 fce(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(Cr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;a<r.length;a++)n(r[a],0);n(r[a-1],1)}return t}function cce(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 l in a)t.push(wq(e,Cr.interp(a[l],.5),l));return t}function vce(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,l=function(s,u){var f=s.xbnd[u];f!==null&&t.push(Cr.extendFlat({},s,{x:f}))};if(e.showdividers&&r.length){for(a=0;a<r.length;a++){var o=r[a];o.text2!==n&&l(o,i?1:0),n=o.text2}l(r[a-1],i?0:1)}return t}function dce(e,r,t){var a,n,i,l;if(e._selections[r].size())a=1/0,n=-1/0,i=1/0,l=-1/0,e._selections[r].each(function(){var s=Vb(this);if(s.node().style.display!=="none"){var u=jn.bBox(s.node().parentNode);a=Math.min(a,u.top),n=Math.max(n,u.bottom),i=Math.min(i,u.left),l=Math.max(l,u.right)}});else{var o=Oe.makeLabelFns(e,t);a=n=o.yFn({dx:0,dy:0,fontSize:0}),i=l=o.xFn({dx:0,dy:0,fontSize:0})}return{top:a,bottom:n,left:i,right:l,height:n-a,width:l-i}}Oe.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],l=r?(e.minor||{}).ticks:e.ticks;return l!=="inside"==(t==="x")&&(i=i.map(function(o){return-o})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i};Oe.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return Jf(e._offset+e.l2p(r.x),0)}:function(r){return Jf(0,e._offset+e.l2p(r.x))}};Oe.makeTransTickLabelFn=function(e){var r=hce(e),t=e.ticklabelshift||0,a=e.ticklabelstandoff||0,n=r[0],i=r[1],l=e.range[0]>e.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Jf(n+e._offset+e.l2p(Ub(v))+t,i+a)}:function(v){return Jf(i+a,n+e._offset+e.l2p(Ub(v))+t)}};function Ub(e){return e.periodX!==void 0?e.periodX:e.x}function hce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=mp,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*ou,v+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,v+=mp),s&&f==="top"&&(v-=h*(1-ou)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Oe.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,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Oe.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(O){return a.indexOf(O)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(h+=y,t)){var m=Cr.deg2rad(t);h=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:h,labelShift:p},_,w,x,M,A=0,k=e.side,S=e._id.charAt(0),D=e.tickangle,E;if(S==="x")E=!c&&k==="bottom"||c&&k==="top",M=E?1:-1,c&&(M*=-1),_=p*M,w=r+h*M,x=E?1:-.2,Math.abs(D)===90&&(c?x+=dv:D===-90&&k==="bottom"?x=ou:D===90&&k==="top"?x=dv:x=.5,A=dv/2*(D/90)),b.xFn=function(O){return O.dx+_+A*O.fontSize},b.yFn=function(O){return O.dy+w+O.fontSize*x},b.anchorFn=function(O,F){if(f){if(o)return"end";if(s)return"start"}return!la(F)||F===0||F===180?"middle":F*M<0!==c?"end":"start"},b.heightFn=function(O,F,I){return F<-60||F>60?-.5*I:e.side==="top"!==c?-I:0};else if(S==="y"){if(E=!c&&k==="left"||c&&k==="right",M=E?1:-1,c&&(M*=-1),_=h,w=p*M,x=0,!c&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?x=ou:x=.5),c){var R=la(D)?+D:0;if(R!==0){var N=Cr.deg2rad(R);A=Math.abs(Math.sin(N))*ou*M,x=0}}b.xFn=function(O){return O.dx+r-(_+O.fontSize*x)*M+A*O.fontSize},b.yFn=function(O){return O.dy+w+O.fontSize*dv},b.anchorFn=function(O,F){return la(F)&&Math.abs(F)===90?"middle":E?"end":"start"},b.heightFn=function(O,F,I){return e.side==="right"&&(F*=-1),F<-30?-I:F<30?-.5*I:0}}return b};function bp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Oe.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,bp);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return pv.stroke(yi.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return jn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),xp(r,[yq]),i.attr("transform",t.transFn)};Oe.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}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Oe.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u<l.length;u++){var f=l[u].x;if(s?!f:Math.abs(f)<r.dtick/100)if(l=l.slice(0,u).concat(l.slice(u+1)),s)u--;else break}r._gw=jn.crispRound(e,r.gridwidth,1);for(var c=n?jn.crispRound(e,r.minor.gridwidth,1):0,v=t.layer,h=t.minorLayer,p=1;p>=0;p--){var y=p?v:h;if(y){var m=y.selectAll("path."+a).data(p?l:i,bp);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return pv.stroke(yi.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return jn.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"&&m.attr("d",t.path)}}xp(r,[Yb,Gb])}};Oe.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Oe.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(l,o){return Gfe(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(pv.stroke,r.zerolinecolor||pv.defaultLine).style("stroke-width",jn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),xp(r,[Bb])};Oe.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(X){return X.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],bp),v=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(X){var W=yi.select(this),V=e._promises.length;W.call(iu.positionText,s.xFn(X),s.yFn(X)).call(jn.font,{family:X.font,size:X.fontSize,color:X.fontColor,weight:X.fontWeight,style:X.fontStyle,variant:X.fontVariant,textcase:X.fontTextcase,lineposition:X.fontLineposition,shadow:X.fontShadow}).text(X.text).call(iu.convertToTspans,e),e._promises[V]?v.push(e._promises.pop().then(function(){h(W,u)})):h(W,u)}),xp(r,[oq]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(X){yi.select(this).select("text").call(iu.positionText,s.xFn(X),s.yFn(X))});function h(X,W){X.each(function(V){var J=yi.select(this),re=J.select(".text-math-group"),ne=s.anchorFn(V,W),de=t.transFn.call(J.node(),V)+(la(W)&&+W!=0?" rotate("+W+","+s.xFn(V)+","+(s.yFn(V)-V.fontSize/2)+")":""),K=iu.lineCount(J),ye=yv*V.fontSize,oe=s.heightFn(V,la(W)?+W:0,(K-1)*ye);if(oe&&(de+=Jf(0,oe)),re.empty()){var Ce=J.select("text");Ce.attr({transform:de,"text-anchor":ne}),Ce.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=jn.bBox(re.node()).width,fe=se*{end:-.5,start:.5}[ne];re.attr("transform",de+Jf(fe,0))}})}r._adjustTickLabelsOverflow=function(){var X=r.ticklabeloverflow;if(!(!X||X==="allow")){var W=X.indexOf("hide")!==-1,V=r._id.charAt(0)==="x",J=0,re=V?e._fullLayout.width:e._fullLayout.height;if(X.indexOf("domain")!==-1){var ne=Cr.simpleMap(r.range,r.r2l);J=r.l2p(ne[0])+r._offset,re=r.l2p(ne[1])+r._offset}var de=Math.min(J,re),K=Math.max(J,re),ye=r.side,oe=1/0,Ce=-1/0;c.each(function(Fe){var be=yi.select(this),Me=be.select(".text-math-group");if(Me.empty()){var Ae=jn.bBox(be.node()),Le=0;V?(Ae.right>K||Ae.left<de)&&(Le=1):(Ae.bottom>K||Ae.top+(r.tickangle?0:Fe.fontSize/4)<de)&&(Le=1);var ke=be.select("text");Le?W&&ke.style("display","none"):ke.node().style.display!=="none"&&(ke.style("display",null),ye==="bottom"||ye==="right"?oe=Math.min(oe,V?Ae.top:Ae.left):oe=-1/0,ye==="top"||ye==="left"?Ce=Math.max(Ce,V?Ae.bottom:Ae.right):Ce=1/0)}});for(var se in a._plots){var fe=a._plots[se];if(!(r._id!==fe.xaxis._id&&r._id!==fe.yaxis._id)){var Te=V?fe.yaxis:fe.xaxis;Te&&(Te["_visibleLabelMin_"+r._id]=oe,Te["_visibleLabelMax_"+r._id]=Ce)}}}},r._hideCounterAxisInsideTickLabels=function(X){var W=r._id.charAt(0)==="x",V=[];for(var J in a._plots){var re=a._plots[J];r._id!==re.xaxis._id&&r._id!==re.yaxis._id||V.push(W?re.yaxis:re.xaxis)}V.forEach(function(ne,de){ne&&bv(ne)&&(X||[Bb,Gb,Yb,yq,oq]).forEach(function(K){var ye=K.K==="tick"&&K.L==="text"&&r.ticklabelmode==="period",oe=a._plots[r._mainSubplot],Ce;if(K.K===Bb.K){var se=i?oe.zerolinelayerAbove:oe.zerolinelayer;Ce=se.selectAll("."+r._id+"zl")}else K.K===Gb.K?Ce=oe.minorGridlayer.selectAll("."+r._id):K.K===Yb.K?Ce=oe.gridlayer.selectAll("."+r._id):Ce=oe[r._id.charAt(0)+"axislayer"];Ce.each(function(){var fe=yi.select(this);K.L&&(fe=fe.selectAll(K.L)),fe.each(function(Te){var Fe=r.l2p(ye?Ub(Te):Te.x)+r._offset,be=yi.select(this);Fe<r["_visibleLabelMax_"+ne._id]&&Fe>r["_visibleLabelMin_"+ne._id]?be.style("display","none"):K.K==="tick"&&!de&&be.node().style.display!=="none"&&be.style("display",null)})})})})},h(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var X=0,W=[],V,J=1;c.each(function(Ye){X=Math.max(X,Ye.fontSize);var rr=r.l2p(Ye.x),te=Vb(this),pe=jn.bBox(te.node());J=Math.max(J,iu.lineCount(te)),W.push({top:0,bottom:10,height:10,left:rr-pe.width/2,right:rr+pe.width/2+2,width:pe.width+2})});var re=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ne=o.length,de=Math.abs((o[ne-1].x-o[0].x)*r._m)/(ne-1),K=re?de/2:de,ye=re?r.ticklen:X*1.25*J,oe=Math.sqrt(Math.pow(K,2)+Math.pow(ye,2)),Ce=K/oe,se=r.autotickangles.map(function(Ye){return Ye*Math.PI/180}),fe=se.find(function(Ye){return Math.abs(Math.cos(Ye))<=Ce});fe===void 0&&(fe=se.reduce(function(Ye,rr){return Math.abs(Math.cos(Ye))<Math.abs(Math.cos(rr))?Ye:rr},se[0]));var Te=fe*(180/Math.PI);if(re){var Fe=2;for(r.ticks&&(Fe+=r.tickwidth/2),V=0;V<W.length;V++){var be=o[V].xbnd,Me=W[V];if(be[0]!==null&&Me.left-r.l2p(be[0])<Fe||be[1]!==null&&r.l2p(be[1])-Me.right<Fe){y=Te;break}}}else{var Ae=r.ticklabelposition||"",Le=r.tickson||"",ke=function(Ye){return Ae.indexOf(Ye)!==-1},ze=ke("top"),Se=ke("left"),Ue=ke("right"),Ke=ke("bottom"),er=Le!=="boundaries"&&(Ke||Se||ze||Ue),De=er?(r.tickwidth||0)+2*mp:0;for(V=0;V<W.length-1;V++)if(Cr.bBoxIntersect(W[V],W[V+1],De)){y=Te;break}}y&&h(c,y)}}r._selections&&(r._selections[l]=c);var b=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(y=f,b.push(function(){h(c,f)})):b.push(m),r._tickAngles&&b.push(function(){r._tickAngles[l]=y===null?la(u)?u:0:y});var _=function(){var X=0,W=0;return c.each(function(V,J){var re=Vb(this),ne=re.select(".text-math-group");if(ne.empty()){var de;r._vals[J]&&(de=r._vals[J].bb||jn.bBox(re.node()),r._vals[J].bb=de),X=Math.max(X,de.width),W=Math.max(W,de.height)}}),{labelsMaxW:X,labelsMaxH:W}},w=r._anchorAxis;if(w&&(w.autorange||w.insiderange)&&bv(r)&&!Ufe(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),w.autorange&&(a._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,b.push(_)),w.insiderange)){var x=_(),M=r._id.charAt(0)==="y"?x.labelsMaxW:x.labelsMaxH;M+=2*mp,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var A=r.side==="right"||r.side==="top"?1:-1,k=A===1?1:0,S=A===1?0:1,D=[];D[S]=w.range[S];var E=w.range,R=w.r2p(E[k]),N=w.r2p(E[S]),O=a._insideTickLabelsUpdaterange[w._name+".range"];if(O){var F=w.r2p(O[k]),I=w.r2p(O[S]),Y=A*(r._id.charAt(0)==="y"?1:-1);Y*R<Y*F&&(R=F,D[k]=E[k]=O[k]),Y*N>Y*I&&(N=I,D[S]=E[S]=O[S])}var B=Math.abs(N-R);B-M>0?(B-=M,M*=1+M/B):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=w.p2r(w.r2p(E[k])+A*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var U=Cr.syncOrAsync(b);return U&&U.then&&e._promises.push(U),U};function pce(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,bp);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(pv.stroke,r.dividercolor).style("stroke-width",jn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Oe.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 mq(e){var r=e.title.font.size,t=(e.title.text.match(iu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ou+t*yv):t?r*(t+1)*yv:r}function mce(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(iu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*ou:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(dv+o*yv));else{var s=bv(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Oe.getPxPosition(e,r),c,v,h;n==="x"?(v=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,v=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=jn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Rfe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:h,"text-anchor":"middle"}})}Oe.shouldShowZeroLine=function(e,r,t){var a=Cr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===yp)&&(Mq(r,0)||!yce(e,r,t,a)||gce(e,r))};Oe.clipEnds=function(e,r){return r.filter(function(t){return Mq(e,t.x)})};function Mq(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function yce(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,l=r._id.charAt(0),o=Oe.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(l==="x")?0:r._length);function u(p){if(!p.showline||!p.linewidth)return!1;var y=Math.max((p.linewidth+r.zerolinewidth)/2,1);function m(w){return typeof w=="number"&&Math.abs(w-s)<y}if(m(p._mainLinePosition)||m(p._mainMirrorPosition))return!0;var b=p._linepositions||{};for(var _ in b)if(m(b[_][0])||m(b[_][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=Oe.list(e,o),v=0;v<c.length;v++){var h=c[v];if(h._mainAxis===n&&u(h,s))return!0}}function gce(e,r){for(var t=e._fullData,a=r._mainSubplot,n=r._id.charAt(0),i=0;i<t.length;i++){var l=t[i];if(l.visible===!0&&l.xaxis+l.yaxis===a&&(hv.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[n]||l.fill&&l.fill.charAt(l.fill.length-1)===n))return!0}return!1}function Vb(e){var r=yi.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}Oe.allowAutoMargin=function(e){for(var r=Oe.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&($f.allowAutoMargin(e,Kb(a)),a.mirror&&$f.allowAutoMargin(e,Aq(a))),hv.getComponentMethod("rangeslider","isVisible")(a)&&$f.allowAutoMargin(e,kq(a))}};function Kb(e){return e._id+".automargin"}function Aq(e){return Kb(e)+".mirror"}function kq(e){return e._id+".rangeslider"}Oe.swap=function(e,r){for(var t=bce(e,r),a=0;a<t.length;a++)xce(e,t[a].x,t[a].y)};function bce(e,r){var t=[],a,n;for(a=0;a<r.length;a++){var i=[],l=e._fullData[r[a]].xaxis,o=e._fullData[r[a]].yaxis;if(!(!l||!o)){for(n=0;n<t.length;n++)(t[n].x.indexOf(l)!==-1||t[n].y.indexOf(o)!==-1)&&i.push(n);if(!i.length){t.push({x:[l],y:[o]});continue}var s=t[i[0]],u;if(i.length>1)for(n=1;n<i.length;n++)u=t[i[n]],fp(s.x,u.x),fp(s.y,u.y);fp(s.x,[l]),fp(s.y,[o])}}return t}function fp(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function xce(e,r,t){var a=[],n=[],i=e.layout,l,o;for(l=0;l<r.length;l++)a.push(Oe.getFromId(e,r[l]));for(l=0;l<t.length;l++)n.push(Oe.getFromId(e,t[l]));var s=Object.keys(zfe),u=["anchor","domain","domainpad","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(l=0;l<s.length;l++){var c=s[l],v=a[0][c],h=n[0][c],p=!0,y=!1,m=!1;if(!(c.charAt(0)==="_"||typeof v=="function"||u.indexOf(c)!==-1)){for(o=1;o<a.length&&p;o++){var b=a[o][c];c==="type"&&f.indexOf(v)!==-1&&f.indexOf(b)!==-1&&v!==b?y=!0:b!==v&&(p=!1)}for(o=1;o<n.length&&p;o++){var _=n[o][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(_)!==-1&&h!==_?m=!0:n[o][c]!==h&&(p=!1)}p&&(y&&(i[a[0]._name].type="linear"),m&&(i[n[0]._name].type="linear"),_ce(i,c,a,n,e._fullLayout._dfltTitle))}}for(l=0;l<e._fullLayout.annotations.length;l++){var w=e._fullLayout.annotations[l];r.indexOf(w.xref)!==-1&&t.indexOf(w.yref)!==-1&&Cr.swapAttrs(i.annotations[l],["?"])}}function _ce(e,r,t,a,n){var i=Cr.nestedProperty,l=i(e[t[0]._name],r).get(),o=i(e[a[0]._name],r).get(),s;for(r==="title"&&(l&&l.text===n.x&&(l.text=n.y),o&&o.text===n.y&&(o.text=n.x)),s=0;s<t.length;s++)i(e,t[s]._name+"."+r).set(o);for(s=0;s<a.length;s++)i(e,a[s]._name+"."+r).set(l)}function jb(e){return e._id==="angularaxis"}function Hb(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 bv(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function xp(e,r){bv(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function Xb(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 wce(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Tce(e,r){return/%f/.test(r)?e>=Ofe:/%L/.test(r)?e>=Hfe:/%[SX]/.test(r)?e>=pp:/%M/.test(r)?e>=mv:/%[HI]/.test(r)?e>=Tl:/%p/.test(r)?e>=Uo:/%[Aadejuwx]/.test(r)?e>=mn:/%[UVW]/.test(r)?e>=Qn:/%[Bbm]/.test(r)?e>=hp:/%[q]/.test(r)?e>=dp:/%[Yy]/.test(r)?e>=vp:!0}});var Sq=G((IAe,Lq)=>{"use strict";Lq.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Qb=G((FAe,qq)=>{"use strict";var Mce=Sq();qq.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Mce(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var Eq=G((HAe,Dq)=>{var Ace={left:0,top:0};Dq.exports=kce;function kce(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=Cce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Cce(e){return e===window||e===document||e===document.body?Ace:e.getBoundingClientRect()}});var ex=G((OAe,Pq)=>{"use strict";var Lce=L5();function Sce(){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}Pq.exports=Lce&&Sce()});var zq=G((BAe,Rq)=>{"use strict";Rq.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var Fq=G((YAe,Iq)=>{"use strict";var Nq=qe(),qce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Iq.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=Nq.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=Nq.constrain(Math.floor(t*3),0,2),qce[t][r]}});var Oq=G((GAe,Hq)=>{"use strict";var Dce=ev(),Ece=b1(),Pce=X0().getGraphDiv,Rce=(k0(),Ne(A0)),rx=Hq.exports={};rx.wrapped=function(e,r,t){var i;e=Pce(e),e._fullLayout&&Ece.clear(e._fullLayout._uid+Rce.HOVERID);let a=e._hoverdata;rx.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:[]}))};rx.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Dce.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 $i=G((UAe,Uq)=>{"use strict";var zce=Eq(),tx=q5(),Nce=ex(),Ice=qe().removeElement,Fce=(Aa(),Ne(Ma)),su=Uq.exports={};su.align=zq();su.getCursor=Fq();var Yq=Oq();su.unhover=Yq.wrapped;su.unhoverRaw=Yq.raw;su.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,v,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,Nce?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,M){return Math.abs(w)<M&&(w=0),Math.abs(x)<M&&(x=0),[w,x]}var y=r.clampFn||p;function m(w){t._dragged=!1,t._dragging=!0;var x=Bq(w);l=x[0],o=x[1],v=w.target,c=w,h=w.buttons===2||w.ctrlKey,typeof w.clientX=="undefined"&&typeof w.clientY=="undefined"&&(w.clientX=l,w.clientY=o),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(w,l,o),tx&&!h?(f=Gq(),f.style.cursor=window.getComputedStyle(i).cursor):tx||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",_),document.addEventListener("touchend",_),r.dragmode!==!1&&(w.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(w){w.preventDefault();var x=Bq(w),M=r.minDrag||Fce.MINDRAG,A=y(x[0]-l,x[1]-o,M),k=A[0],S=A[1];(k||S)&&(t._dragged=!0,su.unhover(t,w)),t._dragged&&r.moveFn&&!h&&(t._dragdata={element:i,dx:k,dy:S},r.moveFn(k,S))}function _(w){if(delete t._dragdata,r.dragmode!==!1&&(w.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",_),document.removeEventListener("touchend",_),tx?Ice(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 x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var A=c[M];!x[M]&&typeof A!="function"&&(x[M]=A)})),r.clickFn&&r.clickFn(a,x),h||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function Gq(){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}su.coverSlip=Gq;function Bq(e){return zce(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Vo=G((VAe,Vq)=>{"use strict";Vq.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 Zq=G((XAe,Wq)=>{"use strict";var ax=Vo(),xv="data-savedcursor",Xq="!!";Wq.exports=function(r,t){var a=r.attr(xv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i<n.length;i++){var l=n[i];l.indexOf("cursor-")===0&&r.attr(xv,l.slice(7)).classed(l,!1)}r.attr(xv)||r.attr(xv,Xq)}ax(r,t)}else a&&(r.attr(xv,null),a===Xq?ax(r):ax(r,a))}});var _p={};ht(_p,{dfltFillHeight:()=>Xce,itemGap:()=>Vce,itemHeightPad:()=>Zce,itemMinHeight:()=>Wce,scrollBarColor:()=>Bce,scrollBarEnterAttrs:()=>Gce,scrollBarMargin:()=>Yce,scrollBarMinHeight:()=>Oce,scrollBarWidth:()=>Hce,titlePad:()=>Uce});var Hce,Oce,Bce,Yce,Gce,Uce,Vce,Xce,Wce,Zce,wp=lt(()=>{"use strict";Hce=6,Oce=20,Bce="#808BA4",Yce=4,Gce={rx:20,ry:3,width:0,height:0},Uce=2,Vce=5,Xce=6,Wce=16,Zce=3});var ix=G((WAe,Jq)=>{"use strict";var nx=_a(),$ce=vi(),{dfltFillHeight:$q}=(wp(),Ne(_p));Jq.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:$ce.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:nx({editType:"legend"}),grouptitlefont:nx({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:$q,dflt:$q,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:nx({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var wv=G(_v=>{"use strict";_v.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};_v.isVertical=function(r){return r.orientation!=="h"};_v.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};_v.getId=function(r){return r._id||"legend"}});var ox=G(($Ae,Kq)=>{"use strict";var Tp=Ar(),ei=qe(),Jce=mt(),Kce=En(),jce=ix(),Qce=Sf(),lx=wv();function e0e(e,r,t,a,n){var i=r[e]||{},l=Jce.newContainer(t,e);function o(W,V){return ei.coerce(i,l,jce,W,V)}var s=ei.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(W,V){var J=f._input,re=f;return ei.coerce(J,re,Kce,W,V)},v=t.font||{},h=ei.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function _(W){return Tp.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(_).forEach(function(W){W.visible&&p++;for(var V=0;V<W._length;V++){var J=(Array.isArray(W.legend)?W.legend[V]:W.legend)||"legend";J===e&&((Array.isArray(W.showlegend)?W.showlegend[V]:W.showlegend)||W._dfltShowLegend)&&(y=!0,p++)}if(e==="legend"&&W._length>W.legend.length)for(var re=W.legend.length;re<W._length;re++)y=!0,p++});for(var w=a.concat(b).filter(function(W){return!_(f)&&e===(W.legend||"legend")}),x=0;x<w.length;x++)if(f=w[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&&(y=!0,(!M&&Tp.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),ei.coerceFont(c,"legendgrouptitle.font",h)),(!M&&Tp.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(m=lx.isGrouped({traceorder:m})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(m=lx.isReversed({traceorder:m})?"reversed+grouped":"grouped")}var A=ei.coerce(r,t,Qce,"showlegend",t.showlegend||y&&p>(e==="legend"?1:0));if(A===!1&&(t[e]=void 0),A===!1&&!i.uirevision||(o("uirevision",t.uirevision),A===!1))return;o("borderwidth");var k=o("orientation"),S=o("yref"),D=o("xref"),E=k==="h",R=S==="paper",N=D==="paper",O,F,I,Y="left";E?(O=0,Tp.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(F=1.1,I="bottom"):(F=1,I="top"):R?(F=-.1,I="top"):(F=0,I="bottom")):(F=1,I="auto",N?O=1.02:(O=1,Y="right")),ei.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:O}},"x"),ei.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:F}},"y"),o("traceorder",m),lx.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemheight"),o("itemclick"),o("itemdoubleclick");let B=o("groupclick");o("groupdoubleclick",B),o("xanchor",Y),o("yanchor",I),o("maxheight"),o("valign"),ei.noneOrAll(i,l,["x","y"]);var U=o("title.text");if(U){o("title.side",E?"left":"top");var X=ei.extendFlat({},s,{size:ei.bigFont(s.size)});ei.coerceFont(o,"title.font",X);let W=n>1;o("titleclick",W?"toggle":!1),o("titledoubleclick",W?"toggleothers":!1)}}Kq.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n<l.length;n++){var o=l[n];if(o.showlegend){var s={_input:o._input,visible:o.visible,showlegend:o.showlegend,legend:o.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):ei.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];e0e(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var fx=G(ux=>{"use strict";var Xo=Ar(),sx=qe(),r0e=sx.pushUnique,t0e=wv(),jq=!0;ux.handleItemClick=function(r,t,a,n,i){var l=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&jq&&t.data&&t._context.showTips&&(sx.notifier(sx._(t,"Double-click on legend to isolate one trace"),"long",t),jq=!1);var u=s==="togglegroup",f=l.hiddenlabels?l.hiddenlabels.slice():[],c=t._fullData;let v=(l.shapes||[]).filter(ke=>ke.showlegend||ke.legendgroup);var h=c.concat(v),p=o.trace;p._isShape&&(p=l.shapes[p.index]);var y=p.legendgroup,m,b,_,w,x,M,A={},k=[],S=[],D=[];function E(ke,ze){var Se=k.indexOf(ke),Ue=A.visible;return Ue||(Ue=A.visible=[]),k.indexOf(ke)===-1&&(k.push(ke),Se=k.length-1),Ue[Se]=ze,Se}var R=(l.shapes||[]).map(function(ke){return ke._input}),N=!1;function O(ke,ze){R[ke].visible=ze,N=!0}function F(ke,ze){if(!(o.groupTitle&&!u)){var Se=ke._isShape,Ue=ke.index;Ue===void 0&&(Ue=ke._index);var Ke=ke.visible===!1?!1:ze;Se?O(Ue,Ke):E(Ue,Ke)}}var I=p.legend;if(!p._isShape&&Xo.traceIs(p,"pie-like")){var Y=o.label,B=f.indexOf(Y);if(n==="toggle")B===-1?f.push(Y):f.splice(B,1);else if(n==="toggleothers"){var U=B!==-1,X=[];for(m=0;m<t.calcdata.length;m++){var W=t.calcdata[m];for(b=0;b<W.length;b++){var V=W[b],J=V.label;I===W[0].trace.legend&&Y!==J&&(f.indexOf(J)===-1&&(U=!0),r0e(f,J),X.push(J))}}if(!U)for(var re=0;re<X.length;re++){var ne=f.indexOf(X[re]);ne!==-1&&f.splice(ne,1)}}Xo.call("_guiRelayout",t,"hiddenlabels",f)}else{var de=y&&y.length,K=[],ye;if(de)for(m=0;m<h.length;m++)ye=h[m],ye.visible&&ye.legendgroup===y&&K.push(m);if(n==="toggle"){var oe;switch(p.visible){case!0:oe="legendonly";break;case!1:oe=!1;break;case"legendonly":oe=!0;break}if(de)if(u)for(m=0;m<h.length;m++){var Ce=h[m];Ce.visible!==!1&&Ce.legendgroup===y&&F(Ce,oe)}else F(p,oe);else F(p,oe)}else if(n==="toggleothers"){var se,fe,Te,Fe,be,Me=!0;let ke=de&&u;for(m=0;m<h.length;m++)if(be=h[m],se=be===p,Te=be.showlegend!==!0,!(se||Te)&&(fe=ke&&be.legendgroup===y,!fe&&be.legend===I&&be.visible===!0&&!Xo.traceIs(be,"notLegendIsolatable"))){Me=!1;break}for(m=0;m<h.length;m++)if(be=h[m],!(be.visible===!1||be.legend!==I)&&!Xo.traceIs(be,"notLegendIsolatable"))switch(p.visible){case"legendonly":F(be,!0);break;case!0:Fe=Me?!0:"legendonly",se=be===p,Te=be.showlegend!==!0&&!be.legendgroup,fe=se||ke&&be.legendgroup===y,F(be,fe||Te?!0:Fe);break}}for(m=0;m<S.length;m++)if(_=S[m],!!_){var Ae=_.constructUpdate(),Le=Object.keys(Ae);for(b=0;b<Le.length;b++)w=Le[b],M=A[w]=A[w]||[],M[D[m]]=Ae[w]}for(x=Object.keys(A),m=0;m<x.length;m++)for(w=x[m],b=0;b<k.length;b++)A[w].hasOwnProperty(b)||(A[w][b]=void 0);N?Xo.call("_guiUpdate",t,A,{shapes:R},k):Xo.call("_guiRestyle",t,A,k)}};ux.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,l=t0e.getId(t),o=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),s=i.concat(o);function u(b){return(b.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(_){return u(_)&&_.visible===!0}),c=!1;else{let b=s.some(function(_){return!u(_)&&_.visible===!0&&_.showlegend!==!1});f=!0,c=!b}let v={visible:[]},h=[],p=(n.shapes||[]).map(function(b){return b._input});for(var y=!1,m=0;m<s.length;m++){let b=s[m],_=u(b);if(!_){let M=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||M)continue}let x=(_?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==x&&(b._isShape?(p[b._index].visible=x,y=!0):(h.push(b.index),v.visible.push(x)))}y?Xo.call("_guiUpdate",r,v,{shapes:p},h):h.length&&Xo.call("_guiRestyle",r,v,h)}});var rD=G((KAe,eD)=>{"use strict";var{isArrayOrTypedArray:cx}=Dn(),Qq=Ar(),vx=wv();eD.exports=function(r,t,a){var n=t._inHover,i=vx.isGrouped(t),l=vx.isReversed(t),o={},s=[],u=!1,f={},c=0,v=0,h,p;function y(W,V,J){if(t.visible!==!1&&!(a&&W!==t._id))if(V===""||!vx.isGrouped(t)){var re="~~i"+c;s.push(re),o[re]=[J],c++}else s.indexOf(V)===-1?(s.push(V),u=!0,o[V]=[J]):o[V].push(J)}for(h=0;h<r.length;h++){var m=r[h],b=m[0],_=b.trace,w=_.legend,x=_.legendgroup;if(!(!n&&(!_.visible||!_.showlegend)))if(Qq.traceIs(_,"pie-like")){var M=Array.isArray(_.legend),A=Array.isArray(_.showlegend);for(f[x]||(f[x]={}),p=0;p<m.length;p++)if(!(A&&_.showlegend[m[p].i]===!1)){M&&(w=_.legend[m[p].i]||"legend");var k=m[p].label;f[x][k]||(y(w,x,{label:k,color:m[p].color,i:m[p].i,trace:_,pts:m[p].pts}),f[x][k]=!0,v=Math.max(v,(k||"").length))}}else y(w,x,b),v=Math.max(v,(_.name||"").length)}if(!s.length)return[];var S=!u||!i,D=[];for(h=0;h<s.length;h++){var E=o[s[h]];S?D.push(E[0]):D.push(E)}for(S&&(D=[D]),h=0;h<D.length;h++){var R=1/0;for(p=0;p<D[h].length;p++){var N=D[h][p].trace.legendrank,O=cx(N)?Math.min(N):N;R>O&&(R=O)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var F=function(W,V){return W[0]._groupMinRank-V[0]._groupMinRank||W[0]._preGroupSort-V[0]._preGroupSort},I=function(W,V){var J=cx(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,re=cx(V.trace.legendrank)?V.trace.legendrank[V.i]:V.trace.legendrank;return J-re||W._preSort-V._preSort};for(D.forEach(function(W,V){W[0]._preGroupSort=V}),D.sort(F),h=0;h<D.length;h++){D[h].forEach(function(W,V){W._preSort=V}),D[h].sort(I);var Y=D[h][0].trace,B=null;for(p=0;p<D[h].length;p++){var U=D[h][p].trace.legendgrouptitle;if(U&&U.text){B=U,n&&(U.font=t._groupTitleFont);break}}if(l&&D[h].reverse(),B){var X=!1;for(p=0;p<D[h].length;p++)if(Qq.traceIs(D[h][p].trace,"pie-like")){X=!0;break}D[h].unshift({i:-1,groupTitle:B,noClick:X,trace:{showlegend:Y.showlegend,legendgroup:Y.legendgroup,legend:Y.legend,visible:t.groupclick==="toggleitem"?!0:Y.visible}})}for(p=0;p<D[h].length;p++)D[h][p]=[D[h][p]]}return t._lgroupsLength=D.length,t._maxNameLength=v,D}});var Tv=G(uu=>{"use strict";var Mp=qe();function tD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}uu.formatPiePercent=function(r,t){var a=tD((r*100).toPrecision(3));return Mp.numSeparate(a,t)+"%"};uu.formatPieValue=function(r,t){var a=tD(r.toPrecision(10));return Mp.numSeparate(a,t)};uu.getFirstFilled=function(r,t){if(Mp.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};uu.castOption=function(r,t){if(Mp.isArrayOrTypedArray(r))return uu.getFirstFilled(r,t);if(r)return r};uu.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var nD=G((QAe,aD)=>{"use strict";var a0e=$r(),n0e=kr();aD.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?a0e.pointStyle(r,a,n,t):n0e.fill(r,t.color)}});var Qf=G((eke,oD)=>{"use strict";var iD=kr(),lD=Tv().castOption,i0e=nD();oD.exports=function(r,t,a,n){var i=a.marker.line,l=lD(i.color,t.pts)||iD.defaultLine,o=lD(i.width,t.pts)||0;r.call(i0e,t,a,n).style("stroke-width",o).call(iD.stroke,l)}});var yx=G((rke,vD)=>{"use strict";var yn=Er(),dx=Ar(),ln=qe(),hx=ln.strTranslate,ri=$r(),gi=kr(),px=$n().extractOpts,kp=Kn(),l0e=Qf(),o0e=Tv().castOption,sD=(wp(),Ne(_p)),uD=12,fD=5,fu=2,s0e=10,ec=5;vD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=a.itemheight,s=(l+sD.itemGap*2)/2,u=hx(s,0),f=function(S,D,E,R){var N;if(S+1)N=S;else if(D&&D.width>0)N=D.width;else return 0;return i?R:Math.min(N,E)};r.each(function(S){var D=yn.select(this),E=ln.ensureSingle(D,"g","layers");E.style("opacity",S[0].trace.opacity);var R=a.indentation,N=a.valign,O=S[0].lineHeight,F=S[0].height;if(N==="middle"&&R===0||!O||!F)E.attr("transform",null);else{var I={top:1,bottom:-1}[N],Y=I*(.5*(O-F+3))||0,B=a.indentation;E.attr("transform",hx(B,Y))}var U=E.selectAll("g.legendfill").data([S]);U.enter().append("g").classed("legendfill",!0);var X=E.selectAll("g.legendlines").data([S]);X.enter().append("g").classed("legendlines",!0);var W=E.selectAll("g.legendsymbols").data([S]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(y).each(p).each(b).each(M).each(x).each(c).each(v).each(_).each(w);function c(S){var D=cD(S),E=D.showFill,R=D.showLine,N=D.showGradientLine,O=D.showGradientFill,F=D.anyFill,I=D.anyLine,Y=S[0],B=Y.trace,U,X,W=px(B),V=W.colorscale,J=W.reversescale,re=function(fe){if(fe.size())if(E)ri.fillGroupStyle(fe,t,!0);else{var Te="legendfill-"+B.uid;ri.gradient(fe,t,Te,mx(J),V,"fill")}},ne=function(fe){if(fe.size()){var Te="legendline-"+B.uid;ri.lineGroupStyle(fe),ri.gradient(fe,t,Te,mx(J),V,"stroke")}},de=kp.hasMarkers(B)||!F?"M5,0":I?"M5,-2":"M5,-3",K=yn.select(this),ye=K.select(".legendfill").selectAll("path").data(E||O?[S]:[]);ye.enter().append("path").classed("js-fill",!0),ye.exit().remove(),ye.attr("d",de+"h"+l+"v"+o+"h-"+l+"z").call(re);let oe=E||O?(sD.dfltFillHeight-o)/2:0;if(K.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",oe?hx(0,oe):null),R||N){var Ce=f(void 0,B.line,s0e,fD);X=ln.minExtend(B,{line:{width:Ce}}),U=[ln.minExtend(Y,{trace:X})]}var se=K.select(".legendlines").selectAll("path").data(R||N?[U]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",de+(N?"l"+l+",0.0001":"h"+l)).call(R?ri.lineGroupStyle:ne)}function v(S){var D=cD(S),E=D.anyFill,R=D.anyLine,N=D.showLine,O=D.showMarker,F=S[0],I=F.trace,Y=!O&&!R&&!E&&kp.hasText(I),B,U;function X(oe,Ce,se,fe){var Te=ln.nestedProperty(I,oe).get(),Fe=ln.isArrayOrTypedArray(Te)&&Ce?Ce(Te):Te;if(i&&Fe&&fe!==void 0&&(Fe=fe),se){if(Fe<se[0])return se[0];if(Fe>se[1])return se[1]}return Fe}function W(oe){return F._distinct&&F.index&&oe[F.index]?oe[F.index]:oe[0]}if(O||Y||N){var V={},J={};if(O){V.mc=X("marker.color",W);var re=I.type==="scattermap";V.mx=re?"circle":X("marker.symbol",W),V.mo=X("marker.opacity",ln.mean,[.2,1]),V.mlc=X("marker.line.color",W),V.mlw=X("marker.line.width",ln.mean,[0,5],fu),V.mld=X("marker.line.dash",W),J.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=X("marker.size",ln.mean,[2,16],uD);V.ms=ne,J.marker.size=ne}N&&(J.line={width:X("line.width",W,[0,10],fD)}),Y&&(V.tx="Aa",V.tp=X("textposition",W),V.ts=10,V.tc=X("textfont.color",W),V.tf=X("textfont.family",W),V.tw=X("textfont.weight",W),V.ty=X("textfont.style",W),V.tv=X("textfont.variant",W),V.tC=X("textfont.textcase",W),V.tE=X("textfont.lineposition",W),V.tS=X("textfont.shadow",W)),B=[ln.minExtend(F,V)],U=ln.minExtend(I,J),U.selectedpoints=null,U.texttemplate=null}var de=yn.select(this).select("g.legendpoints"),K=de.selectAll("path.scatterpts").data(O?B:[]);K.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),K.exit().remove(),K.call(ri.pointStyle,U,t),O&&(B[0].mrc=3);var ye=de.selectAll("g.pointtext").data(Y?B:[]);ye.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),ye.exit().remove(),ye.selectAll("text").call(ri.textPointStyle,U,t)}function h(S){var D=S[0].trace,E=D.type==="waterfall";if(S[0]._distinct&&E){var R=S[0].trace[S[0].dir].marker;return S[0].mc=R.color,S[0].mlw=R.line.width,S[0].mlc=R.line.color,m(S,this,"waterfall")}var N=[];D.visible&&E&&(N=S[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 O=yn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(N);O.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),O.exit().remove(),O.each(function(F){var I=yn.select(this),Y=D[F[0]].marker,B=f(void 0,Y.line,ec,fu);I.attr("d",F[1]).style("stroke-width",B+"px").call(gi.fill,Y.color),B&&I.call(gi.stroke,Y.line.color)})}function p(S){m(S,this)}function y(S){m(S,this,"funnel")}function m(S,D,E){var R=S[0].trace,N=R.marker||{},O=N.line||{},F=N.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",I=E?R.visible&&R.type===E:dx.traceIs(R,"bar"),Y=yn.select(D).select("g.legendpoints").selectAll("path.legend"+E).data(I?[S]:[]);Y.enter().append("path").classed("legend"+E,!0).attr("d",F).attr("transform",u),Y.exit().remove(),Y.each(function(B){var U=yn.select(this),X=B[0],W=f(X.mlw,N.line,ec,fu);U.style("stroke-width",W+"px");var V=X.mcc;if(!a._inHover&&"mc"in X){var J=px(N),re=J.mid;re===void 0&&(re=(J.max+J.min)/2),V=ri.tryColorscale(N,"")(re)}var ne=V||X.mc||N.color,de=N.pattern,K=ri.getPatternAttr;let ye=0;a._inHover&&X._distinct&&X.index!=null&&(ye=X.index);let oe=de&&(K(de.shape,ye,"")||K(de.path,ye,""));if(oe){let se=K(de.bgcolor,ye,null),fe=K(de.fgcolor,ye,null);var Ce=de.fgopacity;let Te=a._inHover?Ap(K(de.size,ye,8),8,10):Ap(de.size,8,10),Fe=a._inHover?Ap(K(de.solidity,ye,.5),.5,1):Ap(de.solidity,.5,1),be=a._inHover?`hover-${R.uid}-${ye}`:`legend-${R.uid}`;U.call(ri.pattern,"legend",t,be,oe,Te,Fe,V,de.fillmode,se,fe,Ce)}else U.call(gi.fill,ne);W&&gi.stroke(U,X.mlc||O.color)})}function b(S){var D=S[0].trace,E=yn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&dx.traceIs(D,"box-violin")?[S]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.each(function(){var R=yn.select(this);if((D.boxpoints==="all"||D.points==="all")&&gi.opacity(D.fillcolor)===0&&gi.opacity((D.line||{}).color)===0){var N=ln.minExtend(D,{marker:{size:i?uD:ln.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(ri.pointStyle,N,t)}else{var O=f(void 0,D.line,ec,fu);R.style("stroke-width",O+"px").call(gi.fill,D.fillcolor),O&&gi.stroke(R,D.line.color)}})}function _(S){var D=S[0].trace,E=yn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[S,S]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(R,N){return N?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(R,N){var O=yn.select(this),F=D[N?"increasing":"decreasing"],I=f(void 0,F.line,ec,fu);O.style("stroke-width",I+"px").call(gi.fill,F.fillcolor),I&&gi.stroke(O,F.line.color)})}function w(S){var D=S[0].trace,E=yn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[S,S]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(R,N){return N?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(R,N){var O=yn.select(this),F=D[N?"increasing":"decreasing"],I=f(void 0,F.line,ec,fu);O.style("fill","none").call(ri.dashLine,F.line.dash,I),I&&gi.stroke(O,F.line.color)})}function x(S){A(S,this,"pie")}function M(S){A(S,this,"funnelarea")}function A(S,D,E){var R=S[0],N=R.trace,O=E?N.visible&&N.type===E:dx.traceIs(N,E),F=yn.select(D).select("g.legendpoints").selectAll("path.legend"+E).data(O?[S]:[]);if(F.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var I=N.marker||{},Y=f(o0e(I.line.width,R.pts),I.line,ec,fu),B="pieLike",U=ln.minExtend(N,{marker:{line:{width:Y}}},B),X=ln.minExtend(R,{trace:U},B);l0e(F,X,U,t)}}function k(S){var D=S[0].trace,E,R=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmap":R=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymap":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":R=[["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"]],E=!1;break;case"streamtube":R=[["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"]],E=!1;break;case"surface":R=[["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"]],E=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var N=yn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);N.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(O,F){var I=yn.select(this),Y=px(D),B=Y.colorscale,U=Y.reversescale,X=function(re){if(re.size()){var ne="legendfill-"+D.uid;ri.gradient(re,t,ne,mx(U,E==="radial"),B,"fill")}},W;if(B){if(!E){var J=B.length;W=F===0?B[U?J-1:0][1]:F===1?B[U?0:J-1][1]:B[Math.floor((J-1)/2)][1]}}else{var V=D.vertexcolor||D.facecolor||D.color;W=ln.isArrayOrTypedArray(V)?V[F]||V[0]:V}I.attr("d",O[0]),W?I.call(gi.fill,W):I.call(X)})}};function mx(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function cD(e){var r=e[0].trace,t=r.contours,a=kp.hasLines(r)||r.visible&&r.type==="quiver",n=kp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function Ap(e,r,t){return e&&ln.isArrayOrTypedArray(e)?r:e>t?t:e}});var _x=G((tke,wD)=>{"use strict";var gn=Er(),oa=qe(),bx=Jt(),cu=Ar(),Sp=ev(),gx=$i(),sa=$r(),Mv=kr(),Ql=pa(),dD=fx().handleItemClick,hD=fx().handleTitleClick,Ft=(wp(),Ne(_p)),xx=(Va(),Ne(Ua)),xD=xx.LINE_SPACING,tc=xx.FROM_TL,pD=xx.FROM_BR,mD=rD(),u0e=yx(),ac=wv(),rc=1,f0e=/^legend[0-9]*$/;wD.exports=function(r,t){if(t)yD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=gn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(f0e)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l<n.length;l++){var o=n[l],s=r._fullLayout[o];yD(r,s)}}};function c0e(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*xD,i=0,l=e.node(),o=sa.bBox(l).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*Ft.titlePad-o):r.title.side==="top right"&&(i=r._width-2*t-2*Ft.titlePad-o),Ql.positionText(e,t+Ft.titlePad+i,t+n)}}function yD(e,r){var t=r||{},a=e._fullLayout,n=ac.getId(t),i,l,o=t._inHover;if(o?(l=t.layer,i="hover"):(l=a._infolayer,i=n),!!l){i+=a._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var s;if(o){if(!t.entries)return;s=mD(t.entries,t)}else{for(var u=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var v=f[c];if(v.showlegend){var h={_isShape:!0,index:v._index,name:v.name||v.label.text||"shape "+v._index,legend:v.legend,legendgroup:v.legendgroup,legendgrouptitle:v.legendgrouptitle,legendrank:v.legendrank,legendwidth:v.legendwidth,showlegend:v.showlegend,visible:v.visible,opacity:v.opacity,mode:v.type==="line"?"lines":"markers",line:v.line,marker:{line:v.line,color:v.fillcolor,size:12,symbol:v.type==="rect"?"square":v.type==="circle"?"circle":"hexagon2"}};u.push([{trace:h}])}}s=a.showlegend&&mD(u,t,a._legends.length>1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),bx.autoMargin(e,n);var y=oa.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),m=oa.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=oa.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(Mv.stroke,t.bordercolor).call(Mv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=oa.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=oa.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(sa.font,w.font).text(w.text),Lp(x,_,e,t,rc),!o&&(t.titleclick||t.titledoubleclick)&&h0e(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var M=oa.ensureSingle(y,"rect","scrollbar",function(S){S.attr(Ft.scrollBarEnterAttrs).call(Mv.fill,Ft.scrollBarColor)}),A=_.selectAll("g.groups").data(s);A.enter().append("g").attr("class","groups"),A.exit().remove();var k=A.selectAll("g.traces").data(oa.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(S){let D=S[0],E=D.trace;if(D.groupTitle){let R=E.legendgroup,N=(a.shapes||[]).filter(function(F){return F.showlegend});return e._fullData.concat(N).some(function(F){return F.legendgroup===R&&(F.legend||"legend")===n&&F.visible===!0})?1:.5}return cu.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){gn.select(this).call(v0e,e,t)}).call(u0e,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||gn.select(this).call(d0e,e,n)}),oa.syncOrAsync([bx.previousPromises,function(){return y0e(e,A,k,t,_)},function(){var S=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text){let Me=(a.shapes||[]).filter(function(Le){return Le.showlegend}),Ae=e._fullData.concat(Me).some(function(Le){let ke=Le.legend||"legend";var ze=Array.isArray(ke)?ke.includes(n):ke===n;return ze&&Le.visible===!0});x.style("opacity",Ae?1:.5)}if(!o){var N,O;E?N=S.l+S.w*t.x-tc[qp(t)]*t._width:N=a.width*t.x-tc[qp(t)]*t._width,R?O=S.t+S.h*(1-t.y)-tc[Dp(t)]*t._effHeight:O=a.height*(1-t.y)-tc[Dp(t)]*t._effHeight;var F=g0e(e,n,N,O);if(F)return;if(a.margin.autoexpand){var I=N,Y=O;N=E?oa.constrain(N,0,a.width-t._width):I,O=R?oa.constrain(O,0,a.height-t._effHeight):Y,N!==I&&oa.log("Constrain "+n+".x to make legend fit inside graph"),O!==Y&&oa.log("Constrain "+n+".y to make legend fit inside graph")}sa.setTranslate(y,N,O)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var B=t._effHeight;o&&(B=t._height),b.attr({width:t._width-D,height:B-D,x:D/2,y:D/2}),sa.setTranslate(_,0,0),m.select("rect").attr({width:t._width-2*D,height:B-2*D,x:D,y:D}),sa.setClipUrl(_,i,e),sa.setRect(M,0,0,0,0),delete t._scrollY}else{var U=Math.max(Ft.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),X=t._effHeight-U-2*Ft.scrollBarMargin,W=t._height-t._effHeight,V=X/W,J=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*D+Ft.scrollBarWidth+Ft.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),m.select("rect").attr({width:t._width-2*D+Ft.scrollBarWidth+Ft.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+J}),sa.setClipUrl(_,i,e),se(J,U,V),y.on("wheel",function(){J=oa.constrain(t._scrollY+gn.event.deltaY/W*X,0,W),se(J,U,V),J!==0&&J!==W&&gn.event.preventDefault()});var re,ne,de,K=function(Me,Ae,Le){var ke=(Le-Ae)/V+Me;return oa.constrain(ke,0,W)},ye=function(Me,Ae,Le){var ke=(Ae-Le)/V+Me;return oa.constrain(ke,0,W)},oe=gn.behavior.drag().on("dragstart",function(){var Me=gn.event.sourceEvent;Me.type==="touchstart"?re=Me.changedTouches[0].clientY:re=Me.clientY,de=J}).on("drag",function(){var Me=gn.event.sourceEvent;Me.buttons===2||Me.ctrlKey||(Me.type==="touchmove"?ne=Me.changedTouches[0].clientY:ne=Me.clientY,J=K(de,re,ne),se(J,U,V))});M.call(oe);var Ce=gn.behavior.drag().on("dragstart",function(){var Me=gn.event.sourceEvent;Me.type==="touchstart"&&(re=Me.changedTouches[0].clientY,de=J)}).on("drag",function(){var Me=gn.event.sourceEvent;Me.type==="touchmove"&&(ne=Me.changedTouches[0].clientY,J=ye(de,re,ne),se(J,U,V))});_.call(Ce)}function se(Me,Ae,Le){t._scrollY=e._fullLayout[n]._scrollY=Me,sa.setTranslate(_,0,-Me),sa.setRect(M,t._width,Ft.scrollBarMargin+Me*Le,Ft.scrollBarWidth,Ae),m.select("rect").attr("y",D+Me)}if(e._context.edits.legendPosition){var fe,Te,Fe,be;y.classed("cursor-move",!0),gx.init({element:y.node(),gd:e,prepFn:function(Me){if(Me.target!==M.node()){var Ae=sa.getTranslate(y);Fe=Ae.x,be=Ae.y}},moveFn:function(Me,Ae){if(Fe!==void 0&&be!==void 0){var Le=Fe+Me,ke=be+Ae;sa.setTranslate(y,Le,ke),fe=gx.align(Le,t._width,S.l,S.l+S.w,t.xanchor),Te=gx.align(ke+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(fe!==void 0&&Te!==void 0){var Me={};Me[n+".x"]=fe,Me[n+".y"]=Te,cu.call("_guiRelayout",e,Me)}},clickFn:function(Me,Ae){var Le=l.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return Ae.clientX>=ke.left&&Ae.clientX<=ke.right&&Ae.clientY>=ke.top&&Ae.clientY<=ke.bottom});Le.size()>0&&_D(e,t,Le,Me,Ae)}})}}],e)}}function Cp(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function _D(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),cu.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=Sp.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&dD(t,e,r,o,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Sp.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&dD(t,e,r,s,a)}}function v0e(e,r,t){var a=ac.getId(t),n=e.data()[0][0],i=n.trace,l=cu.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=oa.templateString(u,i._meta))));var c=oa.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(sa.font,f).text(o?gD(u,s):u);var v=t.indentation+t.itemwidth+Ft.itemGap*2;Ql.positionText(c,v,0),o?c.call(Ql.makeEditable,{gd:r,text:u}).call(Lp,e,r,t).on("edit",function(h){this.text(gD(h,s)).call(Lp,e,r,t);var p={};return p.name=h,n.trace._isShape?cu.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):cu.call("_guiRestyle",r,p,i.index)}):Lp(c,e,r,t)}function gD(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 d0e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=oa.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Mv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTime<a?i+=1:(i=1,r._legendMouseDownTime=n)}),l.on("mouseup",function(){if(!(r._dragged||r._editing)){var o=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>a&&(i=Math.max(i-1,1)),_D(r,o,e,i,gn.event)}}))}function h0e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&cu.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=oa.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Mv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTime<i?o+=1:(o=1,r._legendMouseDownTime=l)}),s.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(o=Math.max(o-1,1));let u={event:gn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(Sp.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&hD(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Sp.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&hD(r,t,t.titledoubleclick))}))}function Lp(e,r,t,a,n){a._inHover&&e.attr("data-notex",Ql.isPureTex(e.text())?null:!0),Ql.convertToTspans(e,t,function(){p0e(r,t,a,n)})}function p0e(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 l=e.select("g[class*=math-group]"),o=l.node(),s=ac.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===rc?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*xD,v,h;if(o){var p=sa.bBox(o);v=p.height,h=p.width,a===rc?sa.setTranslate(l,u,u+v*.75):sa.setTranslate(l,0,v*.25)}else{var y="."+s+(a===rc?"title":"")+"text",m=e.select(y),b=Ql.lineCount(m),_=m.node();if(v=c*b,h=_?sa.bBox(_).width:0,a===rc)t.title.side==="left"&&(h+=Ft.itemGap*2),Ql.positionText(m,u+Ft.titlePad,u+c);else{var w=Ft.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Ft.itemGap,h-=t.indentation+t.itemwidth),Ql.positionText(m,w,-c*((b-1)/2-.3))}}if(a===rc)t._titleWidth=h,t._titleHeight=v;else{n.lineHeight=c;let x=Ft.itemMinHeight+t.itemheight-Ft.dfltFillHeight;n.height=Math.max(v,Ft.itemMinHeight,x)+Ft.itemHeightPad,n.width=h}}function m0e(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 y0e(e,r,t,a,n){var i=e._fullLayout,l=ac.getId(a);a||(a=i[l]);var o=i._size,s=ac.isVertical(a),u=ac.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,h=Ft.itemGap,p=a.indentation+a.itemwidth+h*2,y=2*(c+h),m=Dp(a),b=a.y<0||a.y===0&&m==="top",_=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,x={};let{orientation:M,yref:A}=a,{maxheight:k}=a,S=b||_||M!=="v"||A!=="paper";k||(k=S?.5:1);let D=S?i.height:o.h;if(a._maxHeight=Math.max(k>1?k:k*D,30),A==="container"){let Me=bD(a.y,m)*i.height;a._maxHeight=Math.max(Math.min(a._maxHeight,Me),30)}var E=0;a._width=0,a._height=0;var R=m0e(a);if(s)t.each(function(Me){var Ae=Me[0].height;sa.setTranslate(this,c+R[0],c+R[1]+a._height+Ae/2+h),a._height+=Ae,a._width=Math.max(a._width,Me[0].width)}),E=p+a._width,a._width+=h+p+v,a._height+=y,u&&(r.each(function(Me,Ae){sa.setTranslate(this,0,Ae*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=qp(a),O=a.x<0||a.x===0&&N==="right",F=a.x>1||a.x===1&&N==="left",I=_||b,Y=i.width/2;if(a._maxWidth=Math.max(O?I&&N==="left"?o.l+o.w:Y:F?I&&N==="right"?o.r+o.w:Y:o.w,2*p),a.xref==="container"){let Me=bD(a.x,N)*i.width;a._maxWidth=Math.max(Me,2*p)}var B=0,U=0;t.each(function(Me){var Ae=Cp(Me,a,p);B=Math.max(B,Ae),U+=Ae}),E=null;var X=0;if(u){var W=0,V=0,J=0;r.each(function(){var Me=0,Ae=0;gn.select(this).selectAll("g.traces").each(function(ke){var ze=Cp(ke,a,p),Se=ke[0].height;sa.setTranslate(this,R[0],R[1]+c+h+Se/2+Ae),Ae+=Se,Me=Math.max(Me,ze),x[ke[0].trace.legendgroup]=Me});var Le=Me+h;V>0&&Le+c+V>a._maxWidth?(X=Math.max(X,V),V=0,J+=W+w,W=Ae):W=Math.max(W,Ae),sa.setTranslate(this,V,J),V+=Le}),a._width=Math.max(X,V)+c,a._height=J+W+y}else{var re=t.size(),ne=U+v+(re-1)*h<a._maxWidth,de=0,K=0,ye=0,oe=0;t.each(function(Me){var Ae=Me[0].height,Le=Cp(Me,a,p,u),ke=ne?Le:B;f||(ke+=h),ke+c+K-h>=a._maxWidth&&(X=Math.max(X,oe),K=0,ye+=de,a._height+=de,de=0),sa.setTranslate(this,R[0]+c+K,R[1]+c+ye+Ae/2+h),oe=K+Le+h,K+=ke,de=Math.max(de,Ae)}),ne?(a._width=K+v,a._height=de+y):(a._width=Math.max(X,oe)+v,a._height+=de+y)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+Ft.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+Ft.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Ce=e._context.edits,se=Ce.legendText||Ce.legendPosition;if(t.each(function(Me){var Ae=gn.select(this).select("."+l+"toggle"),Le=Me[0].height,ke=Me[0].trace.legendgroup,ze=Cp(Me,a,p);u&&ke!==""&&(ze=x[ke]);var Se=se?p:E||ze;!s&&!f&&(Se+=h/2),sa.setRect(Ae,0,-Le/2,Se,Le)}),a._inHover){let Me=a._width-v-h-R[0];t.each(function(Ae){Ae[0].textAlign==="right"&&gn.select(this).select("."+l+"text").attr("text-anchor","end").call(Ql.positionText,Me)})}var fe=n.select("."+l+"titletext");fe.node()&&c0e(fe,a,c);var Te=n.select("."+l+"titletoggle");if(Te.size()&&fe.node()){var Fe=fe.attr("x")||0,be=Ft.titlePad;sa.setRect(Te,Fe-be,c,a._titleWidth+2*be,a._titleHeight+2*be)}}function g0e(e,r,t,a){var n=e._fullLayout,i=n[r],l=qp(i),o=Dp(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",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return bx.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*tc[l],r:i._width*pD[l],b:i._effHeight*pD[o],t:i._effHeight*tc[o]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function qp(e){return oa.isRightAnchor(e)?"right":oa.isCenterAnchor(e)?"center":"left"}function Dp(e){return oa.isBottomAnchor(e)?"bottom":oa.isMiddleAnchor(e)?"middle":"top"}function bD(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 kx=G(Ax=>{"use strict";var ro=Er(),eo=Ur(),Ht=qe(),b0e=Ht.pushUnique,wx=Ht.strTranslate,x0e=Ht.strRotate,_0e=ev(),Pt=pa(),w0e=Zq(),Al=$r(),ca=kr(),Ep=$i(),Ji=Qr(),T0e=(Aa(),Ne(Ma)).zindexSeparator,vu=Ar(),Fn=Wi(),du=(k0(),Ne(A0)),M0e=ox(),A0e=_x(),ED=du.YANGLE,Mx=Math.PI*ED/180,k0e=1/Math.sin(Mx),C0e=Math.cos(Mx),L0e=Math.sin(Mx),Lt=du.HOVERARROWSIZE,Wr=du.HOVERTEXTPAD,TD={box:!0,ohlc:!0,violin:!0,candlestick:!0},S0e={scatter:!0,scattergl:!0,splom:!0};function MD(e,r){return e.distance-r.distance}Ax.hover=function(r,t,a,n){r=Ht.getGraphDiv(r);var i=t.target;Ht.throttle(r._fullLayout._uid+du.HOVERID,du.HOVERMINTIME,function(){D0e(r,t,a,n,i)})};Ax.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=ND(n),l=ID(n),o=r.map(function(p){var y=p._x0||p.x0||p.x||0,m=p._x1||p.x1||p.x||0,b=p._y0||p.y0||p.y||0,_=p._y1||p.y1||p.y||0,w=p.eventData;if(w){var x=Math.min(y,m),M=Math.max(y,m),A=Math.min(b,_),k=Math.max(b,_),S=p.trace;if(vu.traceIs(S,"gl3d")){var D=n._fullLayout[S.scene]._scene.container,E=D.offsetLeft,R=D.offsetTop;x+=E,M+=E,A+=R,k+=R}w.bbox={x0:x+l,x1:M+l,y0:A+i,y1:k+i},w.xPixel=(y+m)/2,w.yPixel=(b+_)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:p.color||ca.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:w}}),s=!1,u=RD(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ca.background,container:ro.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,y=0,m=0;f.sort(function(b,_){return b.y0-_.y0}).each(function(b,_){var w=b.y0-b.by/2;w-p<y?b.offset=y-w+p:b.offset=0,y=w+b.by+b.offset,_===t.anchorIndex&&(m=b.offset)}).each(function(b){b.offset-=m})}var v=n._fullLayout._invScaleX,h=n._fullLayout._invScaleY;return c(),Rp(f,s,v,h),u.mathjaxPromise&&u.mathjaxPromise.then(function(){c(),Rp(f,s,v,h),f.each(function(){var p=ro.select(this);Pt.repositionMathGroup(p.select("text.nums")),Pt.repositionMathGroup(p.select("text.name"))})}),a?f:f.node()};function q0e(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function D0e(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(T0e)[0]);var i=Array.isArray(t)?t:[t],l,o=e._fullLayout,s=o.hoversubplots,u=o._plots||[],f=u[t],c=o._has("cartesian"),v=o._has("ternary"),h=r.hovermode||o.hovermode,p=(h||"").charAt(0)==="x",y=(h||"").charAt(0)==="y",m,b;if(c&&(p||y)&&s==="axis"){for(var _=i.length,w=0;w<_;w++)if(l=i[w],u[l]){m=Ji.getFromId(e,l,"x"),b=Ji.getFromId(e,l,"y");var x=(p?m:b)._subplotsWith;if(x&&x.length)for(var M=0;M<x.length;M++)b0e(i,x[M])}}if(f&&s!=="single"){var A=f.overlays.map(function(nr){return nr.id});i=i.concat(A)}for(var k=i.length,S=new Array(k),D=new Array(k),E=!1,R=0;R<k;R++)if(l=i[R],u[l])E=!0,S[R]=u[l].xaxis,D[R]=u[l].yaxis;else if(o[l]&&o[l]._subplot){var N=o[l]._subplot;S[R]=N.xaxis,D[R]=N.yaxis}else{Ht.warn("Unrecognized subplot: "+l);return}if(h&&!E&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Ep.unhoverRaw(e,r);var O=o.hoverdistance;O===-1&&(O=1/0);var F=o.spikedistance;F===-1&&(F=1/0);var I=[],Y=[],B,U,X,W,V,J,re,ne,de,K,ye,oe,Ce,se={hLinePoint:null,vLinePoint:null};let fe={};var Te=!1;if(Array.isArray(r))for(h="array",X=0;X<r.length;X++)V=e.calcdata[r[X].curveNumber||0],V&&(J=V[0].trace,V[0].trace.hoverinfo!=="skip"&&(Y.push(V),J.orientation==="h"&&(Te=!0)));else{var Fe=e.calcdata.slice();for(Fe.sort(function(nr,Gr){var Nr=nr[0].trace.zorder||0,at=Gr[0].trace.zorder||0;return Nr-at}),W=0;W<Fe.length;W++)V=Fe[W],J=V[0].trace,J.hoverinfo!=="skip"&&Fn.isTraceInSubplots(J,i)&&(Y.push(V),J.orientation==="h"&&(Te=!0));var be=!n,Me,Ae;if(be)"xpx"in r?Me=r.xpx:Me=S[0]._length/2,"ypx"in r?Ae=r.ypx:Ae=D[0]._length/2;else{if(_0e.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Le=n.getBoundingClientRect();Me=r.clientX-Le.left,Ae=r.clientY-Le.top,o._calcInverseTransform(e);var ke=Ht.apply3DTransform(o._invTransform)(Me,Ae);if(Me=ke[0],Ae=ke[1],Me<0||Me>S[0]._length||Ae<0||Ae>D[0]._length)return Ep.unhoverRaw(e,r)}if(r.pointerX=Me+S[0]._offset,r.pointerY=Ae+D[0]._offset,"xval"in r?B=Fn.flat(i,r.xval):B=Fn.p2c(S,Me),"yval"in r?U=Fn.flat(i,r.yval):U=Fn.p2c(D,Ae),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!eo(B[0])||!eo(U[0]))return Ht.warn("Fx.hover failed",r,e),Ep.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=B,e._hoverYVals=U,e._hoverXAxes=S,e._hoverYAxes=D);var ze=1/0;function Se(nr,Gr){for(W=0;W<Y.length;W++)if(V=Y[W],!(!V||!V[0]||!V[0].trace)&&(J=V[0].trace,!(J.visible!==!0||J._length===0)&&["carpet","contourcarpet"].indexOf(J._module.name)===-1)){if(de=h,Fn.isUnifiedHover(de)&&(de=de.charAt(0)),J.type==="splom"?(ne=0,re=i[ne]):(re=Fn.getSubplot(J),ne=i.indexOf(re)),oe={cd:V,trace:J,xa:S[ne],ya:D[ne],maxHoverDistance:O,maxSpikeDistance:F,index:!1,distance:Math.min(ze,O),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:ca.defaultLine,name:J.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},o[re]&&(oe.subplot=o[re]._subplot),o._splomScenes&&o._splomScenes[J.uid]&&(oe.scene=o._splomScenes[J.uid]),de==="array"){var Nr=r[W];if("pointNumber"in Nr){let st=V[Nr.pointNumber];st&&(oe.index=Nr.pointNumber,st.lonlat?(K=st.lonlat[0],ye=st.lonlat[1]):(K=st.x,ye=st.y)),de="closest"}else de="","xval"in Nr&&(K=Nr.xval,de="x"),"yval"in Nr&&(ye=Nr.yval,de=de?"closest":"y")}else nr!==void 0&&Gr!==void 0?(K=nr,ye=Gr):(K=B[ne],ye=U[ne]);if(Ce=I.length,O!==0)if(J._module&&J._module.hoverPoints){var at=J._module.hoverPoints(oe,K,ye,de,{finiteRange:!0,hoverLayer:o._hoverlayer,hoversubplots:s,gd:e});if(at)for(var ba,tn=0;tn<at.length;tn++)ba=at[tn],eo(ba.x0)&&eo(ba.y0)&&I.push(R0e(ba,h))}else Ht.log("Unrecognized trace type in hover:",J);if(h==="closest"&&I.length>Ce&&(I.splice(0,Ce),ze=I[0].distance),vu.traceIs(J,"ternary")&&F!==0){let st=oe.subplot;if(["aaxis","baxis","caxis"].some(xa=>st[xa].showspikes&&st[xa].spikesnap!=="hovered data")){let xa=at==null?void 0:at[0];if(!Number.isFinite(xa==null?void 0:xa.spikeDistance)){let vl=Ht.extendFlat({},oe,{distance:F,index:!1}),As=J._module.hoverPoints(vl,K,ye,"closest");xa=As&&As[0]}let Gl=fe[re];xa&&xa.index!==void 0&&xa.index!==!1&&xa.spikeDistance<=F&&(!Gl||xa.spikeDistance<Gl.spikeDistance)&&(fe[re]=xa)}}if(c&&I.length===0&&F!==0&&q0e(oe.xa,oe.ya)){oe.distance=F,oe.index=!1;var Gt=J._module.hoverPoints(oe,K,ye,"closest",{hoverLayer:o._hoverlayer});if(Gt&&(Gt=Gt.filter(function(st){return st.spikeDistance<=F})),Gt!=null&&Gt.length){var zi,Ms=Gt.filter(function(st){return st.xa.showspikes&&st.xa.spikesnap!=="hovered data"});if(Ms.length){var Bl=Ms[0];eo(Bl.x0)&&eo(Bl.y0)&&(zi=er(Bl),(!se.vLinePoint||se.vLinePoint.spikeDistance>zi.spikeDistance)&&(se.vLinePoint=zi))}var xo=Gt.filter(function(st){return st.ya.showspikes&&st.ya.spikesnap!=="hovered data"});if(xo.length){var Yl=xo[0];eo(Yl.x0)&&eo(Yl.y0)&&(zi=er(Yl),(!se.hLinePoint||se.hLinePoint.spikeDistance>zi.spikeDistance)&&(se.hLinePoint=zi))}}}}}Se();function Ue(){if(o._hoverlayer.selectAll(".ternary-spikes").remove(),F!==0)for(let nr=0;nr<i.length;nr++){let Gr=i[nr],Nr=o[Gr]&&o[Gr]._subplot;if(Nr&&Nr.drawSpikelines){let at=I.find(ba=>ba.trace.subplot===Gr&&ba.index!==void 0&&ba.index!==!1&&ba.spikeDistance<=F);Nr.drawSpikelines(at,fe[Gr],B&&B[nr],U&&U[nr])}}}function Ke(nr,Gr,Nr){for(var at=null,ba=1/0,tn,Gt=0;Gt<nr.length;Gt++)m&&m._id!==nr[Gt].xa._id||b&&b._id!==nr[Gt].ya._id||(tn=nr[Gt].spikeDistance,Nr&&Gt===0&&(tn=-1/0),tn<=ba&&tn<=Gr&&(at=nr[Gt],ba=tn));return at}function er(nr){return nr?{xa:nr.xa,ya:nr.ya,x:nr.xSpike!==void 0?nr.xSpike:(nr.x0+nr.x1)/2,y:nr.ySpike!==void 0?nr.ySpike:(nr.y0+nr.y1)/2,distance:nr.distance,spikeDistance:nr.spikeDistance,curveNumber:nr.trace.index,color:nr.color,pointNumber:nr.index}:null}var De={fullLayout:o,container:o._hoverlayer,event:r},Ye=e._spikepoints,rr={vLinePoint:se.vLinePoint,hLinePoint:se.hLinePoint};e._spikepoints=rr;var te=function(){var nr=I.filter(function(Nr){return m&&m._id===Nr.xa._id&&b&&b._id===Nr.ya._id}),Gr=I.filter(function(Nr){return!(m&&m._id===Nr.xa._id&&b&&b._id===Nr.ya._id)});nr.sort(MD),Gr.sort(MD),I=nr.concat(Gr),I=N0e(I,h)};te();var pe=h.charAt(0);let Ve=nr=>nr&&["category","multicategory"].includes(nr.type),vr=pe==="x"?S:D,hr=pe==="x"?B:U;if(Fn.isXYhover(de)&&hr){let nr=I.filter(Gr=>{let Nr=Gr[pe+"a"],at=vr.indexOf(Nr);return!Ve(Nr)||at===-1?!0:Gr[pe+"LabelVal"]===Math.round(hr[at])});nr.length&&(I=nr)}var le=(pe==="x"||pe==="y")&&I[0]&&S0e[I[0].trace.type];if(c&&F!==0&&I.length!==0){var ge=I.filter(function(nr){return nr.ya.showspikes}),Ie=Ke(ge,F,le);se.hLinePoint=er(Ie);var Xe=I.filter(function(nr){return nr.xa.showspikes}),He=Ke(Xe,F,le);se.vLinePoint=er(He)}if(I.length===0){var Ze=Ep.unhoverRaw(e,r);if(c&&(se.hLinePoint!==null||se.vLinePoint!==null)&&SD(Ye)&&LD(e,se,De),o.hoveranywhere&&!a&&n){var Je=e._hoverdata;Je&&Je.length&&(e.emit("plotly_unhover",{event:r,points:Je}),e._hoverdata=[]),rn([]),e._hoverAnywhereActive=!0}return v&&Ue(),Ze}if(c&&SD(Ye)&&LD(e,se,De),v&&Ue(),Fn.isXYhover(de)&&I[0].length!==0&&I[0].trace.type!=="splom"){var mr=I[0];TD[mr.trace.type]?I=I.filter(nr=>nr.trace.index===mr.trace.index):I=[mr];var _r=I.length,Pe=DD("x",mr,o),$e=DD("y",mr,o);Se(Pe,$e);var Ee=[],tr={},pr=0,yr=function(nr){var Gr=TD[nr.trace.type]?PD(nr):nr.trace.index;if(!tr[Gr])pr++,tr[Gr]=pr,Ee.push(nr);else{var Nr=tr[Gr]-1,at=Ee[Nr];Nr>0&&Math.abs(nr.distance)<Math.abs(at.distance)&&(Ee[Nr]=nr)}},cr;for(cr=0;cr<_r;cr++)yr(I[cr]);for(cr=I.length-1;cr>_r-1;cr--)yr(I[cr]);var ae=mr[pe+"a"];if(ae&&(ae.type==="category"||ae.type==="multicategory")){var me=mr[pe+"LabelVal"];Ee=Ee.filter(function(nr){var Gr=nr[pe+"a"];return!Gr||Gr.type!=="category"&&Gr.type!=="multicategory"?!0:nr[pe+"LabelVal"]===me})}I=Ee,te()}var Re=e._hoverdata,Be=[],Kr=ND(e),dt=ID(e);for(let nr of I){var _t=Fn.makeEventData(nr,nr.trace,nr.cd);if(nr.hovertemplate!==!1){var zt=!1;nr.cd[nr.index]&&nr.cd[nr.index].ht&&(zt=nr.cd[nr.index].ht),nr.hovertemplate=zt||nr.trace.hovertemplate||!1}if(nr.xa&&nr.ya){var Bt=nr.x0+nr.xa._offset,Nt=nr.x1+nr.xa._offset,Da=nr.y0+nr.ya._offset,qt=nr.y1+nr.ya._offset,$t=Math.min(Bt,Nt),Ea=Math.max(Bt,Nt),Qa=Math.min(Da,qt),en=Math.max(Da,qt);_t.bbox={x0:$t+dt,x1:Ea+dt,y0:Qa+Kr,y1:en+Kr},_t.xPixel=(Bt+Nt)/2,_t.yPixel=(Da+qt)/2}nr.eventData=[_t],Be.push(_t)}e._hoverdata=Be;var Yt=h==="y"&&(Y.length>1||I.length>1)||h==="closest"&&Te&&I.length>1,ga=ca.combine(o.plot_bgcolor||ca.background,o.paper_bgcolor),ea=RD(I,{gd:e,hovermode:h,rotateLabels:Yt,bgColor:ga,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ra=ea.hoverLabels;if(Fn.isUnifiedHover(h)||(kD(ra,Yt,o,ea.commonLabelBoundingBox),Rp(ra,Yt,o._invScaleX,o._invScaleY),ea.mathjaxPromise&&ea.mathjaxPromise.then(function(){e._hoverdata===Be&&(kD(ra,Yt,o,ea.commonLabelBoundingBox),Rp(ra,Yt,o._invScaleX,o._invScaleY),ra.each(function(){var nr=ro.select(this);Pt.repositionMathGroup(nr.select("text.nums")),Pt.repositionMathGroup(nr.select("text.name"))}))})),n&&n.tagName){var Pa=vu.getComponentMethod("annotations","hasClickToShow")(e,Be);w0e(ro.select(n),Pa?"pointer":"")}var Ra=z0e(e,r,Re);if(!n||a||!Ra&&!o.hoveranywhere)return;Re&&Ra&&e.emit("plotly_unhover",{event:r,points:Re}),rn(e._hoverdata);function rn(nr){e.emit("plotly_hover",{event:r,points:nr,xaxes:S,yaxes:D,xvals:Fn.c2dApply(S,B),yvals:Fn.c2dApply(D,U),xPixel:r.pointerX,yPixel:r.pointerY})}}function PD(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 E0e=/<extra>([\s\S]*)<\/extra>/;function Tx(e,r){return Pp(e,Pt.getMathOrTextNode(r))}function RD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||du.HOVERFONT,v=r.fontSize||du.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,y=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,b=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],x=w.xa,M=w.ya,A=n.charAt(0),k=A+"Label",S=w[k];if(S===void 0&&x.type==="multicategory")for(var D=0;D<e.length&&(S=e[D][k],S===void 0);D++);var E=Pp(t,s),R=E.top,N=E.width,O=E.height,F=S!==void 0&&w.distance<=r.hoverdistance&&(n==="x"||n==="y");if(F){var I=!0,Y,B;for(Y=0;Y<e.length;Y++)if(I&&e[Y].zLabel===void 0&&(I=!1),B=e[Y].hoverinfo||e[Y].trace.hoverinfo,B){var U=Array.isArray(B)?B:B.split("+");if(U.indexOf("all")===-1&&U.indexOf(n)===-1){F=!1;break}}I&&(F=!1)}var X=o.selectAll("g.axistext").data(F?[0]:[]);X.enter().append("g").classed("axistext",!0),X.exit().remove();var W={minX:0,maxX:0,minY:0,maxY:0};if(X.each(function(){var le=ro.select(this),ge=Ht.ensureSingle(le,"path","",function(Ee){Ee.style({"stroke-width":"1px"})}),Ie=Ht.ensureSingle(le,"text",""),Xe=u.bgcolor||ca.defaultLine,He=u.bordercolor||ca.contrast(Xe),Ze=ca.contrast(Xe),Je=u.font,mr={weight:Je.weight||h,style:Je.style||p,variant:Je.variant||y,textcase:Je.textcase||m,lineposition:Je.lineposition||b,shadow:Je.shadow||_,family:Je.family||c,size:Je.size||v,color:Je.color||Ze};ge.style({fill:Xe,stroke:He});var _r=Pt.isPureTex(String(S)),Pe;_r&&f.push(new Promise(function(Ee){Pe=function(){if(!Ie.node().parentNode){Ee();return}$e(),Pt.repositionMathGroup(Ie),Ee()}})),Ie.text(S).call(Al.font,mr).attr("data-notex",_r?null:1).call(Pt.positionText,0,0).call(Pt.convertToTspans,t,Pe),$e();function $e(){le.attr("transform",""),Pt.positionText(Ie,0,0),Pt.repositionMathGroup(Ie);var Ee=Tx(t,Ie),tr,pr;if(n==="x"){var yr=x.side==="top"?"-":"";Ie.attr("text-anchor","middle").call(Pt.positionText,0,x.side==="top"?R-Ee.bottom-Lt-Wr:R-Ee.top+Lt+Wr),tr=x._offset+(w.x0+w.x1)/2,pr=M._offset+(x.side==="top"?0:M._length);var cr=Ee.width/2+Wr,ae=tr;tr<cr?ae=cr:tr>a.width-cr&&(ae=a.width-cr),ge.attr("d","M"+(tr-ae)+",0L"+(tr-ae+Lt)+","+yr+Lt+"H"+cr+"v"+yr+(Wr*2+Ee.height)+"H"+-cr+"V"+yr+Lt+"H"+(tr-ae-Lt)+"Z"),tr=ae,W.minX=tr-cr,W.maxX=tr+cr,x.side==="top"?(W.minY=pr-(Wr*2+Ee.height),W.maxY=pr-Wr):(W.minY=pr+Wr,W.maxY=pr+(Wr*2+Ee.height))}else{var me,Re,Be;M.side==="right"?(me="start",Re=1,Be="",tr=x._offset+x._length):(me="end",Re=-1,Be="-",tr=x._offset),pr=M._offset+(w.y0+w.y1)/2,Ie.attr("text-anchor",me),ge.attr("d","M0,0L"+Be+Lt+","+Lt+"V"+(Wr+Ee.height/2)+"h"+Be+(Wr*2+Ee.width)+"V-"+(Wr+Ee.height/2)+"H"+Be+Lt+"V-"+Lt+"Z"),W.minY=pr-(Wr+Ee.height/2),W.maxY=pr+(Wr+Ee.height/2),M.side==="right"?(W.minX=tr+Lt,W.maxX=tr+Lt+(Wr*2+Ee.width)):(W.minX=tr-Lt-(Wr*2+Ee.width),W.maxX=tr-Lt);var Kr=Ee.height/2,dt=R-Ee.top-Kr,_t="clip"+a._uid+"commonlabel"+M._id,zt;if(tr<Ee.width+2*Wr+Lt){zt="M-"+(Lt+Wr)+"-"+Kr+"h-"+(Ee.width-Wr)+"V"+Kr+"h"+(Ee.width-Wr)+"Z";var Bt=Ee.width-tr+Wr;Pt.positionText(Ie,Bt,dt),me==="end"&&Ie.selectAll("tspan").each(function(){var Da=ro.select(this),qt=Al.tester.append("text").text(Da.text()).call(Al.font,mr),$t=Pp(t,qt.node());Math.round($t.width)<Math.round(Ee.width)&&Da.attr("x",Bt-$t.width),qt.remove()})}else Pt.positionText(Ie,Re*(Wr+Lt),dt),zt=null;var Nt=a._topclips.selectAll("#"+_t).data(zt?[0]:[]);Nt.enter().append("clipPath").attr("id",_t).append("path"),Nt.exit().remove(),Nt.select("path").attr("d",zt),Al.setClipUrl(Ie,zt?_t:null,t)}le.attr("transform",wx(tr,pr))}}),Fn.isUnifiedHover(n)){o.selectAll("g.hovertext").remove();let le=e.filter(ge=>ge.hoverinfo!=="none");if(le.length===0)return[];var V=a.hoverlabel,J=V.font,re=le[0],ne=((n==="x unified"?re.xa:re.ya).unifiedhovertitle||{}).text,de=ne?Ht.hovertemplateString({data:n==="x unified"?[{xa:re.xa,x:re.xVal}]:[{ya:re.ya,y:re.yVal}],fallback:re.trace.hovertemplatefallback,locale:a._d3locale,template:ne}):S,K={showlegend:!0,legend:{title:{text:de,font:J},font:J,bgcolor:V.bgcolor,bordercolor:V.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ye={font:J};M0e(K,ye,t._fullData);var oe=ye.legend;oe.entries=[];for(var Ce=0;Ce<le.length;Ce++){var se=le[Ce];if(se.hoverinfo!=="none"){var fe=AD(se,!0,n,a,S),Te=fe[0],Fe=fe[1];se.name=Fe,Fe!==""?se.text=Fe+" : "+Te:se.text=Te;var be=se.cd[se.index];be&&(be.mc&&(se.mc=be.mc),be.mcc&&(se.mc=be.mcc),be.mlc&&(se.mlc=be.mlc),be.mlcc&&(se.mlc=be.mlcc),be.mlw&&(se.mlw=be.mlw),be.mrc&&(se.mrc=be.mrc),be.dir&&(se.dir=be.dir)),se._distinct=!0,oe.entries.push([se])}}oe.entries.sort(function(ge,Ie){var Xe=a.hoversort;if(Xe==="value descending"||Xe==="value ascending"){var He=n.charAt(0)==="x"?"y":"x",Ze=ge[0][He+"LabelVal"],Je=Ie[0][He+"LabelVal"];if(Ze!==Je)return Xe==="value descending"?Je-Ze:Ze-Je}return ge[0].trace.index-Ie[0].trace.index}),oe.layer=o,oe._inHover=!0,oe._groupTitleFont=V.grouptitlefont,A0e(t,oe);var Me=o.select("g.legend"),Ae=Pp(t,Me.node()),Le=Ae.width+2*Wr,ke=Ae.height+2*Wr,ze=le[0],Se=(ze.x0+ze.x1)/2,Ue=(ze.y0+ze.y1)/2,Ke=!(vu.traceIs(ze.trace,"bar-like")||vu.traceIs(ze.trace,"box-violin")),er,De;A==="y"?Ke?(De=Ue-Wr,er=Ue+Wr):(De=Math.min.apply(null,le.map(function(ge){return Math.min(ge.y0,ge.y1)})),er=Math.max.apply(null,le.map(function(ge){return Math.max(ge.y0,ge.y1)}))):De=er=Ht.mean(le.map(function(ge){return(ge.y0+ge.y1)/2}))-ke/2;var Ye,rr;A==="x"?Ke?(Ye=Se+Wr,rr=Se-Wr):(Ye=Math.max.apply(null,le.map(function(ge){return Math.max(ge.x0,ge.x1)})),rr=Math.min.apply(null,le.map(function(ge){return Math.min(ge.x0,ge.x1)}))):Ye=rr=Ht.mean(le.map(function(ge){return(ge.x0+ge.x1)/2}))-Le/2;var te=x._offset,pe=M._offset;er+=pe,Ye+=te,rr+=te-Le,De+=pe-ke;var Ve,vr;return Ye+Le<N&&Ye>=0?Ve=Ye:rr+Le<N&&rr>=0?Ve=rr:te+Le<N?Ve=te:Ye-Se<Se-rr+Le?Ve=N-Le:Ve=0,Ve+=Wr,er+ke<O&&er>=0?vr=er:De+ke<O&&De>=0?vr=De:pe+ke<O?vr=pe:er-Ue<Ue-De+ke?vr=O-ke:vr=0,vr+=Wr,Me.attr("transform",wx(Ve-1,vr-1)),Me}var hr=o.selectAll("g.hovertext").data(e,function(le){return PD(le)});return hr.enter().append("g").classed("hovertext",!0).each(function(){var le=ro.select(this);le.append("rect").call(ca.fill,ca.addOpacity(l,.8)),le.append("text").classed("name",!0),le.append("path").style("stroke-width","1px"),le.append("text").classed("nums",!0).call(Al.font,{weight:h,style:p,variant:y,textcase:m,lineposition:b,shadow:_,family:c,size:v})}),hr.exit().remove(),hr.each(function(le){var ge=ro.select(this).attr("transform",""),Ie=le.color;Array.isArray(Ie)&&(Ie=Ie[le.eventData[0].pointNumber]);var Xe=le.bgcolor||Ie,He=ca.combine(ca.opacity(Xe)?Xe:ca.defaultLine,l),Ze=ca.combine(ca.opacity(Ie)?Ie:ca.defaultLine,l),Je=le.borderColor||ca.contrast(He),mr=AD(le,F,n,a,S,ge),_r=mr[0],Pe=mr[1],$e=!!(Pe&&Pe!==_r),Ee=Pt.isPureTex(_r),tr=$e&&Pt.isPureTex(Pe),pr=(Ee?1:0)+(tr?1:0),yr;pr&&f.push(new Promise(function(Re){yr=function(){--pr===0&&(ge.node().parentNode&&me(),Re())}}));var cr=ge.select("text.nums").call(Al.font,{family:le.fontFamily||c,size:le.fontSize||v,color:le.fontColor||Je,weight:le.fontWeight||h,style:le.fontStyle||p,variant:le.fontVariant||y,textcase:le.fontTextcase||m,lineposition:le.fontLineposition||b,shadow:le.fontShadow||_}).text(_r).attr("data-notex",Ee?null:1).call(Pt.positionText,0,0).call(Pt.convertToTspans,t,Ee?yr:void 0),ae=ge.select("text.name");$e?ae.call(Al.font,{family:le.fontFamily||c,size:le.fontSize||v,color:Ze,weight:le.fontWeight||h,style:le.fontStyle||p,variant:le.fontVariant||y,textcase:le.fontTextcase||m,lineposition:le.fontLineposition||b,shadow:le.fontShadow||_}).text(Pe).attr("data-notex",tr?null:1).call(Pt.positionText,0,0).call(Pt.convertToTspans,t,tr?yr:void 0):(ae.remove(),ge.select("rect").remove()),me();function me(){ge.attr("transform",""),cr.call(Pt.positionText,0,0),Pt.repositionMathGroup(cr),$e&&(ae.call(Pt.positionText,0,0),Pt.repositionMathGroup(ae)),ge.select("path").style({fill:He,stroke:Je});var Re=le.xa._offset+(le.x0+le.x1)/2,Be=le.ya._offset+(le.y0+le.y1)/2,Kr=Math.abs(le.x1-le.x0),dt=Math.abs(le.y1-le.y0),_t=0,zt=0;if($e){var Bt=Tx(t,ae);_t=Bt.width+2*Wr,zt=Bt.height+2*Wr}var Nt=Tx(t,cr),Da=Nt.width/a._invScaleX,qt=Nt.height/a._invScaleY;le.ty0=(R-Nt.top)/a._invScaleY,le.bx=Da+2*Wr,le.by=Math.max(qt+2*Wr,zt),le.anchor="start",le.txwidth=Da,le.tx2width=_t,le.offset=0;var $t=(Da+Lt+Wr+_t)*a._invScaleX,Ea,Qa;if(i)le.pos=Re,Ea=Be+dt/2+$t<=O,Qa=Be-dt/2-$t>=0,(le.idealAlign==="top"||!Ea)&&Qa?(Be-=dt/2,le.anchor="end"):Ea?(Be+=dt/2,le.anchor="start"):le.anchor="middle",le.crossPos=Be;else{if(le.pos=Be,Ea=Re+Kr/2+$t<=N,Qa=Re-Kr/2-$t>=0,(le.idealAlign==="left"||!Ea)&&Qa)Re-=Kr/2,le.anchor="end";else if(Ea)Re+=Kr/2,le.anchor="start";else{le.anchor="middle";var en=$t/2,Yt=Re+en-N,ga=Re-en;Yt>0&&(Re-=Yt),ga<0&&(Re+=-ga)}le.crossPos=Re}cr.attr("text-anchor",le.anchor),_t&&ae.attr("text-anchor",le.anchor),ge.attr("transform",wx(Re,Be)+(i?x0e(ED):""))}}),{hoverLabels:hr,commonLabelBoundingBox:W,mathjaxPromise:f.length?Promise.all(f):null}}function AD(e,r,t,a,n,i){var c,v;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ht.templateString(e.name,e.trace._meta)),l=qD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"<br>":"")+e.text),e.extraText!==void 0&&(o+=(o?"<br>":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.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"]),o=Ht.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(E0e,(p,y)=>(l=qD(y,e.nameLength),""))}return[o,l]}function kD(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,h=a.minY,p=a.maxY,y=function(Y){return Y*t._invScaleX},m=function(Y){return Y*t._invScaleY};e.each(function(Y){var B=Y[n],U=Y[i],X=B._id.charAt(0)==="x",W=B.range;f===0&&W&&W[0]>W[1]!==X&&(o=-1);var V=0,J=X?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var re=zD(Y,r),ne=Y.anchor,de=ne==="end"?-1:1,K,ye;if(ne==="middle")K=Y.crossPos+(X?m(re.y-Y.by/2):y(Y.bx/2+Y.tx2width/2)),ye=K+(X?m(Y.by):y(Y.bx));else if(X)K=Y.crossPos+m(Lt+re.y)-m(Y.by/2-Lt),ye=K+m(Y.by);else{var oe=y(de*Lt+re.x),Ce=oe+y(de*Y.bx);K=Y.crossPos+Math.min(oe,Ce),ye=Y.crossPos+Math.max(oe,Ce)}X?h!==void 0&&p!==void 0&&Math.min(ye,p)-Math.max(K,h)>1&&(U.side==="left"?(V=U._mainLinePosition,J=t.width):J=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ye,v)-Math.max(K,c)>1&&(U.side==="top"?(V=U._mainLinePosition,J=t.height):J=U._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(X?k0e:1)/2,pmin:V,pmax:J}]}),u.sort(function(Y,B){return Y[0].posref-B[0].posref||o*(B[0].traceIndex-Y[0].traceIndex)});var b,_,w,x,M,A,k;function S(Y){var B=Y[0],U=Y[Y.length-1];if(_=B.pmin-B.pos-B.dp+B.size,w=U.pos+U.dp+U.size-B.pmax,_>.01){for(M=Y.length-1;M>=0;M--)Y[M].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(M=Y.length-1;M>=0;M--)Y[M].dp-=w;b=!1}if(b){var X=0;for(x=0;x<Y.length;x++)A=Y[x],A.pos+A.dp+A.size>B.pmax&&X++;for(x=Y.length-1;x>=0&&!(X<=0);x--)A=Y[x],A.pos>B.pmax-1&&(A.del=!0,X--);for(x=0;x<Y.length&&!(X<=0);x++)if(A=Y[x],A.pos<B.pmin+1)for(A.del=!0,X--,w=A.size*2,M=Y.length-1;M>=0;M--)Y[M].dp-=w;for(x=Y.length-1;x>=0&&!(X<=0);x--)A=Y[x],A.pos+A.dp+A.size>B.pmax&&(A.del=!0,X--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x<u.length-1;){var D=u[x],E=u[x+1],R=D[D.length-1],N=E[0];if(_=R.pos+R.dp+R.size-N.pos-N.dp+N.size,_>.01){for(M=E.length-1;M>=0;M--)E[M].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),k=0,M=D.length-1;M>=0;M--)k+=D[M].dp;for(w=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var O=u[x];for(M=O.length-1;M>=0;M--){var F=O[M],I=F.datum;I.offset=F.dp,I.del=F.del}}}function zD(e,r){var t=0,a=e.offset;return r&&(a*=-L0e,t=e.offset*C0e),{x:t,y:a}}function P0e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Lt+Wr),a=t+r*(e.txwidth+Wr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Wr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Rp(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=ro.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=P0e(l),v=zD(l,r),h=v.x,p=v.y,y=u==="middle",m="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":m?b="M0,0L"+n(f*Lt+h)+","+i(Lt+p)+"v"+i(l.by/2-Lt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*Lt+h)+"V"+i(p-Lt)+"Z":b="M"+n(f*Lt+h)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=h+c.textShiftX,w=p+l.ty0-l.by/2+Wr,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=y?-l.bx/2-l.tx2width/2+Wr:-l.bx-Wr):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=y?l.bx/2-l.tx2width/2-Wr:l.bx+Wr)),s.call(Pt.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Pt.positionText,n(c.text2ShiftX+c.alignShift*Wr+h),i(p+l.ty0-l.by/2+Wr)),o.select("rect").call(Al.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function R0e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(v){return v||eo(v)&&v===0}var o=Array.isArray(t)?function(v,h){var p=Ht.castOption(n,t,v);return l(p)?p:Ht.extractOption({},a,"",h)}:function(v,h){return Ht.extractOption(i,a,v,h)};function s(v,h,p){var y=o(h,p);l(y)&&(e[v]=y)}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=Ht.constrain(e.x0,0,e.xa._length),e.x1=Ht.constrain(e.x1,0,e.xa._length),e.y0=Ht.constrain(e.y0,0,e.ya._length),e.y1=Ht.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ji.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:Ji.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=Ji.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ji.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=Ji.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ji.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 CD(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let l of r._counterAxes||[]){let o=Ji.getFromId(e,l);if(!o)continue;let s=o._padStart||0,u=o._padEnd||0;a?(n=Math.min(n,t.l+o.domain[0]*t.w+s),i=Math.max(i,t.l+o.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-o.domain[1])*t.h+s),i=Math.max(i,t.t+(1-o.domain[0])*t.h-u))}if(r.anchor==="free"){let l=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,l),i=Math.max(i,l)}return[n,i]}function LD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=ca.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var v=r.hLinePoint,h,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(h=l.pointerX,p=l.pointerY):(h=u._offset+v.x,p=f._offset+v.y);var m=ca.wcagContrast(v.color,c)<1.5?ca.contrast(c):v.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||m,x=Ji.getPxPosition(e,f),M,A;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=x,A=h),b.indexOf("across")!==-1){let U=CD(e,f,i);M=U[0],A=U[1]}a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Al.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var k=r.vLinePoint,S,D;u=k&&k.xa,f=k&&k.ya;var E=u.spikesnap;E==="cursor"?(S=l.pointerX,D=l.pointerY):(S=u._offset+k.x,D=f._offset+k.y);var R=ca.wcagContrast(k.color,c)<1.5?ca.contrast(c):k.color,N=u.spikemode,O=u.spikethickness,F=u.spikecolor||R,I=Ji.getPxPosition(e,u),Y,B;if(N.indexOf("toaxis")!==-1||N.indexOf("across")!==-1){if(N.indexOf("toaxis")!==-1&&(Y=I,B=D),N.indexOf("across")!==-1){let U=CD(e,u,i);Y=U[0],B=U[1]}a.insert("line",":first-child").attr({x1:S,x2:S,y1:Y,y2:B,"stroke-width":O,stroke:F,"stroke-dasharray":Al.dashStyle(u.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:S,x2:S,y1:Y,y2:B,"stroke-width":O+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}N.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:S,cy:I-(u.side!=="top"?O:-O),r:O,fill:F}).classed("spikeline",!0)}}}function z0e(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 SD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function qD(e,r){return Pt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function N0e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l<e.length;l++){var o=e[l];vu.traceIs(o.trace,"bar-like")||vu.traceIs(o.trace,"box-violin")?i.push(o):o.trace[t+"period"]?n.push(o):a.push(o)}return a.concat(n).concat(i)}function DD(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 l=r.trace[e+"periodalignment"];if(l){var o=r.cd[r.index],s=o[e+"Start"];s===void 0&&(s=o[e]);var u=o[e+"End"];u===void 0&&(u=o[e]);var f=u-s;l==="end"?n+=f:l==="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 ND=e=>e.offsetTop+e.clientTop,ID=e=>e.offsetLeft+e.clientLeft;function Pp(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Ht.apply3DTransform(t._invTransform)(n,i),u=Ht.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],v=u[0],h=u[1];return{x:f,y:c,width:v-f,height:h-c,top:Math.min(c,h),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,h)}}});var zp=G((nke,FD)=>{"use strict";var I0e=qe(),F0e=kr(),H0e=Wi().isUnifiedHover;FD.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&H0e(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=F0e.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),I0e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var OD=G((ike,HD)=>{"use strict";var O0e=qe(),B0e=zp(),Y0e=hf();HD.exports=function(r,t){function a(n,i){return O0e.coerce(r,t,Y0e,n,i)}B0e(r,t,a)}});var GD=G((lke,YD)=>{"use strict";var BD=qe(),G0e=S0(),U0e=zp();YD.exports=function(r,t,a,n){function i(o,s){return BD.coerce(r,t,G0e,o,s)}var l=BD.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),U0e(r,t,i,l)}});var Cx=G((oke,UD)=>{"use strict";var V0e=qe(),X0e=hf();UD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:V0e.coerce(r,t,X0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var WD=G((ske,XD)=>{"use strict";var VD=qe(),W0e=hf(),Z0e=Cx(),$0e=zp();XD.exports=function(r,t){function a(u,f){return VD.coerce(r,t,W0e,u,f)}var n=Z0e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),$0e(r,t,a),VD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var JD=G((uke,$D)=>{"use strict";var Lx=qe(),ZD=Ar();$D.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Lx.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var l=t[i],o=l[0].trace;if(!ZD.traceIs(o,"pie-like")){var s=ZD.traceIs(o,"2dMap")?J0e:Lx.fillArray;s(o.hoverinfo,l,"hi",n(o)),o.hovertemplate&&s(o.hovertemplate,l,"ht"),o.hoverlabel&&(s(o.hoverlabel.bgcolor,l,"hbg"),s(o.hoverlabel.bordercolor,l,"hbc"),s(o.hoverlabel.font.size,l,"hts"),s(o.hoverlabel.font.color,l,"htc"),s(o.hoverlabel.font.family,l,"htf"),s(o.hoverlabel.font.weight,l,"htw"),s(o.hoverlabel.font.style,l,"hty"),s(o.hoverlabel.font.variant,l,"htv"),s(o.hoverlabel.namelength,l,"hnl"),s(o.hoverlabel.align,l,"hta"),s(o.hoverlabel.showarrow,l,"htsa"))}}};function J0e(e,r,t,a){a=a||Lx.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var QD=G((fke,jD)=>{"use strict";var K0e=Ar(),KD=Wi(),j0e=kx().hover;jD.exports=function(r,t,a){var n=K0e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&j0e(r,t,a,!0);function l(){var s,u,f,c,v,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&KD.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&KD.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var bi=G((cke,tE)=>{"use strict";var Q0e=Er(),Np=qe(),eve=$i(),Av=Wi(),eE=hf(),rE=kx();tE.exports={moduleType:"component",name:"fx",constants:(k0(),Ne(A0)),schema:{layout:eE},attributes:S0(),layoutAttributes:eE,supplyLayoutGlobalDefaults:OD(),supplyDefaults:GD(),supplyLayoutDefaults:WD(),calc:JD(),getDistanceFunction:Av.getDistanceFunction,getClosest:Av.getClosest,inbox:Av.inbox,quadrature:Av.quadrature,appendArrayPointValue:Av.appendArrayPointValue,castHoverOption:tve,castHoverinfo:ave,hover:rE.hover,unhover:eve.unhover,loneHover:rE.loneHover,loneUnhover:rve,click:QD()};function rve(e){var r=Np.isD3Selection(e)?e:Q0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function tve(e,r,t){return Np.castOption(e,r,"hoverlabel."+t)}function ave(e,r,t){function a(n){return Np.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Np.castOption(e,t,"hoverinfo",a)}});var nc=G(to=>{"use strict";to.selectMode=function(e){return e==="lasso"||e==="select"};to.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};to.openMode=function(e){return e==="drawline"||e==="drawopenpath"};to.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};to.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};to.selectingOrDrawing=function(e){return to.freeMode(e)||to.rectMode(e)}});var Ip=G((dke,aE)=>{"use strict";aE.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 Fp=G((hke,nE)=>{"use strict";nE.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 Hp={};ht(Hp,{CIRCLE_SIDES:()=>nve,SQRT2:()=>cve,cos45:()=>uve,i000:()=>ive,i090:()=>lve,i180:()=>ove,i270:()=>sve,sin45:()=>fve});var nve,ive,lve,ove,sve,uve,fve,cve,Op=lt(()=>{"use strict";nve=32,ive=0,lve=8,ove=16,sve=24,uve=Math.cos(Math.PI/4),fve=Math.sin(Math.PI/4),cve=Math.sqrt(2)});var Bp=G((pke,lE)=>{"use strict";var vve=qe().strTranslate;function iE(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 dve(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 hve(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return iE(e,t[r])}}function pve(e){return vve(e.xaxis._offset,e.yaxis._offset)}lE.exports={p2r:iE,r2p:dve,axValue:hve,getTransform:pve}});var Wo=G(ao=>{"use strict";var mve=hb(),uE=(Op(),Ne(Hp)),ic=uE.CIRCLE_SIDES,Sx=uE.SQRT2,fE=Bp(),oE=fE.p2r,sE=fE.r2p,yve=[0,3,4,5,6,1,2],gve=[0,3,4,1,2];ao.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 l=e[a][i][0];if(l==="Z")t+="Z";else for(var o=e[a][i].length,s=0;s<o;s++){var u=s;l==="Q"||l==="S"?u=gve[s]:l==="C"&&(u=yve[s]),t+=e[a][i][u],s>0&&s<o-1&&(t+=",")}}return t};ao.readPaths=function(e,r,t,a){var n=mve(e),i=[],l=-1,o=function(){l++,i[l]=[]},s,u=0,f=0,c,v,h=function(){c=u,v=f};h();for(var p=0;p<n.length;p++){var y=[],m,b,_,w,x=n[p][0],M=x;switch(x){case"M":o(),u=+n[p][1],f=+n[p][2],y.push([M,u,f]),h();break;case"Q":case"S":m=+n[p][1],_=+n[p][2],u=+n[p][3],f=+n[p][4],y.push([M,u,f,m,_]);break;case"C":m=+n[p][1],_=+n[p][2],b=+n[p][3],w=+n[p][4],u=+n[p][5],f=+n[p][6],y.push([M,u,f,m,_,b,w]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],y.push([M,u,f]);break;case"H":M="L",u=+n[p][1],y.push([M,u,f]);break;case"V":M="L",f=+n[p][1],y.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 S=u-A,D=f;for(s=1;s<=ic/2;s++){var E=2*Math.PI*s/ic;y.push([M,S+A*Math.cos(E),D+k*Math.sin(E)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,y.push([M,u,f]));break}for(var R=(t||{}).domain,N=r._fullLayout._size,O=t&&t.xsizemode==="pixel",F=t&&t.ysizemode==="pixel",I=a===!1,Y=0;Y<y.length;Y++){for(s=0;s+2<7;s+=2){var B=y[Y][s+1],U=y[Y][s+2];B===void 0||U===void 0||(u=B,f=U,t&&(t.xaxis&&t.xaxis.p2r?(I&&(B-=t.xaxis._offset),O?B=sE(t.xaxis,t.xanchor)+B:B=oE(t.xaxis,B)):(I&&(B-=N.l),R?B=R.x[0]+B/N.w:B=B/N.w),t.yaxis&&t.yaxis.p2r?(I&&(U-=t.yaxis._offset),F?U=sE(t.yaxis,t.yanchor)-U:U=oE(t.yaxis,U)):(I&&(U-=N.t),R?U=R.y[1]-U/N.h:U=1-U/N.h)),y[Y][s+1]=B,y[Y][s+2]=U)}i[l].push(y[Y].slice())}}return i};function kv(e,r){return Math.abs(e-r)<=1e-6}function Yp(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}ao.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(!kv(a,n))return!1;var i=e[0][t]-e[3][t],l=e[1][t]-e[2][t];if(!kv(i,l))return!1}return!kv(e[0][1],e[1][1])&&!kv(e[0][1],e[3][1])?!1:!!(Yp(e[0],e[1])*Yp(e[0],e[3]))};ao.pointsOnEllipse=function(e){var r=e.length;if(r!==ic+1)return!1;r=ic;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!kv(Yp(e[t],e[i]),Yp(e[a],e[n])))return!1}return!0};ao.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=ao.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,l=(a.x1-a.x0)/2,o=(a.y1-a.y0)/2;l||(l=o=o/Sx),o||(o=l=l/Sx);for(var s=[],u=0;u<ic;u++){var f=u*2*Math.PI/ic;s.push([n+l*Math.cos(f),i+o*Math.sin(f)])}return s};ao.ellipseOver=function(e){var r=e.x0,t=e.y0,a=e.x1,n=e.y1,i=a-r,l=n-t;r-=i,t-=l;var o=(r+a)/2,s=(t+n)/2,u=Sx;return i*=u,l*=u,{x0:o-i,y0:s-l,x1:o+i,y1:s+l}};ao.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 l=0;l<e[i].length;l++)for(var o=0;o+2<e[i][l].length;o+=2)a&&(e[i][l][o+1]=e[i][l][o+1].replace(" ","_")),n&&(e[i][l][o+2]=e[i][l][o+2].replace(" ","_"));return e}});var Vp=G((yke,bE)=>{"use strict";var cE=fa(),mE=nc(),bve=mE.drawMode,xve=mE.openMode,lc=(Op(),Ne(Hp)),vE=lc.i000,dE=lc.i090,hE=lc.i180,pE=lc.i270,_ve=lc.cos45,wve=lc.sin45,yE=Bp(),Gp=yE.p2r,Zo=yE.r2p,Tve=Io(),Mve=Tve.clearOutline,Up=Wo(),Ave=Up.readPaths,kve=Up.writePaths,Cve=Up.ellipseOver,Lve=Up.fixDatesForPaths;function Sve(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!bve(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o<l.length)switch(a._fullLayout.shapes[o].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=l[o].path||"";s[s.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var u=gE(e,r,i);Mve(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,v=[],h=0;h<l.length;h++){var p=a._fullLayout.shapes[h];if(v[h]=p._input,n!==void 0&&h===a._fullLayout._activeShapeIndex){var y=u;switch(p.type){case"line":case"rect":case"circle":var m=cE.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&m.type.includes("category")?(c("x0",y.x0-(p.x0shift||0)),c("x1",y.x1-(p.x1shift||0))):(c("x0",y.x0),c("x1",y.x1));var b=cE.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",y.y0-(p.y0shift||0)),c("y1",y.y1-(p.y1shift||0))):(c("y0",y.y0),c("y1",y.y1));break;case"path":c("path",y.path);break}}}return n===void 0?(v.push(u),v):f?f.getUpdateObj():{}}}}function gE(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),l=n._fullLayout.newshape,o=r.plotinfo,s=r.isActiveShape,u=o.xaxis,f=o.yaxis,c=!!o.domain||!o.xaxis,v=!!o.domain||!o.yaxis,h=xve(t),p=Ave(i,n,o,s),y={editable:!0,visible:l.visible,name:l.name,showlegend:l.showlegend,legend:l.legend,legendwidth:l.legendwidth,legendgroup:l.legendgroup,legendgrouptitle:{text:l.legendgrouptitle.text,font:l.legendgrouptitle.font},legendrank:l.legendrank,label:l.label,xref:c?"paper":u._id,yref:v?"paper":f._id,layer:l.layer,opacity:l.opacity,line:{color:l.line.color,width:l.line.width,dash:l.line.dash}};h||(y.fillcolor=l.fillcolor,y.fillrule=l.fillrule);var m;if(p.length===1&&(m=p[0]),m&&m.length===5&&t==="drawrect")y.type="rect",y.x0=m[0][1],y.y0=m[0][2],y.x1=m[2][1],y.y1=m[2][2];else if(m&&t==="drawline")y.type="line",y.x0=m[0][1],y.y0=m[0][2],y.x1=m[1][1],y.y1=m[1][2];else if(m&&t==="drawcircle"){y.type="circle";var b=m[vE][1],_=m[dE][1],w=m[hE][1],x=m[pE][1],M=m[vE][2],A=m[dE][2],k=m[hE][2],S=m[pE][2],D=o.xaxis&&(o.xaxis.type==="date"||o.xaxis.type==="log"),E=o.yaxis&&(o.yaxis.type==="date"||o.yaxis.type==="log");D&&(b=Zo(o.xaxis,b),_=Zo(o.xaxis,_),w=Zo(o.xaxis,w),x=Zo(o.xaxis,x)),E&&(M=Zo(o.yaxis,M),A=Zo(o.yaxis,A),k=Zo(o.yaxis,k),S=Zo(o.yaxis,S));var R=(_+x)/2,N=(M+k)/2,O=(x-_+w-b)/2,F=(S-A+k-M)/2,I=Cve({x0:R,y0:N,x1:R+O*_ve,y1:N+F*wve});D&&(I.x0=Gp(o.xaxis,I.x0),I.x1=Gp(o.xaxis,I.x1)),E&&(I.y0=Gp(o.yaxis,I.y0),I.y1=Gp(o.yaxis,I.y1)),y.x0=I.x0,y.y0=I.y0,y.x1=I.x1,y.y1=I.y1}else y.type="path",u&&f&&Lve(p,u,f),y.path=kve(p),m=null;return y}bE.exports={newShapes:Sve,createShapeObj:gE}});var Dx=G((gke,xE)=>{"use strict";var qve=nc(),Dve=qve.selectMode,Eve=Io(),Pve=Eve.clearOutline,qx=Wo(),Rve=qx.readPaths,zve=qx.writePaths,Nve=qx.fixDatesForPaths;xE.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!Dve(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h<v.length)switch(i._fullLayout.selections[h].type){case"rect":c="select";break;case"path":c="lasso";break}}var p=Rve(n,i,o,f),y={xref:s._id,yref:u._id,opacity:l.opacity,line:{color:l.line.color,width:l.line.width,dash:l.line.dash}},m;p.length===1&&(m=p[0]),m&&m.length===5&&c==="select"?(y.type="rect",y.x0=m[0][1],y.y0=m[0][2],y.x1=m[2][1],y.y1=m[2][2]):(y.type="path",s&&u&&Nve(p,s,u),y.path=zve(p),m=null),Pve(i);for(var b=t.editHelpers,_=(b||{}).modifyItem,w=[],x=0;x<v.length;x++){var M=i._fullLayout.selections[x];if(!M){w[x]=M;continue}if(w[x]=M._input,f!==void 0&&x===i._fullLayout._activeSelectionIndex){var A=y;switch(M.type){case"rect":_("x0",A.x0),_("x1",A.x1),_("y0",A.y0),_("y1",A.y1);break;case"path":_("path",A.path);break}}}return f===void 0?(w.push(y),w):b?b.getUpdateObj():{}}}}});var Cv={};ht(Cv,{numParams:()=>Bve,paramIsX:()=>Hve,paramIsY:()=>Ove,paramRE:()=>Fve,segmentRE:()=>Ive});var Ive,Fve,Hve,Ove,Bve,Lv=lt(()=>{"use strict";Ive=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Fve=/[^\s,]+/g,Hve={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:{}},Ove={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:{}},Bve={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Jo=G(Na=>{"use strict";var Cl=(Lv(),Ne(Cv)),_E=qe(),$o=Qr();Na.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Na.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Na.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Na.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Na.extractPathCoords=function(e,r,t){var a=[],n=e.match(Cl.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Cl.paramRE);if(!(!o||o.length<l)){var s=o[l],u=t?s:_E.cleanNumber(s);a.push(u)}}}),a};Na.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Cl.segmentRE);if(!a)return 0;let n=t==="x"?Cl.paramIsX:Cl.paramIsY;return a.reduce((i,l)=>{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};Na.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=Na.shapePositionToRange(r);l=function(s){var u=kl(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=Na.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};Na.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=Na.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};Na.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Na.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}};Na.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}};Na.getPathString=function(e,r){let t=r.type,a=$o.getRefType(r.xref),n=$o.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,v,h,p,y,m,b;function _(E,R,N,O){var F;if(E)if(R==="domain")O?F=function(I){return E._offset+E._length*(1-I)}:F=function(I){return E._offset+E._length*I};else{let I=Na.shapePositionToRange(E);F=function(Y){return E._offset+E.r2p(I(Y,!0))},N==="path"&&E.type==="date"&&(F=Na.decodeDate(F))}else O?F=function(I){return i.t+i.h*(1-I)}:F=function(I){return i.l+i.w*I};return F}if(a==="array"?(v=[],l=r.xref.map(function(E){return $o.getFromId(e,E)}),v=r.xref.map(function(E,R){return _(l[R],$o.getRefType(E),t,!1)})):(l=$o.getFromId(e,r.xref),v=_(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(E){return $o.getFromId(e,E)}),h=r.yref.map(function(E,R){return _(o[R],$o.getRefType(E),t,!0)})):(o=$o.getFromId(e,r.yref),h=_(o,n,t,!0)),t==="path")return Yve(r,v,h);if(a==="array")s=kl(l[0],r.x0shift),u=kl(l[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=kl(l,r.x0shift),u=kl(l,r.x1shift),r.xsizemode==="pixel"){let E=v(r.xanchor);p=E+r.x0+s,y=E+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=kl(o[0],r.y0shift),c=kl(o[1],r.y1shift),m=h[0](r.y0)+f,b=h[1](r.y1)+c;else if(f=kl(o,r.y0shift),c=kl(o,r.y1shift),r.ysizemode==="pixel"){let E=h(r.yanchor);m=E-r.y0+f,b=E-r.y1+c}else m=h(r.y0)+f,b=h(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+b;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+b+"H"+p+"Z";var w=(p+y)/2,x=(m+b)/2,M=Math.abs(w-p),A=Math.abs(x-m),k="A"+M+","+A,S=w+M+","+x,D=w+","+(x-A);return"M"+S+k+" 0 1,1 "+D+k+" 0 0,1 "+S+"Z"};function Yve(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Cl.segmentRE,function(v){var h=0,p=v.charAt(0),y=Cl.paramIsX[p],m=Cl.paramIsY[p],b=Cl.numParams[p];let _=y.drawn!==void 0,w=m.drawn!==void 0,x=s?r[f]:r,M=u?t[c]:t;var A=v.slice(1).replace(Cl.paramRE,function(k){return y[h]?n==="pixel"?k=x(l)+Number(k):k=x(k):m[h]&&(i==="pixel"?k=M(o)-Number(k):k=M(k)),h++,h>b&&(k="X"),k});return h>b&&(A=A.replace(/[\s,]*X.*/,""),_E.log("Ignoring extra params in segment "+v)),_&&f++,w&&c++,p+A})}Na.getPixelShift=kl;function kl(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 Ex=G((xke,ME)=>{"use strict";var Gve=qe(),Ll=Qr(),wE=pa(),TE=$r(),Uve=Wo().readPaths,hu=Jo(),Vve=hu.getPathString,Sv=f1(),Xve=(Va(),Ne(Ua)).FROM_TL;ME.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 l={};if(a.type!=="path"){var o=Ll.getFromId(r,a.xref),s=Ll.getFromId(r,a.yref);let V=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in Sv){var f=typeof Sv[u]=="function",c=!V||Sv.simpleXVariables.includes(u),v=!J||Sv.simpleYVariables.includes(u);if(f&&c&&v){var h=Sv[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=Gve.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),_=b.append("text").attr(m).classed("shape-label-text",!0).text(i),w,x,M,A;if(a.path){var k=Vve(r,a),S=Uve(k,r);w=1/0,M=1/0,x=-1/0,A=-1/0;for(var D=0;D<S.length;D++)for(var E=0;E<S[D].length;E++)for(var R=S[D][E],N=1;N<R.length;N+=2){var O=R[N],F=R[N+1];w=Math.min(w,O),x=Math.max(x,O),M=Math.min(M,F),A=Math.max(A,F)}}else{let V=Array.isArray(a.xref),J=Array.isArray(a.yref),re=Ll.getFromId(r,V?a.xref[0]:a.xref),ne=Ll.getFromId(r,V?a.xref[1]:a.xref),de=Ll.getFromId(r,J?a.yref[0]:a.yref),K=Ll.getFromId(r,J?a.yref[1]:a.yref),ye=Ll.getRefType(V?a.xref[0]:a.xref),oe=Ll.getRefType(V?a.xref[1]:a.xref),Ce=Ll.getRefType(J?a.yref[0]:a.yref),se=Ll.getRefType(J?a.yref[1]:a.yref),fe=(Fe,be,Me,Ae)=>hu.getDataToPixel(r,Me,be,!1,Ae)(Fe),Te=(Fe,be,Me,Ae)=>hu.getDataToPixel(r,Me,be,!0,Ae)(Fe);if(a.xsizemode==="pixel"){let Fe=fe(a.xanchor,void 0,re,ye),be=hu.getPixelShift(re,a.x0shift),Me=hu.getPixelShift(re,a.x1shift);w=Fe+a.x0+be,x=Fe+a.x1+Me}else w=fe(a.x0,a.x0shift,re,ye),x=fe(a.x1,a.x1shift,ne,oe);if(a.ysizemode==="pixel"){let Fe=Te(a.yanchor,void 0,de,Ce),be=hu.getPixelShift(de,a.y0shift),Me=hu.getPixelShift(de,a.y1shift);M=Fe-a.y0+be,A=Fe-a.y1+Me}else M=Te(a.y0,a.y0shift,de,Ce),A=Te(a.y1,a.y1shift,K,se)}var I=a.label.textangle;I==="auto"&&(a.type==="line"?I=Wve(w,M,x,A):I=0),_.call(function(V){return V.call(TE.font,y).attr({}),wE.convertToTspans(V,r),V});var Y=TE.bBox(_.node()),B=Zve(w,M,x,A,a,I,Y),U=B.textx,X=B.texty,W=B.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:X,x:U,transform:"rotate("+I+","+U+","+X+")"}).call(wE.positionText,U,X)}};function Wve(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 Zve(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,_,w;if(f==="line"){o==="start"?(m=e,b=r):o==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":t<e?p="right":p="center":t>e?p="right":t<e?p="left":p="center":o==="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 x={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(s==="auto"){var A=M[y];_=-u*v*A,w=u*h*A}else{var k=x[p],S=M[y];_=u*k,w=u*S}m=m+_,b=b+w}else _=u+3,o.indexOf("right")!==-1?(m=Math.max(e,t)-_,p==="auto"&&(p="right")):o.indexOf("left")!==-1?(m=Math.min(e,t)+_,p==="auto"&&(p="left")):(m=(e+t)/2,p==="auto"&&(p="center")),o.indexOf("top")!==-1?b=Math.min(r,a):o.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,w=u,y==="bottom"?b=b-w:y==="top"&&(b=b+w);var D=Xve[y],E=n.label.font.size,R=l.height,N=(R*D-E)*v,O=-(R*D-E)*h;return{textx:m+N,texty:b+O,xanchor:p}}});var Zp=G((_ke,EE)=>{"use strict";var $ve=qe(),Jve=$ve.strTranslate,AE=$i(),LE=nc(),Kve=LE.drawMode,SE=LE.selectMode,qE=Ar(),kE=kr(),Wp=(Op(),Ne(Hp)),jve=Wp.i000,Qve=Wp.i090,ede=Wp.i180,rde=Wp.i270,tde=Io(),DE=tde.clearOutlineControllers,Rx=Wo(),Xp=Rx.pointsOnRectangle,Px=Rx.pointsOnEllipse,ade=Rx.writePaths,nde=Vp().newShapes,ide=Vp().createShapeObj,lde=Dx(),ode=Ex();EE.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Px(r[0])||a.hasText)&&o({redrawing:!0})}function o(B){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=nde(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=lde(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&qE.call((B||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Kve(f),v=SE(f);(c||v)&&(i._fullLayout._outlining=!0),DE(i),t.attr("d",ade(r));var h,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=sde([],r);var _=u.append("g").attr("class","outline-controllers");E(_),Y()}if(c&&a.hasText){var w=u.select(".label-temp"),x=ide(t,a,a.dragmode);ode(i,"label-temp",x,w)}function M(B){y=+B.srcElement.getAttribute("data-i"),m=+B.srcElement.getAttribute("data-j"),h[y][m].moveFn=A}function A(B,U){if(r.length){var X=b[y][m][1],W=b[y][m][2],V=r[y],J=V.length;if(Xp(V)){var re=B,ne=U;if(a.isActiveSelection){var de=CE(V,m);de[1]===V[m][1]?ne=0:re=0}for(var K=0;K<J;K++)if(K!==m){var ye=V[K];ye[1]===V[m][1]&&(ye[1]=X+re),ye[2]===V[m][2]&&(ye[2]=W+ne)}if(V[m][1]=X+re,V[m][2]=W+ne,!Xp(V))for(var oe=0;oe<J;oe++)for(var Ce=0;Ce<V[oe].length;Ce++)V[oe][Ce]=b[y][oe][Ce]}else V[m][1]=X+B,V[m][2]=W+U;l()}}function k(){o()}function S(){if(r.length&&r[y]&&r[y].length){for(var B=[],U=0;U<r[y].length;U++)U!==m&&B.push(r[y][U]);B.length>1&&!(B.length===2&&B[1][0]==="Z")&&(m===0&&(B[0][0]="M"),r[y]=B,l(),o())}}function D(B,U){if(B===2){y=+U.srcElement.getAttribute("data-i"),m=+U.srcElement.getAttribute("data-j");var X=r[y];!Xp(X)&&!Px(X)&&S()}}function E(B){h=[];for(var U=0;U<r.length;U++){var X=r[U],W=Xp(X),V=!W&&Px(X);h[U]=[];for(var J=X.length,re=0;re<J;re++)if(X[re][0]!=="Z"&&!(V&&re!==jve&&re!==Qve&&re!==ede&&re!==rde)){var ne=W&&a.isActiveSelection,de;ne&&(de=CE(X,re));var K=X[re][1],ye=X[re][2],oe=B.append(ne?"rect":"circle").attr("data-i",U).attr("data-j",re).style({fill:kE.background,stroke:kE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ne){var Ce=de[1]-K,se=de[2]-ye,fe=se?5:Math.max(Math.min(25,Math.abs(Ce)-5),5),Te=Ce?5:Math.max(Math.min(25,Math.abs(se)-5),5);oe.classed(se?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",fe).attr("height",Te).attr("x",K-fe/2).attr("y",ye-Te/2).attr("transform",Jve(Ce/2,se/2))}else oe.classed("cursor-grab",!0).attr("r",5).attr("cx",K).attr("cy",ye);h[U][re]={element:oe.node(),gd:i,prepFn:M,doneFn:k,clickFn:D},AE.init(h[U][re])}}}function R(B,U){if(r.length)for(var X=0;X<r.length;X++)for(var W=0;W<r[X].length;W++)for(var V=0;V+2<r[X][W].length;V+=2)r[X][W][V+1]=b[X][W][V+1]+B,r[X][W][V+2]=b[X][W][V+2]+U}function N(B,U){R(B,U),l()}function O(B){y=+B.srcElement.getAttribute("data-i"),y||(y=0),p[y].moveFn=N}function F(){o()}function I(B){B===2&&ude(i)}function Y(){if(p=[],!!r.length){var B=0;p[B]={element:t[0][0],gd:i,prepFn:O,doneFn:F,clickFn:I},AE.init(p[B])}}};function sde(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 CE(e,r){var t=e[r][1],a=e[r][2],n=e.length,i,l,o;return i=(r+1)%n,l=e[i][1],o=e[i][2],l===t&&o===a&&(i=(r+2)%n,l=e[i][1],o=e[i][2]),[i,l,o]}function ude(e){if(SE(e._fullLayout.dragmode)){DE(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},qE.call("_guiRelayout",e,{selections:a})}}}});var Qp=G((wke,YE)=>{"use strict";var fde=Er(),FE=Ar(),Nx=qe(),pu=Qr(),cde=Wo().readPaths,vde=Zp(),Jp=Ex(),HE=Io().clearOutlineControllers,zx=kr(),Kp=$r(),dde=mt().arrayEditor,PE=$i(),RE=bi(),zE=Vo(),mu=(Lv(),Ne(Cv)),Hn=Jo(),Ix=Hn.getPathString;YE.exports={draw:Fx,drawOne:OE,eraseActiveShape:gde,drawLabel:Jp};function Fx(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&&OE(e,n)}function $p(e){return!!e._fullLayout._outlining}function jp(e){return!e._context.edits.shapePosition}function OE(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Hn.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")o(e._fullLayout._shapeUpperLayer);else if(a.xref.includes("paper")||a.yref.includes("paper"))o(e._fullLayout._shapeLowerLayer);else if(a.layer==="between"&&!i)o(n.shapelayerBetween);else if(n._hadPlotinfo){var l=n.mainplotinfo||n;o(l.shapelayer)}else o(e._fullLayout._shapeLowerLayer);function o(s){var u=Ix(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,v=a.fillcolor,h=a.line.width?a.line.color:"rgba(0,0,0,0)",p=a.line.width,y=a.line.dash;!p&&a.editable===!0&&(p=5,y="solid");var m=u[u.length-1]!=="Z",b=jp(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(v=m?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var _=s.append("g").classed("shape-group",!0).attr({"data-index":r}),w=_.append("path").attr(f).style("opacity",c).call(zx.stroke,h).call(zx.fill,v).call(Kp.dashLine,y,p);BE(_,e,a),Jp(e,r,a,_);var x;if((b||e._context.edits.shapePosition)&&(x=dde(e.layout,"shapes",a)),b){w.style({cursor:"move"});var M={element:w.node(),plotinfo:n,gd:e,editHelpers:x,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},A=cde(u,e);vde(A,w,M)}else e._context.edits.shapePosition?mde(e,w,a,r,s,x):a.editable===!0&&w.style("pointer-events",m||zx.opacity(v)*c<=.5?"stroke":"all");w.node().addEventListener("click",function(){return yde(e,w)}),hde(e,w,n)}}function hde(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var s;let l=t.mainplotinfo||t,o=(s=l==null?void 0:l.draglayer)==null?void 0:s.select(".nsewdrag").node();return o?{clientX:i.clientX,clientY:i.clientY,target:o}:null}a.addEventListener("mousemove",i=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&RE.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&RE.click(e,l,t.id)}})}function BE(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,l=pde(r,a,n);Nx.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),Kp.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Kp.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function pde(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(v=>pu.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function mde(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,h,p,y,m,b,_,w,x,M,A,k,S,D,E,R,N=fde.select(r.node().parentNode),O=pu.getFromId(e,t.xref),F=pu.getRefType(t.xref),I=pu.getFromId(e,t.yref),Y=pu.getRefType(t.yref),B=t.x0shift,U=t.x1shift,X=t.y0shift,W=t.y1shift,V=function(ze,Se){var Ue=Hn.getDataToPixel(e,O,Se,!1,F);return Ue(ze)},J=function(ze,Se){var Ue=Hn.getDataToPixel(e,I,Se,!0,Y);return Ue(ze)},re=Hn.getPixelToData(e,O,!1,F),ne=Hn.getPixelToData(e,I,!0,Y),de=oe(),K={element:de.node(),gd:e,prepFn:fe,doneFn:Te,clickFn:Fe},ye;PE.init(K),de.node().onmousemove=se;function oe(){return f?Ce():r}function Ce(){var ze=10,Se=Math.max(t.line.width,ze),Ue=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ue.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Se,"stroke-opacity":"0"});var Ke={"fill-opacity":"0"},er=Math.max(Se/2,ze);return Ue.append("circle").attr({"data-line-point":"start-point",cx:s?V(t.xanchor)+t.x0:V(t.x0,B),cy:u?J(t.yanchor)-t.y0:J(t.y0,X),r:er}).style(Ke).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?V(t.xanchor)+t.x1:V(t.x1,U),cy:u?J(t.yanchor)-t.y1:J(t.y1,W),r:er}).style(Ke).classed("cursor-grab",!0),Ue}function se(ze){if($p(e)){ye=null;return}if(f)ze.target.tagName==="path"?ye="move":ye=ze.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Se=K.element.getBoundingClientRect(),Ue=Se.right-Se.left,Ke=Se.bottom-Se.top,er=ze.clientX-Se.left,De=ze.clientY-Se.top,Ye=!c&&Ue>l&&Ke>o&&!ze.shiftKey?PE.getCursor(er/Ue,1-De/Ke):"move";zE(r,Ye),ye=Ye.split("-")[0]}}function fe(ze){$p(e)||(s&&(b=V(t.xanchor)),u&&(_=J(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:V(t.x0),p=u?t.y0:J(t.y0),y=s?t.x1:V(t.x1),m=u?t.y1:J(t.y1)),h<y?(M=h,D="x0",A=y,E="x1"):(M=y,D="x1",A=h,E="x0"),!u&&p<m||u&&p>m?(w=p,k="y0",x=m,S="y1"):(w=m,k="y1",x=p,S="y0"),se(ze),Ae(n,t),ke(r,t,e),K.moveFn=ye==="move"?be:Me,K.altKey=ze.altKey)}function Te(){$p(e)||(zE(r),Le(n),BE(r,e,t),FE.call("_guiRelayout",e,i.getUpdateObj()))}function Fe(){$p(e)||Le(n)}function be(ze,Se){if(t.type==="path"){var Ue=function(De){return De},Ke=Ue,er=Ue;s?v("xanchor",t.xanchor=re(b+ze)):(Ke=function(Ye){return re(V(Ye)+ze)},O&&O.type==="date"&&(Ke=Hn.encodeDate(Ke))),u?v("yanchor",t.yanchor=ne(_+Se)):(er=function(Ye){return ne(J(Ye)+Se)},I&&I.type==="date"&&(er=Hn.encodeDate(er))),v("path",t.path=NE(R,Ke,er))}else s?v("xanchor",t.xanchor=re(b+ze)):(v("x0",t.x0=re(h+ze)),v("x1",t.x1=re(y+ze))),u?v("yanchor",t.yanchor=ne(_+Se)):(v("y0",t.y0=ne(p+Se)),v("y1",t.y1=ne(m+Se)));r.attr("d",Ix(e,t)),Ae(n,t),Jp(e,a,t,N)}function Me(ze,Se){if(c){var Ue=function(Ze){return Ze},Ke=Ue,er=Ue;s?v("xanchor",t.xanchor=re(b+ze)):(Ke=function(Je){return re(V(Je)+ze)},O&&O.type==="date"&&(Ke=Hn.encodeDate(Ke))),u?v("yanchor",t.yanchor=ne(_+Se)):(er=function(Je){return ne(J(Je)+Se)},I&&I.type==="date"&&(er=Hn.encodeDate(er))),v("path",t.path=NE(R,Ke,er))}else if(f){if(ye==="resize-over-start-point"){var De=h+ze,Ye=u?p-Se:p+Se;v("x0",t.x0=s?De:re(De)),v("y0",t.y0=u?Ye:ne(Ye))}else if(ye==="resize-over-end-point"){var rr=y+ze,te=u?m-Se:m+Se;v("x1",t.x1=s?rr:re(rr)),v("y1",t.y1=u?te:ne(te))}}else{var pe=function(Ze){return ye.indexOf(Ze)!==-1},Ve=pe("n"),vr=pe("s"),hr=pe("w"),le=pe("e"),ge=Ve?w+Se:w,Ie=vr?x+Se:x,Xe=hr?M+ze:M,He=le?A+ze:A;u&&(Ve&&(ge=w-Se),vr&&(Ie=x-Se)),(!u&&Ie-ge>o||u&&ge-Ie>o)&&(v(k,t[k]=u?ge:ne(ge)),v(S,t[S]=u?Ie:ne(Ie))),He-Xe>l&&(v(D,t[D]=s?Xe:re(Xe)),v(E,t[E]=s?He:re(He)))}r.attr("d",Ix(e,t)),Ae(n,t),Jp(e,a,t,N)}function Ae(ze,Se){(s||u)&&Ue();function Ue(){var Ke=Se.type!=="path",er=ze.selectAll(".visual-cue").data([0]),De=1;er.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Ye=V(s?Se.xanchor:Nx.midRange(Ke?[Se.x0,Se.x1]:Hn.extractPathCoords(Se.path,mu.paramIsX))),rr=J(u?Se.yanchor:Nx.midRange(Ke?[Se.y0,Se.y1]:Hn.extractPathCoords(Se.path,mu.paramIsY)));if(Ye=Hn.roundPositionForSharpStrokeRendering(Ye,De),rr=Hn.roundPositionForSharpStrokeRendering(rr,De),s&&u){var te="M"+(Ye-1-De)+","+(rr-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";er.attr("d",te)}else if(s){var pe="M"+(Ye-1-De)+","+(rr-9-De)+"v18 h2 v-18 Z";er.attr("d",pe)}else{var Ve="M"+(Ye-9-De)+","+(rr-1-De)+"h18 v2 h-18 Z";er.attr("d",Ve)}}}function Le(ze){ze.selectAll(".visual-cue").remove()}function ke(ze,Se,Ue){var Ke=Se.xref,er=Se.yref,De=pu.getFromId(Ue,Ke),Ye=pu.getFromId(Ue,er),rr="";Ke!=="paper"&&!De.autorange&&(rr+=Ke),er!=="paper"&&!Ye.autorange&&(rr+=er),Kp.setClipUrl(ze,rr?"clip"+Ue._fullLayout._uid+rr:null,Ue)}}function NE(e,r,t){return e.replace(mu.segmentRE,function(a){var n=0,i=a.charAt(0),l=mu.paramIsX[i],o=mu.paramIsY[i],s=mu.numParams[i],u=a.slice(1).replace(mu.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function yde(e,r){if(jp(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){IE(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=IE,Fx(e)}}}function IE(e){if(jp(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(HE(e),delete e._fullLayout._activeShapeIndex,Fx(e))}}function gde(e){if(jp(e)){HE(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,FE.call("_guiRelayout",e,{shapes:a})}}}});var UE=G((Tke,GE)=>{"use strict";var oc=qe()._,bde=function(e){return{DIALOG_TITLE:oc(e,"Share chart"),DIALOG_MESSAGE_CLOUD:oc(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:oc(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:oc(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:oc(e,"Cancel"),DIALOG_CONFIRM:oc(e,"Share")}};GE.exports=bde});var WE=G((Mke,XE)=>{"use strict";var VE=Er(),{dfltConfig:xde}=Ao(),_de=UE(),wde=(e,r,t,a,n)=>{let i=_de(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===xde.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=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(v),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(/(\{|\})/),v=c[0],h=c[4],p=l.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},Tde=(e,r,t)=>{let a=VE.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",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{VE.event.target===n.node()&&i()}),wde(e,n,r,()=>{i(),t()},i)};XE.exports=Tde});var Bx=G((Ake,eP)=>{"use strict";var ti=Ar(),Mde=Jt(),$E=fa(),rt=Fp(),Ade=Qp().eraseActiveShape,kde=WE(),sc=qe(),Zr=sc._,et={};eP.exports=et;et.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Zr(e,"Download plot as a PNG"):Zr(e,"Download plot")},icon:rt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};sc.notifier(Zr(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])}),ti.call("downloadImage",e,t).then(function(a){sc.notifier(Zr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){sc.notifier(Zr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};et.downloadJson={name:"downloadJson",title:function(e){return Zr(e,"Download plot as JSON")},icon:rt.curlybraces,click:function(e){ti.call("downloadImage",e,{format:"full-json"}).then(function(r){sc.notifier(Zr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){sc.notifier(Zr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};et.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Zr(e,"Share chart...")},icon:rt.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}kde(e,r,function(){Mde.sendDataToCloud(e,r)})}};et.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Zr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:rt.zoombox,click:bn};et.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Zr(e,"Pan")},attr:"dragmode",val:"pan",icon:rt.pan,click:bn};et.select2d={name:"select2d",_cat:"select",title:function(e){return Zr(e,"Box Select")},attr:"dragmode",val:"select",icon:rt.selectbox,click:bn};et.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Zr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:rt.lasso,click:bn};et.drawclosedpath={name:"drawclosedpath",title:function(e){return Zr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:rt.drawclosedpath,click:bn};et.drawopenpath={name:"drawopenpath",title:function(e){return Zr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:rt.drawopenpath,click:bn};et.drawline={name:"drawline",title:function(e){return Zr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:rt.drawline,click:bn};et.drawrect={name:"drawrect",title:function(e){return Zr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:rt.drawrect,click:bn};et.drawcircle={name:"drawcircle",title:function(e){return Zr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:rt.drawcircle,click:bn};et.eraseshape={name:"eraseshape",title:function(e){return Zr(e,"Erase active shape")},icon:rt.eraseshape,click:Ade};et.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:bn};et.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:bn};et.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Zr(e,"Autoscale")},attr:"zoom",val:"auto",icon:rt.autoscale,click:bn};et.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Zr(e,"Reset axes")},attr:"zoom",val:"reset",icon:rt.home,click:bn};et.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Zr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:rt.tooltip_basic,gravity:"ne",click:bn};et.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Zr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:rt.tooltip_compare,gravity:"ne",click:bn};function bn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=$E.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,h=(1-c)/2,p,y;for(f=0;f<o.length;f++)if(u=o[f],y=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,y&&!u.fixedrange)if(p=u._name,n==="auto")l[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?l[p+".autorange"]=!0:u._rangeInitial0===void 0?(l[p+".autorange"]=u._autorangeInitial,l[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(l[p+".range"]=[u._rangeInitial0,null],l[p+".autorange"]=u._autorangeInitial):l[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(l[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var m=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[v*m[0]+h*m[1],v*m[1]+h*m[0]];l[p+".range[0]"]=u.l2r(b[0]),l[p+".range[1]"]=u.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),l[a]=n;i._cartesianSpikesEnabled=s,ti.call("_guiRelayout",e,l)}et.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Zr(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:rt.zoombox,click:rm};et.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Zr(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:rt.pan,click:rm};et.orbitRotation={name:"orbitRotation",title:function(e){return Zr(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:rt["3d_rotate"],click:rm};et.tableRotation={name:"tableRotation",title:function(e){return Zr(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:rt["z-axis"],click:rm};function rm(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],l={},o=a.split("."),s=0;s<i.length;s++)l[i[s]+"."+o[1]]=n;var u=n==="pan"?n:"zoom";l.dragmode=u,ti.call("_guiRelayout",e,l)}et.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Zr(e,"Reset camera to default")},attr:"resetDefault",icon:rt.home,click:Hx};et.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Zr(e,"Reset camera to last save")},attr:"resetLastSave",icon:rt.movie,click:Hx};function Hx(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=a==="resetLastSave",i=a==="resetDefault",l=e._fullLayout,o=l._subplots.gl3d||[],s={},u=0;u<o.length;u++){var f=o[u],c=f+".camera",v=f+".aspectratio",h=f+".aspectmode",p=l[f]._scene,y;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,y=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,y=!0),y&&(s[v+".x"]=p.viewInitial.aspectratio.x,s[v+".y"]=p.viewInitial.aspectratio.y,s[v+".z"]=p.viewInitial.aspectratio.z,s[h]=p.viewInitial.aspectmode)}ti.call("_guiRelayout",e,s)}et.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:rt.tooltip_basic,gravity:"ne",click:Cde};function JE(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],l=["xaxis","yaxis","zaxis"],o={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],v=f+".hovermode";o[v]=c.hovermode,s[v]=!1;for(var h=0;h<3;h++){var p=l[h],y=f+"."+p+".showspikes";s[y]=!1,o[y]=c[p].showspikes}}t._previousVal=o}return s}function Cde(e,r){var t=JE(e,r);ti.call("_guiRelayout",e,t)}et.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:Ox};et.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:Ox};et.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Zr(e,"Reset")},attr:"reset",val:null,icon:rt.autoscale,click:Ox};et.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:rt.tooltip_basic,gravity:"ne",click:jE};var ZE=2;function Ox(e,r){var o;let t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l=i._subplots.geo||[];for(let s of l){let u=i[s],f=u._subplot;if(a==="zoom"){let c=f.projection,v=c.scale()/f.fitScale,[h,p]=c.rotate().map(A=>-A),[y,m]=c.invert(f.midPt),{minscale:b}=u.projection,_=(o=u.projection.maxscale)!=null?o:1/0,w=Math.min(b,_),x=Math.max(b,_),M=n==="in"?ZE*v:1/ZE*v;M>x?M=x:M<w&&(M=w),M!==v&&ti.call("_guiRelayout",e,{[s+".projection.scale"]:M,[s+".projection.rotation.lon"]:h,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:y,[s+".center.lat"]:m,[s+".fitbounds"]:!1})}}a==="reset"&&em(e,"geo")}et.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:rt.tooltip_basic,gravity:"ne",click:jE};function KE(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function jE(e){var r=KE(e);ti.call("_guiRelayout",e,"hovermode",r)}et.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Zr(e,"Reset view")},icon:rt.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())}ti.call("restyle",e,r)}};et.toggleHover={name:"toggleHover",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:rt.tooltip_basic,gravity:"ne",click:function(e,r){var t=JE(e,r);t.hovermode=KE(e),ti.call("_guiRelayout",e,t)}};et.resetViews={name:"resetViews",title:function(e){return Zr(e,"Reset views")},icon:rt.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),bn(e,r),t.setAttribute("data-attr","resetLastSave"),Hx(e,r),em(e,"geo"),em(e,"map")}};et.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Zr(e,"Toggle Spike Lines")},icon:rt.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",ti.call("_guiRelayout",e,Lde(e))}};function Lde(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=$E.list(e,null,!0),n={},i=0;i<a.length;i++){var l=a[i];n[l._name+".showspikes"]=t?!0:l._showSpikeInitial}return n}et.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Zr(e,"Reset view")},attr:"reset",icon:rt.home,click:function(e){em(e,"map")}};et.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:QE};et.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:QE};function QE(e,r){Sde(e,r,"map")}function Sde(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,l=i._subplots[t]||[],o=1.05,s={},u=0;u<l.length;u++){var f=l[u],c=i[f].zoom,v=n==="in"?o*c:c/o;s[f+".zoom"]=v}ti.call("_guiRelayout",e,s)}function em(e,r){for(var t=e._fullLayout,a=t._subplots[r]||[],n={},i=0;i<a.length;i++)for(var l=a[i],o=t[l]._subplot,s=o.viewInitial,u=Object.keys(s),f=0;f<u.length;f++){var c=u[f];n[l+"."+c]=s[c]}ti.call("_guiRelayout",e,n)}});var Yx=G((kke,nP)=>{"use strict";var rP=Bx(),qde=Object.keys(rP),tP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],aP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(tP,["downloadJson"]),uc=[],Dde=function(e){if(aP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();uc.indexOf(r)===-1&&uc.push(r),uc.indexOf(t)===-1&&uc.push(t)}};qde.forEach(function(e){Dde(rP[e])});uc.sort();nP.exports={DRAW_MODES:tP,backButtons:aP,foreButtons:uc}});var Ux={};ht(Ux,{default:()=>Pde});var Gx,Ede,Pde,Vx=lt(()=>{"use strict";Gx=d8(Yx()),Ede={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 *${Gx.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 *${Gx.default.foreButtons.join("*, *")}*.`].join(" ")}},Pde=Ede});var lP=G((Cke,iP)=>{"use strict";var Rde=qe(),qv=kr(),zde=mt(),Nde=(Vx(),Ne(Ux)).default;iP.exports=function(r,t){var a=r.modebar||{},n=zde.newContainer(t,"modebar");function i(o,s){return Rde.coerce(a,n,Nde,o,s)}i("orientation"),i("bgcolor",qv.addOpacity(t.paper_bgcolor,.5));var l=qv.contrast(qv.rgb(t.modebar.bgcolor));i("color",qv.addOpacity(l,.3)),i("activecolor",qv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var fP=G((Lke,uP)=>{"use strict";var Xx=Er(),Ide=Ur(),tm=qe(),oP=Fp(),Fde=x0().version,Hde=new DOMParser;function sP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Sl=sP.prototype;Sl.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,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||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(),tm.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Sl.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 l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Sl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Sl.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(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Xx.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||oP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Sl.createIcon=function(e){var r=Ide(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=Hde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Sl.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"),l=a.getAttribute("data-toggle")==="true",o=Xx.select(a),s=function(c,v){var h=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:tm.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Sl.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 Ode(e){return e+" (v"+Fde+")"}Sl.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Ode(tm._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(oP.newplotlylogo)),e.appendChild(r),e};Sl.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Sl.destroy=function(){tm.removeElement(this.container.querySelector(".modebar"))};function Bde(e,r){var t=e._fullLayout,a=new sP({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&Xx.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}uP.exports=Bde});var dP=G((Ske,vP)=>{"use strict";var Yde=fa(),cP=Kn(),Wx=Ar(),Gde=Wi().isUnifiedHover,Ude=fP(),am=Bx(),Vde=Yx().DRAW_MODES,Xde=qe().extendDeep;vP.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,l;Array.isArray(i)&&i.length?l=jde(i):!a.displayModeBar&&a.watermark?l=[]:l=Wde(r),n?n.update(r,l):t._modeBar=Ude(r,l)};function Wde(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,X){if(typeof X=="string"){if(X.toLowerCase()===U.toLowerCase())return!0}else{var W=X.name,V=X._cat||X.name;if(W===U||V===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var X=0;X<a.modeBarButtonsToRemove.length;X++)if(n(U,a.modeBarButtonsToRemove[X]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(l.filter(function(U){for(var X=0;X<a.modeBarButtonsToAdd.length;X++)if(n(U,a.modeBarButtonsToAdd[X]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),v=r._has("pie"),h=r._has("funnelarea"),p=r._has("ternary"),y=r._has("map"),m=r._has("polar"),b=r._has("smith"),_=r._has("sankey"),w=Zde(r),x=Gde(r.hovermode),M=[];function A(U){if(U.length){for(var X=[],W=0;W<U.length;W++){for(var V=U[W],J=am[V],re=J.name.toLowerCase(),ne=(J._cat||J.name).toLowerCase(),de=!1,K=0;K<s.length;K++){var ye=s[K].toLowerCase();if(ye===re||ye===ne){de=!0;break}}de||X.push(am[V])}M.push(X)}}var k=!1,S=[],D=[],E=[],R=[];(u||v||h||p)+c+f+y+m+b>1?(D=["toggleHover"],E=["resetViews"]):c?(S=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],E=["resetGeo"]):f?(D=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(S=["zoomInMap","zoomOutMap"],D=["toggleHover"],E=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Jde(t)||x)&&(D=[]),u&&!w&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?R=["zoom2d","pan2d"]:y||c?R=["pan2d"]:m&&(R=["zoom2d"]),$de(t)&&R.push("select2d","lasso2d");var N=[],O=function(U){N.indexOf(U)===-1&&D.indexOf(U)!==-1&&N.push(U)};if(Array.isArray(o)){for(var F=[],I=0;I<o.length;I++){var Y=o[I];typeof Y=="string"?(Y=Y.toLowerCase(),Vde.indexOf(Y)!==-1?(r._has("map")||r._has("cartesian"))&&R.push(Y):Y==="togglespikelines"?O("toggleSpikelines"):Y==="togglehover"?O("toggleHover"):Y==="hovercompare"?O("hoverCompareCartesian"):Y==="hoverclosest"?(O("hoverClosestCartesian"),O("hoverClosestGeo"),O("hoverClosest3d"),O("hoverClosestPie")):Y==="v1hovermode"?(O("hoverClosestCartesian"),O("hoverCompareCartesian"),O("hoverClosestGeo"),O("hoverClosest3d"),O("hoverClosestPie")):Y==="downloadjson"&&(k=!0)):F.push(Y)}o=F}var B=["toImage"];return k&&B.push("downloadJson"),a.showSendToCloud&&B.push("sendChartToCloud"),A(B),A(R),A(S.concat(E)),A(N),Kde(M,o)}function Zde(e){for(var r=Yde.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 $de(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(Wx.traceIs(a,"scatter-like")&&a.type!=="quiver"?(cP.hasMarkers(a)||cP.hasText(a))&&(r=!0):Wx.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function Jde(e){for(var r=0;r<e.length;r++)if(!Wx.traceIs(e[r],"noHover"))return!1;return!0}function Kde(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 jde(e){for(var r=Xde([],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(am[i]!==void 0)r[t][n]=am[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var Zx=G((qke,hP)=>{"use strict";hP.exports={moduleType:"component",name:"modebar",layoutAttributes:(Vx(),Ne(Ux)).default,supplyLayoutDefaults:lP(),manage:dP()}});var $x=G((Dke,pP)=>{"use strict";var Qde=(Va(),Ne(Ua)).FROM_BL;pP.exports=function(r,t,a){a===void 0&&(a=Qde[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 gu=G(Dv=>{"use strict";var yu=qe(),Jx=vv(),Ki=fa().id2name,ehe=Jn(),mP=$x(),rhe=ip(),the=(Et(),Ne(It)).ALMOST_EQUAL,ahe=(Va(),Ne(Ua)).FROM_BL;Dv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,v,h,p;for(o=0;o<a.length;o++)f=Ki(a[o]),c=e[f],v=r[f],nhe(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function y(S,D){for(o=0;o<S.length;o++){s=S[o];for(u in s)r[Ki(u)][D]=s}}for(y(l,"_matchGroup"),o=0;o<i.length;o++){s=i[o];for(u in s)if(v=r[Ki(u)],v.fixedrange){for(var m in s){var b=Ki(m);(e[b]||{}).fixedrange===!1&&yu.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(o=0;o<i.length;){s=i[o];for(u in s){v=r[Ki(u)],v._matchGroup&&Object.keys(v._matchGroup).length===Object.keys(s).length&&(i.splice(o,1),o--);break}o++}y(i,"_constraintGroup");var _=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],w=!1,x=!1;function M(){p=v[h],h==="range"&&(w=!!(p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null)),h==="rangebreaks"&&(x=v._hasDayOfWeekBreaks)}for(o=0;o<l.length;o++){s=l[o],w=!1;for(var A=0;A<_.length;A++){h=_[A],p=null;var k;for(u in s)if(f=Ki(u),c=e[f],v=r[f],h in v){if(!v.matches&&(k=v,h in c)){M();break}p===null&&h in c&&M()}if(h==="autorange"&&p===null&&w&&(p=!1),p===null&&h in k&&(p=k[h]),p!==null)for(u in s)v=r[Ki(u)],v[h]=h==="range"?p.slice():p,h==="rangebreaks"&&(v._hasDayOfWeekBreaks=x,rhe(v,r))}}};function nhe(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,l=n._axisConstraintGroups,o=n._axisMatchGroups,s=r._id,u=s.charAt(0),f=((n._splomAxes||{})[u]||{})[s]||{},c=r._id,v=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function h(N,O){return yu.coerce(e,r,ehe,N,O)}h("constrain",i?"domain":"range"),yu.coerce(e,r,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var p=r.type,y,m,b=[];for(y=0;y<a.length;y++)if(m=a[y],m!==c){var _=n[Ki(m)];_.type===p&&b.push(m)}var w=bP(l,c);if(w){var x=[];for(y=0;y<b.length;y++)m=b[y],w[m]||x.push(m);b=x}var M=b.length,A,k;M&&(e.matches||f.matches)&&(A=yu.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var S=i&&!v?r.anchor:void 0;if(M&&!A&&(e.scaleanchor||S)&&(k=yu.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",S)),A){r._matchGroup=Kx(o,c,A,1);var D=n[Ki(A)],E=yP(n,r)/yP(n,D);v!==(A.charAt(0)==="x")&&(E=(v?"x":"y")+E),Kx(l,c,A,E)}else e.matches&&a.indexOf(e.matches)!==-1&&yu.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(k){var R=h("scaleratio");R||(R=r.scaleratio=1),Kx(l,c,k,R)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&yu.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 yP(e,r){var t=r.domain;return t||(t=e[Ki(r.overlaying)].domain),t[1]-t[0]}function bP(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function Kx(e,r,t,a){var n,i,l,o,s,u=bP(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(l=e[n],n!==s&&l[t]){var c=l[t];for(i=0;i<f.length;i++)o=f[i],l[o]=jx(c,jx(a,u[o]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var v=f[i];u[v]=jx(a,u[v])}u[t]=1}function jx(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 l=e*r;return!n&&!i?l:!n||!i||t.charAt(0)===a.charAt(0)?t+a+e*r:n===i?l:(n>i?t.slice(i):a.slice(n))+l}function ihe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;l<i.length;l++){var o=i[l],s=e[o];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,v=0;v<f;v++)s*=c}n[o]=s}return n}Dv.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,l,o,s,u,f,c;for(n=0;n<a.length;n++){l=ihe(a[n],t);var v=Object.keys(l),h=1/0,p=0,y=1/0,m={},b={},_=!1;for(i=0;i<v.length;i++)o=v[i],b[o]=s=t[Ki(o)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),m[o]=u=Math.abs(s._m)/l[o],h=Math.min(h,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(y=Math.min(y,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(_=!0);if(!(h>the*p&&!_)){for(i=0;i<v.length;i++)if(o=v[i],u=m[o],s=b[o],f=s.constrain,u!==y||f==="domain")if(c=u/y,f==="range")mP(s,c);else{var w=s._inputDomain,x=(s.domain[1]-s.domain[0])/(w[1]-w[0]),M=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=x,c*M<1){s.domain=s._input.domain=w.slice(),mP(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]),S=(A+k)/2,D=S,E=S,R=Math.abs(k-S),N=S-R*c*1.0001,O=S+R*c*1.0001,F=Jx.makePadFn(t,s,0),I=Jx.makePadFn(t,s,1);gP(s,c,t);var Y=Math.abs(s._m),B=Jx.concatExtremes(r,s),U=B.min,X=B.max,W,V;for(V=0;V<U.length;V++)W=U[V].val-F(U[V])/Y,W>N&&W<D&&(D=W);for(V=0;V<X.length;V++)W=X[V].val+I(X[V])/Y,W<O&&W>E&&(E=W);var J=(E-D)/(2*R);c/=J,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=A<k?[D,E]:[E,D]}gP(s,c,t)}}}};Dv.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};Dv.clean=function(r,t){if(t._inputDomain){for(var a=!1,n=t._id,i=r._fullLayout._axisConstraintGroups,l=0;l<i.length;l++)if(i[l][n]){a=!0;break}(!a||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function lhe(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 gP(e,r,t){var a=e._inputDomain,n=ahe[e.constraintoward],i=a[0]+(a[1]-a[0])*n;let l=r,o=lhe(e,t);if(o>0){let s=a[1]-a[0],u=s-o;u>0&&(l=s/(u/r+o))}e.domain=e._input.domain=[i+(a[0]-i)/l,i+(a[1]-i)/l],e.setScale()}});var lm=G(Ca=>{"use strict";var im=Er(),xn=Ar(),ai=Jt(),xi=qe(),Qx=pa(),e4=Ip(),Ev=kr(),fc=$r(),xP=fv(),AP=Zx(),Pv=Qr(),no=(Va(),Ne(Ua)),kP=gu(),ohe=kP.enforce,she=kP.clean,_P=vv().doAutoRange,CP="start",uhe="middle",LP="end",fhe=(Aa(),Ne(Ma)).zindexSeparator;Ca.layoutStyles=function(e){return xi.syncOrAsync([ai.doAutoMargin,vhe],e)};function che(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 vhe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Pv.list(e,"",!0),i,l,o,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(fc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ca.drawMainTitle(e),AP.manage(e),!r._has("cartesian"))return ai.previousPromises(e);function c(fe,Te,Fe){var be=fe._lw/2;if(fe._id.charAt(0)==="x"){if(Te){if(Fe==="top")return Te._offset-a-be}else return t.t+t.h*(1-(fe.position||0))+be%1;return Te._offset+Te._length+a+be}if(Te){if(Fe==="right")return Te._offset+Te._length+a+be}else return t.l+t.w*(fe.position||0)+be%1;return Te._offset-a-be}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=fc.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,v,s.side),s._mainMirrorPosition=s.mirror&&v?c(s,v,no.OPPOSITE_SIDE[s.side]):null}var h=[],p=[],y=[],m=Ev.opacity(r.paper_bgcolor)===1&&Ev.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(l in r._plots)if(o=r._plots[l],o.mainplot)o.bg&&o.bg.remove(),o.bg=void 0;else{var b=o.xaxis.domain,_=o.yaxis.domain,w=o.plotgroup;if(che(b,_,y)&&l.indexOf(fhe)===-1){var x=w.node(),M=o.bg=xi.ensureSingle(w,"rect","bg");x.insertBefore(M.node(),x.childNodes[0]),p.push(l)}else w.select("rect.bg").remove(),y.push([b,_]),m||(h.push(l),p.push(l))}var A=r._bgLayer.selectAll(".bg").data(h);for(A.enter().append("rect").classed("bg",!0),A.exit().remove(),A.each(function(fe){r._plots[fe].bg=im.select(this)}),i=0;i<p.length;i++)o=r._plots[p[i]],u=o.xaxis,f=o.yaxis,o.bg&&u._offset!==void 0&&f._offset!==void 0&&o.bg.call(fc.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(Ev.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(l in r._plots){o=r._plots[l],u=o.xaxis,f=o.yaxis;var k=o.clipId="clip"+r._uid+l+"plot",S=xi.ensureSingleById(r._clips,"clipPath",k,function(fe){fe.classed("plotclip",!0).append("rect")});o.clipRect=S.select("rect").attr({width:u._length,height:f._length}),fc.setTranslate(o.plot,u._offset,f._offset);var D,E;o._hasClipOnAxisFalse?(D=null,E=k):(D=k,E=null),fc.setClipUrl(o.plot,D,e),o.layerClipId=E}var R,N,O,F,I,Y,B,U,X,W,V,J,re;function ne(fe){return"M"+R+","+fe+"H"+N}function de(fe){return"M"+u._offset+","+fe+"h"+u._length}function K(fe){return"M"+fe+","+U+"V"+B}function ye(fe){return f._shift!==void 0&&(fe+=f._shift),"M"+fe+","+f._offset+"v"+f._length}function oe(fe,Te,Fe){if(!fe.showline||l!==fe._mainSubplot)return"";if(!fe._anchorAxis)return Fe(fe._mainLinePosition);var be=Te(fe._mainLinePosition);return fe.mirror&&(be+=Te(fe._mainMirrorPosition)),be}for(l in r._plots){o=r._plots[l],u=o.xaxis,f=o.yaxis;var Ce="M0,0";wP(u,l)&&(I=nm(u,"left",f,n),R=u._offset-(I?a+I:0),Y=nm(u,"right",f,n),N=u._offset+u._length+(Y?a+Y:0),O=c(u,f,"bottom"),F=c(u,f,"top"),re=!u._anchorAxis||l!==u._mainSubplot,re&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[l]=[O,F]),Ce=oe(u,ne,de),re&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(Ce+=ne(O)+ne(F)),o.xlines.style("stroke-width",u._lw+"px").call(Ev.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),o.xlines.attr("d",Ce);var se="M0,0";wP(f,l)&&(V=nm(f,"bottom",u,n),B=f._offset+f._length+(V?a:0),J=nm(f,"top",u,n),U=f._offset-(J?a:0),X=c(f,u,"left"),W=c(f,u,"right"),re=!f._anchorAxis||l!==f._mainSubplot,re&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[l]=[X,W]),se=oe(f,K,ye),re&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(se+=K(X)+K(W)),o.ylines.style("stroke-width",f._lw+"px").call(Ev.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),o.ylines.attr("d",se)}return Pv.makeClipPaths(e),ai.previousPromises(e)}function wP(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function TP(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=no.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function nm(e,r,t,a){if(TP(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&TP(e,r,i))return i._lw}return 0}Ca.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=bhe(t),n=xhe(t),i=ghe(t,n),l=yhe(t,a);if(xP.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:l,y:i,"text-anchor":a,dy:n}}),r.text&&r.automargin){var o=im.select(e).selectAll(".gtitle"),s=fc.bBox(im.select(e).selectAll(".g-gtitle").node()).height,u=phe(e,r,s);if(u>0){mhe(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:MP(r.yanchor)}).call(Qx.positionText,l,i);var f=(r.text.match(Qx.BR_TAG_ALL)||[]).length;if(f){var c=no.LINE_SPACING*f+no.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=im.select(e).selectAll(".gtitle-subtitle");if(v.node()){var h=o.node().getBBox(),p=h.y+h.height,y=p+xP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:l,y,"text-anchor":a,dy:MP(r.yanchor)}).call(Qx.positionText,l,y)}}}};function dhe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=xi.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return xi.isTopAnchor(r)&&t==="t"||xi.isBottomAnchor(r)&&t==="b"?!1:o<n}function hhe(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 phe(e,r,t){var a=r.y,n=r.yanchor,i=a>.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=hhe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function mhe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&dhe(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),ai.allowAutoMargin(e,n),ai.autoMargin(e,n,o)}function yhe(e,r){var t=e.title,a=e._size,n=0;return r===CP?n=t.pad.l:r===LP&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function ghe(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===no.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 MP(e){return e==="top"?no.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":no.MID_SHIFT+"em"}function bhe(e){var r=e.title,t=uhe;return xi.isRightAnchor(r)?t=LP:xi.isLeftAnchor(r)&&(t=CP),t}function xhe(e){var r=e.title,t="0em";return xi.isTopAnchor(r)?t=no.CAP_SHIFT+"em":xi.isMiddleAnchor(r)&&(t=no.MID_SHIFT+"em"),t}Ca.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a<r.length;a++){var n=r[a],i=n[0]||{},l=i.trace||{},o=l._module||{},s=o.arraysToCalcdata;s&&s(n,l);var u=o.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)}e4(e),Ca.redrawReglTraces(e)}return ai.style(e),xn.getComponentMethod("legend","draw")(e),ai.previousPromises(e)};Ca.doColorBars=function(e){return xn.getComponentMethod("colorbar","draw")(e),ai.previousPromises(e)};Ca.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,xn.call("_doPlot",e,"",r)};Ca.doLegend=function(e){return xn.getComponentMethod("legend","draw")(e),ai.previousPromises(e)};Ca.doTicksRelayout=function(e){var r=Pv.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(xn.subplotsRegistry.splom.updateGrid(e),e4(e),Ca.redrawReglTraces(e)),Ca.drawMainTitle(e),Promise.resolve(r).then(function(){return ai.previousPromises(e)})};Ca.doModeBar=function(e){var r=e._fullLayout;AP.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return ai.previousPromises(e)};Ca.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)}};Ca.drawData=function(e){var r=e._fullLayout;e4(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return Ca.redrawReglTraces(e),ai.style(e),xn.getComponentMethod("selections","draw")(e),xn.getComponentMethod("shapes","draw")(e),xn.getComponentMethod("annotations","draw")(e),xn.getComponentMethod("images","draw")(e),r._replotting=!1,ai.previousPromises(e)};Ca.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,a=[],n=[],i,l;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),i=0;i<t.length;i++){var o=t[i];o.visible===!0&&o._length!==0&&(o.type==="splom"?r._splomScenes[o.uid].draw():o.type==="scattergl"?xi.pushUnique(a,o.xaxis+o.yaxis):o.type==="scatterpolargl"&&xi.pushUnique(n,o.subplot))}for(i=0;i<a.length;i++)l=r._plots[a[i]],l._scene&&l._scene.draw();for(i=0;i<n.length;i++)l=r[n[i]]._subplot,l._scene&&l._scene.draw()}};Ca.doAutoRangeAndConstraints=function(e){for(var r=Pv.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,she(e,t),_P(e,t);var i=t._matchGroup;if(i)for(var l in i){var o=Pv.getFromId(e,l);_P(e,o,t.range),a[l]=1}}ohe(e)};Ca.finalDraw=function(e){xn.getComponentMethod("rangeslider","draw")(e),xn.getComponentMethod("rangeselector","draw")(e)};Ca.drawMarginPushers=function(e){xn.getComponentMethod("legend","draw")(e),xn.getComponentMethod("rangeselector","draw")(e),xn.getComponentMethod("sliders","draw")(e),xn.getComponentMethod("updatemenus","draw")(e),xn.getComponentMethod("colorbar","draw")(e)}});var a4=G((Rke,PP)=>{"use strict";var _he=Wo().readPaths,whe=Zp(),SP=Io().clearOutlineControllers,r4=kr(),qP=$r(),The=mt().arrayEditor,DP=Jo(),Mhe=DP.getPathString;PP.exports={draw:om,drawOne:EP,activateLastSelection:Che};function om(e){var r=e._fullLayout;SP(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++)EP(e,n)}function sm(e){return e._context.editSelection}function EP(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=DP.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(l){var o=Mhe(e,a),s={"data-index":r,"fill-rule":"evenodd",d:o},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||r4.contrast(e._fullLayout.plot_bgcolor),v=a.line.width,h=a.line.dash;v||(v=5,h="solid");var p=sm(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var y=[],m=1;m>=0;m--){var b=l.append("path").attr(s).style("opacity",m?.1:u).call(r4.stroke,c).call(r4.fill,f).call(qP.dashLine,m?"solid":h,m?4+v:v);if(Ahe(b,e,a),p){var _=The(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=_he(o,e);whe(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var M=y[0],A=y[1];A.node().addEventListener("click",function(){return khe(e,M)})}}function Ahe(e,r,t){var a=t.xref+t.yref;qP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function khe(e,r){if(sm(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){t4(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=t4,om(e)}}}function Che(e){if(sm(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=t4,om(e)}}function t4(e){if(sm(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(SP(e),delete e._fullLayout._activeSelectionIndex,om(e))}}});var zP=G((zke,RP)=>{function Lhe(){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,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},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}RP.exports=Lhe});var IP=G((Nke,NP)=>{function She(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],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u<e)return!1;var f=l*l+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],l=t[1]-a[1],o=a[0]-n[0],s=a[1]-n[1];return Math.abs(i*s-o*l)<e},linesIntersect:function(t,a,n,i){var l=a[0]-t[0],o=a[1]-t[1],s=i[0]-n[0],u=i[1]-n[1],f=l*u-o*s;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],v=t[1]-n[1],h=(s*v-u*c)/f,p=(l*v-o*c)/f,y={alongA:0,alongB:0,pt:[t[0]+h*l,t[1]+h*o]};return h<=-e?y.alongA=-2:h<e?y.alongA=-1:h-1<=-e?y.alongA=0:h-1<e?y.alongA=1:y.alongA=2,p<=-e?y.alongB=-2:p<e?y.alongB=-1:p-1<=-e?y.alongB=0:p-1<e?y.alongB=1:y.alongB=2,y},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],l=a[a.length-1][0],o=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!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}NP.exports=She});var HP=G((Ike,FP)=>{var qhe={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}};FP.exports=qhe});var BP=G((Fke,OP)=>{var Rv=HP();function Dhe(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Rv.create();function l(p,y,m,b,_,w){var x=r.pointsCompare(y,_);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?_:w,b?w:_)?1:-1}function o(p,y){i.insertBefore(p,function(m){var b=l(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=Rv.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return o(m,p.end),m}function u(p,y,m){var b=Rv.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,o(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function h(p,y){var m=Rv.create();function b(I,Y){var B=I.seg.start,U=I.seg.end,X=Y.seg.start,W=Y.seg.end;return r.pointsCollinear(B,X,W)?r.pointsCollinear(U,X,W)||r.pointAboveOrOnLine(U,X,W)?1:-1:r.pointAboveOrOnLine(B,X,W)?1:-1}function _(I){return m.findTransition(function(Y){var B=b(I,Y.ev);return B>0})}function w(I,Y){var B=I.seg,U=Y.seg,X=B.start,W=B.end,V=U.start,J=U.end;t&&t.checkIntersection(B,U);var re=r.linesIntersect(X,W,V,J);if(re===!1){if(!r.pointsCollinear(X,W,V)||r.pointsSame(X,J)||r.pointsSame(W,V))return!1;var ne=r.pointsSame(X,V),de=r.pointsSame(W,J);if(ne&&de)return Y;var K=!ne&&r.pointBetween(X,V,J),ye=!de&&r.pointBetween(W,V,J);if(ne)return ye?v(Y,W):v(I,J),Y;K&&(de||(ye?v(Y,W):v(I,J)),v(Y,X))}else re.alongA===0&&(re.alongB===-1?v(I,V):re.alongB===0?v(I,re.pt):re.alongB===1&&v(I,J)),re.alongB===0&&(re.alongA===-1?v(Y,X):re.alongA===0?v(Y,re.pt):re.alongA===1&&v(Y,W));return!1}for(var x=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let I=function(){if(k){var Y=w(M,k);if(Y)return Y}return S?w(M,S):!1};var F=I;t&&t.segmentNew(M.seg,M.primary);var A=_(M),k=A.before?A.before.ev:null,S=A.after?A.after.ev:null;t&&t.tempStatus(M.seg,k?k.seg:!1,S?S.seg:!1);var D=I();if(D){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,S?M.seg.myFill.below=S.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;S?M.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=M.primary?y:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,k?k.seg:!1,S?S.seg:!1),M.other.status=A.insert(Rv.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(N.prev)&&m.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var O=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=O}x.push(M.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b<p.length;b++){y=m,m=p[b];var _=r.pointsCompare(y,m);_!==0&&f(a(_<0?y:m,_<0?m:y),!0)}},calculate:function(p){return h(p,!1)}}:{calculate:function(p,y,m,b){return p.forEach(function(_){f(n(_.start,_.end,_),!0)}),m.forEach(function(_){f(n(_.start,_.end,_),!1)}),h(y,b)}}}OP.exports=Dhe});var GP=G((Hke,YP)=>{function Ehe(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){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(F,I,Y){return f.index=F,f.matches_head=I,f.matches_pt1=Y,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v<a.length;v++){var h=a[v],p=h[0],y=h[1],m=h[h.length-1],b=h[h.length-2];if(r.pointsSame(p,l)){if(c(v,!0,!0))break}else if(r.pointsSame(p,o)){if(c(v,!0,!1))break}else if(r.pointsSame(m,l)){if(c(v,!1,!0))break}else if(r.pointsSame(m,o)&&c(v,!1,!1))break}if(f===s){a.push([l,o]),t&&t.chainNew(l,o);return}if(f===u){t&&t.chainMatch(s.index);var _=s.index,w=s.matches_pt1?o:l,x=s.matches_head,h=a[_],M=x?h[0]:h[h.length-1],A=x?h[1]:h[h.length-2],k=x?h[h.length-1]:h[0],S=x?h[h.length-2]:h[1];if(r.pointsCollinear(A,M,w)&&(x?(t&&t.chainRemoveHead(s.index,w),h.shift()):(t&&t.chainRemoveTail(s.index,w),h.pop()),M=A),r.pointsSame(k,w)){a.splice(_,1),r.pointsCollinear(S,k,M)&&(x?(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}x?(t&&t.chainAddHead(s.index,w),h.unshift(w)):(t&&t.chainAddTail(s.index,w),h.push(w));return}function D(F){t&&t.chainReverse(F),a[F].reverse()}function E(F,I){var Y=a[F],B=a[I],U=Y[Y.length-1],X=Y[Y.length-2],W=B[0],V=B[1];r.pointsCollinear(X,U,W)&&(t&&t.chainRemoveTail(F,U),Y.pop(),U=X),r.pointsCollinear(U,W,V)&&(t&&t.chainRemoveHead(I,W),B.shift()),t&&t.chainJoin(F,I),a[F]=Y.concat(B),a.splice(I,1)}var R=s.index,N=u.index;t&&t.chainConnect(R,N);var O=a[R].length<a[N].length;s.matches_head?u.matches_head?O?(D(R),E(R,N)):(D(N),E(N,R)):E(N,R):u.matches_head?E(R,N):O?(D(R),E(N,R)):(D(N),E(R,N))}),n}YP.exports=Ehe});var VP=G((Oke,UP)=>{function zv(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 Phe={union:function(e,r){return zv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return zv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return zv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return zv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return zv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};UP.exports=Phe});var WP=G((Bke,XP)=>{var Rhe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s<i.length;s++)o=e.selectDifference(e.combine(o,l(i[s])));return o}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 l(h,p){for(var y=0;y<h.children.length;y++){var m=h.children[y];if(a(p,m.region)){l(m,p);return}}for(var b=n(p),y=0;y<h.children.length;y++){var m=h.children[y];a(m.region,p)&&(b.children.push(m),h.children.splice(y,1),y--)}h.children.push(b)}for(var o=0;o<t.regions.length;o++){var s=t.regions[o];s.length<3||l(i,s)}function u(h,p){for(var y=0,m=h[h.length-1][0],b=h[h.length-1][1],_=[],w=0;w<h.length;w++){var x=h[w][0],M=h[w][1];_.push([x,M]),y+=M*m-x*b,m=x,b=M}var A=y<0;return A!==p&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var f=[];function c(h){var p=[u(h.region,!1)];f.push(p);for(var y=0;y<h.children.length;y++)p.push(v(h.children[y]))}function v(h){for(var p=0;p<h.children.length;p++)c(h.children[p]);return u(h.region,!0)}for(var o=0;o<i.children.length;o++)c(i.children[o]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};XP.exports=Rhe});var KP=G((Yke,JP)=>{var zhe=zP(),Nhe=IP(),ZP=BP(),Ihe=GP(),Nv=VP(),$P=WP(),_i=!1,Iv=Nhe(),On;On={buildLog:function(e){return e===!0?_i=zhe():e===!1&&(_i=!1),_i===!1?!1:_i.list},epsilon:function(e){return Iv.epsilon(e)},segments:function(e){var r=ZP(!0,Iv,_i);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=ZP(!1,Iv,_i);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Nv.union(e.combined,_i),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Nv.intersect(e.combined,_i),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Nv.difference(e.combined,_i),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Nv.differenceRev(e.combined,_i),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Nv.xor(e.combined,_i),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Ihe(e.segments,Iv,_i),inverted:e.inverted}},polygonFromGeoJSON:function(e){return $P.toPolygon(On,e)},polygonToGeoJSON:function(e){return $P.fromPolygon(On,Iv,e)},union:function(e,r){return Fv(e,r,On.selectUnion)},intersect:function(e,r){return Fv(e,r,On.selectIntersect)},difference:function(e,r){return Fv(e,r,On.selectDifference)},differenceRev:function(e,r){return Fv(e,r,On.selectDifferenceRev)},xor:function(e,r){return Fv(e,r,On.selectXor)}};function Fv(e,r,t){var a=On.segments(e),n=On.segments(r),i=On.combine(a,n),l=t(i);return On.polygon(l)}typeof window=="object"&&(window.PolyBool=On);JP.exports=On});var QP=G((Gke,jP)=>{jP.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!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],v=t[u+a][1],h=t[f+a][0],p=t[f+a][1],y=v>l!=p>l&&i<(h-c)*(l-v)/(p-v)+c;y&&(o=!o)}return o}});var i4=G((Uke,eR)=>{"use strict";var n4=o1().dot,um=(Et(),Ne(It)).BADNUM,fm=eR.exports={};fm.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;o<t.length;o++)a=Math.min(a,t[o][0]),n=Math.max(n,t[o][0]),i=Math.min(i,t[o][1]),l=Math.max(l,t[o][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,y){var m=p[0],b=p[1];return!(m===um||m<a||m>n||b===um||b<i||b>l||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===um||m<a||m>n||b===um||b<i||b>l)return!1;var _=t.length,w=t[0][0],x=t[0][1],M=0,A,k,S,D,E;for(A=1;A<_;A++)if(k=w,S=x,w=t[A][0],x=t[A][1],D=Math.min(k,w),!(m<D||m>Math.max(k,w)||b>Math.max(S,x)))if(b<Math.min(S,x))m!==D&&M++;else{if(w===k?E=b:E=S+(m-k)*(x-S)/(w-k),b===E)return!(A===1&&y);b<=E&&m!==D&&M++}return M%2===1}var v=!0,h=t[0];for(o=1;o<t.length;o++)if(h[0]!==t[o][0]||h[1]!==t[o][1]){v=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:l,pts:t,contains:s?f:c,isRect:s,degenerate:v}};fm.isSegmentBent=function(r,t,a,n){var i=r[t],l=[r[a][0]-i[0],r[a][1]-i[1]],o=n4(l,l),s=Math.sqrt(o),u=[-l[1]/s,l[0]/s],f,c,v;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],v=n4(c,l),v<0||v>o||Math.abs(n4(c,u))>n)return!0;return!1};fm.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(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||fm.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 o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var rR={};ht(rR,{BENDPX:()=>Fhe,MINSELECT:()=>Hhe,SELECTDELAY:()=>Ohe,SELECTID:()=>Bhe});var Fhe,Hhe,Ohe,Bhe,tR=lt(()=>{"use strict";Fhe=1.5,Hhe=12,Ohe=100,Bhe="-select"});var MR=G((Vke,TR)=>{"use strict";var aR=KP(),Yhe=QP(),Bv=Ar(),Ghe=$r().dashStyle,Hv=kr(),Uhe=bi(),Vhe=Wi().makeEventData,Xv=nc(),Xhe=Xv.freeMode,Whe=Xv.rectMode,Yv=Xv.drawMode,u4=Xv.openMode,f4=Xv.selectMode,nR=Jo(),iR=(Lv(),Ne(Cv)),fR=Zp(),cR=Io().clearOutline,vR=Wo(),l4=vR.handleEllipse,Zhe=vR.readPaths,$he=Vp().newShapes,Jhe=Dx(),Khe=a4().activateLastSelection,vm=qe(),jhe=vm.sorterAsc,dR=i4(),Ov=b1(),wi=fa().getFromId,Qhe=Ip(),e1e=lm().redrawReglTraces,dm=(tR(),Ne(rR)),ql=dm.MINSELECT,r1e=dR.filter,c4=dR.tester,v4=Bp(),lR=v4.p2r,t1e=v4.axValue,a1e=v4.getTransform;function d4(e){return e.subplot!==void 0}function n1e(e,r,t,a,n){var i=!d4(a),l=Xhe(n),o=Whe(n),s=u4(n),u=Yv(n),f=f4(n),c=n==="drawline",v=n==="drawcircle",h=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=a1e(w),M=r-_.left,A=t-_.top;y._calcInverseTransform(p);var k=vm.apply3DTransform(y._invTransform)(M,A);M=k[0],A=k[1];var S=y._invScaleX,D=y._invScaleY,E=M,R=A,N="M"+M+","+A,O=a.xaxes[0],F=a.yaxes[0],I=O._length,Y=F._length,B=e.altKey&&!(Yv(n)&&s),U,X,W,V,J,re,ne;pR(e,p,a),l&&(U=r1e([[M,A]],dm.BENDPX));var de=b.selectAll("path.select-outline-"+w.id).data([1]),K=u?y.newshape:y.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var ye=u&&!s?K.fillcolor:"rgba(0,0,0,0)",oe=K.line.color||(i?Hv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":Ghe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Hv.stroke,oe).call(Hv.fill,ye).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var Ce=b.append("path").attr("class","zoombox-corners").style({fill:Hv.background,stroke:Hv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var se=b.select(".label-temp");se.empty()&&(se=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var fe=y._uid+dm.SELECTID,Te=[],Fe=hm(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Me=O._id,Ae=F._id;xR(p,Me,Ae,Fe);for(var Le=(p.layout||{}).selections||[],ke=[],ze=!1,Se=0;Se<Le.length;Se++){var Ue=y.selections[Se];!Ue||Ue.xref!==Me||Ue.yref!==Ae?ke.push(Le[Se]):ze=!0}ze&&(p._fullLayout._noEmitSelectedAtStart=!0,Bv.call("_guiRelayout",p,{selections:ke}))}});var be=g1e(a);a.moveFn=function(Me,Ae){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),E=Math.max(0,Math.min(I,S*Me+M)),R=Math.max(0,Math.min(Y,D*Ae+A));var Le=Math.abs(E-M),ke=Math.abs(R-A);if(o){var ze,Se,Ue;if(f){var Ke=y.selectdirection;switch(Ke==="any"?ke<Math.min(Le*.6,ql)?ze="h":Le<Math.min(ke*.6,ql)?ze="v":ze="d":ze=Ke,ze){case"h":Se=v?Y/2:0,Ue=Y;break;case"v":Se=v?I/2:0,Ue=I;break}}if(u)switch(y.newshape.drawdirection){case"vertical":ze="h",Se=v?Y/2:0,Ue=Y;break;case"horizontal":ze="v",Se=v?I/2:0,Ue=I;break;case"ortho":Le<ke?(ze="h",Se=A,Ue=R):(ze="v",Se=M,Ue=E);break;default:ze="d"}ze==="h"?(V=h?l4(v,[E,Se],[E,Ue]):[[M,Se],[M,Ue],[E,Ue],[E,Se]],V.xmin=h?E:Math.min(M,E),V.xmax=h?E:Math.max(M,E),V.ymin=Math.min(Se,Ue),V.ymax=Math.max(Se,Ue),Ce.attr("d","M"+V.xmin+","+(A-ql)+"h-4v"+2*ql+"h4ZM"+(V.xmax-1)+","+(A-ql)+"h4v"+2*ql+"h-4Z")):ze==="v"?(V=h?l4(v,[Se,R],[Ue,R]):[[Se,A],[Se,R],[Ue,R],[Ue,A]],V.xmin=Math.min(Se,Ue),V.xmax=Math.max(Se,Ue),V.ymin=h?R:Math.min(A,R),V.ymax=h?R:Math.max(A,R),Ce.attr("d","M"+(M-ql)+","+V.ymin+"v-4h"+2*ql+"v4ZM"+(M-ql)+","+(V.ymax-1)+"v4h"+2*ql+"v-4Z")):ze==="d"&&(V=h?l4(v,[M,A],[E,R]):[[M,A],[M,R],[E,R],[E,A]],V.xmin=Math.min(M,E),V.xmax=Math.max(M,E),V.ymin=Math.min(A,R),V.ymax=Math.max(A,R),Ce.attr("d","M0,0Z"))}else l&&(U.addPt([E,R]),V=U.filtered);if(a.selectionDefs&&a.selectionDefs.length?(W=mR(a.mergedPolygons,V,B),V.subtract=B,X=h4(a.selectionDefs.concat([V]))):(W=[V],X=c4(V)),fR(gR(W,s),de,a),f){var er=s4(p,!1),De=er.eventData?er.eventData.points.slice():[];er=s4(p,!1,X,Fe,a),X=er.selectionTesters,ne=er.eventData;var Ye;U?Ye=U.filtered:Ye=_R(W),Ov.throttle(fe,dm.SELECTDELAY,function(){Te=bR(X,Fe);for(var rr=Te.slice(),te=0;te<De.length;te++){for(var pe=De[te],Ve=!1,vr=0;vr<rr.length;vr++)if(rr[vr].curveNumber===pe.curveNumber&&rr[vr].pointNumber===pe.pointNumber){Ve=!0;break}Ve||rr.push(pe)}rr.length&&(ne||(ne={}),ne.points=rr),be(ne,Ye),b1e(p,ne)})}},a.clickFn=function(Me,Ae){if(Ce.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=y.clickmode;Ov.done(fe).then(function(){if(Ov.clear(fe),Me===2){for(de.remove(),J=0;J<Fe.length;J++)re=Fe[J],re._module.selectPoints(re,!1);if(Uv(p,Fe),Gv(a),m4(p),Fe.length){var ke=Fe[0].xaxis,ze=Fe[0].yaxis;if(ke&&ze){for(var Se=[],Ue=p._fullLayout.selections,Ke=0;Ke<Ue.length;Ke++){var er=Ue[Ke];er&&(er.xref!==ke._id||er.yref!==ze._id)&&Se.push(er)}Se.length<Ue.length&&(p._fullLayout._noEmitSelectedAtStart=!0,Bv.call("_guiRelayout",p,{selections:Se}))}}}else Le.indexOf("select")>-1&&hR(Ae,p,a.xaxes,a.yaxes,a.subplot,a,de),Le==="event"&&Vv(p,void 0);Uhe.click(p,Ae,w.id)}).catch(vm.error)}},a.doneFn=function(){Ce.remove(),Ov.done(fe).then(function(){Ov.clear(fe),!m&&V&&a.selectionDefs&&(V.subtract=B,a.selectionDefs.push(V),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(m||u)&&Gv(a,m),a.doneFnCompleted&&a.doneFnCompleted(Te),f&&Vv(p,ne)}).catch(vm.error)}}function hR(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,h,p,y,m,b,_,w,x,M;if(u1e(o)){pR(e,r,i),v=hm(r,t,a,n);var A=f1e(o,v),k=A.pointNumbers.length>0;if(k?c1e(v,A):v1e(v)&&(_=sR(A))){for(l&&l.remove(),M=0;M<v.length;M++)h=v[M],h._module.selectPoints(h,!1);Uv(r,v),Gv(i),f&&m4(r)}else{w=e.shiftKey&&(_!==void 0?_:sR(A)),p=i1e(A.pointNumber,A.searchInfo,w);var S=i.selectionDefs.concat([p]);for(y=h4(S,y),M=0;M<v.length;M++)if(m=v[M]._module.selectPoints(v[M],y),b=yR(m,v[M]),c.length)for(var D=0;D<b.length;D++)c.push(b[D]);else c=b;if(x={points:c},Uv(r,v,x),p&&i&&i.selectionDefs.push(p),l){var E=i.mergedPolygons,R=u4(i.dragmode);fR(gR(E,R),l,i)}f&&Vv(r,x)}}}function i1e(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function o4(e){return"pointNumber"in e&&"searchInfo"in e}function l1e(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,l=n.cd[0].trace.index;return l===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function h4(e){if(!e.length)return;for(var r=[],t=o4(e[0])?0:e[0][0][0],a=t,n=o4(e[0])?0:e[0][0][1],i=n,l=0;l<e.length;l++)if(o4(e[l]))r.push(l1e(e[l]));else{var o=c4(e[l]);o.subtract=!!e[l].subtract,r.push(o),t=Math.min(t,o.xmin),a=Math.max(a,o.xmax),n=Math.min(n,o.ymin),i=Math.max(i,o.ymax)}function s(u,f,c,v){for(var h=!1,p=0;p<r.length;p++)r[p].contains(u,f,c,v)&&(h=!r[p].subtract);return h}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function pR(e,r,t){var a=r._fullLayout,n=t.plotinfo,i=t.dragmode,l=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,o=(e.shiftKey||e.altKey)&&!(Yv(i)&&u4(i));l&&o&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!o||!n.selection)&&Gv(t),l||(cR(r),a._lastSelectedSubplot=n.id)}function o1e(e){return e._fullLayout._activeShapeIndex>=0}function s1e(e){return e._fullLayout._activeSelectionIndex>=0}function Gv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;o1e(n)&&n._fullLayout._deactivateShape(n),s1e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Yv(t),s=f4(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=$he(u,e)),f&&Bv.call("_guiRelayout",n,{shapes:f});var c;s&&!d4(e)&&(c=Jhe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Bv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Khe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function oR(e){return e._id}function hm(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(oR),l=t.map(oR),o,s,u;for(u=0;u<e.calcdata.length;u++)if(o=e.calcdata[u],s=o[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(d4({subplot:a})&&(s.subplot===a||s.geo===a))n.push(cm(s._module,o,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[l[0]]){var f=cm(s._module,o,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=cm(s._module,o,r[0],t[0]);n.push(c)}else{if(i.indexOf(s.xaxis)===-1&&(!s._xA||!s._xA.overlaying)||l.indexOf(s.yaxis)===-1&&(!s._yA||!s._yA.overlaying))continue;n.push(cm(s._module,o,wi(e,s.xaxis),wi(e,s.yaxis)))}return n}function cm(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function u1e(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function f1e(e,r){var t=e[0],a=-1,n=[],i,l;for(l=0;l<r.length;l++)if(i=r[l],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 sR(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 c1e(e,r){var t=[],a,n,i,l;for(l=0;l<e.length;l++)a=e[l],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(l=0;l<r.pointNumbers.length;l++)if(n.selectedpoints.indexOf(r.pointNumbers[l])<0)return!1;return!0}return!1}function v1e(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 Uv(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 l=t.points||[];for(a=0;a<r.length;a++)n=r[a].cd[0].trace,n._input.selectedpoints=n.selectedpoints=[];for(var o=0;o<l.length;o++){var s=l[o],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;d1e(e,r)}function d1e(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;Bv.traceIs(i[0].trace,"regl")&&(t=!0);var l=n._module,o=l.styleOnSelect||l.style;o&&(o(e,i,i[0].node3),i[0].nodeRangePlot3&&o(e,i,i[0].nodeRangePlot3))}t&&(Qhe(e),e1e(e))}function mR(e,r,t){for(var a=t?aR.difference:aR.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),l=0;l<i.length;l++){var o=i[l];o.subtract=p4(o,i.slice(0,l))}return i}function yR(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Vhe(e[n],a,t);return e}function gR(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 bR(e,r){for(var t=[],a,n=[],i,l=0;l<r.length;l++){var o=r[l];i=o._module.selectPoints(o,e),n.push(i),a=yR(i,o),t=t.concat(a)}return t}function s4(e,r,t,a,n){var i=!!a,l,o,s;n&&(l=n.plotinfo,o=n.xaxes[0]._id,s=n.yaxes[0]._id);var u=[],f=[],c=uR(e),v=e._fullLayout;if(l){var h=v._zoomlayer,p=v.dragmode,y=Yv(p),m=f4(p);if(y||m){var b=wi(e,o,"x"),_=wi(e,s,"y");if(b&&_){var w=h.selectAll(".select-outline-"+l.id);if(w&&e._fullLayout._outlining&&w.length){for(var x=w[0][0],M=x.getAttribute("d"),A=Zhe(M,e,l),k=[],S=0;S<A.length;S++){for(var D=A[S],E=[],R=0;R<D.length;R++)E.push([Ko(b,D[R][1]),Ko(_,D[R][2])]);E.xref=o,E.yref=s,E.subtract=p4(E,k),k.push(E)}c=c.concat(k)}}}}var N=o&&s?[o+s]:v._subplots.cartesian;h1e(e);for(var O={},F=0;F<N.length;F++){var I=N[F],Y=I.indexOf("y"),B=I.slice(0,Y),U=I.slice(Y),X=o&&s?t:void 0;if(X=m1e(c,B,U,X),X){var W=a;if(!i){var V=wi(e,B,"x"),J=wi(e,U,"y");W=hm(e,[V],[J],I);for(var re=0;re<W.length;re++){var ne=W[re],de=ne.cd[0],K=de.trace;if(ne._module.name==="scattergl"&&!de.t.xpx){var ye=K.x,oe=K.y,Ce=K._length;de.t.xpx=[],de.t.ypx=[];for(var se=0;se<Ce;se++)de.t.xpx[se]=V.c2p(ye[se]),de.t.ypx[se]=J.c2p(oe[se])}ne._module.name==="splom"&&(O[K.uid]||(O[K.uid]=!0))}}var fe=bR(X,W);u=u.concat(fe),f=f.concat(W)}}var Te={points:u};Uv(e,f,Te);var Fe=v.clickmode,be=Fe.indexOf("event")>-1&&r;if(!l&&r){var Me=uR(e,!0);if(Me.length){var Ae=Me[0].xref,Le=Me[0].yref;if(Ae&&Le){var ke=_R(Me),ze=wR([wi(e,Ae,"x"),wi(e,Le,"y")]);ze(Te,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&Vv(e,Te),v._reselect=!1}if(!l&&v._deselect){var Se=v._deselect;o=Se.xref,s=Se.yref,p1e(o,s,f)||xR(e,o,s,a),be&&(Te.points.length?Vv(e,Te):m4(e)),v._deselect=!1}return{eventData:Te,selectionTesters:t}}function h1e(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 l=i[n.uid];l&&(l.selectBatch=[])}}}function p1e(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 xR(e,r,t,a){a=hm(e,[wi(e,r,"x")],[wi(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}Uv(e,a)}function m1e(e,r,t,a){for(var n,i=0;i<e.length;i++){var l=e[i];if(!(r!==l.xref||t!==l.yref))if(n){var o=!!l.subtract;n=mR(n,l,o),a=h4(n)}else n=[l],a=c4(l)}return a}function uR(e,r){for(var t=[],a=e._fullLayout,n=a.selections,i=n.length,l=0;l<i;l++)if(!(r&&l!==a._activeSelectionIndex)){var o=n[l];if(o){var s=o.xref,u=o.yref,f=wi(e,s,"x"),c=wi(e,u,"y"),v,h,p,y,m;if(o.type==="rect"){m=[];var b=Ko(f,o.x0),_=Ko(f,o.x1),w=Ko(c,o.y0),x=Ko(c,o.y1);m=[[b,w],[b,x],[_,x],[_,w]],v=Math.min(b,_),h=Math.max(b,_),p=Math.min(w,x),y=Math.max(w,x),m.xmin=v,m.xmax=h,m.ymin=p,m.ymax=y,m.xref=s,m.yref=u,m.subtract=!1,m.isRect=!0,t.push(m)}else if(o.type==="path")for(var M=o.path.split("Z"),A=[],k=0;k<M.length;k++){var S=M[k];if(S){S+="Z";var D=nR.extractPathCoords(S,iR.paramIsX,"raw"),E=nR.extractPathCoords(S,iR.paramIsY,"raw");v=1/0,h=-1/0,p=1/0,y=-1/0,m=[];for(var R=0;R<D.length;R++){var N=Ko(f,D[R]),O=Ko(c,E[R]);m.push([N,O]),v=Math.min(N,v),h=Math.max(N,h),p=Math.min(O,p),y=Math.max(O,y)}m.xmin=v,m.xmax=h,m.ymin=p,m.ymax=y,m.xref=s,m.yref=u,m.subtract=p4(m,A),A.push(m),t.push(m)}}}}return t}function p4(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Yhe(e[i],n)){t=!t;break}return t}function Ko(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function _R(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 y1e(t)}function y1e(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 wR(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var l=e[i],o=l._id,s=o.charAt(0);if(t.isRect){a||(a={});var u=t[s+"min"],f=t[s+"max"];u!==void 0&&f!==void 0&&(a[o]=[lR(l,u),lR(l,f)].sort(jhe))}else n||(n={}),n[o]=t.map(t1e(l))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function g1e(e){var r=e.plotinfo;return r.fillRangeItems||wR(e.xaxes.concat(e.yaxes))}function b1e(e,r){e.emit("plotly_selecting",r)}function Vv(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function m4(e){e.emit("plotly_deselect",null)}TR.exports={reselect:s4,prepSelect:n1e,clearOutline:cR,clearSelectionsCache:Gv,selectOnClick:hR}});var y4=G((Xke,AR)=>{"use strict";AR.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 Wv={};ht(Wv,{axisRefDescription:()=>x1e});function x1e(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 Zv=lt(()=>{"use strict"});var cc=G((Zke,LR)=>{"use strict";var kR=y4(),CR=_a(),pm=(Aa(),Ne(Ma)),_1e=mt().templatedArray,Wke=(Zv(),Ne(Wv));LR.exports=_1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:CR({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:kR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:kR.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",pm.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",pm.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",pm.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",pm.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:CR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var mm={};ht(mm,{PTS_LINESONLY:()=>w1e,eventDataKeys:()=>k1e,maxScreensAway:()=>A1e,minTolerance:()=>T1e,toleranceGrowth:()=>M1e});var w1e,T1e,M1e,A1e,k1e,ym=lt(()=>{"use strict";w1e=20,T1e=.2,M1e=10,A1e=20,k1e=[]});var g4=G(($ke,SR)=>{"use strict";SR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var ji=G((Jke,IR)=>{"use strict";var qR=Xi().axisHoverFormat,{hovertemplateAttrs:C1e,texttemplateAttrs:L1e,templatefallbackAttrs:DR}=Wn(),ER=iv(),S1e=_a(),PR=Yi().dash,q1e=Yi().pattern,D1e=$r(),E1e=(ym(),Ne(mm)),$v=Mt().extendFlat,P1e=g4();function RR(e){return{valType:"any",dflt:0,editType:"calc"}}function zR(e){return{valType:"any",editType:"calc"}}function NR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}IR.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:RR("x"),yperiod:RR("y"),xperiod0:zR("x0"),yperiod0:zR("y0"),xperiodalignment:NR("x"),yperiodalignment:NR("y"),xhoverformat:qR("x"),yhoverformat:qR("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:L1e(),texttemplatefallback:DR({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:C1e({},{keys:E1e.eventDataKeys}),hovertemplatefallback:DR(),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:$v({},PR,{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:P1e(!0),fillgradient:$v({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:q1e,marker:$v({symbol:{valType:"enumerated",values:D1e.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:$v({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:$v({},PR,{arrayOk:!0}),editType:"calc"},ER("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"},ER("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:S1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var b4=G((jke,OR)=>{"use strict";var FR=cc(),HR=ji().line,R1e=Yi().dash,gm=Mt().extendFlat,z1e=Bi().overrideAll,N1e=mt().templatedArray,Kke=(Zv(),Ne(Wv));OR.exports=z1e(N1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:gm({},FR.xref,{}),yref:gm({},FR.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:HR.color,width:gm({},HR.width,{min:1,dflt:1}),dash:gm({},R1e,{dflt:"dot"})}}),"arraydraw","from-root")});var UR=G((Qke,GR)=>{"use strict";var BR=qe(),bm=Qr(),I1e=mi(),F1e=b4(),YR=Jo();GR.exports=function(r,t){I1e(r,t,{name:"selections",handleItemDefaults:H1e});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 H1e(e,r,t){function a(A,k){return BR.coerce(e,r,F1e,A,k)}var n=a("path"),i=n?"path":"rect",l=a("type",i),o=l!=="path";o&&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},v,h,p,y=bm.coerceRef(e,r,c,f);if(v=bm.getFromId(c,y),v._selectionIndices.push(r._index),p=YR.rangeToShapePosition(v),h=YR.shapePositionToRange(v),o){var m=f+"0",b=f+"1",_=e[m],w=e[b];e[m]=h(e[m],!0),e[b]=h(e[b],!0),bm.coercePosition(r,c,a,y,m),bm.coercePosition(r,c,a,y,b);var x=r[m],M=r[b];x!==void 0&&M!==void 0&&(r[m]=p(x),r[b]=p(M),e[m]=_,e[b]=w)}}o&&BR.noneOrAll(e,r,["x0","x1","y0","y1"])}});var XR=G((eCe,VR)=>{"use strict";VR.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 Jv=G((rCe,$R)=>{"use strict";var O1e=Ar(),WR=qe(),ZR=fa();$R.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=O1e.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),h=0;h<i.length;h++){var p=i[h];if(WR.isPlainObject(p)){var y=ZR.cleanId(p.xref,"x",!1),m=ZR.cleanId(p.yref,"y",!1),b=o.x.test(y),_=o.y.test(m);if(b||_){v||WR.pushUnique(n._basePlotModules,l);var w=!1;b&&u.indexOf(y)===-1&&(u.push(y),w=!0),_&&f.indexOf(m)===-1&&(f.push(m),w=!0),w&&b&&_&&c.push(y+m)}}}}}});var vc=G((tCe,KR)=>{"use strict";var JR=a4(),Kv=MR();KR.exports={moduleType:"component",name:"selections",layoutAttributes:b4(),supplyLayoutDefaults:UR(),supplyDrawNewSelectionDefaults:XR(),includeBasePlot:Jv()("selections"),draw:JR.draw,drawOne:JR.drawOne,reselect:Kv.reselect,prepSelect:Kv.prepSelect,clearOutline:Kv.clearOutline,clearSelectionsCache:Kv.clearSelectionsCache,selectOnClick:Kv.selectOnClick}});var yz=G((aCe,mz)=>{"use strict";var A4=Er(),Ti=qe(),jR=Ti.numberFormat,B1e=ex(),xm=Ar(),lz=Ti.strTranslate,Y1e=pa(),_4=kr(),jo=$r(),G1e=bi(),QR=Qr(),U1e=Vo(),V1e=$i(),oz=nc(),_m=oz.selectingOrDrawing,X1e=oz.freeMode,W1e=(Va(),Ne(Ua)).FROM_TL,Z1e=Ip(),$1e=lm().redrawReglTraces,J1e=Jt(),w4=fa().getFromId,K1e=vc().prepSelect,j1e=vc().clearOutline,Q1e=vc().selectOnClick,x4=$x(),k4=(Aa(),Ne(Ma)),ez=k4.MINDRAG,kn=k4.MINZOOM,rz=!0;function epe(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,v,h,p,y,m,b,_,w,x,M,A,k,S,D,E,R,N,O,F,I,Y,B;t+=r.yaxis._shift;function U(){if(c=r.xaxis,v=r.yaxis,w=c._length,x=v._length,b=c._offset,_=v._offset,h={},h[c._id]=c,p={},p[v._id]=v,l&&o)for(var le=r.overlays,ge=0;ge<le.length;ge++){var Ie=le[ge].xaxis;h[Ie._id]=Ie;var Xe=le[ge].yaxis;p[Xe._id]=Xe}y=iz(h),m=iz(p),k=tz(y,o),S=tz(m,l),D=!S&&!k,A=nz(e,e._fullLayout._axisMatchGroups,h,p),M=nz(e,e._fullLayout._axisConstraintGroups,h,p,A);var He=M.isSubplotConstrained||A.isSubplotConstrained;E=o||He,R=l||He;var Ze=e._fullLayout;N=Ze._has("scattergl"),O=Ze._has("splom"),F=Ze._has("svg")}U();var X=ape(S+k,e._fullLayout.dragmode,u),W=uz(r,l+o+"drag",X,t,a,n,i);if(D&&!u)return W.onmousedown=null,W.style.pointerEvents="none",W;var V={element:W,gd:e,plotinfo:r};V.prepFn=function(le,ge,Ie){var Xe=V.dragmode,He=e._fullLayout.dragmode;He!==Xe&&(V.dragmode=He),U(),Y=e._fullLayout._invScaleX,B=e._fullLayout._invScaleY,D||(u?le.shiftKey?He==="pan"?He="zoom":_m(He)||(He="pan"):le.ctrlKey&&(He="pan"):He="pan"),X1e(He)?V.minDrag=1:V.minDrag=void 0,_m(He)?(V.xaxes=y,V.yaxes=m,K1e(le,ge,Ie,V,He)):(V.clickFn=re,_m(Xe)&&J(),D||(He==="zoom"?(V.moveFn=Me,V.doneFn=Le,V.minDrag=1,be(le,ge,Ie)):He==="pan"&&(V.moveFn=er,V.doneFn=te))),e._fullLayout._redrag=function(){var Ze=e._dragdata;if(Ze&&Ze.element===W){var Je=e._fullLayout.dragmode;_m(Je)||(U(),pe([0,0,w,x]),V.moveFn(Ze.dx,Ze.dy))}}};function J(){V.plotinfo.selection=!1,j1e(e)}function re(le,ge){var Ie=V.gd;if(Ie._fullLayout._activeShapeIndex>=0){Ie._fullLayout._deactivateShape(Ie);return}var Xe=Ie._fullLayout.clickmode;if(M4(Ie),le===2&&!f&&rr(),u)Xe.indexOf("select")>-1&&Q1e(ge,Ie,y,m,r.id,V),Xe.indexOf("event")>-1&&G1e.click(Ie,ge,r.id);else if(le===1&&f){var He=l?v:c,Ze=l==="s"||o==="w"?0:1,Je=He._name+".range["+Ze+"]",mr=rpe(He,Ze),_r="left",Pe="middle";if(He.fixedrange)return;l?(Pe=l==="n"?"top":"bottom",He.side==="right"&&(_r="right")):o==="e"&&(_r="right"),Ie._context.showAxisRangeEntryBoxes&&A4.select(W).call(Y1e.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(mr),fill:He.tickfont?He.tickfont.color:"#444",horizontalAlign:_r,verticalAlign:Pe}).on("edit",function($e){var Ee=He.d2r($e);Ee!==void 0&&xm.call("_guiRelayout",Ie,Je,Ee)})}}V1e.init(V);var ne,de,K,ye,oe,Ce,se,fe,Te,Fe;function be(le,ge,Ie){var Xe=W.getBoundingClientRect();ne=ge-Xe.left,de=Ie-Xe.top,e._fullLayout._calcInverseTransform(e);var He=Ti.apply3DTransform(e._fullLayout._invTransform)(ne,de);ne=He[0],de=He[1],K={l:ne,r:ne,w:0,t:de,b:de,h:0},ye=e._hmpixcount?e._hmlumcount/e._hmpixcount:_4.luminosity(e._fullLayout.plot_bgcolor),oe="M0,0H"+w+"V"+x+"H0V0",Ce=!1,se="xy",Fe=!1,fe=fz(s,ye,b,_,oe),Te=cz(s,b,_)}function Me(le,ge){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,Y*le+ne)),Xe=Math.max(0,Math.min(x,B*ge+de)),He=Math.abs(Ie-ne),Ze=Math.abs(Xe-de);K.l=Math.min(ne,Ie),K.r=Math.max(ne,Ie),K.t=Math.min(de,Xe),K.b=Math.max(de,Xe);function Je(){se="",K.r=K.l,K.t=K.b,Te.attr("d","M0,0Z")}if(M.isSubplotConstrained)He>kn||Ze>kn?(se="xy",He/w>Ze/x?(Ze=He*x/w,de>Xe?K.t=de-Ze:K.b=de+Ze):(He=Ze*w/x,ne>Ie?K.l=ne-He:K.r=ne+He),Te.attr("d",wm(K))):Je();else if(A.isSubplotConstrained)if(He>kn||Ze>kn){se="xy";var mr=Math.min(K.l/w,(x-K.b)/x),_r=Math.max(K.r/w,(x-K.t)/x);K.l=mr*w,K.r=_r*w,K.b=(1-mr)*x,K.t=(1-_r)*x,Te.attr("d",wm(K))}else Je();else!S||Ze<Math.min(Math.max(He*.6,ez),kn)?He<ez||!k?Je():(K.t=0,K.b=x,se="x",Te.attr("d",npe(K,de))):!k||He<Math.min(Ze*.6,kn)?(K.l=0,K.r=w,se="y",Te.attr("d",ipe(K,ne))):(se="xy",Te.attr("d",wm(K)));K.w=K.r-K.l,K.h=K.b-K.t,se&&(Fe=!0),e._dragged=Fe,vz(fe,Te,K,oe,Ce,ye),Ae(),e.emit("plotly_relayouting",I),Ce=!0}function Ae(){I={},(se==="xy"||se==="x")&&(T4(y,K.l/w,K.r/w,I,M.xaxes),De("x",I)),(se==="xy"||se==="y")&&(T4(m,(x-K.b)/x,(x-K.t)/x,I,M.yaxes),De("y",I))}function Le(){Ae(),M4(e),te(),hz(e)}var ke=[0,0,w,x],ze=null,Se=k4.REDRAWDELAY,Ue=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Ke(le){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(J(),e._transitioningWithDuration){le.preventDefault(),le.stopPropagation();return}U(),clearTimeout(ze);var ge=-le.deltaY;if(isFinite(ge)||(ge=le.wheelDelta/10),!isFinite(ge)){Ti.log("Did not find wheel motion attributes: ",le);return}e._fullLayout._replotting=!0;var Ie=Math.exp(-Math.min(Math.max(ge,-20),20)/200),Xe=Ue.draglayer.select(".nsewdrag").node().getBoundingClientRect(),He=(le.clientX-Xe.left)/Xe.width,Ze=(Xe.bottom-le.clientY)/Xe.height,Je;function mr(_r,Pe,$e){if(_r.fixedrange)return;var Ee=Ti.simpleMap(_r.range,_r.r2l),tr=Ee[0]+(Ee[1]-Ee[0])*Pe;function pr(yr){return _r.l2r(tr+(yr-tr)*$e)}_r.range=Ee.map(pr)}if(E){for(o||(He=.5),Je=0;Je<y.length;Je++)mr(y[Je],He,Ie);De("x"),ke[2]*=Ie,ke[0]+=ke[2]*He*(1/Ie-1)}if(R){for(l||(Ze=.5),Je=0;Je<m.length;Je++)mr(m[Je],Ze,Ie);De("y"),ke[3]*=Ie,ke[1]+=ke[3]*(1-Ze)*(1/Ie-1)}pe(ke),Ye(),e.emit("plotly_relayouting",I),ze=setTimeout(function(){e._fullLayout&&(ke=[0,0,w,x],te())},Se),le.preventDefault()}l.length*o.length!==1&&pz(W,Ke);function er(le,ge){if(le=le*Y,ge=ge*B,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,k==="ew"||S==="ns"){var Ie=k?-le:0,Xe=S?-ge:0;if(A.isSubplotConstrained){if(k&&S){var He=(le/w-ge/x)/2;le=He*w,ge=-He*x,Ie=-le,Xe=-ge}S?Ie=-Xe*w/x:Xe=-Ie*x/w}k&&(az(y,le),De("x")),S&&(az(m,ge),De("y")),pe([Ie,Xe,w,x]),Ye(),e.emit("plotly_relayouting",I);return}function Ze(pr,yr,cr){for(var ae=1-yr,me,Re,Be=0;Be<pr.length;Be++){var Kr=pr[Be];if(!Kr.fixedrange){me=Kr,Re=Kr._rl[ae]+(Kr._rl[yr]-Kr._rl[ae])/tpe(cr/Kr._length);var dt=Kr.l2r(Re);dt!==!1&&dt!==void 0&&(Kr.range[yr]=dt)}}return me._length*(me._rl[yr]-Re)/(me._rl[yr]-me._rl[ae])}var Je=k==="w"==(S==="n")?1:-1;if(k&&S&&(M.isSubplotConstrained||A.isSubplotConstrained)){var mr=(le/w+Je*ge/x)/2;le=mr*w,ge=Je*mr*x}var _r,Pe;if(k==="w"?le=Ze(y,0,le):k==="e"?le=Ze(y,1,-le):k||(le=0),S==="n"?ge=Ze(m,1,ge):S==="s"?ge=Ze(m,0,-ge):S||(ge=0),_r=k==="w"?le:0,Pe=S==="n"?ge:0,M.isSubplotConstrained&&!A.isSubplotConstrained||A.isSubplotConstrained&&k&&S&&Je>0){var $e;if(A.isSubplotConstrained||!k&&S.length===1){for($e=0;$e<y.length;$e++)y[$e].range=y[$e]._r.slice(),x4(y[$e],1-ge/x);le=ge*w/x,_r=le/2}if(A.isSubplotConstrained||!S&&k.length===1){for($e=0;$e<m.length;$e++)m[$e].range=m[$e]._r.slice(),x4(m[$e],1-le/w);ge=le*x/w,Pe=ge/2}}(!A.isSubplotConstrained||!S)&&De("x"),(!A.isSubplotConstrained||!k)&&De("y");var Ee=w-le,tr=x-ge;A.isSubplotConstrained&&!(k&&S)&&(k?(Pe=_r?0:le*x/w,tr=Ee*x/w):(_r=Pe?0:ge*w/x,Ee=tr*w/x)),pe([_r,Pe,Ee,tr]),Ye(),e.emit("plotly_relayouting",I)}function De(le,ge){for(var Ie=A.isSubplotConstrained?{x:m,y}[le]:A[le+"axes"],Xe=A.isSubplotConstrained?{x:y,y:m}[le]:[],He=0;He<Ie.length;He++){var Ze=Ie[He],Je=Ze._id,mr=A.xLinks[Je]||A.yLinks[Je],_r=Xe[0]||h[mr]||p[mr];_r&&(ge?(ge[Ze._name+".range[0]"]=ge[_r._name+".range[0]"],ge[Ze._name+".range[1]"]=ge[_r._name+".range[1]"]):Ze.range=_r.range.slice())}}function Ye(){var le=[],ge;function Ie(Je){for(ge=0;ge<Je.length;ge++)Je[ge].fixedrange||le.push(Je[ge]._id)}function Xe(Je,mr){for(ge=0;ge<Je.length;ge++){var _r=Je[ge],Pe=_r[mr],$e=Pe._id;!_r.fixedrange&&Pe.tickmode==="sync"&&!le.includes($e)&&le.push($e)}}for(E&&(Ie(y),Ie(M.xaxes),Ie(A.xaxes),Xe(r.overlays,"xaxis")),R&&(Ie(m),Ie(M.yaxes),Ie(A.yaxes),Xe(r.overlays,"yaxis")),I={},ge=0;ge<le.length;ge++){var He=le[ge],Ze=w4(e,He);QR.drawOne(e,Ze,{skipTitle:!0}),I[Ze._name+".range[0]"]=Ze.range[0],I[Ze._name+".range[1]"]=Ze.range[1]}QR.redrawComponents(e,le)}function rr(){if(!e._transitioningWithDuration){var le=e._context.doubleClick,ge=[];k&&(ge=ge.concat(y)),S&&(ge=ge.concat(m)),A.xaxes&&(ge=ge.concat(A.xaxes)),A.yaxes&&(ge=ge.concat(A.yaxes));var Ie={},Xe,He;if(le==="reset+autosize")for(le="autosize",He=0;He<ge.length;He++){Xe=ge[He];var Ze=Xe._rangeInitial0,Je=Xe._rangeInitial1,mr=Ze!==void 0||Je!==void 0;if(mr&&(Ze!==void 0&&Ze!==Xe.range[0]||Je!==void 0&&Je!==Xe.range[1])||!mr&&Xe.autorange!==!0){le="reset";break}}if(le==="autosize")for(He=0;He<ge.length;He++)Xe=ge[He],Xe.fixedrange||(Ie[Xe._name+".autorange"]=!0);else if(le==="reset"){for((k||M.isSubplotConstrained)&&(ge=ge.concat(M.xaxes)),S&&!M.isSubplotConstrained&&(ge=ge.concat(M.yaxes)),M.isSubplotConstrained&&(k?S||(ge=ge.concat(m)):ge=ge.concat(y)),He=0;He<ge.length;He++)if(Xe=ge[He],!Xe.fixedrange){var _r=Xe._name,Pe=Xe._autorangeInitial;Xe._rangeInitial0===void 0&&Xe._rangeInitial1===void 0?Ie[_r+".autorange"]=!0:Xe._rangeInitial0===void 0?(Ie[_r+".autorange"]=Pe,Ie[_r+".range"]=[null,Xe._rangeInitial1]):Xe._rangeInitial1===void 0?(Ie[_r+".range"]=[Xe._rangeInitial0,null],Ie[_r+".autorange"]=Pe):Ie[_r+".range"]=[Xe._rangeInitial0,Xe._rangeInitial1]}}e.emit("plotly_doubleclick",null),xm.call("_guiRelayout",e,Ie)}}function te(){pe([0,0,w,x]),Ti.syncOrAsync([J1e.previousPromises,function(){e._fullLayout._replotting=!1,xm.call("_guiRelayout",e,I)}],e)}function pe(le){var ge=e._fullLayout,Ie=ge._plots,Xe=ge._subplots.cartesian,He,Ze,Je,mr;if(O&&xm.subplotsRegistry.splom.drag(e),N){for(He=0;He<Xe.length;He++)if(Ze=Ie[Xe[He]],Je=Ze.xaxis,mr=Ze.yaxis,Ze._scene){Je.limitRange&&Je.limitRange(),mr.limitRange&&mr.limitRange();var _r=Ti.simpleMap(Je.range,Je.r2l),Pe=Ti.simpleMap(mr.range,mr.r2l);Ze._scene.update({range:[_r[0],Pe[0],_r[1],Pe[1]]})}}if((O||N)&&(Z1e(e),$1e(e)),F){var $e=le[2]/c._length,Ee=le[3]/v._length;for(He=0;He<Xe.length;He++){Ze=Ie[Xe[He]],Je=Ze.xaxis,mr=Ze.yaxis;var tr=(E||A.isSubplotConstrained)&&!Je.fixedrange&&h[Je._id],pr=(R||A.isSubplotConstrained)&&!mr.fixedrange&&p[mr._id],yr,cr,ae,me;if(tr?(yr=$e,ae=o||A.isSubplotConstrained?le[0]:hr(Je,yr)):A.xaHash[Je._id]?(yr=$e,ae=le[0]*Je._length/c._length):A.yaHash[Je._id]?(yr=Ee,ae=S==="ns"?-le[1]*Je._length/v._length:hr(Je,yr,{n:"top",s:"bottom"}[S])):(yr=Ve(Je,$e,Ee),ae=vr(Je,yr)),yr>1&&(Je.maxallowed!==void 0&&E===(Je.range[0]<Je.range[1]?"e":"w")||Je.minallowed!==void 0&&E===(Je.range[0]<Je.range[1]?"w":"e"))&&(yr=1,ae=0),pr?(cr=Ee,me=l||A.isSubplotConstrained?le[1]:hr(mr,cr)):A.yaHash[mr._id]?(cr=Ee,me=le[1]*mr._length/v._length):A.xaHash[mr._id]?(cr=$e,me=k==="ew"?-le[0]*mr._length/c._length:hr(mr,cr,{e:"right",w:"left"}[k])):(cr=Ve(mr,$e,Ee),me=vr(mr,cr)),cr>1&&(mr.maxallowed!==void 0&&R===(mr.range[0]<mr.range[1]?"n":"s")||mr.minallowed!==void 0&&R===(mr.range[0]<mr.range[1]?"s":"n"))&&(cr=1,me=0),!(!yr&&!cr)){yr||(yr=1),cr||(cr=1);var Re=Je._offset-ae/yr,Be=mr._offset-me/cr;Ze.clipRect.call(jo.setTranslate,ae,me).call(jo.setScale,yr,cr),Ze.plot.call(jo.setTranslate,Re,Be).call(jo.setScale,1/yr,1/cr),(yr!==Ze.xScaleFactor||cr!==Ze.yScaleFactor)&&(jo.setPointGroupScale(Ze.zoomScalePts,yr,cr),jo.setTextPointsScale(Ze.zoomScaleTxt,yr,cr)),jo.hideOutsideRangePoints(Ze.clipOnAxisFalseTraces,Ze),Ze.xScaleFactor=yr,Ze.yScaleFactor=cr}}}}function Ve(le,ge,Ie){return le.fixedrange?0:E&&M.xaHash[le._id]?ge:R&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[le._id]?Ie:0}function vr(le,ge){return ge?(le.range=le._r.slice(),x4(le,ge),hr(le,ge)):0}function hr(le,ge,Ie){return le._length*(1-ge)*W1e[Ie||le.constraintoward||"middle"]}return W}function sz(e,r,t,a){var n=Ti.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(U1e,a),n.node()}function uz(e,r,t,a,n,i,l){var o=sz(e,"rect",r,t);return A4.select(o).call(jo.setRect,a,n,i,l),o}function tz(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function rpe(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,jR("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,jR("."+String(n)+"g")(t))}function T4(e,r,t,a,n){for(var i=0;i<e.length;i++){var l=e[i];if(!l.fixedrange)if(l.rangebreaks){var o=l._id.charAt(0)==="y",s=o?1-r:r,u=o?1-t:t;a[l._name+".range[0]"]=l.l2r(l.p2l(s*l._length)),a[l._name+".range[1]"]=l.l2r(l.p2l(u*l._length))}else{var f=l._rl[0],c=l._rl[1]-f;a[l._name+".range[0]"]=l.l2r(f+c*r),a[l._name+".range[1]"]=l.l2r(f+c*t)}}if(n&&n.length){var v=(r+(1-t))/2;T4(n,v,1-v,a,[])}}function az(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,l=a.p2l(n+r)-a.p2l(n),o=a.p2l(i+r)-a.p2l(i),s=(l+o)/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 tpe(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function ape(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function fz(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",lz(t,a)).attr("d",n+"Z")}function cz(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:_4.background,stroke:_4.defaultLine,"stroke-width":1,opacity:0}).attr("transform",lz(r,t)).attr("d","M0,0Z")}function vz(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"),dz(e,r,n,i)}function dz(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 M4(e){A4.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function hz(e){rz&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long",e),rz=!1)}function npe(e,r){return"M"+(e.l-.5)+","+(r-kn-.5)+"h-3v"+(2*kn+1)+"h3ZM"+(e.r+.5)+","+(r-kn-.5)+"h3v"+(2*kn+1)+"h-3Z"}function ipe(e,r){return"M"+(r-kn-.5)+","+(e.t-.5)+"v-3h"+(2*kn+1)+"v3ZM"+(r-kn-.5)+","+(e.b+.5)+"v3h"+(2*kn+1)+"v-3Z"}function wm(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,kn)/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 nz(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,v=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p<r.length;p++){var y=r[p];for(s in t)if(y[s]){for(f in y)!(n&&(v[f]||h[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(l[f]=s);for(u in a)!(n&&(v[u]||h[u]))&&y[u]&&(i=!0)}for(u in a)if(y[u])for(c in y)!(n&&(v[c]||h[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(o[c]=u)}i&&(Ti.extendFlat(l,o),o={});var m={},b=[];for(f in l){var _=w4(e,f);b.push(_),m[_._id]=_}var w={},x=[];for(c in o){var M=w4(e,c);x.push(M),w[M._id]=M}return{xaHash:m,yaHash:w,xaxes:b,yaxes:x,xLinks:l,yLinks:o,isSubplotConstrained:i}}function pz(e,r){if(!B1e)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 iz(e){var r=[];for(var t in e)r.push(e[t]);return r}mz.exports={makeDragBox:epe,makeDragger:sz,makeRectDragger:uz,makeZoombox:fz,makeCorners:cz,updateZoombox:vz,xyCorners:wm,transitionZoombox:dz,removeZoombox:M4,showDoubleClickNotifier:hz,attachWheelEventHandler:pz}});var C4=G(Mm=>{"use strict";var lpe=Er(),Tm=bi(),ope=$i(),spe=Vo(),Qi=yz().makeDragBox,La=(Aa(),Ne(Ma)).DRAGGERSIZE;Mm.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){lpe.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=Qi(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Tm.hover(r,v,i)},Tm.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,ope.unhover(r,v))},r._context.showAxisDragHandles&&(Qi(r,l,o._offset-La,s._offset-La,La,La,"n","w"),Qi(r,l,o._offset+o._length,s._offset-La,La,La,"n","e"),Qi(r,l,o._offset-La,s._offset+s._length,La,La,"s","w"),Qi(r,l,o._offset+o._length,s._offset+s._length,La,La,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=La),Qi(r,l,o._offset+o._length*.1,f,o._length*.8,La,"","ew"),Qi(r,l,o._offset,f,o._length*.1,La,"","w"),Qi(r,l,o._offset+o._length*.9,f,o._length*.1,La,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=La),Qi(r,l,c,s._offset+s._length*.1,La,s._length*.8,"ns",""),Qi(r,l,c,s._offset+s._length*.9,La,s._length*.1,"s",""),Qi(r,l,c,s._offset,La,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Tm.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Tm.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Mm.updateFx(r)}};Mm.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";spe(r._draggers,t)}});var xz=G((iCe,bz)=>{"use strict";var gz=Ar();bz.exports=function(r){for(var t=gz.layoutArrayContainers,a=gz.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o<a.length;o++)if(l=r.match(a[o]),l&&l.index===0){i=l[0];break}if(i||(i=t[t.indexOf(n)]),!i)return!1;var s=r.slice(i.length);return s?(l=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),l?{array:i,index:Number(l[1]),property:l[3]||""}:!1):{array:i,index:"",property:""}}});var wz=G(Qv=>{"use strict";var upe=Es(),L4=l1(),jv=ko(),fpe=p5().sorterAsc,S4=Ar();Qv.containerArrayMatch=xz();var cpe=Qv.isAddVal=function(r){return r==="add"||upe(r)},_z=Qv.isRemoveVal=function(r){return r===null||r==="remove"};Qv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=S4.getComponentMethod(l,"supplyLayoutDefaults"),s=S4.getComponentMethod(l,"draw"),u=S4.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===L4||s===L4,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&jv.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(_z(h))t.set(null);else if(Array.isArray(h))t.set(h);else return jv.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(fpe),y=t.get(),m=y||[],b=i(v,l).get(),_=[],w=-1,x=m.length,M,A,k,S,D,E,R,N;for(M=0;M<p.length;M++){if(k=p[M],S=a[k],D=Object.keys(S),E=S[""],R=cpe(E),k<0||k>m.length-(R?0:1)){jv.warn("index out of range",l,k);continue}if(E!==void 0)D.length>1&&jv.warn("Insertion & removal are incompatible with edits to the same index.",l,k),_z(E)?_.push(k):R?(E==="add"&&(E={}),m.splice(k,0,E),b&&b.splice(k,0,{})):jv.warn("Unrecognized full object edit value",l,k,E),w===-1&&(w=k);else for(A=0;A<D.length;A++)N=l+"["+k+"].",i(m[k],D[A],N).set(S[D[A]])}for(M=_.length-1;M>=0;M--)m.splice(_[M],1),b&&b.splice(_[M],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(o(c,v),u!==L4){var O;if(w===-1)O=p;else{for(x=Math.max(m.length,x),O=[],M=0;M<p.length&&(k=p[M],!(k>=w));M++)O.push(k);for(M=w;M<x;M++)O.push(M)}for(M=0;M<O.length;M++)u(r,O[M])}else s(r);return!0}});var Sz=G(Mi=>{"use strict";var kz=Ur(),Cz=Ar(),_n=qe(),ed=Jt(),Lz=fa(),rd=Lz.cleanId,vpe=Lz.getFromTrace,q4=Cz.traceIs,dpe=["x","y","z"];Mi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&_n.log("Clearing previous rejected promises from queue."),e._promises=[]};Mi.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=(ed.subplotsRegistry.cartesian||{}).attrRegex,n=(ed.subplotsRegistry.polar||{}).attrRegex,i=(ed.subplotsRegistry.ternary||{}).attrRegex,l=(ed.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r<o.length;r++){var s=o[r];if(a&&a.test(s)){var u=e[s];u.anchor&&u.anchor!=="free"&&(u.anchor=rd(u.anchor)),u.overlaying&&(u.overlaying=rd(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,Am(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];_n.isPlainObject(c)&&(dc(c,"xref"),dc(c,"yref"))}var v=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<v;r++){var h=e.shapes[r];_n.isPlainObject(h)&&(dc(h,"xref",!0),dc(h,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var y=e.images[r];_n.isPlainObject(y)&&(dc(y,"xref"),dc(y,"yref"))}var m=e.legend;return m&&(m.x>3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Mi.cleanLayout(e.template.layout),e};function dc(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=rd(a,n,!0))}Mi.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"&&Mi.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=rd(t.xaxis,"x")),t.yaxis&&(t.yaxis=rd(t.yaxis,"y")),q4(t,"gl3d")&&t.scene&&(t.scene=ed.subplotsRegistry.gl3d.cleanId(t.scene)),!q4(t,"pie-like")&&!q4(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=Mz(t.textposition[a]);else t.textposition&&(t.textposition=Mz(t.textposition));var n=Cz.getModule(t);if(n&&n.colorbar){var i=n.colorbar.container,l=i?t[i]:t;l&&l.colorscale&&(l.colorscale==="YIGnBu"&&(l.colorscale="YlGnBu"),l.colorscale==="YIOrRd"&&(l.colorscale="YlOrRd"))}if(t.type==="surface"&&_n.isPlainObject(t.contours)){var o=["x","y","z"];for(a=0;a<o.length;a++){var s=t.contours[o[a]];_n.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=Tz(t.increasing),v=Tz(t.decreasing);if(c!==!1&&v!==!1){var h=hpe(c,v,u,f);h&&(t.name=h)}else(c||v)&&!t.name&&(t.name=c||v)}Am(t,"line")&&delete t.line,"marker"in t&&(Am(t.marker,"line")&&delete t.marker.line,Am(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function Tz(e){if(!_n.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function hpe(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 l=e.slice(0,i);return l.trim()}function Mz(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 Am(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}Mi.swapXYData=function(e){var r;if(_n.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);_n.swapAttrs(e,["error_?.copy_ystyle"]),a&&_n.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("+")}};Mi.coerceTraceIndices=function(e,r){if(kz(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++)_n.isIndex(r[a],e.data.length)?t.push(r[a]):_n.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};Mi.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,l=n[i-1],o=kz(l);if(o&&r===null){var s=n.slice(0,i-1).join("."),u=_n.nestedProperty(a,s).get();u.splice(l,1)}else o&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var ppe=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function Az(e){var r=e.search(ppe);if(r>0)return e.slice(0,r)}Mi.hasParent=function(e,r){for(var t=Az(r);t;){if(t in e)return!0;t=Az(t)}return!1};Mi.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 l=vpe(e,n,dpe[i]);if(l&&l.type!=="log"){var o=l._name,s=l._id.slice(1);if(s.slice(0,5)==="scene"){if(t[s]!==void 0)continue;o=s+"."+o}var u=o+".type";t[o]===void 0&&t[u]===void 0&&_n.nestedProperty(e.layout,u).set(null)}}};var D4=(e,r)=>{let t=(...a)=>a.every(n=>_n.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)?D4(n,i):!1))return!1}return!0}else if([e,r].every(a=>_n.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)?D4(n,i):!1))return!1}return!0}return!1};Mi.collectionsAreEqual=D4});var N4=G(Jr=>{"use strict";var Sm=Er(),mpe=Ur(),ype=q5(),ir=qe(),bt=ir.nestedProperty,P4=ev(),Cn=gC(),Ai=Ar(),Nm=Hf(),Sr=Jt(),wn=Qr(),gpe=Qb(),bpe=Jn(),Cm=$r(),xpe=kr(),_pe=C4().initInteractions,wpe=(js(),Ne(Ks)),Tpe=vc().clearOutline,Rz=Ao().dfltConfig,km=wz(),ua=Sz(),ct=lm(),Qo=Bi(),Mpe=(Aa(),Ne(Ma)).AX_NAME_PATTERN,E4=0,qz=5;function Ape(e,r,t,a){var n;if(e=ir.getGraphDiv(e),P4.init(e),ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=P4.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!ir.isPlotDiv(e)&&ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Jr.addFrames(e,n)}Nz(e,a),t||(t={}),Sm.select(e).classed("js-plotly-plot",!0),Cm.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ua.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ua.cleanLayout(t)),Sr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&($pe(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Cm.initGradients(e),Cm.initPatterns(e),s&&wn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Sr.doCalcdata(e);for(var v=0;v<e.calcdata.length;v++)e.calcdata[v][0].trace=e._fullData[v];if(e._context.responsive){if(!e._clearResponsive){let S=()=>{ir.isHidden(e)||Sr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",S),e._clearResponsive=()=>window.removeEventListener("resize",S);else{let D=e.offsetWidth,E=e.offsetHeight,R=new ResizeObserver(()=>{let N=e.offsetWidth,O=e.offsetHeight,F=Math.abs(N-D)>1||Math.abs(O-E)>1;D=N,E=O,F&&N&&O&&S()});R.observe(e),e._clearResponsive=()=>R.disconnect()}}}else ir.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(S=>S.status!=="loaded"):[];var p=ir.extendFlat({},u._size),y=0;function m(){for(var S=u._basePlotModules,D=0;D<S.length;D++)S[D].drawFramework&&S[D].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(O){return O.key}),u._glcanvas.enter().append("canvas").attr("class",function(O){return"gl-canvas gl-canvas-"+O.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var E=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*E).attr("height",u.height*E).style("width",u.width+"px").style("height",u.height+"px");var R=u._glcanvas.data()[0].regl;if(R&&(Math.floor(u.width*E)!==R._gl.drawingBufferWidth||Math.floor(u.height*E)!==R._gl.drawingBufferHeight)){var N="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(y)ir.error(N);else return ir.log(N+" Clearing graph and plotting again."),Sr.cleanPlot([],{},e._fullData,u),Sr.supplyDefaults(e),u=e._fullLayout,Sr.doCalcdata(e),y++,m()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),Sr.previousPromises(e)}function b(){if(Sr.clearAutoMarginIds(e),ct.drawMarginPushers(e),wn.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Sr.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var S=e._fullData,D=0;D<S.length;D++){var E=S[D];E.type==="pie"&&E.automargin&&Sr.allowAutoMargin(e,"pie."+E.uid+".automargin")}return Sr.doAutoMargin(e),Sr.previousPromises(e)}function _(){if(Sr.didMarginChange(p,u._size))return b()}function w(){if(!c){x();return}return ir.syncOrAsync([Ai.getComponentMethod("shapes","calcAutorange"),Ai.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(ct.doAutoRangeAndConstraints(e),s&&wn.saveRangeInitial(e),Ai.getComponentMethod("rangeslider","calcAutorange")(e))}function M(){return wn.draw(e,s?"":"redraw")}var A=[Sr.previousPromises,o,m,b,_];f&&A.push(w),A.push(ct.layoutStyles),f&&A.push(M,function(D){var E=D._fullLayout._insideTickLabelsUpdaterange;if(E)return D._fullLayout._insideTickLabelsUpdaterange=void 0,td(D,E).then(function(){wn.saveRangeInitial(D,!0)})}),A.push(ct.drawData,ct.finalDraw,_pe,Sr.rehover,Sr.redrag,Sr.reselect,Sr.doAutoMargin,Sr.previousPromises);var k=ir.syncOrAsync(A,e);return(!k||!k.then)&&(k=Promise.resolve()),k.then(function(){return kpe(e,h),ad(e),e})}function kpe(e,r){return h8(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,Cm.savedBBoxes={},Jr._doPlot(e))})}function ad(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function Cpe(e){return ir.extendFlat(Rz,e)}function zz(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){ir.error(t)}}function Lpe(e,r){var t=xpe.combine(r,"white");zz(e,t)}function Nz(e,r){if(!e._context){e._context=ir.extendDeep({},Rz);var t=Sm.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,l;if(r){for(i=Object.keys(r),n=0;n<i.length;n++)l=i[n],!(l==="editable"||l==="edits")&&l in a&&(l==="setBackground"&&r[l]==="opaque"?a[l]=Lpe:a[l]=r[l]);var o=r.editable;if(o!==void 0)for(a.editable=o,i=Object.keys(a.edits),n=0;n<i.length;n++)a.edits[i[n]]=o;if(r.edits)for(i=Object.keys(r.edits),n=0;n<i.length;n++)l=i[n],l in a.edits&&(a.edits[l]=r.edits[l]);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"&&!ype&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=zz),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 Spe(e){if(e=ir.getGraphDiv(e),!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return ua.cleanData(e.data),ua.cleanLayout(e.layout),e.calcdata=void 0,Jr._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function qpe(e,r,t,a){return e=ir.getGraphDiv(e),Sr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Sr.purge(e),Jr._doPlot(e,r,t,a)}function qm(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 Dm(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 Iz(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]),Dm(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Dm(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Dpe(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 Epe(e,r,t,a){var n=ir.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!ir.isPlainObject(r))throw new Error("update must be a key:value object");if(typeof t=="undefined")throw new Error("indices must be an integer or array of integers");Dm(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 Ppe(e,r,t,a){var n=ir.isPlainObject(a),i=[],l,o,s,u,f;Array.isArray(t)||(t=[t]),t=qm(t,e.data.length-1);for(var c in r)for(var v=0;v<t.length;v++){if(l=e.data[t[v]],s=bt(l,c),o=s.get(),u=r[c][v],!ir.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+v+" must be an array");if(!ir.isArrayOrTypedArray(o))throw new Error("cannot extend missing or non-array attribute: "+c);if(o.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][v]:a,mpe(f)||(f=-1),i.push({prop:s,target:o,insert:u,maxp:Math.floor(f)})}return i}function Fz(e,r,t,a,n){Epe(e,r,t,a);for(var i=Ppe(e,r,t,a),l={},o={},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(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(c[1]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(i[s].target.length)}return{update:l,maxPoints:o}}function Hz(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function Oz(e,r,t,a){e=ir.getGraphDiv(e);function n(s,u,f){var c,v;if(ir.isTypedArray(s))if(f<0){var h=new s.constructor(0),p=Hz(s,u);f<0?(c=p,v=h):(c=h,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var y=u.length-f;c.set(u.subarray(y)),v.set(s),v.set(u.subarray(0,y),s.length)}else{var m=f-u.length,b=s.length-m;c.set(s.subarray(b)),c.set(u,m),v.set(s.subarray(0,b))}else c=s.concat(u),v=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,v]}var i=Fz(e,r,t,a,n),l=Jr.redraw(e),o=[e,i.update,t,i.maxPoints];return Cn.add(e,Jr.prependTraces,o,Oz,arguments),l}function Bz(e,r,t,a){e=ir.getGraphDiv(e);function n(s,u,f){var c,v;if(ir.isTypedArray(s))if(f<=0){var h=new s.constructor(0),p=Hz(u,s);f<0?(c=p,v=h):(c=h,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var y=u.length-f;c.set(u.subarray(0,y)),v.set(u.subarray(y)),v.set(s,y)}else{var m=f-u.length;c.set(u),c.set(s.subarray(0,m),u.length),v.set(s.subarray(m))}else c=u.concat(s),v=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,v]}var i=Fz(e,r,t,a,n),l=Jr.redraw(e),o=[e,i.update,t,i.maxPoints];return Cn.add(e,Jr.extendTraces,o,Bz,arguments),l}function Yz(e,r,t){e=ir.getGraphDiv(e);var a=[],n=Jr.deleteTraces,i=Yz,l=[e,a],o=[e,r],s,u;for(Dpe(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return ir.extendFlat({},f)}),ua.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=Jr.redraw(e),Cn.add(e,n,l,i,o),u;Array.isArray(t)||(t=[t]);try{Iz(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Cn.startSequence(e),Cn.add(e,n,l,i,o),u=Jr.moveTraces(e,a,t),Cn.stopSequence(e),u}function Gz(e,r){e=ir.getGraphDiv(e);var t=[],a=Jr.addTraces,n=Gz,i=[e,t,r],l=[e,r],o,s;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Dm(e,r,"indices"),r=qm(r,e.data.length-1),r.sort(ir.sorterDes),o=0;o<r.length;o+=1)s=e.data.splice(r[o],1)[0],t.push(s);var u=Jr.redraw(e);return Cn.add(e,a,i,n,l),u}function R4(e,r,t){e=ir.getGraphDiv(e);var a=[],n=[],i=R4,l=R4,o=[e,t,r],s=[e,r,t],u;if(Iz(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=qm(r,e.data.length-1),t=qm(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,v){return c.newIndex-v.newIndex}),u=0;u<n.length;u+=1)a.splice(n[u].newIndex,0,n[u].trace);e.data=a;var f=Jr.redraw(e);return Cn.add(e,i,o,l,s),f}function Em(e,r,t,a){e=ir.getGraphDiv(e),ua.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(ir.isPlainObject(r))n=ir.extendFlat({},r),a===void 0&&(a=t);else return ir.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=ua.coerceTraceIndices(e,a),l=Uz(e,n,i),o=l.flags;o.calc&&(e.calcdata=void 0),o.clearAxisTypes&&ua.clearAxisTypes(e,i,{});var s=[];o.fullReplot?s.push(Jr._doPlot):(s.push(Sr.previousPromises),Sr.supplyDefaults(e),o.markerSize&&(Sr.doCalcdata(e),Im(s)),o.style&&s.push(ct.doTraceStyle),o.colorbars&&s.push(ct.doColorBars),s.push(ad)),s.push(Sr.rehover,Sr.redrag,Sr.reselect),Cn.add(e,Em,[e,l.undoit,l.traces],Em,[e,l.redoit,l.traces]);var u=ir.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",l.eventData),e})}function io(e){return e===void 0?null:e}function Lm(e,r){return r?function(t,a,n){var i=bt(t,a),l=i.set;return i.set=function(o){var s=(n||"")+a;Pm(s,i.get(),o,e),l(o)},i}:bt}function Pm(e,r,t,a){if(Array.isArray(r)||Array.isArray(t))for(var n=Array.isArray(r)?r:[],i=Array.isArray(t)?t:[],l=Math.max(n.length,i.length),o=0;o<l;o++)Pm(e+"["+o+"]",n[o],i[o],a);else if(ir.isPlainObject(r)||ir.isPlainObject(t)){var s=ir.isPlainObject(r)?r:{},u=ir.isPlainObject(t)?t:{},f=ir.extendFlat({},s,u);for(var c in f)Pm(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=io(r))}function Rpe(e,r,t){for(var a in t){var n=bt(e,a);Pm(a,n.get(),t[a],r)}}function Uz(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,l=a._guiEditing,o=Lm(a._preGUI,l),s=ir.extendDeepAll({},r),u,f=Qo.traceFlags(),c={},v={},h;function p(){return t.map(function(){})}function y(fe){var Te=wn.id2name(fe);h.indexOf(Te)===-1&&h.push(Te)}function m(fe){return"LAYOUT"+fe+".autorange"}function b(fe){return"LAYOUT"+fe+".range"}function _(fe,Te,Fe){if(Array.isArray(fe)){fe.forEach(function(Le){_(Le,Te,Fe)});return}if(!(fe in r||ua.hasParent(r,fe))){var be;if(fe.slice(0,6)==="LAYOUT")be=o(e.layout,fe.replace("LAYOUT",""));else{var Me=t[Fe],Ae=a._tracePreGUI[n[Me].uid];be=Lm(Ae,l)(i[Me],fe)}fe in v||(v[fe]=p()),v[fe][Fe]===void 0&&(v[fe][Fe]=io(be.get())),Te!==void 0&&be.set(Te)}}function w(fe){return function(Te){return n[Te][fe]}}function x(fe){return function(Te,Fe){return Te===!1?n[t[Fe]][fe]:null}}for(var M in r){if(ua.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var A=r[M],k,S,D,E,R,N;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(A)?A=A.map(x(M)):A===!1?A=t.map(w(M)):A=null),c[M]=A,M.slice(0,6)==="LAYOUT"){D=o(e.layout,M.replace("LAYOUT","")),v[M]=[io(D.get())],D.set(Array.isArray(A)?A[0]:A),f.calc=!0;continue}for(v[M]=p(),u=0;u<t.length;u++){k=i[t[u]],S=n[t[u]];var O=a._tracePreGUI[S.uid];if(D=Lm(O,l)(k,M),E=D.get(),R=Array.isArray(A)?A[u%A.length]:A,R!==void 0){var F=D.parts[D.parts.length-1],I=M.slice(0,M.length-F.length-1),Y=I?I+".":"",B=I?bt(S,I).get():S;if(N=Nm.getTraceValObject(S,D.parts),N&&N.impliedEdits&&R!==null)for(var U in N.impliedEdits)_(ir.relativeAttr(M,U),N.impliedEdits[U],u);else if((F==="thicknessmode"||F==="lenmode")&&E!==R&&(R==="fraction"||R==="pixels")&&B){var X=a._size,W=B.orient,V=W==="top"||W==="bottom";if(F==="thicknessmode"){var J=V?X.h:X.w;_(Y+"thickness",B.thickness*(R==="fraction"?1/J:J),u)}else{var re=V?X.w:X.h;_(Y+"len",B.len*(R==="fraction"?1/re:re),u)}}else if(M==="type"&&(R==="pie"!=(E==="pie")||R==="funnelarea"!=(E==="funnelarea"))){var ne="x",de="y";(R==="bar"||E==="bar")&&k.orientation==="h"&&(ne="y",de="x"),ir.swapAttrs(k,["?"],"labels",ne),ir.swapAttrs(k,["d?","?0"],"label",ne),ir.swapAttrs(k,["?"],"values",de),E==="pie"||E==="funnelarea"?(bt(k,"marker.color").set(bt(k,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):Ai.traceIs(k,"cartesian")&&bt(k,"marker.colors").set(bt(k,"marker.color").get())}v[M][u]=io(E);var K=["swapxy","swapxyaxes","orientation","orientationaxes"];if(K.indexOf(M)!==-1){if(M==="orientation"){D.set(R);var ye=k.x&&!k.y?"h":"v";if((D.get()||ye)===S.orientation)continue}else M==="orientationaxes"&&(k.orientation={v:"h",h:"v"}[S.orientation]);ua.swapXYData(k),f.calc=f.clearAxisTypes=!0}else Sr.dataArrayContainers.indexOf(D.parts[0])!==-1?(ua.manageArrayContainers(D,R,v),f.calc=!0):(N?N.arrayOk&&!Ai.traceIs(S,"regl")&&(ir.isArrayOrTypedArray(R)||ir.isArrayOrTypedArray(E))?f.calc=!0:Qo.update(f,N):f.calc=!0,D.set(R))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&wn.swap(e,t),M==="orientationaxes"){var oe=bt(e.layout,"hovermode"),Ce=oe.get();Ce==="x"?oe.set("y"):Ce==="y"?oe.set("x"):Ce==="x unified"?oe.set("y unified"):Ce==="y unified"&&oe.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(h=[],u=0;u<t.length;u++){var se=i[t[u]];Ai.traceIs(se,"cartesian")&&(y(se.xaxis||"x"),y(se.yaxis||"y"))}_(h.map(m),!0,0),_(h.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:v,redoit:c,traces:t,eventData:ir.extendDeepNoArrays([],[s,t])}}function td(e,r,t){e=ir.getGraphDiv(e),ua.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(ir.isPlainObject(r))a=ir.extendFlat({},r);else return ir.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=Zz(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var l=[Sr.previousPromises];i.layoutReplot?l.push(ct.layoutReplot):Object.keys(a).length&&(Vz(e,i,n)||Sr.supplyDefaults(e),i.legend&&l.push(ct.doLegend),i.layoutstyle&&l.push(ct.layoutStyles),i.axrange&&Im(l,n.rangesAltered),i.ticks&&l.push(ct.doTicksRelayout),i.modebar&&l.push(ct.doModeBar),i.camera&&l.push(ct.doCamera),i.colorbars&&l.push(ct.doColorBars),l.push(ad)),l.push(Sr.rehover,Sr.redrag,Sr.reselect),Cn.add(e,td,[e,n.undoit],td,[e,n.redoit]);var o=ir.syncOrAsync(l,e);return(!o||!o.then)&&(o=Promise.resolve(e)),o.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function Vz(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,l,o=function(h,p){return ir.coerce(i,l,bpe,h,p)},s={};for(var u in t.rangesAltered){var f=wn.id2name(u);if(i=e.layout[f],l=a[f],gpe(i,l,o,s),l._matchGroup){for(var c in l._matchGroup)if(c!==u){var v=a[wn.id2name(c)];v.autorange=l.autorange,v.range=l.range.slice(),v._input.range=l.range.slice()}}}return!0}function Im(e,r){var t=r?function(a){var n=[],i=!0;for(var l in r){var o=wn.getFromId(a,l);if(n.push(l),(o.ticklabelposition||"").indexOf("inside")!==-1&&o._anchorAxis&&n.push(o._anchorAxis._id),o._matchGroup)for(var s in o._matchGroup)r[s]||n.push(s)}return wn.draw(a,n,{skipTitle:i})}:function(a){return wn.draw(a,"redraw")};e.push(Tpe,ct.doAutoRangeAndConstraints,t,ct.drawData,ct.finalDraw)}var Xz=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Wz=/^[xyz]axis[0-9]*\.autorange$/,zpe=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Zz(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=Lm(a._preGUI,n),l=Object.keys(r),o=wn.list(e),s=ir.extendDeepAll({},r),u={},f,c,v;for(l=Object.keys(r),c=0;c<l.length;c++)if(l[c].indexOf("allaxes")===0){for(v=0;v<o.length;v++){var h=o[v]._id.slice(1),p=h.indexOf("scene")!==-1?h+".":"",y=l[c].replace("allaxes",p+o[v]._name);r[y]||(r[y]=r[l[c]])}delete r[l[c]]}var m=Qo.layoutFlags(),b={},_={};function w(Le,ke){if(Array.isArray(Le)){Le.forEach(function(Se){w(Se,ke)});return}if(!(Le in r||ua.hasParent(r,Le))){var ze=i(t,Le);Le in _||(_[Le]=io(ze.get())),ke!==void 0&&ze.set(ke)}}var x={},M;function A(Le){var ke=wn.name2id(Le.split(".")[0]);return x[ke]=1,ke}for(var k in r){if(ua.hasParent(r,k))throw new Error("cannot set "+k+" and a parent attribute simultaneously");for(var S=i(t,k),D=r[k],E=S.parts.length,R=E-1;R>0&&typeof S.parts[R]!="string";)R--;var N=S.parts[R],O=S.parts[R-1]+"."+N,F=S.parts.slice(0,R).join("."),I=bt(e.layout,F).get(),Y=bt(a,F).get(),B=S.get();if(D!==void 0){b[k]=D,_[k]=N==="reverse"?D:io(B);var U=Nm.getLayoutValObject(a,S.parts);if(U&&U.impliedEdits&&D!==null)for(var X in U.impliedEdits)w(ir.relativeAttr(k,X),U.impliedEdits[X]);if(["width","height"].indexOf(k)!==-1)if(D){w("autosize",null);var W=k==="height"?"width":"height";w(W,a[W])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(O.match(Xz))A(O),bt(a,F+"._inputRange").set(null);else if(O.match(Wz)){A(O),bt(a,F+"._inputRange").set(null);var V=bt(a,F).get();V._inputDomain&&(V._input.domain=V._inputDomain.slice())}else O.match(zpe)&&bt(a,F+"._inputDomain").set(null);if(N==="type"){M=I;var J=Y.type==="linear"&&D==="log",re=Y.type==="log"&&D==="linear";if(J||re){if(!M||!M.range)w(F+".autorange",!0);else if(Y.autorange)J&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ne=M.range[0],de=M.range[1];J?(ne<=0&&de<=0&&w(F+".autorange",!0),ne<=0?ne=de/1e6:de<=0&&(de=ne/1e6),w(F+".range[0]",Math.log(ne)/Math.LN10),w(F+".range[1]",Math.log(de)/Math.LN10)):(w(F+".range[0]",Math.pow(10,ne)),w(F+".range[1]",Math.pow(10,de)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Ai.getComponentMethod("annotations","convertCoords")(e,Y,D,w),Ai.getComponentMethod("images","convertCoords")(e,Y,D,w)}else w(F+".autorange",!0),w(F+".range",null);bt(a,F+"._inputRange").set(null)}else if(N.match(Mpe)){var K=bt(a,k).get(),ye=(D||{}).type;(!ye||ye==="-")&&(ye="linear"),Ai.getComponentMethod("annotations","convertCoords")(e,K,ye,w),Ai.getComponentMethod("images","convertCoords")(e,K,ye,w),!F&&K&&D&&(D.range!==void 0||D.autorange!==void 0)&&(A(`${N}.range`),K._inputRange=null)}var oe=km.containerArrayMatch(k);if(oe){f=oe.array,c=oe.index;var Ce=oe.property,se=U||{editType:"calc"};c!==""&&Ce===""&&(km.isAddVal(D)?_[k]=null:km.isRemoveVal(D)?_[k]=(bt(t,f).get()||[])[c]:ir.warn("unrecognized full object value",r)),Qo.update(m,se),u[f]||(u[f]={});var fe=u[f][c];fe||(fe=u[f][c]={}),fe[Ce]=D,delete r[k]}else N==="reverse"?(I.range?I.range.reverse():(w(F+".autorange",!0),I.range=[1,0]),Y.autorange?m.calc=!0:m.plot=!0):(k==="dragmode"&&(D===!1&&B!==!1||D!==!1&&B===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(B==="lasso"||B==="select")?m.plot=!0:U?Qo.update(m,U):m.calc=!0,S.set(D))}}for(f in u){var Te=km.applyContainerArrayChanges(e,i(t,f),u[f],m,i);Te||(m.plot=!0)}for(var Fe in x){M=wn.getFromId(e,Fe);var be=M&&M._constraintGroup;if(be){m.calc=!0;for(var Me in be)x[Me]||(wn.getFromId(e,Me)._constraintShrinkable=!0)}}($z(e)||r.height||r.width)&&(m.plot=!0);var Ae=a.shapes;for(c=0;c<Ae.length;c++)if(Ae[c].showlegend){m.calc=!0;break}return(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:x,undoit:_,redoit:b,eventData:s}}function $z(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&Sr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Rm(e,r,t,a){e=ir.getGraphDiv(e),ua.clearPromiseQueue(e),ir.isPlainObject(r)||(r={}),ir.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=ua.coerceTraceIndices(e,a),i=Uz(e,ir.extendFlat({},r),n),l=i.flags,o=Zz(e,ir.extendFlat({},t)),s=o.flags;(l.calc||s.calc)&&(e.calcdata=void 0),l.clearAxisTypes&&ua.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(ct.layoutReplot):l.fullReplot?u.push(Jr._doPlot):(u.push(Sr.previousPromises),Vz(e,s,o)||Sr.supplyDefaults(e),l.style&&u.push(ct.doTraceStyle),(l.colorbars||s.colorbars)&&u.push(ct.doColorBars),s.legend&&u.push(ct.doLegend),s.layoutstyle&&u.push(ct.layoutStyles),s.axrange&&Im(u,o.rangesAltered),s.ticks&&u.push(ct.doTicksRelayout),s.modebar&&u.push(ct.doModeBar),s.camera&&u.push(ct.doCamera),u.push(ad)),u.push(Sr.rehover,Sr.redrag,Sr.reselect),Cn.add(e,Rm,[e,i.undoit,o.undoit,i.traces],Rm,[e,i.redoit,o.redoit,i.traces]);var f=ir.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:o.eventData}),e})}function z4(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var Npe=[{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"}],Ipe=[{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 Dz(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 Ez(e,r){var t=bt(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=bt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Fpe(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function Hpe(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 Pz(e,r){var t=ir.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&ir.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function Ope(e,r,t,a){var n=a._preGUI,i,l,o,s,u,f,c,v,h,p,y=[],m={},b={};for(i in n){if(u=Dz(i,Npe),u){if(h=u.head,p=u.tail,l=u.attr||h+".uirevision",o=bt(a,l).get(),s=o&&Ez(l,r),s&&s===o){if(f=n[i],f===null&&(f=void 0),c=bt(r,i),v=c.get(),Pz(v,f)){v===void 0&&p==="autorange"&&y.push(h),c.set(io(bt(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var _=n[h+".range[0]"],w=n[h+".range[1]"],x=n[h+".autorange"];if(x||x===null&&_===null&&w===null){if(!(h in m)){var M=bt(r,h).get();m[h]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(m[h]){c.set(io(bt(a,i).get()));continue}}}}}else ir.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(b[u.head]=1)}for(var A=0;A<y.length;A++){var k=y[A];if(b[k]){var S=bt(r,k).get();S&&delete S.autorange}}var D=a._tracePreGUI;for(var E in D){var R=D[E],N=null,O;for(i in R){if(!N){var F=Fpe(E,t);if(F<0){delete D[E];break}O=t[F];var I=Hpe(E,e,O.index);if(I<0){delete D[E];break}N=e[I]}if(u=Dz(i,Ipe),u){if(u.attr?(o=bt(a,u.attr).get(),s=o&&Ez(u.attr,r)):(o=O.uirevision,s=N.uirevision,s===void 0&&(s=r.uirevision)),s&&s===o&&(f=R[i],f===null&&(f=void 0),c=bt(N,i),v=c.get(),Pz(v,f))){c.set(io(bt(O,i).get()));continue}}else ir.warn("unrecognized GUI edit: "+i+" in trace uid "+E);delete R[i]}}}function Bpe(e,r,t,a){var n,i;function l(){return Jr.addFrames(e,n)}e=ir.getGraphDiv(e),ua.clearPromiseQueue(e);var o=e._fullData,s=e._fullLayout;if(!ir.isPlotDiv(e)||!o||!s)i=Jr.newPlot(e,r,t,a);else{if(ir.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let O=ir.extendDeepAll({},e._context);e._context=void 0,Nz(e,a),f=!ua.collectionsAreEqual(O,e._context)}if(f){let O=e._ev.eventNames().map(F=>[F,e._ev.listeners(F)]);i=Jr.newPlot(e,r,t,a).then(()=>{for(let[F,I]of O)I.forEach(Y=>e.on(F,Y));return Jr.react(e,r,t,a)})}else{e.data=r||[],ua.cleanData(e.data),e.layout=t||{},ua.cleanLayout(e.layout),Ope(e.data,e.layout,o,s),Sr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,h=v.datarevision===void 0,p=v.transition,y=Gpe(e,s,v,h,p),m=y.newDataRevision,b=Ype(e,o,c,h,p,m);if($z(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(v),w=0;w<_.length;w++){var x=_[w],M=x.substring(0,5);if(M==="xaxis"||M==="yaxis"){var A=v[x]._emptyCategories;A&&A()}}}else Sr.supplyDefaultsUpdateCalc(e.calcdata,c);var k=[];if(n&&(e._transitionData={},Sr.createTransitionData(e),k.push(l)),v.transition&&(b.anim||y.anim))y.ticks&&k.push(ct.doTicksRelayout),Sr.doCalcdata(e),ct.doAutoRangeAndConstraints(e),k.push(function(){return Sr.transitionFromReact(e,b,y,s)});else if(b.fullReplot||y.layoutReplot)e._fullLayout._skipDefaults=!0,k.push(Jr._doPlot);else{for(var S in y.arrays){var D=y.arrays[S];if(D.length){var E=Ai.getComponentMethod(S,"drawOne");if(E!==ir.noop)for(var R=0;R<D.length;R++)E(e,D[R]);else{var N=Ai.getComponentMethod(S,"draw");if(N===ir.noop)throw new Error("cannot draw components: "+S);N(e)}}}k.push(Sr.previousPromises),b.style&&k.push(ct.doTraceStyle),(b.colorbars||y.colorbars)&&k.push(ct.doColorBars),y.legend&&k.push(ct.doLegend),y.layoutstyle&&k.push(ct.layoutStyles),y.axrange&&Im(k),y.ticks&&k.push(ct.doTicksRelayout),y.modebar&&k.push(ct.doModeBar),y.camera&&k.push(ct.doCamera),k.push(ad)}k.push(Sr.rehover,Sr.redrag,Sr.reselect),i=ir.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 Ype(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Qo.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=Nm.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],v[u.uid])continue;v[u.uid]=1,zm(r[s],u,[],c)}return(o.calc||o.plot)&&(o.fullReplot=!0),n&&o.nChanges&&o.nChangesAnim&&(o.anim=o.nChanges===o.nChangesAnim&&l?"all":"some"),o}function Gpe(e,r,t,a,n){var i=Qo.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function l(v){return Nm.getLayoutValObject(t,v)}for(var o in t){if(!o.startsWith("xaxis")&&!o.startsWith("yaxis")||!r[o])continue;var s=t[o].domain,u=r[o].domain,f=r[o]._inputDomain;r[o]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[o].domain=r[o].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[o]._inputDomain=null));let v=t[o].range,h=r[o].range,p=r[o]._inputRange;if(p&&v&&h){let y=v[0]===p[0]&&v[1]===p[1],m=v[0]===h[0]&&v[1]===h[1];!y&&!m&&(t[o]._inputRange=null)}}var c={getValObject:l,flags:i,immutable:a,transition:n,gd:e};return zm(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 zm(e,r,t,a){var n,i,l,o=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function v(){var F=n.editType;if(f&&F.indexOf("arraydraw")!==-1){ir.pushUnique(s.arrays[f],c);return}Qo.update(s,n),F!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(Xz.test(l)||Wz.test(l))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function h(F){return F.valType==="data_array"||F.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],y=r[i],m=t.concat(i);if(l=m.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===y)){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=o(m),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(y)))){var _=n.valType,w,x=h(n),M=Array.isArray(p),A=Array.isArray(y);if(M&&A){var k="_input_"+i,S=e[k],D=r[k];if(Array.isArray(S)&&S===D)continue}if(y===void 0)x&&M?s.calc=!0:v();else if(n._isLinkedToArray){var E=[],R=!1;f||(s.arrays[i]=E);var N=Math.min(p.length,y.length),O=Math.max(p.length,y.length);if(N!==O)if(n.editType==="arraydraw")R=!0;else{v();continue}for(w=0;w<N;w++)zm(p[w],y[w],m.concat(w),ir.extendFlat({inArray:i,arrayIndex:w},a));if(R)for(w=N;w<O;w++)E.push(w)}else!_&&ir.isPlainObject(p)?zm(p,y,m,a):x?M&&A?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):M!==A?s.calc=!0:v():M&&A?(p.length!==y.length||String(p)!==String(y))&&v():v()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=o(t.concat(i)),h(n)&&Array.isArray(r[i])){s.calc=!0;return}else v()}function Upe(e,r,t){if(e=ir.getGraphDiv(e),!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var a=e._transitionData;a._frameQueue||(a._frameQueue=[]),t=Sr.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function l(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function o(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 N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(N){if(N.length!==0){for(var O=0;O<N.length;O++){var F;N[O].type==="byname"?F=Sr.computeFrame(e,N[O].name):F=N[O].data;var I=o(O),Y=l(O);Y.duration=Math.min(Y.duration,I.duration);var B={frame:F,name:N[O].name,frameOpts:I,transitionOpts:Y};O===N.length-1&&(B.onComplete=s(u,2),B.onInterrupt=f),a._frameQueue.push(B)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||y()}}function h(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var N=a._currentFrame=a._frameQueue.shift();if(N){var O=N.name?N.name.toString():null;e._fullLayout._currentFrame=O,a._lastFrameAt=Date.now(),a._timeToNext=N.frameOpts.duration,Sr.transition(e,N.frame.data,N.frame.layout,ua.coerceTraceIndices(e,N.frame.traces),N.frameOpts,N.transitionOpts).then(function(){N.onComplete&&N.onComplete()}),e.emit("plotly_animatingframe",{name:O,frame:N.frame,animation:{frame:N.frameOpts,transition:N.transitionOpts}})}else h()}function y(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var N=function(){a._animationRaf=window.requestAnimationFrame(N),Date.now()-a._lastFrameAt>a._timeToNext&&p()};N()}var m=0;function b(N){return Array.isArray(n)?m>=n.length?N.transitionOpts=n[m]:N.transitionOpts=n[0]:N.transitionOpts=n,m++,N}var _,w,x=[],M=r==null,A=Array.isArray(r),k=!M&&!A&&ir.isPlainObject(r);if(k)x.push({type:"object",data:b(ir.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_<a._frames.length;_++)w=a._frames[_],w&&(M||String(w.group)===String(r))&&x.push({type:"byname",name:String(w.name),data:b({name:w.name})});else if(A)for(_=0;_<r.length;_++){var S=r[_];["number","string"].indexOf(typeof S)!==-1?(S=String(S),x.push({type:"byname",name:S,data:b({name:S})})):ir.isPlainObject(S)&&x.push({type:"object",data:b(ir.extendFlat({},S))})}for(_=0;_<x.length;_++)if(w=x[_],w.type==="byname"&&!a._frameHash[w.data.name]){ir.warn('animate failure: frame not found: "'+w.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&x.reverse();var D=e._fullLayout._currentFrame;if(D&&t.fromcurrent){var E=-1;for(_=0;_<x.length;_++)if(w=x[_],w.type==="byname"&&w.name===D){E=_;break}if(E>0&&E<x.length-1){var R=[];for(_=0;_<x.length;_++)w=x[_],(x[_].type!=="byname"||_>E)&&R.push(w);x=R}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function Vpe(e,r,t){if(e=ir.getGraphDiv(e),r==null)return Promise.resolve();if(!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=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=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ir.isPlainObject(r[a])){var v=r[a].name,h=(s[v]||c[v]||{}).name,p=r[a].name,y=s[h]||c[h];h&&p&&typeof p=="number"&&y&&E4<qz&&(E4++,ir.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.'),E4===qz&&ir.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),c[v]={name:v},f.push({frame:Sr.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(k,S){return k.index>S.index?-1:k.index<S.index?1:0});var m=[],b=[],_=o.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i<o.length&&(o[i]||{}).name!==n.name;i++);m.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:o[i]})}else l=Math.max(0,Math.min(f[a].index,_)),m.push({type:"insert",index:l,value:n}),b.unshift({type:"delete",index:l}),_++}var w=Sr.modifyFrames,x=Sr.modifyFrames,M=[e,b],A=[e,m];return Cn&&Cn.add(e,w,M,x,A),Sr.modifyFrames(e,m)}function Xpe(e,r){if(e=ir.getGraphDiv(e),!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,a,n=e._transitionData._frames,i=[],l=[];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}),l.unshift({type:"insert",index:a,value:n[a]});var o=Sr.modifyFrames,s=Sr.modifyFrames,u=[e,l],f=[e,i];return Cn&&Cn.add(e,o,u,s,f),Sr.modifyFrames(e,i)}function Wpe(e){e=ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Sr.cleanPlot([],{},t,r),Sr.purge(e),P4.purge(e),r._container&&r._container.remove(),delete e._context,e}function Zpe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ir.equalDomRects(t,r._lastBBox)){var a=r._invTransform=ir.inverseTransformMatrix(ir.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function $pe(e){var r=Sm.select(e),t=e._fullLayout;if(t._calcInverseTransform=Zpe,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={};Sm.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(wpe.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")}Jr.animate=Upe;Jr.addFrames=Vpe;Jr.deleteFrames=Xpe;Jr.addTraces=Yz;Jr.deleteTraces=Gz;Jr.extendTraces=Oz;Jr.moveTraces=R4;Jr.prependTraces=Bz;Jr.newPlot=qpe;Jr._doPlot=Ape;Jr.purge=Wpe;Jr.react=Bpe;Jr.redraw=Spe;Jr.relayout=td;Jr.restyle=Em;Jr.setPlotConfig=Cpe;Jr.update=Rm;Jr._guiRelayout=z4(td);Jr._guiRestyle=z4(Em);Jr._guiUpdate=z4(Rm);Jr._storeDirectGUIEdit=Rpe});var bu=G(ki=>{"use strict";var Jpe=Ar();ki.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ki.getRedrawFunc=function(e){return function(){Jpe.getComponentMethod("colorbar","draw")(e)}};ki.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ki.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var Jz=window.URL||window.webkitURL;ki.createObjectURL=function(e){return Jz.createObjectURL(e)};ki.revokeObjectURL=function(e){return Jz.revokeObjectURL(e)};ki.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=Kpe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ki.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ki.getPlotTitle=function(e){var a,n,i,l;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(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};ki.getPlotSubtitle=function(e){var a,n,i,l,o,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=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function Kpe(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}ki.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Fm=G((dCe,Kz)=>{"use strict";var F4=Er(),cCe=qe(),jpe=$r(),Qpe=kr(),vCe=(js(),Ne(Ks)),I4=/"/g,xu="TOBESTRIPPED",eme=new RegExp(`("${xu})|(${xu}")|("${xu})|(${xu}")`,"g"),rme=["&","&","&",""",""",""","'","'","'"],tme=["<","<","<"],ame=[">",">",">"];function nme(e){let r=F4.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return rme.includes(n)?a:tme.includes(n)?"<":ame.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function ime(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Kz.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(jpe.setRect,0,0,o,s).call(Qpe.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(l){var v=l.node().childNodes,h=Array.prototype.slice.call(v);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 m=F4.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){m.remove();return}else m.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&m.style("font-family",b.replace(I4,xu));var _=this.style.fontWeight;_&&(_==="normal"||_==="400")&&m.style("font-weight",void 0);var w=this.style.fontStyle;w&&w==="normal"&&m.style("font-style",void 0);var x=this.style.fontVariant;x&&x==="normal"&&m.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var m=F4.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&m.style("fill",b.replace(I4,xu));var _=this.style.stroke;_&&_.indexOf("url(")!==-1&&m.style("stroke",_.replace(I4,xu))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*o),i.attr("height",a*s),i.attr("viewBox","0 0 "+o+" "+s));var y=new window.XMLSerializer().serializeToString(i.node());return y=nme(y),y=ime(y),y=y.replace(eme,"'"),y}});var Hm=G((hCe,jz)=>{"use strict";var lme=qe(),ome=C1().EventEmitter,nd=bu();function sme(e){var r=e.emitter||new ome,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;o==="svg"||lme.isSafari()?b=nd.encodeSVG(l):(m=nd.createBlob(l,"svg"),b=nd.createObjectURL(m)),s.width=v,s.height=h,y.onload=function(){var _;switch(m=null,nd.revokeObjectURL(b),o!=="svg"&&p.drawImage(y,0,0,v,h),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},y.onerror=function(_){if(m=null,nd.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},y.src=b});return e.promise?t:r}jz.exports=sme});var O4=G((pCe,rN)=>{"use strict";var Qz=Ur(),eN=N4(),ume=Jt(),Dl=qe(),id=bu(),fme=Fm(),cme=Hm(),vme=x0().version,H4=(X3(),Ne(V3)).default;function dme(e,r){r=r||{};var t,a,n,i;Dl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Dl.getGraphDiv(e),t=Dl.extendDeep([],e.data),a=Dl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(A){return!(A in r)||Dl.validate(r[A],H4[A])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Dl.join2(H4.format.values,", "," or ")+".");var o={};function s(A,k){return Dl.coerce(r,o,H4,A,k)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Dl.extendFlat({},a);f?m.width=f:r.width===null&&Qz(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&Qz(i.height)&&(m.height=i.height);var b=Dl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),_=id.getRedrawFunc(y);function w(){return new Promise(function(A){setTimeout(A,id.getDelay(y._fullLayout))})}function x(){return new Promise(function(A,k){var S=fme(y,u,v),D=y._fullLayout.width,E=y._fullLayout.height;function R(){eN.purge(y),document.body.removeChild(y)}if(u==="full-json"){var N=ume.graphJson(y,!1,"object",!0,!0);return N.version=vme,N=JSON.stringify(N),R(),A(p?N:id.encodeJSON(N))}if(R(),u==="svg")return A(p?S:id.encodeSVG(S));var O=document.createElement("canvas");O.id=Dl.randstr(),cme({format:u,width:D,height:E,scale:v,canvas:O,svg:S,promise:!0}).then(A).catch(k)})}function M(A){return p?A.replace(id.IMAGE_URL_PREFIX,""):A}return new Promise(function(A,k){eN.newPlot(y,t,m,b).then(_).then(w).then(x).then(function(S){A(M(S))}).catch(function(S){k(S)})})}rN.exports=dme});var nN=G((mCe,aN)=>{"use strict";var Ci=qe(),hme=Jt(),pme=Hf(),mme=Ao().dfltConfig,el=Ci.isPlainObject,wu=Array.isArray,B4=Ci.isArrayOrTypedArray;aN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=pme.get(),n=[],i={_context:Ci.extendFlat({},mme)},l,o;wu(r)?(i.data=Ci.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Sa("array","data"))),el(t)?(i.layout=Ci.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Sa("object","layout"))),hme.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;f<u;f++){var c=l[f],v=["data",f];if(!el(c)){n.push(Sa("object",v));continue}var h=s[f],p=h.type,y=a.traces[p].attributes;y.type={valType:"enumerated",values:[p]},h.visible===!1&&c.visible!==!1&&n.push(Sa("invisible",v)),Om(c,h,y,n,v)}var m=i._fullLayout,b=yme(a,s);return Om(o,m,b,n,"layout"),n.length===0?void 0:n};function Om(e,r,t,a,n,i){i=i||[];for(var l=Object.keys(e),o=0;o<l.length;o++){var s=l[o],u=i.slice();u.push(s);var f=e[s],c=r[s],v=xme(t,s),h=(v||{}).valType,p=h==="info_array",y=h==="colorscale",m=(v||{}).items;if(!bme(t,s))a.push(Sa("schema",n,u));else if(el(f)&&el(c)&&h!=="any")Om(f,c,v,a,n,u);else if(p&&wu(f)){f.length>c.length&&a.push(Sa("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(m);_&&(b=Math.min(b,m.length));var w,x,M,A,k;if(v.dimensions===2)for(x=0;x<b;x++)if(wu(f[x])){f[x].length>c[x].length&&a.push(Sa("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(_?Math.min(S,m[x].length):S);w++)M=_?m[x][w]:m,A=f[x][w],k=c[x][w],Ci.validate(A,M)?k!==A&&k!==+A&&a.push(Sa("dynamic",n,u.concat(x,w),A,k)):a.push(Sa("value",n,u.concat(x,w),A))}else a.push(Sa("array",n,u.concat(x),f[x]));else for(x=0;x<b;x++)M=_?m[x]:m,A=f[x],k=c[x],Ci.validate(A,M)?k!==A&&k!==+A&&a.push(Sa("dynamic",n,u.concat(x),A,k)):a.push(Sa("value",n,u.concat(x),A))}else if(v.items&&!p&&wu(f)){var D=m[Object.keys(m)[0]],E=[],R,N;for(R=0;R<c.length;R++){var O=c[R]._index||R;if(N=u.slice(),N.push(O),el(f[O])&&el(c[R])){E.push(O);var F=f[O],I=c[R];el(F)&&F.visible!==!1&&I.visible===!1?a.push(Sa("invisible",n,N)):Om(F,I,D,a,n,N)}}for(R=0;R<f.length;R++)N=u.slice(),N.push(R),el(f[R])?E.indexOf(R)===-1&&a.push(Sa("unused",n,N)):a.push(Sa("object",n,N,f[R]))}else!el(f)&&el(c)?a.push(Sa("object",n,u,f)):!B4(f)&&B4(c)&&!p&&!y?a.push(Sa("array",n,u,f)):s in r?Ci.validate(f,v)?v.valType==="enumerated"&&(v.coerceNumber&&f!==+c||!B4(f)&&f!==c||String(f)!==String(c))&&a.push(Sa("dynamic",n,u,f,c)):a.push(Sa("value",n,u,f)):a.push(Sa("unused",n,u,f))}return a}function yme(e,r){for(var t=e.layout.layoutAttributes,a=0;a<r.length;a++){var n=r[a],i=e.traces[n.type],l=i.layoutAttributes;l&&(n.subplot?Ci.extendFlat(t[i.attributes.subplot.dflt],l):Ci.extendFlat(t,l))}return t}var gme={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=_u(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=_u(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return _u(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=el(t)?"container":"key";return _u(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[_u(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?_u(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[_u(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function _u(e){return wu(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Sa(e,r,t,a,n){t=t||"";var i,l;wu(r)?(i=r[0],l=r[1]):(i=r,l=null);var o=wme(t),s=gme[e](r,o,a,n);return Ci.log(s),{code:e,container:i,trace:l,path:t,astr:o,msg:s}}function bme(e,r){var t=tN(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function xme(e,r){if(r in e)return e[r];var t=tN(r);return e[t.keyMinusId]}var _me=Ci.counterRegex("([a-z]+)");function tN(e){var r=e.match(_me);return{keyMinusId:r&&r[1],id:r&&r[2]}}function wme(e){if(!wu(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 lN=G((yCe,iN)=>{"use strict";var Tme=qe(),Bm=bu();function Mme(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=Bm.createBlob(e,t),u=Bm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Bm.revokeObjectURL(u),s=null,l(r);if(Tme.isSafari()){var f=t==="svg"?",":";base64,";return Bm.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}iN.exports=Mme});var Y4=G((gCe,fN)=>{"use strict";var Ym=qe(),oN=pa(),Ame=O4(),kme=lN(),sN=bu(),uN=40;function Cme(e,r){var t;return Ym.isPlainObject(e)||(t=Ym.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=Ame(e,r),l=r.filename||e.fn;if(!l){let s=sN.getPlotTitle(e);if(s&&!oN.matchTex(s))l=Ym.slugify(s,uN);else{let u=sN.getPlotSubtitle(e);u&&!oN.matchTex(u)&&(l=Ym.slugify(u,uN))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),kme(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}fN.exports=Cme});var pN=G(G4=>{"use strict";var Bn=qe(),Yn=Bn.isPlainObject,cN=Hf(),vN=Jt(),Lme=En(),dN=mt(),hN=Ao().dfltConfig;G4.makeTemplate=function(e){e=Bn.isPlainObject(e)?e:Bn.getGraphDiv(e),e=Bn.extendDeep({_context:hN},{data:e.data,layout:e.layout}),vN.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={};ld(h,p,qme.bind(null,h));var y=Bn.coerce(h,{},Lme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),ld(t,a.layout,Sme.bind(null,t)),delete a.layout.template;var n=t.template;if(Yn(n)){var i=n.layout,l,o,s,u,f,c;Yn(i)&&Gm(i,a.layout);var v=n.data;if(Yn(v)){for(o in a.data)if(s=v[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;l<c;l++)Gm(s[l%u],f[l]);for(l=c;l<u;l++)f.push(Bn.extendDeep({},s[l]))}for(o in v)o in a.data||(a.data[o]=Bn.extendDeep([],v[o]))}}return a};function Gm(e,r){e=Bn.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(Yn(c)&&Yn(f))Gm(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var h=dN.arrayTemplater({_template:e},v);for(n=0;n<c.length;n++){var p=c[n],y=h.newItem(p)._template;y&&Gm(y,p)}var m=h.defaultItems();for(n=0;n<m.length;n++)c.push(m[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var l=t[a],o=e[l];if(l in r?i(o,r[l],l):r[l]=o,Um(l)===l)for(var s in r){var u=Um(s);s!==u&&u===l&&!(s in e)&&i(o,r[s],l)}}}function Um(e){return e.replace(/[0-9]+$/,"")}function ld(e,r,t,a,n){var i=n&&t(n);for(var l in e){var o=e[l],s=Li(e,l,a),u=Li(e,l,n),f=t(u);if(!f){var c=Um(l);c!==l&&(u=Li(e,c,n),f=t(u))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(o)))if(!f.valType&&Yn(o))ld(o,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(o))for(var v=!1,h=0,p={},y=0;y<o.length;y++){var m=o[y];if(Yn(m)){var b=m.name;if(b)p[b]||(ld(m,r,t,Li(o,h,s),Li(o,h,u)),h++,p[b]=1);else if(!v){var _=dN.arrayDefaultKey(l),w=Li(e,_,a),x=Li(o,h,s);ld(m,r,t,x,Li(o,h,u));var M=Bn.nestedProperty(r,x),A=Bn.nestedProperty(r,w);A.set(M.get()),M.set(null),v=!0}}}else{var k=Bn.nestedProperty(r,s);k.set(o)}}}function Sme(e,r){return cN.getLayoutValObject(e,Bn.nestedProperty({},r).parts)}function qme(e,r){return cN.getTraceValObject(e,Bn.nestedProperty({},r).parts)}function Li(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}G4.validateTemplate=function(e,r){var t=Bn.extendDeep({},{_context:hN,data:e.data,layout:e.layout}),a=t.layout||{};Yn(r)||(r=a.template||{});var n=r.layout,i=r.data,l=[];t.layout=a,t.layout.template=r,vN.supplyDefaults(t);var o=t._fullLayout,s=t._fullData,u={};function f(w,x){for(var M in w)if(M.charAt(0)!=="_"&&Yn(w[M])){var A=Um(M),k=[],S;for(S=0;S<x.length;S++)k.push(Li(w,M,x[S])),A!==M&&k.push(Li(w,A,x[S]));for(S=0;S<k.length;S++)u[k[S]]=1;f(w[M],k)}}function c(w,x){for(var M in w)if(M.indexOf("defaults")===-1&&Yn(w[M])){var A=Li(w,M,x);u[A]?c(w[M],A):l.push({code:"unused",path:A})}}if(Yn(n)?(f(o,["layout"]),c(n,"layout")):l.push({code:"layout"}),!Yn(i))l.push({code:"data"});else{for(var v={},h,p=0;p<s.length;p++){var y=s[p];h=y.type,v[h]=(v[h]||0)+1,y._template||l.push({code:"missing",index:y.index,traceType:h})}for(h in i){var m=i[h].length,b=v[h]||0;m>b?l.push({code:"unused",traceType:h,templateCount:m,dataCount:b}):b>m&&l.push({code:"reused",traceType:h,templateCount:m,dataCount:b})}}function _(w,x){for(var M in w)if(M.charAt(0)!=="_"){var A=w[M],k=Li(w,M,x);Yn(A)?(Array.isArray(w)&&A._template===!1&&A.templateitemname&&l.push({code:"missing",path:k,templateitemname:A.templateitemname}),_(A,k)):Array.isArray(A)&&Dme(A)&&_(A,k)}}if(_({data:s,layout:o},""),l.length)return l.map(Eme)};function Dme(e){for(var r=0;r<e.length;r++)if(Yn(e[r]))return!0}function Eme(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 yN=G(St=>{"use strict";var ya=N4();St._doPlot=ya._doPlot;St.newPlot=ya.newPlot;St.restyle=ya.restyle;St.relayout=ya.relayout;St.redraw=ya.redraw;St.update=ya.update;St._guiRestyle=ya._guiRestyle;St._guiRelayout=ya._guiRelayout;St._guiUpdate=ya._guiUpdate;St._storeDirectGUIEdit=ya._storeDirectGUIEdit;St.react=ya.react;St.extendTraces=ya.extendTraces;St.prependTraces=ya.prependTraces;St.addTraces=ya.addTraces;St.deleteTraces=ya.deleteTraces;St.moveTraces=ya.moveTraces;St.purge=ya.purge;St.addFrames=ya.addFrames;St.deleteFrames=ya.deleteFrames;St.animate=ya.animate;St.setPlotConfig=ya.setPlotConfig;var Pme=X0().getGraphDiv,Rme=Qp().eraseActiveShape;St.deleteActiveShape=function(e){return Rme(Pme(e))};St.toImage=O4();St.validate=nN();St.downloadImage=Y4();var mN=pN();St.makeTemplate=mN.makeTemplate;St.validateTemplate=mN.validateTemplate});var od=G((_Ce,gN)=>{"use strict";var U4=qe(),zme=Ar();gN.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=zme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=U4.minRowLength(i);l?o=Math.min(u,U4.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=U4.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Tu=G((wCe,_N)=>{"use strict";var bN=qe().dateTick0,Nme=(Et(),Ne(It)),Ime=Nme.ONEWEEK;function xN(e,r){return e%Ime===0?bN(r,1):bN(r,0)}_N.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",xN(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",xN(o,t.ycalendar)),n("yperiodalignment"))}}});var MN=G((TCe,TN)=>{"use strict";var wN=["orientation","groupnorm","stackgaps"];TN.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v<wN.length;v++){var h=wN[v],p=h+"Found";if(!u[p]){var y=r[h]!==void 0,m=h==="orientation";if((y||f)&&(u[h]=n(h,c[h]),m&&(u.fillDflt=u[h]==="h"?"tonextx":"tonexty"),y&&(u[p]=!0,!f&&(delete u.traces[0][h],m))))for(var b=0;b<u.traces.length-1;b++){var _=u.traces[b];_._input.fill!==_.fill&&(_.fill=u.fillDflt)}}}return u}}});var SN=G((MCe,LN)=>{"use strict";var AN=kr(),kN=$n().hasColorscale,CN=Gf(),Fme=Kn();LN.exports=function(r,t,a,n,i,l={}){var o=Fme.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),kN(r,"marker")&&CN(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=AN.background:u=AN.defaultLine,i("marker.line.color",u),kN(r,"marker.line")&&CN(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var DN=G((ACe,qN)=>{"use strict";var Hme=qe().isArrayOrTypedArray,Ome=$n().hasColorscale,Bme=Gf();qN.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),Ome(r,"line"))Bme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Hme(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var PN=G((kCe,EN)=>{"use strict";EN.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var zN=G((CCe,RN)=>{"use strict";var Yme=qe();RN.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Yme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var FN=G((LCe,IN)=>{"use strict";var Vm=kr(),NN=qe().isArrayOrTypedArray;function Gme(e){for(var r=Vm.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Vm.interpolate(e[t-1][1],e[t][1],.5);r=Vm.interpolate(r,a,e[t-1][0]/e[t][0])}return r}IN.exports=function(r,t,a,n,i){i||(i={});var l=!1;if(t.marker){var o=t.marker.color,s=(t.marker.line||{}).color;o&&!NN(o)?l=o:s&&!NN(s)&&(l=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=Gme(c))}}n("fillcolor",Vm.addOpacity((t.line||{}).color||l||u||a,.5))}});var YN=G((SCe,BN)=>{"use strict";var HN=qe(),Ume=Ar(),Vme=ji(),Xme=(ym(),Ne(mm)),hc=Kn(),Wme=od(),Zme=Tu(),$me=MN(),Jme=SN(),Kme=DN(),ON=PN(),jme=zN(),Qme=FN(),eye=qe().coercePattern;BN.exports=function(r,t,a,n){function i(h,p){return HN.coerce(r,t,Vme,h,p)}var l=Wme(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Zme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=$me(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l<Xme.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),hc.hasMarkers(t)&&Jme(r,t,a,n,i,{gradient:!0}),hc.hasLines(t)&&(Kme(r,t,a,n,i,{backoff:!0}),ON(r,t,i),i("connectgaps"),i("line.simplify")),hc.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),jme(r,t,n,i));var u=[];(hc.hasMarkers(t)||hc.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",o?o.fillDflt:"none"),t.fill!=="none"&&(Qme(r,t,a,i,{moduleHasFillgradient:!0}),hc.hasLines(t)||ON(r,t,i),eye(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 v=Ume.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),HN.coerceSelectionMarkerOpacity(t,i)}}});var pc=G((qCe,GN)=>{"use strict";var rye=gu().getAxisGroup;GN.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=rye(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=v.offsetGroups,y=p[h];t._offsetIndex=0,(i!=="group"||h)&&(y||(y=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var VN=G((DCe,UN)=>{"use strict";var tye=qe(),aye=pc(),nye=ji();UN.exports=function(r,t){var a,n,i,l=t.scattermode;function o(v){return tye.coerce(n._input,n,nye,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,aye(a,n,t,o,l));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 WN=G((ECe,XN)=>{"use strict";var iye=qe(),lye=E1();XN.exports=function(e,r){function t(n,i){return iye.coerce(e,r,lye,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Mu=G((PCe,$N)=>{"use strict";var oye=Ur(),ZN=qe(),sye=ZN.dateTime2ms,Xm=ZN.incrementMonth,uye=(Et(),Ne(It)),fye=uye.ONEAVGMONTH;$N.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(oye(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],h=sye(v,u)||0,p=[],y=[],m=[],b=n.length,_=0;_<b;_++){var w=n[_],x,M,A;if(o){for(x=Math.round((w-h)/(o*fye)),A=Xm(h,o*x,u);A>w;)A=Xm(A,-o,u);for(;A<=w;)A=Xm(A,o,u);M=Xm(A,-o,u)}else{for(x=Math.round((w-h)/l),A=h+x*l;A>w;)A-=l;for(;A<=w;)A+=l;M=A-l}p[_]=f?M:c?A:(M+A)/2,y[_]=M,m[_]=A}return{vals:p,starts:y,ends:m}}});var jN=G((RCe,KN)=>{"use strict";var V4=$n().hasColorscale,X4=lv(),JN=Kn();KN.exports=function(r,t){JN.hasLines(t)&&V4(t,"line")&&X4(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),JN.hasMarkers(t)&&(V4(t,"marker")&&X4(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),V4(t,"marker.line")&&X4(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var W4=G((zCe,QN)=>{"use strict";var Xt=qe();QN.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Xt.mergeArray(t.text,r,"tx"),Xt.mergeArray(t.texttemplate,r,"txt"),Xt.mergeArray(t.hovertext,r,"htx"),Xt.mergeArray(t.customdata,r,"data"),Xt.mergeArray(t.textposition,r,"tp"),t.textfont&&(Xt.mergeArrayCastPositive(t.textfont.size,r,"ts"),Xt.mergeArray(t.textfont.color,r,"tc"),Xt.mergeArray(t.textfont.family,r,"tf"),Xt.mergeArray(t.textfont.weight,r,"tw"),Xt.mergeArray(t.textfont.style,r,"ty"),Xt.mergeArray(t.textfont.variant,r,"tv"),Xt.mergeArray(t.textfont.textcase,r,"tC"),Xt.mergeArray(t.textfont.lineposition,r,"tE"),Xt.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Xt.mergeArrayCastPositive(n.size,r,"ms"),Xt.mergeArrayCastPositive(n.opacity,r,"mo"),Xt.mergeArray(n.symbol,r,"mx"),Xt.mergeArray(n.angle,r,"ma"),Xt.mergeArray(n.standoff,r,"mf"),Xt.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Xt.mergeArray(i.color,r,"mlc"),Xt.mergeArrayCastPositive(i.width,r,"mlw"),Xt.mergeArray(i.dash,r,"mld"));var l=n.gradient;l&&l.type!=="none"&&(Xt.mergeArray(l.type,r,"mgt"),Xt.mergeArray(l.color,r,"mgc"))}}});var sd=G((NCe,rI)=>{"use strict";var eI=qe();rI.exports=function(r,t){eI.isArrayOrTypedArray(t.selectedpoints)&&eI.tagSelected(r,t)}});var j4=G((ICe,sI)=>{"use strict";var tI=Ur(),$4=qe(),ud=Qr(),aI=Mu(),Z4=(Et(),Ne(It)).BADNUM,J4=Kn(),cye=jN(),vye=W4(),dye=sd();function hye(e,r){var t=e._fullLayout,a=r._xA=ud.getFromId(e,r.xaxis||"x","x"),n=r._yA=ud.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=aI(r,a,"x",i),s=aI(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,v=new Array(c),h=r.ids,p=K4(r,t,a,n),y=!1,m,b,_,w,x,M;lI(t,r);var A="x",k="y",S;if(p)$4.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(k="s",S="x"):(A="s",S="y"),x=p.stackgaps==="interpolate";else{var D=iI(r,c);nI(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;b<c;b++){var N=v[b]={},O=tI(u[b]),F=tI(f[b]);O&&F?(N[A]=u[b],N[k]=f[b],E&&(N.orig_x=i[b],N.xEnd=o.ends[b],N.xStart=o.starts[b]),R&&(N.orig_y=l[b],N.yEnd=s.ends[b],N.yStart=s.starts[b])):p&&(m?O:F)?(N[S]=m?u[b]:f[b],N.gap=!0,x?(N.s=Z4,y=!0):N.s=0):N[A]=N[k]=Z4,h&&(N.id=String(h[b]))}if(vye(v,r),cye(e,r),dye(v,r),p){for(b=0;b<v.length;)v[b][S]===Z4?v.splice(b,1):b++;if($4.sort(v,function(U,X){return U[S]-X[S]||U.i-X.i}),y){for(b=0;b<v.length-1&&v[b].gap;)b++;for(M=v[b].s,M||(M=v[b].s=0),_=0;_<b;_++)v[_].s=M;for(w=v.length-1;w>b&&v[w].gap;)w--;for(M=v[w].s,_=v.length-1;_>w;_--)v[_].s=M;for(;b<w;)if(b++,v[b].gap){for(_=b+1;v[_].gap;)_++;for(var I=v[b-1][S],Y=v[b-1].s,B=(v[_].s-Y)/(v[_][S]-I);b<_;)v[b].s=Y+(v[b][S]-I)*B,b++}}}return v}function nI(e,r,t,a,n,i,l){var o=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[oI(r)]===r.uid,v=(K4(r,s,t,a)||{}).orientation,h=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},y={padded:!0};l&&(p.ppad=y.ppad=l);var m=o<2||n[0]!==n[o-1]||i[0]!==i[o-1];m&&(h==="tozerox"||h==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(h==="tonexty"||h==="tozeroy"||!J4.hasMarkers(r)&&!J4.hasText(r))&&(p.padded=!1,p.ppad=0),m&&(h==="tozeroy"||h==="tonexty"&&(c||v==="v"))?y.tozero=!0:(h==="tonextx"||h==="tozerox")&&(y.padded=!1),u&&(r._extremes[u]=ud.findExtremes(t,n,p)),f&&(r._extremes[f]=ud.findExtremes(a,i,y))}function iI(e,r){if(J4.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)},$4.isArrayOrTypedArray(t.size)){var i={type:"linear"};ud.setConvert(i);for(var l=i.makeCalcdata(e.marker,"size"),o=new Array(r),s=0;s<r;s++)o[s]=n(l[s]);return o}else return n(t.size)}}function lI(e,r){var t=oI(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function oI(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function K4(e,r,t,a){var n=e.stackgroup;if(n){var i=r._scatterStackOpts[t._id+a._id][n],l=i.orientation==="v"?a:t;if(l.type==="linear"||l.type==="log")return i}}sI.exports={calc:hye,calcMarkerSize:iI,calcAxisExpansion:nI,setFirstScatter:lI,getStackOpts:K4}});var fI=G((FCe,uI)=>{"use strict";uI.exports=Wm;var pye=qe().distinctVals;function Wm(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 l=e[i],o=0;o<l.length;o++){var s=l[o],u=s.p;u===void 0&&(u=s[a]),u!==void 0&&n.push(u)}l[0]&&l[0].width1&&(t=Math.min(l[0].width1,t))}this.positions=n;var f=pye(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={}}Wm.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};Wm.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Wm.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 fd={};ht(fd,{TEXTPAD:()=>mye,eventDataKeys:()=>yye});var mye,yye,cd=lt(()=>{"use strict";mye=3,yye=["value","label"]});var gc=G((HCe,hI)=>{"use strict";var Si=Ur(),{isArrayOrTypedArray:lo}=qe(),{BADNUM:mc}=(Et(),Ne(It)),gye=Ar(),vd=Qr(),{getAxisGroup:bye}=gu(),Zm=fI(),{TEXTPAD:xye}=(cd(),Ne(fd)),{LINE_SPACING:_ye}=(Va(),Ne(Ua)),{BR_TAG_ALL:wye}=pa();function Tye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;u<i.length;u++){var f=i[u];if(f.visible===!0&&gye.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?o.push(l[u]):s.push(l[u]),f._computePh))for(var c=e.calcdata[u],v=0;v<c.length;v++)typeof c[v].ph0=="function"&&(c[v].ph0=c[v].ph0()),typeof c[v].ph1=="function"&&(c[v].ph1=c[v].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};e6(e,t,a,s,h),e6(e,a,t,o,h)}function e6(e,r,t,a,n){if(a.length){var i,l,o,s,u;switch(kye(t,a),n.mode){case"overlay":Q4(e,r,t,a,n);break;case"group":for(i=[],l=[],o=0;o<a.length;o++)s=a[o],u=s[0].trace,u.offset===void 0?l.push(s):i.push(s);l.length&&Cye(e,r,t,l,n),i.length&&Q4(e,r,t,i,n);break;case"stack":case"relative":for(i=[],l=[],o=0;o<a.length;o++)s=a[o],u=s[0].trace,u.base===void 0?l.push(s):i.push(s);Aye(l),l.length&&Lye(e,r,t,l,n),i.length&&Q4(e,r,t,i,n);break}Mye(a),Rye(a,r)}}function Mye(e){var r,t,a,n,i,l,o;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&&(l=Si(i)?+i:+i.slice(0,-1),o=Si(i)?"px":"%",n.cornerradiusvalue=l,n.cornerradiusform=o))}function Aye(e){if(!(e.length<2)){var r,t,a,n,i,l,o;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(l=Si(i)?+i:+i.slice(0,-1),o=Si(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=l,n.cornerradiusform=o}}function kye(e,r){var t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0].trace,l=i.type==="funnel"?i._base:i.base,o,s=i.orientation==="h"?i.xcalendar:i.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(lo(l)){for(a=0;a<Math.min(l.length,n.length);a++)o=u(l[a],0,s),Si(o)?(n[a].b=+o,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{o=u(l,0,s);var f=Si(o);for(o=f?o:0,a=0;a<n.length;a++)n[a].b=o,f&&(n[a].hasB=1)}}}function Q4(e,r,t,a,n){for(var i=0;i<a.length;i++){var l=a[i],o=new Zm([l],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});r6(e,r,o,n),n.norm?(dI(o),t6(t,o,n)):vI(t,o)}}function Cye(e,r,t,a,n){var i=new Zm(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});r6(e,r,i,n),Eye(i,r),n.norm?(dI(i),t6(t,i,n)):vI(t,i)}function Lye(e,r,t,a,n){var i=new Zm(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});r6(e,r,i,n),Dye(t,i,n);for(var l=0;l<a.length;l++)for(var o=a[l],s=o[0].t.offsetindex,u=0;u<o.length;u++){var f=o[u];if(f.s!==mc){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&t6(t,i,n)}function r6(e,r,t,a){var n=e._fullLayout,i=t.positions,l=t.distinctPositions,o=t.minDiff,s=t.traces,u=s.length,f=i.length!==l.length,c=o*(1-a.gap),v,h,p,y;if(r._id==="angularaxis")v=c,h=v*(1-(a.groupgap||0)),p=-h/2;else{var m=bye(n,r._id)+s[0][0].trace.orientation;y=n._alignmentOpts[m]||{}}for(var b=0;b<u;b++){var _=s[b],w=_[0].trace;if(r._id!=="angularaxis"){var x=y[w.alignmentgroup]||{},M=Object.keys(x.offsetGroups||{}).length;M?v=c/M:v=f?c/u:c,h=v*(1-(a.groupgap||0)),M?p=((2*w._offsetIndex+1-M)*v-h)/2:p=f?((2*b+1-u)*v-h)/2:-h/2}var A=_[0].t;A.barwidth=h,A.offsetindex=w._offsetIndex||0,A.poffset=p,A.bargroupwidth=c,A.bardelta=o}t.binWidth=s[0][0].t.barwidth/100,Sye(t),qye(r,t),r._id==="angularaxis"?cI(r,t):cI(r,t,f)}function Sye(e){var r=e.traces,t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0],l=i.trace,o=i.t,s=l._offset||l.offset,u=o.poffset,f;if(lo(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)Si(f[a])||(f[a]=u);for(a=f.length;a<n.length;a++)f.push(u);o.poffset=f}else s!==void 0&&(o.poffset=s);var c=l._width||l.width,v=o.barwidth;if(lo(c)){var h=Array.prototype.slice.call(c,0,n.length);for(a=0;a<h.length;a++)Si(h[a])||(h[a]=v);for(a=h.length;a<n.length;a++)h.push(v);if(o.barwidth=h,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(v-h[a])/2);o.poffset=f}}else c!==void 0&&(o.barwidth=c,s===void 0&&(o.poffset=u+(v-c)/2))}}function qye(e,r){for(var t=r.traces,a=yc(e),n=0;n<t.length;n++)for(var i=t[n],l=i[0].t,o=l.poffset,s=lo(o),u=l.barwidth,f=lo(u),c=0;c<i.length;c++){var v=i[c],h=v.w=f?u[c]:u;v.p===void 0&&(v.p=v[a],v["orig_"+a]=v[a]);var p=(s?o[c]:o)+h/2;v[a]=v.p+p}}function cI(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;vd.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var l=0;l<a.length;l++){var o=a[l],s=o[0],u=s.trace,f=[],c,v,h,p;for(p=0;p<o.length;p++)c=o[p],v=c.p-i,h=c.p+i,f.push(v,h);if(u.width||u.offset){var y=s.t,m=y.poffset,b=y.barwidth,_=lo(m),w=lo(b);for(p=0;p<o.length;p++){c=o[p];var x=_?m[p]:m,M=w?b[p]:b;v=c.p+x,h=v+M,f.push(v,h)}}u._extremes[e._id]=vd.findExtremes(e,f,{padded:!1})}}function vI(e,r){for(var t=r.traces,a=yc(e),n=0;n<t.length;n++){for(var i=t[n],l=i[0].trace,o=l.type==="scatter",s=l.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var v=i[c],h=o?0:v.b,p=o?s?v.y:v.x:h+v.s;v[a]=p,u.push(p),v.hasB&&u.push(h),(!v.hasB||!v.b)&&(f=!0)}let{ppadminus:y,ppadplus:m}=a6(l,i);l._extremes[e._id]=vd.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:m,ppadminus:y})}}function Dye(e,r,t){var a=yc(e),n=r.traces,i,l,o,s,u,f,c;for(s=0;s<n.length;s++)if(i=n[s],l=i[0].trace,l.type==="funnel")for(c=i[0].t.offsetindex,u=0;u<i.length;u++)f=i[u],f.s!==mc&&r.put(f.p,c,-.5*f.s);for(s=0;s<n.length;s++){i=n[s],l=i[0].trace,o=l.type==="funnel",c=l.type==="barpolar"?0:i[0].t.offsetindex;var v=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==mc){var h;o?h=f.s:h=f.s+f.b;var p=r.put(f.p,c,h),y=p+h;f.b=p,f[a]=y,t.norm||(v.push(y),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:m,ppadplus:b}=a6(l,i);l._extremes[e._id]=vd.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:b,ppadminus:m})}}}function dI(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 l=a[i];l.s!==mc&&e.put(l.p,n,l.b+l.s)}}function Eye(e,r){for(var t=e.traces,a=0;a<t.length;a++){var n=t[a],i=n[0].trace,l=n[0].t.offsetindex;if(i.base===void 0)for(var o=new Zm([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==mc){var f=o.put(u.p,l,u.b+u.s);f&&(u.b=f)}}}}function t6(e,r,t){var a=r.traces,n=yc(e),i=t.norm==="fraction"?1:100,l=i/1e9,o=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:o;function u(A){return Si(e.c2l(A))&&(A<o-l||A>s+l||!Si(o))}for(var f=0;f<a.length;f++){for(var c=a[f],v=c[0].t.offsetindex,h=c[0].trace,p=[],y=!1,m=!1,b=0;b<c.length;b++){var _=c[b];if(_.s!==mc){var w=Math.abs(i/r.get(_.p,v,_.s));_.b*=w,_.s*=w;var x=_.b,M=x+_.s;_[n]=M,p.push(M),m=m||u(M),_.hasB&&(p.push(x),m=m||u(x)),(!_.hasB||!_.b)&&(y=!0)}}let{ppadminus:A,ppadplus:k}=a6(h,c);h._extremes[e._id]=vd.findExtremes(e,p,{tozero:y,padded:m,ppadplus:k,ppadminus:A})}}function a6(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(wye)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=lo(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*_ye*t+xye;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 Pye(e,r,t,a){for(var n=yc(a),i=0;i<e.length;i++)for(var l=e[i],o=0;o<l.length;o++){var s=l[o],u=s[n];s._sMin=r[u],s._sMax=t[u]}}function Rye(e,r){var t=yc(r),a={},n,i,l,o=1/0,s=-1/0;for(n=0;n<e.length;n++)for(l=e[n],i=0;i<l.length;i++){var u=l[i].p;Si(u)&&(o=Math.min(o,u),s=Math.max(s,u))}var f=1e4/(s-o),c=a.round=function(S){return String(Math.round(f*(S-o)))},v={},h={},p=e.some(function(S){var D=S[0].trace;return"marker"in D&&D.marker.cornerradius});for(n=0;n<e.length;n++){l=e[n],l[0].t.extents=a;var y=l[0].t.poffset,m=lo(y);for(i=0;i<l.length;i++){var b=l[i],_=b[t]-b.w/2;if(Si(_)){var w=b[t]+b.w/2,x=c(b.p);a[x]?a[x]=[Math.min(_,a[x][0]),Math.max(w,a[x][1])]:a[x]=[_,w]}if(b.p0=b.p+(m?y[i]:y),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];v[k]=k in v?Math.min(v[k],M):M,h[k]=k in h?Math.max(h[k],A):A}}}p&&Pye(e,v,h,r)}function yc(e){return e._id.charAt(0)}hI.exports={crossTraceCalc:Tye,setGroupPositions:e6}});var gI=G((OCe,yI)=>{"use strict";var pI=j4(),mI=gc().setGroupPositions;function zye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],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"?o.push(l[u]):f.orientation==="v"&&s.push(l[u]))}var c={mode:n.scattermode,gap:n.scattergap};mI(e,t,a,s,c),mI(e,a,t,o,c)}yI.exports=function(r,t){r._fullLayout.scattermode==="group"&&zye(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,l=r._fullLayout._scatterStackOpts[i];if(l){var o=r.calcdata,s,u,f,c,v,h,p,y,m,b,_,w,x,M,A;for(var k in l){b=l[k];var S=b.traceIndices;if(S.length){for(_=b.stackgaps==="interpolate",w=b.groupnorm,b.orientation==="v"?(x="x",M="y"):(x="y",M="x"),A=new Array(S.length),s=0;s<A.length;s++)A[s]=!1;h=o[S[0]];var D=new Array(h.length);for(s=0;s<h.length;s++)D[s]=h[s][x];for(s=1;s<S.length;s++){for(v=o[S[s]],u=f=0;u<v.length;u++){for(p=v[u][x];p>D[f]&&f<D.length;f++)n6(v,u,D[f],s,A,_,x),u++;if(p!==D[f]){for(c=0;c<s;c++)n6(o[S[c]],f,p,c,A,_,x);D.splice(f,0,p)}f++}for(;f<D.length;f++)n6(v,u,D[f],s,A,_,x),u++}var E=D.length;for(u=0;u<h.length;u++){for(y=h[u][M]=h[u].s,s=1;s<S.length;s++)v=o[S[s]],v[0].trace._rawLength=v[0].trace._length,v[0].trace._length=E,y+=v[u].s,v[u][M]=y;if(w)for(m=(w==="fraction"?y:y/100)||1,s=0;s<S.length;s++){var R=o[S[s]][u];R[M]/=m,R.sNorm=R.s/m}}for(s=0;s<S.length;s++){v=o[S[s]];var N=v[0].trace,O=pI.calcMarkerSize(N,N._rawLength),F=Array.isArray(O);if(O&&A[s]||F){var I=O;for(O=new Array(E),u=0;u<E;u++)O[u]=v[u].gap?0:F?I[v[u].i]:I}var Y=new Array(E),B=new Array(E);for(u=0;u<E;u++)Y[u]=v[u].x,B[u]=v[u].y;pI.calcAxisExpansion(r,N,a,n,Y,B,O),v[0].t.orientation=b.orientation}}}}};function n6(e,r,t,a,n,i,l){n[a]=!0;var o={i:null,gap:!0,s:0};if(o[l]=t,e.splice(r,0,o),r&&t===e[r-1][l]){var s=e[r-1];o.s=s.s,o.i=s.i,o.gap=s.gap}else i&&(o.s=Nye(e,r,t,l));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function Nye(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 AI=G((BCe,MI)=>{"use strict";var Iye=$r(),wI=(Et(),Ne(It)),dd=wI.BADNUM,TI=wI.LOG_CLIP,bI=TI+.5,xI=TI-.5,$m=qe(),Fye=$m.segmentsIntersect,_I=$m.constrain,i6=(ym(),Ne(mm));MI.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,h=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],_=i6.minTolerance,w=r.length,x=new Array(w),M=0,A,k,S,D,E,R,N,O,F,I,Y,B,U,X,W,V;function J(Pe){var $e=r[Pe];if(!$e)return!1;var Ee=t.linearized?n.l2p($e.x):n.c2p($e.x),tr=t.linearized?i.l2p($e.y):i.c2p($e.y);if(Ee===dd){if(l&&(Ee=n.c2p($e.x,!0)),Ee===dd)return!1;o&&tr===dd&&(Ee*=Math.abs(n._m*u*(n._m>0?bI:xI)/(i._m*s*(i._m>0?bI:xI)))),Ee*=1e3}if(tr===dd){if(o&&(tr=i.c2p($e.y,!0)),tr===dd)return!1;tr*=1e3}return[Ee,tr]}function re(Pe,$e,Ee,tr){var pr=Ee-Pe,yr=tr-$e,cr=.5-Pe,ae=.5-$e,me=pr*pr+yr*yr,Re=pr*cr+yr*ae;if(Re>0&&Re<me){var Be=cr*yr-ae*pr;if(Be*Be<me)return!0}}var ne,de;function K(Pe,$e){var Ee=Pe[0]/s,tr=Pe[1]/u,pr=Math.max(0,-Ee,Ee-1,-tr,tr-1);return pr&&ne!==void 0&&re(Ee,tr,ne,de)&&(pr=0),pr&&$e&&re(Ee,tr,$e[0]/s,$e[1]/u)&&(pr=0),(1+i6.toleranceGrowth*pr)*h}function ye(Pe,$e){var Ee=Pe[0]-$e[0],tr=Pe[1]-$e[1];return Math.sqrt(Ee*Ee+tr*tr)}var oe=i6.maxScreensAway,Ce=-s*oe,se=s*(1+oe),fe=-u*oe,Te=u*(1+oe),Fe=[[Ce,fe,se,fe],[se,fe,se,Te],[se,Te,Ce,Te],[Ce,Te,Ce,fe]],be,Me,Ae,Le,ke,ze;function Se(Pe,$e){for(var Ee=[],tr=0,pr=0;pr<4;pr++){var yr=Fe[pr],cr=Fye(Pe[0],Pe[1],$e[0],$e[1],yr[0],yr[1],yr[2],yr[3]);cr&&(!tr||Math.abs(cr.x-Ee[0][0])>1||Math.abs(cr.y-Ee[0][1])>1)&&(cr=[cr.x,cr.y],tr&&ye(cr,Pe)<ye(Ee[0],Pe)?Ee.unshift(cr):Ee.push(cr),tr++)}return Ee}function Ue(Pe){if(Pe[0]<Ce||Pe[0]>se||Pe[1]<fe||Pe[1]>Te)return[_I(Pe[0],Ce,se),_I(Pe[1],fe,Te)]}function Ke(Pe,$e){if(Pe[0]===$e[0]&&(Pe[0]===Ce||Pe[0]===se)||Pe[1]===$e[1]&&(Pe[1]===fe||Pe[1]===Te))return!0}function er(Pe,$e){var Ee=[],tr=Ue(Pe),pr=Ue($e);return tr&&pr&&Ke(tr,pr)||(tr&&Ee.push(tr),pr&&Ee.push(pr)),Ee}function De(Pe,$e,Ee){return function(tr,pr){var yr=Ue(tr),cr=Ue(pr),ae=[];if(yr&&cr&&Ke(yr,cr))return ae;yr&&ae.push(yr),cr&&ae.push(cr);var me=2*$m.constrain((tr[Pe]+pr[Pe])/2,$e,Ee)-((yr||tr)[Pe]+(cr||pr)[Pe]);if(me){var Re;yr&&cr?Re=me>0==yr[Pe]>cr[Pe]?yr:cr:Re=yr||cr,Re[Pe]+=me}return ae}}var Ye;p==="linear"||p==="spline"?Ye=Se:p==="hv"||p==="vh"?Ye=er:p==="hvh"?Ye=De(0,Ce,se):p==="vhv"&&(Ye=De(1,fe,Te));function rr(Pe,$e){var Ee=$e[0]-Pe[0],tr=($e[1]-Pe[1])/Ee,pr=(Pe[1]*$e[0]-$e[1]*Pe[0])/Ee;return pr>0?[tr>0?Ce:se,Te]:[tr>0?se:Ce,fe]}function te(Pe){var $e=Pe[0],Ee=Pe[1],tr=$e===x[M-1][0],pr=Ee===x[M-1][1];if(!(tr&&pr))if(M>1){var yr=$e===x[M-2][0],cr=Ee===x[M-2][1];tr&&($e===Ce||$e===se)&&yr?cr?M--:x[M-1]=Pe:pr&&(Ee===fe||Ee===Te)&&cr?yr?M--:x[M-1]=Pe:x[M++]=Pe}else x[M++]=Pe}function pe(Pe){x[M-1][0]!==Pe[0]&&x[M-1][1]!==Pe[1]&&te([Ae,Le]),te(Pe),ke=null,Ae=Le=0}var Ve=$m.isArrayOrTypedArray(c);function vr(Pe){if(Pe&&f&&(Pe.i=A,Pe.d=r,Pe.trace=a,Pe.marker=Ve?c[Pe.i]:c,Pe.backoff=f),ne=Pe[0]/s,de=Pe[1]/u,be=Pe[0]<Ce?Ce:Pe[0]>se?se:0,Me=Pe[1]<fe?fe:Pe[1]>Te?Te:0,be||Me){if(!M)x[M++]=[be||Pe[0],Me||Pe[1]];else if(ke){var $e=Ye(ke,Pe);$e.length>1&&(pe($e[0]),x[M++]=$e[1])}else ze=Ye(x[M-1],Pe)[0],x[M++]=ze;var Ee=x[M-1];be&&Me&&(Ee[0]!==be||Ee[1]!==Me)?(ke&&(Ae!==be&&Le!==Me?te(Ae&&Le?rr(ke,Pe):[Ae||be,Le||Me]):Ae&&Le&&te([Ae,Le])),te([be,Me])):Ae-be&&Le-Me&&te([be||Ae,Me||Le]),ke=Pe,Ae=be,Le=Me}else ke&&pe(Ye(ke,Pe)[0]),x[M++]=Pe}for(A=0;A<w;A++)if(k=J(A),!!k){for(M=0,ke=null,vr(k),A++;A<w;A++){if(D=J(A),!D){if(v)continue;break}if(!y||!t.simplify){vr(D);continue}var hr=J(A+1);if(I=ye(D,k),!(!(m&&(M===0||M===w-1))&&I<K(D,hr)*_)){for(O=[(D[0]-k[0])/I,(D[1]-k[1])/I],E=k,Y=I,B=X=W=0,N=!1,S=D,A++;A<r.length;A++){if(R=hr,hr=J(A+1),!R){if(v)continue;break}if(F=[R[0]-k[0],R[1]-k[1]],V=F[0]*O[1]-F[1]*O[0],X=Math.min(X,V),W=Math.max(W,V),W-X>K(R,hr))break;S=R,U=F[0]*O[0]+F[1]*O[1],U>Y?(Y=U,D=R,N=!1):U<B&&(B=U,E=R,N=!0)}if(N?(vr(D),S!==E&&vr(E)):(E!==k&&vr(E),S!==D&&vr(D)),vr(S),A>=r.length||!R)break;vr(R),k=R}}ke&&te([Ae||ke[0],Le||ke[1]]),b.push(x.slice(0,M))}var le=p.slice(p.length-1);if(f&&le!=="h"&&le!=="v"){for(var ge=!1,Ie=-1,Xe=[],He=0;He<b.length;He++)for(var Ze=0;Ze<b[He].length-1;Ze++){var Je=b[He][Ze],mr=b[He][Ze+1],_r=Iye.applyBackoff(mr,Je);(_r[0]!==mr[0]||_r[1]!==mr[1])&&(ge=!0),Xe[Ie+1]||(Ie++,Xe[Ie]=[Je,[_r[0],_r[1]]])}return ge?Xe:b}return b}});var LI=G((YCe,CI)=>{"use strict";var kI={tonextx:1,tonexty:1,tonext:1};CI.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,v=0,h=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,l=n.stackgroup||"",l?l in u?s=u[l]:(s=u[l]=v,v++):n.fill in kI&&h>=0?s=h:(s=h=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(m,b){var _=m[0].trace,w=b[0].trace;return _._groupIndex-w._groupIndex||_.index-w.index});var y={};for(i=0;i<p.length;i++)n=p[i][0].trace,l=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in kI&&(o=y[l],n._prevtrace=o||null,o&&(o._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),y[l]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var EI=G((GCe,DI)=>{"use strict";var rl=Er(),Hye=Ar(),hd=qe(),bc=hd.ensureSingle,qI=hd.identity,jt=$r(),xc=Kn(),Oye=AI(),Bye=LI(),Jm=i4().tester;DI.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Bye(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),Yye(r,o,t),f){l&&(s=l());var v=rl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(h,p){SI(r,p,t,h,c,this,i)})})}else o.each(function(h,p){SI(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Yye(e,r,t){r.each(function(a){var n=bc(rl.select(this),"g","fills");jt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,qI);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=bc(rl.select(this),"path","js-fill")})})}function SI(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Gye(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,h=a[0].trace,p=h.line,y=rl.select(i),m=bc(y,"g","errorbars"),b=bc(y,"g","lines"),_=bc(y,"g","points"),w=bc(y,"g","text");if(Hye.getComponentMethod("errorbars","plot")(e,m,t,l),h.visible!==!0)return;f(y).style("opacity",h.opacity);var x,M,A=h.fill.charAt(h.fill.length-1);A!=="x"&&A!=="y"&&(A="");var k,S;A==="y"?(k=1,S=v.c2p(0,!0)):A==="x"&&(k=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",E=[],R=h._prevtrace,N=null,O=null;R&&(D=R._prevRevpath||"",M=R._nextFill,E=R._ownPolygons,N=R._fillsegments,O=R._fillElement);var F,I,Y="",B="",U,X,W,V,J,re,ne=[];h._polygons=[];var de=[],K=[],ye=hd.noop;if(x=h._ownFill,xc.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=jt.steps(p.shape),X=jt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=X=function(De){var Ye=De[De.length-1];return De.length>1&&De[0][0]===Ye[0]&&De[0][1]===Ye[1]?jt.smoothclosed(De.slice(1),p.smoothing):jt.smoothopen(De,p.smoothing)}:U=X=function(De){return"M"+De.join("L")},W=function(De){return X(De.reverse())},K=Oye(a,{xaxis:c,yaxis:v,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}),de=new Array(K.length);var oe=0;for(s=0;s<K.length;s++){var Ce,se=K[s];!Ce||!A?(Ce=se.slice(),de[oe]=Ce,oe++):Ce.push.apply(Ce,se)}h._fillElement=null,h._fillExclusionElement=O,h._fillsegments=de.slice(0,oe),de=h._fillsegments,K.length&&(V=K[0][0].slice(),J=K[K.length-1],re=J[J.length-1].slice()),ye=function(De){return function(Ye){if(F=U(Ye),I=W(Ye),Y?A?(Y+="L"+F.slice(1),B=I+("L"+B.slice(1))):(Y+="Z"+F,B=I+"Z"+B):(Y=F,B=I),xc.hasLines(h)){var rr=rl.select(this);if(rr.datum(a),De)f(rr.style("opacity",0).attr("d",F).call(jt.lineGroupStyle)).style("opacity",1);else{var te=f(rr);te.attr("d",F),jt.singleLineStyle(a,te)}}}}}var fe=b.selectAll(".js-line").data(K);f(fe.exit()).style("opacity",0).remove(),fe.each(ye(!1)),fe.enter().append("path").classed("js-line",!0).style("vector-effect",o?"none":"non-scaling-stroke").call(jt.lineGroupStyle).each(ye(!0)),jt.setClipUrl(fe,t.layerClipId,e);function Te(De){f(De).attr("d","M0,0Z")}var Fe=function(){var De=new Array(de.length);for(s=0;s<de.length;s++)De[s]=Jm(de[s]);return De},be=function(De){var Ye,rr;if(!De||De.length===0)for(Ye=new Array(de.length),rr=0;rr<de.length;rr++){var te=de[rr][0].slice(),pe=de[rr][de[rr].length-1].slice();te[k]=pe[k]=S;var Ve=[pe,te],vr=Ve.concat(de[rr]);Ye[rr]=Jm(vr)}else{for(Ye=new Array(De.length-1+de.length),rr=0;rr<De.length-1;rr++)Ye[rr]=Jm(De[rr]);var hr=De[De.length-1].slice();for(hr.reverse(),rr=0;rr<de.length;rr++)Ye[De.length-1+rr]=Jm(de[rr].concat(hr))}return Ye};K.length?(x?(x.datum(a),V&&re&&(A?(V[k]=re[k]=S,f(x).attr("d","M"+re+"L"+V+"L"+Y.slice(1)).call(jt.singleFillStyle,e),ne=be(null)):(f(x).attr("d",Y+"Z").call(jt.singleFillStyle,e),ne=Fe())),h._polygons=ne,h._fillElement=x):M&&(h.fill.slice(0,6)==="tonext"&&Y&&D?(h.fill==="tonext"?(f(M).attr("d",Y+"Z"+D+"Z").call(jt.singleFillStyle,e),ne=Fe(),h._polygons=ne.concat(E)):(f(M).attr("d",Y+"L"+D.slice(1)+"Z").call(jt.singleFillStyle,e),ne=be(N),h._polygons=ne),h._fillElement=M):Te(M)),h._prevRevpath=B):(x?Te(x):M&&Te(M),h._prevRevpath=null),h._ownPolygons=ne;function Me(De){return De.filter(function(Ye){return!Ye.gap&&Ye.vis})}function Ae(De){return De.filter(function(Ye){return Ye.vis})}function Le(De){return De.filter(function(Ye){return!Ye.gap})}function ke(De){return De.id}function ze(De){if(De.ids)return ke}function Se(){return!1}function Ue(De,Ye,rr){var te,pe,Ve,vr=rr[0].trace,hr=xc.hasMarkers(vr),le=xc.hasText(vr),ge=ze(vr),Ie=Se,Xe=Se;if(hr||le){var He=qI,Ze=vr.stackgroup,Je=Ze&&e._fullLayout._scatterStackOpts[c._id+v._id][Ze].stackgaps==="infer zero";vr.marker.maxdisplayed||vr._needsCull?He=Je?Ae:Me:Ze&&!Je&&(He=Le),hr&&(Ie=He),le&&(Xe=He)}pe=De.selectAll("path.point"),te=pe.data(Ie,ge);var mr=te.enter().append("path").classed("point",!0);u&&mr.call(jt.pointStyle,vr,e).call(jt.translatePoints,c,v).style("opacity",0).transition().style("opacity",1),te.order();var _r;hr&&(_r=jt.makePointStyleFns(vr)),te.each(function(Pe){var $e=rl.select(this),Ee=f($e);Ve=jt.translatePoint(Pe,Ee,c,v),Ve?(jt.singlePointStyle(Pe,Ee,vr,_r,e),t.layerClipId&&jt.hideOutsideRangePoint(Pe,Ee,c,v,vr.xcalendar,vr.ycalendar),vr.customdata&&$e.classed("plotly-customdata",Pe.data!==null&&Pe.data!==void 0)):Ee.remove()}),u?te.exit().transition().style("opacity",0).remove():te.exit().remove(),pe=Ye.selectAll("g"),te=pe.data(Xe,ge),te.enter().append("g").classed("textpoint",!0).append("text"),te.order(),te.each(function(Pe){var $e=rl.select(this),Ee=f($e.select("text"));Ve=jt.translatePoint(Pe,Ee,c,v),Ve?t.layerClipId&&jt.hideOutsideRangePoint(Pe,$e,c,v,vr.xcalendar,vr.ycalendar):$e.remove()}),te.selectAll("text").call(jt.textPointStyle,vr,e).each(function(Pe){var $e=c.c2p(Pe.x),Ee=v.c2p(Pe.y);rl.select(this).selectAll("tspan.line").each(function(){f(rl.select(this)).attr({x:$e,y:Ee})})}),te.exit().remove()}_.datum(a),w.datum(a),Ue(_,w,a);var Ke=h.cliponaxis===!1,er=Ke?null:t.layerClipId;jt.setClipUrl(_,er,e),jt.setClipUrl(w,er,e)}function Gye(e,r,t,a,n){var i=t.xaxis,l=t.yaxis,o=rl.extent(hd.simpleMap(i.range,i.r2c)),s=rl.extent(hd.simpleMap(l.range,l.r2c)),u=a[0].trace;if(xc.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(y){return y.x>=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),h=0;n.forEach(function(y,m){var b=y[0].trace;xc.hasMarkers(b)&&b.marker.maxdisplayed>0&&m<r&&h++});var p=Math.round(h*v/3+Math.floor(h/3)*v/7.1);a.forEach(function(y){delete y.vis}),c.forEach(function(y,m){Math.round((m+p)%v)===0&&(y.vis=!0)})}}}});var Km=G((UCe,PI)=>{"use strict";PI.exports={container:"marker",min:"cmin",max:"cmax"}});var zI=G((VCe,RI)=>{"use strict";var jm=Qr();RI.exports=function(r,t,a){var n={},i={_fullLayout:a},l=jm.getFromTrace(i,t,"x"),o=jm.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=jm.tickText(l,l.c2l(s),!0).text,n.yLabel=jm.tickText(o,o.c2l(u),!0).text,n}});var u6=G((XCe,NI)=>{"use strict";var l6=Er(),_c=$r(),Uye=Ar();function Vye(e){var r=l6.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=l6.select(this),n=t.trace||t[0].trace;o6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=l6.select(this),n=t.trace||t[0].trace;s6(a,n,e)}),r.selectAll("g.trace path.js-line").call(_c.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(_c.fillGroupStyle,e,!1),Uye.getComponentMethod("errorbars","style")(r)}function o6(e,r,t){_c.pointStyle(e.selectAll("path.point"),r,t)}function s6(e,r,t){_c.textPointStyle(e.selectAll("text"),r,t)}function Xye(e,r,t){var a=r[0].trace;a.selectedpoints?(_c.selectedPointStyle(t.selectAll("path.point"),a),_c.selectedTextStyle(t.selectAll("text"),a)):(o6(t,a,e),s6(t,a,e))}NI.exports={style:Vye,stylePoints:o6,styleText:s6,styleOnSelect:Xye}});var FI=G((WCe,II)=>{"use strict";var wc=kr(),Wye=Kn();II.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&wc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&wc.opacity(i)?i:l&&wc.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?wc.opacity(n)<.3?wc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&wc.opacity(a)&&Wye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var BI=G((ZCe,OI)=>{"use strict";var Qm=qe(),HI=bi(),Zye=Ar(),$ye=FI(),f6=kr(),Jye=Qm.fillText;OI.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],v=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,y=!!l.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(B){if(p){var U=o.c2p(B.xStart),X=o.c2p(B.xEnd);return u>=Math.min(U,X)&&u<=Math.max(U,X)?0:1/0}var W=Math.max(3,B.mrc||0),V=1-1/W,J=Math.abs(o.c2p(B.x)-u);return J<W?V*J/W:J-W+V},b=function(B){if(y){var U=s.c2p(B.yStart),X=s.c2p(B.yEnd);return f>=Math.min(U,X)&&f<=Math.max(U,X)?0:1/0}var W=Math.max(3,B.mrc||0),V=1-1/W,J=Math.abs(s.c2p(B.y)-f);return J<W?V*J/W:J-W+V},_=function(B){var U=Math.max(h,B.mrc||0),X=o.c2p(B.x)-u,W=s.c2p(B.y)-f;return Math.max(Math.sqrt(X*X+W*W)-U,1-h/U)},w=HI.getDistanceFunction(n,m,b,_);if(HI.getClosest(i,w,r),r.index!==!1){var x=i[r.index],M=o.c2p(x.x,!0),A=s.c2p(x.y,!0),k=x.mrc||1;r.index=x.i;var S=i[0].t.orientation,D=S&&(x.sNorm||x.s),E=S==="h"?D:x.orig_x!==void 0?x.orig_x:x.x,R=S==="v"?D:x.orig_y!==void 0?x.orig_y:x.y;return Qm.extendFlat(r,{color:$ye(l,x),x0:M-k,x1:M+k,xLabelVal:E,y0:A-k,y1:A+k,yLabelVal:R,spikeDistance:_(x),hovertemplate:l.hovertemplate}),Jye(x,l,r),Zye.getComponentMethod("errorbars","hoverInfo")(x,l,r),[r]}}function N(B){if(!B)return!1;var U=B.node();try{var X=new DOMPoint(c[0],c[1]);return U.isPointInFill(X)}catch(V){var W=U.ownerSVGElement.createSVGPoint();return W.x=c[0],W.y=c[1],U.isPointInFill(W)}}function O(B){var U,X=[],W=1/0,V=-1/0,J=1/0,re=-1/0,ne;for(U=0;U<B.length;U++){var de=B[U];de.contains(c)&&(X.push(de),J=Math.min(J,de.ymin),re=Math.max(re,de.ymax))}if(X.length===0)return null;J=Math.max(J,0),re=Math.min(re,s._length),ne=(J+re)/2;var K,ye,oe,Ce,se,fe,Te;for(U=0;U<X.length;U++)for(ye=X[U].pts,K=1;K<ye.length;K++)fe=ye[K-1][1],Te=ye[K][1],fe>ne!=Te>=ne&&(Ce=ye[K-1][0],se=ye[K][0],Te-fe&&(oe=Ce+(se-Ce)*(ne-fe)/(Te-fe),W=Math.min(W,oe),V=Math.max(V,oe)));return W=Math.max(W,0),V=Math.min(V,o._length),{x0:W,x1:V,y0:ne,y1:ne}}if(v.indexOf("fills")!==-1&&l._fillElement){var F=N(l._fillElement)&&!N(l._fillExclusionElement);if(F){var I=O(l._polygons);I===null&&(I={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Y=f6.defaultLine;return f6.opacity(l.fillcolor)?Y=l.fillcolor:f6.opacity((l.line||{}).color)&&(Y=l.line.color),Qm.extendFlat(r,{distance:r.maxHoverDistance,x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1,color:Y,hovertemplate:!1}),delete r.index,l.text&&!Qm.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var UI=G(($Ce,GI)=>{"use strict";var YI=Kn();GI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,v=o.mode&&!YI.hasMarkers(o)&&!YI.hasText(o);if(v)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)?(l.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0;return l}});var XI=G((JCe,VI)=>{"use strict";VI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var JI=G((KCe,$I)=>{"use strict";var ey=Ar().traceIs,c6=Db();$I.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Kye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Kye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=jye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!ey(i,"cartesian")||ey(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,ZI(i,a)){var u=WI(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!ey(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[l]!==o&&(o=void 0))}e.type=c6(f,o,s)}else if(i.type==="splom"){var v=i.dimensions,h=v[i._axesDim[t]];h.visible&&(e.type=c6(h.values,o,s))}else e.type=c6(i[a]||[i[a+"0"]],o,s)}}}function jye(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(ZI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function WI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function ZI(e,r){var t=WI(e),a=ey(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var jI=G((jCe,KI)=>{"use strict";var Qye=Dn().isTypedArraySpec;function ege(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i<r.data.length;i++){var o=r.data[i];o[t+"axis"]===e._id&&n.push(o)}for(i=0;i<n.length;i++){var s=n[i][t];for(l=0;l<s.length;l++){var u=s[l];u!=null&&(a[u]=1)}}return Object.keys(a)}KI.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,l=Array.isArray(i)&&i.length>0||Qye(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=ege(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var rF=G((QCe,eF)=>{"use strict";var QI=kr(),rge=vi(),tge=qe();eF.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return tge.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=QI.mix(i,n.bgColor,n.blend||rge.lightFraction),c=l("gridcolor",f),v=l("gridwidth"),h=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=QI.mix(t.gridcolor,n.bgColor,67),m=l("minor.gridcolor",y),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),M=l("zerolinecolor",i),A=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!M||!!A);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var ty=G((eLe,oF)=>{"use strict";var tF=Ur(),age=Ar(),pd=qe(),nge=mt(),ige=mi(),v6=Jn(),aF=B1(),nF=Y1(),lge=U1(),oge=V1(),sge=jI(),uge=rF(),fge=Qb(),iF=ip(),ry=(Aa(),Ne(Ma)).WEEKDAY_PATTERN,cge=(Aa(),Ne(Ma)).HOUR_PATTERN;oF.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var h=age.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=pd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:l==="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"),iF(t,i),fge(r,t,a,n),sge(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==v6.color.dflt?y:o.color,b=s.label||i._dfltTitle[l];if(oge(r,t,a,c,n),!u)return t;a("title.text",b),pd.coerceFont(a,"title.font",o,{overrideDflt:{size:pd.bigFont(o.size),color:m}}),aF(r,t,a,c);var _=n.hasMinor;if(_&&(nge.newContainer(t,"minor"),aF(r,t,a,c,{isMinor:!0})),lge(r,t,a,c,n),nF(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,nF(r,t,a,n),n.isMinor=w}uge(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:v6}),_&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(ige(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:vge}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var A=0;A<t.rangebreaks.length;A++)if(t.rangebreaks[A].pattern===ry){t._hasDayOfWeekBreaks=!0;break}if(iF(t,i),i._has("scattergl")||i._has("splom"))for(var k=0;k<n.data.length;k++){var S=n.data[k];(S.type==="scattergl"||S.type==="splom")&&(S.visible=!1,pd.warn(S.type+" traces do not work on axes with rangebreaks. Setting trace "+S.index+" to `visible: false`."))}}return t};function vge(e,r,t){function a(v,h){return pd.coerce(e,r,v6.rangebreaks,v,h)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=lF(i[o]),s){l=ry;break}}var u=a("pattern",l);if(u===ry)for(o=0;o<2;o++)s=lF(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case ry:if(!tF(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case cge:if(!tF(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=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 dge={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function lF(e){if(typeof e=="string")return dge[e.slice(0,3).toLowerCase()]}});var ny=G((rLe,sF)=>{"use strict";var hge=Ur(),ay=qe();sF.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,h,p,y;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[o+"side"].split(" ")[0],h=s.domain[o][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(hge(r.position)?"free":i[0]||"free"),v=v||(o==="x"?"bottom":"left"),h=h||0,p=0,y=!1;var m=ay.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=ay.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(o==="y"){var _=a("autoshift");_&&(h=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",y);var w=!1;if(l.length&&(w=ay.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),ay.noneOrAll(r.domain,t.domain,c),o==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var yF=G((tLe,mF)=>{"use strict";var Au=qe(),uF=kr(),pge=Wi().isUnifiedHover,mge=Cx(),fF=mt(),yge=Sf(),cF=Jn(),gge=JI(),vF=ty(),bge=gu(),dF=ny(),h6=fa(),El=h6.id2name,hF=h6.name2id,xge=(Aa(),Ne(Ma)).AX_ID_PATTERN,pF=Ar(),iy=pF.traceIs,d6=pF.getComponentMethod;function ly(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}mF.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},v={},h={},p={},y,m;for(y=0;y<a.length;y++){var b=a[y];if(iy(b,"cartesian")){var _;if(b.xaxis)_=El(b.xaxis),ly(i,_,b);else if(b.xaxes)for(m=0;m<b.xaxes.length;m++)ly(i,El(b.xaxes[m]),b);var w;if(b.yaxis)w=El(b.yaxis),ly(i,w,b);else if(b.yaxes)for(m=0;m<b.yaxes.length;m++)ly(i,El(b.yaxes[m]),b);if(b.type==="funnel"?b.orientation==="h"?(_&&(l[_]=!0),w&&(c[w]=!0)):w&&(o[w]=!0):b.type==="image"?(w&&(v[w]=!0),_&&(v[_]=!0)):(w&&(u[w]=!0,f[w]=!0),(!iy(b,"carpet")||b.type==="carpet"&&!b._cheater)&&_&&(s[_]=!0)),b.type==="carpet"&&b._cheater&&_&&(l[_]=!0),iy(b,"2dMap")&&(h[_]=!0,h[w]=!0),iy(b,"oriented")){var x=b.orientation==="h"?w:_;p[x]=!0}}}var M=t._subplots,A=M.xaxis,k=M.yaxis,S=Au.simpleMap(A,El),D=Au.simpleMap(k,El),E=S.concat(D),R=uF.background;A.length&&k.length&&(R=Au.coerce(r,t,yge,"plot_bgcolor"));var N=uF.combine(R,t.paper_bgcolor),O,F,I,Y,B;function U(){var pe=i[O]||[];B._traceIndices=pe.map(function(Ve){return Ve.index}),B._annIndices=[],B._shapeIndices=[],B._selectionIndices=[],B._imgIndices=[],B._subplotsWith=[],B._counterAxes=[],B._name=B._attr=O,B._id=F}function X(pe,Ve){return Au.coerce(Y,B,cF,pe,Ve)}function W(pe,Ve){return Au.coerce2(Y,B,cF,pe,Ve)}function V(pe){return pe==="x"?k:A}function J(pe,Ve){for(var vr=pe==="x"?S:D,hr=[],le=0;le<vr.length;le++){var ge=vr[le];ge!==Ve&&!(r[ge]||{}).overlaying&&hr.push(hF(ge))}return hr}var re={x:V("x"),y:V("y")},ne=re.x.concat(re.y),de={},K=[];function ye(){var pe=Y.matches;xge.test(pe)&&ne.indexOf(pe)===-1&&(de[pe]=Y.type,K=Object.keys(de))}var oe=mge(r,t),Ce=pge(oe);for(y=0;y<E.length;y++){O=E[y],F=hF(O),I=O.charAt(0),Au.isPlainObject(r[O])||(r[O]={}),Y=r[O],B=fF.newContainer(t,O,I+"axis"),U();var se=I==="x"&&!s[O]&&l[O]||I==="y"&&!u[O]&&o[O],fe=I==="y"&&(!f[O]&&c[O]||v[O]),Te={hasMinor:!0,letter:I,font:t.font,outerTicks:h[O],showGrid:!p[O],data:i[O]||[],bgColor:N,calendar:t.calendar,automargin:!0,visibleDflt:se,reverseDflt:fe,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[I]||{})[F],noAutotickangles:I==="y"};X("uirevision",t.uirevision),gge(Y,B,X,Te),vF(Y,B,X,Te,t);var Fe=Ce&&I===oe.charAt(0),be=W("spikecolor",Ce?B.color:void 0),Me=W("spikethickness",Ce?1.5:void 0),Ae=W("spikedash",Ce?"dot":void 0),Le=W("spikemode",Ce?"across":void 0),ke=W("spikesnap"),ze=X("showspikes",!!Fe||!!be||!!Me||!!Ae||!!Le||!!ke);ze||(delete B.spikecolor,delete B.spikethickness,delete B.spikedash,delete B.spikemode,delete B.spikesnap);var Se=El(Y.overlaying),Ue=[0,1];if(t[Se]!==void 0){var Ke=El(t[Se].anchor);t[Ke]!==void 0&&(Ue=t[Ke].domain)}dF(Y,B,X,{letter:I,counterAxes:re[I],overlayableAxes:J(I,O),grid:t.grid,overlayingDomain:Ue}),X("title.standoff"),ye(),B._input=Y}for(y=0;y<K.length;){F=K[y++],O=El(F),I=O.charAt(0),Au.isPlainObject(r[O])||(r[O]={}),Y=r[O],B=fF.newContainer(t,O,I+"axis"),U();var er={letter:I,font:t.font,outerTicks:h[O],showGrid:!p[O],data:[],bgColor:N,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[I]||{})[F]};X("uirevision",t.uirevision),B.type=de[F]||"linear",vF(Y,B,X,er,t),dF(Y,B,X,{letter:I,counterAxes:re[I],overlayableAxes:J(I,O),grid:t.grid}),X("fixedrange"),X("modebardisable"),ye(),B._input=Y}var De=d6("rangeslider","handleDefaults"),Ye=d6("rangeselector","handleDefaults");for(y=0;y<S.length;y++)O=S[y],Y=r[O],B=t[O],De(r,t,O),B.type==="date"&&Ye(Y,B,t,D,B.calendar),X("fixedrange"),X("modebardisable");for(y=0;y<D.length;y++){O=D[y],Y=r[O],B=t[O];var rr=t[El(B.anchor)],te=d6("rangeslider","isVisible")(rr);X("fixedrange",te),X("modebardisable")}bge.handleDefaults(r,t,{axIds:ne.concat(K).sort(h6.idSort),axHasImage:v})}});var xF=G((aLe,bF)=>{"use strict";var _ge=Er(),gF=Ar(),oy=qe(),ni=$r(),sy=Qr();bF.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){sy.redrawComponents(r);return}function l(m){var b=m.xaxis,_=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(ni.setTranslate,0,0).call(ni.setScale,1,1),m.plot.call(ni.setTranslate,b._offset,_._offset).call(ni.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(ni.setPointGroupScale,1,1),w.selectAll(".textpoint").call(ni.setTextPointsScale,1,1),w.call(ni.hideOutsideRangePoints,m)}function o(m,b){var _=m.plotinfo,w=_.xaxis,x=_.yaxis,M=w._length,A=x._length,k=!!m.xr1,S=!!m.yr1,D=[];if(k){var E=oy.simpleMap(m.xr0,w.r2l),R=oy.simpleMap(m.xr1,w.r2l),N=E[1]-E[0],O=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*M,D[2]=M*(1-b+b*O/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=M;if(S){var F=oy.simpleMap(m.yr0,x.r2l),I=oy.simpleMap(m.yr1,x.r2l),Y=F[1]-F[0],B=I[1]-I[0];D[1]=(F[1]*(1-b)+b*I[1]-F[1])/(F[0]-F[1])*A,D[3]=A*(1-b+b*B/Y),x.range[0]=w.l2r(F[0]*(1-b)+b*I[0]),x.range[1]=x.l2r(F[1]*(1-b)+b*I[1])}else D[1]=0,D[3]=A;sy.drawOne(r,w,{skipTitle:!0}),sy.drawOne(r,x,{skipTitle:!0}),sy.redrawComponents(r,[w._id,x._id]);var U=k?M/D[2]:1,X=S?A/D[3]:1,W=k?D[0]:0,V=S?D[1]:0,J=k?D[0]/D[2]*M:0,re=S?D[1]/D[3]*A:0,ne=w._offset-J,de=x._offset-re;_.clipRect.call(ni.setTranslate,W,V).call(ni.setScale,1/U,1/X),_.plot.call(ni.setTranslate,ne,de).call(ni.setScale,U,X),ni.setPointGroupScale(_.zoomScalePts,1/U,1/X),ni.setTextPointsScale(_.zoomScaleTxt,1/U,1/X)}var s;n&&(s=n());function u(){for(var m={},b=0;b<t.length;b++){var _=t[b],w=_.plotinfo.xaxis,x=_.plotinfo.yaxis;_.xr1&&(m[w._name+".range"]=_.xr1.slice()),_.yr1&&(m[x._name+".range"]=_.yr1.slice())}return s&&s(),gF.call("relayout",r,m).then(function(){for(var M=0;M<t.length;M++)l(t[M].plotinfo)})}function f(){for(var m={},b=0;b<t.length;b++){var _=t[b],w=_.plotinfo.xaxis,x=_.plotinfo.yaxis;_.xr0&&(m[w._name+".range"]=_.xr0.slice()),_.yr0&&(m[x._name+".range"]=_.yr0.slice())}return gF.call("relayout",r,m).then(function(){for(var M=0;M<t.length;M++)l(t[M].plotinfo)})}var c,v,h,p=_ge.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(h),h=null,f()});function y(){v=Date.now();for(var m=Math.min(1,(v-c)/a.duration),b=p(m),_=0;_<t.length;_++)o(t[_],b);v-c>a.duration?(u(),h=window.cancelAnimationFrame(y)):h=window.requestAnimationFrame(y)}return c=Date.now(),h=window.requestAnimationFrame(y),Promise.resolve()}});var oo=G(on=>{"use strict";var fy=Er(),_F=Ar(),ku=qe(),wge=Jt(),Tge=$r(),wF=H5().getModuleCalcData,es=fa(),tl=(Aa(),Ne(Ma)),Mge=(js(),Ne(Ks)),tt=ku.ensureSingle;function uy(e,r,t){return ku.ensureSingle(e,r,t,function(a){a.datum(t)})}var Cu=tl.zindexSeparator;on.name="cartesian";on.attr=["xaxis","yaxis"];on.idRoot=["x","y"];on.idRegex=tl.idRegex;on.attrRegex=tl.attrRegex;on.attributes=XI();on.layoutAttributes=Jn();on.supplyLayoutDefaults=yF();on.transitionAxes=xF();on.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u<l.length;u++){var v=l[u].split("y");o[v[0]]=1,s["y"+v[1]]=1}for(u=0;u<a.length;u++)f=a[u],o[f]||(c=(e[es.id2name(f)]||{}).anchor,tl.idRegex.y.test(c)||(c="y"),i.push(f+c),l.push(f+c),s[c]||(s[c]=1,ku.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[es.id2name(c)]||{}).anchor,tl.idRegex.x.test(f)||(f="x"),i.push(f+c),l.push(f+c),o[f]||(o[f]=1,ku.pushUnique(a,f)));if(!l.length){f="",c="";for(var h in e)if(tl.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?es.name2id(f):"x",c=c?es.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};on.plot=function(e,r,t,a){var n=e._fullLayout,i=n._subplots.cartesian,l=e.calcdata,o;if(!Array.isArray(r))for(r=[],o=0;o<l.length;o++)r.push(o);for(var s=n._zindices,u=0;u<s.length;u++){var f=s[u];for(o=0;o<i.length;o++){var c=i[o],v=n._plots[c];if(u>0){var h=v.id;if(h.indexOf(Cu)!==-1)continue;h+=Cu+(u+1),v=ku.extendFlat({},v,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],y,m=0;m<l.length;m++){var b=l[m],_=b[0].trace;f===(_.zorder||0)&&_.xaxis+_.yaxis===c&&((r.indexOf(_.index)!==-1||_.carpet)&&(y&&y[0].trace.xaxis+y[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(_.fill)!==-1&&p.indexOf(y)===-1&&p.push(y),p.push(b)),y=b)}TF(e,v,p,t,a)}}};function TF(e,r,t,a,n){for(var i=tl.traceLayerClasses,l=e._fullLayout,o=l._zindices,s=l._modules,u,f,c,v=[],h=[],p=0;p<o.length;p++)for(var y=o[p],m=0;m<s.length;m++){u=s[m];var b=u.name,_=_F.modules[b].categories;if(_.svg){var w=u.layerName||b+"layer",x=w+(p?Number(p)+1:""),M=u.plot;f=wF(t,M,y),c=f[0],t=f[1],c.length&&v.push({i:i.indexOf(w),zindex:p,className:x,plotMethod:M,cdModule:c}),_.zoomScale&&h.push("."+x)}}v.sort(function(S,D){return(S.zindex||0)-(D.zindex||0)||S.i-D.i});var A=r.plot.selectAll("g.mlayer").data(v,function(S){return S.className});if(A.enter().append("g").attr("class",function(S){return S.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),A.exit().remove(),A.order(),A.each(function(S){var D=fy.select(this),E=S.className;S.plotMethod(e,r,S.cdModule,D,a,n),tl.clipOnAxisFalseQuery.indexOf("."+E)===-1&&Tge.setClipUrl(D,r.layerClipId,e)}),l._has("scattergl")&&(u=_F.getModule("scattergl"),c=wF(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(tl.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")}}on.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},l=a._subplots||{},o,s,u;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(u in n)o=n[u],o.plotgroup&&o.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(u in n)o=n[u],o._scene&&o._scene.destroy();if(l.xaxis&&l.yaxis){var v=es.listIds({_fullLayout:a});for(s=0;s<v.length;s++){var h=v[s];r[es.id2name(h)]||a._infolayer.selectAll(".g-"+h+"title").remove()}}var p=a._has&&a._has("cartesian"),y=r._has&&r._has("cartesian");if(p&&!y)AF(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(l.cartesian)for(s=0;s<l.cartesian.length;s++){var m=l.cartesian[s];if(m.indexOf(Cu)===-1&&!i[m]){var b="."+m+",."+m+"-x,."+m+"-y";a._cartesianlayer.selectAll(b).remove(),kF(m,a)}}};on.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,a,n={};for(a=0;a<t.length;a++){var i=t[a][0],l=i.trace,o=l.zorder||0;n[o]||(n[o]=[]),n[o].push(i)}var s=Object.keys(n).map(Number).sort(ku.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=Age(e),f=u.length,c=[];for(a=0;a<f;a++)c[a]=u[a].slice();for(var v=1;v<s.length;v++){var h=[];for(a=0;a<f;a++)h[a]=u[a].slice(),h[a][0]+=Cu+(v+1);c=c.concat(h)}var p=r._cartesianlayer.selectAll(".subplot").data(c,String);p.enter().append("g").attr("class",function(y){return"subplot "+y[0]}),p.order(),p.exit().call(AF,r),p.each(function(y){var m=y[0],b=m.indexOf(Cu),_=b!==-1,w=_?m.slice(0,b):m,x=r._plots[m];x||(x=ku.extendFlat({},r._plots[w]),x&&(x.id=m,r._plots[m]=x,r._subplots.cartesian.push(m))),x&&(x.plotgroup=fy.select(this),MF(e,x),_||(x.draglayer=tt(r._draggers,"g",m)))})};on.rangePlot=function(e,r,t){MF(e,r),TF(e,r,t),wge.style(e)};function Age(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,l,o,s,u,f,c=[],v=[];for(i=0;i<n;i++){o=a[i],s=r._plots[o],u=s.xaxis,f=s.yaxis;var h=u._mainAxis,p=f._mainAxis,y=h._id+p._id,m=r._plots[y];s.overlays=[],y!==o&&m?(s.mainplot=y,s.mainplotinfo=m,v.push(o)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(o))}for(i=0;i<v.length;i++)o=v[i],s=r._plots[o],s.mainplotinfo.overlays.push(s);var b=c.concat(v),_=[];for(i=0;i<n;i++){o=b[i],s=r._plots[o],u=s.xaxis,f=s.yaxis;for(var w=[],x=1;x<=t;x++){var M="";for(x>1&&(M+=Cu+x),w.push(o+M),l=0;l<s.overlays.length;l++)w.push(s.overlays[l].id+M)}w=w.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),_.push(w)}return _}function MF(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(Cu),l=i!==-1,o=tl.layerValue2layerClass[r.xaxis.layer],s=tl.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=tt(a,"path","xlines-above"),r.ylines=tt(a,"path","ylines-above"),r.xaxislayer=tt(a,"g","xaxislayer-above"),r.yaxislayer=tt(a,"g","yaxislayer-above");else{if(!l){var v=tt(a,"g","layer-subplot");r.shapelayer=tt(v,"g","shapelayer"),r.imagelayer=tt(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=tt(a,"g","minor-gridlayer"),r.gridlayer=tt(a,"g","gridlayer"),r.zerolinelayer=tt(a,"g","zerolinelayer"));var h=tt(a,"g","layer-between");r.shapelayerBetween=tt(h,"g","shapelayer"),r.imagelayerBetween=tt(h,"g","imagelayer"),tt(a,"path","xlines-below"),tt(a,"path","ylines-below"),r.overlinesBelow=tt(a,"g","overlines-below"),tt(a,"g","xaxislayer-below"),tt(a,"g","yaxislayer-below"),r.overaxesBelow=tt(a,"g","overaxes-below")}r.overplot=tt(a,"g","overplot"),r.plot=tt(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=tt(a,"g","zerolinelayer-above"),l||(r.xlines=tt(a,"path","xlines-above"),r.ylines=tt(a,"path","ylines-above"),r.overlinesAbove=tt(a,"g","overlines-above"),tt(a,"g","xaxislayer-above"),tt(a,"g","yaxislayer-above"),r.overaxesAbove=tt(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,tt(c.overlinesBelow,"path",y),tt(c.overlinesBelow,"path",m),tt(c.overaxesBelow,"g",y),tt(c.overaxesBelow,"g",m),r.plot=tt(c.overplot,"g",n),tt(c.overlinesAbove,"path",y),tt(c.overlinesAbove,"path",m),tt(c.overaxesAbove,"g",y),tt(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+o).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+o).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}l||(u||(uy(r.minorGridlayer,"g",r.xaxis._id),uy(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(es.idSort),uy(r.gridlayer,"g",r.xaxis._id),uy(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(es.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function AF(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=fy.select(this);f.remove(),kF(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l<i.length;l++){var o=i[l];t[o.id]&&o.plot.selectAll(".trace").remove()}}}function kF(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}on.toSVG=function(e){var r=e._fullLayout._glimages,t=fy.select(e).selectAll(".svg-container"),a=t.filter(function(i,l){return l===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,l=i.toDataURL("image/png"),o=r.append("svg:image");o.attr({xmlns:Mge.svg,"xlink:href":l,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};on.updateFx=C4().updateFx});var LF=G((iLe,CF)=>{"use strict";var cy=Kn();CF.exports={hasLines:cy.hasLines,hasMarkers:cy.hasMarkers,hasText:cy.hasText,isBubble:cy.isBubble,attributes:ji(),layoutAttributes:E1(),supplyDefaults:YN(),crossTraceDefaults:VN(),supplyLayoutDefaults:WN(),calc:j4().calc,crossTraceCalc:gI(),arraysToCalcdata:W4(),plot:EI(),colorbar:Km(),formatLabels:zI(),style:u6().style,styleOnSelect:u6().styleOnSelect,hoverPoints:BI(),selectPoints:UI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:oo(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var DF=G((lLe,qF)=>{"use strict";var kge=Er(),Cge=kr(),SF=y4(),p6=qe(),Lge=p6.strScale,Sge=p6.strRotate,qge=p6.strTranslate;qF.exports=function(r,t,a){var n=r.node(),i=SF[a.arrowhead||0],l=SF[a.startarrowhead||0],o=(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*o+a.standoff,v=l.backoff*s+a.startstandoff,h,p,y,m;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,_=h.y-p.y;if(y=Math.atan2(_,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+_*_)){F();return}if(c){if(c*c>b*b+_*_){F();return}var w=c*Math.cos(y),x=c*Math.sin(y);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+_*_){F();return}var M=v*Math.cos(y),A=v*Math.sin(y);h.x-=M,h.y-=A,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),S="";if(k<c+v){F();return}var D=n.getPointAtLength(0),E=n.getPointAtLength(.1);y=Math.atan2(D.y-E.y,D.x-E.x),h=n.getPointAtLength(Math.min(v,k)),S="0px,"+v+"px,";var R=n.getPointAtLength(k),N=n.getPointAtLength(k-.1);m=Math.atan2(R.y-N.y,R.x-N.x),p=n.getPointAtLength(Math.max(0,k-c));var O=S?v+c:c;S+=k-O+"px,"+k+"px",r.style("stroke-dasharray",S)}function F(){r.style("stroke-dasharray","0px,100px")}function I(Y,B,U,X){Y.path&&(Y.noRotate&&(U=0),kge.select(n.parentNode).append("path").attr({class:r.attr("class"),d:Y.path,transform:qge(B.x,B.y)+Sge(U*180/Math.PI)+Lge(X)}).style({fill:Cge.rgb(a.arrowcolor),"stroke-width":0}))}u&&I(l,h,y,s),f&&I(i,p,m,o)}});var vy=G((oLe,NF)=>{"use strict";var EF=Er(),m6=Ar(),Dge=Jt(),ts=qe(),y6=ts.strTranslate,yd=Qr(),Lu=kr(),so=$r(),PF=bi(),g6=pa(),b6=Vo(),md=$i(),Ege=mt().arrayEditor,Pge=DF();NF.exports={draw:Rge,drawOne:RF,drawRaw:zF};function Rge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&RF(e,t);return Dge.previousPromises(e)}function RF(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=yd.getFromId(e,a.xref),i=yd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),zF(e,a,r,!1,n,i)}function rs(e,r,t,a,n){var i=n[t],l=n[t+"ref"],o=t.indexOf("y")!==-1,s=yd.getRefType(l)==="domain",u=o?a.h:a.w;return e?s?i+(o?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(o?-r:r)/u}function zF(e,r,t,a,n,i){var l=e._fullLayout,o=e._fullLayout._size,s=e._context.edits,u,f;a?(u="annotation-"+a,f=a+".annotations"):(u="annotation",f="annotations");var c=Ege(e.layout,f,r),v=c.modifyBase,h=c.modifyItem,p=c.getUpdateObj;l._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var y="clip"+l._uid+"_ann"+t;if(!r._input||r.visible===!1){EF.selectAll("#"+y).remove();return}var m={x:{},y:{}},b=+r.textangle||0,_=l._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),w=_.append("g").classed("annotation-text-g",!0),x=s[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||s.annotationText||x;function A(X){var W={index:t,annotation:r._input,fullAnnotation:r,event:X};return a&&(W.subplotId=a),W}var k=w.append("g").style("pointer-events",M?"all":null).call(b6,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",A(EF.event))});r.hovertext&&k.on("mouseover",function(){var X=r.hoverlabel,W=X.font,V=this.getBoundingClientRect(),J=e.getBoundingClientRect();PF.loneHover({x0:V.left-J.left,x1:V.right-J.left,y:(V.top+V.bottom)/2-J.top,text:r.hovertext,color:X.bgcolor,borderColor:X.bordercolor,fontFamily:W.family,fontSize:W.size,fontColor:W.color,fontWeight:W.weight,fontStyle:W.style,fontVariant:W.variant,fontShadow:W.fontShadow,fontLineposition:W.fontLineposition,fontTextcase:W.fontTextcase},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:e})}).on("mouseout",function(){PF.loneUnhover(l._hoverlayer.node())});var S=r.borderwidth,D=r.borderpad,E=S+D,R=k.append("rect").attr("class","bg").style("stroke-width",S+"px").call(Lu.stroke,r.bordercolor).call(Lu.fill,r.bgcolor),N=r.width||r.height,O=l._topclips.selectAll("#"+y).data(N?[0]:[]);O.enter().append("clipPath").classed("annclip",!0).attr("id",y).append("rect"),O.exit().remove();var F=r.font,I=l._meta?ts.templateString(r.text,l._meta):r.text,Y=k.append("text").classed("annotation-text",!0).text(I);function B(X){return X.call(so.font,F).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),g6.convertToTspans(X,e,U),X}function U(){var X=Y.selectAll("a");if(X.size()===1&&X.text()===Y.text()){var W=k.insert("a",":first-child").attr({"xlink:xlink:href":X.attr("xlink:href"),"xlink:xlink:show":X.attr("xlink:show")}).style({cursor:"pointer"});W.node().appendChild(R.node())}var V=k.select(".annotation-text-math-group"),J=!V.empty(),re=so.bBox((J?V:Y).node()),ne=re.width,de=re.height,K=r.width||ne,ye=r.height||de,oe=Math.round(K+2*E),Ce=Math.round(ye+2*E);function se(tr,pr){return pr==="auto"&&(tr<1/3?pr="left":tr>2/3?pr="right":pr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[pr]}for(var fe=!1,Te=["x","y"],Fe=0;Fe<Te.length;Fe++){var be=Te[Fe],Me=r[be+"ref"]||be,Ae=r["a"+be+"ref"],Le={x:n,y:i}[be],ke=(b+(be==="x"?0:-90))*Math.PI/180,ze=oe*Math.cos(ke),Se=Ce*Math.sin(ke),Ue=Math.abs(ze)+Math.abs(Se),Ke=r[be+"anchor"],er=r[be+"shift"]*(be==="x"?1:-1),De=m[be],Ye,rr,te,pe,Ve,vr=yd.getRefType(Me);if(Le&&vr!=="domain"){var hr=Le.r2fraction(r[be]);(hr<0||hr>1)&&(Ae===Me?(hr=Le.r2fraction(r["a"+be]),(hr<0||hr>1)&&(fe=!0)):fe=!0),Ye=Le._offset+Le.r2p(r[be]),pe=.5}else{var le=vr==="domain";be==="x"?(te=r[be],Ye=le?Le._offset+Le._length*te:Ye=o.l+o.w*te):(te=1-r[be],Ye=le?Le._offset+Le._length*te:Ye=o.t+o.h*te),pe=r.showarrow?.5:te}if(r.showarrow){De.head=Ye;var ge=r["a"+be];if(Ve=ze*se(.5,r.xanchor)-Se*se(.5,r.yanchor),Ae===Me){var Ie=yd.getRefType(Ae);Ie==="domain"?(be==="y"&&(ge=1-ge),De.tail=Le._offset+Le._length*ge):Ie==="paper"?be==="y"?(ge=1-ge,De.tail=o.t+o.h*ge):De.tail=o.l+o.w*ge:De.tail=Le._offset+Le.r2p(ge),rr=Ve}else De.tail=Ye+ge,rr=Ve+ge;De.text=De.tail+Ve;var Xe=l[be==="x"?"width":"height"];if(Me==="paper"&&(De.head=ts.constrain(De.head,1,Xe-1)),Ae==="pixel"){var He=-Math.max(De.tail-3,De.text),Ze=Math.min(De.tail+3,De.text)-Xe;He>0?(De.tail+=He,De.text+=He):Ze>0&&(De.tail-=Ze,De.text-=Ze)}De.tail+=er,De.head+=er}else Ve=Ue*se(pe,Ke),rr=Ve,De.text=Ye+Ve;De.text+=er,Ve+=er,rr+=er,r["_"+be+"padplus"]=Ue/2+rr,r["_"+be+"padminus"]=Ue/2-rr,r["_"+be+"size"]=Ue,r["_"+be+"shift"]=Ve}if(fe){k.remove();return}var Je=0,mr=0;if(r.align!=="left"&&(Je=(K-ne)*(r.align==="center"?.5:1)),r.valign!=="top"&&(mr=(ye-de)*(r.valign==="middle"?.5:1)),J)V.select("svg").attr({x:E+Je-1,y:E+mr}).call(so.setClipUrl,N?y:null,e);else{var _r=E+mr-re.top,Pe=E+Je-re.left;Y.call(g6.positionText,Pe,_r).call(so.setClipUrl,N?y:null,e)}O.select("rect").call(so.setRect,E,E,K,ye),R.call(so.setRect,S/2,S/2,oe-S,Ce-S),k.call(so.setTranslate,Math.round(m.x.text-oe/2),Math.round(m.y.text-Ce/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var $e=function(tr,pr){_.selectAll(".annotation-arrow-g").remove();var yr=m.x.head,cr=m.y.head,ae=m.x.tail+tr,me=m.y.tail+pr,Re=m.x.text+tr,Be=m.y.text+pr,Kr=ts.rotationXYMatrix(b,Re,Be),dt=ts.apply2DTransform(Kr),_t=ts.apply2DTransform2(Kr),zt=+R.attr("width"),Bt=+R.attr("height"),Nt=Re-.5*zt,Da=Nt+zt,qt=Be-.5*Bt,$t=qt+Bt,Ea=[[Nt,qt,Nt,$t],[Nt,$t,Da,$t],[Da,$t,Da,qt],[Da,qt,Nt,qt]].map(_t);if(!Ea.reduce(function(Nr,at){return Nr^!!ts.segmentsIntersect(yr,cr,yr+1e6,cr+1e6,at[0],at[1],at[2],at[3])},!1)){Ea.forEach(function(Nr){var at=ts.segmentsIntersect(ae,me,yr,cr,Nr[0],Nr[1],Nr[2],Nr[3]);at&&(ae=at.x,me=at.y)});var Qa=r.arrowwidth,en=r.arrowcolor,Yt=r.arrowside,ga=_.append("g").style({opacity:Lu.opacity(en)}).classed("annotation-arrow-g",!0),ea=ga.append("path").attr("d","M"+ae+","+me+"L"+yr+","+cr).style("stroke-width",Qa+"px").call(Lu.stroke,Lu.rgb(en));if(Pge(ea,Yt,r),s.annotationPosition&&ea.node().parentNode&&!a){var ra=yr,Pa=cr;if(r.standoff){var Ra=Math.sqrt(Math.pow(yr-ae,2)+Math.pow(cr-me,2));ra+=r.standoff*(ae-yr)/Ra,Pa+=r.standoff*(me-cr)/Ra}var rn=ga.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ae-ra)+","+(me-Pa),transform:y6(ra,Pa)}).style("stroke-width",Qa+6+"px").call(Lu.stroke,"rgba(0,0,0,0)").call(Lu.fill,"rgba(0,0,0,0)"),nr,Gr;md.init({element:rn.node(),gd:e,prepFn:function(){var Nr=so.getTranslate(k);nr=Nr.x,Gr=Nr.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Nr,at){var ba=dt(nr,Gr),tn=ba[0]+Nr,Gt=ba[1]+at;k.call(so.setTranslate,tn,Gt),h("x",rs(n,Nr,"x",o,r)),h("y",rs(i,at,"y",o,r)),r.axref===r.xref&&h("ax",rs(n,Nr,"ax",o,r)),r.ayref===r.yref&&h("ay",rs(i,at,"ay",o,r)),ga.attr("transform",y6(Nr,at)),w.attr({transform:"rotate("+b+","+tn+","+Gt+")"})},doneFn:function(){m6.call("_guiRelayout",e,p());var Nr=document.querySelector(".js-notes-box-panel");Nr&&Nr.redraw(Nr.selectedObj)}})}}};if(r.showarrow&&$e(0,0),x){var Ee;md.init({element:k.node(),gd:e,prepFn:function(){Ee=w.attr("transform")},moveFn:function(tr,pr){var yr="pointer";if(r.showarrow)r.axref===r.xref?h("ax",rs(n,tr,"ax",o,r)):h("ax",r.ax+tr),r.ayref===r.yref?h("ay",rs(i,pr,"ay",o.w,r)):h("ay",r.ay+pr),$e(tr,pr);else{if(a)return;var cr,ae;if(n)cr=rs(n,tr,"x",o,r);else{var me=r._xsize/o.w,Re=r.x+(r._xshift-r.xshift)/o.w-me/2;cr=md.align(Re+tr/o.w,me,0,1,r.xanchor)}if(i)ae=rs(i,pr,"y",o,r);else{var Be=r._ysize/o.h,Kr=r.y-(r._yshift+r.yshift)/o.h-Be/2;ae=md.align(Kr-pr/o.h,Be,0,1,r.yanchor)}h("x",cr),h("y",ae),(!n||!i)&&(yr=md.getCursor(n?.5:cr,i?.5:ae,r.xanchor,r.yanchor))}w.attr({transform:y6(tr,pr)+Ee}),b6(k,yr)},clickFn:function(tr,pr){r.captureevents&&e.emit("plotly_clickannotation",A(pr))},doneFn:function(){b6(k),m6.call("_guiRelayout",e,p());var tr=document.querySelector(".js-notes-box-panel");tr&&tr.redraw(tr.selectedObj)}})}}s.annotationText?Y.call(g6.makeEditable,{delegate:k,gd:e}).call(B).on("edit",function(X){r.text=X,this.call(B),h("text",X),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),m6.call("_guiRelayout",e,p())}):Y.call(B)}});var YF=G((sLe,BF)=>{"use strict";var IF=qe(),zge=Ar(),FF=mt().arrayEditor;BF.exports={hasClickToShow:Nge,onClick:Ige};function Nge(e,r){var t=OF(e,r);return t.on.length>0||t.explicitOff.length>0}function Ige(e,r){var t=OF(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o<a.length;o++)s=FF(e.layout,"annotations",l[a[o]]),s.modifyItem("visible",!0),IF.extendFlat(i,s.getUpdateObj());for(o=0;o<n.length;o++)s=FF(e.layout,"annotations",l[n[o]]),s.modifyItem("visible",!1),IF.extendFlat(i,s.getUpdateObj());return zge.call("update",e,{},i)}}function OF(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],l=(r||[]).length,o,s,u,f,c,v,h,p;for(o=0;o<t.length;o++)if(u=t[o],f=u.clicktoshow,f){for(s=0;s<l;s++)if(c=r[s],v=c.xaxis,h=c.yaxis,v._id===u.xref&&h._id===u.yref&&v.d2r(c.x)===HF(u._xclick,v)&&h.d2r(c.y)===HF(u._yclick,h)){u.visible?f==="onout"?p=n:p=i:p=a,p.push(o);break}s===l&&u.visible&&f==="onout"&&n.push(o)}return{on:a,off:n,explicitOff:i}}function HF(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var _6=G((uLe,GF)=>{"use strict";var x6=qe(),Tc=kr();GF.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=Tc.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x6.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,h;c.indexOf("end")!==-1&&(v=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:Tc.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(Tc.opacity(i)?Tc.rgb(i):Tc.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||Tc.contrast(m)),_=x6.extendFlat({},y.font);_.color||(_.color=b),x6.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var VF=G((fLe,UF)=>{"use strict";var w6=qe(),Su=Qr(),Fge=mi(),Hge=_6(),Oge=cc();UF.exports=function(r,t){Fge(r,t,{name:"annotations",handleItemDefaults:Bge})};function Bge(e,r,t){function a(w,x){return w6.coerce(e,r,Oge,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Hge(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],v=Su.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var h=Su.getFromId(u,v);h._annIndices.push(r._index)}if(Su.coercePosition(r,u,a,v,c,.5),l){var p="a"+c,y=Su.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Su.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(w6.noneOrAll(e,r,["x","y"]),l&&w6.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:Su.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:Su.cleanPosition(_,u,r.yref)}}}});var ZF=G((cLe,WF)=>{"use strict";var T6=qe(),qu=Qr(),Yge=vy().draw;WF.exports=function(r){var t=r._fullLayout,a=T6.filterVisible(t.annotations);if(a.length&&r._fullData.length)return T6.syncOrAsync([Yge,Gge],r)};function Gge(e){var r=e._fullLayout;T6.filterVisible(r.annotations).forEach(function(t){var a=qu.getFromId(e,t.xref),n=qu.getFromId(e,t.yref),i=qu.getRefType(t.xref),l=qu.getRefType(t.yref);t._extremes={},i==="range"&&XF(t,a),l==="range"&&XF(t,n)})}function XF(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=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,v=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(o===l){var _=qu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:h}),w=qu.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=qu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,h,m)});e._extremes[t]=b}});var JF=G((vLe,$F)=>{"use strict";var Uge=Ur(),Vge=Dh();$F.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var p=u[h],y=null;i?y=Vge(p,t.range):y=Math.pow(10,p),Uge(y)||(y=null),n(f+h,y)}for(var v=0;v<o.length;v++)u=o[v],f="annotations["+v+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var QF=G((dLe,jF)=>{"use strict";var M6=vy(),KF=YF();jF.exports={moduleType:"component",name:"annotations",layoutAttributes:cc(),supplyLayoutDefaults:VF(),includeBasePlot:Jv()("annotations"),calcAutorange:ZF(),draw:M6.draw,drawOne:M6.drawOne,drawRaw:M6.drawRaw,hasClickToShow:KF.hasClickToShow,onClick:KF.onClick,convertCoords:JF()}});var dy=G((hLe,eH)=>{"use strict";var xt=cc(),Xge=Bi().overrideAll,Wge=mt().templatedArray;eH.exports=Xge(Wge("annotation",{visible:xt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:xt.xanchor,xshift:xt.xshift,yanchor:xt.yanchor,yshift:xt.yshift,text:xt.text,textangle:xt.textangle,font:xt.font,width:xt.width,height:xt.height,opacity:xt.opacity,align:xt.align,valign:xt.valign,bgcolor:xt.bgcolor,bordercolor:xt.bordercolor,borderpad:xt.borderpad,borderwidth:xt.borderwidth,showarrow:xt.showarrow,arrowcolor:xt.arrowcolor,arrowhead:xt.arrowhead,startarrowhead:xt.startarrowhead,arrowside:xt.arrowside,arrowsize:xt.arrowsize,startarrowsize:xt.startarrowsize,arrowwidth:xt.arrowwidth,standoff:xt.standoff,startstandoff:xt.startstandoff,hovertext:xt.hovertext,hoverlabel:xt.hoverlabel,captureevents:xt.captureevents}),"calc","from-root")});var tH=G((pLe,rH)=>{"use strict";var A6=qe(),Zge=Qr(),$ge=mi(),Jge=_6(),Kge=dy();rH.exports=function(r,t,a){$ge(r,t,{name:"annotations",handleItemDefaults:jge,fullLayout:a.fullLayout})};function jge(e,r,t,a){function n(o,s){return A6.coerce(e,r,Kge,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Zge.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Jge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),A6.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),A6.noneOrAll(e,r,["ax","ay"])))}});var lH=G((mLe,iH)=>{"use strict";var aH=qe(),nH=Qr();iH.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)Qge(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Qge(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={},aH.extendFlat(e._xa,i),nH.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={},aH.extendFlat(e._ya,i),nH.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 sH=G((yLe,oH)=>{"use strict";function k6(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 e2e(e,r){var t=k6(e.projection,k6(e.view,k6(e.model,[r[0],r[1],r[2],1])));return t}oH.exports=e2e});var fH=G((gLe,uH)=>{"use strict";var r2e=vy().drawRaw,t2e=sH(),a2e=["x","y","z"];uH.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i<n.length;i++){for(var l=n[i],o=!1,s=0;s<3;s++){var u=a2e[s],f=l[u],c=t[u+"axis"],v=c.r2fraction(f);if(v<0||v>1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=t2e(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),r2e(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var dH=G((bLe,vH)=>{"use strict";var n2e=Ar(),cH=qe();vH.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:dy()}}},layoutAttributes:dy(),handleDefaults:tH(),includeBasePlot:i2e,convert:lH(),draw:fH()};function i2e(e,r){var t=n2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i<n.length;i++){var l=n[i];a.test(l)&&(e[l].annotations||[]).length&&(cH.pushUnique(r._basePlotModules,t),cH.pushUnique(r._subplots.gl3d,l))}}});var C6=G((wLe,yH)=>{"use strict";var xLe=(Aa(),Ne(Ma)),hH=_a(),pH=ji().line,l2e=Yi().dash,al=Mt().extendFlat,o2e=mt().templatedArray,_Le=(Zv(),Ne(Wv)),Mc=En(),mH=cc(),{shapeTexttemplateAttrs:s2e,templatefallbackAttrs:u2e}=Wn(),f2e=f1();yH.exports=o2e("shape",{visible:al({},Mc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:al({},Mc.legend,{editType:"calc+arraydraw"}),legendgroup:al({},Mc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:al({},Mc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:hH({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:al({},Mc.legendrank,{editType:"calc+arraydraw"}),legendwidth:al({},Mc.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:al({},mH.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:al({},mH.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:al({},pH.color,{editType:"arraydraw"}),width:al({},pH.width,{editType:"calc+arraydraw"}),dash:al({},l2e,{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:s2e({},{keys:Object.keys(f2e)}),texttemplatefallback:u2e({editType:"arraydraw"}),font:hH({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 bH=G((TLe,gH)=>{"use strict";var Ac=qe(),ii=Qr(),c2e=mi(),v2e=C6(),gd=Jo();gH.exports=function(r,t){c2e(r,t,{name:"shapes",handleItemDefaults:h2e})};function d2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function h2e(e,r,t){function a(w,x){return Ac.coerce(e,r,v2e,w,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"),Ac.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),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"),v=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",M=w==="x"?c:v,A={_fullLayout:t},k,S,D,E;let R=w+"ref",N=e[R];if(Array.isArray(N)&&N.length>0){let O=gd.countDefiningCoords(s,l,w);E=ii.coerceRefArray(e,r,A,w,void 0,"paper",O),r["_"+w+"refArray"]=!0}else E=ii.coerceRef(e,r,A,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(O){ii.getRefType(O)==="range"&&(k=ii.getFromId(A,O),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(O){let F=E[O];ii.getRefType(F)==="range"?(k=ii.getFromId(A,F),S=gd.shapePositionToRange(k),D=gd.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(w+O+"shift")):S=D=Ac.identity;let Y=w+O,B=e[Y];if(e[Y]=S(e[Y],!0),M==="pixel"?a(Y,p[O]):ii.coercePosition(r,A,a,F,Y,h[O]),r[Y]=D(r[Y]),e[Y]=B,O===0&&M==="pixel"){let U=e[x];e[x]=S(e[x],!0),ii.coercePosition(r,A,a,F,x,.25),r[x]=D(r[x]),e[x]=U}});else{if(ii.getRefType(E)==="range"?(k=ii.getFromId(A,E),k._shapeIndices.push(r._index),D=gd.rangeToShapePosition(k),S=gd.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=Ac.identity,u){let F=w+"0",I=w+"1",Y=e[F],B=e[I];e[F]=S(e[F],!0),e[I]=S(e[I],!0),M==="pixel"?(a(F,p[0]),a(I,p[1])):(ii.coercePosition(r,A,a,E,F,h[0]),ii.coercePosition(r,A,a,E,I,h[1])),r[F]=D(r[F]),r[I]=D(r[I]),e[F]=Y,e[I]=B}if(M==="pixel"){let F=e[x];e[x]=S(e[x],!0),ii.coercePosition(r,A,a,E,x,.25),r[x]=D(r[x]),e[x]=F}}}),u&&Ac.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,b;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(b=a("label.text")),b||m){a("label.textangle");var _=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",d2e(y,_)),a("label.padding"),Ac.coerceFont(a,"label.font",t.font)}}});var wH=G((MLe,_H)=>{"use strict";var p2e=kr(),xH=qe();function m2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}_H.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"),xH.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",p2e.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",m2e(l,u)),a("newshape.label.padding"),xH.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var SH=G((ALe,LH)=>{"use strict";var L6=qe(),qi=Qr(),Pl=(Lv(),Ne(Cv)),S6=Jo();LH.exports=function(r){var t=r._fullLayout,a=L6.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n<a.length;n++){var i=a[n];i._extremes={};var l,o,s=qi.getRefType(i.xref),u=qi.getRefType(i.yref);if(s==="array"){let f=TH(r,i,"x");Object.entries(f).forEach(([c,v])=>{l=qi.getFromId(r,c),i._extremes[l._id]=qi.findExtremes(l,v,MH(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=qi.getFromId(r,i.xref),o=kH(l,i,Pl.paramIsX),o&&(i._extremes[l._id]=qi.findExtremes(l,o,MH(i))));if(u==="array"){let f=TH(r,i,"y");Object.entries(f).forEach(([c,v])=>{l=qi.getFromId(r,c),i._extremes[l._id]=qi.findExtremes(l,v,AH(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=qi.getFromId(r,i.yref),o=kH(l,i,Pl.paramIsY),o&&(i._extremes[l._id]=qi.findExtremes(l,o,AH(i))))}};function TH(e,r,t){let a=r[t+"ref"],n=t==="x"?Pl.paramIsX:Pl.paramIsY;function i(c,v){c==="paper"||qi.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(v))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(Pl.segmentRE)||[];for(var o=0,s=0;s<c.length;s++){let v=c[s],h=v.charAt(0),p=n[h].drawn;if(p===void 0)continue;let y=v.slice(1).match(Pl.paramRE);y&&y.length>p&&(i(a[o],y[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let v=qi.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=S6.decodeDate(f)),u[v._id]=l[c].map(f)}}return u}function MH(e){return CH(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function AH(e){return CH(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function CH(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?S6.extractPathCoords(n,i?Pl.paramIsY:Pl.paramIsX):[t,a],u=L6.aggNums(Math.max,null,s),f=L6.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,v=u>0?u+l:l;return{ppad:l,ppadplus:o?c:v,ppadminus:o?v:c}}else return{ppad:l}}function kH(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,v=-1/0,h=r.path.match(Pl.segmentRE),p,y,m,b,_;for(e.type==="date"&&(u=S6.decodeDate(u)),p=0;p<h.length;p++)y=h[p],m=t[y.charAt(0)].drawn,m!==void 0&&(b=h[p].slice(1).match(Pl.paramRE),!(!b||b.length<m)&&(_=u(b[m]),_<c&&(c=_),_>v&&(v=_)));if(v>=c)return[c,v]}}});var EH=G((kLe,DH)=>{"use strict";var qH=Qp();DH.exports={moduleType:"component",name:"shapes",layoutAttributes:C6(),supplyLayoutDefaults:bH(),supplyDrawNewShapeDefaults:wH(),includeBasePlot:Jv()("shapes"),calcAutorange:SH(),draw:qH.draw,drawOne:qH.drawOne}});var q6=G((LLe,RH)=>{"use strict";var PH=(Aa(),Ne(Ma)),y2e=mt().templatedArray,CLe=(Zv(),Ne(Wv));RH.exports=y2e("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",PH.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",PH.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var NH=G((SLe,zH)=>{"use strict";var g2e=qe(),D6=Qr(),b2e=mi(),x2e=q6(),_2e="images";zH.exports=function(r,t){var a={name:_2e,handleItemDefaults:w2e};b2e(r,t,a)};function w2e(e,r,t){function a(v,h){return g2e.coerce(e,r,x2e,v,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 l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=D6.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=D6.getFromId(l,f);c._imgIndices.push(r._index)}D6.coercePosition(r,l,a,f,u,0)}return r}});var OH=G((qLe,HH)=>{"use strict";var IH=Er(),T2e=$r(),kc=Qr(),FH=fa(),M2e=(js(),Ne(Ks));HH.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o<t.images.length;o++){var s=t.images[o];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){l=FH.ref2id(s.xref)+FH.ref2id(s.yref);var u=t._plots[l];if(!u){i.push(s);continue}u.mainplot&&(l=u.mainplot.id),n[l]||(n[l]=[]),n[l].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(x){var M=IH.select(this);if(this._imgSrc!==x.source)if(M.attr("xmlns",M2e.svg),!r._context.staticPlot||x.source&&x.source.slice(0,5)==="data:")M.attr("xlink:href",x.source),this._imgSrc=x.source;else{var A=new Promise(function(k){var S=new Image;this.img=S,S.setAttribute("crossOrigin","anonymous"),S.onerror=D,S.onload=function(){var E=document.createElement("canvas");E.width=this.width,E.height=this.height;var R=E.getContext("2d",{willReadFrequently:!0});R.drawImage(this,0,0);var N=E.toDataURL("image/png");M.attr("xlink:href",N),k()},M.on("error",D),S.src=x.source,this._imgSrc=x.source;function D(){M.remove(),k()}}.bind(this));r._promises.push(A)}}function v(x){var M=IH.select(this),A=kc.getFromId(r,x.xref),k=kc.getFromId(r,x.yref),S=kc.getRefType(x.xref)==="domain",D=kc.getRefType(x.yref)==="domain",E=t._size,R,N;A!==void 0?R=typeof x.xref=="string"&&S?A._length*x.sizex:Math.abs(A.l2p(x.sizex)-A.l2p(0)):R=x.sizex*E.w,k!==void 0?N=typeof x.yref=="string"&&D?k._length*x.sizey:Math.abs(k.l2p(x.sizey)-k.l2p(0)):N=x.sizey*E.h;var O=R*f.x[x.xanchor].offset,F=N*f.y[x.yanchor].offset,I=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,Y,B;switch(A!==void 0?Y=typeof x.xref=="string"&&S?A._length*x.x+A._offset:A.r2p(x.x)+A._offset:Y=x.x*E.w+E.l,Y+=O,k!==void 0?B=typeof x.yref=="string"&&D?k._length*(1-x.y)+k._offset:k.r2p(x.y)+k._offset:B=E.h-x.y*E.h+E.t,B+=F,x.sizing){case"fill":I+=" slice";break;case"stretch":I="none";break}M.attr({x:Y,y:B,width:R,height:N,preserveAspectRatio:I,opacity:x.opacity});var U=A&&kc.getRefType(x.xref)!=="domain"?A._id:"",X=k&&kc.getRefType(x.yref)!=="domain"?k._id:"",W=U+X;T2e.setClipUrl(M,W?"clip"+t._uid+W:null,r)}function h(x){return[x.xref,x.x,x.sizex,x.yref,x.y,x.sizey].join("_")}function p(x,M){return x._index-M._index}var y=t._imageLowerLayer.selectAll("image").data(i,h),m=t._imageUpperLayer.selectAll("image").data(a,h);y.enter().append("image"),m.enter().append("image"),y.exit().remove(),m.exit().remove(),y.each(function(x){c.bind(this)(x),v.bind(this)(x)}),m.each(function(x){c.bind(this)(x),v.bind(this)(x)}),y.sort(p),m.sort(p);var b=Object.keys(t._plots);for(o=0;o<b.length;o++){l=b[o];var _=t._plots[l];if(_.imagelayer){var w=_.imagelayer.selectAll("image").data(n[l]||[],h);w.enter().append("image"),w.exit().remove(),w.each(function(x){c.bind(this)(x),v.bind(this)(x)}),w.sort(p)}}}});var GH=G((DLe,YH)=>{"use strict";var BH=Ur(),A2e=Dh();YH.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c<o.length;c++)if(u=o[c],f="images["+c+"].",u[s+"ref"]===t._id){var v=u[s],h=u["size"+s],p=null,y=null;if(i){p=A2e(v,t.range);var m=h/Math.pow(10,p)/2;y=2*Math.log(m+Math.sqrt(1+m*m))/Math.LN10}else p=Math.pow(10,v),y=p*(Math.pow(10,h/2)-Math.pow(10,-h/2));BH(p)?BH(y)||(y=null):(p=null,y=null),n(f+s,p),n(f+"size"+s,y)}}}});var VH=G((ELe,UH)=>{"use strict";UH.exports={moduleType:"component",name:"images",layoutAttributes:q6(),supplyLayoutDefaults:NH(),includeBasePlot:Jv()("images"),draw:OH(),convertCoords:GH()}});var hy={};ht(hy,{activeColor:()=>J2e,arrowOffsetX:()=>W2e,arrowPadX:()=>Y2e,arrowSymbol:()=>j2e,autoMarginIdRoot:()=>I2e,blankHeaderOpts:()=>F2e,buttonClassName:()=>P2e,containerClassName:()=>C2e,dropdownButtonClassName:()=>E2e,dropdownButtonGroupClassName:()=>D2e,gapButton:()=>$2e,gapButtonHeader:()=>Z2e,headerArrowClassName:()=>q2e,headerClassName:()=>S2e,headerGroupClassName:()=>L2e,hoverColor:()=>K2e,itemRectClassName:()=>R2e,itemTextClassName:()=>z2e,menuIndexAttrName:()=>N2e,minHeight:()=>O2e,minWidth:()=>H2e,name:()=>k2e,rx:()=>G2e,ry:()=>U2e,textOffsetX:()=>V2e,textOffsetY:()=>X2e,textPadX:()=>B2e});var k2e,C2e,L2e,S2e,q2e,D2e,E2e,P2e,R2e,z2e,N2e,I2e,F2e,H2e,O2e,B2e,Y2e,G2e,U2e,V2e,X2e,W2e,Z2e,$2e,J2e,K2e,j2e,py=lt(()=>{"use strict";k2e="updatemenus",C2e="updatemenu-container",L2e="updatemenu-header-group",S2e="updatemenu-header",q2e="updatemenu-header-arrow",D2e="updatemenu-dropdown-button-group",E2e="updatemenu-dropdown-button",P2e="updatemenu-button",R2e="updatemenu-item-rect",z2e="updatemenu-item-text",N2e="updatemenu-active-index",I2e="updatemenu-",F2e={label:" "},H2e=30,O2e=30,B2e=24,Y2e=16,G2e=2,U2e=2,V2e=12,X2e=3,W2e=4,Z2e=5,$2e=2,J2e="#F4FAFF",K2e="#F4FAFF",j2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var E6=G((PLe,WH)=>{"use strict";var Q2e=_a(),e3e=vi(),r3e=Mt().extendFlat,t3e=Bi().overrideAll,a3e=c1(),XH=mt().templatedArray,n3e=XH("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}});WH.exports=t3e(XH("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:n3e,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:r3e(a3e({editType:"arraydraw"}),{}),font:Q2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:e3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var KH=G((RLe,JH)=>{"use strict";var my=qe(),ZH=mi(),$H=E6(),i3e=(py(),Ne(hy)),l3e=i3e.name,o3e=$H.buttons;JH.exports=function(r,t){var a={name:l3e,handleItemDefaults:s3e};ZH(r,t,a)};function s3e(e,r,t){function a(l,o){return my.coerce(e,r,$H,l,o)}var n=ZH(e,r,{name:"buttons",handleItemDefaults:u3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),my.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),my.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function u3e(e,r){function t(n,i){return my.coerce(e,r,o3e,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 eO=G((zLe,QH)=>{"use strict";QH.exports=Ot;var nl=Er(),jH=kr(),Cc=$r(),yy=qe();function Ot(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})}Ot.barWidth=2;Ot.barLength=20;Ot.barRadius=2;Ot.barPad=1;Ot.barColor="#808BA4";Ot.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",h=c==="left",p=c==="right",y=c==="up",m=s,b=f,_,w,x,M;!v&&!h&&!p&&!y&&(this.position.direction="down",v=!0);var A=v||y;A?(_=o,w=_+m,v?(x=u,M=Math.min(x+b,l),b=M-x):(M=u+b,x=Math.max(M-b,0),b=M-x)):(x=u,M=x+b,h?(w=o+m,_=Math.max(w-m,0),m=w-_):(_=o,w=Math.min(_+m,i),m=w-_)),this._box={l:_,t:x,w:m,h:b};var k=s>m,S=Ot.barLength+2*Ot.barPad,D=Ot.barWidth+2*Ot.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(jH.fill,Ot.barColor),k?(this.hbar=N.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:E,y:R,width:S,height:D}),this._hbarXMin=E+S/2,this._hbarTranslateMax=m-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=f>b,F=Ot.barWidth+2*Ot.barPad,I=Ot.barLength+2*Ot.barPad,Y=o+s,B=u;Y+F>i&&(Y=i-F);var U=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(jH.fill,Ot.barColor),O?(this.vbar=U.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:Y,y:B,width:F,height:I}),this._vbarYMin=B+I/2,this._vbarTranslateMax=b-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var X=this.id,W=_-.5,V=O?w+F+.5:w+.5,J=x-.5,re=k?M+D+.5:M+.5,ne=n._topdefs.selectAll("#"+X).data(k||O?[0]:[]);if(ne.exit().remove(),ne.enter().append("clipPath").attr("id",X).append("rect"),k||O?(this._clipRect=ne.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(V)-Math.floor(W),height:Math.ceil(re)-Math.floor(J)}),this.container.call(Cc.setClipUrl,X,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Cc.setClipUrl,null),delete this._clipRect),k||O){var de=nl.behavior.drag().on("dragstart",function(){nl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var K=nl.behavior.drag().on("dragstart",function(){nl.event.sourceEvent.preventDefault(),nl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(K),O&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ot.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Cc.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)};Ot.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=nl.event.dx),this.vbar&&(t-=nl.event.dy),this.setTranslate(r,t)};Ot.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=nl.event.deltaY),this.vbar&&(t+=nl.event.deltaY),this.setTranslate(r,t)};Ot.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=yy.constrain(nl.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=yy.constrain(nl.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ot.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=yy.constrain(r||0,0,a),t=yy.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Cc.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(Cc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Cc.setTranslate,r,t+l*this._vbarTranslateMax)}}});var fO=G((NLe,uO)=>{"use strict";var Lc=Er(),bd=Jt(),xd=kr(),Sc=$r(),li=qe(),gy=pa(),f3e=mt().arrayEditor,tO=(Va(),Ne(Ua)).LINE_SPACING,Lr=(py(),Ne(hy)),c3e=eO();uO.exports=function(r){var t=r._fullLayout,a=li.filterVisible(t[Lr.name]);function n(v){bd.autoMargin(r,oO(v))}var i=t._menulayer.selectAll("g."+Lr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Lc.select(this).selectAll("g."+Lr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+Lr.headerGroupClassName).data(a,v3e);l.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var o=li.ensureSingle(i,"g",Lr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];g3e(r,u)}var f="updatemenus"+t._uid,c=new c3e(r,o,f);l.enter().size()&&(o.node().parentNode.appendChild(o.node()),o.call(R6)),l.exit().each(function(v){o.call(R6),n(v)}).remove(),l.each(function(v){var h=Lc.select(this),p=v.type==="dropdown"?o:null;bd.manageCommandObserver(r,v,v.buttons,function(y){P6(r,v,v.buttons[y.index],h,p,c,y.index,!0)}),v.type==="dropdown"?(nO(r,h,o,c,v),aO(o,v)&&_d(r,h,o,c,v)):_d(r,h,null,null,v)})}};function v3e(e){return e._index}function d3e(e){return+e.attr(Lr.menuIndexAttrName)==-1}function aO(e,r){return+e.attr(Lr.menuIndexAttrName)===r._index}function P6(e,r,t,a,n,i,l,o){r.active=l,f3e(e.layout,Lr.name,r).applyUpdate("active",l),r.type==="buttons"?_d(e,a,null,null,r):r.type==="dropdown"&&(n.attr(Lr.menuIndexAttrName,"-1"),nO(e,a,n,i,r),o||_d(e,a,n,i,r))}function nO(e,r,t,a,n){var i=li.ensureSingle(r,"g",Lr.headerClassName,function(v){v.style("pointer-events","all")}),l=n._dims,o=n.active,s=n.buttons[o]||Lr.blankHeaderOpts,u={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:l.headerWidth,height:l.headerHeight};i.call(z6,n,s,e).call(sO,n,u,f);var c=li.ensureSingle(r,"text",Lr.headerArrowClassName,function(v){v.attr("text-anchor","end").call(Sc.font,n.font).text(Lr.arrowSymbol[n.direction])});c.attr({x:l.headerWidth-Lr.arrowOffsetX+n.pad.l,y:l.headerHeight/2+Lr.textOffsetY+n.pad.t}),i.on("click",function(){t.call(R6,String(aO(t,n)?-1:n._index)),_d(e,r,t,a,n)}),i.on("mouseover",function(){i.call(iO)}),i.on("mouseout",function(){i.call(lO,n)}),Sc.setTranslate(r,l.lx,l.ly)}function _d(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!d3e(t)||n.type==="buttons"?n.buttons:[],l=n.type==="dropdown"?Lr.dropdownButtonClassName:Lr.buttonClassName,o=t.selectAll("g."+l).data(li.filterVisible(i)),s=o.enter().append("g").classed(l,!0),u=o.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,v=n._dims,h=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(h?c=v.headerHeight+Lr.gapButtonHeader:f=v.headerWidth+Lr.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-Lr.gapButtonHeader+Lr.gapButton-v.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-Lr.gapButtonHeader+Lr.gapButton-v.openWidth);var p={x:v.lx+f+n.pad.l,y:v.ly+c+n.pad.t,yPad:Lr.gapButton,xPad:Lr.gapButton,index:0},y={l:p.x+n.borderwidth,t:p.y+n.borderwidth};o.each(function(m,b){var _=Lc.select(this);_.call(z6,n,m,e).call(sO,n,p),_.on("click",function(){Lc.event.defaultPrevented||(m.execute&&(m.args2&&n.active===b?(P6(e,n,m,r,t,a,-1),bd.executeAPICommand(e,m.method,m.args2)):(P6(e,n,m,r,t,a,b),bd.executeAPICommand(e,m.method,m.args))),e.emit("plotly_buttonclicked",{menu:n,button:m,active:n.active}))}),_.on("mouseover",function(){_.call(iO)}),_.on("mouseout",function(){_.call(lO,n),o.call(rO,n)})}),o.call(rO,n),h?(y.w=Math.max(v.openWidth,v.headerWidth),y.h=p.y-y.t):(y.w=p.x-y.l,y.h=Math.max(v.openHeight,v.headerHeight)),y.direction=n.direction,a&&(o.size()?h3e(e,r,t,a,n,y):p3e(a))}function h3e(e,r,t,a,n,i){var l=n.direction,o=l==="up"||l==="down",s=n._dims,u=n.active,f,c,v;if(o)for(c=0,v=0;v<u;v++)c+=s.heights[v]+Lr.gapButton;else for(f=0,v=0;v<u;v++)f+=s.widths[v]+Lr.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 p3e(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 z6(e,r,t,a){e.call(m3e,r).call(y3e,r,t,a)}function m3e(e,r){var t=li.ensureSingle(e,"rect",Lr.itemRectClassName,function(a){a.attr({rx:Lr.rx,ry:Lr.ry,"shape-rendering":"crispEdges"})});t.call(xd.stroke,r.bordercolor).call(xd.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function y3e(e,r,t,a){var n=li.ensureSingle(e,"text",Lr.itemTextClassName,function(o){o.attr({"text-anchor":"start","data-notex":1})}),i=t.label,l=a._fullLayout._meta;l&&(i=li.templateString(i,l)),n.call(Sc.font,r.font).text(i).call(gy.convertToTspans,a)}function rO(e,r){var t=r.active;e.each(function(a,n){var i=Lc.select(this);n===t&&r.showactive&&i.select("rect."+Lr.itemRectClassName).call(xd.fill,Lr.activeColor)})}function iO(e){e.select("rect."+Lr.itemRectClassName).call(xd.fill,Lr.hoverColor)}function lO(e,r){e.select("rect."+Lr.itemRectClassName).call(xd.fill,r.bgcolor)}function g3e(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=Sc.tester.selectAll("g."+Lr.dropdownButtonClassName).data(li.filterVisible(r.buttons));a.enter().append("g").classed(Lr.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var v=Lc.select(this);v.call(z6,r,f,e);var h=v.select("."+Lr.itemTextClassName),p=h.node()&&Sc.bBox(h.node()).width,y=Math.max(p+Lr.textPadX,Lr.minWidth),m=r.font.size*tO,b=gy.lineCount(h),_=Math.max(m*b,Lr.minHeight)+Lr.textOffsetY;_=Math.ceil(_),y=Math.ceil(y),t.widths[c]=y,t.heights[c]=_,t.height1=Math.max(t.height1,_),t.width1=Math.max(t.width1,y),n?(t.totalWidth=Math.max(t.totalWidth,y),t.openWidth=t.totalWidth,t.totalHeight+=_+Lr.gapButton,t.openHeight+=_+Lr.gapButton):(t.totalWidth+=y+Lr.gapButton,t.openWidth+=y+Lr.gapButton,t.totalHeight=Math.max(t.totalHeight,_),t.openHeight=t.totalHeight)}),n?t.totalHeight-=Lr.gapButton:t.totalWidth-=Lr.gapButton,t.headerWidth=t.width1+Lr.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=Lr.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Lr.arrowPadX),a.remove();var i=t.totalWidth+r.pad.l+r.pad.r,l=t.totalHeight+r.pad.t+r.pad.b,o=e._fullLayout._size;t.lx=o.l+o.w*r.x,t.ly=o.t+o.h*(1-r.y);var s="left";li.isRightAnchor(r)&&(t.lx-=i,s="right"),li.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";li.isBottomAnchor(r)&&(t.ly-=l,u="bottom"),li.isMiddleAnchor(r)&&(t.ly-=l/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),bd.autoMargin(e,oO(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:l*({top:1,middle:.5}[u]||0),t:l*({bottom:1,middle:.5}[u]||0)})}function oO(e){return Lr.autoMarginIdRoot+e._index}function sO(e,r,t,a){a=a||{};var n=e.select("."+Lr.itemRectClassName),i=e.select("."+Lr.itemTextClassName),l=r.borderwidth,o=t.index,s=r._dims;Sc.setTranslate(e,l+t.x,l+t.y);var u=["up","down"].indexOf(r.direction)!==-1,f=a.height||(u?s.heights[o]:s.height1);n.attr({x:0,y:0,width:a.width||(u?s.width1:s.widths[o]),height:f});var c=r.font.size*tO,v=gy.lineCount(i),h=(v-1)*c/2;gy.positionText(i,Lr.textOffsetX,f/2-h+Lr.textOffsetY),u?t.y+=s.heights[o]+t.yPad:t.x+=s.widths[o]+t.xPad,t.index++}function R6(e,r){e.attr(Lr.menuIndexAttrName,r||"-1").selectAll("g."+Lr.dropdownButtonClassName).remove()}});var vO=G((ILe,cO)=>{"use strict";var b3e=(py(),Ne(hy));cO.exports={moduleType:"component",name:b3e.name,layoutAttributes:E6(),supplyLayoutDefaults:KH(),draw:fO()}});var wd={};ht(wd,{arrowOffsetX:()=>H3e,autoMarginIdRoot:()=>z3e,containerClassName:()=>_3e,currentValueClass:()=>E3e,currentValueInset:()=>v5e,currentValuePadding:()=>c5e,gripBgActiveColor:()=>r5e,gripBgColor:()=>e5e,gripBorder:()=>K3e,gripBorderColor:()=>Q3e,gripBorderWidth:()=>j3e,gripHeight:()=>J3e,gripRadius:()=>Z3e,gripRectClass:()=>k3e,gripWidth:()=>$3e,groupClassName:()=>w3e,inputAreaClass:()=>T3e,inputProxyClass:()=>L3e,labelClass:()=>D3e,labelGroupClass:()=>q3e,labelOffset:()=>a5e,labelPadding:()=>t5e,labelsClass:()=>S3e,menuIndexAttrName:()=>R3e,minHeight:()=>I3e,minWidth:()=>N3e,minorTickColor:()=>u5e,minorTickLength:()=>f5e,minorTickOffset:()=>s5e,name:()=>x3e,railBgColor:()=>V3e,railBorder:()=>Y3e,railBorderColor:()=>U3e,railBorderWidth:()=>G3e,railHeight:()=>P3e,railInset:()=>X3e,railRadius:()=>O3e,railRectClass:()=>M3e,railTouchRectClass:()=>A3e,railWidth:()=>B3e,stepInset:()=>W3e,textPadX:()=>F3e,tickColor:()=>i5e,tickLength:()=>o5e,tickOffset:()=>l5e,tickRectClass:()=>C3e,tickWidth:()=>n5e});var x3e,_3e,w3e,T3e,M3e,A3e,k3e,C3e,L3e,S3e,q3e,D3e,E3e,P3e,R3e,z3e,N3e,I3e,F3e,H3e,O3e,B3e,Y3e,G3e,U3e,V3e,X3e,W3e,Z3e,$3e,J3e,K3e,j3e,Q3e,e5e,r5e,t5e,a5e,n5e,i5e,l5e,o5e,s5e,u5e,f5e,c5e,v5e,Td=lt(()=>{"use strict";x3e="sliders",_3e="slider-container",w3e="slider-group",T3e="slider-input-area",M3e="slider-rail-rect",A3e="slider-rail-touch-rect",k3e="slider-grip-rect",C3e="slider-tick-rect",L3e="slider-input-proxy",S3e="slider-labels",q3e="slider-label-group",D3e="slider-label",E3e="slider-current-value",P3e=5,R3e="slider-active-index",z3e="slider-",N3e=30,I3e=30,F3e=40,H3e=4,O3e=2,B3e=5,Y3e=4,G3e=1,U3e="#bec8d9",V3e="#f8fafc",X3e=8,W3e=10,Z3e=10,$3e=20,J3e=20,K3e=20,j3e=1,Q3e="#bec8d9",e5e="#f6f8fa",r5e="#dbdde0",t5e=8,a5e=0,n5e=1,i5e="#333",l5e=25,o5e=7,s5e=25,u5e="#333",f5e=4,c5e=8,v5e=0});var N6=G((FLe,pO)=>{"use strict";var dO=_a(),d5e=c1(),h5e=Mt().extendDeepAll,p5e=Bi().overrideAll,m5e=W0(),hO=mt().templatedArray,Du=(Td(),Ne(wd)),y5e=hO("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}});pO.exports=p5e(hO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:y5e,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:h5e(d5e({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:m5e.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:dO({})},font:dO({}),activebgcolor:{valType:"color",dflt:Du.gripBgActiveColor},bgcolor:{valType:"color",dflt:Du.railBgColor},bordercolor:{valType:"color",dflt:Du.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Du.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Du.tickLength},tickcolor:{valType:"color",dflt:Du.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Du.minorTickLength}}),"arraydraw","from-root")});var bO=G((HLe,gO)=>{"use strict";var qc=qe(),mO=mi(),yO=N6(),g5e=(Td(),Ne(wd)),b5e=g5e.name,x5e=yO.steps;gO.exports=function(r,t){mO(r,t,{name:b5e,handleItemDefaults:_5e})};function _5e(e,r,t){function a(c,v){return qc.coerce(e,r,yO,c,v)}for(var n=mO(e,r,{name:"steps",handleItemDefaults:w5e}),i=0,l=0;l<n.length;l++)n[l].visible&&i++;var o;if(i<2?o=r.visible=!1:o=a("visible"),!!o){r._stepCount=i;var s=r._visibleSteps=qc.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),qc.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"),qc.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),qc.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 w5e(e,r){function t(i,l){return qc.coerce(e,r,x5e,i,l)}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 SO=G((OLe,LO)=>{"use strict";var il=Er(),by=Jt(),as=kr(),ll=$r(),oi=qe(),T5e=oi.strTranslate,Md=pa(),M5e=mt().arrayEditor,Or=(Td(),Ne(wd)),H6=(Va(),Ne(Ua)),wO=H6.LINE_SPACING,I6=H6.FROM_TL,F6=H6.FROM_BR;LO.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=A5e(a,r),i=a._infolayer.selectAll("g."+Or.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Or.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),by.autoMargin(r,TO(f))}if(i.exit().each(function(){il.select(this).selectAll("g."+Or.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Or.groupClassName).data(n,k5e);o.enter().append("g").classed(Or.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s<n.length;s++){var u=n[s];C5e(r,u)}o.each(function(f){var c=il.select(this);E5e(f),by.manageCommandObserver(r,f,f._visibleSteps,function(v){var h=c.data()[0];h.active!==v.index&&(h._dragging||AO(r,c,h,v.index,!1,!0))}),L5e(r,il.select(this),f)})}};function TO(e){return Or.autoMarginIdRoot+e._index}function A5e(e,r){for(var t=e[Or.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function k5e(e){return e._index}function C5e(e,r){var t=ll.tester.selectAll("g."+Or.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Or.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var y=il.select(this),m=MO(y,{step:p},r),b=m.node();if(b){var _=ll.bBox(b);n=Math.max(n,_.height),a=Math.max(a,_.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Or.railWidth,Or.gripHeight);var l=e._fullLayout._size;i.lx=l.l+l.w*r.x,i.ly=l.t+l.h*(1-r.y),r.lenmode==="fraction"?i.outerLength=Math.round(l.w*r.len):i.outerLength=r.len,i.inputAreaStart=0,i.inputAreaLength=Math.round(i.outerLength-r.pad.l-r.pad.r);var o=i.inputAreaLength-2*Or.stepInset,s=o/(r._stepCount-1),u=a+Or.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=ll.tester.append("g");t.each(function(p){var y=xy(f,r,p.label),m=y.node()&&ll.bBox(y.node())||{width:0,height:0},b=Md.lineCount(y);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(m.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(m.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Or.tickOffset+r.ticklen+Or.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";oi.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),oi.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";oi.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),oi.isMiddleAnchor(r)&&(i.ly-=i.height/2,v="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*F6[v],t:i.height*I6[v]};r.lenmode==="fraction"?(h.l=0,h.xl=r.x-r.len*I6[c],h.r=0,h.xr=r.x+r.len*F6[c]):(h.x=r.x,h.l=i.outerLength*I6[c],h.r=i.outerLength*F6[c]),by.autoMargin(e,TO(r),h)}function L5e(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(xy,t).call(R5e,t).call(q5e,t).call(D5e,t).call(P5e,e,t).call(S5e,e,t);var a=t._dims;ll.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(CO,t,!1),r.call(xy,t)}function xy(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Or.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Or.currentValueInset,i="left"}var l=oi.ensureSingle(e,"text",Or.labelClass,function(v){v.attr({"text-anchor":i,"data-notex":1})}),o=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")o+=t;else{var s=r.steps[r.active].label,u=r._gd._fullLayout._meta;u&&(s=oi.templateString(s,u)),o+=s}r.currentvalue.suffix&&(o+=r.currentvalue.suffix),l.call(ll.font,r.currentvalue.font).text(o).call(Md.convertToTspans,r._gd);var f=Md.lineCount(l),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*wO;return Md.positionText(l,n,c),l}}function S5e(e,r,t){var a=oi.ensureSingle(e,"rect",Or.gripRectClass,function(n){n.call(kO,r,e,t).style("pointer-events","all")});a.attr({width:Or.gripWidth,height:Or.gripHeight,rx:Or.gripRadius,ry:Or.gripRadius}).call(as.stroke,t.bordercolor).call(as.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function MO(e,r,t){var a=oi.ensureSingle(e,"text",Or.labelClass,function(l){l.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=oi.templateString(n,i)),a.call(ll.font,t.font).text(n).call(Md.convertToTspans,t._gd),a}function q5e(e,r){var t=oi.ensureSingle(e,"g",Or.labelsClass),a=r._dims,n=t.selectAll("g."+Or.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Or.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var l=il.select(this);l.call(MO,i,r),ll.setTranslate(l,O6(r,i.fraction),Or.tickOffset+r.ticklen+r.font.size*wO+Or.labelOffset+a.currentValueTotalHeight)})}function xO(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),l=t._visibleSteps[i]._index;l!==t.active&&AO(e,r,t,l,!0,n)}function AO(e,r,t,a,n,i){var l=t.active;t.active=a,M5e(e.layout,Or.name,t).applyUpdate("active",a);var o=t.steps[t.active];r.call(CO,t,i),r.call(xy,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:n,previousActive:l}),o&&o.method&&n&&(r._nextMethod?(r._nextMethod.step=o,r._nextMethod.doCallback=n,r._nextMethod.doTransition=i):(r._nextMethod={step:o,doCallback:n,doTransition:i},r._nextMethodRaf=window.requestAnimationFrame(function(){var s=r._nextMethod.step;s.method&&(s.execute&&by.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function kO(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=il.select(r);function i(){return t.data()[0]}function l(){var o=i();r.emit("plotly_sliderstart",{slider:o});var s=t.select("."+Or.gripRectClass);il.event.stopPropagation(),il.event.preventDefault(),s.call(as.fill,o.activebgcolor);var u=_O(o,il.mouse(a)[0]);xO(r,t,o,u,!0),o._dragging=!0;function f(){var v=i(),h=_O(v,il.mouse(a)[0]);xO(r,t,v,h,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var v=i();v._dragging=!1,s.call(as.fill,v.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:v,step:v.steps[v.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",l),e.on("touchstart",l)}function D5e(e,r){var t=e.selectAll("rect."+Or.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Or.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(n,i){var l=i%a.labelStride===0,o=il.select(this);o.attr({height:l?r.ticklen:r.minorticklen}).call(as.fill,r.tickcolor),ll.setTranslate(o,O6(r,i/(r._stepCount-1))-.5*r.tickwidth,(l?Or.tickOffset:Or.minorTickOffset)+a.currentValueTotalHeight)})}function E5e(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 CO(e,r,t){for(var a=e.select("rect."+Or.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var l=O6(r,n/(r._stepCount-1));if(!r._invokingCommand){var o=a;t&&r.transition.duration>0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",T5e(l-Or.gripWidth*.5,r._dims.currentValueTotalHeight))}}function O6(e,r){var t=e._dims;return t.inputAreaStart+Or.stepInset+(t.inputAreaLength-2*Or.stepInset)*Math.min(1,Math.max(0,r))}function _O(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Or.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Or.stepInset-2*t.inputAreaStart)))}function P5e(e,r,t){var a=t._dims,n=oi.ensureSingle(e,"rect",Or.railTouchRectClass,function(i){i.call(kO,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Or.tickOffset+t.ticklen+a.labelHeight)}).call(as.fill,t.bgcolor).attr("opacity",0),ll.setTranslate(n,0,a.currentValueTotalHeight)}function R5e(e,r){var t=r._dims,a=t.inputAreaLength-Or.railInset*2,n=oi.ensureSingle(e,"rect",Or.railRectClass);n.attr({width:a,height:Or.railWidth,rx:Or.railRadius,ry:Or.railRadius,"shape-rendering":"crispEdges"}).call(as.stroke,r.bordercolor).call(as.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),ll.setTranslate(n,Or.railInset,(t.inputAreaWidth-Or.railWidth)*.5+t.currentValueTotalHeight)}});var DO=G((BLe,qO)=>{"use strict";var z5e=(Td(),Ne(wd));qO.exports={moduleType:"component",name:z5e.name,layoutAttributes:N6(),supplyLayoutDefaults:bO(),draw:SO()}});var _y=G((YLe,PO)=>{"use strict";var EO=vi();PO.exports={bgcolor:{valType:"color",dflt:EO.background,editType:"plot"},bordercolor:{valType:"color",dflt:EO.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 B6=G((GLe,RO)=>{"use strict";RO.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 wy={};ht(wy,{bgClassName:()=>F5e,containerClassName:()=>I5e,extraPad:()=>obe,grabAreaCursor:()=>tbe,grabAreaFill:()=>rbe,grabAreaMaxClassName:()=>W5e,grabAreaMinClassName:()=>U5e,grabAreaWidth:()=>abe,grabberMaxClassName:()=>X5e,grabberMinClassName:()=>G5e,handleMaxClassName:()=>Z5e,handleMinClassName:()=>V5e,handleRadius:()=>ibe,handleStrokeWidth:()=>lbe,handleWidth:()=>nbe,maskColor:()=>K5e,maskMaxClassName:()=>B5e,maskMaxOppAxisClassName:()=>J5e,maskMinClassName:()=>O5e,maskMinOppAxisClassName:()=>$5e,maskOppAxisColor:()=>j5e,name:()=>N5e,rangePlotClassName:()=>H5e,slideBoxClassName:()=>Y5e,slideBoxCursor:()=>ebe,slideBoxFill:()=>Q5e});var N5e,I5e,F5e,H5e,O5e,B5e,Y5e,G5e,U5e,V5e,X5e,W5e,Z5e,$5e,J5e,K5e,j5e,Q5e,ebe,rbe,tbe,abe,nbe,ibe,lbe,obe,Ty=lt(()=>{"use strict";N5e="rangeslider",I5e="rangeslider-container",F5e="rangeslider-bg",H5e="rangeslider-rangeplot",O5e="rangeslider-mask-min",B5e="rangeslider-mask-max",Y5e="rangeslider-slidebox",G5e="rangeslider-grabber-min",U5e="rangeslider-grabarea-min",V5e="rangeslider-handle-min",X5e="rangeslider-grabber-max",W5e="rangeslider-grabarea-max",Z5e="rangeslider-handle-max",$5e="rangeslider-mask-min-opp-axis",J5e="rangeslider-mask-max-opp-axis",K5e="rgba(0,0,0,0.4)",j5e="rgba(0,0,0,0.2)",Q5e="transparent",ebe="ew-resize",rbe="transparent",tbe="col-resize",abe=10,nbe=4,ibe=1,lbe=1,obe=15});var IO=G(Ay=>{"use strict";var sbe=fa(),ube=pa(),zO=(Ty(),Ne(wy)),fbe=(Va(),Ne(Ua)).LINE_SPACING,My=zO.name;function NO(e){var r=e&&e[My];return r&&r.visible}Ay.isVisible=NO;Ay.makeData=function(e){for(var r=sbe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(NO(i)){a.push(i);var l=i[My];l._id=My+i._id,l._height=(e.height-t.b-t.t)*l.thickness,l._offsetShift=Math.floor(l.borderwidth/2)}}e._rangeSliderData=a};Ay.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[My],n=r._id.charAt(0),i=0,l=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==t._dfltTitle[n])){l=1.5*r.title.font.size+10+a._offsetShift;var o=(r.title.text.match(ube.BR_TAG_ALL)||[]).length;l+=o*r.title.font.size*fbe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,l),pad:zO.extraPad+a._offsetShift*2}}});var BO=G((VLe,OO)=>{"use strict";var ky=qe(),FO=mt(),HO=fa(),cbe=_y(),vbe=B6();OO.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;ky.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=FO.newContainer(i,"rangeslider");function s(M,A){return ky.coerce(l,o,cbe,M,A)}var u,f;function c(M,A){return ky.coerce(u,f,vbe,M,A)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.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")))===HO.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=ky.simpleMap(p,HO.id2name),m=0;m<y.length;m++){var b=y[m];u=l[b]||{},f=FO.newContainer(o,b,"yaxis");var _=t[b],w;u.range&&_.isValidRange(u.range)&&(w="fixed");var x=c("rangemode",w);x!=="match"&&c("range",_.range.slice())}o._input=l}}});var GO=G((XLe,YO)=>{"use strict";var dbe=fa().list,hbe=vv().getAutoRange,pbe=(Ty(),Ne(wy));YO.exports=function(r){for(var t=dbe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[pbe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=hbe(r,n))}}});var WO=G((WLe,XO)=>{"use strict";var Cy=Er(),mbe=Ar(),ybe=Jt(),Qt=qe(),Ly=Qt.strTranslate,VO=$r(),ns=kr(),gbe=fv(),bbe=oo(),Y6=fa(),xbe=$i(),_be=Vo(),Xr=(Ty(),Ne(wy));XO.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Xr.name];n._clipId=n._id+"-"+r._uid}function i(o){return o._name}var l=r._infolayer.selectAll("g."+Xr.containerClassName).data(t,i);l.exit().each(function(o){var s=o[Xr.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(l.enter().append("g").classed(Xr.containerClassName,!0).attr("pointer-events","all"),l.each(function(o){var s=Cy.select(this),u=o[Xr.name],f=r[Y6.id2name(o.anchor)],c=u[Y6.id2name(o.anchor)];if(u.range){var v=Qt.simpleMap(u.range,o.r2l),h=Qt.simpleMap(o.range,o.r2l),p;h[0]<h[1]?p=[Math.min(v[0],h[0]),Math.max(v[1],h[1])]:p=[Math.max(v[0],h[0]),Math.min(v[1],h[1])],u.range=u._input.range=Qt.simpleMap(p,o.l2r)}o.cleanRange("rangeslider.range");var y=r._size;u._width=o._length;let m=Math.round(o._offset);var b=Math.round(y.t+y.h*(1-o._counterDomainMin)+(o.side==="bottom"?o._depth:0)+u._offsetShift+Xr.extraPad);s.attr("transform",Ly(m,b)),u._rl=Qt.simpleMap(u.range,o.r2l);var _=u._rl[0],w=u._rl[1],x=w-_;if(u.p2d=function(F){return F/u._width*x+_},u.d2p=function(F){return(F-_)/x*u._width},o.rangebreaks){var M=o.locateBreaks(_,w);if(M.length){var A,k,S=0;for(A=0;A<M.length;A++)k=M[A],S+=k.max-k.min;var D=u._width/(w-_-S),E=[-D*_];for(A=0;A<M.length;A++)k=M[A],E.push(E[E.length-1]-D*(k.max-k.min));for(u.d2p=function(F){for(var I=E[0],Y=0;Y<M.length;Y++){var B=M[Y];if(F>=B.max)I=E[Y+1];else if(F<B.min)break}return I+D*F},A=0;A<M.length;A++)k=M[A],k.pmin=u.d2p(k.min),k.pmax=u.d2p(k.max);u.p2d=function(F){for(var I=E[0],Y=0;Y<M.length;Y++){var B=M[Y];if(F>=B.pmax)I=E[Y+1];else if(F<B.pmin)break}return(F-I)/D}}}if(c.rangemode!=="match"){var R=f.r2l(c.range[0]),N=f.r2l(c.range[1]),O=N-R;u.d2pOppAxis=function(F){return(F-R)/O*u._height}}s.call(Abe,e,o,u).call(kbe,e,o,u).call(Cbe,e,o,u).call(Sbe,e,o,u,c).call(qbe,e,o,u).call(Dbe,e,o,u),wbe(s,e,o,u),Mbe(s,e,o,u,f,c),o.side==="bottom"&&gbe.draw(e,o._id+"title",{propContainer:o,propName:o._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:o._offset+o._length/2,y:b+u._height+u._offsetShift+10+1.5*o.title.font.size,"text-anchor":"middle"}})}))};function UO(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function wbe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Xr.slideBoxClassName).node(),i=e.select("rect."+Xr.grabAreaMinClassName).node(),l=e.select("rect."+Xr.grabAreaMaxClassName).node();function o(){var s=Cy.event,u=s.target,f=UO(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=xbe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var _=UO(b),w=+_-f,x,M,A;switch(u){case n:if(A="ew-resize",v+w>t._length||h+w<0)return;x=v+w,M=h+w;break;case i:if(A="col-resize",v+w>t._length)return;x=v+w,M=h;break;case l:if(A="col-resize",h+w<0)return;x=v,M=h+w;break;default:A="ew-resize",x=c,M=c+w;break}if(M<x){var k=M;M=x,x=k}a._pixelMin=x,a._pixelMax=M,_be(Cy.select(p),A),Tbe(e,r,t,a)}function m(){p.removeEventListener("mousemove",y),p.removeEventListener("mouseup",m),this.removeEventListener("touchmove",y),this.removeEventListener("touchend",m),Qt.removeElement(p)}}e.on("mousedown",o),e.on("touchstart",o)}function Tbe(e,r,t,a){function n(o){return t.l2r(Qt.constrain(o,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),l=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){mbe.call("_guiRelayout",r,t._name+".range",[i,l])})}function Mbe(e,r,t,a,n,i){var l=Xr.handleWidth/2;function o(b){return Qt.constrain(b,0,a._width)}function s(b){return Qt.constrain(b,0,a._height)}function u(b){return Qt.constrain(b,-l,a._width+l)}var f=o(a.d2p(t._rl[0])),c=o(a.d2p(t._rl[1]));if(e.select("rect."+Xr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Xr.maskMinClassName).attr("width",f),e.select("rect."+Xr.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var v=a._height-s(a.d2pOppAxis(n._rl[1])),h=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Xr.maskMinOppAxisClassName).attr("x",f).attr("height",v).attr("width",c-f),e.select("rect."+Xr.maskMaxOppAxisClassName).attr("x",f).attr("y",h).attr("height",a._height-h).attr("width",c-f),e.select("rect."+Xr.slideBoxClassName).attr("y",v).attr("height",h-v)}var p=.5,y=Math.round(u(f-l))-p,m=Math.round(u(c-l))+p;e.select("g."+Xr.grabberMinClassName).attr("transform",Ly(y,p)),e.select("g."+Xr.grabberMaxClassName).attr("transform",Ly(m,p))}function Abe(e,r,t,a){var n=Qt.ensureSingle(e,"rect",Xr.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,l=-a._offsetShift,o=VO.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:Ly(l,l),"stroke-width":o}).call(ns.stroke,a.bordercolor).call(ns.fill,a.bgcolor)}function kbe(e,r,t,a){var n=r._fullLayout,i=Qt.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(l){l.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function Cbe(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Xr.rangePlotClassName).data(t._subplotsWith,Qt.identity);i.enter().append("g").attr("class",function(o){return Xr.rangePlotClassName+" "+o}).call(VO.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var l;i.each(function(o,s){var u=Cy.select(this),f=s===0,c=Y6.getFromId(r,o,"y"),v=c._name,h=a[v],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[v]={type:c.type,domain:[0,1],range:h.rangemode!=="match"?h.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[v].rangebreaks=c.rangebreaks),ybe.supplyDefaults(p);var y=p._fullLayout.xaxis,m=p._fullLayout[v];y.clearCalc(),y.setScale(),m.clearCalc(),m.setScale();var b={id:o,plotgroup:u,xaxis:y,yaxis:m,isRangePlot:!0};f?l=b:(b.mainplot="xy",b.mainplotinfo=l),bbe.rangePlot(r,b,Lbe(n,o))})}function Lbe(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 Sbe(e,r,t,a,n){var i=Qt.ensureSingle(e,"rect",Xr.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(ns.fill,Xr.maskColor);var l=Qt.ensureSingle(e,"rect",Xr.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(l.attr("height",a._height).call(ns.fill,Xr.maskColor),n.rangemode!=="match"){var o=Qt.ensureSingle(e,"rect",Xr.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});o.attr("width",a._width).call(ns.fill,Xr.maskOppAxisColor);var s=Qt.ensureSingle(e,"rect",Xr.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",Xr.maskOppBorder).call(ns.fill,Xr.maskOppAxisColor)}}function qbe(e,r,t,a){if(!r._context.staticPlot){var n=Qt.ensureSingle(e,"rect",Xr.slideBoxClassName,function(i){i.attr({y:0,cursor:Xr.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Xr.slideBoxFill})}}function Dbe(e,r,t,a){var n=Qt.ensureSingle(e,"g",Xr.grabberMinClassName),i=Qt.ensureSingle(e,"g",Xr.grabberMaxClassName),l={x:0,width:Xr.handleWidth,rx:Xr.handleRadius,fill:ns.background,stroke:ns.defaultLine,"stroke-width":Xr.handleStrokeWidth,"shape-rendering":"crispEdges"},o={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=Qt.ensureSingle(n,"rect",Xr.handleMinClassName,function(h){h.attr(l)});s.attr(o);var u=Qt.ensureSingle(i,"rect",Xr.handleMaxClassName,function(h){h.attr(l)});u.attr(o);var f={width:Xr.grabAreaWidth,x:0,y:0,fill:Xr.grabAreaFill,cursor:r._context.staticPlot?void 0:Xr.grabAreaCursor},c=Qt.ensureSingle(n,"rect",Xr.grabAreaMinClassName,function(h){h.attr(f)});c.attr("height",a._height);var v=Qt.ensureSingle(i,"rect",Xr.grabAreaMaxClassName,function(h){h.attr(f)});v.attr("height",a._height)}});var $O=G((ZLe,ZO)=>{"use strict";var Ebe=qe(),Pbe=_y(),Rbe=B6(),G6=IO();ZO.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ebe.extendFlat({},Pbe,{yaxis:Rbe})}}},layoutAttributes:_y(),handleDefaults:BO(),calcAutorange:GO(),draw:WO(),isVisible:G6.isVisible,makeData:G6.makeData,autoMarginOpts:G6.autoMarginOpts}});var Sy=G(($Le,KO)=>{"use strict";var zbe=_a(),JO=vi(),Nbe=mt().templatedArray,Ibe=Nbe("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"});KO.exports={visible:{valType:"boolean",editType:"plot"},buttons:Ibe,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:zbe({editType:"plot"}),bgcolor:{valType:"color",dflt:JO.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:JO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var U6={};ht(U6,{darkAmount:()=>Gbe,lightAmount:()=>Ybe,minButtonWidth:()=>Hbe,rx:()=>Obe,ry:()=>Bbe,yPad:()=>Fbe});var Fbe,Hbe,Obe,Bbe,Ybe,Gbe,V6=lt(()=>{"use strict";Fbe=.02,Hbe=30,Obe=3,Bbe=3,Ybe=25,Gbe=10});var eB=G((JLe,QO)=>{"use strict";var qy=qe(),Ube=kr(),Vbe=mt(),Xbe=mi(),jO=Sy(),X6=(V6(),Ne(U6));QO.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Vbe.newContainer(t,"rangeselector");function s(h,p){return qy.coerce(l,o,jO,h,p)}var u=Xbe(l,o,{name:"buttons",handleItemDefaults:Wbe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Zbe(t,a,n);s("x",c[0]),s("y",c[1]),qy.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),qy.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Ube.contrast(v,X6.lightAmount,X6.darkAmount)),s("bordercolor"),s("borderwidth")}};function Wbe(e,r,t,a){var n=a.calendar;function i(s,u){return qy.coerce(e,r,jO.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Zbe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i<a.length;i++){var l=r[a[i]].domain;l&&(n=Math.max(l[1],n))}return[e.domain[0],n+X6.yPad]}});var tB=G((KLe,rB)=>{"use strict";var $be=h2(),Jbe=qe().titleCase;rB.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Kbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Kbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=$be["utc"+Jbe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var fB=G((jLe,uB)=>{"use strict";var Ey=Er(),jbe=Ar(),Qbe=Jt(),aB=kr(),sB=$r(),uo=qe(),nB=uo.strTranslate,Dy=pa(),exe=fa(),$6=(Va(),Ne(Ua)),iB=$6.LINE_SPACING,lB=$6.FROM_TL,oB=$6.FROM_BR,Z6=(V6(),Ne(U6)),rxe=tB();uB.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(txe(r),axe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Ey.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(uo.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Ey.select(this),c=rxe(l,u);u._isActive=nxe(l,u,c),f.call(W6,o,u),f.call(lxe,o,u,r),f.on("click",function(){r._dragged||jbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(W6,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(W6,o,u)})}),sxe(r,s,o,l._name,i)})};function txe(e){for(var r=exe.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 axe(e){return e._id}function nxe(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 W6(e,r,t){var a=uo.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:Z6.rx,ry:Z6.ry}),a.call(aB.stroke,r.bordercolor).call(aB.fill,ixe(r,t)).style("stroke-width",r.borderwidth+"px")}function ixe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function lxe(e,r,t,a){function n(l){Dy.convertToTspans(l,a)}var i=uo.ensureSingle(e,"text","selector-text",function(l){l.attr("text-anchor","middle")});i.call(sB.font,r.font).text(oxe(t,a._fullLayout._meta)).call(n)}function oxe(e,r){return e.label?r?uo.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function sxe(e,r,t,a,n){var i=0,l=0,o=t.borderwidth;r.each(function(){var h=Ey.select(this),p=h.select(".selector-text"),y=t.font.size*iB,m=Math.max(y*Dy.lineCount(p),16)+3;l=Math.max(l,m)}),r.each(function(){var h=Ey.select(this),p=h.select(".selector-rect"),y=h.select(".selector-text"),m=y.node()&&sB.bBox(y.node()).width,b=t.font.size*iB,_=Dy.lineCount(y),w=Math.max(m+10,Z6.minButtonWidth);h.attr("transform",nB(o+i,o)),p.attr({x:0,y:0,width:w,height:l}),Dy.positionText(y,w/2,l/2-(_-1)*b/2+3),i+=w+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";uo.isRightAnchor(t)&&(u-=i,c="right"),uo.isCenterAnchor(t)&&(u-=i/2,c="center");var v="top";uo.isBottomAnchor(t)&&(f-=l,v="bottom"),uo.isMiddleAnchor(t)&&(f-=l/2,v="middle"),i=Math.ceil(i),l=Math.ceil(l),u=Math.round(u),f=Math.round(f),Qbe.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*lB[c],r:i*oB[c],b:l*oB[v],t:l*lB[v]}),n.attr("transform",nB(u,f))}});var vB=G((QLe,cB)=>{"use strict";cB.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Sy()}}},layoutAttributes:Sy(),handleDefaults:eB(),draw:fB()}});var is=G(J6=>{"use strict";var dB=Mt().extendFlat;J6.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:"",l={x:dB({},t,{}),y:dB({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};J6.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o<l.columns?n=l._domains.x[o]:delete e.domain.column);var s=t("domain.row");s!==void 0&&(s<l.rows?i=l._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 gB=G((rSe,yB)=>{"use strict";var uxe=qe(),fxe=(kf(),Ne(V0)).counter,cxe=is().attributes,hB=(Aa(),Ne(Ma)).idRegex,vxe=mt(),K6={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:[fxe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hB.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hB.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:cxe({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 Py(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 dxe(e,r){var t=e.grid||{},a=Py(r,t,"x"),n=Py(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=vxe.newContainer(r,"grid");function v(A,k){return uxe.coerce(t,c,K6,A,k)}var h=v("rows",u),p=v("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!l&&!o){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,M;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:pB("x",v,_,x,p),y:pB("y",v,w,M,h,b)}}function pB(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),v=0;v<n;v++){var h=u+f*v;s[i?n-1-v:v]=[h,h+c]}return s}function hxe(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,l=t.rows,o=t.columns,s=t.pattern==="independent",u,f,c,v,h,p,y,m=t._axisMap={};if(i){var b=a.subplots||[];p=t.subplots=new Array(l);var _=1;for(u=0;u<l;u++){var w=p[u]=new Array(o),x=b[u]||[];for(f=0;f<o;f++)if(s?(h=_===1?"xy":"x"+_+"y"+_,_++):h=x[f],w[f]="",n.cartesian.indexOf(h)!==-1){if(y=h.indexOf("y"),c=h.slice(0,y),v=h.slice(y),m[c]!==void 0&&m[c]!==f||m[v]!==void 0&&m[v]!==u)continue;w[f]=h,m[c]=f,m[v]=u}}}else{var M=Py(r,a,"x"),A=Py(r,a,"y");t.xaxes=mB(M,n.xaxis,o,m,"x"),t.yaxes=mB(A,n.yaxis,l,m,"y")}var k=t._anchors={},S=t.roworder==="top to bottom";for(var D in m){var E=D.charAt(0),R=t[E+"side"],N,O,F;if(R.length<8)k[D]="free";else if(E==="x"){if(R.charAt(0)==="t"===S?(N=0,O=1,F=l):(N=l-1,O=-1,F=-1),i){var I=m[D];for(u=N;u!==F;u+=O)if(h=p[u][I],!!h&&(y=h.indexOf("y"),h.slice(0,y)===D)){k[D]=h.slice(y);break}}else for(u=N;u!==F;u+=O)if(v=t.yaxes[u],n.cartesian.indexOf(D+v)!==-1){k[D]=v;break}}else if(R.charAt(0)==="l"?(N=0,O=1,F=o):(N=o-1,O=-1,F=-1),i){var Y=m[D];for(u=N;u!==F;u+=O)if(h=p[Y][u],!!h&&(y=h.indexOf("y"),h.slice(y)===D)){k[D]=h.slice(0,y);break}}else for(u=N;u!==F;u+=O)if(c=t.xaxes[u],n.cartesian.indexOf(c+D)!==-1){k[D]=c;break}}}}function mB(e,r,t,a,n){var i=new Array(t),l;function o(s,u){r.indexOf(u)!==-1&&a[u]===void 0?(i[s]=u,a[u]=s):i[s]=""}if(Array.isArray(e))for(l=0;l<t;l++)o(l,e[l]);else for(o(0,n),l=1;l<t;l++)o(l,n+(l+1));return i}yB.exports={moduleType:"component",name:"grid",schema:{layout:{grid:K6}},layoutAttributes:K6,sizeDefaults:dxe,contentDefaults:hxe}});var j6=G((tSe,bB)=>{"use strict";bB.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 wB=G((aSe,_B)=>{"use strict";var xB=Ur(),pxe=Ar(),mxe=qe(),yxe=mt(),gxe=j6();_B.exports=function(e,r,t,a){var n="error_"+a.axis,i=yxe.newContainer(r,n),l=e[n]||{};function o(p,y){return mxe.coerce(l,i,gxe,p,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(v,!(l.color||xB(l.thickness)||xB(l.width)))}(!a.inherit||!i[v])&&(o("color",t),o("thickness"),o("width",pxe.traceIs(r,"gl3d")?0:4))}}});var Q6=G((nSe,MB)=>{"use strict";MB.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],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var l=TB(t,r.value),o=TB(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function TB(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 CB=G((iSe,kB)=>{"use strict";var e_=Ur(),bxe=Ar(),r_=Qr(),xxe=qe(),_xe=Q6();kB.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&&bxe.traceIs(i,"errorBarsOK")){var l=r_.getFromId(r,i.xaxis),o=r_.getFromId(r,i.yaxis);AB(n,i,l,"x"),AB(n,i,o,"y")}}};function AB(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,l=[];if(i){for(var o=_xe(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(e_(t.c2l(c))){var v=o(c,f);if(e_(v[0])&&e_(v[1])){var h=u[a+"s"]=c-v[0],p=u[a+"h"]=c+v[1];l.push(h,p)}}}var y=t._id,m=r._extremes[y],b=r_.findExtremes(t,l,xxe.extendFlat({tozero:m.opts.tozero},{padded:!0}));m.min=m.min.concat(b.min),m.max=m.max.concat(b.max)}}});var qB=G((lSe,SB)=>{"use strict";var LB=Er(),ls=Ur(),wxe=$r(),Txe=Kn();SB.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var y=Txe.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!v.visible&&(f=[]);var m=LB.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),h.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),wxe.setClipUrl(m,a.layerClipId,r),m.each(function(_){var w=LB.select(this),x=Mxe(_,l,o);if(!(y&&!_.vis)){var M,A=w.select("path.yerror");if(h.visible&&ls(x.x)&&ls(x.yh)&&ls(x.ys)){var k=h.width;M="M"+(x.x-k)+","+x.yh+"h"+2*k+"m-"+k+",0V"+x.ys,x.noYS||(M+="m-"+k+",0h"+2*k),i=!A.size(),i?A=w.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 S=w.select("path.xerror");if(v.visible&&ls(x.y)&&ls(x.xh)&&ls(x.xs)){var D=(v.copy_ystyle?h:v).width;M="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(M+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove()}})}})};function Mxe(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),ls(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),ls(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var PB=G((oSe,EB)=>{"use strict";var Axe=Er(),DB=kr();EB.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Axe.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(DB.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(DB.stroke,i.color)})}});var NB=G((sSe,zB)=>{"use strict";var Ad=qe(),RB=Bi().overrideAll,kd=j6(),Eu={error_x:Ad.extendFlat({},kd),error_y:Ad.extendFlat({},kd)};delete Eu.error_x.copy_zstyle;delete Eu.error_y.copy_zstyle;delete Eu.error_y.copy_ystyle;var Cd={error_x:Ad.extendFlat({},kd),error_y:Ad.extendFlat({},kd),error_z:Ad.extendFlat({},kd)};delete Cd.error_x.copy_ystyle;delete Cd.error_y.copy_ystyle;delete Cd.error_z.copy_ystyle;delete Cd.error_z.copy_zstyle;zB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Eu,bar:Eu,histogram:Eu,scatter3d:RB(Cd,"calc","nested"),scattergl:RB(Eu,"calc","nested")}},supplyDefaults:wB(),calc:CB(),makeComputeError:Q6(),plot:qB(),style:PB(),hoverInfo:kxe};function kxe(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 IB={};ht(IB,{cn:()=>Cxe});var Cxe,FB=lt(()=>{"use strict";Cxe={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 XB=G((uSe,VB)=>{"use strict";var os=Er(),zy=Jt(),HB=Ar(),fo=Qr(),Ry=$i(),Di=qe(),sl=Di.strTranslate,UB=Mt().extendFlat,t_=Vo(),ol=$r(),Dc=kr(),Lxe=fv(),Sxe=pa(),qxe=$n().flipScale,Dxe=ty(),Exe=ny(),Pxe=Jn(),n_=(Va(),Ne(Ua)),OB=n_.LINE_SPACING,BB=n_.FROM_TL,YB=n_.FROM_BR,Rt=(FB(),Ne(IB)).cn;function Rxe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Rt.colorbar).data(zxe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Rt.colorbar,!0),t.each(function(a){var n=os.select(this);Di.ensureSingle(n,"rect",Rt.cbbg),Di.ensureSingle(n,"g",Rt.cbfills),Di.ensureSingle(n,"g",Rt.cblines),Di.ensureSingle(n,"g",Rt.cbaxis,function(l){l.classed(Rt.crisp,!0)}),Di.ensureSingle(n,"g",Rt.cbtitleunshift,function(l){l.append("g").classed(Rt.cbtitle,!0)}),Di.ensureSingle(n,"rect",Rt.cboutline);var i=Nxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ixe(n,a,e)}),t.exit().each(function(a){zy.autoMargin(e,a._id)}).remove(),t.order()}function zxe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return UB(w,{_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 o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?qxe(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(l=c[0].trace,!!l._module){var v=l._module.colorbar;if(l.visible===!0&&v)for(var h=Array.isArray(v),p=h?v:[v],y=0;y<p.length;y++){o=p[y];var m=o.container;i=m?l[m]:l,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+l.uid+(h&&m?"-"+m:""),n._traceIndex=l.index,n._propPrefix=(m?m+".":"")+"colorbar.",n._meta=l._meta,u(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var _=r._colorAxes[b];n=s(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,o={min:"cmin",max:"cmax"},_[0]!=="heatmap"&&(l=_[1],o.calc=l._module.colorbar.calc),u(),a.push(n)}return a}var a_=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],GB=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Nxe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,h=r.xpad,p=r.ypad,y=r.x,m=a?r.y:1-r.y,b=r.yref==="paper",_=r.xref==="paper",w=t._fullLayout,x=w._size,M=r._fillcolor,A=r._line,k=r.title,S=k.side,D=r._zrange||os.extent((typeof M=="function"?M:A.color).domain()),E=typeof A.color=="function"?A.color:function(){return A.color},R=typeof M=="function"?M:function(){return M},N=r._levels,O=Fxe(t,r,D),F=O.fill,I=O.line,Y=Math.round(l*(o==="fraction"?a?x.w:x.h:1)),B=Y/(a?x.w:x.h),U=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),X=U/(a?x.h:x.w),W=_?x.w:t._fullLayout.width,V=b?x.h:t._fullLayout.height,J=Math.round(a?y*W+h:m*V+p),re={center:.5,right:1}[c]||0,ne={top:1,middle:.5}[v]||0,de=a?y-re*B:m-ne*B,K=a?m-ne*X:y-re*X,ye=Math.round(a?V*(1-K):W*K);r._lenFrac=X,r._thickFrac=B,r._uFrac=de,r._vFrac=K;var oe=r._axis=Hxe(t,r,D);oe.position=B+(a?y+h/x.w:m+p/x.h);var Ce=["top","bottom"].indexOf(S)!==-1;if(a&&Ce&&(oe.title.side=S,oe.titlex=y+h/x.w,oe.titley=K+(k.side==="top"?X-p/x.h:p/x.h)),!a&&!Ce&&(oe.title.side=S,oe.titley=m+p/x.h,oe.titlex=K+h/x.w),A.color&&r.tickmode==="auto"){oe.tickmode="linear",oe.tick0=N.start;var se=N.size,fe=Di.constrain(U/50,4,15)+1,Te=(D[1]-D[0])/((r.nticks||fe)*se);if(Te>1){var Fe=Math.pow(10,Math.floor(Math.log(Te)/Math.LN10));se*=Fe*Di.roundUp(Te/Fe,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(oe.tick0=0)}oe.dtick=se}var be=a?p/x.h:h/x.w;oe.domain=GB(a_([K,K+X],be),be),oe.setScale(),e.attr("transform",sl(Math.round(x.l),Math.round(x.t)));var Me=e.select("."+Rt.cbtitleunshift).attr("transform",sl(-Math.round(x.l),-Math.round(x.t))),Ae=oe.ticklabelposition,Le=oe.title.font.size,ke=e.select("."+Rt.cbaxis),ze,Se=0,Ue=0;function Ke(te,pe){var Ve={propContainer:oe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Rt.cbtitle)},vr=te.charAt(0)==="h"?te.slice(1):"h"+te;e.selectAll("."+vr+",."+vr+"-math-group").remove(),Lxe.draw(t,te,UB(Ve,pe||{}))}function er(){if(a&&Ce||!a&&!Ce){var te,pe;S==="top"&&(te=h+x.l+W*y,pe=p+x.t+V*(1-K-X)+3+Le*.75),S==="bottom"&&(te=h+x.l+W*y,pe=p+x.t+V*(1-K)-3-Le*.25),S==="right"&&(pe=p+x.t+V*m+3+Le*.75,te=h+x.l+W*K),Ke(oe._id+"title",{attributes:{x:te,y:pe,"text-anchor":a?"start":"middle"}})}}function De(){if(a&&!Ce||!a&&Ce){var te=oe.position||0,pe=oe._offset+oe._length/2,Ve,vr;if(S==="right")vr=pe,Ve=x.l+W*te+10+Le*(oe.showticklabels?1:.5);else if(Ve=pe,S==="bottom"&&(vr=x.t+V*te+10+(Ae.indexOf("inside")===-1?oe.tickfont.size:0)+(oe.ticks!=="inside"&&r.ticklen||0)),S==="top"){var hr=k.text.split("<br>").length;vr=x.t+V*te+10-Y-OB*Le*hr}Ke((a?"h":"v")+oe._id+"title",{avoid:{selection:os.select(t).selectAll("g."+oe._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ve,y:vr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Ye(){if(!a&&!Ce||a&&Ce){var te=e.select("."+Rt.cbtitle),pe=te.select("text"),Ve=[-s/2,s/2],vr=te.select(".h"+oe._id+"title-math-group").node(),hr=15.6;pe.node()&&(hr=parseInt(pe.node().style.fontSize,10)*OB);var le;if(vr?(le=ol.bBox(vr),Ue=le.width,Se=le.height,Se>hr&&(Ve[1]-=(Se-hr)/2)):pe.node()&&!pe.classed(Rt.jsPlaceholder)&&(le=ol.bBox(pe.node()),Ue=le.width,Se=le.height),a){if(Se){if(Se+=5,S==="top")oe.domain=GB(oe.domain,Se/x.h),Ve[1]*=-1;else{oe.domain=a_(oe.domain,Se/x.h);var ge=Sxe.lineCount(pe);Ve[1]+=(1-ge)*hr}te.attr("transform",sl(Ve[0],Ve[1])),oe.setScale()}}else Ue&&(S==="right"&&(oe.domain=a_(oe.domain,(Ue+Le/2)/x.w)),te.attr("transform",sl(Ve[0],Ve[1])),oe.setScale())}e.selectAll("."+Rt.cbfills+",."+Rt.cblines).attr("transform",a?sl(0,Math.round(x.h*(1-oe.domain[1]))):sl(Math.round(x.w*oe.domain[0]),0)),ke.attr("transform",a?sl(0,Math.round(-x.t)):sl(Math.round(-x.l),0));var Ie=e.select("."+Rt.cbfills).selectAll("rect."+Rt.cbfill).attr("style","").data(F);Ie.enter().append("rect").classed(Rt.cbfill,!0).attr("style",""),Ie.exit().remove();var Xe=D.map(oe.c2p).map(Math.round).sort(function(_r,Pe){return _r-Pe});Ie.each(function(_r,Pe){var $e=[Pe===0?D[0]:(F[Pe]+F[Pe-1])/2,Pe===F.length-1?D[1]:(F[Pe]+F[Pe+1])/2].map(oe.c2p).map(Math.round);a&&($e[1]=Di.constrain($e[1]+($e[1]>$e[0])?1:-1,Xe[0],Xe[1]));var Ee=os.select(this).attr(a?"x":"y",J).attr(a?"y":"x",os.min($e)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(os.max($e)-os.min($e),2));if(r._fillgradient)ol.gradient(Ee,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var tr=R(_r).replace("e-","");Ee.attr("fill",Dc.hexString(tr))}});var He=e.select("."+Rt.cblines).selectAll("path."+Rt.cbline).data(A.color&&A.width?I:[]);He.enter().append("path").classed(Rt.cbline,!0),He.exit().remove(),He.each(function(_r){var Pe=J,$e=Math.round(oe.c2p(_r))+A.width/2%1;os.select(this).attr("d","M"+(a?Pe+","+$e:$e+","+Pe)+(a?"h":"v")+Y).call(ol.lineGroupStyle,A.width,E(_r),A.dash)}),ke.selectAll("g."+oe._id+"tick,path").remove();var Ze=J+Y+(s||0)/2-(r.ticks==="outside"?1:0),Je=fo.calcTicks(oe),mr=fo.getTickSigns(oe)[2];return fo.drawTicks(t,oe,{vals:oe.ticks==="inside"?fo.clipEnds(oe,Je):Je,layer:ke,path:fo.makeTickPath(oe,Ze,mr),transFn:fo.makeTransTickFn(oe)}),fo.drawLabels(t,oe,{vals:Je,layer:ke,transFn:fo.makeTransTickLabelFn(oe),labelFns:fo.makeLabelFns(oe,Ze)})}function rr(){var te,pe=Y+s/2;Ae.indexOf("inside")===-1&&(te=ol.bBox(ke.node()),pe+=a?te.width:te.height),ze=Me.select("text");var Ve=0,vr=a&&S==="top",hr=!a&&S==="right",le=0;if(ze.node()&&!ze.classed(Rt.jsPlaceholder)){var ge,Ie=Me.select(".h"+oe._id+"title-math-group").node();Ie&&(a&&Ce||!a&&!Ce)?(te=ol.bBox(Ie),Ve=te.width,ge=te.height):(te=ol.bBox(Me.node()),Ve=te.right-x.l-(a?J:ye),ge=te.bottom-x.t-(a?ye:J),!a&&S==="top"&&(pe+=te.height,le=te.height)),hr&&(ze.attr("transform",sl(Ve/2+Le/2,0)),Ve*=2),pe=Math.max(pe,a?Ve:ge)}var Xe=(a?h:p)*2+pe+u+s/2,He=0;!a&&k.text&&v==="bottom"&&m<=0&&(He=Xe/2,Xe+=He,le+=He),w._hColorbarMoveTitle=He,w._hColorbarMoveCBTitle=le;var Ze=u+s,Je=(a?J:ye)-Ze/2-(a?h:0),mr=(a?ye:J)-(a?U:p+le-He);e.select("."+Rt.cbbg).attr("x",Je).attr("y",mr).attr(a?"width":"height",Math.max(Xe-He,2)).attr(a?"height":"width",Math.max(U+Ze,2)).call(Dc.fill,f).call(Dc.stroke,r.bordercolor).style("stroke-width",u);var _r=hr?Math.max(Ve-10,0):0;e.selectAll("."+Rt.cboutline).attr("x",(a?J:ye+h)+_r).attr("y",(a?ye+p-U:J)+(vr?Se:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Se:2*h+_r),2)).call(Dc.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Pe=a?re*Xe:0,$e=a?0:(1-ne)*Xe-le;if(Pe=_?x.l-Pe:-Pe,$e=b?x.t-$e:-$e,e.attr("transform",sl(Pe,$e)),!a&&(u||Dc.opacity(f)&&!Dc.equals(w.paper_bgcolor,f))){var Ee=ke.selectAll("text"),tr=Ee[0].length,pr=e.select("."+Rt.cbbg).node(),yr=ol.bBox(pr),cr=ol.getTranslate(e),ae=2;Ee.each(function(Da,qt){var $t=0,Ea=tr-1;if(qt===$t||qt===Ea){var Qa=ol.bBox(this),en=ol.getTranslate(this),Yt;if(qt===Ea){var ga=Qa.right+en.x,ea=yr.right+cr.x+ye-u-ae+y;Yt=ea-ga,Yt>0&&(Yt=0)}else if(qt===$t){var ra=Qa.left+en.x,Pa=yr.left+cr.x+ye+u+ae;Yt=Pa-ra,Yt<0&&(Yt=0)}Yt&&(tr<3?this.setAttribute("transform","translate("+Yt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var me={},Re=BB[c],Be=YB[c],Kr=BB[v],dt=YB[v],_t=Xe-Y;a?(i==="pixels"?(me.y=m,me.t=U*Kr,me.b=U*dt):(me.t=me.b=0,me.yt=m+n*Kr,me.yb=m-n*dt),o==="pixels"?(me.x=y,me.l=Xe*Re,me.r=Xe*Be):(me.l=_t*Re,me.r=_t*Be,me.xl=y-l*Re,me.xr=y+l*Be)):(i==="pixels"?(me.x=y,me.l=U*Re,me.r=U*Be):(me.l=me.r=0,me.xl=y+n*Re,me.xr=y-n*Be),o==="pixels"?(me.y=1-m,me.t=Xe*Kr,me.b=Xe*dt):(me.t=_t*Kr,me.b=_t*dt,me.yt=m-l*Kr,me.yb=m+l*dt));var zt=r.y<.5?"b":"t",Bt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Nt={r:w.width-Je-Pe,l:Je+me.r,b:w.height-mr-$e,t:mr+me.b};_&&b?zy.autoMargin(t,r._id,me):_?t._fullLayout._reservedMargin[r._id][zt]=Nt[zt]:b||a?t._fullLayout._reservedMargin[r._id][Bt]=Nt[Bt]:t._fullLayout._reservedMargin[r._id][zt]=Nt[zt]}return Di.syncOrAsync([zy.previousPromises,er,Ye,De,zy.previousPromises,rr],t)}function Ixe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Ry.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),t_(e)},moveFn:function(u,f){e.attr("transform",l+sl(u,f)),o=Ry.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Ry.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Ry.getCursor(o,s,r.xanchor,r.yanchor);t_(e,c)},doneFn:function(){if(t_(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?HB.call("_guiRestyle",t,u,r._traceIndex):HB.call("_guiRelayout",t,u)}}})}function Fxe(e,r,t){var a=r._levels,n=[],i=[],l,o,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(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l<c&&n.push(l);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var v=r._filllevels;if(v)for(s=v.end+v.size/100,u=v.size,o=0;o<1e5&&(l=v.start+o*u,!(u>0?l>=s:l<=s));o++)l>t[0]&&l<t[1]&&i.push(l);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 Hxe(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},l=n?"y":"x",o={type:"linear",_id:l+r._id},s={letter:l,font:a.font,noAutotickangles:l==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function u(f,c){return Di.coerce(i,o,Pxe,f,c)}return Dxe(i,o,u,s,a),Exe(i,o,u,s),o}VB.exports={draw:Rxe}});var ZB=G((fSe,WB)=>{"use strict";WB.exports={moduleType:"component",name:"colorbar",attributes:H1(),supplyDefaults:sb(),draw:XB().draw,hasColorbar:rb()}});var JB=G((cSe,$B)=>{"use strict";$B.exports={moduleType:"component",name:"legend",layoutAttributes:ix(),supplyLayoutDefaults:ox(),draw:_x(),style:yx()}});var jB=G((vSe,KB)=>{"use strict";KB.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 eY=G((dSe,QB)=>{"use strict";QB.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var l_=G((hSe,nY)=>{"use strict";var Oxe=Ar(),aY=qe(),i_=aY.extendFlat,rY=aY.extendDeep;function tY(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 Bxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}nY.exports=function(r,t){var a,n=r.data,i=r.layout,l=rY([],n),o=rY({},i,tY(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a<u.length;a++)Bxe(u[a])&&(o[u[a]].title={text:""});for(a=0;a<l.length;a++){var f=l[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),Oxe.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)o.annotations.push(t.annotations[a]);var c=Object.keys(o).filter(function(m){return m.match(/^scene\d*$/)});if(c.length){var v={};for(t.tileClass==="thumbnail"&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var h=o[c[a]];h.xaxis||(h.xaxis={}),h.yaxis||(h.yaxis={}),h.zaxis||(h.zaxis={}),i_(h.xaxis,v),i_(h.yaxis,v),i_(h.zaxis,v),h._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var y={gd:p,td:p,layout:o,data:l,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"&&(y.config.setBackground=t.setBackground||"opaque"),y.gd.defaultLayout=tY(t.tileClass),y}});var oY=G((pSe,lY)=>{"use strict";var Yxe=C1().EventEmitter,Gxe=Ar(),Uxe=qe(),iY=bu(),Vxe=l_(),Xxe=Fm(),Wxe=Hm();function Zxe(e,r){var t=new Yxe,a=Vxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=iY.getDelay(n._fullLayout);setTimeout(function(){var s=Xxe(n),u=document.createElement("canvas");u.id=Uxe.randstr(),t=Wxe({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)}},o)}var l=iY.getRedrawFunc(n);return Gxe.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}lY.exports=Zxe});var fY=G((mSe,uY)=>{"use strict";var sY=bu(),$xe={getDelay:sY.getDelay,getRedrawFunc:sY.getRedrawFunc,clone:l_(),toSVG:Fm(),svgToImg:Hm(),toImage:oY(),downloadImage:Y4()};uY.exports=$xe});var vY=G(co=>{"use strict";co.version=x0().version;y8();tC();var Jxe=Ar(),Ld=co.register=Jxe.register,s_=yN(),cY=Object.keys(s_);for(Ny=0;Ny<cY.length;Ny++)Ec=cY[Ny],Ec.charAt(0)!=="_"&&(co[Ec]=s_[Ec]),Ld({moduleType:"apiMethod",name:Ec,fn:s_[Ec]});var Ec,Ny;Ld(LF());Ld([QF(),dH(),vc(),EH(),VH(),vO(),DO(),$O(),vB(),gB(),NB(),vb(),ZB(),JB(),bi(),Zx()]);Ld([jB(),eY()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(Ld(window.PlotlyLocales),delete window.PlotlyLocales);co.Icons=Fp();var Iy=bi(),o_=Jt();co.Plots={resize:o_.resize,graphJson:o_.graphJson,sendDataToCloud:o_.sendDataToCloud};co.Fx={hover:Iy.hover,unhover:Iy.unhover,loneHover:Iy.loneHover,loneUnhover:Iy.loneUnhover};co.Snapshot=fY();co.PlotSchema=Hf()});var hY=G((gSe,dY)=>{"use strict";dY.exports=vY()});var vo=G((bSe,bY)=>{"use strict";var Wt=ji(),pY=Xi().axisHoverFormat,{hovertemplateAttrs:Kxe,texttemplateAttrs:jxe,templatefallbackAttrs:mY}=Wn(),gY=iv(),Qxe=_a(),yY=(cd(),Ne(fd)),e4e=Yi().pattern,Pu=Mt().extendFlat,u_=Qxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),r4e=Wt.marker,t4e=r4e.line,a4e=Pu({},t4e.width,{dflt:0}),n4e=Pu({width:a4e,editType:"calc"},gY("marker.line")),i4e=Pu({line:n4e,editType:"calc"},gY("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:e4e,cornerradius:{valType:"any",editType:"calc"}});bY.exports={x:Wt.x,x0:Wt.x0,dx:Wt.dx,y:Wt.y,y0:Wt.y0,dy:Wt.dy,xperiod:Wt.xperiod,yperiod:Wt.yperiod,xperiod0:Wt.xperiod0,yperiod0:Wt.yperiod0,xperiodalignment:Wt.xperiodalignment,yperiodalignment:Wt.yperiodalignment,xhoverformat:pY("x"),yhoverformat:pY("y"),text:Wt.text,texttemplate:jxe({editType:"plot"},{keys:yY.eventDataKeys}),texttemplatefallback:mY({editType:"plot"}),hovertext:Wt.hovertext,hovertemplate:Kxe({},{keys:yY.eventDataKeys}),hovertemplatefallback:mY(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Pu({},u_,{}),insidetextfont:Pu({},u_,{}),outsidetextfont:Pu({},u_,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Pu({},Wt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:i4e,offsetgroup:Wt.offsetgroup,alignmentgroup:Wt.alignmentgroup,selected:{marker:{opacity:Wt.selected.marker.opacity,color:Wt.selected.marker.color,editType:"style"},textfont:Wt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Wt.unselected.marker.opacity,color:Wt.unselected.marker.color,editType:"style"},textfont:Wt.unselected.textfont,editType:"style"},zorder:Wt.zorder}});var Fy=G((xSe,xY)=>{"use strict";xY.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var f_=G((_Se,TY)=>{"use strict";var l4e=kr(),_Y=$n().hasColorscale,wY=Gf(),o4e=qe().coercePattern;TY.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=_Y(r,"marker");o&&wY(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",l4e.defaultLine),_Y(r,"marker.line")&&wY(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),o4e(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Rl=G((wSe,SY)=>{"use strict";var MY=Ur(),Pc=qe(),AY=kr(),s4e=Ar(),u4e=od(),f4e=Tu(),c4e=f_(),v4e=pc(),kY=vo(),Hy=Pc.coerceFont;function d4e(e,r,t,a){function n(u,f){return Pc.coerce(e,r,kY,u,f)}var i=u4e(e,r,a,n);if(!i){r.visible=!1;return}f4e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");LY(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),c4e(e,r,n,t,a);var o=(r.marker.line||{}).color,s=s4e.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||AY.defaultLine,{axis:"y"}),s(e,r,o||AY.defaultLine,{axis:"x",inherit:"y"}),Pc.coerceSelectionMarkerOpacity(r,n)}function h4e(e,r){var t,a;function n(o,s){return Pc.coerce(a._input,a,kY,o,s)}for(var i=0;i<e.length;i++)if(a=e[i],a.type==="bar"){t=a._input;var l=n("marker.cornerradius",r.barcornerradius);a.marker&&(a.marker.cornerradius=CY(l)),v4e(t,a,r,n,r.barmode)}}function CY(e){if(MY(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&MY(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function LY(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",p=h||n==="inside",y=h||n==="outside";if(p||y){var m=Hy(a,"textfont",t.font),b=Pc.extendFlat({},m),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,Hy(a,"insidetextfont",b),v){var x=Pc.extendFlat({},m);w&&delete x.color,Hy(a,"pathbar.textfont",x)}y&&Hy(a,"outsidetextfont",m),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}SY.exports={supplyDefaults:d4e,crossTraceDefaults:h4e,handleText:LY,validateCornerradius:CY}});var c_=G((TSe,qY)=>{"use strict";var p4e=Ar(),m4e=Qr(),y4e=qe(),g4e=Fy(),b4e=Rl().validateCornerradius;qY.exports=function(e,r,t){function a(y,m){return y4e.coerce(e,r,g4e,y,m)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f<t.length;f++){var c=t[f];if(p4e.traceIs(c,"bar")&&c.visible)n=!0;else continue;var v=c.xaxis+c.yaxis;if(u?(o[v]&&(l=!0),o[v]=!0):(v+=c._input.offsetgroup,o.length>0&&!o[v]&&(l=!0),o[v]=!0),c.visible&&c.type==="histogram"){var h=m4e.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=b4e(p)}});var Oy=G((MSe,DY)=>{"use strict";var Rc=qe();DY.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Rc.mergeArray(t.text,r,"tx"),Rc.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){Rc.mergeArray(n.opacity,r,"mo",!0),Rc.mergeArray(n.color,r,"mc");var i=n.line;i&&(Rc.mergeArray(i.color,r,"mlc"),Rc.mergeArrayCastPositive(i.width,r,"mlw"))}}});var IY=G((ASe,NY)=>{"use strict";var EY=Qr(),PY=Mu(),RY=$n().hasColorscale,zY=lv(),x4e=Oy(),_4e=sd();NY.exports=function(r,t){var a=EY.getFromId(r,t.xaxis||"x"),n=EY.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=PY(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=PY(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var v=Math.min(l.length,i.length),h=new Array(v),p=0;p<v;p++)h[p]={p:l[p],s:i[p]},u&&(h[p].orig_p=o[p],h[p][f+"End"]=s.ends[p],h[p][f+"Start"]=s.starts[p]),t.ids&&(h[p].id=String(t.ids[p]));return RY(t,"marker")&&zY(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),RY(t,"marker.line")&&zY(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),x4e(h,t),_4e(h,t),h}});var ul=G((kSe,HY)=>{"use strict";var w4e=Er(),T4e=qe();function M4e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=w4e.select(this).select("text");T4e.setTransormAndDisplay(u,s)}})}}function A4e(e,r,t){if(t.uniformtext.mode){var a=FY(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i<n,t[a]=t[a]||1/0,r.hide||(t[a]=Math.min(t[a],Math.max(i,n)))}}function k4e(e,r){var t=FY(e);r[t]=void 0}function FY(e){return"_"+e+"Text_minsize"}HY.exports={recordMinTextSize:A4e,clearMinTextSize:k4e,resizeText:M4e}});var By=G(Ru=>{"use strict";var C4e=kr(),L4e=Ur(),OY=qe().isArrayOrTypedArray;Ru.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Ru.coerceNumber=function(e,r,t){if(L4e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&r<a||n!==void 0&&r>n;if(!i)return r}return t!==void 0?t:e.dflt};Ru.coerceColor=function(e,r,t){return C4e.isValid(r)?r:t!==void 0?t:e.dflt};Ru.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ru.getValue=function(e,r){var t;return OY(e)?r<e.length&&(t=e[r]):t=e,t};Ru.getLineWidth=function(e,r){var t=0<r.mlw?r.mlw:OY(e.marker.line.width)?0:e.marker.line.width;return t}});var ss=G((LSe,KY)=>{"use strict";var Sd=Er(),S4e=kr(),qd=$r(),BY=qe(),YY=Ar(),GY=ul().resizeText,v_=vo(),q4e=v_.textfont,D4e=v_.insidetextfont,E4e=v_.outsidetextfont,Za=By();function P4e(e){var r=Sd.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");GY(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Sd.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Sd.select(this),l=n[0].trace;UY(i,l,e)}),YY.getComponentMethod("errorbars","style")(r)}function UY(e,r,t){qd.pointStyle(e.selectAll("path"),r,t),VY(e,r,t)}function VY(e,r,t){e.selectAll("text").each(function(a){var n=Sd.select(this),i=BY.ensureUniformFontSize(t,XY(n,a,r,t));qd.font(n,i)})}function R4e(e,r,t){var a=r[0].trace;a.selectedpoints?z4e(t,a,e):(UY(t,a,e),YY.getComponentMethod("errorbars","style")(t))}function z4e(e,r,t){qd.selectedPointStyle(e.selectAll("path"),r),N4e(e.selectAll("text"),r,t)}function N4e(e,r,t){e.each(function(a){var n=Sd.select(this),i;if(a.selected){i=BY.ensureUniformFontSize(t,XY(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),qd.font(n,i)}else qd.selectedTextStyle(n,r)})}function XY(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=JY(r,t);i=ZY(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=$Y(t,r.i,n));return i}function WY(e,r,t){return d_(q4e,e.textfont,r,t)}function ZY(e,r,t,a){var n=WY(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:S4e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),d_(D4e,e.insidetextfont,r,n)}function $Y(e,r,t){var a=WY(e,r,t);return d_(E4e,e.outsidetextfont,r,a)}function d_(e,r,t,a){r=r||{};var n=Za.getValue(r.family,t),i=Za.getValue(r.size,t),l=Za.getValue(r.color,t),o=Za.getValue(r.weight,t),s=Za.getValue(r.style,t),u=Za.getValue(r.variant,t),f=Za.getValue(r.textcase,t),c=Za.getValue(r.lineposition,t),v=Za.getValue(r.shadow,t);return{family:Za.coerceString(e.family,n,a.family),size:Za.coerceNumber(e.size,i,a.size),color:Za.coerceColor(e.color,l,a.color),weight:Za.coerceString(e.weight,o,a.weight),style:Za.coerceString(e.style,s,a.style),variant:Za.coerceString(e.variant,u,a.variant),textcase:Za.coerceString(e.variant,f,a.textcase),lineposition:Za.coerceString(e.variant,c,a.lineposition),shadow:Za.coerceString(e.variant,v,a.shadow)}}function JY(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}KY.exports={style:P4e,styleTextPoints:VY,styleOnSelect:R4e,getInsideTextFont:ZY,getOutsideTextFont:$Y,getBarColor:JY,resizeText:GY}});var Nc=G((SSe,iG)=>{"use strict";var Yy=Er(),Gy=Ur(),Ia=qe(),I4e=pa(),F4e=kr(),us=$r(),H4e=Ar(),Uy=Qr().tickText,jY=ul(),O4e=jY.recordMinTextSize,B4e=jY.clearMinTextSize,h_=ss(),zc=By(),Y4e=(cd(),Ne(fd)),QY=vo(),G4e=QY.text,U4e=QY.textposition,V4e=Wi().appendArrayPointValue,Tn=Y4e.TEXTPAD;function X4e(e){return e.id}function W4e(e){if(e.ids)return X4e}function p_(e){return(e>0)-(e<0)}function fl(e,r){return e<r?1:-1}function Z4e(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),a?[n,i]:[i,n]}function eG(e,r,t,a){if(!r.uniformtext.mode&&rG(t)){var n;return a&&(n=a()),e.transition().duration(t.duration).ease(t.easing).each("end",function(){n&&n()}).each("interrupt",function(){n&&n()})}else return e}function rG(e){return e&&e.duration>0}function $4e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},B4e("bar",s));var f=Ia.makeTraceGroups(a,t,"trace bars").each(function(c){var v=Yy.select(this),h=c[0].trace,p=c[0].t,y=h.type==="waterfall",m=h.type==="funnel",b=h.type==="histogram",_=h.type==="bar",w=_||m,x=0;y&&h.connector.visible&&h.connector.mode==="between"&&(x=h.connector.line.width/2);var M=h.orientation==="h",A=rG(n),k=Ia.ensureSingle(v,"g","points"),S=W4e(h),D=k.selectAll("g.point").data(Ia.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var O=Yy.select(this),F=Z4e(R,l,o,M),I=F[0][0],Y=F[0][1],B=F[1][0],U=F[1][1],X=(M?Y-I:U-B)===0;X&&w&&zc.getLineWidth(h,R)&&(X=!1),X||(X=!Gy(I)||!Gy(Y)||!Gy(B)||!Gy(U)),R.isBlank=X,X&&(M?Y=I:U=B),x&&!X&&(M?(I-=fl(I,Y)*x,Y+=fl(I,Y)*x):(B-=fl(B,U)*x,U+=fl(B,U)*x));var W,V;if(h.type==="waterfall"){if(!X){var J=h[R.dir].marker;W=J.line.width,V=J.color}}else W=zc.getLineWidth(h,R),V=R.mc||h.marker.color;function re(te){var pe=Yy.round(W/2%1,2);return n.gap===0&&n.groupgap===0?Yy.round(Math.round(te)-pe,2):te}function ne(te,pe,Ve){return Ve&&te===pe?te:Math.abs(te-pe)>=2?re(te):te>pe?Math.ceil(te):Math.floor(te)}var de=F4e.opacity(V),K=de<1||W>.01?re:ne;e._context.staticPlot||(I=K(I,Y,M),Y=K(Y,I,M),B=K(B,U,!M),U=K(U,B,!M));var ye=M?l.c2p:o.c2p,oe;R.s0>0?oe=R._sMax:R.s0<0?oe=R._sMin:oe=R.s1>0?R._sMax:R._sMin;function Ce(te,pe){if(!te)return 0;var Ve=Math.abs(M?U-B:Y-I),vr=Math.abs(M?Y-I:U-B),hr=K(Math.abs(ye(oe,!0)-ye(0,!0))),le=R.hasB?Math.min(Ve/2,vr/2):Math.min(Ve/2,hr),ge;if(pe==="%"){var Ie=Math.min(50,te);ge=Ve*(Ie/100)}else ge=te;return K(Math.max(Math.min(ge,le),0))}var se=_||b?Ce(p.cornerradiusvalue,p.cornerradiusform):0,fe,Te,Fe="M"+I+","+B+"V"+U+"H"+Y+"V"+B+"Z",be=0;if(se&&R.s){var Me=p_(R.s0)===0||p_(R.s)===p_(R.s0)?R.s1:R.s0;if(be=K(R.hasB?0:Math.abs(ye(oe,!0)-ye(Me,!0))),be<se){var Ae=fl(I,Y),Le=fl(B,U),ke=Ae===-Le?1:0;if(M)if(R.hasB)fe="M"+(I+se*Ae)+","+B+"A "+se+","+se+" 0 0 "+ke+" "+I+","+(B+se*Le)+"V"+(U-se*Le)+"A "+se+","+se+" 0 0 "+ke+" "+(I+se*Ae)+","+U+"H"+(Y-se*Ae)+"A "+se+","+se+" 0 0 "+ke+" "+Y+","+(U-se*Le)+"V"+(B+se*Le)+"A "+se+","+se+" 0 0 "+ke+" "+(Y-se*Ae)+","+B+"Z";else{Te=Math.abs(Y-I)+be;var ze=Te<se?se-Math.sqrt(Te*(2*se-Te)):0,Se=be>0?Math.sqrt(be*(2*se-be)):0,Ue=Ae>0?Math.max:Math.min;fe="M"+I+","+B+"V"+(U-ze*Le)+"H"+Ue(Y-(se-be)*Ae,I)+"A "+se+","+se+" 0 0 "+ke+" "+Y+","+(U-se*Le-Se)+"V"+(B+se*Le+Se)+"A "+se+","+se+" 0 0 "+ke+" "+Ue(Y-(se-be)*Ae,I)+","+(B+ze*Le)+"Z"}else if(R.hasB)fe="M"+(I+se*Ae)+","+B+"A "+se+","+se+" 0 0 "+ke+" "+I+","+(B+se*Le)+"V"+(U-se*Le)+"A "+se+","+se+" 0 0 "+ke+" "+(I+se*Ae)+","+U+"H"+(Y-se*Ae)+"A "+se+","+se+" 0 0 "+ke+" "+Y+","+(U-se*Le)+"V"+(B+se*Le)+"A "+se+","+se+" 0 0 "+ke+" "+(Y-se*Ae)+","+B+"Z";else{Te=Math.abs(U-B)+be;var Ke=Te<se?se-Math.sqrt(Te*(2*se-Te)):0,er=be>0?Math.sqrt(be*(2*se-be)):0,De=Le>0?Math.max:Math.min;fe="M"+(I+Ke*Ae)+","+B+"V"+De(U-(se-be)*Le,B)+"A "+se+","+se+" 0 0 "+ke+" "+(I+se*Ae-er)+","+U+"H"+(Y-se*Ae+er)+"A "+se+","+se+" 0 0 "+ke+" "+(Y-Ke*Ae)+","+De(U-(se-be)*Le,B)+"V"+B+"Z"}}else fe=Fe}else fe=Fe;var Ye=eG(Ia.ensureSingle(O,"path"),s,n,i);if(Ye.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-I)*(U-B))||X&&e._context.staticPlot?"M0,0Z":fe).call(us.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&A){var rr=us.makePointStyleFns(h);us.singlePointStyle(R,Ye,h,rr,e)}J4e(e,r,O,c,N,I,Y,B,U,se,be,n,i),r.layerClipId&&us.hideOutsideRangePoint(R,O.select("text"),l,o,h.xcalendar,h.ycalendar)});var E=h.cliponaxis===!1;us.setClipUrl(v,E?null:r.layerClipId,e)});H4e.getComponentMethod("errorbars","plot")(e,f,r,n)}function J4e(e,r,t,a,n,i,l,o,s,u,f,c,v){var h=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(Fe,be,Me){var Ae=Ia.ensureSingle(Fe,"text").text(be).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(us.font,Me).call(I4e.convertToTspans,e);return Ae}var _=a[0].trace,w=_.orientation==="h",x=r6e(a,w,h,p),M=Q4e(y,a,n,h,p);m=e6e(_,n);var A=c.mode==="stack"||c.mode==="relative",k=a[n],S=!A||k._outmost,D=k.hasB,E=u&&u-f>Tn;if(!M||m==="none"||(k.isBlank||i===l||o===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var R=y.font,N=h_.getBarColor(a[n],_),O=h_.getInsideTextFont(_,n,R,N),F=h_.getOutsideTextFont(_,n,R),I=_.insidetextanchor||"end",Y=t.datum();w?h.type==="log"&&Y.s0<=0&&(h.range[0]<h.range[1]?i=0:i=h._length):p.type==="log"&&Y.s0<=0&&(p.range[0]<p.range[1]?o=p._length:o=0);var B=Math.abs(l-i),U=Math.abs(s-o),X=B-2*Tn,W=U-2*Tn,V,J,re,ne,de;if(m==="outside"&&!S&&!k.hasB&&(m="inside"),m==="auto")if(S){m="inside",de=Ia.ensureUniformFontSize(e,O),V=b(t,M,de),J=us.bBox(V.node()),re=J.width,ne=J.height;var K=re>0&&ne>0,ye;E?D?ye=zu(X-2*u,W,re,ne,w)||zu(X,W-2*u,re,ne,w):w?ye=zu(X-(u-f),W,re,ne,w)||zu(X,W-2*(u-f),re,ne,w):ye=zu(X,W-(u-f),re,ne,w)||zu(X-2*(u-f),W,re,ne,w):ye=zu(X,W,re,ne,w),K&&ye?m="inside":(m="outside",V.remove(),V=null)}else m="inside";if(!V){de=Ia.ensureUniformFontSize(e,m==="outside"?F:O),V=b(t,M,de);var oe=V.attr("transform");if(V.attr("transform",""),J=us.bBox(V.node()),re=J.width,ne=J.height,V.attr("transform",oe),re<=0||ne<=0){V.remove();return}}var Ce=_.textangle,se,fe;m==="outside"?(fe=_.constraintext==="both"||_.constraintext==="outside",se=j4e(i,l,o,s,J,{isHorizontal:w,constrained:fe,angle:Ce,zeroBarDir:x})):(fe=_.constraintext==="both"||_.constraintext==="inside",se=nG(i,l,o,s,J,{isHorizontal:w,constrained:fe,angle:Ce,anchor:I,hasB:D,r:u,overhead:f})),se.fontSize=de.size,O4e(_.type==="histogram"?"bar":_.type,se,y),k.transform=se;var Te=eG(V,y,c,v);Ia.setTransormAndDisplay(Te,se)}function zu(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function tG(e){return e==="auto"?0:e}function aG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function nG(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,h=(v+1)/2,p=1-h,y=i.hasB,m=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),M=Math.abs(a-t),A=x>2*Tn&&M>2*Tn?Tn:0;x-=2*A,M-=2*A;var k=tG(s);s==="auto"&&!(_<=x&&w<=M)&&(_>x||w>M)&&(!(_>M||w>x)||_<w!=x<M)&&(k+=90);var S=aG(n,k),D,E;if(m&&m-b>Tn){var R=K4e(e,r,t,a,S,m,b,l,y);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/S.x,M/S.y)),E=0;var N=n.left*p+n.right*h,O=(n.top+n.bottom)/2,F=(e+Tn)*p+(r-Tn)*h,I=(t+a)/2,Y=0,B=0;if(c||f){var U=(l?S.x:S.y)/2;m&&(f||y)&&(A+=E);var X=l?fl(e,r):fl(t,a);l?c?(F=e+X*A,Y=-X*U):(F=r-X*A,Y=X*U):c?(I=t+X*A,B=-X*U):(I=a-X*A,B=X*U)}return{textX:N,textY:O,targetX:F,targetY:I,anchorX:Y,anchorY:B,scale:D,rotate:k}}function K4e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Tn),f=Math.max(0,Math.abs(a-t)-2*Tn),c=i-Tn,v=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*v,p=s?c*2:o?2*v:c-l,y,m,b,_,w;return n.y/n.x>=f/(u-h)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function j4e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),h;l?h=v>2*Tn?Tn:0:h=c>2*Tn?Tn:0;var p=1;o&&(p=l?Math.min(1,v/f):Math.min(1,c/u));var y=tG(s),m=aG(n,y),b=(l?m.x:m.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,M=(t+a)/2,A=0,k=0,S;return(l?e===r:t===a)&&i.zeroBarDir?S=i.zeroBarDir:S=l?fl(r,e):fl(t,a),l?(x=r-S*h,A=S*b):(M=a+S*h,k=-S*b),{textX:_,textY:w,targetX:x,targetY:M,anchorX:A,anchorY:k,scale:p,rotate:y}}function Q4e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=t6e(e,r,t,a,n):i.textinfo?o=a6e(r,t,a,n):o=zc.getValue(i.text,t),zc.coerceString(G4e,o)}function e6e(e,r){var t=zc.getValue(e.textposition,r);return zc.coerceEnumerated(U4e,t)}function r6e(e,r,t,a){for(var n=!1,i=!1,l=0;l<e.length;l++){var o=e[l].s;if(o>0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-fl(s.range[0],s.range[1]);return i?n?0:-u:u}function t6e(e,r,t,a,n){var i=r[0].trace,l=Ia.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,h,p;f?(c="y",v=n,h="x",p=a):(c="x",v=a,h="y",p=n);function y(A){return Uy(v,v.c2l(A),!0).text}function m(A){return Uy(p,p.c2l(A),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=y(b.p);var w=Ia.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[h+"Label"]=m(b.s);var x={};V4e(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=m(_.delta),_.final=b.v,_.finalLabel=m(_.final),_.initial=_.final-_.delta,_.initialLabel=m(_.initial)),u&&(_.value=b.s,_.valueLabel=m(_.value),_.percentInitial=b.begR,_.percentInitialLabel=Ia.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=Ia.formatPercent(b.difR),_.percentTotal=b.sumR,_.percentTotalLabel=Ia.formatPercent(b.sumR));var M=Ia.castOption(i,b.i,"customdata");return M&&(_.customdata=M),Ia.texttemplateString({data:[x,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function a6e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var A=i?a:t;return Uy(A,M,!0).text}function u(M){var A=i?t:a;return Uy(A,+M,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),h=[],p,y=function(M){return v.indexOf(M)!==-1};if(y("label")&&h.push(s(e[r].p)),y("text")&&(p=Ia.castOption(n,c.i,"text"),(p===0||p)&&h.push(p)),l){var m=+c.rawS||c.s,b=c.v,_=b-m;y("initial")&&h.push(u(_)),y("delta")&&h.push(u(m)),y("final")&&h.push(u(b))}if(o){y("value")&&h.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=Ia.formatPercent(c.begR),x&&(p+=" of initial"),h.push(p)),y("percent previous")&&(p=Ia.formatPercent(c.difR),x&&(p+=" of previous"),h.push(p)),y("percent total")&&(p=Ia.formatPercent(c.sumR),x&&(p+=" of total"),h.push(p))}return h.join("<br>")}iG.exports={plot:$4e,toMoveInsideBar:nG}});var Ed=G((qSe,uG)=>{"use strict";var Dd=bi(),n6e=Ar(),lG=kr(),i6e=qe().fillText,l6e=By().getLineWidth,m_=Qr().hoverLabelText,o6e=(Et(),Ne(It)).BADNUM;function s6e(e,r,t,a,n){var i=oG(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=sG(o,s),n6e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function oG(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,h,p,y,m,b,_;l.orientation==="h"?(v=t,h=r,p="y",y="x",m=I,b=N):(v=r,h=t,p="x",y="y",b=I,m=N);var w=l[p+"period"],x=s||w;function M(K){return k(K,-1)}function A(K){return k(K,1)}function k(K,ye){var oe=K.w;return K[p]+ye*oe/2}function S(K){return K[p+"End"]-K[p+"Start"]}var D=s?M:w?function(K){return K.p-S(K)/2}:function(K){return Math.min(M(K),K.p-o.bardelta/2)},E=s?A:w?function(K){return K.p+S(K)/2}:function(K){return Math.max(A(K),K.p+o.bardelta/2)};function R(K,ye,oe){return n.finiteRange&&(oe=0),Dd.inbox(K-v,ye-v,oe+Math.min(1,Math.abs(ye-K)/_)-1)}function N(K){return R(D(K),E(K),f)}function O(K){return R(M(K),A(K),c)}function F(K){var ye=K[y];if(u){var oe=Math.abs(K.rawS)||0;h>0?ye+=oe:h<0&&(ye-=oe)}return ye}function I(K){var ye=h,oe=K.b,Ce=F(K);return Dd.inbox(oe-ye,Ce-ye,f+(Ce-ye)/(Ce-oe)-1)}function Y(K){var ye=h,oe=K.b,Ce=F(K);return Dd.inbox(oe-ye,Ce-ye,c+(Ce-ye)/(Ce-oe)-1)}var B=e[p+"a"],U=e[y+"a"];_=Math.abs(B.r2c(B.range[1])-B.r2c(B.range[0]));function X(K){return(m(K)+b(K))/2}var W=Dd.getDistanceFunction(a,m,b,X);if(Dd.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==o6e){x||(D=function(K){return Math.min(M(K),K.p-o.bargroupwidth/2)},E=function(K){return Math.max(A(K),K.p+o.bargroupwidth/2)});var V=e.index,J=i[V],re=l.base?J.b+J.s:J.s;e[y+"0"]=e[y+"1"]=U.c2p(J[y],!0),e[y+"LabelVal"]=re;var ne=o.extents[o.extents.round(J.p)];e[p+"0"]=B.c2p(s?D(J):ne[0],!0),e[p+"1"]=B.c2p(s?E(J):ne[1],!0);var de=J.orig_p!==void 0;return e[p+"LabelVal"]=de?J.orig_p:J.p,e.labelLabel=m_(B,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=m_(U,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=m_(U,J.b,l[y+"hoverformat"]),e.spikeDistance=(Y(J)+O(J))/2,e[p+"Spike"]=B.c2p(J.p,!0),i6e(J,l,e),e.hovertemplate=l.hovertemplate,e}}function sG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=l6e(e,r);if(lG.opacity(t))return t;if(lG.opacity(a)&&n)return a}uG.exports={hoverPoints:s6e,hoverOnBars:oG,getTraceColor:sG}});var cG=G((DSe,fG)=>{"use strict";fG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var Pd=G((ESe,vG)=>{"use strict";vG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f<a.length;f++)a[f].selected=0;else for(f=0;f<a.length;f++){var c=a[f],v="ct"in c?c.ct:u6e(c,n,i,s,o);t.contains(v,!1,f,r)?(u.push({pointNumber:f,x:n.c2d(c.x),y:i.c2d(c.y)}),c.selected=1):c.selected=0}return u};function u6e(e,r,t,a,n){var i=r.c2p(a?e.s0:e.p0,!0),l=r.c2p(a?e.s1:e.p1,!0),o=t.c2p(a?e.p0:e.s0,!0),s=t.c2p(a?e.p1:e.s1,!0);return n?[(i+l)/2,(o+s)/2]:a?[l,(o+s)/2]:[(i+l)/2,s]}});var hG=G((PSe,dG)=>{"use strict";dG.exports={attributes:vo(),layoutAttributes:Fy(),supplyDefaults:Rl().supplyDefaults,crossTraceDefaults:Rl().crossTraceDefaults,supplyLayoutDefaults:c_(),calc:IY(),crossTraceCalc:gc().crossTraceCalc,colorbar:Km(),arraysToCalcdata:Oy(),plot:Nc().plot,style:ss().style,styleOnSelect:ss().styleOnSelect,hoverPoints:Ed().hoverPoints,eventData:cG(),selectPoints:Pd(),moduleType:"trace",name:"bar",basePlotModule:oo(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var mG=G((RSe,pG)=>{"use strict";pG.exports=hG()});var gG=G((zSe,yG)=>{"use strict";yG.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var bG={};ht(bG,{eventDataKeys:()=>f6e});var f6e,xG=lt(()=>{"use strict";f6e=["binNumber"]});var b_=G((NSe,MG)=>{"use strict";var Gn=vo(),_G=Xi().axisHoverFormat,{hovertemplateAttrs:c6e,texttemplateAttrs:v6e,templatefallbackAttrs:wG}=Wn(),y_=_a(),TG=gG(),d6e=(xG(),Ne(bG)),g_=Mt().extendFlat;MG.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:_G("x"),yhoverformat:_G("y"),text:g_({},Gn.text,{}),hovertext:g_({},Gn.hovertext,{}),orientation:Gn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:TG("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:TG("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:c6e({},{keys:d6e.eventDataKeys}),hovertemplatefallback:wG(),texttemplate:v6e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:wG({editType:"plot"}),textposition:g_({},Gn.textposition,{arrayOk:!1}),textfont:y_({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:y_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:y_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Gn.insidetextanchor,textangle:Gn.textangle,cliponaxis:Gn.cliponaxis,constraintext:Gn.constraintext,marker:Gn.marker,offsetgroup:Gn.offsetgroup,alignmentgroup:Gn.alignmentgroup,selected:Gn.selected,unselected:Gn.unselected,zorder:Gn.zorder}});var LG=G((ISe,CG)=>{"use strict";var AG=Ar(),Rd=qe(),kG=kr(),h6e=Rl().handleText,p6e=f_(),m6e=b_();CG.exports=function(r,t,a,n){function i(_,w){return Rd.coerce(r,t,m6e,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");h6e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",h=l&&o?Math.min(Rd.minRowLength(l)&&Rd.minRowLength(o)):Rd.minRowLength(t[c]||[]);if(!h){t.visible=!1;return}t._length=h;var p=AG.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),p6e(r,t,i,a,n),Rd.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=AG.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||kG.defaultLine,{axis:"y"}),b(r,t,m||kG.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var EG=G((FSe,DG)=>{"use strict";var zd=qe(),y6e=fa(),Vy=Ar().traceIs,g6e=pc(),b6e=Rl().validateCornerradius,SG=zd.nestedProperty,x_=gu().getAxisGroup,qG=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],x6e=["x","y"];DG.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,v,h;function p(I,Y){return zd.coerce(o._input,o,o._module.attributes,I,Y)}function y(I){return I.orientation==="v"?"x":"y"}function m(I,Y){var B=y6e.getFromTrace({_fullLayout:t},I,Y);return B.type}function b(I,Y,B){var U=I.uid+"__"+B;Y||(Y=U);var X=m(I,B),W=I[B+"calendar"]||"",V=a[Y],J=!0;V&&(X===V.axType&&W===V.calendar?(J=!1,V.traces.push(I),V.dirs.push(B)):(Y=U,X!==V.axType&&zd.warn(["Attempted to group the bins of trace",I.index,"set on a","type:"+X,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),W!==V.calendar&&zd.warn(["Attempted to group the bins of trace",I.index,"set with a",W,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[Y]={traces:[I],dirs:[B],axType:X,calendar:I[B+"calendar"]||""}),I["_"+B+"bingroup"]=Y}for(c=0;c<r.length;c++)if(o=r[c],Vy(o,"histogram")){if(n.push(o),delete o._xautoBinFinished,delete o._yautoBinFinished,o.type==="histogram"){var _=p("marker.cornerradius",t.barcornerradius);o.marker&&(o.marker.cornerradius=b6e(_))}Vy(o,"2dMap")||g6e(o._input,o,t,p,t.barmode)}var w=t._alignmentOpts||{};for(c=0;c<n.length;c++){if(o=n[c],u="",!Vy(o,"2dMap")){if(f=y(o),t.barmode==="group"&&o.alignmentgroup){var x=o[f+"axis"],M=x_(t,x)+o.orientation;(w[M]||{})[o.alignmentgroup]&&(u=M)}!u&&t.barmode!=="overlay"&&(u=x_(t,o.xaxis)+x_(t,o.yaxis)+y(o))}u?(i[u]||(i[u]=[]),i[u].push(o)):l.push(o)}for(u in i){if(s=i[u],s.length===1){l.push(s[0]);continue}var A=!1;for(s.length&&(o=s[0],A=p("bingroup")),u=A||u,c=0;c<s.length;c++){o=s[c];var k=o._input.bingroup;k&&k!==u&&zd.warn(["Trace",o.index,"must match","within bingroup",u+".","Ignoring its bingroup:",k,"setting."].join(" ")),o.bingroup=u,b(o,u,y(o))}}for(c=0;c<l.length;c++){o=l[c];var S=p("bingroup");if(Vy(o,"2dMap"))for(h=0;h<2;h++){f=x6e[h];var D=p(f+"bingroup",S?S+"__"+f:null);b(o,D,f)}else b(o,S,y(o))}for(u in a){var E=a[u];for(s=E.traces,v=0;v<qG.length;v++){var R=qG[v],N=R.name,O,F;if(!(N==="nbins"&&E.sizeFound)){for(c=0;c<s.length;c++){if(o=s[c],f=E.dirs[c],O=R.aStr[f],SG(o._input,O).get()!==void 0){E[N]=p(O),E[N+"Found"]=!0;break}F=(o._autoBin||{})[f]||{},F[N]&&SG(o,O).set(F[N])}if(N==="start"||N==="end")for(;c<s.length;c++)o=s[c],o["_"+f+"bingroup"]&&(F=(o._autoBin||{})[f]||{},p(O,F[N]));N==="nbins"&&!E.sizeFound&&!E.nbinsFound&&(o=s[0],E[N]=p(O))}}}}});var RG=G((HSe,PG)=>{"use strict";var Ic=Ur();PG.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Ic(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Ic(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Ic(n))if(n=Number(n),Ic(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Ic(n))if(n=Number(n),Ic(t[e])){if(t[e]<n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0}}});var NG=G((OSe,zG)=>{"use strict";zG.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n<t;n++)e[n]*=a},probability:function(e,r){for(var t=e.length,a=0;a<t;a++)e[a]/=r},density:function(e,r,t,a){var n=e.length;a=a||1;for(var i=0;i<n;i++)e[i]*=t[i]*a},"probability density":function(e,r,t,a){var n=e.length;a&&(r/=a);for(var i=0;i<n;i++)e[i]*=t[i]/r}}});var FG=G((BSe,IG)=>{"use strict";IG.exports=function(r,t){for(var a=r.length,n=0,i=0;i<a;i++)t[i]?(r[i]/=t[i],n+=r[i]):r[i]=null;return n}});var WG=G((YSe,XG)=>{"use strict";var Fc=(Et(),Ne(It)),Nu=Fc.ONEAVGYEAR,HG=Fc.ONEAVGMONTH,Wy=Fc.ONEDAY,OG=Fc.ONEHOUR,BG=Fc.ONEMIN,YG=Fc.ONESEC,GG=Qr().tickIncrement;XG.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Xy(u+o,u+s,n,i),Xy(f+o,f+s,n,i)),v=Math.min(Xy(u+l,u+o,n,i),Xy(f+l,f+o,n,i)),h,p;if(c>v&&v<Math.abs(f-u)/4e3?(h=c,p=!1):(h=Math.min(c,v),p=!0),n.type==="date"&&h>Wy){var y=h===Nu?1:6,m=h===Nu?"M12":"M1";return function(b,_){var w=n.c2d(b,Nu,i),x=w.indexOf("-",y);x>0&&(w=w.slice(0,x));var M=n.d2c(w,0,i);if(M<b){var A=GG(M,m,!1,i);(M+A)/2<b+r&&(M=A)}return _&&p?GG(M,m,!0,i):M}}return function(b,_){var w=h*Math.round(b/h);return w+h/10<b&&w+h*.9<b+r&&(w+=h),_&&p&&(w-=h),w}};function Xy(e,r,t,a){if(e*r<=0)return 1/0;for(var n=Math.abs(r-e),i=t.type==="date",l=UG(n,i),o=0;o<10;o++){var s=UG(l*80,i);if(l===s)break;if(_6e(s,e,r,i,t,a))l=s;else break}return l}function UG(e,r){return r&&e>YG?e>Wy?e>Nu*1.1?Nu:e>HG*1.1?HG:Wy:e>OG?OG:e>BG?BG:YG:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function _6e(e,r,t,a,n,i){if(a&&e>Wy){var l=VG(r,n,i),o=VG(t,n,i),s=e===Nu?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function VG(e,r,t){var a=r.c2d(e,Nu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var QG=G((GSe,jG)=>{"use strict";var __=Ur(),Mn=qe(),ZG=Ar(),Ei=Qr(),{hasColorscale:$G}=$n(),JG=lv(),w6e=Oy(),KG=RG(),T6e=NG(),M6e=FG(),A6e=WG();function k6e(e,r){var t=[],a=[],n=r.orientation==="h",i=Ei.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=w_(e,r,i,l),v=c[0],h=c[1],p=typeof v.size=="string",y=[],m=p?y:v,b=[],_=[],w=[],x=0,M=r.histnorm,A=r.histfunc,k=M.indexOf("density")!==-1,S,D,E;u.enabled&&k&&(M=M.replace(/ ?density$/,""),k=!1);var R=A==="max"||A==="min",N=R?null:0,O=KG.count,F=T6e[M],I=!1,Y=function(Te){return i.r2c(Te,0,s)},B;for(Mn.isArrayOrTypedArray(r[o])&&A!=="count"&&(B=r[o],I=A==="avg",O=KG[A]),f=Y(v.start),D=Y(v.end)+(f-Ei.tickIncrement(f,v.size,!1,s))/1e6;f<D&&t.length<1e6&&(S=Ei.tickIncrement(f,v.size,!1,s),t.push((f+S)/2),a.push(N),w.push([]),y.push(f),k&&b.push(1/(S-f)),I&&_.push(0),!(S<=f));)f=S;y.push(f),!p&&i.type==="date"&&(m={start:Y(m.start),end:Y(m.end),size:m.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var U=r["_"+l+"bingroup"],X={leftGap:1/0,rightGap:1/0};U&&(e._fullLayout._roundFnOpts[U]||(e._fullLayout._roundFnOpts[U]=X),X=e._fullLayout._roundFnOpts[U]);var W=a.length,V=!0,J=X.leftGap,re=X.rightGap,ne={};for(f=0;f<h.length;f++){var de=h[f];E=Mn.findBin(de,m),E>=0&&E<W&&(x+=O(E,f,a,B,_),V&&w[E].length&&de!==h[w[E][0]]&&(V=!1),w[E].push(f),ne[f]=E,J=Math.min(J,de-y[E]),re=Math.min(re,y[E+1]-de))}X.leftGap=J,X.rightGap=re;var K;V||(K=function(Te,Fe){return function(){var be=e._fullLayout._roundFnOpts[U];return A6e(be.leftGap,be.rightGap,y,i,s)(Te,Fe)}}),I&&(x=M6e(a,_)),F&&F(a,x,b),u.enabled&&S6e(a,u.direction,u.currentbin);var ye=Math.min(t.length,a.length),oe=[],Ce=0,se=ye-1;for(f=0;f<ye;f++)if(a[f]){Ce=f;break}for(f=ye-1;f>=Ce;f--)if(a[f]){se=f;break}for(f=Ce;f<=se;f++)if(__(t[f])&&__(a[f])){var fe={p:t[f],s:a[f],b:0};u.enabled||(fe.pts=w[f],V?fe.ph0=fe.ph1=w[f].length?h[w[f][0]]:t[f]:(r._computePh=!0,fe.ph0=K(y[f]),fe.ph1=K(y[f+1],!0))),oe.push(fe)}return oe.length===1&&(oe[0].width1=Ei.tickIncrement(oe[0].p,v.size,!1,s)-oe[0].p),$G(r,"marker")&&JG(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),$G(r,"marker.line")&&JG(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),w6e(oe,r),Mn.isArrayOrTypedArray(r.selectedpoints)&&Mn.tagSelected(oe,r,ne),oe}function w_(e,r,t,a,n){var de;var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,v,h,p,y,m,b=function(K){return t.r2c(K,0,h)},_=function(K){return t.c2r(K,0,h)},w=t.type==="date"?function(K){return K||K===0?Mn.cleanDate(K,null,h):null}:function(K){return __(K)?Number(K):null};function x(K,ye,oe){ye[K+"Found"]?(ye[K]=w(ye[K]),ye[K]===null&&(ye[K]=oe[K])):(y[K]=ye[K]=oe[K],Mn.nestedProperty(c[0],i+"."+K).set(oe[K]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],A=!0,k=!1,S=!1;for(f=0;f<c.length;f++)if(v=c[f],v.visible){var D=s.dirs[f];p=v["_"+D+"pos0"]=t.makeCalcdata(v,D),M=Mn.concat(M,p),delete v["_"+a+"autoBinFinished"],r.visible===!0&&(A?A=!1:(delete v._autoBin,v["_"+a+"autoBinFinished"]=1),ZG.traceIs(v,"2dMap")&&(k=!0),v.type==="histogram2dcontour"&&(S=!0))}h=c[0][a+"calendar"];var E=Ei.autoBin(M,t,s.nbins,k,h,s.sizeFound&&s.size),R=c[0]._autoBin={};if(y=R[s.dirs[0]]={},S&&(s.size||(E.start=_(Ei.tickIncrement(b(E.start),E.size,!0,h))),s.end===void 0&&(E.end=_(Ei.tickIncrement(b(E.end),E.size,!1,h)))),u&&!ZG.traceIs(r,"2dMap")&&E._dataSpan===0&&t.type!=="category"&&t.type!=="multicategory"&&r.bingroup===""&&!((de=r._input[i])!=null&&de.size)){if(n)return[E,p,!0];E=C6e(e,r,t,a,i)}m=v.cumulative||{},m.enabled&&m.currentbin!=="include"&&(m.direction==="decreasing"?E.start=_(Ei.tickIncrement(b(E.start),E.size,!0,h)):E.end=_(Ei.tickIncrement(b(E.end),E.size,!1,h))),s.size=E.size,s.sizeFound||(y.size=E.size,Mn.nestedProperty(c[0],i+".size").set(E.size)),x("start",s,E),x("end",s,E)}p=r["_"+a+"pos0"],delete r["_"+a+"pos0"];var N=r._input[i]||{},O=Mn.extendFlat({},s),F=s.start,I=t.r2l(N.start),Y=I!==void 0;if((s.startFound||Y)&&I!==t.r2l(F)){var B=Y?I:Mn.aggNums(Math.min,null,p),U={type:t.type==="category"||t.type==="multicategory"?"linear":t.type,r2l:t.r2l,dtick:s.size,tick0:F,calendar:h,range:[B,Ei.tickIncrement(B,s.size,!1,h)].map(t.l2r)},X=Ei.tickFirst(U);X>t.r2l(B)&&(X=Ei.tickIncrement(X,s.size,!0,h)),O.start=t.l2r(X),Y||Mn.nestedProperty(r,i+".start").set(O.start)}var W=s.end,V=t.r2l(N.end),J=V!==void 0;if((s.endFound||J)&&V!==t.r2l(W)){var re=J?V:Mn.aggNums(Math.max,null,p);O.end=t.l2r(re),J||Mn.nestedProperty(r,i+".start").set(O.end)}var ne="autobin"+a;return r._input[ne]===!1&&(r._input[i]=Mn.extendFlat({},r[i]||{}),delete r._input[ne],delete r[ne]),[O,p]}function C6e(e,r,t,a,n){var i=e._fullLayout,l=L6e(e,r),o=!1,s=1/0,u=[r],f,c,v;for(f=0;f<l.length;f++)if(c=l[f],c===r)o=!0;else if(!o)v=i._histogramBinOpts[c["_"+a+"bingroup"]],s=Math.min(s,v.size||c[n].size);else{var h=w_(e,c,t,a,!0),p=h[0],y=h[2];c["_"+a+"autoBinFinished"]=1,c["_"+a+"pos0"]=h[1],y?u.push(c):s=Math.min(s,p.size)}var m=new Array(u.length);for(f=0;f<u.length;f++)for(var b=u[f]["_"+a+"pos0"],_=0;_<b.length;_++)if(b[_]!==void 0){m[f]=b[_];break}for(isFinite(s)||(s=Mn.distinctVals(m).minDiff),f=0;f<u.length;f++){c=u[f];var w=c[a+"calendar"],x={start:t.c2r(m[f]-s/2,0,w),end:t.c2r(m[f]+s/2,0,w),size:s};c._input[n]=c[n]=x,v=i._histogramBinOpts[c["_"+a+"bingroup"]],v&&Mn.extendFlat(v,x)}return r[n]}function L6e(e,r){for(var t=r.xaxis,a=r.yaxis,n=r.orientation,i=[],l=e._fullData,o=0;o<l.length;o++){var s=l[o];s.type==="histogram"&&s.visible===!0&&s.orientation===n&&s.xaxis===t&&s.yaxis===a&&i.push(s)}return i}function S6e(e,r,t){var a,n,i;function l(s){i=e[s],e[s]/=2}function o(s){n=e[s],e[s]=i+n/2,i+=n}if(t==="half")if(r==="increasing")for(l(0),a=1;a<e.length;a++)o(a);else for(l(e.length-1),a=e.length-2;a>=0;a--)o(a);else if(r==="increasing"){for(a=1;a<e.length;a++)e[a]+=e[a-1];t==="exclude"&&(e.unshift(0),e.pop())}else{for(a=e.length-2;a>=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}jG.exports={calc:k6e,calcAllAutoBins:w_}});var rU=G((USe,eU)=>{"use strict";var q6e=Ed().hoverPoints,D6e=Qr().hoverLabelText;eU.exports=function(r,t,a,n,i){var l=q6e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=D6e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var aU=G((VSe,tU)=>{"use strict";tU.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=l}return r}});var iU=G((XSe,nU)=>{"use strict";nU.exports={attributes:b_(),layoutAttributes:Fy(),supplyDefaults:LG(),crossTraceDefaults:EG(),supplyLayoutDefaults:c_(),calc:QG().calc,crossTraceCalc:gc().crossTraceCalc,plot:Nc().plot,layerName:"barlayer",style:ss().style,styleOnSelect:ss().styleOnSelect,colorbar:Km(),hoverPoints:rU(),selectPoints:Pd(),eventData:aU(),moduleType:"trace",name:"histogram",basePlotModule:oo(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var oU=G((WSe,lU)=>{"use strict";lU.exports=iU()});var sU={};ht(sU,{eventDataKeys:()=>E6e});var E6e,uU=lt(()=>{"use strict";E6e=["percentInitial","percentPrevious","percentTotal"]});var M_=G((ZSe,dU)=>{"use strict";var wt=vo(),T_=ji().line,P6e=En(),fU=Xi().axisHoverFormat,{hovertemplateAttrs:R6e,texttemplateAttrs:z6e,templatefallbackAttrs:cU}=Wn(),vU=(uU(),Ne(sU)),ho=Mt().extendFlat,N6e=kr();dU.exports={x:wt.x,x0:wt.x0,dx:wt.dx,y:wt.y,y0:wt.y0,dy:wt.dy,xperiod:wt.xperiod,yperiod:wt.yperiod,xperiod0:wt.xperiod0,yperiod0:wt.yperiod0,xperiodalignment:wt.xperiodalignment,yperiodalignment:wt.yperiodalignment,xhoverformat:fU("x"),yhoverformat:fU("y"),hovertext:wt.hovertext,hovertemplate:R6e({},{keys:vU.eventDataKeys}),hovertemplatefallback:cU(),hoverinfo:ho({},P6e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:z6e({editType:"plot"},{keys:vU.eventDataKeys.concat(["label","value"])}),texttemplatefallback:cU({editType:"plot"}),text:wt.text,textposition:wt.textposition,insidetextanchor:ho({},wt.insidetextanchor,{dflt:"middle"}),textangle:ho({},wt.textangle,{dflt:0}),textfont:wt.textfont,insidetextfont:wt.insidetextfont,outsidetextfont:wt.outsidetextfont,constraintext:wt.constraintext,cliponaxis:wt.cliponaxis,orientation:ho({},wt.orientation,{}),offset:ho({},wt.offset,{arrayOk:!1}),width:ho({},wt.width,{arrayOk:!1}),marker:I6e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:ho({},T_.color,{dflt:N6e.defaultLine}),width:ho({},T_.width,{dflt:0,editType:"plot"}),dash:T_.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:wt.offsetgroup,alignmentgroup:wt.alignmentgroup,zorder:wt.zorder};function I6e(){var e=ho({},wt.marker);return delete e.pattern,delete e.cornerradius,e}});var A_=G(($Se,hU)=>{"use strict";hU.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var C_=G((JSe,mU)=>{"use strict";var Zy=qe(),F6e=pc(),H6e=Rl().handleText,O6e=od(),B6e=Tu(),pU=M_(),k_=kr();function Y6e(e,r,t,a){function n(c,v){return Zy.coerce(e,r,pU,c,v)}var i=O6e(e,r,a,n);if(!i){r.visible=!1;return}B6e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");H6e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",Zy.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",k_.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",G6e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function G6e(e){var r=Zy.isArrayOrTypedArray(e)?"#000":e;return k_.addOpacity(r,.5*k_.opacity(r))}function U6e(e,r){var t,a;function n(l){return Zy.coerce(a._input,a,pU,l)}for(var i=0;i<e.length;i++)a=e[i],a.type==="funnel"&&(t=a._input,F6e(t,a,r,n,r.funnelmode))}mU.exports={supplyDefaults:Y6e,crossTraceDefaults:U6e}});var gU=G((KSe,yU)=>{"use strict";var V6e=qe(),X6e=A_();yU.exports=function(e,r,t){var a=!1;function n(o,s){return V6e.coerce(e,r,X6e,o,s)}for(var i=0;i<t.length;i++){var l=t[i];if(l.visible&&l.type==="funnel"){a=!0;break}}a&&(n("funnelmode"),n("funnelgap",.2),n("funnelgroupgap"))}});var xU=G((jSe,bU)=>{"use strict";var Hc=qe();bU.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Hc.mergeArray(t.text,r,"tx"),Hc.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){Hc.mergeArray(n.opacity,r,"mo"),Hc.mergeArray(n.color,r,"mc");var i=n.line;i&&(Hc.mergeArray(i.color,r,"mlc"),Hc.mergeArrayCastPositive(i.width,r,"mlw"))}}});var MU=G((QSe,TU)=>{"use strict";var _U=Qr(),wU=Mu(),W6e=xU(),Z6e=sd(),Nd=(Et(),Ne(It)).BADNUM;TU.exports=function(r,t){var a=_U.getFromId(r,t.xaxis||"x"),n=_U.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,v;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=wU(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=wU(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var h=Math.min(l.length,i.length),p=new Array(h);for(t._base=[],c=0;c<h;c++){i[c]<0&&(i[c]=Nd);var y=!1;i[c]!==Nd&&c+1<h&&i[c+1]!==Nd&&(y=!0),v=p[c]={p:l[c],s:i[c],cNext:y},t._base[c]=-.5*v.s,u&&(p[c].orig_p=o[c],p[c][f+"End"]=s.ends[c],p[c][f+"Start"]=s.starts[c]),t.ids&&(v.id=String(t.ids[c])),c===0&&(p[0].vTotal=0),p[0].vTotal+=L_(v.s),v.begR=L_(v.s)/L_(p[0].s)}var m;for(c=0;c<h;c++)v=p[c],v.s!==Nd&&(v.sumR=v.s/p[0].vTotal,v.difR=m!==void 0?v.s/m:1,m=v.s);return W6e(p,t),Z6e(p,t),p};function L_(e){return e===Nd?0:e}});var CU=G((eqe,kU)=>{"use strict";var AU=gc().setGroupPositions;kU.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v<n.length;v++){var h=n[v],p=h.orientation==="h";h.visible===!0&&h.xaxis===l._id&&h.yaxis===o._id&&h.type==="funnel"&&(c=i[v],p?f.push(c):u.push(c),s.push(c))}var y={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(AU(r,l,o,u,y),AU(r,o,l,f,y),v=0;v<s.length;v++){c=s[v];for(var m=0;m<c.length;m++)m+1<c.length&&(c[m].nextP0=c[m+1].p0,c[m].nextS0=c[m+1].s0,c[m].nextP1=c[m+1].p1,c[m].nextS1=c[m+1].s1)}}});var DU=G((rqe,qU)=>{"use strict";var $y=Er(),cs=qe(),LU=$r(),fs=(Et(),Ne(It)).BADNUM,$6e=Nc(),J6e=ul().clearMinTextSize;qU.exports=function(r,t,a,n){var i=r._fullLayout;J6e("funnel",i),K6e(r,t,a,n),j6e(r,t,a,n),$6e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function K6e(e,r,t,a){var n=r.xaxis,i=r.yaxis;cs.makeTraceGroups(a,t,"trace bars").each(function(l){var o=$y.select(this),s=l[0].trace,u=cs.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(cs.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var y=SU(h,n,i,f),m=y[0],b=y[1],_="";m[0]!==fs&&b[0]!==fs&&m[1]!==fs&&b[1]!==fs&&m[2]!==fs&&b[2]!==fs&&m[3]!==fs&&b[3]!==fs&&(f?_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2]+"H"+m[3]+"L"+m[1]+","+b[1]+"Z":_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3]+"V"+b[2]+"L"+m[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),cs.ensureSingle($y.select(this),"path").attr("d",_).call(LU.setClipUrl,r.layerClipId,e)}})})}function j6e(e,r,t,a){var n=r.xaxis,i=r.yaxis;cs.makeTraceGroups(a,t,"trace bars").each(function(l){var o=$y.select(this),s=l[0].trace,u=cs.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(cs.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var y=SU(h,n,i,f),m=y[0],b=y[1],_="";m[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2],_+="M"+m[1]+","+b[1]+"L"+m[3]+","+b[2]):(_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3],_+="M"+m[1]+","+b[0]+"L"+m[2]+","+b[2])),_===""&&(_="M0,0Z"),cs.ensureSingle($y.select(this),"path").attr("d",_).call(LU.setClipUrl,r.layerClipId,e)}})})}function SU(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var RU=G((tqe,PU)=>{"use strict";var Id=Er(),EU=$r(),S_=kr(),Q6e=(Af(),Ne(Mf)).DESELECTDIM,e_e=ss(),r_e=ul().resizeText,t_e=e_e.styleTextPoints;function a_e(e,r,t){var a=t||Id.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");r_e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Id.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;Id.select(this).call(S_.fill,o.mc||s.color).call(S_.stroke,o.mlc||s.line.color).call(EU.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?Q6e:1)}}),t_e(i,l,e),i.selectAll(".regions").each(function(){Id.select(this).selectAll("path").style("stroke-width",0).call(S_.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;EU.lineGroupStyle(Id.select(this).selectAll("path"),o.width,o.color,o.dash)})})}PU.exports={style:a_e}});var IU=G((aqe,NU)=>{"use strict";var zU=kr().opacity,n_e=Ed().hoverOnBars,q_=qe().formatPercent;NU.exports=function(r,t,a,n,i){var l=n_e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],v=u?"x":"y";l[v+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=q_(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=q_(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=q_(c.sumR,1);var h=c.hi||s.hoverinfo,p=[];if(h&&h!=="none"&&h!=="skip"){var y=h==="all",m=h.split("+"),b=function(_){return y||m.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("<br>"),l.color=i_e(s,c),[l]}};function i_e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(zU(a))return a;if(zU(n)&&i)return n}});var HU=G((nqe,FU)=>{"use strict";FU.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var BU=G((iqe,OU)=>{"use strict";OU.exports={attributes:M_(),layoutAttributes:A_(),supplyDefaults:C_().supplyDefaults,crossTraceDefaults:C_().crossTraceDefaults,supplyLayoutDefaults:gU(),calc:MU(),crossTraceCalc:CU(),plot:DU(),style:RU().style,hoverPoints:IU(),eventData:HU(),selectPoints:Pd(),moduleType:"trace",name:"funnel",basePlotModule:oo(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var GU=G((lqe,YU)=>{"use strict";YU.exports=BU()});var UU={};ht(UU,{eventDataKeys:()=>l_e});var l_e,VU=lt(()=>{"use strict";l_e=["initial","delta","final"]});var P_=G((oqe,$U)=>{"use strict";var gt=vo(),D_=ji().line,o_e=En(),XU=Xi().axisHoverFormat,{hovertemplateAttrs:s_e,texttemplateAttrs:u_e,templatefallbackAttrs:WU}=Wn(),ZU=(VU(),Ne(UU)),Oc=Mt().extendFlat,f_e=kr();function E_(e){return{marker:{color:Oc({},gt.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Oc({},gt.marker.line.color,{arrayOk:!1,editType:"style"}),width:Oc({},gt.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}$U.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:gt.x,x0:gt.x0,dx:gt.dx,y:gt.y,y0:gt.y0,dy:gt.dy,xperiod:gt.xperiod,yperiod:gt.yperiod,xperiod0:gt.xperiod0,yperiod0:gt.yperiod0,xperiodalignment:gt.xperiodalignment,yperiodalignment:gt.yperiodalignment,xhoverformat:XU("x"),yhoverformat:XU("y"),hovertext:gt.hovertext,hovertemplate:s_e({},{keys:ZU.eventDataKeys}),hovertemplatefallback:WU(),hoverinfo:Oc({},o_e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:u_e({editType:"plot"},{keys:ZU.eventDataKeys.concat(["label"])}),texttemplatefallback:WU({editType:"plot"}),text:gt.text,textposition:gt.textposition,insidetextanchor:gt.insidetextanchor,textangle:gt.textangle,textfont:gt.textfont,insidetextfont:gt.insidetextfont,outsidetextfont:gt.outsidetextfont,constraintext:gt.constraintext,cliponaxis:gt.cliponaxis,orientation:gt.orientation,offset:gt.offset,width:gt.width,increasing:E_("increasing"),decreasing:E_("decreasing"),totals:E_("intermediate sums and total"),connector:{line:{color:Oc({},D_.color,{dflt:f_e.defaultLine}),width:Oc({},D_.width,{editType:"plot"}),dash:D_.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:gt.offsetgroup,alignmentgroup:gt.alignmentgroup,zorder:gt.zorder}});var R_=G((sqe,JU)=>{"use strict";JU.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Bc={};ht(Bc,{DECREASING:()=>v_e,INCREASING:()=>c_e});var c_e,v_e,Yc=lt(()=>{"use strict";c_e={COLOR:"#3D9970",SYMBOL:"\u25B2"},v_e={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var N_=G((uqe,eV)=>{"use strict";var KU=qe(),d_e=pc(),h_e=Rl().handleText,p_e=od(),m_e=Tu(),jU=P_(),y_e=kr(),QU=(Yc(),Ne(Bc)),g_e=QU.INCREASING.COLOR,b_e=QU.DECREASING.COLOR,x_e="#4499FF";function z_(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",y_e.defaultLine),e(r+".marker.line.width")}function __e(e,r,t,a){function n(u,f){return KU.coerce(e,r,jU,u,f)}var i=p_e(e,r,a,n);if(!i){r.visible=!1;return}m_e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");h_e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),r.texttemplate||n("textinfo")),z_(n,"increasing",g_e),z_(n,"decreasing",b_e),z_(n,"totals",x_e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function w_e(e,r){var t,a;function n(l){return KU.coerce(a._input,a,jU,l)}if(r.waterfallmode==="group")for(var i=0;i<e.length;i++)a=e[i],t=a._input,d_e(t,a,r,n,r.waterfallmode)}eV.exports={supplyDefaults:__e,crossTraceDefaults:w_e}});var tV=G((fqe,rV)=>{"use strict";var T_e=qe(),M_e=R_();rV.exports=function(e,r,t){var a=!1;function n(o,s){return T_e.coerce(e,r,M_e,o,s)}for(var i=0;i<t.length;i++){var l=t[i];if(l.visible&&l.type==="waterfall"){a=!0;break}}a&&(n("waterfallmode"),n("waterfallgap",.2),n("waterfallgroupgap"))}});var sV=G((cqe,oV)=>{"use strict";var aV=Qr(),nV=Mu(),iV=qe().mergeArray,A_e=sd(),lV=(Et(),Ne(It)).BADNUM;function I_(e){return e==="a"||e==="absolute"}function F_(e){return e==="t"||e==="total"}oV.exports=function(r,t){var a=aV.getFromId(r,t.xaxis||"x"),n=aV.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=nV(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=nV(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),v=new Array(c),h=0,p,y=!1,m=0;m<c;m++){var b=i[m]||0,_=!1;(i[m]!==lV||F_(t.measure[m])||I_(t.measure[m]))&&m+1<c&&(i[m+1]!==lV||F_(t.measure[m+1])||I_(t.measure[m+1]))&&(_=!0);var w=v[m]={i:m,p:l[m],s:b,rawS:b,cNext:_};I_(t.measure[m])?(h=w.s,w.isSum=!0,w.dir="totals",w.s=h):F_(t.measure[m])?(w.isSum=!0,w.dir="totals",w.s=h):(w.isSum=!1,w.dir=w.rawS<0?"decreasing":"increasing",p=w.s,w.s=h+p,h+=p),w.dir==="totals"&&(y=!0),u&&(v[m].orig_p=o[m],v[m][f+"End"]=s.ends[m],v[m][f+"Start"]=s.starts[m]),t.ids&&(w.id=String(t.ids[m])),w.v=(t.base||0)+h}return v.length&&(v[0].hasTotals=y),iV(t.text,v,"tx"),iV(t.hovertext,v,"htx"),A_e(v,t),v}});var cV=G((vqe,fV)=>{"use strict";var uV=gc().setGroupPositions;fV.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v<n.length;v++){var h=n[v];h.visible===!0&&h.xaxis===l._id&&h.yaxis===o._id&&h.type==="waterfall"&&(c=i[v],h.orientation==="h"?f.push(c):u.push(c),s.push(c))}var p={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(uV(r,l,o,u,p),uV(r,o,l,f,p),v=0;v<s.length;v++){c=s[v];for(var y=0;y<c.length;y++){var m=c[y];m.isSum===!1&&(m.s0+=y===0?0:c[y-1].s),y+1<c.length&&(c[y].nextP0=c[y+1].p0,c[y].nextS0=c[y+1].s0)}}}});var hV=G((dqe,dV)=>{"use strict";var vV=Er(),Jy=qe(),k_e=$r(),Gc=(Et(),Ne(It)).BADNUM,C_e=Nc(),L_e=ul().clearMinTextSize;dV.exports=function(r,t,a,n){var i=r._fullLayout;L_e("waterfall",i),C_e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),S_e(r,t,a,n)};function S_e(e,r,t,a){var n=r.xaxis,i=r.yaxis;Jy.makeTraceGroups(a,t,"trace bars").each(function(l){var o=vV.select(this),s=l[0].trace,u=Jy.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,v=u.selectAll("g.line").data(Jy.identity);v.enter().append("g").classed("line",!0),v.exit().remove();var h=v.size();v.each(function(p,y){if(!(y!==h-1&&!p.cNext)){var m=q_e(p,n,i,f),b=m[0],_=m[1],w="";b[0]!==Gc&&_[0]!==Gc&&b[1]!==Gc&&_[1]!==Gc&&(c==="spanning"&&!p.isSum&&y>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||y<h-1)&&(f?w+="M"+b[1]+","+_[0]+"V"+_[1]:w+="M"+b[0]+","+_[1]+"H"+b[1]),b[2]!==Gc&&_[2]!==Gc&&(f?w+="M"+b[1]+","+_[1]+"V"+_[2]:w+="M"+b[1]+","+_[1]+"H"+b[2])),w===""&&(w="M0,0Z"),Jy.ensureSingle(vV.select(this),"path").attr("d",w).call(k_e.setClipUrl,r.layerClipId,e)}})})}function q_e(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),a?[n,i]:[i,n]}});var gV=G((hqe,yV)=>{"use strict";var Ky=Er(),pV=$r(),mV=kr(),D_e=(Af(),Ne(Mf)).DESELECTDIM,E_e=ss(),P_e=ul().resizeText,R_e=E_e.styleTextPoints;function z_e(e,r,t){var a=t||Ky.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");P_e(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Ky.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;Ky.select(this).call(mV.fill,s.color).call(mV.stroke,s.line.color).call(pV.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?D_e:1)}}),R_e(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;pV.lineGroupStyle(Ky.select(this).selectAll("path"),o.width,o.color,o.dash)})})}yV.exports={style:z_e}});var TV=G((pqe,wV)=>{"use strict";var N_e=Qr().hoverLabelText,bV=kr().opacity,I_e=Ed().hoverOnBars,xV=(Yc(),Ne(Bc)),_V={increasing:xV.INCREASING.SYMBOL,decreasing:xV.DECREASING.SYMBOL};wV.exports=function(r,t,a,n,i){var l=I_e(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function v(A){return N_e(c,A,s[f+"hoverformat"])}var h=l.index,p=o[h],y=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-y,l.delta=y,l.final=l.initial+l.delta;var m=v(Math.abs(l.delta));l.deltaLabel=y<0?"("+m+")":m,l.finalLabel=v(l.final),l.initialLabel=v(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),M=function(A){return w||x.indexOf(A)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(y<0?_.push(l.deltaLabel+" "+_V.decreasing):_.push(l.deltaLabel+" "+_V.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("<br>")),l.color=F_e(s,p),[l]};function F_e(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(bV(a))return a;if(bV(n)&&i)return n}});var AV=G((mqe,MV)=>{"use strict";MV.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var CV=G((yqe,kV)=>{"use strict";kV.exports={attributes:P_(),layoutAttributes:R_(),supplyDefaults:N_().supplyDefaults,crossTraceDefaults:N_().crossTraceDefaults,supplyLayoutDefaults:tV(),calc:sV(),crossTraceCalc:cV(),plot:hV(),style:gV().style,hoverPoints:TV(),eventData:AV(),selectPoints:Pd(),moduleType:"trace",name:"waterfall",basePlotModule:oo(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var SV=G((gqe,LV)=>{"use strict";LV.exports=CV()});var eg=G((bqe,DV)=>{"use strict";var jy=En(),H_e=is().attributes,O_e=_a(),B_e=vi(),{hovertemplateAttrs:Y_e,texttemplateAttrs:G_e,templatefallbackAttrs:qV}=Wn(),vs=Mt().extendFlat,U_e=Yi().pattern,Qy=O_e({editType:"plot",arrayOk:!0,colorEditType:"plot"});DV.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:B_e.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:U_e,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:vs({},jy.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Y_e({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:qV(),texttemplate:G_e({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:qV({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:vs({},Qy,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:vs({},Qy,{}),outsidetextfont:vs({},Qy,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:vs({},jy.showlegend,{arrayOk:!0}),legend:vs({},jy.legend,{arrayOk:!0}),legendrank:vs({},jy.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:vs({},Qy,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:H_e({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var rg=G((xqe,RV)=>{"use strict";var V_e=Ur(),Fd=qe(),X_e=eg(),W_e=is().defaults,Z_e=Rl().handleText,$_e=qe().coercePattern;function EV(e,r){var t=Fd.isArrayOrTypedArray(e),a=Fd.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l<n;l++){var o=r[l];if(V_e(o)&&o>0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function PV(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");$_e(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function J_e(e,r,t,a){function n(_,w){return Fd.coerce(e,r,X_e,_,w)}var i=n("labels"),l=n("values"),o=EV(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,PV(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",Fd.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");Z_e(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(v)||v==="auto",p=h||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");W_e(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),Fd.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}RV.exports={handleLabelsAndValues:EV,handleMarkerDefaults:PV,supplyDefaults:J_e}});var tg=G((_qe,zV)=>{"use strict";zV.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var IV=G((wqe,NV)=>{"use strict";var K_e=qe(),j_e=tg();NV.exports=function(r,t){function a(n,i){return K_e.coerce(r,t,j_e,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var ag=G((Tqe,OV)=>{"use strict";var Q_e=Ur(),Uc=kr(),e7e={};function r7e(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f<s;f++)i[f]=String(r.label0+f*r.dlabel);var v={},h=FV(a["_"+r.type+"colormap"]),p=0,y=!1;for(f=0;f<s;f++){var m,b,_;if(u){if(m=o[f],!Q_e(m))continue;m=+m}else m=1;b=i[f],(b===void 0||b==="")&&(b=f),b=String(b);var w=v[b];w===void 0?(v[b]=t.length,_=n.indexOf(b)!==-1,_||(p+=m),t.push({v:m,label:b,color:h(l[f],b),i:f,pts:[f],hidden:_})):(y=!0,c=t[w],c.v+=m,c.pts.push(f),c.hidden||(p+=m),c.color===!1&&l[f]&&(c.color=h(l[f],b)))}t=t.filter(function(M){return M.v>=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(M,A){return A.v-M.v}),t[0]&&(t[0].vTotal=p),t}function FV(e){return function(t,a){if(!t||!Uc.isValid(t))return!1;let n=Uc.rgbaString(t);return e[a]||(e[a]=n),n}}function t7e(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=HV(i,e7e));for(var o=0,s=0;s<n.length;s++){var u=n[s],f=u[0].trace.type;if(f===t)for(var c=0;c<u.length;c++){var v=u[c];v.color===!1&&(l[v.label]?v.color=l[v.label]:(l[v.label]=v.color=i[o%i.length],o++))}}}function HV(e,r){var t,a=JSON.stringify(e),n=r[a];if(!n){for(n=e.slice(),t=0;t<e.length;t++)n.push(Uc.hexString(Uc.adjustLightness(e[t],20)));for(t=0;t<e.length;t++)n.push(Uc.hexString(Uc.adjustLightness(e[t],-20)));r[a]=n}return n}OV.exports={calc:r7e,crossTraceCalc:t7e,makePullColorFn:FV,generateExtendedColors:HV}});var YV=G((Mqe,BV)=>{"use strict";var a7e=Wi().appendArrayMultiPointValues;BV.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),a7e(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var B_=G((Aqe,uX)=>{"use strict";var Un=Er(),n7e=Jt(),ng=bi(),ZV=kr(),po=$r(),$a=qe(),i7e=$a.strScale,GV=$a.strTranslate,H_=pa(),$V=ul(),l7e=$V.recordMinTextSize,o7e=$V.clearMinTextSize,JV=(cd(),Ne(fd)).TEXTPAD,qr=Tv(),ig=YV(),UV=qe().isValidTextValue;function s7e(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;o7e("pie",a),QV(r,e),lX(r,n);var i=$a.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=Un.select(this),s=l[0],u=s.trace;y7e(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=Un.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(x,M){if(x.hidden){Un.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var A=s.cx,k=s.cy,S=Un.select(this),D=S.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(KV,e,l),u.pull){var E=+qr.castOption(u.pull,x.pts)||0;E>0&&(A+=E*x.pxmid[0],k+=E*x.pxmid[1])}x.cxFinal=A,x.cyFinal=k;function R(U,X,W,V){var J=V*(X[0]-U[0]),re=V*(X[1]-U[1]);return"a"+V*s.r+","+V*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+re}var N=u.hole;if(x.v===s.vTotal){var O="M"+(A+x.px0[0])+","+(k+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(A+N*x.px0[0])+","+(k+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+O):D.attr("d",O)}else{var F=R(x.px0,x.px1,!0,1);if(N){var I=1-N;D.attr("d","M"+(A+N*x.px1[0])+","+(k+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+I*x.px0[0]+","+I*x.px0[1]+F+"Z")}else D.attr("d","M"+A+","+k+"l"+x.px0[0]+","+x.px0[1]+F+"Z")}oX(e,x,s);var Y=qr.castOption(u.textposition,x.pts),B=S.selectAll("g.slicetext").data(x.text&&Y!=="none"?[0]:[]);B.enter().append("g").classed("slicetext",!0),B.exit().remove(),B.each(function(){var U=$a.ensureSingle(Un.select(this),"text","",function(K){K.attr("data-notex",1)}),X=$a.ensureUniformFontSize(e,Y==="outside"?f7e(u,x,a.font):jV(u,x,a.font));U.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(po.font,X).call(H_.convertToTspans,e);var W=po.bBox(U.node()),V;if(Y==="outside")V=WV(W,x);else if(V=eX(W,x,s),Y==="auto"&&V.scale<1){var J=$a.ensureUniformFontSize(e,u.outsidetextfont);U.call(po.font,J),W=po.bBox(U.node()),V=WV(W,x)}var re=V.textPosAngle,ne=re===void 0?x.pxmid:lg(s.r,re);if(V.targetX=A+ne[0]*V.rCenter+(V.x||0),V.targetY=k+ne[1]*V.rCenter+(V.y||0),sX(V,W),V.outside){var de=V.targetY;x.yLabelMin=de-W.height/2,x.yLabelMid=de,x.yLabelMax=de+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}V.fontSize=X.size,l7e(u.type,V,a),l[M].transform=V,$a.setTransormAndDisplay(U,V)})});var h=Un.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var x=$a.ensureSingle(Un.select(this),"text","",function(k){k.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=$a.templateString(M,u._meta)),x.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(po.font,u.title.font).call(H_.convertToTspans,e);var A;u.title.position==="middle center"?A=d7e(s):A=nX(s,n),x.attr("transform",GV(A.x,A.y)+i7e(Math.min(1,A.scale))+GV(A.tx,A.ty))}),v&&p7e(c,u),u7e(f,u),v&&u.automargin){var p=po.bBox(o.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),_=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;n7e.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-_,xr:y.x[1]+_,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=Un.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function u7e(e,r){e.each(function(t){var a=Un.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,$a.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;$a.ensureSingle(a,"path","textline").call(ZV.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function KV(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=ng.castHoverinfo({hoverinfo:[qr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,h=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=qr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;$a.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=qr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=qr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];ng.loneHover({trace:l,x0:h-v*a.r,x1:h+v*a.r,y:p,_x0:o?n+s.TL[0]:h-v*a.r,_x1:o?n+s.TR[0]:h+v*a.r,_y0:o?i+s.TL[1]:p-v*a.r,_y1:o?i+s.BL[1]:p+v*a.r,text:m.join("<br>"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:qr.castOption(_.bgcolor,s.pts)||s.color,borderColor:qr.castOption(_.bordercolor,s.pts),fontFamily:qr.castOption(w.family,s.pts),fontSize:qr.castOption(w.size,s.pts),fontColor:qr.castOption(w.color,s.pts),nameLength:qr.castOption(_.namelength,s.pts),textAlign:qr.castOption(_.align,s.pts),hovertemplate:qr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[ig(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[ig(s,f)],event:Un.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=Un.select(this).datum();l._hasHoverEvent&&(s.originalEvent=Un.event,r.emit("plotly_unhover",{points:[ig(c,f)],event:Un.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(ng.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[ig(s,f)],ng.click(r,Un.event))})}function f7e(e,r,t){var a=qr.castOption(e.outsidetextfont.color,r.pts)||qr.castOption(e.textfont.color,r.pts)||t.color,n=qr.castOption(e.outsidetextfont.family,r.pts)||qr.castOption(e.textfont.family,r.pts)||t.family,i=qr.castOption(e.outsidetextfont.size,r.pts)||qr.castOption(e.textfont.size,r.pts)||t.size,l=qr.castOption(e.outsidetextfont.weight,r.pts)||qr.castOption(e.textfont.weight,r.pts)||t.weight,o=qr.castOption(e.outsidetextfont.style,r.pts)||qr.castOption(e.textfont.style,r.pts)||t.style,s=qr.castOption(e.outsidetextfont.variant,r.pts)||qr.castOption(e.textfont.variant,r.pts)||t.variant,u=qr.castOption(e.outsidetextfont.textcase,r.pts)||qr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=qr.castOption(e.outsidetextfont.lineposition,r.pts)||qr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=qr.castOption(e.outsidetextfont.shadow,r.pts)||qr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function jV(e,r,t){var a=qr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=qr.castOption(e._input.textfont.color,r.pts));var n=qr.castOption(e.insidetextfont.family,r.pts)||qr.castOption(e.textfont.family,r.pts)||t.family,i=qr.castOption(e.insidetextfont.size,r.pts)||qr.castOption(e.textfont.size,r.pts)||t.size,l=qr.castOption(e.insidetextfont.weight,r.pts)||qr.castOption(e.textfont.weight,r.pts)||t.weight,o=qr.castOption(e.insidetextfont.style,r.pts)||qr.castOption(e.textfont.style,r.pts)||t.style,s=qr.castOption(e.insidetextfont.variant,r.pts)||qr.castOption(e.textfont.variant,r.pts)||t.variant,u=qr.castOption(e.insidetextfont.textcase,r.pts)||qr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=qr.castOption(e.insidetextfont.lineposition,r.pts)||qr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=qr.castOption(e.insidetextfont.shadow,r.pts)||qr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||ZV.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function QV(e,r){for(var t,a,n=0;n<e.length;n++)if(t=e[n][0],a=t.trace,a.title.text){var i=a.title.text;a._meta&&(i=$a.templateString(i,a._meta));var l=po.tester.append("text").attr("data-notex",1).text(i).call(po.font,a.title.font).call(H_.convertToTspans,r),o=po.bBox(l.node(),!0);t.titleBox={width:o.width,height:o.height},l.remove()}}function eX(e,r,t){var a=t.r||r.rpx1,n=r.rInscribed,i=r.startangle===r.stopangle;if(i)return{rCenter:1-n,scale:0,rotate:0,textPosAngle:0};var l=r.ring,o=l===1&&Math.abs(r.startangle-r.stopangle)===Math.PI*2,s=r.halfangle,u=r.midangle,f=t.trace.insidetextorientation,c=f==="horizontal",v=f==="tangential",h=f==="radial",p=f==="auto",y=[],m;if(!p){var b=function(S,D){if(c7e(r,S)){var E=Math.abs(S-r.startangle),R=Math.abs(S-r.stopangle),N=E<R?E:R;D==="tan"?m=XV(e,a,l,N,0):m=VV(e,a,l,N,Math.PI/2),m.textPosAngle=S,y.push(m)}},_;if(c||v){for(_=4;_>=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||h){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||h)&&(m=VV(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=XV(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,M=0,A=0;A<y.length;A++){var k=y[A].scale;if(M<k&&(M=k,x=A),!p&&M>=1)break}return y[x]}function c7e(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t<r&&r<a}function VV(e,r,t,a,n){r=Math.max(0,r-2*JV);var i=e.width/e.height,l=aX(i,a,r,t);return{scale:l*2/e.height,rCenter:rX(i,l/r),rotate:tX(n)}}function XV(e,r,t,a,n){r=Math.max(0,r-2*JV);var i=e.height/e.width,l=aX(i,a,r,t);return{scale:l*2/e.width,rCenter:rX(i,l/r),rotate:tX(n+Math.PI/2)}}function rX(e,r){return Math.cos(r)-e*r}function tX(e){return(180/Math.PI*e+720)%180-90}function aX(e,r,t,a){var n=e+1/(2*Math.tan(r));return t*Math.min(1/(Math.sqrt(n*n+.5)+n),a/(Math.sqrt(e*e+a/2)+e))}function v7e(e,r){return e.v===r.vTotal&&!r.trace.hole?1:Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2)}function WV(e,r){var t=r.pxmid[0],a=r.pxmid[1],n=e.width/2,i=e.height/2;return t<0&&(n*=-1),a<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:n+Math.abs(i)*(n>0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function d7e(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function nX(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=iX(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=h7e(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=O_(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function h7e(e,r){return e/(r===void 0?1:r)}function O_(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function iX(e){var r=e.pull;if(!r)return 0;var t;if($a.isArrayOrTypedArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function p7e(e,r){var t,a,n,i,l,o,s,u,f,c,v,h,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var M=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),A=a?w.yLabelMin:w.yLabelMax,k=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-A,E,R,N,O,F,I;if(D*s>0&&(w.labelExtraY=D),!!$a.isArrayOrTypedArray(r.pull))for(R=0;R<c.length;R++)N=c[R],!(N===w||(qr.castOption(r.pull,w.pts)||0)>=(qr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(O=N.cyFinal+l(N.px0[1],N.px1[1]),D=O-A-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(k+w.labelExtraY-S)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),F=N.cxFinal+i(N.px0[0],N.px1[0]),I=F+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,I*o>0&&(w.labelExtraX+=I)))}for(a=0;a<2;a++)for(n=a?y:m,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],v=0;v<u.length;v++)u[v].yLabelMid!==void 0&&h.push(u[v]);for(p=!1,v=0;a&&v<f.length;v++)if(f[v].yLabelMid!==void 0){p=f[v];break}for(v=0;v<h.length;v++){var _=v&&h[v-1];p&&!v&&(_=p),b(h[v],_)}}}function lX(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a][0],i=n.trace,l=i.domain,o=r.w*(l.x[1]-l.x[0]),s=r.h*(l.y[1]-l.y[0]);i.title.text&&i.title.position!=="middle center"&&(s-=O_(n,r));var u=o/2,f=s/2;i.type==="funnelarea"&&!i.scalegroup&&(f/=i.aspectratio),n.r=Math.min(u,f)/(1+iX(i)),n.cx=r.l+r.w*(i.domain.x[1]+i.domain.x[0])/2,n.cy=r.t+r.h*(1-i.domain.y[0])-s/2,i.title.text&&i.title.position.indexOf("bottom")!==-1&&(n.cy-=O_(n,r)),i.scalegroup&&t.indexOf(i.scalegroup)===-1&&t.push(i.scalegroup)}m7e(e,t)}function m7e(e,r){for(var t,a,n,i=0;i<r.length;i++){var l=1/0,o=r[i];for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===o){var s;if(n.type==="pie")s=t.r*t.r;else if(n.type==="funnelarea"){var u,f;n.aspectratio>1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===o){var c=l*t.vTotal;n.type==="funnelarea"&&(c/=(1+n.baseratio)/2,c/=n.aspectratio),t.r=Math.sqrt(c)}}}function y7e(e){var r=e[0],t=r.r,a=r.trace,n=qr.getRotationAngle(a.rotation),i=2*Math.PI/r.vTotal,l="px0",o="px1",s,u,f;if(a.direction==="counterclockwise"){for(s=0;s<e.length&&e[s].hidden;s++);if(s===e.length)return;n+=i*e[s].v,i*=-1,l="px1",o="px0"}for(f=lg(t,n),s=0;s<e.length;s++)u=e[s],!u.hidden&&(u[l]=f,u.startangle=n,n+=i*u.v/2,u.pxmid=lg(t,n),u.midangle=n,n+=i*u.v/2,f=lg(t,n),u.stopangle=n,u[o]=f,u.largeArc=u.v>r.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=v7e(u,r))}function lg(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function oX(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),h=a.separators,p;if(p=u?[r.label]:[],f){var y=qr.getFirstFilled(n.text,r.pts);UV(y)&&p.push(y)}c&&p.push(qr.formatPieValue(r.v,h)),v&&p.push(qr.formatPiePercent(r.v/t.vTotal,h)),r.text=p.join("<br>")}function m(x){return{label:x.label,value:x.v,valueLabel:qr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:qr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:$a.castOption(n,x.i,"customdata")}}if(i){var b=$a.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=m(r),w=qr.getFirstFilled(n.text,r.pts);(UV(w)||w==="")&&(_.text=w),r.text=$a.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:b})}}}function sX(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}uX.exports={plot:s7e,formatSliceLabel:oX,transformInsideText:eX,determineInsideTextFont:jV,positionTitleOutside:nX,prerenderTitles:QV,layoutAreas:lX,attachFxHandlers:KV,computeTransform:sX}});var vX=G((kqe,cX)=>{"use strict";var fX=Er(),g7e=Qf(),b7e=ul().resizeText;cX.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");b7e(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=fX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){fX.select(this).call(g7e,o,i,r)})})}});var hX=G(Vc=>{"use strict";var dX=Jt();Vc.name="pie";Vc.plot=function(e,r,t,a){dX.plotBasePlot(Vc.name,e,r,t,a)};Vc.clean=function(e,r,t,a){dX.cleanBasePlot(Vc.name,e,r,t,a)}});var mX=G((Lqe,pX)=>{"use strict";pX.exports={attributes:eg(),supplyDefaults:rg().supplyDefaults,supplyLayoutDefaults:IV(),layoutAttributes:tg(),calc:ag().calc,crossTraceCalc:ag().crossTraceCalc,plot:B_().plot,style:vX(),styleOne:Qf(),moduleType:"trace",name:"pie",basePlotModule:hX(),categories:["pie-like","pie","showLegend"],meta:{}}});var gX=G((Sqe,yX)=>{"use strict";yX.exports=mX()});var xX=G(Xc=>{"use strict";var bX=Jt();Xc.name="funnelarea";Xc.plot=function(e,r,t,a){bX.plotBasePlot(Xc.name,e,r,t,a)};Xc.clean=function(e,r,t,a){bX.cleanBasePlot(Xc.name,e,r,t,a)}});var Y_=G((Dqe,wX)=>{"use strict";var Ja=eg(),x7e=En(),_7e=is().attributes,{hovertemplateAttrs:w7e,texttemplateAttrs:T7e,templatefallbackAttrs:_X}=Wn(),Iu=Mt().extendFlat;wX.exports={labels:Ja.labels,label0:Ja.label0,dlabel:Ja.dlabel,values:Ja.values,marker:{colors:Ja.marker.colors,line:{color:Iu({},Ja.marker.line.color,{dflt:null}),width:Iu({},Ja.marker.line.width,{dflt:1}),editType:"calc"},pattern:Ja.marker.pattern,editType:"calc"},text:Ja.text,hovertext:Ja.hovertext,scalegroup:Iu({},Ja.scalegroup,{}),textinfo:Iu({},Ja.textinfo,{flags:["label","text","value","percent"]}),texttemplate:T7e({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:_X({editType:"plot"}),hoverinfo:Iu({},x7e.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:w7e({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:_X(),textposition:Iu({},Ja.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Ja.textfont,insidetextfont:Ja.insidetextfont,title:{text:Ja.title.text,font:Ja.title.font,position:Iu({},Ja.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:_7e({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var G_=G((Eqe,TX)=>{"use strict";var M7e=tg().hiddenlabels;TX.exports={hiddenlabels:M7e,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var kX=G((Pqe,AX)=>{"use strict";var MX=qe(),A7e=Y_(),k7e=is().defaults,C7e=Rl().handleText,L7e=rg().handleLabelsAndValues,S7e=rg().handleMarkerDefaults;AX.exports=function(r,t,a,n){function i(y,m){return MX.coerce(r,t,A7e,y,m)}var l=i("labels"),o=i("values"),s=L7e(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,S7e(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate");i("texttemplatefallback");var v;if(c||(v=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||v&&v!=="none"){var h=i("textposition");C7e(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else v==="none"&&i("textposition","none");k7e(t,n,i);var p=i("title.text");p&&(i("title.position"),MX.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var LX=G((Rqe,CX)=>{"use strict";var q7e=qe(),D7e=G_();CX.exports=function(r,t){function a(n,i){return q7e.coerce(r,t,D7e,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var U_=G((zqe,qX)=>{"use strict";var SX=ag();function E7e(e,r){return SX.calc(e,r)}function P7e(e){SX.crossTraceCalc(e,{type:"funnelarea"})}qX.exports={calc:E7e,crossTraceCalc:P7e}});var zX=G((Nqe,RX)=>{"use strict";var Fu=Er(),V_=$r(),ds=qe(),R7e=ds.strScale,DX=ds.strTranslate,EX=pa(),z7e=Nc(),N7e=z7e.toMoveInsideBar,PX=ul(),I7e=PX.recordMinTextSize,F7e=PX.clearMinTextSize,H7e=Tv(),Wc=B_(),O7e=Wc.attachFxHandlers,B7e=Wc.determineInsideTextFont,Y7e=Wc.layoutAreas,G7e=Wc.prerenderTitles,U7e=Wc.positionTitleOutside,V7e=Wc.formatSliceLabel;RX.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;F7e("funnelarea",n),G7e(t,r),Y7e(t,n._size),ds.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Fu.select(this),o=i[0],s=o.trace;W7e(i),l.each(function(){var u=Fu.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,v){if(c.hidden){Fu.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var h=o.cx,p=o.cy,y=Fu.select(this),m=y.selectAll("path.surface").data([c]);m.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),y.call(O7e,r,i);var b="M"+(h+c.TR[0])+","+(p+c.TR[1])+X_(c.TR,c.BR)+X_(c.BR,c.BL)+X_(c.BL,c.TL)+"Z";m.attr("d",b),V7e(r,c,o);var _=H7e.castOption(s.textposition,c.pts),w=y.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=ds.ensureSingle(Fu.select(this),"text","",function(N){N.attr("data-notex",1)}),M=ds.ensureUniformFontSize(r,B7e(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(V_.font,M).call(EX.convertToTspans,r);var A=V_.bBox(x.node()),k,S,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+h,D=Math.min(c.TR[0],c.BR[0])+h,k=N7e(S,D,E,R,A,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=M.size,I7e(s.type,k,n),i[v].transform=k,ds.setTransormAndDisplay(x,k)})});var f=Fu.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=ds.ensureSingle(Fu.select(this),"text","",function(p){p.attr("data-notex",1)}),v=s.title.text;s._meta&&(v=ds.templateString(v,s._meta)),c.text(v).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(V_.font,s.title.font).call(EX.convertToTspans,r);var h=U7e(o,n._size);c.attr("transform",DX(h.x,h.y)+R7e(Math.min(1,h.scale))+DX(h.tx,h.ty))})})})};function X_(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function X7e(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function W7e(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var O=Math.sqrt(u);return{x:O,y:-O}}function c(){var O=f();return[O.x,O.y]}var v,h=[];h.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var m=y.v/s;u+=m,h.push(c())}var b=1/0,_=-1/0;for(p=0;p<h.length;p++)v=h[p],b=Math.min(b,v[1]),_=Math.max(_,v[1]);for(p=0;p<h.length;p++)h[p][1]-=(_+b)/2;var w=h[h.length-1][0],x=r.r,M=(_-b)/2,A=x/w,k=x/M*a;for(r.r=k*M,p=0;p<h.length;p++)h[p][0]*=A,h[p][1]*=k;v=h[0];var S=[-v[0],v[1]],D=[v[0],v[1]],E=0;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){E+=1;var R=h[E][0],N=h[E][1];y.TL=[-R,N],y.TR=[R,N],y.BL=S,y.BR=D,y.pxmid=X7e(y.TR,y.BR),S=y.TL,D=y.TR}}});var FX=G((Iqe,IX)=>{"use strict";var NX=Er(),Z7e=Qf(),$7e=ul().resizeText;IX.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");$7e(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=NX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){NX.select(this).call(Z7e,o,i,r)})})}});var OX=G((Fqe,HX)=>{"use strict";HX.exports={moduleType:"trace",name:"funnelarea",basePlotModule:xX(),categories:["pie-like","funnelarea","showLegend"],attributes:Y_(),layoutAttributes:G_(),supplyDefaults:kX(),supplyLayoutDefaults:LX(),calc:U_().calc,crossTraceCalc:U_().crossTraceCalc,plot:zX(),style:FX(),styleOne:Qf(),meta:{}}});var YX=G((Hqe,BX)=>{"use strict";BX.exports=OX()});var UX=G(Zc=>{"use strict";var GX=Jt();Zc.name="indicator";Zc.plot=function(e,r,t,a){GX.plotBasePlot(Zc.name,e,r,t,a)};Zc.clean=function(e,r,t,a){GX.cleanBasePlot(Zc.name,e,r,t,a)}});var Z_=G((Bqe,JX)=>{"use strict";var hs=Mt().extendFlat,XX=Mt().extendDeep,J7e=Bi().overrideAll,WX=_a(),ZX=vi(),K7e=is().attributes,Zt=Jn(),j7e=mt().templatedArray,og=(Yc(),Ne(Bc)),VX=Xi().descriptionOnlyNumbers,W_=WX({editType:"plot",colorEditType:"plot"}),Hd={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:ZX.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},$X={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},Q7e=j7e("step",XX({},Hd,{range:$X}));JX.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:K7e({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:hs({},W_,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:VX("value")},font:hs({},W_,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:VX("value")},increasing:{symbol:{valType:"string",dflt:og.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:og.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:og.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:og.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:hs({},W_,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:XX({},Hd,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:ZX.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:J7e({range:$X,visible:hs({},Zt.visible,{dflt:!0}),tickmode:Zt.minor.tickmode,nticks:Zt.nticks,tick0:Zt.tick0,dtick:Zt.dtick,tickvals:Zt.tickvals,ticktext:Zt.ticktext,ticks:hs({},Zt.ticks,{dflt:"outside"}),ticklen:Zt.ticklen,tickwidth:Zt.tickwidth,tickcolor:Zt.tickcolor,ticklabelstep:Zt.ticklabelstep,showticklabels:Zt.showticklabels,labelalias:Zt.labelalias,tickfont:WX({}),tickangle:Zt.tickangle,tickformat:Zt.tickformat,tickformatstops:Zt.tickformatstops,tickprefix:Zt.tickprefix,showtickprefix:Zt.showtickprefix,ticksuffix:Zt.ticksuffix,showticksuffix:Zt.showticksuffix,separatethousands:Zt.separatethousands,exponentformat:Zt.exponentformat,minexponent:Zt.minexponent,showexponent:Zt.showexponent,editType:"plot"},"plot"),steps:Q7e,threshold:{line:{color:hs({},Hd.line.color,{}),width:hs({},Hd.line.width,{dflt:1}),editType:"plot"},thickness:hs({},Hd.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var $_={};ht($_,{bulletNumberDomainSize:()=>r9e,bulletPadding:()=>t9e,defaultNumberFontSize:()=>e9e,horizontalPadding:()=>l9e,innerRadius:()=>a9e,titlePadding:()=>i9e,valueThickness:()=>n9e});var e9e,r9e,t9e,a9e,n9e,i9e,l9e,J_=lt(()=>{"use strict";e9e=80,r9e=.25,t9e=.025,a9e=.75,n9e=.5,i9e=5,l9e=10});var QX=G((Yqe,jX)=>{"use strict";var zl=qe(),ug=Z_(),o9e=is().defaults,KX=mt(),s9e=mi(),sg=(J_(),Ne($_)),u9e=B1(),f9e=Y1(),c9e=U1(),v9e=V1();function d9e(e,r,t,a){function n(A,k){return zl.coerce(e,r,ug,A,k)}o9e(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=zl.extendFlat({},a.font);s.size=void 0,zl.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=sg.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=zl.extendFlat({},a.font);f.size=void 0,zl.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||sg.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=zl.extendFlat({},a.font);c.size=.25*(o||u||sg.defaultNumberFontSize),zl.coerceFont(n,"title.font",c),n("title.text");var v,h,p,y;function m(A,k){return zl.coerce(v,h,ug.gauge,A,k)}function b(A,k){return zl.coerce(p,y,ug.gauge.axis,A,k)}if(r._hasGauge){v=e.gauge,v||(v={}),h=KX.newContainer(r,"gauge"),m("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),m("bgcolor",a.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var x=sg.valueThickness*(r.gauge.shape==="bullet"?.5:1);m("bar.thickness",x),s9e(v,h,{name:"steps",handleItemDefaults:h9e}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),p={},v&&(p=v.axis||{}),y=KX.newContainer(h,"axis"),b("visible"),r._range=b("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};u9e(p,y,b,"linear"),v9e(p,y,b,"linear",M),c9e(p,y,b,"linear",M),f9e(p,y,b,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function h9e(e,r){function t(a,n){return zl.coerce(e,r,ug.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}jX.exports={supplyDefaults:d9e}});var rW=G((Gqe,eW)=>{"use strict";function p9e(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}eW.exports={calc:p9e}});function mo(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function ps(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var fg=lt(()=>{});function Il(){}function aW(){return this.rgb().formatHex()}function T9e(){return this.rgb().formatHex8()}function M9e(){return fW(this).formatHsl()}function nW(){return this.rgb().formatRgb()}function ys(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=m9e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?iW(r):t===3?new qa(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?cg(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?cg(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=y9e.exec(e))?new qa(r[1],r[2],r[3],1):(r=g9e.exec(e))?new qa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=b9e.exec(e))?cg(r[1],r[2],r[3],r[4]):(r=x9e.exec(e))?cg(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=_9e.exec(e))?sW(r[1],r[2]/100,r[3]/100,1):(r=w9e.exec(e))?sW(r[1],r[2]/100,r[3]/100,r[4]):tW.hasOwnProperty(e)?iW(tW[e]):e==="transparent"?new qa(NaN,NaN,NaN,0):null}function iW(e){return new qa(e>>16&255,e>>8&255,e&255,1)}function cg(e,r,t,a){return a<=0&&(e=r=t=NaN),new qa(e,r,t,a)}function Bd(e){return e instanceof Il||(e=ys(e)),e?(e=e.rgb(),new qa(e.r,e.g,e.b,e.opacity)):new qa}function Jc(e,r,t,a){return arguments.length===1?Bd(e):new qa(e,r,t,a==null?1:a)}function qa(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function lW(){return`#${Hu(this.r)}${Hu(this.g)}${Hu(this.b)}`}function A9e(){return`#${Hu(this.r)}${Hu(this.g)}${Hu(this.b)}${Hu((isNaN(this.opacity)?1:this.opacity)*255)}`}function oW(){let e=dg(this.opacity);return`${e===1?"rgb(":"rgba("}${Ou(this.r)}, ${Ou(this.g)}, ${Ou(this.b)}${e===1?")":`, ${e})`}`}function dg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ou(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hu(e){return e=Ou(e),(e<16?"0":"")+e.toString(16)}function sW(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new cl(e,r,t,a)}function fW(e){if(e instanceof cl)return new cl(e.h,e.s,e.l,e.opacity);if(e instanceof Il||(e=ys(e)),!e)return new cl;if(e instanceof cl)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t<a)*6:t===i?l=(a-r)/o+2:l=(r-t)/o+4,o/=s<.5?i+n:2-i-n,l*=60):o=s>0&&s<1?0:l,new cl(l,o,s,e.opacity)}function Yd(e,r,t,a){return arguments.length===1?fW(e):new cl(e,r,t,a==null?1:a)}function cl(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function uW(e){return e=(e||0)%360,e<0?e+360:e}function vg(e){return Math.max(0,Math.min(1,e||0))}function K_(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var ms,Bu,$c,Od,Nl,m9e,y9e,g9e,b9e,x9e,_9e,w9e,tW,hg=lt(()=>{fg();ms=.7,Bu=1/ms,$c="\\s*([+-]?\\d+)\\s*",Od="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m9e=/^#([0-9a-f]{3,8})$/,y9e=new RegExp(`^rgb\\(${$c},${$c},${$c}\\)$`),g9e=new RegExp(`^rgb\\(${Nl},${Nl},${Nl}\\)$`),b9e=new RegExp(`^rgba\\(${$c},${$c},${$c},${Od}\\)$`),x9e=new RegExp(`^rgba\\(${Nl},${Nl},${Nl},${Od}\\)$`),_9e=new RegExp(`^hsl\\(${Od},${Nl},${Nl}\\)$`),w9e=new RegExp(`^hsla\\(${Od},${Nl},${Nl},${Od}\\)$`),tW={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};mo(Il,ys,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aW,formatHex:aW,formatHex8:T9e,formatHsl:M9e,formatRgb:nW,toString:nW});mo(qa,Jc,ps(Il,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new qa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ms:Math.pow(ms,e),new qa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qa(Ou(this.r),Ou(this.g),Ou(this.b),dg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lW,formatHex:lW,formatHex8:A9e,formatRgb:oW,toString:oW}));mo(cl,Yd,ps(Il,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new cl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ms:Math.pow(ms,e),new cl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new qa(K_(e>=240?e-240:e+120,n,a),K_(e,n,a),K_(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new cl(uW(this.h),vg(this.s),vg(this.l),dg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=dg(this.opacity);return`${e===1?"hsl(":"hsla("}${uW(this.h)}, ${vg(this.s)*100}%, ${vg(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var pg,mg,j_=lt(()=>{pg=Math.PI/180,mg=180/Math.PI});function mW(e){if(e instanceof Fl)return new Fl(e.l,e.a,e.b,e.opacity);if(e instanceof yo)return yW(e);e instanceof qa||(e=Bd(e));var r=t7(e.r),t=t7(e.g),a=t7(e.b),n=Q_((.2225045*r+.7168786*t+.0606169*a)/vW),i,l;return r===t&&t===a?i=l=n:(i=Q_((.4360747*r+.3850649*t+.1430804*a)/cW),l=Q_((.0139322*r+.0971045*t+.7141733*a)/dW)),new Fl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function jc(e,r,t,a){return arguments.length===1?mW(e):new Fl(e,r,t,a==null?1:a)}function Fl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function Q_(e){return e>k9e?Math.pow(e,1/3):e/pW+hW}function e7(e){return e>Kc?e*e*e:pW*(e-hW)}function r7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function t7(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function C9e(e){if(e instanceof yo)return new yo(e.h,e.c,e.l,e.opacity);if(e instanceof Fl||(e=mW(e)),e.a===0&&e.b===0)return new yo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*mg;return new yo(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Gd(e,r,t,a){return arguments.length===1?C9e(e):new yo(e,r,t,a==null?1:a)}function yo(e,r,t,a){this.h=+e,this.c=+r,this.l=+t,this.opacity=+a}function yW(e){if(isNaN(e.h))return new Fl(e.l,0,0,e.opacity);var r=e.h*pg;return new Fl(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}var yg,cW,vW,dW,hW,Kc,pW,k9e,gW=lt(()=>{fg();hg();j_();yg=18,cW=.96422,vW=1,dW=.82521,hW=4/29,Kc=6/29,pW=3*Kc*Kc,k9e=Kc*Kc*Kc;mo(Fl,jc,ps(Il,{brighter(e){return new Fl(this.l+yg*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Fl(this.l-yg*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=cW*e7(r),e=vW*e7(e),t=dW*e7(t),new qa(r7(3.1338561*r-1.6168667*e-.4906146*t),r7(-.9787684*r+1.9161415*e+.033454*t),r7(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));mo(yo,Gd,ps(Il,{brighter(e){return new yo(this.h,this.c,this.l+yg*(e==null?1:e),this.opacity)},darker(e){return new yo(this.h,this.c,this.l-yg*(e==null?1:e),this.opacity)},rgb(){return yW(this).rgb()}}))});function L9e(e){if(e instanceof Yu)return new Yu(e.h,e.s,e.l,e.opacity);e instanceof qa||(e=Bd(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(_W*a+bW*r-xW*t)/(_W+bW-xW),i=a-n,l=(Ud*(t-n)-n7*i)/gg,o=Math.sqrt(l*l+i*i)/(Ud*n*(1-n)),s=o?Math.atan2(l,i)*mg-120:NaN;return new Yu(s<0?s+360:s,o,n,e.opacity)}function Qc(e,r,t,a){return arguments.length===1?L9e(e):new Yu(e,r,t,a==null?1:a)}function Yu(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var wW,a7,n7,gg,Ud,bW,xW,_W,TW=lt(()=>{fg();hg();j_();wW=-.14861,a7=1.78277,n7=-.29227,gg=-.90649,Ud=1.97294,bW=Ud*gg,xW=Ud*a7,_W=a7*n7-gg*wW;mo(Yu,Qc,ps(Il,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Yu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ms:Math.pow(ms,e),new Yu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*pg,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new qa(255*(r+t*(wW*a+a7*n)),255*(r+t*(n7*a+gg*n)),255*(r+t*(Ud*a)),this.opacity)}}))});var MW=lt(()=>{hg();gW();TW()});var f7={};ht(f7,{interpolate:()=>wg,interpolateArray:()=>P9e,interpolateBasis:()=>LW,interpolateBasisClosed:()=>SW,interpolateCubehelix:()=>j9e,interpolateCubehelixLong:()=>Q9e,interpolateDate:()=>RW,interpolateDiscrete:()=>N9e,interpolateHcl:()=>J9e,interpolateHclLong:()=>K9e,interpolateHsl:()=>W9e,interpolateHslLong:()=>Z9e,interpolateHue:()=>I9e,interpolateLab:()=>$9e,interpolateNumber:()=>Hl,interpolateNumberArray:()=>u7,interpolateObject:()=>zW,interpolateRgb:()=>l7,interpolateRgbBasis:()=>D9e,interpolateRgbBasisClosed:()=>E9e,interpolateRound:()=>F9e,interpolateString:()=>NW,interpolateTransformCss:()=>B9e,interpolateTransformSvg:()=>Y9e,interpolateZoom:()=>X9e,piecewise:()=>e8e,quantize:()=>r8e});function CW(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function LW(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a<r-1?e[a+2]:2*i-n;return CW((t-a/r)*r,l,n,i,o)}}function SW(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return CW((t-a/r)*r,n,i,l,o)}}function qW(e,r){return function(t){return e+t*r}}function S9e(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function _g(e,r){var t=r-e;return t?qW(e,t>180||t<-180?t-360*Math.round(t/360):t):xg(isNaN(e)?r:e)}function q9e(e){return(e=+e)==1?Ka:function(r,t){return t-r?S9e(r,t,e):xg(isNaN(r)?t:r)}}function Ka(e,r){var t=r-e;return t?qW(e,t):xg(isNaN(e)?r:e)}function DW(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l<t;++l)o=Jc(r[l]),a[l]=o.r||0,n[l]=o.g||0,i[l]=o.b||0;return a=e(a),n=e(n),i=e(i),o.opacity=1,function(s){return o.r=a(s),o.g=n(s),o.b=i(s),o+""}}}function u7(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n<t;++n)a[n]=e[n]*(1-i)+r[n]*i;return a}}function EW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function P9e(e,r){return(EW(r)?u7:PW)(e,r)}function PW(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l<a;++l)n[l]=wg(e[l],r[l]);for(;l<t;++l)i[l]=r[l];return function(o){for(l=0;l<a;++l)i[l]=n[l](o);return i}}function RW(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}function Hl(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function zW(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=wg(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}function R9e(e){return function(){return e}}function z9e(e){return function(r){return e(r)+""}}function NW(e,r){var t=o7.lastIndex=i7.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=o7.exec(e))&&(n=i7.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:Hl(a,n)})),t=i7.lastIndex;return t<r.length&&(i=r.slice(t),o[l]?o[l]+=i:o[++l]=i),o.length<2?s[0]?z9e(s[0].x):R9e(r):(r=s.length,function(u){for(var f=0,c;f<r;++f)o[(c=s[f]).i]=c.x(u);return o.join("")})}function wg(e,r){var t=typeof r,a;return r==null||t==="boolean"?xg(r):(t==="number"?Hl:t==="string"?(a=ys(r))?(r=a,l7):NW:r instanceof ys?l7:r instanceof Date?RW:EW(r)?u7:Array.isArray(r)?PW:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?zW:Hl)(e,r)}function N9e(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}function I9e(e,r){var t=_g(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}function F9e(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function IW(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a<r*t&&(e=-e,r=-r,s=-s,l=-l),{translateX:n,translateY:i,rotate:Math.atan2(r,e)*AW,skewX:Math.atan(s)*AW,scaleX:l,scaleY:o}}function H9e(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?s7:IW(r.a,r.b,r.c,r.d,r.e,r.f)}function O9e(e){return e==null||(bg||(bg=document.createElementNS("http://www.w3.org/2000/svg","g")),bg.setAttribute("transform",e),!(e=bg.transform.baseVal.consolidate()))?s7:(e=e.matrix,IW(e.a,e.b,e.c,e.d,e.e,e.f))}function FW(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,v,h,p){if(u!==c||f!==v){var y=h.push("translate(",null,r,null,t);p.push({i:y-4,x:Hl(u,c)},{i:y-2,x:Hl(f,v)})}else(c||v)&&h.push("translate("+c+r+v+t)}function l(u,f,c,v){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),v.push({i:c.push(n(c)+"rotate(",null,a)-2,x:Hl(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,v){u!==f?v.push({i:c.push(n(c)+"skewX(",null,a)-2,x:Hl(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,v,h,p){if(u!==c||f!==v){var y=h.push(n(h)+"scale(",null,",",null,")");p.push({i:y-4,x:Hl(u,c)},{i:y-2,x:Hl(f,v)})}else(c!==1||v!==1)&&h.push(n(h)+"scale("+c+","+v+")")}return function(u,f){var c=[],v=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,v),l(u.rotate,f.rotate,c,v),o(u.skewX,f.skewX,c,v),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,v),u=f=null,function(h){for(var p=-1,y=v.length,m;++p<y;)c[(m=v[p]).i]=m.x(h);return c.join("")}}}function kW(e){return((e=Math.exp(e))+1/e)/2}function U9e(e){return((e=Math.exp(e))-1/e)/2}function V9e(e){return((e=Math.exp(2*e))-1)/(e+1)}function HW(e){return function(r,t){var a=e((r=Yd(r)).h,(t=Yd(t)).h),n=Ka(r.s,t.s),i=Ka(r.l,t.l),l=Ka(r.opacity,t.opacity);return function(o){return r.h=a(o),r.s=n(o),r.l=i(o),r.opacity=l(o),r+""}}}function $9e(e,r){var t=Ka((e=jc(e)).l,(r=jc(r)).l),a=Ka(e.a,r.a),n=Ka(e.b,r.b),i=Ka(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}function OW(e){return function(r,t){var a=e((r=Gd(r)).h,(t=Gd(t)).h),n=Ka(r.c,t.c),i=Ka(r.l,t.l),l=Ka(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}function BW(e){return(function r(t){t=+t;function a(n,i){var l=e((n=Qc(n)).h,(i=Qc(i)).h),o=Ka(n.s,i.s),s=Ka(n.l,i.l),u=Ka(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a})(1)}function e8e(e,r){r===void 0&&(r=e,e=wg);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t<a;)i[t]=e(n,n=r[++t]);return function(l){var o=Math.max(0,Math.min(a-1,Math.floor(l*=a)));return i[o](l-o)}}function r8e(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e(a/(r-1));return t}var xg,l7,D9e,E9e,o7,i7,AW,s7,bg,B9e,Y9e,G9e,X9e,W9e,Z9e,J9e,K9e,j9e,Q9e,c7=lt(()=>{MW();xg=e=>()=>e;l7=(function e(r){var t=q9e(r);function a(n,i){var l=t((n=Jc(n)).r,(i=Jc(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Ka(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a})(1);D9e=DW(LW),E9e=DW(SW);o7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i7=new RegExp(o7.source,"g");AW=180/Math.PI,s7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};B9e=FW(H9e,"px, ","px)","deg)"),Y9e=FW(O9e,", ",")",")"),G9e=1e-12;X9e=(function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],v=l[2],h=f-o,p=c-s,y=h*h+p*p,m,b;if(y<G9e)b=Math.log(v/u)/r,m=function(k){return[o+k*h,s+k*p,u*Math.exp(r*k*b)]};else{var _=Math.sqrt(y),w=(v*v-u*u+a*y)/(2*u*t*_),x=(v*v-u*u-a*y)/(2*v*t*_),M=Math.log(Math.sqrt(w*w+1)-w),A=Math.log(Math.sqrt(x*x+1)-x);b=(A-M)/r,m=function(k){var S=k*b,D=kW(M),E=u/(t*_)*(D*V9e(r*S+M)-U9e(M));return[o+E*h,s+E*p,u*D/kW(r*S+M)]}}return m.duration=Math.abs(b)*1e3*r/Math.SQRT2,m}return n.rho=function(i){var l=Math.max(.001,+i),o=l*l,s=o*o;return e(l,o,s)},n})(Math.SQRT2,2,4);W9e=HW(_g),Z9e=HW(Ka);J9e=OW(_g),K9e=OW(Ka);j9e=BW(_g),Q9e=BW(Ka)});var WW=G((uDe,XW)=>{"use strict";var Wu=Er(),t8e=(c7(),Ne(f7)).interpolate,YW=(c7(),Ne(f7)).interpolateNumber,gs=qe(),a8e=gs.strScale,Xd=gs.strTranslate,n8e=gs.rad2deg,i8e=(Va(),Ne(Ua)).MID_SHIFT,Xu=$r(),Gu=(J_(),Ne($_)),Mg=pa(),ja=Qr(),l8e=ty(),o8e=ny(),s8e=Jn(),e0=kr(),v7={left:"start",center:"middle",right:"end"},Uu={left:0,center:.5,right:1},GW=/[yzafpnµmkMGTPEZY]/;function Wd(e){return e&&e.duration>0}XW.exports=function(r,t,a,n){var i=r._fullLayout,l;Wd(a)&&n&&(l=n()),gs.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Wu.select(this),c=u._hasGauge,v=u._isAngular,h=u._isBullet,p=u.domain,y={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},m=y.l+y.w/2,b=y.t+y.h/2,_=Math.min(y.w/2,y.h),w=Gu.innerRadius*_,x,M,A,k=u.align||"center";if(M=b,!c)x=y.l+Uu[k]*y.w,A=function(B){return UW(B,y.w,y.h)};else if(v&&(x=m,M=b+_/2,A=function(B){return d8e(B,.9*w)}),h){var S=Gu.bulletPadding,D=1-Gu.bulletNumberDomainSize+S;x=y.l+(D+(1-D)*Uu[k])*y.w,A=function(B){return UW(B,(Gu.bulletNumberDomainSize-S)*y.w,y.h)}}c8e(r,f,o,{numbersX:x,numbersY:M,numbersScaler:A,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(v?o:[]);N.exit().remove();var O=f.selectAll("g.angularaxis").data(v?o:[]);O.exit().remove(),v&&f8e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:O,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var F=f.selectAll("g.bullet").data(h?o:[]);F.exit().remove();var I=f.selectAll("g.bulletaxis").data(h?o:[]);I.exit().remove(),h&&u8e(r,f,o,{gauge:F,layer:I,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var Y=f.selectAll("text.title").data(o);Y.exit().remove(),Y.enter().append("text").classed("title",!0),Y.attr("text-anchor",function(){return h?v7.right:v7[u.title.align]}).text(u.title.text).call(Xu.font,u.title.font).call(Mg.convertToTspans,r),Y.attr("transform",function(){var B=y.l+y.w*Uu[u.title.align],U,X=Gu.titlePadding,W=Xu.bBox(Y.node());if(c){if(v)if(u.gauge.axis.visible){var V=Xu.bBox(O.node());U=V.top-X-W.bottom}else U=y.t+y.h/2-_/2-W.bottom-X;h&&(U=M-(W.top+W.bottom)/2,B=y.l-Gu.bulletPadding*y.w)}else U=u._numbersTop-X-W.bottom;return Xd(B,U)})})};function u8e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,v=a.onComplete,h,p,y,m,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",Xd(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Gu.bulletNumberDomainSize:1);h=Vd(e,n.gauge.axis),h._id="xbulletaxis",h.domain=[x,M],h.setScale(),p=ja.calcTicks(h),y=ja.makeTransTickFn(h),m=ja.getTickSigns(h)[2],b=u.t+u.h,h.visible&&(ja.drawTicks(e,h,{vals:h.ticks==="inside"?ja.clipEnds(h,p):p,layer:l,path:ja.makeTickPath(h,b,m),transFn:y}),ja.drawLabels(e,h,{vals:p,layer:l,transFn:y,labelFns:ja.makeLabelFns(h,b)}));function A(O){O.attr("width",function(F){return Math.max(0,h.c2p(F.range[1])-h.c2p(F.range[0]))}).attr("x",function(F){return h.c2p(F.range[0])}).attr("y",function(F){return .5*(1-F.thickness)*_}).attr("height",function(F){return F.thickness*_})}var k=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(k);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(A).call(Vu),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Vu),Wd(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attr("width",Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",h.c2p(n.gauge.threshold.value)).attr("x2",h.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(e0.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(A).call(Vu),N.exit().remove()}function f8e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,v=a.layer,h=a.transitionOpts,p=a.onComplete,y=Math.PI/2;function m(J){var re=n.gauge.axis.range[0],ne=n.gauge.axis.range[1],de=(J-re)/(ne-re)*Math.PI-y;return de<-y?-y:de>y?y:de}function b(J){return Wu.svg.arc().innerRadius((o+l)/2-J/2*(l-o)).outerRadius((o+l)/2+J/2*(l-o)).startAngle(-y)}function _(J){J.attr("d",function(re){return b(re.thickness).startAngle(m(re.range[0])).endAngle(m(re.range[1]))()})}var w,x,M,A;c.enter().append("g").classed("angular",!0),c.attr("transform",Xd(f[0],f[1])),v.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),v.selectAll("g.xangularaxistick,path,text").remove(),w=Vd(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var k=function(J){return(w.range[0]-J.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=ja.makeLabelFns(w,0),E=D.labelStandoff;S.xFn=function(J){var re=k(J);return Math.cos(re)*E},S.yFn=function(J){var re=k(J),ne=Math.sin(re)>0?.2:1;return-Math.sin(re)*(E+J.fontSize*ne)+Math.abs(Math.cos(re))*(J.fontSize*i8e)},S.anchorFn=function(J){var re=k(J),ne=Math.cos(re);return Math.abs(ne)<.1?"middle":ne>0?"start":"end"},S.heightFn=function(J,re,ne){var de=k(J);return-.5*(1+Math.sin(de))*ne};var R=function(J){return Xd(f[0]+l*Math.cos(J),f[1]-l*Math.sin(J))};M=function(J){return R(k(J))};var N=function(J){var re=k(J);return R(re)+"rotate("+-n8e(re)+")"};if(x=ja.calcTicks(w),A=ja.getTickSigns(w)[2],w.visible){A=w.ticks==="inside"?-1:1;var O=(w.linewidth||1)/2;ja.drawTicks(e,w,{vals:x,layer:v,path:"M"+A*O+",0h"+A*w.ticklen,transFn:N}),ja.drawLabels(e,w,{vals:x,layer:v,transFn:M,labelFns:S})}var F=[s].concat(n.gauge.steps),I=c.selectAll("g.bg-arc").data(F);I.enter().append("g").classed("bg-arc",!0).append("path"),I.select("path").call(_).call(Vu),I.exit().remove();var Y=b(n.gauge.bar.thickness),B=c.selectAll("g.value-arc").data([n.gauge.bar]);B.enter().append("g").classed("value-arc",!0).append("path");var U=B.select("path");Wd(h)?(U.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",v8e(Y,m(t[0].lastY),m(t[0].y))),n._lastValue=t[0].y):U.attr("d",typeof t[0].y=="number"?Y.endAngle(m(t[0].y)):"M0,0Z"),U.call(Vu),B.exit().remove(),F=[];var X=n.gauge.threshold.value;(X||X===0)&&F.push({range:[X,X],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var W=c.selectAll("g.threshold-arc").data(F);W.enter().append("g").classed("threshold-arc",!0).append("path"),W.select("path").call(_).call(Vu),W.exit().remove();var V=c.selectAll("g.gauge-outline").data([u]);V.enter().append("g").classed("gauge-outline",!0).append("path"),V.select("path").call(_).call(Vu),V.exit().remove()}function c8e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=v7[o],u=a.transitionOpts,f=a.onComplete,c=gs.ensureSingle(r,"g","numbers"),v,h,p,y=[];n._hasNumber&&y.push("number"),n._hasDelta&&(y.push("delta"),n.delta.position==="left"&&y.reverse());var m=c.selectAll("text").data(y);m.enter().append("text"),m.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function b(R,N,O,F){if(R.match("s")&&O>=0!=F>=0&&!N(O).slice(-1).match(GW)&&!N(F).slice(-1).match(GW)){var I=R.slice().replace("s","f").replace(/\d+/,function(B){return parseInt(B)-1}),Y=Vd(e,{tickformat:I});return function(B){return Math.abs(B)<1?ja.tickText(Y,B).text:N(B)}}else return N}function _(){var R=Vd(e,{tickformat:n.number.valueformat},n._range);R.setScale(),ja.prepTicks(R);var N=function(B){return ja.tickText(R,B).text},O=n.number.suffix,F=n.number.prefix,I=c.select("text.number");function Y(){var B=typeof t[0].y=="number"?F+N(t[0].y)+O:"-";I.text(B).call(Xu.font,n.number.font).call(Mg.convertToTspans,e)}return Wd(u)?I.transition().duration(u.duration).ease(u.easing).each("end",function(){Y(),f&&f()}).each("interrupt",function(){Y(),f&&f()}).attrTween("text",function(){var B=Wu.select(this),U=YW(t[0].lastY,t[0].y);n._lastValue=t[0].y;var X=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(W){B.text(F+X(U(W))+O)}}):Y(),v=VW(F+N(t[0].y)+O,n.number.font,s,e),I}function w(){var R=Vd(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),ja.prepTicks(R);var N=function(W){return ja.tickText(R,W).text},O=n.delta.suffix,F=n.delta.prefix,I=function(W){var V=n.delta.relative?W.relativeDelta:W.delta;return V},Y=function(W,V){return W===0||typeof W!="number"||isNaN(W)?"-":(W>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+F+V(W)+O},B=function(W){return W.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=I(t[0]));var U=c.select("text.delta");U.call(Xu.font,n.delta.font).call(e0.fill,B({delta:n._deltaLastValue}));function X(){U.text(Y(I(t[0]),N)).call(e0.fill,B(t[0])).call(Mg.convertToTspans,e)}return Wd(u)?U.transition().duration(u.duration).ease(u.easing).tween("text",function(){var W=Wu.select(this),V=I(t[0]),J=n._deltaLastValue,re=b(n.delta.valueformat,N,J,V),ne=YW(J,V);return n._deltaLastValue=V,function(de){W.text(Y(ne(de),re)),W.call(e0.fill,B({delta:ne(de)}))}}).each("end",function(){X(),f&&f()}).each("interrupt",function(){X(),f&&f()}):X(),h=VW(Y(I(t[0]),N),n.delta.font,s,e),U}var x=n.mode+n.align,M;if(n._hasDelta&&(M=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=h),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=v),n._hasDelta&&n._hasNumber){var A=[(v.left+v.right)/2,(v.top+v.bottom)/2],k=[(h.left+h.right)/2,(h.top+h.bottom)/2],S,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(S=Tg(n,"deltaPos",0,-1*(v.width*Uu[n.align]+h.width*(1-Uu[n.align])+E),x,Math.min),D=A[1]-k[1],p={width:v.width+h.width+E,height:Math.max(v.height,h.height),left:h.left+S,right:v.right,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="right"&&(S=Tg(n,"deltaPos",0,v.width*(1-Uu[n.align])+h.width*Uu[n.align]+E,x,Math.max),D=A[1]-k[1],p={width:v.width+h.width+E,height:Math.max(v.height,h.height),left:v.left,right:h.right+S,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=h.height,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height,bottom:v.bottom+h.height}),n.delta.position==="top"&&(S=null,D=v.top,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height-h.height,bottom:v.bottom}),M.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Tg(n,"numbersScale",1,R[0],x,Math.min),O;n._scaleNumbers||(N=1),n._isAngular?O=l-N*p.bottom:O=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+O;var F=p[o];o==="center"&&(F=(p.left+p.right)/2);var I=i-N*F;return I=Tg(n,"numbersTranslate",0,I,x,Math.max),Xd(I,O)+a8e(N)})}function Vu(e){e.each(function(r){e0.stroke(Wu.select(this),r.line.color)}).each(function(r){e0.fill(Wu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function v8e(e,r,t){return function(){var a=t8e(r,t);return function(n){return e.endAngle(a(n))()}}}function Vd(e,r,t){var a=e._fullLayout,n=gs.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return gs.coerce(n,i,s8e,s,u)}return l8e(n,i,o,l,a),o8e(n,i,o,l),i}function UW(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function d8e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function VW(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Wu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Mg.convertToTspans,a).call(Xu.font,r),Xu.bBox(i.node())}function Tg(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=gs.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var $W=G((fDe,ZW)=>{"use strict";ZW.exports={moduleType:"trace",name:"indicator",basePlotModule:UX(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:Z_(),supplyDefaults:QX().supplyDefaults,calc:rW().calc,plot:WW(),meta:{}}});var KW=G((cDe,JW)=>{"use strict";JW.exports=$W()});var kg=G((vDe,tZ)=>{"use strict";var Ag=qe().extendFlat,Zd=ji(),jW=Xi().axisHoverFormat,{hovertemplateAttrs:h8e,templatefallbackAttrs:p8e}=Wn(),eZ=Yi().dash,m8e=S0(),rZ=(Yc(),Ne(Bc)),y8e=rZ.INCREASING.COLOR,g8e=rZ.DECREASING.COLOR,d7=Zd.line;function QW(e){return{line:{color:Ag({},d7.color,{dflt:e}),width:d7.width,dash:eZ,editType:"style"},editType:"style"}}tZ.exports={xperiod:Zd.xperiod,xperiod0:Zd.xperiod0,xperiodalignment:Zd.xperiodalignment,xhoverformat:jW("x"),yhoverformat:jW("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:Ag({},d7.width,{}),dash:Ag({},eZ,{}),editType:"style"},increasing:QW(y8e),decreasing:QW(g8e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:h8e({},{keys:["open","high","low","close"]}),hovertemplatefallback:p8e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Ag({},m8e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:Zd.zorder}});var h7=G((dDe,aZ)=>{"use strict";var b8e=Ar(),x8e=qe();aZ.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=b8e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,x8e.minRowLength(i))),t._length=c,c}}});var lZ=G((hDe,iZ)=>{"use strict";var _8e=qe(),w8e=h7(),T8e=Tu(),M8e=kg();iZ.exports=function(r,t,a,n){function i(o,s){return _8e.coerce(r,t,M8e,o,s)}var l=w8e(r,t,i,n);if(!l){t.visible=!1;return}T8e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),nZ(r,t,i,"increasing"),nZ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function nZ(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var p7=G((pDe,sZ)=>{"use strict";var r0=qe(),Cg=r0._,Lg=Qr(),A8e=Mu(),$d=(Et(),Ne(It)).BADNUM;function k8e(e,r){var t=Lg.getFromId(e,r.xaxis),a=Lg.getFromId(e,r.yaxis),n=L8e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=oZ(e,r,l,o,a,C8e);return r._extremes[t._id]=Lg.findExtremes(t,o,{vpad:i/2}),s.length?(r0.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function C8e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function oZ(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=r0.isArrayOrTypedArray(r.text),c=r0.isArrayOrTypedArray(r.hovertext),v=!0,h=null,p=!!r.xperiodalignment,y=[],m=0;m<a.length;m++){var b=a[m],_=l[m],w=o[m],x=s[m],M=u[m];if(b!==$d&&_!==$d&&w!==$d&&x!==$d&&M!==$d){M===_?h!==null&&M!==h&&(v=M>h):v=M>_,h=M;var A=i(_,w,x,M);A.pos=b,A.yc=(_+M)/2,A.i=m,A.dir=v?"increasing":"decreasing",A.x=A.pos,A.y=[x,w],p&&(A.orig_p=t[m]),f&&(A.tx=r.text[m]),c&&(A.htx=r.hovertext[m]),y.push(A)}else y.push({pos:b,empty:!0})}return r._extremes[n._id]=Lg.findExtremes(n,r0.concat(s,o),{padded:!0}),y.length&&(y[0].t={labels:{open:Cg(e,"open:")+" ",high:Cg(e,"high:")+" ",low:Cg(e,"low:")+" ",close:Cg(e,"close:")+" "}}),y}function L8e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l<n.length;l++){var o=n[l];if(o.type==="ohlc"&&o.visible===!0&&o.xaxis===r._id){i.push(o);var s=r.makeCalcdata(o,"x");o._origX=s;var u=A8e(t,r,"x",s).vals;o._xcalc=u;var f=r0.distinctVals(u).minDiff;f&&isFinite(f)&&(a=Math.min(a,f))}}for(a===1/0&&(a=1),l=0;l<i.length;l++)i[l]._minDiff=a}return a*t.tickwidth}sZ.exports={calc:k8e,calcCommon:oZ}});var cZ=G((mDe,fZ)=>{"use strict";var S8e=Er(),uZ=qe();fZ.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;uZ.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=S8e.select(this),f=s[0],c=f.t,v=f.trace;if(v.visible!==!0||c.empty){u.remove();return}var h=c.tickLen,p=u.selectAll("path").data(uZ.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var m=l.c2p(y.pos-h,!0),b=l.c2p(y.pos+h,!0),_=o?(m+b)/2:l.c2p(y.pos,!0),w=i.c2p(y.o,!0),x=i.c2p(y.h,!0),M=i.c2p(y.l,!0),A=i.c2p(y.c,!0);return"M"+m+","+w+"H"+_+"M"+_+","+x+"V"+M+"M"+b+","+A+"H"+_})})}});var dZ=G((yDe,vZ)=>{"use strict";var m7=Er(),q8e=$r(),D8e=kr();vZ.exports=function(r,t,a){var n=a||m7.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;m7.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;m7.select(this).style("fill","none").call(D8e.stroke,s.color).call(q8e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var g7=G((gDe,gZ)=>{"use strict";var y7=Qr(),E8e=qe(),Sg=bi(),P8e=kr(),R8e=qe().fillText,hZ=(Yc(),Ne(Bc)),z8e={increasing:hZ.INCREASING.SYMBOL,decreasing:hZ.DECREASING.SYMBOL};function N8e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?mZ(e,r,t,a):yZ(e,r,t,a)}function pZ(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,v,h=o.bPos||0,p=function(E){return E.pos+h-r},y=o.bdPos||o.tickLen,m=o.wHover,b=Math.min(1,y/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,v=e.maxSpikeDistance-b;function _(E){var R=p(E);return Sg.inbox(R-m,R+m,c)}function w(E){var R=E[u],N=E[f];return R===N||Sg.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var M=Sg.getDistanceFunction(a,_,w,x);if(Sg.getClosest(n,M,e),e.index===!1)return null;var A=n[e.index];if(A.empty)return null;var k=A.dir,S=l[k],D=S.line.color;return P8e.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(A.pos+h-y,!0),e.x1=i.c2p(A.pos+h+y,!0),e.xLabelVal=A.orig_p!==void 0?A.orig_p:A.pos,e.spikeDistance=x(A)*v/c,e.xSpike=i.c2p(A.pos,!0),e}function mZ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=pZ(e,r,t,a);if(!u)return[];var f=n[u.index],c=f.hi||l.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var v=["high","open","close","low"],h={},p=0;p<v.length;p++){var y=v[p],m=l[y][u.index],b=i.c2p(m,!0),_;m in h?(_=h[m],_.yLabel+="<br>"+o.labels[y]+y7.hoverLabelText(i,m,l.yhoverformat)):(_=E8e.extendFlat({},u),_.y0=_.y1=b,_.yLabelVal=m,_.yLabel=o.labels[y]+y7.hoverLabelText(i,m,l.yhoverformat),_.name="",s.push(_),h[m]=_)}return s}function yZ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=pZ(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,v=f.dir;function h(x){return o.labels[x]+y7.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo||"",y=p.split("+"),m=p==="all",b=m||y.indexOf("y")!==-1,_=m||y.indexOf("text")!==-1,w=b?[h("open"),h("high"),h("low"),h("close")+" "+z8e[v]]:[];return _&&R8e(f,l,w),s.extraText=w.join("<br>"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}gZ.exports={hoverPoints:N8e,hoverSplit:mZ,hoverOnPoints:yZ}});var b7=G((bDe,bZ)=>{"use strict";bZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o<a.length;o++)a[o].selected=0;else for(o=0;o<a.length;o++){var u=a[o];t.contains([n.c2p(u.pos+s),i.c2p(u.yc)],null,u.i,r)?(l.push({pointNumber:u.i,x:n.c2d(u.pos),y:i.c2d(u.yc)}),u.selected=1):u.selected=0}return l}});var _Z=G((xDe,xZ)=>{"use strict";xZ.exports={moduleType:"trace",name:"ohlc",basePlotModule:oo(),categories:["cartesian","svg","showLegend"],meta:{},attributes:kg(),supplyDefaults:lZ(),calc:p7().calc,plot:cZ(),style:dZ(),hoverPoints:g7().hoverPoints,selectPoints:b7()}});var TZ=G((_De,wZ)=>{"use strict";wZ.exports=_Z()});var LZ=G((wDe,CZ)=>{"use strict";var I8e=g4(),Pi=ji(),MZ=vo(),F8e=vi(),AZ=Xi().axisHoverFormat,{hovertemplateAttrs:H8e,templatefallbackAttrs:O8e}=Wn(),go=Mt().extendFlat,t0=Pi.marker,kZ=t0.line;CZ.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Pi.xperiod,yperiod:Pi.yperiod,xperiod0:Pi.xperiod0,yperiod0:Pi.yperiod0,xperiodalignment:Pi.xperiodalignment,yperiodalignment:Pi.yperiodalignment,xhoverformat:AZ("x"),yhoverformat:AZ("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:go({},t0.symbol,{arrayOk:!1,editType:"plot"}),opacity:go({},t0.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:go({},t0.angle,{arrayOk:!1,editType:"calc"}),size:go({},t0.size,{arrayOk:!1,editType:"calc"}),color:go({},t0.color,{arrayOk:!1,editType:"style"}),line:{color:go({},kZ.color,{arrayOk:!1,dflt:F8e.defaultLine,editType:"style"}),width:go({},kZ.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:I8e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:MZ.offsetgroup,alignmentgroup:MZ.alignmentgroup,selected:{marker:Pi.selected.marker,editType:"style"},unselected:{marker:Pi.unselected.marker,editType:"style"},text:go({},Pi.text,{}),hovertext:go({},Pi.hovertext,{}),hovertemplate:H8e({}),hovertemplatefallback:O8e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Pi.zorder}});var _7=G((TDe,DZ)=>{"use strict";var x7=qe().extendFlat,SZ=Xi().axisHoverFormat,Ln=kg(),a0=LZ();function qZ(e){return{line:{color:x7({},a0.line.color,{dflt:e}),width:a0.line.width,editType:"style"},fillcolor:a0.fillcolor,editType:"style"}}DZ.exports={xperiod:Ln.xperiod,xperiod0:Ln.xperiod0,xperiodalignment:Ln.xperiodalignment,xhoverformat:SZ("x"),yhoverformat:SZ("y"),x:Ln.x,open:Ln.open,high:Ln.high,low:Ln.low,close:Ln.close,line:{width:x7({},a0.line.width,{}),editType:"style"},increasing:qZ(Ln.increasing.line.color.dflt),decreasing:qZ(Ln.decreasing.line.color.dflt),text:Ln.text,hovertext:Ln.hovertext,hovertemplate:Ln.hovertemplate,hovertemplatefallback:Ln.hovertemplatefallback,whiskerwidth:x7({},a0.whiskerwidth,{dflt:0}),hoverlabel:Ln.hoverlabel,zorder:a0.zorder}});var w7=G((MDe,EZ)=>{"use strict";EZ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var zZ=G((ADe,RZ)=>{"use strict";var B8e=Ar(),Y8e=qe(),G8e=w7();function PZ(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o<t.length;o++){var s=t[o];if(B8e.traceIs(s,i)){l=!0;break}}l&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function U8e(e,r,t){function a(n,i){return Y8e.coerce(e,r,G8e,n,i)}PZ(e,r,t,a,"box")}RZ.exports={supplyLayoutDefaults:U8e,_supply:PZ}});var OZ=G((kDe,HZ)=>{"use strict";var NZ=Qr(),V8e=qe(),X8e=gu().getAxisGroup,IZ=["v","h"];function W8e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i<IZ.length;i++){for(var l=IZ[i],o=l==="h"?n:a,s=[],u=0;u<t.length;u++){var f=t[u],c=f[0].t,v=f[0].trace;v.visible===!0&&(v.type==="box"||v.type==="candlestick")&&!c.empty&&(v.orientation||"v")===l&&v.xaxis===a._id&&v.yaxis===n._id&&s.push(u)}FZ("box",e,s,o)}}function FZ(e,r,t,a){var n=r.calcdata,i=r._fullLayout,l=a._id,o=l.charAt(0),s,u,f,c=[],v=0;for(s=0;s<t.length;s++)for(f=n[t[s]],u=0;u<f.length;u++)c.push(a.c2l(f[u].pos,!0)),v+=(f[u].pts2||[]).length;if(c.length){var h=V8e.distinctVals(c);(a.type==="category"||a.type==="multicategory")&&(h.minDiff=1);var p=h.minDiff/2;NZ.minDtick(a,h.minDiff,h.vals[0],!0);var y=e==="violin"?"_numViolins":"_numBoxes",m=i[y],b=i[e+"mode"]==="group"&&m>1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s<t.length;s++){f=n[t[s]];var x=f[0].trace,M=f[0].t,A=x.width,k=x.side,S,D,E,R;if(A)S=D=R=A/2,E=0;else if(S=p,b){var N=X8e(i,a._id)+x.orientation,O=i._alignmentOpts[N]||{},F=O[x.alignmentgroup]||{},I=Object.keys(F.offsetGroups||{}).length,Y=I||m,B=I?x._offsetIndex:M.num;D=S*_*w/Y,E=2*S*(-.5+(B+.5)/Y)*_,R=S*_/Y}else D=S*_*w,E=0,R=S;M.dPos=S,M.bPos=E,M.bdPos=D,M.wHover=R;var U,X,W=E+D,V,J,re,ne,de,K,ye=!!A,oe=(x.boxpoints||x.points)&&v>0;if(k==="positive"?(U=S*(A?1:.5),V=W,X=V=E):k==="negative"?(U=V=E,X=S*(A?1:.5),J=W):(U=X=S,V=J=W),oe){var Ce=x.pointpos,se=x.jitter,fe=x.marker.size/2,Te=0;Ce+se>=0&&(Te=W*(Ce+se),Te>U?(ye=!0,de=fe,re=Te):Te>V&&(de=fe,re=U)),Te<=U&&(re=U);var Fe=0;Ce-se<=0&&(Fe=-W*(Ce-se),Fe>X?(ye=!0,K=fe,ne=Fe):Fe>J&&(K=fe,ne=X)),Fe<=X&&(ne=X)}else re=U,ne=X;var be=new Array(f.length);for(u=0;u<f.length;u++)be[u]=f[u].pos;x._extremes[l]=NZ.findExtremes(a,be,{padded:ye,vpadminus:ne,vpadplus:re,vpadLinearized:!0,ppadminus:{x:K,y:de}[o],ppadplus:{x:de,y:K}[o]})}}}HZ.exports={crossTraceCalc:W8e,setPositionOffset:FZ}});var GZ=G((CDe,YZ)=>{"use strict";var Z8e=qe(),$8e=kr(),J8e=h7(),K8e=Tu(),j8e=_7();YZ.exports=function(r,t,a,n){function i(o,s){return Z8e.coerce(r,t,j8e,o,s)}var l=J8e(r,t,i,n);if(!l){t.visible=!1;return}K8e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),BZ(r,t,i,"increasing"),BZ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function BZ(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",$8e.addOpacity(n,.5))}});var WZ=G((LDe,XZ)=>{"use strict";var UZ=qe(),VZ=Qr(),Q8e=Mu(),ewe=p7().calcCommon;XZ.exports=function(e,r){var t=e._fullLayout,a=VZ.getFromId(e,r.xaxis),n=VZ.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Q8e(r,a,"x",i).vals,o=ewe(e,r,i,l,n,rwe);return o.length?(UZ.extendFlat(o[0].t,{num:t._numBoxes,dPos:UZ.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function rwe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var QZ=G((SDe,jZ)=>{"use strict";var n0=Er(),Zu=qe(),twe=$r(),ZZ=5,awe=.01;function nwe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Zu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=n0.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,h;c.orientation==="h"?(v=l,h=i):(v=i,h=l),$Z(s,{pos:v,val:h},c,f,n),JZ(s,{x:i,y:l},c,f),KZ(s,{pos:v,val:h},c,f)})}function $Z(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,h=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Zu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return n0.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),M=o.l2p(x-m)+c,A=o.l2p(x+b)+c,k=s?(M+A)/2:o.l2p(x)+c,S=t.whiskerwidth,D=s?M*S+(1-S)*k:o.l2p(x-f)+c,E=s?A*S+(1-S)*k:o.l2p(x+f)+c,R=o.l2p(x-m*y)+c,N=o.l2p(x+b*y)+c,O=t.sizemode==="sd",F=l.c2p(O?w.mean-w.sd:w.q1,!0),I=O?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),Y=Zu.constrain(O?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(F,I)+1,Math.max(F,I)-1),B=w.lf===void 0||t.boxpoints===!1||O,U=l.c2p(B?w.min:w.lf,!0),X=l.c2p(B?w.max:w.uf,!0),W=l.c2p(w.ln,!0),V=l.c2p(w.un,!0);i?n0.select(this).attr("d","M"+Y+","+R+"V"+N+"M"+F+","+M+"V"+A+(p?"H"+W+"L"+Y+","+N+"L"+V+","+A:"")+"H"+I+"V"+M+(p?"H"+V+"L"+Y+","+R+"L"+W+","+M:"")+"Z"+(h?"M"+F+","+k+"H"+U+"M"+I+","+k+"H"+X+(v===0?"":"M"+U+","+D+"V"+E+"M"+X+","+D+"V"+E):"")):n0.select(this).attr("d","M"+R+","+Y+"H"+N+"M"+M+","+F+"H"+A+(p?"V"+W+"L"+N+","+Y+"L"+A+","+V:"")+"V"+I+"H"+M+(p?"V"+V+"L"+R+","+Y+"L"+M+","+W:"")+"Z"+(h?"M"+k+","+F+"V"+U+"M"+k+","+I+"V"+X+(v===0?"":"M"+D+","+U+"H"+E+"M"+D+","+X+"H"+E):""))})}function JZ(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Zu.seedPseudoRandom();var u=function(v){return v.forEach(function(h){h.t=a,h.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var h,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,b=y*awe,_=[],w=0,x;if(t.jitter){if(y===0)for(w=1,_=new Array(p.length),h=0;h<p.length;h++)_[h]=1;else for(h=0;h<p.length;h++){var M=Math.max(0,h-ZZ),A=p[M].v,k=Math.min(p.length-1,h+ZZ),S=p[k].v;s!=="all"&&(p[h].v<v.lf?S=Math.min(S,v.lf):A=Math.max(A,v.uf));var D=Math.sqrt(b*(k-M)/(S-A+m))||0;D=Zu.constrain(Math.abs(D),0,1),_.push(D),w=Math.max(D,w)}x=t.jitter*2/(w||1)}for(h=0;h<p.length;h++){var E=p[h],R=E.v,N=t.jitter?x*_[h]*(Zu.pseudoRandom()-.5):0,O=v.pos+o+l*(t.pointpos+N);t.orientation==="h"?(E.y=O,E.x=R):(E.x=O,E.y=R),s==="suspectedoutliers"&&R<v.uo&&R>v.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(twe.translatePoints,n,i)}function KZ(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Zu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(h){var p=i.c2l(h.pos+o,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=l?(y+m)/2:i.l2p(p)+s,_=n.c2p(h.mean,!0),w=n.c2p(h.mean-h.sd,!0),x=n.c2p(h.mean+h.sd,!0);t.orientation==="h"?n0.select(this).attr("d","M"+_+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+y+"L"+x+","+b+"Z":"")):n0.select(this).attr("d","M"+y+","+_+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+_+"L"+b+","+x+"Z":""))})}jZ.exports={plot:nwe,plotBoxAndWhiskers:$Z,plotPoints:JZ,plotBoxMean:KZ}});var r$=G((qDe,e$)=>{"use strict";var T7=Er(),M7=kr(),A7=$r();function iwe(e,r,t){var a=t||T7.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=T7.select(this),l=n[0].trace,o=l.line.width;function s(c,v,h,p){c.style("stroke-width",v+"px").call(M7.stroke,h).call(M7.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var v=T7.select(this),h=l[c.dir];s(v,h.line.width,h.line.color,h.fillcolor),v.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(M7.stroke,l.line.color);var f=i.selectAll("path.point");A7.pointStyle(f,l,e)}})}function lwe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?A7.selectedPointStyle(n,a):A7.pointStyle(n,a,e)}e$.exports={style:iwe,styleOnSelect:lwe}});var a$=G((DDe,t$)=>{"use strict";t$.exports={moduleType:"trace",name:"candlestick",basePlotModule:oo(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:_7(),layoutAttributes:w7(),supplyLayoutDefaults:zZ().supplyLayoutDefaults,crossTraceCalc:OZ().crossTraceCalc,supplyDefaults:GZ(),calc:WZ(),plot:QZ().plot,layerName:"boxlayer",style:r$().style,hoverPoints:g7().hoverPoints,selectPoints:b7()}});var i$=G((EDe,n$)=>{"use strict";n$.exports=a$()});var sn=G((PDe,o$)=>{"use strict";var l$=Object.getOwnPropertySymbols,owe=Object.prototype.hasOwnProperty,swe=Object.prototype.propertyIsEnumerable;function uwe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function fwe(){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}}o$.exports=fwe()?Object.assign:function(e,r){for(var t,a=uwe(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var l in t)owe.call(t,l)&&(a[l]=t[l]);if(l$){n=l$(t);for(var o=0;o<n.length;o++)swe.call(t,n[o])&&(a[n[o]]=t[n[o]])}}return a}});var un=G((RDe,u$)=>{var Dg=sn();function s$(){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={}}Dg(s$.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 k7(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(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function qg(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Dg(k7.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(Yr.local.invalidDate||Yr.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(Yr.local.differentCalendars||Yr.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?"-":"")+qg(Math.abs(this.year()),4)+"-"+qg(this.month(),2)+"-"+qg(this.day(),2)}});function C7(){this.shortYearCutoff="+10"}Dg(C7.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new k7(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.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,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+qg(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Yr.local.invalidMonth||Yr.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,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.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),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;l<f.minMonth;)i--,l+=f.monthsInYear(i);for(var c=f.monthsInYear(i);l>c-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),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,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return Yr.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Yr.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Yr.local.differentCalendars||Yr.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 L7(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}L7.prototype=new C7;Dg(L7.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,Yr.local.invalidYear||Yr.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,Yr.local.invalidMonth||Yr.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,Yr.local.invalidDate||Yr.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),l=Math.floor((a-i)/30.6001),o=a-i-Math.floor(l*30.6001),s=l-(l>13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.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 Yr=u$.exports=new s$;Yr.cdate=k7;Yr.baseCalendar=C7;Yr.calendars.gregorian=L7});var f$=G(()=>{var S7=sn(),Fa=un();S7(Fa.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"});Fa.local=Fa.regionalOptions[""];S7(Fa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});S7(Fa.baseCalendar.prototype,{UNIX_EPOCH:Fa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Fa.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 Fa.local.invalidFormat||Fa.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,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,M){for(var A=1;w+A<e.length&&e.charAt(w+A)===x;)A++;return w+=A-1,Math.floor(A/(M||1))>1},f=function(x,M,A,k){var S=""+M;if(u(x,k))for(;S.length<A;)S="0"+S;return S},c=function(x,M,A,k){return u(x)?k[M]:A[M]},v=this,h=function(x){return typeof i=="function"?i.call(v,x,u("m")):m(f("m",x.month(),2))},p=function(x,M){return M?typeof o=="function"?o.call(v,x):o[x.month()-v.minMonth]:typeof l=="function"?l.call(v,x):l[x.month()-v.minMonth]},y=this.local.digits,m=function(x){return t.localNumbers&&y?y(x):x},b="",_=!1,w=0;w<e.length;w++)if(_)e.charAt(w)==="'"&&!u("'")?_=!1:b+=e.charAt(w);else switch(e.charAt(w)){case"d":b+=m(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+="'":_=!0;break;default:b+=e.charAt(w)}return b},parseDate:function(e,r,t){if(r==null)throw Fa.local.invalidArguments||Fa.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,l=t.parseMonth||this.local.parseMonth,o=t.monthNumbers||this.local.monthNumbers,s=t.monthNamesShort||this.local.monthNamesShort,u=t.monthNames||this.local.monthNames,f=-1,c=-1,v=-1,h=-1,p=-1,y=!1,m=!1,b=function(N,O){for(var F=1;D+F<e.length&&e.charAt(D+F)===N;)F++;return D+=F-1,Math.floor(F/(O||1))>1},_=function(N,O){var F=b(N,O),I=[2,3,F?4:2,F?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],Y=new RegExp("^-?\\d{1,"+I+"}"),B=r.substring(S).match(Y);if(!B)throw(Fa.local.missingNumberAt||Fa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=B[0].length,parseInt(B[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(S));return S+=N.length,N}return _("m")},M=function(N,O,F,I){for(var Y=b(N,I)?F:O,B=0;B<Y.length;B++)if(r.substr(S,Y[B].length).toLowerCase()===Y[B].toLowerCase())return S+=Y[B].length,B+w.minMonth;throw(Fa.local.unknownNameAt||Fa.regionalOptions[""].unknownNameAt).replace(/\{0\}/,S)},A=function(){if(typeof u=="function"){var N=b("M")?u.call(w,r.substring(S)):s.call(w,r.substring(S));return S+=N.length,N}return M("M",s,u)},k=function(){if(r.charAt(S)!==e.charAt(D))throw(Fa.local.unexpectedLiteralAt||Fa.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,S);S++},S=0,D=0;D<e.length;D++)if(m)e.charAt(D)==="'"&&!b("'")?m=!1:k();else switch(e.charAt(D)){case"d":h=_("d");break;case"D":M("D",n,i);break;case"o":p=_("o");break;case"w":_("w");break;case"m":v=x();break;case"M":v=A();break;case"y":var E=D;y=!b("y",2),D=E,c=_("y",2);break;case"Y":c=_("Y",2);break;case"J":f=_("J")+.5,r.charAt(S)==="."&&(S++,_("J"));break;case"@":f=_("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=_("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":S=r.length;break;case"'":b("'")?k():m=!0;break;default:k()}if(S<r.length)throw Fa.local.unexpectedText||Fa.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&y&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof v=="string"&&(v=l.call(this,c,v)),p>-1){v=1,h=p;for(var R=this.daysInMonth(c,v);h>R;R=this.daysInMonth(c,v))v++,h-=R}return f>-1?this.fromJD(f):this.newDate(c,v,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,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var c$=G(()=>{var bs=un(),cwe=sn(),q7=bs.instance();function Eg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Eg.prototype=new bs.baseCalendar;cwe(Eg.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(dwe);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(hwe);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(pwe);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 bs.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 bs.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=xs[e-xs[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,bs.local.invalidyear),n=_s[a-_s[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=q7.newDate(i,l,o),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=xs[e-xs[0]],a=t>>13,n=a?12:11;if(r>n)throw bs.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,bs.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=ywe(e,i,t,n);return q7.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=q7.fromJD(e),t=mwe(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(vwe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Eg.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var vwe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,dwe=/^\d?\d[iI]?/m,hwe=/^闰?十?[一二三四五六七八九]?月/m,pwe=/^闰?十?[一二三四五六七八九]?/m;bs.calendars.chinese=Eg;var xs=[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],_s=[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 mwe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)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=_s[n.year-_s[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=_s[i.year-_s[0]];var c=u>>9&4095,v=u>>5&15,h=u&31,p,y=new Date(c,v-1,h),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=xs[i.year-xs[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p<w)break;p-=w}var x=b>>13;return!x||_<x?(i.isIntercalary=!1,i.month=1+_):_===x?(i.isIntercalary=!0,i.month=_):(i.isIntercalary=!1,i.month=_),i.day=1+p,i}function ywe(e,r,t,a,n){var i,l;if(typeof e=="object")l=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)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||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var v=xs[l.year-xs[0]],h=v>>13,p;h&&(l.month>h||l.isIntercalary)?p=l.month:p=l.month-1;for(var y=0;y<p;y++){var m=v&1<<12-y?30:29;c+=m}var b=_s[l.year-_s[0]],_=b>>9&4095,w=b>>5&15,x=b&31,M=new Date(_,w-1,x+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var v$=G(()=>{var $u=un(),gwe=sn();function D7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D7.prototype=new $u.baseCalendar;gwe(D7.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,$u.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,$u.local.invalidYear||$u.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,$u.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,$u.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)}});$u.calendars.coptic=D7});var d$=G(()=>{var bo=un(),bwe=sn();function E7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E7.prototype=new bo.baseCalendar;bwe(E7.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,bo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bo.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,bo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,bo.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,bo.local.invalidDate);return{century:xwe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,bo.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 xwe={20:"Fruitbat",21:"Anchovy"};bo.calendars.discworld=E7});var h$=G(()=>{var Ju=un(),_we=sn();function P7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P7.prototype=new Ju.baseCalendar;_we(P7.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,Ju.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,Ju.local.invalidYear||Ju.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,Ju.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,Ju.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)}});Ju.calendars.ethiopian=P7});var p$=G(()=>{var ws=un(),wwe=sn();function R7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R7.prototype=new ws.baseCalendar;wwe(R7.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,ws.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Pg(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ws.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,ws.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,ws.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Pg(this.daysInYear(e),10)===5?30:r===9&&Pg(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,ws.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,ws.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 l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l<r;l++)i+=this.daysInMonth(e,l)}else for(var l=7;l<r;l++)i+=this.daysInMonth(e,l);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 Pg(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 Pg(e,r){return e-r*Math.floor(e/r)}ws.calendars.hebrew=R7});var m$=G(()=>{var Jd=un(),Twe=sn();function z7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z7.prototype=new Jd.baseCalendar;Twe(z7.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,Jd.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,Jd.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,Jd.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)}});Jd.calendars.islamic=z7});var y$=G(()=>{var Kd=un(),Mwe=sn();function N7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N7.prototype=new Kd.baseCalendar;Mwe(N7.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,Kd.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,Kd.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,Kd.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),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Kd.calendars.julian=N7});var b$=G(()=>{var Ri=un(),Awe=sn();function F7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F7.prototype=new Ri.baseCalendar;Awe(F7.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,Ri.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ri.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,Ri.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ri.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ri.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ri.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ri.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ri.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ri.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=I7(e+8+340,365);return[Math.floor(r/20)+1,I7(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[g$(e+20,20),g$(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ri.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 I7(e,r){return e-r*Math.floor(e/r)}function g$(e,r){return I7(e-1,r)+1}Ri.calendars.mayan=F7});var _$=G(()=>{var Ku=un(),kwe=sn();function H7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H7.prototype=new Ku.baseCalendar;var x$=Ku.instance("gregorian");kwe(H7.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,Ku.local.invalidYear||Ku.regionalOptions[""].invalidYear);return x$.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,Ku.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,Ku.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l<a.month();l++)i+=this.daysPerMonth[l-1];return i+x$.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)}});Ku.calendars.nanakshahi=H7});var w$=G(()=>{var ju=un(),Cwe=sn();function O7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O7.prototype=new ju.baseCalendar;Cwe(O7.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,ju.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,ju.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,ju.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=ju.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=ju.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,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]}});ju.calendars.nepali=O7});var T$=G(()=>{var i0=un(),Lwe=sn();function zg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Rg(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}zg.prototype=new i0.baseCalendar;Lwe(zg.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,i0.local.invalidYear);return Rg(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,i0.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,i0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)Rg(i)&&n++;else if(e<0)for(var i=e;i<0;i++)Rg(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,Rg(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)}});i0.calendars.persian=zg;i0.calendars.jalali=zg});var M$=G(()=>{var Qu=un(),Swe=sn(),Ng=Qu.instance();function B7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B7.prototype=new Qu.baseCalendar;Swe(B7.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,Qu.local.invalidYear),t=this._t2gYear(r.year());return Ng.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Qu.local.invalidYear),n=this._t2gYear(a.year());return Ng.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Qu.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,Qu.local.invalidDate),n=this._t2gYear(a.year());return Ng.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ng.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)}});Qu.calendars.taiwan=B7});var A$=G(()=>{var ef=un(),qwe=sn(),Ig=ef.instance();function Y7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y7.prototype=new ef.baseCalendar;qwe(Y7.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,ef.local.invalidYear),t=this._t2gYear(r.year());return Ig.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ef.local.invalidYear),n=this._t2gYear(a.year());return Ig.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ef.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,ef.local.invalidDate),n=this._t2gYear(a.year());return Ig.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ig.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)}});ef.calendars.thai=Y7});var k$=G(()=>{var rf=un(),Dwe=sn();function G7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G7.prototype=new rf.baseCalendar;Dwe(G7.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,rf.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,rf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<Ts.length;i++){if(Ts[i]>a)return Ts[n]-Ts[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,rf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ts[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<Ts.length&&!(Ts[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Ts[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=rf.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=rf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});rf.calendars.ummalqura=G7;var Ts=[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 L$=G((cEe,C$)=>{"use strict";C$.exports=un();f$();c$();v$();d$();h$();p$();m$();y$();b$();_$();w$();T$();M$();A$();k$()});var z$=G((vEe,R$)=>{"use strict";var q$=L$(),jd=qe(),D$=(Et(),Ne(It)),Ewe=D$.EPOCHJD,Pwe=D$.ONEDAY,X7={valType:"enumerated",values:jd.sortObjectKeys(q$.calendars),editType:"calc",dflt:"gregorian"},E$=function(e,r,t,a){var n={};return n[t]=X7,jd.coerce(e,r,n,t,a)},Rwe=function(e,r,t,a){for(var n=0;n<t.length;n++)E$(e,r,t[n]+"calendar",a.calendar)},zwe={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"},Nwe={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"},Iwe={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"]},Fg="##",Fwe={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:Fg,w:Fg,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function Hwe(e,r,t){for(var a=Math.floor((r+.05)/Pwe)+Ewe,n=P$(t).fromJD(a),i=0,l,o,s,u,f;(i=e.indexOf("%",i))!==-1;)l=e.charAt(i+1),l==="0"||l==="-"||l==="_"?(s=3,o=e.charAt(i+2),l==="_"&&(l="-")):(o=l,l="0",s=2),u=Fwe[o],u?(u===Fg?f=Fg:f=n.formatDate(u[l]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var S$={};function P$(e){var r=S$[e];return r||(r=S$[e]=q$.instance(e),r)}function Qd(e){return jd.extendFlat({},X7,{description:e})}function W7(e){return"Sets the calendar system to use with `"+e+"` date data."}var V7={xcalendar:Qd(W7("x"))},Ol=jd.extendFlat({},V7,{ycalendar:Qd(W7("y"))}),U7=jd.extendFlat({},Ol,{zcalendar:Qd(W7("z"))}),l0=Qd(["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(" "));R$.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Ol,bar:Ol,box:Ol,heatmap:Ol,contour:Ol,histogram:Ol,histogram2d:Ol,histogram2dcontour:Ol,scatter3d:U7,surface:U7,mesh3d:U7,scattergl:Ol,ohlc:V7,candlestick:V7},layout:{calendar:Qd(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:l0},yaxis:{calendar:l0},scene:{xaxis:{calendar:l0},yaxis:{calendar:l0},zaxis:{calendar:l0}},polar:{radialaxis:{calendar:l0}}}},layoutAttributes:X7,handleDefaults:E$,handleTraceDefaults:Rwe,CANONICAL_SUNDAY:Nwe,CANONICAL_TICK:zwe,DFLTRANGE:Iwe,getCal:P$,worldCalFmt:Hwe}});var I$=G((dEe,N$)=>{"use strict";N$.exports=z$()});var Owe=G((hEe,H$)=>{var F$=hY();F$.register([mG(),oU(),GU(),SV(),gX(),YX(),KW(),TZ(),i$(),I$()]);H$.exports=F$});return Owe();})();
/*! 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;
}));