UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

149 lines • 1.51 MB
/**
* plotly.js (cartesian - minified) v4.1.2
* 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 jce=Object.create;var $v=Object.defineProperty,Wce=Object.defineProperties,Xce=Object.getOwnPropertyDescriptor,Zce=Object.getOwnPropertyDescriptors,$ce=Object.getOwnPropertyNames,F1=Object.getOwnPropertySymbols,Jce=Object.getPrototypeOf,s5=Object.prototype.hasOwnProperty,zS=Object.prototype.propertyIsEnumerable;var FS=(e,r,t)=>r in e?$v(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,At=(e,r)=>{for(var t in r||(r={}))s5.call(r,t)&&FS(e,t,r[t]);if(F1)for(var t of F1(r))zS.call(r,t)&&FS(e,t,r[t]);return e},Vt=(e,r)=>Wce(e,Zce(r));var NS=(e,r)=>{var t={};for(var a in e)s5.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&F1)for(var a of F1(e))r.indexOf(a)<0&&zS.call(e,a)&&(t[a]=e[a]);return t};var St=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var z=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},qt=(e,r)=>{for(var t in r)$v(e,t,{get:r[t],enumerable:!0})},IS=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of $ce(r))!s5.call(e,n)&&n!==t&&$v(e,n,{get:()=>r[n],enumerable:!(a=Xce(r,n))||a.enumerable});return e};var xc=(e,r,t)=>(t=e!=null?jce(Jce(e)):{},IS(r||!e||!e.__esModule?$v(t,"default",{value:e,enumerable:!0}):t,e)),ze=e=>IS($v({},"__esModule",{value:!0}),e);var BS=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Jv=z(OS=>{"use strict";OS.version="4.1.2"});var US=z((HS,z1)=>{(function(r,t,a){t[r]=t[r]||a(),typeof z1!="undefined"&&z1.exports&&(z1.exports=t[r])})("Promise",typeof window!="undefined"?window:HS,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,w,x,_){return Object.defineProperty(A,w,{value:x,writable:!0,configurable:_!==!1})}}catch(b){r=function(w,x,_){return w[x]=_,w}}a=(function(){var A,w,x;function _(k,T){this.fn=k,this.self=T,this.next=void 0}return{add:function(T,q){x=new _(T,q),w?w.next=x:A=x,w=x,x=void 0},drain:function(){var T=A;for(A=w=t=void 0;T;)T.fn.call(T.self),T=T.next}}})();function o(b,A){a.add(b,A),t||(t=i(a.drain))}function l(b){var A,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(A=b.then),typeof A=="function"?A:!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,A,w){var x,_;try{A===!1?w.reject(b.msg):(A===!0?x=b.msg:x=A.call(void 0,b.msg),x===w.promise?w.reject(TypeError("Promise-chain cycle")):(_=l(x))?_.call(x,w.resolve,w.reject):w.resolve(x))}catch(k){w.reject(k)}}function f(b){var A,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(A=l(b))?o(function(){var x=new d(w);try{A.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(_){c.call(x,_)}}):(w.msg=b,w.state=1,w.chain.length>0&&o(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=b,A.state=2,A.chain.length>0&&o(s,A))}function v(b,A,w,x){for(var _=0;_<A.length;_++)(function(T){b.resolve(A[T]).then(function(C){w(T,C)},x)})(_)}function d(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 A=new p(this);this.then=function(x,_){var k={success:typeof x=="function"?x:!0,failure:typeof _=="function"?_:!1};return k.promise=new this.constructor(function(q,C){if(typeof q!="function"||typeof C!="function")throw TypeError("Not a function");k.resolve=q,k.reject=C}),A.chain.push(k),A.state!==0&&o(s,A),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(A,x)},function(x){c.call(A,x)})}catch(w){c.call(A,w)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(A){var w=this;return A&&typeof A=="object"&&A.__NPO__===1?A:new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");_(A)})}),r(y,"reject",function(A){return new this(function(x,_){if(typeof x!="function"||typeof _!="function")throw TypeError("Not a function");_(A)})}),r(y,"all",function(A){var w=this;return n.call(A)!="[object Array]"?w.reject(TypeError("Not an array")):A.length===0?w.resolve([]):new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");var T=A.length,q=Array(T),C=0;v(w,A,function(P,R){q[P]=R,++C===T&&_(q)},k)})}),r(y,"race",function(A){var w=this;return n.call(A)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");v(w,A,function(q,C){_(C)},k)})}),y})});var Pr=z((sje,N1)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var M=g.length,S=new Array(M);M--;)S[M]=g[M];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,M){l.call(this,g,M+"")},o.setAttributeNS=function(g,M,S){s.call(this,g,M,S+"")},u.setProperty=function(g,M,S){f.call(this,g,M+"",S)}}e.ascending=c;function c(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}e.descending=function(h,g){return g<h?-1:g>h?1:g>=h?0:NaN},e.min=function(h,g){var M=-1,S=h.length,L,D;if(arguments.length===1){for(;++M<S;)if((D=h[M])!=null&&D>=D){L=D;break}for(;++M<S;)(D=h[M])!=null&&L>D&&(L=D)}else{for(;++M<S;)if((D=g.call(h,h[M],M))!=null&&D>=D){L=D;break}for(;++M<S;)(D=g.call(h,h[M],M))!=null&&L>D&&(L=D)}return L},e.max=function(h,g){var M=-1,S=h.length,L,D;if(arguments.length===1){for(;++M<S;)if((D=h[M])!=null&&D>=D){L=D;break}for(;++M<S;)(D=h[M])!=null&&D>L&&(L=D)}else{for(;++M<S;)if((D=g.call(h,h[M],M))!=null&&D>=D){L=D;break}for(;++M<S;)(D=g.call(h,h[M],M))!=null&&D>L&&(L=D)}return L},e.extent=function(h,g){var M=-1,S=h.length,L,D,B;if(arguments.length===1){for(;++M<S;)if((D=h[M])!=null&&D>=D){L=B=D;break}for(;++M<S;)(D=h[M])!=null&&(L>D&&(L=D),B<D&&(B=D))}else{for(;++M<S;)if((D=g.call(h,h[M],M))!=null&&D>=D){L=B=D;break}for(;++M<S;)(D=g.call(h,h[M],M))!=null&&(L>D&&(L=D),B<D&&(B=D))}return[L,B]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var M=0,S=h.length,L,D=-1;if(arguments.length===1)for(;++D<S;)d(L=+h[D])&&(M+=L);else for(;++D<S;)d(L=+g.call(h,h[D],D))&&(M+=L);return M},e.mean=function(h,g){var M=0,S=h.length,L,D=-1,B=S;if(arguments.length===1)for(;++D<S;)d(L=v(h[D]))?M+=L:--B;else for(;++D<S;)d(L=v(g.call(h,h[D],D)))?M+=L:--B;if(B)return M/B},e.quantile=function(h,g){var M=(h.length-1)*g+1,S=Math.floor(M),L=+h[S-1],D=M-S;return D?L+D*(h[S]-L):L},e.median=function(h,g){var M=[],S=h.length,L,D=-1;if(arguments.length===1)for(;++D<S;)d(L=v(h[D]))&&M.push(L);else for(;++D<S;)d(L=v(g.call(h,h[D],D)))&&M.push(L);if(M.length)return e.quantile(M.sort(c),.5)},e.variance=function(h,g){var M=h.length,S=0,L,D,B=0,F=-1,H=0;if(arguments.length===1)for(;++F<M;)d(L=v(h[F]))&&(D=L-S,S+=D/++H,B+=D*(L-S));else for(;++F<M;)d(L=v(g.call(h,h[F],F)))&&(D=L-S,S+=D/++H,B+=D*(L-S));if(H>1)return B/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,M,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var D=S+L>>>1;h(g[D],M)<0?S=D+1:L=D}return S},right:function(g,M,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var D=S+L>>>1;h(g[D],M)>0?L=D:S=D+1}return S}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,M){return c(h(g),M)}:h)},e.shuffle=function(h,g,M){(S=arguments.length)<3&&(M=h.length,S<2&&(g=0));for(var S=M-g,L,D;S;)D=Math.random()*S--|0,L=h[S+g],h[S+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var M=g.length,S=new Array(M);M--;)S[M]=h[g[M]];return S},e.pairs=function(h){for(var g=0,M=h.length-1,S,L=h[0],D=new Array(M<0?0:M);g<M;)D[g]=[S=L,L=h[++g]];return D},e.transpose=function(h){if(!(D=h.length))return[];for(var g=-1,M=e.min(h,m),S=new Array(M);++g<M;)for(var L=-1,D,B=S[g]=new Array(D);++L<D;)B[L]=h[L][g];return S};function m(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var M in h)g.push(M);return g},e.values=function(h){var g=[];for(var M in h)g.push(h[M]);return g},e.entries=function(h){var g=[];for(var M in h)g.push({key:M,value:h[M]});return g},e.merge=function(h){for(var g=h.length,M,S=-1,L=0,D,B;++S<g;)L+=h[S].length;for(D=new Array(L);--g>=0;)for(B=h[g],M=B.length;--M>=0;)D[--L]=B[M];return D};var b=Math.abs;e.range=function(h,g,M){if(arguments.length<3&&(M=1,arguments.length<2&&(g=h,h=0)),(g-h)/M===1/0)throw new Error("infinite range");var S=[],L=A(b(M)),D=-1,B;if(h*=L,g*=L,M*=L,M<0)for(;(B=h+M*++D)>g;)S.push(B/L);else for(;(B=h+M*++D)<g;)S.push(B/L);return S};function A(h){for(var g=1;h*g%1;)g*=10;return g}function w(h,g){for(var M in g)Object.defineProperty(h.prototype,M,{value:g[M],enumerable:!1})}e.map=function(h,g){var M=new x;if(h instanceof x)h.forEach(function(F,H){M.set(F,H)});else if(Array.isArray(h)){var S=-1,L=h.length,D;if(arguments.length===1)for(;++S<L;)M.set(S,h[S]);else for(;++S<L;)M.set(g.call(h,D=h[S],S),D)}else for(var B in h)M.set(B,h[B]);return M};function x(){this._=Object.create(null)}var _="__proto__",k="\0";w(x,{has:C,get:function(h){return this._[T(h)]},set:function(h,g){return this._[T(h)]=g},remove:E,keys:P,values:function(){var h=[];for(var g in this._)h.push(this._[g]);return h},entries:function(){var h=[];for(var g in this._)h.push({key:q(g),value:this._[g]});return h},size:R,empty:N,forEach:function(h){for(var g in this._)h.call(this,q(g),this._[g])}});function T(h){return(h+="")===_||h[0]===k?k+h:h}function q(h){return(h+="")[0]===k?h.slice(1):h}function C(h){return T(h)in this._}function E(h){return(h=T(h))in this._&&delete this._[h]}function P(){var h=[];for(var g in this._)h.push(q(g));return h}function R(){var h=0;for(var g in this._)++h;return h}function N(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],M=[],S,L;function D(F,H,X){if(X>=g.length)return L?L.call(h,H):S?H.sort(S):H;for(var Z=-1,K=H.length,Q=g[X++],pe,we,ee,le=new x,ve;++Z<K;)(ve=le.get(pe=Q(we=H[Z])))?ve.push(we):le.set(pe,[we]);return F?(we=F(),ee=function(_e,Ae){we.set(_e,D(F,Ae,X))}):(we={},ee=function(_e,Ae){we[_e]=D(F,Ae,X)}),le.forEach(ee),we}function B(F,H){if(H>=g.length)return F;var X=[],Z=M[H++];return F.forEach(function(K,Q){X.push({key:K,values:B(Q,H)})}),Z?X.sort(function(K,Q){return Z(K.key,Q.key)}):X}return h.map=function(F,H){return D(H,F,0)},h.entries=function(F){return B(D(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return M[g.length-1]=F,h},h.sortValues=function(F){return S=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new I;if(h)for(var M=0,S=h.length;M<S;++M)g.add(h[M]);return g};function I(){this._=Object.create(null)}w(I,{has:C,add:function(h){return this._[T(h+="")]=!0,h},remove:E,values:P,size:R,empty:N,forEach:function(h){for(var g in this._)h.call(this,q(g))}}),e.behavior={};function O(h){return h}e.rebind=function(h,g){for(var M=1,S=arguments.length,L;++M<S;)h[L=arguments[M]]=U(h,g,g[L]);return h};function U(h,g,M){return function(){var S=M.apply(g,arguments);return S===g?h:S}}function Y(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var M=0,S=G.length;M<S;++M){var L=G[M]+g;if(L in h)return L}}var G=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new W,g=-1,M=arguments.length;++g<M;)h[arguments[g]]=j(h);return h};function W(){}W.prototype.on=function(h,g){var M=h.indexOf("."),S="";if(M>=0&&(S=h.slice(M+1),h=h.slice(0,M)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],M=new x;function S(){for(var L=g,D=-1,B=L.length,F;++D<B;)(F=L[D].on)&&F.apply(this,arguments);return h}return S.on=function(L,D){var B=M.get(L),F;return arguments.length<2?B&&B.on:(B&&(B.on=null,g=g.slice(0,F=g.indexOf(B)).concat(g.slice(F+1)),M.remove(L)),D&&g.push(M.set(L,{on:D})),h)},S}e.event=null;function J(){e.event.preventDefault()}function te(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function ae(h){for(var g=new W,M=0,S=arguments.length;++M<S;)g[arguments[M]]=j(g);return g.of=function(L,D){return function(B){try{var F=B.sourceEvent=e.event;B.target=h,e.event=B,g[B.type].apply(L,D)}finally{e.event=F}}},g}e.requote=function(h){return h.replace(se,"\\$&")};var se=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,$={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var M in g)h[M]=g[M]};function fe(h){return $(h,oe),h}var ie=function(h,g){return g.querySelector(h)},ue=function(h,g){return g.querySelectorAll(h)},ce=function(h,g){var M=h.matches||h[Y(h,"matchesSelector")];return ce=function(S,L){return M.call(S,L)},ce(h,g)};typeof Sizzle=="function"&&(ie=function(h,g){return Sizzle(h,g)[0]||null},ue=Sizzle,ce=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var oe=e.selection.prototype=[];oe.select=function(h){var g=[],M,S,L,D;h=be(h);for(var B=-1,F=this.length;++B<F;){g.push(M=[]),M.parentNode=(L=this[B]).parentNode;for(var H=-1,X=L.length;++H<X;)(D=L[H])?(M.push(S=h.call(D,D.__data__,H,B)),S&&"__data__"in D&&(S.__data__=D.__data__)):M.push(null)}return fe(g)};function be(h){return typeof h=="function"?h:function(){return ie(h,this)}}oe.selectAll=function(h){var g=[],M,S;h=Re(h);for(var L=-1,D=this.length;++L<D;)for(var B=this[L],F=-1,H=B.length;++F<H;)(S=B[F])&&(g.push(M=t(h.call(S,S.__data__,F,L))),M.parentNode=S);return fe(g)};function Re(h){return typeof h=="function"?h:function(){return ue(h,this)}}var ye="http://www.w3.org/1999/xhtml",Ce={svg:"http://www.w3.org/2000/svg",xhtml:ye,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:Ce,qualify:function(h){var g=h.indexOf(":"),M=h;return g>=0&&(M=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ce.hasOwnProperty(M)?{space:Ce[M],local:h}:h}},oe.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var M=this.node();return h=e.ns.qualify(h),h.local?M.getAttributeNS(h.space,h.local):M.getAttribute(h)}for(g in h)this.each(Me(g,h[g]));return this}return this.each(Me(h,g))};function Me(h,g){h=e.ns.qualify(h);function M(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function B(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?S:M:typeof g=="function"?h.local?F:B:h.local?D:L}function Le(h){return h.trim().replace(/\s+/g," ")}oe.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var M=this.node(),S=(h=Ie(h)).length,L=-1;if(g=M.classList){for(;++L<S;)if(!g.contains(h[L]))return!1}else for(g=M.getAttribute("class");++L<S;)if(!De(h[L]).test(g))return!1;return!0}for(g in h)this.each(qe(g,h[g]));return this}return this.each(qe(h,g))};function De(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Ie(h){return(h+"").trim().split(/^|\s+/)}function qe(h,g){h=Ie(h).map(Ze);var M=h.length;function S(){for(var D=-1;++D<M;)h[D](this,g)}function L(){for(var D=-1,B=g.apply(this,arguments);++D<M;)h[D](this,B)}return typeof g=="function"?L:S}function Ze(h){var g=De(h);return function(M,S){if(L=M.classList)return S?L.add(h):L.remove(h);var L=M.getAttribute("class")||"";S?(g.lastIndex=0,g.test(L)||M.setAttribute("class",Le(L+" "+h))):M.setAttribute("class",Le(L.replace(g," ")))}}oe.style=function(h,g,M){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(M in h)this.each(Je(M,h[M],g));return this}if(S<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}M=""}return this.each(Je(h,g,M))};function Je(h,g,M){function S(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,M)}function D(){var B=g.apply(this,arguments);B==null?this.style.removeProperty(h):this.style.setProperty(h,B,M)}return g==null?S:typeof g=="function"?D:L}oe.property=function(h,g){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(g in h)this.each(Xe(g,h[g]));return this}return this.each(Xe(h,g))};function Xe(h,g){function M(){delete this[h]}function S(){this[h]=g}function L(){var D=g.apply(this,arguments);D==null?delete this[h]:this[h]=D}return g==null?M:typeof g=="function"?L:S}oe.text=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.textContent=g==null?"":g}:h==null?function(){this.textContent=""}:function(){this.textContent=h}):this.node().textContent},oe.html=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.innerHTML=g==null?"":g}:h==null?function(){this.innerHTML=""}:function(){this.innerHTML=h}):this.node().innerHTML},oe.append=function(h){return h=Se(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function Se(h){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===ye&&S.documentElement.namespaceURI===ye?S.createElement(h):S.createElementNS(L,h)}function M(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?M:g}oe.insert=function(h,g){return h=Se(h),g=be(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},oe.remove=function(){return this.each(Fe)};function Fe(){var h=this.parentNode;h&&h.removeChild(this)}oe.data=function(h,g){var M=-1,S=this.length,L,D;if(!arguments.length){for(h=new Array(S=(L=this[0]).length);++M<S;)(D=L[M])&&(h[M]=D.__data__);return h}function B(Z,K){var Q,pe=Z.length,we=K.length,ee=Math.min(pe,we),le=new Array(we),ve=new Array(we),_e=new Array(pe),Ae,de;if(g){var Ve=new x,lr=new Array(pe),dr;for(Q=-1;++Q<pe;)(Ae=Z[Q])&&(Ve.has(dr=g.call(Ae,Ae.__data__,Q))?_e[Q]=Ae:Ve.set(dr,Ae),lr[Q]=dr);for(Q=-1;++Q<we;)(Ae=Ve.get(dr=g.call(K,de=K[Q],Q)))?Ae!==!0&&(le[Q]=Ae,Ae.__data__=de):ve[Q]=er(de),Ve.set(dr,!0);for(Q=-1;++Q<pe;)Q in lr&&Ve.get(lr[Q])!==!0&&(_e[Q]=Z[Q])}else{for(Q=-1;++Q<ee;)Ae=Z[Q],de=K[Q],Ae?(Ae.__data__=de,le[Q]=Ae):ve[Q]=er(de);for(;Q<we;++Q)ve[Q]=er(K[Q]);for(;Q<pe;++Q)_e[Q]=Z[Q]}ve.update=le,ve.parentNode=le.parentNode=_e.parentNode=Z.parentNode,F.push(ve),H.push(le),X.push(_e)}var F=vr([]),H=fe([]),X=fe([]);if(typeof h=="function")for(;++M<S;)B(L=this[M],h.call(L,L.parentNode.__data__,M));else for(;++M<S;)B(L=this[M],h);return H.enter=function(){return F},H.exit=function(){return X},H};function er(h){return{__data__:h}}oe.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},oe.filter=function(h){var g=[],M,S,L;typeof h!="function"&&(h=re(h));for(var D=0,B=this.length;D<B;D++){g.push(M=[]),M.parentNode=(S=this[D]).parentNode;for(var F=0,H=S.length;F<H;F++)(L=S[F])&&h.call(L,L.__data__,F,D)&&M.push(L)}return fe(g)};function re(h){return function(){return ce(this,h)}}oe.order=function(){for(var h=-1,g=this.length;++h<g;)for(var M=this[h],S=M.length-1,L=M[S],D;--S>=0;)(D=M[S])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},oe.sort=function(h){h=xe.apply(this,arguments);for(var g=-1,M=this.length;++g<M;)this[g].sort(h);return this.order()};function xe(h){return arguments.length||(h=c),function(g,M){return g&&M?h(g.__data__,M.__data__):!g-!M}}oe.each=function(h){return Ye(this,function(g,M,S){h.call(g,g.__data__,M,S)})};function Ye(h,g){for(var M=0,S=h.length;M<S;M++)for(var L=h[M],D=0,B=L.length,F;D<B;D++)(F=L[D])&&g(F,D,M);return h}oe.call=function(h){var g=t(arguments);return h.apply(g[0]=this,g),this},oe.empty=function(){return!this.node()},oe.node=function(){for(var h=0,g=this.length;h<g;h++)for(var M=this[h],S=0,L=M.length;S<L;S++){var D=M[S];if(D)return D}return null},oe.size=function(){var h=0;return Ye(this,function(){++h}),h};function vr(h){return $(h,Pe),h}var Pe=[];e.selection.enter=vr,e.selection.enter.prototype=Pe,Pe.append=oe.append,Pe.empty=oe.empty,Pe.node=oe.node,Pe.call=oe.call,Pe.size=oe.size,Pe.select=function(h){for(var g=[],M,S,L,D,B,F=-1,H=this.length;++F<H;){L=(D=this[F]).update,g.push(M=[]),M.parentNode=D.parentNode;for(var X=-1,Z=D.length;++X<Z;)(B=D[X])?(M.push(L[X]=S=h.call(D.parentNode,B.__data__,X,F)),S.__data__=B.__data__):M.push(null)}return fe(g)},Pe.insert=function(h,g){return arguments.length<2&&(g=me(this)),oe.insert.call(this,h,g)};function me(h){var g,M;return function(S,L,D){var B=h[D].update,F=B.length,H;for(D!=M&&(M=D,g=0),L>=g&&(g=L+1);!(H=B[g])&&++g<F;);return H}}e.select=function(h){var g;return typeof h=="string"?(g=[ie(h,a)],g.parentNode=a.documentElement):(g=[h],g.parentNode=n(h)),fe([g])},e.selectAll=function(h){var g;return typeof h=="string"?(g=t(ue(h,a)),g.parentNode=a.documentElement):(g=t(h),g.parentNode=null),fe([g])},oe.on=function(h,g,M){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g=!1);for(M in h)this.each(Te(M,h[M],g));return this}if(S<2)return(S=this.node()["__on"+h])&&S._;M=!1}return this.each(Te(h,g,M))};function Te(h,g,M){var S="__on"+h,L=h.indexOf("."),D=$e;L>0&&(h=h.slice(0,L));var B=Ue.get(h);B&&(h=B,D=Oe);function F(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function H(){var Z=D(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=Z,Z.$=M),Z._=g}function X(){var Z=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),K;for(var Q in this)if(K=Q.match(Z)){var pe=this[Q];this.removeEventListener(K[1],pe,pe.$),delete this[Q]}}return L?g?H:F:g?V:X}var Ue=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ue.forEach(function(h){"on"+h in a&&Ue.remove(h)});function $e(h,g){return function(M){var S=e.event;e.event=M,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Oe(h,g){var M=$e(h,g);return function(S){var L=this,D=S.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&M.call(L,S)}}var We,ar=0;function or(h){var g=".dragsuppress-"+ ++ar,M="click"+g,S=e.select(i(h)).on("touchmove"+g,J).on("dragstart"+g,J).on("selectstart"+g,J);if(We==null&&(We="onselectstart"in h?!1:Y(h.style,"userSelect")),We){var L=n(h).style,D=L[We];L[We]="none"}return function(B){if(S.on(g,null),We&&(L[We]=D),B){var F=function(){S.on(M,null)};S.on(M,function(){J(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ee(h,te())};var sr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ee(h,g){g.changedTouches&&(g=g.changedTouches[0]);var M=h.ownerSVGElement||h;if(M.createSVGPoint){var S=M.createSVGPoint();if(sr<0){var L=i(h);if(L.scrollX||L.scrollY){M=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=M[0][0].getScreenCTM();sr=!(D.f||D.e),M.remove()}}return sr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.y]}var B=h.getBoundingClientRect();return[g.clientX-B.left-h.clientLeft,g.clientY-B.top-h.clientTop]}e.touch=function(h,g,M){if(arguments.length<3&&(M=g,g=te().changedTouches),g){for(var S=0,L=g.length,D;S<L;++S)if((D=g[S]).identifier===M)return Ee(h,D)}},e.behavior.drag=function(){var h=ae(L,"drag","dragstart","dragend"),g=null,M=D(V,e.mouse,i,"mousemove","mouseup"),S=D(Ke,e.touch,O,"touchmove","touchend");function L(){this.on("mousedown.drag",M).on("touchstart.drag",S)}function D(B,F,H,X,Z){return function(){var K=this,Q=e.event.target.correspondingElement||e.event.target,pe=K.parentNode,we=h.of(K,arguments),ee=0,le=B(),ve=".drag"+(le==null?"":"-"+le),_e,Ae=e.select(H(Q)).on(X+ve,lr).on(Z+ve,dr),de=or(Q),Ve=F(pe,le);g?(_e=g.apply(K,arguments),_e=[_e.x-Ve[0],_e.y-Ve[1]]):_e=[0,0],we({type:"dragstart"});function lr(){var cr=F(pe,le),xr,_r;cr&&(xr=cr[0]-Ve[0],_r=cr[1]-Ve[1],ee|=xr|_r,Ve=cr,we({type:"drag",x:cr[0]+_e[0],y:cr[1]+_e[1],dx:xr,dy:_r}))}function dr(){F(pe,le)&&(Ae.on(X+ve,null).on(Z+ve,null),de(ee),we({type:"dragend"}))}}}return L.origin=function(B){return arguments.length?(g=B,L):g},e.rebind(L,h,"on")};function Ke(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=te().touches),g?t(g).map(function(M){var S=Ee(h,M);return S.identifier=M.identifier,S}):[]};var Be=1e-6,mr=Be*Be,yr=Math.PI,ur=2*yr,gr=ur-Be,ne=yr/2,ge=yr/180,Ne=180/yr;function He(h){return h>0?1:h<0?-1:0}function Kr(h,g,M){return(g[0]-h[0])*(M[1]-h[1])-(g[1]-h[1])*(M[0]-h[0])}function Qr(h){return h>1?0:h<-1?yr:Math.acos(h)}function yt(h){return h>1?ne:h<-1?-ne:Math.asin(h)}function gt(h){return((h=Math.exp(h))-1/h)/2}function Et(h){return((h=Math.exp(h))+1/h)/2}function aa(h){return((h=Math.exp(2*h))-1)/(h+1)}function $a(h){return(h=Math.sin(h/2))*h}var na=Math.SQRT2,Ja=2,hn=4;e.interpolateZoom=function(h,g){var M=h[0],S=h[1],L=h[2],D=g[0],B=g[1],F=g[2],H=D-M,X=B-S,Z=H*H+X*X,K,Q;if(Z<mr)Q=Math.log(F/L)/na,K=function(_e){return[M+_e*H,S+_e*X,L*Math.exp(na*_e*Q)]};else{var pe=Math.sqrt(Z),we=(F*F-L*L+hn*Z)/(2*L*Ja*pe),ee=(F*F-L*L-hn*Z)/(2*F*Ja*pe),le=Math.log(Math.sqrt(we*we+1)-we),ve=Math.log(Math.sqrt(ee*ee+1)-ee);Q=(ve-le)/na,K=function(_e){var Ae=_e*Q,de=Et(le),Ve=L/(Ja*pe)*(de*aa(na*Ae+le)-gt(le));return[M+Ve*H,S+Ve*X,L*de/Et(na*Ae+le)]}}return K.duration=Q*1e3,K},e.behavior.zoom=function(){var h={x:0,y:0,k:1},g,M,S,L=[960,500],D=fa,B=250,F=0,H="mousedown.zoom",X="mousemove.zoom",Z="mouseup.zoom",K,Q="touchstart.zoom",pe,we=ae(Ae,"zoomstart","zoom","zoomend"),ee,le,ve,_e;wt||(wt="onwheel"in a?(hr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(hr=function(){return e.event.wheelDelta},"mousewheel"):(hr=function(){return-e.event.detail},"MozMousePixelScroll"));function Ae(nr){nr.on(H,Er).on(wt+".zoom",va).on("dblclick.zoom",bt).on(Q,ot)}Ae.event=function(nr){nr.each(function(){var Ir=we.of(this,arguments),Or=h;qu?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},_r(Ir)}).tween("zoom:zoom",function(){var lt=L[0],Kt=L[1],La=M?M[0]:lt/2,rn=M?M[1]:Kt/2,An=e.interpolateZoom([(La-h.x)/h.k,(rn-h.y)/h.k,lt/h.k],[(La-Or.x)/Or.k,(rn-Or.y)/Or.k,lt/Or.k]);return function(Bn){var Tn=An(Bn),Wn=lt/Tn[2];this.__chart__=h={x:La-Tn[0]*Wn,y:rn-Tn[1]*Wn,k:Wn},Nr(Ir)}}).each("interrupt.zoom",function(){Ar(Ir)}).each("end.zoom",function(){Ar(Ir)}):(this.__chart__=h,_r(Ir),Nr(Ir),Ar(Ir))})},Ae.translate=function(nr){return arguments.length?(h={x:+nr[0],y:+nr[1],k:h.k},xr(),Ae):[h.x,h.y]},Ae.scale=function(nr){return arguments.length?(h={x:h.x,y:h.y,k:null},lr(+nr),xr(),Ae):h.k},Ae.scaleExtent=function(nr){return arguments.length?(D=nr==null?fa:[+nr[0],+nr[1]],Ae):D},Ae.center=function(nr){return arguments.length?(S=nr&&[+nr[0],+nr[1]],Ae):S},Ae.size=function(nr){return arguments.length?(L=nr&&[+nr[0],+nr[1]],Ae):L},Ae.duration=function(nr){return arguments.length?(B=+nr,Ae):B},Ae.x=function(nr){return arguments.length?(le=nr,ee=nr.copy(),h={x:0,y:0,k:1},Ae):le},Ae.y=function(nr){return arguments.length?(_e=nr,ve=nr.copy(),h={x:0,y:0,k:1},Ae):_e};function de(nr){return[(nr[0]-h.x)/h.k,(nr[1]-h.y)/h.k]}function Ve(nr){return[nr[0]*h.k+h.x,nr[1]*h.k+h.y]}function lr(nr){h.k=Math.max(D[0],Math.min(D[1],nr))}function dr(nr,Ir){Ir=Ve(Ir),h.x+=nr[0]-Ir[0],h.y+=nr[1]-Ir[1]}function cr(nr,Ir,Or,lt){nr.__chart__={x:h.x,y:h.y,k:h.k},lr(Math.pow(2,lt)),dr(M=Ir,Or),nr=e.select(nr),B>0&&(nr=nr.transition().duration(B)),nr.call(Ae.event)}function xr(){le&&le.domain(ee.range().map(function(nr){return(nr-h.x)/h.k}).map(ee.invert)),_e&&_e.domain(ve.range().map(function(nr){return(nr-h.y)/h.k}).map(ve.invert))}function _r(nr){F++||nr({type:"zoomstart"})}function Nr(nr){xr(),nr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ar(nr){--F||(nr({type:"zoomend"}),M=null)}function Er(){var nr=this,Ir=we.of(nr,arguments),Or=0,lt=e.select(i(nr)).on(X,rn).on(Z,An),Kt=de(e.mouse(nr)),La=or(nr);D1.call(nr),_r(Ir);function rn(){Or=1,dr(e.mouse(nr),Kt),Nr(Ir)}function An(){lt.on(X,null).on(Z,null),La(Or),Ar(Ir)}}function ot(){var nr=this,Ir=we.of(nr,arguments),Or={},lt=0,Kt,La=".zoom-"+e.event.changedTouches[0].identifier,rn="touchmove"+La,An="touchend"+La,Bn=[],Tn=e.select(nr),Wn=or(nr);Xn(),_r(Ir),Tn.on(H,null).on(Q,Xn);function dn(){var To=e.touches(nr);return Kt=h.k,To.forEach(function(tn){tn.identifier in Or&&(Or[tn.identifier]=de(tn))}),To}function Xn(){var To=e.event.target;e.select(To).on(rn,Lu).on(An,Vce),Bn.push(To);for(var tn=e.event.changedTouches,zi=0,el=tn.length;zi<el;++zi)Or[tn[zi].identifier]=null;var Ni=dn(),bc=Date.now();if(Ni.length===1){if(bc-pe<500){var Cu=Ni[0];cr(nr,Cu,Or[Cu.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),J()}pe=bc}else if(Ni.length>1){var Cu=Ni[0],ys=Ni[1],R1=Cu[0]-ys[0],RS=Cu[1]-ys[1];lt=R1*R1+RS*RS}}function Lu(){var To=e.touches(nr),tn,zi,el,Ni;D1.call(nr);for(var bc=0,Cu=To.length;bc<Cu;++bc,Ni=null)if(el=To[bc],Ni=Or[el.identifier]){if(zi)break;tn=el,zi=Ni}if(Ni){var ys=(ys=el[0]-tn[0])*ys+(ys=el[1]-tn[1])*ys,R1=lt&&Math.sqrt(ys/lt);tn=[(tn[0]+el[0])/2,(tn[1]+el[1])/2],zi=[(zi[0]+Ni[0])/2,(zi[1]+Ni[1])/2],lr(R1*Kt)}pe=null,dr(tn,zi),Nr(Ir)}function Vce(){if(e.event.touches.length){for(var To=e.event.changedTouches,tn=0,zi=To.length;tn<zi;++tn)delete Or[To[tn].identifier];for(var el in Or)return void dn()}e.selectAll(Bn).on(La,null),Tn.on(H,Er).on(Q,ot),Wn(),Ar(Ir)}}function va(){var nr=we.of(this,arguments);K?clearTimeout(K):(D1.call(this),g=de(M=S||e.mouse(this)),_r(nr)),K=setTimeout(function(){K=null,Ar(nr)},50),J(),lr(Math.pow(2,hr()*.002)*h.k),dr(M,g),Nr(nr)}function bt(){var nr=e.mouse(this),Ir=Math.log(h.k)/Math.LN2;cr(this,nr,de(nr),e.event.shiftKey?Math.ceil(Ir)-1:Math.floor(Ir)+1)}return e.rebind(Ae,we,"on")};var fa=[0,1/0],hr,wt;e.color=Vr;function Vr(){}Vr.prototype.toString=function(){return this.rgb()+""},e.hsl=ht;function ht(h,g,M){return this instanceof ht?(this.h=+h,this.s=+g,void(this.l=+M)):arguments.length<2?h instanceof ht?new ht(h.h,h.s,h.l):h1(""+h,d1,ht):new ht(h,g,M)}var Nt=ht.prototype=new Vr;Nt.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new ht(this.h,this.s,this.l/h)},Nt.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new ht(this.h,this.s,h*this.l)},Nt.rgb=function(){return kt(this.h,this.s,this.l)};function kt(h,g,M){var S,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,M=M<0?0:M>1?1:M,L=M<=.5?M*(1+g):M+g-M*g,S=2*M-L;function D(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(L-S)*F/60:F<180?L:F<240?S+(L-S)*(240-F)/60:S}function B(F){return Math.round(D(F)*255)}return new ca(B(h+120),B(h),B(h-120))}e.hcl=it;function it(h,g,M){return this instanceof it?(this.h=+h,this.c=+g,void(this.l=+M)):arguments.length<2?h instanceof it?new it(h.h,h.c,h.l):h instanceof Xt?cc(h.l,h.a,h.b):cc((h=p1((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new it(h,g,M)}var ia=it.prototype=new Vr;ia.brighter=function(h){return new it(this.h,this.c,Math.min(100,this.l+Pt*(arguments.length?h:1)))},ia.darker=function(h){return new it(this.h,this.c,Math.max(0,this.l-Pt*(arguments.length?h:1)))},ia.rgb=function(){return zn(this.h,this.c,this.l).rgb()};function zn(h,g,M){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Xt(M,Math.cos(h*=ge)*g,Math.sin(h)*g)}e.lab=Xt;function Xt(h,g,M){return this instanceof Xt?(this.l=+h,this.a=+g,void(this.b=+M)):arguments.length<2?h instanceof Xt?new Xt(h.l,h.a,h.b):h instanceof it?zn(h.h,h.c,h.l):p1((h=ca(h)).r,h.g,h.b):new Xt(h,g,M)}var Pt=18,oa=.95047,la=1,dt=1.08883,Ka=Xt.prototype=new Vr;Ka.brighter=function(h){return new Xt(Math.min(100,this.l+Pt*(arguments.length?h:1)),this.a,this.b)},Ka.darker=function(h){return new Xt(Math.max(0,this.l-Pt*(arguments.length?h:1)),this.a,this.b)},Ka.rgb=function(){return Yt(this.l,this.a,this.b)};function Yt(h,g,M){var S=(h+16)/116,L=S+g/500,D=S-M/200;return L=Nn(L)*oa,S=Nn(S)*la,D=Nn(D)*dt,new ca(ci(3.2404542*L-1.5371385*S-.4985314*D),ci(-.969266*L+1.8760108*S+.041556*D),ci(.0556434*L-.2040259*S+1.0572252*D))}function cc(h,g,M){return h>0?new it(Math.atan2(M,g)*Ne,Math.sqrt(g*g+M*M),h):new it(NaN,NaN,h)}function Nn(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function wo(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ci(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=ca;function ca(h,g,M){return this instanceof ca?(this.r=~~h,this.g=~~g,void(this.b=~~M)):arguments.length<2?h instanceof ca?new ca(h.r,h.g,h.b):h1(""+h,ca,kt):new ca(h,g,M)}function vc(h){return new ca(h>>16,h>>8&255,h&255)}function ds(h){return vc(h)+""}var In=ca.prototype=new Vr;In.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,M=this.g,S=this.b,L=30;return!g&&!M&&!S?new ca(L,L,L):(g&&g<L&&(g=L),M&&M<L&&(M=L),S&&S<L&&(S=L),new ca(Math.min(255,g/h),Math.min(255,M/h),Math.min(255,S/h)))},In.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new ca(h*this.r,h*this.g,h*this.b)},In.hsl=function(){return d1(this.r,this.g,this.b)},In.toString=function(){return"#"+ps(this.r)+ps(this.g)+ps(this.b)};function ps(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function h1(h,g,M){var S=0,L=0,D=0,B,F,H;if(B=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),B)switch(F=B[2].split(","),B[1]){case"hsl":return M(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return g(Ov(F[0]),Ov(F[1]),Ov(F[2]))}return(H=kr.get(h))?g(H.r,H.g,H.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(H=parseInt(h.slice(1),16))&&(h.length===4?(S=(H&3840)>>4,S=S>>4|S,L=H&240,L=L>>4|L,D=H&15,D=D<<4|D):h.length===7&&(S=(H&16711680)>>16,L=(H&65280)>>8,D=H&255)),g(S,L,D))}function d1(h,g,M){var S=Math.min(h/=255,g/=255,M/=255),L=Math.max(h,g,M),D=L-S,B,F,H=(L+S)/2;return D?(F=H<.5?D/(L+S):D/(2-L-S),h==L?B=(g-M)/D+(g<M?6:0):g==L?B=(M-h)/D+2:B=(h-g)/D+4,B*=60):(B=NaN,F=H>0&&H<1?0:B),new ht(B,F,H)}function p1(h,g,M){h=Bv(h),g=Bv(g),M=Bv(M);var S=wo((.4124564*h+.3575761*g+.1804375*M)/oa),L=wo((.2126729*h+.7151522*g+.072175*M)/la),D=wo((.0193339*h+.119192*g+.9503041*M)/dt);return Xt(116*L-16,500*(S-L),200*(L-D))}function Bv(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ov(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kr=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});kr.forEach(function(h,g){kr.set(h,vc(g))});function Mr(h){return typeof h=="function"?h:function(){return h}}e.functor=Mr,e.xhr=pt(O);function pt(h){return function(g,M,S){return arguments.length===2&&typeof M=="function"&&(S=M,M=null),fr(g,M,h,S)}}function fr(h,g,M,S){var L={},D=e.dispatch("beforesend","progress","load","error"),B={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var Z=F.status,K;if(!Z&&It(F)||Z>=200&&Z<300||Z===304){try{K=M.call(L,F)}catch(Q){D.error.call(L,Q);return}D.load.call(L,K)}else D.error.call(L,F)}return F.onprogress=function(Z){var K=e.event;e.event=Z;try{D.progress.call(L,F)}finally{e.event=K}},L.header=function(Z,K){return Z=(Z+"").toLowerCase(),arguments.length<2?B[Z]:(K==null?delete B[Z]:B[Z]=K+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(H=Z,L):H},L.response=function(Z){return M=Z,L},["get","post"].forEach(function(Z){L[Z]=function(){return L.send.apply(L,[Z].concat(t(arguments)))}}),L.send=function(Z,K,Q){if(arguments.length===2&&typeof K=="function"&&(Q=K,K=null),F.open(Z,h,!0),g!=null&&!("accept"in B)&&(B.accept=g+",*/*"),F.setRequestHeader)for(var pe in B)F.setRequestHeader(pe,B[pe]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),Q!=null&&L.on("error",Q).on("load",function(we){Q(null,we)}),D.beforesend.call(L,F),F.send(K==null?null:K),L},L.abort=function(){return F.abort(),L},e.rebind(L,D,"on"),S==null?L:L.get(wn(S))}function wn(h){return h.length===1?function(g,M){h(g==null?M:null)}:h}function It(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var M=new RegExp('["'+h+`
]`),S=h.charCodeAt(0);function L(X,Z,K){arguments.length<3&&(K=Z,Z=null);var Q=fr(X,g,Z==null?D:B(Z),K);return Q.row=function(pe){return arguments.length?Q.response((Z=pe)==null?D:B(pe)):Z},Q}function D(X){return L.parse(X.responseText)}function B(X){return function(Z){return L.parse(Z.responseText,X)}}L.parse=function(X,Z){var K;return L.parseRows(X,function(Q,pe){if(K)return K(Q,pe-1);var we=function(ee){for(var le={},ve=Q.length,_e=0;_e<ve;++_e)le[Q[_e]]=ee[_e];return le};K=Z?function(ee,le){return Z(we(ee),le)}:we})},L.parseRows=function(X,Z){var K={},Q={},pe=[],we=X.length,ee=0,le=0,ve,_e;function Ae(){if(ee>=we)return Q;if(_e)return _e=!1,K;var Ve=ee;if(X.charCodeAt(Ve)===34){for(var lr=Ve;lr++<we;)if(X.charCodeAt(lr)===34){if(X.charCodeAt(lr+1)!==34)break;++lr}ee=lr+2;var dr=X.charCodeAt(lr+1);return dr===13?(_e=!0,X.charCodeAt(lr+2)===10&&++ee):dr===10&&(_e=!0),X.slice(Ve+1,lr).replace(/""/g,'"')}for(;ee<we;){var dr=X.charCodeAt(ee++),cr=1;if(dr===10)_e=!0;else if(dr===13)_e=!0,X.charCodeAt(ee)===10&&(++ee,++cr);else if(dr!==S)continue;return X.slice(Ve,ee-cr)}return X.slice(Ve)}for(;(ve=Ae())!==Q;){for(var de=[];ve!==K&&ve!==Q;)de.push(ve),ve=Ae();Z&&(de=Z(de,le++))==null||pe.push(de)}return pe},L.format=function(X){if(Array.isArray(X[0]))return L.formatRows(X);var Z=new I,K=[];return X.forEach(function(Q){for(var pe in Q)Z.has(pe)||K.push(Z.add(pe))}),[K.map(H).join(h)].concat(X.map(function(Q){return K.map(function(pe){return H(Q[pe])}).join(h)})).join(`
`)},L.formatRows=function(X){return X.map(F).join(`
`)};function F(X){return X.map(H).join(h)}function H(X){return M.test(X)?'"'+X.replace(/\"/g,'""')+'"':X}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var Qa,en,Ri,Mu,xk=this[Y(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){m1.apply(this,arguments)};function m1(h,g,M){var S=arguments.length;S<2&&(g=0),S<3&&(M=Date.now());var L=M+g,D={c:h,t:L,n:null};return en?en.n=D:Qa=D,en=D,Ri||(Mu=clearTimeout(Mu),Ri=1,xk(Rx)),D}function Rx(){var h=_k(),g=wk()-h;g>24?(isFinite(g)&&(clearTimeout(Mu),Mu=setTimeout(Rx,g)),Ri=0):(Ri=1,xk(Rx))}e.timer.flush=function(){_k(),wk()};function _k(){for(var h=Date.now(),g=Qa;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function wk(){for(var h,g=Qa,M=1/0;g;)g.c?(g.t<M&&(M=g.t),g=(h=g).n):g=h?h.n=g.n:Qa=g.n;return en=h,M}e.round=function(h,g){return g?Math.round(h*(g=Math.pow(10,g)))/g:Math.round(h)},e.geom={};function hc(h){return h[0]}function Hv(h){return h[1]}e.geom.hull=function(h){var g=hc,M=Hv;if(arguments.length)return S(h);function S(L){if(L.length<3)return[];var D=Mr(g),B=Mr(M),F,H=L.length,X=[],Z=[];for(F=0;F<H;F++)X.push([+D.call(this,L[F],F),+B.call(this,L[F],F),F]);for(X.sort(Xue),F=0;F<H;F++)Z.push([X[F][0],-X[F][1]]);var K=Ak(X),Q=Ak(Z),pe=Q[0]===K[0],we=Q[Q.length-1]===K[K.length-1],ee=[];for(F=K.length-1;F>=0;--F)ee.push(L[X[K[F]][2]]);for(F=+pe;F<Q.length-we;++F)ee.push(L[X[Q[F]][2]]);return ee}return S.x=function(L){return arguments.length?(g=L,S):g},S.y=function(L){return arguments.length?(M=L,S):M},S};function Ak(h){for(var g=h.length,M=[0,1],S=2,L=2;L<g;L++){for(;S>1&&Kr(h[M[S-2]],h[M[S-1]],h[L])<=0;)--S;M[S++]=L}return M.slice(0,S)}function Xue(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return $(h,y1),h};var y1=e.geom.polygon.prototype=[];y1.area=function(){for(var h=-1,g=this.length,M,S=this[g-1],L=0;++h<g;)M=S,S=this[h],L+=M[1]*S[0]-M[0]*S[1];return L*.5},y1.centroid=function(h){var g=-1,M=this.length,S=0,L=0,D,B=this[M-1],F;for(arguments.length||(h=-1/(6*this.area()));++g<M;)D=B,B=this[g],F=D[0]*B[1]-B[0]*D[1],S+=(D[0]+B[0])*F,L+=(D[1]+B[1])*F;return[S*h,L*h]},y1.clip=function(h){for(var g,M=Tk(h),S=-1,L=this.length-Tk(this),D,B,F=this[L-1],H,X,Z;++S<L;){for(g=h.slice(),h.length=0,H=this[S],X=g[(B=g.length-M)-1],D=-1;++D<B;)Z=g[D],Fx(Z,F,H)?(Fx(X,F,H)||h.push(zx(X,Z,F,H)),h.push(Z)):Fx(X,F,H)&&h.push(zx(X,Z,F,H)),X=Z;M&&h.push(h[0]),F=H}return h};function Fx(h,g,M){return(M[0]-g[0])*(h[1]-g[1])<(M[1]-g[1])*(h[0]-g[0])}function zx(h,g,M,S){var L=h[0],D=M[0],B=g[0]-L,F=S[0]-D,H=h[1],X=M[1],Z=g[1]-H,K=S[1]-X,Q=(F*(H-X)-K*(L-D))/(K*B-F*Z);return[L+Q*B,H+Q*Z]}function Tk(h){var g=h[0],M=h[h.length-1];return!(g[0]-M[0]||g[1]-M[1])}var dc,ku,pc,Mk=[],Nx,Uv,kk=[];function Zue(){x1(this),this.edge=this.site=this.circle=null}function Sk(h){var g=Mk.pop()||new Zue;return g.site=h,g}function Ix(h){yc(h),pc.remove(h),Mk.push(h),x1(h)}function $ue(h){var g=h.circle,M=g.x,S=g.cy,L={x:M,y:S},D=h.P,B=h.N,F=[h];Ix(h);for(var H=D;H.circle&&b(M-H.circle.x)<Be&&b(S-H.circle.cy)<Be;)D=H.P,F.unshift(H),Ix(H),H=D;F.unshift(H),yc(H);for(var X=B;X.circle&&b(M-X.circle.x)<Be&&b(S-X.circle.cy)<Be;)B=X.N,F.push(X),Ix(X),X=B;F.push(X),yc(X);var Z=F.length,K;for(K=1;K<Z;++K)X=F[K],H=F[K-1],g1(X.edge,H.site,X.site,L);H=F[0],X=F[Z-1],X.edge=Gv(H.site,X.site,null,L),mc(H),mc(X)}function Jue(h){for(var g=h.x,M=h.y,S,L,D,B,F=pc._;F;)if(D=qk(F,M)-g,D>Be)F=F.L;else if(B=g-Kue(F,M),B>Be){if(!F.R){S=F;break}F=F.R}else{D>-Be?(S=F.P,L=F):B>-Be?(S=F,L=F.N):S=L=F;break}var H=Sk(h);if(pc.insert(S,H),!(!S&&!L)){if(S===L){yc(S),L=Sk(S.site),pc.insert(H,L),H.edge=L.edge=Gv(S.site,H.site),mc(S),mc(L);return}if(!L){H.edge=Gv(S.site,H.site);return}yc(S),yc(L);var X=S.site,Z=X.x,K=X.y,Q=h.x-Z,pe=h.y-K,we=L.site,ee=we.x-Z,le=we.y-K,ve=2*(Q*le-pe*ee),_e=Q*Q+pe*pe,Ae=ee*ee+le*le,de={x:(le*_e-pe*Ae)/ve+Z,y:(Q*Ae-ee*_e)/ve+K};g1(L.edge,X,we,de),H.edge=Gv(X,h,null,de),L.edge=Gv(h,we,null,de),mc(S),mc(L)}}function qk(h,g){var M=h.site,S=M.x,L=M.y,D=L-g;if(!D)return S;var B=h.P;if(!B)return-1/0;M=B.site;var F=M.x,H=M.y,X=H-g;if(!X)return F;var Z=F-S,K=1/D-1/X,Q=Z/X;return K?(-Q+Math.sqrt(Q*Q-2*K*(Z*Z/(-2*X)-H+X/2+L-D/2)))/K+S:(S+F)/2}function Kue(h,g){var M=h.N;if(M)return qk(M,g);var S=h.site;return S.y===g?S.x:1/0}function Lk(h){this.site=h,this.edges=[]}Lk.prototype.prepare=function(){for(var h=this.edges,g=h.length,M;g--;)M=h[g].edge,(!M.b||!M.a)&&h.splice(g,1);return h.sort(Ck),h.length};function Que(h){for(var g=h[0][0],M=h[1][0],S=h[0][1],L=h[1][1],D,B,F,H,X=ku,Z=X.length,K,Q,pe,we,ee,le;Z--;)if(K=X[Z],!(!K||!K.prepare()))for(pe=K.edges,we=pe.length,Q=0;Q<we;)le=pe[Q].end(),F=le.x,H=le.y,ee=pe[++Q%we].start(),D=ee.x,B=ee.y,(b(F-D)>Be||b(H-B)>Be)&&(pe.splice(Q,0,new b1(nfe(K.site,le,b(F-g)<Be&&L-H>Be?{x:g,y:b(D-g)<Be?B:L}:b(H-L)<Be&&M-F>Be?{x:b(B-L)<Be?D:M,y:L}:b(F-M)<Be&&H-S>Be?{x:M,y:b(D-M)<Be?B:S}:b(H-S)<Be&&F-g>Be?{x:b(B-S)<Be?D:g,y:S}:null),K.site,null)),++we)}function Ck(h,g){return g.angle-h.angle}function efe(){x1(this),this.x=this.y=this.arc=this.site=this.cy=null}function mc(h){var g=h.P,M=h.N;if(!(!g||!M)){var S=g.site,L=h.site,D=M.site;if(S!==D){var B=L.x,F=L.y,H=S.x-B,X=S.y-F,Z=D.x-B,le=D.y-F,K=2*(H*le-X*Z);if(!(K>=-mr)){var Q=H*H+X*X,pe=Z*Z+le*le,we=(le*Q-X*pe)/K,ee=(H*pe-Z*Q)/K,le=ee+F,ve=kk.pop()||new efe;ve.arc=h,ve.site=L,ve.x=we+B,ve.y=le+Math.sqrt(we*we+ee*ee),ve.cy=le,h.circle=ve;for(var _e=null,Ae=Uv._;Ae;)if(ve.y<Ae.y||ve.y===Ae.y&&ve.x<=Ae.x)if(Ae.L)Ae=Ae.L;else{_e=Ae.P;break}else if(Ae.R)Ae=Ae.R;else{_e=Ae;break}Uv.insert(_e,ve),_e||(Nx=ve)}}}}function yc(h){var g=h.circle;g&&(g.P||(Nx=g.N),Uv.remove(g),kk.push(g),x1(g),h.circle=null)}function rfe(h,g,M,S){return function(L){var D=L.a,B=L.b,F=D.x,H=D.y,X=B.x,Z=B.y,K=0,Q=1,pe=X-F,we=Z-H,ee;if(ee=h-F,!(!pe&&ee>0)){if(ee/=pe,pe<0){if(ee<K)return;ee<Q&&(Q=ee)}else if(pe>0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=M-F,!(!pe&&ee<0)){if(ee/=pe,pe<0){if(ee>Q)return;ee>K&&(K=ee)}else if(pe>0){if(ee<K)return;ee<Q&&(Q=ee)}if(ee=g-H,!(!we&&ee>0)){if(ee/=we,we<0){if(ee<K)return;ee<Q&&(Q=ee)}else if(we>0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=S-H,!(!we&&ee<0)){if(ee/=we,we<0){if(ee>Q)return;ee>K&&(K=ee)}else if(we>0){if(ee<K)return;ee<Q&&(Q=ee)}return K>0&&(L.a={x:F+K*pe,y:H+K*we}),Q<1&&(L.b={x:F+Q*pe,y:H+Q*we}),L}}}}}}function tfe(h){for(var g=dc,M=rfe(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!afe(L,h)||!M(L)||b(L.a.x-L.b.x)<Be&&b(L.a.y-L.b.y)<Be)&&(L.a=L.b=null,g.splice(S,1))}function afe(h,g){var M=h.b;if(M)return!0;var S=h.a,L=g[0][0],D=g[1][0],B=g[0][1],F=g[1][1],H=h.l,X=h.r,Z=H.x,K=H.y,Q=X.x,pe=X.y,we=(Z+Q)/2,ee=(K+pe)/2,le,ve;if(pe===K){if(we<L||we>=D)return;if(Z>Q){if(!S)S={x:we,y:B};else if(S.y>=F)return;M={x:we,y:F}}else{if(!S)S={x:we,y:F};else if(S.y<B)return;M={x:we,y:B}}}else if(le=(Z-Q)/(pe-K),ve=ee-le*we,le<-1||le>1)if(Z>Q){if(!S)S={x:(B-ve)/le,y:B};else if(S.y>=F)return;M={x:(F-ve)/le,y:F}}else{if(!S)S={x:(F-ve)/le,y:F};else if(S.y<B)return;M={x:(B-ve)/le,y:B}}else if(K<pe){if(!S)S={x:L,y:le*L+ve};else if(S.x>=D)return;M={x:D,y:le*D+ve}}else{if(!S)S={x:D,y:le*D+ve};else if(S.x<L)return;M={x:L,y:le*L+ve}}return h.a=S,h.b=M,!0}function Dk(h,g){this.l=h,this.r=g,this.a=this.b=null}function Gv(h,g,M,S){var L=new Dk(h,g);return dc.push(L),M&&g1(L,h,g,M),S&&g1(L,g,h,S),ku[h.i].edges.push(new b1(L,h,g)),ku[g.i].edges.push(new b1(L,g,h)),L}function nfe(h,g,M){var S=new Dk(h,null);return S.a=g,S.b=M,dc.push(S),S}function g1(h,g,M,S){!h.a&&!h.b?(h.a=S,h.l=g,h.r=M):h.l===M?h.b=S:h.a=S}function b1(h,g,M){var S=h.a,L=h.b;this.edge=h,this.site=g,this.angle=M?Math.atan2(M.y-g.y,M.x-g.x):h.l===g?Math.atan2(L.x-S.x,S.y-L.y):Math.atan2(S.x-L.x,L.y-S.y)}b1.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 Bx(){this._=null}function x1(h){h.U=h.C=h.L=h.R=h.P=h.N=null}Bx.prototype={insert:function(h,g){var M,S,L;if(h){if(g.P=h,g.N=h.N,h.N&&(h.N.P=g),h.N=g,h.R){for(h=h.R;h.L;)h=h.L;h.L=g}else h.R=g;M=h}else this._?(h=Ek(this._),g.P=null,g.N=h,h.P=h.L=g,M=h):(g.P=g.N=null,this._=g,M=null);for(g.L=g.R=null,g.U=M,g.C=!0,h=g;M&&M.C;)S=M.U,M===S.L?(L=S.R,L&&L.C?(M.C=L.C=!1,S.C=!0,h=S):(h===M.R&&(Yv(this,M),h=M,M=h.U),M.C=!1,S.C=!0,Vv(this,S))):(L=S.L,L&&L.C?(M.C=L.C=!1,S.C=!0,h=S):(h===M.L&&(Vv(this,M),h=M,M=h.U),M.C=!1,S.C=!0,Yv(this,S))),M=h.U;this._.C=!1},remove:function(h){h.N&&(h.N.P=h.P),h.P&&(h.P.N=h.N),h.N=h.P=null;var g=h.U,M,S=h.L,L=h.R,D,B;if(S?L?D=Ek(L):D=S:D=L,g?g.L===h?g.L=D:g.R=D:this._=D,S&&L?(B=D.C,D.C=h.C,D.L=S,S.U=D,D!==L?(g=D.U,D.U=h.U,h=D.R,g.L=h,D.R=L,L.U=D):(D.U=g,g=D,h=D.R)):(B=h.C,h=D),h&&(h.U=g),!B){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===g.L){if(M=g.R,M.C&&(M.C=!1,g.C=!0,Yv(this,g),M=g.R),M.L&&M.L.C||M.R&&M.R.C){(!M.R||!M.R.C)&&(M.L.C=!1,M.C=!0,Vv(this,M),M=g.R),M.C=g.C,g.C=M.R.C=!1,Yv(this,g),h=this._;break}}else if(M=g.L,M.C&&(M.C=!1,g.C=!0,Vv(this,g),M=g.L),M.L&&M.L.C||M.R&&M.R.C){(!M.L||!M.L.C)&&(M.R.C=!1,M.C=!0,Yv(this,M),M=g.L),M.C=g.C,g.C=M.L.C=!1,Vv(this,g),h=this._;break}M.C=!0,h=g,g=g.U}while(!h.C);h&&(h.C=!1)}}};function Yv(h,g){var M=g,S=g.R,L=M.U;L?L.L===M?L.L=S:L.R=S:h._=S,S.U=L,M.U=S,M.R=S.L,M.R&&(M.R.U=M),S.L=M}function Vv(h,g){var M=g,S=g.L,L=M.U;L?L.L===M?L.L=S:L.R=S:h._=S,S.U=L,M.U=S,M.L=S.R,M.L&&(M.L.U=M),S.R=M}function Ek(h){for(;h.L;)h=h.L;return h}function Ox(h,g){var M=h.sort(ife).pop(),S,L,D;for(dc=[],ku=new Array(h.length),pc=new Bx,Uv=new Bx;;)if(D=Nx,M&&(!D||M.y<D.y||M.y===D.y&&M.x<D.x))(M.x!==S||M.y!==L)&&(ku[M.i]=new Lk(M),Jue(M),S=M.x,L=M.y),M=h.pop();else if(D)$ue(D.arc);else break;g&&(tfe(g),Que(g));var B={cells:ku,edges:dc};return pc=Uv=dc=ku=null,B}function ife(h,g){return g.y-h.y||g.x-h.x}e.geom.voronoi=function(h){var g=hc,M=Hv,S=g,L=M,D=_1;if(h)return B(h);function B(H){var X=new Array(H.length),Z=D[0][0],K=D[0][1],Q=D[1][0],pe=D[1][1];return Ox(F(H),D).cells.forEach(function(we,ee){var le=we.edges,ve=we.site,_e=X[ee]=le.length?le.map(function(Ae){var de=Ae.start();return[de.x,de.y]}):ve.x>=Z&&ve.x<=Q&&ve.y>=K&&ve.y<=pe?[[Z,pe],[Q,pe],[Q,K],[Z,K]]:[];_e.point=H[ee]}),X}function F(H){return H.map(function(X,Z){return{x:Math.round(S(X,Z)/Be)*Be,y:Math.round(L(X,Z)/Be)*Be,i:Z}})}return B.links=function(H){return Ox(F(H)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:H[X.l.i],target:H[X.r.i]}})},B.triangles=function(H){var X=[];return Ox(F(H)).cells.forEach(function(Z,K){for(var Q=Z.site,pe=Z.edges.sort(Ck),we=-1,ee=pe.length,le,ve,_e=pe[ee-1].edge,Ae=_e.l===Q?_e.r:_e.l;++we<ee;)le=_e,ve=Ae,_e=pe[we].edge,Ae=_e.l===Q?_e.r:_e.l,K<ve.i&&K<Ae.i&&ofe(Q,ve,Ae)<0&&X.push([H[K],H[ve.i],H[Ae.i]])}),X},B.x=function(H){return arguments.length?(S=Mr(g=H),B):g},B.y=function(H){return arguments.length?(L=Mr(M=H),B):M},B.clipExtent=function(H){return arguments.length?(D=H==null?_1:H,B):D===_1?null:D},B.size=function(H){return arguments.length?B.clipExtent(H&&[[0,0],H]):D===_1?null:D&&D[1]},B};var _1=[[-1e6,-1e6],[1e6,1e6]];function ofe(h,g,M){return(h.x-M.x)*(g.y-h.y)-(h.x-g.x)*(M.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,g,M,S,L){var D=hc,B=Hv,F;if(F=arguments.length)return D=lfe,B=sfe,F===3&&(L=M,S=g,M=g=0),H(h);function H(X){var Z,K=Mr(D),Q=Mr(B),pe,we,ee,le,ve,_e,Ae,de;if(g!=null)ve=g,_e=M,Ae=S,de=L;else if(Ae=de=-(ve=_e=1/0),pe=[],we=[],le=X.length,F)for(ee=0;ee<le;++ee)Z=X[ee],Z.x<ve&&(ve=Z.x),Z.y<_e&&(_e=Z.y),Z.x>Ae&&(Ae=Z.x),Z.y>de&&(de=Z.y),pe.push(Z.x),we.push(Z.y);else for(ee=0;ee<le;++ee){var Ve=+K(Z=X[ee],ee),lr=+Q(Z,ee);Ve<ve&&(ve=Ve),lr<_e&&(_e=lr),Ve>Ae&&(Ae=Ve),lr>de&&(de=lr),pe.push(Ve),we.push(lr)}var dr=Ae-ve,cr=de-_e;dr>cr?de=_e+dr:Ae=ve+cr;function xr(Ar,Er,ot,va,bt,nr,Ir,Or){if(!(isNaN(ot)||isNaN(va)))if(Ar.leaf){var lt=Ar.x,Kt=Ar.y;if(lt!=null)if(b(lt-ot)+b(Kt-va)<.01)_r(Ar,Er,ot,va,bt,nr,Ir,Or);else{var La=Ar.point;Ar.x=Ar.y=Ar.point=null,_r(Ar,La,lt,Kt,bt,nr,Ir,Or),_r(Ar,Er,ot,va,bt,nr,Ir,Or)}else Ar.x=ot,Ar.y=va,Ar.point=Er}else _r(Ar,Er,ot,va,bt,nr,Ir,Or)}function _r(Ar,Er,ot,va,bt,nr,Ir,Or){var lt=(bt+Ir)*.5,Kt=(nr+Or)*.5,La=ot>=lt,rn=va>=Kt,An=rn<<1|La;Ar.leaf=!1,Ar=Ar.nodes[An]||(Ar.nodes[An]=Pk()),La?bt=lt:Ir=lt,rn?nr=Kt:Or=Kt,xr(Ar,Er,ot,va,bt,nr,Ir,Or)}var Nr=Pk();if(Nr.add=function(Ar){xr(Nr,Ar,+K(Ar,++ee),+Q(Ar,ee),ve,_e,Ae,de)},Nr.visit=function(Ar){jv(Ar,Nr,ve,_e,Ae,de)},Nr.find=function(Ar){return ufe(Nr,Ar[0],Ar[1],ve,_e,Ae,de)},ee=-1,g==null){for(;++ee<le;)xr(Nr,X[ee],pe[ee],we[ee],ve,_e,Ae,de);--ee}else X.forEach(Nr.add);return pe=we=X=Z=null,Nr}return H.x=function(X){return arguments.length?(D=X,H):D},H.y=function(X){return arguments.length?(B=X,H):B},H.extent=function(X){return arguments.length?(X==null?g=M=S=L=null:(g=+X[0][0],M=+X[0][1],S=+X[1][0],L=+X[1][1]),H):g==null?null:[[g,M],[S,L]]},H.size=function(X){return arguments.length?(X==null?g=M=S=L=null:(g=M=0,S=+X[0],L=+X[1]),H):g==null?null:[S-g,L-M]},H};function lfe(h){return h.x}function sfe(h){return h.y}function Pk(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function jv(h,g,M,S,L,D){if(!h(g,M,S,L,D)){var B=(M+L)*.5,F=(S+D)*.5,H=g.nodes;H[0]&&jv(h,H[0],M,S,B,F),H[1]&&jv(h,H[1],B,S,L,F),H[2]&&jv(h,H[2],M,F,B,D),H[3]&&jv(h,H[3],B,F,L,D)}}function ufe(h,g,M,S,L,D,B){var F=1/0,H;return(function X(Z,K,Q,pe,we){if(!(K>D||Q>B||pe<S||we<L)){if(ee=Z.point){var ee,le=g-Z.x,ve=M-Z.y,_e=le*le+ve*ve;if(_e<F){var Ae=Math.sqrt(F=_e);S=g-Ae,L=M-Ae,D=g+Ae,B=M+Ae,H=ee}}for(var de=Z.nodes,Ve=(K+pe)*.5,lr=(Q+we)*.5,dr=g>=Ve,cr=M>=lr,xr=cr<<1|dr,_r=xr+4;xr<_r;++xr)if(Z=de[xr&3])switch(xr&3){case 0:X(Z,K,Q,Ve,lr);break;case 1:X(Z,Ve,Q,pe,lr);break;case 2:X(Z,K,lr,Ve,we);break;case 3:X(Z,Ve,lr,pe,we);break}}})(h,S,L,D,B),H}e.interpolateRgb=Hx;function Hx(h,g){h=e.rgb(h),g=e.rgb(g);var M=h.r,S=h.g,L=h.b,D=g.r-M,B=g.g-S,F=g.b-L;return function(H){return"#"+ps(Math.round(M+D*H))+ps(Math.round(S+B*H))+ps(Math.round(L+F*H))}}e.interpolateObject=Rk;function Rk(h,g){var M={},S={},L;for(L in h)L in g?M[L]=Su(h[L],g[L]):S[L]=h[L];for(L in g)L in h||(S[L]=g[L]);return function(D){for(L in M)S[L]=M[L](D);return S}}e.interpolateNumber=Fl;function Fl(h,g){return h=+h,g=+g,function(M){return h*(1-M)+g*M}}e.interpolateString=Fk;function Fk(h,g){var M=Ux.lastIndex=Gx.lastIndex=0,S,L,D,B=-1,F=[],H=[];for(h=h+"",g=g+"";(S=Ux.exec(h))&&(L=Gx.exec(g));)(D=L.index)>M&&(D=g.slice(M,D),F[B]?F[B]+=D:F[++B]=D),(S=S[0])===(L=L[0])?F[B]?F[B]+=L:F[++B]=L:(F[++B]=null,H.push({i:B,x:Fl(S,L)})),M=Gx.lastIndex;return M<g.length&&(D=g.slice(M),F[B]?F[B]+=D:F[++B]=D),F.length<2?H[0]?(g=H[0].x,function(X){return g(X)+""}):function(){return g}:(g=H.length,function(X){for(var Z=0,K;Z<g;++Z)F[(K=H[Z]).i]=K.x(X);return F.join("")})}var Ux=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gx=new RegExp(Ux.source,"g");e.interpolate=Su;function Su(h,g){for(var M=e.interpolators.length,S;--M>=0&&!(S=e.interpolators[M](h,g)););return S}e.interpolators=[function(h,g){var M=typeof g;return(M==="string"?kr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Hx:Fk:g instanceof Vr?Hx:Array.isArray(g)?w1:M==="object"&&isNaN(g)?Rk:Fl)(h,g)}],e.interpolateArray=w1;function w1(h,g){var M=[],S=[],L=h.length,D=g.length,B=Math.min(h.length,g.length),F;for(F=0;F<B;++F)M.push(Su(h[F],g[F]));for(;F<L;++F)S[F]=h[F];for(;F<D;++F)S[F]=g[F];return function(H){for(F=0;F<B;++F)S[F]=M[F](H);return S}}var zk=function(){return O},ffe=e.map({linear:zk,poly:mfe,quad:function(){return hfe},cubic:function(){return dfe},sin:function(){return yfe},exp:function(){return gfe},circle:function(){return bfe},elastic:xfe,back:_fe,bounce:function(){return wfe}}),cfe=e.map({in:O,out:Nk,"in-out":Ik,"out-in":function(h){return Ik(Nk(h))}});e.ease=function(h){var g=h.indexOf("-"),M=g>=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return M=ffe.get(M)||zk,S=cfe.get(S)||O,vfe(S(M.apply(null,r.call(arguments,1))))};function vfe(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function Nk(h){return function(g){return 1-h(1-g)}}function Ik(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function hfe(h){return h*h}function dfe(h){return h*h*h}function pfe(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,M=g*h;return 4*(h<.5?M:3*(h-g)+M-.75)}function mfe(h){return function(g){return Math.pow(g,h)}}function yfe(h){return 1-Math.cos(h*ne)}function gfe(h){return Math.pow(2,10*(h-1))}function bfe(h){return 1-Math.sqrt(1-h*h)}function xfe(h,g){var M;return arguments.length<2&&(g=.45),arguments.length?M=g/ur*Math.asin(1/h):(h=1,M=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-M)*ur/g)}}function _fe(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function wfe(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Afe;function Afe(h,g){h=e.hcl(h),g=e.hcl(g);var M=h.h,S=h.c,L=h.l,D=g.h-M,B=g.c-S,F=g.l-L;return isNaN(B)&&(B=0,S=isNaN(S)?g.c:S),isNaN(D)?(D=0,M=isNaN(M)?g.h:M):D>180?D-=360:D<-180&&(D+=360),function(H){return zn(M+D*H,S+B*H,L+F*H)+""}}e.interpolateHsl=Tfe;function Tfe(h,g){h=e.hsl(h),g=e.hsl(g);var M=h.h,S=h.s,L=h.l,D=g.h-M,B=g.s-S,F=g.l-L;return isNaN(B)&&(B=0,S=isNaN(S)?g.s:S),isNaN(D)?(D=0,M=isNaN(M)?g.h:M):D>180?D-=360:D<-180&&(D+=360),function(H){return kt(M+D*H,S+B*H,L+F*H)+""}}e.interpolateLab=Mfe;function Mfe(h,g){h=e.lab(h),g=e.lab(g);var M=h.l,S=h.a,L=h.b,D=g.l-M,B=g.a-S,F=g.b-L;return function(H){return Yt(M+D*H,S+B*H,L+F*H)+""}}e.interpolateRound=Bk;function Bk(h,g){return g-=h,function(M){return Math.round(h+g*M)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(M){if(M!=null){g.setAttribute("transform",M);var S=g.transform.baseVal.consolidate()}return new Ok(S?S.matrix:Sfe)})(h)};function Ok(h){var g=[h.a,h.b],M=[h.c,h.d],S=Uk(g),L=Hk(g,M),D=Uk(kfe(M,g,-L))||0;g[0]*M[1]<M[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,L*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-M[0],M[1]))*Ne,this.translate=[h.e,h.f],this.scale=[S,D],this.skew=D?Math.atan2(L,D)*Ne:0}Ok.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Hk(h,g){return h[0]*g[0]+h[1]*g[1]}function Uk(h){var g=Math.sqrt(Hk(h,h));return g&&(h[0]/=g,h[1]/=g),g}function kfe(h,g,M){return h[0]+=M*g[0],h[1]+=M*g[1],h}var Sfe={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=Gk;function gc(h){return h.length?h.pop()+",":""}function qfe(h,g,M,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=M.push("translate(",null,",",null,")");S.push({i:L-4,x:Fl(h[0],g[0])},{i:L-2,x:Fl(h[1],g[1])})}else(g[0]||g[1])&&M.push("translate("+g+")")}function Lfe(h,g,M,S){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),S.push({i:M.push(gc(M)+"rotate(",null,")")-2,x:Fl(h,g)})):g&&M.push(gc(M)+"rotate("+g+")")}function Cfe(h,g,M,S){h!==g?S.push({i:M.push(gc(M)+"skewX(",null,")")-2,x:Fl(h,g)}):g&&M.push(gc(M)+"skewX("+g+")")}function Dfe(h,g,M,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=M.push(gc(M)+"scale(",null,",",null,")");S.push({i:L-4,x:Fl(h[0],g[0])},{i:L-2,x:Fl(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&M.push(gc(M)+"scale("+g+")")}function Gk(h,g){var M=[],S=[];return h=e.transform(h),g=e.transform(g),qfe(h.translate,g.translate,M,S),Lfe(h.rotate,g.rotate,M,S),Cfe(h.skew,g.skew,M,S),Dfe(h.scale,g.scale,M,S),h=g=null,function(L){for(var D=-1,B=S.length,F;++D<B;)M[(F=S[D]).i]=F.x(L);return M.join("")}}function Efe(h,g){return g=(g-=h=+h)||1/g,function(M){return(M-h)/g}}function Pfe(h,g){return g=(g-=h=+h)||1/g,function(M){return Math.max(0,Math.min(1,(M-h)/g))}}e.layout={},e.layout.bundle=function(){return function(h){for(var g=[],M=-1,S=h.length;++M<S;)g.push(Rfe(h[M]));return g}};function Rfe(h){for(var g=h.source,M=h.target,S=Ffe(g,M),L=[g];g!==S;)g=g.parent,L.push(g);for(var D=L.length;M!==S;)L.splice(D,0,M),M=M.parent;return L}function Yk(h){for(var g=[],M=h.parent;M!=null;)g.push(h),h=M,M=M.parent;return g.push(h),g}function Ffe(h,g){if(h===g)return h;for(var M=Yk(h),S=Yk(g),L=M.pop(),D=S.pop(),B=null;L===D;)B=L,L=M.pop(),D=S.pop();return B}e.layout.chord=function(){var h={},g,M,S,L,D=0,B,F,H;function X(){var K={},Q=[],pe=e.range(L),we=[],ee,le,ve,_e,Ae;for(g=[],M=[],ee=0,_e=-1;++_e<L;){for(le=0,Ae=-1;++Ae<L;)le+=S[_e][Ae];Q.push(le),we.push(e.range(L)),ee+=le}for(B&&pe.sort(function(Nr,Ar){return B(Q[Nr],Q[Ar])}),F&&we.forEach(function(Nr,Ar){Nr.sort(function(Er,ot){return F(S[Ar][Er],S[Ar][ot])})}),ee=(ur-D*L)/ee,le=0,_e=-1;++_e<L;){for(ve=le,Ae=-1;++Ae<L;){var de=pe[_e],Ve=we[de][Ae],lr=S[de][Ve],dr=le,cr=le+=lr*ee;K[de+"-"+Ve]={index:de,subindex:Ve,startAngle:dr,endAngle:cr,value:lr}}M[de]={index:de,startAngle:ve,endAngle:le,value:Q[de]},le+=D}for(_e=-1;++_e<L;)for(Ae=_e-1;++Ae<L;){var xr=K[_e+"-"+Ae],_r=K[Ae+"-"+_e];(xr.value||_r.value)&&g.push(xr.value<_r.value?{source:_r,target:xr}:{source:xr,target:_r})}H&&Z()}function Z(){g.sort(function(K,Q){return H((K.source.value+K.target.value)/2,(Q.source.value+Q.target.value)/2)})}return h.matrix=function(K){return arguments.length?(L=(S=K)&&S.length,g=M=null,h):S},h.padding=function(K){return arguments.length?(D=K,g=M=null,h):D},h.sortGroups=function(K){return arguments.length?(B=K,g=M=null,h):B},h.sortSubgroups=function(K){return arguments.length?(F=K,g=null,h):F},h.sortChords=function(K){return arguments.length?(H=K,g&&Z(),h):H},h.chords=function(){return g||X(),g},h.groups=function(){return M||X(),M},h},e.layout.force=function(){var h={},g=e.dispatch("start","tick","end"),M,S=[1,1],L,D,B=.9,F=Ofe,H=Hfe,X=-30,Z=Ufe,K=.1,Q=.64,pe=[],we=[],ee,le,ve;function _e(de){return function(Ve,lr,dr,cr){if(Ve.point!==de){var xr=Ve.cx-de.x,_r=Ve.cy-de.y,Nr=cr-lr,Ar=xr*xr+_r*_r;if(Nr*Nr/Q<Ar){if(Ar<Z){var Er=Ve.charge/Ar;de.px-=xr*Er,de.py-=_r*Er}return!0}if(Ve.point&&Ar&&Ar<Z){var Er=Ve.pointCharge/Ar;de.px-=xr*Er,de.py-=_r*Er}}return!Ve.charge}}h.tick=function(){if((D*=.99)<.005)return M=null,g.end({type:"end",alpha:D=0}),!0;var de=pe.length,Ve=we.length,lr,dr,cr,xr,_r,Nr,Ar,Er,ot;for(dr=0;dr<Ve;++dr)cr=we[dr],xr=cr.source,_r=cr.target,Er=_r.x-xr.x,ot=_r.y-xr.y,(Nr=Er*Er+ot*ot)&&(Nr=D*le[dr]*((Nr=Math.sqrt(Nr))-ee[dr])/Nr,Er*=Nr,ot*=Nr,_r.x-=Er*(Ar=xr.weight+_r.weight?xr.weight/(xr.weight+_r.weight):.5),_r.y-=ot*Ar,xr.x+=Er*(Ar=1-Ar),xr.y+=ot*Ar);if((Ar=D*K)&&(Er=S[0]/2,ot=S[1]/2,dr=-1,Ar))for(;++dr<de;)cr=pe[dr],cr.x+=(Er-cr.x)*Ar,cr.y+=(ot-cr.y)*Ar;if(X)for(Vk(lr=e.geom.quadtree(pe),D,ve),dr=-1;++dr<de;)(cr=pe[dr]).fixed||lr.visit(_e(cr));for(dr=-1;++dr<de;)cr=pe[dr],cr.fixed?(cr.x=cr.px,cr.y=cr.py):(cr.x-=(cr.px-(cr.px=cr.x))*B,cr.y-=(cr.py-(cr.py=cr.y))*B);g.tick({type:"tick",alpha:D})},h.nodes=function(de){return arguments.length?(pe=de,h):pe},h.links=function(de){return arguments.length?(we=de,h):we},h.size=function(de){return arguments.length?(S=de,h):S},h.linkDistance=function(de){return arguments.length?(F=typeof de=="function"?de:+de,h):F},h.distance=h.linkDistance,h.linkStrength=function(de){return arguments.length?(H=typeof de=="function"?de:+de,h):H},h.friction=function(de){return arguments.length?(B=+de,h):B},h.charge=function(de){return arguments.length?(X=typeof de=="function"?de:+de,h):X},h.chargeDistance=function(de){return arguments.length?(Z=de*de,h):Math.sqrt(Z)},h.gravity=function(de){return arguments.length?(K=+de,h):K},h.theta=function(de){return arguments.length?(Q=de*de,h):Math.sqrt(Q)},h.alpha=function(de){return arguments.length?(de=+de,D?de>0?D=de:(M.c=null,M.t=NaN,M=null,g.end({type:"end",alpha:D=0})):de>0&&(g.start({type:"start",alpha:D=de}),M=m1(h.tick)),h):D},h.start=function(){var de,Ve=pe.length,lr=we.length,dr=S[0],cr=S[1],xr,_r;for(de=0;de<Ve;++de)(_r=pe[de]).index=de,_r.weight=0;for(de=0;de<lr;++de)_r=we[de],typeof _r.source=="number"&&(_r.source=pe[_r.source]),typeof _r.target=="number"&&(_r.target=pe[_r.target]),++_r.source.weight,++_r.target.weight;for(de=0;de<Ve;++de)_r=pe[de],isNaN(_r.x)&&(_r.x=Nr("x",dr)),isNaN(_r.y)&&(_r.y=Nr("y",cr)),isNaN(_r.px)&&(_r.px=_r.x),isNaN(_r.py)&&(_r.py=_r.y);if(ee=[],typeof F=="function")for(de=0;de<lr;++de)ee[de]=+F.call(this,we[de],de);else for(de=0;de<lr;++de)ee[de]=F;if(le=[],typeof H=="function")for(de=0;de<lr;++de)le[de]=+H.call(this,we[de],de);else for(de=0;de<lr;++de)le[de]=H;if(ve=[],typeof X=="function")for(de=0;de<Ve;++de)ve[de]=+X.call(this,pe[de],de);else for(de=0;de<Ve;++de)ve[de]=X;function Nr(Ar,Er){if(!xr){for(xr=new Array(Ve),bt=0;bt<Ve;++bt)xr[bt]=[];for(bt=0;bt<lr;++bt){var ot=we[bt];xr[ot.source.index].push(ot.target),xr[ot.target.index].push(ot.source)}}for(var va=xr[de],bt=-1,nr=va.length,Ir;++bt<nr;)if(!isNaN(Ir=va[bt][Ar]))return Ir;return Math.random()*Er}return h.resume()},h.resume=function(){return h.alpha(.1)},h.stop=function(){return h.alpha(0)},h.drag=function(){if(L||(L=e.behavior.drag().origin(O).on("dragstart.force",zfe).on("drag.force",Ae).on("dragend.force",Nfe)),!arguments.length)return L;this.on("mouseover.force",Ife).on("mouseout.force",Bfe).call(L)};function Ae(de){de.px=e.event.x,de.py=e.event.y,h.resume()}return e.rebind(h,g,"on")};function zfe(h){h.fixed|=2}function Nfe(h){h.fixed&=-7}function Ife(h){h.fixed|=4,h.px=h.x,h.py=h.y}function Bfe(h){h.fixed&=-5}function Vk(h,g,M){var S=0,L=0;if(h.charge=0,!h.leaf)for(var D=h.nodes,B=D.length,F=-1,H;++F<B;)H=D[F],H!=null&&(Vk(H,g,M),h.charge+=H.charge,S+=H.charge*H.cx,L+=H.charge*H.cy);if(h.point){h.leaf||(h.point.x+=Math.random()-.5,h.point.y+=Math.random()-.5);var X=g*M[h.point.index];h.charge+=h.pointCharge=X,S+=X*h.point.x,L+=X*h.point.y}h.cx=S/h.charge,h.cy=L/h.charge}var Ofe=20,Hfe=1,Ufe=1/0;e.layout.hierarchy=function(){var h=Vfe,g=Gfe,M=Yfe;function S(L){var D=[L],B=[],F;for(L.depth=0;(F=D.pop())!=null;)if(B.push(F),(X=g.call(S,F,F.depth))&&(H=X.length)){for(var H,X,Z;--H>=0;)D.push(Z=X[H]),Z.parent=F,Z.depth=F.depth+1;M&&(F.value=0),F.children=X}else M&&(F.value=+M.call(S,F,F.depth)||0),delete F.children;return Qo(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),M&&(pe=K.parent)&&(pe.value+=K.value)}),B}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(M=L,S):M},S.revalue=function(L){return M&&(Xv(L,function(D){D.children&&(D.value=0)}),Qo(L,function(D){var B;D.children||(D.value=+M.call(S,D,D.depth)||0),(B=D.parent)&&(B.value+=D.value)})),L},S};function Wv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=jfe,h}function Xv(h,g){for(var M=[h];(h=M.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)M.push(L[S])}function Qo(h,g){for(var M=[h],S=[];(h=M.pop())!=null;)if(S.push(h),(B=h.children)&&(D=B.length))for(var L=-1,D,B;++L<D;)M.push(B[L]);for(;(h=S.pop())!=null;)g(h)}function Gfe(h){return h.children}function Yfe(h){return h.value}function Vfe(h,g){return g.value-h.value}function jfe(h){return e.merge(h.map(function(g){return(g.children||[]).map(function(M){return{source:g,target:M}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),g=[1,1];function M(D,B,F,H){var X=D.children;if(D.x=B,D.y=D.depth*H,D.dx=F,D.dy=H,X&&(K=X.length)){var Z=-1,K,Q,pe;for(F=D.value?F/D.value:0;++Z<K;)M(Q=X[Z],B,pe=Q.value*F,H),B+=pe}}function S(D){var B=D.children,F=0;if(B&&(X=B.length))for(var H=-1,X;++H<X;)F=Math.max(F,S(B[H]));return 1+F}function L(D,B){var F=h.call(this,D,B);return M(F[0],0,g[0],g[1]/S(F[0])),F}return L.size=function(D){return arguments.length?(g=D,L):g},Wv(L,h)},e.layout.pie=function(){var h=Number,g=jk,M=0,S=ur,L=0;function D(B){var F=B.length,H=B.map(function(_e,Ae){return+h.call(D,_e,Ae)}),X=+(typeof M=="function"?M.apply(this,arguments):M),Z=(typeof S=="function"?S.apply(this,arguments):S)-X,K=Math.min(Math.abs(Z)/F,+(typeof L=="function"?L.apply(this,arguments):L)),Q=K*(Z<0?-1:1),pe=e.sum(H),we=pe?(Z-F*Q)/pe:0,ee=e.range(F),le=[],ve;return g!=null&&ee.sort(g===jk?function(_e,Ae){return H[Ae]-H[_e]}:function(_e,Ae){return g(B[_e],B[Ae])}),ee.forEach(function(_e){le[_e]={data:B[_e],value:ve=H[_e],startAngle:X,endAngle:X+=ve*we+Q,padAngle:K}}),le}return D.value=function(B){return arguments.length?(h=B,D):h},D.sort=function(B){return arguments.length?(g=B,D):g},D.startAngle=function(B){return arguments.length?(M=B,D):M},D.endAngle=function(B){return arguments.length?(S=B,D):S},D.padAngle=function(B){return arguments.length?(L=B,D):L},D};var jk={};e.layout.stack=function(){var h=O,g=Yx,M=Vx,S=Zfe,L=Wfe,D=Xfe;function B(F,H){if(!(we=F.length))return F;var X=F.map(function(_e,Ae){return h.call(B,_e,Ae)}),Z=X.map(function(_e){return _e.map(function(Ae,de){return[L.call(B,Ae,de),D.call(B,Ae,de)]})}),K=g.call(B,Z,H);X=e.permute(X,K),Z=e.permute(Z,K);var Q=M.call(B,Z,H),pe=X[0].length,we,ee,le,ve;for(le=0;le<pe;++le)for(S.call(B,X[0][le],ve=Q[le],Z[0][le][1]),ee=1;ee<we;++ee)S.call(B,X[ee][le],ve+=Z[ee-1][le][1],Z[ee][le][1]);return F}return B.values=function(F){return arguments.length?(h=F,B):h},B.order=function(F){return arguments.length?(g=typeof F=="function"?F:$fe.get(F)||Yx,B):g},B.offset=function(F){return arguments.length?(M=typeof F=="function"?F:Jfe.get(F)||Vx,B):M},B.x=function(F){return arguments.length?(L=F,B):L},B.y=function(F){return arguments.length?(D=F,B):D},B.out=function(F){return arguments.length?(S=F,B):S},B};function Wfe(h){return h.x}function Xfe(h){return h.y}function Zfe(h,g,M){h.y0=g,h.y=M}var $fe=e.map({"inside-out":function(h){var g=h.length,M,S,L=h.map(Kfe),D=h.map(Qfe),B=e.range(g).sort(function(K,Q){return L[K]-L[Q]}),F=0,H=0,X=[],Z=[];for(M=0;M<g;++M)S=B[M],F<H?(F+=D[S],X.push(S)):(H+=D[S],Z.push(S));return Z.reverse().concat(X)},reverse:function(h){return e.range(h.length).reverse()},default:Yx}),Jfe=e.map({silhouette:function(h){var g=h.length,M=h[0].length,S=[],L=0,D,B,F,H=[];for(B=0;B<M;++B){for(D=0,F=0;D<g;D++)F+=h[D][B][1];F>L&&(L=F),S.push(F)}for(B=0;B<M;++B)H[B]=(L-S[B])/2;return H},wiggle:function(h){var g=h.length,M=h[0],S=M.length,L,D,B,F,H,X,Z,K,Q,pe=[];for(pe[0]=K=Q=0,D=1;D<S;++D){for(L=0,F=0;L<g;++L)F+=h[L][D][1];for(L=0,H=0,Z=M[D][0]-M[D-1][0];L<g;++L){for(B=0,X=(h[L][D][1]-h[L][D-1][1])/(2*Z);B<L;++B)X+=(h[B][D][1]-h[B][D-1][1])/Z;H+=X*h[L][D][1]}pe[D]=K-=F?H/F*Z:0,K<Q&&(Q=K)}for(D=0;D<S;++D)pe[D]-=Q;return pe},expand:function(h){var g=h.length,M=h[0].length,S=1/g,L,D,B,F=[];for(D=0;D<M;++D){for(L=0,B=0;L<g;L++)B+=h[L][D][1];if(B)for(L=0;L<g;L++)h[L][D][1]/=B;else for(L=0;L<g;L++)h[L][D][1]=S}for(D=0;D<M;++D)F[D]=0;return F},zero:Vx});function Yx(h){return e.range(h.length)}function Vx(h){for(var g=-1,M=h[0].length,S=[];++g<M;)S[g]=0;return S}function Kfe(h){for(var g=1,M=0,S=h[0][1],L,D=h.length;g<D;++g)(L=h[g][1])>S&&(M=g,S=L);return M}function Qfe(h){return h.reduce(ece,0)}function ece(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,M=tce,S=rce;function L(D,Q){for(var F=[],H=D.map(g,this),X=M.call(this,H,Q),Z=S.call(this,X,H,Q),K,Q=-1,pe=H.length,we=Z.length-1,ee=h?1:1/pe,le;++Q<we;)K=F[Q]=[],K.dx=Z[Q+1]-(K.x=Z[Q]),K.y=0;if(we>0)for(Q=-1;++Q<pe;)le=H[Q],le>=X[0]&&le<=X[1]&&(K=F[e.bisect(Z,le,1,we)-1],K.y+=ee,K.push(D[Q]));return F}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(M=Mr(D),L):M},L.bins=function(D){return arguments.length?(S=typeof D=="number"?function(B){return Wk(B,D)}:Mr(D),L):S},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function rce(h,g){return Wk(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Wk(h,g){for(var M=-1,S=+h[0],L=(h[1]-S)/g,D=[];++M<=g;)D[M]=L*M+S;return D}function tce(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(ace),g=0,M=[1,1],S;function L(D,B){var F=h.call(this,D,B),H=F[0],X=M[0],Z=M[1],K=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(H.x=H.y=0,Qo(H,function(pe){pe.r=+K(pe.value)}),Qo(H,$k),g){var Q=g*(S?1:Math.max(2*H.r/X,2*H.r/Z))/2;Qo(H,function(pe){pe.r+=Q}),Qo(H,$k),Qo(H,function(pe){pe.r-=Q})}return Jk(H,X/2,Z/2,S?1:1/Math.max(2*H.r/X,2*H.r/Z)),F}return L.size=function(D){return arguments.length?(M=D,L):M},L.radius=function(D){return arguments.length?(S=D==null||typeof D=="function"?D:+D,L):S},L.padding=function(D){return arguments.length?(g=+D,L):g},Wv(L,h)};function ace(h,g){return h.value-g.value}function jx(h,g){var M=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=M,M._pack_prev=g}function Xk(h,g){h._pack_next=g,g._pack_prev=h}function Zk(h,g){var M=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>M*M+S*S}function $k(h){if(!(g=h.children)||!(Q=g.length))return;var g,M=1/0,S=-1/0,L=1/0,D=-1/0,B,F,H,X,Z,K,Q;function pe(de){M=Math.min(de.x-de.r,M),S=Math.max(de.x+de.r,S),L=Math.min(de.y-de.r,L),D=Math.max(de.y+de.r,D)}if(g.forEach(nce),B=g[0],B.x=-B.r,B.y=0,pe(B),Q>1&&(F=g[1],F.x=F.r,F.y=0,pe(F),Q>2))for(H=g[2],Kk(B,F,H),pe(H),jx(B,H),B._pack_prev=H,jx(H,F),F=B._pack_next,X=3;X<Q;X++){Kk(B,F,H=g[X]);var we=0,ee=1,le=1;for(Z=F._pack_next;Z!==F;Z=Z._pack_next,ee++)if(Zk(Z,H)){we=1;break}if(we==1)for(K=B._pack_prev;K!==Z._pack_prev&&!Zk(K,H);K=K._pack_prev,le++);we?(ee<le||ee==le&&F.r<B.r?Xk(B,F=Z):Xk(B=K,F),X--):(jx(B,H),F=H,pe(H))}var ve=(M+S)/2,_e=(L+D)/2,Ae=0;for(X=0;X<Q;X++)H=g[X],H.x-=ve,H.y-=_e,Ae=Math.max(Ae,H.r+Math.sqrt(H.x*H.x+H.y*H.y));h.r=Ae,g.forEach(ice)}function nce(h){h._pack_next=h._pack_prev=h}function ice(h){delete h._pack_next,delete h._pack_prev}function Jk(h,g,M,S){var L=h.children;if(h.x=g+=S*h.x,h.y=M+=S*h.y,h.r*=S,L)for(var D=-1,B=L.length;++D<B;)Jk(L[D],g,M,S)}function Kk(h,g,M){var S=h.r+M.r,L=g.x-h.x,D=g.y-h.y;if(S&&(L||D)){var B=g.r+M.r,F=L*L+D*D;B*=B,S*=S;var H=.5+(S-B)/(2*F),X=Math.sqrt(Math.max(0,2*B*(S+F)-(S-=F)*S-B*B))/(2*F);M.x=h.x+H*L+X*D,M.y=h.y+H*D-X*L}else M.x=h.x+S,M.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Qk,M=[1,1],S=null;function L(Z,K){var Q=h.call(this,Z,K),pe=Q[0],we=D(pe);if(Qo(we,B),we.parent.m=-we.z,Xv(we,F),S)Xv(pe,X);else{var ee=pe,le=pe,ve=pe;Xv(pe,function(Ve){Ve.x<ee.x&&(ee=Ve),Ve.x>le.x&&(le=Ve),Ve.depth>ve.depth&&(ve=Ve)});var _e=g(ee,le)/2-ee.x,Ae=M[0]/(le.x+g(le,ee)/2+_e),de=M[1]/(ve.depth||1);Xv(pe,function(Ve){Ve.x=(Ve.x+_e)*Ae,Ve.y=Ve.depth*de})}return Q}function D(Z){for(var K={A:null,children:[Z]},Q=[K],pe;(pe=Q.pop())!=null;)for(var we=pe.children,ee,le=0,ve=we.length;le<ve;++le)Q.push((we[le]=ee={_:we[le],parent:pe,children:(ee=we[le].children)&&ee.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:le}).a=ee);return K.children[0]}function B(Z){var K=Z.children,Q=Z.parent.children,pe=Z.i?Q[Z.i-1]:null;if(K.length){lce(Z);var we=(K[0].z+K[K.length-1].z)/2;pe?(Z.z=pe.z+g(Z._,pe._),Z.m=Z.z-we):Z.z=we}else pe&&(Z.z=pe.z+g(Z._,pe._));Z.parent.A=H(Z,pe,Z.parent.A||Q[0])}function F(Z){Z._.x=Z.z+Z.parent.m,Z.m+=Z.parent.m}function H(Z,K,Q){if(K){for(var pe=Z,we=Z,ee=K,le=pe.parent.children[0],ve=pe.m,_e=we.m,Ae=ee.m,de=le.m,Ve;ee=Xx(ee),pe=Wx(pe),ee&&pe;)le=Wx(le),we=Xx(we),we.a=Z,Ve=ee.z+Ae-pe.z-ve+g(ee._,pe._),Ve>0&&(oce(sce(ee,Z,Q),Z,Ve),ve+=Ve,_e+=Ve),Ae+=ee.m,ve+=pe.m,de+=le.m,_e+=we.m;ee&&!Xx(we)&&(we.t=ee,we.m+=Ae-_e),pe&&!Wx(le)&&(le.t=pe,le.m+=ve-de,Q=Z)}return Q}function X(Z){Z.x*=M[0],Z.y=Z.depth*M[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(S=(M=Z)==null?X:null,L):S?null:M},L.nodeSize=function(Z){return arguments.length?(S=(M=Z)==null?null:X,L):S?M:null},Wv(L,h)};function Qk(h,g){return h.parent==g.parent?1:2}function Wx(h){var g=h.children;return g.length?g[0]:h.t}function Xx(h){var g=h.children,M;return(M=g.length)?g[M-1]:h.t}function oce(h,g,M){var S=M/(g.i-h.i);g.c-=S,g.s+=M,h.c+=S,g.z+=M,g.m+=M}function lce(h){for(var g=0,M=0,S=h.children,L=S.length,D;--L>=0;)D=S[L],D.z+=g,D.m+=g,g+=D.s+(M+=D.c)}function sce(h,g,M){return h.a.parent===g.parent?h.a:M}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Qk,M=[1,1],S=!1;function L(D,B){var F=h.call(this,D,B),H=F[0],X,Z=0;Qo(H,function(ee){var le=ee.children;le&&le.length?(ee.x=fce(le),ee.y=uce(le)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var K=eS(H),Q=rS(H),pe=K.x-g(K,Q)/2,we=Q.x+g(Q,K)/2;return Qo(H,S?function(ee){ee.x=(ee.x-H.x)*M[0],ee.y=(H.y-ee.y)*M[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*M[0],ee.y=(1-(H.y?ee.y/H.y:1))*M[1]}),F}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(S=(M=D)==null,L):S?null:M},L.nodeSize=function(D){return arguments.length?(S=(M=D)!=null,L):S?M:null},Wv(L,h)};function uce(h){return 1+e.max(h,function(g){return g.y})}function fce(h){return h.reduce(function(g,M){return g+M.x},0)/h.length}function eS(h){var g=h.children;return g&&g.length?eS(g[0]):h}function rS(h){var g=h.children,M;return g&&(M=g.length)?rS(g[M-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,M=[1,1],S=null,L=Zx,D=!1,B,F="squarify",H=.5*(1+Math.sqrt(5));function X(ee,le){for(var ve=-1,_e=ee.length,Ae,de;++ve<_e;)de=(Ae=ee[ve]).value*(le<0?0:le),Ae.area=isNaN(de)||de<=0?0:de}function Z(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),_e=[],Ae=le.slice(),de,Ve=1/0,lr,dr=F==="slice"?ve.dx:F==="dice"?ve.dy:F==="slice-dice"?ee.depth&1?ve.dy:ve.dx:Math.min(ve.dx,ve.dy),cr;for(X(Ae,ve.dx*ve.dy/ee.value),_e.area=0;(cr=Ae.length)>0;)_e.push(de=Ae[cr-1]),_e.area+=de.area,F!=="squarify"||(lr=Q(_e,dr))<=Ve?(Ae.pop(),Ve=lr):(_e.area-=_e.pop().area,pe(_e,dr,ve,!1),dr=Math.min(ve.dx,ve.dy),_e.length=_e.area=0,Ve=1/0);_e.length&&(pe(_e,dr,ve,!0),_e.length=_e.area=0),le.forEach(Z)}}function K(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),_e=le.slice(),Ae,de=[];for(X(_e,ve.dx*ve.dy/ee.value),de.area=0;Ae=_e.pop();)de.push(Ae),de.area+=Ae.area,Ae.z!=null&&(pe(de,Ae.z?ve.dx:ve.dy,ve,!_e.length),de.length=de.area=0);le.forEach(K)}}function Q(ee,le){for(var ve=ee.area,_e,Ae=0,de=1/0,Ve=-1,lr=ee.length;++Ve<lr;)(_e=ee[Ve].area)&&(_e<de&&(de=_e),_e>Ae&&(Ae=_e));return ve*=ve,le*=le,ve?Math.max(le*Ae*H/ve,ve/(le*de*H)):1/0}function pe(ee,le,ve,_e){var Ae=-1,de=ee.length,Ve=ve.x,lr=ve.y,dr=le?g(ee.area/le):0,cr;if(le==ve.dx){for((_e||dr>ve.dy)&&(dr=ve.dy);++Ae<de;)cr=ee[Ae],cr.x=Ve,cr.y=lr,cr.dy=dr,Ve+=cr.dx=Math.min(ve.x+ve.dx-Ve,dr?g(cr.area/dr):0);cr.z=!0,cr.dx+=ve.x+ve.dx-Ve,ve.y+=dr,ve.dy-=dr}else{for((_e||dr>ve.dx)&&(dr=ve.dx);++Ae<de;)cr=ee[Ae],cr.x=Ve,cr.y=lr,cr.dx=dr,lr+=cr.dy=Math.min(ve.y+ve.dy-lr,dr?g(cr.area/dr):0);cr.z=!1,cr.dy+=ve.y+ve.dy-lr,ve.x+=dr,ve.dx-=dr}}function we(ee){var le=B||h(ee),ve=le[0];return ve.x=ve.y=0,ve.value?(ve.dx=M[0],ve.dy=M[1]):ve.dx=ve.dy=0,B&&h.revalue(ve),X([ve],ve.dx*ve.dy/ve.value),(B?K:Z)(ve),D&&(B=le),le}return we.size=function(ee){return arguments.length?(M=ee,we):M},we.padding=function(ee){if(!arguments.length)return S;function le(Ae){var de=ee.call(we,Ae,Ae.depth);return de==null?Zx(Ae):tS(Ae,typeof de=="number"?[de,de,de,de]:de)}function ve(Ae){return tS(Ae,ee)}var _e;return L=(S=ee)==null?Zx:(_e=typeof ee)=="function"?le:(_e==="number"&&(ee=[ee,ee,ee,ee]),ve),we},we.round=function(ee){return arguments.length?(g=ee?Math.round:Number,we):g!=Number},we.sticky=function(ee){return arguments.length?(D=ee,B=null,we):D},we.ratio=function(ee){return arguments.length?(H=ee,we):H},we.mode=function(ee){return arguments.length?(F=ee+"",we):F},Wv(we,h)};function Zx(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function tS(h,g){var M=h.x+g[3],S=h.y+g[0],L=h.dx-g[1]-g[3],D=h.dy-g[0]-g[2];return L<0&&(M+=L/2,L=0),D<0&&(S+=D/2,D=0),{x:M,y:S,dx:L,dy:D}}e.random={normal:function(h,g){var M=arguments.length;return M<2&&(g=1),M<1&&(h=0),function(){var S,L,D;do S=Math.random()*2-1,L=Math.random()*2-1,D=S*S+L*L;while(!D||D>1);return h+g*S*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,M=0;M<h;M++)g+=Math.random();return g}}},e.scale={};function A1(h){var g=h[0],M=h[h.length-1];return g<M?[g,M]:[M,g]}function T1(h){return h.rangeExtent?h.rangeExtent():A1(h.range())}function cce(h,g,M,S){var L=M(h[0],h[1]),D=S(g[0],g[1]);return function(B){return D(L(B))}}function $x(h,g){var M=0,S=h.length-1,L=h[M],D=h[S],B;return D<L&&(B=M,M=S,S=B,B=L,L=D,D=B),h[M]=g.floor(L),h[S]=g.ceil(D),h}function aS(h){return h?{floor:function(g){return Math.floor(g/h)*h},ceil:function(g){return Math.ceil(g/h)*h}}:vce}var vce={floor:O,ceil:O};function hce(h,g,M,S){var L=[],D=[],B=0,F=Math.min(h.length,g.length)-1;for(h[F]<h[0]&&(h=h.slice().reverse(),g=g.slice().reverse());++B<=F;)L.push(M(h[B-1],h[B])),D.push(S(g[B-1],g[B]));return function(H){var X=e.bisect(h,H,1,F)-1;return D[X](L[X](H))}}e.scale.linear=function(){return nS([0,1],[0,1],Su,!1)};function nS(h,g,M,S){var L,D;function B(){var H=Math.min(h.length,g.length)>2?hce:cce,X=S?Pfe:Efe;return L=H(h,g,X,M),D=H(g,h,X,Su),F}function F(H){return L(H)}return F.invert=function(H){return D(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),B()):h},F.range=function(H){return arguments.length?(g=H,B()):g},F.rangeRound=function(H){return F.range(H).interpolate(Bk)},F.clamp=function(H){return arguments.length?(S=H,B()):S},F.interpolate=function(H){return arguments.length?(M=H,B()):M},F.ticks=function(H){return Kx(h,H)},F.tickFormat=function(H,X){return d3_scale_linearTickFormat(h,H,X)},F.nice=function(H){return oS(h,H),B()},F.copy=function(){return nS(h,g,M,S)},B()}function iS(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function oS(h,g){return $x(h,aS(Jx(h,g)[2])),$x(h,aS(Jx(h,g)[2])),h}function Jx(h,g){g==null&&(g=10);var M=A1(h),S=M[1]-M[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),D=g/S*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),M[0]=Math.ceil(M[0]/L)*L,M[1]=Math.floor(M[1]/L)*L+L*.5,M[2]=L,M}function Kx(h,g){return e.range.apply(e,Jx(h,g))}var dce={s:1,g:1,p:1,r:1,e:1};function lS(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function ije(h,g){var M=lS(g[2]);return h in dce?Math.abs(M-lS(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):M-(h==="%")*2}e.scale.log=function(){return sS(e.scale.linear().domain([0,1]),10,!0,[1,10])};function sS(h,g,M,S){function L(F){return(M?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function D(F){return M?Math.pow(g,F):-Math.pow(g,-F)}function B(F){return h(L(F))}return B.invert=function(F){return D(h.invert(F))},B.domain=function(F){return arguments.length?(M=F[0]>=0,h.domain((S=F.map(Number)).map(L)),B):S},B.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),B):g},B.nice=function(){var F=$x(S.map(L),M?Math:pce);return h.domain(F),S=F.map(D),B},B.ticks=function(){var F=A1(S),H=[],X=F[0],Z=F[1],K=Math.floor(L(X)),Q=Math.ceil(L(Z)),pe=g%1?2:g;if(isFinite(Q-K)){if(M){for(;K<Q;K++)for(var we=1;we<pe;we++)H.push(D(K)*we);H.push(D(K))}else for(H.push(D(K));K++<Q;)for(var we=pe-1;we>0;we--)H.push(D(K)*we);for(K=0;H[K]<X;K++);for(Q=H.length;H[Q-1]>Z;Q--);H=H.slice(K,Q)}return H},B.copy=function(){return sS(h.copy(),g,M,S)},iS(B,h)}var pce={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return uS(e.scale.linear(),1,[0,1])};function uS(h,g,M){var S=M1(g),L=M1(1/g);function D(B){return h(S(B))}return D.invert=function(B){return L(h.invert(B))},D.domain=function(B){return arguments.length?(h.domain((M=B.map(Number)).map(S)),D):M},D.ticks=function(B){return Kx(M,B)},D.tickFormat=function(B,F){return d3_scale_linearTickFormat(M,B,F)},D.nice=function(B){return D.domain(oS(M,B))},D.exponent=function(B){return arguments.length?(S=M1(g=B),L=M1(1/g),h.domain(M.map(S)),D):g},D.copy=function(){return uS(h.copy(),g,M)},iS(D,h)}function M1(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return fS([],{t:"range",a:[[]]})};function fS(h,g){var M,S,L;function D(F){return S[((M.get(F)||(g.t==="range"?M.set(F,h.push(F)):NaN))-1)%S.length]}function B(F,H){return e.range(h.length).map(function(X){return F+H*X})}return D.domain=function(F){if(!arguments.length)return h;h=[],M=new x;for(var H=-1,X=F.length,Z;++H<X;)M.has(Z=F[H])||M.set(Z,h.push(Z));return D[g.t].apply(D,g.a)},D.range=function(F){return arguments.length?(S=F,L=0,g={t:"range",a:arguments},D):S},D.rangePoints=function(F,H){arguments.length<2&&(H=0);var X=F[0],Z=F[1],K=h.length<2?(X=(X+Z)/2,0):(Z-X)/(h.length-1+H);return S=B(X+K*H/2,K),L=0,g={t:"rangePoints",a:arguments},D},D.rangeRoundPoints=function(F,H){arguments.length<2&&(H=0);var X=F[0],Z=F[1],K=h.length<2?(X=Z=Math.round((X+Z)/2),0):(Z-X)/(h.length-1+H)|0;return S=B(X+Math.round(K*H/2+(Z-X-(h.length-1+H)*K)/2),K),L=0,g={t:"rangeRoundPoints",a:arguments},D},D.rangeBands=function(F,H,X){arguments.length<2&&(H=0),arguments.length<3&&(X=H);var Z=F[1]<F[0],K=F[Z-0],Q=F[1-Z],pe=(Q-K)/(h.length-H+2*X);return S=B(K+pe*X,pe),Z&&S.reverse(),L=pe*(1-H),g={t:"rangeBands",a:arguments},D},D.rangeRoundBands=function(F,H,X){arguments.length<2&&(H=0),arguments.length<3&&(X=H);var Z=F[1]<F[0],K=F[Z-0],Q=F[1-Z],pe=Math.floor((Q-K)/(h.length-H+2*X));return S=B(K+Math.round((Q-K-(h.length-H)*pe)/2),pe),Z&&S.reverse(),L=Math.round(pe*(1-H)),g={t:"rangeRoundBands",a:arguments},D},D.rangeBand=function(){return L},D.rangeExtent=function(){return A1(g.a[0])},D.copy=function(){return fS(h,g)},D.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(mce)},e.scale.category20=function(){return e.scale.ordinal().range(yce)},e.scale.category20b=function(){return e.scale.ordinal().range(gce)},e.scale.category20c=function(){return e.scale.ordinal().range(bce)};var mce=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ds),yce=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ds),gce=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ds),bce=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ds);e.scale.quantile=function(){return cS([],[])};function cS(h,g){var M;function S(){var D=0,B=g.length;for(M=[];++D<B;)M[D-1]=e.quantile(h,D/B);return L}function L(D){if(!isNaN(D=+D))return g[e.bisect(M,D)]}return L.domain=function(D){return arguments.length?(h=D.map(v).filter(d).sort(c),S()):h},L.range=function(D){return arguments.length?(g=D,S()):g},L.quantiles=function(){return M},L.invertExtent=function(D){return D=g.indexOf(D),D<0?[NaN,NaN]:[D>0?M[D-1]:h[0],D<M.length?M[D]:h[h.length-1]]},L.copy=function(){return cS(h,g)},S()}e.scale.quantize=function(){return vS(0,1,[0,1])};function vS(h,g,M){var S,L;function D(F){return M[Math.max(0,Math.min(L,Math.floor(S*(F-h))))]}function B(){return S=M.length/(g-h),L=M.length-1,D}return D.domain=function(F){return arguments.length?(h=+F[0],g=+F[F.length-1],B()):[h,g]},D.range=function(F){return arguments.length?(M=F,B()):M},D.invertExtent=function(F){return F=M.indexOf(F),F=F<0?NaN:F/S+h,[F,F+1/S]},D.copy=function(){return vS(h,g,M)},B()}e.scale.threshold=function(){return hS([.5],[0,1])};function hS(h,g){function M(S){if(S<=S)return g[e.bisect(h,S)]}return M.domain=function(S){return arguments.length?(h=S,M):h},M.range=function(S){return arguments.length?(g=S,M):g},M.invertExtent=function(S){return S=g.indexOf(S),[h[S-1],h[S]]},M.copy=function(){return hS(h,g)},M}e.scale.identity=function(){return dS([0,1])};function dS(h){function g(M){return+M}return g.invert=g,g.domain=g.range=function(M){return arguments.length?(h=M.map(g),g):h},g.ticks=function(M){return Kx(h,M)},g.tickFormat=function(M,S){return d3_scale_linearTickFormat(h,M,S)},g.copy=function(){return dS(h)},g}e.svg={};function xce(){return 0}e.svg.arc=function(){var h=_ce,g=wce,M=xce,S=k1,L=pS,D=mS,B=Ace;function F(){var X=Math.max(0,+h.apply(this,arguments)),Z=Math.max(0,+g.apply(this,arguments)),K=L.apply(this,arguments)-ne,Q=D.apply(this,arguments)-ne,pe=Math.abs(Q-K),we=K>Q?0:1;if(Z<X&&(ee=Z,Z=X,X=ee),pe>=gr)return H(Z,we)+(X?H(X,1-we):"")+"Z";var ee,le,ve,_e,Ae=0,de=0,Ve,lr,dr,cr,xr,_r,Nr,Ar,Er=[];if((_e=(+B.apply(this,arguments)||0)/2)&&(ve=S===k1?Math.sqrt(X*X+Z*Z):+S.apply(this,arguments),we||(de*=-1),Z&&(de=yt(ve/Z*Math.sin(_e))),X&&(Ae=yt(ve/X*Math.sin(_e)))),Z){Ve=Z*Math.cos(K+de),lr=Z*Math.sin(K+de),dr=Z*Math.cos(Q-de),cr=Z*Math.sin(Q-de);var ot=Math.abs(Q-K-2*de)<=yr?0:1;if(de&&S1(Ve,lr,dr,cr)===we^ot){var va=(K+Q)/2;Ve=Z*Math.cos(va),lr=Z*Math.sin(va),dr=cr=null}}else Ve=lr=0;if(X){xr=X*Math.cos(Q-Ae),_r=X*Math.sin(Q-Ae),Nr=X*Math.cos(K+Ae),Ar=X*Math.sin(K+Ae);var bt=Math.abs(K-Q+2*Ae)<=yr?0:1;if(Ae&&S1(xr,_r,Nr,Ar)===1-we^bt){var nr=(K+Q)/2;xr=X*Math.cos(nr),_r=X*Math.sin(nr),Nr=Ar=null}}else xr=_r=0;if(pe>Be&&(ee=Math.min(Math.abs(Z-X)/2,+M.apply(this,arguments)))>.001){le=X<Z^we?0:1;var Ir=ee,Or=ee;if(pe<yr){var lt=Nr==null?[xr,_r]:dr==null?[Ve,lr]:zx([Ve,lr],[Nr,Ar],[dr,cr],[xr,_r]),Kt=Ve-lt[0],La=lr-lt[1],rn=dr-lt[0],An=cr-lt[1],Bn=1/Math.sin(Math.acos((Kt*rn+La*An)/(Math.sqrt(Kt*Kt+La*La)*Math.sqrt(rn*rn+An*An)))/2),Tn=Math.sqrt(lt[0]*lt[0]+lt[1]*lt[1]);Or=Math.min(ee,(X-Tn)/(Bn-1)),Ir=Math.min(ee,(Z-Tn)/(Bn+1))}if(dr!=null){var Wn=q1(Nr==null?[xr,_r]:[Nr,Ar],[Ve,lr],Z,Ir,we),dn=q1([dr,cr],[xr,_r],Z,Ir,we);ee===Ir?Er.push("M",Wn[0],"A",Ir,",",Ir," 0 0,",le," ",Wn[1],"A",Z,",",Z," 0 ",1-we^S1(Wn[1][0],Wn[1][1],dn[1][0],dn[1][1]),",",we," ",dn[1],"A",Ir,",",Ir," 0 0,",le," ",dn[0]):Er.push("M",Wn[0],"A",Ir,",",Ir," 0 1,",le," ",dn[0])}else Er.push("M",Ve,",",lr);if(Nr!=null){var Xn=q1([Ve,lr],[Nr,Ar],X,-Or,we),Lu=q1([xr,_r],dr==null?[Ve,lr]:[dr,cr],X,-Or,we);ee===Or?Er.push("L",Lu[0],"A",Or,",",Or," 0 0,",le," ",Lu[1],"A",X,",",X," 0 ",we^S1(Lu[1][0],Lu[1][1],Xn[1][0],Xn[1][1]),",",1-we," ",Xn[1],"A",Or,",",Or," 0 0,",le," ",Xn[0]):Er.push("L",Lu[0],"A",Or,",",Or," 0 0,",le," ",Xn[0])}else Er.push("L",xr,",",_r)}else Er.push("M",Ve,",",lr),dr!=null&&Er.push("A",Z,",",Z," 0 ",ot,",",we," ",dr,",",cr),Er.push("L",xr,",",_r),Nr!=null&&Er.push("A",X,",",X," 0 ",bt,",",1-we," ",Nr,",",Ar);return Er.push("Z"),Er.join("")}function H(X,Z){return"M0,"+X+"A"+X+","+X+" 0 1,"+Z+" 0,"+-X+"A"+X+","+X+" 0 1,"+Z+" 0,"+X}return F.innerRadius=function(X){return arguments.length?(h=Mr(X),F):h},F.outerRadius=function(X){return arguments.length?(g=Mr(X),F):g},F.cornerRadius=function(X){return arguments.length?(M=Mr(X),F):M},F.padRadius=function(X){return arguments.length?(S=X==k1?k1:Mr(X),F):S},F.startAngle=function(X){return arguments.length?(L=Mr(X),F):L},F.endAngle=function(X){return arguments.length?(D=Mr(X),F):D},F.padAngle=function(X){return arguments.length?(B=Mr(X),F):B},F.centroid=function(){var X=(+h.apply(this,arguments)+ +g.apply(this,arguments))/2,Z=(+L.apply(this,arguments)+ +D.apply(this,arguments))/2-ne;return[Math.cos(Z)*X,Math.sin(Z)*X]},F};var k1="auto";function _ce(h){return h.innerRadius}function wce(h){return h.outerRadius}function pS(h){return h.startAngle}function mS(h){return h.endAngle}function Ace(h){return h&&h.padAngle}function S1(h,g,M,S){return(h-M)*g-(g-S)*h>0?0:1}function q1(h,g,M,S,L){var D=h[0]-g[0],B=h[1]-g[1],F=(L?S:-S)/Math.sqrt(D*D+B*B),H=F*B,X=-F*D,Z=h[0]+H,K=h[1]+X,Q=g[0]+H,pe=g[1]+X,we=(Z+Q)/2,ee=(K+pe)/2,le=Q-Z,ve=pe-K,_e=le*le+ve*ve,Ae=M-S,de=Z*pe-Q*K,Ve=(ve<0?-1:1)*Math.sqrt(Math.max(0,Ae*Ae*_e-de*de)),lr=(de*ve-le*Ve)/_e,dr=(-de*le-ve*Ve)/_e,cr=(de*ve+le*Ve)/_e,xr=(-de*le+ve*Ve)/_e,_r=lr-we,Nr=dr-ee,Ar=cr-we,Er=xr-ee;return _r*_r+Nr*Nr>Ar*Ar+Er*Er&&(lr=cr,dr=xr),[[lr-H,dr-X],[lr*M/Ae,dr*M/Ae]]}function yS(){return!0}function gS(h){var g=hc,M=Hv,S=yS,L=Ao,D=L.key,B=.7;function F(H){var X=[],Z=[],K=-1,Q=H.length,pe,we=Mr(g),ee=Mr(M);function le(){X.push("M",L(h(Z),B))}for(;++K<Q;)S.call(this,pe=H[K],K)?Z.push([+we.call(this,pe,K),+ee.call(this,pe,K)]):Z.length&&(le(),Z=[]);return Z.length&&le(),X.length?X.join(""):null}return F.x=function(H){return arguments.length?(g=H,F):g},F.y=function(H){return arguments.length?(M=H,F):M},F.defined=function(H){return arguments.length?(S=H,F):S},F.interpolate=function(H){return arguments.length?(typeof H=="function"?D=L=H:D=(L=Qx.get(H)||Ao).key,F):D},F.tension=function(H){return arguments.length?(B=H,F):B},F}e.svg.line=function(){return gS(O)};var Qx=e.map({linear:Ao,"linear-closed":bS,step:Tce,"step-before":e5,"step-after":r5,basis:xS,"basis-open":qce,"basis-closed":Lce,bundle:Cce,cardinal:Sce,"cardinal-open":Mce,"cardinal-closed":kce,monotone:Pce});Qx.forEach(function(h,g){g.key=h,g.closed=/-closed$/.test(h)});function Ao(h){return h.length>1?h.join("L"):h+"Z"}function bS(h){return h.join("L")+"Z"}function Tce(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g<M;)L.push("H",(S[0]+(S=h[g])[0])/2,"V",S[1]);return M>1&&L.push("H",S[0]),L.join("")}function e5(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g<M;)L.push("V",(S=h[g])[1],"H",S[0]);return L.join("")}function r5(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g<M;)L.push("H",(S=h[g])[0],"V",S[1]);return L.join("")}function Mce(h,g){return h.length<4?Ao(h):h[1]+L1(h.slice(1,-1),t5(h,g))}function kce(h,g){return h.length<3?bS(h):h[0]+L1((h.push(h[0]),h),t5([h[h.length-2]].concat(h,[h[1]]),g))}function Sce(h,g){return h.length<3?Ao(h):h[0]+L1(h,t5(h,g))}function L1(h,g){if(g.length<1||h.length!=g.length&&h.length!=g.length+2)return Ao(h);var M=h.length!=g.length,S="",L=h[0],D=h[1],B=g[0],F=B,H=1;if(M&&(S+="Q"+(D[0]-B[0]*2/3)+","+(D[1]-B[1]*2/3)+","+D[0]+","+D[1],L=h[1],H=2),g.length>1){F=g[1],D=h[H],H++,S+="C"+(L[0]+B[0])+","+(L[1]+B[1])+","+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1];for(var X=2;X<g.length;X++,H++)D=h[H],F=g[X],S+="S"+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1]}if(M){var Z=h[H];S+="Q"+(D[0]+F[0]*2/3)+","+(D[1]+F[1]*2/3)+","+Z[0]+","+Z[1]}return S}function t5(h,g){for(var M=[],S=(1-g)/2,L,D=h[0],B=h[1],F=1,H=h.length;++F<H;)L=D,D=B,B=h[F],M.push([S*(B[0]-L[0]),S*(B[1]-L[1])]);return M}function xS(h){if(h.length<3)return Ao(h);var g=1,M=h.length,S=h[0],L=S[0],D=S[1],B=[L,L,L,(S=h[1])[0]],F=[D,D,D,S[1]],H=[L,",",D,"L",Fi(ms,B),",",Fi(ms,F)];for(h.push(h[M-1]);++g<=M;)S=h[g],B.shift(),B.push(S[0]),F.shift(),F.push(S[1]),a5(H,B,F);return h.pop(),H.push("L",S),H.join("")}function qce(h){if(h.length<4)return Ao(h);for(var g=[],M=-1,S=h.length,L,D=[0],B=[0];++M<3;)L=h[M],D.push(L[0]),B.push(L[1]);for(g.push(Fi(ms,D)+","+Fi(ms,B)),--M;++M<S;)L=h[M],D.shift(),D.push(L[0]),B.shift(),B.push(L[1]),a5(g,D,B);return g.join("")}function Lce(h){for(var g,M=-1,S=h.length,L=S+4,D,B=[],F=[];++M<4;)D=h[M%S],B.push(D[0]),F.push(D[1]);for(g=[Fi(ms,B),",",Fi(ms,F)],--M;++M<L;)D=h[M%S],B.shift(),B.push(D[0]),F.shift(),F.push(D[1]),a5(g,B,F);return g.join("")}function Cce(h,g){var M=h.length-1;if(M)for(var S=h[0][0],L=h[0][1],D=h[M][0]-S,B=h[M][1]-L,F=-1,H,X;++F<=M;)H=h[F],X=F/M,H[0]=g*H[0]+(1-g)*(S+X*D),H[1]=g*H[1]+(1-g)*(L+X*B);return xS(h)}function Fi(h,g){return h[0]*g[0]+h[1]*g[1]+h[2]*g[2]+h[3]*g[3]}var _S=[0,2/3,1/3,0],wS=[0,1/3,2/3,0],ms=[0,1/6,2/3,1/6];function a5(h,g,M){h.push("C",Fi(_S,g),",",Fi(_S,M),",",Fi(wS,g),",",Fi(wS,M),",",Fi(ms,g),",",Fi(ms,M))}function n5(h,g){return(g[1]-h[1])/(g[0]-h[0])}function Dce(h){for(var g=0,M=h.length-1,S=[],L=h[0],D=h[1],B=S[0]=n5(L,D);++g<M;)S[g]=(B+(B=n5(L=D,D=h[g+1])))/2;return S[g]=B,S}function Ece(h){for(var g=[],M,S,L,D,B=Dce(h),F=-1,H=h.length-1;++F<H;)M=n5(h[F],h[F+1]),b(M)<Be?B[F]=B[F+1]=0:(S=B[F]/M,L=B[F+1]/M,D=S*S+L*L,D>9&&(D=M*3/Math.sqrt(D),B[F]=D*S,B[F+1]=D*L));for(F=-1;++F<=H;)D=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+B[F]*B[F])),g.push([D||0,B[F]*D||0]);return g}function Pce(h){return h.length<3?Ao(h):h[0]+L1(h,Ece(h))}e.svg.line.radial=function(){var h=gS(AS);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function AS(h){for(var g,M=-1,S=h.length,L,D;++M<S;)g=h[M],L=g[0],D=g[1]-ne,g[0]=L*Math.cos(D),g[1]=L*Math.sin(D);return h}function TS(h){var g=hc,M=hc,S=0,L=Hv,D=yS,B=Ao,F=B.key,H=B,X="L",Z=.7;function K(Q){var pe=[],we=[],ee=[],le=-1,ve=Q.length,_e,Ae=Mr(g),de=Mr(S),Ve=g===M?function(){return dr}:Mr(M),lr=S===L?function(){return cr}:Mr(L),dr,cr;function xr(){pe.push("M",B(h(ee),Z),X,H(h(we.reverse()),Z),"Z")}for(;++le<ve;)D.call(this,_e=Q[le],le)?(we.push([dr=+Ae.call(this,_e,le),cr=+de.call(this,_e,le)]),ee.push([+Ve.call(this,_e,le),+lr.call(this,_e,le)])):we.length&&(xr(),we=[],ee=[]);return we.length&&xr(),pe.length?pe.join(""):null}return K.x=function(Q){return arguments.length?(g=M=Q,K):M},K.x0=function(Q){return arguments.length?(g=Q,K):g},K.x1=function(Q){return arguments.length?(M=Q,K):M},K.y=function(Q){return arguments.length?(S=L=Q,K):L},K.y0=function(Q){return arguments.length?(S=Q,K):S},K.y1=function(Q){return arguments.length?(L=Q,K):L},K.defined=function(Q){return arguments.length?(D=Q,K):D},K.interpolate=function(Q){return arguments.length?(typeof Q=="function"?F=B=Q:F=(B=Qx.get(Q)||Ao).key,H=B.reverse||B,X=B.closed?"M":"L",K):F},K.tension=function(Q){return arguments.length?(Z=Q,K):Z},K}e5.reverse=r5,r5.reverse=e5,e.svg.area=function(){return TS(O)},e.svg.area.radial=function(){var h=TS(AS);return h.radius=h.x,delete h.x,h.innerRadius=h.x0,delete h.x0,h.outerRadius=h.x1,delete h.x1,h.angle=h.y,delete h.y,h.startAngle=h.y0,delete h.y0,h.endAngle=h.y1,delete h.y1,h};function MS(h){return h.source}function kS(h){return h.target}e.svg.chord=function(){var h=MS,g=kS,M=Rce,S=pS,L=mS;function D(Z,K){var Q=B(this,h,Z,K),pe=B(this,g,Z,K);return"M"+Q.p0+H(Q.r,Q.p1,Q.a1-Q.a0)+(F(Q,pe)?X(Q.r,Q.p1,Q.r,Q.p0):X(Q.r,Q.p1,pe.r,pe.p0)+H(pe.r,pe.p1,pe.a1-pe.a0)+X(pe.r,pe.p1,Q.r,Q.p0))+"Z"}function B(Z,K,Q,pe){var we=K.call(Z,Q,pe),ee=M.call(Z,we,pe),le=S.call(Z,we,pe)-ne,ve=L.call(Z,we,pe)-ne;return{r:ee,a0:le,a1:ve,p0:[ee*Math.cos(le),ee*Math.sin(le)],p1:[ee*Math.cos(ve),ee*Math.sin(ve)]}}function F(Z,K){return Z.a0==K.a0&&Z.a1==K.a1}function H(Z,K,Q){return"A"+Z+","+Z+" 0 "+ +(Q>yr)+",1 "+K}function X(Z,K,Q,pe){return"Q 0,0 "+pe}return D.radius=function(Z){return arguments.length?(M=Mr(Z),D):M},D.source=function(Z){return arguments.length?(h=Mr(Z),D):h},D.target=function(Z){return arguments.length?(g=Mr(Z),D):g},D.startAngle=function(Z){return arguments.length?(S=Mr(Z),D):S},D.endAngle=function(Z){return arguments.length?(L=Mr(Z),D):L},D};function Rce(h){return h.radius}e.svg.diagonal=function(){var h=MS,g=kS,M=SS;function S(L,D){var B=h.call(this,L,D),F=g.call(this,L,D),H=(B.y+F.y)/2,X=[B,{x:B.x,y:H},{x:F.x,y:H},F];return X=X.map(M),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return S.source=function(L){return arguments.length?(h=Mr(L),S):h},S.target=function(L){return arguments.length?(g=Mr(L),S):g},S.projection=function(L){return arguments.length?(M=L,S):M},S};function SS(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=SS,M=h.projection;return h.projection=function(S){return arguments.length?M(Fce(g=S)):g},h};function Fce(h){return function(){var g=h.apply(this,arguments),M=g[0],S=g[1]-ne;return[M*Math.cos(S),M*Math.sin(S)]}}e.svg.symbol=function(){var h=Nce,g=zce;function M(S,L){return(LS.get(h.call(this,S,L))||qS)(g.call(this,S,L))}return M.type=function(S){return arguments.length?(h=Mr(S),M):h},M.size=function(S){return arguments.length?(g=Mr(S),M):g},M};function zce(){return 64}function Nce(){return"circle"}function qS(h){var g=Math.sqrt(h/yr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var LS=e.map({circle:qS,cross:function(h){var g=Math.sqrt(h/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(h){var g=Math.sqrt(h/(2*CS)),M=g*CS;return"M0,"+-g+"L"+M+",0 0,"+g+" "+-M+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/C1),M=g*C1/2;return"M0,"+M+"L"+g+","+-M+" "+-g+","+-M+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/C1),M=g*C1/2;return"M0,"+-M+"L"+g+","+M+" "+-g+","+M+"Z"}});e.svg.symbolTypes=LS.keys();var C1=Math.sqrt(3),CS=Math.tan(30*ge);oe.transition=function(h){for(var g=qu||++ES,M=o5(h),S=[],L,D,B=E1||{time:Date.now(),ease:pfe,delay:0,duration:250},F=-1,H=this.length;++F<H;){S.push(L=[]);for(var X=this[F],Z=-1,K=X.length;++Z<K;)(D=X[Z])&&P1(D,Z,M,g,B),L.push(D)}return Zv(S,M,g)},oe.interrupt=function(h){return this.each(h==null?D1:DS(o5(h)))};var D1=DS(o5());function DS(h){return function(){var g,M,S;(g=this[h])&&(S=g[M=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[M]:delete this[h],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function Zv(h,g,M){return $(h,qa),h.namespace=g,h.id=M,h}var qa=[],ES=0,qu,E1;qa.call=oe.call,qa.empty=oe.empty,qa.node=oe.node,qa.size=oe.size,e.transition=function(h,g){return h&&h.transition?qu?h.transition(g):h:e.selection().transition(h)},e.transition.prototype=qa,qa.select=function(h){var g=this.id,M=this.namespace,S=[],L,D,B;h=be(h);for(var F=-1,H=this.length;++F<H;){S.push(L=[]);for(var X=this[F],Z=-1,K=X.length;++Z<K;)(B=X[Z])&&(D=h.call(B,B.__data__,Z,F))?("__data__"in B&&(D.__data__=B.__data__),P1(D,Z,M,g,B[M][g]),L.push(D)):L.push(null)}return Zv(S,M,g)},qa.selectAll=function(h){var g=this.id,M=this.namespace,S=[],L,D,B,F,H;h=Re(h);for(var X=-1,Z=this.length;++X<Z;)for(var K=this[X],Q=-1,pe=K.length;++Q<pe;)if(B=K[Q]){H=B[M][g],D=h.call(B,B.__data__,Q,X),S.push(L=[]);for(var we=-1,ee=D.length;++we<ee;)(F=D[we])&&P1(F,we,M,g,H),L.push(F)}return Zv(S,M,g)},qa.filter=function(h){var g=[],M,S,L;typeof h!="function"&&(h=re(h));for(var D=0,B=this.length;D<B;D++){g.push(M=[]);for(var S=this[D],F=0,H=S.length;F<H;F++)(L=S[F])&&h.call(L,L.__data__,F,D)&&M.push(L)}return Zv(g,this.namespace,this.id)},qa.tween=function(h,g){var M=this.id,S=this.namespace;return arguments.length<2?this.node()[S][M].tween.get(h):Ye(this,g==null?function(L){L[S][M].tween.remove(h)}:function(L){L[S][M].tween.set(h,g)})};function i5(h,g,M,S){var L=h.id,D=h.namespace;return Ye(h,typeof M=="function"?function(B,F,H){B[D][L].tween.set(g,S(M.call(B,B.__data__,F,H)))}:(M=S(M),function(B){B[D][L].tween.set(g,M)}))}qa.attr=function(h,g){if(arguments.length<2){for(g in h)this.attr(g,h[g]);return this}var M=h=="transform"?Gk:Su,S=e.ns.qualify(h);function L(){this.removeAttribute(S)}function D(){this.removeAttributeNS(S.space,S.local)}function B(H){return H==null?L:(H+="",function(){var X=this.getAttribute(S),Z;return X!==H&&(Z=M(X,H),function(K){this.setAttribute(S,Z(K))})})}function F(H){return H==null?D:(H+="",function(){var X=this.getAttributeNS(S.space,S.local),Z;return X!==H&&(Z=M(X,H),function(K){this.setAttributeNS(S.space,S.local,Z(K))})})}return i5(this,"attr."+h,g,S.local?F:B)},qa.attrTween=function(h,g){var M=e.ns.qualify(h);function S(D,B){var F=g.call(this,D,B,this.getAttribute(M));return F&&function(H){this.setAttribute(M,F(H))}}function L(D,B){var F=g.call(this,D,B,this.getAttributeNS(M.space,M.local));return F&&function(H){this.setAttributeNS(M.space,M.local,F(H))}}return this.tween("attr."+h,M.local?L:S)},qa.style=function(h,g,M){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(M in h)this.style(M,h[M],g);return this}M=""}function L(){this.style.removeProperty(h)}function D(B){return B==null?L:(B+="",function(){var F=i(this).getComputedStyle(this,null).getPropertyValue(h),H;return F!==B&&(H=Su(F,B),function(X){this.style.setProperty(h,H(X),M)})})}return i5(this,"style."+h,g,D)},qa.styleTween=function(h,g,M){arguments.length<3&&(M="");function S(L,D){var B=g.call(this,L,D,i(this).getComputedStyle(this,null).getPropertyValue(h));return B&&function(F){this.style.setProperty(h,B(F),M)}}return this.tween("style."+h,S)},qa.text=function(h){return i5(this,"text",h,Ice)};function Ice(h){return h==null&&(h=""),function(){this.textContent=h}}qa.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var g;this[h].count<2&&(g=this.parentNode)&&g.removeChild(this)})},qa.ease=function(h){var g=this.id,M=this.namespace;return arguments.length<1?this.node()[M][g].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Ye(this,function(S){S[M][g].ease=h}))},qa.delay=function(h){var g=this.id,M=this.namespace;return arguments.length<1?this.node()[M][g].delay:Ye(this,typeof h=="function"?function(S,L,D){S[M][g].delay=+h.call(S,S.__data__,L,D)}:(h=+h,function(S){S[M][g].delay=h}))},qa.duration=function(h){var g=this.id,M=this.namespace;return arguments.length<1?this.node()[M][g].duration:Ye(this,typeof h=="function"?function(S,L,D){S[M][g].duration=Math.max(1,h.call(S,S.__data__,L,D))}:(h=Math.max(1,h),function(S){S[M][g].duration=h}))},qa.each=function(h,g){var M=this.id,S=this.namespace;if(arguments.length<2){var L=E1,D=qu;try{qu=M,Ye(this,function(B,F,H){E1=B[S][M],h.call(B,B.__data__,F,H)})}finally{E1=L,qu=D}}else Ye(this,function(B){var F=B[S][M];(F.event||(F.event=e.dispatch("start","end","interrupt"))).on(h,g)});return this},qa.transition=function(){for(var h=this.id,g=++ES,M=this.namespace,S=[],L,D,B,F,H=0,X=this.length;H<X;H++){S.push(L=[]);for(var D=this[H],Z=0,K=D.length;Z<K;Z++)(B=D[Z])&&(F=B[M][h],P1(B,Z,M,g,{time:F.time,ease:F.ease,delay:F.delay+F.duration,duration:F.duration})),L.push(B)}return Zv(S,M,g)};function o5(h){return h==null?"__transition__":"__transition_"+h+"__"}function P1(h,g,M,S,L){var D=h[M]||(h[M]={active:0,count:0}),B=D[S],F,H,X,Z,K;function Q(ee){var le=B.delay;if(H.t=le+F,le<=ee)return pe(ee-le);H.c=pe}function pe(ee){var le=D.active,ve=D[le];ve&&(ve.timer.c=null,ve.timer.t=NaN,--D.count,delete D[le],ve.event&&ve.event.interrupt.call(h,h.__data__,ve.index));for(var _e in D)if(+_e<S){var Ae=D[_e];Ae.timer.c=null,Ae.timer.t=NaN,--D.count,delete D[_e]}H.c=we,m1(function(){return H.c&&we(ee||1)&&(H.c=null,H.t=NaN),1},0,F),D.active=S,B.event&&B.event.start.call(h,h.__data__,g),K=[],B.tween.forEach(function(de,Ve){(Ve=Ve.call(h,h.__data__,g))&&K.push(Ve)}),Z=B.ease,X=B.duration}function we(ee){for(var le=ee/X,ve=Z(le),_e=K.length;_e>0;)K[--_e].call(h,ve);if(le>=1)return B.event&&B.event.end.call(h,h.__data__,g),--D.count?delete D[S]:delete h[M],1}B||(F=L.time,H=m1(Q,0,F),B=D[S]={tween:new x,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=PS,M=6,S=6,L=3,D=[10],B=null,F;function H(X){X.each(function(){var Z=e.select(this),K=this.__chart__||h,Q=this.__chart__=h.copy(),pe=B==null?Q.ticks?Q.ticks.apply(Q,D):Q.domain():B,we=F==null?Q.tickFormat?Q.tickFormat.apply(Q,D):O:F,ee=Z.selectAll(".tick").data(pe,Q),le=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Be),ve=e.transition(ee.exit()).style("opacity",Be).remove(),_e=e.transition(ee.order()).style("opacity",1),Ae=Math.max(M,0)+L,de,Ve=T1(Q),lr=Z.selectAll(".domain").data([0]),dr=(lr.enter().append("path").attr("class","domain"),e.transition(lr));le.append("line"),le.append("text");var cr=le.select("line"),xr=_e.select("line"),_r=ee.select("text").text(we),Nr=le.select("text"),Ar=_e.select("text"),Er=g==="top"||g==="left"?-1:1,ot,va,bt,nr;if(g==="bottom"||g==="top"?(de=Oce,ot="x",bt="y",va="x2",nr="y2",_r.attr("dy",Er<0?"0em":".71em").style("text-anchor","middle"),dr.attr("d","M"+Ve[0]+","+Er*S+"V0H"+Ve[1]+"V"+Er*S)):(de=Hce,ot="y",bt="x",va="y2",nr="x2",_r.attr("dy",".32em").style("text-anchor",Er<0?"end":"start"),dr.attr("d","M"+Er*S+","+Ve[0]+"H0V"+Ve[1]+"H"+Er*S)),cr.attr(nr,Er*M),Nr.attr(bt,Er*Ae),xr.attr(va,0).attr(nr,Er*M),Ar.attr(ot,0).attr(bt,Er*Ae),Q.rangeBand){var Ir=Q,Or=Ir.rangeBand()/2;K=Q=function(lt){return Ir(lt)+Or}}else K.rangeBand?K=Q:ve.call(de,Q,K);le.call(de,K,Q),_e.call(de,Q,Q)})}return H.scale=function(X){return arguments.length?(h=X,H):h},H.orient=function(X){return arguments.length?(g=X in Bce?X+"":PS,H):g},H.ticks=function(){return arguments.length?(D=t(arguments),H):D},H.tickValues=function(X){return arguments.length?(B=X,H):B},H.tickFormat=function(X){return arguments.length?(F=X,H):F},H.tickSize=function(X){var Z=arguments.length;return Z?(M=+X,S=+arguments[Z-1],H):M},H.innerTickSize=function(X){return arguments.length?(M=+X,H):M},H.outerTickSize=function(X){return arguments.length?(S=+X,H):S},H.tickPadding=function(X){return arguments.length?(L=+X,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var PS="bottom",Bce={top:1,right:1,bottom:1,left:1};function Oce(h,g,M){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:M(S))+",0)"})}function Hce(h,g,M){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:M(S))+")"})}e.svg.brush=function(){var h=ae(Z,"brushstart","brush","brushend"),g=null,M=null,S=[0,0],L=[0,0],D,B,F=!0,H=!0,X=l5[0];function Z(ee){ee.each(function(){var le=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ve=le.selectAll(".background").data([0]);ve.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),le.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=le.selectAll(".resize").data(X,O);_e.exit().remove(),_e.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return Uce[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"),_e.style("display",Z.empty()?"none":null);var Ae=e.transition(le),de=e.transition(ve),Ve;g&&(Ve=T1(g),de.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),Q(Ae)),M&&(Ve=T1(M),de.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),pe(Ae)),K(Ae)})}Z.event=function(ee){ee.each(function(){var le=h.of(this,arguments),ve={x:S,y:L,i:D,j:B},_e=this.__chart__||ve;this.__chart__=ve,qu?e.select(this).transition().each("start.brush",function(){D=_e.i,B=_e.j,S=_e.x,L=_e.y,le({type:"brushstart"})}).tween("brush:brush",function(){var Ae=w1(S,ve.x),de=w1(L,ve.y);return D=B=null,function(Ve){S=ve.x=Ae(Ve),L=ve.y=de(Ve),le({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ve.i,B=ve.j,le({type:"brush",mode:"resize"}),le({type:"brushend"})}):(le({type:"brushstart"}),le({type:"brush",mode:"resize"}),le({type:"brushend"}))})};function K(ee){ee.selectAll(".resize").attr("transform",function(le){return"translate("+S[+/e$/.test(le)]+","+L[+/^s/.test(le)]+")"})}function Q(ee){ee.select(".extent").attr("x",S[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function pe(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function we(){var ee=this,le=e.select(e.event.target),ve=h.of(ee,arguments),_e=e.select(ee),Ae=le.datum(),de=!/^(n|s)$/.test(Ae)&&g,Ve=!/^(e|w)$/.test(Ae)&&M,lr=le.classed("extent"),dr=or(ee),cr,xr=e.mouse(ee),_r,Nr=e.select(i(ee)).on("keydown.brush",ot).on("keyup.brush",va);if(e.event.changedTouches?Nr.on("touchmove.brush",bt).on("touchend.brush",Ir):Nr.on("mousemove.brush",bt).on("mouseup.brush",Ir),_e.interrupt().selectAll("*").interrupt(),lr)xr[0]=S[0]-xr[0],xr[1]=L[0]-xr[1];else if(Ae){var Ar=+/w$/.test(Ae),Er=+/^n/.test(Ae);_r=[S[1-Ar]-xr[0],L[1-Er]-xr[1]],xr[0]=S[Ar],xr[1]=L[Er]}else e.event.altKey&&(cr=xr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",le.style("cursor")),ve({type:"brushstart"}),bt();function ot(){e.event.keyCode==32&&(lr||(cr=null,xr[0]-=S[1],xr[1]-=L[1],lr=2),J())}function va(){e.event.keyCode==32&&lr==2&&(xr[0]+=S[1],xr[1]+=L[1],lr=0,J())}function bt(){var Or=e.mouse(ee),lt=!1;_r&&(Or[0]+=_r[0],Or[1]+=_r[1]),lr||(e.event.altKey?(cr||(cr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),xr[0]=S[+(Or[0]<cr[0])],xr[1]=L[+(Or[1]<cr[1])]):cr=null),de&&nr(Or,g,0)&&(Q(_e),lt=!0),Ve&&nr(Or,M,1)&&(pe(_e),lt=!0),lt&&(K(_e),ve({type:"brush",mode:lr?"move":"resize"}))}function nr(Or,lt,Kt){var La=T1(lt),rn=La[0],An=La[1],Bn=xr[Kt],Tn=Kt?L:S,Wn=Tn[1]-Tn[0],dn,Xn;if(lr&&(rn-=Bn,An-=Wn+Bn),dn=(Kt?H:F)?Math.max(rn,Math.min(An,Or[Kt])):Or[Kt],lr?Xn=(dn+=Bn)+Wn:(cr&&(Bn=Math.max(rn,Math.min(An,2*cr[Kt]-dn))),Bn<dn?(Xn=dn,dn=Bn):Xn=Bn),Tn[0]!=dn||Tn[1]!=Xn)return Kt?B=null:D=null,Tn[0]=dn,Tn[1]=Xn,!0}function Ir(){bt(),_e.style("pointer-events","all").selectAll(".resize").style("display",Z.empty()?"none":null),e.select("body").style("cursor",null),Nr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),dr(),ve({type:"brushend"})}}return Z.x=function(ee){return arguments.length?(g=ee,X=l5[!g<<1|!M],Z):g},Z.y=function(ee){return arguments.length?(M=ee,X=l5[!g<<1|!M],Z):M},Z.clamp=function(ee){return arguments.length?(g&&M?(F=!!ee[0],H=!!ee[1]):g?F=!!ee:M&&(H=!!ee),Z):g&&M?[F,H]:g?F:M?H:null},Z.extent=function(ee){var le,ve,_e,Ae,de;return arguments.length?(g&&(le=ee[0],ve=ee[1],M&&(le=le[0],ve=ve[0]),D=[le,ve],g.invert&&(le=g(le),ve=g(ve)),ve<le&&(de=le,le=ve,ve=de),(le!=S[0]||ve!=S[1])&&(S=[le,ve])),M&&(_e=ee[0],Ae=ee[1],g&&(_e=_e[1],Ae=Ae[1]),B=[_e,Ae],M.invert&&(_e=M(_e),Ae=M(Ae)),Ae<_e&&(de=_e,_e=Ae,Ae=de),(_e!=L[0]||Ae!=L[1])&&(L=[_e,Ae])),Z):(g&&(D?(le=D[0],ve=D[1]):(le=S[0],ve=S[1],g.invert&&(le=g.invert(le),ve=g.invert(ve)),ve<le&&(de=le,le=ve,ve=de))),M&&(B?(_e=B[0],Ae=B[1]):(_e=L[0],Ae=L[1],M.invert&&(_e=M.invert(_e),Ae=M.invert(Ae)),Ae<_e&&(de=_e,_e=Ae,Ae=de))),g&&M?[[le,_e],[ve,Ae]]:g?[le,ve]:M&&[_e,Ae])},Z.clear=function(){return Z.empty()||(S=[0,0],L=[0,0],D=B=null),Z},Z.empty=function(){return!!g&&S[0]==S[1]||!!M&&L[0]==L[1]},e.rebind(Z,h,"on")};var Uce={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},l5=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=pt(function(h){return h.responseText}),e.json=function(h,g){return fr(h,"application/json",Gce,g)};function Gce(h){return JSON.parse(h.responseText)}e.html=function(h,g){return fr(h,"text/html",Yce,g)};function Yce(h){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(h.responseText)}e.xml=pt(function(h){return h.responseXML}),typeof N1=="object"&&N1.exports?N1.exports=e:this.d3=e}).apply(self)});var u5=z((I1,GS)=>{(function(e,r){typeof I1=="object"&&typeof GS!="undefined"?r(I1):(e=e||self,r(e.d3=e.d3||{}))})(I1,function(e){"use strict";var r=new Date,t=new Date;function a(re,xe,Ye,vr){function Pe(me){return re(me=arguments.length===0?new Date:new Date(+me)),me}return Pe.floor=function(me){return re(me=new Date(+me)),me},Pe.ceil=function(me){return re(me=new Date(me-1)),xe(me,1),re(me),me},Pe.round=function(me){var Te=Pe(me),Ue=Pe.ceil(me);return me-Te<Ue-me?Te:Ue},Pe.offset=function(me,Te){return xe(me=new Date(+me),Te==null?1:Math.floor(Te)),me},Pe.range=function(me,Te,Ue){var $e=[],Oe;if(me=Pe.ceil(me),Ue=Ue==null?1:Math.floor(Ue),!(me<Te)||!(Ue>0))return $e;do $e.push(Oe=new Date(+me)),xe(me,Ue),re(me);while(Oe<me&&me<Te);return $e},Pe.filter=function(me){return a(function(Te){if(Te>=Te)for(;re(Te),!me(Te);)Te.setTime(Te-1)},function(Te,Ue){if(Te>=Te)if(Ue<0)for(;++Ue<=0;)for(;xe(Te,-1),!me(Te););else for(;--Ue>=0;)for(;xe(Te,1),!me(Te););})},Ye&&(Pe.count=function(me,Te){return r.setTime(+me),t.setTime(+Te),re(r),re(t),Math.floor(Ye(r,t))},Pe.every=function(me){return me=Math.floor(me),!isFinite(me)||!(me>0)?null:me>1?Pe.filter(vr?function(Te){return vr(Te)%me===0}:function(Te){return Pe.count(0,Te)%me===0}):Pe}),Pe}var n=a(function(){},function(re,xe){re.setTime(+re+xe)},function(re,xe){return xe-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(xe){xe.setTime(Math.floor(xe/re)*re)},function(xe,Ye){xe.setTime(+xe+Ye*re)},function(xe,Ye){return(Ye-xe)/re}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,xe){re.setTime(+re+xe*o)},function(re,xe){return(xe-re)/o},function(re){return re.getUTCSeconds()}),v=c.range,d=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o)},function(re,xe){re.setTime(+re+xe*l)},function(re,xe){return(xe-re)/l},function(re){return re.getMinutes()}),p=d.range,y=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o-re.getMinutes()*l)},function(re,xe){re.setTime(+re+xe*s)},function(re,xe){return(xe-re)/s},function(re){return re.getHours()}),m=y.range,b=a(function(re){re.setHours(0,0,0,0)},function(re,xe){re.setDate(re.getDate()+xe)},function(re,xe){return(xe-re-(xe.getTimezoneOffset()-re.getTimezoneOffset())*l)/u},function(re){return re.getDate()-1}),A=b.range;function w(re){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-re)%7),xe.setHours(0,0,0,0)},function(xe,Ye){xe.setDate(xe.getDate()+Ye*7)},function(xe,Ye){return(Ye-xe-(Ye.getTimezoneOffset()-xe.getTimezoneOffset())*l)/f})}var x=w(0),_=w(1),k=w(2),T=w(3),q=w(4),C=w(5),E=w(6),P=x.range,R=_.range,N=k.range,I=T.range,O=q.range,U=C.range,Y=E.range,G=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,xe){re.setMonth(re.getMonth()+xe)},function(re,xe){return xe.getMonth()-re.getMonth()+(xe.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),V=G.range,W=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,xe){re.setFullYear(re.getFullYear()+xe)},function(re,xe){return xe.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});W.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/re)*re),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ye){xe.setFullYear(xe.getFullYear()+Ye*re)})};var j=W.range,J=a(function(re){re.setUTCSeconds(0,0)},function(re,xe){re.setTime(+re+xe*l)},function(re,xe){return(xe-re)/l},function(re){return re.getUTCMinutes()}),te=J.range,ae=a(function(re){re.setUTCMinutes(0,0,0)},function(re,xe){re.setTime(+re+xe*s)},function(re,xe){return(xe-re)/s},function(re){return re.getUTCHours()}),se=ae.range,$=a(function(re){re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCDate(re.getUTCDate()+xe)},function(re,xe){return(xe-re)/u},function(re){return re.getUTCDate()-1}),fe=$.range;function ie(re){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-re)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ye){xe.setUTCDate(xe.getUTCDate()+Ye*7)},function(xe,Ye){return(Ye-xe)/f})}var ue=ie(0),ce=ie(1),oe=ie(2),be=ie(3),Re=ie(4),ye=ie(5),Ce=ie(6),Me=ue.range,Le=ce.range,De=oe.range,Ie=be.range,qe=Re.range,Ze=ye.range,Je=Ce.range,Xe=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCMonth(re.getUTCMonth()+xe)},function(re,xe){return xe.getUTCMonth()-re.getUTCMonth()+(xe.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Se=Xe.range,Fe=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCFullYear(re.getUTCFullYear()+xe)},function(re,xe){return xe.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Fe.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/re)*re),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ye){xe.setUTCFullYear(xe.getUTCFullYear()+Ye*re)})};var er=Fe.range;e.timeDay=b,e.timeDays=A,e.timeFriday=C,e.timeFridays=U,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=_,e.timeMondays=R,e.timeMonth=G,e.timeMonths=V,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=O,e.timeTuesday=k,e.timeTuesdays=N,e.timeWednesday=T,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=j,e.utcDay=$,e.utcDays=fe,e.utcFriday=ye,e.utcFridays=Ze,e.utcHour=ae,e.utcHours=se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=te,e.utcMonday=ce,e.utcMondays=Le,e.utcMonth=Xe,e.utcMonths=Se,e.utcSaturday=Ce,e.utcSaturdays=Je,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ue,e.utcSundays=Me,e.utcThursday=Re,e.utcThursdays=qe,e.utcTuesday=oe,e.utcTuesdays=De,e.utcWednesday=be,e.utcWednesdays=Ie,e.utcWeek=ue,e.utcWeeks=Me,e.utcYear=Fe,e.utcYears=er,Object.defineProperty(e,"__esModule",{value:!0})})});var _c=z((B1,YS)=>{(function(e,r){typeof B1=="object"&&typeof YS!="undefined"?r(B1,u5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(B1,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ge=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ge.setFullYear(ne.y),ge}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ge=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ge.setUTCFullYear(ne.y),ge}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ge,Ne){return{y:ne,m:ge,d:Ne,H:0,M:0,S:0,L:0}}function i(ne){var ge=ne.dateTime,Ne=ne.date,He=ne.time,Kr=ne.periods,Qr=ne.days,yt=ne.shortDays,gt=ne.months,Et=ne.shortMonths,aa=v(Kr),$a=d(Kr),na=v(Qr),Ja=d(Qr),hn=v(yt),fa=d(yt),hr=v(gt),wt=d(gt),Vr=v(Et),ht=d(Et),Nt={a:wo,A:ci,b:ca,B:vc,c:null,d:G,e:G,f:te,g:ye,G:Me,H:V,I:W,j,L:J,m:ae,M:se,p:ds,q:In,Q:or,s:sr,S:$,u:fe,U:ie,V:ce,w:oe,W:be,x:null,X:null,y:Re,Y:Ce,Z:Le,"%":ar},kt={a:ps,A:h1,b:d1,B:p1,c:null,d:De,e:De,f:Xe,g:Ue,G:Oe,H:Ie,I:qe,j:Ze,L:Je,m:Se,M:Fe,p:Bv,q:Ov,Q:or,s:sr,S:er,u:re,U:xe,V:vr,w:Pe,W:me,x:null,X:null,y:Te,Y:$e,Z:We,"%":ar},it={a:oa,A:la,b:dt,B:Ka,c:Yt,d:q,e:q,f:I,g:x,G:w,H:E,I:E,j:C,L:N,m:T,M:P,p:Pt,q:k,Q:U,s:Y,S:R,u:y,U:m,V:b,w:p,W:A,x:cc,X:Nn,y:x,Y:w,Z:_,"%":O};Nt.x=ia(Ne,Nt),Nt.X=ia(He,Nt),Nt.c=ia(ge,Nt),kt.x=ia(Ne,kt),kt.X=ia(He,kt),kt.c=ia(ge,kt);function ia(kr,Mr){return function(pt){var fr=[],wn=-1,It=0,Qa=kr.length,en,Ri,Mu;for(pt instanceof Date||(pt=new Date(+pt));++wn<Qa;)kr.charCodeAt(wn)===37&&(fr.push(kr.slice(It,wn)),(Ri=o[en=kr.charAt(++wn)])!=null?en=kr.charAt(++wn):Ri=en==="e"?" ":"0",(Mu=Mr[en])&&(en=Mu(pt,Ri)),fr.push(en),It=wn+1);return fr.push(kr.slice(It,wn)),fr.join("")}}function zn(kr,Mr){return function(pt){var fr=n(1900,void 0,1),wn=Xt(fr,kr,pt+="",0),It,Qa;if(wn!=pt.length)return null;if("Q"in fr)return new Date(fr.Q);if("s"in fr)return new Date(fr.s*1e3+("L"in fr?fr.L:0));if(Mr&&!("Z"in fr)&&(fr.Z=0),"p"in fr&&(fr.H=fr.H%12+fr.p*12),fr.m===void 0&&(fr.m="q"in fr?fr.q:0),"V"in fr){if(fr.V<1||fr.V>53)return null;"w"in fr||(fr.w=1),"Z"in fr?(It=a(n(fr.y,0,1)),Qa=It.getUTCDay(),It=Qa>4||Qa===0?r.utcMonday.ceil(It):r.utcMonday(It),It=r.utcDay.offset(It,(fr.V-1)*7),fr.y=It.getUTCFullYear(),fr.m=It.getUTCMonth(),fr.d=It.getUTCDate()+(fr.w+6)%7):(It=t(n(fr.y,0,1)),Qa=It.getDay(),It=Qa>4||Qa===0?r.timeMonday.ceil(It):r.timeMonday(It),It=r.timeDay.offset(It,(fr.V-1)*7),fr.y=It.getFullYear(),fr.m=It.getMonth(),fr.d=It.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Qa="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Qa+5)%7:fr.w+fr.U*7-(Qa+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function Xt(kr,Mr,pt,fr){for(var wn=0,It=Mr.length,Qa=pt.length,en,Ri;wn<It;){if(fr>=Qa)return-1;if(en=Mr.charCodeAt(wn++),en===37){if(en=Mr.charAt(wn++),Ri=it[en in o?Mr.charAt(wn++):en],!Ri||(fr=Ri(kr,pt,fr))<0)return-1}else if(en!=pt.charCodeAt(fr++))return-1}return fr}function Pt(kr,Mr,pt){var fr=aa.exec(Mr.slice(pt));return fr?(kr.p=$a[fr[0].toLowerCase()],pt+fr[0].length):-1}function oa(kr,Mr,pt){var fr=hn.exec(Mr.slice(pt));return fr?(kr.w=fa[fr[0].toLowerCase()],pt+fr[0].length):-1}function la(kr,Mr,pt){var fr=na.exec(Mr.slice(pt));return fr?(kr.w=Ja[fr[0].toLowerCase()],pt+fr[0].length):-1}function dt(kr,Mr,pt){var fr=Vr.exec(Mr.slice(pt));return fr?(kr.m=ht[fr[0].toLowerCase()],pt+fr[0].length):-1}function Ka(kr,Mr,pt){var fr=hr.exec(Mr.slice(pt));return fr?(kr.m=wt[fr[0].toLowerCase()],pt+fr[0].length):-1}function Yt(kr,Mr,pt){return Xt(kr,ge,Mr,pt)}function cc(kr,Mr,pt){return Xt(kr,Ne,Mr,pt)}function Nn(kr,Mr,pt){return Xt(kr,He,Mr,pt)}function wo(kr){return yt[kr.getDay()]}function ci(kr){return Qr[kr.getDay()]}function ca(kr){return Et[kr.getMonth()]}function vc(kr){return gt[kr.getMonth()]}function ds(kr){return Kr[+(kr.getHours()>=12)]}function In(kr){return 1+~~(kr.getMonth()/3)}function ps(kr){return yt[kr.getUTCDay()]}function h1(kr){return Qr[kr.getUTCDay()]}function d1(kr){return Et[kr.getUTCMonth()]}function p1(kr){return gt[kr.getUTCMonth()]}function Bv(kr){return Kr[+(kr.getUTCHours()>=12)]}function Ov(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var Mr=ia(kr+="",Nt);return Mr.toString=function(){return kr},Mr},parse:function(kr){var Mr=zn(kr+="",!1);return Mr.toString=function(){return kr},Mr},utcFormat:function(kr){var Mr=ia(kr+="",kt);return Mr.toString=function(){return kr},Mr},utcParse:function(kr){var Mr=zn(kr+="",!0);return Mr.toString=function(){return kr},Mr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ge,Ne){var He=ne<0?"-":"",Kr=(He?-ne:ne)+"",Qr=Kr.length;return He+(Qr<Ne?new Array(Ne-Qr+1).join(ge)+Kr:Kr)}function c(ne){return ne.replace(u,"\\$&")}function v(ne){return new RegExp("^(?:"+ne.map(c).join("|")+")","i")}function d(ne){for(var ge={},Ne=-1,He=ne.length;++Ne<He;)ge[ne[Ne].toLowerCase()]=Ne;return ge}function p(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+1));return He?(ne.w=+He[0],Ne+He[0].length):-1}function y(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+1));return He?(ne.u=+He[0],Ne+He[0].length):-1}function m(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.U=+He[0],Ne+He[0].length):-1}function b(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.V=+He[0],Ne+He[0].length):-1}function A(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.W=+He[0],Ne+He[0].length):-1}function w(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+4));return He?(ne.y=+He[0],Ne+He[0].length):-1}function x(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.y=+He[0]+(+He[0]>68?1900:2e3),Ne+He[0].length):-1}function _(ne,ge,Ne){var He=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ge.slice(Ne,Ne+6));return He?(ne.Z=He[1]?0:-(He[2]+(He[3]||"00")),Ne+He[0].length):-1}function k(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+1));return He?(ne.q=He[0]*3-3,Ne+He[0].length):-1}function T(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.m=He[0]-1,Ne+He[0].length):-1}function q(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.d=+He[0],Ne+He[0].length):-1}function C(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+3));return He?(ne.m=0,ne.d=+He[0],Ne+He[0].length):-1}function E(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.H=+He[0],Ne+He[0].length):-1}function P(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.M=+He[0],Ne+He[0].length):-1}function R(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.S=+He[0],Ne+He[0].length):-1}function N(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+3));return He?(ne.L=+He[0],Ne+He[0].length):-1}function I(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+6));return He?(ne.L=Math.floor(He[0]/1e3),Ne+He[0].length):-1}function O(ne,ge,Ne){var He=s.exec(ge.slice(Ne,Ne+1));return He?Ne+He[0].length:-1}function U(ne,ge,Ne){var He=l.exec(ge.slice(Ne));return He?(ne.Q=+He[0],Ne+He[0].length):-1}function Y(ne,ge,Ne){var He=l.exec(ge.slice(Ne));return He?(ne.s=+He[0],Ne+He[0].length):-1}function G(ne,ge){return f(ne.getDate(),ge,2)}function V(ne,ge){return f(ne.getHours(),ge,2)}function W(ne,ge){return f(ne.getHours()%12||12,ge,2)}function j(ne,ge){return f(1+r.timeDay.count(r.timeYear(ne),ne),ge,3)}function J(ne,ge){return f(ne.getMilliseconds(),ge,3)}function te(ne,ge){return J(ne,ge)+"000"}function ae(ne,ge){return f(ne.getMonth()+1,ge,2)}function se(ne,ge){return f(ne.getMinutes(),ge,2)}function $(ne,ge){return f(ne.getSeconds(),ge,2)}function fe(ne){var ge=ne.getDay();return ge===0?7:ge}function ie(ne,ge){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ge,2)}function ue(ne){var ge=ne.getDay();return ge>=4||ge===0?r.timeThursday(ne):r.timeThursday.ceil(ne)}function ce(ne,ge){return ne=ue(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ge,2)}function oe(ne){return ne.getDay()}function be(ne,ge){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ge,2)}function Re(ne,ge){return f(ne.getFullYear()%100,ge,2)}function ye(ne,ge){return ne=ue(ne),f(ne.getFullYear()%100,ge,2)}function Ce(ne,ge){return f(ne.getFullYear()%1e4,ge,4)}function Me(ne,ge){var Ne=ne.getDay();return ne=Ne>=4||Ne===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(ne.getFullYear()%1e4,ge,4)}function Le(ne){var ge=ne.getTimezoneOffset();return(ge>0?"-":(ge*=-1,"+"))+f(ge/60|0,"0",2)+f(ge%60,"0",2)}function De(ne,ge){return f(ne.getUTCDate(),ge,2)}function Ie(ne,ge){return f(ne.getUTCHours(),ge,2)}function qe(ne,ge){return f(ne.getUTCHours()%12||12,ge,2)}function Ze(ne,ge){return f(1+r.utcDay.count(r.utcYear(ne),ne),ge,3)}function Je(ne,ge){return f(ne.getUTCMilliseconds(),ge,3)}function Xe(ne,ge){return Je(ne,ge)+"000"}function Se(ne,ge){return f(ne.getUTCMonth()+1,ge,2)}function Fe(ne,ge){return f(ne.getUTCMinutes(),ge,2)}function er(ne,ge){return f(ne.getUTCSeconds(),ge,2)}function re(ne){var ge=ne.getUTCDay();return ge===0?7:ge}function xe(ne,ge){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ge,2)}function Ye(ne){var ge=ne.getUTCDay();return ge>=4||ge===0?r.utcThursday(ne):r.utcThursday.ceil(ne)}function vr(ne,ge){return ne=Ye(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ge,2)}function Pe(ne){return ne.getUTCDay()}function me(ne,ge){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ge,2)}function Te(ne,ge){return f(ne.getUTCFullYear()%100,ge,2)}function Ue(ne,ge){return ne=Ye(ne),f(ne.getUTCFullYear()%100,ge,2)}function $e(ne,ge){return f(ne.getUTCFullYear()%1e4,ge,4)}function Oe(ne,ge){var Ne=ne.getUTCDay();return ne=Ne>=4||Ne===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(ne.getUTCFullYear()%1e4,ge,4)}function We(){return"+0000"}function ar(){return"%"}function or(ne){return+ne}function sr(ne){return Math.floor(+ne/1e3)}var Ee;Ke({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 Ke(ne){return Ee=i(ne),e.timeFormat=Ee.format,e.timeParse=Ee.parse,e.utcFormat=Ee.utcFormat,e.utcParse=Ee.utcParse,Ee}var Be="%Y-%m-%dT%H:%M:%S.%LZ";function mr(ne){return ne.toISOString()}var yr=Date.prototype.toISOString?mr:e.utcFormat(Be);function ur(ne){var ge=new Date(ne);return isNaN(ge)?null:ge}var gr=+new Date("2000-01-01T00:00:00.000Z")?ur:e.utcParse(Be);e.isoFormat=yr,e.isoParse=gr,e.timeFormatDefaultLocale=Ke,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var f5=z((O1,VS)=>{(function(e,r){typeof O1=="object"&&typeof VS!="undefined"?r(O1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(O1,(function(e){"use strict";function r(T){return Math.abs(T=Math.round(T))>=1e21?T.toLocaleString("en").replace(/,/g,""):T.toString(10)}function t(T,q){if((C=(T=q?T.toExponential(q-1):T.toExponential()).indexOf("e"))<0)return null;var C,E=T.slice(0,C);return[E.length>1?E[0]+E.slice(2):E,+T.slice(C+1)]}function a(T){return T=t(Math.abs(T)),T?T[1]:NaN}function n(T,q){return function(C,E){for(var P=C.length,R=[],N=0,I=T[0],O=0;P>0&&I>0&&(O+I+1>E&&(I=Math.max(1,E-O)),R.push(C.substring(P-=I,P+I)),!((O+=I+1)>E));)I=T[N=(N+1)%T.length];return R.reverse().join(q)}}function i(T){return function(q){return q.replace(/[0-9]/g,function(C){return T[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(T){if(!(q=o.exec(T)))throw new Error("invalid format: "+T);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}l.prototype=s.prototype;function s(T){this.fill=T.fill===void 0?" ":T.fill+"",this.align=T.align===void 0?">":T.align+"",this.sign=T.sign===void 0?"-":T.sign+"",this.symbol=T.symbol===void 0?"":T.symbol+"",this.zero=!!T.zero,this.width=T.width===void 0?void 0:+T.width,this.comma=!!T.comma,this.precision=T.precision===void 0?void 0:+T.precision,this.trim=!!T.trim,this.type=T.type===void 0?"":T.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(T){e:for(var q=T.length,C=1,E=-1,P;C<q;++C)switch(T[C]){case".":E=P=C;break;case"0":E===0&&(E=C),P=C;break;default:if(!+T[C])break e;E>0&&(E=0);break}return E>0?T.slice(0,E)+T.slice(P+1):T}var f;function c(T,q){var C=t(T,q);if(!C)return T+"";var E=C[0],P=C[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,N=E.length;return R===N?E:R>N?E+new Array(R-N+1).join("0"):R>0?E.slice(0,R)+"."+E.slice(R):"0."+new Array(1-R).join("0")+t(T,Math.max(0,q+R-1))[0]}function v(T,q){var C=t(T,q);if(!C)return T+"";var E=C[0],P=C[1];return P<0?"0."+new Array(-P).join("0")+E:E.length>P+1?E.slice(0,P+1)+"."+E.slice(P+1):E+new Array(P-E.length+2).join("0")}var d={"%":function(T,q){return(T*100).toFixed(q)},b:function(T){return Math.round(T).toString(2)},c:function(T){return T+""},d:r,e:function(T,q){return T.toExponential(q)},f:function(T,q){return T.toFixed(q)},g:function(T,q){return T.toPrecision(q)},o:function(T){return Math.round(T).toString(8)},p:function(T,q){return v(T*100,q)},r:v,s:c,X:function(T){return Math.round(T).toString(16).toUpperCase()},x:function(T){return Math.round(T).toString(16)}};function p(T){return T}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(T){var q=T.grouping===void 0||T.thousands===void 0?p:n(y.call(T.grouping,Number),T.thousands+""),C=T.currency===void 0?"":T.currency[0]+"",E=T.currency===void 0?"":T.currency[1]+"",P=T.decimal===void 0?".":T.decimal+"",R=T.numerals===void 0?p:i(y.call(T.numerals,String)),N=T.percent===void 0?"%":T.percent+"",I=T.minus===void 0?"-":T.minus+"",O=T.nan===void 0?"NaN":T.nan+"";function U(G){G=l(G);var V=G.fill,W=G.align,j=G.sign,J=G.symbol,te=G.zero,ae=G.width,se=G.comma,$=G.precision,fe=G.trim,ie=G.type;ie==="n"?(se=!0,ie="g"):d[ie]||($===void 0&&($=12),fe=!0,ie="g"),(te||V==="0"&&W==="=")&&(te=!0,V="0",W="=");var ue=J==="$"?C:J==="#"&&/[boxX]/.test(ie)?"0"+ie.toLowerCase():"",ce=J==="$"?E:/[%p]/.test(ie)?N:"",oe=d[ie],be=/[defgprs%]/.test(ie);$=$===void 0?6:/[gprs]/.test(ie)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function Re(ye){var Ce=ue,Me=ce,Le,De,Ie;if(ie==="c")Me=oe(ye)+Me,ye="";else{ye=+ye;var qe=ye<0||1/ye<0;if(ye=isNaN(ye)?O:oe(Math.abs(ye),$),fe&&(ye=u(ye)),qe&&+ye==0&&j!=="+"&&(qe=!1),Ce=(qe?j==="("?j:I:j==="-"||j==="("?"":j)+Ce,Me=(ie==="s"?m[8+f/3]:"")+Me+(qe&&j==="("?")":""),be){for(Le=-1,De=ye.length;++Le<De;)if(Ie=ye.charCodeAt(Le),48>Ie||Ie>57){Me=(Ie===46?P+ye.slice(Le+1):ye.slice(Le))+Me,ye=ye.slice(0,Le);break}}}se&&!te&&(ye=q(ye,1/0));var Ze=Ce.length+ye.length+Me.length,Je=Ze<ae?new Array(ae-Ze+1).join(V):"";switch(se&&te&&(ye=q(Je+ye,Je.length?ae-Me.length:1/0),Je=""),W){case"<":ye=Ce+ye+Me+Je;break;case"=":ye=Ce+Je+ye+Me;break;case"^":ye=Je.slice(0,Ze=Je.length>>1)+Ce+ye+Me+Je.slice(Ze);break;default:ye=Je+Ce+ye+Me;break}return R(ye)}return Re.toString=function(){return G+""},Re}function Y(G,V){var W=U((G=l(G),G.type="f",G)),j=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,J=Math.pow(10,-j),te=m[8+j/3];return function(ae){return W(J*ae)+te}}return{format:U,formatPrefix:Y}}var A;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(T){return A=b(T),e.format=A.format,e.formatPrefix=A.formatPrefix,A}function x(T){return Math.max(0,-a(Math.abs(T)))}function _(T,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(T)))}function k(T,q){return T=Math.abs(T),q=Math.abs(q)-T,Math.max(0,a(q)-a(T))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=_,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var WS=z((uje,jS)=>{"use strict";jS.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 Br=z((fje,XS)=>{"use strict";var Kce=WS();XS.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Kce(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Zt={};qt(Zt,{ALMOST_EQUAL:()=>y0e,BADNUM:()=>c5,EPOCHJD:()=>m0e,FP_SAFE:()=>Qce,LOG_CLIP:()=>g0e,MINUS_SIGN:()=>b0e,ONEAVGMONTH:()=>l0e,ONEAVGQUARTER:()=>n0e,ONEAVGYEAR:()=>r0e,ONEDAY:()=>f0e,ONEHOUR:()=>c0e,ONEMAXMONTH:()=>o0e,ONEMAXQUARTER:()=>a0e,ONEMAXYEAR:()=>e0e,ONEMICROSEC:()=>p0e,ONEMILLI:()=>d0e,ONEMIN:()=>v0e,ONEMINMONTH:()=>s0e,ONEMINQUARTER:()=>i0e,ONEMINYEAR:()=>t0e,ONESEC:()=>h0e,ONEWEEK:()=>u0e});var c5,Qce,e0e,r0e,t0e,a0e,n0e,i0e,o0e,l0e,s0e,u0e,f0e,c0e,v0e,h0e,d0e,p0e,m0e,y0e,g0e,b0e,jt=St(()=>{"use strict";c5=void 0,Qce=Number.MAX_VALUE*1e-4,e0e=316224e5,r0e=315576e5,t0e=31536e6,a0e=79488e5,n0e=78894e5,i0e=76896e5,o0e=26784e5,l0e=26298e5,s0e=24192e5,u0e=6048e5,f0e=864e5,c0e=36e5,v0e=6e4,h0e=1e3,d0e=1,p0e=.001,m0e=24405875e-1,y0e=1-1e-6,g0e=10,b0e="\u2212"});var v5=z((H1,ZS)=>{(function(e,r){typeof H1=="object"&&typeof ZS!="undefined"?r(H1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(H1,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(o){var l=new Uint8Array(o),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],v=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],m[f++]=c<<2|v>>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Du=z((cje,$S)=>{"use strict";$S.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 Zn=z(Mo=>{"use strict";var x0e=v5().decode,_0e=Du(),h5=Array.isArray,w0e=ArrayBuffer,A0e=DataView;function JS(e){return w0e.isView(e)&&!(e instanceof A0e)}Mo.isTypedArray=JS;function U1(e){return h5(e)||JS(e)}Mo.isArrayOrTypedArray=U1;function T0e(e){return!U1(e[0])}Mo.isArray1D=T0e;Mo.ensureArray=function(e,r){return h5(e)||(e=[]),e.length=r,e};var Va={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};Va.uint8c=Va.u1c;Va.uint8=Va.u1;Va.int8=Va.i1;Va.uint16=Va.u2;Va.int16=Va.i2;Va.uint32=Va.u4;Va.int32=Va.i4;Va.float32=Va.f4;Va.float64=Va.f8;function d5(e){return e.constructor===ArrayBuffer}Mo.isArrayBuffer=d5;Mo.decodeTypedArraySpec=function(e){var r=[],t=M0e(e),a=t.dtype,n=Va[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;d5(o)||(o=x0e(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,d,c),d+=v;else if(s===3){u=+l[1];for(var p=+l[2],y=0;y<p;y++)for(r[y]=[],f=0;f<u;f++)r[y][f]=new n(o,d,c),d+=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=l.reverse().join(","),e._inputArray=r,r};Mo.isTypedArraySpec=function(e){return _0e(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||d5(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function M0e(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Mo.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(n?e.push(o):(n=o,l=s),h5(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),i=0;i<e.length;i++)o=e[i],u.set(o,l),l+=o.length;return u}for(u=new Array(t),f=0;f<n.length;f++)u[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)u[l+f]=o[f];l+=f}return u};Mo.maxRowLength=function(e){return KS(e,Math.max,0)};Mo.minRowLength=function(e){return KS(e,Math.min,1/0)};function KS(e,r,t){if(U1(e))if(U1(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 G1=z((hje,aq)=>{"use strict";var QS=Br(),m5=Zn().isArrayOrTypedArray;aq.exports=function(r,t){if(QS(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l<a.length;l++)if(String(a[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<a.length;){if(n=String(a[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[l]=n[1];else if(l===0)a.splice(0,1);else throw"bad property string";for(i=n[2].slice(1,-1).split("]["),o=0;o<i.length;o++)l++,a.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?L0e(r,t,a):{set:rq(r,a,t),get:eq(r,a),astr:t,parts:a,obj:r}};function eq(e,r){return function(t){var a=e,n,i,o,l,s;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],s=0;s<a.length;s++)o[s]=eq(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!m5(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(o=a[r[l]],!(!t&&o===null)))return o}}var k0e=/(^|\.)args\[/;function p5(e,r){return e===void 0||e===null&&!r.match(k0e)}function rq(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=p5(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!m5(n))throw"array index but container is not an array";if(s===-1){if(l=!q0e(n,r.slice(u+1),a,t),l)break;return}if(!tq(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=S0e(i,s),o.push([n,i])}if(l){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function S0e(e,r){var t=r;return QS(r)?t="["+r+"]":e&&(t="."+r),e+t}function q0e(e,r,t,a){var n=m5(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:p5(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],s=p5(o,l)),s&&(i=!1),tq(e,f,u,s)&&rq(e[f],r,a.replace("-1",f))(o);return i}function tq(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function L0e(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var lq=z((dje,oq)=>{"use strict";var wc=G1(),C0e=/^\w*$/,D0e=0,nq=1,Y1=2,iq=3,Eu=4;oq.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=wc(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][a]]=i;var f=C0e.test(n),c={set:function(v,d){var p=d===null?Eu:D0e;if(!o){if(!l||p===Eu)return;o=[],l.set(o)}var y=u[v];if(y===void 0){if(p===Eu)return;p=p|iq,y=o.length,u[v]=y}else d!==(f?o[y][n]:wc(o[y],n).get())&&(p=p|Y1);var m=o[y]=o[y]||{};return m[a]=v,f?m[n]=d:wc(m,n).set(d),d!==null&&(p=p&~Eu),s[y]=s[y]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:wc(o[d],n).get()}},rename:function(v,d){var p=u[v];return p===void 0||(s[p]=s[p]|nq,u[d]=p,delete u[v],o[p][a]=d),c},remove:function(v){var d=u[v];if(d===void 0)return c;var p=o[d];if(Object.keys(p).length>2)return s[d]=s[d]|Y1,c.set(v,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|iq;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[v]}else wc(p,n).set(null),s[d]=s[d]|Y1|Eu;return c},constructUpdate:function(){for(var v,d,p={},y=Object.keys(s),m=0;m<y.length;m++)d=y[m],v=t+"["+d+"]",o[d]?(s[d]&nq&&(p[v+"."+a]=o[d][a]),s[d]&Y1&&(f?p[v+"."+n]=s[d]&Eu?null:o[d][n]:p[v+"."+n]=s[d]&Eu?null:wc(o[d],n).get())):p[v]=null;return p}};return c}});var uq=z((pje,sq)=>{"use strict";var E0e=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,P0e=/^[^\.\[\]]+$/;sq.exports=function(e,r){for(;r;){var t=e.match(E0e);if(t)e=t[1];else if(e.match(P0e))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 V1=z((mje,fq)=>{"use strict";var R0e=Br();fq.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 R0e(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var hq=z((yje,vq)=>{"use strict";var cq=Zn().isArrayOrTypedArray,Kv=Du();vq.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(cq(n)&&cq(i)&&Kv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l<o;l++)i[l]!==n[l]&&Kv(n[l])&&Kv(i[l])&&e(i[l],n[l])}else Kv(n)&&Kv(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var Ac={};qt(Ac,{mod:()=>F0e,modHalf:()=>z0e});function F0e(e,r){let t=e%r;return t<0?t+r:t}function z0e(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var Tc=St(()=>{"use strict"});var Mt=z(rh=>{"use strict";var dq=Du(),Qv=Array.isArray;function N0e(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}rh.extendFlat=function(...e){return eh(e,!1,!1,!1)};rh.extendDeep=function(...e){return eh(e,!0,!1,!1)};rh.extendDeepAll=function(...e){return eh(e,!0,!0,!1)};rh.extendDeepNoArrays=function(...e){return eh(e,!0,!1,!0)};function eh(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&Qv(n)&&Qv(e[1])&&n.length===0){if(v=N0e(e[1],n),v)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)s=n[l],u=o[l],a&&Qv(u)?n[l]=u:r&&u&&(dq(u)||(f=Qv(u)))?(f?(f=!1,c=s&&Qv(s)?s:[]):c=s&&dq(s)?s:{},n[l]=eh([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var Ca=z((bje,pq)=>{"use strict";pq.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var th={};qt(th,{HOVERARROWSIZE:()=>B0e,HOVERFONT:()=>U0e,HOVERFONTSIZE:()=>H0e,HOVERID:()=>Y0e,HOVERMINTIME:()=>G0e,HOVERTEXTPAD:()=>O0e,YANGLE:()=>I0e});var I0e,B0e,O0e,H0e,U0e,G0e,Y0e,ah=St(()=>{"use strict";I0e=60,B0e=6,O0e=3,H0e=13,U0e="Arial, sans-serif",G0e=50,Y0e="-hover"});var Mc=z((xje,gq)=>{"use strict";var mq=(ah(),ze(th)),yq=Ca(),y5=yq({editType:"none"});y5.family.dflt=mq.HOVERFONT;y5.size.dflt=mq.HOVERFONTSIZE;gq.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:y5,grouptitlefont:yq({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 j1=z((_je,bq)=>{"use strict";var V0e=Ca(),nh=Mc().hoverlabel,ih=Mt().extendFlat;bq.exports={hoverlabel:{bgcolor:ih({},nh.bgcolor,{arrayOk:!0}),bordercolor:ih({},nh.bordercolor,{arrayOk:!0}),font:V0e({arrayOk:!0,editType:"none"}),align:ih({},nh.align,{arrayOk:!0}),namelength:ih({},nh.namelength,{arrayOk:!0}),showarrow:ih({},nh.showarrow),editType:"none"}}});var On=z((wje,xq)=>{"use strict";var j0e=Ca(),W0e=j1();xq.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:j0e({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:W0e.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var vC=z((Lje,cC)=>{var u_=Object.defineProperty,X0e=Object.getOwnPropertyDescriptor,Z0e=Object.getOwnPropertyNames,$0e=Object.prototype.hasOwnProperty,J0e=(e,r)=>{for(var t in r)u_(e,t,{get:r[t],enumerable:!0})},K0e=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Z0e(r))!$0e.call(e,n)&&n!==t&&u_(e,n,{get:()=>r[n],enumerable:!(a=X0e(r,n))||a.enumerable});return e},Q0e=e=>K0e(u_({},"__esModule",{value:!0}),e),Cq={};J0e(Cq,{a98:()=>Y2e,average:()=>Zve,averageAngle:()=>al,averageNumber:()=>Wq,blend:()=>Xde,blerp:()=>G5,clampChroma:()=>d2e,clampGamut:()=>z_,clampRgb:()=>h2e,colorsNamed:()=>Eq,convertA98ToXyz65:()=>Y5,convertCubehelixToRgb:()=>Vq,convertDlchToLab65:()=>rp,convertHsiToRgb:()=>rL,convertHslToRgb:()=>nL,convertHsvToRgb:()=>p_,convertHwbToRgb:()=>sL,convertItpToXyz65:()=>j5,convertJabToJch:()=>X5,convertJabToRgb:()=>__,convertJabToXyz65:()=>b_,convertJchToJab:()=>Z5,convertLab65ToDlch:()=>tp,convertLab65ToRgb:()=>hh,convertLab65ToXyz65:()=>v_,convertLabToLch:()=>zl,convertLabToRgb:()=>A_,convertLabToXyz50:()=>vp,convertLchToLab:()=>Nl,convertLchuvToLuv:()=>k_,convertLrgbToOklab:()=>S_,convertLrgbToRgb:()=>Bu,convertLuvToLchuv:()=>M_,convertLuvToXyz50:()=>np,convertOkhslToOklab:()=>K5,convertOkhsvToOklab:()=>e_,convertOklabToLrgb:()=>Pc,convertOklabToOkhsl:()=>J5,convertOklabToOkhsv:()=>Q5,convertOklabToRgb:()=>mh,convertP3ToXyz65:()=>r_,convertProphotoToXyz50:()=>n_,convertRec2020ToXyz65:()=>o_,convertRgbToCubehelix:()=>Yq,convertRgbToHsi:()=>tL,convertRgbToHsl:()=>iL,convertRgbToHsv:()=>m_,convertRgbToHwb:()=>uL,convertRgbToJab:()=>x_,convertRgbToLab:()=>T_,convertRgbToLab65:()=>dh,convertRgbToLrgb:()=>Iu,convertRgbToOklab:()=>ph,convertRgbToXyb:()=>NL,convertRgbToXyz50:()=>Ec,convertRgbToXyz65:()=>gs,convertRgbToYiq:()=>YL,convertXybToRgb:()=>IL,convertXyz50ToLab:()=>hp,convertXyz50ToLuv:()=>ap,convertXyz50ToProphoto:()=>a_,convertXyz50ToRgb:()=>Dc,convertXyz50ToXyz65:()=>UL,convertXyz65ToA98:()=>V5,convertXyz65ToItp:()=>W5,convertXyz65ToJab:()=>g_,convertXyz65ToLab65:()=>h_,convertXyz65ToP3:()=>t_,convertXyz65ToRec2020:()=>i_,convertXyz65ToRgb:()=>bs,convertXyz65ToXyz50:()=>HL,convertYiqToRgb:()=>VL,converter:()=>Bt,cubehelix:()=>V2e,differenceCie76:()=>Uve,differenceCie94:()=>Gve,differenceCiede2000:()=>Yve,differenceCmc:()=>Vve,differenceEuclidean:()=>Cc,differenceHueChroma:()=>vh,differenceHueNaive:()=>jq,differenceHueSaturation:()=>ch,differenceHyab:()=>jve,differenceItp:()=>Xve,differenceKotsarenkoRamos:()=>Wve,displayable:()=>F_,dlab:()=>j2e,dlch:()=>W2e,easingGamma:()=>oC,easingInOutSine:()=>U2e,easingMidpoint:()=>QL,easingSmootherstep:()=>O2e,easingSmoothstep:()=>N2e,easingSmoothstepInverse:()=>I2e,filterBrightness:()=>A2e,filterContrast:()=>T2e,filterDeficiencyDeuter:()=>F2e,filterDeficiencyProt:()=>R2e,filterDeficiencyTrit:()=>z2e,filterGrayscale:()=>S2e,filterHueRotate:()=>L2e,filterInvert:()=>q2e,filterSaturate:()=>k2e,filterSepia:()=>M2e,fixupAlpha:()=>Ba,fixupHueDecreasing:()=>Nve,fixupHueIncreasing:()=>zve,fixupHueLonger:()=>Fve,fixupHueShorter:()=>tl,formatCss:()=>Hde,formatHex:()=>Ude,formatHex8:()=>Gde,formatHsl:()=>Vde,formatRgb:()=>Yde,getMode:()=>Mn,hsi:()=>X2e,hsl:()=>Z2e,hsv:()=>$2e,hwb:()=>J2e,inGamut:()=>mp,interpolate:()=>a2e,interpolateWith:()=>rC,interpolateWithPremultipliedAlpha:()=>n2e,interpolatorLinear:()=>wr,interpolatorPiecewise:()=>Uq,interpolatorSplineBasis:()=>aC,interpolatorSplineBasisClosed:()=>nC,interpolatorSplineMonotone:()=>l2e,interpolatorSplineMonotone2:()=>s2e,interpolatorSplineMonotoneClosed:()=>u2e,interpolatorSplineNatural:()=>i2e,interpolatorSplineNaturalClosed:()=>o2e,itp:()=>K2e,jab:()=>Q2e,jch:()=>e1e,lab:()=>r1e,lab65:()=>t1e,lch:()=>a1e,lch65:()=>n1e,lchuv:()=>i1e,lerp:()=>Ru,lrgb:()=>o1e,luv:()=>l1e,mapAlphaDivide:()=>KL,mapAlphaMultiply:()=>JL,mapTransferGamma:()=>Qde,mapTransferLinear:()=>E_,mapper:()=>yh,modeA98:()=>Gq,modeCubehelix:()=>Xq,modeDlab:()=>Qq,modeDlch:()=>eL,modeHsi:()=>aL,modeHsl:()=>d_,modeHsv:()=>y_,modeHwb:()=>cL,modeItp:()=>dL,modeJab:()=>pL,modeJch:()=>mL,modeLab:()=>dp,modeLab65:()=>gL,modeLch:()=>pp,modeLch65:()=>xL,modeLchuv:()=>AL,modeLrgb:()=>TL,modeLuv:()=>ML,modeOkhsl:()=>SL,modeOkhsv:()=>qL,modeOklab:()=>CL,modeOklch:()=>EL,modeP3:()=>PL,modeProphoto:()=>RL,modeRec2020:()=>FL,modeRgb:()=>Nu,modeXyb:()=>BL,modeXyz50:()=>OL,modeXyz65:()=>GL,modeYiq:()=>jL,nearest:()=>y2e,okhsl:()=>s1e,okhsv:()=>u1e,oklab:()=>f1e,oklch:()=>c1e,p3:()=>v1e,parse:()=>Bq,parseHex:()=>Rq,parseHsl:()=>lL,parseHslLegacy:()=>oL,parseHwb:()=>fL,parseLab:()=>yL,parseLch:()=>bL,parseNamed:()=>Pq,parseOklab:()=>LL,parseOklch:()=>DL,parseRgb:()=>Oq,parseRgbLegacy:()=>Fq,parseTransparent:()=>Hq,prophoto:()=>h1e,random:()=>Kde,rec2020:()=>d1e,removeParser:()=>hve,rgb:()=>p1e,round:()=>WL,samples:()=>v2e,serializeHex:()=>D_,serializeHex8:()=>XL,serializeHsl:()=>$L,serializeRgb:()=>ZL,toGamut:()=>p2e,trilerp:()=>Tve,unlerp:()=>Ave,useMode:()=>Lt,useParser:()=>Nq,wcagContrast:()=>G2e,wcagLuminance:()=>s_,xyb:()=>m1e,xyz50:()=>y1e,xyz65:()=>g1e,yiq:()=>b1e});cC.exports=Q0e(Cq);var eve=(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}}},Dq=eve,rve={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},Eq=rve,tve=e=>Dq(Eq[e.toLowerCase()],6),Pq=tve,ave=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,nve=e=>{let r;return(r=e.match(ave))?Dq(parseInt(r[1],16),r[1].length):void 0},Rq=nve,$n="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Aje=`(?:${$n}|none)`,sh=`${$n}%`,Tje=`(?:${$n}%|none)`,f_=`(?:${$n}%|${$n})`,ive=`(?:${$n}%|${$n}|none)`,ove=`(?:${$n}(deg|grad|rad|turn)|${$n})`,Mje=`(?:${$n}(deg|grad|rad|turn)|${$n}|none)`,qc="\\s*,\\s*",kje=new RegExp("^"+ive+"$"),lve=new RegExp(`^rgba?\\(\\s*${$n}${qc}${$n}${qc}${$n}\\s*(?:,\\s*${f_}\\s*)?\\)$`),sve=new RegExp(`^rgba?\\(\\s*${sh}${qc}${sh}${qc}${sh}\\s*(?:,\\s*${f_}\\s*)?\\)$`),uve=e=>{let r={mode:"rgb"},t;if(t=e.match(lve))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(sve))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},Fq=uve,fve=(e,r)=>e===void 0?void 0:typeof e!="object"?Bq(e):e.mode!==void 0?e:r?Vt(At({},e),{mode:r}):void 0,ko=fve,cve=(e="rgb")=>r=>(r=ko(r,e))!==void 0?r.mode===e?r:rl[r.mode][e]?rl[r.mode][e](r):e==="rgb"?rl[r.mode].rgb(r):rl.rgb[e](rl[r.mode].rgb(r)):void 0,Bt=cve,rl={},zq={},Lc=[],c_={},vve=e=>e,Lt=e=>(rl[e.mode]=At(At({},rl[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{rl[r]||(rl[r]={}),rl[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=vve)}),zq[e.mode]=e,(e.parse||[]).forEach(r=>{Nq(r,e.mode)}),Bt(e.mode)),Mn=e=>zq[e],Nq=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");c_[e]=r}else typeof e=="function"&&Lc.indexOf(e)<0&&Lc.push(e)},hve=e=>{if(typeof e=="string")delete c_[e];else if(typeof e=="function"){let r=Lc.indexOf(e);r>0&&Lc.splice(r,1)}},H5=/[^\x00-\x7F]|[a-zA-Z_]/,dve=/[^\x00-\x7F]|[-\w]/,pr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ur=0;function W1(e){let r=e[Ur],t=e[Ur+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ur+2]):r==="."?/\d/.test(t):/\d/.test(r)}function U5(e){if(Ur>=e.length)return!1;let r=e[Ur];if(H5.test(r))return!0;if(r==="-"){if(e.length-Ur<2)return!1;let t=e[Ur+1];return!!(t==="-"||H5.test(t))}return!1}var pve={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function oh(e){let r="";if((e[Ur]==="-"||e[Ur]==="+")&&(r+=e[Ur++]),r+=X1(e),e[Ur]==="."&&/\d/.test(e[Ur+1])&&(r+=e[Ur++]+X1(e)),(e[Ur]==="e"||e[Ur]==="E")&&((e[Ur+1]==="-"||e[Ur+1]==="+")&&/\d/.test(e[Ur+2])?r+=e[Ur++]+e[Ur++]+X1(e):/\d/.test(e[Ur+1])&&(r+=e[Ur++]+X1(e))),U5(e)){let t=J1(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:pr.Hue,value:r*pve[t]}:void 0}return e[Ur]==="%"?(Ur++,{type:pr.Percentage,value:+r}):{type:pr.Number,value:+r}}function X1(e){let r="";for(;/\d/.test(e[Ur]);)r+=e[Ur++];return r}function J1(e){let r="";for(;Ur<e.length&&dve.test(e[Ur]);)r+=e[Ur++];return r}function mve(e){let r=J1(e);return e[Ur]==="("?(Ur++,{type:pr.Function,value:r}):r==="none"?{type:pr.None,value:void 0}:{type:pr.Ident,value:r}}function yve(e=""){let r=e.trim(),t=[],a;for(Ur=0;Ur<r.length;){if(a=r[Ur++],a===`
`||a==="	"||a===" "){for(;Ur<r.length&&(r[Ur]===`
`||r[Ur]==="	"||r[Ur]===" ");)Ur++;continue}if(a===",")return;if(a===")"){t.push({type:pr.ParenClose});continue}if(a==="+"){if(Ur--,W1(r)){t.push(oh(r));continue}return}if(a==="-"){if(Ur--,W1(r)){t.push(oh(r));continue}if(U5(r)){t.push({type:pr.Ident,value:J1(r)});continue}return}if(a==="."){if(Ur--,W1(r)){t.push(oh(r));continue}return}if(a==="/"){for(;Ur<r.length&&(r[Ur]===`
`||r[Ur]==="	"||r[Ur]===" ");)Ur++;let n;if(W1(r)&&(n=oh(r),n.type!==pr.Hue)){t.push({type:pr.Alpha,value:n});continue}if(U5(r)&&J1(r)==="none"){t.push({type:pr.Alpha,value:{type:pr.None,value:void 0}});continue}return}if(/\d/.test(a)){Ur--,t.push(oh(r));continue}if(H5.test(a)){Ur--,t.push(mve(r));continue}return}return t}function gve(e){e._i=0;let r=e[e._i++];if(!r||r.type!==pr.Function||r.value!=="color"||(r=e[e._i++],r.type!==pr.Ident))return;let t=c_[r.value];if(!t)return;let a={mode:t},n=Iq(e,!1);if(!n)return;let i=Mn(t).channels;for(let o=0,l,s;o<i.length;o++)l=n[o],s=i[o],l.type!==pr.None&&(a[s]=l.type===pr.Number?l.value:l.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function Iq(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===pr.None||a.type===pr.Number||a.type===pr.Alpha||a.type===pr.Percentage||r&&a.type===pr.Hue){t.push(a);continue}if(a.type===pr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==pr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:pr.None,value:void 0}),t.every(n=>n.type!==pr.Alpha)?t:void 0}}function bve(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==pr.Function)return;let a=Iq(e,r);if(a)return a.unshift(t.value),a}var xve=e=>{if(typeof e!="string")return;let r=yve(e),t=r?bve(r,!0):void 0,a,n=0,i=Lc.length;for(;n<i;)if((a=Lc[n++](e,t))!==void 0)return a;return r?gve(r):void 0},Bq=xve;function _ve(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===pr.Hue||n.type===pr.Hue||i.type===pr.Hue))return a.type!==pr.None&&(t.r=a.type===pr.Number?a.value/255:a.value/100),n.type!==pr.None&&(t.g=n.type===pr.Number?n.value/255:n.value/100),i.type!==pr.None&&(t.b=i.type===pr.Number?i.value/255:i.value/100),o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var Oq=_ve,wve=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Hq=wve,Ru=(e,r,t)=>e+t*(r-e),Ave=(e,r,t)=>(t-e)/(r-e),G5=(e,r,t,a,n,i)=>Ru(Ru(e,r,n),Ru(t,a,n),i),Tve=(e,r,t,a,n,i,o,l,s,u,f)=>Ru(G5(e,r,t,a,s,u),G5(n,i,o,l,s,u),f),Mve=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},Uq=e=>r=>{let t=Mve(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},wr=Uq(Ru),Ba=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},kve={mode:"rgb",channels:["r","g","b","alpha"],parse:[Oq,Rq,Fq,Pq,Hq,"srgb"],serialize:"srgb",interpolate:{r:wr,g:wr,b:wr,alpha:{use:wr,fixup:Ba}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Nu=kve,g5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Sve=e=>{let r=g5(e.r),t=g5(e.g),a=g5(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},Y5=Sve,b5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),qve=({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:b5(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:b5(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:b5(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},V5=qve,x5=(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)},Lve=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:x5(e),g:x5(r),b:x5(t)};return a!==void 0&&(n.alpha=a),n},Iu=Lve,Cve=e=>{let{r,g:t,b:a,alpha:n}=Iu(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},gs=Cve,_5=(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},Dve=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:_5(e),g:_5(r),b:_5(t)};return a!==void 0&&(i.alpha=a),i},Bu=Dve,Eve=({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=Bu({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},bs=Eve,Pve=Vt(At({},Nu),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>V5(gs(e)),xyz65:V5},toMode:{rgb:e=>bs(Y5(e)),xyz65:Y5}}),Gq=Pve,Rve=e=>(e=e%360)<0?e+360:e,pn=Rve,op=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=pn(t);return a===0||e[a-1]===void 0?i:r(i-pn(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),[]),tl=e=>op(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Fve=e=>op(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),zve=e=>op(e,r=>r>=0?r:r+360),Nve=e=>op(e,r=>r<=0?r:r-360),an=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Ive=Math.PI/180,Bve=180/Math.PI,_q=an[3]*an[4],wq=an[1]*an[4],Aq=an[1]*an[2]-an[0]*an[3],Ove=({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=(Aq*t+e*_q-r*wq)/(Aq+_q-wq),i=t-n,o=(an[4]*(r-n)-an[2]*i)/an[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(an[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*Bve-120),a!==void 0&&(l.alpha=a),l},Yq=Ove,Hve=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Ive,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(an[0]*o+an[1]*l),n.g=t+i*(an[2]*o+an[3]*l),n.b=t+i*(an[4]*o+an[5]*l),a!==void 0&&(n.alpha=a),n},Vq=Hve,ch=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=pn(e.h),a=pn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},jq=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=pn(e.h),a=pn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},vh=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=pn(e.h),a=pn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Cc=(e="rgb",r=[1,1,1,0])=>{let t=Mn(e),a=t.channels,n=t.difference,i=Bt(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,v)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},Uve=()=>Cc("lab65"),Gve=(e=1,r=.045,t=.015)=>{let a=Bt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,y=Math.sqrt(d*d+p*p),m=Math.pow(s-v,2),b=Math.pow(c-y,2),A=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(m/Math.pow(e,2)+b/Math.pow(1+r*c,2)+A/Math.pow(1+t*c,2))}},Yve=(e=1,r=1,t=1)=>{let a=Bt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,y=Math.sqrt(d*d+p*p),m=(c+y)/2,b=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),A=u*(1+b),w=d*(1+b),x=Math.sqrt(A*A+f*f),_=Math.sqrt(w*w+p*p),k=Math.abs(A)+Math.abs(f)===0?0:Math.atan2(f,A);k+=(k<0)*2*Math.PI;let T=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);T+=(T<0)*2*Math.PI;let q=v-s,C=_-x,E=x*_===0?0:T-k;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*_)*Math.sin(E/2),R=(s+v)/2,N=(x+_)/2,I;x*_===0?I=k+T:(I=(k+T)/2,I-=(Math.abs(k-T)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let O=Math.pow(R-50,2),U=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),Y=1+.015*O/Math.sqrt(20+O),G=1+.045*N,V=1+.015*N*U,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),j=2*Math.sqrt(Math.pow(N,7)/(Math.pow(N,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*j;return Math.sqrt(Math.pow(q/(e*Y),2)+Math.pow(C/(r*G),2)+Math.pow(P/(t*V),2)+J*C/(r*G)*P/(t*V))}},Vve=(e=1,r=1)=>{let t=Bt("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,y=Math.sqrt(d*d+p*p),m=Math.pow(o-v,2),b=Math.pow(u-y,2),A=Math.pow(l-d,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)),_=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,T=k*(w*x+1-w);return Math.sqrt(m/Math.pow(e*_,2)+b/Math.pow(r*k,2)+A/Math.pow(T,2))}},jve=()=>{let e=Bt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},Wve=()=>Cc("yiq",[.5053,.299,.1957]),Xve=()=>Cc("itp",[518400,129600,518400]),al=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},Wq=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},w5=e=>typeof e=="function";function Zve(e,r="rgb",t){let a=Mn(r),n=e.map(Bt(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;w5(t)?s=t:t&&w5(t[o])?s=t[o]:a.average&&w5(a.average[o])?s=a.average[o]:s=Wq,i[o]=s(l,o)}return i},{mode:r})}var $ve={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Yq},toMode:{rgb:Vq},interpolate:{h:{use:wr,fixup:tl},s:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:ch},average:{h:al}},Xq=$ve,Jve=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=pn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},zl=Jve,Kve=({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},Nl=Kve,Zq=Math.pow(29,3)/Math.pow(3,3),$q=Math.pow(6,3)/Math.pow(29,3),Ia={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Sc={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Sje=Math.pow(29,3)/Math.pow(3,3),qje=Math.pow(6,3)/Math.pow(29,3),A5=e=>Math.pow(e,3)>$q?Math.pow(e,3):(116*e-16)/Zq,Qve=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:A5(i)*Sc.X,y:A5(n)*Sc.Y,z:A5(o)*Sc.Z};return a!==void 0&&(l.alpha=a),l},v_=Qve,ehe=e=>bs(v_(e)),hh=ehe,T5=e=>e>$q?Math.cbrt(e):(Zq*e+16)/116,rhe=({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=T5(e/Sc.X),i=T5(r/Sc.Y),o=T5(t/Sc.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},h_=rhe,the=e=>{let r=h_(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dh=the,K1=1,Jq=1,fh=26/180*Math.PI,Q1=Math.cos(fh),ep=Math.sin(fh),Kq=100/Math.log(139/100),ahe=({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*K1/Kq)-1)/.0039},i=(Math.exp(.0435*r*Jq*K1)-1)/.075,o=i*Math.cos(t/180*Math.PI-fh),l=i*Math.sin(t/180*Math.PI-fh);return n.a=o*Q1-l/.83*ep,n.b=o*ep+l/.83*Q1,a!==void 0&&(n.alpha=a),n},rp=ahe,nhe=({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*Q1+t*ep,i=.83*(t*Q1-r*ep),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Kq/K1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Jq*K1)};return l.c&&(l.h=pn((Math.atan2(i,n)+fh)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},tp=nhe,Tq=e=>rp(zl(e,"dlch")),Mq=e=>Nl(tp(e),"dlab"),ihe={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Tq,rgb:e=>hh(Tq(e))},fromMode:{lab65:Mq,rgb:e=>Mq(dh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:wr,a:wr,b:wr,alpha:{use:wr,fixup:Ba}}},Qq=ihe,ohe={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:rp,dlab:e=>Nl(e,"dlab"),rgb:e=>hh(rp(e))},fromMode:{lab65:tp,dlab:e=>zl(e,"dlch"),rgb:e=>tp(dh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:wr,c:wr,h:{use:wr,fixup:tl},alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},eL=ohe;function rL({h:e,s:r,i:t,alpha:a}){e=pn(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 tL({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var lhe={mode:"hsi",toMode:{rgb:rL},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:tL},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:wr,fixup:tl},s:wr,i:wr,alpha:{use:wr,fixup:Ba}},difference:{h:ch},average:{h:al}},aL=lhe;function nL({h:e,s:r,l:t,alpha:a}){e=pn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t+r*(t<.5?t:1-t),i=n-(n-t)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n,g:i,b:2*t-n};break;case 1:o={r:i,g:n,b:2*t-n};break;case 2:o={r:2*t-n,g:n,b:i};break;case 3:o={r:2*t-n,g:i,b:n};break;case 4:o={r:i,g:2*t-n,b:n};break;case 5:o={r:n,g:2*t-n,b:i};break;default:o={r:2*t-n,g:2*t-n,b:2*t-n}}return o.mode="rgb",a!==void 0&&(o.alpha=a),o}function iL({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var she=(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}},uhe=she,fhe=new RegExp(`^hsla?\\(\\s*${ove}${qc}${sh}${qc}${sh}\\s*(?:,\\s*${f_}\\s*)?\\)$`),che=e=>{let r=e.match(fhe);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=uhe(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},oL=che;function vhe(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Percentage)return;t.h=a.value}if(n.type!==pr.None){if(n.type===pr.Hue)return;t.s=n.value/100}if(i.type!==pr.None){if(i.type===pr.Hue)return;t.l=i.value/100}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var lL=vhe,hhe={mode:"hsl",toMode:{rgb:nL},fromMode:{rgb:iL},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[lL,oL],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:wr,fixup:tl},s:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:ch},average:{h:al}},d_=hhe;function p_({h:e,s:r,v:t,alpha:a}){e=pn(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 m_({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var dhe={mode:"hsv",toMode:{rgb:p_},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:m_},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:wr,fixup:tl},s:wr,v:wr,alpha:{use:wr,fixup:Ba}},difference:{h:ch},average:{h:al}},y_=dhe;function sL({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 p_({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function uL(e){let r=m_(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 phe(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Percentage)return;t.h=a.value}if(n.type!==pr.None){if(n.type===pr.Hue)return;t.w=n.value/100}if(i.type!==pr.None){if(i.type===pr.Hue)return;t.b=i.value/100}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var fL=phe,mhe={mode:"hwb",toMode:{rgb:sL},fromMode:{rgb:uL},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[fL],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:wr,fixup:tl},w:wr,b:wr,alpha:{use:wr,fixup:Ba}},difference:{h:jq},average:{h:al}},cL=mhe,vL=203,lp=.1593017578125,hL=78.84375,sp=.8359375,up=18.8515625,fp=18.6875;function M5(e){if(e<0)return 0;let r=Math.pow(e,1/hL);return 1e4*Math.pow(Math.max(0,r-sp)/(up-fp*r),1/lp)}function k5(e){if(e<0)return 0;let r=Math.pow(e/1e4,lp);return Math.pow((sp+up*r)/(1+fp*r),hL)}var S5=e=>Math.max(e/vL,0),yhe=({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=M5(e+.008609037037932761*r+.11102962500302593*t),i=M5(e-.00860903703793275*r-.11102962500302599*t),o=M5(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:S5(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:S5(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:S5(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},j5=yhe,q5=(e=0)=>Math.max(e*vL,0),ghe=({x:e,y:r,z:t,alpha:a})=>{let n=q5(e),i=q5(r),o=q5(t),l=k5(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=k5(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=k5(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,v=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(d.alpha=a),d},W5=ghe,bhe={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:j5,rgb:e=>bs(j5(e))},fromMode:{xyz65:W5,rgb:e=>W5(gs(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:wr,t:wr,p:wr,alpha:{use:wr,fixup:Ba}}},dL=bhe,xhe=134.03437499999998,_he=16295499532821565e-27,L5=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,lp);return Math.pow((sp+up*r)/(1+fp*r),xhe)},C5=(e=0)=>Math.max(e*203,0),whe=({x:e,y:r,z:t,alpha:a})=>{e=C5(e),r=C5(r),t=C5(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=L5(.41478972*n+.579999*i+.014648*t),l=L5(-.20151*n+1.120649*i+.0531008*t),s=L5(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-_he,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},g_=whe,Ahe=134.03437499999998,kq=16295499532821565e-27,D5=e=>{if(e<0)return 0;let r=Math.pow(e,1/Ahe);return 1e4*Math.pow((sp-r)/(fp*r-up),1/lp)},E5=e=>e/203,The=({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+kq)/(.44+.56*(e+kq)),i=D5(n+.13860504*r+.058047316*t),o=D5(n-.13860504*r-.058047316*t),l=D5(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:E5(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:E5(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:E5(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},b_=The,Mhe=e=>{let r=g_(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x_=Mhe,khe=e=>bs(b_(e)),__=khe,She={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x_,xyz65:g_},toMode:{rgb:__,xyz65:b_},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:wr,a:wr,b:wr,alpha:{use:wr,fixup:Ba}}},pL=She,qhe=({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=pn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},X5=qhe,Lhe=({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},Z5=Lhe,Che={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Z5,rgb:e=>__(Z5(e))},fromMode:{rgb:e=>X5(x_(e)),jab:X5},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:wr,fixup:tl},c:wr,j:wr,alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},mL=Che,cp=Math.pow(29,3)/Math.pow(3,3),w_=Math.pow(6,3)/Math.pow(29,3),P5=e=>Math.pow(e,3)>w_?Math.pow(e,3):(116*e-16)/cp,Dhe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:P5(i)*Ia.X,y:P5(n)*Ia.Y,z:P5(o)*Ia.Z};return a!==void 0&&(l.alpha=a),l},vp=Dhe,Ehe=({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=Bu({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},Dc=Ehe,Phe=e=>Dc(vp(e)),A_=Phe,Rhe=e=>{let{r,g:t,b:a,alpha:n}=Iu(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},Ec=Rhe,R5=e=>e>w_?Math.cbrt(e):(cp*e+16)/116,Fhe=({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=R5(e/Ia.X),i=R5(r/Ia.Y),o=R5(t/Ia.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},hp=Fhe,zhe=e=>{let r=hp(Ec(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T_=zhe;function Nhe(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===pr.Hue||n.type===pr.Hue||i.type===pr.Hue))return a.type!==pr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==pr.None&&(t.a=n.type===pr.Number?n.value:n.value*125/100),i.type!==pr.None&&(t.b=i.type===pr.Number?i.value:i.value*125/100),o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var yL=Nhe,Ihe={mode:"lab",toMode:{xyz50:vp,rgb:A_},fromMode:{xyz50:hp,rgb:T_},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[yL],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:wr,a:wr,b:wr,alpha:{use:wr,fixup:Ba}}},dp=Ihe,Bhe=Vt(At({},dp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:v_,rgb:hh},fromMode:{xyz65:h_,rgb:dh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),gL=Bhe;function Ohe(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==pr.None&&(t.c=Math.max(0,n.type===pr.Number?n.value:n.value*150/100)),i.type!==pr.None){if(i.type===pr.Percentage)return;t.h=i.value}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var bL=Ohe,Hhe={mode:"lch",toMode:{lab:Nl,rgb:e=>A_(Nl(e))},fromMode:{rgb:e=>zl(T_(e)),lab:zl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[bL],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:wr,fixup:tl},c:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},pp=Hhe,Uhe=Vt(At({},pp),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Nl(e,"lab65"),rgb:e=>hh(Nl(e,"lab65"))},fromMode:{rgb:e=>zl(dh(e),"lch65"),lab65:e=>zl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),xL=Uhe,Ghe=({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=pn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},M_=Ghe,Yhe=({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},k_=Yhe,_L=(e,r,t)=>4*e/(e+15*r+3*t),wL=(e,r,t)=>9*r/(e+15*r+3*t),Vhe=_L(Ia.X,Ia.Y,Ia.Z),jhe=wL(Ia.X,Ia.Y,Ia.Z),Whe=e=>e<=w_?cp*e:116*Math.cbrt(e)-16,Xhe=({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=Whe(r/Ia.Y),i=_L(e,r,t),o=wL(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Vhe),o=13*n*(o-jhe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},ap=Xhe,Zhe=(e,r,t)=>4*e/(e+15*r+3*t),$he=(e,r,t)=>9*r/(e+15*r+3*t),Jhe=Zhe(Ia.X,Ia.Y,Ia.Z),Khe=$he(Ia.X,Ia.Y,Ia.Z),Qhe=({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)+Jhe,i=t/(13*e)+Khe,o=Ia.Y*(e<=8?e/cp:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},np=Qhe,ede=e=>M_(ap(Ec(e))),rde=e=>Dc(np(k_(e))),tde={mode:"lchuv",toMode:{luv:k_,rgb:rde},fromMode:{rgb:ede,luv:M_},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:wr,fixup:tl},c:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},AL=tde,ade=Vt(At({},Nu),{mode:"lrgb",toMode:{rgb:Bu},fromMode:{rgb:Iu},parse:["srgb-linear"],serialize:"srgb-linear"}),TL=ade,nde={mode:"luv",toMode:{xyz50:np,rgb:e=>Dc(np(e))},fromMode:{xyz50:ap,rgb:e=>ap(Ec(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:wr,u:wr,v:wr,alpha:{use:wr,fixup:Ba}}},ML=nde,ide=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},S_=ide,ode=e=>{let r=S_(Iu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ph=ode,lde=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},Pc=lde,sde=e=>Bu(Pc(e)),mh=sde;function $5(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function ip(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function ude(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,y=1+f*v,m=1+f*d,b=p*p*p,A=y*y*y,w=m*m*m,x=3*c*p*p,_=3*v*y*y,k=3*d*m*m,T=6*c*c*p,q=6*v*v*y,C=6*d*d*m,E=l*b+s*A+u*w,P=l*x+s*_+u*k,R=l*T+s*q+u*C;f=f-E*P/(P*P-.5*E*R)}return f}function q_(e,r){let t=ude(e,r),a=Pc({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 fde(e,r,t,a,n,i=null){i||(i=q_(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=l+s*u,d=l+s*f,p=l+s*c;{let y=n*(1-o)+o*t,m=o*a,b=y+m*u,A=y+m*f,w=y+m*c,x=b*b*b,_=A*A*A,k=w*w*w,T=3*v*b*b,q=3*d*A*A,C=3*p*w*w,E=6*v*v*b,P=6*d*d*A,R=6*p*p*w,N=4.0767416621*x-3.3077115913*_+.2309699292*k-1,I=4.0767416621*T-3.3077115913*q+.2309699292*C,O=4.0767416621*E-3.3077115913*P+.2309699292*R,U=I/(I*I-.5*N*O),Y=-N*U,G=-1.2684380046*x+2.6097574011*_-.3413193965*k-1,V=-1.2684380046*T+2.6097574011*q-.3413193965*C,W=-1.2684380046*E+2.6097574011*P-.3413193965*R,j=V/(V*V-.5*G*W),J=-G*j,te=-.0041960863*x-.7034186147*_+1.707614701*k-1,ae=-.0041960863*T-.7034186147*q+1.707614701*C,se=-.0041960863*E-.7034186147*P+1.707614701*R,$=ae/(ae*ae-.5*te*se),fe=-te*$;Y=U>=0?Y:1e6,J=j>=0?J:1e6,fe=$>=0?fe:1e6,o+=Math.min(Y,Math.min(J,fe))}}}return o}function L_(e,r,t=null){t||(t=q_(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function kL(e,r,t){let a=q_(r,t),n=fde(r,t,e,1,e,a),i=L_(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function J5(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:$5(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=kL(r,t/i,a/i),u;if(i<l){let f=0,c=.8*o,v=1-c/l;u=(i-f)/(c+v*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,v=1-c/(s-l);u=.8+.2*((i-f)/(c+v*(i-f)))}return u&&(n.s=u,n.h=pn(Math.atan2(a,t)*180/Math.PI)),n}function K5(e){let r=e.h!==void 0?e.h:0,t=e.s!==void 0?e.s:0,a=e.l!==void 0?e.l:0,n={mode:"oklab",l:ip(a)};if(e.alpha!==void 0&&(n.alpha=e.alpha),!t||a===1)return n.a=n.b=0,n;let i=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[l,s,u]=kL(n.l,i,o),f,c,v,d;t<.8?(f=1.25*t,c=0,v=.8*l,d=1-v/s):(f=5*(t-.8),c=s,v=.2*s*s*1.25*1.25/l,d=1-v/(u-s));let p=c+f*v/(1-d*f);return n.a=p*i,n.b=p*o,n}var cde=Vt(At({},d_),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:J5,rgb:e=>J5(ph(e))},toMode:{oklab:K5,rgb:e=>mh(K5(e))}}),SL=cde;function Q5(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=L_(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=ip(v),y=d*p/v,m=Pc({l:p,a:i*y,b:o*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));r=r/b,n=n/b*$5(r)/r,r=$5(r);let A={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return A.s&&(A.h=pn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(A.alpha=e.alpha),A}function e_(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=L_(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),d=ip(c),p=v*d/c,y=Pc({l:d,a:i*p,b:o*p}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=ip(n*c),A=v*b/c;return r.l=b*m,r.a=A*i*m,r.b=A*o*m,r}var vde=Vt(At({},y_),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Q5,rgb:e=>Q5(ph(e))},toMode:{oklab:e_,rgb:e=>mh(e_(e))}}),qL=vde;function hde(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===pr.Hue||n.type===pr.Hue||i.type===pr.Hue))return a.type!==pr.None&&(t.l=Math.min(Math.max(0,a.type===pr.Number?a.value:a.value/100),1)),n.type!==pr.None&&(t.a=n.type===pr.Number?n.value:n.value*.4/100),i.type!==pr.None&&(t.b=i.type===pr.Number?i.value:i.value*.4/100),o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var LL=hde,dde=Vt(At({},dp),{mode:"oklab",toMode:{lrgb:Pc,rgb:mh},fromMode:{lrgb:S_,rgb:ph},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[LL],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}`:""})`}),CL=dde;function pde(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Hue)return;t.l=Math.min(Math.max(0,a.type===pr.Number?a.value:a.value/100),1)}if(n.type!==pr.None&&(t.c=Math.max(0,n.type===pr.Number?n.value:n.value*.4/100)),i.type!==pr.None){if(i.type===pr.Percentage)return;t.h=i.value}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var DL=pde,mde=Vt(At({},pp),{mode:"oklch",toMode:{oklab:e=>Nl(e,"oklab"),rgb:e=>mh(Nl(e,"oklab"))},fromMode:{rgb:e=>zl(ph(e),"oklch"),oklab:e=>zl(e,"oklch")},parse:[DL],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]}}),EL=mde,yde=e=>{let{r,g:t,b:a,alpha:n}=Iu(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},r_=yde,gde=({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=Bu({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},t_=gde,bde=Vt(At({},Nu),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>t_(gs(e)),xyz65:t_},toMode:{rgb:e=>bs(r_(e)),xyz65:r_}}),PL=bde,F5=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},xde=({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:F5(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:F5(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:F5(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},a_=xde,z5=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},_de=e=>{let r=z5(e.r),t=z5(e.g),a=z5(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},n_=_de,wde=Vt(At({},Nu),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:a_,rgb:e=>a_(Ec(e))},toMode:{xyz50:n_,rgb:e=>Dc(n_(e))}}),RL=wde,Sq=1.09929682680944,Ade=.018053968510807,N5=e=>{let r=Math.abs(e);return r>Ade?(Math.sign(e)||1)*(Sq*Math.pow(r,.45)-(Sq-1)):4.5*e},Tde=({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:N5(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:N5(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:N5(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},i_=Tde,qq=1.09929682680944,Mde=.018053968510807,I5=(e=0)=>{let r=Math.abs(e);return r<Mde*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+qq-1)/qq,1/.45)},kde=e=>{let r=I5(e.r),t=I5(e.g),a=I5(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},o_=kde,Sde=Vt(At({},Nu),{mode:"rec2020",fromMode:{xyz65:i_,rgb:e=>i_(gs(e))},toMode:{xyz65:o_,rgb:e=>bs(o_(e))},parse:["rec2020"],serialize:"rec2020"}),FL=Sde,Fu=.0037930732552754493,zL=Math.cbrt(Fu),B5=e=>Math.cbrt(e)-zL,qde=e=>{let{r,g:t,b:a,alpha:n}=Iu(e),i=B5(.3*r+.622*t+.078*a+Fu),o=B5(.23*r+.692*t+.078*a+Fu),l=B5(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Fu),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},NL=qde,O5=e=>Math.pow(e+zL,3),Lde=({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=O5(e+r)-Fu,i=O5(r-e)-Fu,o=O5(t+r)-Fu,l=Bu({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},IL=Lde,Cde={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:IL},fromMode:{rgb:NL},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:wr,y:wr,b:wr,alpha:{use:wr,fixup:Ba}}},BL=Cde,Dde={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Dc,lab:hp},fromMode:{rgb:Ec,lab:vp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:wr,y:wr,z:wr,alpha:{use:wr,fixup:Ba}}},OL=Dde,Ede=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},HL=Ede,Pde=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},UL=Pde,Rde={mode:"xyz65",toMode:{rgb:bs,xyz50:HL},fromMode:{rgb:gs,xyz50:UL},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:wr,y:wr,z:wr,alpha:{use:wr,fixup:Ba}}},GL=Rde,Fde=({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},YL=Fde,zde=({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},VL=zde,Nde={mode:"yiq",toMode:{rgb:VL},fromMode:{rgb:YL},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:wr,i:wr,q:wr,alpha:{use:wr,fixup:Ba}}},jL=Nde,Ide=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,Bde=(e=4)=>r=>typeof r=="number"?Ide(r,e):r,WL=Bde,lh=WL(2),uh=e=>Math.max(0,Math.min(1,e||0)),zu=e=>Math.round(uh(e)*255),C_=Bt("rgb"),Ode=Bt("hsl"),D_=e=>{if(e===void 0)return;let r=zu(e.r),t=zu(e.g),a=zu(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},XL=e=>{if(e===void 0)return;let r=zu(e.alpha!==void 0?e.alpha:1);return D_(e)+(256|r).toString(16).slice(1)},ZL=e=>{if(e===void 0)return;let r=zu(e.r),t=zu(e.g),a=zu(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},$L=e=>{if(e===void 0)return;let r=lh(e.h||0),t=lh(uh(e.s)*100)+"%",a=lh(uh(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},Hde=e=>{let r=ko(e);if(!r)return;let t=Mn(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)},Ude=e=>D_(C_(e)),Gde=e=>XL(C_(e)),Yde=e=>ZL(C_(e)),Vde=e=>$L(Ode(e)),jde={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},Wde=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:jde[r],n=Bt(t),i=Mn(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},Xde=Wde,Zde=([e,r])=>e+Math.random()*(r-e),$de=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Jde=(e="rgb",r={})=>{let t=Mn(e),a=$de(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Zde(a[i]||t.ranges[i])),n),{mode:e})},Kde=Jde,yh=(e,r="rgb",t=!1)=>{let a=r?Mn(r).channels:null,n=r?Bt(r):ko;return i=>{let o=n(i);if(!o)return;let l=(a||Mn(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=ko(i);return s&&s.mode!==l.mode?Bt(s.mode)(l):l}},JL=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,KL=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,E_=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Qde=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,e2e=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},r2e=e2e,t2e=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),QL=t2e,Z1=e=>typeof e=="function",Pu=e=>e&&typeof e=="object",Lq=e=>typeof e=="number",eC=(e,r="rgb",t,a)=>{let n=Mn(r),i=Bt(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):Lq(v)||Z1(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),r2e(l);let u=n.channels.reduce((v,d)=>{let p;return Pu(t)&&Pu(t[d])&&t[d].fixup?p=t[d].fixup:Pu(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=y=>y,v[d]=p(o.map(y=>y[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((y,m)=>(y[m]=u[m][p],y),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(y=>{let m=a(y[p],p,y,r);return isNaN(m)?void 0:m}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return Z1(t)?p=t:Pu(t)&&Z1(t[d])?p=t[d]:Pu(t)&&Pu(t[d])&&t[d].use?p=t[d].use:Z1(n.interpolate[d])?p=n.interpolate[d]:Pu(n.interpolate[d])&&(p=n.interpolate[d].use),v[d]=p(u[d]),v},{}),c=o.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=l[0])return o[0];if(v>l[c])return o[c];let d=0;for(;l[d]<v;)d++;let p=l[d-1],y=l[d]-p,m=(v-p)/y,b=s[d]||s[0];b!==void 0&&(Lq(b)&&(b=QL((b-p)/y)),m=b(m));let A=(d-1+m)/c;return n.channels.reduce((w,x)=>{let _=f[x](A);return _!==void 0&&(w[x]=_),w},{mode:r})}},a2e=(e,r="rgb",t)=>eC(e,r,t),rC=(e,r)=>(t,a="rgb",n)=>{let i=r?yh(r,a):void 0,o=eC(t,a,n,e);return i?l=>i(o(l)):o},n2e=rC(JL,KL),$1=(e,r)=>(e+r)%r,tC=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},aC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return tC(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)},nC=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return tC(e[$1(a-1,e.length)],e[$1(a,e.length)],e[$1(a+1,e.length)],e[$1(a+2,e.length)],(r-a/t)*t)},iC=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},i2e=e=>aC(iC(e)),o2e=e=>nC(iC(e)),kc=Math.sign,l_=Math.min,vi=Math.abs,P_=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?(kc(t[i-1])+kc(t[i]))*l_(vi(t[i-1]),vi(t[i]),.5*vi(a[i])):void 0);return[t,a,n]},R_=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},l2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,,a]=P_(e);return a[0]=t[0],a[r]=t[r-1],R_(e,a,t)},s2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,a,n]=P_(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:vi(a[0])>2*vi(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:vi(a[r])>2*vi(t[r-1])?2*t[r-1]:a[r],R_(e,n,t)},u2e=e=>{let r=e.length-1,[t,a,n]=P_(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(kc(i)+kc(t[0]))*l_(vi(i),vi(t[0]),.5*vi(a[0])),n[r]=(kc(t[r-1])+kc(o))*l_(vi(t[r-1]),vi(o),.5*vi(a[r])),R_(e,n,t)},f2e=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),oC=f2e,c2e=(e=2,r=1)=>{let t=oC(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},v2e=c2e,lC=Bt("rgb"),sC=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},uC=e=>sC(lC(e)),fC=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 F_(e){return fC(lC(e))}function mp(e="rgb"){let{gamut:r}=Mn(e);if(!r)return a=>!0;let t=Bt(typeof r=="string"?r:e);return a=>fC(t(a))}function h2e(e){return e=ko(e),e===void 0||F_(e)?e:Bt(e.mode)(uC(e))}function z_(e="rgb"){let{gamut:r}=Mn(e);if(!r)return i=>ko(i);let t=typeof r=="string"?r:e,a=Bt(t),n=mp(t);return i=>{let o=ko(i);if(!o)return;let l=a(o);if(n(l))return o;let s=sC(l);return o.mode===s.mode?s:Bt(o.mode)(s)}}function d2e(e,r="lch",t="rgb"){e=ko(e);let a=t==="rgb"?F_:mp(t),n=t==="rgb"?uC:z_(t);if(e===void 0||a(e))return e;let i=Bt(e.mode);e=Bt(r)(e);let o=Vt(At({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Mn(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Vt(At({},o),{c}))}function p2e(e="rgb",r="oklch",t=Cc("oklch"),a=.02){let n=Bt(e),i=Mn(e);if(!i.gamut)return f=>n(f);let o=mp(e),l=z_(e),s=Bt(r),{ranges:u}=Mn(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=ko(f),f===void 0)return;let c=At({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let m=Vt(At({},i.white),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(c.l<=u.l[0]){let m=Vt(At({},i.black),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,y=l(c);for(;d-v>p;)c.c=(v+d)*.5,y=l(c),o(c)||t&&a>0&&t(c,y)<=a?v=c.c:d=c.c;return n(o(c)?c:y)}}var m2e=(e,r=Cc(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.d<o).map(l=>e[l.i]))},y2e=m2e,N_=e=>Math.max(e,0),I_=e=>Math.max(Math.min(e,1),0),g2e=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),b2e=e=>{let r=1-I_(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]},x2e=e=>{let r=N_(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]},_2e=e=>{let r=1-I_(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]},w2e=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]},yp=(e,r,t=!1)=>{let a=Bt(r),n=Mn(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c<e.length;c++)s=n[Math.floor(c/u)],o[s]!==void 0&&(l[s]=(l[s]||0)+e[c]*(o[n[c%u]]||0));if(!t)return l;let f=ko(i);return f&&l.mode!==f.mode?Bt(f.mode)(l):l}},A2e=(e=1,r="rgb")=>{let t=N_(e);return yh(E_(t),r,!0)},T2e=(e=1,r="rgb")=>{let t=N_(e);return yh(E_(t,(1-t)/2),r,!0)},M2e=(e=1,r="rgb")=>yp(b2e(e),r,!0),k2e=(e=1,r="rgb")=>yp(x2e(e),r,!0),S2e=(e=1,r="rgb")=>yp(_2e(e),r,!0),q2e=(e=1,r="rgb")=>{let t=I_(e);return yh((a,n)=>n==="alpha"?a:g2e(t,1-t,a),r,!0)},L2e=(e=0,r="rgb")=>yp(w2e(e),r,!0),C2e=Bt("rgb"),D2e=[[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]],E2e=[[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]],P2e=[[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]],B_=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&a<e.length-1){let o=e[a+1];i=i.map((l,s)=>Ru(i[s],o[s],n))}return o=>{let l=ko(o);if(l===void 0)return;let{r:s,g:u,b:f}=C2e(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Bt(l.mode)(c)}},R2e=(e=1)=>B_(D2e,e),F2e=(e=1)=>B_(E2e,e),z2e=(e=1)=>B_(P2e,e),N2e=e=>e*e*(3-2*e),I2e=e=>.5-Math.sin(Math.asin(1-2*e)/3),B2e=e=>e*e*e*(e*(e*6-15)+10),O2e=B2e,H2e=e=>(1-Math.cos(e*Math.PI))/2,U2e=H2e;function s_(e){let r=Bt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function G2e(e,r){let t=s_(e),a=s_(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var Y2e=Lt(Gq),V2e=Lt(Xq),j2e=Lt(Qq),W2e=Lt(eL),X2e=Lt(aL),Z2e=Lt(d_),$2e=Lt(y_),J2e=Lt(cL),K2e=Lt(dL),Q2e=Lt(pL),e1e=Lt(mL),r1e=Lt(dp),t1e=Lt(gL),a1e=Lt(pp),n1e=Lt(xL),i1e=Lt(AL),o1e=Lt(TL),l1e=Lt(ML),s1e=Lt(SL),u1e=Lt(qL),f1e=Lt(CL),c1e=Lt(EL),v1e=Lt(PL),h1e=Lt(RL),d1e=Lt(FL),p1e=Lt(Nu),m1e=Lt(BL),y1e=Lt(OL),g1e=Lt(GL),b1e=Lt(jL)});var O_={};qt(O_,{default:()=>_1e});var x1e,_1e,H_=St(()=>{"use strict";x1e={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(" ")}},_1e=x1e});var xs=z((Eje,yC)=>{"use strict";var{format:w1e,width:A1e,height:T1e,scale:M1e}=(H_(),ze(O_)).default,hC=M1e,{dflt:Dje}=hC,k1e=NS(hC,["dflt"]),dC={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:w1e,filename:{valType:"string"},width:A1e,height:T1e,scale:k1e},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:{}}},pC={};function mC(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]={}),mC(a,r[t])))}}mC(dC,pC);yC.exports={configAttributes:dC,dfltConfig:pC}});var G_=z((Rje,gC)=>{"use strict";var U_=Pr(),S1e=Br(),gh=[];gC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||gh.indexOf(e)!==-1)return;gh.push(e);var a=1e3;S1e(r)?a=r:r==="long"&&(a=3e3);var n=U_.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(gh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=gh.indexOf(u);f!==-1&&gh.splice(f,1),U_.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=U_.select(this);u.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){u.transition().call(o)});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(o)})}});var _s=z((Fje,bC)=>{"use strict";var Rc=xs().dfltConfig,Y_=G_(),V_=bC.exports={};V_.log=function(){var e;if(Rc.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Rc.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Y_(t.join("<br>"),"long")}};V_.warn=function(){var e;if(Rc.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Rc.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Y_(t.join("<br>"),"stick")}};V_.error=function(){var e;if(Rc.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(Rc.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Y_(t.join("<br>"),"stick")}}});var Ii=z(Ou=>{"use strict";Ou.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ou.defaultLine="#444";Ou.lightLine="#eee";Ou.background="#fff";Ou.borderLine="#BEC8D9";Ou.lightFraction=1e3/11});var qr=z((Nje,qC)=>{"use strict";var{converter:xC,formatHex:q1e,formatRgb:L1e,wcagContrast:C1e,wcagLuminance:D1e}=vC(),{isArrayOrTypedArray:_C}=Zn(),{warn:E1e}=_s(),{background:xh,defaultLine:X_,defaults:P1e,lightLine:R1e}=Ii(),wC=xC("rgb"),F1e=xC("hsl"),AC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return wC(r)}catch(t){return}},kn=e=>e>0?e>1?1:e:0,z1e={mode:"rgb",r:0,g:0,b:0,alpha:1},j_=e=>Math.round(e*255e6)/255e6,TC=e=>Vt(At({},e),{r:j_(e.r),g:j_(e.g),b:j_(e.b)}),hi=e=>L1e(TC(e)),N1e=e=>q1e(TC(e)),I1e=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:_C(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}`},Qt=(e,r)=>{var a;let t=AC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&E1e(`Invalid color specifier: ${I1e(e)}. Defaulting to "#000"`),z1e)},bh=e=>hi(Vt(At({},Qt(e)),{alpha:1})),B1e=e=>e?Qt(e).alpha:0,MC=e=>_C(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),O1e=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},H1e=(e,r)=>{let t=MC(e)?O1e(e):Qt(e,!0),a=[kn(t.r),kn(t.g),kn(t.b),kn(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},U1e=(e,r)=>hi(Vt(At({},Qt(e)),{alpha:kn(r)})),kC=(e,r)=>{let t=Qt(e),a=t.alpha;if(a===1)return hi(t);let n=Qt(r||xh),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return hi({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},G1e=(e,r,t)=>{let a=Qt(e),n=Qt(r),i=(o,l)=>t*o+(1-t)*l;return hi({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},W_=(e,r)=>{let t=Qt(e),a=F1e(t)||{mode:"hsl",h:0,s:0,l:0};return hi(wC(Vt(At({},a),{l:kn((a.l*100+r)/100),alpha:t.alpha})))},gp=(e,r)=>C1e(Qt(e),Qt(r)),SC=e=>gp(e,xh)>gp(e,X_),Y1e=hi(Qt(xh)),V1e=hi(Qt(X_)),j1e=(e,r,t)=>(Qt(e).alpha!==1&&(e=kC(e,xh)),SC(e)?r?W_(e,r):Y1e:t?W_(e,-t):V1e),W1e=(e,r)=>{e.style({stroke:bh(r),"stroke-opacity":Qt(r).alpha})},X1e=(e,r)=>{e.style({fill:bh(r),"fill-opacity":Qt(r).alpha})},Z1e=(e,r)=>!!(e&&r&&bh(e)===bh(r)),$1e=e=>AC(e)!==void 0,J1e=(e,r)=>{r=r===0?0:r||10;let t=Qt(e),a=r/100;return hi(Vt(At({},t),{r:kn(t.r+a),g:kn(t.g+a),b:kn(t.b+a)}))},K1e=(e,r,t)=>{let a=Qt(e),n=Qt(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return hi({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})},Q1e=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=gp(e,n);i>a&&(a=i,t=hi(Qt(n)))}return t},epe=e=>hi(Qt(e)),rpe=e=>N1e(Qt(e)).toUpperCase(),tpe=e=>{let r=Qt(e);return[kn(r.r)*255,kn(r.g)*255,kn(r.b)*255,kn(r.alpha)]},ape=([e,r,t,a])=>hi({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),npe=e=>{let r=Qt(e);return D1e({mode:"rgb",r:kn(r.r),g:kn(r.g),b:kn(r.b)})};qC.exports={addOpacity:U1e,adjustLightness:W_,background:xh,brighten:J1e,combine:kC,contrast:j1e,defaultLine:X_,defaults:P1e,equals:Z1e,fill:X1e,hexString:rpe,interpolate:G1e,isChannelArray:MC,isDark:SC,isValid:$1e,lightLine:R1e,luminosity:npe,mix:K1e,mostReadable:Q1e,normalize:H1e,opacity:B1e,parse:Qt,rgb:bh,rgbaArray:tpe,rgbaArrayToString:ape,rgbaString:epe,stroke:W1e,wcagContrast:gp}});var Hu=z((Bje,DC)=>{"use strict";var ipe=qr(),bp={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)"]]},LC=bp.RdBu;function ope(e,r){if(r||(r=LC),!e)return r;function t(){try{e=bp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),CC(e)?e:r}function CC(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||!ipe.isValid(a[1]))return!1;r=+a[0]}return!0}function lpe(e){return bp[e]!==void 0?!0:CC(e)}DC.exports={scales:bp,defaultScale:LC,get:ope,isValid:lpe}});var xp={};qt(xp,{DESELECTDIM:()=>fpe,HIDE_PLACEHOLDER:()=>upe,SHOW_PLACEHOLDER:()=>spe});var spe,upe,fpe,_p=St(()=>{"use strict";spe=100,upe=1e3,fpe=.2});var _h={};qt(_h,{counter:()=>Uu});function Uu(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+Z_+"y"+Z_+n):new RegExp(i+e+Z_+n)}var Z_,Fc=St(()=>{"use strict";Z_="([2-9]|[1-9][0-9]+)?"});var RC=z(Jn=>{"use strict";var $_=Br(),EC=Mt().extendFlat,cpe=On(),vpe=Hu(),J_=qr(),hpe=(_p(),ze(xp)).DESELECTDIM,zc=G1(),PC=(Fc(),ze(_h)).counter,dpe=(Tc(),ze(Ac)).modHalf,So=Zn().isArrayOrTypedArray,ws=Zn().isTypedArraySpec,As=Zn().decodeTypedArraySpec;Jn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(So(e)?e:ws(e)?As(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){ws(e)&&(e=As(e)),!$_(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}ws(e)&&(e=As(e)),e%1||!$_(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){ws(e)&&(e=As(e)),J_.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=>J_.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(vpe.get(e,t))}},angle:{coerceFunction:function(e,r,t){ws(e)&&(e=As(e)),e==="auto"?r.set("auto"):$_(e)?r.set(dpe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||PC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&So(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:!!PC(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];a.flags.indexOf(o)===-1||n.indexOf(o)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(ws(e)?As(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(A,w,x){var _,k={set:function(T){_=T}};return x===void 0&&(x=w.dflt),Jn.valObjectMeta[w.valType].coerceFunction(A,k,x,w),_}if(ws(e)&&(e=As(e)),!So(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&So(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&So(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,v,d,p,y,m,b;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=So(e[v])?e[v]:[],f?m=o.length:s?m=o[v].length:m=p.length,d=0;d<m;d++)f?y=o[d]:s?y=o[v][d]:y=o,b=n(p[d],y,(t[v]||[])[d]),b!==void 0&&(l[v][d]=b);else for(v=0;v<c;v++)b=n(e[v],s?o[v]:o,t[v]),b!==void 0&&(l[v]=b);r.set(l)},validateFunction:function(e,r){if(!So(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(!So(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!wp(e[i][o],a?t[i][o]:t))return!1}else if(!wp(e[i],a?t[i]:t))return!1;return!0}}};Jn.coerce=function(e,r,t,a,n){var i=zc(t,a).get(),o=zc(e,a),l=zc(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=zc(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(So(s))return l.set(s),s;if(ws(s))return s=As(s),l.set(s),s}var f=Jn.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!wp(s,i)&&(s=zc(u,a).get(),f(s,l,n,i),c=l.get()),c};Jn.coerce2=function(e,r,t,a,n){var i=zc(e,a),o=Jn.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};Jn.coerceFont=function(e,r,t,a){a||(a={}),t=EC({},t),t=EC(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};Jn.coercePattern=function(e,r,t,a){var n=e(r+".shape"),i;if(n||(i=e(r+".path")),n||i){n&&e(r+".solidity"),e(r+".size");var o=e(r+".fillmode"),l=o==="overlay";if(!a){var s=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?J_.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};Jn.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:cpe,i=n.hoverinfo,o;if(t._dataLength===1){var l=i.dflt==="all"?i.flags.slice():i.dflt.split("+");l.splice(l.indexOf("name"),1),o=l.join("+")}return Jn.coerce(e,r,n,"hoverinfo",o)};Jn.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!So(t)&&!e.selected&&!e.unselected&&(a=t,n=hpe*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function wp(e,r){var t=Jn.valObjectMeta[r.valType];if(r.arrayOk&&So(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(o){n=o}};return t.coerceFunction(e,i,a,r),n!==a}Jn.validate=wp});var Ap=z((Hje,FC)=>{"use strict";FC.exports=function(){}});var K_=z((Uje,zC)=>{"use strict";zC.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 IC=z((Gje,NC)=>{NC.exports=ppe;function ppe(){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 OC=z((Yje,BC)=>{BC.exports=mpe;function mpe(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 UC=z((Vje,HC)=>{HC.exports=ype;function ype(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 Q_=z((jje,GC)=>{GC.exports=gpe;function gpe(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 VC=z((Wje,YC)=>{YC.exports=bpe;function bpe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var WC=z((Xje,jC)=>{jC.exports=xpe;function xpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],A=t*l-a*o,w=t*s-n*o,x=t*u-i*o,_=a*s-n*l,k=a*u-i*l,T=n*u-i*s,q=f*y-c*p,C=f*m-v*p,E=f*b-d*p,P=c*m-v*y,R=c*b-d*y,N=v*b-d*m,I=A*N-w*R+x*P+_*E-k*C+T*q;return I?(I=1/I,e[0]=(l*N-s*R+u*P)*I,e[1]=(n*R-a*N-i*P)*I,e[2]=(y*T-m*k+b*_)*I,e[3]=(v*k-c*T-d*_)*I,e[4]=(s*E-o*N-u*C)*I,e[5]=(t*N-n*E+i*C)*I,e[6]=(m*x-p*T-b*w)*I,e[7]=(f*T-v*x+d*w)*I,e[8]=(o*R-l*E+u*q)*I,e[9]=(a*E-t*R-i*q)*I,e[10]=(p*k-y*x+b*A)*I,e[11]=(c*x-f*k-d*A)*I,e[12]=(l*C-o*P-s*q)*I,e[13]=(t*P-a*C+n*q)*I,e[14]=(y*w-p*_-m*A)*I,e[15]=(f*_-c*w+v*A)*I,e):null}});var ZC=z((Zje,XC)=>{XC.exports=_pe;function _pe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-u*m)+y*(s*d-u*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+y*(n*d-i*v)),e[2]=a*(s*b-u*m)-l*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*m)-f*(s*b-u*m)+p*(s*d-u*v)),e[5]=t*(v*b-d*m)-f*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-u*m)-o*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*y)-f*(l*b-u*y)+p*(l*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(l*b-u*y)-o*(a*b-i*y)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var JC=z(($je,$C)=>{$C.exports=wpe;function wpe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*o-t*i,A=r*l-a*i,w=r*s-n*i,x=t*l-a*o,_=t*s-n*o,k=a*s-n*l,T=u*p-f*d,q=u*y-c*d,C=u*m-v*d,E=f*y-c*p,P=f*m-v*p,R=c*m-v*y;return b*R-A*P+w*E+x*C-_*q+k*T}});var QC=z((Jje,KC)=>{KC.exports=Ape;function Ape(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],A=r[15],w=t[0],x=t[1],_=t[2],k=t[3];return e[0]=w*a+x*l+_*c+k*y,e[1]=w*n+x*s+_*v+k*m,e[2]=w*i+x*u+_*d+k*b,e[3]=w*o+x*f+_*p+k*A,w=t[4],x=t[5],_=t[6],k=t[7],e[4]=w*a+x*l+_*c+k*y,e[5]=w*n+x*s+_*v+k*m,e[6]=w*i+x*u+_*d+k*b,e[7]=w*o+x*f+_*p+k*A,w=t[8],x=t[9],_=t[10],k=t[11],e[8]=w*a+x*l+_*c+k*y,e[9]=w*n+x*s+_*v+k*m,e[10]=w*i+x*u+_*d+k*b,e[11]=w*o+x*f+_*p+k*A,w=t[12],x=t[13],_=t[14],k=t[15],e[12]=w*a+x*l+_*c+k*y,e[13]=w*n+x*s+_*v+k*m,e[14]=w*i+x*u+_*d+k*b,e[15]=w*o+x*f+_*p+k*A,e}});var rD=z((Kje,eD)=>{eD.exports=Tpe;function Tpe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,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]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var aD=z((Qje,tD)=>{tD.exports=Mpe;function Mpe(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 iD=z((eWe,nD)=>{nD.exports=kpe;function kpe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,y,m,b,A,w,x,_,k,T,q,C,E,P,R,N,I,O;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],A=r[7],w=r[8],x=r[9],_=r[10],k=r[11],T=n*n*f+u,q=i*n*f+o*s,C=o*n*f-i*s,E=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,N=n*o*f+i*s,I=i*o*f-n*s,O=o*o*f+u,e[0]=c*T+y*q+w*C,e[1]=v*T+m*q+x*C,e[2]=d*T+b*q+_*C,e[3]=p*T+A*q+k*C,e[4]=c*E+y*P+w*R,e[5]=v*E+m*P+x*R,e[6]=d*E+b*P+_*R,e[7]=p*E+A*P+k*R,e[8]=c*N+y*I+w*O,e[9]=v*N+m*I+x*O,e[10]=d*N+b*I+_*O,e[11]=p*N+A*I+k*O,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var lD=z((rWe,oD)=>{oD.exports=Spe;function Spe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],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]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var uD=z((tWe,sD)=>{sD.exports=qpe;function qpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],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]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var cD=z((aWe,fD)=>{fD.exports=Lpe;function Lpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],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]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var hD=z((nWe,vD)=>{vD.exports=Cpe;function Cpe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var pD=z((iWe,dD)=>{dD.exports=Dpe;function Dpe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,y=i*u,m=o*l,b=o*s,A=o*u;return e[0]=1-(d+y),e[1]=c+A,e[2]=v-b,e[3]=0,e[4]=c-A,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var yD=z((oWe,mD)=>{mD.exports=Epe;function Epe(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 bD=z((lWe,gD)=>{gD.exports=Ppe;function Ppe(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 _D=z((sWe,xD)=>{xD.exports=Rpe;function Rpe(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 AD=z((uWe,wD)=>{wD.exports=Fpe;function Fpe(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 MD=z((fWe,TD)=>{TD.exports=zpe;function zpe(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 SD=z((cWe,kD)=>{kD.exports=Npe;function Npe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,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]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var LD=z((vWe,qD)=>{qD.exports=Ipe;function Ipe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var DD=z((hWe,CD)=>{CD.exports=Bpe;function Bpe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var PD=z((dWe,ED)=>{ED.exports=Ope;function Ope(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var FD=z((pWe,RD)=>{RD.exports=Hpe;function Hpe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var ND=z((mWe,zD)=>{var Upe=Q_();zD.exports=Gpe;function Gpe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=r[2],b=a[0],A=a[1],w=a[2],x=t[0],_=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-_)<1e-6&&Math.abs(m-k)<1e-6?Upe(e):(f=p-x,c=y-_,v=m-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=A*v-w*c,i=w*f-b*v,o=b*c-A*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var BD=z((yWe,ID)=>{ID.exports=Ype;function Ype(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 e4=z((gWe,OD)=>{OD.exports={create:IC(),clone:OC(),copy:UC(),identity:Q_(),transpose:VC(),invert:WC(),adjoint:ZC(),determinant:JC(),multiply:QC(),translate:rD(),scale:aD(),rotate:iD(),rotateX:lD(),rotateY:uD(),rotateZ:cD(),fromRotation:hD(),fromRotationTranslation:pD(),fromScaling:yD(),fromTranslation:bD(),fromXRotation:_D(),fromYRotation:AD(),fromZRotation:MD(),fromQuat:SD(),frustum:LD(),perspective:DD(),perspectiveFromFieldOfView:PD(),ortho:FD(),lookAt:ND(),str:BD()}});var Tp=z(ha=>{"use strict";var Vpe=e4();ha.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};ha.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};ha.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]=ha.dot(e[n],r);else if(r[0].length){var i=ha.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=ha.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};ha.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};ha.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]]};ha.rotationXYMatrix=function(e,r,t){return ha.dot(ha.dot(ha.translationMatrix(r,t),ha.rotationMatrix(e)),ha.translationMatrix(-r,-t))};ha.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return ha.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};ha.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 ha.dot(e,[t[0],t[1],1]).slice(0,2)}};ha.apply2DTransform2=function(e){var r=ha.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};ha.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]};ha.inverseTransformMatrix=function(e){var r=[];return Vpe.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 wh=z((xWe,jD)=>{"use strict";var jpe=Pr(),HD=_s(),Wpe=Tp(),Xpe=e4();function Zpe(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 $pe(e){var r=jpe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function UD(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Jpe(e,r){GD("global",e,r)}function GD(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):HD.warn("addStyleRule failed"):HD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Kpe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&UD(t)}function Qpe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function eme(e){var r=VD(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=YD(a);if(n){var i=Wpe.convertCssMatrix(n);t=Xpe.multiply(t,t,i)}}),t}function YD(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 VD(e){for(var r=[];rme(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function rme(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function tme(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}jD.exports={getGraphDiv:Zpe,isPlotDiv:$pe,removeElement:UD,addStyleRule:Jpe,addRelatedStyleRule:GD,deleteRelatedStyleRule:Kpe,setStyleOnHover:Qpe,getFullTransformMatrix:eme,getElementTransformMatrix:YD,getElementAndAncestors:VD,equalDomRects:tme}});var Ah=z((_We,WD)=>{"use strict";WD.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 qo=z((wWe,eE)=>{"use strict";var ZD=Mt().extendFlat,ame=Du(),$D={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},JD={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},nme=$D.flags.slice().concat(["fullReplot"]),ime=JD.flags.slice().concat("layoutReplot");eE.exports={traces:$D,layout:JD,traceFlags:function(){return XD(nme)},layoutFlags:function(){return XD(ime)},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:KD};function XD(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function KD(e,r,t){var a=ZD({},e);for(var n in a){var i=a[n];ame(i)&&(a[n]=QD(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function QD(e,r,t,a){if(e.valType){var n=ZD({},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]=QD(e.items[i],r,"from-root")}return n}else return KD(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Bi=z(r4=>{"use strict";r4.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};r4.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 t4={};qt(t4,{DATE_FORMAT_LINK:()=>lme,FORMAT_LINK:()=>ome});var ome,lme,a4=St(()=>{"use strict";ome="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",lme="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var di=z(Nc=>{"use strict";var{DATE_FORMAT_LINK:sme,FORMAT_LINK:ume}=(a4(),ze(t4)),fme=["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 cme({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}".`,ume,"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}".`,sme,"for details on the date formatting syntax.",fme].join(" ")}Nc.templateFormatStringDescription=cme;Nc.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Nc.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Nc.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Nc.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Sp=z((kWe,oE)=>{"use strict";function Ts(e,r){return r?r.d2l(e):e}function rE(e,r){return r?r.l2d(e):e}function vme(e){return e.x0}function hme(e){return e.x1}function dme(e){return e.y0}function pme(e){return e.y1}function tE(e){return e.x0shift||0}function aE(e){return e.x1shift||0}function nE(e){return e.y0shift||0}function iE(e){return e.y1shift||0}function Mp(e,r){return Ts(e.x1,r)+aE(e)-Ts(e.x0,r)-tE(e)}function kp(e,r,t){return Ts(e.y1,t)+iE(e)-Ts(e.y0,t)-nE(e)}function mme(e,r){return Math.abs(Mp(e,r))}function yme(e,r,t){return Math.abs(kp(e,r,t))}function gme(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Mp(e,r),2)+Math.pow(kp(e,r,t),2))}function bme(e,r){return rE((Ts(e.x1,r)+aE(e)+Ts(e.x0,r)+tE(e))/2,r)}function xme(e,r,t){return rE((Ts(e.y1,t)+iE(e)+Ts(e.y0,t)+nE(e))/2,t)}function _me(e,r,t){return e.type!=="line"?void 0:kp(e,r,t)/Mp(e,r)}var wme=["x0","x1","y0","y1","dy","height","ycenter"],Ame=["x0","x1","y0","y1","dx","width","xcenter"];oE.exports={x0:vme,x1:hme,y0:dme,y1:pme,slope:_me,dx:Mp,dy:kp,width:mme,height:yme,length:gme,xcenter:bme,ycenter:xme,simpleXVariables:wme,simpleYVariables:Ame}});var uE=z((SWe,sE)=>{"use strict";var Tme=qo().overrideAll,Gu=On(),lE=Ca(),Mme=Bi().dash,Ms=Mt().extendFlat,{shapeTexttemplateAttrs:kme,templatefallbackAttrs:Sme}=di(),qme=Sp();sE.exports=Tme({newshape:{visible:Ms({},Gu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ms({},Gu.legend,{}),legendgroup:Ms({},Gu.legendgroup,{}),legendgrouptitle:{text:Ms({},Gu.legendgrouptitle.text,{}),font:lE({})},legendrank:Ms({},Gu.legendrank,{}),legendwidth:Ms({},Gu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ms({},Mme,{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:Ms({},Gu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:kme({newshape:!0},{keys:Object.keys(qme)}),texttemplatefallback:Sme({editType:"arraydraw"}),font:lE({}),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 cE=z((qWe,fE)=>{"use strict";var Lme=Bi().dash,Cme=Mt().extendFlat;fE.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:Cme({},Lme,{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 qp=z((LWe,vE)=>{"use strict";vE.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 Ic=z((CWe,mE)=>{"use strict";var n4=Ca(),Dme=Ah(),Lp=Ii(),hE=uE(),dE=cE(),Eme=qp(),pE=Mt().extendFlat,Cp=n4({editType:"calc"});Cp.family.dflt='"Open Sans", verdana, arial, sans-serif';Cp.size.dflt=12;Cp.color.dflt=Lp.defaultLine;mE.exports={font:Cp,title:{text:{valType:"string",editType:"layoutstyle"},font:n4({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:n4({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:pE(Eme({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:Lp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Lp.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:Lp.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:hE.newshape,activeshape:hE.activeshape,newselection:dE.newselection,activeselection:dE.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:pE({},Dme.transition,{editType:"none"})}});var yE=z(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-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)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.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-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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.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%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.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%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.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%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.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%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.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%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.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%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.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%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.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%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.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%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.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%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.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%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.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%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%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%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%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{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-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{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 ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Tr=z(jr=>{"use strict";var i4=_s(),gE=Ap(),bE=K_(),PWe=wh().addStyleRule,xE=Mt(),Pme=On(),Rme=Ic(),Fme=xE.extendFlat,o4=xE.extendDeepAll;jr.modules={};jr.allCategories={};jr.allTypes=[];jr.subplotsRegistry={};jr.componentsRegistry={};jr.layoutArrayContainers=[];jr.layoutArrayRegexes=[];jr.traceLayoutAttributes={};jr.localeRegistry={};jr.apiMethodRegistry={};jr.collectableSubplotTypes=null;jr.register=function(r){if(jr.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":zme(a);break;case"component":Ime(a);break;case"locale":Bme(a);break;case"apiMethod":var n=a.name;jr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};jr.getModule=function(e){var r=jr.modules[TE(e)];return r?r._module:!1};jr.traceIs=function(e,r){if(e=TE(e),e==="various")return!1;var t=jr.modules[e];return t||(e&&i4.log("Unrecognized trace type "+e+"."),t=jr.modules[Pme.type.dflt]),!!t.categories[r]};jr.getComponentMethod=function(e,r){var t=jr.componentsRegistry[e];return t&&t[r]||gE};jr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return jr.apiMethodRegistry[e].apply(null,r)};function zme(e){var r=e.name,t=e.categories,a=e.meta;if(jr.modules[r]){i4.log("Type "+r+" already registered");return}jr.subplotsRegistry[e.basePlotModule.name]||Nme(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,jr.allCategories[t[i]]=!0;jr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(jr.modules[r].meta=a),jr.allTypes.push(r);for(var o in jr.componentsRegistry)wE(o,r);e.layoutAttributes&&Fme(jr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&yE(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Nme(e){var r=e.name;if(jr.subplotsRegistry[r]){i4.log("Plot type "+r+" already registered.");return}_E(e),jr.subplotsRegistry[r]=e;for(var t in jr.componentsRegistry)AE(t,e.name)}function Ime(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;jr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&bE(jr.layoutArrayContainers,r),_E(e));for(var t in jr.modules)wE(r,t);for(var a in jr.subplotsRegistry)AE(r,a);e.schema&&e.schema.layout&&o4(Rme,e.schema.layout)}function Bme(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,o=n&&Object.keys(n).length,l=jr.localeRegistry,s=l[r];if(s||(l[r]=s={}),t!==r){var u=l[t];u||(l[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),o&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),o&&(s.format=n)}function _E(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)bE(jr.layoutArrayRegexes,r[t])}}function wE(e,r){var t=jr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&o4(jr.modules[r]._module.attributes,a)}}function AE(e,r){var t=jr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=jr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];n&&o&&o4(n,o)}}function TE(e){return typeof e=="object"&&(e=e.type),e}});var PE=z(da=>{"use strict";var Ome=_c().timeFormat,DE=Br(),l4=_s(),Ss=(Tc(),ze(Ac)).mod,Hc=(jt(),ze(Zt)),Oi=Hc.BADNUM,Kn=Hc.ONEDAY,Th=Hc.ONEHOUR,ks=Hc.ONEMIN,Oc=Hc.ONESEC,Mh=Hc.EPOCHJD,Il=Tr(),ME=_c().utcFormat,Hme=/^\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,Ume=/^\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,kE=new Date().getFullYear()-70;function Bl(e){return e&&Il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}da.dateTick0=function(e,r){var t=Gme(e,!!r);if(r<2)return t;var a=da.dateTime2ms(t,e);return a+=Kn*(r-1),da.ms2DateTime(a,0,e)};function Gme(e,r){return Bl(e)?r?Il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}da.dfltRange=function(e){return Bl(e)?Il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};da.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ep,Pp;da.dateTime2ms=function(e,r){if(da.isJSDate(e)){var t=e.getTimezoneOffset()*ks,a=(e.getUTCMinutes()-e.getMinutes())*ks+(e.getUTCSeconds()-e.getSeconds())*Oc+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ks;t=t-n/2+Ss(a-t+n/2,n)}return e=Number(e)-t,e>=Ep&&e<=Pp?e:Oi}if(typeof e!="string"&&typeof e!="number")return Oi;e=String(e);var i=Bl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?Ume:Hme);if(!s)return Oi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Oi;u=Number(u);var y;try{var m=Il.getComponentMethod("calendars","getCal")(r);if(l){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 Oi}return y?(y.toJD()-Mh)*Kn+v*Th+d*ks+p*Oc:Oi}u.length===2?u=(Number(u)+2e3-kE)%100+kE:u=Number(u),f-=1;var A=new Date(Date.UTC(2e3,f,c,v,d));return A.setUTCFullYear(u),A.getUTCMonth()!==f||A.getUTCDate()!==c?Oi:A.getTime()+p*Oc};Ep=da.MIN_MS=da.dateTime2ms("-9999");Pp=da.MAX_MS=da.dateTime2ms("9999-12-31 23:59:59.9999");da.isDateTime=function(e,r){return da.dateTime2ms(e,r)!==Oi};function Bc(e,r){return String(e+Math.pow(10,r)).slice(1)}var Dp=90*Kn,SE=3*Th,qE=5*ks;da.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ep&&e<=Pp))return Oi;r||(r=0);var a=Math.floor(Ss(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Bl(t)){var c=Math.floor(n/Kn)+Mh,v=Math.floor(Ss(e,Kn));try{i=Il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=ME("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<Dp?Math.floor(v/Th):0,l=r<Dp?Math.floor(v%Th/ks):0,s=r<SE?Math.floor(v%ks/Oc):0,u=r<qE?v%Oc*10+a:0}else f=new Date(n),i=ME("%Y-%m-%d")(f),o=r<Dp?f.getUTCHours():0,l=r<Dp?f.getUTCMinutes():0,s=r<SE?f.getUTCSeconds():0,u=r<qE?f.getUTCMilliseconds()*10+a:0;return EE(i,o,l,s,u)};da.ms2DateTimeLocal=function(e){if(!(e>=Ep+Kn&&e<=Pp-Kn))return Oi;var r=Math.floor(Ss(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Ome("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return EE(a,n,i,o,l)};function EE(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Bc(r,2)+":"+Bc(t,2),(a||n)&&(e+=":"+Bc(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Bc(n,i)}return e}da.cleanDate=function(e,r,t){if(e===Oi)return r;if(da.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Bl(t))return l4.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=da.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!da.isDateTime(e,t))return l4.error("unrecognized date",e),r;return e};var Yme=/%\d?f/g,Vme=/%h/g,jme={1:"1",2:"1",3:"2",4:"2"};function LE(e,r,t,a){e=e.replace(Yme,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Vme,function(){return jme[t("%q")(n)]}),Bl(a))try{e=Il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Wme=[59,59.9,59.99,59.999,59.9999];function Xme(e,r){var t=Ss(e+.05,Kn),a=Bc(Math.floor(t/Th),2)+":"+Bc(Ss(Math.floor(t/ks),60),2);if(r!=="M"){DE(r)||(r=0);var n=Math.min(Ss(e/Oc,60),Wme[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}da.formatDate=function(e,r,t,a,n,i){if(n=Bl(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 Xme(e,t)+`
`+LE(i.dayMonthYear,e,a,n);return LE(r,e,a,n)};var CE=3*Kn;da.incrementMonth=function(e,r,t){t=Bl(t)&&t;var a=Ss(e,Kn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Kn)+Mh,i=Il.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Mh)*Kn+a}catch(s){l4.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+CE);return l.setUTCMonth(l.getUTCMonth()+r)+a-CE};da.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Bl(r)&&Il.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!DE(l)){i++;continue}if(!(l%Kn))if(s)try{o=s.fromJD(l/Kn+Mh),o.day()===1?o.month()===1?t++:a++:n++}catch(c){}else o=new Date(l),o.getUTCDate()===1?o.getUTCMonth()===0?t++:a++:n++}a+=t,n+=a;var f=e.length-i;return{exactYears:t/f,exactMonths:a/f,exactDays:n/f}}});var s4=z((zWe,RE)=>{"use strict";RE.exports=function(r){return r}});var f4=z(Ol=>{"use strict";var Zme=Br(),$me=_s(),Jme=s4(),Kme=(jt(),ze(Zt)).BADNUM,u4=1e-9;Ol.findBin=function(e,r,t){if(Zme(r.start))return t?Math.ceil((e-r.start)/r.size-u4)-1:Math.floor((e-r.start)/r.size+u4);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Qme:eye:s=t?tye:rye,e+=o*u4*(t?-1:1)*(o>=0?1:-1);a<n&&i++<100;)l=Math.floor((a+n)/2),s(r[l],e)?a=l+1:n=l;return i>90&&$me.log("Long binary search..."),a-1};function Qme(e,r){return e<r}function eye(e,r){return e<=r}function rye(e,r){return e>r}function tye(e,r){return e>=r}Ol.sorterAsc=function(e,r){return e-r};Ol.sorterDes=function(e,r){return r-e};Ol.distinctVals=function(e){var r=e.slice();r.sort(Ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Kme;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a<n&&o++<100;)i=u((a+n)/2),r[i]<=e?a=i+l:n=i-s;return r[a]};Ol.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()};Ol.findIndexOfMin=function(e,r){r=r||Jme;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 c4={};qt(c4,{default:()=>nye});function aye(e){return Object.keys(e).sort()}var nye,v4=St(()=>{"use strict";nye=aye});var FE=z(pa=>{"use strict";var kh=Br(),iye=Zn().isArrayOrTypedArray;pa.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),kh(r)||(r=!1),iye(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=pa.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)kh(r)?kh(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};pa.len=function(e){return pa.aggNums(function(r){return r+1},0,e)};pa.mean=function(e,r){return r||(r=pa.len(e)),pa.aggNums(function(t,a){return t+a},0,e)/r};pa.geometricMean=function(e,r){return r||(r=pa.len(e)),Math.pow(pa.aggNums(function(t,a){return t*a},1,e),1/r)};pa.midRange=function(e){if(!(e===void 0||e.length===0))return(pa.aggNums(Math.max,null,e)+pa.aggNums(Math.min,null,e))/2};pa.variance=function(e,r,t){return r||(r=pa.len(e)),kh(t)||(t=pa.mean(e,r)),pa.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};pa.stdev=function(e,r,t){return Math.sqrt(pa.variance(e,r,t))};pa.median=function(e){var r=e.slice().sort();return pa.interp(r,.5)};pa.interp=function(e,r){if(!kh(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 OE=z((BWe,BE)=>{"use strict";var zE=(Tc(),ze(Ac)),h4=zE.mod,oye=zE.modHalf,Sh=Math.PI,qs=2*Sh;function lye(e){return e/180*Sh}function sye(e){return e/Sh*180}function d4(e){return Math.abs(e[1]-e[0])>qs-1e-14}function NE(e,r){return oye(r-e,qs)}function uye(e,r){return Math.abs(NE(e,r))}function IE(e,r){if(d4(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=h4(t,qs),a=h4(a,qs),t>a&&(a+=qs);var n=h4(e,qs),i=n+qs;return n>=t&&n<=a||i>=t&&i<=a}function fye(e,r,t,a){if(!IE(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 p4(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=d4([t,a]),s,u,f,c,v;l?(s=0,u=Sh,f=qs):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,v=r):(c=r,v=e);function d(b,A){return[b*Math.cos(A)+n,i-b*Math.sin(A)]}var p=Math.abs(f-s)<=Sh?0:1;function y(b,A,w){return"A"+[b,b]+" "+[0,p,w]+" "+d(b,A)}var m;return l?c===null?m="M"+d(v,s)+y(v,u,0)+y(v,f,0)+"Z":m="M"+d(c,s)+y(c,u,0)+y(c,f,0)+"ZM"+d(v,s)+y(v,u,1)+y(v,f,1)+"Z":c===null?(m="M"+d(v,s)+y(v,f,0),o&&(m+="L0,0Z")):m="M"+d(c,s)+"L"+d(v,s)+y(v,f,0)+"L"+d(c,f)+y(c,s,1)+"Z",m}function cye(e,r,t,a,n){return p4(null,e,r,t,a,n,0)}function vye(e,r,t,a,n){return p4(null,e,r,t,a,n,1)}function hye(e,r,t,a,n,i){return p4(e,r,t,a,n,i,1)}BE.exports={deg2rad:lye,rad2deg:sye,angleDelta:NE,angleDist:uye,isFullCircle:d4,isAngleInsideSector:IE,isPtInsideSector:fye,pathArc:cye,pathSector:vye,pathAnnulus:hye}});var HE=z(Yu=>{"use strict";Yu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Yu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Yu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Yu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Yu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Yu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var YE=z(Vu=>{"use strict";var m4=(Tc(),ze(Ac)).mod;Vu.segmentsIntersect=GE;function GE(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-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}}Vu.segmentDistance=function(r,t,a,n,i,o,l,s){if(GE(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,y=Math.min(Rp(u,f,d,i-r,o-t),Rp(u,f,d,l-r,s-t),Rp(c,v,p,r-i,t-o),Rp(c,v,p,a-i,n-o));return Math.sqrt(y)};function Rp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Fp,y4,UE;Vu.getTextLocation=function(r,t,a,n){if((r!==y4||n!==UE)&&(Fp={},y4=r,UE=n),Fp[a])return Fp[a];var i=r.getPointAtLength(m4(a-n/2,t)),o=r.getPointAtLength(m4(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(m4(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Fp[a]=c,c};Vu.clearLocationCache=function(){y4=null};Vu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(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,A=m.y<o?o-m.y:m.y>l?m.y-l:0;return Math.sqrt(b*b+A*A)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(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}};Vu.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u<l;){if(v=(f+c)/2,d=r.getPointAtLength(v),p=d[a]-t,Math.abs(p)<o)return d;s*p>0?c=v:f=v,u++}return d}});var zp=z(qh=>{"use strict";var Hl={};qh.throttle=function(r,t,a){var n=Hl[r],i=Date.now();if(!n){for(var o in Hl)Hl[o].ts<i-6e4&&delete Hl[o];n=Hl[r]={ts:0,timer:null}}VE(n);function l(){a(),n.ts=Date.now(),n.onDone&&(n.onDone(),n.onDone=null)}if(i>n.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};qh.done=function(e){var r=Hl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};qh.clear=function(e){if(e)VE(Hl[e]),delete Hl[e];else for(var r in Hl)qh.clear(r)};function VE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var WE=z((GWe,jE)=>{"use strict";jE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var XE=z((YWe,Np)=>{"use strict";Np.exports=g4;Np.exports.isMobile=g4;Np.exports.default=g4;var dye=/(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,pye=/CrOS/,mye=/android|ipad|playbook|silk/i;function g4(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=dye.test(r)&&!pye.test(r)||!!e.tablet&&mye.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var $E=z((VWe,ZE)=>{"use strict";var yye=Br(),gye=XE();ZE.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=bye(),typeof t!="string")return!0;var a=gye({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i<n.length;i++){var o=n[i];if(o.indexOf("Safari")!==-1)for(var l=i-1;l>-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(yye(u)&&(u=+u),u>=13)return!0}}}return a};function bye(){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 KE=z((jWe,JE)=>{"use strict";var xye=Pr();JE.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=xye.select(this)}),n}});var eP=z((WWe,QE)=>{"use strict";var _ye=Tr();QE.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=_ye.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var tP=z((XWe,rP)=>{"use strict";rP.exports=function(r){for(var t={},a=[],n=0,i=0;i<r.length;i++){var o=r[i];t[o]!==1&&(t[o]=1,a[n++]=o)}return a}});var nP=z((ZWe,aP)=>{"use strict";aP.exports=function(r){for(var t=Tye(r)?Aye:wye,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function wye(e){return e.visible===!0}function Aye(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function Tye(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var oP=z(($We,iP)=>{"use strict";iP.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var sP={};qt(sP,{default:()=>Sye});function kye(e){return typeof e=="string"&&(e=e.replace(Mye,"")),(0,lP.default)(e)?Number(e):void 0}var lP,Mye,Sye,uP=St(()=>{"use strict";lP=xc(Br());jt();Mye=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Sye=kye});var vP=z((KWe,cP)=>{"use strict";var qye=/<[^>]*>/g,Lye=/[\p{S}\p{P}]/gu,Cye=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Dye=/�/g,Eye=/\s+/g,Ip="-",fP=Ip.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Pye=new RegExp(fP+"{3,}","g"),Rye=new RegExp(fP+"$","g"),Fye=60;function zye(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}cP.exports=function(r,t=Fye){var a=zye(r!=null?r:"").replace(Dye,"").replace(qye," ").replace(Lye,n=>n===Ip?n:"").toLowerCase().trim().replace(Eye,Ip).replace(Cye,"").replace(Pye,Ip);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Rye,"")}});var ke=z((QWe,TP)=>{"use strict";var Lh=Pr(),Nye=_c().utcFormat,Iye=f5().format,gP=Br(),bP=(jt(),ze(Zt)),xP=bP.FP_SAFE,Bye=-xP,hP=bP.BADNUM,he={};TP.exports=he;he.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 dP={};he.warnBadFormat=function(e){var r=String(e);dP[r]||(dP[r]=1,he.warn('encountered bad format: "'+r+'"'))};he.noFormat=function(e){return String(e)};he.numberFormat=function(e){var r;try{r=Iye(he.adjustFormat(e))}catch(t){return he.warnBadFormat(e),he.noFormat}return r};he.nestedProperty=G1();he.keyedContainer=lq();he.relativeAttr=uq();he.isPlainObject=Du();he.toLogRange=V1();he.relinkPrivateKeys=hq();var Ls=Zn();he.isArrayBuffer=Ls.isArrayBuffer;he.isTypedArray=Ls.isTypedArray;he.isArrayOrTypedArray=Ls.isArrayOrTypedArray;he.isArray1D=Ls.isArray1D;he.ensureArray=Ls.ensureArray;he.concat=Ls.concat;he.maxRowLength=Ls.maxRowLength;he.minRowLength=Ls.minRowLength;var _P=(Tc(),ze(Ac));he.mod=_P.mod;he.modHalf=_P.modHalf;var Cs=RC();he.valObjectMeta=Cs.valObjectMeta;he.coerce=Cs.coerce;he.coerce2=Cs.coerce2;he.coerceFont=Cs.coerceFont;he.coercePattern=Cs.coercePattern;he.coerceHoverinfo=Cs.coerceHoverinfo;he.coerceSelectionMarkerOpacity=Cs.coerceSelectionMarkerOpacity;he.validate=Cs.validate;var pi=PE();he.dateTime2ms=pi.dateTime2ms;he.isDateTime=pi.isDateTime;he.ms2DateTime=pi.ms2DateTime;he.ms2DateTimeLocal=pi.ms2DateTimeLocal;he.cleanDate=pi.cleanDate;he.isJSDate=pi.isJSDate;he.formatDate=pi.formatDate;he.incrementMonth=pi.incrementMonth;he.dateTick0=pi.dateTick0;he.dfltRange=pi.dfltRange;he.findExactDates=pi.findExactDates;he.MIN_MS=pi.MIN_MS;he.MAX_MS=pi.MAX_MS;var ju=f4();he.findBin=ju.findBin;he.sorterAsc=ju.sorterAsc;he.sorterDes=ju.sorterDes;he.distinctVals=ju.distinctVals;he.roundUp=ju.roundUp;he.sort=ju.sort;he.findIndexOfMin=ju.findIndexOfMin;he.sortObjectKeys=(v4(),ze(c4)).default;var Ul=FE();he.aggNums=Ul.aggNums;he.len=Ul.len;he.mean=Ul.mean;he.geometricMean=Ul.geometricMean;he.median=Ul.median;he.midRange=Ul.midRange;he.variance=Ul.variance;he.stdev=Ul.stdev;he.interp=Ul.interp;var Lo=Tp();he.init2dArray=Lo.init2dArray;he.transposeRagged=Lo.transposeRagged;he.dot=Lo.dot;he.translationMatrix=Lo.translationMatrix;he.rotationMatrix=Lo.rotationMatrix;he.rotationXYMatrix=Lo.rotationXYMatrix;he.apply3DTransform=Lo.apply3DTransform;he.apply2DTransform=Lo.apply2DTransform;he.apply2DTransform2=Lo.apply2DTransform2;he.convertCssMatrix=Lo.convertCssMatrix;he.inverseTransformMatrix=Lo.inverseTransformMatrix;var nl=OE();he.deg2rad=nl.deg2rad;he.rad2deg=nl.rad2deg;he.angleDelta=nl.angleDelta;he.angleDist=nl.angleDist;he.isFullCircle=nl.isFullCircle;he.isAngleInsideSector=nl.isAngleInsideSector;he.isPtInsideSector=nl.isPtInsideSector;he.pathArc=nl.pathArc;he.pathSector=nl.pathSector;he.pathAnnulus=nl.pathAnnulus;var Gc=HE();he.isLeftAnchor=Gc.isLeftAnchor;he.isCenterAnchor=Gc.isCenterAnchor;he.isRightAnchor=Gc.isRightAnchor;he.isTopAnchor=Gc.isTopAnchor;he.isMiddleAnchor=Gc.isMiddleAnchor;he.isBottomAnchor=Gc.isBottomAnchor;var Yc=YE();he.segmentsIntersect=Yc.segmentsIntersect;he.segmentDistance=Yc.segmentDistance;he.getTextLocation=Yc.getTextLocation;he.clearLocationCache=Yc.clearLocationCache;he.getVisibleSegment=Yc.getVisibleSegment;he.findPointOnPath=Yc.findPointOnPath;var Hp=Mt();he.extendFlat=Hp.extendFlat;he.extendDeep=Hp.extendDeep;he.extendDeepAll=Hp.extendDeepAll;he.extendDeepNoArrays=Hp.extendDeepNoArrays;var b4=_s();he.log=b4.log;he.warn=b4.warn;he.error=b4.error;var Oye=(Fc(),ze(_h));he.counterRegex=Oye.counter;var x4=zp();he.throttle=x4.throttle;he.throttleDone=x4.done;he.clearThrottle=x4.clear;var Co=wh();he.getGraphDiv=Co.getGraphDiv;he.isPlotDiv=Co.isPlotDiv;he.removeElement=Co.removeElement;he.addStyleRule=Co.addStyleRule;he.addRelatedStyleRule=Co.addRelatedStyleRule;he.deleteRelatedStyleRule=Co.deleteRelatedStyleRule;he.setStyleOnHover=Co.setStyleOnHover;he.getFullTransformMatrix=Co.getFullTransformMatrix;he.getElementTransformMatrix=Co.getElementTransformMatrix;he.getElementAndAncestors=Co.getElementAndAncestors;he.equalDomRects=Co.equalDomRects;he.clearResponsive=WE();he.preserveDrawingBuffer=$E();he.makeTraceGroups=KE();he._=eP();he.notifier=G_();he.filterUnique=tP();he.filterVisible=nP();he.pushUnique=K_();he.increment=oP();he.cleanNumber=(uP(),ze(sP)).default;he.slugify=vP();he.ensureNumber=function(r){return gP(r)?(r=Number(r),r>xP||r<Bye?hP:r):hP};he.isIndex=function(e,r){return r!==void 0&&e>=r?!1:gP(e)&&e>=0&&e%1===0};he.noop=Ap();he.identity=s4();he.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};he.swapAttrs=function(e,r,t,a){t||(t="x"),a||(a="y");for(var n=0;n<r.length;n++){var i=r[n],o=he.nestedProperty(e,i.replace("?",t)),l=he.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};he.raiseToTop=function(r){r.parentNode.appendChild(r)};he.cancelTransition=function(e){return e.transition().duration(0)};he.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};he.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};he.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=r(e[l],t,a,n);return o};he.randstr=function e(r,t,a,n){if(a||(a=16),t===void 0&&(t=24),t<=0)return"0";var i=Math.log(Math.pow(2,t))/Math.log(a),o="",l,s,u;for(l=2;i===1/0;l*=2)i=Math.log(Math.pow(2,t/l))/Math.log(a)*l;var f=i-Math.floor(i);for(l=0;l<Math.floor(i);l++)u=Math.floor(Math.random()*a).toString(a),o=u+o;f&&(s=Math.pow(a,f),u=Math.floor(Math.random()*s).toString(a),o=u+o);var c=parseInt(o,a);return r&&r[o]||c!==1/0&&c>=Math.pow(2,t)?n>10?(he.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};he.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};he.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l<n;l++)i[l]=(1-Math.cos(Math.PI*(l+1)/r))/(2*r);for(l=0;l<t;l++){for(f=0,s=0;s<n;s++)u=l+s+1-r,u<-t?u-=a*Math.round(u/a):u>=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};he.syncOrAsync=function(e,r,t){var a,n;function i(){return he.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)};he.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};he.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i<t.length;i++)o=e[t[i]],o!=null?a=!0:n=!1;if(a&&!n)for(i=0;i<t.length;i++)e[t[i]]=r[t[i]]}};he.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(he.isArrayOrTypedArray(e))for(var i=Math.min(e.length,r.length),o=0;o<i;o++){var l=e[o];r[o][t]=n?a(l):l}};he.mergeArrayCastPositive=function(e,r,t){return he.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};he.fillArray=function(e,r,t,a){if(a=a||he.identity,he.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};he.castOption=function(e,r,t,a){a=a||he.identity;var n=he.nestedProperty(e,t).get();return he.isArrayOrTypedArray(n)?Array.isArray(r)&&he.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};he.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=he.nestedProperty(r,a).get();if(!Array.isArray(n))return n};he.tagSelected=function(e,r,t){var a=r.selectedpoints;function n(u){return u!==void 0&&u<e.length}for(var i=0;i<a.length;i++){var o=a[i];if(he.isIndex(o)||he.isArrayOrTypedArray(o)&&he.isIndex(o[0])&&he.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};he.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=he.nestedProperty(e,t).get();return he.isArrayOrTypedArray(a)?a:!1}else if(he.isArrayOrTypedArray(t))return t;return!1};function wP(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),o,l,s;for(o=0;o<i.length;o++)l=i[o],s=e[l],!(l.charAt(0)==="_"||typeof s=="function")&&(l==="module"?a[l]=s:Array.isArray(s)?l==="colorscale"||n===-1?a[l]=s.slice():a[l]=s.slice(0,n):he.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=wP(e[l],r[l],t):a[l]=s);for(i=Object.keys(r),o=0;o<i.length;o++)l=i[o],s=r[l],(typeof s!="object"||!(l in a)||typeof a[l]!="object")&&(a[l]=s);return a}he.minExtend=wP;he.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};he.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Hye=/Version\/[\d\.]+.*Safari/;he.isSafari=function(){return Hye.test(window.navigator.userAgent)};var Uye=/iPad|iPhone|iPod/;he.isIOS=function(){return Uye.test(window.navigator.userAgent)};var Gye=/Macintosh.+AppleWebKit.+Gecko\)$/;he.isMacWKWebView=()=>Gye.test(window.navigator.userAgent);var Yye=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=Yye.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};he.isD3Selection=function(e){return e instanceof Lh.selection};he.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};he.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};he.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var o=t[i],l=null,s=t[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],a=a[o]=[],i===t.length-1?a[l]=r:a[l]={},a=a[l]):(i===t.length-1?a[o]=r:a[o]={},a=a[o])}return n};var Vye=/^([^\[\.]+)\.(.+)?/,jye=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Bp(e){return e.slice(0,2)==="__"}he.expandObjectPaths=function(e){var r,t,a,n,i,o,l;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(Vye)){if(n=e[t],a=r[1],Bp(a))continue;delete e[t],e[a]=he.extendDeepNoArrays(e[a]||{},he.objectFromPath(t,he.expandObjectPaths(n))[a])}else if(r=t.match(jye)){if(n=e[t],a=r[1],Bp(a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")l=r[4],o=e[a][i]=e[a][i]||{},he.extendDeepNoArrays(o,he.objectFromPath(l,he.expandObjectPaths(n)));else{if(Bp(a))continue;e[a][i]=he.expandObjectPaths(n)}}else{if(Bp(t))continue;e[t]=he.expandObjectPaths(e[t])}}return e};he.numSeparate=function(e,r,t){if(t||(t=!1),typeof r!="string"||r.length===0)throw new Error("Separator string required for formatting!");typeof e=="number"&&(e=String(e));var a=/(\d+)(\d{3})/,n=r.charAt(0),i=r.charAt(1),o=e.split("."),l=o[0],s=o.length>1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};he.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var AP=/^\w*$/;he.templateString=function(e,r){var t={};return e.replace(he.TEMPLATE_STRING_REGEX,function(a,n){var i;return AP.test(n)?i=r[n]:(t[n]=t[n]||he.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Wye={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>_4(Vt(At({},e),{opts:Wye}));var Xye={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>_4(Vt(At({},e),{opts:Xye}));var Zye=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function $ye(e){var r=e.match(Zye);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Jye={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>_4(Vt(At({},e),{opts:Jye}));var pP=/^[:|\|]/;function _4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(he.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,y=null;if(n.parseMultDiv){var m=$ye(l);l=m.key,p=m.op,y=m.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let _ of e)if(_){if(_.hasOwnProperty(l)){b=_[l];break}if(AP.test(l)||(b=he.nestedProperty(_,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:_,max:k,name:T}=n,q=t===!1?o:t;return _<k&&he.warn([`Variable '${l}' in ${T} could not be found!`,"Please verify that the template is correct.",`Using value: '${q}'.`].join(" ")),_===k&&he.warn(`Too many '${T}' warnings - additional warnings will be suppressed.`),n.count++,q}if(p==="*"&&(b*=y),p==="/"&&(b/=y),s){var A;if(s[0]===":"&&(A=r?r.numberFormat:he.numberFormat,b!==""&&(b=A(s.replace(pP,""))(b))),s[0]==="|"){A=r?r.timeFormat:Nye;var w=he.dateTime2ms(b);b=he.formatDate(w,s.replace(pP,""),!1,A)}}else{var x=l+"Label";a.hasOwnProperty(x)&&(b=a[x])}return d&&(b="("+b+")",(f||c)&&(b=" "+b),(v||c)&&(b=b+" ")),b})}var Op=48,mP=57;he.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,a=0,n=0,i=0;i<t;i++){var o=e.charCodeAt(i)||0,l=r.charCodeAt(i)||0,s=o>=Op&&o<=mP,u=l>=Op&&l<=mP;if(s&&(a=10*a+o-Op),u&&(n=10*n+l-Op),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Uc=2e9;he.seedPseudoRandom=function(){Uc=2e9};he.pseudoRandom=function(){var e=Uc;return Uc=(69069*Uc+1)%4294967296,Math.abs(Uc-e)<429496729?he.pseudoRandom():Uc/4294967296};he.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=he.extractOption(e,r,"htx","hovertext");if(he.isValidTextValue(n))return a(n);var i=he.extractOption(e,r,"tx","text");if(he.isValidTextValue(i))return a(i)};he.isValidTextValue=function(e){return e||e===0};he.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};he.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};he.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};he.strRotate=function(e){return e?"rotate("+e+")":""};he.strScale=function(e){return e!==1?"scale("+e+")":""};he.getTextTransform=function(e){var r=e.noCenter,t=e.textX,a=e.textY,n=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,he.strTranslate(n-u*(t+o),i-u*(a+l))+he.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};he.setTransormAndDisplay=function(e,r){e.attr("transform",he.getTextTransform(r)),e.style("display",r.scale?null:"none")};he.ensureUniformFontSize=function(e,r){var t=he.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};he.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)};he.bigFont=function(e){return Math.round(1.2*e)};var yP=he.getFirefoxVersion(),Kye=yP!==null&&yP<86;he.getPositionFromD3Event=function(){return Kye?[Lh.event.layerX,Lh.event.layerY]:[Lh.event.offsetX,Lh.event.offsetY]}});var SP=z(()=>{"use strict";var Qye=ke(),MP={"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(w4 in MP)kP=w4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Qye.addStyleRule(kP,MP[w4]);var kP,w4});var A4=z((aXe,qP)=>{qP.exports=!0});var M4=z((nXe,LP)=>{"use strict";var ege=A4(),T4;typeof window.matchMedia=="function"?T4=!window.matchMedia("(hover: none)").matches:T4=ege;LP.exports=T4});var Wu=z((iXe,k4)=>{"use strict";var Vc=typeof Reflect=="object"?Reflect:null,CP=Vc&&typeof Vc.apply=="function"?Vc.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Up;Vc&&typeof Vc.ownKeys=="function"?Up=Vc.ownKeys:Object.getOwnPropertySymbols?Up=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Up=function(r){return Object.getOwnPropertyNames(r)};function rge(e){console&&console.warn&&console.warn(e)}var EP=Number.isNaN||function(r){return r!==r};function Ot(){Ot.init.call(this)}k4.exports=Ot;k4.exports.once=ige;Ot.EventEmitter=Ot;Ot.prototype._events=void 0;Ot.prototype._eventsCount=0;Ot.prototype._maxListeners=void 0;var DP=10;function Gp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ot,"defaultMaxListeners",{enumerable:!0,get:function(){return DP},set:function(e){if(typeof e!="number"||e<0||EP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");DP=e}});Ot.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};Ot.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||EP(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 PP(e){return e._maxListeners===void 0?Ot.defaultMaxListeners:e._maxListeners}Ot.prototype.getMaxListeners=function(){return PP(this)};Ot.prototype.emit=function(r){for(var t=[],a=1;a<arguments.length;a++)t.push(arguments[a]);var n=r==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")CP(s,this,t);else for(var u=s.length,f=IP(s,u),a=0;a<u;++a)CP(f[a],this,t);return!0};function RP(e,r,t,a){var n,i,o;if(Gp(t),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),i=e._events),o=i[r]),o===void 0)o=i[r]=t,++e._eventsCount;else if(typeof o=="function"?o=i[r]=a?[t,o]:[o,t]:a?o.unshift(t):o.push(t),n=PP(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,rge(l)}return e}Ot.prototype.addListener=function(r,t){return RP(this,r,t,!1)};Ot.prototype.on=Ot.prototype.addListener;Ot.prototype.prependListener=function(r,t){return RP(this,r,t,!0)};function tge(){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 FP(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=tge.bind(a);return n.listener=t,a.wrapFn=n,n}Ot.prototype.once=function(r,t){return Gp(t),this.on(r,FP(this,r,t)),this};Ot.prototype.prependOnceListener=function(r,t){return Gp(t),this.prependListener(r,FP(this,r,t)),this};Ot.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Gp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():age(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ot.prototype.off=Ot.prototype.removeListener;Ot.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=a[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(r,t[n]);return this};function zP(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?nge(n):IP(n,n.length)}Ot.prototype.listeners=function(r){return zP(this,r,!0)};Ot.prototype.rawListeners=function(r){return zP(this,r,!1)};Ot.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):NP.call(e,r)};Ot.prototype.listenerCount=NP;function NP(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}Ot.prototype.eventNames=function(){return this._eventsCount>0?Up(this._events):[]};function IP(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function age(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function nge(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function ige(e,r){return new Promise(function(t,a){function n(o){e.removeListener(r,i),a(o)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),t([].slice.call(arguments))}BP(e,r,i,{once:!0}),r!=="error"&&oge(e,n,{once:!0})})}function oge(e,r,t){typeof e.on=="function"&&BP(e,"error",r,t)}function BP(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 Ch=z((oXe,OP)=>{"use strict";var S4=Wu().EventEmitter,lge={init:function(e){if(e._ev instanceof S4)return e;var r=new S4,t=new S4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l<i.length-1;l++)o(i[l]);return a=o(i[l]),a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};OP.exports=lge});var GP=z((lXe,UP)=>{"use strict";var HP=ke(),sge=xs().dfltConfig;function uge(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)?HP.extendDeep([],a):HP.extendDeepAll({},a):t[n]=a;return t}var Gl={};Gl.add=function(e,r,t,a,n){var i,o;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(i={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,i),e.undoQueue.index+=1):i=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,i&&(i.undo.calls.unshift(r),i.undo.args.unshift(t),i.redo.calls.push(a),i.redo.args.push(n)),e.undoQueue.queue.length>sge.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Gl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Gl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Gl.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++)Gl.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Gl.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++)Gl.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Gl.plotDo=function(e,r,t){e.autoplay=!0,t=uge(e,t),r.apply(null,t)};UP.exports=Gl});var q4=z((sXe,YP)=>{"use strict";YP.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Xc=z(Da=>{"use strict";var Hi=Tr(),Dh=ke(),Vp=On(),L4=Ic(),fge=q4(),cge=Ah(),vge=xs().configAttributes,VP=qo(),Do=Dh.extendDeepAll,jc=Dh.isPlainObject,hge=Dh.isArrayOrTypedArray,jp=Dh.nestedProperty,dge=Dh.valObjectMeta,C4="_isSubplotObj",Wp="_isLinkedToArray",pge="_arrayAttrRegexps",WP="_deprecated",D4=[C4,Wp,pge,WP];Da.IS_SUBPLOT_OBJ=C4;Da.IS_LINKED_TO_ARRAY=Wp;Da.DEPRECATED=WP;Da.UNDERSCORE_ATTRS=D4;Da.get=function(){var e={};return Hi.allTypes.forEach(function(r){e[r]=yge(r)}),{defs:{valObjects:dge,metaKeys:D4.concat(["description","role","editType","impliedEdits"]),editType:{traces:VP.traces,layout:VP.layout},impliedEdits:{}},traces:e,layout:gge(),frames:bge(),animation:Wc(cge),config:Wc(vge)}};Da.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(D4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Da.isValObject(o)&&jc(o)&&i!=="impliedEdits"&&Da.crawl(o,r,n+1,l)}})};Da.isValObject=function(e){return e&&e.valType!==void 0};Da.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)hge(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d<c.length;d++)jc(c[d])&&l(c[d],u+1,v+"["+d+"].")}else jc(c)&&l(c,u+1,v+".")}return n=e,i="",Da.crawl(Vp,o),e._module&&e._module.attributes&&Da.crawl(e._module.attributes,o),r};Da.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Hi.modules[e.type||Vp.type.dflt]||{})._module),!o)return!1;if(n=o.attributes,i=n&&n[t],!i){var l=o.basePlotModule;l&&l.attributes&&(i=l.attributes[t])}return i||(i=Vp[t]),XP(i,r,a)};Da.getLayoutValObject=function(e,r){var t=mge(e,r[0]);return XP(t,r,1)};function mge(e,r){var t,a,n,i,o=e._basePlotModules;if(o){var l;for(t=0;t<o.length;t++){if(n=o[t],n.attrRegex&&n.attrRegex.test(r)){if(n.layoutAttrOverrides)return n.layoutAttrOverrides;!l&&n.layoutAttributes&&(l=n.layoutAttributes)}var s=n.baseLayoutAttrOverrides;if(s&&r in s)return s[r]}if(l)return l}var u=e._modules;if(u){for(t=0;t<u.length;t++)if(i=u[t].layoutAttributes,i&&r in i)return i[r]}for(a in 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 L4?L4[r]:!1}function XP(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Yp(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(jc(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Yp(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Yp(n))return!1;var i=e.items;if(Array.isArray(i)){if(n>=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Yp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Yp(e){return e===Math.round(e)&&e>=0}function yge(e){var r,t;r=Hi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Do({},Vp),i=Do({},r.attributes);Da.crawl(i,function(s,u,f,c,v){jp(n,v).set(void 0),s===void 0&&jp(i,v).set(void 0)}),Do(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,Do(a,i),t.attributes&&Do(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Wc(a)};if(r.layoutAttributes){var l={};Do(l,r.layoutAttributes),o.layoutAttributes=Wc(l)}return r.animatable||Da.crawl(o,function(s){Da.isValObject(s)&&"anim"in s&&delete s.anim}),o}function gge(){var e={},r,t;Do(e,L4);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++)jP(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;jP(e,t,n)}for(r in Hi.componentsRegistry){t=Hi.componentsRegistry[r];var i=t.schema;if(i&&(i.subplots||i.layout)){var o=i.subplots;if(o&&o.xaxis&&!o.yaxis)for(var l in o.xaxis)delete e.yaxis[l];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?Do(e,t.layoutAttributes):t.layoutAttributes&&Age(e,t.layoutAttributes,t.name)}return{layoutAttributes:Wc(e)}}function bge(){var e={frames:Do({},fge)};return Wc(e),e.frames}function Wc(e){return xge(e),_ge(e),wge(e),e}function xge(e){function r(t,a,n){!Da.isValObject(t)&&jc(t)&&(t.role="object")}Da.crawl(e,r)}function _ge(e){function r(t,a,n){if(t){var i=t[Wp];i&&(delete t[Wp],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}Da.crawl(e,r)}function wge(e){function r(t){for(var a in t)if(jc(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 jP(e,r,t){var a=jp(e,t),n=Do({},r.layoutAttributes);n[C4]=!0,a.set(n)}function Age(e,r,t){var a=jp(e,t);a.set(Do(a.get()||{},r))}});var Ct=z(Xu=>{"use strict";var Zc=ke(),Tge=On(),Ds="templateitemname",E4={name:{valType:"string",editType:"none"}};E4[Ds]={valType:"string",editType:"calc"};Xu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=E4.name,r[Ds]=E4[Ds],r};Xu.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=Zc.coerce(i,{},Tge,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Xu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Zc.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Xu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[$P(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[Ds]=u[Ds];if(!ZP(c))return f._template=n,f;for(var v=0;v<i.length;v++){var d=i[v];if(d.name===c)return o[c]=1,f._template=d,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(ZP(v)&&!o[v]){var d={_template:c,name:v,_input:{_templateitemname:v}};d[Ds]=c[Ds],u.push(d),o[v]=1}}return u}return{newItem:l,defaultItems:s}};function ZP(e){return e&&typeof e=="string"}function $P(e){var r=e.length-1;return e.charAt(r)!=="s"&&Zc.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Xu.arrayDefaultKey=$P;Xu.arrayEditor=function(e,r,t){var a=(Zc.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Ds]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Zc.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var y=c();for(var m in y)Zc.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ea={};qt(Ea,{AX_ID_PATTERN:()=>Lge,AX_NAME_PATTERN:()=>Cge,DFLTRANGEX:()=>Ige,DFLTRANGEY:()=>Bge,DRAGGERSIZE:()=>zge,HOUR_PATTERN:()=>Ege,MINDRAG:()=>Rge,MINZOOM:()=>Fge,REDRAWDELAY:()=>Nge,SUBPLOT_PATTERN:()=>Dge,WEEKDAY_PATTERN:()=>Pge,attrRegex:()=>kge,clipOnAxisFalseQuery:()=>Hge,idRegex:()=>Mge,layerValue2layerClass:()=>Uge,traceLayerClasses:()=>Oge,xAxisMatch:()=>Sge,yAxisMatch:()=>qge,zindexSeparator:()=>Gge});var Mge,kge,Sge,qge,Lge,Cge,Dge,Ege,Pge,Rge,Fge,zge,Nge,Ige,Bge,Oge,Hge,Uge,Gge,Pa=St(()=>{"use strict";Fc();Mge={x:Uu("x","( domain)?"),y:Uu("y","( domain)?")},kge=Uu("[xy]axis"),Sge=Uu("xaxis"),qge=Uu("yaxis"),Lge=/^[xyz][0-9]*( domain)?$/,Cge=/^[xyz]axis[0-9]*$/,Dge=/^x([0-9]*)y([0-9]*)$/,Ege="hour",Pge="day of week",Rge=8,Fge=20,zge=20,Nge=50,Ige=[-1,6],Bge=[-1,4],Oge=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Hge=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Uge={"above traces":"above","below traces":"below"},Gge="z"});var Aa=z(Qn=>{"use strict";var Yge=Tr(),P4=(Pa(),ze(Ea));Qn.id2name=function(r){if(!(typeof r!="string"||!r.match(P4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Qn.name2id=function(r){if(r.match(P4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Qn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(P4.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":"")}};Qn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Qn.listIds(e,r),i=new Array(n.length),o;for(o=0;o<n.length;o++){var l=n[o];i[o]=a[l.charAt(0)+"axis"+l.slice(1)]}if(!t){var s=a._subplots.gl3d||[];for(o=0;o<s.length;o++){var u=a[s[o]];r?i.push(u[r+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i};Qn.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)};Qn.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[Qn.id2name(r)]};Qn.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(Yge.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Qn.getFromId(e,r[t+"axis"]||t);return n};Qn.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)};Qn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function JP(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Qn.isLinked=function(e,r){return JP(r,e._axisMatchGroups)||JP(r,e._axisConstraintGroups)}});var Es=z((hXe,KP)=>{"use strict";function Vge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function jge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}KP.exports={clearOutlineControllers:Vge,clearOutline:jge}});var Xp=z((dXe,QP)=>{"use strict";QP.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Jp=z($p=>{"use strict";var Zp=Tr(),pXe=(Pa(),ze(Ea)).SUBPLOT_PATTERN;$p.getSubplotCalcData=function(e,r,t){var a=Zp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o<e.length;o++){var l=e[o],s=l[0].trace;s[n]===t&&i.push(l)}return i};$p.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Zp.getModule(r).plot:typeof r=="function"?i=r:i=r.plot,!i)return[a,e];for(var o=t,l=0;l<e.length;l++){var s=e[l],u=s[0].trace,f=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===i&&(!f||u.zorder===o)?a.push(s):n.push(s))}return[a,n]};$p.getSubplotData=function(r,t,a){if(!Zp.subplotsRegistry[t])return[];for(var n=Zp.subplotsRegistry[t].attr,i=[],o,l,s,u=0;u<r.length;u++)o=r[u],o[n]===a&&i.push(o);return i}});var aR=z(Zu=>{"use strict";var Wge=Tr(),$c=ke();Zu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Zu.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){eR(e,o,n.cache),n.check=function(){if(i){var f=eR(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s<l.length;s++)e._internalOn(l[s],n.check);n.remove=function(){for(var u=0;u<l.length;u++)e._removeInternalListener(l[u],n.check)}}else $c.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};Zu.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var o,l=r[a],s=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!s)return!1;var f=Zu.computeAPICommandBindings(e,s,u);if(f.length!==1)return!1;if(!i)i=f[0],Array.isArray(i.traces)&&i.traces.sort();else{if(o=f[0],o.type!==i.type||o.prop!==i.prop)return!1;if(Array.isArray(i.traces))if(Array.isArray(o.traces)){o.traces.sort();for(var c=0;c<i.traces.length;c++)if(i.traces[c]!==o.traces[c])return!1}else return!1;else if(o.prop!==i.prop)return!1}o=f[0];var v=o.value;if(Array.isArray(v))if(v.length===1)v=v[0];else return!1;t&&(t[v]=a)}return i};function eR(e,r,t){var a,n,i,o=!1;if(r.type==="data")a=e._fullData[r.traces!==null?r.traces[0]:0];else if(r.type==="layout")a=e._fullLayout;else return!1;return n=$c.nestedProperty(a,r.prop).get(),i=t[r.type]=t[r.type]||{},i.hasOwnProperty(r.prop)&&i[r.prop]!==n&&(o=!0),i[r.prop]=n,{changed:o,value:n}}Zu.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=Wge.apiMethodRegistry[r],n=[e];Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++)n.push(t[i]);return a.apply(null,n).catch(function(o){return $c.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Zu.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=tR(e,t);break;case"relayout":a=rR(e,t);break;case"update":a=tR(e,[t[0],t[2]]).concat(rR(e,[t[1]]));break;case"animate":a=Xge(e,t);break;default:a=[]}return a};function Xge(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 rR(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if($c.isPlainObject(a))n=a;else return t;return R4(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function tR(e,r){var t,a,n,i,o=[];if(a=r[0],n=r[1],t=r[2],i={},typeof a=="string")i[a]=n;else if($c.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),R4(i,function(l,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 d=0;d<v;d++)f[d]=t?t[d]:d}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)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function R4(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;$c.isPlainObject(i)?R4(i,r,o,a+1):r(o,n,i)}})}});var ma=z((bXe,hR)=>{"use strict";var gXe=Pr(),Zge=_c().timeFormatLocale,$ge=f5().formatLocale,Eh=Br(),Jge=v5(),Kge=Jv().version,et=Tr(),Qge=Xc(),e3e=Ct(),br=ke(),r3e=qr(),nR=(jt(),ze(Zt)).BADNUM,ei=Aa(),t3e=Es().clearOutline,a3e=Xp(),F4=Ah(),n3e=q4(),i3e=Jp().getModuleCalcData,iR=br.relinkPrivateKeys,$u=br._,tr=hR.exports={};br.extendFlat(tr,et);tr.attributes=On();tr.attributes.type.values=tr.allTypes;tr.fontAttrs=Ca();tr.layoutAttributes=Ic();var Qp=aR();tr.executeAPICommand=Qp.executeAPICommand;tr.computeAPICommandBindings=Qp.computeAPICommandBindings;tr.manageCommandObserver=Qp.manageCommandObserver;tr.hasSimpleAPICommandBindings=Qp.hasSimpleAPICommandBindings;tr.redrawText=function(e){return e=br.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(et.getComponentMethod("annotations","draw")(e),et.getComponentMethod("legend","draw")(e),et.getComponentMethod("colorbar","draw")(e),r(tr.previousPromises(e)))},300)})};tr.resize=function(e){e=br.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||br.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||br.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,et.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};tr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};tr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=tr.graphJson(e,!1,"object");a.version=Kge;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var o3e=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],l3e=["year","month","dayMonth","dayMonthYear"];tr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||tr.createTransitionData(e),n._dfltTitle={plot:$u(e,"Click to enter Plot title"),subtitle:$u(e,"Click to enter Plot subtitle"),x:$u(e,"Click to enter X axis title"),y:$u(e,"Click to enter Y axis title"),colorbar:$u(e,"Click to enter Colorscale title"),annotation:$u(e,"new text")},n._traceWord=$u(e,"trace");var v=oR(e,o3e);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;tr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),tr.sanitizeMargins(n)}else{tr.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,A=y&&(m||b);A?tr.plotAutoSize(e,i,n):y&&tr.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=f3e(v,n.separators),n._extraFormat=oR(e,l3e),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=u3e(),x=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=s3e(o,s),tr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),T=Object.keys(x.y);if(k.length>1&&T.length>1){for(et.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<k.length;c++)br.pushUnique(w.xaxis,k[c]);for(c=0;c<T.length;c++)br.pushUnique(w.yaxis,T[c]);for(var q in _)br.pushUnique(w.cartesian,q)}if(n._has=tr._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)iR(l[c],o[c]);tr.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var C=n._visibleModules,E=[];for(c=0;c<C.length;c++){var P=C[c].crossTraceDefaults;P&&br.pushUnique(E,P)}for(c=0;c<E.length;c++)E[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&k.length>15&&T.length>15&&n.shapes.length===0&&n.images.length===0,tr.linkSubplots(l,n,o,a),tr.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),N=!!(n._has&&n._has("cartesian")),I=R,O=N;I&&!O?a._bgLayer.remove():O&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&t3e({_fullLayout:a}),c3e(l,n),iR(n,a),et.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,Y={},G;for(G in U)Y[G]="old";for(c=0;c<l.length;c++)G=l[c].uid,Y[G]||(U[G]={}),Y[G]="new";for(G in Y)Y[G]==="old"&&delete U[G];uR(n),et.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&tr.supplyDefaultsUpdateCalc(u,l)};tr.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 s3e(e,r){var t=r.length,a,n=e.length,i=new Array(t),o={};function l(f,c){i[c]=f,o[f]=1}function s(f,c){if(f&&typeof f=="string"&&!o[f])return l(f,c),!0}for(a=0;a<t;a++){var u=r[a].uid;typeof u=="number"&&(u=String(u)),!s(u,a)&&(a<n&&s(e[a].uid,a)||l(br.randstr(o),a))}return i}function u3e(){var e=et.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=et.subplotsRegistry;for(var i in n){var o=n[i],l=o.attr;if(l&&(e.push(i),Array.isArray(l)))for(a=0;a<l.length;a++)br.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function oR(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var v=!0,d=0;d<r.length;d++){var p=r[d];n[p]||(c[p]?n[p]=c[p]:v=!1)}v&&(a=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,s=0;s<2;s++){var u=(l[t]||{}).format;if(u&&(i(u),a))break;l=et.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(et.localeRegistry.en.format),n}function f3e(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=$ge(e).format(br.adjustFormat(t))}catch(a){return br.warnBadFormat(t),br.noFormat}return t},timeFormat:Zge(e).utcFormat}}function c3e(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)}tr.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=[])};tr._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=et.modules[n];if(i&&i.categories[e])return!0}return!1};tr.cleanPlot=function(e,r,t,a){var n,i,o=a._basePlotModules||[];for(n=0;n<o.length;n++){var l=o[n];l.clean&&l.clean(e,r,t,a)}var s=a._has&&a._has("gl"),u=r._has&&r._has("gl");s&&!u&&a._glcontainer!==void 0&&(a._glcontainer.selectAll(".gl-canvas").remove(),a._glcontainer.selectAll(".no-webgl").remove(),a._glcanvas=null);var f=!!a._infolayer;e:for(n=0;n<t.length;n++){var c=t[n],v=c.uid;for(i=0;i<e.length;i++){var d=e[i];if(v===d.uid)continue e}f&&a._infolayer.select(".cb"+v).remove()}};tr.linkSubplots=function(e,r,t,a){var n,i,o=a._plots||{},l=r._plots={},s=r._subplots,u={_fullData:e,_fullLayout:r},f=s.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],v=o[c],d=ei.getFromId(u,c,"x"),p=ei.getFromId(u,c,"y"),y;for(v?y=l[c]=v:(y=l[c]={},y.id=c),d._counterAxes.push(p._id),p._counterAxes.push(d._id),d._subplotsWith.push(c),p._subplotsWith.push(c),y.xaxis=d,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=ei.list(u,null,!0),A;for(n=0;n<b.length;n++){A=b[n];var w=null;A.overlaying&&(w=ei.getFromId(u,A.overlaying),w&&w.overlaying&&(A.overlaying=!1,w=null)),A._mainAxis=w||A,w&&(A.domain=w.domain.slice()),A._anchorAxis=A.anchor==="free"?null:ei.getFromId(u,A.anchor)}for(n=0;n<b.length;n++)if(A=b[n],A._counterAxes.sort(ei.idSort),A._subplotsWith.sort(br.subplotSort),A._mainSubplot=v3e(A,r),A._counterAxes.length&&(A.spikemode&&A.spikemode.indexOf("across")!==-1||A.automargin&&A.mirror&&A.anchor!=="free"||et.getComponentMethod("rangeslider","isVisible")(A))){var x=1,_=0;for(i=0;i<A._counterAxes.length;i++){var k=ei.getFromId(u,A._counterAxes[i]);x=Math.min(x,k.domain[0]),_=Math.max(_,k.domain[1])}x<_&&(A._counterDomainMin=x,A._counterDomainMax=_)}};function v3e(e,r){var t={_fullLayout:r},a=e._id.charAt(0)==="x",n=e._mainAxis._anchorAxis,i="",o="",l="";if(n&&(l=n._mainAxis._id,i=a?e._id+l:l+e._id),!i||!r._plots[i]){i="";for(var s=e._counterAxes,u=0;u<s.length;u++){var f=s[u],c=a?e._id+f:f+e._id;o||(o=c);var v=ei.getFromId(t,f);if(l&&v.overlaying===l){i=c;break}}}return i||o}tr.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,s=0,u,f,c;function v(A){r.push(A);var w=A._module;w&&(br.pushUnique(n,w),A.visible===!0&&br.pushUnique(i,w),br.pushUnique(o,A._module.basePlotModule),l++,A._input.visible!==!1&&s++)}var d={},p=[],y=(t.template||{}).data||{},m=e3e.traceTemplater(y);for(u=0;u<e.length;u++)c=e[u],f=m.newTrace(c),f.uid=a._traceUids[u],tr.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,v(f),et.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),et.traceIs(f,"carpetDependent")&&p.push(u);for(u=0;u<p.length;u++)if(f=r[p[u]],!!f.visible){var b=d[f.carpet];if(f._carpet=b,!b||!b.visible){f.visible=!1;continue}f.xaxis=b.xaxis,f.yaxis=b.yaxis}};tr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return br.coerce(e||{},t,F4,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]=tr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=tr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=tr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=tr.supplyAnimationTransitionDefaults(e.transition||{});return t};tr.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return br.coerce(e||{},r,F4.frame,a,n)}return t("duration"),t("redraw"),r};tr.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return br.coerce(e||{},r,F4.transition,a,n)}return t("duration"),t("easing"),r};tr.supplyFrameDefaults=function(e){var r={};function t(a,n){return br.coerce(e,r,n3e,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};tr.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||r3e.defaults,o=i[t%i.length],l;function s(w,x){return br.coerce(e,r,tr.attributes,w,x)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=tr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,v=c.attr,d=c.attributes;if(v&&d){var p=a._subplots,y="";if(Array.isArray(v))for(l=0;l<v.length;l++){var m=v[l],b=br.coerce(e,r,d,m);p[m]&&br.pushUnique(p[m],b),y+=b}else y=br.coerce(e,r,d,v);p[c.name]&&br.pushUnique(p[c.name],y)}}if(u&&(s("customdata"),s("ids"),s("meta"),et.traceIs(r,"showLegend")?(br.coerce(e,r,f.attributes.showlegend?f.attributes:tr.attributes,"showlegend"),br.coerce(e,r,f.attributes.legend?f.attributes:tr.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),br.coerce(e,r,f.attributes.legend?f.attributes:tr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),et.traceIs(r,"noOpacity")||s("opacity"),et.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),et.traceIs(r,"noHover")||(r.hovertemplate||br.coerceHoverinfo(e,r,a),r.type!=="parcats"&&et.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var A=s("selectedpoints");br.isTypedArray(A)&&(r.selectedpoints=Array.from(A))}return r};tr.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,v){return br.coerce(e,r,tr.layoutAttributes,c,v)}var n=e.template;br.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=br.coerceFont(a,"font"),o=i.size;br.coerceFont(a,"title.font",i,{overrideDflt:{size:Math.round(o*1.4)}}),a("title.text",r._dfltTitle.plot),a("title.xref");var l=a("title.yref");a("title.pad.t"),a("title.pad.r"),a("title.pad.b"),a("title.pad.l");var s=a("title.automargin");a("title.x"),a("title.xanchor"),a("title.y"),a("title.yanchor"),a("title.subtitle.text",r._dfltTitle.subtitle),br.coerceFont(a,"title.subtitle.font",i,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),s&&(l==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),l==="container"&&(r.title.y==="auto"&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y<.5?"bottom":"top")));var u=a("uniformtext.mode");u&&a("uniformtext.minsize"),a("autosize",!(e.width&&e.height)),a("width"),a("height"),a("minreducedwidth"),a("minreducedheight"),a("margin.l"),a("margin.r"),a("margin.t"),a("margin.b"),a("margin.pad"),a("margin.autoexpand"),e.width&&e.height&&tr.sanitizeMargins(r),et.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),et.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),et.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),et.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),br.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),et.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),et.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),br.coerce(e,r,a3e,"scattermode")};function Kp(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}tr.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=br.isPlotDiv(r);if(s&&r.emit("plotly_autosize"),n.fillFrame)o=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(r):{};if(o=Kp(u.width)||Kp(u.maxWidth)||a.width,l=Kp(u.height)||Kp(u.maxHeight)||a.height,Eh(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=tr.layoutAttributes.width.min,v=tr.layoutAttributes.height.min;o<c&&(o=c),l<v&&(l=v);var d=!t.width&&Math.abs(a.width-o)>1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),tr.sanitizeMargins(a)};tr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=et.componentsRegistry,i=r._basePlotModules,o,l,s,u=et.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(et.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(br.subplotSort);for(l=0;l<i.length;l++)s=i[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)s=c[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);for(o in n)s=n[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t)};tr.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)),br.clearThrottle(),br.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()};tr.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&br.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};tr.sanitizeMargins=function(e){if(!(!e||!e.margin)){var r=e.width,t=e.height,a=e.margin,n=r-(a.l+a.r),i=t-(a.t+a.b),o;n<0&&(o=(r-1)/(a.l+a.r),a.l=Math.floor(o*a.l),a.r=Math.floor(o*a.r)),i<0&&(o=(t-1)/(a.t+a.b),a.t=Math.floor(o*a.t),a.b=Math.floor(o*a.b))}};tr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};tr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function uR(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 fR=2,cR=2;tr.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=a.minreducedwidth,s=a.minreducedheight,u=br.constrain(n-o.l-o.r,fR,l),f=br.constrain(i-o.t-o.b,cR,s),c=Math.max(0,n-u),v=Math.max(0,i-f),d=a._pushmargin,p=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete d[r],delete p[r];else{var y=t.pad;if(y===void 0&&(y=Math.min(12,o.l,o.r,o.t,o.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 A=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,_=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:A,size:t.l+y},r:{val:w,size:t.r+y},b:{val:_,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return tr.doAutoMargin(e)}};function h3e(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ei.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}tr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),uR(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=br.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var A in b)for(var w in b[A]){var x=b[A][w];o[w]=Math.max(o[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 _ in o){var k=0;for(var T in v)T!=="base"&&Eh(v[T][_].size)&&(k=v[T][_].size>k?v[T][_].size:k);var q=Math.max(0,i[_]-k);o[_]=Math.max(0,o[_]-q)}for(var C in v){var E=v[C].l||{},P=v[C].b||{},R=E.val,N=E.size,I=P.val,O=P.size,U=t-o.r-o.l,Y=a-o.t-o.b;for(var G in v){if(Eh(N)&&v[G].r){var V=v[G].r.val,W=v[G].r.size;if(V>R){var j=(N*V+(W-U)*R)/(V-R),J=(W*(1-R)+(N-U)*(1-V))/(V-R);j+J>s+u&&(s=j,u=J)}}if(Eh(O)&&v[G].t){var te=v[G].t.val,ae=v[G].t.size;if(te>I){var se=(O*te+(ae-Y)*I)/(te-I),$=(ae*(1-I)+(O-Y)*(1-te))/(te-I);se+$>c+f&&(c=se,f=$)}}}}}var fe=br.constrain(t-i.l-i.r,fR,p),ie=br.constrain(a-i.t-i.b,cR,y),ue=Math.max(0,t-fe),ce=Math.max(0,a-ie);if(ue){var oe=(s+u)/ue;oe>1&&(s/=oe,u/=oe)}if(ce){var be=(c+f)/ce;be>1&&(c/=be,f/=be)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(tr.didMarginChange(l,n)||h3e(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Re=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<Re)return et.call("_doPlot",e);r._size=l,br.warn("Too many auto-margin redraws.")}d3e(e)};function d3e(e){var r=ei.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var lR=["l","r","t","b","p","w","h"];tr.didMarginChange=function(e,r){for(var t=0;t<lR.length;t++){var a=lR[t],n=e[a],i=r[a];if(!Eh(n)||Math.abs(i-n)>1)return!0}return!1};tr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&tr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(br.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(d[b]="_function");return}d[b]=s(c[b],v)}}),d}var p=Array.isArray(c),y=br.isTypedArray(c);if((p||y)&&c.dtype&&c.shape){var m=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:br.isArrayBuffer(m)?Jge.encode(m):m},v)}return p?c.map(function(b){return s(b,v)}):y?br.simpleMap(c,br.identity):br.isJSDate(c)?br.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(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};tr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(a=r[t],a.type){case"replace":n=a.value;var l=(i[a.index]||{}).name,s=n.name;i[a.index]=o[s]=n,s!==l&&(delete o[l],o[s]=n);break;case"insert":n=a.value,o[n.name]=n,i.splice(a.index,0,n);break;case"delete":n=i[a.index],delete o[n.name],i.splice(a.index,1);break}return Promise.resolve()};tr.computeFrame=function(e,r){var t=e._transitionData._frameHash,a,n,i,o;if(!r)throw new Error("computeFrame must be given a string frame name");var l=t[r.toString()];if(!l)return!1;for(var s=[l],u=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&u.indexOf(l.name)===-1;)s.push(l),u.push(l.name);for(var f={};l=s.pop();)if(l.layout&&(f.layout=tr.extendLayout(f.layout,l.layout)),l.data){if(f.data||(f.data=[]),n=l.traces,!n)for(n=[],a=0;a<l.data.length;a++)n[a]=a;for(f.traces||(f.traces=[]),a=0;a<l.data.length;a++)i=n[a],i!=null&&(o=f.traces.indexOf(i),o===-1&&(o=f.data.length,f.traces[o]=i),f.data[o]=tr.extendTrace(f.data[o],l.data[a]))}return f};tr.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)}};tr.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=br.extendDeepNoArrays({},r||{}),v=br.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=br.nestedProperty(v,t[i]),n=a.get(),n===void 0?br.nestedProperty(d,t[i]).set(null):(a.set(null),br.nestedProperty(d,t[i]).set(n));if(e=br.extendDeepNoArrays(e||{},v),t&&t.length){for(i=0;i<t.length;i++)if(l=br.nestedProperty(d,t[i]),u=l.get(),!!u){for(s=br.nestedProperty(e,t[i]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),o=0;o<u.length;o++){var p=u[o];p===null?f[o]=null:f[o]=tr.extendObjectWithContainers(f[o],p)}s.set(f)}}return e};tr.dataArrayContainers=["dimensions"];tr.layoutArrayContainers=et.layoutArrayContainers;tr.extendTrace=function(e,r){return tr.extendObjectWithContainers(e,r,tr.dataArrayContainers)};tr.extendLayout=function(e,r){return tr.extendObjectWithContainers(e,r,tr.layoutArrayContainers)};tr.transition=function(e,r,t,a,n,i){var o={redraw:n.redraw},l={},s=[];return o.prepareFn=function(){for(var u=Array.isArray(r)?r.length:0,f=a.slice(0,u),c=0;c<f.length;c++){var v=f[c],d=e._fullData[v],p=d._module;if(p){if(p.animatable){var y=p.basePlotModule.name;l[y]||(l[y]=[]),l[y].push(v)}e.data[f[c]]=tr.extendTrace(e.data[f[c]],r[c])}}var m=br.expandObjectPaths(br.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var A in m)b.test(A)&&delete m[A].range;tr.extendLayout(e.layout,m),delete e.calcdata,tr.supplyDefaults(e),tr.doCalcdata(e);var w=br.expandObjectPaths(t);if(w){var x=e._fullLayout._plots;for(var _ in x){var k=x[_],T=k.xaxis,q=k.yaxis,C=T.range.slice(),E=q.range.slice(),P=null,R=null,N=null,I=null;Array.isArray(w[T._name+".range"])?P=w[T._name+".range"].slice():Array.isArray((w[T._name]||{}).range)&&(P=w[T._name].range.slice()),Array.isArray(w[q._name+".range"])?R=w[q._name+".range"].slice():Array.isArray((w[q._name]||{}).range)&&(R=w[q._name].range.slice()),C&&P&&(T.r2l(C[0])!==T.r2l(P[0])||T.r2l(C[1])!==T.r2l(P[1]))&&(N={xr0:C,xr1:P}),E&&R&&(q.r2l(E[0])!==q.r2l(R[0])||q.r2l(E[1])!==q.r2l(R[1]))&&(I={yr0:E,yr1:R}),(N||I)&&s.push(br.extendFlat({plotinfo:k},N,I))}}return Promise.resolve()},o.runFn=function(u){var f,c=e._fullLayout._basePlotModules,v=s.length,d;if(t)for(d=0;d<c.length;d++)c[d].transitionAxes&&c[d].transitionAxes(e,s,i,u);v?(f=br.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var p in l){var y=l[p],m=e._fullData[y[0]]._module;m.basePlotModule.plot(e,y,f,u)}},vR(e,i,o)};tr.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var s=n._plots;o.redraw=!1,r.anim==="some"&&(o.redraw=!0),t.anim==="some"&&(o.redraw=!0);for(var u in s){var f=s[u],c=f.xaxis,v=f.yaxis,d=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,A=null;(c.r2l(d[0])!==c.r2l(y[0])||c.r2l(d[1])!==c.r2l(y[1]))&&(b={xr0:d,xr1:y}),(v.r2l(p[0])!==v.r2l(m[0])||v.r2l(p[1])!==v.r2l(m[1]))&&(A={yr0:p,yr1:m}),(b||A)&&l.push(br.extendFlat({plotinfo:f},b,A))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,v,d,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,l,v,s)}function A(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].plot(e,p,d,s)}l.length&&r.anim?i.ordering==="traces first"?(v=br.extendFlat({},i,{duration:0}),p=y,d=i,setTimeout(b,i.duration),A()):(v=i,p=null,d=br.extendFlat({},i,{duration:0}),setTimeout(A,v.duration),b()):l.length?(v=i,b()):r.anim&&(p=y,d=i,A())},vR(e,i,o)};function vR(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 o(){return e.emit("plotly_transitioning",[]),new Promise(function(c){e._transitioning=!0,r.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return et.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return et.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=[tr.previousPromises,s,t.prepareFn,tr.rehover,tr.reselect,o],f=br.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}tr.doCalcdata=function(e,r){var t=ei.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l<a.length;l++)if(Array.isArray(r)&&r.indexOf(l)===-1){s[l]=u[l];continue}for(l=0;l<a.length;l++)i=a[l],i._arrayAttrs=Qge.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(l=0;l<f.length;l++)t.push(n[f[l]].radialaxis,n[f[l]].angularaxis);for(var c in n._colorAxes){var v=n[c];v.cauto!==!1&&(delete v.cmin,delete v.cmax)}function d(y,m){if(i=a[y],o=i._module,!!o.isContainer===m){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:nR,y:nR}]),b[0].t||(b[0].t={}),b[0].trace=i,s[y]=b}}for(y3e(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);sR(e);var p=m3e(t,e);if(p.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<p.length;l++)d(p[l],!0);for(l=0;l<p.length;l++)d(p[l],!1);sR(e)}et.getComponentMethod("fx","calc")(e),et.getComponentMethod("errorbars","calc")(e)};var p3e=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function m3e(e,r){var t=[],a,n,i,o,l;function s(G,V,W){var j=V._id.charAt(0);if(G==="histogram2dcontour"){var J=V._counterAxes[0],te=ei.getFromId(r,J),ae=j==="x"||J==="x"&&te.type==="category",se=j==="y"||J==="y"&&te.type==="category";return function($,fe){return $===0||fe===0||ae&&$===W[fe].length-1||se&&fe===W.length-1?-1:(j==="y"?fe:$)-1}}else return function($,fe){return j==="y"?fe:$}}var u={min:function(G){return br.aggNums(Math.min,null,G)},max:function(G){return br.aggNums(Math.max,null,G)},sum:function(G){return br.aggNums(function(V,W){return V+W},null,G)},total:function(G){return br.aggNums(function(V,W){return V+W},null,G)},mean:function(G){return br.mean(G)},"geometric mean":function(G){return br.geometricMean(G)},median:function(G){return br.median(G)}};function f(G,V){return G[1]-V[1]}function c(G,V){return V[1]-G[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var d=v.categoryorder.match(p3e);if(d){var p=d[1],y=d[2],m=v._id.charAt(0),b=m==="x",A=[];for(n=0;n<v._categories.length;n++)A.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 _=x.type;et.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var k=_==="splom",T=_==="scattergl",q=r.calcdata[w];for(i=0;i<q.length;i++){var C=q[i],E,P;if(k){var R=x._axesDim[v._id];if(!b){var N=x._diag[R][0];N&&(v=r._fullLayout[ei.id2name(N)])}var I=C.trace.dimensions[R].values;for(o=0;o<I.length;o++)for(E=v._categoriesMap[I[o]],l=0;l<C.trace.dimensions.length;l++)if(l!==R){var O=C.trace.dimensions[l];A[E][1].push(O.values[o])}}else if(T){for(o=0;o<C.t.x.length;o++)b?(E=C.t.x[o],P=C.t.y[o]):(E=C.t.y[o],P=C.t.x[o]),A[E][1].push(P);C.t&&C.t._scene&&delete C.t._scene.dirty}else if(C.hasOwnProperty("z")){P=C.z;var U=s(x.type,v,P);for(o=0;o<P.length;o++)for(l=0;l<P[o].length;l++)E=U(l,o),E+1&&A[E][1].push(P[o][l])}else{if(E=C.p,E===void 0&&(E=C[m]),isNaN(E)||E<0)continue;for(P=C.s,P===void 0&&(P=C.v),P===void 0&&(P=b?C.y:C.x),Array.isArray(P)||(P===void 0?P=[]:P=[P]),o=0;o<P.length;o++)A[E][1].push(P[o])}}}}v._categoriesValue=A;var Y=[];for(n=0;n<A.length;n++)Y.push([A[n][0],u[p](A[n][1])]);Y.sort(y==="descending"?c:f),v._categoriesAggregatedValue=Y,v._initialCategories=Y.map(function(G){return G[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function y3e(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}br.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[ei.id2name(l)])}function sR(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,o;for(i=0;i<t.length;i++){var l=t[i],s=l.crossTraceCalc;if(s){var u=l.basePlotModule.name;a[u]?br.pushUnique(a[u],s):a[u]=[s]}}for(o in a){var f=a[o],c=r._subplots[o];if(Array.isArray(c))for(n=0;n<c.length;n++){var v=c[n],d=o==="cartesian"?r._plots[v]:r[v];for(i=0;i<f.length;i++)f[i](e,d,v)}else for(i=0;i<f.length;i++)f[i](e)}}tr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};tr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};tr.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);et.getComponentMethod("selections","reselect")(e,n)};tr.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},o;for(o=0;o<t.length;o++){var l=t[o],s=l[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(l))}for(var u in n)if(!i[u]){var f=n[u][0],c=f[0].trace;c.visible=!1,i[u]=[f]}for(var v in i){var d=i[v],p=d[0][0].trace._module;p.plot(e,r,br.filterVisible(d),a)}r.traceHash=i};tr.plotBasePlot=function(e,r,t,a,n){var i=et.getModule(e),o=i3e(r.calcdata,i)[0];i.plot(r,o,a,n)};tr.cleanBasePlot=function(e,r,t,a,n){var i=n._has&&n._has(e),o=t._has&&t._has(e);i&&!o&&n["_"+e+"layer"].selectAll("g.trace").remove()}});var Yl={};qt(Yl,{svg:()=>dR,svgAttrs:()=>b3e,xlink:()=>pR,xmlns:()=>g3e});var g3e,dR,pR,b3e,Vl=St(()=>{"use strict";g3e="http://www.w3.org/2000/xmlns/",dR="http://www.w3.org/2000/svg",pR="http://www.w3.org/1999/xlink",b3e={xmlns:dR,"xmlns:xlink":pR}});var nn={};qt(nn,{CAP_SHIFT:()=>T3e,FROM_BL:()=>x3e,FROM_BR:()=>w3e,FROM_TL:()=>_3e,LINE_SPACING:()=>A3e,MID_SHIFT:()=>M3e,OPPOSITE_SIDE:()=>k3e});var x3e,_3e,w3e,A3e,T3e,M3e,k3e,on=St(()=>{"use strict";x3e={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},_3e={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},w3e={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},A3e=1.3,T3e=.7,M3e=.35,k3e={left:"right",right:"left",top:"bottom",bottom:"top"}});var Fa=z(mi=>{"use strict";var Ra=Pr(),Ui=ke(),S3e=Ui.strTranslate,z4=(Vl(),ze(Yl)),q3e=(on(),ze(nn)).LINE_SPACING,L3e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,_R=e=>e?e.match(L3e):null;mi.matchTex=_R;mi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&_R(a);n&&!P3e()&&(n=null);var i=Ra.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=G3e(e.node(),a);s&&e.style("pointer-events","all"),mi.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");R3e(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var y=v&&v.select("svg");if(!y||!y.node()){l(),s();return}e.style("display","none");var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(y.node()),d&&d.node()&&y.node().insertBefore(d.node().cloneNode(!0),y.node().firstChild);var b=p.width,A=p.height;y.attr({class:o,height:A,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});var _=x.node().getBoundingClientRect(),k=_.width,T=_.height;(k>b||T>A)&&(y.style("overflow","hidden"),_=y.node().getBoundingClientRect(),k=_.width,T=_.height);var q=+e.attr("x"),C=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,P=-E/4;o[0]==="y"?m.attr({transform:"rotate("+[-90,q,C]+")"+S3e(-k/2,P-T/2)}):o[0]==="l"?C=P-T/2:o[0]==="a"&&o.indexOf("atitle")!==0?(q=0,C=P):(q=q-k*(c==="middle"?.5:c==="end"?1:0),C=C+P-T/2),y.attr({x:q,y:C}),t&&t.call(e,m),s(m)})})):l(),e};var C3e=/(<|&lt;|&#60;)/g,D3e=/(>|&gt;|&#62;)/g;function E3e(e){return e.replace(C3e,"\\lt ").replace(D3e,"\\gt ")}var N4=null,wR=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,mR=!1,yR=!1;function P3e(){let e=wR();return e===3||e===4?!0:(e===null?mR||(mR=!0,Ui.warn("MathJax is not loaded. Math equations will not be rendered.")):yR||(yR=!0,Ui.warn("Unsupported MathJax version:",MathJax.version)),!1)}function R3e(e,r,t){let a=wR();var n;let i=function(){if(!N4){let u=MathJax._.output.svg_ts.SVG,f=Ui.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Ui.extendFlat({},f.linebreaks,{inline:!1})),N4=MathJax._.mathjax.mathjax.document(document,Ui.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+Ui.randstr({},64);n=Ra.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=E3e(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return N4.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)Ui.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Ui.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var AR={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"},F3e={sub:"0.3em",sup:"-0.6em"},z3e={sub:"-0.21em",sup:"0.42em"},gR="\u200B",bR=["http:","https:","mailto:","",void 0,":"],TR=mi.NEWLINES=/(\r\n?|\n)/g,B4=/(<[^<>]*>)/,O4=/<(\/?)([^ >]*)(\s+(.*))?>/i,N3e=/<br(\s+.*)?>/i;mi.BR_TAG_ALL=/<br(\s+.*)?>/gi;var MR=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,kR=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,SR=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,I3e=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Ju(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&em(a)}var B3e=/(^|;)\s*color:/;mi.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(B4),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],v=c.match(O4),d=v&&v[2].toLowerCase();if(d)a.indexOf(d)!==-1&&(l.push(c),s=d);else{var p=c.length;if(u+p<t)l.push(c),u+=p;else if(u<t){var y=t-u;s&&(s!=="br"||y<=i||p<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var O3e={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},H3e=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function em(e){return e.replace(H3e,function(r,t){var a;return t.charAt(0)==="#"?a=U3e(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=O3e[t],a||r})}mi.convertEntities=em;function U3e(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 G3e(e,r){r=r.replace(TR," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(z4.svg,"tspan");Ra.select(k).attr({class:"line",dy:i*q3e+"em"}),e.appendChild(k),n=k;var T=a;if(a=[{node:k}],T.length>1)for(var q=1;q<T.length;q++)l(T[q])}function l(k){var T=k.type,q={},C;if(T==="a"){C="a";var E=k.target,P=k.href,R=k.popup;P&&(q={"xlink:xlink:show":E==="_blank"||E.charAt(0)!=="_"?"new":"replace",target:E,"xlink:xlink:href":P},R&&(q.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else C="tspan";k.style&&(q.style=k.style);var N=document.createElementNS(z4.svg,C);if(T==="sup"||T==="sub"){s(n,gR),n.appendChild(N);var I=document.createElementNS(z4.svg,"tspan");s(I,gR),Ra.select(I).attr("dy",z3e[T]),q.dy=F3e[T],n.appendChild(N),n.appendChild(I)}else n.appendChild(N);Ra.select(N).attr(q),n=k.node=N,a.push(k)}function s(k,T){k.appendChild(document.createTextNode(T))}function u(k){if(a.length===1){Ui.log("Ignoring unexpected end tag </"+k+">.",r);return}var T=a.pop();k!==T.type&&Ui.log("Start tag <"+T.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=N3e.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(B4),v=0;v<c.length;v++){var d=c[v],p=d.match(O4),y=p&&p[2].toLowerCase(),m=AR[y];if(y==="br")o();else if(m===void 0)s(n,em(d));else if(p[1])u(y);else{var b=p[4],A={type:y},w=Ju(b,MR);if(w?(w=w.replace(B3e,"$1 fill:"),m&&(w+=";"+m)):m&&(w=m),w&&(A.style=w),y==="a"){t=!0;var x=Ju(b,kR);if(x){var _=qR(x);_&&(A.href=_,A.target=Ju(b,SR)||"_blank",A.popup=Ju(b,I3e))}}l(A)}}return t}function qR(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 bR.indexOf(n)!==-1&&bR.indexOf(i)!==-1?r:""}mi.sanitizeHTML=function(r){r=r.replace(TR," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(B4),o=0;o<i.length;o++){var l=i[o],s=l.match(O4),u=s&&s[2].toLowerCase();if(u in AR)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=Ju(f,MR),v=c?{style:c}:{};if(u==="a"){var d=Ju(f,kR);if(d){var p=qR(d);if(p){v.href=p;var y=Ju(f,SR);y&&(v.target=y)}}}var m=document.createElement(u);a.appendChild(m),Ra.select(m).attr(v),a=m,n.push(m)}else a.appendChild(document.createTextNode(em(l)))}var b="innerHTML";return t[b]};mi.lineCount=function(r){return r.selectAll("tspan.line").size()||1};mi.positionText=function(r,t,a){return r.each(function(){var n=Ra.select(this);function i(s,u){return u===void 0?(u=n.attr(s),u===null&&(n.attr(s,0),u=0)):n.attr(s,u),u}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function xR(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),o=r.node().getBoundingClientRect(),l,s,u;return n==="bottom"?s=function(){return i.bottom-l.height}:n==="middle"?s=function(){return i.top+(i.height-l.height)/2}:s=function(){return i.top},a==="right"?u=function(){return i.right-l.width}:a==="center"?u=function(){return i.left+(i.width-l.width)/2}:u=function(){return i.left},function(){l=this.node().getBoundingClientRect();var f=u()-o.left,c=s()-o.top,v=t.gd||{};if(t.gd){v._fullLayout._calcInverseTransform(v);var d=Ui.apply3DTransform(v._fullLayout._invTransform)(f,c);f=d[0],c=d[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var I4="1px ";mi.makeTextShadow=function(e){var r=I4,t=I4,a=I4;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};mi.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=Ra.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&Ra.select(e.node().parentNode).select(f).style({opacity:0})}function l(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=Ra.select(t),f=u.select(".svg-container"),c=f.append("div"),v=e.node().style,d=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":d,color:r.fill||v.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-d/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(p).call(xR(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var y=Ra.select(this).attr("class"),m;y?m="."+y.split(" ")[0]+"-math-group":m="[class*=-math-group]",m&&Ra.select(e.node().parentNode).select(m).style({opacity:0});var b=this.textContent;Ra.select(this).transition().duration(0).remove(),Ra.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var y=this;t._editing=!0,Ra.select(document).on("mouseup",function(){if(Ra.event.target===y)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){Ra.event.which===27?(t._editing=!1,e.style({opacity:1}),Ra.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),Ra.select(this).call(xR(e,f,r)))}).on("keydown",function(){Ra.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),Ra.rebind(e,n,"on")}});var yi=z((_Xe,RR)=>{"use strict";var Y3e=Pr(),Rh=Br(),rm=ke(),Ku=qr(),V3e=Hu().isValid;function j3e(e,r,t){var a=r?rm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(rm.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Rh(n[o])){i=!0;break}}return rm.isPlainObject(a)&&(i||a.showscale===!0||Rh(a.cmin)&&Rh(a.cmax)||V3e(a.colorscale)||rm.isPlainObject(a.colorbar))}var LR=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Ph=["min","max","mid","auto"];function CR(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<LR.length;i++)o=LR[i],a[o]=t[o];if(r)for(n="c",i=0;i<Ph.length;i++)o=Ph[i],a[o]=t["c"+o];else{var l;for(i=0;i<Ph.length;i++){if(o=Ph[i],l="c"+o,l in t){a[o]=t[l];continue}l="z"+o,l in t&&(a[o]=t[l])}n=l.charAt(0)}return a._sync=function(s,u){var f=Ph.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function DR(e){for(var r=CR(e),t=r.min,a=r.max,n=r.reversescale?ER(r.colorscale):r.colorscale,i=n.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var u=n[s];o[s]=t+u[0]*(a-t),l[s]=u[1]}return{domain:o,range:l}}function ER(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 PR(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o<n;o++)i[o]=Ku.rgbaArray(a[o]);var l=Y3e.scale.linear().domain(t).range(i).clamp(!0),s=r.noNumericCheck,u=r.returnArray,f;return s&&u?f=l:s?f=function(c){return Ku.rgbaArrayToString(l(c))}:u?f=function(c){return Rh(c)?l(c):Ku.isValid(c)?c:Ku.defaultLine}:f=function(c){return Rh(c)?Ku.rgbaArrayToString(l(c)):Ku.isValid(c)?c:Ku.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function W3e(e,r){return PR(DR(e),r)}RR.exports={hasColorscale:j3e,extractOpts:CR,extractScale:DR,flipScale:ER,makeColorScaleFunc:PR,makeColorScaleFuncFromTrace:W3e}});var Eo=z((wXe,NR)=>{"use strict";var FR=(a4(),ze(t4)),X3e=FR.FORMAT_LINK,Z3e=FR.DATE_FORMAT_LINK;function $3e(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?H4:zR)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function H4(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: "+X3e+"."].join(" ")}function zR(e,r){return H4(e,r)+[" And for dates see: "+Z3e+".","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(" ")}NR.exports={axisHoverFormat:$3e,descriptionOnlyNumbers:H4,descriptionWithDates:zR}});var Gi=z((TXe,eF)=>{"use strict";var IR=Ca(),Jc=Ii(),QR=Bi().dash,G4=Mt().extendFlat,BR=Ct().templatedArray,AXe=di().templateFormatStringDescription,OR=Eo().descriptionWithDates,J3e=(jt(),ze(Zt)).ONEDAY,il=(Pa(),ze(Ea)),K3e=il.HOUR_PATTERN,Q3e=il.WEEKDAY_PATTERN,U4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ebe=G4({},U4,{values:U4.values.slice().concat(["sync"])});function HR(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var UR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},GR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},YR={valType:"data_array",editType:"ticks"},VR={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function WR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var XR={valType:"color",dflt:Jc.defaultLine,editType:"ticks"},ZR={valType:"color",dflt:Jc.lightLine,editType:"ticks"};function $R(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var JR=G4({},QR,{editType:"ticks"}),KR={valType:"boolean",editType:"ticks"};eF.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Jc.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:IR({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:[il.idRegex.x.toString(),il.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:[il.idRegex.x.toString(),il.idRegex.y.toString()],editType:"calc"},rangebreaks:BR("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:[Q3e,K3e,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:J3e},editType:"calc"}),tickmode:ebe,nticks:HR(),tick0:UR,dtick:GR,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:YR,ticktext:{valType:"data_array",editType:"ticks"},ticks:VR,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:jR(),tickwidth:WR(),tickcolor:XR,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:G4({},QR,{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:IR({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:OR("tick label")},tickformatstops:BR("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:OR("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Jc.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:KR,gridcolor:ZR,gridwidth:$R(),griddash:JR,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Jc.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:Jc.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",il.idRegex.x.toString(),il.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",il.idRegex.x.toString(),il.idRegex.y.toString()],editType:"plot"},minor:{tickmode:U4,nticks:HR("minor"),tick0:UR,dtick:GR,tickvals:YR,ticks:VR,ticklen:jR("minor"),tickwidth:WR("minor"),tickcolor:XR,gridcolor:ZR,gridwidth:$R("minor"),griddash:JR,showgrid:KR,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var tm=z((MXe,tF)=>{"use strict";var Ht=Gi(),rF=Ca(),Y4=Mt().extendFlat,rbe=qo().overrideAll;tF.exports=rbe({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:Ht.linecolor,outlinewidth:Ht.linewidth,bordercolor:Ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ht.minor.tickmode,nticks:Ht.nticks,tick0:Ht.tick0,dtick:Y4({},Ht.dtick,{}),tickvals:Ht.tickvals,ticktext:Ht.ticktext,ticks:Y4({},Ht.ticks,{dflt:""}),ticklabeloverflow:Y4({},Ht.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:Ht.ticklen,tickwidth:Ht.tickwidth,tickcolor:Ht.tickcolor,ticklabelstep:Ht.ticklabelstep,showticklabels:Ht.showticklabels,labelalias:Ht.labelalias,tickfont:rF({description:"Sets the color bar's tick label font"}),tickangle:Ht.tickangle,tickformat:Ht.tickformat,tickformatstops:Ht.tickformatstops,tickprefix:Ht.tickprefix,showtickprefix:Ht.showtickprefix,ticksuffix:Ht.ticksuffix,showticksuffix:Ht.showticksuffix,separatethousands:Ht.separatethousands,exponentformat:Ht.exponentformat,minexponent:Ht.minexponent,showexponent:Ht.showexponent,title:{text:{valType:"string"},font:rF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ol=z((SXe,nF)=>{"use strict";var tbe=tm(),abe=(Fc(),ze(_h)).counter,nbe=(v4(),ze(c4)).default,aF=Hu().scales,kXe=nbe(aF);function am(e){return"`"+e+"`"}nF.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?aF[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 "+am(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=am(u+d),A=am(u+p),w=am(u+y),x=A+" and "+w,_={};_[p]=_[y]=void 0;var k={};k[d]=!1;var T={};return f==="color"&&(T.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(T.color.anim=!0)),T[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_},T[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},T[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},T[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:_},T.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},T.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},T.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(T.showscale={valType:"boolean",dflt:o,editType:"calc"},T.colorbar=tbe),t.noColorAxis||(T.coloraxis={valType:"subplotid",regex:abe("coloraxis"),dflt:null,editType:"calc"}),T}});var j4=z((qXe,iF)=>{"use strict";var ibe=Mt().extendFlat,obe=ol(),V4=Hu().scales;iF.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:V4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:V4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:V4.RdBu,editType:"calc"}},coloraxis:ibe({_isSubplotObj:!0,editType:"calc"},obe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var W4=z((LXe,oF)=>{"use strict";var lbe=ke();oF.exports=function(r){return lbe.isPlainObject(r.colorbar)}});var $4=z(Z4=>{"use strict";var X4=Br(),lF=ke(),sF=(jt(),ze(Zt)),sbe=sF.ONEDAY,ube=sF.ONEWEEK;Z4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?sbe:1;if(!e)return i;if(X4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=X4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};Z4.tick0=function(e,r,t,a){if(r==="date")return lF.cleanDate(e,lF.dateTick0(t,a%ube===0?1:0));if(!(a==="D1"||a==="D2"))return X4(e)?Number(e):0}});var nm=z((DXe,fF)=>{"use strict";var uF=$4(),fbe=ke().isArrayOrTypedArray,cbe=Zn().isTypedArraySpec,vbe=Zn().decodeTypedArraySpec;fF.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(x){var _=l[x];return cbe(_)&&(_=vbe(_)),_!==void 0?_:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),y=n==="category"||n==="multicategory",m;fbe(d)?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 A=s.dtick=uF.dtick(v,n);s.tick0=uF.tick0(c,n,t.calendar,A)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":o||a("ticktext")}}});var im=z((EXe,vF)=>{"use strict";var J4=ke(),cF=Gi();vF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?cF.minor:cF,u=i?"minor.":"",f=J4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=J4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=J4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var K4=z((PXe,hF)=>{"use strict";hF.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 Po=z((RXe,dF)=>{"use strict";var om=ke(),hbe=Ct();dF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=om.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=hbe.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var v=l[f];om.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 d=u.defaultItems();for(f=0;f<d.length;f++)c=d[f],c._index=s.length,a.handleItemDefaults({},c,t,a,{}),s.push(c);if(om.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)om.relinkPrivateKeys(s[f],o[f])}return s}});var lm=z((FXe,mF)=>{"use strict";var Q4=ke(),dbe=qr().contrast,pF=Gi(),pbe=K4(),mbe=Po();mF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");Q4.isPlainObject(o)||delete t.labelalias;var l=pbe(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?dbe(i.bgColor):f&&f!==pF.color.dflt?f:u.color;if(Q4.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");mbe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ybe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function ybe(e,r){function t(n,i){return Q4.coerce(e,r,pF.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var sm=z((zXe,yF)=>{"use strict";var gbe=K4();yF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=gbe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var e6=z((NXe,gF)=>{"use strict";var Ps=ke(),bbe=Ct(),xbe=nm(),_be=im(),wbe=lm(),Abe=sm(),Tbe=tm();gF.exports=function(r,t,a){var n=bbe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ps.coerce(i,n,Tbe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),y=o("xref"),m=p==="paper",b=y==="paper",A,w,x,_="left";c?(x="middle",_=b?"left":"right",A=b?1.02:1,w=.5):(x=m?"bottom":"top",_="center",A=.5,w=m?1.02:1),Ps.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:A}},"x"),Ps.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),o("xanchor",_),o("xpad"),o("yanchor",x),o("ypad"),Ps.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ps.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),xbe(i,n,o,"linear");var T=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:T};k.indexOf("inside")!==-1&&(q.bgColor="black"),Abe(i,n,o,"linear",q),wbe(i,n,o,"linear",q),_be(i,n,o,"linear",q),o("title.text",a._dfltTitle.colorbar);var C=n.showticklabels?n.tickfont:T,E=Ps.extendFlat({},T,{family:C.family,size:Ps.bigFont(C.size)});Ps.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var jl=z((IXe,_F)=>{"use strict";var bF=Br(),t6=ke(),Mbe=W4(),kbe=e6(),xF=Hu().isValid,Sbe=Tr().traceIs;function r6(e,r){var t=r.slice(0,r.length-1);return r?t6.nestedProperty(e,t).get()||{}:e}_F.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=r6(r,o),f=r6(t,o),c=r6(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=Sbe(t,"contour")&&t6.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,t6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var b=u[l+"min"],A=u[l+"max"],w=bF(b)&&bF(A)&&b<A,x=n(o+l+"auto",!w);x?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var _=u.colorscale,k=c.colorscale,T;if(_!==void 0&&(T=!xF(_)),k!==void 0&&(T=!xF(k)),n(o+"autocolorscale",T),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var q;o&&s&&(q=Mbe(u));var C=n(o+"showscale",q);C&&(o&&c&&(f._template=c),kbe(u,f,a))}}});var MF=z((BXe,TF)=>{"use strict";var wF=ke(),qbe=Ct(),AF=j4(),Lbe=jl();TF.exports=function(r,t){function a(c,v){return wF.coerce(r,t,AF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return wF.coerce(i,o,AF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=qbe.newContainer(t,s,"coloraxis"),o._name=s,Lbe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<u[2].length;f++)u[2][f]();delete t._colorAxes[s]}}}});var SF=z((OXe,kF)=>{"use strict";var Cbe=ke(),Dbe=yi().hasColorscale,Ebe=yi().extractOpts;kF.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?Cbe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Ebe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i<r.length;i++){var o=r[i],l=o._module.colorbar;if(l)if(Array.isArray(l))for(var s=0;s<l.length;s++)n(o,l[s]);else n(o,l);Dbe(o,"marker.line")&&n(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)n(t[u],{min:"cmin",max:"cmax"})}});var Kc=z((HXe,LF)=>{"use strict";var qF=Br(),a6=ke(),Pbe=yi().extractOpts;LF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?a6.nestedProperty(t,o).get():t,s=Pbe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return a6.aggNums(Math.min,null,i)},p=function(){return a6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&qF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&qF(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 ll=z((UXe,CF)=>{"use strict";var um=Hu(),Qc=yi();CF.exports={moduleType:"component",name:"colorscale",attributes:ol(),layoutAttributes:j4(),supplyLayoutDefaults:MF(),handleDefaults:jl(),crossTraceDefaults:SF(),calc:Kc(),scales:um.scales,defaultScale:um.defaultScale,getScale:um.get,isValidScale:um.isValid,hasColorscale:Qc.hasColorscale,extractOpts:Qc.extractOpts,extractScale:Qc.extractScale,flipScale:Qc.flipScale,makeColorScaleFunc:Qc.makeColorScaleFunc,makeColorScaleFuncFromTrace:Qc.makeColorScaleFuncFromTrace}});var ri=z((GXe,EF)=>{"use strict";var DF=ke(),Rbe=Zn().isTypedArraySpec;EF.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 DF.isPlainObject(r)&&(DF.isArrayOrTypedArray(r.size)||Rbe(r.size))}}});var RF=z((YXe,PF)=>{"use strict";var Fbe=Br();PF.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Fbe(s)&&s>0?Math.max(s,i):0}}});var Ro=z(ln=>{"use strict";var Fh=ke();ln.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ln.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(ln.getSubplot(e))!==-1};ln.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};ln.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};ln.c2dApply=function(e,r){e.length!==r.length&&Fh.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};ln.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||ln.quadrature(r,t):e.charAt(0)==="x"?r:t};ln.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};ln.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};ln.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};ln.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)),ln.appendArrayPointValue(n,r,a),n};ln.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=FF(i);if(e[o]===void 0){var l=Fh.nestedProperty(r,i).get(),s=zF(l,t);s!==void 0&&(e[o]=s)}}};ln.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=FF(i);if(e[o]===void 0){for(var l=Fh.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=zF(l,t[u]);e[o]=s}}};var zbe={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function FF(e){return zbe[e]||e}function zF(e,r){if(Array.isArray(r)){if(Fh.isArrayOrTypedArray(e)&&Fh.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Nbe={x:!0,y:!0},Ibe={"x unified":!0,"y unified":!0};ln.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Ibe[e]};ln.isXYhover=function(e){return typeof e!="string"?!1:!!Nbe[e]}});var i6=z((jXe,NF)=>{var n6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Bbe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Obe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Hbe(e){let r=[];return e.replace(Bbe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Ube(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===n6[i])return r.push([o,...l]),"";if(l.length<n6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,n6[i])])}}),r}function Ube(e){let r=e.match(Obe);return r?r.map(Number):[]}NF.exports=Hbe});var YF=z((WXe,GF)=>{"use strict";var Gbe=i6(),Qe=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Rr="M0,0Z",IF=Math.sqrt(2),Rs=Math.sqrt(3),o6=Math.PI,l6=Math.cos,s6=Math.sin;GF.exports={circle:{n:0,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(e*.4,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*.8/IF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return zr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*.951,2),n=Qe(e*.588,2),i=Qe(-e,2),o=Qe(e*-.309,2),l=Qe(e*.809,2);return zr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e/2,2),i=Qe(e*Rs/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(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e/2,2),i=Qe(e*Rs/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(Fr(r))return Rr;var a=Qe(e*.924,2),n=Qe(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(Fr(r))return Rr;var a=e*1.4,n=Qe(a*.225,2),i=Qe(a*.951,2),o=Qe(a*.363,2),l=Qe(a*.588,2),s=Qe(-a,2),u=Qe(a*-.309,2),f=Qe(a*.118,2),c=Qe(a*.809,2),v=Qe(a*.382,2);return zr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.66,2),n=Qe(e*.38,2),i=Qe(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(Fr(r))return Rr;var a=Qe(e*Rs*.8,2),n=Qe(e*.8,2),i=Qe(e*1.6,2),o=Qe(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*Rs*.8,2),n=Qe(e*.8,2),i=Qe(e*1.6,2),o=Qe(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.1,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*1.4,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*.7,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*1.4,2),n=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e/IF,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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(e*1.3,2),n=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e/2,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(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(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(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(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(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(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(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(Fr(r))return Rr;var a=Qe(e,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(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(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(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(Fr(r))return Rr;var a=o6/2.5,n=2*e*l6(a),i=2*e*s6(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(Fr(r))return Rr;var a=o6/4,n=2*e*l6(a),i=2*e*s6(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 Fr(e){return e===null}var BF,OF,HF,UF;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(HF===e&&UF===r&&BF===t)return OF;HF=e,UF=r,BF=t;function a(m,b){var A=l6(m),w=s6(m),x=b[0],_=b[1]+(r||0);return[x*A-_*w,x*w+_*A]}for(var n=e/180*o6,i=0,o=0,l=Gbe(t),s="",u=0;u<l.length;u++){var f=l[u],c=f[0],v=i,d=o;if(c==="M"||c==="L")i=+f[1],o=+f[2];else if(c==="m"||c==="l")i+=+f[1],o+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")o=+f[1];else if(c==="v")o+=+f[1];else if(c==="A"){i=+f[1],o=+f[2];var 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,o-=d);var y=a(n,[i,o]);(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 OF=s,s}});var Jr=z((XXe,fz)=>{"use strict";var Oa=Pr(),xt=ke(),Ybe=xt.numberFormat,Fs=Br(),cm=Tr(),za=qr(),Vbe=ll(),Nh=xt.strTranslate,vm=Fa(),jbe=(Vl(),ze(Yl)),Wbe=(on(),ze(nn)),Xbe=Wbe.LINE_SPACING,ez=(_p(),ze(xp)).DESELECTDIM,Zbe=ri(),$be=RF(),Jbe=Ro().appendArrayPointValue,rr={};fz.exports=rr;rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(za.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",u6(Qbe(f))),s&&e.style("text-shadow",s==="auto"?vm.makeTextShadow(za.contrast(i)):u6(s)),u&&e.style("text-decoration-line",u6(exe(u)))};function u6(e){return e==="none"?void 0:e}var Kbe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Qbe(e){return Kbe[e]}function exe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Fs(n)&&Fs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Nh(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=Oa.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=cm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,Oa.select(this),t,a,o,l)})})}};rr.crispRound=function(e,r,t){return!r||!Fs(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";za.stroke(r,a||i.color),rr.dashLine(r,l,o)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Oa.select(this).call(za.stroke,t||i.color).call(rr.dashLine,l,o)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.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 rz(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=rr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,l,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(nz,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(za.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=Oa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};rz(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Oa.select(this);a[0].trace&&rz(n,a[0].trace,r,t)})};var VF=YF();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(VF).forEach(function(e){var r=VF[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var rxe=rr.symbolNames.length,txe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(Fs(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=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=rxe||e>=400?0:Math.floor(Math.max(e,0))};function tz(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?txe:"")}var jF=Ybe("~f"),az={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}};rr.gradient=function(e,r,t,a,n,i){var o=az[a];return nz(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function nz(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d<f;d++)c.reversed?v[f-1-d]=[jF((1-n[d][0])*100),n[d][1]]:v[d]=[jF(n[d][0]*100),n[d][1]];var p=r._fullLayout,y="g"+p._uid+"-"+t,m=p._defs.select(".gradients").selectAll("#"+y).data([a+v.join(";")],xt.identity);m.exit().remove(),m.enter().append(c.node).each(function(){var b=Oa.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",y);var A=b.selectAll("stop").data(v);A.exit().remove(),A.enter().append("stop"),A.each(function(w){Oa.select(this).attr({offset:w[0]+"%","stop-color":za.rgb(w[1]),"stop-opacity":za.parse(w[1]).alpha})})}),e.style(i,d6(y,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}rr.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var v=r==="legend";l&&(s==="overlay"?(u=l,f=za.contrast(u)):(u=void 0,f=l));var d=t._fullLayout,p="p"+d._uid+"-"+a,y,m,b=function(R,N,I,O,U){return O+(U-O)*(R-N)/(I-N)},A,w,x,_,k={},T=za.rgb(f),q=za.parse(f).alpha,C=c*q;switch(n){case"/":y=i*Math.sqrt(2),m=i*Math.sqrt(2),A="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=o*i,_="path",k={d:A,opacity:C,stroke:T,"stroke-width":w+"px"};break;case"\\":y=i*Math.sqrt(2),m=i*Math.sqrt(2),A="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=o*i,_="path",k={d:A,opacity:C,stroke:T,"stroke-width":w+"px"};break;case"x":y=i*Math.sqrt(2),m=i*Math.sqrt(2),A="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-o),_="path",k={d:A,opacity:C,stroke:T,"stroke-width":w+"px"};break;case"|":y=i,m=i,_="path",A="M"+y/2+",0L"+y/2+","+m,w=o*i,_="path",k={d:A,opacity:C,stroke:T,"stroke-width":w+"px"};break;case"-":y=i,m=i,_="path",A="M0,"+m/2+"L"+y+","+m/2,w=o*i,_="path",k={d:A,opacity:C,stroke:T,"stroke-width":w+"px"};break;case"+":y=i,m=i,_="path",A="M"+y/2+",0L"+y/2+","+m+"M0,"+m/2+"L"+y+","+m/2,w=i-i*Math.sqrt(1-o),_="path",k={d:A,opacity:C,stroke:T,"stroke-width":w+"px"};break;case".":y=i,m=i,o<Math.PI/4?x=Math.sqrt(o*i*i/Math.PI):x=b(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),_="circle",k={cx:y/2,cy:m/2,r:x,opacity:C,fill:T};break;default:y=i,m=i,_="path",k={d:n,opacity:C,fill:T};break}var E=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),P=d._defs.select(".patterns").selectAll("#"+p).data([E],xt.identity);P.exit().remove(),P.enter().append("pattern").each(function(){var R=Oa.select(this);if(R.attr({id:p,width:y+"px",height:m+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var N=za.rgb(u),I=za.parse(u).alpha,O=R.selectAll("rect").data([0]);O.exit().remove(),O.enter().append("rect").attr({width:y+"px",height:m+"px",fill:N,"fill-opacity":I})}var U=R.selectAll(_).data([0]);U.exit().remove(),U.enter().append(_).attr(k)}),e.style("fill",d6(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};rr.initGradients=function(e){var r=e._fullLayout,t=xt.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Oa.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};rr.initPatterns=function(e){var r=e._fullLayout,t=xt.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Oa.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};rr.getPatternAttr=function(e,r,t){return e&&xt.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};rr.pointStyle=function(e,r,t,a){if(e.size()){var n=rr.makePointStyleFns(r);e.each(function(i){rr.singlePointStyle(i,Oa.select(this),r,n,t,a)})}};rr.singlePointStyle=function(e,r,t,a,n,i){var o=t.marker,l=o.line;if(i&&i.i>=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=rr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=m6(e,t),c=p6(e,t);r.attr("d",tz(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).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):xt.isArrayOrTypedArray(l.color)?p=za.defaultLine:p=l.color,xt.isArrayOrTypedArray(o.color)&&(d=za.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&rr.dashLine(r,b,y),e.om)r.call(za.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var A=o.gradient,w=e.mgt;w?v=!0:w=A&&A.type,xt.isArrayOrTypedArray(w)&&(w=w[0],az[w]||(w=0));var x=o.pattern,_=rr.getPatternAttr,k=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(w&&w!=="none"){var T=e.mgc;T?v=!0:T=A.color;var q=t.uid;v&&(q+="-"+e.i),rr.gradient(r,n,q,w,[[0,T],[1,d]],"fill")}else if(k){var C=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,C=!0);var P=_(E,e.i,i&&i.color||null),R=_(x.bgcolor,e.i,null),N=x.fgopacity,I=_(x.size,e.i,8),O=_(x.solidity,e.i,.3);C=C||e.mcc||xt.isArrayOrTypedArray(x.shape)||xt.isArrayOrTypedArray(x.path)||xt.isArrayOrTypedArray(x.bgcolor)||xt.isArrayOrTypedArray(x.fgcolor)||xt.isArrayOrTypedArray(x.size)||xt.isArrayOrTypedArray(x.solidity);var U=t.uid;C&&(U+="-"+e.i),rr.pattern(r,"point",n,U,k,I,O,e.mcc,x.fillmode,R,P,N)}else xt.isArrayOrTypedArray(d)?za.fill(r,d[e.i]):za.fill(r,d);y&&za.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),cm.traceIs(e,"symbols")&&(r.ms2mrc=Zbe.isBubble(e)?$be(e):function(){return(t.size||6)/2}),e.selectedpoints&&xt.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(xt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var _=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:_:c?u:ez*_});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var _=x.mcc||v;return x.selected?d||_:p||_});var y=n.size,m=i.size,b=o.size,A=m!==void 0,w=b!==void 0;return cm.traceIs(e,"symbols")&&(A||w)&&(r.selectedSizeFn=function(x){var _=x.mrc||y/2;return x.selected?A?m/2:_:w?b/2:_}),r};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:za.addOpacity(c,ez))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){za.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",tz(rr.symbolNumber(l),s,m6(o,r),p6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Oa.select(this),l=0;l<n.length;l++)n[l](o,i)})}};rr.tryColorscale=function(e,r){var t=r?xt.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&xt.isArrayOrTypedArray(a))return Vbe.makeColorScaleFuncFromTrace(t)}return xt.identity};var f6={start:1,end:-1,middle:0,bottom:1,top:-1};function iz(e,r,t,a,n){var i=Oa.select(e.node().parentNode),o=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",l=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",s=a?a/.8+1:0,u=(vm.lineCount(e)-1)*Xbe+1,f=f6[l]*s,c=t*.75+f6[o]*s+(f6[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Nh(f,c))}function oz(e,r){var t=e.ts||r.textfont.size;return Fs(t)&&t>0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Oa.select(this),u=i?xt.extractOption(l,r,"txt","texttemplate"):xt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};Jbe(v,r,l.i),u=xt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=oz(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(rr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(vm.convertToTspans,t).call(iz,d,p,l.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Oa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=oz(a,r);za.fill(n,i);var s=cm.traceIs(r,"bar-like");iz(n,o,l,a.mrc2||a.mrc,s)})}};var WF=.5;rr.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(fm(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};rr.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[fm(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(fm(e[i-1],e[i],e[i+1],r));for(n.push(fm(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 lz,sz;function e0(e,r,t){return t&&(e=uz(e)),r?rf(e[1]):ef(e[0])}function ef(e){var r=Oa.round(e,2);return lz=r,r}function rf(e){var r=Oa.round(e,2);return sz=r,r}function fm(e,r,t,a){var n=e[0]-r[0],i=e[1]-r[1],o=t[0]-r[0],l=t[1]-r[1],s=Math.pow(n*n+i*i,WF/2),u=Math.pow(o*o+l*l,WF/2),f=(u*u*n-s*s*o)*a,c=(u*u*i-s*s*l)*a,v=3*u*(s+u),d=3*s*(s+u);return[[ef(r[0]+(v&&f/v)),rf(r[1]+(v&&c/v))],[ef(r[0]-(d&&f/d)),rf(r[1]-(d&&c/d))]]}var axe={hv:function(e,r,t){return"H"+ef(r[0])+"V"+e0(r,1,t)},vh:function(e,r,t){return"V"+rf(r[1])+"H"+e0(r,0,t)},hvh:function(e,r,t){return"H"+ef((e[0]+r[0])/2)+"V"+rf(r[1])+"H"+e0(r,0,t)},vhv:function(e,r,t){return"V"+rf((e[1]+r[1])/2)+"H"+ef(r[0])+"V"+e0(r,1,t)}},nxe=function(e,r,t){return"L"+e0(r,0,t)+","+e0(r,1,t)};rr.steps=function(e){var r=axe[e]||nxe;return function(t){for(var a="M"+ef(t[0][0])+","+rf(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function uz(e,r){var t=e.backoff,a=e.trace,n=e.d,i=e.i;if(t&&a&&a.marker&&a.marker.angle%360===0&&a.line&&a.line.shape!=="spline"){var o=xt.isArrayOrTypedArray(t),l=e,s=r?r[0]:lz||0,u=r?r[1]:sz||0,f=l[0],c=l[1],v=f-s,d=c-u,p=Math.atan2(d,v),y=o?t[i]:t;if(y==="auto"){var m=l.i;a.type==="scatter"&&m--;var b=l.marker,A=b.symbol;xt.isArrayOrTypedArray(A)&&(A=A[m]);var w=b.size;xt.isArrayOrTypedArray(w)&&(w=w[m]),y=b?rr.symbolBackOffs[rr.symbolNumber(A)]*w:0,y+=rr.getMarkerStandoff(n[m],a)||0}var x=f-y*Math.cos(p),_=c-y*Math.sin(p);(x<=f&&x>=s||x>=f&&x<=s)&&(_<=c&&_>=u||_>=c&&_<=u)&&(e=[x,_])}return e}rr.applyBackoff=uz;rr.makeTester=function(){var e=xt.ensureSingleById(Oa.select("body"),"svg","js-plotly-tester",function(t){t.attr(jbe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=xt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var c6=0,ixe=1e4;rr.bBox=function(e,r,t){t||(t=XF(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return xt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=XF(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=rr.savedBBoxes[t],a)return xt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Oa.select(u).attr("transform",null).call(vm.positionText,0,0);var c=u.getBoundingClientRect(),v=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={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 c6>=ixe&&(rr.savedBBoxes={},c6=0),t&&(rr.savedBBoxes[t]=d),c6++,xt.extendFlat({},d)};function XF(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",d6(r,t))};function d6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Nh(r,t),o=o.trim(),e[i]("transform",o),o};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var oxe=/\s*sc.*/;rr.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(oxe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var lxe=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Oa.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(lxe);r===1&&t===1?a=[]:a=[Nh(o,l),"scale("+r+","+t+")",Nh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function p6(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}rr.getMarkerStandoff=p6;var zh=Math.atan2,Qu=Math.cos,r0=Math.sin;function ZF(e,r){var t=r[0],a=r[1];return[t*Qu(e)-a*r0(e),t*r0(e)+a*Qu(e)]}var $F,JF,KF,QF,v6,h6;function m6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Fs(t)||xt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=zh(v[1]-n,v[0]-a),p=zh(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,A=$F/180*Math.PI,w=JF/180*Math.PI,x=A-m,_=Qu(w)*r0(x),k=r0(w)*Qu(b)-Qu(w)*r0(b)*Qu(x);y=-zh(_,k)-Math.PI,$F=u,JF=f}var T=ZF(d,[Qu(y),0]),q=ZF(p,[r0(y),0]);t=zh(T[1]+q[1],T[0]+q[0])/Math.PI*180,i==="previous"&&!(h6===r.uid&&e.i===v6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(h6===r.uid&&e.i===v6+1&&Fs(a)&&Fs(n)){var C=a-KF,E=n-QF,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(E=0),R==="v"&&(C=0),t+=zh(E,C)/Math.PI*180+90}else t=null}return KF=a,QF=n,v6=e.i,h6=r.uid,t}rr.getMarkerAngle=m6});var n0=z((ZXe,dz)=>{"use strict";var t0=Pr(),sxe=Br(),uxe=ma(),y6=Tr(),tf=ke(),cz=tf.strTranslate,hm=Jr(),dm=qr(),a0=Fa(),vz=(_p(),ze(xp)),fxe=(on(),ze(nn)).OPPOSITE_SIDE,hz=/ [XY][0-9]* /,g6=1.6,b6=1.6;function cxe(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,A=m.size,w=m.color,x=m.weight,_=m.style,k=m.variant,T=m.textcase,q=m.lineposition,C=m.shadow,E=t.subtitlePropName,P=!!E,R=t.subtitlePlaceholder,N=(n.title||{}).subtitle||{text:"",font:{}},I=(N.text||"").trim(),O=!1,U=1,Y=N.font,G=Y.family,V=Y.size,W=Y.color,j=Y.weight,J=Y.style,te=Y.variant,ae=Y.textcase,se=Y.lineposition,$=Y.shadow,fe;i==="title.text"?fe="titleText":i.indexOf("axis")!==-1?fe="axisTitleText":i.indexOf("colorbar")!==-1&&(fe="colorbarTitleText");var ie=e._context.edits[fe];function ue(Je,Xe){return Je===void 0||Xe===void 0?!1:Je.replace(hz," % ")===Xe.replace(hz," % ")}p===""?v=0:ue(p,o)&&(ie||(p=""),v=.2,y=!0),P&&(I===""?U=0:ue(I,R)&&(ie||(I=""),U=.2,O=!0)),t._meta?p=tf.templateString(p,t._meta):a._meta&&(p=tf.templateString(p,a._meta));var ce=p||I||ie,oe;c||(c=tf.ensureSingle(a._infolayer,"g","g-"+r),oe=a._hColorbarMoveTitle);var be=c.selectAll("text."+r).data(ce?[0]:[]);be.enter().append("text"),be.text(p).attr("class",r),be.exit().remove();var Re=null,ye=r+"-subtitle",Ce=I||ie;if(P&&(Re=c.selectAll("text."+ye).data(Ce?[0]:[]),Re.enter().append("text"),Re.text(I).attr("class",ye),Re.exit().remove()),!ce)return c;function Me(Je,Xe){tf.syncOrAsync([Le,De],{title:Je,subtitle:Xe})}function Le(Je){var Xe=Je.title,Se=Je.subtitle,Fe;!f&&oe&&(f={}),f?(Fe="",f.rotate&&(Fe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||oe)&&(Fe+=cz(0,(f.offset||0)-(oe||0)))):Fe=null,Xe.attr("transform",Fe);function er(me){if(me){var Te=t0.select(me.node().parentNode).select("."+ye);if(!Te.empty()){var Ue=me.node().getBBox();if(Ue.height){var $e=Ue.y+Ue.height+g6*V;Te.attr("y",$e)}}}}if(Xe.style("opacity",v*dm.opacity(w)).call(hm.font,{color:dm.rgb(w),size:t0.round(A,2),family:b,weight:x,style:_,variant:k,textcase:T,shadow:C,lineposition:q}).attr(u).call(a0.convertToTspans,e,er),Se&&!Se.empty()){var re=c.select("."+r+"-math-group"),xe=Xe.node().getBBox(),Ye=re.node()?re.node().getBBox():void 0,vr=Ye?Ye.y+Ye.height+g6*V:xe.y+xe.height+b6*V,Pe=tf.extendFlat({},u,{y:vr});Se.attr("transform",Fe),Se.style("opacity",U*dm.opacity(W)).call(hm.font,{color:dm.rgb(W),size:t0.round(V,2),family:G,weight:j,style:J,variant:te,textcase:ae,shadow:$,lineposition:se}).attr(Pe).call(a0.convertToTspans,e)}return uxe.previousPromises(e)}function De(Je){var Xe=Je.title,Se=t0.select(Xe.node().parentNode);if(s&&s.selection&&s.side&&p){Se.attr("transform",null);var Fe=fxe[s.side],er=s.side==="left"||s.side==="top"?-1:1,re=sxe(s.pad)?s.pad:2,xe=hm.bBox(Se.node()),Ye={t:0,b:0,l:0,r:0},vr=e._fullLayout._reservedMargin;for(var Pe in vr)for(var me in vr[Pe]){var Te=vr[Pe][me];Ye[me]=Math.max(Ye[me],Te)}var Ue={left:Ye.l,top:Ye.t,right:a.width-Ye.r,bottom:a.height-Ye.b},$e=s.maxShift||er*(Ue[s.side]-xe[s.side]),Oe=0;if($e<0)Oe=$e;else{var We=s.offsetLeft||0,ar=s.offsetTop||0;xe.left-=We,xe.right-=We,xe.top-=ar,xe.bottom-=ar,s.selection.each(function(){var sr=hm.bBox(this);tf.bBoxIntersect(xe,sr,re)&&(Oe=Math.max(Oe,er*(sr[s.side]-xe[Fe])+re))}),Oe=Math.min($e,Oe),n._titleScoot=Math.abs(Oe)}if(Oe>0||$e<0){var or={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[s.side];Se.attr("transform",cz(or[0],or[1]))}}}be.call(Me,Re);function Ie(Je,Xe){Je.text(Xe).on("mouseover.opacity",function(){t0.select(this).transition().duration(vz.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){t0.select(this).transition().duration(vz.HIDE_PLACEHOLDER).style("opacity",0)})}if(ie&&(p?be.on(".opacity",null):(Ie(be,o),y=!0),be.call(a0.makeEditable,{gd:e}).on("edit",function(Je){l!==void 0?y6.call("_guiRestyle",e,i,Je,l):y6.call("_guiRelayout",e,i,Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(a0.positionText,u.x,u.y)}),P)){if(P&&!p){var qe=be.node().getBBox(),Ze=qe.y+qe.height+b6*V;Re.attr("y",Ze)}I?Re.on(".opacity",null):(Ie(Re,R),O=!0),Re.call(a0.makeEditable,{gd:e}).on("edit",function(Je){y6.call("_guiRelayout",e,"title.subtitle.text",Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(a0.positionText,Re.attr("x"),Re.attr("y"))})}return be.classed("js-placeholder",y),Re&&!Re.empty()&&Re.classed("js-placeholder",O),c}dz.exports={draw:cxe,SUBTITLE_PADDING_EM:b6,SUBTITLE_PADDING_MATHJAX_EM:g6}});var i0=z(($Xe,bz)=>{"use strict";var vxe=Pr(),hxe=_c().utcFormat,Dt=ke(),dxe=Dt.numberFormat,sl=Br(),zs=Dt.cleanNumber,pxe=Dt.ms2DateTime,pz=Dt.dateTime2ms,ul=Dt.ensureNumber,mz=Dt.isArrayOrTypedArray,Ns=(jt(),ze(Zt)),pm=Ns.FP_SAFE,Fo=Ns.BADNUM,mxe=Ns.LOG_CLIP,yxe=Ns.ONEWEEK,mm=Ns.ONEDAY,ym=Ns.ONEHOUR,yz=Ns.ONEMIN,gz=Ns.ONESEC,gm=Aa(),_m=(Pa(),ze(Ea)),bm=_m.HOUR_PATTERN,xm=_m.WEEKDAY_PATTERN;function Ih(e){return Math.pow(10,e)}function x6(e){return e!=null}bz.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,_){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&_&&r.range&&r.range.length===2){var k=r.range[0],T=r.range[1];return .5*(k+T-2*mxe*Math.abs(k-T))}else return Fo}function o(x,_,k,T){if((T||{}).msUTC&&sl(x))return+x;var q=pz(x,k||r.calendar);if(q===Fo)if(sl(x)){x=+x;var C=Math.floor(Dt.mod(x+.05,1)*10),E=Math.round(x-C/10);q=pz(new Date(E))+C/10}else return Fo;return q}function l(x,_,k){return pxe(x,_,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(x6(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 _=r._categories.length-1;return r._categoriesMap[x]=_,_}return Fo}function f(x,_){for(var k=new Array(_),T=0;T<_;T++){var q=(x[0]||[])[T],C=(x[1]||[])[T];k[T]=c([q,C])}return k}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function v(x){var _=c(x);if(_!==void 0)return _;if(sl(x))return+x}function d(x){return sl(x)?+x:c(x)}function p(x,_,k){return vxe.round(k+_*x,2)}function y(x,_,k){return(x-k)/_}var m=function(_){return sl(_)?p(_,r._m,r._b):Fo},b=function(x){return y(x,r._m,r._b)};if(r.rangebreaks){var A=n==="y";m=function(x){if(!sl(x))return Fo;var _=r._rangebreaks.length;if(!_)return p(x,r._m,r._b);var k=A;r.range[0]>r.range[1]&&(k=!k);for(var T=k?-1:1,q=T*x,C=0,E=0;E<_;E++){var P=T*r._rangebreaks[E].min,R=T*r._rangebreaks[E].max;if(q<P)break;if(q>R)C=E+1;else{C=q<(P+R)/2?E:E+1;break}}var N=r._B[C]||0;return isFinite(N)?p(x,r._m2,N):0},b=function(x){var _=r._rangebreaks.length;if(!_)return y(x,r._m,r._b);for(var k=0,T=0;T<_&&!(x<r._rangebreaks[T].pmin);T++)x>r._rangebreaks[T].pmax&&(k=T+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ul,r.l2c=r.type==="log"?Ih:ul,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,_){return m(i(x,_))}:m,r.p2c=r.type==="log"?function(x){return Ih(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=zs,r.c2d=r.c2r=r.l2d=r.l2r=ul,r.d2p=r.r2p=function(x){return r.l2p(zs(x))},r.p2d=r.p2r=b,r.cleanPos=ul):r.type==="log"?(r.d2r=r.d2l=function(x,_){return i(zs(x),_)},r.r2d=r.r2c=function(x){return Ih(zs(x))},r.d2c=r.r2l=zs,r.c2d=r.l2r=ul,r.c2r=i,r.l2d=Ih,r.d2p=function(x,_){return r.l2p(r.d2r(x,_))},r.p2d=function(x){return Ih(b(x))},r.r2p=function(x){return r.l2p(zs(x))},r.p2r=b,r.cleanPos=ul):r.type==="date"?(r.d2r=r.r2d=Dt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,_,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,_,k){return l(b(x),_,k)},r.cleanPos=function(x){return Dt.cleanDate(x,Fo,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 _=d(x);return _!==void 0?_:r.fraction2r(.5)},r.l2r=r.c2r=ul,r.r2l=d,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:ul(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=v(x);return _!==void 0?_:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=ul,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:ul(x)},r.setupMultiCategory=function(x){var _=r._traceIndices,k,T,q=r._matchGroup;if(q&&r._categories.length===0){for(var C in q)if(C!==a){var E=t[gm.id2name(C)];_=_.concat(E._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var N=x[_[k]];if(n in N){var I=N[n],O=N._length||Dt.minRowLength(I);if(mz(I[0])&&mz(I[1]))for(T=0;T<O;T++){var U=I[0][T],Y=I[1][T];x6(U)&&x6(Y)&&(R.push([U,Y]),U in P[0][1]||(P[0][1][U]=P[0][0]++),Y in P[1][1]||(P[1][1][Y]=P[1][0]++))}}}for(R.sort(function(G,V){var W=P[0][1],j=W[G[0]]-W[V[0]];if(j)return j;var J=P[1][1];return J[G[1]]-J[V[1]]}),k=0;k<R.length;k++)u(R[k])}),r.fraction2r=function(x){var _=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return r.l2r(_+x*(k-_))},r.r2fraction=function(x){var _=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return(r.r2l(x)-_)/(k-_)},r.limitRange=function(x){var _=r.minallowed,k=r.maxallowed;if(!(_===void 0&&k===void 0)){x||(x="range");var T=Dt.nestedProperty(r,x).get(),q=Dt.simpleMap(T,r.r2l),C=q[1]<q[0];C&&q.reverse();var E=Dt.simpleMap([_,k],r.r2l);if(_!==void 0&&q[0]<E[0]&&(T[C?1:0]=_,q[0]=E[0]),k!==void 0&&q[1]>E[1]&&(T[C?0:1]=k,q[1]=E[1]),q[0]>=q[1])if(_!==void 0){var P=E[0]+1;k!==void 0&&(P=Math.min(P,E[1])),T[C?0:1]=r.l2r(P)}else k!==void 0&&(T[C?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,_){r._cleanRange(x,_),r.limitRange(x)},r._cleanRange=function(x,_){_||(_={}),x||(x="range");var k=Dt.nestedProperty(r,x).get(),T,q;if(r.type==="date"?q=Dt.dfltRange(r.calendar):n==="y"?q=_m.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=_.dfltRange||_m.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){Dt.nestedProperty(r,x).set(q);return}var C=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Dt.cleanDate(k[0],Fo,r.calendar),k[1]=Dt.cleanDate(k[1],Fo,r.calendar)),T=0;T<2;T++)if(r.type==="date"){if(!Dt.isDateTime(k[T],r.calendar)){r[x]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Dt.constrain(r.r2l(k[0]),Dt.MIN_MS+1e3,Dt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!sl(k[T]))if(!(C||E)&&sl(k[1-T]))k[T]=k[1-T]*(T?10:.1);else{r[x]=q;break}if(k[T]<-pm?k[T]=-pm:k[T]>pm&&(k[T]=pm),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(x){var _=t._size;if(r.overlaying){var k=gm.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var T=x&&r._r?"_r":"range",q=r.calendar;r.cleanRange(T);var C=r.r2l(r[T][0],q),E=r.r2l(r[T][1],q),P=n==="y";if(P?(r._offset=_.t+(1-r.domain[1])*_.h,r._length=_.h*(r.domain[1]-r.domain[0]),r._m=r._length/(C-E),r._b=-r._m*E):(r._offset=_.l+r.domain[0]*_.w,r._length=_.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,N;if(r._rangebreaks=r.locateBreaks(Math.min(C,E),Math.max(C,E)),r._rangebreaks.length){for(R=0;R<r._rangebreaks.length;R++)N=r._rangebreaks[R],r._lBreaks+=Math.abs(N.max-N.min);var I=P;C>E&&(I=!I),I&&r._rangebreaks.reverse();var O=I?-1:1;for(r._m2=O*r._length/(Math.abs(E-C)-r._lBreaks),r._B.push(-r._m2*(P?E:C)),R=0;R<r._rangebreaks.length;R++)N=r._rangebreaks[R],r._B.push(r._B[r._B.length-1]-O*r._m2*(N.max-N.min));for(R=0;R<r._rangebreaks.length;R++)N=r._rangebreaks[R],N.pmin=m(N.min),N.pmax=m(N.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 _=r.rangebreaks||[],k,T,q,C,E;_._cachedPatterns||(_._cachedPatterns=_.map(function(W){return W.enabled&&W.bounds?Dt.simpleMap(W.bounds,W.pattern?zs:r.d2c):null})),_._cachedValues||(_._cachedValues=_.map(function(W){return W.enabled&&W.values?Dt.simpleMap(W.values,r.d2c).sort(Dt.sorterAsc):null}));for(var P=0;P<_.length;P++){var R=_[P];if(R.enabled){if(R.bounds){var N=R.pattern;switch(k=_._cachedPatterns[P],T=k[0],q=k[1],N){case xm:E=new Date(x),C=E.getUTCDay(),T>q&&(q+=7,C<T&&(C+=7));break;case bm:E=new Date(x);var I=E.getUTCHours(),O=E.getUTCMinutes(),U=E.getUTCSeconds(),Y=E.getUTCMilliseconds();C=I+(O/60+U/3600+Y/36e5),T>q&&(q+=24,C<T&&(C+=24));break;case"":C=x;break}if(C>=T&&C<q)return Fo}else for(var G=_._cachedValues[P],V=0;V<G.length;V++)if(T=G[V],q=T+R.dvalue,x>=T&&x<q)return Fo}}return x},r.locateBreaks=function(x,_){var k,T,q,C,E=[];if(!r.rangebreaks)return E;var P=r.rangebreaks.slice().sort(function(J,te){return J.pattern===xm&&te.pattern===bm?-1:te.pattern===xm&&J.pattern===bm?1:0}),R=function(J,te){if(J=Dt.constrain(J,x,_),te=Dt.constrain(te,x,_),J!==te){for(var ae=!0,se=0;se<E.length;se++){var $=E[se];J<$.max&&te>=$.min&&(J<$.min&&($.min=J),te>$.max&&($.max=te),ae=!1)}ae&&E.push({min:J,max:te})}};for(k=0;k<P.length;k++){var N=P[k];if(N.enabled)if(N.bounds){var I=x,O=_;N.pattern&&(I=Math.floor(I)),T=Dt.simpleMap(N.bounds,N.pattern?zs:r.r2l),q=T[0],C=T[1];var U=new Date(I),Y,G;switch(N.pattern){case xm:G=yxe,Y=((C<q?7:0)+(C-q))*mm,I+=q*mm-(U.getUTCDay()*mm+U.getUTCHours()*ym+U.getUTCMinutes()*yz+U.getUTCSeconds()*gz+U.getUTCMilliseconds());break;case bm:G=mm,Y=((C<q?24:0)+(C-q))*ym,I+=q*ym-(U.getUTCHours()*ym+U.getUTCMinutes()*yz+U.getUTCSeconds()*gz+U.getUTCMilliseconds());break;default:I=Math.min(T[0],T[1]),O=Math.max(T[0],T[1]),G=O-I,Y=G}for(var V=I;V<O;V+=G)R(V,V+Y)}else for(var W=Dt.simpleMap(N.values,r.d2c),j=0;j<W.length;j++)q=W[j],C=q+N.dvalue,R(q,C)}return E.sort(function(J,te){return J.min-te.min}),E},r.makeCalcdata=function(x,_,k){var T,q,C,E,P=r.type,R=P==="date"&&x[_+"calendar"];if(_ in x){if(T=x[_],E=x._length||Dt.minRowLength(T),Dt.isTypedArray(T)&&(P==="linear"||P==="log")){if(E===T.length)return T;if(T.subarray)return T.subarray(0,E)}if(P==="multicategory")return f(T,E);for(q=new Array(E),C=0;C<E;C++)q[C]=r.d2c(T[C],0,R,k)}else{var N=_+"0"in x?r.d2c(x[_+"0"],0,R):0,I=x["d"+_]?Number(x["d"+_]):1;for(T=x[{x:"y",y:"x"}[_]],E=x._length||T.length,q=new Array(E),C=0;C<E;C++)q[C]=N+C*I}if(r.rangebreaks)for(C=0;C<E;C++)q[C]=r.maskBreaks(q[C]);return q},r.isValidRange=function(x,_){return Array.isArray(x)&&x.length===2&&(_&&x[0]===null||sl(r.r2l(x[0])))&&(_&&x[1]===null||sl(r.r2l(x[1])))},r.getAutorangeDflt=function(x,_){var k=!r.isValidRange(x,"nullOk");return k&&_&&_.reverseDflt?k="reversed":x&&(x[0]===null&&x[1]===null?k=!0:x[0]===null&&x[1]!==null?k="min":x[0]!==null&&x[1]===null&&(k="max")),k},r.isReversed=function(){var x=r.autorange;return x==="reversed"||x==="min reversed"||x==="max reversed"},r.isPtWithinRange=function(x,_){var k=r.c2l(x[n],null,_),T=r.r2l(r.range[0]),q=r.r2l(r.range[1]);return T<q?T<=k&&k<=q:q<=k&&k<=T},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var _=null,k=null;for(var T in x){var q=t[gm.id2name(T)];if(q._categories){_=q._categories,k=q._categoriesMap;break}}_&&k?(r._categories=_,r._categoriesMap=k):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var C=0;C<r._initialCategories.length;C++)u(r._initialCategories[C])},r.sortByInitialCategories=function(){var x=[];if(r._emptyCategories(),r._initialCategories)for(var _=0;_<r._initialCategories.length;_++)u(r._initialCategories[_]);x=x.concat(r._traceIndices);var k=r._matchGroup;for(var T in k)if(a!==T){var q=t[gm.id2name(T)];q._categories=r._categories,q._categoriesMap=r._categoriesMap,x=x.concat(q._traceIndices)}return x};var w=t._d3locale;r.type==="date"&&(r._dateFormat=w?w.timeFormat:hxe,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=w?w.numberFormat:dxe,delete r._minDtick,delete r._forceTick0}});var Am=z((JXe,Az)=>{"use strict";var xz=Br(),_6=ke(),gxe=(jt(),ze(Zt)).BADNUM,wm=_6.isArrayOrTypedArray,bxe=_6.isDateTime,xxe=_6.cleanNumber,_z=Math.round;Az.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(wm(n)&&!n.length)return"-";if(!i&&Mxe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(wm(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(Axe(n,t))return"date";var u=a.autotypenumbers!=="strict";return Txe(n,u)?"category":wxe(n,u)?"linear":"-"};function _xe(e,r){return r?xz(e):typeof e=="number"}function wxe(e,r){for(var t=e.length,a=0;a<t;a++)if(_xe(e[a],r))return!0;return!1}function Axe(e,r){for(var t=e.length,a=wz(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=_z(l),u=e[s],f=String(u);o[f]||(o[f]=1,bxe(u,r)&&n++,xz(u)&&i++)}return n>i*2}function wz(e){return Math.max(1,(e-1)/1e3)}function Txe(e,r){for(var t=e.length,a=wz(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=_z(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?xxe(u)!==gxe:c==="number")?n++:c==="string"&&i++}}return i>n*2}function Mxe(e){return wm(e[0])&&wm(e[1])}});var Bh=z((KXe,Dz)=>{"use strict";var kxe=Pr(),Sz=Br(),Is=ke(),Tm=(jt(),ze(Zt)).FP_SAFE,Sxe=Tr(),qxe=Jr(),qz=Aa(),Lxe=qz.getFromId,Cxe=qz.isLinked;Dz.exports={applyAutorangeOptions:Cz,getAutoRange:w6,makePadFn:A6,doAutoRange:Exe,findExtremes:Pxe,concatExtremes:k6};function w6(e,r){var t,a,n=[],i=e._fullLayout,o=A6(i,r,0),l=A6(i,r,1),s=k6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Is.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 d=r.autorange,p=d==="reversed"||d==="min reversed"||d==="max reversed";if(!p&&r.range){var y=Is.simpleMap(r.range,r.r2l);p=y[1]<y[0]}r.autorange==="reversed"&&(r.autorange=!0);var m=r.rangemode,b=m==="tozero",A=m==="nonnegative",w=r._length,x=w/10,_=0,k,T,q,C,E,P;for(t=0;t<u.length;t++)for(k=u[t],a=0;a<f.length;a++)T=f[a],P=T.val-k.val-Tz(r,k.val,T.val),P>0&&(E=w-o(k)-l(T),E>x?P/E>_&&(q=k,C=T,_=P/E):P/w>_&&(q={val:k.val,nopad:1},C={val:T.val,nopad:1},_=P/w));function R(Y,G){return Math.max(Y,l(G))}if(c===v){var N=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var O=(c>0?f:u).reduce(R,0),U=c/(1-Math.min(.5,O/w));n=c>0?[0,U]:[U,0]}else A?n=[Math.max(0,N),Math.max(1,I)]:n=[N,I]}else b?(q.val>=0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:0,nopad:1})):A&&(q.val-_*o(q)<0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:1,nopad:1})),_=(C.val-q.val-Tz(r,k.val,T.val))/(w-o(q)-l(C)),n=[q.val-_*o(q),C.val+_*l(C)];return n=Cz(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Is.simpleMap(n,r.l2r||Number)}function Tz(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i<n.length;i++){var o=n[i];a+=o.max-o.min}return a}function A6(e,r,t){var a=.05*r._length,n=r._anchorAxis||{};if((r.ticklabelposition||"").indexOf("inside")!==-1||(n.ticklabelposition||"").indexOf("inside")!==-1){var i=r.isReversed();if(!i){var o=Is.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return Cxe(e,r._id)||(l=Dxe(e,r,t)),a=Math.max(l,a),r.constrain==="domain"&&r._inputDomain&&(a*=(r._inputDomain[1]-r._inputDomain[0])/(r.domain[1]-r.domain[0])),function(u){return u.nopad?0:u.pad+(u.extrapad?a:l)}}var Mz=3;function Dxe(e,r,t){var a=0,n=r._id.charAt(0)==="x";for(var i in e._plots){var o=e._plots[i];if(!(r._id!==o.xaxis._id&&r._id!==o.yaxis._id)){var l=(n?o.yaxis:o.xaxis)||{};if((l.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(l.side==="left"||l.side==="bottom")||t&&(l.side==="top"||l.side==="right"))){if(l._vals){var s=Is.deg2rad(l._tickAngles[l._id+"tick"]||0),u=Math.abs(Math.cos(s)),f=Math.abs(Math.sin(s));if(!l._vals[0].bb){var c=l._id+"tick",v=l._selections[c];v.each(function(A){var w=kxe.select(this),x=w.select(".text-math-group");x.empty()&&(A.bb=qxe.bBox(w.node()))})}for(var d=0;d<l._vals.length;d++){var p=l._vals[d],y=p.bb;if(y){var m=2*Mz+y.width,b=2*Mz+y.height;a=Math.max(a,n?Math.max(m*u,b*f):Math.max(b*u,m*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function k6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(m,b){for(s=0;s<b.length;s++){var A=m[b[s]],w=(A._extremes||{})[a];if(A.visible===!0&&w){for(u=0;u<w.min.length;u++)f=w.min[u],T6(o,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<w.max.length;u++)f=w.max[u],M6(l,f.val,f.pad,{extrapad:f.extrapad})}}}if(c(n,r._traceIndices),c(i.annotations||[],r._annIndices||[]),c(i.shapes||[],r._shapeIndices||[]),r._matchGroup&&!t){for(var v in r._matchGroup)if(v!==r._id){var d=Lxe(e,v),p=k6(e,d,!0),y=r._length/d._length;for(u=0;u<p.min.length;u++)f=p.min[u],T6(o,f.val,f.pad*y,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],M6(l,f.val,f.pad*y,{extrapad:f.extrapad})}}return{min:o,max:l}}function Exe(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():w6(e,r),r._r=r.range.slice(),r._rl=Is.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Sxe.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,n),a.range=r.range.slice(),a.autorange=r.autorange}var i=r._anchorAxis;if(i&&i.rangeslider){var o=i.rangeslider[r._name];o&&o.rangemode==="auto"&&(o.range=w6(e,r)),i._input.rangeslider[r._name]=Is.extendFlat({},o)}}function Pxe(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,o=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,v,d,p,y,m,b,A,w;function x(R){if(Array.isArray(R))return u=!0,function(I){return Math.max(Number(R[I]||0),0)};var N=Math.max(Number(R||0),0);return function(){return N}}var _=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),T=x(t.vpadplus||t.vpad),q=x(t.vpadminus||t.vpad);if(!u){if(A=1/0,w=-1/0,s)for(c=0;c<i;c++)v=r[c],v<A&&v>0&&(A=v),v>w&&v<Tm&&(w=v);else for(c=0;c<i;c++)v=r[c],v<A&&v>-Tm&&(A=v),v>w&&v<Tm&&(w=v);r=[A,w],i=2}var C={tozero:l,extrapad:o};function E(R){d=r[R],Sz(d)&&(m=_(R),b=k(R),f?(p=e.c2l(d)-q(R),y=e.c2l(d)+T(R)):(A=d-q(R),w=d+T(R),s&&A<w/10&&(A=w/10),p=e.c2l(A),y=e.c2l(w)),l&&(p=Math.min(0,p),y=Math.max(0,y)),kz(p)&&T6(a,p,b,C),kz(y)&&M6(n,y,m,C))}var P=Math.min(6,i);for(c=0;c<P;c++)E(c);for(c=i-1;c>=P;c--)E(c);return{min:a,max:n,opts:t}}function T6(e,r,t,a){Lz(e,r,t,a,Rxe)}function M6(e,r,t,a){Lz(e,r,t,a,Fxe)}function Lz(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(n(u.val,r)&&u.pad>=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function kz(e){return Sz(e)&&Math.abs(e)<Tm}function Rxe(e,r){return e<=r}function Fxe(e,r){return e>=r}function zxe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Mm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Mm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Nxe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Mm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Mm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Mm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function Cz(e,r){if(!r||!r.autorangeoptions)return e;var t=e[0],a=e[1],n=r.autorangeoptions.include;if(n!==void 0){var i=r.d2l(t),o=r.d2l(a);Is.isArrayOrTypedArray(n)||(n=[n]);for(var l=0;l<n.length;l++){var s=r.d2l(n[l]);i>=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=zxe(t,r),a=Nxe(a,r),[t,a]}});var Yr=z((eZe,eN)=>{"use strict";var Yi=Pr(),ya=Br(),o0=ma(),Hh=Tr(),Sr=ke(),l0=Sr.strTranslate,af=Fa(),Ixe=n0(),Uh=qr(),gi=Jr(),Bxe=Gi(),Ez=$4(),QXe=(Pa(),ze(Ea)),sn=(jt(),ze(Zt)),Oxe=sn.ONEMAXYEAR,qm=sn.ONEAVGYEAR,Lm=sn.ONEMINYEAR,Hxe=sn.ONEMAXQUARTER,C6=sn.ONEAVGQUARTER,Cm=sn.ONEMINQUARTER,Uxe=sn.ONEMAXMONTH,s0=sn.ONEAVGMONTH,Dm=sn.ONEMINMONTH,bi=sn.ONEWEEK,Sn=sn.ONEDAY,Bs=Sn/2,cl=sn.ONEHOUR,Gh=sn.ONEMIN,Em=sn.ONESEC,Gxe=sn.ONEMILLI,Yxe=sn.ONEMICROSEC,nf=sn.MINUS_SIGN,Rm=sn.BADNUM,D6={K:"zeroline"},E6={K:"gridline",L:"path"},P6={K:"minor-gridline",L:"path"},Gz={K:"tick",L:"path"},Pz={K:"tick",L:"text"},Rz={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Fm=(on(),ze(nn)),Oh=Fm.MID_SHIFT,of=Fm.CAP_SHIFT,Yh=Fm.LINE_SPACING,Vxe=Fm.OPPOSITE_SIDE,Pm=3,Ge=eN.exports={};Ge.setConvert=i0();var jxe=Am(),vl=Aa(),Wxe=vl.idSort,Xxe=vl.isLinked;Ge.id2name=vl.id2name;Ge.name2id=vl.name2id;Ge.cleanId=vl.cleanId;Ge.list=vl.list;Ge.listIds=vl.listIds;Ge.getFromId=vl.getFromId;Ge.getFromTrace=vl.getFromTrace;var Yz=Bh();Ge.getAutoRange=Yz.getAutoRange;Ge.findExtremes=Yz.findExtremes;var Zxe=1e-4;function N6(e){var r=(e[1]-e[0])*Zxe;return[e[0]-r,e[1]+r]}function $xe(e,r,t){if(![t,e,r].every(ya)||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}Ge.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Sr.coerce(e,r,u,s)};Ge.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),f.length>o?(Sr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(Sr.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),f=f.concat(Array(o-f.length).fill(n)));for(var c=0;c<f.length;c++)f[c]=vl.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};Ge.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ge.coercePosition=function(e,r,t,a,n,i){var o,l,s=Ge.getRefType(a);if(s!=="range")o=Sr.ensureNumber,l=t(n,i);else{var u=Ge.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};Ge.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?Sr.ensureNumber:Ge.getFromId(r,t).cleanPos;return a(e)};Ge.redrawComponents=function(e,r){r=r||Ge.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=Hh.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[Ge.id2name(r[f])],v=c[o],d=0;d<v.length;d++){var p=v[d];if(!u[p]&&(s(e,p),u[p]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var Jxe=Ge.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(Sr.isArrayOrTypedArray(i)){if(n={type:jxe(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},Ge.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=Ge.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:zz,c2d:zz}:{d2c:Fz,c2d:Fz}};function Fz(e){return+e}function zz(e){return String(e)}Ge.getDataToCoordFunc=function(e,r,t,a){return Jxe(e,r,t,a).d2c};Ge.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};Ge.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))};Ge.saveRangeInitial=function(e,r){for(var t=Ge.list(e,"",!0),a=!1,n=0;n<t.length;n++){var i=t[n],o=i._rangeInitial0===void 0&&i._rangeInitial1===void 0,l=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(o&&s!==!0||r&&l)&&(i._rangeInitial0=s==="min"||s==="max reversed"?void 0:i.range[0],i._rangeInitial1=s==="max"||s==="min reversed"?void 0:i.range[1],i._autorangeInitial=s,a=!0)}return a};Ge.saveShowSpikeInitial=function(e,r){for(var t=Ge.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var o=t[i],l=o._showSpikeInitial===void 0,s=l||o.showspikes!==o._showspikes;(l||r&&s)&&(o._showSpikeInitial=o.showspikes,a=!0),n==="on"&&!o.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};Ge.autoBin=function(e,r,t,a,n,i){var o=Sr.aggNums(Math.min,null,e),l=Sr.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:o-.5,end:l+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:l-o};n||(n=r.calendar);var s;if(r.type==="log"?s={type:"linear",range:[o,l]}:s={type:r.type,range:Sr.simpleMap([o,l],r.c2r,0,n),calendar:n},Ge.setConvert(s),i=i&&Ez.dtick(i,s.type),i)s.dtick=i,s.tick0=Ez.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=Sr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),v=c*Sr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(v,2*Sr.stdev(e)/Math.pow(e.length,a?.25:.4)),ya(u)||(u=1)}Ge.autoTicks(s,u)}var d=s.dtick,p=Ge.tickIncrement(Ge.tickFirst(s),d,"reverse",n),y,m;if(typeof d=="number")p=Kxe(p,e,s,o,l),m=1+Math.floor((l-p)/d),y=p+m*d;else for(s.dtick.charAt(0)==="M"&&(p=Qxe(p,e,d,o,n)),y=p,m=0;y<=l;)y=Ge.tickIncrement(y,d,!1,n),m++;return{start:r.c2r(p,0,n),end:r.c2r(y,0,n),size:d,_dataSpan:l-o}};function Kxe(e,r,t,a,n){var i=0,o=0,l=0,s=0;function u(d){return(1+(d-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:ya(r[f])||s++,u(r[f])&&i++,u(r[f]+t.dtick/2)&&o++;var c=r.length-s;if(l===c&&t.type!=="date")t.dtick<1?e=a-.5*t.dtick:(e-=.5,e+t.dtick<a&&(e+=t.dtick));else if(o<c*.1&&(i>c*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+v<a?v:-v}return e}function Qxe(e,r,t,a,n){var i=Sr.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ge.tickIncrement(e,"M6","reverse")+Sn*1.5:i.exactMonths>o?e=Ge.tickIncrement(e,"M1","reverse")+Sn*15.5:e-=Bs;var s=Ge.tickIncrement(e,t);if(s<=a)return s}return e}Ge.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ya(r._tmin),n;if(a){var i=Ge.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Sr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Sr.simpleMap(n,r.l2r),e._isMinor=!0,Ge.prepTicks(e,t),a){var l=ya(r.dtick),s=ya(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?S6(u,f)?u===2*bi&&f===2*Sn&&(e.dtick=bi):u===2*bi&&f===3*Sn?e.dtick=bi:u===bi&&!(r._input.minor||{}).nticks?e.dtick=Sn:Nz(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":S6(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"?S6(u,f)||(e.dtick=Nz(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)};function S6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Nz(e,r){return Math.abs(e/r-1)<.001}Ge.prepTicks=function(e,r){var t=Sr.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?Sr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Sr.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,Ge.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"&&e5e(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),Xz(e)};function q6(e){return+e.substring(1)}function e5e(e){var r;function t(){return!(ya(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=Ge.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=cl,i&&!a&&e.dtick<cl&&(e.dtick=cl)):/%p/.test(n)?(r=Bs,i&&!a&&e.dtick<Bs&&(e.dtick=Bs)):/%[Aadejuwx]/.test(n)?(r=Sn,i&&!a&&e.dtick<Sn&&(e.dtick=Sn)):/%[UVW]/.test(n)?(r=bi,i&&!a&&e.dtick<bi&&(e.dtick=bi)):/%[Bbm]/.test(n)?(r=s0,i&&(a?q6(e.dtick)<1:e.dtick<Dm)&&(e.dtick="M1")):/%[q]/.test(n)?(r=C6,i&&(a?q6(e.dtick)<3:e.dtick<Cm)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=qm,i&&(a?q6(e.dtick)<12:e.dtick<Lm)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function r5e(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,o=a+1;a<e.length-1?(i=a,o=a+1):a>0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=Lm?u>=Lm&&u<=Oxe?c=u:c=qm:t===C6&&f>=Cm?u>=Cm&&u<=Hxe?c=u:c=C6:f>=Dm?u>=Dm&&u<=Uxe?c=u:c=s0:t===bi&&f>=bi?c=bi:f>=Sn?c=Sn:t===Bs&&f>=Bs?c=Bs:t===cl&&f>=cl&&(c=cl);var v;c>=u&&(c=u,v=!0);var d=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*d)!==Rm&&y++}c*=y/p,c||(e[a].drop=!0),v&&u>bi&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ge.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Sr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=Sr.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]),d=Math.max(1e3,r._length||0),p=[],y=[],m=[],b=[],A=[],w=r.minor&&(r.minor.ticks||r.minor.showgrid),x=w||s,_=1;_>=(x?0:1);_--){var k=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var T=_?r:Sr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Ge.prepMinorTicks(T,r,t):Ge.prepTicks(T,t),T.tickmode==="array"){_?(m=[],p=Iz(r,!k)):(b=[],y=Iz(r,!k));continue}if(T.tickmode==="sync"){m=[],p=t5e(r);continue}var q=N6(u),C=q[0],E=q[1],P=ya(T.dtick),R=a==="log"&&!(P||T.dtick.charAt(0)==="L"),N=Ge.tickFirst(T,t);if(_){if(r._tmin=N,N<C!==f)break;(a==="category"||a==="multicategory")&&(E=f?Math.max(-.5,E):Math.min(r._categories.length-.5,E))}var I=null,O=N,U;if(_){var Y;P?Y=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(Y=s0*r.dtick.substring(1)):Y=r._roughDTick,U=Math.round((r.r2l(O)-r.r2l(r.tick0))/Y)-1}var G=T.dtick,V=a==="linear"?T.r2l(T.tick0):void 0;for(T.rangebreaks&&T._tick0Init!==T.tick0&&(O=L6(O,r),f||(O=Ge.tickIncrement(O,G,!f,n))),(_||s)&&o&&(O=Ge.tickIncrement(O,G,!f,n),_&&U--);f?O>=E:O<=E;O=Ge.tickIncrement(O,G,f,n)){if(_&&U++,T.rangebreaks&&!f){if(O<C)continue;if(T.maskBreaks(O)===Rm&&L6(O,T)>=v)break}if(m.length>d||O===I)break;I=O;var W={value:$xe(O,V,G)};_?(O===N&&(W.first=!0),R&&O!==(O|0)&&(W.simpleLabel=!0),i>1&&U%i&&(W.skipLabel=!0),m.push(W)):(W.minor=!0,b.push(W))}}if(!b||b.length<3)s=!1;else{var j=(b[2].value-b[1].value)*(l?-1:1);S5e(j,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)A=m;else{var J=m.concat(b);o&&m.length&&(J=J.slice(1)),J=J.sort(function(Xe,Se){return Xe.value-Se.value}).filter(function(Xe,Se,Fe){return Se===0||Xe.value!==Fe[Se-1].value});var te=J.map(function(Xe,Se){return Xe.minor===void 0&&!Xe.skipLabel?Se:null}).filter(function(Xe){return Xe!==null});te.forEach(function(Xe){s.map(function(Se){var Fe=Xe+Se;Fe>=0&&Fe<J.length&&Sr.pushUnique(A,J[Fe])})}),m.forEach(function(Xe){Xe.skipLabel=A.indexOf(Xe)===-1})}if(w){var ae=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ae){for(var se=m.map(function(Xe){return Xe.value}),$=[],fe=0;fe<b.length;fe++){var ie=b[fe],ue=ie.value;if(se.indexOf(ue)===-1){for(var ce=!1,oe=0;!ce&&oe<m.length;oe++)1e7+m[oe].value===1e7+ue&&(ce=!0);ce||$.push(ie)}}b=$}}o&&r5e(A,r,r._definedDelta);var be;if(r.rangebreaks){var Re=r._id.charAt(0)==="y",ye=1;r.tickmode==="auto"&&(ye=r.tickfont?r.tickfont.size:12);var Ce=NaN;for(be=m.length-1;be>-1;be--){if(m[be].drop){m.splice(be,1);continue}m[be].value=L6(m[be].value,r);var Me=r.c2p(m[be].value);(Re?Ce>Me-ye:Ce<Me+ye)?m.splice(f?be+1:be,1):Ce=Me}}H6(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 Le,De=function(Xe){Xe.text="",r._prevDateHead=Le};m=m.concat(b);function Ie(Xe,Se){var Fe=Ge.tickText(Xe,Se.value,!1,Se.simpleLabel,{first:Se.first,last:Se.last}),er=Se.periodX;return er!==void 0&&(Fe.periodX=er,(er>v||er<c)&&(er>v&&(Fe.periodX=v),er<c&&(Fe.periodX=c),De(Fe))),Fe}var qe;for(be=0;be<m.length;be++){var Ze=m[be].minor,Je=m[be].value;Ze?(s&&A.indexOf(m[be])!==-1?qe=Ie(r,m[be]):qe={x:Je},qe.minor=!0,y.push(qe)):(Le=r._prevDateHead,qe=Ie(r,m[be]),m[be].skipLabel&&De(qe),p.push(qe))}return o&&s&&y.length&&(y[0].noTick=!0),p=p.concat(y),r._inCalcTicks=!1,o&&p.length&&(p[0].noTick=!0),p};function Vz(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==Rm})),r}function t5e(e){var r=e._mainAxis,t=[];if(r._vals){for(var a=-1,n=-1,i=0;i<r._vals.length;i++)r._vals[i].noTick||r._vals[i].minor||(a===-1&&(a=i),n=i);for(var o=0;o<r._vals.length;o++)if(!r._vals[o].noTick){var l=r.l2p(r._vals[o].x),s=e.p2l(l),u=Ge.tickText(e,s,!1,void 0,{first:o===a,last:o===n});r._vals[o].minor&&(u.minor=!0,u.text=""),t.push(u)}}return t=Vz(e,t),t}function Iz(e,r){var t=Sr.simpleMap(e.range,e.r2l),a=N6(t),n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]),o=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var l=[],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){Sr.isArrayOrTypedArray(f)||(f=[]);var c=-1,v=-1;if(!s)for(var d=0;d<u.length;d++){var p=o(u[d]);p>n&&p<i&&(c===-1&&(c=d),v=d)}for(var y=0;y<u.length;y++){var m=o(u[y]);if(m>n&&m<i){var b=Ge.tickText(e,m,!1,String(f[y]),{first:y===c,last:y===v});s&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=Vz(e,l),l}var km=[2,5,10],Bz=[1,2,3,6,12],Oz=[1,2,5,10,15,30],a5e=[1,2,3,7,14],jz=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Wz=[-.301,0,.301,.699,1],n5e=[15,30,45,90,180];function fl(e,r,t){return r*Sr.roundUp(e/r,t)}Ge.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=Sr.dateTick0(e.calendar,0);var i=2*r;if(i>qm)r/=qm,a=n(10),e.dtick="M"+12*fl(r,a,km);else if(i>s0)r/=s0,e.dtick="M"+fl(r,1,Bz);else if(i>Sn){if(e.dtick=fl(r,Sn,e._hasDayOfWeekBreaks?[1,2,7,14]:a5e),!t){var o=Ge.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Sr.dateTick0(e.calendar,2):e.tick0=Sr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>cl?e.dtick=fl(r,cl,Bz):i>Gh?e.dtick=fl(r,Gh,Oz):i>Em?e.dtick=fl(r,Em,Oz):(a=n(10),e.dtick=fl(r,a,km))}else if(e.type==="log"){e.tick0=0;var s=Sr.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"+fl(r,a,km)}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))):H6(e)?(e.tick0=0,a=1,e.dtick=fl(r,a,n5e)):(e.tick0=0,a=n(10),e.dtick=fl(r,a,km));if(e.dtick===0&&(e.dtick=1),!ya(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Xz(e){var r=e.dtick;if(e._tickexponent=0,!ya(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>=Sn&&n<=10||r>=Sn*15)e._tickround="d";else if(r>=Gh&&n<=16||r>=cl)e._tickround="M";else if(r>=Em&&n<=19||r>=Gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ya(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ya(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(u0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!I6(s)||u0(e.exponentformat)&&e.exponentformat==="SI extended"&&!B6(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ge.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ya(r))return Sr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Sr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?Wz:jz,s=e+n*.01,u=Sr.roundUp(Sr.mod(s,1),l,t);return Math.floor(s)+Math.log(Yi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ge.tickFirst=function(e,r){var t=e.r2l||Number,a=Sr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=N6(a)[0],l=e.dtick,s=t(e.tick0);if(ya(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=Sr.constrain(u,0,e._categories.length-1)),u}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var v=0,d=s,p,y,m;v<10;){if(p=Ge.tickIncrement(d,l,n,e.calendar),(p-o)*(d-o)<=0)return n?Math.min(d,p):Math.max(d,p);y=(o-(d+p)/2)/(p-d),m=f+(Math.abs(Math.round(y))||1)*c,d=Ge.tickIncrement(d,m,y<0?!n:n,e.calendar),v++}return Sr.error("tickFirst did not converge",e),d}else{if(f==="L")return Math.log(i((Math.pow(10,o)-s)/c)*c+s)/Math.LN10;if(f==="D"){var b=l==="D2"?Wz:jz,A=Sr.roundUp(Sr.mod(o,1),b,n);return Math.floor(o)+Math.log(Yi.round(Math.pow(10,A),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};Ge.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=Zz(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,v,d=function(w){var x=e.l2p(w);return x>=0&&x<=e._length?w:null};if(s&&Sr.isArrayOrTypedArray(e.ticktext)){var p=Sr.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 l.text=String(e.ticktext[v]),l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)],l}function m(w){return w===void 0?!0:t?w==="none":w==="all"?!1:w==="first"?!i:w==="last"?!o:!0}var b=t?"never":e.exponentformat!=="none"&&m(e.showexponent)?"hide":"";if(f==="date"?i5e(e,l,t,u):f==="log"?o5e(e,l,t,u,b):f==="category"?l5e(e,l):f==="multicategory"?s5e(e,l,t):H6(e)?f5e(e,l,t,u,b):u5e(e,l,t,u,b),a||(e.tickprefix&&!m(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!m(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var A=e.labelalias[l.text];typeof A=="string"&&(l.text=A)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};Ge.hoverLabelText=function(e,r,t){t&&(e=Sr.extendFlat({},e,{hoverformat:t}));var a=Sr.isArrayOrTypedArray(r)?r[0]:r,n=Sr.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return Ge.hoverLabelText(e,a,t)+" - "+Ge.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=Ge.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":nf+o:o};function Zz(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 i5e(e,r,t,a){var n=e._tickround,i=t&&e.hoverformat||Ge.getTickFormat(e);a=!i&&a,a&&(ya(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=Sr.formatDate(r.x,i,n,e._dateFormat,e.calendar,e._extraFormat),l,s=o.indexOf(`
`);if(s!==-1&&(l=o.slice(s+1),o=o.slice(0,s)),a&&(l!==void 0&&(o==="00:00:00"||o==="00:00")?(o=l,l=""):o.length===8&&(o=o.replace(/:00$/,""))),l)if(t)n==="d"?o+=", "+l:o=l+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,o+="<br>"+l;else{var u=jh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function o5e(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Vh(Math.pow(10,o),e,n,a);else if(ya(i)||s==="D"&&(e.minorloglabels==="complete"||Sr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Sr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||u0(p)&&p!=="SI extended"&&I6(v)||u0(p)&&p==="SI extended"&&B6(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+="<sup>"+(v>0?"":nf)+d+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":nf)+d:(r.text=Vh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Sr.mod(o,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*(o<0?.5:.25)))}}function l5e(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function s5e(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function u5e(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Vh(r.x,e,n,a)}function f5e(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=c5e(i);if(o[1]>=100)r.text=Vh(Sr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["<sup>",o[0],"</sup>","\u2044","<sub>",o[1],"</sub>","\u03C0"].join(""),l&&(r.text=nf+r.text)}}}else r.text=Vh(r.x,e,n,a)}function c5e(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var $z=["f","p","n","\u03BC","m","","k","M","G","T"],v5e=["q","r","y","z","a",...$z,"P","E","Z","Y","R","Q"],u0=e=>["SI","SI extended","B"].includes(e);function I6(e){return e>14||e<-15}function B6(e){return e>32||e<-30}function h5e(e,r){return u0(r)?!!(r==="SI extended"&&B6(e)||r!=="SI extended"&&I6(e)):!1}function Vh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ge.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ya(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Xz(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,nf);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(l&&(e*=Math.pow(10,-l),i+=l),i===0)e=String(Math.round(e));else if(i<0){let d=Math.pow(10,-i);e=String(Math.round(e/d)*d)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=Sr.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){h5e(l,o)&&(o="power");var v;l<0?v=nf+-l:o!=="power"?v="+"+l:v=String(l),o==="e"||o==="E"?e+=o+v:o==="power"?e+="\xD710<sup>"+v+"</sup>":o==="B"&&l===9?e+="B":u0(o)&&(e+=o==="SI extended"?v5e[l/3+10]:$z[l/3+5])}return n?nf+e:e}Ge.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*s0}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],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&n(e.dtick,l.dtickrange,t)){o=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&i(e.dtick,l.dtickrange)){o=l;break}break}default:}return o?o.value:e.tickformat};Ge.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?Ge.findSubplotsWithAxis(a,r):a;return n.sort(function(i,o){var l=i.slice(1).split("y"),s=o.slice(1).split("y");return l[0]===s[0]?+l[1]-+s[1]:+l[0]-+s[0]}),n};Ge.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};Ge.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=Ge.list(e,"x",!0),i=Ge.list(e,"y",!0),o=[],l,s;for(l=0;l<n.length;l++)for(o.push({x:n[l],y:a}),s=0;s<i.length;s++)l===0&&o.push({x:t,y:i[s]}),o.push({x:n[l],y:i[s]});var u=r._clips.selectAll(".axesclip").data(o,function(f){return f.x._id+f.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),u.exit().remove(),u.each(function(f){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})})}};Ge.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"?Ge.listIds(e):r,i=Ge.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=Ge.getFromId(e,s);if(u.tickmode==="sync"&&u.overlaying){var f=n.findIndex(function(c){return c===u.overlaying});f>=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Sr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ge.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ge.drawOne(e,u,t);return u._shiftPusher&&z6(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Sr.simpleMap(u._r,u.r2l),f}}}))};Ge.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ge.counterLetter(u),v=s._plots[r._mainSubplot],d=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),z6(r,p,a,!0),z6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=k5e(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,A=r._mainMirrorPosition,w=r._vals=Ge.calcTicks(r),x=[r.mirror,b,A].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 _={};function k(qe){var Ze=u+(qe||"tick");return _[Ze]||(_[Ze]=y5e(r,Ze,b)),_[Ze]}if(r.visible){var T=Ge.makeTransTickFn(r),q=Ge.makeTransTickLabelFn(r),C,E,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var N=d5e(r,w);E=Ge.clipEnds(r,N),C=P?E:N}else E=Ge.clipEnds(r,w),C=P&&r.ticklabelmode!=="period"?E:w;var I=r._gridVals=E,O=m5e(r,w);if(!s._hasOnlyLargeSploms){var U=r._subplotsWith,Y={};for(i=0;i<U.length;i++){o=U[i],l=s._plots[o];var G=l[c+"axis"],V=G._mainAxis._id;if(!Y[V]){Y[V]=1;var W=f==="x"?"M0,"+G._offset+"v"+G._length:"M"+G._offset+",0h"+G._length;Ge.drawGrid(e,r,{vals:I,counterAxis:G,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:W,transFn:T}),Ge.drawZeroLine(e,r,{counterAxis:G,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:W,transFn:T})}}}var j,J=Ge.getTickSigns(r),te=Ge.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var ae=Ge.makeTickPath(r,b,J[2]),se=Ge.makeTickPath(r,b,te[2],{minor:!0}),$,fe,ie,ue;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?($=Ge.makeTickPath(r,A,J[3]),fe=Ge.makeTickPath(r,A,te[3],{minor:!0}),ie=ae+$,ue=se+fe):($="",fe="",ie=ae,ue=se),r.showdividers&&R&&r.tickson==="boundaries"){var ce={};for(i=0;i<O.length;i++)ce[O[i].x]=1;j=function(qe){return ce[qe.x]?$:ie}}else j=function(qe){return qe.minor?ue:ie}}if(Ge.drawTicks(e,r,{vals:C,layer:y,path:j,transFn:T}),r.mirror==="allticks"){var oe=Object.keys(r._linepositions||{});for(i=0;i<oe.length;i++){o=oe[i],l=s._plots[o];var be=r._linepositions[o]||[],Re=be[0],ye=be[1],Ce=be[2],Me=Ge.makeTickPath(r,Re,Ce?J[0]:te[0],{minor:Ce})+Ge.makeTickPath(r,ye,Ce?J[1]:te[1],{minor:Ce});Ge.drawTicks(e,r,{vals:C,layer:l[f+"axislayer"],path:Me,transFn:T})}}var Le=[];if(Le.push(function(){return Ge.drawLabels(e,r,{vals:w,layer:y,plotinfo:l,transFn:q,labelFns:Ge.makeLabelFns(r,b)})}),r.type==="multicategory"){var De={x:2,y:10}[f];Le.push(function(){var qe={x:"height",y:"width"}[f],Ze=k()[qe]+De+(r._tickAngles[u+"tick"]?r.tickfont.size*Yh:0);return Ge.drawLabels(e,r,{vals:p5e(r,w),layer:y,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:T,labelFns:Ge.makeLabelFns(r,b+Ze*J[4])})}),Le.push(function(){return r._depth=J[4]*(k("tick2")[r.side]-b),b5e(e,r,{vals:O,layer:y,path:Ge.makeTickPath(r,b,J[4],{len:r._depth}),transFn:T})})}else r.title.hasOwnProperty("standoff")&&Le.push(function(){r._depth=J[4]*(k()[r.side]-b)});var Ie=Hh.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Ie&&r.side==="bottom")&&Le.push(function(){return x5e(e,r)}),Le.push(function(){var qe=r.side.charAt(0),Ze=Vxe[r.side].charAt(0),Je=Ge.getPxPosition(e,r),Xe=R?r.ticklen:0,Se,Fe,er,re;(r.automargin||Ie||r._shiftPusher)&&(r.type==="multicategory"?Se=k("tick2"):(Se=k(),f==="x"&&qe==="b"&&(r._depth=Math.max(Se.width>0?Se.bottom-Je:0,Xe))));var xe=0,Ye=0;if(r._shiftPusher&&(xe=Math.max(Xe,Se.height>0?qe==="l"?Je-Se.left:Se.right-Je:0),r.title.text!==s._dfltTitle[f]&&(Ye=(r._titleStandoff||0)+(r._titleScoot||0),qe==="l"&&(Ye+=Uz(r))),r._fullDepth=Math.max(xe,Ye)),r.automargin){Fe={x:0,y:0,r:0,l:0,t:0,b:0};var vr=[0,1],Pe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(qe==="b"?Fe[qe]=r._depth:(Fe[qe]=r._depth=Math.max(Se.width>0?Je-Se.top:0,Xe),vr.reverse()),Se.width>0){var me=Se.right-(r._offset+r._length);me>0&&(Fe.xr=1,Fe.r=me);var Te=r._offset-Se.left;Te>0&&(Fe.xl=0,Fe.l=Te)}}else if(qe==="l"?(r._depth=Math.max(Se.height>0?Je-Se.left:0,Xe),Fe[qe]=r._depth-Pe):(r._depth=Math.max(Se.height>0?Se.right-Je:0,Xe),Fe[qe]=r._depth+Pe,vr.reverse()),Se.height>0){var Ue=Se.bottom-(r._offset+r._length);Ue>0&&(Fe.yb=0,Fe.b=Ue);var $e=r._offset-Se.top;$e>0&&(Fe.yt=1,Fe.t=$e)}Fe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[vr[0]],r.title.text!==s._dfltTitle[f]&&(Fe[qe]+=Uz(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(er={x:0,y:0,r:0,l:0,t:0,b:0},er[Ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(er[Ze]+=Xe),r.mirror===!0||r.mirror==="ticks"?er[c]=r._anchorAxis.domain[vr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(er[c]=[r._counterDomainMin,r._counterDomainMax][vr[1]]))}Ie&&(re=Hh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Hz(Fe,r.automargin),Hz(er,r.automargin)),o0.autoMargin(e,O6(r),Fe),o0.autoMargin(e,Kz(r),er),o0.autoMargin(e,Qz(r),re)}),Sr.syncOrAsync(Le)}};function Hz(e,r){if(e){var t=Object.keys(Rz).reduce(function(a,n){return r.indexOf(n)!==-1&&Rz[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 d5e(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Sr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;a<r.length;a++)n(r[a],0);n(r[a-1],1)}return t}function p5e(e,r){for(var t=[],a={},n=0;n<r.length;n++){var i=r[n];a[i.text2]?a[i.text2].push(i.x):a[i.text2]=[i.x]}for(var o in a)t.push(Zz(e,Sr.interp(a[o],.5),o));return t}function m5e(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,o=function(s,u){var f=s.xbnd[u];f!==null&&t.push(Sr.extendFlat({},s,{x:f}))};if(e.showdividers&&r.length){for(a=0;a<r.length;a++){var l=r[a];l.text2!==n&&o(l,i?1:0),n=l.text2}o(r[a-1],i?0:1)}return t}function y5e(e,r,t){var a,n,i,o;if(e._selections[r].size())a=1/0,n=-1/0,i=1/0,o=-1/0,e._selections[r].each(function(){var s=F6(this);if(s.node().style.display!=="none"){var u=gi.bBox(s.node().parentNode);a=Math.min(a,u.top),n=Math.max(n,u.bottom),i=Math.min(i,u.left),o=Math.max(o,u.right)}});else{var l=Ge.makeLabelFns(e,t);a=n=l.yFn({dx:0,dy:0,fontSize:0}),i=o=l.xFn({dx:0,dy:0,fontSize:0})}return{top:a,bottom:n,left:i,right:o,height:n-a,width:o-i}}Ge.getTickSigns=function(e,r){var t=e._id.charAt(0),a={x:"top",y:"right"}[t],n=e.side===a?1:-1,i=[-1,1,n,-n],o=r?(e.minor||{}).ticks:e.ticks;return o!=="inside"==(t==="x")&&(i=i.map(function(l){return-l})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i};Ge.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return l0(e._offset+e.l2p(r.x),0)}:function(r){return l0(0,e._offset+e.l2p(r.x))}};Ge.makeTransTickLabelFn=function(e){var r=g5e(e),t=e.ticklabelshift||0,a=e.ticklabelstandoff||0,n=r[0],i=r[1],o=e.range[0]>e.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return l0(n+e._offset+e.l2p(R6(v))+t,i+a)}:function(v){return l0(i+a,n+e._offset+e.l2p(R6(v))+t)}};function R6(e){return e.periodX!==void 0?e.periodX:e.x}function g5e(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=Pm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*of,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Pm),s&&f==="top"&&(v-=d*(1-of)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ge.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ge.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(N){return a.indexOf(N)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=Sr.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},A,w,x,_,k=0,T=e.side,q=e._id.charAt(0),C=e.tickangle,E;if(q==="x")E=!c&&T==="bottom"||c&&T==="top",_=E?1:-1,c&&(_*=-1),A=p*_,w=r+d*_,x=E?1:-.2,Math.abs(C)===90&&(c?x+=Oh:C===-90&&T==="bottom"?x=of:C===90&&T==="top"?x=Oh:x=.5,k=Oh/2*(C/90)),b.xFn=function(N){return N.dx+A+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*x},b.anchorFn=function(N,I){if(f){if(l)return"end";if(s)return"start"}return!ya(I)||I===0||I===180?"middle":I*_<0!==c?"end":"start"},b.heightFn=function(N,I,O){return I<-60||I>60?-.5*O:e.side==="top"!==c?-O:0};else if(q==="y"){if(E=!c&&T==="left"||c&&T==="right",_=E?1:-1,c&&(_*=-1),A=d,w=p*_,x=0,!c&&Math.abs(C)===90&&(C===-90&&T==="left"||C===90&&T==="right"?x=of:x=.5),c){var P=ya(C)?+C:0;if(P!==0){var R=Sr.deg2rad(P);k=Math.abs(Math.sin(R))*of*_,x=0}}b.xFn=function(N){return N.dx+r-(A+N.fontSize*x)*_+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*Oh},b.anchorFn=function(N,I){return ya(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(N,I,O){return e.side==="right"&&(I*=-1),I<-30?-O:I<30?-.5*O:0}}return b};function zm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ge.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,zm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Uh.stroke(Yi.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return gi.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Nm(r,[Gz]),i.attr("transform",t.transFn)};Ge.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Ge.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u<o.length;u++){var f=o[u].x;if(s?!f:Math.abs(f)<r.dtick/100)if(o=o.slice(0,u).concat(o.slice(u+1)),s)u--;else break}r._gw=gi.crispRound(e,r.gridwidth,1);for(var c=n?gi.crispRound(e,r.minor.gridwidth,1):0,v=t.layer,d=t.minorLayer,p=1;p>=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,zm);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 Uh.stroke(Yi.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return gi.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)}}Nm(r,[E6,P6])}};Ge.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ge.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Wxe(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Uh.stroke,r.zerolinecolor||Uh.defaultLine).style("stroke-width",gi.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Nm(r,[D6])};Ge.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],zm),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(V){var W=Yi.select(this),j=e._promises.length;W.call(af.positionText,s.xFn(V),s.yFn(V)).call(gi.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call(af.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(W,u)})):d(W,u)}),Nm(r,[Pz]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){Yi.select(this).select("text").call(af.positionText,s.xFn(V),s.yFn(V))});function d(V,W){V.each(function(j){var J=Yi.select(this),te=J.select(".text-math-group"),ae=s.anchorFn(j,W),se=t.transFn.call(J.node(),j)+(ya(W)&&+W!=0?" rotate("+W+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),$=af.lineCount(J),fe=Yh*j.fontSize,ie=s.heightFn(j,ya(W)?+W:0,($-1)*fe);if(ie&&(se+=l0(0,ie)),te.empty()){var ue=J.select("text");ue.attr({transform:se,"text-anchor":ae}),ue.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ce=gi.bBox(te.node()).width,oe=ce*{end:-.5,start:.5}[ae];te.attr("transform",se+l0(oe,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var W=V.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",J=0,te=j?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var ae=Sr.simpleMap(r.range,r.r2l);J=r.l2p(ae[0])+r._offset,te=r.l2p(ae[1])+r._offset}var se=Math.min(J,te),$=Math.max(J,te),fe=r.side,ie=1/0,ue=-1/0;c.each(function(Re){var ye=Yi.select(this),Ce=ye.select(".text-math-group");if(Ce.empty()){var Me=gi.bBox(ye.node()),Le=0;j?(Me.right>$||Me.left<se)&&(Le=1):(Me.bottom>$||Me.top+(r.tickangle?0:Re.fontSize/4)<se)&&(Le=1);var De=ye.select("text");Le?W&&De.style("display","none"):De.node().style.display!=="none"&&(De.style("display",null),fe==="bottom"||fe==="right"?ie=Math.min(ie,j?Me.top:Me.left):ie=-1/0,fe==="top"||fe==="left"?ue=Math.max(ue,j?Me.bottom:Me.right):ue=1/0)}});for(var ce in a._plots){var oe=a._plots[ce];if(!(r._id!==oe.xaxis._id&&r._id!==oe.yaxis._id)){var be=j?oe.yaxis:oe.xaxis;be&&(be["_visibleLabelMin_"+r._id]=ie,be["_visibleLabelMax_"+r._id]=ue)}}}},r._hideCounterAxisInsideTickLabels=function(V){var W=r._id.charAt(0)==="x",j=[];for(var J in a._plots){var te=a._plots[J];r._id!==te.xaxis._id&&r._id!==te.yaxis._id||j.push(W?te.yaxis:te.xaxis)}j.forEach(function(ae,se){ae&&jh(ae)&&(V||[D6,P6,E6,Gz,Pz]).forEach(function($){var fe=$.K==="tick"&&$.L==="text"&&r.ticklabelmode==="period",ie=a._plots[r._mainSubplot],ue;if($.K===D6.K){var ce=i?ie.zerolinelayerAbove:ie.zerolinelayer;ue=ce.selectAll("."+r._id+"zl")}else $.K===P6.K?ue=ie.minorGridlayer.selectAll("."+r._id):$.K===E6.K?ue=ie.gridlayer.selectAll("."+r._id):ue=ie[r._id.charAt(0)+"axislayer"];ue.each(function(){var oe=Yi.select(this);$.L&&(oe=oe.selectAll($.L)),oe.each(function(be){var Re=r.l2p(fe?R6(be):be.x)+r._offset,ye=Yi.select(this);Re<r["_visibleLabelMax_"+ae._id]&&Re>r["_visibleLabelMin_"+ae._id]?ye.style("display","none"):$.K==="tick"&&!se&&ye.node().style.display!=="none"&&ye.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var V=0,W=[],j,J=1;c.each(function(Fe){V=Math.max(V,Fe.fontSize);var er=r.l2p(Fe.x),re=F6(this),xe=gi.bBox(re.node());J=Math.max(J,af.lineCount(re)),W.push({top:0,bottom:10,height:10,left:er-xe.width/2,right:er+xe.width/2+2,width:xe.width+2})});var te=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ae=l.length,se=Math.abs((l[ae-1].x-l[0].x)*r._m)/(ae-1),$=te?se/2:se,fe=te?r.ticklen:V*1.25*J,ie=Math.sqrt(Math.pow($,2)+Math.pow(fe,2)),ue=$/ie,ce=r.autotickangles.map(function(Fe){return Fe*Math.PI/180}),oe=ce.find(function(Fe){return Math.abs(Math.cos(Fe))<=ue});oe===void 0&&(oe=ce.reduce(function(Fe,er){return Math.abs(Math.cos(Fe))<Math.abs(Math.cos(er))?Fe:er},ce[0]));var be=oe*(180/Math.PI);if(te){var Re=2;for(r.ticks&&(Re+=r.tickwidth/2),j=0;j<W.length;j++){var ye=l[j].xbnd,Ce=W[j];if(ye[0]!==null&&Ce.left-r.l2p(ye[0])<Re||ye[1]!==null&&r.l2p(ye[1])-Ce.right<Re){y=be;break}}}else{var Me=r.ticklabelposition||"",Le=r.tickson||"",De=function(Fe){return Me.indexOf(Fe)!==-1},Ie=De("top"),qe=De("left"),Ze=De("right"),Je=De("bottom"),Xe=Le!=="boundaries"&&(Je||qe||Ie||Ze),Se=Xe?(r.tickwidth||0)+2*Pm:0;for(j=0;j<W.length-1;j++)if(Sr.bBoxIntersect(W[j],W[j+1],Se)){y=be;break}}y&&d(c,y)}}r._selections&&(r._selections[o]=c);var b=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(y=f,b.push(function(){d(c,f)})):b.push(m),r._tickAngles&&b.push(function(){r._tickAngles[o]=y===null?ya(u)?u:0:y});var A=function(){var V=0,W=0;return c.each(function(j,J){var te=F6(this),ae=te.select(".text-math-group");if(ae.empty()){var se;r._vals[J]&&(se=r._vals[J].bb||gi.bBox(te.node()),r._vals[J].bb=se),V=Math.max(V,se.width),W=Math.max(W,se.height)}}),{labelsMaxW:V,labelsMaxH:W}},w=r._anchorAxis;if(w&&(w.autorange||w.insiderange)&&jh(r)&&!Xxe(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),w.autorange&&(a._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,b.push(A)),w.insiderange)){var x=A(),_=r._id.charAt(0)==="y"?x.labelsMaxW:x.labelsMaxH;_+=2*Pm,r.ticklabelposition==="inside"&&(_+=r.ticklen||0);var k=r.side==="right"||r.side==="top"?1:-1,T=k===1?1:0,q=k===1?0:1,C=[];C[q]=w.range[q];var E=w.range,P=w.r2p(E[T]),R=w.r2p(E[q]),N=a._insideTickLabelsUpdaterange[w._name+".range"];if(N){var I=w.r2p(N[T]),O=w.r2p(N[q]),U=k*(r._id.charAt(0)==="y"?1:-1);U*P<U*I&&(P=I,C[T]=E[T]=N[T]),U*R>U*O&&(R=O,C[q]=E[q]=N[q])}var Y=Math.abs(R-P);Y-_>0?(Y-=_,_*=1+_/Y):_=0,r._id.charAt(0)!=="y"&&(_=-_),C[T]=w.p2r(w.r2p(E[T])+k*_),w.autorange==="min"||w.autorange==="max reversed"?(C[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(C[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=C}var G=Sr.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function b5e(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,zm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Uh.stroke,r.dividercolor).style("stroke-width",gi.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ge.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 Uz(e){var r=e.title.font.size,t=(e.title.text.match(af.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(of+t*Yh):t?r*(t+1)*Yh:r}function x5e(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(af.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*of:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Oh+l*Yh));else{var s=jh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ge.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,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=gi.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Ixe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ge.shouldShowZeroLine=function(e,r,t){var a=Sr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Rm)&&(Jz(r,0)||!_5e(e,r,t,a)||w5e(e,r))};Ge.clipEnds=function(e,r){return r.filter(function(t){return Jz(e,t.x)})};function Jz(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function _5e(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=Ge.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function u(p){if(!p.showline||!p.linewidth)return!1;var 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 A in b)if(m(b[A][0])||m(b[A][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=Ge.list(e,l),v=0;v<c.length;v++){var d=c[v];if(d._mainAxis===n&&u(d,s))return!0}}function w5e(e,r){for(var t=e._fullData,a=r._mainSubplot,n=r._id.charAt(0),i=0;i<t.length;i++){var o=t[i];if(o.visible===!0&&o.xaxis+o.yaxis===a&&(Hh.traceIs(o,"bar-like")&&o.orientation==={x:"h",y:"v"}[n]||o.fill&&o.fill.charAt(o.fill.length-1)===n))return!0}return!1}function F6(e){var r=Yi.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}Ge.allowAutoMargin=function(e){for(var r=Ge.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(o0.allowAutoMargin(e,O6(a)),a.mirror&&o0.allowAutoMargin(e,Kz(a))),Hh.getComponentMethod("rangeslider","isVisible")(a)&&o0.allowAutoMargin(e,Qz(a))}};function O6(e){return e._id+".automargin"}function Kz(e){return O6(e)+".mirror"}function Qz(e){return e._id+".rangeslider"}Ge.swap=function(e,r){for(var t=A5e(e,r),a=0;a<t.length;a++)T5e(e,t[a].x,t[a].y)};function A5e(e,r){var t=[],a,n;for(a=0;a<r.length;a++){var i=[],o=e._fullData[r[a]].xaxis,l=e._fullData[r[a]].yaxis;if(!(!o||!l)){for(n=0;n<t.length;n++)(t[n].x.indexOf(o)!==-1||t[n].y.indexOf(l)!==-1)&&i.push(n);if(!i.length){t.push({x:[o],y:[l]});continue}var s=t[i[0]],u;if(i.length>1)for(n=1;n<i.length;n++)u=t[i[n]],Sm(s.x,u.x),Sm(s.y,u.y);Sm(s.x,[o]),Sm(s.y,[l])}}return t}function Sm(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function T5e(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(Ge.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(Ge.getFromId(e,t[o]));var s=Object.keys(Bxe),u=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<s.length;o++){var c=s[o],v=a[0][c],d=n[0][c],p=!0,y=!1,m=!1;if(!(c.charAt(0)==="_"||typeof v=="function"||u.indexOf(c)!==-1)){for(l=1;l<a.length&&p;l++){var b=a[l][c];c==="type"&&f.indexOf(v)!==-1&&f.indexOf(b)!==-1&&v!==b?y=!0:b!==v&&(p=!1)}for(l=1;l<n.length&&p;l++){var A=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(A)!==-1&&d!==A?m=!0:n[l][c]!==d&&(p=!1)}p&&(y&&(i[a[0]._name].type="linear"),m&&(i[n[0]._name].type="linear"),M5e(i,c,a,n,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var w=e._fullLayout.annotations[o];r.indexOf(w.xref)!==-1&&t.indexOf(w.yref)!==-1&&Sr.swapAttrs(i.annotations[o],["?"])}}function M5e(e,r,t,a,n){var i=Sr.nestedProperty,o=i(e[t[0]._name],r).get(),l=i(e[a[0]._name],r).get(),s;for(r==="title"&&(o&&o.text===n.x&&(o.text=n.y),l&&l.text===n.y&&(l.text=n.x)),s=0;s<t.length;s++)i(e,t[s]._name+"."+r).set(l);for(s=0;s<a.length;s++)i(e,a[s]._name+"."+r).set(o)}function H6(e){return e._id==="angularaxis"}function L6(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 jh(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function Nm(e,r){jh(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function z6(e,r,t,a){var n=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,i;a?i=e.side==="right"?r:-r:i=r,n in t||(t[n]={}),e.side in t[n]||(t[n][e.side]=0),t[n][e.side]+=i}function k5e(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function S5e(e,r){return/%f/.test(r)?e>=Yxe:/%L/.test(r)?e>=Gxe:/%[SX]/.test(r)?e>=Em:/%M/.test(r)?e>=Gh:/%[HI]/.test(r)?e>=cl:/%p/.test(r)?e>=Bs:/%[Aadejuwx]/.test(r)?e>=Sn:/%[UVW]/.test(r)?e>=bi:/%[Bbm]/.test(r)?e>=Dm:/%[q]/.test(r)?e>=Cm:/%[Yy]/.test(r)?e>=Lm:!0}});var tN=z((rZe,rN)=>{"use strict";rN.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var U6=z((tZe,aN)=>{"use strict";var q5e=tN();aN.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(q5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iN=z((aZe,nN)=>{var L5e={left:0,top:0};nN.exports=C5e;function C5e(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=D5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function D5e(e){return e===window||e===document||e===document.body?L5e:e.getBoundingClientRect()}});var G6=z((nZe,oN)=>{"use strict";var E5e=A4();function P5e(){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}oN.exports=E5e&&P5e()});var sN=z((iZe,lN)=>{"use strict";lN.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var cN=z((oZe,fN)=>{"use strict";var uN=ke(),R5e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];fN.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=uN.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=uN.constrain(Math.floor(t*3),0,2),R5e[t][r]}});var hN=z((lZe,vN)=>{"use strict";var F5e=Ch(),z5e=zp(),N5e=wh().getGraphDiv,I5e=(ah(),ze(th)),Y6=vN.exports={};Y6.wrapped=function(e,r,t){var i;e=N5e(e),e._fullLayout&&z5e.clear(e._fullLayout._uid+I5e.HOVERID);let a=e._hoverdata;Y6.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};Y6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&F5e.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 Vi=z((sZe,yN)=>{"use strict";var B5e=iN(),V6=M4(),O5e=G6(),H5e=ke().removeElement,U5e=(Pa(),ze(Ea)),lf=yN.exports={};lf.align=sN();lf.getCursor=cN();var pN=hN();lf.unhover=pN.wrapped;lf.unhoverRaw=pN.raw;lf.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,O5e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,_){return Math.abs(w)<_&&(w=0),Math.abs(x)<_&&(x=0),[w,x]}var y=r.clampFn||p;function m(w){t._dragged=!1,t._dragging=!0;var x=dN(w);o=x[0],l=x[1],v=w.target,c=w,d=w.buttons===2||w.ctrlKey,typeof w.clientX=="undefined"&&typeof w.clientY=="undefined"&&(w.clientX=o,w.clientY=l),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(w,o,l),V6&&!d?(f=mN(),f.style.cursor=window.getComputedStyle(i).cursor):V6||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",A),document.addEventListener("touchend",A),r.dragmode!==!1&&(w.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(w){w.preventDefault();var x=dN(w),_=r.minDrag||U5e.MINDRAG,k=y(x[0]-o,x[1]-l,_),T=k[0],q=k[1];(T||q)&&(t._dragged=!0,lf.unhover(t,w)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:T,dy:q},r.moveFn(T,q))}function A(w){if(delete t._dragdata,r.dragmode!==!1&&(w.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",A),document.removeEventListener("touchend",A),V6?H5e(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(_=>{var k=c[_];!x[_]&&typeof k!="function"&&(x[_]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function mN(){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}lf.coverSlip=mN;function dN(e){return B5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Os=z((uZe,gN)=>{"use strict";gN.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 _N=z((fZe,xN)=>{"use strict";var j6=Os(),Wh="data-savedcursor",bN="!!";xN.exports=function(r,t){var a=r.attr(Wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i<n.length;i++){var o=n[i];o.indexOf("cursor-")===0&&r.attr(Wh,o.slice(7)).classed(o,!1)}r.attr(Wh)||r.attr(Wh,bN)}j6(r,t)}else a&&(r.attr(Wh,null),a===bN?j6(r):j6(r,a))}});var X6=z((cZe,wN)=>{"use strict";var W6=Ca(),G5e=Ii();wN.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:G5e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:W6({editType:"legend"}),grouptitlefont:W6({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},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:W6({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Zh=z(Xh=>{"use strict";Xh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Xh.isVertical=function(r){return r.orientation!=="h"};Xh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Xh.getId=function(r){return r._id||"legend"}});var $6=z((hZe,AN)=>{"use strict";var Im=Tr(),xi=ke(),Y5e=Ct(),V5e=On(),j5e=X6(),W5e=Ic(),Z6=Zh();function X5e(e,r,t,a,n){var i=r[e]||{},o=Y5e.newContainer(t,e);function l(W,j){return xi.coerce(i,o,j5e,W,j)}var s=xi.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(W,j){var J=f._input,te=f;return xi.coerce(J,te,V5e,W,j)},v=t.font||{},d=xi.coerceFont(l,"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 A(W){return Im.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(A).forEach(function(W){W.visible&&p++;for(var j=0;j<W._length;j++){var J=(Array.isArray(W.legend)?W.legend[j]:W.legend)||"legend";J===e&&((Array.isArray(W.showlegend)?W.showlegend[j]:W.showlegend)||W._dfltShowLegend)&&(y=!0,p++)}if(e==="legend"&&W._length>W.legend.length)for(var te=W.legend.length;te<W._length;te++)y=!0,p++});for(var w=a.concat(b).filter(function(W){return!A(f)&&e===(W.legend||"legend")}),x=0;x<w.length;x++)if(f=w[x],!!f.visible){var _=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,(!_&&Im.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),xi.coerceFont(c,"legendgrouptitle.font",d)),(!_&&Im.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(m=Z6.isGrouped({traceorder:m})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(m=Z6.isReversed({traceorder:m})?"reversed+grouped":"grouped")}var k=xi.coerce(r,t,W5e,"showlegend",t.showlegend||y&&p>(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var T=l("orientation"),q=l("yref"),C=l("xref"),E=T==="h",P=q==="paper",R=C==="paper",N,I,O,U="left";E?(N=0,Im.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,O="bottom"):(I=1,O="top"):P?(I=-.1,O="top"):(I=0,O="bottom")):(I=1,O="auto",R?N=1.02:(N=1,U="right")),xi.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:N}},"x"),xi.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",m),Z6.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let Y=l("groupclick");l("groupdoubleclick",Y),l("xanchor",U),l("yanchor",O),l("maxheight"),l("valign"),xi.noneOrAll(i,o,["x","y"]);var G=l("title.text");if(G){l("title.side",E?"left":"top");var V=xi.extendFlat({},s,{size:xi.bigFont(s.size)});xi.coerceFont(l,"title.font",V);let W=n>1;l("titleclick",W?"toggle":!1),l("titledoubleclick",W?"toggleothers":!1)}}AN.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n<o.length;n++){var l=o[n];if(l.showlegend){var s={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(s)}}var u=["legend"];for(n=0;n<i.length;n++)Array.isArray(i[n].legend)?u=u.concat(i[n].legend):xi.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];X5e(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Q6=z(K6=>{"use strict";var Hs=Tr(),J6=ke(),Z5e=J6.pushUnique,$5e=Zh(),TN=!0;K6.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&TN&&t.data&&t._context.showTips&&(J6.notifier(J6._(t,"Double-click on legend to isolate one trace"),"long",t),TN=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(De=>De.showlegend||De.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var y=p.legendgroup,m,b,A,w,x,_,k={},T=[],q=[],C=[];function E(De,Ie){var qe=T.indexOf(De),Ze=k.visible;return Ze||(Ze=k.visible=[]),T.indexOf(De)===-1&&(T.push(De),qe=T.length-1),Ze[qe]=Ie,qe}var P=(o.shapes||[]).map(function(De){return De._input}),R=!1;function N(De,Ie){P[De].visible=Ie,R=!0}function I(De,Ie){if(!(l.groupTitle&&!u)){var qe=De._isShape,Ze=De.index;Ze===void 0&&(Ze=De._index);var Je=De.visible===!1?!1:Ie;qe?N(Ze,Je):E(Ze,Je)}}var O=p.legend;if(!p._isShape&&Hs.traceIs(p,"pie-like")){var U=l.label,Y=f.indexOf(U);if(n==="toggle")Y===-1?f.push(U):f.splice(Y,1);else if(n==="toggleothers"){var G=Y!==-1,V=[];for(m=0;m<t.calcdata.length;m++){var W=t.calcdata[m];for(b=0;b<W.length;b++){var j=W[b],J=j.label;O===W[0].trace.legend&&U!==J&&(f.indexOf(J)===-1&&(G=!0),Z5e(f,J),V.push(J))}}if(!G)for(var te=0;te<V.length;te++){var ae=f.indexOf(V[te]);ae!==-1&&f.splice(ae,1)}}Hs.call("_guiRelayout",t,"hiddenlabels",f)}else{var se=y&&y.length,$=[],fe;if(se)for(m=0;m<d.length;m++)fe=d[m],fe.visible&&fe.legendgroup===y&&$.push(m);if(n==="toggle"){var ie;switch(p.visible){case!0:ie="legendonly";break;case!1:ie=!1;break;case"legendonly":ie=!0;break}if(se)if(u)for(m=0;m<d.length;m++){var ue=d[m];ue.visible!==!1&&ue.legendgroup===y&&I(ue,ie)}else I(p,ie);else I(p,ie)}else if(n==="toggleothers"){var ce,oe,be,Re,ye,Ce=!0;let De=se&&u;for(m=0;m<d.length;m++)if(ye=d[m],ce=ye===p,be=ye.showlegend!==!0,!(ce||be)&&(oe=De&&ye.legendgroup===y,!oe&&ye.legend===O&&ye.visible===!0&&!Hs.traceIs(ye,"notLegendIsolatable"))){Ce=!1;break}for(m=0;m<d.length;m++)if(ye=d[m],!(ye.visible===!1||ye.legend!==O)&&!Hs.traceIs(ye,"notLegendIsolatable"))switch(p.visible){case"legendonly":I(ye,!0);break;case!0:Re=Ce?!0:"legendonly",ce=ye===p,be=ye.showlegend!==!0&&!ye.legendgroup,oe=ce||De&&ye.legendgroup===y,I(ye,oe||be?!0:Re);break}}for(m=0;m<q.length;m++)if(A=q[m],!!A){var Me=A.constructUpdate(),Le=Object.keys(Me);for(b=0;b<Le.length;b++)w=Le[b],_=k[w]=k[w]||[],_[C[m]]=Me[w]}for(x=Object.keys(k),m=0;m<x.length;m++)for(w=x[m],b=0;b<T.length;b++)k[w].hasOwnProperty(b)||(k[w][b]=void 0);R?Hs.call("_guiUpdate",t,k,{shapes:P},T):Hs.call("_guiRestyle",t,k,T)}};K6.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=$5e.getId(t),l=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(A){return u(A)&&A.visible===!0}),c=!1;else{let b=s.some(function(A){return!u(A)&&A.visible===!0&&A.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var y=!1,m=0;m<s.length;m++){let b=s[m],A=u(b);if(!A){let _=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||_)continue}let x=(A?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==x&&(b._isShape?(p[b._index].visible=x,y=!0):(d.push(b.index),v.visible.push(x)))}y?Hs.call("_guiUpdate",r,v,{shapes:p},d):d.length&&Hs.call("_guiRestyle",r,v,d)}});var e7={};qt(e7,{itemGap:()=>a_e,scrollBarColor:()=>Q5e,scrollBarEnterAttrs:()=>r_e,scrollBarMargin:()=>e_e,scrollBarMinHeight:()=>K5e,scrollBarWidth:()=>J5e,titlePad:()=>t_e});var J5e,K5e,Q5e,e_e,r_e,t_e,a_e,r7=St(()=>{"use strict";J5e=6,K5e=20,Q5e="#808BA4",e_e=4,r_e={rx:20,ry:3,width:0,height:0},t_e=2,a_e=5});var SN=z((pZe,kN)=>{"use strict";var{isArrayOrTypedArray:t7}=Zn(),MN=Tr(),a7=Zh();kN.exports=function(r,t,a){var n=t._inHover,i=a7.isGrouped(t),o=a7.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(W,j,J){if(t.visible!==!1&&!(a&&W!==t._id))if(j===""||!a7.isGrouped(t)){var te="~~i"+c;s.push(te),l[te]=[J],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[J]):l[j].push(J)}for(d=0;d<r.length;d++){var m=r[d],b=m[0],A=b.trace,w=A.legend,x=A.legendgroup;if(!(!n&&(!A.visible||!A.showlegend)))if(MN.traceIs(A,"pie-like")){var _=Array.isArray(A.legend),k=Array.isArray(A.showlegend);for(f[x]||(f[x]={}),p=0;p<m.length;p++)if(!(k&&A.showlegend[m[p].i]===!1)){_&&(w=A.legend[m[p].i]||"legend");var T=m[p].label;f[x][T]||(y(w,x,{label:T,color:m[p].color,i:m[p].i,trace:A,pts:m[p].pts}),f[x][T]=!0,v=Math.max(v,(T||"").length))}}else y(w,x,b),v=Math.max(v,(A.name||"").length)}if(!s.length)return[];var q=!u||!i,C=[];for(d=0;d<s.length;d++){var E=l[s[d]];q?C.push(E[0]):C.push(E)}for(q&&(C=[C]),d=0;d<C.length;d++){var P=1/0;for(p=0;p<C[d].length;p++){var R=C[d][p].trace.legendrank,N=t7(R)?Math.min(R):R;P>N&&(P=N)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var I=function(W,j){return W[0]._groupMinRank-j[0]._groupMinRank||W[0]._preGroupSort-j[0]._preGroupSort},O=function(W,j){var J=t7(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,te=t7(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return J-te||W._preSort-j._preSort};for(C.forEach(function(W,j){W[0]._preGroupSort=j}),C.sort(I),d=0;d<C.length;d++){C[d].forEach(function(W,j){W._preSort=j}),C[d].sort(O);var U=C[d][0].trace,Y=null;for(p=0;p<C[d].length;p++){var G=C[d][p].trace.legendgrouptitle;if(G&&G.text){Y=G,n&&(G.font=t._groupTitleFont);break}}if(o&&C[d].reverse(),Y){var V=!1;for(p=0;p<C[d].length;p++)if(MN.traceIs(C[d][p].trace,"pie-like")){V=!0;break}C[d].unshift({i:-1,groupTitle:Y,noClick:V,trace:{showlegend:U.showlegend,legendgroup:U.legendgroup,legend:U.legend,visible:t.groupclick==="toggleitem"?!0:U.visible}})}for(p=0;p<C[d].length;p++)C[d][p]=[C[d][p]]}return t._lgroupsLength=C.length,t._maxNameLength=v,C}});var Om=z(sf=>{"use strict";var Bm=ke();function qN(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}sf.formatPiePercent=function(r,t){var a=qN((r*100).toPrecision(3));return Bm.numSeparate(a,t)+"%"};sf.formatPieValue=function(r,t){var a=qN(r.toPrecision(10));return Bm.numSeparate(a,t)};sf.getFirstFilled=function(r,t){if(Bm.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};sf.castOption=function(r,t){if(Bm.isArrayOrTypedArray(r))return sf.getFirstFilled(r,t);if(r)return r};sf.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var CN=z((yZe,LN)=>{"use strict";var n_e=Jr(),i_e=qr();LN.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?n_e.pointStyle(r,a,n,t):i_e.fill(r,t.color)}});var Hm=z((gZe,PN)=>{"use strict";var DN=qr(),EN=Om().castOption,o_e=CN();PN.exports=function(r,t,a,n){var i=a.marker.line,o=EN(i.color,t.pts)||DN.defaultLine,l=EN(i.width,t.pts)||0;r.call(o_e,t,a,n).style("stroke-width",l).call(DN.stroke,o)}});var l7=z((bZe,BN)=>{"use strict";var qn=Pr(),n7=Tr(),mn=ke(),RN=mn.strTranslate,_i=Jr(),ji=qr(),i7=yi().extractOpts,Um=ri(),l_e=Hm(),s_e=Om().castOption,u_e=(r7(),ze(e7)),FN=12,zN=5,uf=2,f_e=10,f0=5;BN.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+u_e.itemGap*2)/2,s=RN(l,0),u=function(T,q,C,E){var P;if(T+1)P=T;else if(q&&q.width>0)P=q.width;else return 0;return i?E:Math.min(P,C)};r.each(function(T){var q=qn.select(this),C=mn.ensureSingle(q,"g","layers");C.style("opacity",T[0].trace.opacity);var E=a.indentation,P=a.valign,R=T[0].lineHeight,N=T[0].height;if(P==="middle"&&E===0||!R||!N)C.attr("transform",null);else{var I={top:1,bottom:-1}[P],O=I*(.5*(R-N+3))||0,U=a.indentation;C.attr("transform",RN(U,O))}var Y=C.selectAll("g.legendfill").data([T]);Y.enter().append("g").classed("legendfill",!0);var G=C.selectAll("g.legendlines").data([T]);G.enter().append("g").classed("legendlines",!0);var V=C.selectAll("g.legendsymbols").data([T]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([T]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(x).each(w).each(f).each(c).each(b).each(A);function f(T){var q=NN(T),C=q.showFill,E=q.showLine,P=q.showGradientLine,R=q.showGradientFill,N=q.anyFill,I=q.anyLine,O=T[0],U=O.trace,Y,G,V=i7(U),W=V.colorscale,j=V.reversescale,J=function(ue){if(ue.size())if(C)_i.fillGroupStyle(ue,t,!0);else{var ce="legendfill-"+U.uid;_i.gradient(ue,t,ce,o7(j),W,"fill")}},te=function(ue){if(ue.size()){var ce="legendline-"+U.uid;_i.lineGroupStyle(ue),_i.gradient(ue,t,ce,o7(j),W,"stroke")}},ae=Um.hasMarkers(U)||!N?"M5,0":I?"M5,-2":"M5,-3",se=qn.select(this),$=se.select(".legendfill").selectAll("path").data(C||R?[T]:[]);if($.enter().append("path").classed("js-fill",!0),$.exit().remove(),$.attr("d",ae+"h"+o+"v6h-"+o+"z").call(J),E||P){var fe=u(void 0,U.line,f_e,zN);G=mn.minExtend(U,{line:{width:fe}}),Y=[mn.minExtend(O,{trace:G})]}var ie=se.select(".legendlines").selectAll("path").data(E||P?[Y]:[]);ie.enter().append("path").classed("js-line",!0),ie.exit().remove(),ie.attr("d",ae+(P?"l"+o+",0.0001":"h"+o)).call(E?_i.lineGroupStyle:te)}function c(T){var q=NN(T),C=q.anyFill,E=q.anyLine,P=q.showLine,R=q.showMarker,N=T[0],I=N.trace,O=!R&&!E&&!C&&Um.hasText(I),U,Y;function G(fe,ie,ue,ce){var oe=mn.nestedProperty(I,fe).get(),be=mn.isArrayOrTypedArray(oe)&&ie?ie(oe):oe;if(i&&be&&ce!==void 0&&(be=ce),ue){if(be<ue[0])return ue[0];if(be>ue[1])return ue[1]}return be}function V(fe){return N._distinct&&N.index&&fe[N.index]?fe[N.index]:fe[0]}if(R||O||P){var W={},j={};if(R){W.mc=G("marker.color",V);var J=I.type==="scattermap";W.mx=J?"circle":G("marker.symbol",V),W.mo=G("marker.opacity",mn.mean,[.2,1]),W.mlc=G("marker.line.color",V),W.mlw=G("marker.line.width",mn.mean,[0,5],uf),W.mld=G("marker.line.dash",V),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var te=G("marker.size",mn.mean,[2,16],FN);W.ms=te,j.marker.size=te}P&&(j.line={width:G("line.width",V,[0,10],zN)}),O&&(W.tx="Aa",W.tp=G("textposition",V),W.ts=10,W.tc=G("textfont.color",V),W.tf=G("textfont.family",V),W.tw=G("textfont.weight",V),W.ty=G("textfont.style",V),W.tv=G("textfont.variant",V),W.tC=G("textfont.textcase",V),W.tE=G("textfont.lineposition",V),W.tS=G("textfont.shadow",V)),U=[mn.minExtend(N,W)],Y=mn.minExtend(I,j),Y.selectedpoints=null,Y.texttemplate=null}var ae=qn.select(this).select("g.legendpoints"),se=ae.selectAll("path.scatterpts").data(R?U:[]);se.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),se.exit().remove(),se.call(_i.pointStyle,Y,t),R&&(U[0].mrc=3);var $=ae.selectAll("g.pointtext").data(O?U:[]);$.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),$.exit().remove(),$.selectAll("text").call(_i.textPointStyle,Y,t)}function v(T){var q=T[0].trace,C=q.type==="waterfall";if(T[0]._distinct&&C){var E=T[0].trace[T[0].dir].marker;return T[0].mc=E.color,T[0].mlw=E.line.width,T[0].mlc=E.line.color,y(T,this,"waterfall")}var P=[];q.visible&&C&&(P=T[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 R=qn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N){var I=qn.select(this),O=q[N[0]].marker,U=u(void 0,O.line,f0,uf);I.attr("d",N[1]).style("stroke-width",U+"px").call(ji.fill,O.color),U&&I.call(ji.stroke,O.line.color)})}function d(T){y(T,this)}function p(T){y(T,this,"funnel")}function y(T,q,C){var E=T[0].trace,P=E.marker||{},R=P.line||{},N=P.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=C?E.visible&&E.type===C:n7.traceIs(E,"bar"),O=qn.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(I?[T]:[]);O.enter().append("path").classed("legend"+C,!0).attr("d",N).attr("transform",s),O.exit().remove(),O.each(function(U){var Y=qn.select(this),G=U[0],V=u(G.mlw,P.line,f0,uf);Y.style("stroke-width",V+"px");var W=G.mcc;if(!a._inHover&&"mc"in G){var j=i7(P),J=j.mid;J===void 0&&(J=(j.max+j.min)/2),W=_i.tryColorscale(P,"")(J)}var te=W||G.mc||P.color,ae=P.pattern,se=_i.getPatternAttr,$=ae&&(se(ae.shape,0,"")||se(ae.path,0,""));if($){var fe=se(ae.bgcolor,0,null),ie=se(ae.fgcolor,0,null),ue=ae.fgopacity,ce=IN(ae.size,8,10),oe=IN(ae.solidity,.5,1),be="legend-"+E.uid;Y.call(_i.pattern,"legend",t,be,$,ce,oe,W,ae.fillmode,fe,ie,ue)}else Y.call(ji.fill,te);V&&ji.stroke(Y,G.mlc||R.color)})}function m(T){var q=T[0].trace,C=qn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&n7.traceIs(q,"box-violin")?[T]:[]);C.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),C.exit().remove(),C.each(function(){var E=qn.select(this);if((q.boxpoints==="all"||q.points==="all")&&ji.opacity(q.fillcolor)===0&&ji.opacity((q.line||{}).color)===0){var P=mn.minExtend(q,{marker:{size:i?FN:mn.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});C.call(_i.pointStyle,P,t)}else{var R=u(void 0,q.line,f0,uf);E.style("stroke-width",R+"px").call(ji.fill,q.fillcolor),R&&ji.stroke(E,q.line.color)}})}function b(T){var q=T[0].trace,C=qn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[T,T]:[]);C.enter().append("path").classed("legendcandle",!0).attr("d",function(E,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(E,P){var R=qn.select(this),N=q[P?"increasing":"decreasing"],I=u(void 0,N.line,f0,uf);R.style("stroke-width",I+"px").call(ji.fill,N.fillcolor),I&&ji.stroke(R,N.line.color)})}function A(T){var q=T[0].trace,C=qn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[T,T]:[]);C.enter().append("path").classed("legendohlc",!0).attr("d",function(E,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(E,P){var R=qn.select(this),N=q[P?"increasing":"decreasing"],I=u(void 0,N.line,f0,uf);R.style("fill","none").call(_i.dashLine,N.line.dash,I),I&&ji.stroke(R,N.line.color)})}function w(T){_(T,this,"pie")}function x(T){_(T,this,"funnelarea")}function _(T,q,C){var E=T[0],P=E.trace,R=C?P.visible&&P.type===C:n7.traceIs(P,C),N=qn.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(R?[T]:[]);if(N.enter().append("path").classed("legend"+C,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),N.exit().remove(),N.size()){var I=P.marker||{},O=u(s_e(I.line.width,E.pts),I.line,f0,uf),U="pieLike",Y=mn.minExtend(P,{marker:{line:{width:O}}},U),G=mn.minExtend(E,{trace:Y},U);l_e(N,G,Y,t)}}function k(T){var q=T[0].trace,C,E=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],C=!0;break;case"choropleth":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],C=!0;break;case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],C="radial";break;case"cone":E=[["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"]],C=!1;break;case"streamtube":E=[["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"]],C=!1;break;case"surface":E=[["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"]],C=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],C=!1;break}var P=qn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,N){var I=qn.select(this),O=i7(q),U=O.colorscale,Y=O.reversescale,G=function(J){if(J.size()){var te="legendfill-"+q.uid;_i.gradient(J,t,te,o7(Y,C==="radial"),U,"fill")}},V;if(U){if(!C){var j=U.length;V=N===0?U[Y?j-1:0][1]:N===1?U[Y?0:j-1][1]:U[Math.floor((j-1)/2)][1]}}else{var W=q.vertexcolor||q.facecolor||q.color;V=mn.isArrayOrTypedArray(W)?W[N]||W[0]:W}I.attr("d",R[0]),V?I.call(ji.fill,V):I.call(G)})}};function o7(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function NN(e){var r=e[0].trace,t=r.contours,a=Um.hasLines(r)||r.visible&&r.type==="quiver",n=Um.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function IN(e,r,t){return e&&mn.isArrayOrTypedArray(e)?r:e>t?t:e}});var c7=z((xZe,XN)=>{"use strict";var Hn=Pr(),ga=ke(),u7=ma(),ff=Tr(),Vm=Ch(),s7=Vi(),ba=Jr(),$h=qr(),cf=Fa(),ON=Q6().handleItemClick,HN=Q6().handleTitleClick,Ta=(r7(),ze(e7)),f7=(on(),ze(nn)),jN=f7.LINE_SPACING,v0=f7.FROM_TL,UN=f7.FROM_BR,GN=SN(),c_e=l7(),h0=Zh(),c0=1,v_e=/^legend[0-9]*$/;XN.exports=function(r,t){if(t)YN(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Hn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(v_e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];YN(r,s)}}};function h_e(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*jN,i=0,o=e.node(),l=ba.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*Ta.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*Ta.titlePad-l),cf.positionText(e,t+Ta.titlePad+i,t+n)}}function YN(e,r){var t=r||{},a=e._fullLayout,n=h0.getId(t),i,o,l=t._inHover;if(l?(o=t.layer,i="hover"):(o=a._infolayer,i=n),!!o){i+=a._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var s;if(l){if(!t.entries)return;s=GN(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 d={_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:d}])}}s=a.showlegend&&GN(u,t,a._legends.length>1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),u7.autoMargin(e,n);var y=ga.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),m=ga.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),b=ga.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});b.call($h.stroke,t.bordercolor).call($h.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var A=ga.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=ga.ensureSingle(A,"text",n+"titletext"),x.attr("text-anchor","start").call(ba.font,w.font).text(w.text),Ym(x,A,e,t,c0),!l&&(t.titleclick||t.titledoubleclick)&&m_e(A,e,t,n)):(A.selectAll("."+n+"titletext").remove(),A.selectAll("."+n+"titletoggle").remove());var _=ga.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Ta.scrollBarEnterAttrs).call($h.fill,Ta.scrollBarColor)}),k=A.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var T=k.selectAll("g.traces").data(ga.identity);T.enter().append("g").attr("class","traces"),T.exit().remove(),T.style("opacity",function(q){let C=q[0],E=C.trace;if(C.groupTitle){let P=E.legendgroup,R=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(R).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return ff.traceIs(E,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Hn.select(this).call(d_e,e,t)}).call(c_e,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||Hn.select(this).call(p_e,e,n)}),ga.syncOrAsync([u7.previousPromises,function(){return b_e(e,k,T,t,A)},function(){var q=a._size,C=t.borderwidth,E=t.xref==="paper",P=t.yref==="paper";if(w.text){let Ce=(a.shapes||[]).filter(function(Le){return Le.showlegend}),Me=e._fullData.concat(Ce).some(function(Le){let De=Le.legend||"legend";var Ie=Array.isArray(De)?De.includes(n):De===n;return Ie&&Le.visible===!0});x.style("opacity",Me?1:.5)}if(!l){var R,N;E?R=q.l+q.w*t.x-v0[jm(t)]*t._width:R=a.width*t.x-v0[jm(t)]*t._width,P?N=q.t+q.h*(1-t.y)-v0[Wm(t)]*t._effHeight:N=a.height*(1-t.y)-v0[Wm(t)]*t._effHeight;var I=x_e(e,n,R,N);if(I)return;if(a.margin.autoexpand){var O=R,U=N;R=E?ga.constrain(R,0,a.width-t._width):O,N=P?ga.constrain(N,0,a.height-t._effHeight):U,R!==O&&ga.log("Constrain "+n+".x to make legend fit inside graph"),N!==U&&ga.log("Constrain "+n+".y to make legend fit inside graph")}ba.setTranslate(y,R,N)}if(_.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;l&&(Y=t._height),b.attr({width:t._width-C,height:Y-C,x:C/2,y:C/2}),ba.setTranslate(A,0,0),m.select("rect").attr({width:t._width-2*C,height:Y-2*C,x:C,y:C}),ba.setClipUrl(A,i,e),ba.setRect(_,0,0,0,0),delete t._scrollY}else{var G=Math.max(Ta.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-G-2*Ta.scrollBarMargin,W=t._height-t._effHeight,j=V/W,J=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*C+Ta.scrollBarWidth+Ta.scrollBarMargin,height:t._effHeight-C,x:C/2,y:C/2}),m.select("rect").attr({width:t._width-2*C+Ta.scrollBarWidth+Ta.scrollBarMargin,height:t._effHeight-2*C,x:C,y:C+J}),ba.setClipUrl(A,i,e),ce(J,G,j),y.on("wheel",function(){J=ga.constrain(t._scrollY+Hn.event.deltaY/W*V,0,W),ce(J,G,j),J!==0&&J!==W&&Hn.event.preventDefault()});var te,ae,se,$=function(Ce,Me,Le){var De=(Le-Me)/j+Ce;return ga.constrain(De,0,W)},fe=function(Ce,Me,Le){var De=(Me-Le)/j+Ce;return ga.constrain(De,0,W)},ie=Hn.behavior.drag().on("dragstart",function(){var Ce=Hn.event.sourceEvent;Ce.type==="touchstart"?te=Ce.changedTouches[0].clientY:te=Ce.clientY,se=J}).on("drag",function(){var Ce=Hn.event.sourceEvent;Ce.buttons===2||Ce.ctrlKey||(Ce.type==="touchmove"?ae=Ce.changedTouches[0].clientY:ae=Ce.clientY,J=$(se,te,ae),ce(J,G,j))});_.call(ie);var ue=Hn.behavior.drag().on("dragstart",function(){var Ce=Hn.event.sourceEvent;Ce.type==="touchstart"&&(te=Ce.changedTouches[0].clientY,se=J)}).on("drag",function(){var Ce=Hn.event.sourceEvent;Ce.type==="touchmove"&&(ae=Ce.changedTouches[0].clientY,J=fe(se,te,ae),ce(J,G,j))});A.call(ue)}function ce(Ce,Me,Le){t._scrollY=e._fullLayout[n]._scrollY=Ce,ba.setTranslate(A,0,-Ce),ba.setRect(_,t._width,Ta.scrollBarMargin+Ce*Le,Ta.scrollBarWidth,Me),m.select("rect").attr("y",C+Ce)}if(e._context.edits.legendPosition){var oe,be,Re,ye;y.classed("cursor-move",!0),s7.init({element:y.node(),gd:e,prepFn:function(Ce){if(Ce.target!==_.node()){var Me=ba.getTranslate(y);Re=Me.x,ye=Me.y}},moveFn:function(Ce,Me){if(Re!==void 0&&ye!==void 0){var Le=Re+Ce,De=ye+Me;ba.setTranslate(y,Le,De),oe=s7.align(Le,t._width,q.l,q.l+q.w,t.xanchor),be=s7.align(De+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(oe!==void 0&&be!==void 0){var Ce={};Ce[n+".x"]=oe,Ce[n+".y"]=be,ff.call("_guiRelayout",e,Ce)}},clickFn:function(Ce,Me){var Le=o.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return Me.clientX>=De.left&&Me.clientX<=De.right&&Me.clientY>=De.top&&Me.clientY<=De.bottom});Le.size()>0&&WN(e,t,Le,Ce,Me)}})}}],e)}}function Gm(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function WN(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),ff.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Vm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&ON(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Vm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&ON(t,e,r,s,a)}}function d_e(e,r,t){var a=h0.getId(t),n=e.data()[0][0],i=n.trace,o=ff.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=ga.templateString(u,i._meta))));var c=ga.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ba.font,f).text(l?VN(u,s):u);var v=t.indentation+t.itemwidth+Ta.itemGap*2;cf.positionText(c,v,0),l?c.call(cf.makeEditable,{gd:r,text:u}).call(Ym,e,r,t).on("edit",function(d){this.text(VN(d,s)).call(Ym,e,r,t);var p={};return p.name=d,n.trace._isShape?ff.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):ff.call("_guiRestyle",r,p,i.index)}):Ym(c,e,r,t)}function VN(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 p_e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ga.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTime<a?i+=1:(i=1,r._legendMouseDownTime=n)}),o.on("mouseup",function(){if(!(r._dragged||r._editing)){var l=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>a&&(i=Math.max(i-1,1)),WN(r,l,e,i,Hn.event)}}))}function m_e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&ff.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=ga.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTime<i?l+=1:(l=1,r._legendMouseDownTime=o)}),s.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(l=Math.max(l-1,1));let u={event:Hn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Vm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&HN(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Vm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&HN(r,t,t.titledoubleclick))}))}function Ym(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),cf.convertToTspans(e,t,function(){y_e(r,t,a,n)})}function y_e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=h0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===c0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*jN,v,d;if(l){var p=ba.bBox(l);v=p.height,d=p.width,a===c0?ba.setTranslate(o,u,u+v*.75):ba.setTranslate(o,0,v*.25)}else{var y="."+s+(a===c0?"title":"")+"text",m=e.select(y),b=cf.lineCount(m),A=m.node();if(v=c*b,d=A?ba.bBox(A).width:0,a===c0)t.title.side==="left"&&(d+=Ta.itemGap*2),cf.positionText(m,u+Ta.titlePad,u+c);else{var w=Ta.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Ta.itemGap,d-=t.indentation+t.itemwidth),cf.positionText(m,w,-c*((b-1)/2-.3))}}a===c0?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function g_e(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 b_e(e,r,t,a,n){var i=e._fullLayout,o=h0.getId(a);a||(a=i[o]);var l=i._size,s=h0.isVertical(a),u=h0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=Ta.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=Wm(a),b=a.y<0||a.y===0&&m==="top",A=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,x={};let{orientation:_,yref:k}=a,{maxheight:T}=a,q=b||A||_!=="v"||k!=="paper";T||(T=q?.5:1);let C=q?i.height:l.h;a._maxHeight=Math.max(T>1?T:T*C,30);var E=0;a._width=0,a._height=0;var P=g_e(a);if(s)t.each(function(Ce){var Me=Ce[0].height;ba.setTranslate(this,c+P[0],c+P[1]+a._height+Me/2+d),a._height+=Me,a._width=Math.max(a._width,Ce[0].width)}),E=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(Ce,Me){ba.setTranslate(this,0,Me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=jm(a),N=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",O=A||b,U=i.width/2;a._maxWidth=Math.max(N?O&&R==="left"?l.l+l.w:U:I?O&&R==="right"?l.r+l.w:U:l.w,2*p);var Y=0,G=0;t.each(function(Ce){var Me=Gm(Ce,a,p);Y=Math.max(Y,Me),G+=Me}),E=null;var V=0;if(u){var W=0,j=0,J=0;r.each(function(){var Ce=0,Me=0;Hn.select(this).selectAll("g.traces").each(function(De){var Ie=Gm(De,a,p),qe=De[0].height;ba.setTranslate(this,P[0],P[1]+c+d+qe/2+Me),Me+=qe,Ce=Math.max(Ce,Ie),x[De[0].trace.legendgroup]=Ce});var Le=Ce+d;j>0&&Le+c+j>a._maxWidth?(V=Math.max(V,j),j=0,J+=W+w,W=Me):W=Math.max(W,Me),ba.setTranslate(this,j,J),j+=Le}),a._width=Math.max(V,j)+c,a._height=J+W+y}else{var te=t.size(),ae=G+v+(te-1)*d<a._maxWidth,se=0,$=0,fe=0,ie=0;t.each(function(Ce){var Me=Ce[0].height,Le=Gm(Ce,a,p,u),De=ae?Le:Y;f||(De+=d),De+c+$-d>=a._maxWidth&&(V=Math.max(V,ie),$=0,fe+=se,a._height+=se,se=0),ba.setTranslate(this,P[0]+c+$,P[1]+c+fe+Me/2+d),ie=$+Le+d,$+=De,se=Math.max(se,Me)}),ae?(a._width=$+v,a._height=se+y):(a._width=Math.max(V,ie)+v,a._height+=se+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+Ta.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+Ta.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ue=e._context.edits,ce=ue.legendText||ue.legendPosition;t.each(function(Ce){var Me=Hn.select(this).select("."+o+"toggle"),Le=Ce[0].height,De=Ce[0].trace.legendgroup,Ie=Gm(Ce,a,p);u&&De!==""&&(Ie=x[De]);var qe=ce?p:E||Ie;!s&&!f&&(qe+=d/2),ba.setRect(Me,0,-Le/2,qe,Le)});var oe=n.select("."+o+"titletext");oe.node()&&h_e(oe,a,c);var be=n.select("."+o+"titletoggle");if(be.size()&&oe.node()){var Re=oe.attr("x")||0,ye=Ta.titlePad;ba.setRect(be,Re-ye,c,a._titleWidth+2*ye,a._titleHeight+2*ye)}}function x_e(e,r,t,a){var n=e._fullLayout,i=n[r],o=jm(i),l=Wm(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 u7.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*v0[o],r:i._width*UN[o],b:i._effHeight*UN[l],t:i._effHeight*v0[l]});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 jm(e){return ga.isRightAnchor(e)?"right":ga.isCenterAnchor(e)?"center":"left"}function Wm(e){return ga.isBottomAnchor(e)?"bottom":ga.isMiddleAnchor(e)?"middle":"top"}});var p7=z(d7=>{"use strict";var vf=Pr(),Wl=Br(),ea=ke(),__e=ea.pushUnique,v7=ea.strTranslate,w_e=ea.strRotate,A_e=Ch(),Wi=Fa(),T_e=_N(),hl=Jr(),Ma=qr(),Xm=Vi(),dl=Yr(),M_e=(Pa(),ze(Ea)).zindexSeparator,p0=Tr(),wi=Ro(),hf=(ah(),ze(th)),k_e=$6(),S_e=c7(),tI=hf.YANGLE,h7=Math.PI*tI/180,q_e=1/Math.sin(h7),L_e=Math.cos(h7),C_e=Math.sin(h7),Ut=hf.HOVERARROWSIZE,Xr=hf.HOVERTEXTPAD,ZN={box:!0,ohlc:!0,violin:!0,candlestick:!0},D_e={scatter:!0,scattergl:!0,splom:!0};function $N(e,r){return e.distance-r.distance}d7.hover=function(r,t,a,n){r=ea.getGraphDiv(r);var i=t.target;ea.throttle(r._fullLayout._uid+hf.HOVERID,hf.HOVERMINTIME,function(){E_e(r,t,a,n,i)})};d7.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=lI(n),o=sI(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,A=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,_=m.eventData;if(_){var k=Math.min(b,A),T=Math.max(b,A),q=Math.min(w,x),C=Math.max(w,x),E=m.trace;if(p0.traceIs(E,"gl3d")){var P=n._fullLayout[E.scene]._scene.container,R=P.offsetLeft,N=P.offsetTop;k+=R,T+=R,q+=N,C+=N}_.bbox={x0:k+o,x1:T+o,y0:q+i,y1:C+i},_.xPixel=(b+A)/2,_.yPixel=(w+x)/2,t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:m.color||Ma.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:_}}),s=!1,u=nI(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:vf.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var A=m.y0-m.by/2;A-c<v?m.offset=v-A+c:m.offset=0,v=A+m.by+m.offset,b===t.anchorIndex&&(d=m.offset)}).each(function(m){m.offset-=d});var p=n._fullLayout._invScaleX,y=n._fullLayout._invScaleY;return oI(f,s,p,y),a?f:f.node()};function E_e(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(M_e)[0]);var i=Array.isArray(t)?t:[t],o,l=e._fullLayout,s=l.hoversubplots,u=l._plots||[],f=u[t],c=l._has("cartesian"),v=r.hovermode||l.hovermode,d=(v||"").charAt(0)==="x",p=(v||"").charAt(0)==="y",y,m;if(c&&(d||p)&&s==="axis"){for(var b=i.length,A=0;A<b;A++)if(o=i[A],u[o]){y=dl.getFromId(e,o,"x"),m=dl.getFromId(e,o,"y");var w=(d?y:m)._subplotsWith;if(w&&w.length)for(var x=0;x<w.length;x++)__e(i,w[x])}}if(f&&s!=="single"){var _=f.overlays.map(function(hr){return hr.id});i=i.concat(_)}for(var k=i.length,T=new Array(k),q=new Array(k),C=!1,E=0;E<k;E++)if(o=i[E],u[o])C=!0,T[E]=u[o].xaxis,q[E]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var P=l[o]._subplot;T[E]=P.xaxis,q[E]=P.yaxis}else{ea.warn("Unrecognized subplot: "+o);return}if(v&&!C&&(v="closest"),["x","y","closest","x unified","y unified"].indexOf(v)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Xm.unhoverRaw(e,r);var R=l.hoverdistance;R===-1&&(R=1/0);var N=l.spikedistance;N===-1&&(N=1/0);var I=[],O=[],U,Y,G,V,W,j,J,te,ae,se,$,fe,ie,ue={hLinePoint:null,vLinePoint:null},ce=!1;if(Array.isArray(r))for(v="array",G=0;G<r.length;G++)W=e.calcdata[r[G].curveNumber||0],W&&(j=W[0].trace,W[0].trace.hoverinfo!=="skip"&&(O.push(W),j.orientation==="h"&&(ce=!0)));else{var oe=e.calcdata.slice();for(oe.sort(function(hr,wt){var Vr=hr[0].trace.zorder||0,ht=wt[0].trace.zorder||0;return Vr-ht}),V=0;V<oe.length;V++)W=oe[V],j=W[0].trace,j.hoverinfo!=="skip"&&wi.isTraceInSubplots(j,i)&&(O.push(W),j.orientation==="h"&&(ce=!0));var be=!n,Re,ye;if(be)"xpx"in r?Re=r.xpx:Re=T[0]._length/2,"ypx"in r?ye=r.ypx:ye=q[0]._length/2;else{if(A_e.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Ce=n.getBoundingClientRect();Re=r.clientX-Ce.left,ye=r.clientY-Ce.top,l._calcInverseTransform(e);var Me=ea.apply3DTransform(l._invTransform)(Re,ye);if(Re=Me[0],ye=Me[1],Re<0||Re>T[0]._length||ye<0||ye>q[0]._length)return Xm.unhoverRaw(e,r)}if(r.pointerX=Re+T[0]._offset,r.pointerY=ye+q[0]._offset,"xval"in r?U=wi.flat(i,r.xval):U=wi.p2c(T,Re),"yval"in r?Y=wi.flat(i,r.yval):Y=wi.p2c(q,ye),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Wl(U[0])||!Wl(Y[0]))return ea.warn("Fx.hover failed",r,e),Xm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=U,e._hoverYVals=Y,e._hoverXAxes=T,e._hoverYAxes=q);var Le=1/0;function De(hr,wt){for(V=0;V<O.length;V++)if(W=O[V],!(!W||!W[0]||!W[0].trace)&&(j=W[0].trace,!(j.visible!==!0||j._length===0)&&["carpet","contourcarpet"].indexOf(j._module.name)===-1)){if(ae=v,wi.isUnifiedHover(ae)&&(ae=ae.charAt(0)),j.type==="splom"?(te=0,J=i[te]):(J=wi.getSubplot(j),te=i.indexOf(J)),fe={cd:W,trace:j,xa:T[te],ya:q[te],maxHoverDistance:R,maxSpikeDistance:N,index:!1,distance:Math.min(Le,R),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:Ma.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},l[J]&&(fe.subplot=l[J]._subplot),l._splomScenes&&l._splomScenes[j.uid]&&(fe.scene=l._splomScenes[j.uid]),ae==="array"){var Vr=r[V];if("pointNumber"in Vr){let la=W[Vr.pointNumber];la&&(fe.index=Vr.pointNumber,la.lonlat?(se=la.lonlat[0],$=la.lonlat[1]):(se=la.x,$=la.y)),ae="closest"}else ae="","xval"in Vr&&(se=Vr.xval,ae="x"),"yval"in Vr&&($=Vr.yval,ae=ae?"closest":"y")}else hr!==void 0&&wt!==void 0?(se=hr,$=wt):(se=U[te],$=Y[te]);if(ie=I.length,R!==0)if(j._module&&j._module.hoverPoints){var ht=j._module.hoverPoints(fe,se,$,ae,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(ht)for(var Nt,kt=0;kt<ht.length;kt++)Nt=ht[kt],Wl(Nt.x0)&&Wl(Nt.y0)&&I.push(z_e(Nt,v))}else ea.log("Unrecognized trace type in hover:",j);if(v==="closest"&&I.length>ie&&(I.splice(0,ie),Le=I[0].distance),c&&N!==0&&I.length===0){fe.distance=N,fe.index=!1;var it=j._module.hoverPoints(fe,se,$,"closest",{hoverLayer:l._hoverlayer});if(it&&(it=it.filter(function(la){return la.spikeDistance<=N})),it&&it.length){var ia,zn=it.filter(function(la){return la.xa.showspikes&&la.xa.spikesnap!=="hovered data"});if(zn.length){var Xt=zn[0];Wl(Xt.x0)&&Wl(Xt.y0)&&(ia=qe(Xt),(!ue.vLinePoint||ue.vLinePoint.spikeDistance>ia.spikeDistance)&&(ue.vLinePoint=ia))}var Pt=it.filter(function(la){return la.ya.showspikes&&la.ya.spikesnap!=="hovered data"});if(Pt.length){var oa=Pt[0];Wl(oa.x0)&&Wl(oa.y0)&&(ia=qe(oa),(!ue.hLinePoint||ue.hLinePoint.spikeDistance>ia.spikeDistance)&&(ue.hLinePoint=ia))}}}}}De();function Ie(hr,wt,Vr){for(var ht=null,Nt=1/0,kt,it=0;it<hr.length;it++)y&&y._id!==hr[it].xa._id||m&&m._id!==hr[it].ya._id||(kt=hr[it].spikeDistance,Vr&&it===0&&(kt=-1/0),kt<=Nt&&kt<=wt&&(ht=hr[it],Nt=kt));return ht}function qe(hr){return hr?{xa:hr.xa,ya:hr.ya,x:hr.xSpike!==void 0?hr.xSpike:(hr.x0+hr.x1)/2,y:hr.ySpike!==void 0?hr.ySpike:(hr.y0+hr.y1)/2,distance:hr.distance,spikeDistance:hr.spikeDistance,curveNumber:hr.trace.index,color:hr.color,pointNumber:hr.index}:null}var Ze={fullLayout:l,container:l._hoverlayer,event:r},Je=e._spikepoints,Xe={vLinePoint:ue.vLinePoint,hLinePoint:ue.hLinePoint};e._spikepoints=Xe;var Se=function(){var hr=I.filter(function(Vr){return y&&y._id===Vr.xa._id&&m&&m._id===Vr.ya._id}),wt=I.filter(function(Vr){return!(y&&y._id===Vr.xa._id&&m&&m._id===Vr.ya._id)});hr.sort($N),wt.sort($N),I=hr.concat(wt),I=I_e(I,v)};Se();var Fe=v.charAt(0),er=(Fe==="x"||Fe==="y")&&I[0]&&D_e[I[0].trace.type];if(c&&N!==0&&I.length!==0){var re=I.filter(function(hr){return hr.ya.showspikes}),xe=Ie(re,N,er);ue.hLinePoint=qe(xe);var Ye=I.filter(function(hr){return hr.xa.showspikes}),vr=Ie(Ye,N,er);ue.vLinePoint=qe(vr)}if(I.length===0){var Pe=Xm.unhoverRaw(e,r);if(c&&(ue.hLinePoint!==null||ue.vLinePoint!==null)&&QN(Je)&&KN(e,ue,Ze),l.hoveranywhere&&!a&&n){var me=e._hoverdata;me&&me.length&&(e.emit("plotly_unhover",{event:r,points:me}),e._hoverdata=[]),fa([]),e._hoverAnywhereActive=!0}return Pe}if(c&&QN(Je)&&KN(e,ue,Ze),wi.isXYhover(ae)&&I[0].length!==0&&I[0].trace.type!=="splom"){var Te=I[0];ZN[Te.trace.type]?I=I.filter(hr=>hr.trace.index===Te.trace.index):I=[Te];var Ue=I.length,$e=rI("x",Te,l),Oe=rI("y",Te,l);De($e,Oe);var We=[],ar={},or=0,sr=function(hr){var wt=ZN[hr.trace.type]?aI(hr):hr.trace.index;if(!ar[wt])or++,ar[wt]=or,We.push(hr);else{var Vr=ar[wt]-1,ht=We[Vr];Vr>0&&Math.abs(hr.distance)<Math.abs(ht.distance)&&(We[Vr]=hr)}},Ee;for(Ee=0;Ee<Ue;Ee++)sr(I[Ee]);for(Ee=I.length-1;Ee>Ue-1;Ee--)sr(I[Ee]);I=We,Se()}var Ke=e._hoverdata,Be=[],mr=lI(e),yr=sI(e);for(let hr of I){var ur=wi.makeEventData(hr,hr.trace,hr.cd);if(hr.hovertemplate!==!1){var gr=!1;hr.cd[hr.index]&&hr.cd[hr.index].ht&&(gr=hr.cd[hr.index].ht),hr.hovertemplate=gr||hr.trace.hovertemplate||!1}if(hr.xa&&hr.ya){var ne=hr.x0+hr.xa._offset,ge=hr.x1+hr.xa._offset,Ne=hr.y0+hr.ya._offset,He=hr.y1+hr.ya._offset,Kr=Math.min(ne,ge),Qr=Math.max(ne,ge),yt=Math.min(Ne,He),gt=Math.max(Ne,He);ur.bbox={x0:Kr+yr,x1:Qr+yr,y0:yt+mr,y1:gt+mr},ur.xPixel=(ne+ge)/2,ur.yPixel=(Ne+He)/2}hr.eventData=[ur],Be.push(ur)}e._hoverdata=Be;var Et=v==="y"&&(O.length>1||I.length>1)||v==="closest"&&ce&&I.length>1,aa=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),$a=nI(I,{gd:e,hovermode:v,rotateLabels:Et,bgColor:aa,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),na=$a.hoverLabels;if(wi.isUnifiedHover(v)||(R_e(na,Et,l,$a.commonLabelBoundingBox),oI(na,Et,l._invScaleX,l._invScaleY)),n&&n.tagName){var Ja=p0.getComponentMethod("annotations","hasClickToShow")(e,Be);T_e(vf.select(n),Ja?"pointer":"")}var hn=N_e(e,r,Ke);if(!n||a||!hn&&!l.hoveranywhere)return;Ke&&hn&&e.emit("plotly_unhover",{event:r,points:Ke}),fa(e._hoverdata);function fa(hr){e.emit("plotly_hover",{event:r,points:hr,xaxes:T,yaxes:q,xvals:wi.c2dApply(T,U),yvals:wi.c2dApply(q,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function aI(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 P_e=/<extra>([\s\S]*)<\/extra>/;function nI(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hf.HOVERFONT,c=r.fontSize||hf.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,A=e[0],w=A.xa,x=A.ya,_=n.charAt(0),k=_+"Label",T=A[k];if(T===void 0&&w.type==="multicategory")for(var q=0;q<e.length&&(T=e[q][k],T===void 0);q++);var C=d0(t,s),E=C.top,P=C.width,R=C.height,N=T!==void 0&&A.distance<=r.hoverdistance&&(n==="x"||n==="y");if(N){var I=!0,O,U;for(O=0;O<e.length;O++)if(I&&e[O].zLabel===void 0&&(I=!1),U=e[O].hoverinfo||e[O].trace.hoverinfo,U){var Y=Array.isArray(U)?U:U.split("+");if(Y.indexOf("all")===-1&&Y.indexOf(n)===-1){N=!1;break}}I&&(N=!1)}var G=l.selectAll("g.axistext").data(N?[0]:[]);G.enter().append("g").classed("axistext",!0),G.exit().remove();var V={minX:0,maxX:0,minY:0,maxY:0};if(G.each(function(){var Pe=vf.select(this),me=ea.ensureSingle(Pe,"path","",function(yt){yt.style({"stroke-width":"1px"})}),Te=ea.ensureSingle(Pe,"text","",function(yt){yt.attr("data-notex",1)}),Ue=u.bgcolor||Ma.defaultLine,$e=u.bordercolor||Ma.contrast(Ue),Oe=Ma.contrast(Ue),We=u.font,ar={weight:We.weight||v,style:We.style||d,variant:We.variant||p,textcase:We.textcase||y,lineposition:We.lineposition||m,shadow:We.shadow||b,family:We.family||f,size:We.size||c,color:We.color||Oe};me.style({fill:Ue,stroke:$e}),Te.text(T).call(hl.font,ar).call(Wi.positionText,0,0).call(Wi.convertToTspans,t),Pe.attr("transform","");var or=d0(t,Te.node()),sr,Ee;if(n==="x"){var Ke=w.side==="top"?"-":"";Te.attr("text-anchor","middle").call(Wi.positionText,0,w.side==="top"?E-or.bottom-Ut-Xr:E-or.top+Ut+Xr),sr=w._offset+(A.x0+A.x1)/2,Ee=x._offset+(w.side==="top"?0:x._length);var Be=or.width/2+Xr,mr=sr;sr<Be?mr=Be:sr>a.width-Be&&(mr=a.width-Be),me.attr("d","M"+(sr-mr)+",0L"+(sr-mr+Ut)+","+Ke+Ut+"H"+Be+"v"+Ke+(Xr*2+or.height)+"H"+-Be+"V"+Ke+Ut+"H"+(sr-mr-Ut)+"Z"),sr=mr,V.minX=sr-Be,V.maxX=sr+Be,w.side==="top"?(V.minY=Ee-(Xr*2+or.height),V.maxY=Ee-Xr):(V.minY=Ee+Xr,V.maxY=Ee+(Xr*2+or.height))}else{var yr,ur,gr;x.side==="right"?(yr="start",ur=1,gr="",sr=w._offset+w._length):(yr="end",ur=-1,gr="-",sr=w._offset),Ee=x._offset+(A.y0+A.y1)/2,Te.attr("text-anchor",yr),me.attr("d","M0,0L"+gr+Ut+","+Ut+"V"+(Xr+or.height/2)+"h"+gr+(Xr*2+or.width)+"V-"+(Xr+or.height/2)+"H"+gr+Ut+"V-"+Ut+"Z"),V.minY=Ee-(Xr+or.height/2),V.maxY=Ee+(Xr+or.height/2),x.side==="right"?(V.minX=sr+Ut,V.maxX=sr+Ut+(Xr*2+or.width)):(V.minX=sr-Ut-(Xr*2+or.width),V.maxX=sr-Ut);var ne=or.height/2,ge=E-or.top-ne,Ne="clip"+a._uid+"commonlabel"+x._id,He;if(sr<or.width+2*Xr+Ut){He="M-"+(Ut+Xr)+"-"+ne+"h-"+(or.width-Xr)+"V"+ne+"h"+(or.width-Xr)+"Z";var Kr=or.width-sr+Xr;Wi.positionText(Te,Kr,ge),yr==="end"&&Te.selectAll("tspan").each(function(){var yt=vf.select(this),gt=hl.tester.append("text").text(yt.text()).call(hl.font,ar),Et=d0(t,gt.node());Math.round(Et.width)<Math.round(or.width)&&yt.attr("x",Kr-Et.width),gt.remove()})}else Wi.positionText(Te,ur*(Xr+Ut),ge),He=null;var Qr=a._topclips.selectAll("#"+Ne).data(He?[0]:[]);Qr.enter().append("clipPath").attr("id",Ne).append("path"),Qr.exit().remove(),Qr.select("path").attr("d",He),hl.setClipUrl(Te,He?Ne:null,t)}Pe.attr("transform",v7(sr,Ee))}),wi.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Pe=e.filter(me=>me.hoverinfo!=="none");if(Pe.length===0)return[];var W=a.hoverlabel,j=W.font,J=Pe[0],te=((n==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,ae=te?ea.hovertemplateString({data:n==="x unified"?[{xa:J.xa,x:J.xVal}]:[{ya:J.ya,y:J.yVal}],fallback:J.trace.hovertemplatefallback,locale:a._d3locale,template:te}):T,se={showlegend:!0,legend:{title:{text:ae,font:j},font:j,bgcolor:W.bgcolor,bordercolor:W.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},$={font:j};k_e(se,$,t._fullData);var fe=$.legend;fe.entries=[];for(var ie=0;ie<Pe.length;ie++){var ue=Pe[ie];if(ue.hoverinfo!=="none"){var ce=JN(ue,!0,n,a,T),oe=ce[0],be=ce[1];ue.name=be,be!==""?ue.text=be+" : "+oe:ue.text=oe;var Re=ue.cd[ue.index];Re&&(Re.mc&&(ue.mc=Re.mc),Re.mcc&&(ue.mc=Re.mcc),Re.mlc&&(ue.mlc=Re.mlc),Re.mlcc&&(ue.mlc=Re.mlcc),Re.mlw&&(ue.mlw=Re.mlw),Re.mrc&&(ue.mrc=Re.mrc),Re.dir&&(ue.dir=Re.dir)),ue._distinct=!0,fe.entries.push([ue])}}fe.entries.sort(function(me,Te){var Ue=a.hoversort;if(Ue==="value descending"||Ue==="value ascending"){var $e=n.charAt(0)==="x"?"y":"x",Oe=me[0][$e+"LabelVal"],We=Te[0][$e+"LabelVal"];if(Oe!==We)return Ue==="value descending"?We-Oe:Oe-We}return me[0].trace.index-Te[0].trace.index}),fe.layer=l,fe._inHover=!0,fe._groupTitleFont=W.grouptitlefont,S_e(t,fe);var ye=l.select("g.legend"),Ce=d0(t,ye.node()),Me=Ce.width+2*Xr,Le=Ce.height+2*Xr,De=Pe[0],Ie=(De.x0+De.x1)/2,qe=(De.y0+De.y1)/2,Ze=!(p0.traceIs(De.trace,"bar-like")||p0.traceIs(De.trace,"box-violin")),Je,Xe;_==="y"?Ze?(Xe=qe-Xr,Je=qe+Xr):(Xe=Math.min.apply(null,Pe.map(function(me){return Math.min(me.y0,me.y1)})),Je=Math.max.apply(null,Pe.map(function(me){return Math.max(me.y0,me.y1)}))):Xe=Je=ea.mean(Pe.map(function(me){return(me.y0+me.y1)/2}))-Le/2;var Se,Fe;_==="x"?Ze?(Se=Ie+Xr,Fe=Ie-Xr):(Se=Math.max.apply(null,Pe.map(function(me){return Math.max(me.x0,me.x1)})),Fe=Math.min.apply(null,Pe.map(function(me){return Math.min(me.x0,me.x1)}))):Se=Fe=ea.mean(Pe.map(function(me){return(me.x0+me.x1)/2}))-Me/2;var er=w._offset,re=x._offset;Je+=re,Se+=er,Fe+=er-Me,Xe+=re-Le;var xe,Ye;return Se+Me<P&&Se>=0?xe=Se:Fe+Me<P&&Fe>=0?xe=Fe:er+Me<P?xe=er:Se-Ie<Ie-Fe+Me?xe=P-Me:xe=0,xe+=Xr,Je+Le<R&&Je>=0?Ye=Je:Xe+Le<R&&Xe>=0?Ye=Xe:re+Le<R?Ye=re:Je-qe<qe-Xe+Le?Ye=R-Le:Ye=0,Ye+=Xr,ye.attr("transform",v7(xe-1,Ye-1)),ye}var vr=l.selectAll("g.hovertext").data(e,function(Pe){return aI(Pe)});return vr.enter().append("g").classed("hovertext",!0).each(function(){var Pe=vf.select(this);Pe.append("rect").call(Ma.fill,Ma.addOpacity(o,.8)),Pe.append("text").classed("name",!0),Pe.append("path").style("stroke-width","1px"),Pe.append("text").classed("nums",!0).call(hl.font,{weight:v,style:d,variant:p,textcase:y,lineposition:m,shadow:b,family:f,size:c})}),vr.exit().remove(),vr.each(function(Pe){var me=vf.select(this).attr("transform",""),Te=Pe.color;Array.isArray(Te)&&(Te=Te[Pe.eventData[0].pointNumber]);var Ue=Pe.bgcolor||Te,$e=Ma.combine(Ma.opacity(Ue)?Ue:Ma.defaultLine,o),Oe=Ma.combine(Ma.opacity(Te)?Te:Ma.defaultLine,o),We=Pe.borderColor||Ma.contrast($e),ar=JN(Pe,N,n,a,T,me),or=ar[0],sr=ar[1],Ee=me.select("text.nums").call(hl.font,{family:Pe.fontFamily||f,size:Pe.fontSize||c,color:Pe.fontColor||We,weight:Pe.fontWeight||v,style:Pe.fontStyle||d,variant:Pe.fontVariant||p,textcase:Pe.fontTextcase||y,lineposition:Pe.fontLineposition||m,shadow:Pe.fontShadow||b}).text(or).attr("data-notex",1).call(Wi.positionText,0,0).call(Wi.convertToTspans,t),Ke=me.select("text.name"),Be=0,mr=0;if(sr&&sr!==or){Ke.call(hl.font,{family:Pe.fontFamily||f,size:Pe.fontSize||c,color:Oe,weight:Pe.fontWeight||v,style:Pe.fontStyle||d,variant:Pe.fontVariant||p,textcase:Pe.fontTextcase||y,lineposition:Pe.fontLineposition||m,shadow:Pe.fontShadow||b}).text(sr).attr("data-notex",1).call(Wi.positionText,0,0).call(Wi.convertToTspans,t);var yr=d0(t,Ke.node());Be=yr.width+2*Xr,mr=yr.height+2*Xr}else Ke.remove(),me.select("rect").remove();me.select("path").style({fill:$e,stroke:We});var ur=Pe.xa._offset+(Pe.x0+Pe.x1)/2,gr=Pe.ya._offset+(Pe.y0+Pe.y1)/2,ne=Math.abs(Pe.x1-Pe.x0),ge=Math.abs(Pe.y1-Pe.y0),Ne=d0(t,Ee.node()),He=Ne.width/a._invScaleX,Kr=Ne.height/a._invScaleY;Pe.ty0=(E-Ne.top)/a._invScaleY,Pe.bx=He+2*Xr,Pe.by=Math.max(Kr+2*Xr,mr),Pe.anchor="start",Pe.txwidth=He,Pe.tx2width=Be,Pe.offset=0;var Qr=(He+Ut+Xr+Be)*a._invScaleX,yt,gt;if(i)Pe.pos=ur,yt=gr+ge/2+Qr<=R,gt=gr-ge/2-Qr>=0,(Pe.idealAlign==="top"||!yt)&&gt?(gr-=ge/2,Pe.anchor="end"):yt?(gr+=ge/2,Pe.anchor="start"):Pe.anchor="middle",Pe.crossPos=gr;else{if(Pe.pos=gr,yt=ur+ne/2+Qr<=P,gt=ur-ne/2-Qr>=0,(Pe.idealAlign==="left"||!yt)&&gt)ur-=ne/2,Pe.anchor="end";else if(yt)ur+=ne/2,Pe.anchor="start";else{Pe.anchor="middle";var Et=Qr/2,aa=ur+Et-P,$a=ur-Et;aa>0&&(ur-=aa),$a<0&&(ur+=-$a)}Pe.crossPos=ur}Ee.attr("text-anchor",Pe.anchor),Be&&Ke.attr("text-anchor",Pe.anchor),me.attr("transform",v7(ur,gr)+(i?w_e(tI):""))}),{hoverLabels:vr,commonLabelBoundingBox:V}}function JN(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ea.templateString(e.name,e.trace._meta)),o=eI(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=ea.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(P_e,(p,y)=>(o=eI(y,e.nameLength),""))}return[l,o]}function R_e(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(U){return U*t._invScaleX},m=function(U){return U*t._invScaleY};e.each(function(U){var Y=U[n],G=U[i],V=Y._id.charAt(0)==="x",W=Y.range;f===0&&W&&W[0]>W[1]!==V&&(l=-1);var j=0,J=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var te=iI(U,r),ae=U.anchor,se=ae==="end"?-1:1,$,fe;if(ae==="middle")$=U.crossPos+(V?m(te.y-U.by/2):y(U.bx/2+U.tx2width/2)),fe=$+(V?m(U.by):y(U.bx));else if(V)$=U.crossPos+m(Ut+te.y)-m(U.by/2-Ut),fe=$+m(U.by);else{var ie=y(se*Ut+te.x),ue=ie+y(se*U.bx);$=U.crossPos+Math.min(ie,ue),fe=U.crossPos+Math.max(ie,ue)}V?d!==void 0&&p!==void 0&&Math.min(fe,p)-Math.max($,d)>1&&(G.side==="left"?(j=G._mainLinePosition,J=t.width):J=G._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(fe,v)-Math.max($,c)>1&&(G.side==="top"?(j=G._mainLinePosition,J=t.height):J=G._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(V?q_e:1)/2,pmin:j,pmax:J}]}),u.sort(function(U,Y){return U[0].posref-Y[0].posref||l*(Y[0].traceIndex-U[0].traceIndex)});var b,A,w,x,_,k,T;function q(U){var Y=U[0],G=U[U.length-1];if(A=Y.pmin-Y.pos-Y.dp+Y.size,w=G.pos+G.dp+G.size-Y.pmax,A>.01){for(_=U.length-1;_>=0;_--)U[_].dp+=A;b=!1}if(!(w<.01)){if(A<-.01){for(_=U.length-1;_>=0;_--)U[_].dp-=w;b=!1}if(b){var V=0;for(x=0;x<U.length;x++)k=U[x],k.pos+k.dp+k.size>Y.pmax&&V++;for(x=U.length-1;x>=0&&!(V<=0);x--)k=U[x],k.pos>Y.pmax-1&&(k.del=!0,V--);for(x=0;x<U.length&&!(V<=0);x++)if(k=U[x],k.pos<Y.pmin+1)for(k.del=!0,V--,w=k.size*2,_=U.length-1;_>=0;_--)U[_].dp-=w;for(x=U.length-1;x>=0&&!(V<=0);x--)k=U[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,V--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x<u.length-1;){var C=u[x],E=u[x+1],P=C[C.length-1],R=E[0];if(A=P.pos+P.dp+P.size-R.pos-R.dp+R.size,A>.01){for(_=E.length-1;_>=0;_--)E[_].dp+=A;for(C.push.apply(C,E),u.splice(x+1,1),T=0,_=C.length-1;_>=0;_--)T+=C[_].dp;for(w=T/C.length,_=C.length-1;_>=0;_--)C[_].dp-=w;b=!1}else x++}u.forEach(q)}for(x=u.length-1;x>=0;x--){var N=u[x];for(_=N.length-1;_>=0;_--){var I=N[_],O=I.datum;O.offset=I.dp,O.del=I.del}}}function iI(e,r){var t=0,a=e.offset;return r&&(a*=-C_e,t=e.offset*L_e),{x:t,y:a}}function F_e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ut+Xr),a=t+r*(e.txwidth+Xr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Xr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function oI(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=vf.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=F_e(o),v=iI(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(f*Ut+d)+","+i(Ut+p)+"v"+i(o.by/2-Ut)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ut+d)+"V"+i(p-Ut)+"Z":b="M"+n(f*Ut+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var A=d+c.textShiftX,w=p+o.ty0-o.by/2+Xr,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),A=y?-o.bx/2-o.tx2width/2+Xr:-o.bx-Xr):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),A=y?o.bx/2-o.tx2width/2-Xr:o.bx+Xr)),s.call(Wi.positionText,n(A),i(w)),o.tx2width&&(l.select("text.name").call(Wi.positionText,n(c.text2ShiftX+c.alignShift*Xr+d),i(p+o.ty0-o.by/2+Xr)),l.select("rect").call(hl.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function z_e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Wl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=ea.castOption(n,t,v);return o(p)?p:ea.extractOption({},a,"",d)}:function(v,d){return ea.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(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=ea.constrain(e.x0,0,e.xa._length),e.x1=ea.constrain(e.x1,0,e.xa._length),e.y0=ea.constrain(e.y0,0,e.ya._length),e.y1=ea.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:dl.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:dl.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=dl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+dl.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=dl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+dl.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 KN(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ma.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=Ma.wcagContrast(v.color,c)<1.5?Ma.contrast(c):v.color,b=f.spikemode,A=f.spikethickness,w=f.spikecolor||m,x=dl.getPxPosition(e,f),_,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(_=x,k=d),b.indexOf("across")!==-1){var T=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(T=Math.min(T,f.position),q=Math.max(q,f.position)),_=i.l+T*i.w,k=i.l+q*i.w}a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":A,stroke:w,"stroke-dasharray":hl.dashStyle(f.spikedash,A)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":A+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?A:-A),cy:p,r:A,fill:w}).classed("spikeline",!0)}if(s){var C=r.vLinePoint,E,P;u=C&&C.xa,f=C&&C.ya;var R=u.spikesnap;R==="cursor"?(E=o.pointerX,P=o.pointerY):(E=u._offset+C.x,P=f._offset+C.y);var N=Ma.wcagContrast(C.color,c)<1.5?Ma.contrast(c):C.color,I=u.spikemode,O=u.spikethickness,U=u.spikecolor||N,Y=dl.getPxPosition(e,u),G,V;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(G=Y,V=P),I.indexOf("across")!==-1){var W=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),j=Math.max(j,u.position)),G=i.t+(1-j)*i.h,V=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:V,"stroke-width":O,stroke:U,"stroke-dasharray":hl.dashStyle(u.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:V,"stroke-width":O+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?O:-O),r:O,fill:U}).classed("spikeline",!0)}}}function N_e(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 QN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function eI(e,r){return Wi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function I_e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];p0.traceIs(l.trace,"bar-like")||p0.traceIs(l.trace,"box-violin")?i.push(l):l.trace[t+"period"]?n.push(l):a.push(l)}return a.concat(n).concat(i)}function rI(e,r,t){var a=r[e+"a"],n=r[e+"Val"],i=r.cd[0];if(a.type==="category"||a.type==="multicategory")n=a._categoriesMap[n];else if(a.type==="date"){var o=r.trace[e+"periodalignment"];if(o){var l=r.cd[r.index],s=l[e+"Start"];s===void 0&&(s=l[e]);var u=l[e+"End"];u===void 0&&(u=l[e]);var f=u-s;o==="end"?n+=f:o==="middle"&&(n+=f/2)}n=a.d2c(n)}return i&&i.t&&i.t.posLetter===a._id&&(t.boxmode==="group"||t.violinmode==="group")&&(n+=i.t.dPos),n}var lI=e=>e.offsetTop+e.clientTop,sI=e=>e.offsetLeft+e.clientLeft;function d0(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=ea.apply3DTransform(t._invTransform)(n,i),u=ea.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var Zm=z((wZe,uI)=>{"use strict";var B_e=ke(),O_e=qr(),H_e=Ro().isUnifiedHover;uI.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&H_e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=O_e.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),B_e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var cI=z((AZe,fI)=>{"use strict";var U_e=ke(),G_e=Zm(),Y_e=Mc();fI.exports=function(r,t){function a(n,i){return U_e.coerce(r,t,Y_e,n,i)}G_e(r,t,a)}});var dI=z((TZe,hI)=>{"use strict";var vI=ke(),V_e=j1(),j_e=Zm();hI.exports=function(r,t,a,n){function i(l,s){return vI.coerce(r,t,V_e,l,s)}var o=vI.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),j_e(r,t,i,o)}});var m7=z((MZe,pI)=>{"use strict";var W_e=ke(),X_e=Mc();pI.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:W_e.coerce(r,t,X_e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var gI=z((kZe,yI)=>{"use strict";var mI=ke(),Z_e=Mc(),$_e=m7(),J_e=Zm();yI.exports=function(r,t){function a(u,f){return mI.coerce(r,t,Z_e,u,f)}var n=$_e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),J_e(r,t,a),mI.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var _I=z((SZe,xI)=>{"use strict";var y7=ke(),bI=Tr();xI.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return y7.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!bI.traceIs(l,"pie-like")){var s=bI.traceIs(l,"2dMap")?K_e:y7.fillArray;s(l.hoverinfo,o,"hi",n(l)),l.hovertemplate&&s(l.hovertemplate,o,"ht"),l.hoverlabel&&(s(l.hoverlabel.bgcolor,o,"hbg"),s(l.hoverlabel.bordercolor,o,"hbc"),s(l.hoverlabel.font.size,o,"hts"),s(l.hoverlabel.font.color,o,"htc"),s(l.hoverlabel.font.family,o,"htf"),s(l.hoverlabel.font.weight,o,"htw"),s(l.hoverlabel.font.style,o,"hty"),s(l.hoverlabel.font.variant,o,"htv"),s(l.hoverlabel.namelength,o,"hnl"),s(l.hoverlabel.align,o,"hta"),s(l.hoverlabel.showarrow,o,"htsa"))}}};function K_e(e,r,t,a){a=a||y7.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var TI=z((qZe,AI)=>{"use strict";var Q_e=Tr(),wI=Ro(),e4e=p7().hover;AI.exports=function(r,t,a){var n=Q_e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&e4e(r,t,a,!0);function o(){var s,u,f,c,v,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&wI.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&wI.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Un=z((LZe,SI)=>{"use strict";var r4e=Pr(),$m=ke(),t4e=Vi(),Jh=Ro(),MI=Mc(),kI=p7();SI.exports={moduleType:"component",name:"fx",constants:(ah(),ze(th)),schema:{layout:MI},attributes:j1(),layoutAttributes:MI,supplyLayoutGlobalDefaults:cI(),supplyDefaults:dI(),supplyLayoutDefaults:gI(),calc:_I(),getDistanceFunction:Jh.getDistanceFunction,getClosest:Jh.getClosest,inbox:Jh.inbox,quadrature:Jh.quadrature,appendArrayPointValue:Jh.appendArrayPointValue,castHoverOption:n4e,castHoverinfo:i4e,hover:kI.hover,unhover:t4e.unhover,loneHover:kI.loneHover,loneUnhover:a4e,click:TI()};function a4e(e){var r=$m.isD3Selection(e)?e:r4e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function n4e(e,r,t){return $m.castOption(e,r,"hoverlabel."+t)}function i4e(e,r,t){function a(n){return $m.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return $m.castOption(e,t,"hoverinfo",a)}});var df=z(Xl=>{"use strict";Xl.selectMode=function(e){return e==="lasso"||e==="select"};Xl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Xl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Xl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Xl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Xl.selectingOrDrawing=function(e){return Xl.freeMode(e)||Xl.rectMode(e)}});var Jm=z((DZe,qI)=>{"use strict";qI.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 Km=z((EZe,LI)=>{"use strict";LI.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 Qm={};qt(Qm,{CIRCLE_SIDES:()=>o4e,SQRT2:()=>h4e,cos45:()=>c4e,i000:()=>l4e,i090:()=>s4e,i180:()=>u4e,i270:()=>f4e,sin45:()=>v4e});var o4e,l4e,s4e,u4e,f4e,c4e,v4e,h4e,ey=St(()=>{"use strict";o4e=32,l4e=0,s4e=8,u4e=16,f4e=24,c4e=Math.cos(Math.PI/4),v4e=Math.sin(Math.PI/4),h4e=Math.sqrt(2)});var ry=z((PZe,DI)=>{"use strict";var d4e=ke().strTranslate;function CI(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 p4e(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 m4e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return CI(e,t[r])}}function y4e(e){return d4e(e.xaxis._offset,e.yaxis._offset)}DI.exports={p2r:CI,r2p:p4e,axValue:m4e,getTransform:y4e}});var Us=z(Zl=>{"use strict";var g4e=i6(),RI=(ey(),ze(Qm)),m0=RI.CIRCLE_SIDES,g7=RI.SQRT2,FI=ry(),EI=FI.p2r,PI=FI.r2p,b4e=[0,3,4,5,6,1,2],x4e=[0,3,4,1,2];Zl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a<r;a++)for(var n=e[a].length,i=0;i<n;i++){var o=e[a][i][0];if(o==="Z")t+="Z";else for(var l=e[a][i].length,s=0;s<l;s++){var u=s;o==="Q"||o==="S"?u=x4e[s]:o==="C"&&(u=b4e[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Zl.readPaths=function(e,r,t,a){var n=g4e(e),i=[],o=-1,l=function(){o++,i[o]=[]},s,u=0,f=0,c,v,d=function(){c=u,v=f};d();for(var p=0;p<n.length;p++){var y=[],m,b,A,w,x=n[p][0],_=x;switch(x){case"M":l(),u=+n[p][1],f=+n[p][2],y.push([_,u,f]),d();break;case"Q":case"S":m=+n[p][1],A=+n[p][2],u=+n[p][3],f=+n[p][4],y.push([_,u,f,m,A]);break;case"C":m=+n[p][1],A=+n[p][2],b=+n[p][3],w=+n[p][4],u=+n[p][5],f=+n[p][6],y.push([_,u,f,m,A,b,w]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],y.push([_,u,f]);break;case"H":_="L",u=+n[p][1],y.push([_,u,f]);break;case"V":_="L",f=+n[p][1],y.push([_,u,f]);break;case"A":_="L";var k=+n[p][1],T=+n[p][2];+n[p][4]||(k=-k,T=-T);var q=u-k,C=f;for(s=1;s<=m0/2;s++){var E=2*Math.PI*s/m0;y.push([_,q+k*Math.cos(E),C+T*Math.sin(E)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,y.push([_,u,f]));break}for(var P=(t||{}).domain,R=r._fullLayout._size,N=t&&t.xsizemode==="pixel",I=t&&t.ysizemode==="pixel",O=a===!1,U=0;U<y.length;U++){for(s=0;s+2<7;s+=2){var Y=y[U][s+1],G=y[U][s+2];Y===void 0||G===void 0||(u=Y,f=G,t&&(t.xaxis&&t.xaxis.p2r?(O&&(Y-=t.xaxis._offset),N?Y=PI(t.xaxis,t.xanchor)+Y:Y=EI(t.xaxis,Y)):(O&&(Y-=R.l),P?Y=P.x[0]+Y/R.w:Y=Y/R.w),t.yaxis&&t.yaxis.p2r?(O&&(G-=t.yaxis._offset),I?G=PI(t.yaxis,t.yanchor)-G:G=EI(t.yaxis,G)):(O&&(G-=R.t),P?G=P.y[1]-G/R.h:G=1-G/R.h)),y[U][s+1]=Y,y[U][s+2]=G)}i[o].push(y[U].slice())}}return i};function Kh(e,r){return Math.abs(e-r)<=1e-6}function ty(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Zl.pointsOnRectangle=function(e){var r=e.length;if(r!==5)return!1;for(var t=1;t<3;t++){var a=e[0][t]-e[1][t],n=e[3][t]-e[2][t];if(!Kh(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!Kh(i,o))return!1}return!Kh(e[0][1],e[1][1])&&!Kh(e[0][1],e[3][1])?!1:!!(ty(e[0],e[1])*ty(e[0],e[3]))};Zl.pointsOnEllipse=function(e){var r=e.length;if(r!==m0+1)return!1;r=m0;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!Kh(ty(e[t],e[i]),ty(e[a],e[n])))return!1}return!0};Zl.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Zl.ellipseOver({x0:r[0],y0:r[1],x1:t[0],y1:t[1]}),n=(a.x1+a.x0)/2,i=(a.y1+a.y0)/2,o=(a.x1-a.x0)/2,l=(a.y1-a.y0)/2;o||(o=l=l/g7),l||(l=o=o/g7);for(var s=[],u=0;u<m0;u++){var f=u*2*Math.PI/m0;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};Zl.ellipseOver=function(e){var r=e.x0,t=e.y0,a=e.x1,n=e.y1,i=a-r,o=n-t;r-=i,t-=o;var l=(r+a)/2,s=(t+n)/2,u=g7;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};Zl.fixDatesForPaths=function(e,r,t){var a=r.type==="date",n=t.type==="date";if(!a&&!n)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)a&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),n&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"));return e}});var iy=z((FZe,YI)=>{"use strict";var zI=Aa(),HI=df(),_4e=HI.drawMode,w4e=HI.openMode,y0=(ey(),ze(Qm)),NI=y0.i000,II=y0.i090,BI=y0.i180,OI=y0.i270,A4e=y0.cos45,T4e=y0.sin45,UI=ry(),ay=UI.p2r,Gs=UI.r2p,M4e=Es(),k4e=M4e.clearOutline,ny=Us(),S4e=ny.readPaths,q4e=ny.writePaths,L4e=ny.ellipseOver,C4e=ny.fixDatesForPaths;function D4e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!_4e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l<o.length)switch(a._fullLayout.shapes[l].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=o[l].path||"";s[s.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var u=GI(e,r,i);k4e(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,v=[],d=0;d<o.length;d++){var p=a._fullLayout.shapes[d];if(v[d]=p._input,n!==void 0&&d===a._fullLayout._activeShapeIndex){var y=u;switch(p.type){case"line":case"rect":case"circle":var m=zI.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=zI.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 GI(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),o=n._fullLayout.newshape,l=r.plotinfo,s=r.isActiveShape,u=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,v=!!l.domain||!l.yaxis,d=w4e(t),p=S4e(i,n,l,s),y={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:c?"paper":u._id,yref:v?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(y.fillcolor=o.fillcolor,y.fillrule=o.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[NI][1],A=m[II][1],w=m[BI][1],x=m[OI][1],_=m[NI][2],k=m[II][2],T=m[BI][2],q=m[OI][2],C=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),E=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");C&&(b=Gs(l.xaxis,b),A=Gs(l.xaxis,A),w=Gs(l.xaxis,w),x=Gs(l.xaxis,x)),E&&(_=Gs(l.yaxis,_),k=Gs(l.yaxis,k),T=Gs(l.yaxis,T),q=Gs(l.yaxis,q));var P=(A+x)/2,R=(_+T)/2,N=(x-A+w-b)/2,I=(q-k+T-_)/2,O=L4e({x0:P,y0:R,x1:P+N*A4e,y1:R+I*T4e});C&&(O.x0=ay(l.xaxis,O.x0),O.x1=ay(l.xaxis,O.x1)),E&&(O.y0=ay(l.yaxis,O.y0),O.y1=ay(l.yaxis,O.y1)),y.x0=O.x0,y.y0=O.y0,y.x1=O.x1,y.y1=O.y1}else y.type="path",u&&f&&C4e(p,u,f),y.path=q4e(p),m=null;return y}YI.exports={newShapes:D4e,createShapeObj:GI}});var x7=z((zZe,VI)=>{"use strict";var E4e=df(),P4e=E4e.selectMode,R4e=Es(),F4e=R4e.clearOutline,b7=Us(),z4e=b7.readPaths,N4e=b7.writePaths,I4e=b7.fixDatesForPaths;VI.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!P4e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d<v.length)switch(i._fullLayout.selections[d].type){case"rect":c="select";break;case"path":c="lasso";break}}var p=z4e(n,i,l,f),y={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.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&&I4e(p,s,u),y.path=N4e(p),m=null),F4e(i);for(var b=t.editHelpers,A=(b||{}).modifyItem,w=[],x=0;x<v.length;x++){var _=i._fullLayout.selections[x];if(!_){w[x]=_;continue}if(w[x]=_._input,f!==void 0&&x===i._fullLayout._activeSelectionIndex){var k=y;switch(_.type){case"rect":A("x0",k.x0),A("x1",k.x1),A("y0",k.y0),A("y1",k.y1);break;case"path":A("path",k.path);break}}}return f===void 0?(w.push(y),w):b?b.getUpdateObj():{}}}}});var Qh={};qt(Qh,{numParams:()=>G4e,paramIsX:()=>H4e,paramIsY:()=>U4e,paramRE:()=>O4e,segmentRE:()=>B4e});var B4e,O4e,H4e,U4e,G4e,ed=St(()=>{"use strict";B4e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,O4e=/[^\s,]+/g,H4e={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:{}},U4e={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:{}},G4e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Vs=z(ja=>{"use strict";var ml=(ed(),ze(Qh)),jI=ke(),Ys=Yr();ja.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ja.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ja.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ja.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ja.extractPathCoords=function(e,r,t){var a=[],n=e.match(ml.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(ml.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:jI.cleanNumber(s);a.push(u)}}}),a};ja.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(ml.segmentRE);if(!a)return 0;let n=t==="x"?ml.paramIsX:ml.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};ja.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=ja.shapePositionToRange(r);o=function(s){var u=pl(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=ja.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};ja.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=ja.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};ja.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};ja.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}};ja.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}};ja.getPathString=function(e,r){let t=r.type,a=Ys.getRefType(r.xref),n=Ys.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,y,m,b;function A(E,P,R,N){var I;if(E)if(P==="domain")N?I=function(O){return E._offset+E._length*(1-O)}:I=function(O){return E._offset+E._length*O};else{let O=ja.shapePositionToRange(E);I=function(U){return E._offset+E.r2p(O(U,!0))},R==="path"&&E.type==="date"&&(I=ja.decodeDate(I))}else N?I=function(O){return i.t+i.h*(1-O)}:I=function(O){return i.l+i.w*O};return I}if(a==="array"?(v=[],o=r.xref.map(function(E){return Ys.getFromId(e,E)}),v=r.xref.map(function(E,P){return A(o[P],Ys.getRefType(E),t,!1)})):(o=Ys.getFromId(e,r.xref),v=A(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(E){return Ys.getFromId(e,E)}),d=r.yref.map(function(E,P){return A(l[P],Ys.getRefType(E),t,!0)})):(l=Ys.getFromId(e,r.yref),d=A(l,n,t,!0)),t==="path")return Y4e(r,v,d);if(a==="array")s=pl(o[0],r.x0shift),u=pl(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=pl(o,r.x0shift),u=pl(o,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=pl(l[0],r.y0shift),c=pl(l[1],r.y1shift),m=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=pl(l,r.y0shift),c=pl(l,r.y1shift),r.ysizemode==="pixel"){let E=d(r.yanchor);m=E-r.y0+f,b=E-r.y1+c}else m=d(r.y0)+f,b=d(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,_=Math.abs(w-p),k=Math.abs(x-m),T="A"+_+","+k,q=w+_+","+x,C=w+","+(x-k);return"M"+q+T+" 0 1,1 "+C+T+" 0 0,1 "+q+"Z"};function Y4e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(ml.segmentRE,function(v){var d=0,p=v.charAt(0),y=ml.paramIsX[p],m=ml.paramIsY[p],b=ml.numParams[p];let A=y.drawn!==void 0,w=m.drawn!==void 0,x=s?r[f]:r,_=u?t[c]:t;var k=v.slice(1).replace(ml.paramRE,function(T){return y[d]?n==="pixel"?T=x(o)+Number(T):T=x(T):m[d]&&(i==="pixel"?T=_(l)-Number(T):T=_(T)),d++,d>b&&(T="X"),T});return d>b&&(k=k.replace(/[\s,]*X.*/,""),jI.log("Ignoring extra params in segment "+v)),A&&f++,w&&c++,p+k})}ja.getPixelShift=pl;function pl(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 _7=z((IZe,ZI)=>{"use strict";var V4e=ke(),yl=Yr(),WI=Fa(),XI=Jr(),j4e=Us().readPaths,pf=Vs(),W4e=pf.getPathString,rd=Sp(),X4e=(on(),ze(nn)).FROM_TL;ZI.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=yl.getFromId(r,a.xref),s=yl.getFromId(r,a.yref);let j=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in rd){var f=typeof rd[u]=="function",c=!j||rd.simpleXVariables.includes(u),v=!J||rd.simpleYVariables.includes(u);if(f&&c&&v){var d=rd[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=V4e.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),A=b.append("text").attr(m).classed("shape-label-text",!0).text(i),w,x,_,k;if(a.path){var T=W4e(r,a),q=j4e(T,r);w=1/0,_=1/0,x=-1/0,k=-1/0;for(var C=0;C<q.length;C++)for(var E=0;E<q[C].length;E++)for(var P=q[C][E],R=1;R<P.length;R+=2){var N=P[R],I=P[R+1];w=Math.min(w,N),x=Math.max(x,N),_=Math.min(_,I),k=Math.max(k,I)}}else{let j=Array.isArray(a.xref),J=Array.isArray(a.yref),te=yl.getFromId(r,j?a.xref[0]:a.xref),ae=yl.getFromId(r,j?a.xref[1]:a.xref),se=yl.getFromId(r,J?a.yref[0]:a.yref),$=yl.getFromId(r,J?a.yref[1]:a.yref),fe=yl.getRefType(j?a.xref[0]:a.xref),ie=yl.getRefType(j?a.xref[1]:a.xref),ue=yl.getRefType(J?a.yref[0]:a.yref),ce=yl.getRefType(J?a.yref[1]:a.yref),oe=(Re,ye,Ce,Me)=>pf.getDataToPixel(r,Ce,ye,!1,Me)(Re),be=(Re,ye,Ce,Me)=>pf.getDataToPixel(r,Ce,ye,!0,Me)(Re);if(a.xsizemode==="pixel"){let Re=oe(a.xanchor,void 0,te,fe),ye=pf.getPixelShift(te,a.x0shift),Ce=pf.getPixelShift(te,a.x1shift);w=Re+a.x0+ye,x=Re+a.x1+Ce}else w=oe(a.x0,a.x0shift,te,fe),x=oe(a.x1,a.x1shift,ae,ie);if(a.ysizemode==="pixel"){let Re=be(a.yanchor,void 0,se,ue),ye=pf.getPixelShift(se,a.y0shift),Ce=pf.getPixelShift(se,a.y1shift);_=Re-a.y0+ye,k=Re-a.y1+Ce}else _=be(a.y0,a.y0shift,se,ue),k=be(a.y1,a.y1shift,$,ce)}var O=a.label.textangle;O==="auto"&&(a.type==="line"?O=Z4e(w,_,x,k):O=0),A.call(function(j){return j.call(XI.font,y).attr({}),WI.convertToTspans(j,r),j});var U=XI.bBox(A.node()),Y=$4e(w,_,x,k,a,O,U),G=Y.textx,V=Y.texty,W=Y.xanchor;A.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:V,x:G,transform:"rotate("+O+","+G+","+V+")"}).call(WI.positionText,G,V)}};function Z4e(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 $4e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,A,w;if(f==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":t<e?p="right":p="center":t>e?p="right":t<e?p="left":p="center":l==="end"?s==="auto"?t>e?p="right":t<e?p="left":p="center":t>e?p="left":t<e?p="right":p="center":p="center");var x={left:1,center:0,right:-1},_={bottom:-1,middle:0,top:1};if(s==="auto"){var k=_[y];A=-u*v*k,w=u*d*k}else{var T=x[p],q=_[y];A=u*T,w=u*q}m=m+A,b=b+w}else A=u+3,l.indexOf("right")!==-1?(m=Math.max(e,t)-A,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(m=Math.min(e,t)+A,p==="auto"&&(p="left")):(m=(e+t)/2,p==="auto"&&(p="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,w=u,y==="bottom"?b=b-w:y==="top"&&(b=b+w);var C=X4e[y],E=n.label.font.size,P=o.height,R=(P*C-E)*v,N=-(P*C-E)*d;return{textx:m+R,texty:b+N,xanchor:p}}});var sy=z((BZe,aB)=>{"use strict";var J4e=ke(),K4e=J4e.strTranslate,$I=Vi(),QI=df(),Q4e=QI.drawMode,eB=QI.selectMode,rB=Tr(),JI=qr(),ly=(ey(),ze(Qm)),e6e=ly.i000,r6e=ly.i090,t6e=ly.i180,a6e=ly.i270,n6e=Es(),tB=n6e.clearOutlineControllers,A7=Us(),oy=A7.pointsOnRectangle,w7=A7.pointsOnEllipse,i6e=A7.writePaths,o6e=iy().newShapes,l6e=iy().createShapeObj,s6e=x7(),u6e=_7();aB.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(w7(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=o6e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=s6e(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&rB.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Q4e(f),v=eB(f);(c||v)&&(i._fullLayout._outlining=!0),tB(i),t.attr("d",i6e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=f6e([],r);var A=u.append("g").attr("class","outline-controllers");E(A),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=l6e(t,a,a.dragmode);u6e(i,"label-temp",x,w)}function _(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,G){if(r.length){var V=b[y][m][1],W=b[y][m][2],j=r[y],J=j.length;if(oy(j)){var te=Y,ae=G;if(a.isActiveSelection){var se=KI(j,m);se[1]===j[m][1]?ae=0:te=0}for(var $=0;$<J;$++)if($!==m){var fe=j[$];fe[1]===j[m][1]&&(fe[1]=V+te),fe[2]===j[m][2]&&(fe[2]=W+ae)}if(j[m][1]=V+te,j[m][2]=W+ae,!oy(j))for(var ie=0;ie<J;ie++)for(var ue=0;ue<j[ie].length;ue++)j[ie][ue]=b[y][ie][ue]}else j[m][1]=V+Y,j[m][2]=W+G;o()}}function T(){l()}function q(){if(r.length&&r[y]&&r[y].length){for(var Y=[],G=0;G<r[y].length;G++)G!==m&&Y.push(r[y][G]);Y.length>1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,o(),l())}}function C(Y,G){if(Y===2){y=+G.srcElement.getAttribute("data-i"),m=+G.srcElement.getAttribute("data-j");var V=r[y];!oy(V)&&!w7(V)&&q()}}function E(Y){d=[];for(var G=0;G<r.length;G++){var V=r[G],W=oy(V),j=!W&&w7(V);d[G]=[];for(var J=V.length,te=0;te<J;te++)if(V[te][0]!=="Z"&&!(j&&te!==e6e&&te!==r6e&&te!==t6e&&te!==a6e)){var ae=W&&a.isActiveSelection,se;ae&&(se=KI(V,te));var $=V[te][1],fe=V[te][2],ie=Y.append(ae?"rect":"circle").attr("data-i",G).attr("data-j",te).style({fill:JI.background,stroke:JI.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ae){var ue=se[1]-$,ce=se[2]-fe,oe=ce?5:Math.max(Math.min(25,Math.abs(ue)-5),5),be=ue?5:Math.max(Math.min(25,Math.abs(ce)-5),5);ie.classed(ce?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",oe).attr("height",be).attr("x",$-oe/2).attr("y",fe-be/2).attr("transform",K4e(ue/2,ce/2))}else ie.classed("cursor-grab",!0).attr("r",5).attr("cx",$).attr("cy",fe);d[G][te]={element:ie.node(),gd:i,prepFn:_,doneFn:T,clickFn:C},$I.init(d[G][te])}}}function P(Y,G){if(r.length)for(var V=0;V<r.length;V++)for(var W=0;W<r[V].length;W++)for(var j=0;j+2<r[V][W].length;j+=2)r[V][W][j+1]=b[V][W][j+1]+Y,r[V][W][j+2]=b[V][W][j+2]+G}function R(Y,G){P(Y,G),o()}function N(Y){y=+Y.srcElement.getAttribute("data-i"),y||(y=0),p[y].moveFn=R}function I(){l()}function O(Y){Y===2&&c6e(i)}function U(){if(p=[],!!r.length){var Y=0;p[Y]={element:t[0][0],gd:i,prepFn:N,doneFn:I,clickFn:O},$I.init(p[Y])}}};function f6e(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 KI(e,r){var t=e[r][1],a=e[r][2],n=e.length,i,o,l;return i=(r+1)%n,o=e[i][1],l=e[i][2],o===t&&l===a&&(i=(r+2)%n,o=e[i][1],l=e[i][2]),[i,o,l]}function c6e(e){if(eB(e._fullLayout.dragmode)){tB(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},rB.call("_guiRelayout",e,{selections:a})}}}});var hy=z((OZe,hB)=>{"use strict";var v6e=Pr(),uB=Tr(),M7=ke(),mf=Yr(),h6e=Us().readPaths,d6e=sy(),fy=_7(),fB=Es().clearOutlineControllers,T7=qr(),cy=Jr(),p6e=Ct().arrayEditor,nB=Vi(),iB=Un(),oB=Os(),yf=(ed(),ze(Qh)),ti=Vs(),k7=ti.getPathString;hB.exports={draw:S7,drawOne:cB,eraseActiveShape:x6e,drawLabel:fy};function S7(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&&cB(e,n)}function uy(e){return!!e._fullLayout._outlining}function vy(e){return!e._context.edits.shapePosition}function cB(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=ti.makeShapesOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input||a.visible!==!0)return;let i=Array.isArray(a.xref)||Array.isArray(a.yref);if(a.layer==="above")l(e._fullLayout._shapeUpperLayer);else if(a.xref.includes("paper")||a.yref.includes("paper"))l(e._fullLayout._shapeLowerLayer);else if(a.layer==="between"&&!i)l(n.shapelayerBetween);else if(n._hadPlotinfo){var o=n.mainplotinfo||n;l(o.shapelayer)}else l(e._fullLayout._shapeLowerLayer);function l(s){var u=k7(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,v=a.fillcolor,d=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=vy(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 A=s.append("g").classed("shape-group",!0).attr({"data-index":r}),w=A.append("path").attr(f).style("opacity",c).call(T7.stroke,d).call(T7.fill,v).call(cy.dashLine,y,p);vB(A,e,a),fy(e,r,a,A);var x;if((b||e._context.edits.shapePosition)&&(x=p6e(e.layout,"shapes",a)),b){w.style({cursor:"move"});var _={element:w.node(),plotinfo:n,gd:e,editHelpers:x,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},k=h6e(u,e);d6e(k,w,_)}else e._context.edits.shapePosition?g6e(e,w,a,r,s,x):a.editable===!0&&w.style("pointer-events",m||T7.opacity(v)*c<=.5?"stroke":"all");w.node().addEventListener("click",function(){return b6e(e,w)}),m6e(e,w,n)}}function m6e(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var s;let o=t.mainplotinfo||t,l=(s=o==null?void 0:o.draglayer)==null?void 0:s.select(".nsewdrag").node();return l?{clientX:i.clientX,clientY:i.clientY,target:l}:null}a.addEventListener("mousemove",i=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&iB.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&iB.click(e,o,t.id)}})}function vB(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=y6e(r,a,n);M7.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),cy.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");cy.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function y6e(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>mf.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),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function g6e(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,y,m,b,A,w,x,_,k,T,q,C,E,P,R=v6e.select(r.node().parentNode),N=mf.getFromId(e,t.xref),I=mf.getRefType(t.xref),O=mf.getFromId(e,t.yref),U=mf.getRefType(t.yref),Y=t.x0shift,G=t.x1shift,V=t.y0shift,W=t.y1shift,j=function(Ie,qe){var Ze=ti.getDataToPixel(e,N,qe,!1,I);return Ze(Ie)},J=function(Ie,qe){var Ze=ti.getDataToPixel(e,O,qe,!0,U);return Ze(Ie)},te=ti.getPixelToData(e,N,!1,I),ae=ti.getPixelToData(e,O,!0,U),se=ie(),$={element:se.node(),gd:e,prepFn:oe,doneFn:be,clickFn:Re},fe;nB.init($),se.node().onmousemove=ce;function ie(){return f?ue():r}function ue(){var Ie=10,qe=Math.max(t.line.width,Ie),Ze=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ze.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":qe,"stroke-opacity":"0"});var Je={"fill-opacity":"0"},Xe=Math.max(qe/2,Ie);return Ze.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,Y),cy:u?J(t.yanchor)-t.y0:J(t.y0,V),r:Xe}).style(Je).classed("cursor-grab",!0),Ze.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,G),cy:u?J(t.yanchor)-t.y1:J(t.y1,W),r:Xe}).style(Je).classed("cursor-grab",!0),Ze}function ce(Ie){if(uy(e)){fe=null;return}if(f)Ie.target.tagName==="path"?fe="move":fe=Ie.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var qe=$.element.getBoundingClientRect(),Ze=qe.right-qe.left,Je=qe.bottom-qe.top,Xe=Ie.clientX-qe.left,Se=Ie.clientY-qe.top,Fe=!c&&Ze>o&&Je>l&&!Ie.shiftKey?nB.getCursor(Xe/Ze,1-Se/Je):"move";oB(r,Fe),fe=Fe.split("-")[0]}}function oe(Ie){uy(e)||(s&&(b=j(t.xanchor)),u&&(A=J(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:J(t.y0),y=s?t.x1:j(t.x1),m=u?t.y1:J(t.y1)),d<y?(_=d,C="x0",k=y,E="x1"):(_=y,C="x1",k=d,E="x0"),!u&&p<m||u&&p>m?(w=p,T="y0",x=m,q="y1"):(w=m,T="y1",x=p,q="y0"),ce(Ie),Me(n,t),De(r,t,e),$.moveFn=fe==="move"?ye:Ce,$.altKey=Ie.altKey)}function be(){uy(e)||(oB(r),Le(n),vB(r,e,t),uB.call("_guiRelayout",e,i.getUpdateObj()))}function Re(){uy(e)||Le(n)}function ye(Ie,qe){if(t.type==="path"){var Ze=function(Se){return Se},Je=Ze,Xe=Ze;s?v("xanchor",t.xanchor=te(b+Ie)):(Je=function(Fe){return te(j(Fe)+Ie)},N&&N.type==="date"&&(Je=ti.encodeDate(Je))),u?v("yanchor",t.yanchor=ae(A+qe)):(Xe=function(Fe){return ae(J(Fe)+qe)},O&&O.type==="date"&&(Xe=ti.encodeDate(Xe))),v("path",t.path=lB(P,Je,Xe))}else s?v("xanchor",t.xanchor=te(b+Ie)):(v("x0",t.x0=te(d+Ie)),v("x1",t.x1=te(y+Ie))),u?v("yanchor",t.yanchor=ae(A+qe)):(v("y0",t.y0=ae(p+qe)),v("y1",t.y1=ae(m+qe)));r.attr("d",k7(e,t)),Me(n,t),fy(e,a,t,R)}function Ce(Ie,qe){if(c){var Ze=function(We){return We},Je=Ze,Xe=Ze;s?v("xanchor",t.xanchor=te(b+Ie)):(Je=function(ar){return te(j(ar)+Ie)},N&&N.type==="date"&&(Je=ti.encodeDate(Je))),u?v("yanchor",t.yanchor=ae(A+qe)):(Xe=function(ar){return ae(J(ar)+qe)},O&&O.type==="date"&&(Xe=ti.encodeDate(Xe))),v("path",t.path=lB(P,Je,Xe))}else if(f){if(fe==="resize-over-start-point"){var Se=d+Ie,Fe=u?p-qe:p+qe;v("x0",t.x0=s?Se:te(Se)),v("y0",t.y0=u?Fe:ae(Fe))}else if(fe==="resize-over-end-point"){var er=y+Ie,re=u?m-qe:m+qe;v("x1",t.x1=s?er:te(er)),v("y1",t.y1=u?re:ae(re))}}else{var xe=function(We){return fe.indexOf(We)!==-1},Ye=xe("n"),vr=xe("s"),Pe=xe("w"),me=xe("e"),Te=Ye?w+qe:w,Ue=vr?x+qe:x,$e=Pe?_+Ie:_,Oe=me?k+Ie:k;u&&(Ye&&(Te=w-qe),vr&&(Ue=x-qe)),(!u&&Ue-Te>l||u&&Te-Ue>l)&&(v(T,t[T]=u?Te:ae(Te)),v(q,t[q]=u?Ue:ae(Ue))),Oe-$e>o&&(v(C,t[C]=s?$e:te($e)),v(E,t[E]=s?Oe:te(Oe)))}r.attr("d",k7(e,t)),Me(n,t),fy(e,a,t,R)}function Me(Ie,qe){(s||u)&&Ze();function Ze(){var Je=qe.type!=="path",Xe=Ie.selectAll(".visual-cue").data([0]),Se=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Se}).classed("visual-cue",!0);var Fe=j(s?qe.xanchor:M7.midRange(Je?[qe.x0,qe.x1]:ti.extractPathCoords(qe.path,yf.paramIsX))),er=J(u?qe.yanchor:M7.midRange(Je?[qe.y0,qe.y1]:ti.extractPathCoords(qe.path,yf.paramIsY)));if(Fe=ti.roundPositionForSharpStrokeRendering(Fe,Se),er=ti.roundPositionForSharpStrokeRendering(er,Se),s&&u){var re="M"+(Fe-1-Se)+","+(er-1-Se)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",re)}else if(s){var xe="M"+(Fe-1-Se)+","+(er-9-Se)+"v18 h2 v-18 Z";Xe.attr("d",xe)}else{var Ye="M"+(Fe-9-Se)+","+(er-1-Se)+"h18 v2 h-18 Z";Xe.attr("d",Ye)}}}function Le(Ie){Ie.selectAll(".visual-cue").remove()}function De(Ie,qe,Ze){var Je=qe.xref,Xe=qe.yref,Se=mf.getFromId(Ze,Je),Fe=mf.getFromId(Ze,Xe),er="";Je!=="paper"&&!Se.autorange&&(er+=Je),Xe!=="paper"&&!Fe.autorange&&(er+=Xe),cy.setClipUrl(Ie,er?"clip"+Ze._fullLayout._uid+er:null,Ze)}}function lB(e,r,t){return e.replace(yf.segmentRE,function(a){var n=0,i=a.charAt(0),o=yf.paramIsX[i],l=yf.paramIsY[i],s=yf.numParams[i],u=a.slice(1).replace(yf.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function b6e(e,r){if(vy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){sB(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=sB,S7(e)}}}function sB(e){if(vy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(fB(e),delete e._fullLayout._activeShapeIndex,S7(e))}}function x6e(e){if(vy(e)){fB(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,uB.call("_guiRelayout",e,{shapes:a})}}}});var pB=z((HZe,dB)=>{"use strict";var g0=ke()._,_6e=function(e){return{DIALOG_TITLE:g0(e,"Share chart"),DIALOG_MESSAGE_CLOUD:g0(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:g0(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:g0(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:g0(e,"Cancel"),DIALOG_CONFIRM:g0(e,"Share")}};dB.exports=_6e});var gB=z((UZe,yB)=>{"use strict";var mB=Pr(),{dfltConfig:w6e}=xs(),A6e=pB(),T6e=(e,r,t,a,n)=>{let i=A6e(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===w6e.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],d=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(d),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],d=c[4],p=o.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(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},M6e=(e,r,t)=>{let a=mB.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{mB.event.target===n.node()&&i()}),T6e(e,n,r,()=>{i(),t()},i)};yB.exports=M6e});var C7=z((GZe,MB)=>{"use strict";var Ai=Tr(),k6e=ma(),xB=Aa(),tt=Km(),S6e=hy().eraseActiveShape,q6e=gB(),b0=ke(),Zr=b0._,rt={};MB.exports=rt;rt.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:tt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};b0.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])}),Ai.call("downloadImage",e,t).then(function(a){b0.notifier(Zr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){b0.notifier(Zr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};rt.downloadJson={name:"downloadJson",title:function(e){return Zr(e,"Download plot as JSON")},icon:tt.curlybraces,click:function(e){Ai.call("downloadImage",e,{format:"full-json"}).then(function(r){b0.notifier(Zr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){b0.notifier(Zr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};rt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Zr(e,"Share chart...")},icon:tt.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}q6e(e,r,function(){k6e.sendDataToCloud(e,r)})}};rt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Zr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:tt.zoombox,click:Ln};rt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Zr(e,"Pan")},attr:"dragmode",val:"pan",icon:tt.pan,click:Ln};rt.select2d={name:"select2d",_cat:"select",title:function(e){return Zr(e,"Box Select")},attr:"dragmode",val:"select",icon:tt.selectbox,click:Ln};rt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Zr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:tt.lasso,click:Ln};rt.drawclosedpath={name:"drawclosedpath",title:function(e){return Zr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:tt.drawclosedpath,click:Ln};rt.drawopenpath={name:"drawopenpath",title:function(e){return Zr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:tt.drawopenpath,click:Ln};rt.drawline={name:"drawline",title:function(e){return Zr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:tt.drawline,click:Ln};rt.drawrect={name:"drawrect",title:function(e){return Zr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:tt.drawrect,click:Ln};rt.drawcircle={name:"drawcircle",title:function(e){return Zr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:tt.drawcircle,click:Ln};rt.eraseshape={name:"eraseshape",title:function(e){return Zr(e,"Erase active shape")},icon:tt.eraseshape,click:S6e};rt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:Ln};rt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:Ln};rt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Zr(e,"Autoscale")},attr:"zoom",val:"auto",icon:tt.autoscale,click:Ln};rt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Zr(e,"Reset axes")},attr:"zoom",val:"reset",icon:tt.home,click:Ln};rt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Zr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:tt.tooltip_basic,gravity:"ne",click:Ln};rt.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:tt.tooltip_compare,gravity:"ne",click:Ln};function Ln(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=xB.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f<l.length;f++)if(u=l[f],y=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,y&&!u.fixedrange)if(p=u._name,n==="auto")o[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[p+".autorange"]=!0:u._rangeInitial0===void 0?(o[p+".autorange"]=u._autorangeInitial,o[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[p+".range"]=[u._rangeInitial0,null],o[p+".autorange"]=u._autorangeInitial):o[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var m=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[v*m[0]+d*m[1],v*m[1]+d*m[0]];o[p+".range[0]"]=u.l2r(b[0]),o[p+".range[1]"]=u.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=s,Ai.call("_guiRelayout",e,o)}rt.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Zr(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:tt.zoombox,click:py};rt.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Zr(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:tt.pan,click:py};rt.orbitRotation={name:"orbitRotation",title:function(e){return Zr(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:tt["3d_rotate"],click:py};rt.tableRotation={name:"tableRotation",title:function(e){return Zr(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:tt["z-axis"],click:py};function py(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],o={},l=a.split("."),s=0;s<i.length;s++)o[i[s]+"."+l[1]]=n;var u=n==="pan"?n:"zoom";o.dragmode=u,Ai.call("_guiRelayout",e,o)}rt.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Zr(e,"Reset camera to default")},attr:"resetDefault",icon:tt.home,click:q7};rt.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Zr(e,"Reset camera to last save")},attr:"resetLastSave",icon:tt.movie,click:q7};function q7(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=a==="resetLastSave",i=a==="resetDefault",o=e._fullLayout,l=o._subplots.gl3d||[],s={},u=0;u<l.length;u++){var f=l[u],c=f+".camera",v=f+".aspectratio",d=f+".aspectmode",p=o[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[d]=p.viewInitial.aspectmode)}Ai.call("_guiRelayout",e,s)}rt.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:tt.tooltip_basic,gravity:"ne",click:L6e};function _B(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],v=f+".hovermode";l[v]=c.hovermode,s[v]=!1;for(var d=0;d<3;d++){var p=o[d],y=f+"."+p+".showspikes";s[y]=!1,l[y]=c[p].showspikes}}t._previousVal=l}return s}function L6e(e,r){var t=_B(e,r);Ai.call("_guiRelayout",e,t)}rt.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:L7};rt.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:L7};rt.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Zr(e,"Reset")},attr:"reset",val:null,icon:tt.autoscale,click:L7};rt.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:tt.tooltip_basic,gravity:"ne",click:AB};var bB=2;function L7(e,r){var l;let t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o=i._subplots.geo||[];for(let s of o){let u=i[s],f=u._subplot;if(a==="zoom"){let c=f.projection,v=c.scale()/f.fitScale,[d,p]=c.rotate().map(k=>-k),[y,m]=c.invert(f.midPt),{minscale:b}=u.projection,A=(l=u.projection.maxscale)!=null?l:1/0,w=Math.min(b,A),x=Math.max(b,A),_=n==="in"?bB*v:1/bB*v;_>x?_=x:_<w&&(_=w),_!==v&&Ai.call("_guiRelayout",e,{[s+".projection.scale"]:_,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:y,[s+".center.lat"]:m,[s+".fitbounds"]:!1})}}a==="reset"&&dy(e,"geo")}rt.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:tt.tooltip_basic,gravity:"ne",click:AB};function wB(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function AB(e){var r=wB(e);Ai.call("_guiRelayout",e,"hovermode",r)}rt.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Zr(e,"Reset view")},icon:tt.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())}Ai.call("restyle",e,r)}};rt.toggleHover={name:"toggleHover",title:function(e){return Zr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:tt.tooltip_basic,gravity:"ne",click:function(e,r){var t=_B(e,r);t.hovermode=wB(e),Ai.call("_guiRelayout",e,t)}};rt.resetViews={name:"resetViews",title:function(e){return Zr(e,"Reset views")},icon:tt.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),Ln(e,r),t.setAttribute("data-attr","resetLastSave"),q7(e,r),dy(e,"geo"),dy(e,"map")}};rt.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Zr(e,"Toggle Spike Lines")},icon:tt.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Ai.call("_guiRelayout",e,C6e(e))}};function C6e(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=xB.list(e,null,!0),n={},i=0;i<a.length;i++){var o=a[i];n[o._name+".showspikes"]=t?!0:o._showSpikeInitial}return n}rt.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Zr(e,"Reset view")},attr:"reset",icon:tt.home,click:function(e){dy(e,"map")}};rt.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:TB};rt.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:TB};function TB(e,r){D6e(e,r,"map")}function D6e(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[t]||[],l=1.05,s={},u=0;u<o.length;u++){var f=o[u],c=i[f].zoom,v=n==="in"?l*c:c/l;s[f+".zoom"]=v}Ai.call("_guiRelayout",e,s)}function dy(e,r){for(var t=e._fullLayout,a=t._subplots[r]||[],n={},i=0;i<a.length;i++)for(var o=a[i],l=t[o]._subplot,s=l.viewInitial,u=Object.keys(s),f=0;f<u.length;f++){var c=u[f];n[o+"."+c]=s[c]}Ai.call("_guiRelayout",e,n)}});var D7=z((YZe,LB)=>{"use strict";var kB=C7(),E6e=Object.keys(kB),SB=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],qB=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(SB,["downloadJson"]),x0=[],P6e=function(e){if(qB.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();x0.indexOf(r)===-1&&x0.push(r),x0.indexOf(t)===-1&&x0.push(t)}};E6e.forEach(function(e){P6e(kB[e])});x0.sort();LB.exports={DRAW_MODES:SB,backButtons:qB,foreButtons:x0}});var P7={};qt(P7,{default:()=>F6e});var E7,R6e,F6e,R7=St(()=>{"use strict";E7=xc(D7()),R6e={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 *${E7.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 *${E7.default.foreButtons.join("*, *")}*.`].join(" ")}},F6e=R6e});var DB=z((VZe,CB)=>{"use strict";var z6e=ke(),td=qr(),N6e=Ct(),I6e=(R7(),ze(P7)).default;CB.exports=function(r,t){var a=r.modebar||{},n=N6e.newContainer(t,"modebar");function i(l,s){return z6e.coerce(a,n,I6e,l,s)}i("orientation"),i("bgcolor",td.addOpacity(t.paper_bgcolor,.5));var o=td.contrast(td.rgb(t.modebar.bgcolor));i("color",td.addOpacity(o,.3)),i("activecolor",td.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var FB=z((jZe,RB)=>{"use strict";var F7=Pr(),B6e=Br(),my=ke(),EB=Km(),O6e=Jv().version,H6e=new DOMParser;function PB(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var gl=PB.prototype;gl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),my.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};gl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};gl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};gl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&F7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||EB.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};gl.createIcon=function(e){var r=B6e(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=H6e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};gl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=F7.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:my.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};gl.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 U6e(e){return e+" (v"+O6e+")"}gl.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",U6e(my._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(EB.newplotlylogo)),e.appendChild(r),e};gl.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};gl.destroy=function(){my.removeElement(this.container.querySelector(".modebar"))};function G6e(e,r){var t=e._fullLayout,a=new PB({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&F7.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}RB.exports=G6e});var IB=z((WZe,NB)=>{"use strict";var Y6e=Aa(),zB=ri(),z7=Tr(),V6e=Ro().isUnifiedHover,j6e=FB(),yy=C7(),W6e=D7().DRAW_MODES,X6e=ke().extendDeep;NB.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=e7e(i):!a.displayModeBar&&a.watermark?o=[]:o=Z6e(r),n?n.update(r,o):t._modeBar=j6e(r,o)};function Z6e(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,V){if(typeof V=="string"){if(V.toLowerCase()===G.toLowerCase())return!0}else{var W=V.name,j=V._cat||V.name;if(W===G||j===G.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(G){for(var V=0;V<a.modeBarButtonsToRemove.length;V++)if(n(G,a.modeBarButtonsToRemove[V]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(G){for(var V=0;V<a.modeBarButtonsToAdd.length;V++)if(n(G,a.modeBarButtonsToAdd[V]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),v=r._has("pie"),d=r._has("funnelarea"),p=r._has("ternary"),y=r._has("map"),m=r._has("polar"),b=r._has("smith"),A=r._has("sankey"),w=$6e(r),x=V6e(r.hovermode),_=[];function k(G){if(G.length){for(var V=[],W=0;W<G.length;W++){for(var j=G[W],J=yy[j],te=J.name.toLowerCase(),ae=(J._cat||J.name).toLowerCase(),se=!1,$=0;$<s.length;$++){var fe=s[$].toLowerCase();if(fe===te||fe===ae){se=!0;break}}se||V.push(yy[j])}_.push(V)}}var T=!1,q=[],C=[],E=[],P=[];(u||v||d||p)+c+f+y+m+b>1?(C=["toggleHover"],E=["resetViews"]):c?(q=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):f?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(q=["zoomInMap","zoomOutMap"],C=["toggleHover"],E=["resetViewMap"]):v?C=["hoverClosestPie"]:A?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(K6e(t)||x)&&(C=[]),u&&!w&&(q=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?P=["zoom2d","pan2d"]:y||c?P=["pan2d"]:m&&(P=["zoom2d"]),J6e(t)&&P.push("select2d","lasso2d");var R=[],N=function(G){R.indexOf(G)===-1&&C.indexOf(G)!==-1&&R.push(G)};if(Array.isArray(l)){for(var I=[],O=0;O<l.length;O++){var U=l[O];typeof U=="string"?(U=U.toLowerCase(),W6e.indexOf(U)!==-1?(r._has("map")||r._has("cartesian"))&&P.push(U):U==="togglespikelines"?N("toggleSpikelines"):U==="togglehover"?N("toggleHover"):U==="hovercompare"?N("hoverCompareCartesian"):U==="hoverclosest"?(N("hoverClosestCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestPie")):U==="v1hovermode"?(N("hoverClosestCartesian"),N("hoverCompareCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestPie")):U==="downloadjson"&&(T=!0)):I.push(U)}l=I}var Y=["toImage"];return T&&Y.push("downloadJson"),a.showSendToCloud&&Y.push("sendChartToCloud"),k(Y),k(P),k(q.concat(E)),k(R),Q6e(_,l)}function $6e(e){for(var r=Y6e.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 J6e(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(z7.traceIs(a,"scatter-like")&&a.type!=="quiver"?(zB.hasMarkers(a)||zB.hasText(a))&&(r=!0):z7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function K6e(e){for(var r=0;r<e.length;r++)if(!z7.traceIs(e[r],"noHover"))return!1;return!0}function Q6e(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 e7e(e){for(var r=X6e([],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(yy[i]!==void 0)r[t][n]=yy[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var N7=z((XZe,BB)=>{"use strict";BB.exports={moduleType:"component",name:"modebar",layoutAttributes:(R7(),ze(P7)).default,supplyLayoutDefaults:DB(),manage:IB()}});var I7=z((ZZe,OB)=>{"use strict";var r7e=(on(),ze(nn)).FROM_BL;OB.exports=function(r,t,a){a===void 0&&(a=r7e[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 bf=z(ad=>{"use strict";var gf=ke(),B7=Bh(),zo=Aa().id2name,t7e=Gi(),HB=I7(),a7e=i0(),n7e=(jt(),ze(Zt)).ALMOST_EQUAL,i7e=(on(),ze(nn)).FROM_BL;ad.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;l<a.length;l++)f=zo(a[l]),c=e[f],v=r[f],o7e(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function y(q,C){for(l=0;l<q.length;l++){s=q[l];for(u in s)r[zo(u)][C]=s}}for(y(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(v=r[zo(u)],v.fixedrange){for(var m in s){var b=zo(m);(e[b]||{}).fixedrange===!1&&gf.warn("fixedrange was specified as false for axis "+b+" but was overridden because another axis in its constraint group has fixedrange true"),r[b].fixedrange=!0}break}}for(l=0;l<i.length;){s=i[l];for(u in s){v=r[zo(u)],v._matchGroup&&Object.keys(v._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}y(i,"_constraintGroup");var A=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],w=!1,x=!1;function _(){p=v[d],d==="rangebreaks"&&(x=v._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l];for(var k=0;k<A.length;k++){d=A[k],p=null;var T;for(u in s)if(f=zo(u),c=e[f],v=r[f],d in v){if(!v.matches&&(T=v,d in c)){_();break}p===null&&d in c&&_()}if(d==="range"&&p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(w=!0),d==="autorange"&&p===null&&w&&(p=!1),p===null&&d in T&&(p=T[d]),p!==null)for(u in s)v=r[zo(u)],v[d]=d==="range"?p.slice():p,d==="rangebreaks"&&(v._hasDayOfWeekBreaks=x,a7e(v,r))}}};function o7e(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,o=n._axisConstraintGroups,l=n._axisMatchGroups,s=r._id,u=s.charAt(0),f=((n._splomAxes||{})[u]||{})[s]||{},c=r._id,v=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function d(R,N){return gf.coerce(e,r,t7e,R,N)}d("constrain",i?"domain":"range"),gf.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 A=n[zo(m)];A.type===p&&b.push(m)}var w=YB(o,c);if(w){var x=[];for(y=0;y<b.length;y++)m=b[y],w[m]||x.push(m);b=x}var _=b.length,k,T;_&&(e.matches||f.matches)&&(k=gf.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var q=i&&!v?r.anchor:void 0;if(_&&!k&&(e.scaleanchor||q)&&(T=gf.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",q)),k){r._matchGroup=O7(l,c,k,1);var C=n[zo(k)],E=UB(n,r)/UB(n,C);v!==(k.charAt(0)==="x")&&(E=(v?"x":"y")+E),O7(o,c,k,E)}else e.matches&&a.indexOf(e.matches)!==-1&&gf.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(T){var P=d("scaleratio");P||(P=r.scaleratio=1),O7(o,c,T,P)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&gf.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 UB(e,r){var t=r.domain;return t||(t=e[zo(r.overlaying)].domain),t[1]-t[0]}function YB(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function O7(e,r,t,a){var n,i,o,l,s,u=YB(e,r);u===null?(u={},u[r]=1,s=e.length,e.push(u)):s=e.indexOf(u);var f=Object.keys(u);for(n=0;n<e.length;n++)if(o=e[n],n!==s&&o[t]){var c=o[t];for(i=0;i<f.length;i++)l=f[i],o[l]=H7(c,H7(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var v=f[i];u[v]=H7(a,u[v])}u[t]=1}function H7(e,r){var t="",a="",n,i;typeof e=="string"&&(t=e.match(/^[xy]*/)[0],n=t.length,e=+e.slice(n)),typeof r=="string"&&(a=r.match(/^[xy]*/)[0],i=a.length,r=+r.slice(i));var o=e*r;return!n&&!i?o:!n||!i||t.charAt(0)===a.charAt(0)?t+a+e*r:n===i?o:(n>i?t.slice(i):a.slice(n))+o}function l7e(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if(typeof s=="string"){var u=s.match(/^[xy]*/)[0],f=u.length;s=+s.slice(f);for(var c=u.charAt(0)==="y"?a:1/a,v=0;v<f;v++)s*=c}n[l]=s}return n}ad.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,o,l,s,u,f,c;for(n=0;n<a.length;n++){o=l7e(a[n],t);var v=Object.keys(o),d=1/0,p=0,y=1/0,m={},b={},A=!1;for(i=0;i<v.length;i++)l=v[i],b[l]=s=t[zo(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),m[l]=u=Math.abs(s._m)/o[l],d=Math.min(d,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(y=Math.min(y,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(A=!0);if(!(d>n7e*p&&!A)){for(i=0;i<v.length;i++)if(l=v[i],u=m[l],s=b[l],f=s.constrain,u!==y||f==="domain")if(c=u/y,f==="range")HB(s,c);else{var w=s._inputDomain,x=(s.domain[1]-s.domain[0])/(w[1]-w[0]),_=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=x,c*_<1){s.domain=s._input.domain=w.slice(),HB(s,c);continue}if(_<1&&(s.range=s._input.range=s._inputRange.slice(),c*=_),s.autorange){var k=s.r2l(s.range[0]),T=s.r2l(s.range[1]),q=(k+T)/2,C=q,E=q,P=Math.abs(T-q),R=q-P*c*1.0001,N=q+P*c*1.0001,I=B7.makePadFn(t,s,0),O=B7.makePadFn(t,s,1);GB(s,c);var U=Math.abs(s._m),Y=B7.concatExtremes(r,s),G=Y.min,V=Y.max,W,j;for(j=0;j<G.length;j++)W=G[j].val-I(G[j])/U,W>R&&W<C&&(C=W);for(j=0;j<V.length;j++)W=V[j].val+O(V[j])/U,W<N&&W>E&&(E=W);var J=(E-C)/(2*P);c/=J,C=s.l2r(C),E=s.l2r(E),s.range=s._input.range=k<T?[C,E]:[E,C]}GB(s,c)}}}};ad.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};ad.clean=function(r,t){if(t._inputDomain){for(var a=!1,n=t._id,i=r._fullLayout._axisConstraintGroups,o=0;o<i.length;o++)if(i[o][n]){a=!0;break}(!a||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function GB(e,r){var t=e._inputDomain,a=i7e[e.constraintoward],n=t[0]+(t[1]-t[0])*a;e.domain=e._input.domain=[n+(t[0]-n)/r,n+(t[1]-n)/r],e.setScale()}});var xy=z(Ha=>{"use strict";var by=Pr(),Cn=Tr(),Ti=ma(),Xi=ke(),U7=Fa(),G7=Jm(),nd=qr(),_0=Jr(),VB=n0(),$B=N7(),id=Yr(),$l=(on(),ze(nn)),JB=bf(),s7e=JB.enforce,u7e=JB.clean,jB=Bh().doAutoRange,KB="start",f7e="middle",QB="end",c7e=(Pa(),ze(Ea)).zindexSeparator;Ha.layoutStyles=function(e){return Xi.syncOrAsync([Ti.doAutoMargin,h7e],e)};function v7e(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 h7e(e){var r=e._fullLayout,t=r._size,a=t.p,n=id.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(_0.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ha.drawMainTitle(e),$B.manage(e),!r._has("cartesian"))return Ti.previousPromises(e);function c(oe,be,Re){var ye=oe._lw/2;if(oe._id.charAt(0)==="x"){if(be){if(Re==="top")return be._offset-a-ye}else return t.t+t.h*(1-(oe.position||0))+ye%1;return be._offset+be._length+a+ye}if(be){if(Re==="right")return be._offset+be._length+a+ye}else return t.l+t.w*(oe.position||0)+ye%1;return be._offset-a-ye}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=_0.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,v,s.side),s._mainMirrorPosition=s.mirror&&v?c(s,v,$l.OPPOSITE_SIDE[s.side]):null}var d=[],p=[],y=[],m=nd.opacity(r.paper_bgcolor)===1&&nd.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(o in r._plots)if(l=r._plots[o],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var b=l.xaxis.domain,A=l.yaxis.domain,w=l.plotgroup;if(v7e(b,A,y)&&o.indexOf(c7e)===-1){var x=w.node(),_=l.bg=Xi.ensureSingle(w,"rect","bg");x.insertBefore(_.node(),x.childNodes[0]),p.push(o)}else w.select("rect.bg").remove(),y.push([b,A]),m||(d.push(o),p.push(o))}var k=r._bgLayer.selectAll(".bg").data(d);for(k.enter().append("rect").classed("bg",!0),k.exit().remove(),k.each(function(oe){r._plots[oe].bg=by.select(this)}),i=0;i<p.length;i++)l=r._plots[p[i]],u=l.xaxis,f=l.yaxis,l.bg&&u._offset!==void 0&&f._offset!==void 0&&l.bg.call(_0.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(nd.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var T=l.clipId="clip"+r._uid+o+"plot",q=Xi.ensureSingleById(r._clips,"clipPath",T,function(oe){oe.classed("plotclip",!0).append("rect")});l.clipRect=q.select("rect").attr({width:u._length,height:f._length}),_0.setTranslate(l.plot,u._offset,f._offset);var C,E;l._hasClipOnAxisFalse?(C=null,E=T):(C=T,E=null),_0.setClipUrl(l.plot,C,e),l.layerClipId=E}var P,R,N,I,O,U,Y,G,V,W,j,J,te;function ae(oe){return"M"+P+","+oe+"H"+R}function se(oe){return"M"+u._offset+","+oe+"h"+u._length}function $(oe){return"M"+oe+","+G+"V"+Y}function fe(oe){return f._shift!==void 0&&(oe+=f._shift),"M"+oe+","+f._offset+"v"+f._length}function ie(oe,be,Re){if(!oe.showline||o!==oe._mainSubplot)return"";if(!oe._anchorAxis)return Re(oe._mainLinePosition);var ye=be(oe._mainLinePosition);return oe.mirror&&(ye+=be(oe._mainMirrorPosition)),ye}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var ue="M0,0";WB(u,o)&&(O=gy(u,"left",f,n),P=u._offset-(O?a+O:0),U=gy(u,"right",f,n),R=u._offset+u._length+(U?a+U:0),N=c(u,f,"bottom"),I=c(u,f,"top"),te=!u._anchorAxis||o!==u._mainSubplot,te&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[N,I]),ue=ie(u,ae,se),te&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(ue+=ae(N)+ae(I)),l.xlines.style("stroke-width",u._lw+"px").call(nd.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ue);var ce="M0,0";WB(f,o)&&(j=gy(f,"bottom",u,n),Y=f._offset+f._length+(j?a:0),J=gy(f,"top",u,n),G=f._offset-(J?a:0),V=c(f,u,"left"),W=c(f,u,"right"),te=!f._anchorAxis||o!==f._mainSubplot,te&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[V,W]),ce=ie(f,$,fe),te&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ce+=$(V)+$(W)),l.ylines.style("stroke-width",f._lw+"px").call(nd.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ce)}return id.makeClipPaths(e),Ti.previousPromises(e)}function WB(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function XB(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=$l.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function gy(e,r,t,a){if(XB(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&XB(e,r,i))return i._lw}return 0}Ha.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=x7e(t),n=_7e(t),i=b7e(t,n),o=g7e(t,a);if(VB.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:o,y:i,"text-anchor":a,dy:n}}),r.text&&r.automargin){var l=by.select(e).selectAll(".gtitle"),s=_0.bBox(by.select(e).selectAll(".g-gtitle").node()).height,u=m7e(e,r,s);if(u>0){y7e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:ZB(r.yanchor)}).call(U7.positionText,o,i);var f=(r.text.match(U7.BR_TAG_ALL)||[]).length;if(f){var c=$l.LINE_SPACING*f+$l.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=by.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+VB.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:ZB(r.yanchor)}).call(U7.positionText,o,y)}}}};function d7e(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Xi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Xi.isTopAnchor(r)&&t==="t"||Xi.isBottomAnchor(r)&&t==="b"?!1:l<n}function p7e(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 m7e(e,r,t){var a=r.y,n=r.yanchor,i=a>.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=p7e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function y7e(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&d7e(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Ti.allowAutoMargin(e,n),Ti.autoMargin(e,n,l)}function g7e(e,r){var t=e.title,a=e._size,n=0;return r===KB?n=t.pad.l:r===QB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function b7e(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===$l.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 ZB(e){return e==="top"?$l.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":$l.MID_SHIFT+"em"}function x7e(e){var r=e.title,t=f7e;return Xi.isRightAnchor(r)?t=QB:Xi.isLeftAnchor(r)&&(t=KB),t}function _7e(e){var r=e.title,t="0em";return Xi.isTopAnchor(r)?t=$l.CAP_SHIFT+"em":Xi.isMiddleAnchor(r)&&(t=$l.MID_SHIFT+"em"),t}Ha.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a<r.length;a++){var n=r[a],i=n[0]||{},o=i.trace||{},l=o._module||{},s=l.arraysToCalcdata;s&&s(n,o);var u=l.editStyle;u&&t.push({fn:u,cd0:i})}if(t.length){for(a=0;a<t.length;a++){var f=t[a];f.fn(e,f.cd0)}G7(e),Ha.redrawReglTraces(e)}return Ti.style(e),Cn.getComponentMethod("legend","draw")(e),Ti.previousPromises(e)};Ha.doColorBars=function(e){return Cn.getComponentMethod("colorbar","draw")(e),Ti.previousPromises(e)};Ha.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,Cn.call("_doPlot",e,"",r)};Ha.doLegend=function(e){return Cn.getComponentMethod("legend","draw")(e),Ti.previousPromises(e)};Ha.doTicksRelayout=function(e){var r=id.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(Cn.subplotsRegistry.splom.updateGrid(e),G7(e),Ha.redrawReglTraces(e)),Ha.drawMainTitle(e),Promise.resolve(r).then(function(){return Ti.previousPromises(e)})};Ha.doModeBar=function(e){var r=e._fullLayout;$B.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return Ti.previousPromises(e)};Ha.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)}};Ha.drawData=function(e){var r=e._fullLayout;G7(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return Ha.redrawReglTraces(e),Ti.style(e),Cn.getComponentMethod("selections","draw")(e),Cn.getComponentMethod("shapes","draw")(e),Cn.getComponentMethod("annotations","draw")(e),Cn.getComponentMethod("images","draw")(e),r._replotting=!1,Ti.previousPromises(e)};Ha.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,a=[],n=[],i,o;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),i=0;i<t.length;i++){var l=t[i];l.visible===!0&&l._length!==0&&(l.type==="splom"?r._splomScenes[l.uid].draw():l.type==="scattergl"?Xi.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&Xi.pushUnique(n,l.subplot))}for(i=0;i<a.length;i++)o=r._plots[a[i]],o._scene&&o._scene.draw();for(i=0;i<n.length;i++)o=r[n[i]]._subplot,o._scene&&o._scene.draw()}};Ha.doAutoRangeAndConstraints=function(e){for(var r=id.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,u7e(e,t),jB(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=id.getFromId(e,o);jB(e,l,t.range),a[o]=1}}s7e(e)};Ha.finalDraw=function(e){Cn.getComponentMethod("rangeslider","draw")(e),Cn.getComponentMethod("rangeselector","draw")(e)};Ha.drawMarginPushers=function(e){Cn.getComponentMethod("legend","draw")(e),Cn.getComponentMethod("rangeselector","draw")(e),Cn.getComponentMethod("sliders","draw")(e),Cn.getComponentMethod("updatemenus","draw")(e),Cn.getComponentMethod("colorbar","draw")(e)}});var j7=z((KZe,nO)=>{"use strict";var w7e=Us().readPaths,A7e=sy(),eO=Es().clearOutlineControllers,Y7=qr(),rO=Jr(),T7e=Ct().arrayEditor,tO=Vs(),M7e=tO.getPathString;nO.exports={draw:_y,drawOne:aO,activateLastSelection:q7e};function _y(e){var r=e._fullLayout;eO(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++)aO(e,n)}function wy(e){return e._context.editSelection}function aO(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=tO.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=M7e(e,a),s={"data-index":r,"fill-rule":"evenodd",d:l},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||Y7.contrast(e._fullLayout.plot_bgcolor),v=a.line.width,d=a.line.dash;v||(v=5,d="solid");var p=wy(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=o.append("path").attr(s).style("opacity",m?.1:u).call(Y7.stroke,c).call(Y7.fill,f).call(rO.dashLine,m?"solid":d,m?4+v:v);if(k7e(b,e,a),p){var A=T7e(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:A,isActiveSelection:!0},x=w7e(l,e);A7e(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var _=y[0],k=y[1];k.node().addEventListener("click",function(){return S7e(e,_)})}}function k7e(e,r,t){var a=t.xref+t.yref;rO.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function S7e(e,r){if(wy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){V7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=V7,_y(e)}}}function q7e(e){if(wy(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=V7,_y(e)}}function V7(e){if(wy(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(eO(e),delete e._fullLayout._activeSelectionIndex,_y(e))}}});var oO=z((QZe,iO)=>{function L7e(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1,"  ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}iO.exports=L7e});var sO=z((e$e,lO)=>{function C7e(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u<e)return!1;var f=o*o+s*s;return!(u-f>-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])<e},pointsSameY:function(t,a){return Math.abs(t[1]-a[1])<e},pointsSame:function(t,a){return r.pointsSameX(t,a)&&r.pointsSameY(t,a)},pointsCompare:function(t,a){return r.pointsSameX(t,a)?r.pointsSameY(t,a)?0:t[1]<a[1]?-1:1:t[0]<a[0]?-1:1},pointsCollinear:function(t,a,n){var i=t[0]-a[0],o=t[1]-a[1],l=a[0]-n[0],s=a[1]-n[1];return Math.abs(i*s-l*o)<e},linesIntersect:function(t,a,n,i){var o=a[0]-t[0],l=a[1]-t[1],s=i[0]-n[0],u=i[1]-n[1],f=o*u-l*s;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],v=t[1]-n[1],d=(s*v-u*c)/f,p=(o*v-l*c)/f,y={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?y.alongA=-2:d<e?y.alongA=-1:d-1<=-e?y.alongA=0:d-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],o=a[a.length-1][0],l=a[a.length-1][1],s=!1,u=0;u<a.length;u++){var f=a[u][0],c=a[u][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}lO.exports=C7e});var fO=z((r$e,uO)=>{var D7e={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}};uO.exports=D7e});var vO=z((t$e,cO)=>{var od=fO();function E7e(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=od.create();function o(p,y,m,b,A,w){var x=r.pointsCompare(y,A);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?A:w,b?w:A)?1:-1}function l(p,y){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=od.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var b=od.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,l(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,l(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 d(p,y){var m=od.create();function b(O,U){var Y=O.seg.start,G=O.seg.end,V=U.seg.start,W=U.seg.end;return r.pointsCollinear(Y,V,W)?r.pointsCollinear(G,V,W)||r.pointAboveOrOnLine(G,V,W)?1:-1:r.pointAboveOrOnLine(Y,V,W)?1:-1}function A(O){return m.findTransition(function(U){var Y=b(O,U.ev);return Y>0})}function w(O,U){var Y=O.seg,G=U.seg,V=Y.start,W=Y.end,j=G.start,J=G.end;t&&t.checkIntersection(Y,G);var te=r.linesIntersect(V,W,j,J);if(te===!1){if(!r.pointsCollinear(V,W,j)||r.pointsSame(V,J)||r.pointsSame(W,j))return!1;var ae=r.pointsSame(V,j),se=r.pointsSame(W,J);if(ae&&se)return U;var $=!ae&&r.pointBetween(V,j,J),fe=!se&&r.pointBetween(W,j,J);if(ae)return fe?v(U,W):v(O,J),U;$&&(se||(fe?v(U,W):v(O,J)),v(U,V))}else te.alongA===0&&(te.alongB===-1?v(O,j):te.alongB===0?v(O,te.pt):te.alongB===1&&v(O,J)),te.alongB===0&&(te.alongA===-1?v(U,V):te.alongA===0?v(U,te.pt):te.alongA===1&&v(U,W));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let O=function(){if(T){var U=w(_,T);if(U)return U}return q?w(_,q):!1};var I=O;t&&t.segmentNew(_.seg,_.primary);var k=A(_),T=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,T?T.seg:!1,q?q.seg:!1);var C=O();if(C){if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,E&&(C.seg.myFill.above=!C.seg.myFill.above)}else C.seg.otherFill=_.seg.myFill;t&&t.segmentUpdate(C.seg),_.other.remove(),_.remove()}if(i.getHead()!==_){t&&t.rewind(_.seg);continue}if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,q?_.seg.myFill.below=q.seg.myFill.above:_.seg.myFill.below=p,E?_.seg.myFill.above=!_.seg.myFill.below:_.seg.myFill.above=_.seg.myFill.below}else if(_.seg.otherFill===null){var P;q?_.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=_.primary?y:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,T?T.seg:!1,q?q.seg:!1),_.other.status=k.insert(od.node({ev:_}))}else{var R=_.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&w(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!_.primary){var N=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=N}x.push(_.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 A=r.pointsCompare(y,m);A!==0&&f(a(A<0?y:m,A<0?m:y),!0)}},calculate:function(p){return d(p,!1)}}:{calculate:function(p,y,m,b){return p.forEach(function(A){f(n(A.start,A.end,A),!0)}),m.forEach(function(A){f(n(A.start,A.end,A),!1)}),d(y,b)}}}cO.exports=E7e});var dO=z((a$e,hO)=>{function P7e(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,O,U){return f.index=I,f.matches_head=O,f.matches_pt1=U,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v<a.length;v++){var d=a[v],p=d[0],y=d[1],m=d[d.length-1],b=d[d.length-2];if(r.pointsSame(p,o)){if(c(v,!0,!0))break}else if(r.pointsSame(p,l)){if(c(v,!0,!1))break}else if(r.pointsSame(m,o)){if(c(v,!1,!0))break}else if(r.pointsSame(m,l)&&c(v,!1,!1))break}if(f===s){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===u){t&&t.chainMatch(s.index);var A=s.index,w=s.matches_pt1?l:o,x=s.matches_head,d=a[A],_=x?d[0]:d[d.length-1],k=x?d[1]:d[d.length-2],T=x?d[d.length-1]:d[0],q=x?d[d.length-2]:d[1];if(r.pointsCollinear(k,_,w)&&(x?(t&&t.chainRemoveHead(s.index,w),d.shift()):(t&&t.chainRemoveTail(s.index,w),d.pop()),_=k),r.pointsSame(T,w)){a.splice(A,1),r.pointsCollinear(q,T,_)&&(x?(t&&t.chainRemoveTail(s.index,_),d.pop()):(t&&t.chainRemoveHead(s.index,_),d.shift())),t&&t.chainClose(s.index),n.push(d);return}x?(t&&t.chainAddHead(s.index,w),d.unshift(w)):(t&&t.chainAddTail(s.index,w),d.push(w));return}function C(I){t&&t.chainReverse(I),a[I].reverse()}function E(I,O){var U=a[I],Y=a[O],G=U[U.length-1],V=U[U.length-2],W=Y[0],j=Y[1];r.pointsCollinear(V,G,W)&&(t&&t.chainRemoveTail(I,G),U.pop(),G=V),r.pointsCollinear(G,W,j)&&(t&&t.chainRemoveHead(O,W),Y.shift()),t&&t.chainJoin(I,O),a[I]=U.concat(Y),a.splice(O,1)}var P=s.index,R=u.index;t&&t.chainConnect(P,R);var N=a[P].length<a[R].length;s.matches_head?u.matches_head?N?(C(P),E(P,R)):(C(R),E(R,P)):E(R,P):u.matches_head?E(P,R):N?(C(P),E(R,P)):(C(R),E(P,R))}),n}hO.exports=P7e});var mO=z((n$e,pO)=>{function ld(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var R7e={union:function(e,r){return ld(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ld(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ld(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ld(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ld(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};pO.exports=R7e});var gO=z((i$e,yO)=>{var F7e={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s<i.length;s++)l=e.selectDifference(e.combine(l,o(i[s])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var a=e.segments({inverted:!1,regions:[]}),n=0;n<r.coordinates.length;n++)a=e.selectUnion(e.combine(a,t(r.coordinates[n])));return e.polygon(a)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function a(d,p){return r.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],p)}function n(d){return{region:d,children:[]}}var i=n(null);function o(d,p){for(var y=0;y<d.children.length;y++){var m=d.children[y];if(a(p,m.region)){o(m,p);return}}for(var b=n(p),y=0;y<d.children.length;y++){var m=d.children[y];a(m.region,p)&&(b.children.push(m),d.children.splice(y,1),y--)}d.children.push(b)}for(var l=0;l<t.regions.length;l++){var s=t.regions[l];s.length<3||o(i,s)}function u(d,p){for(var y=0,m=d[d.length-1][0],b=d[d.length-1][1],A=[],w=0;w<d.length;w++){var x=d[w][0],_=d[w][1];A.push([x,_]),y+=_*m-x*b,m=x,b=_}var k=y<0;return k!==p&&A.reverse(),A.push([A[0][0],A[0][1]]),A}var f=[];function c(d){var p=[u(d.region,!1)];f.push(p);for(var y=0;y<d.children.length;y++)p.push(v(d.children[y]))}function v(d){for(var p=0;p<d.children.length;p++)c(d.children[p]);return u(d.region,!0)}for(var l=0;l<i.children.length;l++)c(i.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};yO.exports=F7e});var wO=z((o$e,_O)=>{var z7e=oO(),N7e=sO(),bO=vO(),I7e=dO(),sd=mO(),xO=gO(),Zi=!1,ud=N7e(),ai;ai={buildLog:function(e){return e===!0?Zi=z7e():e===!1&&(Zi=!1),Zi===!1?!1:Zi.list},epsilon:function(e){return ud.epsilon(e)},segments:function(e){var r=bO(!0,ud,Zi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=bO(!1,ud,Zi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:sd.union(e.combined,Zi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:sd.intersect(e.combined,Zi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:sd.difference(e.combined,Zi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:sd.differenceRev(e.combined,Zi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:sd.xor(e.combined,Zi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:I7e(e.segments,ud,Zi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return xO.toPolygon(ai,e)},polygonToGeoJSON:function(e){return xO.fromPolygon(ai,ud,e)},union:function(e,r){return fd(e,r,ai.selectUnion)},intersect:function(e,r){return fd(e,r,ai.selectIntersect)},difference:function(e,r){return fd(e,r,ai.selectDifference)},differenceRev:function(e,r){return fd(e,r,ai.selectDifferenceRev)},xor:function(e,r){return fd(e,r,ai.selectXor)}};function fd(e,r,t){var a=ai.segments(e),n=ai.segments(r),i=ai.combine(a,n),o=t(i);return ai.polygon(o)}typeof window=="object"&&(window.PolyBool=ai);_O.exports=ai});var TO=z((l$e,AO)=>{AO.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;u<s;f=u++){var c=t[u+a][0],v=t[u+a][1],d=t[f+a][0],p=t[f+a][1],y=v>o!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var X7=z((s$e,MO)=>{"use strict";var W7=Tp().dot,Ay=(jt(),ze(Zt)).BADNUM,Ty=MO.exports={};Ty.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)a=Math.min(a,t[l][0]),n=Math.max(n,t[l][0]),i=Math.min(i,t[l][1]),o=Math.max(o,t[l][1]);var s=!1,u;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(s=!0,u=function(p){return p[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(s=!0,u=function(p){return p[1]===t[0][1]}));function f(p,y){var m=p[0],b=p[1];return!(m===Ay||m<a||m>n||b===Ay||b<i||b>o||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===Ay||m<a||m>n||b===Ay||b<i||b>o)return!1;var A=t.length,w=t[0][0],x=t[0][1],_=0,k,T,q,C,E;for(k=1;k<A;k++)if(T=w,q=x,w=t[k][0],x=t[k][1],C=Math.min(T,w),!(m<C||m>Math.max(T,w)||b>Math.max(q,x)))if(b<Math.min(q,x))m!==C&&_++;else{if(w===T?E=b:E=q+(m-T)*(x-q)/(w-T),b===E)return!(k===1&&y);b<=E&&m!==C&&_++}return _%2===1}var v=!0,d=t[0];for(l=1;l<t.length;l++)if(d[0]!==t[l][0]||d[1]!==t[l][1]){v=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:s?f:c,isRect:s,degenerate:v}};Ty.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=W7(o,o),s=Math.sqrt(l),u=[-o[1]/s,o[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=W7(c,o),v<0||v>l||Math.abs(W7(c,u))>n)return!0;return!1};Ty.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||Ty.isSegmentBent(r,f,c+1,t))&&(a.push(r[c]),a.length<u-2&&(n=c,i=a.length-1),f=c)}if(r.length>1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var kO={};qt(kO,{BENDPX:()=>B7e,MINSELECT:()=>O7e,SELECTDELAY:()=>H7e,SELECTID:()=>U7e});var B7e,O7e,H7e,U7e,SO=St(()=>{"use strict";B7e=1.5,O7e=12,H7e=100,U7e="-select"});var ZO=z((u$e,XO)=>{"use strict";var qO=wO(),G7e=TO(),hd=Tr(),Y7e=Jr().dashStyle,cd=qr(),V7e=Un(),j7e=Ro().makeEventData,gd=df(),W7e=gd.freeMode,X7e=gd.rectMode,dd=gd.drawMode,K7=gd.openMode,Q7=gd.selectMode,LO=Vs(),CO=(ed(),ze(Qh)),FO=sy(),zO=Es().clearOutline,NO=Us(),Z7=NO.handleEllipse,Z7e=NO.readPaths,$7e=iy().newShapes,J7e=x7(),K7e=j7().activateLastSelection,ky=ke(),Q7e=ky.sorterAsc,IO=X7(),vd=zp(),$i=Aa().getFromId,ewe=Jm(),rwe=xy().redrawReglTraces,Sy=(SO(),ze(kO)),bl=Sy.MINSELECT,twe=IO.filter,ew=IO.tester,rw=ry(),DO=rw.p2r,awe=rw.axValue,nwe=rw.getTransform;function tw(e){return e.subplot!==void 0}function iwe(e,r,t,a,n){var i=!tw(a),o=W7e(n),l=X7e(n),s=K7(n),u=dd(n),f=Q7(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,A=a.element.getBoundingClientRect(),w=a.plotinfo,x=nwe(w),_=r-A.left,k=t-A.top;y._calcInverseTransform(p);var T=ky.apply3DTransform(y._invTransform)(_,k);_=T[0],k=T[1];var q=y._invScaleX,C=y._invScaleY,E=_,P=k,R="M"+_+","+k,N=a.xaxes[0],I=a.yaxes[0],O=N._length,U=I._length,Y=e.altKey&&!(dd(n)&&s),G,V,W,j,J,te,ae;OO(e,p,a),o&&(G=twe([[_,k]],Sy.BENDPX));var se=b.selectAll("path.select-outline-"+w.id).data([1]),$=u?y.newshape:y.newselection;u&&(a.hasText=$.label.text||$.label.texttemplate);var fe=u&&!s?$.fillcolor:"rgba(0,0,0,0)",ie=$.line.color||(i?cd.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");se.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?$.opacity/2:1,"stroke-dasharray":Y7e($.line.dash,$.line.width),"stroke-width":$.line.width+"px","shape-rendering":"crispEdges"}).call(cd.stroke,ie).call(cd.fill,fe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",R+"Z");var ue=b.append("path").attr("class","zoombox-corners").style({fill:cd.background,stroke:cd.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var ce=b.select(".label-temp");ce.empty()&&(ce=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var oe=y._uid+Sy.SELECTID,be=[],Re=qy(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ce=N._id,Me=I._id;VO(p,Ce,Me,Re);for(var Le=(p.layout||{}).selections||[],De=[],Ie=!1,qe=0;qe<Le.length;qe++){var Ze=y.selections[qe];!Ze||Ze.xref!==Ce||Ze.yref!==Me?De.push(Le[qe]):Ie=!0}Ie&&(p._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",p,{selections:De}))}});var ye=bwe(a);a.moveFn=function(Ce,Me){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),E=Math.max(0,Math.min(O,q*Ce+_)),P=Math.max(0,Math.min(U,C*Me+k));var Le=Math.abs(E-_),De=Math.abs(P-k);if(l){var Ie,qe,Ze;if(f){var Je=y.selectdirection;switch(Je==="any"?De<Math.min(Le*.6,bl)?Ie="h":Le<Math.min(De*.6,bl)?Ie="v":Ie="d":Ie=Je,Ie){case"h":qe=v?U/2:0,Ze=U;break;case"v":qe=v?O/2:0,Ze=O;break}}if(u)switch(y.newshape.drawdirection){case"vertical":Ie="h",qe=v?U/2:0,Ze=U;break;case"horizontal":Ie="v",qe=v?O/2:0,Ze=O;break;case"ortho":Le<De?(Ie="h",qe=k,Ze=P):(Ie="v",qe=_,Ze=E);break;default:Ie="d"}Ie==="h"?(j=d?Z7(v,[E,qe],[E,Ze]):[[_,qe],[_,Ze],[E,Ze],[E,qe]],j.xmin=d?E:Math.min(_,E),j.xmax=d?E:Math.max(_,E),j.ymin=Math.min(qe,Ze),j.ymax=Math.max(qe,Ze),ue.attr("d","M"+j.xmin+","+(k-bl)+"h-4v"+2*bl+"h4ZM"+(j.xmax-1)+","+(k-bl)+"h4v"+2*bl+"h-4Z")):Ie==="v"?(j=d?Z7(v,[qe,P],[Ze,P]):[[qe,k],[qe,P],[Ze,P],[Ze,k]],j.xmin=Math.min(qe,Ze),j.xmax=Math.max(qe,Ze),j.ymin=d?P:Math.min(k,P),j.ymax=d?P:Math.max(k,P),ue.attr("d","M"+(_-bl)+","+j.ymin+"v-4h"+2*bl+"v4ZM"+(_-bl)+","+(j.ymax-1)+"v4h"+2*bl+"v-4Z")):Ie==="d"&&(j=d?Z7(v,[_,k],[E,P]):[[_,k],[_,P],[E,P],[E,k]],j.xmin=Math.min(_,E),j.xmax=Math.max(_,E),j.ymin=Math.min(k,P),j.ymax=Math.max(k,P),ue.attr("d","M0,0Z"))}else o&&(G.addPt([E,P]),j=G.filtered);if(a.selectionDefs&&a.selectionDefs.length?(W=HO(a.mergedPolygons,j,Y),j.subtract=Y,V=aw(a.selectionDefs.concat([j]))):(W=[j],V=ew(j)),FO(GO(W,s),se,a),f){var Xe=J7(p,!1),Se=Xe.eventData?Xe.eventData.points.slice():[];Xe=J7(p,!1,V,Re,a),V=Xe.selectionTesters,ae=Xe.eventData;var Fe;G?Fe=G.filtered:Fe=jO(W),vd.throttle(oe,Sy.SELECTDELAY,function(){be=YO(V,Re);for(var er=be.slice(),re=0;re<Se.length;re++){for(var xe=Se[re],Ye=!1,vr=0;vr<er.length;vr++)if(er[vr].curveNumber===xe.curveNumber&&er[vr].pointNumber===xe.pointNumber){Ye=!0;break}Ye||er.push(xe)}er.length&&(ae||(ae={}),ae.points=er),ye(ae,Fe),xwe(p,ae)})}},a.clickFn=function(Ce,Me){if(ue.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=y.clickmode;vd.done(oe).then(function(){if(vd.clear(oe),Ce===2){for(se.remove(),J=0;J<Re.length;J++)te=Re[J],te._module.selectPoints(te,!1);if(md(p,Re),pd(a),iw(p),Re.length){var De=Re[0].xaxis,Ie=Re[0].yaxis;if(De&&Ie){for(var qe=[],Ze=p._fullLayout.selections,Je=0;Je<Ze.length;Je++){var Xe=Ze[Je];Xe&&(Xe.xref!==De._id||Xe.yref!==Ie._id)&&qe.push(Xe)}qe.length<Ze.length&&(p._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",p,{selections:qe}))}}}else Le.indexOf("select")>-1&&BO(Me,p,a.xaxes,a.yaxes,a.subplot,a,se),Le==="event"&&yd(p,void 0);V7e.click(p,Me,w.id)}).catch(ky.error)}},a.doneFn=function(){ue.remove(),vd.done(oe).then(function(){vd.clear(oe),!m&&j&&a.selectionDefs&&(j.subtract=Y,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(m||u)&&pd(a,m),a.doneFnCompleted&&a.doneFnCompleted(be),f&&yd(p,ae)}).catch(ky.error)}}function BO(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,y,m,b,A,w,x,_;if(fwe(l)){OO(e,r,i),v=qy(r,t,a,n);var k=cwe(l,v),T=k.pointNumbers.length>0;if(T?vwe(v,k):hwe(v)&&(A=PO(k))){for(o&&o.remove(),_=0;_<v.length;_++)d=v[_],d._module.selectPoints(d,!1);md(r,v),pd(i),f&&iw(r)}else{w=e.shiftKey&&(A!==void 0?A:PO(k)),p=owe(k.pointNumber,k.searchInfo,w);var q=i.selectionDefs.concat([p]);for(y=aw(q,y),_=0;_<v.length;_++)if(m=v[_]._module.selectPoints(v[_],y),b=UO(m,v[_]),c.length)for(var C=0;C<b.length;C++)c.push(b[C]);else c=b;if(x={points:c},md(r,v,x),p&&i&&i.selectionDefs.push(p),o){var E=i.mergedPolygons,P=K7(i.dragmode);FO(GO(E,P),o,i)}f&&yd(r,x)}}}function owe(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function $7(e){return"pointNumber"in e&&"searchInfo"in e}function lwe(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,a,n){var i=e.searchInfo.cd[0].trace.index,o=n.cd[0].trace.index;return o===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function aw(e){if(!e.length)return;for(var r=[],t=$7(e[0])?0:e[0][0][0],a=t,n=$7(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if($7(e[o]))r.push(lwe(e[o]));else{var l=ew(e[o]);l.subtract=!!e[o].subtract,r.push(l),t=Math.min(t,l.xmin),a=Math.max(a,l.xmax),n=Math.min(n,l.ymin),i=Math.max(i,l.ymax)}function s(u,f,c,v){for(var d=!1,p=0;p<r.length;p++)r[p].contains(u,f,c,v)&&(d=!r[p].subtract);return d}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function OO(e,r,t){var a=r._fullLayout,n=t.plotinfo,i=t.dragmode,o=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,l=(e.shiftKey||e.altKey)&&!(dd(i)&&K7(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&pd(t),o||(zO(r),a._lastSelectedSubplot=n.id)}function swe(e){return e._fullLayout._activeShapeIndex>=0}function uwe(e){return e._fullLayout._activeSelectionIndex>=0}function pd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;swe(n)&&n._fullLayout._deactivateShape(n),uwe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=dd(t),s=Q7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=$7e(u,e)),f&&hd.call("_guiRelayout",n,{shapes:f});var c;s&&!tw(e)&&(c=J7e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",n,{selections:c}).then(function(){r&&K7e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function EO(e){return e._id}function qy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(EO),o=t.map(EO),l,s,u;for(u=0;u<e.calcdata.length;u++)if(l=e.calcdata[u],s=l[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(tw({subplot:a})&&(s.subplot===a||s.geo===a))n.push(My(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=My(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=My(s._module,l,r[0],t[0]);n.push(c)}else{if(i.indexOf(s.xaxis)===-1&&(!s._xA||!s._xA.overlaying)||o.indexOf(s.yaxis)===-1&&(!s._yA||!s._yA.overlaying))continue;n.push(My(s._module,l,$i(e,s.xaxis),$i(e,s.yaxis)))}return n}function My(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function fwe(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function cwe(e,r){var t=e[0],a=-1,n=[],i,o;for(o=0;o<r.length;o++)if(i=r[o],t.fullData.index===i.cd[0].trace.index){if(t.hoverOnBox===!0)break;t.pointNumber!==void 0?a=t.pointNumber:t.binNumber!==void 0&&(a=t.binNumber,n=t.pointNumbers);break}return{pointNumber:a,pointNumbers:n,searchInfo:i}}function PO(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 vwe(e,r){var t=[],a,n,i,o;for(o=0;o<e.length;o++)a=e[o],a.cd[0].trace.selectedpoints&&a.cd[0].trace.selectedpoints.length>0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o<r.pointNumbers.length;o++)if(n.selectedpoints.indexOf(r.pointNumbers[o])<0)return!1;return!0}return!1}function hwe(e){var r=0,t,a,n;for(n=0;n<e.length;n++)if(t=e[n],a=t.cd[0].trace,a.selectedpoints&&(a.selectedpoints.length>1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function md(e,r,t){var a,n;for(a=0;a<r.length;a++){n=r[a].cd[0].trace;var i=e._fullLayout._tracePreGUI[n.uid]||{};i.selectedpoints===void 0&&(i.selectedpoints=n._input.selectedpoints||null)}if(t){var o=t.points||[];for(a=0;a<r.length;a++)n=r[a].cd[0].trace,n._input.selectedpoints=n.selectedpoints=[];for(var l=0;l<o.length;l++){var s=o[l],u=s.data,f=s.pointIndex,c=s.pointIndices;c?[].push.apply(u.selectedpoints,c):u.selectedpoints.push(f)}}else for(a=0;a<r.length;a++)n=r[a].cd[0].trace,delete n.selectedpoints,delete n._input.selectedpoints;dwe(e,r)}function dwe(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;hd.traceIs(i[0].trace,"regl")&&(t=!0);var o=n._module,l=o.styleOnSelect||o.style;l&&(l(e,i,i[0].node3),i[0].nodeRangePlot3&&l(e,i,i[0].nodeRangePlot3))}t&&(ewe(e),rwe(e))}function HO(e,r,t){for(var a=t?qO.difference:qO.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=nw(l,i.slice(0,o))}return i}function UO(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=j7e(e[n],a,t);return e}function GO(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 YO(e,r){for(var t=[],a,n=[],i,o=0;o<r.length;o++){var l=r[o];i=l._module.selectPoints(l,e),n.push(i),a=UO(i,l),t=t.concat(a)}return t}function J7(e,r,t,a,n){var i=!!a,o,l,s;n&&(o=n.plotinfo,l=n.xaxes[0]._id,s=n.yaxes[0]._id);var u=[],f=[],c=RO(e),v=e._fullLayout;if(o){var d=v._zoomlayer,p=v.dragmode,y=dd(p),m=Q7(p);if(y||m){var b=$i(e,l,"x"),A=$i(e,s,"y");if(b&&A){var w=d.selectAll(".select-outline-"+o.id);if(w&&e._fullLayout._outlining&&w.length){for(var x=w[0][0],_=x.getAttribute("d"),k=Z7e(_,e,o),T=[],q=0;q<k.length;q++){for(var C=k[q],E=[],P=0;P<C.length;P++)E.push([js(b,C[P][1]),js(A,C[P][2])]);E.xref=l,E.yref=s,E.subtract=nw(E,T),T.push(E)}c=c.concat(T)}}}}var R=l&&s?[l+s]:v._subplots.cartesian;pwe(e);for(var N={},I=0;I<R.length;I++){var O=R[I],U=O.indexOf("y"),Y=O.slice(0,U),G=O.slice(U),V=l&&s?t:void 0;if(V=ywe(c,Y,G,V),V){var W=a;if(!i){var j=$i(e,Y,"x"),J=$i(e,G,"y");W=qy(e,[j],[J],O);for(var te=0;te<W.length;te++){var ae=W[te],se=ae.cd[0],$=se.trace;if(ae._module.name==="scattergl"&&!se.t.xpx){var fe=$.x,ie=$.y,ue=$._length;se.t.xpx=[],se.t.ypx=[];for(var ce=0;ce<ue;ce++)se.t.xpx[ce]=j.c2p(fe[ce]),se.t.ypx[ce]=J.c2p(ie[ce])}ae._module.name==="splom"&&(N[$.uid]||(N[$.uid]=!0))}}var oe=YO(V,W);u=u.concat(oe),f=f.concat(W)}}var be={points:u};md(e,f,be);var Re=v.clickmode,ye=Re.indexOf("event")>-1&&r;if(!o&&r){var Ce=RO(e,!0);if(Ce.length){var Me=Ce[0].xref,Le=Ce[0].yref;if(Me&&Le){var De=jO(Ce),Ie=WO([$i(e,Me,"x"),$i(e,Le,"y")]);Ie(be,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ye&&yd(e,be),v._reselect=!1}if(!o&&v._deselect){var qe=v._deselect;l=qe.xref,s=qe.yref,mwe(l,s,f)||VO(e,l,s,a),ye&&(be.points.length?yd(e,be):iw(e)),v._deselect=!1}return{eventData:be,selectionTesters:t}}function pwe(e){var r=e.calcdata;if(r)for(var t=0;t<r.length;t++){var a=r[t][0],n=a.trace,i=e._fullLayout._splomScenes;if(i){var o=i[n.uid];o&&(o.selectBatch=[])}}}function mwe(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 VO(e,r,t,a){a=qy(e,[$i(e,r,"x")],[$i(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}md(e,a)}function ywe(e,r,t,a){for(var n,i=0;i<e.length;i++){var o=e[i];if(!(r!==o.xref||t!==o.yref))if(n){var l=!!o.subtract;n=HO(n,o,l),a=aw(n)}else n=[o],a=ew(o)}return a}function RO(e,r){for(var t=[],a=e._fullLayout,n=a.selections,i=n.length,o=0;o<i;o++)if(!(r&&o!==a._activeSelectionIndex)){var l=n[o];if(l){var s=l.xref,u=l.yref,f=$i(e,s,"x"),c=$i(e,u,"y"),v,d,p,y,m;if(l.type==="rect"){m=[];var b=js(f,l.x0),A=js(f,l.x1),w=js(c,l.y0),x=js(c,l.y1);m=[[b,w],[b,x],[A,x],[A,w]],v=Math.min(b,A),d=Math.max(b,A),p=Math.min(w,x),y=Math.max(w,x),m.xmin=v,m.xmax=d,m.ymin=p,m.ymax=y,m.xref=s,m.yref=u,m.subtract=!1,m.isRect=!0,t.push(m)}else if(l.type==="path")for(var _=l.path.split("Z"),k=[],T=0;T<_.length;T++){var q=_[T];if(q){q+="Z";var C=LO.extractPathCoords(q,CO.paramIsX,"raw"),E=LO.extractPathCoords(q,CO.paramIsY,"raw");v=1/0,d=-1/0,p=1/0,y=-1/0,m=[];for(var P=0;P<C.length;P++){var R=js(f,C[P]),N=js(c,E[P]);m.push([R,N]),v=Math.min(R,v),d=Math.max(R,d),p=Math.min(N,p),y=Math.max(N,y)}m.xmin=v,m.xmax=d,m.ymin=p,m.ymax=y,m.xref=s,m.yref=u,m.subtract=nw(m,k),k.push(m),t.push(m)}}}}return t}function nw(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(G7e(e[i],n)){t=!t;break}return t}function js(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function jO(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 gwe(t)}function gwe(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 WO(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var o=e[i],l=o._id,s=l.charAt(0);if(t.isRect){a||(a={});var u=t[s+"min"],f=t[s+"max"];u!==void 0&&f!==void 0&&(a[l]=[DO(o,u),DO(o,f)].sort(Q7e))}else n||(n={}),n[l]=t.map(awe(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function bwe(e){var r=e.plotinfo;return r.fillRangeItems||WO(e.xaxes.concat(e.yaxes))}function xwe(e,r){e.emit("plotly_selecting",r)}function yd(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function iw(e){e.emit("plotly_deselect",null)}XO.exports={reselect:J7,prepSelect:iwe,clearOutline:zO,clearSelectionsCache:pd,selectOnClick:BO}});var ow=z((f$e,$O)=>{"use strict";$O.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var bd={};qt(bd,{axisRefDescription:()=>_we});function _we(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 xd=St(()=>{"use strict"});var w0=z((v$e,QO)=>{"use strict";var JO=ow(),KO=Ca(),Ly=(Pa(),ze(Ea)),wwe=Ct().templatedArray,c$e=(xd(),ze(bd));QO.exports=wwe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:KO({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:JO.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:JO.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",Ly.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ly.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ly.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",Ly.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:KO({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var _d={};qt(_d,{PTS_LINESONLY:()=>Awe,eventDataKeys:()=>Swe,maxScreensAway:()=>kwe,minTolerance:()=>Twe,toleranceGrowth:()=>Mwe});var Awe,Twe,Mwe,kwe,Swe,wd=St(()=>{"use strict";Awe=20,Twe=.2,Mwe=10,kwe=20,Swe=[]});var Cy=z((h$e,eH)=>{"use strict";eH.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ji=z((d$e,sH)=>{"use strict";var rH=Eo().axisHoverFormat,{hovertemplateAttrs:qwe,texttemplateAttrs:Lwe,templatefallbackAttrs:tH}=di(),aH=ol(),Cwe=Ca(),nH=Bi().dash,Dwe=Bi().pattern,Ewe=Jr(),Pwe=(wd(),ze(_d)),Ad=Mt().extendFlat,Rwe=Cy();function iH(e){return{valType:"any",dflt:0,editType:"calc"}}function oH(e){return{valType:"any",editType:"calc"}}function lH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}sH.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:iH("x"),yperiod:iH("y"),xperiod0:oH("x0"),yperiod0:oH("y0"),xperiodalignment:lH("x"),yperiodalignment:lH("y"),xhoverformat:rH("x"),yhoverformat:rH("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:Lwe(),texttemplatefallback:tH({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:qwe({},{keys:Pwe.eventDataKeys}),hovertemplatefallback:tH(),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:Ad({},nH,{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:Rwe(!0),fillgradient:Ad({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:Dwe,marker:Ad({symbol:{valType:"enumerated",values:Ewe.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:Ad({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ad({},nH,{arrayOk:!0}),editType:"calc"},aH("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"},aH("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:Cwe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var lw=z((m$e,cH)=>{"use strict";var uH=w0(),fH=Ji().line,Fwe=Bi().dash,Dy=Mt().extendFlat,zwe=qo().overrideAll,Nwe=Ct().templatedArray,p$e=(xd(),ze(bd));cH.exports=zwe(Nwe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Dy({},uH.xref,{}),yref:Dy({},uH.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:fH.color,width:Dy({},fH.width,{min:1,dflt:1}),dash:Dy({},Fwe,{dflt:"dot"})}}),"arraydraw","from-root")});var pH=z((y$e,dH)=>{"use strict";var vH=ke(),Ey=Yr(),Iwe=Po(),Bwe=lw(),hH=Vs();dH.exports=function(r,t){Iwe(r,t,{name:"selections",handleItemDefaults:Owe});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 Owe(e,r,t){function a(k,T){return vH.coerce(e,r,Bwe,k,T)}var n=a("path"),i=n?"path":"rect",o=a("type",i),l=o!=="path";l&&delete r.path,a("opacity"),a("line.color"),a("line.width"),a("line.dash");for(var s=["x","y"],u=0;u<2;u++){var f=s[u],c={_fullLayout:t},v,d,p,y=Ey.coerceRef(e,r,c,f);if(v=Ey.getFromId(c,y),v._selectionIndices.push(r._index),p=hH.rangeToShapePosition(v),d=hH.shapePositionToRange(v),l){var m=f+"0",b=f+"1",A=e[m],w=e[b];e[m]=d(e[m],!0),e[b]=d(e[b],!0),Ey.coercePosition(r,c,a,y,m),Ey.coercePosition(r,c,a,y,b);var x=r[m],_=r[b];x!==void 0&&_!==void 0&&(r[m]=p(x),r[b]=p(_),e[m]=A,e[b]=w)}}l&&vH.noneOrAll(e,r,["x0","x1","y0","y1"])}});var yH=z((g$e,mH)=>{"use strict";mH.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 Td=z((b$e,xH)=>{"use strict";var Hwe=Tr(),gH=ke(),bH=Aa();xH.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Hwe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d<i.length;d++){var p=i[d];if(gH.isPlainObject(p)){var y=bH.cleanId(p.xref,"x",!1),m=bH.cleanId(p.yref,"y",!1),b=l.x.test(y),A=l.y.test(m);if(b||A){v||gH.pushUnique(n._basePlotModules,o);var w=!1;b&&u.indexOf(y)===-1&&(u.push(y),w=!0),A&&f.indexOf(m)===-1&&(f.push(m),w=!0),w&&b&&A&&c.push(y+m)}}}}}});var xl=z((x$e,wH)=>{"use strict";var _H=j7(),Md=ZO();wH.exports={moduleType:"component",name:"selections",layoutAttributes:lw(),supplyLayoutDefaults:pH(),supplyDrawNewSelectionDefaults:yH(),includeBasePlot:Td()("selections"),draw:_H.draw,drawOne:_H.drawOne,reselect:Md.reselect,prepSelect:Md.prepSelect,clearOutline:Md.clearOutline,clearSelectionsCache:Md.clearSelectionsCache,selectOnClick:Md.selectOnClick}});var UH=z((_$e,HH)=>{"use strict";var hw=Pr(),Ki=ke(),AH=Ki.numberFormat,Uwe=G6(),Py=Tr(),DH=Ki.strTranslate,Gwe=Fa(),uw=qr(),Ws=Jr(),Ywe=Un(),TH=Yr(),Vwe=Os(),jwe=Vi(),EH=df(),Ry=EH.selectingOrDrawing,Wwe=EH.freeMode,Xwe=(on(),ze(nn)).FROM_TL,Zwe=Jm(),$we=xy().redrawReglTraces,Jwe=ma(),fw=Aa().getFromId,Kwe=xl().prepSelect,Qwe=xl().clearOutline,e8e=xl().selectOnClick,sw=I7(),dw=(Pa(),ze(Ea)),MH=dw.MINDRAG,Gn=dw.MINZOOM,kH=!0;function r8e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,y,m,b,A,w,x,_,k,T,q,C,E,P,R,N,I,O,U,Y;t+=r.yaxis._shift;function G(){if(c=r.xaxis,v=r.yaxis,w=c._length,x=v._length,b=c._offset,A=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var me=r.overlays,Te=0;Te<me.length;Te++){var Ue=me[Te].xaxis;d[Ue._id]=Ue;var $e=me[Te].yaxis;p[$e._id]=$e}y=CH(d),m=CH(p),T=SH(y,l),q=SH(m,o),C=!q&&!T,k=LH(e,e._fullLayout._axisMatchGroups,d,p),_=LH(e,e._fullLayout._axisConstraintGroups,d,p,k);var Oe=_.isSubplotConstrained||k.isSubplotConstrained;E=l||Oe,P=o||Oe;var We=e._fullLayout;R=We._has("scattergl"),N=We._has("splom"),I=We._has("svg")}G();var V=n8e(q+T,e._fullLayout.dragmode,u),W=RH(r,o+l+"drag",V,t,a,n,i);if(C&&!u)return W.onmousedown=null,W.style.pointerEvents="none",W;var j={element:W,gd:e,plotinfo:r};j.prepFn=function(me,Te,Ue){var $e=j.dragmode,Oe=e._fullLayout.dragmode;Oe!==$e&&(j.dragmode=Oe),G(),U=e._fullLayout._invScaleX,Y=e._fullLayout._invScaleY,C||(u?me.shiftKey?Oe==="pan"?Oe="zoom":Ry(Oe)||(Oe="pan"):me.ctrlKey&&(Oe="pan"):Oe="pan"),Wwe(Oe)?j.minDrag=1:j.minDrag=void 0,Ry(Oe)?(j.xaxes=y,j.yaxes=m,Kwe(me,Te,Ue,j,Oe)):(j.clickFn=te,Ry($e)&&J(),C||(Oe==="zoom"?(j.moveFn=Ce,j.doneFn=Le,j.minDrag=1,ye(me,Te,Ue)):Oe==="pan"&&(j.moveFn=Xe,j.doneFn=re))),e._fullLayout._redrag=function(){var We=e._dragdata;if(We&&We.element===W){var ar=e._fullLayout.dragmode;Ry(ar)||(G(),xe([0,0,w,x]),j.moveFn(We.dx,We.dy))}}};function J(){j.plotinfo.selection=!1,Qwe(e)}function te(me,Te){var Ue=j.gd;if(Ue._fullLayout._activeShapeIndex>=0){Ue._fullLayout._deactivateShape(Ue);return}var $e=Ue._fullLayout.clickmode;if(vw(Ue),me===2&&!f&&er(),u)$e.indexOf("select")>-1&&e8e(Te,Ue,y,m,r.id,j),$e.indexOf("event")>-1&&Ywe.click(Ue,Te,r.id);else if(me===1&&f){var Oe=o?v:c,We=o==="s"||l==="w"?0:1,ar=Oe._name+".range["+We+"]",or=t8e(Oe,We),sr="left",Ee="middle";if(Oe.fixedrange)return;o?(Ee=o==="n"?"top":"bottom",Oe.side==="right"&&(sr="right")):l==="e"&&(sr="right"),Ue._context.showAxisRangeEntryBoxes&&hw.select(W).call(Gwe.makeEditable,{gd:Ue,immediate:!0,background:Ue._fullLayout.paper_bgcolor,text:String(or),fill:Oe.tickfont?Oe.tickfont.color:"#444",horizontalAlign:sr,verticalAlign:Ee}).on("edit",function(Ke){var Be=Oe.d2r(Ke);Be!==void 0&&Py.call("_guiRelayout",Ue,ar,Be)})}}jwe.init(j);var ae,se,$,fe,ie,ue,ce,oe,be,Re;function ye(me,Te,Ue){var $e=W.getBoundingClientRect();ae=Te-$e.left,se=Ue-$e.top,e._fullLayout._calcInverseTransform(e);var Oe=Ki.apply3DTransform(e._fullLayout._invTransform)(ae,se);ae=Oe[0],se=Oe[1],$={l:ae,r:ae,w:0,t:se,b:se,h:0},fe=e._hmpixcount?e._hmlumcount/e._hmpixcount:uw.luminosity(e._fullLayout.plot_bgcolor),ie="M0,0H"+w+"V"+x+"H0V0",ue=!1,ce="xy",Re=!1,oe=FH(s,fe,b,A,ie),be=zH(s,b,A)}function Ce(me,Te){if(e._transitioningWithDuration)return!1;var Ue=Math.max(0,Math.min(w,U*me+ae)),$e=Math.max(0,Math.min(x,Y*Te+se)),Oe=Math.abs(Ue-ae),We=Math.abs($e-se);$.l=Math.min(ae,Ue),$.r=Math.max(ae,Ue),$.t=Math.min(se,$e),$.b=Math.max(se,$e);function ar(){ce="",$.r=$.l,$.t=$.b,be.attr("d","M0,0Z")}if(_.isSubplotConstrained)Oe>Gn||We>Gn?(ce="xy",Oe/w>We/x?(We=Oe*x/w,se>$e?$.t=se-We:$.b=se+We):(Oe=We*w/x,ae>Ue?$.l=ae-Oe:$.r=ae+Oe),be.attr("d",Fy($))):ar();else if(k.isSubplotConstrained)if(Oe>Gn||We>Gn){ce="xy";var or=Math.min($.l/w,(x-$.b)/x),sr=Math.max($.r/w,(x-$.t)/x);$.l=or*w,$.r=sr*w,$.b=(1-or)*x,$.t=(1-sr)*x,be.attr("d",Fy($))}else ar();else!q||We<Math.min(Math.max(Oe*.6,MH),Gn)?Oe<MH||!T?ar():($.t=0,$.b=x,ce="x",be.attr("d",i8e($,se))):!T||Oe<Math.min(We*.6,Gn)?($.l=0,$.r=w,ce="y",be.attr("d",o8e($,ae))):(ce="xy",be.attr("d",Fy($)));$.w=$.r-$.l,$.h=$.b-$.t,ce&&(Re=!0),e._dragged=Re,NH(oe,be,$,ie,ue,fe),Me(),e.emit("plotly_relayouting",O),ue=!0}function Me(){O={},(ce==="xy"||ce==="x")&&(cw(y,$.l/w,$.r/w,O,_.xaxes),Se("x",O)),(ce==="xy"||ce==="y")&&(cw(m,(x-$.b)/x,(x-$.t)/x,O,_.yaxes),Se("y",O))}function Le(){Me(),vw(e),re(),BH(e)}var De=[0,0,w,x],Ie=null,qe=dw.REDRAWDELAY,Ze=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Je(me){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(J(),e._transitioningWithDuration){me.preventDefault(),me.stopPropagation();return}G(),clearTimeout(Ie);var Te=-me.deltaY;if(isFinite(Te)||(Te=me.wheelDelta/10),!isFinite(Te)){Ki.log("Did not find wheel motion attributes: ",me);return}e._fullLayout._replotting=!0;var Ue=Math.exp(-Math.min(Math.max(Te,-20),20)/200),$e=Ze.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Oe=(me.clientX-$e.left)/$e.width,We=($e.bottom-me.clientY)/$e.height,ar;function or(sr,Ee,Ke){if(sr.fixedrange)return;var Be=Ki.simpleMap(sr.range,sr.r2l),mr=Be[0]+(Be[1]-Be[0])*Ee;function yr(ur){return sr.l2r(mr+(ur-mr)*Ke)}sr.range=Be.map(yr)}if(E){for(l||(Oe=.5),ar=0;ar<y.length;ar++)or(y[ar],Oe,Ue);Se("x"),De[2]*=Ue,De[0]+=De[2]*Oe*(1/Ue-1)}if(P){for(o||(We=.5),ar=0;ar<m.length;ar++)or(m[ar],We,Ue);Se("y"),De[3]*=Ue,De[1]+=De[3]*(1-We)*(1/Ue-1)}xe(De),Fe(),e.emit("plotly_relayouting",O),Ie=setTimeout(function(){e._fullLayout&&(De=[0,0,w,x],re())},qe),me.preventDefault()}o.length*l.length!==1&&OH(W,Je);function Xe(me,Te){if(me=me*U,Te=Te*Y,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,T==="ew"||q==="ns"){var Ue=T?-me:0,$e=q?-Te:0;if(k.isSubplotConstrained){if(T&&q){var Oe=(me/w-Te/x)/2;me=Oe*w,Te=-Oe*x,Ue=-me,$e=-Te}q?Ue=-$e*w/x:$e=-Ue*x/w}T&&(qH(y,me),Se("x")),q&&(qH(m,Te),Se("y")),xe([Ue,$e,w,x]),Fe(),e.emit("plotly_relayouting",O);return}function We(yr,ur,gr){for(var ne=1-ur,ge,Ne,He=0;He<yr.length;He++){var Kr=yr[He];if(!Kr.fixedrange){ge=Kr,Ne=Kr._rl[ne]+(Kr._rl[ur]-Kr._rl[ne])/a8e(gr/Kr._length);var Qr=Kr.l2r(Ne);Qr!==!1&&Qr!==void 0&&(Kr.range[ur]=Qr)}}return ge._length*(ge._rl[ur]-Ne)/(ge._rl[ur]-ge._rl[ne])}var ar=T==="w"==(q==="n")?1:-1;if(T&&q&&(_.isSubplotConstrained||k.isSubplotConstrained)){var or=(me/w+ar*Te/x)/2;me=or*w,Te=ar*or*x}var sr,Ee;if(T==="w"?me=We(y,0,me):T==="e"?me=We(y,1,-me):T||(me=0),q==="n"?Te=We(m,1,Te):q==="s"?Te=We(m,0,-Te):q||(Te=0),sr=T==="w"?me:0,Ee=q==="n"?Te:0,_.isSubplotConstrained&&!k.isSubplotConstrained||k.isSubplotConstrained&&T&&q&&ar>0){var Ke;if(k.isSubplotConstrained||!T&&q.length===1){for(Ke=0;Ke<y.length;Ke++)y[Ke].range=y[Ke]._r.slice(),sw(y[Ke],1-Te/x);me=Te*w/x,sr=me/2}if(k.isSubplotConstrained||!q&&T.length===1){for(Ke=0;Ke<m.length;Ke++)m[Ke].range=m[Ke]._r.slice(),sw(m[Ke],1-me/w);Te=me*x/w,Ee=Te/2}}(!k.isSubplotConstrained||!q)&&Se("x"),(!k.isSubplotConstrained||!T)&&Se("y");var Be=w-me,mr=x-Te;k.isSubplotConstrained&&!(T&&q)&&(T?(Ee=sr?0:me*x/w,mr=Be*x/w):(sr=Ee?0:Te*w/x,Be=mr*w/x)),xe([sr,Ee,Be,mr]),Fe(),e.emit("plotly_relayouting",O)}function Se(me,Te){for(var Ue=k.isSubplotConstrained?{x:m,y}[me]:k[me+"axes"],$e=k.isSubplotConstrained?{x:y,y:m}[me]:[],Oe=0;Oe<Ue.length;Oe++){var We=Ue[Oe],ar=We._id,or=k.xLinks[ar]||k.yLinks[ar],sr=$e[0]||d[or]||p[or];sr&&(Te?(Te[We._name+".range[0]"]=Te[sr._name+".range[0]"],Te[We._name+".range[1]"]=Te[sr._name+".range[1]"]):We.range=sr.range.slice())}}function Fe(){var me=[],Te;function Ue(ar){for(Te=0;Te<ar.length;Te++)ar[Te].fixedrange||me.push(ar[Te]._id)}function $e(ar,or){for(Te=0;Te<ar.length;Te++){var sr=ar[Te],Ee=sr[or],Ke=Ee._id;!sr.fixedrange&&Ee.tickmode==="sync"&&!me.includes(Ke)&&me.push(Ke)}}for(E&&(Ue(y),Ue(_.xaxes),Ue(k.xaxes),$e(r.overlays,"xaxis")),P&&(Ue(m),Ue(_.yaxes),Ue(k.yaxes),$e(r.overlays,"yaxis")),O={},Te=0;Te<me.length;Te++){var Oe=me[Te],We=fw(e,Oe);TH.drawOne(e,We,{skipTitle:!0}),O[We._name+".range[0]"]=We.range[0],O[We._name+".range[1]"]=We.range[1]}TH.redrawComponents(e,me)}function er(){if(!e._transitioningWithDuration){var me=e._context.doubleClick,Te=[];T&&(Te=Te.concat(y)),q&&(Te=Te.concat(m)),k.xaxes&&(Te=Te.concat(k.xaxes)),k.yaxes&&(Te=Te.concat(k.yaxes));var Ue={},$e,Oe;if(me==="reset+autosize")for(me="autosize",Oe=0;Oe<Te.length;Oe++){$e=Te[Oe];var We=$e._rangeInitial0,ar=$e._rangeInitial1,or=We!==void 0||ar!==void 0;if(or&&(We!==void 0&&We!==$e.range[0]||ar!==void 0&&ar!==$e.range[1])||!or&&$e.autorange!==!0){me="reset";break}}if(me==="autosize")for(Oe=0;Oe<Te.length;Oe++)$e=Te[Oe],$e.fixedrange||(Ue[$e._name+".autorange"]=!0);else if(me==="reset"){for((T||_.isSubplotConstrained)&&(Te=Te.concat(_.xaxes)),q&&!_.isSubplotConstrained&&(Te=Te.concat(_.yaxes)),_.isSubplotConstrained&&(T?q||(Te=Te.concat(m)):Te=Te.concat(y)),Oe=0;Oe<Te.length;Oe++)if($e=Te[Oe],!$e.fixedrange){var sr=$e._name,Ee=$e._autorangeInitial;$e._rangeInitial0===void 0&&$e._rangeInitial1===void 0?Ue[sr+".autorange"]=!0:$e._rangeInitial0===void 0?(Ue[sr+".autorange"]=Ee,Ue[sr+".range"]=[null,$e._rangeInitial1]):$e._rangeInitial1===void 0?(Ue[sr+".range"]=[$e._rangeInitial0,null],Ue[sr+".autorange"]=Ee):Ue[sr+".range"]=[$e._rangeInitial0,$e._rangeInitial1]}}e.emit("plotly_doubleclick",null),Py.call("_guiRelayout",e,Ue)}}function re(){xe([0,0,w,x]),Ki.syncOrAsync([Jwe.previousPromises,function(){e._fullLayout._replotting=!1,Py.call("_guiRelayout",e,O)}],e)}function xe(me){var Te=e._fullLayout,Ue=Te._plots,$e=Te._subplots.cartesian,Oe,We,ar,or;if(N&&Py.subplotsRegistry.splom.drag(e),R){for(Oe=0;Oe<$e.length;Oe++)if(We=Ue[$e[Oe]],ar=We.xaxis,or=We.yaxis,We._scene){ar.limitRange&&ar.limitRange(),or.limitRange&&or.limitRange();var sr=Ki.simpleMap(ar.range,ar.r2l),Ee=Ki.simpleMap(or.range,or.r2l);We._scene.update({range:[sr[0],Ee[0],sr[1],Ee[1]]})}}if((N||R)&&(Zwe(e),$we(e)),I){var Ke=me[2]/c._length,Be=me[3]/v._length;for(Oe=0;Oe<$e.length;Oe++){We=Ue[$e[Oe]],ar=We.xaxis,or=We.yaxis;var mr=(E||k.isSubplotConstrained)&&!ar.fixedrange&&d[ar._id],yr=(P||k.isSubplotConstrained)&&!or.fixedrange&&p[or._id],ur,gr,ne,ge;if(mr?(ur=Ke,ne=l||k.isSubplotConstrained?me[0]:Pe(ar,ur)):k.xaHash[ar._id]?(ur=Ke,ne=me[0]*ar._length/c._length):k.yaHash[ar._id]?(ur=Be,ne=q==="ns"?-me[1]*ar._length/v._length:Pe(ar,ur,{n:"top",s:"bottom"}[q])):(ur=Ye(ar,Ke,Be),ne=vr(ar,ur)),ur>1&&(ar.maxallowed!==void 0&&E===(ar.range[0]<ar.range[1]?"e":"w")||ar.minallowed!==void 0&&E===(ar.range[0]<ar.range[1]?"w":"e"))&&(ur=1,ne=0),yr?(gr=Be,ge=o||k.isSubplotConstrained?me[1]:Pe(or,gr)):k.yaHash[or._id]?(gr=Be,ge=me[1]*or._length/v._length):k.xaHash[or._id]?(gr=Ke,ge=T==="ew"?-me[0]*or._length/c._length:Pe(or,gr,{e:"right",w:"left"}[T])):(gr=Ye(or,Ke,Be),ge=vr(or,gr)),gr>1&&(or.maxallowed!==void 0&&P===(or.range[0]<or.range[1]?"n":"s")||or.minallowed!==void 0&&P===(or.range[0]<or.range[1]?"s":"n"))&&(gr=1,ge=0),!(!ur&&!gr)){ur||(ur=1),gr||(gr=1);var Ne=ar._offset-ne/ur,He=or._offset-ge/gr;We.clipRect.call(Ws.setTranslate,ne,ge).call(Ws.setScale,ur,gr),We.plot.call(Ws.setTranslate,Ne,He).call(Ws.setScale,1/ur,1/gr),(ur!==We.xScaleFactor||gr!==We.yScaleFactor)&&(Ws.setPointGroupScale(We.zoomScalePts,ur,gr),Ws.setTextPointsScale(We.zoomScaleTxt,ur,gr)),Ws.hideOutsideRangePoints(We.clipOnAxisFalseTraces,We),We.xScaleFactor=ur,We.yScaleFactor=gr}}}}function Ye(me,Te,Ue){return me.fixedrange?0:E&&_.xaHash[me._id]?Te:P&&(_.isSubplotConstrained?_.xaHash:_.yaHash)[me._id]?Ue:0}function vr(me,Te){return Te?(me.range=me._r.slice(),sw(me,Te),Pe(me,Te)):0}function Pe(me,Te,Ue){return me._length*(1-Te)*Xwe[Ue||me.constraintoward||"middle"]}return W}function PH(e,r,t,a){var n=Ki.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(Vwe,a),n.node()}function RH(e,r,t,a,n,i,o){var l=PH(e,"rect",r,t);return hw.select(l).call(Ws.setRect,a,n,i,o),l}function SH(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function t8e(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,AH("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,AH("."+String(n)+"g")(t))}function cw(e,r,t,a,n){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l=o._id.charAt(0)==="y",s=l?1-r:r,u=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(u*o._length))}else{var f=o._rl[0],c=o._rl[1]-f;a[o._name+".range[0]"]=o.l2r(f+c*r),a[o._name+".range[1]"]=o.l2r(f+c*t)}}if(n&&n.length){var v=(r+(1-t))/2;cw(n,v,1-v,a,[])}}function qH(e,r){for(var t=0;t<e.length;t++){var a=e[t];if(!a.fixedrange){if(a.rangebreaks){var n=0,i=a._length,o=a.p2l(n+r)-a.p2l(n),l=a.p2l(i+r)-a.p2l(i),s=(o+l)/2;a.range=[a.l2r(a._rl[0]-s),a.l2r(a._rl[1]-s)]}else a.range=[a.l2r(a._rl[0]-r/a._m),a.l2r(a._rl[1]-r/a._m)];a.limitRange&&a.limitRange()}}}function a8e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function n8e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function FH(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",DH(t,a)).attr("d",n+"Z")}function zH(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:uw.background,stroke:uw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",DH(r,t)).attr("d","M0,0Z")}function NH(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"),IH(e,r,n,i)}function IH(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 vw(e){hw.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function BH(e){kH&&e.data&&e._context.showTips&&(Ki.notifier(Ki._(e,"Double-click to zoom back out"),"long",e),kH=!1)}function i8e(e,r){return"M"+(e.l-.5)+","+(r-Gn-.5)+"h-3v"+(2*Gn+1)+"h3ZM"+(e.r+.5)+","+(r-Gn-.5)+"h3v"+(2*Gn+1)+"h-3Z"}function o8e(e,r){return"M"+(r-Gn-.5)+","+(e.t-.5)+"v-3h"+(2*Gn+1)+"v3ZM"+(r-Gn-.5)+","+(e.b+.5)+"v3h"+(2*Gn+1)+"v-3Z"}function Fy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Gn)/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 LH(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(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]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(v[u]||d[u]))&&y[u]&&(i=!0)}for(u in a)if(y[u])for(c in y)!(n&&(v[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(Ki.extendFlat(o,l),l={});var m={},b=[];for(f in o){var A=fw(e,f);b.push(A),m[A._id]=A}var w={},x=[];for(c in l){var _=fw(e,c);x.push(_),w[_._id]=_}return{xaHash:m,yaHash:w,xaxes:b,yaxes:x,xLinks:o,yLinks:l,isSubplotConstrained:i}}function OH(e,r){if(!Uwe)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 CH(e){var r=[];for(var t in e)r.push(e[t]);return r}HH.exports={makeDragBox:r8e,makeDragger:PH,makeRectDragger:RH,makeZoombox:FH,makeCorners:zH,updateZoombox:NH,xyCorners:Fy,transitionZoombox:IH,removeZoombox:vw,showDoubleClickNotifier:BH,attachWheelEventHandler:OH}});var pw=z(Ny=>{"use strict";var l8e=Pr(),zy=Un(),s8e=Vi(),u8e=Os(),No=UH().makeDragBox,Ua=(Pa(),ze(Ea)).DRAGGERSIZE;Ny.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){l8e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=No(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&zy.hover(r,v,i)},zy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,s8e.unhover(r,v))},r._context.showAxisDragHandles&&(No(r,o,l._offset-Ua,s._offset-Ua,Ua,Ua,"n","w"),No(r,o,l._offset+l._length,s._offset-Ua,Ua,Ua,"n","e"),No(r,o,l._offset-Ua,s._offset+s._length,Ua,Ua,"s","w"),No(r,o,l._offset+l._length,s._offset+s._length,Ua,Ua,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ua),No(r,o,l._offset+l._length*.1,f,l._length*.8,Ua,"","ew"),No(r,o,l._offset,f,l._length*.1,Ua,"","w"),No(r,o,l._offset+l._length*.9,f,l._length*.1,Ua,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ua),No(r,o,c,s._offset+s._length*.1,Ua,s._length*.8,"ns",""),No(r,o,c,s._offset+s._length*.9,Ua,s._length*.1,"s",""),No(r,o,c,s._offset,Ua,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,zy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,zy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ny.updateFx(r)}};Ny.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";u8e(r._draggers,t)}});var VH=z((A$e,YH)=>{"use strict";var GH=Tr();YH.exports=function(r){for(var t=GH.layoutArrayContainers,a=GH.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l<a.length;l++)if(o=r.match(a[l]),o&&o.index===0){i=o[0];break}if(i||(i=t[t.indexOf(n)]),!i)return!1;var s=r.slice(i.length);return s?(o=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:i,index:Number(o[1]),property:o[3]||""}:!1):{array:i,index:"",property:""}}});var WH=z(Sd=>{"use strict";var f8e=Du(),mw=Ap(),kd=_s(),c8e=f4().sorterAsc,yw=Tr();Sd.containerArrayMatch=VH();var v8e=Sd.isAddVal=function(r){return r==="add"||f8e(r)},jH=Sd.isRemoveVal=function(r){return r===null||r==="remove"};Sd.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=yw.getComponentMethod(o,"supplyLayoutDefaults"),s=yw.getComponentMethod(o,"draw"),u=yw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===mw||s===mw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&kd.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(jH(d))t.set(null);else if(Array.isArray(d))t.set(d);else return kd.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(c8e),y=t.get(),m=y||[],b=i(v,o).get(),A=[],w=-1,x=m.length,_,k,T,q,C,E,P,R;for(_=0;_<p.length;_++){if(T=p[_],q=a[T],C=Object.keys(q),E=q[""],P=v8e(E),T<0||T>m.length-(P?0:1)){kd.warn("index out of range",o,T);continue}if(E!==void 0)C.length>1&&kd.warn("Insertion & removal are incompatible with edits to the same index.",o,T),jH(E)?A.push(T):P?(E==="add"&&(E={}),m.splice(T,0,E),b&&b.splice(T,0,{})):kd.warn("Unrecognized full object edit value",o,T,E),w===-1&&(w=T);else for(k=0;k<C.length;k++)R=o+"["+T+"].",i(m[T],C[k],R).set(q[C[k]])}for(_=A.length-1;_>=0;_--)m.splice(A[_],1),b&&b.splice(A[_],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==mw){var N;if(w===-1)N=p;else{for(x=Math.max(m.length,x),N=[],_=0;_<p.length&&(T=p[_],!(T>=w));_++)N.push(T);for(_=w;_<x;_++)N.push(_)}for(_=0;_<N.length;_++)u(r,N[_])}else s(r);return!0}});var eU=z(Qi=>{"use strict";var JH=Br(),KH=Tr(),Dn=ke(),qd=ma(),QH=Aa(),Ld=QH.cleanId,h8e=QH.getFromTrace,gw=KH.traceIs,d8e=["x","y","z"];Qi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Dn.log("Clearing previous rejected promises from queue."),e._promises=[]};Qi.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=(qd.subplotsRegistry.cartesian||{}).attrRegex,n=(qd.subplotsRegistry.polar||{}).attrRegex,i=(qd.subplotsRegistry.ternary||{}).attrRegex,o=(qd.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var s=l[r];if(a&&a.test(s)){var u=e[s];u.anchor&&u.anchor!=="free"&&(u.anchor=Ld(u.anchor)),u.overlaying&&(u.overlaying=Ld(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,Iy(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];Dn.isPlainObject(c)&&(A0(c,"xref"),A0(c,"yref"))}var v=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<v;r++){var d=e.shapes[r];Dn.isPlainObject(d)&&(A0(d,"xref",!0),A0(d,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var y=e.images[r];Dn.isPlainObject(y)&&(A0(y,"xref"),A0(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&&Qi.cleanLayout(e.template.layout),e};function A0(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ld(a,n,!0))}Qi.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"&&Qi.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=Ld(t.xaxis,"x")),t.yaxis&&(t.yaxis=Ld(t.yaxis,"y")),gw(t,"gl3d")&&t.scene&&(t.scene=qd.subplotsRegistry.gl3d.cleanId(t.scene)),!gw(t,"pie-like")&&!gw(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=ZH(t.textposition[a]);else t.textposition&&(t.textposition=ZH(t.textposition));var n=KH.getModule(t);if(n&&n.colorbar){var i=n.colorbar.container,o=i?t[i]:t;o&&o.colorscale&&(o.colorscale==="YIGnBu"&&(o.colorscale="YlGnBu"),o.colorscale==="YIOrRd"&&(o.colorscale="YlOrRd"))}if(t.type==="surface"&&Dn.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];Dn.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=XH(t.increasing),v=XH(t.decreasing);if(c!==!1&&v!==!1){var d=p8e(c,v,u,f);d&&(t.name=d)}else(c||v)&&!t.name&&(t.name=c||v)}Iy(t,"line")&&delete t.line,"marker"in t&&(Iy(t.marker,"line")&&delete t.marker.line,Iy(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function XH(e){if(!Dn.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function p8e(e,r,t,a){if(t&&!a)return e;if(a&&!t||!e.trim())return r;if(!r.trim())return e;var n=Math.min(e.length,r.length),i;for(i=0;i<n&&e.charAt(i)===r.charAt(i);i++);var o=e.slice(0,i);return o.trim()}function ZH(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 Iy(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}Qi.swapXYData=function(e){var r;if(Dn.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);Dn.swapAttrs(e,["error_?.copy_ystyle"]),a&&Dn.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("+")}};Qi.coerceTraceIndices=function(e,r){if(JH(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++)Dn.isIndex(r[a],e.data.length)?t.push(r[a]):Dn.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};Qi.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=JH(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=Dn.nestedProperty(a,s).get();u.splice(o,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var m8e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function $H(e){var r=e.search(m8e);if(r>0)return e.slice(0,r)}Qi.hasParent=function(e,r){for(var t=$H(r);t;){if(t in e)return!0;t=$H(t)}return!1};Qi.clearAxisTypes=function(e,r,t){for(var a=0;a<r.length;a++)for(var n=e._fullData[a],i=0;i<3;i++){var o=h8e(e,n,d8e[i]);if(o&&o.type!=="log"){var l=o._name,s=o._id.slice(1);if(s.slice(0,5)==="scene"){if(t[s]!==void 0)continue;l=s+"."+l}var u=l+".type";t[l]===void 0&&t[u]===void 0&&Dn.nestedProperty(e.layout,u).set(null)}}};var bw=(e,r)=>{let t=(...a)=>a.every(n=>Dn.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)?bw(n,i):!1))return!1}return!0}else if([e,r].every(a=>Dn.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)?bw(n,i):!1))return!1}return!0}return!1};Qi.collectionsAreEqual=bw});var Tw=z($r=>{"use strict";var Uy=Pr(),y8e=Br(),g8e=M4(),ir=ke(),Rt=ir.nestedProperty,_w=Ch(),Yn=GP(),eo=Tr(),Zy=Xc(),Cr=ma(),En=Yr(),b8e=U6(),x8e=Gi(),Oy=Jr(),_8e=qr(),w8e=pw().initInteractions,A8e=(Vl(),ze(Yl)),T8e=xl().clearOutline,iU=xs().dfltConfig,By=WH(),xa=eU(),mt=xy(),Xs=qo(),M8e=(Pa(),ze(Ea)).AX_NAME_PATTERN,xw=0,rU=5;function k8e(e,r,t,a){var n;if(e=ir.getGraphDiv(e),_w.init(e),ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=_w.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!ir.isPlotDiv(e)&&ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return $r.addFrames(e,n)}lU(e,a),t||(t={}),Uy.select(e).classed("js-plotly-plot",!0),Oy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(xa.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=xa.cleanLayout(t)),Cr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&($8e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Oy.initGradients(e),Oy.initPatterns(e),s&&En.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Cr.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 q=()=>{ir.isHidden(e)||Cr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",q),e._clearResponsive=()=>window.removeEventListener("resize",q);else{let C=e.offsetWidth,E=e.offsetHeight,P=new ResizeObserver(()=>{let R=e.offsetWidth,N=e.offsetHeight,I=Math.abs(R-C)>1||Math.abs(N-E)>1;C=R,E=N,I&&R&&N&&q()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else ir.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(q=>q.status!=="loaded"):[];var p=ir.extendFlat({},u._size),y=0;function m(){for(var q=u._basePlotModules,C=0;C<q.length;C++)q[C].drawFramework&&q[C].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(N){return N.key}),u._glcanvas.enter().append("canvas").attr("class",function(N){return"gl-canvas gl-canvas-"+N.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 P=u._glcanvas.data()[0].regl;if(P&&(Math.floor(u.width*E)!==P._gl.drawingBufferWidth||Math.floor(u.height*E)!==P._gl.drawingBufferHeight)){var R="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(y)ir.error(R);else return ir.log(R+" Clearing graph and plotting again."),Cr.cleanPlot([],{},e._fullData,u),Cr.supplyDefaults(e),u=e._fullLayout,Cr.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"),Cr.previousPromises(e)}function b(){if(Cr.clearAutoMarginIds(e),mt.drawMarginPushers(e),En.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Cr.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var q=e._fullData,C=0;C<q.length;C++){var E=q[C];E.type==="pie"&&E.automargin&&Cr.allowAutoMargin(e,"pie."+E.uid+".automargin")}return Cr.doAutoMargin(e),Cr.previousPromises(e)}function A(){if(Cr.didMarginChange(p,u._size))return ir.syncOrAsync([b,mt.layoutStyles],e)}function w(){if(!c){x();return}return ir.syncOrAsync([eo.getComponentMethod("shapes","calcAutorange"),eo.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(mt.doAutoRangeAndConstraints(e),s&&En.saveRangeInitial(e),eo.getComponentMethod("rangeslider","calcAutorange")(e))}function _(){return En.draw(e,s?"":"redraw")}var k=[Cr.previousPromises,l,m,b,A];f&&k.push(w),k.push(mt.layoutStyles),f&&k.push(_,function(C){var E=C._fullLayout._insideTickLabelsUpdaterange;if(E)return C._fullLayout._insideTickLabelsUpdaterange=void 0,Cd(C,E).then(function(){En.saveRangeInitial(C,!0)})}),k.push(mt.drawData,mt.finalDraw,w8e,Cr.rehover,Cr.redrag,Cr.reselect,Cr.doAutoMargin,Cr.previousPromises);var T=ir.syncOrAsync(k,e);return(!T||!T.then)&&(T=Promise.resolve()),T.then(function(){return S8e(e,d),Dd(e),e})}function S8e(e,r){return BS(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,Oy.savedBBoxes={},$r._doPlot(e))})}function Dd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function q8e(e){return ir.extendFlat(iU,e)}function oU(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){ir.error(t)}}function L8e(e,r){var t=_8e.combine(r,"white");oU(e,t)}function lU(e,r){if(!e._context){e._context=ir.extendDeep({},iU);var t=Uy.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n<i.length;n++)o=i[n],!(o==="editable"||o==="edits")&&o in a&&(o==="setBackground"&&r[o]==="opaque"?a[o]=L8e:a[o]=r[o]);var l=r.editable;if(l!==void 0)for(a.editable=l,i=Object.keys(a.edits),n=0;n<i.length;n++)a.edits[i[n]]=l;if(r.edits)for(i=Object.keys(r.edits),n=0;n<i.length;n++)o=i[n],o in a.edits&&(a.edits[o]=r.edits[o]);a._exportedPlot=r._exportedPlot}a.staticPlot&&(a.editable=!1,a.edits={},a.autosizable=!1,a.scrollZoom=!1,a.doubleClick=!1,a.showTips=!1,a.displayModeBar=!1),a.displayModeBar==="hover"&&!g8e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=oU),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 C8e(e){if(e=ir.getGraphDiv(e),!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return xa.cleanData(e.data),xa.cleanLayout(e.layout),e.calcdata=void 0,$r._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function D8e(e,r,t,a){return e=ir.getGraphDiv(e),Cr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Cr.purge(e),$r._doPlot(e,r,t,a)}function Gy(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 Yy(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 sU(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]),Yy(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Yy(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function E8e(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 P8e(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");Yy(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 R8e(e,r,t,a){var n=ir.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=Gy(t,e.data.length-1);for(var c in r)for(var v=0;v<t.length;v++){if(o=e.data[t[v]],s=Rt(o,c),l=s.get(),u=r[c][v],!ir.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+v+" must be an array");if(!ir.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][v]:a,y8e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function uU(e,r,t,a,n){P8e(e,r,t,a);for(var i=R8e(e,r,t,a),o={},l={},s=0;s<i.length;s++){var u=i[s].prop,f=i[s].maxp,c=n(i[s].target,i[s].insert,f);u.set(c[0]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(c[1]),Array.isArray(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(i[s].target.length)}return{update:o,maxPoints:l}}function fU(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function cU(e,r,t,a){e=ir.getGraphDiv(e);function n(s,u,f){var c,v;if(ir.isTypedArray(s))if(f<0){var d=new s.constructor(0),p=fU(s,u);f<0?(c=p,v=d):(c=d,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=uU(e,r,t,a,n),o=$r.redraw(e),l=[e,i.update,t,i.maxPoints];return Yn.add(e,$r.prependTraces,l,cU,arguments),o}function vU(e,r,t,a){e=ir.getGraphDiv(e);function n(s,u,f){var c,v;if(ir.isTypedArray(s))if(f<=0){var d=new s.constructor(0),p=fU(u,s);f<0?(c=p,v=d):(c=d,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=uU(e,r,t,a,n),o=$r.redraw(e),l=[e,i.update,t,i.maxPoints];return Yn.add(e,$r.extendTraces,l,vU,arguments),o}function hU(e,r,t){e=ir.getGraphDiv(e);var a=[],n=$r.deleteTraces,i=hU,o=[e,a],l=[e,r],s,u;for(E8e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return ir.extendFlat({},f)}),xa.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=$r.redraw(e),Yn.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{sU(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Yn.startSequence(e),Yn.add(e,n,o,i,l),u=$r.moveTraces(e,a,t),Yn.stopSequence(e),u}function dU(e,r){e=ir.getGraphDiv(e);var t=[],a=$r.addTraces,n=dU,i=[e,t,r],o=[e,r],l,s;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Yy(e,r,"indices"),r=Gy(r,e.data.length-1),r.sort(ir.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=$r.redraw(e);return Yn.add(e,a,i,n,o),u}function ww(e,r,t){e=ir.getGraphDiv(e);var a=[],n=[],i=ww,o=ww,l=[e,t,r],s=[e,r,t],u;if(sU(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=Gy(r,e.data.length-1),t=Gy(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=$r.redraw(e);return Yn.add(e,i,l,o,s),f}function Vy(e,r,t,a){e=ir.getGraphDiv(e),xa.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=xa.coerceTraceIndices(e,a),o=pU(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&xa.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push($r._doPlot):(s.push(Cr.previousPromises),Cr.supplyDefaults(e),l.markerSize&&(Cr.doCalcdata(e),$y(s)),l.style&&s.push(mt.doTraceStyle),l.colorbars&&s.push(mt.doColorBars),s.push(Dd)),s.push(Cr.rehover,Cr.redrag,Cr.reselect),Yn.add(e,Vy,[e,o.undoit,o.traces],Vy,[e,o.redoit,o.traces]);var u=ir.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function Jl(e){return e===void 0?null:e}function Hy(e,r){return r?function(t,a,n){var i=Rt(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;jy(s,i.get(),l,e),o(l)},i}:Rt}function jy(e,r,t,a){if(Array.isArray(r)||Array.isArray(t))for(var n=Array.isArray(r)?r:[],i=Array.isArray(t)?t:[],o=Math.max(n.length,i.length),l=0;l<o;l++)jy(e+"["+l+"]",n[l],i[l],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)jy(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Jl(r))}function F8e(e,r,t){for(var a in t){var n=Rt(e,a);jy(a,n.get(),t[a],r)}}function pU(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=Hy(a._preGUI,o),s=ir.extendDeepAll({},r),u,f=Xs.traceFlags(),c={},v={},d;function p(){return t.map(function(){})}function y(oe){var be=En.id2name(oe);d.indexOf(be)===-1&&d.push(be)}function m(oe){return"LAYOUT"+oe+".autorange"}function b(oe){return"LAYOUT"+oe+".range"}function A(oe,be,Re){if(Array.isArray(oe)){oe.forEach(function(Le){A(Le,be,Re)});return}if(!(oe in r||xa.hasParent(r,oe))){var ye;if(oe.slice(0,6)==="LAYOUT")ye=l(e.layout,oe.replace("LAYOUT",""));else{var Ce=t[Re],Me=a._tracePreGUI[n[Ce].uid];ye=Hy(Me,o)(i[Ce],oe)}oe in v||(v[oe]=p()),v[oe][Re]===void 0&&(v[oe][Re]=Jl(ye.get())),be!==void 0&&ye.set(be)}}function w(oe){return function(be){return n[be][oe]}}function x(oe){return function(be,Re){return be===!1?n[t[Re]][oe]:null}}for(var _ in r){if(xa.hasParent(r,_))throw new Error("cannot set "+_+" and a parent attribute simultaneously");var k=r[_],T,q,C,E,P,R;if((_==="autobinx"||_==="autobiny")&&(_=_.charAt(_.length-1)+"bins",Array.isArray(k)?k=k.map(x(_)):k===!1?k=t.map(w(_)):k=null),c[_]=k,_.slice(0,6)==="LAYOUT"){C=l(e.layout,_.replace("LAYOUT","")),v[_]=[Jl(C.get())],C.set(Array.isArray(k)?k[0]:k),f.calc=!0;continue}for(v[_]=p(),u=0;u<t.length;u++){T=i[t[u]],q=n[t[u]];var N=a._tracePreGUI[q.uid];if(C=Hy(N,o)(T,_),E=C.get(),P=Array.isArray(k)?k[u%k.length]:k,P!==void 0){var I=C.parts[C.parts.length-1],O=_.slice(0,_.length-I.length-1),U=O?O+".":"",Y=O?Rt(q,O).get():q;if(R=Zy.getTraceValObject(q,C.parts),R&&R.impliedEdits&&P!==null)for(var G in R.impliedEdits)A(ir.relativeAttr(_,G),R.impliedEdits[G],u);else if((I==="thicknessmode"||I==="lenmode")&&E!==P&&(P==="fraction"||P==="pixels")&&Y){var V=a._size,W=Y.orient,j=W==="top"||W==="bottom";if(I==="thicknessmode"){var J=j?V.h:V.w;A(U+"thickness",Y.thickness*(P==="fraction"?1/J:J),u)}else{var te=j?V.w:V.h;A(U+"len",Y.len*(P==="fraction"?1/te:te),u)}}else if(_==="type"&&(P==="pie"!=(E==="pie")||P==="funnelarea"!=(E==="funnelarea"))){var ae="x",se="y";(P==="bar"||E==="bar")&&T.orientation==="h"&&(ae="y",se="x"),ir.swapAttrs(T,["?"],"labels",ae),ir.swapAttrs(T,["d?","?0"],"label",ae),ir.swapAttrs(T,["?"],"values",se),E==="pie"||E==="funnelarea"?(Rt(T,"marker.color").set(Rt(T,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):eo.traceIs(T,"cartesian")&&Rt(T,"marker.colors").set(Rt(T,"marker.color").get())}v[_][u]=Jl(E);var $=["swapxy","swapxyaxes","orientation","orientationaxes"];if($.indexOf(_)!==-1){if(_==="orientation"){C.set(P);var fe=T.x&&!T.y?"h":"v";if((C.get()||fe)===q.orientation)continue}else _==="orientationaxes"&&(T.orientation={v:"h",h:"v"}[q.orientation]);xa.swapXYData(T),f.calc=f.clearAxisTypes=!0}else Cr.dataArrayContainers.indexOf(C.parts[0])!==-1?(xa.manageArrayContainers(C,P,v),f.calc=!0):(R?R.arrayOk&&!eo.traceIs(q,"regl")&&(ir.isArrayOrTypedArray(P)||ir.isArrayOrTypedArray(E))?f.calc=!0:Xs.update(f,R):f.calc=!0,C.set(P))}}if(["swapxyaxes","orientationaxes"].indexOf(_)!==-1&&En.swap(e,t),_==="orientationaxes"){var ie=Rt(e.layout,"hovermode"),ue=ie.get();ue==="x"?ie.set("y"):ue==="y"?ie.set("x"):ue==="x unified"?ie.set("y unified"):ue==="y unified"&&ie.set("x unified")}if(["orientation","type"].indexOf(_)!==-1){for(d=[],u=0;u<t.length;u++){var ce=i[t[u]];eo.traceIs(ce,"cartesian")&&(y(ce.xaxis||"x"),y(ce.yaxis||"y"))}A(d.map(m),!0,0),A(d.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 Cd(e,r,t){e=ir.getGraphDiv(e),xa.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=bU(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[Cr.previousPromises];i.layoutReplot?o.push(mt.layoutReplot):Object.keys(a).length&&(mU(e,i,n)||Cr.supplyDefaults(e),i.legend&&o.push(mt.doLegend),i.layoutstyle&&o.push(mt.layoutStyles),i.axrange&&$y(o,n.rangesAltered),i.ticks&&o.push(mt.doTicksRelayout),i.modebar&&o.push(mt.doModeBar),i.camera&&o.push(mt.doCamera),i.colorbars&&o.push(mt.doColorBars),o.push(Dd)),o.push(Cr.rehover,Cr.redrag,Cr.reselect),Yn.add(e,Cd,[e,n.undoit],Cd,[e,n.redoit]);var l=ir.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function mU(e,r,t){var a=e._fullLayout;if(!r.axrange)return!1;for(var n in r)if(n!=="axrange"&&r[n])return!1;var i,o,l=function(d,p){return ir.coerce(i,o,x8e,d,p)},s={};for(var u in t.rangesAltered){var f=En.id2name(u);if(i=e.layout[f],o=a[f],b8e(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var v=a[En.id2name(c)];v.autorange=o.autorange,v.range=o.range.slice(),v._input.range=o.range.slice()}}}return!0}function $y(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=En.getFromId(a,o);if(n.push(o),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&n.push(l._anchorAxis._id),l._matchGroup)for(var s in l._matchGroup)r[s]||n.push(s)}return En.draw(a,n,{skipTitle:i})}:function(a){return En.draw(a,"redraw")};e.push(T8e,mt.doAutoRangeAndConstraints,t,mt.drawData,mt.finalDraw)}var yU=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,gU=/^[xyz]axis[0-9]*\.autorange$/,z8e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function bU(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=Hy(a._preGUI,n),o=Object.keys(r),l=En.list(e),s=ir.extendDeepAll({},r),u={},f,c,v;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(v=0;v<l.length;v++){var d=l[v]._id.slice(1),p=d.indexOf("scene")!==-1?d+".":"",y=o[c].replace("allaxes",p+l[v]._name);r[y]||(r[y]=r[o[c]])}delete r[o[c]]}var m=Xs.layoutFlags(),b={},A={};function w(Le,De){if(Array.isArray(Le)){Le.forEach(function(qe){w(qe,De)});return}if(!(Le in r||xa.hasParent(r,Le))){var Ie=i(t,Le);Le in A||(A[Le]=Jl(Ie.get())),De!==void 0&&Ie.set(De)}}var x={},_;function k(Le){var De=En.name2id(Le.split(".")[0]);return x[De]=1,De}for(var T in r){if(xa.hasParent(r,T))throw new Error("cannot set "+T+" and a parent attribute simultaneously");for(var q=i(t,T),C=r[T],E=q.parts.length,P=E-1;P>0&&typeof q.parts[P]!="string";)P--;var R=q.parts[P],N=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),O=Rt(e.layout,I).get(),U=Rt(a,I).get(),Y=q.get();if(C!==void 0){b[T]=C,A[T]=R==="reverse"?C:Jl(Y);var G=Zy.getLayoutValObject(a,q.parts);if(G&&G.impliedEdits&&C!==null)for(var V in G.impliedEdits)w(ir.relativeAttr(T,V),G.impliedEdits[V]);if(["width","height"].indexOf(T)!==-1)if(C){w("autosize",null);var W=T==="height"?"width":"height";w(W,a[W])}else a[T]=e._initialAutoSize[T];else if(T==="autosize")w("width",C?null:a.width),w("height",C?null:a.height);else if(N.match(yU))k(N),Rt(a,I+"._inputRange").set(null);else if(N.match(gU)){k(N),Rt(a,I+"._inputRange").set(null);var j=Rt(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else N.match(z8e)&&Rt(a,I+"._inputDomain").set(null);if(R==="type"){_=O;var J=U.type==="linear"&&C==="log",te=U.type==="log"&&C==="linear";if(J||te){if(!_||!_.range)w(I+".autorange",!0);else if(U.autorange)J&&(_.range=_.range[1]>_.range[0]?[1,2]:[2,1]);else{var ae=_.range[0],se=_.range[1];J?(ae<=0&&se<=0&&w(I+".autorange",!0),ae<=0?ae=se/1e6:se<=0&&(se=ae/1e6),w(I+".range[0]",Math.log(ae)/Math.LN10),w(I+".range[1]",Math.log(se)/Math.LN10)):(w(I+".range[0]",Math.pow(10,ae)),w(I+".range[1]",Math.pow(10,se)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],eo.getComponentMethod("annotations","convertCoords")(e,U,C,w),eo.getComponentMethod("images","convertCoords")(e,U,C,w)}else w(I+".autorange",!0),w(I+".range",null);Rt(a,I+"._inputRange").set(null)}else if(R.match(M8e)){var $=Rt(a,T).get(),fe=(C||{}).type;(!fe||fe==="-")&&(fe="linear"),eo.getComponentMethod("annotations","convertCoords")(e,$,fe,w),eo.getComponentMethod("images","convertCoords")(e,$,fe,w)}var ie=By.containerArrayMatch(T);if(ie){f=ie.array,c=ie.index;var ue=ie.property,ce=G||{editType:"calc"};c!==""&&ue===""&&(By.isAddVal(C)?A[T]=null:By.isRemoveVal(C)?A[T]=(Rt(t,f).get()||[])[c]:ir.warn("unrecognized full object value",r)),Xs.update(m,ce),u[f]||(u[f]={});var oe=u[f][c];oe||(oe=u[f][c]={}),oe[ue]=C,delete r[T]}else R==="reverse"?(O.range?O.range.reverse():(w(I+".autorange",!0),O.range=[1,0]),U.autorange?m.calc=!0:m.plot=!0):(T==="dragmode"&&(C===!1&&Y!==!1||C!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&T==="dragmode"&&(C==="lasso"||C==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:G?Xs.update(m,G):m.calc=!0,q.set(C))}}for(f in u){var be=By.applyContainerArrayChanges(e,i(t,f),u[f],m,i);be||(m.plot=!0)}for(var Re in x){_=En.getFromId(e,Re);var ye=_&&_._constraintGroup;if(ye){m.calc=!0;for(var Ce in ye)x[Ce]||(En.getFromId(e,Ce)._constraintShrinkable=!0)}}(xU(e)||r.height||r.width)&&(m.plot=!0);var Me=a.shapes;for(c=0;c<Me.length;c++)if(Me[c].showlegend){m.calc=!0;break}return(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:x,undoit:A,redoit:b,eventData:s}}function xU(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&Cr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Wy(e,r,t,a){e=ir.getGraphDiv(e),xa.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=xa.coerceTraceIndices(e,a),i=pU(e,ir.extendFlat({},r),n),o=i.flags,l=bU(e,ir.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&xa.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(mt.layoutReplot):o.fullReplot?u.push($r._doPlot):(u.push(Cr.previousPromises),mU(e,s,l)||Cr.supplyDefaults(e),o.style&&u.push(mt.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(mt.doColorBars),s.legend&&u.push(mt.doLegend),s.layoutstyle&&u.push(mt.layoutStyles),s.axrange&&$y(u,l.rangesAltered),s.ticks&&u.push(mt.doTicksRelayout),s.modebar&&u.push(mt.doModeBar),s.camera&&u.push(mt.doCamera),u.push(Dd)),u.push(Cr.rehover,Cr.redrag,Cr.reselect),Yn.add(e,Wy,[e,i.undoit,l.undoit,i.traces],Wy,[e,i.redoit,l.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:l.eventData}),e})}function Aw(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var N8e=[{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"}],I8e=[{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 tU(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 aU(e,r){var t=Rt(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=Rt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function B8e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function O8e(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 nU(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 H8e(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,v,d,p,y=[],m={},b={};for(i in n){if(u=tU(i,N8e),u){if(d=u.head,p=u.tail,o=u.attr||d+".uirevision",l=Rt(a,o).get(),s=l&&aU(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=Rt(r,i),v=c.get(),nU(v,f)){v===void 0&&p==="autorange"&&y.push(d),c.set(Jl(Rt(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var A=n[d+".range[0]"],w=n[d+".range[1]"],x=n[d+".autorange"];if(x||x===null&&A===null&&w===null){if(!(d in m)){var _=Rt(r,d).get();m[d]=_&&(_.autorange||_.autorange!==!1&&(!_.range||_.range.length!==2))}if(m[d]){c.set(Jl(Rt(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 k=0;k<y.length;k++){var T=y[k];if(b[T]){var q=Rt(r,T).get();q&&delete q.autorange}}var C=a._tracePreGUI;for(var E in C){var P=C[E],R=null,N;for(i in P){if(!R){var I=B8e(E,t);if(I<0){delete C[E];break}N=t[I];var O=O8e(E,e,N.index);if(O<0){delete C[E];break}R=e[O]}if(u=tU(i,I8e),u){if(u.attr?(l=Rt(a,u.attr).get(),s=l&&aU(u.attr,r)):(l=N.uirevision,s=R.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=P[i],f===null&&(f=void 0),c=Rt(R,i),v=c.get(),nU(v,f))){c.set(Jl(Rt(N,i).get()));continue}}else ir.warn("unrecognized GUI edit: "+i+" in trace uid "+E);delete P[i]}}}function U8e(e,r,t,a){var n,i;function o(){return $r.addFrames(e,n)}e=ir.getGraphDiv(e),xa.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!ir.isPlotDiv(e)||!l||!s)i=$r.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 N=ir.extendDeepAll({},e._context);e._context=void 0,lU(e,a),f=!xa.collectionsAreEqual(N,e._context)}if(f){let N=e._ev.eventNames().map(I=>[I,e._ev.listeners(I)]);i=$r.newPlot(e,r,t,a).then(()=>{for(let[I,O]of N)O.forEach(U=>e.on(I,U));return $r.react(e,r,t,a)})}else{e.data=r||[],xa.cleanData(e.data),e.layout=t||{},xa.cleanLayout(e.layout),H8e(e.data,e.layout,l,s),Cr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=Y8e(e,s,v,d,p),m=y.newDataRevision,b=G8e(e,l,c,d,p,m);if(xU(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var A=Object.getOwnPropertyNames(v),w=0;w<A.length;w++){var x=A[w],_=x.substring(0,5);if(_==="xaxis"||_==="yaxis"){var k=v[x]._emptyCategories;k&&k()}}}else Cr.supplyDefaultsUpdateCalc(e.calcdata,c);var T=[];if(n&&(e._transitionData={},Cr.createTransitionData(e),T.push(o)),v.transition&&(b.anim||y.anim))y.ticks&&T.push(mt.doTicksRelayout),Cr.doCalcdata(e),mt.doAutoRangeAndConstraints(e),T.push(function(){return Cr.transitionFromReact(e,b,y,s)});else if(b.fullReplot||y.layoutReplot)e._fullLayout._skipDefaults=!0,T.push($r._doPlot);else{for(var q in y.arrays){var C=y.arrays[q];if(C.length){var E=eo.getComponentMethod(q,"drawOne");if(E!==ir.noop)for(var P=0;P<C.length;P++)E(e,C[P]);else{var R=eo.getComponentMethod(q,"draw");if(R===ir.noop)throw new Error("cannot draw components: "+q);R(e)}}}T.push(Cr.previousPromises),b.style&&T.push(mt.doTraceStyle),(b.colorbars||y.colorbars)&&T.push(mt.doColorBars),y.legend&&T.push(mt.doLegend),y.layoutstyle&&T.push(mt.layoutStyles),y.axrange&&$y(T),y.ticks&&T.push(mt.doTicksRelayout),y.modebar&&T.push(mt.doModeBar),y.camera&&T.push(mt.doCamera),T.push(Dd)}T.push(Cr.rehover,Cr.redrag,Cr.reselect),i=ir.syncOrAsync(T,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function G8e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Xs.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=Zy.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,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,Xy(r[s],u,[],c)}return(l.calc||l.plot)&&(l.fullReplot=!0),n&&l.nChanges&&l.nChangesAnim&&(l.anim=l.nChanges===l.nChangesAnim&&o?"all":"some"),l}function Y8e(e,r,t,a,n){var i=Xs.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(v){return Zy.getLayoutValObject(t,v)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){var s=t[l].domain,u=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[l].domain=r[l].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[l]._inputDomain=null))}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Xy(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 Xy(e,r,t,a){var n,i,o,l=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function v(){var I=n.editType;if(f&&I.indexOf("arraydraw")!==-1){ir.pushUnique(s.arrays[f],c);return}Xs.update(s,n),I!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(yU.test(o)||gU.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function d(I){return I.valType==="data_array"||I.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],y=r[i],m=t.concat(i);if(o=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=l(m),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(y)))){var A=n.valType,w,x=d(n),_=Array.isArray(p),k=Array.isArray(y);if(_&&k){var T="_input_"+i,q=e[T],C=r[T];if(Array.isArray(q)&&q===C)continue}if(y===void 0)x&&_?s.calc=!0:v();else if(n._isLinkedToArray){var E=[],P=!1;f||(s.arrays[i]=E);var R=Math.min(p.length,y.length),N=Math.max(p.length,y.length);if(R!==N)if(n.editType==="arraydraw")P=!0;else{v();continue}for(w=0;w<R;w++)Xy(p[w],y[w],m.concat(w),ir.extendFlat({inArray:i,arrayIndex:w},a));if(P)for(w=R;w<N;w++)E.push(w)}else!A&&ir.isPlainObject(p)?Xy(p,y,m,a):x?_&&k?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):_!==k?s.calc=!0:v():_&&k?(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=l(t.concat(i)),d(n)&&Array.isArray(r[i])){s.calc=!0;return}else v()}function V8e(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=Cr.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function o(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var N=0;N<R.length;N++){var I;R[N].type==="byname"?I=Cr.computeFrame(e,R[N].name):I=R[N].data;var O=l(N),U=o(N);U.duration=Math.min(U.duration,O.duration);var Y={frame:I,name:R[N].name,frameOpts:O,transitionOpts:U};N===R.length-1&&(Y.onComplete=s(u,2),Y.onInterrupt=f),a._frameQueue.push(Y)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||y()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var R=a._currentFrame=a._frameQueue.shift();if(R){var N=R.name?R.name.toString():null;e._fullLayout._currentFrame=N,a._lastFrameAt=Date.now(),a._timeToNext=R.frameOpts.duration,Cr.transition(e,R.frame.data,R.frame.layout,xa.coerceTraceIndices(e,R.frame.traces),R.frameOpts,R.transitionOpts).then(function(){R.onComplete&&R.onComplete()}),e.emit("plotly_animatingframe",{name:N,frame:R.frame,animation:{frame:R.frameOpts,transition:R.transitionOpts}})}else d()}function y(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var R=function(){a._animationRaf=window.requestAnimationFrame(R),Date.now()-a._lastFrameAt>a._timeToNext&&p()};R()}var m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var A,w,x=[],_=r==null,k=Array.isArray(r),T=!_&&!k&&ir.isPlainObject(r);if(T)x.push({type:"object",data:b(ir.extendFlat({},r))});else if(_||["string","number"].indexOf(typeof r)!==-1)for(A=0;A<a._frames.length;A++)w=a._frames[A],w&&(_||String(w.group)===String(r))&&x.push({type:"byname",name:String(w.name),data:b({name:w.name})});else if(k)for(A=0;A<r.length;A++){var q=r[A];["number","string"].indexOf(typeof q)!==-1?(q=String(q),x.push({type:"byname",name:q,data:b({name:q})})):ir.isPlainObject(q)&&x.push({type:"object",data:b(ir.extendFlat({},q))})}for(A=0;A<x.length;A++)if(w=x[A],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 C=e._fullLayout._currentFrame;if(C&&t.fromcurrent){var E=-1;for(A=0;A<x.length;A++)if(w=x[A],w.type==="byname"&&w.name===C){E=A;break}if(E>0&&E<x.length-1){var P=[];for(A=0;A<x.length;A++)w=x[A],(x[A].type!=="byname"||A>E)&&P.push(w);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function j8e(e,r,t){if(e=ir.getGraphDiv(e),r==null)return Promise.resolve();if(!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ir.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&xw<rU&&(xw++,ir.warn('addFrames: overwriting frame "'+(s[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),xw===rU&&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:Cr.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(T,q){return T.index>q.index?-1:T.index<q.index?1:0});var m=[],b=[],A=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i<l.length&&(l[i]||{}).name!==n.name;i++);m.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,A)),m.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),A++}var w=Cr.modifyFrames,x=Cr.modifyFrames,_=[e,b],k=[e,m];return Yn&&Yn.add(e,w,_,x,k),Cr.modifyFrames(e,m)}function W8e(e,r){if(e=ir.getGraphDiv(e),!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,a,n=e._transitionData._frames,i=[],o=[];if(!r)for(r=[],t=0;t<n.length;t++)r.push(t);for(r=r.slice(),r.sort(),t=r.length-1;t>=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=Cr.modifyFrames,s=Cr.modifyFrames,u=[e,o],f=[e,i];return Yn&&Yn.add(e,l,u,s,f),Cr.modifyFrames(e,i)}function X8e(e){e=ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Cr.cleanPlot([],{},t,r),Cr.purge(e),_w.purge(e),r._container&&r._container.remove(),delete e._context,e}function Z8e(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 $8e(e){var r=Uy.select(e),t=e._fullLayout;if(t._calcInverseTransform=Z8e,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={};Uy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(A8e.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")}$r.animate=V8e;$r.addFrames=j8e;$r.deleteFrames=W8e;$r.addTraces=hU;$r.deleteTraces=dU;$r.extendTraces=cU;$r.moveTraces=ww;$r.prependTraces=vU;$r.newPlot=D8e;$r._doPlot=k8e;$r.purge=X8e;$r.react=U8e;$r.redraw=C8e;$r.relayout=Cd;$r.restyle=Vy;$r.setPlotConfig=q8e;$r.update=Wy;$r._guiRelayout=Aw(Cd);$r._guiRestyle=Aw(Vy);$r._guiUpdate=Aw(Wy);$r._storeDirectGUIEdit=F8e});var Kl=z(ro=>{"use strict";var J8e=Tr();ro.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ro.getRedrawFunc=function(e){return function(){J8e.getComponentMethod("colorbar","draw")(e)}};ro.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ro.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var _U=window.URL||window.webkitURL;ro.createObjectURL=function(e){return _U.createObjectURL(e)};ro.revokeObjectURL=function(e){return _U.revokeObjectURL(e)};ro.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=K8e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ro.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ro.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};ro.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function K8e(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}ro.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Jy=z((D$e,wU)=>{"use strict";var kw=Pr(),L$e=ke(),Q8e=Jr(),e9e=qr(),C$e=(Vl(),ze(Yl)),Mw=/"/g,xf="TOBESTRIPPED",r9e=new RegExp(`("${xf})|(${xf}")|(&quot;${xf})|(${xf}&quot;)`,"g"),t9e=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],a9e=["&lt;","&#60;","&#x3c;"],n9e=["&gt;","&#62;","&#x3e;"];function i9e(e){let r=kw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return t9e.includes(n)?a:a9e.includes(n)?"&#60;":n9e.includes(n)?"&#62;":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function o9e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}wU.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(Q8e.setRect,0,0,l,s).call(e9e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u<f.length;u++){var c=f[u];c.toSVG&&c.toSVG(r)}if(o){var v=o.node().childNodes,d=Array.prototype.slice.call(v);for(u=0;u<d.length;u++){var p=d[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=kw.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(Mw,xf));var A=this.style.fontWeight;A&&(A==="normal"||A==="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=kw.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&m.style("fill",b.replace(Mw,xf));var A=this.style.stroke;A&&A.indexOf("url(")!==-1&&m.style("stroke",A.replace(Mw,xf))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*l),i.attr("height",a*s),i.attr("viewBox","0 0 "+l+" "+s));var y=new window.XMLSerializer().serializeToString(i.node());return y=i9e(y),y=o9e(y),y=y.replace(r9e,"'"),y}});var Ky=z((E$e,AU)=>{"use strict";var l9e=ke(),s9e=Wu().EventEmitter,Ed=Kl();function u9e(e){var r=e.emitter||new s9e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;l==="svg"||l9e.isSafari()?b=Ed.encodeSVG(o):(m=Ed.createBlob(o,"svg"),b=Ed.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var A;switch(m=null,Ed.revokeObjectURL(b),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":A=s.toDataURL("image/jpeg");break;case"png":A=s.toDataURL("image/png");break;case"webp":A=s.toDataURL("image/webp");break;case"svg":A=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(A),e.promise||r.emit("success",A)},y.onerror=function(A){if(m=null,Ed.revokeObjectURL(b),n(A),!e.promise)return r.emit("error",A)},y.src=b});return e.promise?t:r}AU.exports=u9e});var qw=z((P$e,kU)=>{"use strict";var TU=Br(),MU=Tw(),f9e=ma(),_l=ke(),Pd=Kl(),c9e=Jy(),v9e=Ky(),h9e=Jv().version,Sw=(H_(),ze(O_)).default;function d9e(e,r){r=r||{};var t,a,n,i;_l.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=_l.getGraphDiv(e),t=_l.extendDeep([],e.data),a=_l.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||_l.validate(r[k],Sw[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+_l.join2(Sw.format.values,", "," or ")+".");var l={};function s(k,T){return _l.coerce(r,l,Sw,k,T)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=_l.extendFlat({},a);f?m.width=f:r.width===null&&TU(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&TU(i.height)&&(m.height=i.height);var b=_l.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),A=Pd.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,Pd.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,T){var q=c9e(y,u,v),C=y._fullLayout.width,E=y._fullLayout.height;function P(){MU.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=f9e.graphJson(y,!1,"object",!0,!0);return R.version=h9e,R=JSON.stringify(R),P(),k(p?R:Pd.encodeJSON(R))}if(P(),u==="svg")return k(p?q:Pd.encodeSVG(q));var N=document.createElement("canvas");N.id=_l.randstr(),v9e({format:u,width:C,height:E,scale:v,canvas:N,svg:q,promise:!0}).then(k).catch(T)})}function _(k){return p?k.replace(Pd.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,T){MU.newPlot(y,t,m,b).then(A).then(w).then(x).then(function(q){k(_(q))}).catch(function(q){T(q)})})}kU.exports=d9e});var LU=z((R$e,qU)=>{"use strict";var to=ke(),p9e=ma(),m9e=Xc(),y9e=xs().dfltConfig,Io=to.isPlainObject,wf=Array.isArray,Lw=to.isArrayOrTypedArray;qU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=m9e.get(),n=[],i={_context:to.extendFlat({},y9e)},o,l;wf(r)?(i.data=to.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ga("array","data"))),Io(t)?(i.layout=to.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ga("object","layout"))),p9e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],v=["data",f];if(!Io(c)){n.push(Ga("object",v));continue}var d=s[f],p=d.type,y=a.traces[p].attributes;y.type={valType:"enumerated",values:[p]},d.visible===!1&&c.visible!==!1&&n.push(Ga("invisible",v)),Qy(c,d,y,n,v)}var m=i._fullLayout,b=g9e(a,s);return Qy(l,m,b,n,"layout"),n.length===0?void 0:n};function Qy(e,r,t,a,n,i){i=i||[];for(var o=Object.keys(e),l=0;l<o.length;l++){var s=o[l],u=i.slice();u.push(s);var f=e[s],c=r[s],v=_9e(t,s),d=(v||{}).valType,p=d==="info_array",y=d==="colorscale",m=(v||{}).items;if(!x9e(t,s))a.push(Ga("schema",n,u));else if(Io(f)&&Io(c)&&d!=="any")Qy(f,c,v,a,n,u);else if(p&&wf(f)){f.length>c.length&&a.push(Ga("unused",n,u.concat(c.length)));var b=c.length,A=Array.isArray(m);A&&(b=Math.min(b,m.length));var w,x,_,k,T;if(v.dimensions===2)for(x=0;x<b;x++)if(wf(f[x])){f[x].length>c[x].length&&a.push(Ga("unused",n,u.concat(x,c[x].length)));var q=c[x].length;for(w=0;w<(A?Math.min(q,m[x].length):q);w++)_=A?m[x][w]:m,k=f[x][w],T=c[x][w],to.validate(k,_)?T!==k&&T!==+k&&a.push(Ga("dynamic",n,u.concat(x,w),k,T)):a.push(Ga("value",n,u.concat(x,w),k))}else a.push(Ga("array",n,u.concat(x),f[x]));else for(x=0;x<b;x++)_=A?m[x]:m,k=f[x],T=c[x],to.validate(k,_)?T!==k&&T!==+k&&a.push(Ga("dynamic",n,u.concat(x),k,T)):a.push(Ga("value",n,u.concat(x),k))}else if(v.items&&!p&&wf(f)){var C=m[Object.keys(m)[0]],E=[],P,R;for(P=0;P<c.length;P++){var N=c[P]._index||P;if(R=u.slice(),R.push(N),Io(f[N])&&Io(c[P])){E.push(N);var I=f[N],O=c[P];Io(I)&&I.visible!==!1&&O.visible===!1?a.push(Ga("invisible",n,R)):Qy(I,O,C,a,n,R)}}for(P=0;P<f.length;P++)R=u.slice(),R.push(P),Io(f[P])?E.indexOf(P)===-1&&a.push(Ga("unused",n,R)):a.push(Ga("object",n,R,f[P]))}else!Io(f)&&Io(c)?a.push(Ga("object",n,u,f)):!Lw(f)&&Lw(c)&&!p&&!y?a.push(Ga("array",n,u,f)):s in r?to.validate(f,v)?v.valType==="enumerated"&&(v.coerceNumber&&f!==+c||!Lw(f)&&f!==c||String(f)!==String(c))&&a.push(Ga("dynamic",n,u,f,c)):a.push(Ga("value",n,u,f)):a.push(Ga("unused",n,u,f))}return a}function g9e(e,r){for(var t=e.layout.layoutAttributes,a=0;a<r.length;a++){var n=r[a],i=e.traces[n.type],o=i.layoutAttributes;o&&(n.subplot?to.extendFlat(t[i.attributes.subplot.dflt],o):to.extendFlat(t,o))}return t}var b9e={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=_f(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=_f(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return _f(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Io(t)?"container":"key";return _f(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[_f(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?_f(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[_f(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function _f(e){return wf(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Ga(e,r,t,a,n){t=t||"";var i,o;wf(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=A9e(t),s=b9e[e](r,l,a,n);return to.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function x9e(e,r){var t=SU(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function _9e(e,r){if(r in e)return e[r];var t=SU(r);return e[t.keyMinusId]}var w9e=to.counterRegex("([a-z]+)");function SU(e){var r=e.match(w9e);return{keyMinusId:r&&r[1],id:r&&r[2]}}function A9e(e){if(!wf(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 DU=z((F$e,CU)=>{"use strict";var T9e=ke(),eg=Kl();function M9e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=eg.createBlob(e,t),u=eg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),eg.revokeObjectURL(u),s=null,o(r);if(T9e.isSafari()){var f=t==="svg"?",":";base64,";return eg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}CU.exports=M9e});var Cw=z((z$e,FU)=>{"use strict";var rg=ke(),EU=Fa(),k9e=qw(),S9e=DU(),PU=Kl(),RU=40;function q9e(e,r){var t;return rg.isPlainObject(e)||(t=rg.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=k9e(e,r),o=r.filename||e.fn;if(!o){let s=PU.getPlotTitle(e);if(s&&!EU.matchTex(s))o=rg.slugify(s,RU);else{let u=PU.getPlotSubtitle(e);u&&!EU.matchTex(u)&&(o=rg.slugify(u,RU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),S9e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}FU.exports=q9e});var OU=z(Dw=>{"use strict";var ni=ke(),ii=ni.isPlainObject,zU=Xc(),NU=ma(),L9e=On(),IU=Ct(),BU=xs().dfltConfig;Dw.makeTemplate=function(e){e=ni.isPlainObject(e)?e:ni.getGraphDiv(e),e=ni.extendDeep({_context:BU},{data:e.data,layout:e.layout}),NU.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Rd(d,p,D9e.bind(null,d));var y=ni.coerce(d,{},L9e,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Rd(t,a.layout,C9e.bind(null,t)),delete a.layout.template;var n=t.template;if(ii(n)){var i=n.layout,o,l,s,u,f,c;ii(i)&&tg(i,a.layout);var v=n.data;if(ii(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;o<c;o++)tg(s[o%u],f[o]);for(o=c;o<u;o++)f.push(ni.extendDeep({},s[o]))}for(l in v)l in a.data||(a.data[l]=ni.extendDeep([],v[l]))}}return a};function tg(e,r){e=ni.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(ii(c)&&ii(f))tg(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=IU.arrayTemplater({_template:e},v);for(n=0;n<c.length;n++){var p=c[n],y=d.newItem(p)._template;y&&tg(y,p)}var m=d.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 o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,ag(o)===o)for(var s in r){var u=ag(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function ag(e){return e.replace(/[0-9]+$/,"")}function Rd(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=ao(e,o,a),u=ao(e,o,n),f=t(u);if(!f){var c=ag(o);c!==o&&(u=ao(e,c,n),f=t(u))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&ii(l))Rd(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var v=!1,d=0,p={},y=0;y<l.length;y++){var m=l[y];if(ii(m)){var b=m.name;if(b)p[b]||(Rd(m,r,t,ao(l,d,s),ao(l,d,u)),d++,p[b]=1);else if(!v){var A=IU.arrayDefaultKey(o),w=ao(e,A,a),x=ao(l,d,s);Rd(m,r,t,x,ao(l,d,u));var _=ni.nestedProperty(r,x),k=ni.nestedProperty(r,w);k.set(_.get()),_.set(null),v=!0}}}else{var T=ni.nestedProperty(r,s);T.set(l)}}}function C9e(e,r){return zU.getLayoutValObject(e,ni.nestedProperty({},r).parts)}function D9e(e,r){return zU.getTraceValObject(e,ni.nestedProperty({},r).parts)}function ao(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}Dw.validateTemplate=function(e,r){var t=ni.extendDeep({},{_context:BU,data:e.data,layout:e.layout}),a=t.layout||{};ii(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,NU.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(w,x){for(var _ in w)if(_.charAt(0)!=="_"&&ii(w[_])){var k=ag(_),T=[],q;for(q=0;q<x.length;q++)T.push(ao(w,_,x[q])),k!==_&&T.push(ao(w,k,x[q]));for(q=0;q<T.length;q++)u[T[q]]=1;f(w[_],T)}}function c(w,x){for(var _ in w)if(_.indexOf("defaults")===-1&&ii(w[_])){var k=ao(w,_,x);u[k]?c(w[_],k):o.push({code:"unused",path:k})}}if(ii(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!ii(i))o.push({code:"data"});else{for(var v={},d,p=0;p<s.length;p++){var y=s[p];d=y.type,v[d]=(v[d]||0)+1,y._template||o.push({code:"missing",index:y.index,traceType:d})}for(d in i){var m=i[d].length,b=v[d]||0;m>b?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function A(w,x){for(var _ in w)if(_.charAt(0)!=="_"){var k=w[_],T=ao(w,_,x);ii(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:T,templateitemname:k.templateitemname}),A(k,T)):Array.isArray(k)&&E9e(k)&&A(k,T)}}if(A({data:s,layout:l},""),o.length)return o.map(P9e)};function E9e(e){for(var r=0;r<e.length;r++)if(ii(e[r]))return!0}function P9e(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 UU=z(Gt=>{"use strict";var Na=Tw();Gt._doPlot=Na._doPlot;Gt.newPlot=Na.newPlot;Gt.restyle=Na.restyle;Gt.relayout=Na.relayout;Gt.redraw=Na.redraw;Gt.update=Na.update;Gt._guiRestyle=Na._guiRestyle;Gt._guiRelayout=Na._guiRelayout;Gt._guiUpdate=Na._guiUpdate;Gt._storeDirectGUIEdit=Na._storeDirectGUIEdit;Gt.react=Na.react;Gt.extendTraces=Na.extendTraces;Gt.prependTraces=Na.prependTraces;Gt.addTraces=Na.addTraces;Gt.deleteTraces=Na.deleteTraces;Gt.moveTraces=Na.moveTraces;Gt.purge=Na.purge;Gt.addFrames=Na.addFrames;Gt.deleteFrames=Na.deleteFrames;Gt.animate=Na.animate;Gt.setPlotConfig=Na.setPlotConfig;var R9e=wh().getGraphDiv,F9e=hy().eraseActiveShape;Gt.deleteActiveShape=function(e){return F9e(R9e(e))};Gt.toImage=qw();Gt.validate=LU();Gt.downloadImage=Cw();var HU=OU();Gt.makeTemplate=HU.makeTemplate;Gt.validateTemplate=HU.validateTemplate});var Pw=z((B$e,GU)=>{"use strict";var Ew=ke(),z9e=Tr();GU.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=z9e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ew.minRowLength(i);o?l=Math.min(u,Ew.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Ew.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var T0=z((O$e,jU)=>{"use strict";var YU=ke().dateTick0,N9e=(jt(),ze(Zt)),I9e=N9e.ONEWEEK;function VU(e,r){return e%I9e===0?YU(r,1):YU(r,0)}jU.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",VU(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",VU(l,t.ycalendar)),n("yperiodalignment"))}}});var ZU=z((H$e,XU)=>{"use strict";var WU=["orientation","groupnorm","stackgaps"];XU.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v<WU.length;v++){var d=WU[v],p=d+"Found";if(!u[p]){var y=r[d]!==void 0,m=d==="orientation";if((y||f)&&(u[d]=n(d,c[d]),m&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),y&&(u[p]=!0,!f&&(delete u.traces[0][d],m))))for(var b=0;b<u.traces.length-1;b++){var A=u.traces[b];A._input.fill!==A.fill&&(A.fill=u.fillDflt)}}}return u}}});var Rw=z((U$e,QU)=>{"use strict";var $U=qr(),JU=yi().hasColorscale,KU=jl(),B9e=ri();QU.exports=function(r,t,a,n,i,o={}){var l=B9e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),JU(r,"marker")&&KU(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=$U.background:u=$U.defaultLine,i("marker.line.color",u),JU(r,"marker.line")&&KU(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Fw=z((G$e,eG)=>{"use strict";var O9e=ke().isArrayOrTypedArray,H9e=yi().hasColorscale,U9e=jl();eG.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),H9e(r,"line"))U9e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(O9e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var zw=z((Y$e,rG)=>{"use strict";rG.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Nw=z((V$e,tG)=>{"use strict";var G9e=ke();tG.exports=function(e,r,t,a,n){n=n||{},a("textposition"),G9e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Iw=z((j$e,nG)=>{"use strict";var ng=qr(),aG=ke().isArrayOrTypedArray;function Y9e(e){for(var r=ng.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=ng.interpolate(e[t-1][1],e[t][1],.5);r=ng.interpolate(r,a,e[t-1][0]/e[t][0])}return r}nG.exports=function(r,t,a,n,i){i||(i={});var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!aG(l)?o=l:s&&!aG(s)&&(o=s)}var u;if(i.moduleHasFillgradient){var f=n("fillgradient.type");if(f!=="none"){n("fillgradient.start"),n("fillgradient.stop");var c=n("fillgradient.colorscale");c&&(u=Y9e(c))}}n("fillcolor",ng.addOpacity((t.line||{}).color||o||u||a,.5))}});var sG=z((W$e,lG)=>{"use strict";var iG=ke(),V9e=Tr(),j9e=Ji(),W9e=(wd(),ze(_d)),M0=ri(),X9e=Pw(),Z9e=T0(),$9e=ZU(),J9e=Rw(),K9e=Fw(),oG=zw(),Q9e=Nw(),eAe=Iw(),rAe=ke().coercePattern;lG.exports=function(r,t,a,n){function i(d,p){return iG.coerce(r,t,j9e,d,p)}var o=X9e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Z9e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=$9e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<W9e.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),M0.hasMarkers(t)&&J9e(r,t,a,n,i,{gradient:!0}),M0.hasLines(t)&&(K9e(r,t,a,n,i,{backoff:!0}),oG(r,t,i),i("connectgaps"),i("line.simplify")),M0.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Q9e(r,t,n,i));var u=[];(M0.hasMarkers(t)||M0.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(eAe(r,t,a,i,{moduleHasFillgradient:!0}),M0.hasLines(t)||oG(r,t,i),rAe(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=V9e.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),iG.coerceSelectionMarkerOpacity(t,i)}}});var Fd=z((X$e,uG)=>{"use strict";var tAe=bf().getAxisGroup;uG.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=tAe(a,l)+o,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 d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var cG=z((Z$e,fG)=>{"use strict";var aAe=ke(),nAe=Fd(),iAe=Ji();fG.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return aAe.coerce(n._input,n,iAe,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,nAe(a,n,t,l,o));for(i=0;i<r.length;i++){var s=r[i];if(s.type==="scatter"){var u=s.fill;if(!(u==="none"||u==="toself")&&(s.opacity=void 0,u==="tonexty"||u==="tonextx"))for(var f=i-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var hG=z(($$e,vG)=>{"use strict";var oAe=ke(),lAe=Xp();vG.exports=function(e,r){function t(n,i){return oAe.coerce(e,r,lAe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var k0=z((J$e,pG)=>{"use strict";var sAe=Br(),dG=ke(),uAe=dG.dateTime2ms,ig=dG.incrementMonth,fAe=(jt(),ze(Zt)),cAe=fAe.ONEAVGMONTH;pG.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(sAe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=uAe(v,u)||0,p=[],y=[],m=[],b=n.length,A=0;A<b;A++){var w=n[A],x,_,k;if(l){for(x=Math.round((w-d)/(l*cAe)),k=ig(d,l*x,u);k>w;)k=ig(k,-l,u);for(;k<=w;)k=ig(k,l,u);_=ig(k,-l,u)}else{for(x=Math.round((w-d)/o),k=d+x*o;k>w;)k-=o;for(;k<=w;)k+=o;_=k-o}p[A]=f?_:c?k:(_+k)/2,y[A]=_,m[A]=k}return{vals:p,starts:y,ends:m}}});var Hw=z((K$e,yG)=>{"use strict";var Bw=yi().hasColorscale,Ow=Kc(),mG=ri();yG.exports=function(r,t){mG.hasLines(t)&&Bw(t,"line")&&Ow(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),mG.hasMarkers(t)&&(Bw(t,"marker")&&Ow(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Bw(t,"marker.line")&&Ow(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var og=z((Q$e,gG)=>{"use strict";var ra=ke();gG.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;ra.mergeArray(t.text,r,"tx"),ra.mergeArray(t.texttemplate,r,"txt"),ra.mergeArray(t.hovertext,r,"htx"),ra.mergeArray(t.customdata,r,"data"),ra.mergeArray(t.textposition,r,"tp"),t.textfont&&(ra.mergeArrayCastPositive(t.textfont.size,r,"ts"),ra.mergeArray(t.textfont.color,r,"tc"),ra.mergeArray(t.textfont.family,r,"tf"),ra.mergeArray(t.textfont.weight,r,"tw"),ra.mergeArray(t.textfont.style,r,"ty"),ra.mergeArray(t.textfont.variant,r,"tv"),ra.mergeArray(t.textfont.textcase,r,"tC"),ra.mergeArray(t.textfont.lineposition,r,"tE"),ra.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){ra.mergeArrayCastPositive(n.size,r,"ms"),ra.mergeArrayCastPositive(n.opacity,r,"mo"),ra.mergeArray(n.symbol,r,"mx"),ra.mergeArray(n.angle,r,"ma"),ra.mergeArray(n.standoff,r,"mf"),ra.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(ra.mergeArray(i.color,r,"mlc"),ra.mergeArrayCastPositive(i.width,r,"mlw"),ra.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(ra.mergeArray(o.type,r,"mgt"),ra.mergeArray(o.color,r,"mgc"))}}});var lg=z((eJe,xG)=>{"use strict";var bG=ke();xG.exports=function(r,t){bG.isArrayOrTypedArray(t.selectedpoints)&&bG.tagSelected(r,t)}});var sg=z((rJe,SG)=>{"use strict";var _G=Br(),Gw=ke(),zd=Yr(),wG=k0(),Uw=(jt(),ze(Zt)).BADNUM,Yw=ri(),vAe=Hw(),hAe=og(),dAe=lg();function pAe(e,r){var t=e._fullLayout,a=r._xA=zd.getFromId(e,r.xaxis||"x","x"),n=r._yA=zd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=wG(r,a,"x",i),s=wG(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=Vw(r,t,a,n),y=!1,m,b,A,w,x,_;MG(t,r);var k="x",T="y",q;if(p)Gw.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(T="s",q="x"):(k="s",q="y"),x=p.stackgaps==="interpolate";else{var C=TG(r,c);AG(e,r,a,n,u,f,C)}var E=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;b<c;b++){var R=v[b]={},N=_G(u[b]),I=_G(f[b]);N&&I?(R[k]=u[b],R[T]=f[b],E&&(R.orig_x=i[b],R.xEnd=l.ends[b],R.xStart=l.starts[b]),P&&(R.orig_y=o[b],R.yEnd=s.ends[b],R.yStart=s.starts[b])):p&&(m?N:I)?(R[q]=m?u[b]:f[b],R.gap=!0,x?(R.s=Uw,y=!0):R.s=0):R[k]=R[T]=Uw,d&&(R.id=String(d[b]))}if(hAe(v,r),vAe(e,r),dAe(v,r),p){for(b=0;b<v.length;)v[b][q]===Uw?v.splice(b,1):b++;if(Gw.sort(v,function(G,V){return G[q]-V[q]||G.i-V.i}),y){for(b=0;b<v.length-1&&v[b].gap;)b++;for(_=v[b].s,_||(_=v[b].s=0),A=0;A<b;A++)v[A].s=_;for(w=v.length-1;w>b&&v[w].gap;)w--;for(_=v[w].s,A=v.length-1;A>w;A--)v[A].s=_;for(;b<w;)if(b++,v[b].gap){for(A=b+1;v[A].gap;)A++;for(var O=v[b-1][q],U=v[b-1].s,Y=(v[A].s-U)/(v[A][q]-O);b<A;)v[b].s=U+(v[b][q]-O)*Y,b++}}}return v}function AG(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[kG(r)]===r.uid,v=(Vw(r,s,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},y={padded:!0};o&&(p.ppad=y.ppad=o);var m=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];m&&(d==="tozerox"||d==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!Yw.hasMarkers(r)&&!Yw.hasText(r))&&(p.padded=!1,p.ppad=0),m&&(d==="tozeroy"||d==="tonexty"&&(c||v==="v"))?y.tozero=!0:(d==="tonextx"||d==="tozerox")&&(y.padded=!1),u&&(r._extremes[u]=zd.findExtremes(t,n,p)),f&&(r._extremes[f]=zd.findExtremes(a,i,y))}function TG(e,r){if(Yw.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)},Gw.isArrayOrTypedArray(t.size)){var i={type:"linear"};zd.setConvert(i);for(var o=i.makeCalcdata(e.marker,"size"),l=new Array(r),s=0;s<r;s++)l[s]=n(o[s]);return l}else return n(t.size)}}function MG(e,r){var t=kG(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function kG(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Vw(e,r,t,a){var n=e.stackgroup;if(n){var i=r._scatterStackOpts[t._id+a._id][n],o=i.orientation==="v"?a:t;if(o.type==="linear"||o.type==="log")return i}}SG.exports={calc:pAe,calcMarkerSize:TG,calcAxisExpansion:AG,setFirstScatter:MG,getStackOpts:Vw}});var LG=z((tJe,qG)=>{"use strict";qG.exports=ug;var mAe=ke().distinctVals;function ug(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i<e.length;i++){for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s.p;u===void 0&&(u=s[a]),u!==void 0&&n.push(u)}o[0]&&o[0].width1&&(t=Math.min(o[0].width1,t))}this.positions=n;var f=mAe(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={}}ug.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};ug.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};ug.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 Nd={};qt(Nd,{TEXTPAD:()=>yAe,eventDataKeys:()=>gAe});var yAe,gAe,Id=St(()=>{"use strict";yAe=3,gAe=["value","label"]});var cg=z((aJe,PG)=>{"use strict";var no=Br(),{isArrayOrTypedArray:Ql}=ke(),{BADNUM:S0}=(jt(),ze(Zt)),bAe=Tr(),Bd=Yr(),{getAxisGroup:xAe}=bf(),fg=LG(),{TEXTPAD:_Ae}=(Id(),ze(Nd)),{LINE_SPACING:wAe}=(on(),ze(nn)),{BR_TAG_ALL:AAe}=Fa();function TAe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];if(f.visible===!0&&bAe.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):s.push(o[u]),f._computePh))for(var c=e.calcdata[u],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 d={xCat:t.type==="category"||t.type==="multicategory",yCat:a.type==="category"||a.type==="multicategory",mode:n.barmode,norm:n.barnorm,gap:n.bargap,groupgap:n.bargroupgap};Ww(e,t,a,s,d),Ww(e,a,t,l,d)}function Ww(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(SAe(t,a),n.mode){case"overlay":jw(e,r,t,a,n);break;case"group":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.offset===void 0?o.push(s):i.push(s);o.length&&qAe(e,r,t,o,n),i.length&&jw(e,r,t,i,n);break;case"stack":case"relative":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.base===void 0?o.push(s):i.push(s);kAe(o),o.length&&LAe(e,r,t,o,n),i.length&&jw(e,r,t,i,n);break}MAe(a),FAe(a,r)}}function MAe(e){var r,t,a,n,i,o,l;for(r=0;r<e.length;r++)t=e[r],a=t[0].trace,n=t[0].t,n.cornerradiusvalue===void 0&&(i=a.marker?a.marker.cornerradius:void 0,i!==void 0&&(o=no(i)?+i:+i.slice(0,-1),l=no(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function kAe(e){if(!(e.length<2)){var r,t,a,n,i,o,l;for(r=0;r<e.length&&(t=e[r],a=t[0].trace,i=a.marker?a.marker.cornerradius:void 0,i===void 0);r++);if(i!==void 0)for(o=no(i)?+i:+i.slice(0,-1),l=no(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function SAe(e,r){var t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0].trace,o=i.type==="funnel"?i._base:i.base,l,s=i.orientation==="h"?i.xcalendar:i.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Ql(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),no(l)?(n[a].b=+l,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{l=u(o,0,s);var f=no(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function jw(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new fg([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});Xw(e,r,l,n),n.norm?(EG(l),Zw(t,l,n)):DG(t,l)}}function qAe(e,r,t,a,n){var i=new fg(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});Xw(e,r,i,n),PAe(i,r),n.norm?(EG(i),Zw(t,i,n)):DG(t,i)}function LAe(e,r,t,a,n){var i=new fg(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});Xw(e,r,i,n),EAe(t,i,n);for(var o=0;o<a.length;o++)for(var l=a[o],s=l[0].t.offsetindex,u=0;u<l.length;u++){var f=l[u];if(f.s!==S0){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&Zw(t,i,n)}function Xw(e,r,t,a){var n=e._fullLayout,i=t.positions,o=t.distinctPositions,l=t.minDiff,s=t.traces,u=s.length,f=i.length!==o.length,c=l*(1-a.gap),v,d,p,y;if(r._id==="angularaxis")v=c,d=v*(1-(a.groupgap||0)),p=-d/2;else{var m=xAe(n,r._id)+s[0][0].trace.orientation;y=n._alignmentOpts[m]||{}}for(var b=0;b<u;b++){var A=s[b],w=A[0].trace;if(r._id!=="angularaxis"){var x=y[w.alignmentgroup]||{},_=Object.keys(x.offsetGroups||{}).length;_?v=c/_:v=f?c/u:c,d=v*(1-(a.groupgap||0)),_?p=((2*w._offsetIndex+1-_)*v-d)/2:p=f?((2*b+1-u)*v-d)/2:-d/2}var k=A[0].t;k.barwidth=d,k.offsetindex=w._offsetIndex||0,k.poffset=p,k.bargroupwidth=c,k.bardelta=l}t.binWidth=s[0][0].t.barwidth/100,CAe(t),DAe(r,t),r._id==="angularaxis"?CG(r,t):CG(r,t,f)}function CAe(e){var r=e.traces,t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0],o=i.trace,l=i.t,s=o._offset||o.offset,u=l.poffset,f;if(Ql(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)no(f[a])||(f[a]=u);for(a=f.length;a<n.length;a++)f.push(u);l.poffset=f}else s!==void 0&&(l.poffset=s);var c=o._width||o.width,v=l.barwidth;if(Ql(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)no(d[a])||(d[a]=v);for(a=d.length;a<n.length;a++)d.push(v);if(l.barwidth=d,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(v-d[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,s===void 0&&(l.poffset=u+(v-c)/2))}}function DAe(e,r){for(var t=r.traces,a=q0(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=Ql(l),u=o.barwidth,f=Ql(u),c=0;c<i.length;c++){var v=i[c],d=v.w=f?u[c]:u;v.p===void 0&&(v.p=v[a],v["orig_"+a]=v[a]);var p=(s?l[c]:l)+d/2;v[a]=v.p+p}}function CG(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Bd.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],s=l[0],u=s.trace,f=[],c,v,d,p;for(p=0;p<l.length;p++)c=l[p],v=c.p-i,d=c.p+i,f.push(v,d);if(u.width||u.offset){var y=s.t,m=y.poffset,b=y.barwidth,A=Ql(m),w=Ql(b);for(p=0;p<l.length;p++){c=l[p];var x=A?m[p]:m,_=w?b[p]:b;v=c.p+x,d=v+_,f.push(v,d)}}u._extremes[e._id]=Bd.findExtremes(e,f,{padded:!1})}}function DG(e,r){for(var t=r.traces,a=q0(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",s=o.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var v=i[c],d=l?0:v.b,p=l?s?v.y:v.x:d+v.s;v[a]=p,u.push(p),v.hasB&&u.push(d),(!v.hasB||!v.b)&&(f=!0)}let{ppadminus:y,ppadplus:m}=$w(o,i);o._extremes[e._id]=Bd.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:m,ppadminus:y})}}function EAe(e,r,t){var a=q0(e),n=r.traces,i,o,l,s,u,f,c;for(s=0;s<n.length;s++)if(i=n[s],o=i[0].trace,o.type==="funnel")for(c=i[0].t.offsetindex,u=0;u<i.length;u++)f=i[u],f.s!==S0&&r.put(f.p,c,-.5*f.s);for(s=0;s<n.length;s++){i=n[s],o=i[0].trace,l=o.type==="funnel",c=o.type==="barpolar"?0:i[0].t.offsetindex;var v=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==S0){var d;l?d=f.s:d=f.s+f.b;var p=r.put(f.p,c,d),y=p+d;f.b=p,f[a]=y,t.norm||(v.push(y),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:m,ppadplus:b}=$w(o,i);o._extremes[e._id]=Bd.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:b,ppadminus:m})}}}function EG(e){for(var r=e.traces,t=0;t<r.length;t++)for(var a=r[t],n=a[0].t.offsetindex,i=0;i<a.length;i++){var o=a[i];o.s!==S0&&e.put(o.p,n,o.b+o.s)}}function PAe(e,r){for(var t=e.traces,a=0;a<t.length;a++){var n=t[a],i=n[0].trace,o=n[0].t.offsetindex;if(i.base===void 0)for(var l=new fg([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==S0){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function Zw(e,r,t){var a=r.traces,n=q0(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:l;function u(k){return no(e.c2l(k))&&(k<l-o||k>s+o||!no(l))}for(var f=0;f<a.length;f++){for(var c=a[f],v=c[0].t.offsetindex,d=c[0].trace,p=[],y=!1,m=!1,b=0;b<c.length;b++){var A=c[b];if(A.s!==S0){var w=Math.abs(i/r.get(A.p,v,A.s));A.b*=w,A.s*=w;var x=A.b,_=x+A.s;A[n]=_,p.push(_),m=m||u(_),A.hasB&&(p.push(x),m=m||u(x)),(!A.hasB||!A.b)&&(y=!0)}}let{ppadminus:k,ppadplus:T}=$w(d,c);d._extremes[e._id]=Bd.findExtremes(e,p,{tozero:y,padded:m,ppadplus:T,ppadminus:k})}}function $w(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(AAe)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Ql(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*wAe*t+_Ae;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 RAe(e,r,t,a){for(var n=q0(a),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s[n];s._sMin=r[u],s._sMax=t[u]}}function FAe(e,r){var t=q0(r),a={},n,i,o,l=1/0,s=-1/0;for(n=0;n<e.length;n++)for(o=e[n],i=0;i<o.length;i++){var u=o[i].p;no(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var f=1e4/(s-l),c=a.round=function(q){return String(Math.round(f*(q-l)))},v={},d={},p=e.some(function(q){var C=q[0].trace;return"marker"in C&&C.marker.cornerradius});for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=a;var y=o[0].t.poffset,m=Ql(y);for(i=0;i<o.length;i++){var b=o[i],A=b[t]-b.w/2;if(no(A)){var w=b[t]+b.w/2,x=c(b.p);a[x]?a[x]=[Math.min(A,a[x][0]),Math.max(w,a[x][1])]:a[x]=[A,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 _=Math.min(b.s0,b.s1)||0,k=Math.max(b.s0,b.s1)||0,T=b[t];v[T]=T in v?Math.min(v[T],_):_,d[T]=T in d?Math.max(d[T],k):k}}}p&&RAe(e,v,d,r)}function q0(e){return e._id.charAt(0)}PG.exports={crossTraceCalc:TAe,setGroupPositions:Ww}});var NG=z((nJe,zG)=>{"use strict";var RG=sg(),FG=cg().setGroupPositions;function zAe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):f.orientation==="v"&&s.push(o[u]))}var c={mode:n.scattermode,gap:n.scattergap};FG(e,t,a,s,c),FG(e,a,t,l,c)}zG.exports=function(r,t){r._fullLayout.scattermode==="group"&&zAe(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,o=r._fullLayout._scatterStackOpts[i];if(o){var l=r.calcdata,s,u,f,c,v,d,p,y,m,b,A,w,x,_,k;for(var T in o){b=o[T];var q=b.traceIndices;if(q.length){for(A=b.stackgaps==="interpolate",w=b.groupnorm,b.orientation==="v"?(x="x",_="y"):(x="y",_="x"),k=new Array(q.length),s=0;s<k.length;s++)k[s]=!1;d=l[q[0]];var C=new Array(d.length);for(s=0;s<d.length;s++)C[s]=d[s][x];for(s=1;s<q.length;s++){for(v=l[q[s]],u=f=0;u<v.length;u++){for(p=v[u][x];p>C[f]&&f<C.length;f++)Jw(v,u,C[f],s,k,A,x),u++;if(p!==C[f]){for(c=0;c<s;c++)Jw(l[q[c]],f,p,c,k,A,x);C.splice(f,0,p)}f++}for(;f<C.length;f++)Jw(v,u,C[f],s,k,A,x),u++}var E=C.length;for(u=0;u<d.length;u++){for(y=d[u][_]=d[u].s,s=1;s<q.length;s++)v=l[q[s]],v[0].trace._rawLength=v[0].trace._length,v[0].trace._length=E,y+=v[u].s,v[u][_]=y;if(w)for(m=(w==="fraction"?y:y/100)||1,s=0;s<q.length;s++){var P=l[q[s]][u];P[_]/=m,P.sNorm=P.s/m}}for(s=0;s<q.length;s++){v=l[q[s]];var R=v[0].trace,N=RG.calcMarkerSize(R,R._rawLength),I=Array.isArray(N);if(N&&k[s]||I){var O=N;for(N=new Array(E),u=0;u<E;u++)N[u]=v[u].gap?0:I?O[v[u].i]:O}var U=new Array(E),Y=new Array(E);for(u=0;u<E;u++)U[u]=v[u].x,Y[u]=v[u].y;RG.calcAxisExpansion(r,R,a,n,U,Y,N),v[0].t.orientation=b.orientation}}}}};function Jw(e,r,t,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=t,e.splice(r,0,l),r&&t===e[r-1][o]){var s=e[r-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=NAe(e,r,t,o));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function NAe(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 Qw=z((iJe,GG)=>{"use strict";var IAe=Jr(),HG=(jt(),ze(Zt)),Od=HG.BADNUM,UG=HG.LOG_CLIP,IG=UG+.5,BG=UG-.5,vg=ke(),BAe=vg.segmentsIntersect,OG=vg.constrain,Kw=(wd(),ze(_d));GG.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],A=Kw.minTolerance,w=r.length,x=new Array(w),_=0,k,T,q,C,E,P,R,N,I,O,U,Y,G,V,W,j;function J(Ee){var Ke=r[Ee];if(!Ke)return!1;var Be=t.linearized?n.l2p(Ke.x):n.c2p(Ke.x),mr=t.linearized?i.l2p(Ke.y):i.c2p(Ke.y);if(Be===Od){if(o&&(Be=n.c2p(Ke.x,!0)),Be===Od)return!1;l&&mr===Od&&(Be*=Math.abs(n._m*u*(n._m>0?IG:BG)/(i._m*s*(i._m>0?IG:BG)))),Be*=1e3}if(mr===Od){if(l&&(mr=i.c2p(Ke.y,!0)),mr===Od)return!1;mr*=1e3}return[Be,mr]}function te(Ee,Ke,Be,mr){var yr=Be-Ee,ur=mr-Ke,gr=.5-Ee,ne=.5-Ke,ge=yr*yr+ur*ur,Ne=yr*gr+ur*ne;if(Ne>0&&Ne<ge){var He=gr*ur-ne*yr;if(He*He<ge)return!0}}var ae,se;function $(Ee,Ke){var Be=Ee[0]/s,mr=Ee[1]/u,yr=Math.max(0,-Be,Be-1,-mr,mr-1);return yr&&ae!==void 0&&te(Be,mr,ae,se)&&(yr=0),yr&&Ke&&te(Be,mr,Ke[0]/s,Ke[1]/u)&&(yr=0),(1+Kw.toleranceGrowth*yr)*d}function fe(Ee,Ke){var Be=Ee[0]-Ke[0],mr=Ee[1]-Ke[1];return Math.sqrt(Be*Be+mr*mr)}var ie=Kw.maxScreensAway,ue=-s*ie,ce=s*(1+ie),oe=-u*ie,be=u*(1+ie),Re=[[ue,oe,ce,oe],[ce,oe,ce,be],[ce,be,ue,be],[ue,be,ue,oe]],ye,Ce,Me,Le,De,Ie;function qe(Ee,Ke){for(var Be=[],mr=0,yr=0;yr<4;yr++){var ur=Re[yr],gr=BAe(Ee[0],Ee[1],Ke[0],Ke[1],ur[0],ur[1],ur[2],ur[3]);gr&&(!mr||Math.abs(gr.x-Be[0][0])>1||Math.abs(gr.y-Be[0][1])>1)&&(gr=[gr.x,gr.y],mr&&fe(gr,Ee)<fe(Be[0],Ee)?Be.unshift(gr):Be.push(gr),mr++)}return Be}function Ze(Ee){if(Ee[0]<ue||Ee[0]>ce||Ee[1]<oe||Ee[1]>be)return[OG(Ee[0],ue,ce),OG(Ee[1],oe,be)]}function Je(Ee,Ke){if(Ee[0]===Ke[0]&&(Ee[0]===ue||Ee[0]===ce)||Ee[1]===Ke[1]&&(Ee[1]===oe||Ee[1]===be))return!0}function Xe(Ee,Ke){var Be=[],mr=Ze(Ee),yr=Ze(Ke);return mr&&yr&&Je(mr,yr)||(mr&&Be.push(mr),yr&&Be.push(yr)),Be}function Se(Ee,Ke,Be){return function(mr,yr){var ur=Ze(mr),gr=Ze(yr),ne=[];if(ur&&gr&&Je(ur,gr))return ne;ur&&ne.push(ur),gr&&ne.push(gr);var ge=2*vg.constrain((mr[Ee]+yr[Ee])/2,Ke,Be)-((ur||mr)[Ee]+(gr||yr)[Ee]);if(ge){var Ne;ur&&gr?Ne=ge>0==ur[Ee]>gr[Ee]?ur:gr:Ne=ur||gr,Ne[Ee]+=ge}return ne}}var Fe;p==="linear"||p==="spline"?Fe=qe:p==="hv"||p==="vh"?Fe=Xe:p==="hvh"?Fe=Se(0,ue,ce):p==="vhv"&&(Fe=Se(1,oe,be));function er(Ee,Ke){var Be=Ke[0]-Ee[0],mr=(Ke[1]-Ee[1])/Be,yr=(Ee[1]*Ke[0]-Ke[1]*Ee[0])/Be;return yr>0?[mr>0?ue:ce,be]:[mr>0?ce:ue,oe]}function re(Ee){var Ke=Ee[0],Be=Ee[1],mr=Ke===x[_-1][0],yr=Be===x[_-1][1];if(!(mr&&yr))if(_>1){var ur=Ke===x[_-2][0],gr=Be===x[_-2][1];mr&&(Ke===ue||Ke===ce)&&ur?gr?_--:x[_-1]=Ee:yr&&(Be===oe||Be===be)&&gr?ur?_--:x[_-1]=Ee:x[_++]=Ee}else x[_++]=Ee}function xe(Ee){x[_-1][0]!==Ee[0]&&x[_-1][1]!==Ee[1]&&re([Me,Le]),re(Ee),De=null,Me=Le=0}var Ye=vg.isArrayOrTypedArray(c);function vr(Ee){if(Ee&&f&&(Ee.i=k,Ee.d=r,Ee.trace=a,Ee.marker=Ye?c[Ee.i]:c,Ee.backoff=f),ae=Ee[0]/s,se=Ee[1]/u,ye=Ee[0]<ue?ue:Ee[0]>ce?ce:0,Ce=Ee[1]<oe?oe:Ee[1]>be?be:0,ye||Ce){if(!_)x[_++]=[ye||Ee[0],Ce||Ee[1]];else if(De){var Ke=Fe(De,Ee);Ke.length>1&&(xe(Ke[0]),x[_++]=Ke[1])}else Ie=Fe(x[_-1],Ee)[0],x[_++]=Ie;var Be=x[_-1];ye&&Ce&&(Be[0]!==ye||Be[1]!==Ce)?(De&&(Me!==ye&&Le!==Ce?re(Me&&Le?er(De,Ee):[Me||ye,Le||Ce]):Me&&Le&&re([Me,Le])),re([ye,Ce])):Me-ye&&Le-Ce&&re([ye||Me,Ce||Le]),De=Ee,Me=ye,Le=Ce}else De&&xe(Fe(De,Ee)[0]),x[_++]=Ee}for(k=0;k<w;k++)if(T=J(k),!!T){for(_=0,De=null,vr(T),k++;k<w;k++){if(C=J(k),!C){if(v)continue;break}if(!y||!t.simplify){vr(C);continue}var Pe=J(k+1);if(O=fe(C,T),!(!(m&&(_===0||_===w-1))&&O<$(C,Pe)*A)){for(N=[(C[0]-T[0])/O,(C[1]-T[1])/O],E=T,U=O,Y=V=W=0,R=!1,q=C,k++;k<r.length;k++){if(P=Pe,Pe=J(k+1),!P){if(v)continue;break}if(I=[P[0]-T[0],P[1]-T[1]],j=I[0]*N[1]-I[1]*N[0],V=Math.min(V,j),W=Math.max(W,j),W-V>$(P,Pe))break;q=P,G=I[0]*N[0]+I[1]*N[1],G>U?(U=G,C=P,R=!1):G<Y&&(Y=G,E=P,R=!0)}if(R?(vr(C),q!==E&&vr(E)):(E!==T&&vr(E),q!==C&&vr(C)),vr(q),k>=r.length||!P)break;vr(P),T=P}}De&&re([Me||De[0],Le||De[1]]),b.push(x.slice(0,_))}var me=p.slice(p.length-1);if(f&&me!=="h"&&me!=="v"){for(var Te=!1,Ue=-1,$e=[],Oe=0;Oe<b.length;Oe++)for(var We=0;We<b[Oe].length-1;We++){var ar=b[Oe][We],or=b[Oe][We+1],sr=IAe.applyBackoff(or,ar);(sr[0]!==or[0]||sr[1]!==or[1])&&(Te=!0),$e[Ue+1]||(Ue++,$e[Ue]=[ar,[sr[0],sr[1]]])}return Te?$e:b}return b}});var jG=z((oJe,VG)=>{"use strict";var YG={tonextx:1,tonexty:1,tonext:1};VG.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,o=n.stackgroup||"",o?o in u?s=u[o]:(s=u[o]=v,v++):n.fill in YG&&d>=0?s=d:(s=d=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(m,b){var A=m[0].trace,w=b[0].trace;return A._groupIndex-w._groupIndex||A.index-w.index});var y={};for(i=0;i<p.length;i++)n=p[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in YG&&(l=y[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),y[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var e8=z((lJe,ZG)=>{"use strict";var Bo=Pr(),OAe=Tr(),Hd=ke(),L0=Hd.ensureSingle,XG=Hd.identity,sa=Jr(),C0=ri(),HAe=Qw(),UAe=jG(),hg=X7().tester;ZG.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=UAe(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),GAe(r,l,t),f){o&&(s=o());var v=Bo.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(d,p){WG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){WG(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function GAe(e,r,t){r.each(function(a){var n=L0(Bo.select(this),"g","fills");sa.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,XG);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=L0(Bo.select(this),"path","js-fill")})})}function WG(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;YAe(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Se){return u?Se.transition():Se}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=Bo.select(i),m=L0(y,"g","errorbars"),b=L0(y,"g","lines"),A=L0(y,"g","points"),w=L0(y,"g","text");if(OAe.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,_,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var T,q;k==="y"?(T=1,q=v.c2p(0,!0)):k==="x"&&(T=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var C="",E=[],P=d._prevtrace,R=null,N=null;P&&(C=P._prevRevpath||"",_=P._nextFill,E=P._ownPolygons,R=P._fillsegments,N=P._fillElement);var I,O,U="",Y="",G,V,W,j,J,te,ae=[];d._polygons=[];var se=[],$=[],fe=Hd.noop;if(x=d._ownFill,C0.hasLines(d)||d.fill!=="none"){_&&_.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=sa.steps(p.shape),V=sa.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=V=function(Se){var Fe=Se[Se.length-1];return Se.length>1&&Se[0][0]===Fe[0]&&Se[0][1]===Fe[1]?sa.smoothclosed(Se.slice(1),p.smoothing):sa.smoothopen(Se,p.smoothing)}:G=V=function(Se){return"M"+Se.join("L")},W=function(Se){return V(Se.reverse())},$=HAe(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),se=new Array($.length);var ie=0;for(s=0;s<$.length;s++){var ue,ce=$[s];!ue||!k?(ue=ce.slice(),se[ie]=ue,ie++):ue.push.apply(ue,ce)}d._fillElement=null,d._fillExclusionElement=N,d._fillsegments=se.slice(0,ie),se=d._fillsegments,$.length&&(j=$[0][0].slice(),J=$[$.length-1],te=J[J.length-1].slice()),fe=function(Se){return function(Fe){if(I=G(Fe),O=W(Fe),U?k?(U+="L"+I.slice(1),Y=O+("L"+Y.slice(1))):(U+="Z"+I,Y=O+"Z"+Y):(U=I,Y=O),C0.hasLines(d)){var er=Bo.select(this);if(er.datum(a),Se)f(er.style("opacity",0).attr("d",I).call(sa.lineGroupStyle)).style("opacity",1);else{var re=f(er);re.attr("d",I),sa.singleLineStyle(a,re)}}}}}var oe=b.selectAll(".js-line").data($);f(oe.exit()).style("opacity",0).remove(),oe.each(fe(!1)),oe.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(sa.lineGroupStyle).each(fe(!0)),sa.setClipUrl(oe,t.layerClipId,e);function be(Se){f(Se).attr("d","M0,0Z")}var Re=function(){var Se=new Array(se.length);for(s=0;s<se.length;s++)Se[s]=hg(se[s]);return Se},ye=function(Se){var Fe,er;if(!Se||Se.length===0)for(Fe=new Array(se.length),er=0;er<se.length;er++){var re=se[er][0].slice(),xe=se[er][se[er].length-1].slice();re[T]=xe[T]=q;var Ye=[xe,re],vr=Ye.concat(se[er]);Fe[er]=hg(vr)}else{for(Fe=new Array(Se.length-1+se.length),er=0;er<Se.length-1;er++)Fe[er]=hg(Se[er]);var Pe=Se[Se.length-1].slice();for(Pe.reverse(),er=0;er<se.length;er++)Fe[Se.length-1+er]=hg(se[er].concat(Pe))}return Fe};$.length?(x?(x.datum(a),j&&te&&(k?(j[T]=te[T]=q,f(x).attr("d","M"+te+"L"+j+"L"+U.slice(1)).call(sa.singleFillStyle,e),ae=ye(null)):(f(x).attr("d",U+"Z").call(sa.singleFillStyle,e),ae=Re())),d._polygons=ae,d._fillElement=x):_&&(d.fill.slice(0,6)==="tonext"&&U&&C?(d.fill==="tonext"?(f(_).attr("d",U+"Z"+C+"Z").call(sa.singleFillStyle,e),ae=Re(),d._polygons=ae.concat(E)):(f(_).attr("d",U+"L"+C.slice(1)+"Z").call(sa.singleFillStyle,e),ae=ye(R),d._polygons=ae),d._fillElement=_):be(_)),d._prevRevpath=Y):(x?be(x):_&&be(_),d._prevRevpath=null),d._ownPolygons=ae;function Ce(Se){return Se.filter(function(Fe){return!Fe.gap&&Fe.vis})}function Me(Se){return Se.filter(function(Fe){return Fe.vis})}function Le(Se){return Se.filter(function(Fe){return!Fe.gap})}function De(Se){return Se.id}function Ie(Se){if(Se.ids)return De}function qe(){return!1}function Ze(Se,Fe,er){var re,xe,Ye,vr=er[0].trace,Pe=C0.hasMarkers(vr),me=C0.hasText(vr),Te=Ie(vr),Ue=qe,$e=qe;if(Pe||me){var Oe=XG,We=vr.stackgroup,ar=We&&e._fullLayout._scatterStackOpts[c._id+v._id][We].stackgaps==="infer zero";vr.marker.maxdisplayed||vr._needsCull?Oe=ar?Me:Ce:We&&!ar&&(Oe=Le),Pe&&(Ue=Oe),me&&($e=Oe)}xe=Se.selectAll("path.point"),re=xe.data(Ue,Te);var or=re.enter().append("path").classed("point",!0);u&&or.call(sa.pointStyle,vr,e).call(sa.translatePoints,c,v).style("opacity",0).transition().style("opacity",1),re.order();var sr;Pe&&(sr=sa.makePointStyleFns(vr)),re.each(function(Ee){var Ke=Bo.select(this),Be=f(Ke);Ye=sa.translatePoint(Ee,Be,c,v),Ye?(sa.singlePointStyle(Ee,Be,vr,sr,e),t.layerClipId&&sa.hideOutsideRangePoint(Ee,Be,c,v,vr.xcalendar,vr.ycalendar),vr.customdata&&Ke.classed("plotly-customdata",Ee.data!==null&&Ee.data!==void 0)):Be.remove()}),u?re.exit().transition().style("opacity",0).remove():re.exit().remove(),xe=Fe.selectAll("g"),re=xe.data($e,Te),re.enter().append("g").classed("textpoint",!0).append("text"),re.order(),re.each(function(Ee){var Ke=Bo.select(this),Be=f(Ke.select("text"));Ye=sa.translatePoint(Ee,Be,c,v),Ye?t.layerClipId&&sa.hideOutsideRangePoint(Ee,Ke,c,v,vr.xcalendar,vr.ycalendar):Ke.remove()}),re.selectAll("text").call(sa.textPointStyle,vr,e).each(function(Ee){var Ke=c.c2p(Ee.x),Be=v.c2p(Ee.y);Bo.select(this).selectAll("tspan.line").each(function(){f(Bo.select(this)).attr({x:Ke,y:Be})})}),re.exit().remove()}A.datum(a),w.datum(a),Ze(A,w,a);var Je=d.cliponaxis===!1,Xe=Je?null:t.layerClipId;sa.setClipUrl(A,Xe,e),sa.setClipUrl(w,Xe,e)}function YAe(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Bo.extent(Hd.simpleMap(i.range,i.r2c)),s=Bo.extent(Hd.simpleMap(o.range,o.r2c)),u=a[0].trace;if(C0.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(y){return y.x>=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;C0.hasMarkers(b)&&b.marker.maxdisplayed>0&&m<r&&d++});var p=Math.round(d*v/3+Math.floor(d/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 Ud=z((sJe,$G)=>{"use strict";$G.exports={container:"marker",min:"cmin",max:"cmax"}});var r8=z((uJe,JG)=>{"use strict";var dg=Yr();JG.exports=function(r,t,a){var n={},i={_fullLayout:a},o=dg.getFromTrace(i,t,"x"),l=dg.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=dg.tickText(o,o.c2l(s),!0).text,n.yLabel=dg.tickText(l,l.c2l(u),!0).text,n}});var Af=z((fJe,KG)=>{"use strict";var t8=Pr(),D0=Jr(),VAe=Tr();function jAe(e){var r=t8.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=t8.select(this),n=t.trace||t[0].trace;a8(a,n,e)}),r.selectAll("g.text").each(function(t){var a=t8.select(this),n=t.trace||t[0].trace;n8(a,n,e)}),r.selectAll("g.trace path.js-line").call(D0.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(D0.fillGroupStyle,e,!1),VAe.getComponentMethod("errorbars","style")(r)}function a8(e,r,t){D0.pointStyle(e.selectAll("path.point"),r,t)}function n8(e,r,t){D0.textPointStyle(e.selectAll("text"),r,t)}function WAe(e,r,t){var a=r[0].trace;a.selectedpoints?(D0.selectedPointStyle(t.selectAll("path.point"),a),D0.selectedTextStyle(t.selectAll("text"),a)):(a8(t,a,e),n8(t,a,e))}KG.exports={style:jAe,stylePoints:a8,styleText:n8,styleOnSelect:WAe}});var eY=z((cJe,QG)=>{"use strict";var E0=qr(),XAe=ri();QG.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&E0.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&E0.opacity(i)?i:o&&E0.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?E0.opacity(n)<.3?E0.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&E0.opacity(a)&&XAe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var o8=z((vJe,tY)=>{"use strict";var pg=ke(),rY=Un(),ZAe=Tr(),$Ae=eY(),i8=qr(),JAe=pg.fillText;tY.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Y){if(p){var G=l.c2p(Y.xStart),V=l.c2p(Y.xEnd);return u>=Math.min(G,V)&&u<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),j=1-1/W,J=Math.abs(l.c2p(Y.x)-u);return J<W?j*J/W:J-W+j},b=function(Y){if(y){var G=s.c2p(Y.yStart),V=s.c2p(Y.yEnd);return f>=Math.min(G,V)&&f<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),j=1-1/W,J=Math.abs(s.c2p(Y.y)-f);return J<W?j*J/W:J-W+j},A=function(Y){var G=Math.max(d,Y.mrc||0),V=l.c2p(Y.x)-u,W=s.c2p(Y.y)-f;return Math.max(Math.sqrt(V*V+W*W)-G,1-d/G)},w=rY.getDistanceFunction(n,m,b,A);if(rY.getClosest(i,w,r),r.index!==!1){var x=i[r.index],_=l.c2p(x.x,!0),k=s.c2p(x.y,!0),T=x.mrc||1;r.index=x.i;var q=i[0].t.orientation,C=q&&(x.sNorm||x.s),E=q==="h"?C:x.orig_x!==void 0?x.orig_x:x.x,P=q==="v"?C:x.orig_y!==void 0?x.orig_y:x.y;return pg.extendFlat(r,{color:$Ae(o,x),x0:_-T,x1:_+T,xLabelVal:E,y0:k-T,y1:k+T,yLabelVal:P,spikeDistance:A(x),hovertemplate:o.hovertemplate}),JAe(x,o,r),ZAe.getComponentMethod("errorbars","hoverInfo")(x,o,r),[r]}}function R(Y){if(!Y)return!1;var G=Y.node();try{var V=new DOMPoint(c[0],c[1]);return G.isPointInFill(V)}catch(j){var W=G.ownerSVGElement.createSVGPoint();return W.x=c[0],W.y=c[1],G.isPointInFill(W)}}function N(Y){var G,V=[],W=1/0,j=-1/0,J=1/0,te=-1/0,ae;for(G=0;G<Y.length;G++){var se=Y[G];se.contains(c)&&(V.push(se),J=Math.min(J,se.ymin),te=Math.max(te,se.ymax))}if(V.length===0)return null;J=Math.max(J,0),te=Math.min(te,s._length),ae=(J+te)/2;var $,fe,ie,ue,ce,oe,be;for(G=0;G<V.length;G++)for(fe=V[G].pts,$=1;$<fe.length;$++)oe=fe[$-1][1],be=fe[$][1],oe>ae!=be>=ae&&(ue=fe[$-1][0],ce=fe[$][0],be-oe&&(ie=ue+(ce-ue)*(ae-oe)/(be-oe),W=Math.min(W,ie),j=Math.max(j,ie)));return W=Math.max(W,0),j=Math.min(j,l._length),{x0:W,x1:j,y0:ae,y1:ae}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var O=N(o._polygons);O===null&&(O={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=i8.defaultLine;return i8.opacity(o.fillcolor)?U=o.fillcolor:i8.opacity((o.line||{}).color)&&(U=o.line.color),pg.extendFlat(r,{distance:r.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:U,hovertemplate:!1}),delete r.index,o.text&&!pg.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var l8=z((hJe,nY)=>{"use strict";var aY=ri();nY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=l.mode&&!aY.hasMarkers(l)&&!aY.hasText(l);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)?(o.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0;return o}});var oY=z((dJe,iY)=>{"use strict";iY.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fY=z((pJe,uY)=>{"use strict";var mg=Tr().traceIs,s8=Am();uY.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(KAe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function KAe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=QAe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!mg(i,"cartesian")||mg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,sY(i,a)){var u=lY(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!mg(c,"box-violin")||(c[a+"axis"]||a)!==t||(c[u]!==void 0?f.push(c[u][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[o]!==l&&(l=void 0))}e.type=s8(f,l,s)}else if(i.type==="splom"){var v=i.dimensions,d=v[i._axesDim[t]];d.visible&&(e.type=s8(d.values,l,s))}else e.type=s8(i[a]||[i[a+"0"]],l,s)}}}function QAe(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(sY(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function lY(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sY(e,r){var t=lY(e),a=mg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var vY=z((mJe,cY)=>{"use strict";var eTe=Zn().isTypedArraySpec;function rTe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i<r.data.length;i++){var l=r.data[i];l[t+"axis"]===e._id&&n.push(l)}for(i=0;i<n.length;i++){var s=n[i][t];for(o=0;o<s.length;o++){var u=s[o];u!=null&&(a[u]=1)}}return Object.keys(a)}cY.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||eTe(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=rTe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var u8=z((yJe,dY)=>{"use strict";var hY=qr(),tTe=Ii(),aTe=ke();dY.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,C){return aTe.coerce2(r,t,n.attributes,q,C)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=hY.mix(i,n.bgColor,n.blend||tTe.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=hY.mix(t.gridcolor,n.bgColor,67),m=o("minor.gridcolor",y),b=o("minor.gridwidth",t.gridwidth||1),A=o("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!A);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),_=o("zerolinecolor",i),k=o("zerolinewidth"),T=a("zeroline",n.showGrid||!!_||!!k);T||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var c8=z((gJe,xY)=>{"use strict";var pY=Br(),nTe=Tr(),Gd=ke(),iTe=Ct(),oTe=Po(),f8=Gi(),mY=nm(),yY=im(),lTe=lm(),sTe=sm(),uTe=vY(),fTe=u8(),cTe=U6(),gY=i0(),yg=(Pa(),ze(Ea)).WEEKDAY_PATTERN,vTe=(Pa(),ze(Ea)).HOUR_PATTERN;xY.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=nTe.getComponentMethod("calendars","handleDefaults");d(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=Gd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),gY(t,i),cTe(r,t,a,n),uTe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==f8.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(sTe(r,t,a,c,n),!u)return t;a("title.text",b),Gd.coerceFont(a,"title.font",l,{overrideDflt:{size:Gd.bigFont(l.size),color:m}}),mY(r,t,a,c);var A=n.hasMinor;if(A&&(iTe.newContainer(t,"minor"),mY(r,t,a,c,{isMinor:!0})),lTe(r,t,a,c,n),yY(r,t,a,n),A){var w=n.isMinor;n.isMinor=!0,yY(r,t,a,n),n.isMinor=w}fTe(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:A,attributes:f8}),A&&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 _=a("showdividers");_&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(oTe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:hTe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k<t.rangebreaks.length;k++)if(t.rangebreaks[k].pattern===yg){t._hasDayOfWeekBreaks=!0;break}if(gY(t,i),i._has("scattergl")||i._has("splom"))for(var T=0;T<n.data.length;T++){var q=n.data[T];(q.type==="scattergl"||q.type==="splom")&&(q.visible=!1,Gd.warn(q.type+" traces do not work on axes with rangebreaks. Setting trace "+q.index+" to `visible: false`."))}}return t};function hTe(e,r,t){function a(v,d){return Gd.coerce(e,r,f8.rangebreaks,v,d)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=bY(i[l]),s){o=yg;break}}var u=a("pattern",o);if(u===yg)for(l=0;l<2;l++)s=bY(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case yg:if(!pY(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case vTe:if(!pY(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]<f[1]){if(i[0]<f[0]&&i[1]>f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]<f[1]){r.enabled=!1;return}}}else{var c=a("values");if(c&&c.length)a("dvalue");else{r.enabled=!1;return}}}}var dTe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function bY(e){if(typeof e=="string")return dTe[e.slice(0,3).toLowerCase()]}});var v8=z((bJe,_Y)=>{"use strict";var pTe=Br(),gg=ke();_Y.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(pTe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=gg.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=gg.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var A=a("autoshift");A&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var w=!1;if(o.length&&(w=gg.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),gg.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var CY=z((xJe,LY)=>{"use strict";var Tf=ke(),wY=qr(),mTe=Ro().isUnifiedHover,yTe=m7(),AY=Ct(),gTe=Ic(),TY=Gi(),bTe=fY(),MY=c8(),xTe=bf(),kY=v8(),d8=Aa(),wl=d8.id2name,SY=d8.name2id,_Te=(Pa(),ze(Ea)).AX_ID_PATTERN,qY=Tr(),bg=qY.traceIs,h8=qY.getComponentMethod;function xg(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}LY.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y<a.length;y++){var b=a[y];if(bg(b,"cartesian")){var A;if(b.xaxis)A=wl(b.xaxis),xg(i,A,b);else if(b.xaxes)for(m=0;m<b.xaxes.length;m++)xg(i,wl(b.xaxes[m]),b);var w;if(b.yaxis)w=wl(b.yaxis),xg(i,w,b);else if(b.yaxes)for(m=0;m<b.yaxes.length;m++)xg(i,wl(b.yaxes[m]),b);if(b.type==="funnel"?b.orientation==="h"?(A&&(o[A]=!0),w&&(c[w]=!0)):w&&(l[w]=!0):b.type==="image"?(w&&(v[w]=!0),A&&(v[A]=!0)):(w&&(u[w]=!0,f[w]=!0),(!bg(b,"carpet")||b.type==="carpet"&&!b._cheater)&&A&&(s[A]=!0)),b.type==="carpet"&&b._cheater&&A&&(o[A]=!0),bg(b,"2dMap")&&(d[A]=!0,d[w]=!0),bg(b,"oriented")){var x=b.orientation==="h"?w:A;p[x]=!0}}}var _=t._subplots,k=_.xaxis,T=_.yaxis,q=Tf.simpleMap(k,wl),C=Tf.simpleMap(T,wl),E=q.concat(C),P=wY.background;k.length&&T.length&&(P=Tf.coerce(r,t,gTe,"plot_bgcolor"));var R=wY.combine(P,t.paper_bgcolor),N,I,O,U,Y;function G(){var xe=i[N]||[];Y._traceIndices=xe.map(function(Ye){return Ye.index}),Y._annIndices=[],Y._shapeIndices=[],Y._selectionIndices=[],Y._imgIndices=[],Y._subplotsWith=[],Y._counterAxes=[],Y._name=Y._attr=N,Y._id=I}function V(xe,Ye){return Tf.coerce(U,Y,TY,xe,Ye)}function W(xe,Ye){return Tf.coerce2(U,Y,TY,xe,Ye)}function j(xe){return xe==="x"?T:k}function J(xe,Ye){for(var vr=xe==="x"?q:C,Pe=[],me=0;me<vr.length;me++){var Te=vr[me];Te!==Ye&&!(r[Te]||{}).overlaying&&Pe.push(SY(Te))}return Pe}var te={x:j("x"),y:j("y")},ae=te.x.concat(te.y),se={},$=[];function fe(){var xe=U.matches;_Te.test(xe)&&ae.indexOf(xe)===-1&&(se[xe]=U.type,$=Object.keys(se))}var ie=yTe(r,t),ue=mTe(ie);for(y=0;y<E.length;y++){N=E[y],I=SY(N),O=N.charAt(0),Tf.isPlainObject(r[N])||(r[N]={}),U=r[N],Y=AY.newContainer(t,N,O+"axis"),G();var ce=O==="x"&&!s[N]&&o[N]||O==="y"&&!u[N]&&l[N],oe=O==="y"&&(!f[N]&&c[N]||v[N]),be={hasMinor:!0,letter:O,font:t.font,outerTicks:d[N],showGrid:!p[N],data:i[N]||[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:ce,reverseDflt:oe,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[O]||{})[I],noAutotickangles:O==="y"};V("uirevision",t.uirevision),bTe(U,Y,V,be),MY(U,Y,V,be,t);var Re=ue&&O===ie.charAt(0),ye=W("spikecolor",ue?Y.color:void 0),Ce=W("spikethickness",ue?1.5:void 0),Me=W("spikedash",ue?"dot":void 0),Le=W("spikemode",ue?"across":void 0),De=W("spikesnap"),Ie=V("showspikes",!!Re||!!ye||!!Ce||!!Me||!!Le||!!De);Ie||(delete Y.spikecolor,delete Y.spikethickness,delete Y.spikedash,delete Y.spikemode,delete Y.spikesnap);var qe=wl(U.overlaying),Ze=[0,1];if(t[qe]!==void 0){var Je=wl(t[qe].anchor);t[Je]!==void 0&&(Ze=t[Je].domain)}kY(U,Y,V,{letter:O,counterAxes:te[O],overlayableAxes:J(O,N),grid:t.grid,overlayingDomain:Ze}),V("title.standoff"),fe(),Y._input=U}for(y=0;y<$.length;){I=$[y++],N=wl(I),O=N.charAt(0),Tf.isPlainObject(r[N])||(r[N]={}),U=r[N],Y=AY.newContainer(t,N,O+"axis"),G();var Xe={letter:O,font:t.font,outerTicks:d[N],showGrid:!p[N],data:[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[O]||{})[I]};V("uirevision",t.uirevision),Y.type=se[I]||"linear",MY(U,Y,V,Xe,t),kY(U,Y,V,{letter:O,counterAxes:te[O],overlayableAxes:J(O,N),grid:t.grid}),V("fixedrange"),V("modebardisable"),fe(),Y._input=U}var Se=h8("rangeslider","handleDefaults"),Fe=h8("rangeselector","handleDefaults");for(y=0;y<q.length;y++)N=q[y],U=r[N],Y=t[N],Se(r,t,N),Y.type==="date"&&Fe(U,Y,t,C,Y.calendar),V("fixedrange"),V("modebardisable");for(y=0;y<C.length;y++){N=C[y],U=r[N],Y=t[N];var er=t[wl(Y.anchor)],re=h8("rangeslider","isVisible")(er);V("fixedrange",re),V("modebardisable")}xTe.handleDefaults(r,t,{axIds:ae.concat($).sort(d8.idSort),axHasImage:v})}});var PY=z((_Je,EY)=>{"use strict";var wTe=Pr(),DY=Tr(),_g=ke(),Mi=Jr(),wg=Yr();EY.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){wg.redrawComponents(r);return}function o(m){var b=m.xaxis,A=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Mi.setTranslate,0,0).call(Mi.setScale,1,1),m.plot.call(Mi.setTranslate,b._offset,A._offset).call(Mi.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Mi.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Mi.setTextPointsScale,1,1),w.call(Mi.hideOutsideRangePoints,m)}function l(m,b){var A=m.plotinfo,w=A.xaxis,x=A.yaxis,_=w._length,k=x._length,T=!!m.xr1,q=!!m.yr1,C=[];if(T){var E=_g.simpleMap(m.xr0,w.r2l),P=_g.simpleMap(m.xr1,w.r2l),R=E[1]-E[0],N=P[1]-P[0];C[0]=(E[0]*(1-b)+b*P[0]-E[0])/(E[1]-E[0])*_,C[2]=_*(1-b+b*N/R),w.range[0]=w.l2r(E[0]*(1-b)+b*P[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*P[1])}else C[0]=0,C[2]=_;if(q){var I=_g.simpleMap(m.yr0,x.r2l),O=_g.simpleMap(m.yr1,x.r2l),U=I[1]-I[0],Y=O[1]-O[0];C[1]=(I[1]*(1-b)+b*O[1]-I[1])/(I[0]-I[1])*k,C[3]=k*(1-b+b*Y/U),x.range[0]=w.l2r(I[0]*(1-b)+b*O[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*O[1])}else C[1]=0,C[3]=k;wg.drawOne(r,w,{skipTitle:!0}),wg.drawOne(r,x,{skipTitle:!0}),wg.redrawComponents(r,[w._id,x._id]);var G=T?_/C[2]:1,V=q?k/C[3]:1,W=T?C[0]:0,j=q?C[1]:0,J=T?C[0]/C[2]*_:0,te=q?C[1]/C[3]*k:0,ae=w._offset-J,se=x._offset-te;A.clipRect.call(Mi.setTranslate,W,j).call(Mi.setScale,1/G,1/V),A.plot.call(Mi.setTranslate,ae,se).call(Mi.setScale,G,V),Mi.setPointGroupScale(A.zoomScalePts,1/G,1/V),Mi.setTextPointsScale(A.zoomScaleTxt,1/G,1/V)}var s;n&&(s=n());function u(){for(var m={},b=0;b<t.length;b++){var A=t[b],w=A.plotinfo.xaxis,x=A.plotinfo.yaxis;A.xr1&&(m[w._name+".range"]=A.xr1.slice()),A.yr1&&(m[x._name+".range"]=A.yr1.slice())}return s&&s(),DY.call("relayout",r,m).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}function f(){for(var m={},b=0;b<t.length;b++){var A=t[b],w=A.plotinfo.xaxis,x=A.plotinfo.yaxis;A.xr0&&(m[w._name+".range"]=A.xr0.slice()),A.yr0&&(m[x._name+".range"]=A.yr0.slice())}return DY.call("relayout",r,m).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}var c,v,d,p=wTe.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function y(){v=Date.now();for(var m=Math.min(1,(v-c)/a.duration),b=p(m),A=0;A<t.length;A++)l(t[A],b);v-c>a.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var io=z(yn=>{"use strict";var Tg=Pr(),RY=Tr(),Mf=ke(),ATe=ma(),TTe=Jr(),FY=Jp().getModuleCalcData,Zs=Aa(),Oo=(Pa(),ze(Ea)),MTe=(Vl(),ze(Yl)),at=Mf.ensureSingle;function Ag(e,r,t){return Mf.ensureSingle(e,r,t,function(a){a.datum(t)})}var kf=Oo.zindexSeparator;yn.name="cartesian";yn.attr=["xaxis","yaxis"];yn.idRoot=["x","y"];yn.idRegex=Oo.idRegex;yn.attrRegex=Oo.attrRegex;yn.attributes=oY();yn.layoutAttributes=Gi();yn.supplyLayoutDefaults=CY();yn.transitionAxes=PY();yn.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u<o.length;u++){var v=o[u].split("y");l[v[0]]=1,s["y"+v[1]]=1}for(u=0;u<a.length;u++)f=a[u],l[f]||(c=(e[Zs.id2name(f)]||{}).anchor,Oo.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,Mf.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[Zs.id2name(c)]||{}).anchor,Oo.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,Mf.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(Oo.attrRegex.test(d)){var p=d.charAt(0);p==="x"?(!f||+d.slice(5)<+f.slice(5))&&(f=d):(!c||+d.slice(5)<+c.slice(5))&&(c=d)}f=f?Zs.name2id(f):"x",c=c?Zs.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};yn.plot=function(e,r,t,a){var n=e._fullLayout,i=n._subplots.cartesian,o=e.calcdata,l;if(!Array.isArray(r))for(r=[],l=0;l<o.length;l++)r.push(l);for(var s=n._zindices,u=0;u<s.length;u++){var f=s[u];for(l=0;l<i.length;l++){var c=i[l],v=n._plots[c];if(u>0){var d=v.id;if(d.indexOf(kf)!==-1)continue;d+=kf+(u+1),v=Mf.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m<o.length;m++){var b=o[m],A=b[0].trace;f===(A.zorder||0)&&A.xaxis+A.yaxis===c&&((r.indexOf(A.index)!==-1||A.carpet)&&(y&&y[0].trace.xaxis+y[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(A.fill)!==-1&&p.indexOf(y)===-1&&p.push(y),p.push(b)),y=b)}zY(e,v,p,t,a)}}};function zY(e,r,t,a,n){for(var i=Oo.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,v=[],d=[],p=0;p<l.length;p++)for(var y=l[p],m=0;m<s.length;m++){u=s[m];var b=u.name,A=RY.modules[b].categories;if(A.svg){var w=u.layerName||b+"layer",x=w+(p?Number(p)+1:""),_=u.plot;f=FY(t,_,y),c=f[0],t=f[1],c.length&&v.push({i:i.indexOf(w),zindex:p,className:x,plotMethod:_,cdModule:c}),A.zoomScale&&d.push("."+x)}}v.sort(function(q,C){return(q.zindex||0)-(C.zindex||0)||q.i-C.i});var k=r.plot.selectAll("g.mlayer").data(v,function(q){return q.className});if(k.enter().append("g").attr("class",function(q){return q.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),k.exit().remove(),k.order(),k.each(function(q){var C=Tg.select(this),E=q.className;q.plotMethod(e,r,q.cdModule,C,a,n),Oo.clipOnAxisFalseQuery.indexOf("."+E)===-1&&TTe.setClipUrl(C,r.layerClipId,e)}),o._has("scattergl")&&(u=RY.getModule("scattergl"),c=FY(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Oo.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var T=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=T.selectAll("path.point"),r.zoomScaleTxt=T.selectAll(".textpoint")}}yn.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},o=a._subplots||{},l,s,u;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(u in n)l=n[u],l.plotgroup&&l.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(u in n)l=n[u],l._scene&&l._scene.destroy();if(o.xaxis&&o.yaxis){var v=Zs.listIds({_fullLayout:a});for(s=0;s<v.length;s++){var d=v[s];r[Zs.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var p=a._has&&a._has("cartesian"),y=r._has&&r._has("cartesian");if(p&&!y)IY(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(s=0;s<o.cartesian.length;s++){var m=o.cartesian[s];if(m.indexOf(kf)===-1&&!i[m]){var b="."+m+",."+m+"-x,."+m+"-y";a._cartesianlayer.selectAll(b).remove(),BY(m,a)}}};yn.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,a,n={};for(a=0;a<t.length;a++){var i=t[a][0],o=i.trace,l=o.zorder||0;n[l]||(n[l]=[]),n[l].push(i)}var s=Object.keys(n).map(Number).sort(Mf.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=kTe(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 d=[];for(a=0;a<f;a++)d[a]=u[a].slice(),d[a][0]+=kf+(v+1);c=c.concat(d)}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(IY,r),p.each(function(y){var m=y[0],b=m.indexOf(kf),A=b!==-1,w=A?m.slice(0,b):m,x=r._plots[m];x||(x=Mf.extendFlat({},r._plots[w]),x&&(x.id=m,r._plots[m]=x,r._subplots.cartesian.push(m))),x&&(x.plotgroup=Tg.select(this),NY(e,x),A||(x.draglayer=at(r._draggers,"g",m)))})};yn.rangePlot=function(e,r,t){NY(e,r),zY(e,r,t),ATe.style(e)};function kTe(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,s,u,f,c=[],v=[];for(i=0;i<n;i++){l=a[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;var d=u._mainAxis,p=f._mainAxis,y=d._id+p._id,m=r._plots[y];s.overlays=[],y!==l&&m?(s.mainplot=y,s.mainplotinfo=m,v.push(l)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(l))}for(i=0;i<v.length;i++)l=v[i],s=r._plots[l],s.mainplotinfo.overlays.push(s);var b=c.concat(v),A=[];for(i=0;i<n;i++){l=b[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var w=[],x=1;x<=t;x++){var _="";for(x>1&&(_+=kf+x),w.push(l+_),o=0;o<s.overlays.length;o++)w.push(s.overlays[o].id+_)}w=w.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),A.push(w)}return A}function NY(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(kf),o=i!==-1,l=Oo.layerValue2layerClass[r.xaxis.layer],s=Oo.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=at(a,"path","xlines-above"),r.ylines=at(a,"path","ylines-above"),r.xaxislayer=at(a,"g","xaxislayer-above"),r.yaxislayer=at(a,"g","yaxislayer-above");else{if(!o){var v=at(a,"g","layer-subplot");r.shapelayer=at(v,"g","shapelayer"),r.imagelayer=at(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=at(a,"g","minor-gridlayer"),r.gridlayer=at(a,"g","gridlayer"),r.zerolinelayer=at(a,"g","zerolinelayer"));var d=at(a,"g","layer-between");r.shapelayerBetween=at(d,"g","shapelayer"),r.imagelayerBetween=at(d,"g","imagelayer"),at(a,"path","xlines-below"),at(a,"path","ylines-below"),r.overlinesBelow=at(a,"g","overlines-below"),at(a,"g","xaxislayer-below"),at(a,"g","yaxislayer-below"),r.overaxesBelow=at(a,"g","overaxes-below")}r.overplot=at(a,"g","overplot"),r.plot=at(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=at(a,"g","zerolinelayer-above"),o||(r.xlines=at(a,"path","xlines-above"),r.ylines=at(a,"path","ylines-above"),r.overlinesAbove=at(a,"g","overlines-above"),at(a,"g","xaxislayer-above"),at(a,"g","yaxislayer-above"),r.overaxesAbove=at(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,at(c.overlinesBelow,"path",y),at(c.overlinesBelow,"path",m),at(c.overaxesBelow,"g",y),at(c.overaxesBelow,"g",m),r.plot=at(c.overplot,"g",n),at(c.overlinesAbove,"path",y),at(c.overlinesAbove,"path",m),at(c.overaxesAbove,"g",y),at(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(Ag(r.minorGridlayer,"g",r.xaxis._id),Ag(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Zs.idSort),Ag(r.gridlayer,"g",r.xaxis._id),Ag(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Zs.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function IY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Tg.select(this);f.remove(),BY(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o<i.length;o++){var l=i[o];t[l.id]&&l.plot.selectAll(".trace").remove()}}}function BY(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}yn.toSVG=function(e){var r=e._fullLayout._glimages,t=Tg.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:MTe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};yn.updateFx=pw().updateFx});var HY=z((AJe,OY)=>{"use strict";var Mg=ri();OY.exports={hasLines:Mg.hasLines,hasMarkers:Mg.hasMarkers,hasText:Mg.hasText,isBubble:Mg.isBubble,attributes:Ji(),layoutAttributes:Xp(),supplyDefaults:sG(),crossTraceDefaults:cG(),supplyLayoutDefaults:hG(),calc:sg().calc,crossTraceCalc:NG(),arraysToCalcdata:og(),plot:e8(),colorbar:Ud(),formatLabels:r8(),style:Af().style,styleOnSelect:Af().styleOnSelect,hoverPoints:o8(),selectPoints:l8(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:io(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var YY=z((TJe,GY)=>{"use strict";var STe=Pr(),qTe=qr(),UY=ow(),p8=ke(),LTe=p8.strScale,CTe=p8.strRotate,DTe=p8.strTranslate;GY.exports=function(r,t,a){var n=r.node(),i=UY[a.arrowhead||0],o=UY[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,A=d.y-p.y;if(y=Math.atan2(A,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+A*A)){I();return}if(c){if(c*c>b*b+A*A){I();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+A*A){I();return}var _=v*Math.cos(y),k=v*Math.sin(y);d.x-=_,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var T=n.getTotalLength(),q="";if(T<c+v){I();return}var C=n.getPointAtLength(0),E=n.getPointAtLength(.1);y=Math.atan2(C.y-E.y,C.x-E.x),d=n.getPointAtLength(Math.min(v,T)),q="0px,"+v+"px,";var P=n.getPointAtLength(T),R=n.getPointAtLength(T-.1);m=Math.atan2(P.y-R.y,P.x-R.x),p=n.getPointAtLength(Math.max(0,T-c));var N=q?v+c:c;q+=T-N+"px,"+T+"px",r.style("stroke-dasharray",q)}function I(){r.style("stroke-dasharray","0px,100px")}function O(U,Y,G,V){U.path&&(U.noRotate&&(G=0),STe.select(n.parentNode).append("path").attr({class:r.attr("class"),d:U.path,transform:DTe(Y.x,Y.y)+CTe(G*180/Math.PI)+LTe(V)}).style({fill:qTe.rgb(a.arrowcolor),"stroke-width":0}))}u&&O(o,d,y,s),f&&O(i,p,m,l)}});var kg=z((MJe,ZY)=>{"use strict";var VY=Pr(),m8=Tr(),ETe=ma(),Js=ke(),y8=Js.strTranslate,Vd=Yr(),Sf=qr(),es=Jr(),jY=Un(),g8=Fa(),b8=Os(),Yd=Vi(),PTe=Ct().arrayEditor,RTe=YY();ZY.exports={draw:FTe,drawOne:WY,drawRaw:XY};function FTe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&WY(e,t);return ETe.previousPromises(e)}function WY(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Vd.getFromId(e,a.xref),i=Vd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),XY(e,a,r,!1,n,i)}function $s(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=Vd.getRefType(o)==="domain",u=l?a.h:a.w;return e?s?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/u}function XY(e,r,t,a,n,i){var o=e._fullLayout,l=e._fullLayout._size,s=e._context.edits,u,f;a?(u="annotation-"+a,f=a+".annotations"):(u="annotation",f="annotations");var c=PTe(e.layout,f,r),v=c.modifyBase,d=c.modifyItem,p=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var y="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){VY.selectAll("#"+y).remove();return}var m={x:{},y:{}},b=+r.textangle||0,A=o._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),w=A.append("g").classed("annotation-text-g",!0),x=s[r.showarrow?"annotationTail":"annotationPosition"],_=r.captureevents||s.annotationText||x;function k(V){var W={index:t,annotation:r._input,fullAnnotation:r,event:V};return a&&(W.subplotId=a),W}var T=w.append("g").style("pointer-events",_?"all":null).call(b8,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",k(VY.event))});r.hovertext&&T.on("mouseover",function(){var V=r.hoverlabel,W=V.font,j=this.getBoundingClientRect(),J=e.getBoundingClientRect();jY.loneHover({x0:j.left-J.left,x1:j.right-J.left,y:(j.top+j.bottom)/2-J.top,text:r.hovertext,color:V.bgcolor,borderColor:V.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:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){jY.loneUnhover(o._hoverlayer.node())});var q=r.borderwidth,C=r.borderpad,E=q+C,P=T.append("rect").attr("class","bg").style("stroke-width",q+"px").call(Sf.stroke,r.bordercolor).call(Sf.fill,r.bgcolor),R=r.width||r.height,N=o._topclips.selectAll("#"+y).data(R?[0]:[]);N.enter().append("clipPath").classed("annclip",!0).attr("id",y).append("rect"),N.exit().remove();var I=r.font,O=o._meta?Js.templateString(r.text,o._meta):r.text,U=T.append("text").classed("annotation-text",!0).text(O);function Y(V){return V.call(es.font,I).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),g8.convertToTspans(V,e,G),V}function G(){var V=U.selectAll("a");if(V.size()===1&&V.text()===U.text()){var W=T.insert("a",":first-child").attr({"xlink:xlink:href":V.attr("xlink:href"),"xlink:xlink:show":V.attr("xlink:show")}).style({cursor:"pointer"});W.node().appendChild(P.node())}var j=T.select(".annotation-text-math-group"),J=!j.empty(),te=es.bBox((J?j:U).node()),ae=te.width,se=te.height,$=r.width||ae,fe=r.height||se,ie=Math.round($+2*E),ue=Math.round(fe+2*E);function ce(mr,yr){return yr==="auto"&&(mr<1/3?yr="left":mr>2/3?yr="right":yr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[yr]}for(var oe=!1,be=["x","y"],Re=0;Re<be.length;Re++){var ye=be[Re],Ce=r[ye+"ref"]||ye,Me=r["a"+ye+"ref"],Le={x:n,y:i}[ye],De=(b+(ye==="x"?0:-90))*Math.PI/180,Ie=ie*Math.cos(De),qe=ue*Math.sin(De),Ze=Math.abs(Ie)+Math.abs(qe),Je=r[ye+"anchor"],Xe=r[ye+"shift"]*(ye==="x"?1:-1),Se=m[ye],Fe,er,re,xe,Ye,vr=Vd.getRefType(Ce);if(Le&&vr!=="domain"){var Pe=Le.r2fraction(r[ye]);(Pe<0||Pe>1)&&(Me===Ce?(Pe=Le.r2fraction(r["a"+ye]),(Pe<0||Pe>1)&&(oe=!0)):oe=!0),Fe=Le._offset+Le.r2p(r[ye]),xe=.5}else{var me=vr==="domain";ye==="x"?(re=r[ye],Fe=me?Le._offset+Le._length*re:Fe=l.l+l.w*re):(re=1-r[ye],Fe=me?Le._offset+Le._length*re:Fe=l.t+l.h*re),xe=r.showarrow?.5:re}if(r.showarrow){Se.head=Fe;var Te=r["a"+ye];if(Ye=Ie*ce(.5,r.xanchor)-qe*ce(.5,r.yanchor),Me===Ce){var Ue=Vd.getRefType(Me);Ue==="domain"?(ye==="y"&&(Te=1-Te),Se.tail=Le._offset+Le._length*Te):Ue==="paper"?ye==="y"?(Te=1-Te,Se.tail=l.t+l.h*Te):Se.tail=l.l+l.w*Te:Se.tail=Le._offset+Le.r2p(Te),er=Ye}else Se.tail=Fe+Te,er=Ye+Te;Se.text=Se.tail+Ye;var $e=o[ye==="x"?"width":"height"];if(Ce==="paper"&&(Se.head=Js.constrain(Se.head,1,$e-1)),Me==="pixel"){var Oe=-Math.max(Se.tail-3,Se.text),We=Math.min(Se.tail+3,Se.text)-$e;Oe>0?(Se.tail+=Oe,Se.text+=Oe):We>0&&(Se.tail-=We,Se.text-=We)}Se.tail+=Xe,Se.head+=Xe}else Ye=Ze*ce(xe,Je),er=Ye,Se.text=Fe+Ye;Se.text+=Xe,Ye+=Xe,er+=Xe,r["_"+ye+"padplus"]=Ze/2+er,r["_"+ye+"padminus"]=Ze/2-er,r["_"+ye+"size"]=Ze,r["_"+ye+"shift"]=Ye}if(oe){T.remove();return}var ar=0,or=0;if(r.align!=="left"&&(ar=($-ae)*(r.align==="center"?.5:1)),r.valign!=="top"&&(or=(fe-se)*(r.valign==="middle"?.5:1)),J)j.select("svg").attr({x:E+ar-1,y:E+or}).call(es.setClipUrl,R?y:null,e);else{var sr=E+or-te.top,Ee=E+ar-te.left;U.call(g8.positionText,Ee,sr).call(es.setClipUrl,R?y:null,e)}N.select("rect").call(es.setRect,E,E,$,fe),P.call(es.setRect,q/2,q/2,ie-q,ue-q),T.call(es.setTranslate,Math.round(m.x.text-ie/2),Math.round(m.y.text-ue/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Ke=function(mr,yr){A.selectAll(".annotation-arrow-g").remove();var ur=m.x.head,gr=m.y.head,ne=m.x.tail+mr,ge=m.y.tail+yr,Ne=m.x.text+mr,He=m.y.text+yr,Kr=Js.rotationXYMatrix(b,Ne,He),Qr=Js.apply2DTransform(Kr),yt=Js.apply2DTransform2(Kr),gt=+P.attr("width"),Et=+P.attr("height"),aa=Ne-.5*gt,$a=aa+gt,na=He-.5*Et,Ja=na+Et,hn=[[aa,na,aa,Ja],[aa,Ja,$a,Ja],[$a,Ja,$a,na],[$a,na,aa,na]].map(yt);if(!hn.reduce(function(Pt,oa){return Pt^!!Js.segmentsIntersect(ur,gr,ur+1e6,gr+1e6,oa[0],oa[1],oa[2],oa[3])},!1)){hn.forEach(function(Pt){var oa=Js.segmentsIntersect(ne,ge,ur,gr,Pt[0],Pt[1],Pt[2],Pt[3]);oa&&(ne=oa.x,ge=oa.y)});var fa=r.arrowwidth,hr=r.arrowcolor,wt=r.arrowside,Vr=A.append("g").style({opacity:Sf.opacity(hr)}).classed("annotation-arrow-g",!0),ht=Vr.append("path").attr("d","M"+ne+","+ge+"L"+ur+","+gr).style("stroke-width",fa+"px").call(Sf.stroke,Sf.rgb(hr));if(RTe(ht,wt,r),s.annotationPosition&&ht.node().parentNode&&!a){var Nt=ur,kt=gr;if(r.standoff){var it=Math.sqrt(Math.pow(ur-ne,2)+Math.pow(gr-ge,2));Nt+=r.standoff*(ne-ur)/it,kt+=r.standoff*(ge-gr)/it}var ia=Vr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ne-Nt)+","+(ge-kt),transform:y8(Nt,kt)}).style("stroke-width",fa+6+"px").call(Sf.stroke,"rgba(0,0,0,0)").call(Sf.fill,"rgba(0,0,0,0)"),zn,Xt;Yd.init({element:ia.node(),gd:e,prepFn:function(){var Pt=es.getTranslate(T);zn=Pt.x,Xt=Pt.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Pt,oa){var la=Qr(zn,Xt),dt=la[0]+Pt,Ka=la[1]+oa;T.call(es.setTranslate,dt,Ka),d("x",$s(n,Pt,"x",l,r)),d("y",$s(i,oa,"y",l,r)),r.axref===r.xref&&d("ax",$s(n,Pt,"ax",l,r)),r.ayref===r.yref&&d("ay",$s(i,oa,"ay",l,r)),Vr.attr("transform",y8(Pt,oa)),w.attr({transform:"rotate("+b+","+dt+","+Ka+")"})},doneFn:function(){m8.call("_guiRelayout",e,p());var Pt=document.querySelector(".js-notes-box-panel");Pt&&Pt.redraw(Pt.selectedObj)}})}}};if(r.showarrow&&Ke(0,0),x){var Be;Yd.init({element:T.node(),gd:e,prepFn:function(){Be=w.attr("transform")},moveFn:function(mr,yr){var ur="pointer";if(r.showarrow)r.axref===r.xref?d("ax",$s(n,mr,"ax",l,r)):d("ax",r.ax+mr),r.ayref===r.yref?d("ay",$s(i,yr,"ay",l.w,r)):d("ay",r.ay+yr),Ke(mr,yr);else{if(a)return;var gr,ne;if(n)gr=$s(n,mr,"x",l,r);else{var ge=r._xsize/l.w,Ne=r.x+(r._xshift-r.xshift)/l.w-ge/2;gr=Yd.align(Ne+mr/l.w,ge,0,1,r.xanchor)}if(i)ne=$s(i,yr,"y",l,r);else{var He=r._ysize/l.h,Kr=r.y-(r._yshift+r.yshift)/l.h-He/2;ne=Yd.align(Kr-yr/l.h,He,0,1,r.yanchor)}d("x",gr),d("y",ne),(!n||!i)&&(ur=Yd.getCursor(n?.5:gr,i?.5:ne,r.xanchor,r.yanchor))}w.attr({transform:y8(mr,yr)+Be}),b8(T,ur)},clickFn:function(mr,yr){r.captureevents&&e.emit("plotly_clickannotation",k(yr))},doneFn:function(){b8(T),m8.call("_guiRelayout",e,p());var mr=document.querySelector(".js-notes-box-panel");mr&&mr.redraw(mr.selectedObj)}})}}s.annotationText?U.call(g8.makeEditable,{delegate:T,gd:e}).call(Y).on("edit",function(V){r.text=V,this.call(Y),d("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),m8.call("_guiRelayout",e,p())}):U.call(Y)}});var rV=z((kJe,eV)=>{"use strict";var $Y=ke(),zTe=Tr(),JY=Ct().arrayEditor;eV.exports={hasClickToShow:NTe,onClick:ITe};function NTe(e,r){var t=QY(e,r);return t.on.length>0||t.explicitOff.length>0}function ITe(e,r){var t=QY(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l<a.length;l++)s=JY(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),$Y.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=JY(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),$Y.extendFlat(i,s.getUpdateObj());return zTe.call("update",e,{},i)}}function QY(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,s,u,f,c,v,d,p;for(l=0;l<t.length;l++)if(u=t[l],f=u.clicktoshow,f){for(s=0;s<o;s++)if(c=r[s],v=c.xaxis,d=c.yaxis,v._id===u.xref&&d._id===u.yref&&v.d2r(c.x)===KY(u._xclick,v)&&d.d2r(c.y)===KY(u._yclick,d)){u.visible?f==="onout"?p=n:p=i:p=a,p.push(l);break}s===o&&u.visible&&f==="onout"&&n.push(l)}return{on:a,off:n,explicitOff:i}}function KY(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var _8=z((SJe,tV)=>{"use strict";var x8=ke(),P0=qr();tV.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=P0.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x8.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:P0.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(P0.opacity(i)?P0.rgb(i):P0.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||P0.contrast(m)),A=x8.extendFlat({},y.font);A.color||(A.color=b),x8.coerceFont(n,"hoverlabel.font",A)}n("captureevents",!!p)}});var nV=z((qJe,aV)=>{"use strict";var w8=ke(),qf=Yr(),BTe=Po(),OTe=_8(),HTe=w0();aV.exports=function(r,t){BTe(r,t,{name:"annotations",handleItemDefaults:UTe})};function UTe(e,r,t){function a(w,x){return w8.coerce(e,r,HTe,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){OTe(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=qf.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=qf.getFromId(u,v);d._annIndices.push(r._index)}if(qf.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=qf.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;qf.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(w8.noneOrAll(e,r,["x","y"]),o&&w8.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),A=a("yclick");r._xclick=b===void 0?r.x:qf.cleanPosition(b,u,r.xref),r._yclick=A===void 0?r.y:qf.cleanPosition(A,u,r.yref)}}}});var lV=z((LJe,oV)=>{"use strict";var A8=ke(),Lf=Yr(),GTe=kg().draw;oV.exports=function(r){var t=r._fullLayout,a=A8.filterVisible(t.annotations);if(a.length&&r._fullData.length)return A8.syncOrAsync([GTe,YTe],r)};function YTe(e){var r=e._fullLayout;A8.filterVisible(r.annotations).forEach(function(t){var a=Lf.getFromId(e,t.xref),n=Lf.getFromId(e,t.yref),i=Lf.getRefType(t.xref),o=Lf.getRefType(t.yref);t._extremes={},i==="range"&&iV(t,a),o==="range"&&iV(t,n)})}function iV(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(l===o){var A=Lf.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),w=Lf.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[A.min[0],w.min[0]],max:[A.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Lf.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var uV=z((CJe,sV)=>{"use strict";var VTe=Br(),jTe=V1();sV.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=jTe(p,t.range):y=Math.pow(10,p),VTe(y)||(y=null),n(f+d,y)}for(var v=0;v<l.length;v++)u=l[v],f="annotations["+v+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var vV=z((DJe,cV)=>{"use strict";var T8=kg(),fV=rV();cV.exports={moduleType:"component",name:"annotations",layoutAttributes:w0(),supplyLayoutDefaults:nV(),includeBasePlot:Td()("annotations"),calcAutorange:lV(),draw:T8.draw,drawOne:T8.drawOne,drawRaw:T8.drawRaw,hasClickToShow:fV.hasClickToShow,onClick:fV.onClick,convertCoords:uV()}});var Sg=z((EJe,hV)=>{"use strict";var Ft=w0(),WTe=qo().overrideAll,XTe=Ct().templatedArray;hV.exports=WTe(XTe("annotation",{visible:Ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ft.xanchor,xshift:Ft.xshift,yanchor:Ft.yanchor,yshift:Ft.yshift,text:Ft.text,textangle:Ft.textangle,font:Ft.font,width:Ft.width,height:Ft.height,opacity:Ft.opacity,align:Ft.align,valign:Ft.valign,bgcolor:Ft.bgcolor,bordercolor:Ft.bordercolor,borderpad:Ft.borderpad,borderwidth:Ft.borderwidth,showarrow:Ft.showarrow,arrowcolor:Ft.arrowcolor,arrowhead:Ft.arrowhead,startarrowhead:Ft.startarrowhead,arrowside:Ft.arrowside,arrowsize:Ft.arrowsize,startarrowsize:Ft.startarrowsize,arrowwidth:Ft.arrowwidth,standoff:Ft.standoff,startstandoff:Ft.startstandoff,hovertext:Ft.hovertext,hoverlabel:Ft.hoverlabel,captureevents:Ft.captureevents}),"calc","from-root")});var pV=z((PJe,dV)=>{"use strict";var M8=ke(),ZTe=Yr(),$Te=Po(),JTe=_8(),KTe=Sg();dV.exports=function(r,t,a){$Te(r,t,{name:"annotations",handleItemDefaults:QTe,fullLayout:a.fullLayout})};function QTe(e,r,t,a){function n(l,s){return M8.coerce(e,r,KTe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],ZTe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(JTe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),M8.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),M8.noneOrAll(e,r,["ax","ay"])))}});var bV=z((RJe,gV)=>{"use strict";var mV=ke(),yV=Yr();gV.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)eMe(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function eMe(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={},mV.extendFlat(e._xa,i),yV.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={},mV.extendFlat(e._ya,i),yV.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 _V=z((FJe,xV)=>{"use strict";function k8(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 rMe(e,r){var t=k8(e.projection,k8(e.view,k8(e.model,[r[0],r[1],r[2],1])));return t}xV.exports=rMe});var AV=z((zJe,wV)=>{"use strict";var tMe=kg().drawRaw,aMe=_V(),nMe=["x","y","z"];wV.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i<n.length;i++){for(var o=n[i],l=!1,s=0;s<3;s++){var u=nMe[s],f=o[u],c=t[u+"axis"],v=c.r2fraction(f);if(v<0||v>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=aMe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),tMe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var kV=z((NJe,MV)=>{"use strict";var iMe=Tr(),TV=ke();MV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sg()}}},layoutAttributes:Sg(),handleDefaults:pV(),includeBasePlot:oMe,convert:bV(),draw:AV()};function oMe(e,r){var t=iMe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];a.test(o)&&(e[o].annotations||[]).length&&(TV.pushUnique(r._basePlotModules,t),TV.pushUnique(r._subplots.gl3d,o))}}});var S8=z((OJe,CV)=>{"use strict";var IJe=(Pa(),ze(Ea)),SV=Ca(),qV=Ji().line,lMe=Bi().dash,Ho=Mt().extendFlat,sMe=Ct().templatedArray,BJe=(xd(),ze(bd)),R0=On(),LV=w0(),{shapeTexttemplateAttrs:uMe,templatefallbackAttrs:fMe}=di(),cMe=Sp();CV.exports=sMe("shape",{visible:Ho({},R0.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ho({},R0.legend,{editType:"calc+arraydraw"}),legendgroup:Ho({},R0.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ho({},R0.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:SV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ho({},R0.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ho({},R0.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:Ho({},LV.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:Ho({},LV.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:Ho({},qV.color,{editType:"arraydraw"}),width:Ho({},qV.width,{editType:"calc+arraydraw"}),dash:Ho({},lMe,{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:uMe({},{keys:Object.keys(cMe)}),texttemplatefallback:fMe({editType:"arraydraw"}),font:SV({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 EV=z((HJe,DV)=>{"use strict";var F0=ke(),ki=Yr(),vMe=Po(),hMe=S8(),jd=Vs();DV.exports=function(r,t){vMe(r,t,{name:"shapes",handleItemDefaults:pMe})};function dMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function pMe(e,r,t){function a(w,x){return F0.coerce(e,r,hMe,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"),F0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",_=w==="x"?c:v,k={_fullLayout:t},T,q,C,E;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let N=jd.countDefiningCoords(s,o,w);E=ki.coerceRefArray(e,r,k,w,void 0,"paper",N),r["_"+w+"refArray"]=!0}else E=ki.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(N){ki.getRefType(N)==="range"&&(T=ki.getFromId(k,N),T&&T._shapeIndices.indexOf(r._index)===-1&&T._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(N){let I=E[N];ki.getRefType(I)==="range"?(T=ki.getFromId(k,I),q=jd.shapePositionToRange(T),C=jd.rangeToShapePosition(T),(T.type==="category"||T.type==="multicategory")&&a(w+N+"shift")):q=C=F0.identity;let U=w+N,Y=e[U];if(e[U]=q(e[U],!0),_==="pixel"?a(U,p[N]):ki.coercePosition(r,k,a,I,U,d[N]),r[U]=C(r[U]),e[U]=Y,N===0&&_==="pixel"){let G=e[x];e[x]=q(e[x],!0),ki.coercePosition(r,k,a,I,x,.25),r[x]=C(r[x]),e[x]=G}});else{if(ki.getRefType(E)==="range"?(T=ki.getFromId(k,E),T._shapeIndices.push(r._index),C=jd.rangeToShapePosition(T),q=jd.shapePositionToRange(T),u&&(T.type==="category"||T.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=C=F0.identity,u){let I=w+"0",O=w+"1",U=e[I],Y=e[O];e[I]=q(e[I],!0),e[O]=q(e[O],!0),_==="pixel"?(a(I,p[0]),a(O,p[1])):(ki.coercePosition(r,k,a,E,I,d[0]),ki.coercePosition(r,k,a,E,O,d[1])),r[I]=C(r[I]),r[O]=C(r[O]),e[I]=U,e[O]=Y}if(_==="pixel"){let I=e[x];e[x]=q(e[x],!0),ki.coercePosition(r,k,a,E,x,.25),r[x]=C(r[x]),e[x]=I}}}),u&&F0.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=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",dMe(y,A)),a("label.padding"),F0.coerceFont(a,"label.font",t.font)}}});var FV=z((UJe,RV)=>{"use strict";var mMe=qr(),PV=ke();function yMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}RV.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"),PV.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",mMe.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",yMe(o,u)),a("newshape.label.padding"),PV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var UV=z((GJe,HV)=>{"use strict";var q8=ke(),oo=Yr(),Al=(ed(),ze(Qh)),L8=Vs();HV.exports=function(r){var t=r._fullLayout,a=q8.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n<a.length;n++){var i=a[n];i._extremes={};var o,l,s=oo.getRefType(i.xref),u=oo.getRefType(i.yref);if(s==="array"){let f=zV(r,i,"x");Object.entries(f).forEach(([c,v])=>{o=oo.getFromId(r,c),i._extremes[o._id]=oo.findExtremes(o,v,NV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=oo.getFromId(r,i.xref),l=BV(o,i,Al.paramIsX),l&&(i._extremes[o._id]=oo.findExtremes(o,l,NV(i))));if(u==="array"){let f=zV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=oo.getFromId(r,c),i._extremes[o._id]=oo.findExtremes(o,v,IV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=oo.getFromId(r,i.yref),l=BV(o,i,Al.paramIsY),l&&(i._extremes[o._id]=oo.findExtremes(o,l,IV(i))))}};function zV(e,r,t){let a=r[t+"ref"],n=t==="x"?Al.paramIsX:Al.paramIsY;function i(c,v){c==="paper"||oo.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Al.segmentRE)||[];for(var l=0,s=0;s<c.length;s++){let v=c[s],d=v.charAt(0),p=n[d].drawn;if(p===void 0)continue;let y=v.slice(1).match(Al.paramRE);y&&y.length>p&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=oo.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=L8.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function NV(e){return OV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function IV(e){return OV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function OV(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?L8.extractPathCoords(n,i?Al.paramIsY:Al.paramIsX):[t,a],u=q8.aggNums(Math.max,null,s),f=q8.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function BV(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Al.segmentRE),p,y,m,b,A;for(e.type==="date"&&(u=L8.decodeDate(u)),p=0;p<d.length;p++)y=d[p],m=t[y.charAt(0)].drawn,m!==void 0&&(b=d[p].slice(1).match(Al.paramRE),!(!b||b.length<m)&&(A=u(b[m]),A<c&&(c=A),A>v&&(v=A)));if(v>=c)return[c,v]}}});var VV=z((YJe,YV)=>{"use strict";var GV=hy();YV.exports={moduleType:"component",name:"shapes",layoutAttributes:S8(),supplyLayoutDefaults:EV(),supplyDrawNewShapeDefaults:FV(),includeBasePlot:Td()("shapes"),calcAutorange:UV(),draw:GV.draw,drawOne:GV.drawOne}});var C8=z((jJe,WV)=>{"use strict";var jV=(Pa(),ze(Ea)),gMe=Ct().templatedArray,VJe=(xd(),ze(bd));WV.exports=gMe("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",jV.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",jV.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var ZV=z((WJe,XV)=>{"use strict";var bMe=ke(),D8=Yr(),xMe=Po(),_Me=C8(),wMe="images";XV.exports=function(r,t){var a={name:wMe,handleItemDefaults:AMe};xMe(r,t,a)};function AMe(e,r,t){function a(v,d){return bMe.coerce(e,r,_Me,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=D8.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=D8.getFromId(o,f);c._imgIndices.push(r._index)}D8.coercePosition(r,o,a,f,u,0)}return r}});var QV=z((XJe,KV)=>{"use strict";var $V=Pr(),TMe=Jr(),z0=Yr(),JV=Aa(),MMe=(Vl(),ze(Yl));KV.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l<t.images.length;l++){var s=t.images[l];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){o=JV.ref2id(s.xref)+JV.ref2id(s.yref);var u=t._plots[o];if(!u){i.push(s);continue}u.mainplot&&(o=u.mainplot.id),n[o]||(n[o]=[]),n[o].push(s)}else s.layer==="above"?a.push(s):i.push(s)}var f={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function c(x){var _=$V.select(this);if(this._imgSrc!==x.source)if(_.attr("xmlns",MMe.svg),!r._context.staticPlot||x.source&&x.source.slice(0,5)==="data:")_.attr("xlink:href",x.source),this._imgSrc=x.source;else{var k=new Promise(function(T){var q=new Image;this.img=q,q.setAttribute("crossOrigin","anonymous"),q.onerror=C,q.onload=function(){var E=document.createElement("canvas");E.width=this.width,E.height=this.height;var P=E.getContext("2d",{willReadFrequently:!0});P.drawImage(this,0,0);var R=E.toDataURL("image/png");_.attr("xlink:href",R),T()},_.on("error",C),q.src=x.source,this._imgSrc=x.source;function C(){_.remove(),T()}}.bind(this));r._promises.push(k)}}function v(x){var _=$V.select(this),k=z0.getFromId(r,x.xref),T=z0.getFromId(r,x.yref),q=z0.getRefType(x.xref)==="domain",C=z0.getRefType(x.yref)==="domain",E=t._size,P,R;k!==void 0?P=typeof x.xref=="string"&&q?k._length*x.sizex:Math.abs(k.l2p(x.sizex)-k.l2p(0)):P=x.sizex*E.w,T!==void 0?R=typeof x.yref=="string"&&C?T._length*x.sizey:Math.abs(T.l2p(x.sizey)-T.l2p(0)):R=x.sizey*E.h;var N=P*f.x[x.xanchor].offset,I=R*f.y[x.yanchor].offset,O=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,U,Y;switch(k!==void 0?U=typeof x.xref=="string"&&q?k._length*x.x+k._offset:k.r2p(x.x)+k._offset:U=x.x*E.w+E.l,U+=N,T!==void 0?Y=typeof x.yref=="string"&&C?T._length*(1-x.y)+T._offset:T.r2p(x.y)+T._offset:Y=E.h-x.y*E.h+E.t,Y+=I,x.sizing){case"fill":O+=" slice";break;case"stretch":O="none";break}_.attr({x:U,y:Y,width:P,height:R,preserveAspectRatio:O,opacity:x.opacity});var G=k&&z0.getRefType(x.xref)!=="domain"?k._id:"",V=T&&z0.getRefType(x.yref)!=="domain"?T._id:"",W=G+V;TMe.setClipUrl(_,W?"clip"+t._uid+W:null,r)}function d(x){return[x.xref,x.x,x.sizex,x.yref,x.y,x.sizey].join("_")}function p(x,_){return x._index-_._index}var y=t._imageLowerLayer.selectAll("image").data(i,d),m=t._imageUpperLayer.selectAll("image").data(a,d);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(l=0;l<b.length;l++){o=b[l];var A=t._plots[o];if(A.imagelayer){var w=A.imagelayer.selectAll("image").data(n[o]||[],d);w.enter().append("image"),w.exit().remove(),w.each(function(x){c.bind(this)(x),v.bind(this)(x)}),w.sort(p)}}}});var tj=z((ZJe,rj)=>{"use strict";var ej=Br(),kMe=V1();rj.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c<l.length;c++)if(u=l[c],f="images["+c+"].",u[s+"ref"]===t._id){var v=u[s],d=u["size"+s],p=null,y=null;if(i){p=kMe(v,t.range);var m=d/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,d/2)-Math.pow(10,-d/2));ej(p)?ej(y)||(y=null):(p=null,y=null),n(f+s,p),n(f+"size"+s,y)}}}});var nj=z(($Je,aj)=>{"use strict";aj.exports={moduleType:"component",name:"images",layoutAttributes:C8(),supplyLayoutDefaults:ZV(),includeBasePlot:Td()("images"),draw:QV(),convertCoords:tj()}});var qg={};qt(qg,{activeColor:()=>JMe,arrowOffsetX:()=>XMe,arrowPadX:()=>GMe,arrowSymbol:()=>QMe,autoMarginIdRoot:()=>IMe,blankHeaderOpts:()=>BMe,buttonClassName:()=>RMe,containerClassName:()=>qMe,dropdownButtonClassName:()=>PMe,dropdownButtonGroupClassName:()=>EMe,gapButton:()=>$Me,gapButtonHeader:()=>ZMe,headerArrowClassName:()=>DMe,headerClassName:()=>CMe,headerGroupClassName:()=>LMe,hoverColor:()=>KMe,itemRectClassName:()=>FMe,itemTextClassName:()=>zMe,menuIndexAttrName:()=>NMe,minHeight:()=>HMe,minWidth:()=>OMe,name:()=>SMe,rx:()=>YMe,ry:()=>VMe,textOffsetX:()=>jMe,textOffsetY:()=>WMe,textPadX:()=>UMe});var SMe,qMe,LMe,CMe,DMe,EMe,PMe,RMe,FMe,zMe,NMe,IMe,BMe,OMe,HMe,UMe,GMe,YMe,VMe,jMe,WMe,XMe,ZMe,$Me,JMe,KMe,QMe,Lg=St(()=>{"use strict";SMe="updatemenus",qMe="updatemenu-container",LMe="updatemenu-header-group",CMe="updatemenu-header",DMe="updatemenu-header-arrow",EMe="updatemenu-dropdown-button-group",PMe="updatemenu-dropdown-button",RMe="updatemenu-button",FMe="updatemenu-item-rect",zMe="updatemenu-item-text",NMe="updatemenu-active-index",IMe="updatemenu-",BMe={label:"  "},OMe=30,HMe=30,UMe=24,GMe=16,YMe=2,VMe=2,jMe=12,WMe=3,XMe=4,ZMe=5,$Me=2,JMe="#F4FAFF",KMe="#F4FAFF",QMe={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var E8=z((JJe,oj)=>{"use strict";var eke=Ca(),rke=Ii(),tke=Mt().extendFlat,ake=qo().overrideAll,nke=qp(),ij=Ct().templatedArray,ike=ij("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}});oj.exports=ake(ij("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:ike,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:tke(nke({editType:"arraydraw"}),{}),font:eke({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:rke.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var fj=z((KJe,uj)=>{"use strict";var Cg=ke(),lj=Po(),sj=E8(),oke=(Lg(),ze(qg)),lke=oke.name,ske=sj.buttons;uj.exports=function(r,t){var a={name:lke,handleItemDefaults:uke};lj(r,t,a)};function uke(e,r,t){function a(o,l){return Cg.coerce(e,r,sj,o,l)}var n=lj(e,r,{name:"buttons",handleItemDefaults:fke}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Cg.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Cg.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function fke(e,r){function t(n,i){return Cg.coerce(e,r,ske,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 hj=z((QJe,vj)=>{"use strict";vj.exports=$t;var Uo=Pr(),cj=qr(),N0=Jr(),Dg=ke();function $t(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})}$t.barWidth=2;$t.barLength=20;$t.barRadius=2;$t.barPad=1;$t.barColor="#808BA4";$t.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=f,A,w,x,_;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(A=l,w=A+m,v?(x=u,_=Math.min(x+b,o),b=_-x):(_=u+b,x=Math.max(_-b,0),b=_-x)):(x=u,_=x+b,d?(w=l+m,A=Math.max(w-m,0),m=w-A):(A=l,w=Math.min(A+m,i),m=w-A)),this._box={l:A,t:x,w:m,h:b};var T=s>m,q=$t.barLength+2*$t.barPad,C=$t.barWidth+2*$t.barPad,E=l,P=u+f;P+C>o&&(P=o-C);var R=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(cj.fill,$t.barColor),T?(this.hbar=R.attr({rx:$t.barRadius,ry:$t.barRadius,x:E,y:P,width:q,height:C}),this._hbarXMin=E+q/2,this._hbarTranslateMax=m-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var N=f>b,I=$t.barWidth+2*$t.barPad,O=$t.barLength+2*$t.barPad,U=l+s,Y=u;U+I>i&&(U=i-I);var G=this.container.selectAll("rect.scrollbar-vertical").data(N?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(cj.fill,$t.barColor),N?(this.vbar=G.attr({rx:$t.barRadius,ry:$t.barRadius,x:U,y:Y,width:I,height:O}),this._vbarYMin=Y+O/2,this._vbarTranslateMax=b-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,W=A-.5,j=N?w+I+.5:w+.5,J=x-.5,te=T?_+C+.5:_+.5,ae=n._topdefs.selectAll("#"+V).data(T||N?[0]:[]);if(ae.exit().remove(),ae.enter().append("clipPath").attr("id",V).append("rect"),T||N?(this._clipRect=ae.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(j)-Math.floor(W),height:Math.ceil(te)-Math.floor(J)}),this.container.call(N0.setClipUrl,V,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.setClipUrl,null),delete this._clipRect),T||N){var se=Uo.behavior.drag().on("dragstart",function(){Uo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var $=Uo.behavior.drag().on("dragstart",function(){Uo.event.sourceEvent.preventDefault(),Uo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call($),N&&this.vbar.on(".drag",null).call($)}this.setTranslate(t,a)};$t.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.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)};$t.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Uo.event.dx),this.vbar&&(t-=Uo.event.dy),this.setTranslate(r,t)};$t.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Uo.event.deltaY),this.vbar&&(t+=Uo.event.deltaY),this.setTranslate(r,t)};$t.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Dg.constrain(Uo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Dg.constrain(Uo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};$t.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Dg.constrain(r||0,0,a),t=Dg.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(N0.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(N0.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(N0.setTranslate,r,t+o*this._vbarTranslateMax)}}});var Aj=z((eKe,wj)=>{"use strict";var I0=Pr(),Wd=ma(),Xd=qr(),B0=Jr(),Si=ke(),Eg=Fa(),cke=Ct().arrayEditor,pj=(on(),ze(nn)).LINE_SPACING,Lr=(Lg(),ze(qg)),vke=hj();wj.exports=function(r){var t=r._fullLayout,a=Si.filterVisible(t[Lr.name]);function n(v){Wd.autoMargin(r,xj(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(){I0.select(this).selectAll("g."+Lr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Lr.headerGroupClassName).data(a,hke);o.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Si.ensureSingle(i,"g",Lr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];bke(r,u)}var f="updatemenus"+t._uid,c=new vke(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(R8)),o.exit().each(function(v){l.call(R8),n(v)}).remove(),o.each(function(v){var d=I0.select(this),p=v.type==="dropdown"?l:null;Wd.manageCommandObserver(r,v,v.buttons,function(y){P8(r,v,v.buttons[y.index],d,p,c,y.index,!0)}),v.type==="dropdown"?(yj(r,d,l,c,v),mj(l,v)&&Zd(r,d,l,c,v)):Zd(r,d,null,null,v)})}};function hke(e){return e._index}function dke(e){return+e.attr(Lr.menuIndexAttrName)==-1}function mj(e,r){return+e.attr(Lr.menuIndexAttrName)===r._index}function P8(e,r,t,a,n,i,o,l){r.active=o,cke(e.layout,Lr.name,r).applyUpdate("active",o),r.type==="buttons"?Zd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(Lr.menuIndexAttrName,"-1"),yj(e,a,n,i,r),l||Zd(e,a,n,i,r))}function yj(e,r,t,a,n){var i=Si.ensureSingle(r,"g",Lr.headerClassName,function(v){v.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||Lr.blankHeaderOpts,u={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:o.headerWidth,height:o.headerHeight};i.call(F8,n,s,e).call(_j,n,u,f);var c=Si.ensureSingle(r,"text",Lr.headerArrowClassName,function(v){v.attr("text-anchor","end").call(B0.font,n.font).text(Lr.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-Lr.arrowOffsetX+n.pad.l,y:o.headerHeight/2+Lr.textOffsetY+n.pad.t}),i.on("click",function(){t.call(R8,String(mj(t,n)?-1:n._index)),Zd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(gj)}),i.on("mouseout",function(){i.call(bj,n)}),B0.setTranslate(r,o.lx,o.ly)}function Zd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!dke(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?Lr.dropdownButtonClassName:Lr.buttonClassName,l=t.selectAll("g."+o).data(Si.filterVisible(i)),s=l.enter().append("g").classed(o,!0),u=l.exit();n.type==="dropdown"?(s.attr("opacity","0").transition().attr("opacity","1"),u.transition().attr("opacity","0").remove()):u.remove();var f=0,c=0,v=n._dims,d=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(d?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};l.each(function(m,b){var A=I0.select(this);A.call(F8,n,m,e).call(_j,n,p),A.on("click",function(){I0.event.defaultPrevented||(m.execute&&(m.args2&&n.active===b?(P8(e,n,m,r,t,a,-1),Wd.executeAPICommand(e,m.method,m.args2)):(P8(e,n,m,r,t,a,b),Wd.executeAPICommand(e,m.method,m.args))),e.emit("plotly_buttonclicked",{menu:n,button:m,active:n.active}))}),A.on("mouseover",function(){A.call(gj)}),A.on("mouseout",function(){A.call(bj,n),l.call(dj,n)})}),l.call(dj,n),d?(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&&(l.size()?pke(e,r,t,a,n,y):mke(a))}function pke(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",s=n._dims,u=n.active,f,c,v;if(l)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 mke(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 F8(e,r,t,a){e.call(yke,r).call(gke,r,t,a)}function yke(e,r){var t=Si.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 gke(e,r,t,a){var n=Si.ensureSingle(e,"text",Lr.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Si.templateString(i,o)),n.call(B0.font,r.font).text(i).call(Eg.convertToTspans,a)}function dj(e,r){var t=r.active;e.each(function(a,n){var i=I0.select(this);n===t&&r.showactive&&i.select("rect."+Lr.itemRectClassName).call(Xd.fill,Lr.activeColor)})}function gj(e){e.select("rect."+Lr.itemRectClassName).call(Xd.fill,Lr.hoverColor)}function bj(e,r){e.select("rect."+Lr.itemRectClassName).call(Xd.fill,r.bgcolor)}function bke(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=B0.tester.selectAll("g."+Lr.dropdownButtonClassName).data(Si.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=I0.select(this);v.call(F8,r,f,e);var d=v.select("."+Lr.itemTextClassName),p=d.node()&&B0.bBox(d.node()).width,y=Math.max(p+Lr.textPadX,Lr.minWidth),m=r.font.size*pj,b=Eg.lineCount(d),A=Math.max(m*b,Lr.minHeight)+Lr.textOffsetY;A=Math.ceil(A),y=Math.ceil(y),t.widths[c]=y,t.heights[c]=A,t.height1=Math.max(t.height1,A),t.width1=Math.max(t.width1,y),n?(t.totalWidth=Math.max(t.totalWidth,y),t.openWidth=t.totalWidth,t.totalHeight+=A+Lr.gapButton,t.openHeight+=A+Lr.gapButton):(t.totalWidth+=y+Lr.gapButton,t.openWidth+=y+Lr.gapButton,t.totalHeight=Math.max(t.totalHeight,A),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,o=t.totalHeight+r.pad.t+r.pad.b,l=e._fullLayout._size;t.lx=l.l+l.w*r.x,t.ly=l.t+l.h*(1-r.y);var s="left";Si.isRightAnchor(r)&&(t.lx-=i,s="right"),Si.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Si.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),Si.isMiddleAnchor(r)&&(t.ly-=o/2,u="middle"),t.totalWidth=Math.ceil(t.totalWidth),t.totalHeight=Math.ceil(t.totalHeight),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),Wd.autoMargin(e,xj(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:o*({top:1,middle:.5}[u]||0),t:o*({bottom:1,middle:.5}[u]||0)})}function xj(e){return Lr.autoMarginIdRoot+e._index}function _j(e,r,t,a){a=a||{};var n=e.select("."+Lr.itemRectClassName),i=e.select("."+Lr.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;B0.setTranslate(e,o+t.x,o+t.y);var u=["up","down"].indexOf(r.direction)!==-1,f=a.height||(u?s.heights[l]:s.height1);n.attr({x:0,y:0,width:a.width||(u?s.width1:s.widths[l]),height:f});var c=r.font.size*pj,v=Eg.lineCount(i),d=(v-1)*c/2;Eg.positionText(i,Lr.textOffsetX,f/2-d+Lr.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function R8(e,r){e.attr(Lr.menuIndexAttrName,r||"-1").selectAll("g."+Lr.dropdownButtonClassName).remove()}});var Mj=z((rKe,Tj)=>{"use strict";var xke=(Lg(),ze(qg));Tj.exports={moduleType:"component",name:xke.name,layoutAttributes:E8(),supplyLayoutDefaults:fj(),draw:Aj()}});var $d={};qt($d,{arrowOffsetX:()=>Oke,autoMarginIdRoot:()=>zke,containerClassName:()=>wke,currentValueClass:()=>Pke,currentValueInset:()=>hSe,currentValuePadding:()=>vSe,gripBgActiveColor:()=>tSe,gripBgColor:()=>rSe,gripBorder:()=>Kke,gripBorderColor:()=>eSe,gripBorderWidth:()=>Qke,gripHeight:()=>Jke,gripRadius:()=>Zke,gripRectClass:()=>Ske,gripWidth:()=>$ke,groupClassName:()=>Ake,inputAreaClass:()=>Tke,inputProxyClass:()=>Lke,labelClass:()=>Eke,labelGroupClass:()=>Dke,labelOffset:()=>nSe,labelPadding:()=>aSe,labelsClass:()=>Cke,menuIndexAttrName:()=>Fke,minHeight:()=>Ike,minWidth:()=>Nke,minorTickColor:()=>fSe,minorTickLength:()=>cSe,minorTickOffset:()=>uSe,name:()=>_ke,railBgColor:()=>jke,railBorder:()=>Gke,railBorderColor:()=>Vke,railBorderWidth:()=>Yke,railHeight:()=>Rke,railInset:()=>Wke,railRadius:()=>Hke,railRectClass:()=>Mke,railTouchRectClass:()=>kke,railWidth:()=>Uke,stepInset:()=>Xke,textPadX:()=>Bke,tickColor:()=>oSe,tickLength:()=>sSe,tickOffset:()=>lSe,tickRectClass:()=>qke,tickWidth:()=>iSe});var _ke,wke,Ake,Tke,Mke,kke,Ske,qke,Lke,Cke,Dke,Eke,Pke,Rke,Fke,zke,Nke,Ike,Bke,Oke,Hke,Uke,Gke,Yke,Vke,jke,Wke,Xke,Zke,$ke,Jke,Kke,Qke,eSe,rSe,tSe,aSe,nSe,iSe,oSe,lSe,sSe,uSe,fSe,cSe,vSe,hSe,Jd=St(()=>{"use strict";_ke="sliders",wke="slider-container",Ake="slider-group",Tke="slider-input-area",Mke="slider-rail-rect",kke="slider-rail-touch-rect",Ske="slider-grip-rect",qke="slider-tick-rect",Lke="slider-input-proxy",Cke="slider-labels",Dke="slider-label-group",Eke="slider-label",Pke="slider-current-value",Rke=5,Fke="slider-active-index",zke="slider-",Nke=30,Ike=30,Bke=40,Oke=4,Hke=2,Uke=5,Gke=4,Yke=1,Vke="#bec8d9",jke="#f8fafc",Wke=8,Xke=10,Zke=10,$ke=20,Jke=20,Kke=20,Qke=1,eSe="#bec8d9",rSe="#f6f8fa",tSe="#dbdde0",aSe=8,nSe=0,iSe=1,oSe="#333",lSe=25,sSe=7,uSe=25,fSe="#333",cSe=4,vSe=8,hSe=0});var z8=z((tKe,qj)=>{"use strict";var kj=Ca(),dSe=qp(),pSe=Mt().extendDeepAll,mSe=qo().overrideAll,ySe=Ah(),Sj=Ct().templatedArray,Cf=(Jd(),ze($d)),gSe=Sj("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}});qj.exports=mSe(Sj("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:gSe,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:pSe(dSe({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:ySe.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:kj({})},font:kj({}),activebgcolor:{valType:"color",dflt:Cf.gripBgActiveColor},bgcolor:{valType:"color",dflt:Cf.railBgColor},bordercolor:{valType:"color",dflt:Cf.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Cf.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Cf.tickLength},tickcolor:{valType:"color",dflt:Cf.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Cf.minorTickLength}}),"arraydraw","from-root")});var Ej=z((aKe,Dj)=>{"use strict";var O0=ke(),Lj=Po(),Cj=z8(),bSe=(Jd(),ze($d)),xSe=bSe.name,_Se=Cj.steps;Dj.exports=function(r,t){Lj(r,t,{name:xSe,handleItemDefaults:wSe})};function wSe(e,r,t){function a(c,v){return O0.coerce(e,r,Cj,c,v)}for(var n=Lj(e,r,{name:"steps",handleItemDefaults:ASe}),i=0,o=0;o<n.length;o++)n[o].visible&&i++;var l;if(i<2?l=r.visible=!1:l=a("visible"),!!l){r._stepCount=i;var s=r._visibleSteps=O0.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),O0.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"),O0.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),O0.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 ASe(e,r){function t(i,o){return O0.coerce(e,r,_Se,i,o)}var a;if(e.method!=="skip"&&!Array.isArray(e.args)?a=r.visible=!1:a=t("visible"),a){t("method"),t("args");var n=t("label","step-"+r._index);t("value",n),t("execute")}}});var Uj=z((nKe,Hj)=>{"use strict";var Go=Pr(),Pg=ma(),Ks=qr(),Yo=Jr(),qi=ke(),TSe=qi.strTranslate,Kd=Fa(),MSe=Ct().arrayEditor,Hr=(Jd(),ze($d)),B8=(on(),ze(nn)),Fj=B8.LINE_SPACING,N8=B8.FROM_TL,I8=B8.FROM_BR;Hj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=kSe(a,r),i=a._infolayer.selectAll("g."+Hr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Pg.autoMargin(r,zj(f))}if(i.exit().each(function(){Go.select(this).selectAll("g."+Hr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Hr.groupClassName).data(n,SSe);l.enter().append("g").classed(Hr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];qSe(r,u)}l.each(function(f){var c=Go.select(this);PSe(f),Pg.manageCommandObserver(r,f,f._visibleSteps,function(v){var d=c.data()[0];d.active!==v.index&&(d._dragging||Ij(r,c,d,v.index,!1,!0))}),LSe(r,Go.select(this),f)})}};function zj(e){return Hr.autoMarginIdRoot+e._index}function kSe(e,r){for(var t=e[Hr.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function SSe(e){return e._index}function qSe(e,r){var t=Yo.tester.selectAll("g."+Hr.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Hr.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var y=Go.select(this),m=Nj(y,{step:p},r),b=m.node();if(b){var A=Yo.bBox(b);n=Math.max(n,A.height),a=Math.max(a,A.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Hr.railWidth,Hr.gripHeight);var o=e._fullLayout._size;i.lx=o.l+o.w*r.x,i.ly=o.t+o.h*(1-r.y),r.lenmode==="fraction"?i.outerLength=Math.round(o.w*r.len):i.outerLength=r.len,i.inputAreaStart=0,i.inputAreaLength=Math.round(i.outerLength-r.pad.l-r.pad.r);var l=i.inputAreaLength-2*Hr.stepInset,s=l/(r._stepCount-1),u=a+Hr.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=Yo.tester.append("g");t.each(function(p){var y=Rg(f,r,p.label),m=y.node()&&Yo.bBox(y.node())||{width:0,height:0},b=Kd.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+Hr.tickOffset+r.ticklen+Hr.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";qi.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),qi.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";qi.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),qi.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 d={y:r.y,b:i.height*I8[v],t:i.height*N8[v]};r.lenmode==="fraction"?(d.l=0,d.xl=r.x-r.len*N8[c],d.r=0,d.xr=r.x+r.len*I8[c]):(d.x=r.x,d.l=i.outerLength*N8[c],d.r=i.outerLength*I8[c]),Pg.autoMargin(e,zj(r),d)}function LSe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Rg,t).call(FSe,t).call(DSe,t).call(ESe,t).call(RSe,e,t).call(CSe,e,t);var a=t._dims;Yo.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(Oj,t,!1),r.call(Rg,t)}function Rg(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Hr.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Hr.currentValueInset,i="left"}var o=qi.ensureSingle(e,"text",Hr.labelClass,function(v){v.attr({"text-anchor":i,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var s=r.steps[r.active].label,u=r._gd._fullLayout._meta;u&&(s=qi.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Yo.font,r.currentvalue.font).text(l).call(Kd.convertToTspans,r._gd);var f=Kd.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*Fj;return Kd.positionText(o,n,c),o}}function CSe(e,r,t){var a=qi.ensureSingle(e,"rect",Hr.gripRectClass,function(n){n.call(Bj,r,e,t).style("pointer-events","all")});a.attr({width:Hr.gripWidth,height:Hr.gripHeight,rx:Hr.gripRadius,ry:Hr.gripRadius}).call(Ks.stroke,t.bordercolor).call(Ks.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function Nj(e,r,t){var a=qi.ensureSingle(e,"text",Hr.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=qi.templateString(n,i)),a.call(Yo.font,t.font).text(n).call(Kd.convertToTspans,t._gd),a}function DSe(e,r){var t=qi.ensureSingle(e,"g",Hr.labelsClass),a=r._dims,n=t.selectAll("g."+Hr.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Hr.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=Go.select(this);o.call(Nj,i,r),Yo.setTranslate(o,O8(r,i.fraction),Hr.tickOffset+r.ticklen+r.font.size*Fj+Hr.labelOffset+a.currentValueTotalHeight)})}function Pj(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&Ij(e,r,t,o,!0,n)}function Ij(e,r,t,a,n,i){var o=t.active;t.active=a,MSe(e.layout,Hr.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(Oj,t,i),r.call(Rg,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:n,previousActive:o}),l&&l.method&&n&&(r._nextMethod?(r._nextMethod.step=l,r._nextMethod.doCallback=n,r._nextMethod.doTransition=i):(r._nextMethod={step:l,doCallback:n,doTransition:i},r._nextMethodRaf=window.requestAnimationFrame(function(){var s=r._nextMethod.step;s.method&&(s.execute&&Pg.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function Bj(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=Go.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+Hr.gripRectClass);Go.event.stopPropagation(),Go.event.preventDefault(),s.call(Ks.fill,l.activebgcolor);var u=Rj(l,Go.mouse(a)[0]);Pj(r,t,l,u,!0),l._dragging=!0;function f(){var v=i(),d=Rj(v,Go.mouse(a)[0]);Pj(r,t,v,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var v=i();v._dragging=!1,s.call(Ks.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",o),e.on("touchstart",o)}function ESe(e,r){var t=e.selectAll("rect."+Hr.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Hr.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(n,i){var o=i%a.labelStride===0,l=Go.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(Ks.fill,r.tickcolor),Yo.setTranslate(l,O8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Hr.tickOffset:Hr.minorTickOffset)+a.currentValueTotalHeight)})}function PSe(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 Oj(e,r,t){for(var a=e.select("rect."+Hr.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=O8(r,n/(r._stepCount-1));if(!r._invokingCommand){var l=a;t&&r.transition.duration>0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",TSe(o-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function O8(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function Rj(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function RSe(e,r,t){var a=t._dims,n=qi.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(Bj,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Hr.tickOffset+t.ticklen+a.labelHeight)}).call(Ks.fill,t.bgcolor).attr("opacity",0),Yo.setTranslate(n,0,a.currentValueTotalHeight)}function FSe(e,r){var t=r._dims,a=t.inputAreaLength-Hr.railInset*2,n=qi.ensureSingle(e,"rect",Hr.railRectClass);n.attr({width:a,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(Ks.stroke,r.bordercolor).call(Ks.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Yo.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var Yj=z((iKe,Gj)=>{"use strict";var zSe=(Jd(),ze($d));Gj.exports={moduleType:"component",name:zSe.name,layoutAttributes:z8(),supplyLayoutDefaults:Ej(),draw:Uj()}});var Fg=z((oKe,jj)=>{"use strict";var Vj=Ii();jj.exports={bgcolor:{valType:"color",dflt:Vj.background,editType:"plot"},bordercolor:{valType:"color",dflt:Vj.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 H8=z((lKe,Wj)=>{"use strict";Wj.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 zg={};qt(zg,{bgClassName:()=>BSe,containerClassName:()=>ISe,extraPad:()=>sqe,grabAreaCursor:()=>aqe,grabAreaFill:()=>tqe,grabAreaMaxClassName:()=>XSe,grabAreaMinClassName:()=>VSe,grabAreaWidth:()=>nqe,grabberMaxClassName:()=>WSe,grabberMinClassName:()=>YSe,handleMaxClassName:()=>ZSe,handleMinClassName:()=>jSe,handleRadius:()=>oqe,handleStrokeWidth:()=>lqe,handleWidth:()=>iqe,maskColor:()=>KSe,maskMaxClassName:()=>USe,maskMaxOppAxisClassName:()=>JSe,maskMinClassName:()=>HSe,maskMinOppAxisClassName:()=>$Se,maskOppAxisColor:()=>QSe,name:()=>NSe,rangePlotClassName:()=>OSe,slideBoxClassName:()=>GSe,slideBoxCursor:()=>rqe,slideBoxFill:()=>eqe});var NSe,ISe,BSe,OSe,HSe,USe,GSe,YSe,VSe,jSe,WSe,XSe,ZSe,$Se,JSe,KSe,QSe,eqe,rqe,tqe,aqe,nqe,iqe,oqe,lqe,sqe,Ng=St(()=>{"use strict";NSe="rangeslider",ISe="rangeslider-container",BSe="rangeslider-bg",OSe="rangeslider-rangeplot",HSe="rangeslider-mask-min",USe="rangeslider-mask-max",GSe="rangeslider-slidebox",YSe="rangeslider-grabber-min",VSe="rangeslider-grabarea-min",jSe="rangeslider-handle-min",WSe="rangeslider-grabber-max",XSe="rangeslider-grabarea-max",ZSe="rangeslider-handle-max",$Se="rangeslider-mask-min-opp-axis",JSe="rangeslider-mask-max-opp-axis",KSe="rgba(0,0,0,0.4)",QSe="rgba(0,0,0,0.2)",eqe="transparent",rqe="ew-resize",tqe="transparent",aqe="col-resize",nqe=10,iqe=4,oqe=1,lqe=1,sqe=15});var $j=z(Bg=>{"use strict";var uqe=Aa(),fqe=Fa(),Xj=(Ng(),ze(zg)),cqe=(on(),ze(nn)).LINE_SPACING,Ig=Xj.name;function Zj(e){var r=e&&e[Ig];return r&&r.visible}Bg.isVisible=Zj;Bg.makeData=function(e){for(var r=uqe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(Zj(i)){a.push(i);var o=i[Ig];o._id=Ig+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};Bg.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[Ig],n=r._id.charAt(0),i=0,o=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==t._dfltTitle[n])){o=1.5*r.title.font.size+10+a._offsetShift;var l=(r.title.text.match(fqe.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*cqe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:Xj.extraPad+a._offsetShift*2}}});var eW=z((uKe,Qj)=>{"use strict";var Og=ke(),Jj=Ct(),Kj=Aa(),vqe=Fg(),hqe=H8();Qj.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Og.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=Jj.newContainer(i,"rangeslider");function s(_,k){return Og.coerce(o,l,vqe,_,k)}var u,f;function c(_,k){return Og.coerce(u,f,hqe,_,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(_){return _.slice(0,Math.max(0,_.indexOf("y")))===Kj.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),y=Og.simpleMap(p,Kj.id2name),m=0;m<y.length;m++){var b=y[m];u=o[b]||{},f=Jj.newContainer(l,b,"yaxis");var A=t[b],w;u.range&&A.isValidRange(u.range)&&(w="fixed");var x=c("rangemode",w);x!=="match"&&c("range",A.range.slice())}l._input=o}}});var tW=z((fKe,rW)=>{"use strict";var dqe=Aa().list,pqe=Bh().getAutoRange,mqe=(Ng(),ze(zg));rW.exports=function(r){for(var t=dqe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[mqe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=pqe(r,n))}}});var oW=z((cKe,iW)=>{"use strict";var Hg=Pr(),yqe=Tr(),gqe=ma(),ua=ke(),Ug=ua.strTranslate,nW=Jr(),Qs=qr(),bqe=n0(),xqe=io(),U8=Aa(),_qe=Vi(),wqe=Os(),Wr=(Ng(),ze(zg));iW.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Wr.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+Wr.containerClassName).data(t,i);o.exit().each(function(l){var s=l[Wr.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(Wr.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=Hg.select(this),u=l[Wr.name],f=r[U8.id2name(l.anchor)],c=u[U8.id2name(l.anchor)];if(u.range){var v=ua.simpleMap(u.range,l.r2l),d=ua.simpleMap(l.range,l.r2l),p;d[0]<d[1]?p=[Math.min(v[0],d[0]),Math.max(v[1],d[1])]:p=[Math.max(v[0],d[0]),Math.min(v[1],d[1])],u.range=u._input.range=ua.simpleMap(p,l.l2r)}l.cleanRange("rangeslider.range");var y=r._size,m=l.domain;u._width=y.w*(m[1]-m[0]);var b=Math.round(y.l+y.w*m[0]),A=Math.round(y.t+y.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+Wr.extraPad);s.attr("transform",Ug(b,A)),u._rl=ua.simpleMap(u.range,l.r2l);var w=u._rl[0],x=u._rl[1],_=x-w;if(u.p2d=function(O){return O/u._width*_+w},u.d2p=function(O){return(O-w)/_*u._width},l.rangebreaks){var k=l.locateBreaks(w,x);if(k.length){var T,q,C=0;for(T=0;T<k.length;T++)q=k[T],C+=q.max-q.min;var E=u._width/(x-w-C),P=[-E*w];for(T=0;T<k.length;T++)q=k[T],P.push(P[P.length-1]-E*(q.max-q.min));for(u.d2p=function(O){for(var U=P[0],Y=0;Y<k.length;Y++){var G=k[Y];if(O>=G.max)U=P[Y+1];else if(O<G.min)break}return U+E*O},T=0;T<k.length;T++)q=k[T],q.pmin=u.d2p(q.min),q.pmax=u.d2p(q.max);u.p2d=function(O){for(var U=P[0],Y=0;Y<k.length;Y++){var G=k[Y];if(O>=G.pmax)U=P[Y+1];else if(O<G.pmin)break}return(O-U)/E}}}if(c.rangemode!=="match"){var R=f.r2l(c.range[0]),N=f.r2l(c.range[1]),I=N-R;u.d2pOppAxis=function(O){return(O-R)/I*u._height}}s.call(kqe,e,l,u).call(Sqe,e,l,u).call(qqe,e,l,u).call(Cqe,e,l,u,c).call(Dqe,e,l,u).call(Eqe,e,l,u),Aqe(s,e,l,u),Mqe(s,e,l,u,f,c),l.side==="bottom"&&bqe.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:A+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function aW(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function Aqe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Wr.slideBoxClassName).node(),i=e.select("rect."+Wr.grabAreaMinClassName).node(),o=e.select("rect."+Wr.grabAreaMaxClassName).node();function l(){var s=Hg.event,u=s.target,f=aW(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=_qe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var A=aW(b),w=+A-f,x,_,k;switch(u){case n:if(k="ew-resize",v+w>t._length||d+w<0)return;x=v+w,_=d+w;break;case i:if(k="col-resize",v+w>t._length)return;x=v+w,_=d;break;case o:if(k="col-resize",d+w<0)return;x=v,_=d+w;break;default:k="ew-resize",x=c,_=c+w;break}if(_<x){var T=_;_=x,x=T}a._pixelMin=x,a._pixelMax=_,wqe(Hg.select(p),k),Tqe(e,r,t,a)}function m(){p.removeEventListener("mousemove",y),p.removeEventListener("mouseup",m),this.removeEventListener("touchmove",y),this.removeEventListener("touchend",m),ua.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function Tqe(e,r,t,a){function n(l){return t.l2r(ua.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){yqe.call("_guiRelayout",r,t._name+".range",[i,o])})}function Mqe(e,r,t,a,n,i){var o=Wr.handleWidth/2;function l(b){return ua.constrain(b,0,a._width)}function s(b){return ua.constrain(b,0,a._height)}function u(b){return ua.constrain(b,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+Wr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Wr.maskMinClassName).attr("width",f),e.select("rect."+Wr.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var v=a._height-s(a.d2pOppAxis(n._rl[1])),d=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Wr.maskMinOppAxisClassName).attr("x",f).attr("height",v).attr("width",c-f),e.select("rect."+Wr.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+Wr.slideBoxClassName).attr("y",v).attr("height",d-v)}var p=.5,y=Math.round(u(f-o))-p,m=Math.round(u(c-o))+p;e.select("g."+Wr.grabberMinClassName).attr("transform",Ug(y,p)),e.select("g."+Wr.grabberMaxClassName).attr("transform",Ug(m,p))}function kqe(e,r,t,a){var n=ua.ensureSingle(e,"rect",Wr.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=nW.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:Ug(o,o),"stroke-width":l}).call(Qs.stroke,a.bordercolor).call(Qs.fill,a.bgcolor)}function Sqe(e,r,t,a){var n=r._fullLayout,i=ua.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function qqe(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Wr.rangePlotClassName).data(t._subplotsWith,ua.identity);i.enter().append("g").attr("class",function(l){return Wr.rangePlotClassName+" "+l}).call(nW.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=Hg.select(this),f=s===0,c=U8.getFromId(r,l,"y"),v=c._name,d=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:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[v].rangebreaks=c.rangebreaks),gqe.supplyDefaults(p);var y=p._fullLayout.xaxis,m=p._fullLayout[v];y.clearCalc(),y.setScale(),m.clearCalc(),m.setScale();var b={id:l,plotgroup:u,xaxis:y,yaxis:m,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),xqe.rangePlot(r,b,Lqe(n,l))})}function Lqe(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 Cqe(e,r,t,a,n){var i=ua.ensureSingle(e,"rect",Wr.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(Qs.fill,Wr.maskColor);var o=ua.ensureSingle(e,"rect",Wr.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(Qs.fill,Wr.maskColor),n.rangemode!=="match"){var l=ua.ensureSingle(e,"rect",Wr.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(Qs.fill,Wr.maskOppAxisColor);var s=ua.ensureSingle(e,"rect",Wr.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",Wr.maskOppBorder).call(Qs.fill,Wr.maskOppAxisColor)}}function Dqe(e,r,t,a){if(!r._context.staticPlot){var n=ua.ensureSingle(e,"rect",Wr.slideBoxClassName,function(i){i.attr({y:0,cursor:Wr.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Wr.slideBoxFill})}}function Eqe(e,r,t,a){var n=ua.ensureSingle(e,"g",Wr.grabberMinClassName),i=ua.ensureSingle(e,"g",Wr.grabberMaxClassName),o={x:0,width:Wr.handleWidth,rx:Wr.handleRadius,fill:Qs.background,stroke:Qs.defaultLine,"stroke-width":Wr.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=ua.ensureSingle(n,"rect",Wr.handleMinClassName,function(d){d.attr(o)});s.attr(l);var u=ua.ensureSingle(i,"rect",Wr.handleMaxClassName,function(d){d.attr(o)});u.attr(l);var f={width:Wr.grabAreaWidth,x:0,y:0,fill:Wr.grabAreaFill,cursor:r._context.staticPlot?void 0:Wr.grabAreaCursor},c=ua.ensureSingle(n,"rect",Wr.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var v=ua.ensureSingle(i,"rect",Wr.grabAreaMaxClassName,function(d){d.attr(f)});v.attr("height",a._height)}});var sW=z((vKe,lW)=>{"use strict";var Pqe=ke(),Rqe=Fg(),Fqe=H8(),G8=$j();lW.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Pqe.extendFlat({},Rqe,{yaxis:Fqe})}}},layoutAttributes:Fg(),handleDefaults:eW(),calcAutorange:tW(),draw:oW(),isVisible:G8.isVisible,makeData:G8.makeData,autoMarginOpts:G8.autoMarginOpts}});var Gg=z((hKe,fW)=>{"use strict";var zqe=Ca(),uW=Ii(),Nqe=Ct().templatedArray,Iqe=Nqe("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"});fW.exports={visible:{valType:"boolean",editType:"plot"},buttons:Iqe,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:zqe({editType:"plot"}),bgcolor:{valType:"color",dflt:uW.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:uW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Y8={};qt(Y8,{darkAmount:()=>Yqe,lightAmount:()=>Gqe,minButtonWidth:()=>Oqe,rx:()=>Hqe,ry:()=>Uqe,yPad:()=>Bqe});var Bqe,Oqe,Hqe,Uqe,Gqe,Yqe,V8=St(()=>{"use strict";Bqe=.02,Oqe=30,Hqe=3,Uqe=3,Gqe=25,Yqe=10});var hW=z((dKe,vW)=>{"use strict";var Yg=ke(),Vqe=qr(),jqe=Ct(),Wqe=Po(),cW=Gg(),j8=(V8(),ze(Y8));vW.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=jqe.newContainer(t,"rangeselector");function s(d,p){return Yg.coerce(o,l,cW,d,p)}var u=Wqe(o,l,{name:"buttons",handleItemDefaults:Xqe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Zqe(t,a,n);s("x",c[0]),s("y",c[1]),Yg.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Yg.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Vqe.contrast(v,j8.lightAmount,j8.darkAmount)),s("bordercolor"),s("borderwidth")}};function Xqe(e,r,t,a){var n=a.calendar;function i(s,u){return Yg.coerce(e,r,cW.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Zqe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i<a.length;i++){var o=r[a[i]].domain;o&&(n=Math.max(o[1],n))}return[e.domain[0],n+j8.yPad]}});var pW=z((pKe,dW)=>{"use strict";var $qe=u5(),Jqe=ke().titleCase;dW.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Kqe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Kqe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=$qe["utc"+Jqe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var AW=z((mKe,wW)=>{"use strict";var jg=Pr(),Qqe=Tr(),eLe=ma(),mW=qr(),_W=Jr(),rs=ke(),yW=rs.strTranslate,Vg=Fa(),rLe=Aa(),Z8=(on(),ze(nn)),gW=Z8.LINE_SPACING,bW=Z8.FROM_TL,xW=Z8.FROM_BR,X8=(V8(),ze(Y8)),tLe=pW();wW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(aLe(r),nLe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=jg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(rs.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=jg.select(this),c=tLe(o,u);u._isActive=iLe(o,u,c),f.call(W8,l,u),f.call(lLe,l,u,r),f.on("click",function(){r._dragged||Qqe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(W8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(W8,l,u)})}),uLe(r,s,l,o._name,i)})};function aLe(e){for(var r=rLe.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 nLe(e){return e._id}function iLe(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 W8(e,r,t){var a=rs.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:X8.rx,ry:X8.ry}),a.call(mW.stroke,r.bordercolor).call(mW.fill,oLe(r,t)).style("stroke-width",r.borderwidth+"px")}function oLe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function lLe(e,r,t,a){function n(o){Vg.convertToTspans(o,a)}var i=rs.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(_W.font,r.font).text(sLe(t,a._fullLayout._meta)).call(n)}function sLe(e,r){return e.label?r?rs.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function uLe(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=jg.select(this),p=d.select(".selector-text"),y=t.font.size*gW,m=Math.max(y*Vg.lineCount(p),16)+3;o=Math.max(o,m)}),r.each(function(){var d=jg.select(this),p=d.select(".selector-rect"),y=d.select(".selector-text"),m=y.node()&&_W.bBox(y.node()).width,b=t.font.size*gW,A=Vg.lineCount(y),w=Math.max(m+10,X8.minButtonWidth);d.attr("transform",yW(l+i,l)),p.attr({x:0,y:0,width:w,height:o}),Vg.positionText(y,w/2,o/2-(A-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";rs.isRightAnchor(t)&&(u-=i,c="right"),rs.isCenterAnchor(t)&&(u-=i/2,c="center");var v="top";rs.isBottomAnchor(t)&&(f-=o,v="bottom"),rs.isMiddleAnchor(t)&&(f-=o/2,v="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),eLe.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*bW[c],r:i*xW[c],b:o*xW[v],t:o*bW[v]}),n.attr("transform",yW(u,f))}});var MW=z((yKe,TW)=>{"use strict";TW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gg()}}},layoutAttributes:Gg(),handleDefaults:hW(),draw:AW()}});var H0=z($8=>{"use strict";var kW=Mt().extendFlat;$8.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:kW({},t,{}),y:kW({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};$8.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l<o.columns?n=o._domains.x[l]:delete e.domain.column);var s=t("domain.row");s!==void 0&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var u=t("domain.x",n),f=t("domain.y",i);u[0]<u[1]||(e.domain.x=n.slice()),f[0]<f[1]||(e.domain.y=i.slice())}});var DW=z((bKe,CW)=>{"use strict";var fLe=ke(),cLe=(Fc(),ze(_h)).counter,vLe=H0().attributes,SW=(Pa(),ze(Ea)).idRegex,hLe=Ct(),J8={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:[cLe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SW.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:vLe({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 Wg(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 dLe(e,r){var t=e.grid||{},a=Wg(r,t,"x"),n=Wg(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=hLe.newContainer(r,"grid");function v(k,T){return fLe.coerce(t,c,J8,k,T)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",A=i?.2:.1,w=i?.3:.1,x,_;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,_=r._splomGridDflt.yside),c._domains={x:qW("x",v,A,x,p),y:qW("y",v,w,_,d,b)}}function qW(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v<n;v++){var d=u+f*v;s[i?n-1-v:v]=[d,d+c]}return s}function pLe(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,o=t.rows,l=t.columns,s=t.pattern==="independent",u,f,c,v,d,p,y,m=t._axisMap={};if(i){var b=a.subplots||[];p=t.subplots=new Array(o);var A=1;for(u=0;u<o;u++){var w=p[u]=new Array(l),x=b[u]||[];for(f=0;f<l;f++)if(s?(d=A===1?"xy":"x"+A+"y"+A,A++):d=x[f],w[f]="",n.cartesian.indexOf(d)!==-1){if(y=d.indexOf("y"),c=d.slice(0,y),v=d.slice(y),m[c]!==void 0&&m[c]!==f||m[v]!==void 0&&m[v]!==u)continue;w[f]=d,m[c]=f,m[v]=u}}}else{var _=Wg(r,a,"x"),k=Wg(r,a,"y");t.xaxes=LW(_,n.xaxis,l,m,"x"),t.yaxes=LW(k,n.yaxis,o,m,"y")}var T=t._anchors={},q=t.roworder==="top to bottom";for(var C in m){var E=C.charAt(0),P=t[E+"side"],R,N,I;if(P.length<8)T[C]="free";else if(E==="x"){if(P.charAt(0)==="t"===q?(R=0,N=1,I=o):(R=o-1,N=-1,I=-1),i){var O=m[C];for(u=R;u!==I;u+=N)if(d=p[u][O],!!d&&(y=d.indexOf("y"),d.slice(0,y)===C)){T[C]=d.slice(y);break}}else for(u=R;u!==I;u+=N)if(v=t.yaxes[u],n.cartesian.indexOf(C+v)!==-1){T[C]=v;break}}else if(P.charAt(0)==="l"?(R=0,N=1,I=l):(R=l-1,N=-1,I=-1),i){var U=m[C];for(u=R;u!==I;u+=N)if(d=p[U][u],!!d&&(y=d.indexOf("y"),d.slice(y)===C)){T[C]=d.slice(0,y);break}}else for(u=R;u!==I;u+=N)if(c=t.xaxes[u],n.cartesian.indexOf(c+C)!==-1){T[C]=c;break}}}}function LW(e,r,t,a,n){var i=new Array(t),o;function l(s,u){r.indexOf(u)!==-1&&a[u]===void 0?(i[s]=u,a[u]=s):i[s]=""}if(Array.isArray(e))for(o=0;o<t;o++)l(o,e[o]);else for(l(0,n),o=1;o<t;o++)l(o,n+(o+1));return i}CW.exports={moduleType:"component",name:"grid",schema:{layout:{grid:J8}},layoutAttributes:J8,sizeDefaults:dLe,contentDefaults:pLe}});var K8=z((xKe,EW)=>{"use strict";EW.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 FW=z((_Ke,RW)=>{"use strict";var PW=Br(),mLe=Tr(),yLe=ke(),gLe=Ct(),bLe=K8();RW.exports=function(e,r,t,a){var n="error_"+a.axis,i=gLe.newContainer(r,n),o=e[n]||{};function l(p,y){return yLe.coerce(o,i,bLe,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||PW(o.thickness)||PW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",mLe.traceIs(r,"gl3d")?0:4))}}});var Q8=z((wKe,NW)=>{"use strict";NW.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 o=zW(t,r.value),l=zW(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function zW(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 OW=z((AKe,BW)=>{"use strict";var e9=Br(),xLe=Tr(),r9=Yr(),_Le=ke(),wLe=Q8();BW.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&&xLe.traceIs(i,"errorBarsOK")){var o=r9.getFromId(r,i.xaxis),l=r9.getFromId(r,i.yaxis);IW(n,i,o,"x"),IW(n,i,l,"y")}}};function IW(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=wLe(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(e9(t.c2l(c))){var v=l(c,f);if(e9(v[0])&&e9(v[1])){var d=u[a+"s"]=c-v[0],p=u[a+"h"]=c+v[1];o.push(d,p)}}}var y=t._id,m=r._extremes[y],b=r9.findExtremes(t,o,_Le.extendFlat({tozero:m.opts.tozero},{padded:!0}));m.min=m.min.concat(b.min),m.max=m.max.concat(b.max)}}});var GW=z((TKe,UW)=>{"use strict";var HW=Pr(),eu=Br(),ALe=Jr(),TLe=ri();UW.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(A){return A.id});var y=TLe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=HW.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.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),ALe.setClipUrl(m,a.layerClipId,r),m.each(function(A){var w=HW.select(this),x=MLe(A,o,l);if(!(y&&!A.vis)){var _,k=w.select("path.yerror");if(d.visible&&eu(x.x)&&eu(x.yh)&&eu(x.ys)){var T=d.width;_="M"+(x.x-T)+","+x.yh+"h"+2*T+"m-"+T+",0V"+x.ys,x.noYS||(_+="m-"+T+",0h"+2*T),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",_)}else k.remove();var q=w.select("path.xerror");if(v.visible&&eu(x.y)&&eu(x.xh)&&eu(x.xs)){var C=(v.copy_ystyle?d:v).width;_="M"+x.xh+","+(x.y-C)+"v"+2*C+"m0,-"+C+"H"+x.xs,x.noXS||(_+="m0,-"+C+"v"+2*C),i=!q.size(),i?q=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",_)}else q.remove()}})}})};function MLe(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),eu(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),eu(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var jW=z((MKe,VW)=>{"use strict";var kLe=Pr(),YW=qr();VW.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=kLe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(YW.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(YW.stroke,i.color)})}});var ZW=z((kKe,XW)=>{"use strict";var Qd=ke(),WW=qo().overrideAll,e2=K8(),Df={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2)};delete Df.error_x.copy_zstyle;delete Df.error_y.copy_zstyle;delete Df.error_y.copy_ystyle;var r2={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2),error_z:Qd.extendFlat({},e2)};delete r2.error_x.copy_ystyle;delete r2.error_y.copy_ystyle;delete r2.error_z.copy_ystyle;delete r2.error_z.copy_zstyle;XW.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Df,bar:Df,histogram:Df,scatter3d:WW(r2,"calc","nested"),scattergl:WW(Df,"calc","nested")}},supplyDefaults:FW(),calc:OW(),makeComputeError:Q8(),plot:GW(),style:jW(),hoverInfo:SLe};function SLe(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 $W={};qt($W,{cn:()=>qLe});var qLe,JW=St(()=>{"use strict";qLe={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 iX=z((SKe,nX)=>{"use strict";var ru=Pr(),Zg=ma(),KW=Tr(),ts=Yr(),Xg=Vi(),lo=ke(),jo=lo.strTranslate,aX=Mt().extendFlat,t9=Os(),Vo=Jr(),U0=qr(),LLe=n0(),CLe=Fa(),DLe=yi().flipScale,ELe=c8(),PLe=v8(),RLe=Gi(),n9=(on(),ze(nn)),QW=n9.LINE_SPACING,eX=n9.FROM_TL,rX=n9.FROM_BR,Wt=(JW(),ze($W)).cn;function FLe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Wt.colorbar).data(zLe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Wt.colorbar,!0),t.each(function(a){var n=ru.select(this);lo.ensureSingle(n,"rect",Wt.cbbg),lo.ensureSingle(n,"g",Wt.cbfills),lo.ensureSingle(n,"g",Wt.cblines),lo.ensureSingle(n,"g",Wt.cbaxis,function(o){o.classed(Wt.crisp,!0)}),lo.ensureSingle(n,"g",Wt.cbtitleunshift,function(o){o.append("g").classed(Wt.cbtitle,!0)}),lo.ensureSingle(n,"rect",Wt.cboutline);var i=NLe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&ILe(n,a,e)}),t.exit().each(function(a){Zg.autoMargin(e,a._id)}).remove(),t.order()}function zLe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return aX(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 l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?DLe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(o=c[0].trace,!!o._module){var v=o._module.colorbar;if(o.visible===!0&&v)for(var d=Array.isArray(v),p=d?v:[v],y=0;y<p.length;y++){l=p[y];var m=l.container;i=m?o[m]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(d&&m?"-"+m:""),n._traceIndex=o.index,n._propPrefix=(m?m+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var A=r._colorAxes[b];n=s(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},A[0]!=="heatmap"&&(o=A[1],l.calc=o._module.colorbar.calc),u(),a.push(n)}return a}var a9=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],tX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function NLe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,y=r.x,m=a?r.y:1-r.y,b=r.yref==="paper",A=r.xref==="paper",w=t._fullLayout,x=w._size,_=r._fillcolor,k=r._line,T=r.title,q=T.side,C=r._zrange||ru.extent((typeof _=="function"?_:k.color).domain()),E=typeof k.color=="function"?k.color:function(){return k.color},P=typeof _=="function"?_:function(){return _},R=r._levels,N=BLe(t,r,C),I=N.fill,O=N.line,U=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),Y=U/(a?x.w:x.h),G=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),V=G/(a?x.h:x.w),W=A?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,J=Math.round(a?y*W+d:m*j+p),te={center:.5,right:1}[c]||0,ae={top:1,middle:.5}[v]||0,se=a?y-te*Y:m-ae*Y,$=a?m-ae*V:y-te*V,fe=Math.round(a?j*(1-$):W*$);r._lenFrac=V,r._thickFrac=Y,r._uFrac=se,r._vFrac=$;var ie=r._axis=OLe(t,r,C);ie.position=Y+(a?y+d/x.w:m+p/x.h);var ue=["top","bottom"].indexOf(q)!==-1;if(a&&ue&&(ie.title.side=q,ie.titlex=y+d/x.w,ie.titley=$+(T.side==="top"?V-p/x.h:p/x.h)),!a&&!ue&&(ie.title.side=q,ie.titley=m+p/x.h,ie.titlex=$+d/x.w),k.color&&r.tickmode==="auto"){ie.tickmode="linear",ie.tick0=R.start;var ce=R.size,oe=lo.constrain(G/50,4,15)+1,be=(C[1]-C[0])/((r.nticks||oe)*ce);if(be>1){var Re=Math.pow(10,Math.floor(Math.log(be)/Math.LN10));ce*=Re*lo.roundUp(be/Re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ie.tick0=0)}ie.dtick=ce}var ye=a?p/x.h:d/x.w;ie.domain=tX(a9([$,$+V],ye),ye),ie.setScale(),e.attr("transform",jo(Math.round(x.l),Math.round(x.t)));var Ce=e.select("."+Wt.cbtitleunshift).attr("transform",jo(-Math.round(x.l),-Math.round(x.t))),Me=ie.ticklabelposition,Le=ie.title.font.size,De=e.select("."+Wt.cbaxis),Ie,qe=0,Ze=0;function Je(re,xe){var Ye={propContainer:ie,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Wt.cbtitle)},vr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+vr+",."+vr+"-math-group").remove(),LLe.draw(t,re,aX(Ye,xe||{}))}function Xe(){if(a&&ue||!a&&!ue){var re,xe;q==="top"&&(re=d+x.l+W*y,xe=p+x.t+j*(1-$-V)+3+Le*.75),q==="bottom"&&(re=d+x.l+W*y,xe=p+x.t+j*(1-$)-3-Le*.25),q==="right"&&(xe=p+x.t+j*m+3+Le*.75,re=d+x.l+W*$),Je(ie._id+"title",{attributes:{x:re,y:xe,"text-anchor":a?"start":"middle"}})}}function Se(){if(a&&!ue||!a&&ue){var re=ie.position||0,xe=ie._offset+ie._length/2,Ye,vr;if(q==="right")vr=xe,Ye=x.l+W*re+10+Le*(ie.showticklabels?1:.5);else if(Ye=xe,q==="bottom"&&(vr=x.t+j*re+10+(Me.indexOf("inside")===-1?ie.tickfont.size:0)+(ie.ticks!=="inside"&&r.ticklen||0)),q==="top"){var Pe=T.text.split("<br>").length;vr=x.t+j*re+10-U-QW*Le*Pe}Je((a?"h":"v")+ie._id+"title",{avoid:{selection:ru.select(t).selectAll("g."+ie._id+"tick"),side:q,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ye,y:vr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Fe(){if(!a&&!ue||a&&ue){var re=e.select("."+Wt.cbtitle),xe=re.select("text"),Ye=[-s/2,s/2],vr=re.select(".h"+ie._id+"title-math-group").node(),Pe=15.6;xe.node()&&(Pe=parseInt(xe.node().style.fontSize,10)*QW);var me;if(vr?(me=Vo.bBox(vr),Ze=me.width,qe=me.height,qe>Pe&&(Ye[1]-=(qe-Pe)/2)):xe.node()&&!xe.classed(Wt.jsPlaceholder)&&(me=Vo.bBox(xe.node()),Ze=me.width,qe=me.height),a){if(qe){if(qe+=5,q==="top")ie.domain=tX(ie.domain,qe/x.h),Ye[1]*=-1;else{ie.domain=a9(ie.domain,qe/x.h);var Te=CLe.lineCount(xe);Ye[1]+=(1-Te)*Pe}re.attr("transform",jo(Ye[0],Ye[1])),ie.setScale()}}else Ze&&(q==="right"&&(ie.domain=a9(ie.domain,(Ze+Le/2)/x.w)),re.attr("transform",jo(Ye[0],Ye[1])),ie.setScale())}e.selectAll("."+Wt.cbfills+",."+Wt.cblines).attr("transform",a?jo(0,Math.round(x.h*(1-ie.domain[1]))):jo(Math.round(x.w*ie.domain[0]),0)),De.attr("transform",a?jo(0,Math.round(-x.t)):jo(Math.round(-x.l),0));var Ue=e.select("."+Wt.cbfills).selectAll("rect."+Wt.cbfill).attr("style","").data(I);Ue.enter().append("rect").classed(Wt.cbfill,!0).attr("style",""),Ue.exit().remove();var $e=C.map(ie.c2p).map(Math.round).sort(function(sr,Ee){return sr-Ee});Ue.each(function(sr,Ee){var Ke=[Ee===0?C[0]:(I[Ee]+I[Ee-1])/2,Ee===I.length-1?C[1]:(I[Ee]+I[Ee+1])/2].map(ie.c2p).map(Math.round);a&&(Ke[1]=lo.constrain(Ke[1]+(Ke[1]>Ke[0])?1:-1,$e[0],$e[1]));var Be=ru.select(this).attr(a?"x":"y",J).attr(a?"y":"x",ru.min(Ke)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(ru.max(Ke)-ru.min(Ke),2));if(r._fillgradient)Vo.gradient(Be,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var mr=P(sr).replace("e-","");Be.attr("fill",U0.hexString(mr))}});var Oe=e.select("."+Wt.cblines).selectAll("path."+Wt.cbline).data(k.color&&k.width?O:[]);Oe.enter().append("path").classed(Wt.cbline,!0),Oe.exit().remove(),Oe.each(function(sr){var Ee=J,Ke=Math.round(ie.c2p(sr))+k.width/2%1;ru.select(this).attr("d","M"+(a?Ee+","+Ke:Ke+","+Ee)+(a?"h":"v")+U).call(Vo.lineGroupStyle,k.width,E(sr),k.dash)}),De.selectAll("g."+ie._id+"tick,path").remove();var We=J+U+(s||0)/2-(r.ticks==="outside"?1:0),ar=ts.calcTicks(ie),or=ts.getTickSigns(ie)[2];return ts.drawTicks(t,ie,{vals:ie.ticks==="inside"?ts.clipEnds(ie,ar):ar,layer:De,path:ts.makeTickPath(ie,We,or),transFn:ts.makeTransTickFn(ie)}),ts.drawLabels(t,ie,{vals:ar,layer:De,transFn:ts.makeTransTickLabelFn(ie),labelFns:ts.makeLabelFns(ie,We)})}function er(){var re,xe=U+s/2;Me.indexOf("inside")===-1&&(re=Vo.bBox(De.node()),xe+=a?re.width:re.height),Ie=Ce.select("text");var Ye=0,vr=a&&q==="top",Pe=!a&&q==="right",me=0;if(Ie.node()&&!Ie.classed(Wt.jsPlaceholder)){var Te,Ue=Ce.select(".h"+ie._id+"title-math-group").node();Ue&&(a&&ue||!a&&!ue)?(re=Vo.bBox(Ue),Ye=re.width,Te=re.height):(re=Vo.bBox(Ce.node()),Ye=re.right-x.l-(a?J:fe),Te=re.bottom-x.t-(a?fe:J),!a&&q==="top"&&(xe+=re.height,me=re.height)),Pe&&(Ie.attr("transform",jo(Ye/2+Le/2,0)),Ye*=2),xe=Math.max(xe,a?Ye:Te)}var $e=(a?d:p)*2+xe+u+s/2,Oe=0;!a&&T.text&&v==="bottom"&&m<=0&&(Oe=$e/2,$e+=Oe,me+=Oe),w._hColorbarMoveTitle=Oe,w._hColorbarMoveCBTitle=me;var We=u+s,ar=(a?J:fe)-We/2-(a?d:0),or=(a?fe:J)-(a?G:p+me-Oe);e.select("."+Wt.cbbg).attr("x",ar).attr("y",or).attr(a?"width":"height",Math.max($e-Oe,2)).attr(a?"height":"width",Math.max(G+We,2)).call(U0.fill,f).call(U0.stroke,r.bordercolor).style("stroke-width",u);var sr=Pe?Math.max(Ye-10,0):0;e.selectAll("."+Wt.cboutline).attr("x",(a?J:fe+d)+sr).attr("y",(a?fe+p-G:J)+(vr?qe:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(G-(a?2*p+qe:2*d+sr),2)).call(U0.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ee=a?te*$e:0,Ke=a?0:(1-ae)*$e-me;if(Ee=A?x.l-Ee:-Ee,Ke=b?x.t-Ke:-Ke,e.attr("transform",jo(Ee,Ke)),!a&&(u||U0.opacity(f)&&!U0.equals(w.paper_bgcolor,f))){var Be=De.selectAll("text"),mr=Be[0].length,yr=e.select("."+Wt.cbbg).node(),ur=Vo.bBox(yr),gr=Vo.getTranslate(e),ne=2;Be.each(function($a,na){var Ja=0,hn=mr-1;if(na===Ja||na===hn){var fa=Vo.bBox(this),hr=Vo.getTranslate(this),wt;if(na===hn){var Vr=fa.right+hr.x,ht=ur.right+gr.x+fe-u-ne+y;wt=ht-Vr,wt>0&&(wt=0)}else if(na===Ja){var Nt=fa.left+hr.x,kt=ur.left+gr.x+fe+u+ne;wt=kt-Nt,wt<0&&(wt=0)}wt&&(mr<3?this.setAttribute("transform","translate("+wt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ge={},Ne=eX[c],He=rX[c],Kr=eX[v],Qr=rX[v],yt=$e-U;a?(i==="pixels"?(ge.y=m,ge.t=G*Kr,ge.b=G*Qr):(ge.t=ge.b=0,ge.yt=m+n*Kr,ge.yb=m-n*Qr),l==="pixels"?(ge.x=y,ge.l=$e*Ne,ge.r=$e*He):(ge.l=yt*Ne,ge.r=yt*He,ge.xl=y-o*Ne,ge.xr=y+o*He)):(i==="pixels"?(ge.x=y,ge.l=G*Ne,ge.r=G*He):(ge.l=ge.r=0,ge.xl=y+n*Ne,ge.xr=y-n*He),l==="pixels"?(ge.y=1-m,ge.t=$e*Kr,ge.b=$e*Qr):(ge.t=yt*Kr,ge.b=yt*Qr,ge.yt=m-o*Kr,ge.yb=m+o*Qr));var gt=r.y<.5?"b":"t",Et=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var aa={r:w.width-ar-Ee,l:ar+ge.r,b:w.height-or-Ke,t:or+ge.b};A&&b?Zg.autoMargin(t,r._id,ge):A?t._fullLayout._reservedMargin[r._id][gt]=aa[gt]:b||a?t._fullLayout._reservedMargin[r._id][Et]=aa[Et]:t._fullLayout._reservedMargin[r._id][gt]=aa[gt]}return lo.syncOrAsync([Zg.previousPromises,Xe,Fe,Se,Zg.previousPromises,er],t)}function ILe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;Xg.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),t9(e)},moveFn:function(u,f){e.attr("transform",o+jo(u,f)),l=Xg.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Xg.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Xg.getCursor(l,s,r.xanchor,r.yanchor);t9(e,c)},doneFn:function(){if(t9(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?KW.call("_guiRestyle",t,u,r._traceIndex):KW.call("_guiRelayout",t,u)}}})}function BLe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o<c&&n.push(o);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var v=r._filllevels;if(v)for(s=v.end+v.size/100,u=v.size,l=0;l<1e5&&(o=v.start+l*u,!(u>0?o>=s:o<=s));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(d){return d-a.size/2}),i.push(i[i.length-1]+a.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(i=[0]);return a.size<0&&(n.reverse(),i.reverse()),{line:n,fill:i}}function OLe(e,r,t){var a=e._fullLayout,n=r.orientation==="v",i={type:"linear",range:t,tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,labelalias:r.labelalias,ticklabelposition:r.ticklabelposition,ticklabeloverflow:r.ticklabeloverflow,ticklabelstep:r.ticklabelstep,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,exponentformat:r.exponentformat,minexponent:r.minexponent,separatethousands:r.separatethousands,showexponent:r.showexponent,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,title:r.title,showline:!0,anchor:"free",side:n?"right":"bottom",position:1},o=n?"y":"x",l={type:"linear",_id:o+r._id},s={letter:o,font:a.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function u(f,c){return lo.coerce(i,l,RLe,f,c)}return ELe(i,l,u,s,a),PLe(i,l,u,s),l}nX.exports={draw:FLe}});var lX=z((qKe,oX)=>{"use strict";oX.exports={moduleType:"component",name:"colorbar",attributes:tm(),supplyDefaults:e6(),draw:iX().draw,hasColorbar:W4()}});var uX=z((LKe,sX)=>{"use strict";sX.exports={moduleType:"component",name:"legend",layoutAttributes:X6(),supplyLayoutDefaults:$6(),draw:c7(),style:l7()}});var cX=z((CKe,fX)=>{"use strict";fX.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 hX=z((DKe,vX)=>{"use strict";vX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var o9=z((EKe,yX)=>{"use strict";var HLe=Tr(),mX=ke(),i9=mX.extendFlat,dX=mX.extendDeep;function pX(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 ULe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}yX.exports=function(r,t){var a,n=r.data,i=r.layout,o=dX([],n),l=dX({},i,pX(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a<u.length;a++)ULe(u[a])&&(l[u[a]].title={text:""});for(a=0;a<o.length;a++){var f=o[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),HLe.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(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 d=l[c[a]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),i9(d.xaxis,v),i9(d.yaxis,v),i9(d.zaxis,v),d._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var y={gd:p,td:p,layout:l,data:o,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showTips:t.showTips||!1}};return t.setBackground!=="transparent"&&(y.config.setBackground=t.setBackground||"opaque"),y.gd.defaultLayout=pX(t.tileClass),y}});var xX=z((PKe,bX)=>{"use strict";var GLe=Wu().EventEmitter,YLe=Tr(),VLe=ke(),gX=Kl(),jLe=o9(),WLe=Jy(),XLe=Ky();function ZLe(e,r){var t=new GLe,a=jLe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=gX.getDelay(n._fullLayout);setTimeout(function(){var s=WLe(n),u=document.createElement("canvas");u.id=VLe.randstr(),t=XLe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=gX.getRedrawFunc(n);return YLe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}bX.exports=ZLe});var AX=z((RKe,wX)=>{"use strict";var _X=Kl(),$Le={getDelay:_X.getDelay,getRedrawFunc:_X.getRedrawFunc,clone:o9(),toSVG:Jy(),svgToImg:Ky(),toImage:xX(),downloadImage:Cw()};wX.exports=$Le});var MX=z(as=>{"use strict";as.version=Jv().version;US();SP();var JLe=Tr(),t2=as.register=JLe.register,s9=UU(),TX=Object.keys(s9);for($g=0;$g<TX.length;$g++)G0=TX[$g],G0.charAt(0)!=="_"&&(as[G0]=s9[G0]),t2({moduleType:"apiMethod",name:G0,fn:s9[G0]});var G0,$g;t2(HY());t2([vV(),kV(),xl(),VV(),nj(),Mj(),Yj(),sW(),MW(),DW(),ZW(),ll(),lX(),uX(),Un(),N7()]);t2([cX(),hX()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(t2(window.PlotlyLocales),delete window.PlotlyLocales);as.Icons=Km();var Jg=Un(),l9=ma();as.Plots={resize:l9.resize,graphJson:l9.graphJson,sendDataToCloud:l9.sendDataToCloud};as.Fx={hover:Jg.hover,unhover:Jg.unhover,loneHover:Jg.loneHover,loneUnhover:Jg.loneUnhover};as.Snapshot=AX();as.PlotSchema=Xc()});var SX=z((zKe,kX)=>{"use strict";kX.exports=MX()});var Pf=z((NKe,EX)=>{"use strict";var ta=Ji(),qX=Eo().axisHoverFormat,{hovertemplateAttrs:KLe,texttemplateAttrs:QLe,templatefallbackAttrs:LX}=di(),DX=ol(),eCe=Ca(),CX=(Id(),ze(Nd)),rCe=Bi().pattern,Ef=Mt().extendFlat,u9=eCe({editType:"calc",arrayOk:!0,colorEditType:"style"}),tCe=ta.marker,aCe=tCe.line,nCe=Ef({},aCe.width,{dflt:0}),iCe=Ef({width:nCe,editType:"calc"},DX("marker.line")),oCe=Ef({line:iCe,editType:"calc"},DX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:rCe,cornerradius:{valType:"any",editType:"calc"}});EX.exports={x:ta.x,x0:ta.x0,dx:ta.dx,y:ta.y,y0:ta.y0,dy:ta.dy,xperiod:ta.xperiod,yperiod:ta.yperiod,xperiod0:ta.xperiod0,yperiod0:ta.yperiod0,xperiodalignment:ta.xperiodalignment,yperiodalignment:ta.yperiodalignment,xhoverformat:qX("x"),yhoverformat:qX("y"),text:ta.text,texttemplate:QLe({editType:"plot"},{keys:CX.eventDataKeys}),texttemplatefallback:LX({editType:"plot"}),hovertext:ta.hovertext,hovertemplate:KLe({},{keys:CX.eventDataKeys}),hovertemplatefallback:LX(),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:Ef({},u9,{}),insidetextfont:Ef({},u9,{}),outsidetextfont:Ef({},u9,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ef({},ta.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:oCe,offsetgroup:ta.offsetgroup,alignmentgroup:ta.alignmentgroup,selected:{marker:{opacity:ta.selected.marker.opacity,color:ta.selected.marker.color,editType:"style"},textfont:ta.selected.textfont,editType:"style"},unselected:{marker:{opacity:ta.unselected.marker.opacity,color:ta.unselected.marker.color,editType:"style"},textfont:ta.unselected.textfont,editType:"style"},zorder:ta.zorder}});var Kg=z((IKe,PX)=>{"use strict";PX.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 f9=z((BKe,zX)=>{"use strict";var lCe=qr(),RX=yi().hasColorscale,FX=jl(),sCe=ke().coercePattern;zX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=RX(r,"marker");l&&FX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",lCe.defaultLine),RX(r,"marker.line")&&FX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),sCe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Rf=z((OKe,UX)=>{"use strict";var NX=Br(),Y0=ke(),IX=qr(),uCe=Tr(),fCe=Pw(),cCe=T0(),vCe=f9(),hCe=Fd(),BX=Pf(),Qg=Y0.coerceFont;function dCe(e,r,t,a){function n(u,f){return Y0.coerce(e,r,BX,u,f)}var i=fCe(e,r,a,n);if(!i){r.visible=!1;return}cCe(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 o=n("textposition");HX(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),vCe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=uCe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||IX.defaultLine,{axis:"y"}),s(e,r,l||IX.defaultLine,{axis:"x",inherit:"y"}),Y0.coerceSelectionMarkerOpacity(r,n)}function pCe(e,r){var t,a;function n(l,s){return Y0.coerce(a._input,a,BX,l,s)}for(var i=0;i<e.length;i++)if(a=e[i],a.type==="bar"){t=a._input;var o=n("marker.cornerradius",r.barcornerradius);a.marker&&(a.marker.cornerradius=OX(o)),hCe(t,a,r,n,r.barmode)}}function OX(e){if(NX(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&NX(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function HX(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=Qg(a,"textfont",t.font),b=Y0.extendFlat({},m),A=e.textfont&&e.textfont.color,w=!A;if(w&&delete b.color,Qg(a,"insidetextfont",b),v){var x=Y0.extendFlat({},m);w&&delete x.color,Qg(a,"pathbar.textfont",x)}y&&Qg(a,"outsidetextfont",m),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}UX.exports={supplyDefaults:dCe,crossTraceDefaults:pCe,handleText:HX,validateCornerradius:OX}});var c9=z((HKe,GX)=>{"use strict";var mCe=Tr(),yCe=Yr(),gCe=ke(),bCe=Kg(),xCe=Rf().validateCornerradius;GX.exports=function(e,r,t){function a(y,m){return gCe.coerce(e,r,bCe,y,m)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f<t.length;f++){var c=t[f];if(mCe.traceIs(c,"bar")&&c.visible)n=!0;else continue;var v=c.xaxis+c.yaxis;if(u?(l[v]&&(o=!0),l[v]=!0):(v+=c._input.offsetgroup,l.length>0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=yCe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=xCe(p)}});var e3=z((UKe,YX)=>{"use strict";var V0=ke();YX.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;V0.mergeArray(t.text,r,"tx"),V0.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){V0.mergeArray(n.opacity,r,"mo",!0),V0.mergeArray(n.color,r,"mc");var i=n.line;i&&(V0.mergeArray(i.color,r,"mlc"),V0.mergeArrayCastPositive(i.width,r,"mlw"))}}});var $X=z((GKe,ZX)=>{"use strict";var VX=Yr(),jX=k0(),WX=yi().hasColorscale,XX=Kc(),_Ce=e3(),wCe=lg();ZX.exports=function(r,t){var a=VX.getFromId(r,t.xaxis||"x"),n=VX.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=jX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=jX(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p<v;p++)d[p]={p:o[p],s:i[p]},u&&(d[p].orig_p=l[p],d[p][f+"End"]=s.ends[p],d[p][f+"Start"]=s.starts[p]),t.ids&&(d[p].id=String(t.ids[p]));return WX(t,"marker")&&XX(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),WX(t,"marker.line")&&XX(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),_Ce(d,t),wCe(d,t),d}});var a2=z((YKe,KX)=>{"use strict";var ACe=Pr(),TCe=ke();function MCe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=ACe.select(this).select("text");TCe.setTransormAndDisplay(u,s)}})}}function kCe(e,r,t){if(t.uniformtext.mode){var a=JX(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 SCe(e,r){var t=JX(e);r[t]=void 0}function JX(e){return"_"+e+"Text_minsize"}KX.exports={recordMinTextSize:kCe,clearMinTextSize:SCe,resizeText:MCe}});var r3=z(Ff=>{"use strict";var qCe=qr(),LCe=Br(),QX=ke().isArrayOrTypedArray;Ff.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};Ff.coerceNumber=function(e,r,t){if(LCe(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};Ff.coerceColor=function(e,r,t){return qCe.isValid(r)?r:t!==void 0?t:e.dflt};Ff.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ff.getValue=function(e,r){var t;return QX(e)?r<e.length&&(t=e[r]):t=e,t};Ff.getLineWidth=function(e,r){var t=0<r.mlw?r.mlw:QX(e.marker.line.width)?0:e.marker.line.width;return t}});var j0=z((jKe,fZ)=>{"use strict";var n2=Pr(),CCe=qr(),i2=Jr(),eZ=ke(),rZ=Tr(),tZ=a2().resizeText,v9=Pf(),DCe=v9.textfont,ECe=v9.insidetextfont,PCe=v9.outsidetextfont,un=r3();function RCe(e){var r=n2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");tZ(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)&&n2.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=n2.select(this),o=n[0].trace;aZ(i,o,e)}),rZ.getComponentMethod("errorbars","style")(r)}function aZ(e,r,t){i2.pointStyle(e.selectAll("path"),r,t),nZ(e,r,t)}function nZ(e,r,t){e.selectAll("text").each(function(a){var n=n2.select(this),i=eZ.ensureUniformFontSize(t,iZ(n,a,r,t));i2.font(n,i)})}function FCe(e,r,t){var a=r[0].trace;a.selectedpoints?zCe(t,a,e):(aZ(t,a,e),rZ.getComponentMethod("errorbars","style")(t))}function zCe(e,r,t){i2.selectedPointStyle(e.selectAll("path"),r),NCe(e.selectAll("text"),r,t)}function NCe(e,r,t){e.each(function(a){var n=n2.select(this),i;if(a.selected){i=eZ.ensureUniformFontSize(t,iZ(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),i2.font(n,i)}else i2.selectedTextStyle(n,r)})}function iZ(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=uZ(r,t);i=lZ(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=sZ(t,r.i,n));return i}function oZ(e,r,t){return h9(DCe,e.textfont,r,t)}function lZ(e,r,t,a){var n=oZ(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:CCe.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}),h9(ECe,e.insidetextfont,r,n)}function sZ(e,r,t){var a=oZ(e,r,t);return h9(PCe,e.outsidetextfont,r,a)}function h9(e,r,t,a){r=r||{};var n=un.getValue(r.family,t),i=un.getValue(r.size,t),o=un.getValue(r.color,t),l=un.getValue(r.weight,t),s=un.getValue(r.style,t),u=un.getValue(r.variant,t),f=un.getValue(r.textcase,t),c=un.getValue(r.lineposition,t),v=un.getValue(r.shadow,t);return{family:un.coerceString(e.family,n,a.family),size:un.coerceNumber(e.size,i,a.size),color:un.coerceColor(e.color,o,a.color),weight:un.coerceString(e.weight,l,a.weight),style:un.coerceString(e.style,s,a.style),variant:un.coerceString(e.variant,u,a.variant),textcase:un.coerceString(e.variant,f,a.textcase),lineposition:un.coerceString(e.variant,c,a.lineposition),shadow:un.coerceString(e.variant,v,a.shadow)}}function uZ(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}fZ.exports={style:RCe,styleTextPoints:nZ,styleOnSelect:FCe,getInsideTextFont:lZ,getOutsideTextFont:sZ,getBarColor:uZ,resizeText:tZ}});var m9=z((WKe,gZ)=>{"use strict";var t3=Pr(),a3=Br(),Wa=ke(),ICe=Fa(),BCe=qr(),tu=Jr(),OCe=Tr(),n3=Yr().tickText,cZ=a2(),HCe=cZ.recordMinTextSize,UCe=cZ.clearMinTextSize,d9=j0(),W0=r3(),GCe=(Id(),ze(Nd)),vZ=Pf(),YCe=vZ.text,VCe=vZ.textposition,jCe=Ro().appendArrayPointValue,Pn=GCe.TEXTPAD;function WCe(e){return e.id}function XCe(e){if(e.ids)return WCe}function p9(e){return(e>0)-(e<0)}function Wo(e,r){return e<r?1:-1}function ZCe(e,r,t,a){var n=[],i=[],o=a?r:t,l=a?t:r;return n[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),a?[n,i]:[i,n]}function hZ(e,r,t,a){if(!r.uniformtext.mode&&dZ(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 dZ(e){return e&&e.duration>0}function $Ce(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},UCe("bar",s));var f=Wa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=t3.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",b=d.type==="histogram",A=d.type==="bar",w=A||m,x=0;y&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var _=d.orientation==="h",k=dZ(n),T=Wa.ensureSingle(v,"g","points"),q=XCe(d),C=T.selectAll("g.point").data(Wa.identity,q);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var N=t3.select(this),I=ZCe(P,o,l,_),O=I[0][0],U=I[0][1],Y=I[1][0],G=I[1][1],V=(_?U-O:G-Y)===0;V&&w&&W0.getLineWidth(d,P)&&(V=!1),V||(V=!a3(O)||!a3(U)||!a3(Y)||!a3(G)),P.isBlank=V,V&&(_?U=O:G=Y),x&&!V&&(_?(O-=Wo(O,U)*x,U+=Wo(O,U)*x):(Y-=Wo(Y,G)*x,G+=Wo(Y,G)*x));var W,j;if(d.type==="waterfall"){if(!V){var J=d[P.dir].marker;W=J.line.width,j=J.color}}else W=W0.getLineWidth(d,P),j=P.mc||d.marker.color;function te(re){var xe=t3.round(W/2%1,2);return n.gap===0&&n.groupgap===0?t3.round(Math.round(re)-xe,2):re}function ae(re,xe,Ye){return Ye&&re===xe?re:Math.abs(re-xe)>=2?te(re):re>xe?Math.ceil(re):Math.floor(re)}var se=BCe.opacity(j),$=se<1||W>.01?te:ae;e._context.staticPlot||(O=$(O,U,_),U=$(U,O,_),Y=$(Y,G,!_),G=$(G,Y,!_));var fe=_?o.c2p:l.c2p,ie;P.s0>0?ie=P._sMax:P.s0<0?ie=P._sMin:ie=P.s1>0?P._sMax:P._sMin;function ue(re,xe){if(!re)return 0;var Ye=Math.abs(_?G-Y:U-O),vr=Math.abs(_?U-O:G-Y),Pe=$(Math.abs(fe(ie,!0)-fe(0,!0))),me=P.hasB?Math.min(Ye/2,vr/2):Math.min(Ye/2,Pe),Te;if(xe==="%"){var Ue=Math.min(50,re);Te=Ye*(Ue/100)}else Te=re;return $(Math.max(Math.min(Te,me),0))}var ce=A||b?ue(p.cornerradiusvalue,p.cornerradiusform):0,oe,be,Re="M"+O+","+Y+"V"+G+"H"+U+"V"+Y+"Z",ye=0;if(ce&&P.s){var Ce=p9(P.s0)===0||p9(P.s)===p9(P.s0)?P.s1:P.s0;if(ye=$(P.hasB?0:Math.abs(fe(ie,!0)-fe(Ce,!0))),ye<ce){var Me=Wo(O,U),Le=Wo(Y,G),De=Me===-Le?1:0;if(_)if(P.hasB)oe="M"+(O+ce*Me)+","+Y+"A "+ce+","+ce+" 0 0 "+De+" "+O+","+(Y+ce*Le)+"V"+(G-ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me)+","+G+"H"+(U-ce*Me)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le)+"V"+(Y+ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-ce*Me)+","+Y+"Z";else{be=Math.abs(U-O)+ye;var Ie=be<ce?ce-Math.sqrt(be*(2*ce-be)):0,qe=ye>0?Math.sqrt(ye*(2*ce-ye)):0,Ze=Me>0?Math.max:Math.min;oe="M"+O+","+Y+"V"+(G-Ie*Le)+"H"+Ze(U-(ce-ye)*Me,O)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le-qe)+"V"+(Y+ce*Le+qe)+"A "+ce+","+ce+" 0 0 "+De+" "+Ze(U-(ce-ye)*Me,O)+","+(Y+Ie*Le)+"Z"}else if(P.hasB)oe="M"+(O+ce*Me)+","+Y+"A "+ce+","+ce+" 0 0 "+De+" "+O+","+(Y+ce*Le)+"V"+(G-ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me)+","+G+"H"+(U-ce*Me)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le)+"V"+(Y+ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-ce*Me)+","+Y+"Z";else{be=Math.abs(G-Y)+ye;var Je=be<ce?ce-Math.sqrt(be*(2*ce-be)):0,Xe=ye>0?Math.sqrt(ye*(2*ce-ye)):0,Se=Le>0?Math.max:Math.min;oe="M"+(O+Je*Me)+","+Y+"V"+Se(G-(ce-ye)*Le,Y)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me-Xe)+","+G+"H"+(U-ce*Me+Xe)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-Je*Me)+","+Se(G-(ce-ye)*Le,Y)+"V"+Y+"Z"}}else oe=Re}else oe=Re;var Fe=hZ(Wa.ensureSingle(N,"path"),s,n,i);if(Fe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-O)*(G-Y))||V&&e._context.staticPlot?"M0,0Z":oe).call(tu.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var er=tu.makePointStyleFns(d);tu.singlePointStyle(P,Fe,d,er,e)}JCe(e,r,N,c,R,O,U,Y,G,ce,ye,n,i),r.layerClipId&&tu.hideOutsideRangePoint(P,N.select("text"),o,l,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;tu.setClipUrl(v,E?null:r.layerClipId,e)});OCe.getComponentMethod("errorbars","plot")(e,f,r,n)}function JCe(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(Re,ye,Ce){var Me=Wa.ensureSingle(Re,"text").text(ye).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(tu.font,Ce).call(ICe.convertToTspans,e);return Me}var A=a[0].trace,w=A.orientation==="h",x=tDe(a,w,d,p),_=eDe(y,a,n,d,p);m=rDe(A,n);var k=c.mode==="stack"||c.mode==="relative",T=a[n],q=!k||T._outmost,C=T.hasB,E=u&&u-f>Pn;if(!_||m==="none"||(T.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var P=y.font,R=d9.getBarColor(a[n],A),N=d9.getInsideTextFont(A,n,P,R),I=d9.getOutsideTextFont(A,n,P),O=A.insidetextanchor||"end",U=t.datum();w?d.type==="log"&&U.s0<=0&&(d.range[0]<d.range[1]?i=0:i=d._length):p.type==="log"&&U.s0<=0&&(p.range[0]<p.range[1]?l=p._length:l=0);var Y=Math.abs(o-i),G=Math.abs(s-l),V=Y-2*Pn,W=G-2*Pn,j,J,te,ae,se;if(m==="outside"&&!q&&!T.hasB&&(m="inside"),m==="auto")if(q){m="inside",se=Wa.ensureUniformFontSize(e,N),j=b(t,_,se),J=tu.bBox(j.node()),te=J.width,ae=J.height;var $=te>0&&ae>0,fe;E?C?fe=zf(V-2*u,W,te,ae,w)||zf(V,W-2*u,te,ae,w):w?fe=zf(V-(u-f),W,te,ae,w)||zf(V,W-2*(u-f),te,ae,w):fe=zf(V,W-(u-f),te,ae,w)||zf(V-2*(u-f),W,te,ae,w):fe=zf(V,W,te,ae,w),$&&fe?m="inside":(m="outside",j.remove(),j=null)}else m="inside";if(!j){se=Wa.ensureUniformFontSize(e,m==="outside"?I:N),j=b(t,_,se);var ie=j.attr("transform");if(j.attr("transform",""),J=tu.bBox(j.node()),te=J.width,ae=J.height,j.attr("transform",ie),te<=0||ae<=0){j.remove();return}}var ue=A.textangle,ce,oe;m==="outside"?(oe=A.constraintext==="both"||A.constraintext==="outside",ce=QCe(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ue,zeroBarDir:x})):(oe=A.constraintext==="both"||A.constraintext==="inside",ce=yZ(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ue,anchor:O,hasB:C,r:u,overhead:f})),ce.fontSize=se.size,HCe(A.type==="histogram"?"bar":A.type,ce,y),T.transform=ce;var be=hZ(j,y,c,v);Wa.setTransormAndDisplay(be,ce)}function zf(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function pZ(e){return e==="auto"?0:e}function mZ(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 yZ(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,y=i.hasB,m=i.r,b=i.overhead,A=n.width,w=n.height,x=Math.abs(r-e),_=Math.abs(a-t),k=x>2*Pn&&_>2*Pn?Pn:0;x-=2*k,_-=2*k;var T=pZ(s);s==="auto"&&!(A<=x&&w<=_)&&(A>x||w>_)&&(!(A>_||w>x)||A<w!=x<_)&&(T+=90);var q=mZ(n,T),C,E;if(m&&m-b>Pn){var P=KCe(e,r,t,a,q,m,b,o,y);C=P.scale,E=P.pad}else C=1,l&&(C=Math.min(1,x/q.x,_/q.y)),E=0;var R=n.left*p+n.right*d,N=(n.top+n.bottom)/2,I=(e+Pn)*p+(r-Pn)*d,O=(t+a)/2,U=0,Y=0;if(c||f){var G=(o?q.x:q.y)/2;m&&(f||y)&&(k+=E);var V=o?Wo(e,r):Wo(t,a);o?c?(I=e+V*k,U=-V*G):(I=r-V*k,U=V*G):c?(O=t+V*k,Y=-V*G):(O=a-V*k,Y=V*G)}return{textX:R,textY:N,targetX:I,targetY:O,anchorX:U,anchorY:Y,scale:C,rotate:T}}function KCe(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*Pn),f=Math.max(0,Math.abs(a-t)-2*Pn),c=i-Pn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,y,m,b,A,w;return n.y/n.x>=f/(u-d)?A=f/n.y:n.y/n.x<=(f-p)/u?A=u/n.x:!s&&l?(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,A=(-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,A=(-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,A=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),A=Math.min(1,A),l?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*A)/2)*(c-(f-n.y*A)/2)))-o):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*A)/2)*(c-(u-n.x*A)/2)))-o),{scale:A,pad:w}}function QCe(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*Pn?Pn:0:d=c>2*Pn?Pn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=pZ(s),m=mZ(n,y),b=(o?m.x:m.y)/2,A=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,_=(t+a)/2,k=0,T=0,q;return(o?e===r:t===a)&&i.zeroBarDir?q=i.zeroBarDir:q=o?Wo(r,e):Wo(t,a),o?(x=r-q*d,k=q*b):(_=a+q*d,T=-q*b),{textX:A,textY:w,targetX:x,targetY:_,anchorX:k,anchorY:T,scale:p,rotate:y}}function eDe(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=aDe(e,r,t,a,n):i.textinfo?l=nDe(r,t,a,n):l=W0.getValue(i.text,t),W0.coerceString(YCe,l)}function rDe(e,r){var t=W0.getValue(e.textposition,r);return W0.coerceEnumerated(VCe,t)}function tDe(e,r,t,a){for(var n=!1,i=!1,o=0;o<e.length;o++){var l=e[o].s;if(l>0?n=!0:l<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-Wo(s.range[0],s.range[1]);return i?n?0:-u:u}function aDe(e,r,t,a,n){var i=r[0].trace,o=Wa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function y(k){return n3(v,v.c2l(k),!0).text}function m(k){return n3(p,p.c2l(k),!0).text}var b=r[t],A={};A.label=b.p,A.labelLabel=A[c+"Label"]=y(b.p);var w=Wa.castOption(i,b.i,"text");(w===0||w)&&(A.text=w),A.value=b.s,A.valueLabel=A[d+"Label"]=m(b.s);var x={};jCe(x,i,b.i),(l||x.x===void 0)&&(x.x=f?A.value:A.label),(l||x.y===void 0)&&(x.y=f?A.label:A.value),(l||x.xLabel===void 0)&&(x.xLabel=f?A.valueLabel:A.labelLabel),(l||x.yLabel===void 0)&&(x.yLabel=f?A.labelLabel:A.valueLabel),s&&(A.delta=+b.rawS||b.s,A.deltaLabel=m(A.delta),A.final=b.v,A.finalLabel=m(A.final),A.initial=A.final-A.delta,A.initialLabel=m(A.initial)),u&&(A.value=b.s,A.valueLabel=m(A.value),A.percentInitial=b.begR,A.percentInitialLabel=Wa.formatPercent(b.begR),A.percentPrevious=b.difR,A.percentPreviousLabel=Wa.formatPercent(b.difR),A.percentTotal=b.sumR,A.percenTotalLabel=Wa.formatPercent(b.sumR));var _=Wa.castOption(i,b.i,"customdata");return _&&(A.customdata=_),Wa.texttemplateString({data:[x,A,i._meta],fallback:i.texttemplatefallback,labels:A,locale:e._d3locale,template:o})}function nDe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(_){var k=i?a:t;return n3(k,_,!0).text}function u(_){var k=i?t:a;return n3(k,+_,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,y=function(_){return v.indexOf(_)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=Wa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var m=+c.rawS||c.s,b=c.v,A=b-m;y("initial")&&d.push(u(A)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(b))}if(l){y("value")&&d.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=Wa.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Wa.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Wa.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("<br>")}gZ.exports={plot:$Ce,toMoveInsideBar:yZ}});var g9=z((XKe,wZ)=>{"use strict";var o2=Un(),iDe=Tr(),bZ=qr(),oDe=ke().fillText,lDe=r3().getLineWidth,y9=Yr().hoverLabelText,sDe=(jt(),ze(Zt)).BADNUM;function uDe(e,r,t,a,n){var i=xZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=_Z(l,s),iDe.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function xZ(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,y,m,b,A;o.orientation==="h"?(v=t,d=r,p="y",y="x",m=O,b=R):(v=r,d=t,p="x",y="y",b=O,m=R);var w=o[p+"period"],x=s||w;function _($){return T($,-1)}function k($){return T($,1)}function T($,fe){var ie=$.w;return $[p]+fe*ie/2}function q($){return $[p+"End"]-$[p+"Start"]}var C=s?_:w?function($){return $.p-q($)/2}:function($){return Math.min(_($),$.p-l.bardelta/2)},E=s?k:w?function($){return $.p+q($)/2}:function($){return Math.max(k($),$.p+l.bardelta/2)};function P($,fe,ie){return n.finiteRange&&(ie=0),o2.inbox($-v,fe-v,ie+Math.min(1,Math.abs(fe-$)/A)-1)}function R($){return P(C($),E($),f)}function N($){return P(_($),k($),c)}function I($){var fe=$[y];if(u){var ie=Math.abs($.rawS)||0;d>0?fe+=ie:d<0&&(fe-=ie)}return fe}function O($){var fe=d,ie=$.b,ue=I($);return o2.inbox(ie-fe,ue-fe,f+(ue-fe)/(ue-ie)-1)}function U($){var fe=d,ie=$.b,ue=I($);return o2.inbox(ie-fe,ue-fe,c+(ue-fe)/(ue-ie)-1)}var Y=e[p+"a"],G=e[y+"a"];A=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function V($){return(m($)+b($))/2}var W=o2.getDistanceFunction(a,m,b,V);if(o2.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==sDe){x||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},E=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var j=e.index,J=i[j],te=o.base?J.b+J.s:J.s;e[y+"0"]=e[y+"1"]=G.c2p(J[y],!0),e[y+"LabelVal"]=te;var ae=l.extents[l.extents.round(J.p)];e[p+"0"]=Y.c2p(s?C(J):ae[0],!0),e[p+"1"]=Y.c2p(s?E(J):ae[1],!0);var se=J.orig_p!==void 0;return e[p+"LabelVal"]=se?J.orig_p:J.p,e.labelLabel=y9(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=y9(G,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=y9(G,J.b,o[y+"hoverformat"]),e.spikeDistance=(U(J)+N(J))/2,e[p+"Spike"]=Y.c2p(J.p,!0),oDe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function _Z(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=lDe(e,r);if(bZ.opacity(t))return t;if(bZ.opacity(a)&&n)return a}wZ.exports={hoverPoints:uDe,hoverOnBars:xZ,getTraceColor:_Z}});var TZ=z((ZKe,AZ)=>{"use strict";AZ.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 b9=z(($Ke,MZ)=>{"use strict";MZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.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:fDe(c,n,i,s,l);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 fDe(e,r,t,a,n){var i=r.c2p(a?e.s0:e.p0,!0),o=r.c2p(a?e.s1:e.p1,!0),l=t.c2p(a?e.p0:e.s0,!0),s=t.c2p(a?e.p1:e.s1,!0);return n?[(i+o)/2,(l+s)/2]:a?[o,(l+s)/2]:[(i+o)/2,s]}});var SZ=z((JKe,kZ)=>{"use strict";kZ.exports={attributes:Pf(),layoutAttributes:Kg(),supplyDefaults:Rf().supplyDefaults,crossTraceDefaults:Rf().crossTraceDefaults,supplyLayoutDefaults:c9(),calc:$X(),crossTraceCalc:cg().crossTraceCalc,colorbar:Ud(),arraysToCalcdata:e3(),plot:m9().plot,style:j0().style,styleOnSelect:j0().styleOnSelect,hoverPoints:g9().hoverPoints,eventData:TZ(),selectPoints:b9(),moduleType:"trace",name:"bar",basePlotModule:io(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var LZ=z((KKe,qZ)=>{"use strict";qZ.exports=SZ()});var i3=z((QKe,PZ)=>{"use strict";var cDe=Cy(),so=Ji(),CZ=Pf(),vDe=Ii(),DZ=Eo().axisHoverFormat,{hovertemplateAttrs:hDe,templatefallbackAttrs:dDe}=di(),ns=Mt().extendFlat,X0=so.marker,EZ=X0.line;PZ.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:so.xperiod,yperiod:so.yperiod,xperiod0:so.xperiod0,yperiod0:so.yperiod0,xperiodalignment:so.xperiodalignment,yperiodalignment:so.yperiodalignment,xhoverformat:DZ("x"),yhoverformat:DZ("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:ns({},X0.symbol,{arrayOk:!1,editType:"plot"}),opacity:ns({},X0.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ns({},X0.angle,{arrayOk:!1,editType:"calc"}),size:ns({},X0.size,{arrayOk:!1,editType:"calc"}),color:ns({},X0.color,{arrayOk:!1,editType:"style"}),line:{color:ns({},EZ.color,{arrayOk:!1,dflt:vDe.defaultLine,editType:"style"}),width:ns({},EZ.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:cDe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:CZ.offsetgroup,alignmentgroup:CZ.alignmentgroup,selected:{marker:so.selected.marker,editType:"style"},unselected:{marker:so.unselected.marker,editType:"style"},text:ns({},so.text,{}),hovertext:ns({},so.hovertext,{}),hovertemplate:hDe({}),hovertemplatefallback:dDe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:so.zorder}});var o3=z((eQe,RZ)=>{"use strict";RZ.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 s2=z((rQe,IZ)=>{"use strict";var uo=ke(),pDe=Tr(),mDe=qr(),yDe=T0(),gDe=Fd(),FZ=Am(),l2=i3();function bDe(e,r,t,a){function n(p,y){return uo.coerce(e,r,l2,p,y)}if(zZ(e,r,n,a),r.visible!==!1){yDe(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",mDe.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else uo.validate(e.notchwidth,l2.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),NZ(e,r,n,{prefix:"box"}),n("zorder")}}function zZ(e,r,t,a){function n(E){var P=0;return E&&E.length&&(P+=1,uo.isArrayOrTypedArray(E[0])&&E[0].length&&(P+=1)),P}function i(E){return uo.validate(e[E],l2[E])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(uo.minRowLength(u),uo.minRowLength(f),uo.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&uo.minRowLength(o),y=d&&uo.minRowLength(l),m=a.calendar,b={autotypenumbers:a.autotypenumbers},A,w;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var x=i("x0")||i("dx"),_=i("y0")||i("dy");_&&!x?A="h":A="v",w=s;break;case"10":A="v",w=Math.min(s,y);break;case"20":A="h",w=Math.min(s,l.length);break;case"01":A="h",w=Math.min(s,p);break;case"02":A="v",w=Math.min(s,o.length);break;case"12":A="v",w=Math.min(s,y,o.length);break;case"21":A="h",w=Math.min(s,l.length,p);break;case"11":w=0;break;case"22":var k=!1,T;for(T=0;T<l.length;T++)if(FZ(l[T],m,b)==="category"){k=!0;break}if(k)A="v",w=Math.min(s,y,o.length);else{for(T=0;T<o.length;T++)if(FZ(o[T],m,b)==="category"){k=!0;break}k?(A="h",w=Math.min(s,l.length,p)):(A="v",w=Math.min(s,y,o.length))}break}else v>0?(A="v",d>0?w=Math.min(y,p):w=Math.min(p)):d>0?(A="h",w=Math.min(y)):w=0;if(!w){r.visible=!1;return}r._length=w;var q=t("orientation",A);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var C=pDe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function NZ(e,r,t,a){var n=a.prefix,i=uo.coerce2(e,r,l2,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(t("hovertemplate"),t("hovertemplatefallback")),uo.coerceSelectionMarkerOpacity(r,t)}function xDe(e,r){var t,a;function n(s){return uo.coerce(a._input,a,l2,s)}for(var i=0;i<e.length;i++){a=e[i];var o=a.type;if(o==="box"||o==="violin"){t=a._input;var l=r[o+"mode"];l==="group"&&gDe(t,a,r,n,l)}}}IZ.exports={supplyDefaults:bDe,crossTraceDefaults:xDe,handleSampleDefaults:zZ,handlePointsDefaults:NZ}});var x9=z((tQe,OZ)=>{"use strict";var _De=Tr(),wDe=ke(),ADe=o3();function BZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l<t.length;l++){var s=t[l];if(_De.traceIs(s,i)){o=!0;break}}o&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function TDe(e,r,t){function a(n,i){return wDe.coerce(e,r,ADe,n,i)}BZ(e,r,t,a,"box")}OZ.exports={supplyLayoutDefaults:TDe,_supply:BZ}});var A9=z((aQe,ZZ)=>{"use strict";var w9=Br(),l3=Yr(),MDe=k0(),_a=ke(),Li=(jt(),ze(Zt)).BADNUM,is=_a._;ZZ.exports=function(r,t){var a=r._fullLayout,n=l3.getFromId(r,t.xaxis||"x"),i=l3.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var y=kDe(t,d,v,a[l]),m=y[0],b=y[1],A=_a.distinctVals(m,v),w=A.vals,x=A.minDiff/2,_,k,T,q,C,E,P=(t.boxpoints||t.points)==="all"?_a.identity:function(De){return De.v<_.lf||De.v>_.uf};if(t._hasPreCompStats){var R=t[c],N=function(De){return f.d2c((t[De]||[])[s])},I=1/0,O=-1/0;for(s=0;s<t._length;s++){var U=m[s];if(w9(U)){if(_={},_.pos=_[d]=U,p&&b&&(_.orig_p=b[s]),_.q1=N("q1"),_.med=N("median"),_.q3=N("q3"),k=[],R&&_a.isArrayOrTypedArray(R[s]))for(u=0;u<R[s].length;u++)E=f.d2c(R[s][u]),E!==Li&&(C={v:E,i:[s,u]},HZ(C,t,[s,u]),k.push(C));if(_.pts=k.sort(UZ),T=_[c]=k.map(GZ),q=T.length,_.med!==Li&&_.q1!==Li&&_.q3!==Li&&_.med>=_.q1&&_.q3>=_.med){var Y=N("lowerfence");_.lf=Y!==Li&&Y<=_.q1?Y:YZ(_,T,q);var G=N("upperfence");_.uf=G!==Li&&G>=_.q3?G:VZ(_,T,q);var V=N("mean");_.mean=V!==Li?V:q?_a.mean(T,q):(_.q1+_.q3)/2;var W=N("sd");_.sd=V!==Li&&W>=0?W:q?_a.stdev(T,q,_.mean):_.q3-_.q1,_.lo=jZ(_),_.uo=WZ(_);var j=N("notchspan");j=j!==Li&&j>0?j:XZ(_,q),_.ln=_.med-j,_.un=_.med+j;var J=_.lf,te=_.uf;t.boxpoints&&T.length&&(J=Math.min(J,T[0]),te=Math.max(te,T[q-1])),t.notched&&(J=Math.min(J,_.ln),te=Math.max(te,_.un)),_.min=J,_.max=te}else{_a.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+_.q1,"median = "+_.med,"q3 = "+_.q3].join(`
`));var ae;_.med!==Li?ae=_.med:_.q1!==Li?_.q3!==Li?ae=(_.q1+_.q3)/2:ae=_.q1:_.q3!==Li?ae=_.q3:ae=0,_.med=ae,_.q1=_.q3=ae,_.lf=_.uf=ae,_.mean=_.sd=ae,_.ln=_.un=ae,_.min=_.max=ae}I=Math.min(I,_.min),O=Math.max(O,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=l3.findExtremes(f,[I,O],{padded:!0})}else{var se=f.makeCalcdata(t,c),$=SDe(w,x),fe=w.length,ie=qDe(fe);for(s=0;s<t._length;s++)if(E=se[s],!!w9(E)){var ue=_a.findBin(m[s],$);ue>=0&&ue<fe&&(C={v:E,i:s},HZ(C,t,s),ie[ue].push(C))}var ce=1/0,oe=-1/0,be=t.quartilemethod,Re=be==="exclusive",ye=be==="inclusive";for(s=0;s<fe;s++)if(ie[s].length>0){if(_={},_.pos=_[d]=w[s],k=_.pts=ie[s].sort(UZ),T=_[c]=k.map(GZ),q=T.length,_.min=T[0],_.max=T[q-1],_.mean=_a.mean(T,q),_.sd=_a.stdev(T,q,_.mean)*t.sdmultiple,_.med=_a.interp(T,.5),q%2&&(Re||ye)){var Ce,Me;Re?(Ce=T.slice(0,q/2),Me=T.slice(q/2+1)):ye&&(Ce=T.slice(0,q/2+1),Me=T.slice(q/2)),_.q1=_a.interp(Ce,.5),_.q3=_a.interp(Me,.5)}else _.q1=_a.interp(T,.25),_.q3=_a.interp(T,.75);_.lf=YZ(_,T,q),_.uf=VZ(_,T,q),_.lo=jZ(_),_.uo=WZ(_);var Le=XZ(_,q);_.ln=_.med-Le,_.un=_.med+Le,ce=Math.min(ce,_.ln),oe=Math.max(oe,_.un),_.pts2=k.filter(P),o.push(_)}t.notched&&_a.isTypedArray(se)&&(se=Array.from(se)),t._extremes[f._id]=l3.findExtremes(f,t.notched?se.concat([ce,oe]):se,{padded:!0})}return LDe(o,t),o.length>0?(o[0].t={num:a[l],dPos:x,posLetter:d,valLetter:c,labels:{med:is(r,"median:"),min:is(r,"min:"),q1:is(r,"q1:"),q3:is(r,"q3:"),max:is(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?is(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):is(r,"mean:"),lf:is(r,"lower fence:"),uf:is(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function kDe(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=MDe(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||w9(e.name)&&["linear","log"].indexOf(t.type)!==-1||_a.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d<c;d++)v[d]=f;return[v]}function SDe(e,r){for(var t=e.length,a=new Array(t+1),n=0;n<t;n++)a[n]=e[n]-r;return a[t]=e[t-1]+r,a}function qDe(e){for(var r=new Array(e),t=0;t<e;t++)r[t]=[];return r}var _9={text:"tx",hovertext:"htx"};function HZ(e,r,t){for(var a in _9)_a.isArrayOrTypedArray(r[a])&&(Array.isArray(t)?_a.isArrayOrTypedArray(r[a][t[0]])&&(e[_9[a]]=r[a][t[0]][t[1]]):e[_9[a]]=r[a][t])}function LDe(e,r){if(_a.isArrayOrTypedArray(r.selectedpoints))for(var t=0;t<e.length;t++){for(var a=e[t].pts||[],n={},i=0;i<a.length;i++)n[a[i].i]=i;_a.tagSelected(a,r,n)}}function UZ(e,r){return e.v-r.v}function GZ(e){return e.v}function YZ(e,r,t){return t===0?e.q1:Math.min(e.q1,r[Math.min(_a.findBin(2.5*e.q1-1.5*e.q3,r,!0)+1,t-1)])}function VZ(e,r,t){return t===0?e.q3:Math.max(e.q3,r[Math.max(_a.findBin(2.5*e.q3-1.5*e.q1,r),0)])}function jZ(e){return 4*e.q1-3*e.q3}function WZ(e){return 4*e.q3-3*e.q1}function XZ(e,r){return r===0?0:1.57*(e.q3-e.q1)/Math.sqrt(r)}});var T9=z((nQe,QZ)=>{"use strict";var $Z=Yr(),CDe=ke(),DDe=bf().getAxisGroup,JZ=["v","h"];function EDe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i<JZ.length;i++){for(var o=JZ[i],l=o==="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")===o&&v.xaxis===a._id&&v.yaxis===n._id&&s.push(u)}KZ("box",e,s,l)}}function KZ(e,r,t,a){var n=r.calcdata,i=r._fullLayout,o=a._id,l=o.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 d=CDe.distinctVals(c);(a.type==="category"||a.type==="multicategory")&&(d.minDiff=1);var p=d.minDiff/2;$Z.minDtick(a,d.minDiff,d.vals[0],!0);var y=e==="violin"?"_numViolins":"_numBoxes",m=i[y],b=i[e+"mode"]==="group"&&m>1,A=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,_=f[0].t,k=x.width,T=x.side,q,C,E,P;if(k)q=C=P=k/2,E=0;else if(q=p,b){var R=DDe(i,a._id)+x.orientation,N=i._alignmentOpts[R]||{},I=N[x.alignmentgroup]||{},O=Object.keys(I.offsetGroups||{}).length,U=O||m,Y=O?x._offsetIndex:_.num;C=q*A*w/U,E=2*q*(-.5+(Y+.5)/U)*A,P=q*A/U}else C=q*A*w,E=0,P=q;_.dPos=q,_.bPos=E,_.bdPos=C,_.wHover=P;var G,V,W=E+C,j,J,te,ae,se,$,fe=!!k,ie=(x.boxpoints||x.points)&&v>0;if(T==="positive"?(G=q*(k?1:.5),j=W,V=j=E):T==="negative"?(G=j=E,V=q*(k?1:.5),J=W):(G=V=q,j=J=W),ie){var ue=x.pointpos,ce=x.jitter,oe=x.marker.size/2,be=0;ue+ce>=0&&(be=W*(ue+ce),be>G?(fe=!0,se=oe,te=be):be>j&&(se=oe,te=G)),be<=G&&(te=G);var Re=0;ue-ce<=0&&(Re=-W*(ue-ce),Re>V?(fe=!0,$=oe,ae=Re):Re>J&&($=oe,ae=V)),Re<=V&&(ae=V)}else te=G,ae=V;var ye=new Array(f.length);for(u=0;u<f.length;u++)ye[u]=f[u].pos;x._extremes[o]=$Z.findExtremes(a,ye,{padded:fe,vpadminus:ae,vpadplus:te,vpadLinearized:!0,ppadminus:{x:$,y:se}[l],ppadplus:{x:se,y:$}[l]})}}}QZ.exports={crossTraceCalc:EDe,setPositionOffset:KZ}});var M9=z((iQe,n$)=>{"use strict";var Z0=Pr(),Nf=ke(),PDe=Jr(),e$=5,RDe=.01;function FDe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Nf.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Z0.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),r$(s,{pos:v,val:d},c,f,n),t$(s,{x:i,y:o},c,f),a$(s,{pos:v,val:d},c,f)})}function r$(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=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 A=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Nf.identity:[]);A.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),A.exit().remove(),A.each(function(w){if(w.empty)return Z0.select(this).attr("d","M0,0Z");var x=l.c2l(w.pos+u,!0),_=l.l2p(x-m)+c,k=l.l2p(x+b)+c,T=s?(_+k)/2:l.l2p(x)+c,q=t.whiskerwidth,C=s?_*q+(1-q)*T:l.l2p(x-f)+c,E=s?k*q+(1-q)*T:l.l2p(x+f)+c,P=l.l2p(x-m*y)+c,R=l.l2p(x+b*y)+c,N=t.sizemode==="sd",I=o.c2p(N?w.mean-w.sd:w.q1,!0),O=N?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),U=Nf.constrain(N?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(I,O)+1,Math.max(I,O)-1),Y=w.lf===void 0||t.boxpoints===!1||N,G=o.c2p(Y?w.min:w.lf,!0),V=o.c2p(Y?w.max:w.uf,!0),W=o.c2p(w.ln,!0),j=o.c2p(w.un,!0);i?Z0.select(this).attr("d","M"+U+","+P+"V"+R+"M"+I+","+_+"V"+k+(p?"H"+W+"L"+U+","+R+"L"+j+","+k:"")+"H"+O+"V"+_+(p?"H"+j+"L"+U+","+P+"L"+W+","+_:"")+"Z"+(d?"M"+I+","+T+"H"+G+"M"+O+","+T+"H"+V+(v===0?"":"M"+G+","+C+"V"+E+"M"+V+","+C+"V"+E):"")):Z0.select(this).attr("d","M"+P+","+U+"H"+R+"M"+_+","+I+"H"+k+(p?"V"+W+"L"+R+","+U+"L"+k+","+j:"")+"V"+O+"H"+_+(p?"V"+j+"L"+P+","+U+"L"+_+","+W:"")+"Z"+(d?"M"+T+","+I+"V"+G+"M"+T+","+O+"V"+V+(v===0?"":"M"+C+","+G+"H"+E+"M"+C+","+V+"H"+E):""))})}function t$(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Nf.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.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 d,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,b=y*RDe,A=[],w=0,x;if(t.jitter){if(y===0)for(w=1,A=new Array(p.length),d=0;d<p.length;d++)A[d]=1;else for(d=0;d<p.length;d++){var _=Math.max(0,d-e$),k=p[_].v,T=Math.min(p.length-1,d+e$),q=p[T].v;s!=="all"&&(p[d].v<v.lf?q=Math.min(q,v.lf):k=Math.max(k,v.uf));var C=Math.sqrt(b*(T-_)/(q-k+m))||0;C=Nf.constrain(Math.abs(C),0,1),A.push(C),w=Math.max(C,w)}x=t.jitter*2/(w||1)}for(d=0;d<p.length;d++){var E=p[d],P=E.v,R=t.jitter?x*A[d]*(Nf.pseudoRandom()-.5):0,N=v.pos+l+o*(t.pointpos+R);t.orientation==="h"?(E.y=N,E.x=P):(E.x=N,E.y=P),s==="suspectedoutliers"&&P<v.uo&&P>v.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(PDe.translatePoints,n,i)}function a$(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=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?Nf.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=o?(y+m)/2:i.l2p(p)+s,A=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Z0.select(this).attr("d","M"+A+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+A+","+y+"L"+x+","+b+"Z":"")):Z0.select(this).attr("d","M"+y+","+A+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+A+"L"+b+","+x+"Z":""))})}n$.exports={plot:FDe,plotBoxAndWhiskers:r$,plotPoints:t$,plotBoxMean:a$}});var L9=z((oQe,i$)=>{"use strict";var k9=Pr(),S9=qr(),q9=Jr();function zDe(e,r,t){var a=t||k9.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=k9.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(S9.stroke,d).call(S9.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=k9.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(S9.stroke,o.line.color);var f=i.selectAll("path.point");q9.pointStyle(f,o,e)}})}function NDe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?q9.selectedPointStyle(n,a):q9.pointStyle(n,a,e)}i$.exports={style:zDe,styleOnSelect:NDe}});var D9=z((lQe,u$)=>{"use strict";var IDe=Yr(),C9=ke(),au=Un(),o$=qr(),BDe=C9.fillText;function ODe(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(l$(e,r,t,a))),o.indexOf("points")!==-1&&(s=s$(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function l$(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,y,m,b,A,w,x,_=s.bdPos,k,T,q=s.wHover,C=function(oe){return v.c2l(oe.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(A=function(oe){var be=C(oe);return au.inbox(be,be+q,w)},k=_,T=0),l.side==="negative"&&(A=function(oe){var be=C(oe);return au.inbox(be-q,be,w)},k=0,T=_)):(A=function(oe){var be=C(oe);return au.inbox(be-q,be+q,w)},k=T=_);var E;u?E=function(oe){return au.inbox(oe.span[0]-p,oe.span[1]-p,w)}:E=function(oe){return au.inbox(oe.min-p,oe.max-p,w)},l.orientation==="h"?(p=r,y=t,m=E,b=A,f="y",v=o,c="x",d=i):(p=t,y=r,m=A,b=E,f="x",v=i,c="y",d=o);var P=Math.min(1,_/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));w=e.maxHoverDistance-P,x=e.maxSpikeDistance-P;function R(oe){return(m(oe)+b(oe))/2}var N=au.getDistanceFunction(a,m,b,R);if(au.getClosest(n,N,e),e.index===!1)return[];var I=n[e.index],O=l.line.color,U=(l.marker||{}).color;o$.opacity(O)&&l.line.width?e.color=O:o$.opacity(U)&&l.boxpoints?e.color=U:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-T,!0),e[f+"1"]=v.c2p(I.pos+s.bPos+k,!0),e[f+"LabelVal"]=I.orig_p!==void 0?I.orig_p:I.pos;var Y=f+"Spike";e.spikeDistance=R(I)*x/w,e[Y]=v.c2p(I.pos,!0);var G=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,V=l.boxpoints||l.points,W=V&&G?["max","uf","q3","med","mean","q1","lf","min"]:V&&!G?["max","uf","q3","med","q1","lf","min"]:!V&&G?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],j=d.range[1]<d.range[0];l.orientation===(j?"v":"h")&&W.reverse();for(var J=e.spikeDistance,te=e[Y],ae=[],se=0;se<W.length;se++){var $=W[se];if($ in I){var fe=I[$],ie=d.c2p(fe,!0),ue=C9.extendFlat({},e);ue.attr=$,ue[c+"0"]=ue[c+"1"]=ie,ue[c+"LabelVal"]=fe,ue[c+"Label"]=(s.labels?s.labels[$]+" ":"")+IDe.hoverLabelText(d,fe,l[c+"hoverformat"]),ue.hoverOnBox=!0,$==="mean"&&"sd"in I&&(l.boxmean==="sd"||l.sizemode==="sd")&&(ue[c+"err"]=I.sd),ue.hovertemplate=!1,ae.push(ue)}}e.name="",e.spikeDistance=void 0,e[Y]=void 0;for(var ce=0;ce<ae.length;ce++)ae[ce].attr!=="med"?(ae[ce].name="",ae[ce].spikeDistance=void 0,ae[ce][Y]=void 0):(ae[ce].spikeDistance=J,ae[ce][Y]=te);return ae}function s$(e,r,t){for(var a=e.cd,n=e.xa,i=e.ya,o=a[0].trace,l=n.c2p(r),s=i.c2p(t),u,f=function(E){var P=Math.max(3,E.mrc||0);return Math.max(Math.abs(n.c2p(E.x)-l)-P,1-3/P)},c=function(E){var P=Math.max(3,E.mrc||0);return Math.max(Math.abs(i.c2p(E.y)-s)-P,1-3/P)},v=au.quadrature(f,c),d=!1,p,y,m=0;m<a.length;m++){p=a[m];for(var b=0;b<(p.pts||[]).length;b++){y=p.pts[b];var A=v(y);A<=e.distance&&(e.distance=A,d=[m,b])}}if(!d)return!1;p=a[d[0]],y=p.pts[d[1]];var w=n.c2p(y.x,!0),x=i.c2p(y.y,!0),_=y.mrc||1;u=C9.extendFlat({},e,{index:y.i,color:(o.marker||{}).color,name:o.name,x0:w-_,x1:w+_,y0:x-_,y1:x+_,spikeDistance:e.distance,hovertemplate:o.hovertemplate});var k=p.orig_p,T=k!==void 0?k:p.pos,q;o.orientation==="h"?(q=i,u.xLabelVal=y.x,u.yLabelVal=T):(q=n,u.xLabelVal=T,u.yLabelVal=y.y);var C=q._id.charAt(0);return u[C+"Spike"]=q.c2p(p.pos,!0),BDe(y,o,u),u}u$.exports={hoverPoints:ODe,hoverOnBoxes:l$,hoverOnPoints:s$}});var c$=z((sQe,f$)=>{"use strict";f$.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var E9=z((uQe,v$)=>{"use strict";v$.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l<a.length;l++)for(s=0;s<(a[l].pts||[]).length;s++)a[l].pts[s].selected=0;else for(l=0;l<a.length;l++)for(s=0;s<(a[l].pts||[]).length;s++){var u=a[l].pts[s],f=n.c2p(u.x),c=i.c2p(u.y);t.contains([f,c],null,u.i,r)?(o.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0}return o}});var d$=z((fQe,h$)=>{"use strict";h$.exports={attributes:i3(),layoutAttributes:o3(),supplyDefaults:s2().supplyDefaults,crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:x9().supplyLayoutDefaults,calc:A9(),crossTraceCalc:T9().crossTraceCalc,plot:M9().plot,style:L9().style,styleOnSelect:L9().styleOnSelect,hoverPoints:D9().hoverPoints,eventData:c$(),selectPoints:E9(),moduleType:"trace",name:"box",basePlotModule:io(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var m$=z((cQe,p$)=>{"use strict";p$.exports=d$()});var u2=z((vQe,g$)=>{"use strict";var HDe=ol(),{extendFlat:oi}=Mt(),UDe=On(),{axisHoverFormat:P9}=Eo(),GDe=Ca(),{hovertemplateAttrs:YDe,templatefallbackAttrs:y$,texttemplateAttrs:VDe}=di(),Ci=Ji();g$.exports=oi({z:{valType:"data_array",editType:"calc"},x:oi({},Ci.x,{impliedEdits:{xtype:"array"}}),x0:oi({},Ci.x0,{impliedEdits:{xtype:"scaled"}}),dx:oi({},Ci.dx,{impliedEdits:{xtype:"scaled"}}),y:oi({},Ci.y,{impliedEdits:{ytype:"array"}}),y0:oi({},Ci.y0,{impliedEdits:{ytype:"scaled"}}),dy:oi({},Ci.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:oi({},Ci.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:oi({},Ci.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:oi({},Ci.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:oi({},Ci.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:oi({},Ci.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:oi({},Ci.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:P9("x"),yhoverformat:P9("y"),zhoverformat:P9("z",1),hovertemplate:YDe(),hovertemplatefallback:y$(),texttemplate:VDe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:y$({editType:"plot"}),textfont:GDe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:oi({},UDe.showlegend,{dflt:!1}),zorder:Ci.zorder},HDe("",{cLetter:"z",autoColorDflt:!1}))});var R9=z((hQe,x$)=>{"use strict";var jDe=Br(),s3=ke(),WDe=Tr();x$.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(s3.isArray1D(l)){s=a(i),u=a(o);var f=s3.minRowLength(s),c=s3.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=b$(i,a),u=b$(o,a),!XDe(l))return 0;a("transpose"),t._length=null}var v=WDe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function b$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function XDe(e){for(var r=!0,t=!1,a=!1,n,i=0;i<e.length;i++){if(n=e[i],!s3.isArrayOrTypedArray(n)){r=!1;break}n.length>0&&(t=!0);for(var o=0;o<n.length;o++)if(jDe(n[o])){a=!0;break}}return r&&t&&a}});var f2=z((dQe,w$)=>{"use strict";var _$=ke();w$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=_$.extendFlat({},t.font,{color:"auto",size:"auto"});_$.coerceFont(r,"textfont",a)}});var F9=z((pQe,A$)=>{"use strict";A$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var k$=z((mQe,M$)=>{"use strict";var T$=ke(),ZDe=R9(),$De=f2(),JDe=T0(),KDe=F9(),QDe=jl(),eEe=u2();M$.exports=function(r,t,a,n){function i(l,s){return T$.coerce(r,t,eEe,l,s)}var o=ZDe(r,t,i,n);if(!o){t.visible=!1;return}JDe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),$De(i,n),KDe(r,t,i,n),i("hoverongaps"),i("connectgaps",T$.isArray1D(t.z)&&t.zsmooth!==!1),QDe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var z9=z((yQe,S$)=>{"use strict";var $0=Br();S$.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return $0(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return $0(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(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($0(n))if(n=Number(n),$0(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 N9=z((gQe,q$)=>{"use strict";q$.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 I9=z((bQe,L$)=>{"use strict";L$.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 B9=z((xQe,N$)=>{"use strict";var J0=(jt(),ze(Zt)),If=J0.ONEAVGYEAR,C$=J0.ONEAVGMONTH,f3=J0.ONEDAY,D$=J0.ONEHOUR,E$=J0.ONEMIN,P$=J0.ONESEC,R$=Yr().tickIncrement;N$.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(u3(u+l,u+s,n,i),u3(f+l,f+s,n,i)),v=Math.min(u3(u+o,u+l,n,i),u3(f+o,f+l,n,i)),d,p;if(c>v&&v<Math.abs(f-u)/4e3?(d=c,p=!1):(d=Math.min(c,v),p=!0),n.type==="date"&&d>f3){var y=d===If?1:6,m=d===If?"M12":"M1";return function(b,A){var w=n.c2d(b,If,i),x=w.indexOf("-",y);x>0&&(w=w.slice(0,x));var _=n.d2c(w,0,i);if(_<b){var k=R$(_,m,!1,i);(_+k)/2<b+r&&(_=k)}return A&&p?R$(_,m,!0,i):_}}return function(b,A){var w=d*Math.round(b/d);return w+d/10<b&&w+d*.9<b+r&&(w+=d),A&&p&&(w-=d),w}};function u3(e,r,t,a){if(e*r<=0)return 1/0;for(var n=Math.abs(r-e),i=t.type==="date",o=F$(n,i),l=0;l<10;l++){var s=F$(o*80,i);if(o===s)break;if(rEe(s,e,r,i,t,a))o=s;else break}return o}function F$(e,r){return r&&e>P$?e>f3?e>If*1.1?If:e>C$*1.1?C$:f3:e>D$?D$:e>E$?E$:P$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function rEe(e,r,t,a,n,i){if(a&&e>f3){var o=z$(r,n,i),l=z$(t,n,i),s=e===If?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function z$(e,r,t){var a=r.c2d(e,If,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var U9=z((_Qe,U$)=>{"use strict";var O9=Br(),Rn=ke(),I$=Tr(),fo=Yr(),{hasColorscale:B$}=yi(),O$=Kc(),tEe=e3(),H$=z9(),aEe=N9(),nEe=I9(),iEe=B9();function oEe(e,r){var t=[],a=[],n=r.orientation==="h",i=fo.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=H9(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",y=[],m=p?y:v,b=[],A=[],w=[],x=0,_=r.histnorm,k=r.histfunc,T=_.indexOf("density")!==-1,q,C,E;u.enabled&&T&&(_=_.replace(/ ?density$/,""),T=!1);var P=k==="max"||k==="min",R=P?null:0,N=H$.count,I=aEe[_],O=!1,U=function(be){return i.r2c(be,0,s)},Y;for(Rn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],O=k==="avg",N=H$[k]),f=U(v.start),C=U(v.end)+(f-fo.tickIncrement(f,v.size,!1,s))/1e6;f<C&&t.length<1e6&&(q=fo.tickIncrement(f,v.size,!1,s),t.push((f+q)/2),a.push(R),w.push([]),y.push(f),T&&b.push(1/(q-f)),O&&A.push(0),!(q<=f));)f=q;y.push(f),!p&&i.type==="date"&&(m={start:U(m.start),end:U(m.end),size:m.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var G=r["_"+o+"bingroup"],V={leftGap:1/0,rightGap:1/0};G&&(e._fullLayout._roundFnOpts[G]||(e._fullLayout._roundFnOpts[G]=V),V=e._fullLayout._roundFnOpts[G]);var W=a.length,j=!0,J=V.leftGap,te=V.rightGap,ae={};for(f=0;f<d.length;f++){var se=d[f];E=Rn.findBin(se,m),E>=0&&E<W&&(x+=N(E,f,a,Y,A),j&&w[E].length&&se!==d[w[E][0]]&&(j=!1),w[E].push(f),ae[f]=E,J=Math.min(J,se-y[E]),te=Math.min(te,y[E+1]-se))}V.leftGap=J,V.rightGap=te;var $;j||($=function(be,Re){return function(){var ye=e._fullLayout._roundFnOpts[G];return iEe(ye.leftGap,ye.rightGap,y,i,s)(be,Re)}}),O&&(x=nEe(a,A)),I&&I(a,x,b),u.enabled&&uEe(a,u.direction,u.currentbin);var fe=Math.min(t.length,a.length),ie=[],ue=0,ce=fe-1;for(f=0;f<fe;f++)if(a[f]){ue=f;break}for(f=fe-1;f>=ue;f--)if(a[f]){ce=f;break}for(f=ue;f<=ce;f++)if(O9(t[f])&&O9(a[f])){var oe={p:t[f],s:a[f],b:0};u.enabled||(oe.pts=w[f],j?oe.ph0=oe.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,oe.ph0=$(y[f]),oe.ph1=$(y[f+1],!0))),ie.push(oe)}return ie.length===1&&(ie[0].width1=fo.tickIncrement(ie[0].p,v.size,!1,s)-ie[0].p),B$(r,"marker")&&O$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),B$(r,"marker.line")&&O$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),tEe(ie,r),Rn.isArrayOrTypedArray(r.selectedpoints)&&Rn.tagSelected(ie,r,ae),ie}function H9(e,r,t,a,n){var se;var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,y,m,b=function($){return t.r2c($,0,d)},A=function($){return t.c2r($,0,d)},w=t.type==="date"?function($){return $||$===0?Rn.cleanDate($,null,d):null}:function($){return O9($)?Number($):null};function x($,fe,ie){fe[$+"Found"]?(fe[$]=w(fe[$]),fe[$]===null&&(fe[$]=ie[$])):(y[$]=fe[$]=ie[$],Rn.nestedProperty(c[0],i+"."+$).set(ie[$]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var _=[],k=!0,T=!1,q=!1;for(f=0;f<c.length;f++)if(v=c[f],v.visible){var C=s.dirs[f];p=v["_"+C+"pos0"]=t.makeCalcdata(v,C),_=Rn.concat(_,p),delete v["_"+a+"autoBinFinished"],r.visible===!0&&(k?k=!1:(delete v._autoBin,v["_"+a+"autoBinFinished"]=1),I$.traceIs(v,"2dMap")&&(T=!0),v.type==="histogram2dcontour"&&(q=!0))}d=c[0][a+"calendar"];var E=fo.autoBin(_,t,s.nbins,T,d,s.sizeFound&&s.size),P=c[0]._autoBin={};if(y=P[s.dirs[0]]={},q&&(s.size||(E.start=A(fo.tickIncrement(b(E.start),E.size,!0,d))),s.end===void 0&&(E.end=A(fo.tickIncrement(b(E.end),E.size,!1,d)))),u&&!I$.traceIs(r,"2dMap")&&E._dataSpan===0&&t.type!=="category"&&t.type!=="multicategory"&&r.bingroup===""&&!((se=r._input[i])!=null&&se.size)){if(n)return[E,p,!0];E=lEe(e,r,t,a,i)}m=v.cumulative||{},m.enabled&&m.currentbin!=="include"&&(m.direction==="decreasing"?E.start=A(fo.tickIncrement(b(E.start),E.size,!0,d)):E.end=A(fo.tickIncrement(b(E.end),E.size,!1,d))),s.size=E.size,s.sizeFound||(y.size=E.size,Rn.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 R=r._input[i]||{},N=Rn.extendFlat({},s),I=s.start,O=t.r2l(R.start),U=O!==void 0;if((s.startFound||U)&&O!==t.r2l(I)){var Y=U?O:Rn.aggNums(Math.min,null,p),G={type:t.type==="category"||t.type==="multicategory"?"linear":t.type,r2l:t.r2l,dtick:s.size,tick0:I,calendar:d,range:[Y,fo.tickIncrement(Y,s.size,!1,d)].map(t.l2r)},V=fo.tickFirst(G);V>t.r2l(Y)&&(V=fo.tickIncrement(V,s.size,!0,d)),N.start=t.l2r(V),U||Rn.nestedProperty(r,i+".start").set(N.start)}var W=s.end,j=t.r2l(R.end),J=j!==void 0;if((s.endFound||J)&&j!==t.r2l(W)){var te=J?j:Rn.aggNums(Math.max,null,p);N.end=t.l2r(te),J||Rn.nestedProperty(r,i+".start").set(N.end)}var ae="autobin"+a;return r._input[ae]===!1&&(r._input[i]=Rn.extendFlat({},r[i]||{}),delete r._input[ae],delete r[ae]),[N,p]}function lEe(e,r,t,a,n){var i=e._fullLayout,o=sEe(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f<o.length;f++)if(c=o[f],c===r)l=!0;else if(!l)v=i._histogramBinOpts[c["_"+a+"bingroup"]],s=Math.min(s,v.size||c[n].size);else{var d=H9(e,c,t,a,!0),p=d[0],y=d[2];c["_"+a+"autoBinFinished"]=1,c["_"+a+"pos0"]=d[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"],A=0;A<b.length;A++)if(b[A]!==void 0){m[f]=b[A];break}for(isFinite(s)||(s=Rn.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&&Rn.extendFlat(v,x)}return r[n]}function sEe(e,r){for(var t=r.xaxis,a=r.yaxis,n=r.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];s.type==="histogram"&&s.visible===!0&&s.orientation===n&&s.xaxis===t&&s.yaxis===a&&i.push(s)}return i}function uEe(e,r,t){var a,n,i;function o(s){i=e[s],e[s]/=2}function l(s){n=e[s],e[s]=i+n/2,i+=n}if(t==="half")if(r==="increasing")for(o(0),a=1;a<e.length;a++)l(a);else for(o(e.length-1),a=e.length-2;a>=0;a--)l(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())}}U$.exports={calc:oEe,calcAllAutoBins:H9}});var $$=z((wQe,Z$)=>{"use strict";var G$=ke(),K0=Yr(),Y$=z9(),fEe=N9(),cEe=I9(),vEe=B9(),V$=U9().calcAllAutoBins;Z$.exports=function(r,t){var a=K0.getFromId(r,t.xaxis),n=K0.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(me){return a.r2c(me,0,i)},s=function(me){return n.r2c(me,0,o)},u=function(me){return a.c2r(me,0,i)},f=function(me){return n.c2r(me,0,o)},c,v,d,p,y=V$(r,t,a,"x"),m=y[0],b=y[1],A=V$(r,t,n,"y"),w=A[0],x=A[1],_=t._length;b.length>_&&b.splice(_,b.length-_),x.length>_&&x.splice(_,x.length-_);var k=[],T=[],q=[],C=typeof m.size=="string",E=typeof w.size=="string",P=[],R=[],N=C?P:m,I=E?R:w,O=0,U=[],Y=[],G=t.histnorm,V=t.histfunc,W=G.indexOf("density")!==-1,j=V==="max"||V==="min",J=j?null:0,te=Y$.count,ae=fEe[G],se=!1,$=[],fe=[],ie="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";ie&&V!=="count"&&(se=V==="avg",te=Y$[V]);var ue=m.size,ce=l(m.start),oe=l(m.end)+(ce-K0.tickIncrement(ce,ue,!1,i))/1e6;for(c=ce;c<oe;c=K0.tickIncrement(c,ue,!1,i))T.push(J),P.push(c),se&&q.push(0);P.push(c);var be=T.length,Re=(c-ce)/be,ye=u(ce+Re/2),Ce=w.size,Me=s(w.start),Le=s(w.end)+(Me-K0.tickIncrement(Me,Ce,!1,o))/1e6;for(c=Me;c<Le;c=K0.tickIncrement(c,Ce,!1,o)){k.push(T.slice()),R.push(c);var De=new Array(be);for(v=0;v<be;v++)De[v]=[];Y.push(De),se&&U.push(q.slice())}R.push(c);var Ie=k.length,qe=(c-Me)/Ie,Ze=f(Me+qe/2);W&&($=j$(T.length,N,Re,C),fe=j$(k.length,I,qe,E)),!C&&a.type==="date"&&(N=W$(l,N)),!E&&n.type==="date"&&(I=W$(s,I));var Je=!0,Xe=!0,Se=new Array(be),Fe=new Array(Ie),er=1/0,re=1/0,xe=1/0,Ye=1/0;for(c=0;c<_;c++){var vr=b[c],Pe=x[c];d=G$.findBin(vr,N),p=G$.findBin(Pe,I),d>=0&&d<be&&p>=0&&p<Ie&&(O+=te(d,c,k[p],ie,U[p]),Y[p][d].push(c),Je&&(Se[d]===void 0?Se[d]=vr:Se[d]!==vr&&(Je=!1)),Xe&&(Fe[p]===void 0?Fe[p]=Pe:Fe[p]!==Pe&&(Xe=!1)),er=Math.min(er,vr-P[d]),re=Math.min(re,P[d+1]-vr),xe=Math.min(xe,Pe-R[p]),Ye=Math.min(Ye,R[p+1]-Pe))}if(se)for(p=0;p<Ie;p++)O+=cEe(k[p],U[p]);if(ae)for(p=0;p<Ie;p++)ae(k[p],O,$,fe[p]);return{x:b,xRanges:X$(P,Je&&Se,er,re,a,i),x0:ye,dx:Re,y:x,yRanges:X$(R,Xe&&Fe,xe,Ye,n,o),y0:Ze,dy:qe,z:k,pts:Y}};function j$(e,r,t,a){var n=new Array(e),i;if(a)for(i=0;i<e;i++)n[i]=1/(r[i+1]-r[i]);else{var o=1/t;for(i=0;i<e;i++)n[i]=o}return n}function W$(e,r){return{start:e(r.start),end:e(r.end),size:r.size}}function X$(e,r,t,a,n,i){var o,l=e.length-1,s=new Array(l),u=vEe(t,a,e,n,i);for(o=0;o<l;o++){var f=(r||[])[o];s[o]=f===void 0?[u(e[o]),u(e[o+1],!0)]:[f,f]}return s}});var eJ=z((AQe,Q$)=>{"use strict";var Tl=ke(),J$=(jt(),ze(Zt)).BADNUM,K$=k0();Q$.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=K$(r,t,n,s).vals,u=K$(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Tl.isArray1D(f),v=r.hovertext,d=v!==void 0&&Tl.isArray1D(v),p,y,m=Tl.distinctVals(s),b=m.vals,A=Tl.distinctVals(u),w=A.vals,x=[],_,k,T=w.length,q=b.length;for(p=0;p<o.length;p++)x[p]=Tl.init2dArray(T,q);c&&(_=Tl.init2dArray(T,q)),d&&(k=Tl.init2dArray(T,q));var C=Tl.init2dArray(T,q);for(p=0;p<l;p++)if(s[p]!==J$&&u[p]!==J$){var E=Tl.findBin(s[p]+m.minDiff/2,b),P=Tl.findBin(u[p]+A.minDiff/2,w);for(y=0;y<o.length;y++){var R=o[y],N=r[R],I=x[y];I[P][E]=N[p],C[P][E]=p}c&&(_[P][E]=f[p]),d&&(k[P][E]=v[p])}for(r["_"+n]=b,r["_"+i]=w,y=0;y<o.length;y++)r["_"+o[y]]=x[y];c&&(r._text=_),d&&(r._hovertext=k),t&&t.type==="category"&&(r["_"+n+"CategoryMap"]=b.map(function(O){return t._categories[O]})),a&&a.type==="category"&&(r["_"+i+"CategoryMap"]=w.map(function(O){return a._categories[O]})),r._after2before=C}});var tJ=z((TQe,rJ)=>{"use strict";var hEe=Br(),dEe=ke(),c3=(jt(),ze(Zt)).BADNUM;rJ.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(b){if(hEe(b))return+b}if(t&&t.transpose){for(i=0,u=0;u<r.length;u++)i=Math.max(i,r[u].length);if(i===0)return!1;l=function(b){return b.length},s=function(b,A,w){return(b[w]||[])[A]}}else i=r.length,l=function(b,A){return b[A].length},s=function(b,A,w){return(b[A]||[])[w]};var v=function(b,A,w){return A===c3||w===c3?c3:s(b,A,w)};function d(b){if(t&&t.type!=="carpet"&&t.type!=="contourcarpet"&&b&&b.type==="category"&&t["_"+b._id.charAt(0)].length){var A=b._id.charAt(0),w={},x=t["_"+A+"CategoryMap"]||t[A];for(u=0;u<x.length;u++)w[x[u]]=u;return function(_){var k=w[b._categories[_]];return k+1?k:c3}}else return dEe.identity}var p=d(a),y=d(n);n&&n.type==="category"&&(i=n._categories.length);var m=new Array(i);for(u=0;u<i;u++)for(a&&a.type==="category"?o=a._categories.length:o=l(r,u),m[u]=new Array(o),f=0;f<o;f++)m[u][f]=c(v(r,y(u),p(f)));return m}});var oJ=z((MQe,iJ)=>{"use strict";var pEe=ke(),aJ=.01,mEe=[[-1,0],[1,0],[0,-1],[0,1]];function yEe(e){return .5-.25*Math.min(1,e*.5)}iJ.exports=function(r,t){var a=1,n;for(nJ(r,t),n=0;n<t.length&&!(t[n][2]<4);n++);for(t=t.slice(n),n=0;n<100&&a>aJ;n++)a=nJ(r,t,yEe(a));return a>aJ&&pEe.log("interp2d didn't converge quickly",a),r};function nJ(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,y,m;for(l=0;l<r.length;l++){for(n=r[l],i=n[0],o=n[1],p=e[i][o],d=0,v=0,s=0;s<4;s++)u=mEe[s],f=e[i+u[0]],f&&(c=f[o+u[1]],c!==void 0&&(d===0?y=m=c:(y=Math.min(y,c),m=Math.max(m,c)),v++,d+=c));if(v===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=d/v,p===void 0?v<4&&(a=1):(e[i][o]=(1+t)*e[i][o]-t*p,m>y&&(a=Math.max(a,Math.abs(e[i][o]-p)/(m-y))))}return a}});var sJ=z((kQe,lJ)=>{"use strict";var gEe=ke().maxRowLength;lJ.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=gEe(r),u,f,c,v,d,p,y,m;for(f=0;f<r.length;f++)for(u=o,o=i,i=r[f+1]||[],c=0;c<s;c++)o[c]===void 0&&(p=(o[c-1]!==void 0?1:0)+(o[c+1]!==void 0?1:0)+(u[c]!==void 0?1:0)+(i[c]!==void 0?1:0),p?(f===0&&p++,c===0&&p++,f===r.length-1&&p++,c===o.length-1&&p++,p<4&&(a[[f,c]]=[f,c,p]),t.push([f,c,p])):n.push([f,c]));for(;n.length;){for(y={},m=!1,d=n.length-1;d>=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(y[v]=[f,c,p],n.splice(d,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(v in y)a[v]=y[v],t.push(y[v])}return t.sort(function(b,A){return A[2]-b[2]})}});var vJ=z((SQe,cJ)=>{"use strict";var uJ=Tr(),fJ=ke().isArrayOrTypedArray;cJ.exports=function(r,t,a,n,i,o){var l=[],s=uJ.traceIs(r,"contour"),u=uJ.traceIs(r,"histogram"),f,c,v,d=fJ(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v<p;v++)l.push(Math.sqrt(t[v-1]*t[v]));l.push(Math.pow(t[p-1],1.5)/Math.pow(t[p-2],.5))}else{for(l=[1.5*t[0]-.5*t[1]],v=1;v<p;v++)l.push((t[v-1]+t[v])*.5);l.push(1.5*t[p-1]-.5*t[p-2])}if(p<i){var y=l[l.length-1],m;if(o.type==="log")for(m=y/l[l.length-2],v=p;v<i;v++)y*=m,l.push(y);else for(m=y-l[l.length-2],v=p;v<i;v++)y+=m,l.push(y)}}else return s?t.slice(0,i):t.slice(0,i+1)}else{var b=r[o._id.charAt(0)+"calendar"];if(u)f=o.r2c(a,0,b);else if(fJ(t)&&t.length===1)f=t[0];else if(a===void 0)f=0;else{var A=o.type==="log"?o.d2c:o.r2c;f=A(a,0,b)}for(c=n||1,v=s?0:-.5;v<i;v++)l.push(f+c*v)}return l}});var d3=z((qQe,mJ)=>{"use strict";var hJ=Tr(),G9=ke(),v3=Yr(),dJ=k0(),bEe=$$(),xEe=Kc(),_Ee=eJ(),wEe=tJ(),AEe=oJ(),TEe=sJ(),h3=vJ(),Y9=(jt(),ze(Zt)).BADNUM;mJ.exports=function(r,t){var a=v3.getFromId(r,t.xaxis||"x"),n=v3.getFromId(r,t.yaxis||"y"),i=hJ.traceIs(t,"contour"),o=hJ.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,y,m,b,A;if(a._minDtick=0,n._minDtick=0,o)A=bEe(r,t),c=A.orig_x,s=A.x,u=A.x0,f=A.dx,y=A.orig_y,v=A.y,d=A.y0,p=A.dy,m=A.z;else{var w=t.z;G9.isArray1D(w)?(_Ee(t,a,n,"x","y",["z"]),s=t._x,v=t._y,w=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],y=t.y?n.makeCalcdata(t,"y"):[],s=dJ(t,a,"x",c).vals,v=dJ(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=wEe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=MEe(s,v,m),o||(s=pJ(s),v=pJ(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=TEe(m),AEe(m,t._emptypoints));function x(N){l=t._input.zsmooth=t.zsmooth=!1,G9.warn('cannot use zsmooth: "fast": '+N)}function _(N){if(N.length>1){var I=(N[N.length-1]-N[0])/(N.length-1),O=Math.abs(I/100);for(b=0;b<N.length-1;b++)if(Math.abs(N[b+1]-N[b]-I)>O)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&x("log axis found"):_(s)?_(v)?t._islinear=!0:l==="fast"&&x("y scale is not linear"):l==="fast"&&x("x scale is not linear");var k=G9.maxRowLength(m),T=t.xtype==="scaled"?"":s,q=h3(t,T,u,f,k,a),C=t.ytype==="scaled"?"":v,E=h3(t,C,d,p,m.length,n);t._extremes[a._id]=v3.findExtremes(a,q),t._extremes[n._id]=v3.findExtremes(n,E);var P={x:q,y:E,z:m,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&y&&(P.orig_y=y),T&&T.length===q.length-1&&(P.xCenter=T),C&&C.length===E.length-1&&(P.yCenter=C),o&&(P.xRanges=A.xRanges,P.yRanges=A.yRanges,P.pts=A.pts),i||xEe(r,t,{vals:m,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=h3(R,T,u,f,k,a),P.yfill=h3(R,C,d,p,m.length,n)}return[P]};function pJ(e){for(var r=[],t=e.length,a=0;a<t;a++){var n=e[a];n!==Y9&&r.push(n)}return r}function MEe(e,r,t){for(var a=[],n=-1,i=0;i<t.length;i++)if(r[i]!==Y9){n++,a[n]=[];for(var o=0;o<t[i].length;o++)e[o]!==Y9&&a[n].push(t[i][o])}return a}});var p3={};qt(p3,{CSS_DECLARATIONS:()=>yJ,STYLE:()=>kEe});var yJ,kEe,m3=St(()=>{"use strict";yJ=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],kEe=yJ.map(e=>e.join(": ")+"; ").join("")});var j9=z((LQe,bJ)=>{"use strict";var gJ=(m3(),ze(p3)),SEe=Jr(),V9=ke(),Q0=null;function qEe(){if(Q0!==null)return Q0;Q0=!1;var e=V9.isSafari()||V9.isMacWKWebView()||V9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(gJ.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Q0=r.some(function(o){return t.apply(null,o)});else{var a=SEe.tester.append("image").attr("style",gJ.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Q0=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Q0}bJ.exports=qEe});var y3=z((CQe,LJ)=>{"use strict";var xJ=Pr(),LEe=Tr(),CEe=Jr(),DEe=Yr(),co=ke(),_J=Fa(),EEe=r8(),wJ=qr(),PEe=ll().extractOpts,REe=ll().makeColorScaleFuncFromTrace,FEe=(Vl(),ze(Yl)),zEe=(on(),ze(nn)),W9=zEe.LINE_SPACING,NEe=j9(),IEe=(m3(),ze(p3)).STYLE,SJ="heatmap-label";function qJ(e){return e.selectAll("g."+SJ)}function AJ(e){qJ(e).remove()}LJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;co.makeTraceGroups(a,t,"hm").each(function(o){var l=xJ.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,y=s.xCenter,m=s.yCenter,b=LEe.traceIs(u,"contour"),A=b?"best":u.zsmooth,w=v.length,x=co.maxRowLength(v),_=!1,k=!1,T,q,C,E,P,R,N,I;for(R=0;T===void 0&&R<d.length-1;)T=n.c2p(d[R]),R++;for(R=d.length-1;q===void 0&&R>0;)q=n.c2p(d[R]),R--;for(q<T&&(C=q,q=T,T=C,_=!0),R=0;E===void 0&&R<p.length-1;)E=i.c2p(p[R]),R++;for(R=p.length-1;P===void 0&&R>0;)P=i.c2p(p[R]),R--;P<E&&(C=E,E=P,P=C,k=!0),b&&(y=d,m=p,d=s.xfill,p=s.yfill);var O="default";if(A?O=A==="best"?"smooth":"fast":u._islinear&&f===0&&c===0&&NEe()&&(O="fast"),O!=="fast"){var U=A==="best"?0:.5;T=Math.max(-U*n._length,T),q=Math.min((1+U)*n._length,q),E=Math.max(-U*i._length,E),P=Math.min((1+U)*i._length,P)}var Y=Math.round(q-T),G=Math.round(P-E),V=T>=n._length||q<=0||E>=i._length||P<=0;if(V){var W=l.selectAll("image").data([]);W.exit().remove(),AJ(l);return}var j,J;O==="fast"?(j=x,J=w):(j=Y,J=G);var te=document.createElement("canvas");te.width=j,te.height=J;var ae=te.getContext("2d",{willReadFrequently:!0}),se=REe(u,{noNumericCheck:!0,returnArray:!0}),$,fe;O==="fast"?($=_?function(dt){return x-1-dt}:co.identity,fe=k?function(dt){return w-1-dt}:co.identity):($=function(dt){return co.constrain(Math.round(n.c2p(d[dt])-T),0,Y)},fe=function(dt){return co.constrain(Math.round(i.c2p(p[dt])-E),0,G)});var ie=fe(0),ue=[ie,ie],ce=_?0:1,oe=k?0:1,be=0,Re=0,ye=0,Ce=0,Me,Le,De,Ie,qe;function Ze(dt,Ka=0){if(dt===void 0)return[0,0,0,0];var Yt=se(dt);return Yt[0]=Math.round(Yt[0]),Yt[1]=Math.round(Yt[1]),Yt[2]=Math.round(Yt[2]),be+=Ka,Re+=Yt[0]*Ka,ye+=Yt[1]*Ka,Ce+=Yt[2]*Ka,Yt}function Je(dt,Ka,Yt,cc){var Nn=dt[Yt.bin0];if(Nn===void 0)return Ze(void 0,1);var wo=dt[Yt.bin1],ci=Ka[Yt.bin0],ca=Ka[Yt.bin1],vc=wo-Nn||0,ds=ci-Nn||0,In;return wo===void 0?ca===void 0?In=0:ci===void 0?In=2*(ca-Nn):In=(2*ca-ci-Nn)*2/3:ca===void 0?ci===void 0?In=0:In=(2*Nn-wo-ci)*2/3:ci===void 0?In=(2*ca-wo-Nn)*2/3:In=ca+Nn-wo-ci,Ze(Nn+Yt.frac*vc+cc.frac*(ds+Yt.frac*In))}if(O!=="default"){var Xe=0,Se;try{Se=new Uint8Array(j*J*4)}catch(dt){Se=new Array(j*J*4)}if(O==="smooth"){var Fe=y||d,er=m||p,re=new Array(Fe.length),xe=new Array(er.length),Ye=new Array(Y),vr=y?MJ:TJ,Pe=m?MJ:TJ,me,Te,Ue;for(R=0;R<Fe.length;R++)re[R]=Math.round(n.c2p(Fe[R])-T);for(R=0;R<er.length;R++)xe[R]=Math.round(i.c2p(er[R])-E);for(R=0;R<Y;R++)Ye[R]=vr(R,re);for(N=0;N<G;N++)for(me=Pe(N,xe),Te=v[me.bin0],Ue=v[me.bin1],R=0;R<Y;R++,Xe+=4)qe=Je(Te,Ue,Ye[R],me),kJ(Se,Xe,qe)}else for(N=0;N<w;N++)for(Ie=v[N],ue=fe(N),R=0;R<x;R++)qe=Ze(Ie[R],1),Xe=(ue*x+$(R))*4,kJ(Se,Xe,qe);var $e=ae.createImageData(j,J);try{$e.data.set(Se)}catch(dt){var Oe=$e.data,We=Oe.length;for(N=0;N<We;N++)Oe[N]=Se[N]}ae.putImageData($e,0,0)}else{var ar=Math.floor(f/2),or=Math.floor(c/2);for(N=0;N<w;N++)if(Ie=v[N],ue.reverse(),ue[oe]=fe(N+1),!(ue[0]===ue[1]||ue[0]===void 0||ue[1]===void 0))for(Le=$(0),Me=[Le,Le],R=0;R<x;R++)Me.reverse(),Me[ce]=$(R+1),!(Me[0]===Me[1]||Me[0]===void 0||Me[1]===void 0)&&(De=Ie[R],qe=Ze(De,(Me[1]-Me[0])*(ue[1]-ue[0])),ae.fillStyle="rgba("+qe.join(",")+")",ae.fillRect(Me[0]+ar,ue[0]+or,Me[1]-Me[0]-f,ue[1]-ue[0]-c))}if(be){Re=Math.round(Re/be),ye=Math.round(ye/be),Ce=Math.round(Ce/be);let dt=`rgb(${Re}, ${ye}, ${Ce})`;e._hmpixcount=(e._hmpixcount||0)+be,e._hmlumcount=(e._hmlumcount||0)+be*wJ.luminosity(dt)}var sr=l.selectAll("image").data(o);sr.enter().append("svg:image").attr({xmlns:FEe.svg,preserveAspectRatio:"none"}),sr.attr({height:G,width:Y,x:T,y:E,"xlink:href":te.toDataURL("image/png")}),O==="fast"&&!A&&sr.attr("style",IEe),AJ(l);var Ee=u.texttemplate;if(Ee){var Ke=PEe(u),Be={type:"linear",range:[Ke.min,Ke.max],_separators:n._separators,_numFormat:n._numFormat},mr=u.type==="histogram2dcontour",yr=u.type==="contour",ur=yr?1:0,gr=yr?w-1:w,ne=yr?1:0,ge=yr?x-1:x,Ne=[];for(R=ur;R<gr;R++){var He;if(yr)He=s.y[R];else if(mr){if(R===0||R===w-1)continue;He=s.y[R]}else if(s.yCenter)He=s.yCenter[R];else{if(R+1===w&&s.y[R+1]===void 0)continue;He=(s.y[R]+s.y[R+1])/2}var Kr=Math.round(i.c2p(He));if(!(0>Kr||Kr>i._length))for(N=ne;N<ge;N++){var Qr;if(yr)Qr=s.x[N];else if(mr){if(N===0||N===x-1)continue;Qr=s.x[N]}else if(s.xCenter)Qr=s.xCenter[N];else{if(N+1===x&&s.x[N+1]===void 0)continue;Qr=(s.x[N]+s.x[N+1])/2}var yt=Math.round(n.c2p(Qr));if(!(0>yt||yt>n._length)){var gt=EEe({x:Qr,y:He},u,e._fullLayout);gt.x=Qr,gt.y=He;var Et=s.z[R][N];Et===void 0?(gt.z="",gt.zLabel=""):(gt.z=Et,gt.zLabel=DEe.tickText(Be,Et,"hover").text);var aa=s.text&&s.text[R]&&s.text[R][N];(aa===void 0||aa===!1)&&(aa=""),gt.text=aa;var $a=co.texttemplateString({data:[gt,u._meta],fallback:u.texttemplatefallback,labels:gt,locale:e._fullLayout._d3locale,template:Ee});if($a){var na=$a.split("<br>"),Ja=na.length,hn=0;for(I=0;I<Ja;I++)hn=Math.max(hn,na[I].length);Ne.push({l:Ja,c:hn,t:$a,x:yt,y:Kr,z:Et})}}}}var fa=u.textfont,hr=fa.size,wt=e._fullLayout.font.size;if(!hr||hr==="auto"){var Vr=1/0,ht=1/0,Nt=0,kt=0;for(I=0;I<Ne.length;I++){var it=Ne[I];if(Nt=Math.max(Nt,it.l),kt=Math.max(kt,it.c),I<Ne.length-1){var ia=Ne[I+1],zn=Math.abs(ia.x-it.x),Xt=Math.abs(ia.y-it.y);zn&&(Vr=Math.min(Vr,zn)),Xt&&(ht=Math.min(ht,Xt))}}!isFinite(Vr)||!isFinite(ht)?hr=wt:(Vr-=f,ht-=c,Vr/=kt,ht/=Nt,Vr/=W9/2,ht/=W9,hr=Math.min(Math.floor(Vr),Math.floor(ht),wt))}if(hr<=0||!isFinite(hr))return;var Pt=function(dt){return dt.x},oa=function(dt){return dt.y-hr*(dt.l*W9/2-1)},la=qJ(l).data(Ne);la.enter().append("g").classed(SJ,1).append("text").attr("text-anchor","middle").each(function(dt){var Ka=xJ.select(this),Yt=fa.color;(!Yt||Yt==="auto")&&(Yt=wJ.contrast(dt.z===void 0?e._fullLayout.plot_bgcolor:`rgba(${se(dt.z).map(Math.round).join()})`)),Ka.attr("data-notex",1).call(_J.positionText,Pt(dt),oa(dt)).call(CEe.font,{family:fa.family,size:hr,color:Yt,weight:fa.weight,style:fa.style,variant:fa.variant,textcase:fa.textcase,lineposition:fa.lineposition,shadow:fa.shadow}).text(dt.t).call(_J.convertToTspans,e)})}})};function TJ(e,r){var t=r.length-2,a=co.constrain(co.findBin(e,r),0,t),n=r[a],i=r[a+1],o=co.constrain(a+(e-n)/(i-n)-.5,0,t),l=Math.round(o),s=Math.abs(o-l);return!o||o===t||!s?{bin0:l,bin1:l,frac:0}:{bin0:l,frac:s,bin1:Math.round(l+s/(o-l))}}function MJ(e,r){var t=r.length-1,a=co.constrain(co.findBin(e,r),0,t),n=r[a],i=r[a+1],o=(e-n)/(i-n)||0;return o<=0?{bin0:a,bin1:a,frac:0}:o<.5?{bin0:a,bin1:a+1,frac:o}:{bin0:a+1,bin1:a,frac:1-o}}function kJ(e,r,t){e[r]=t[0],e[r+1]=t[1],e[r+2]=t[2],e[r+3]=Math.round(t[3]*255)}});var X9=z((DQe,CJ)=>{"use strict";CJ.exports={min:"zmin",max:"zmax"}});var g3=z((EQe,DJ)=>{"use strict";var BEe=Pr();DJ.exports=function(r){BEe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var x3=z((PQe,PJ)=>{"use strict";var EJ=Un(),c2=ke(),b3=c2.isArrayOrTypedArray,OEe=Yr(),HEe=ll().extractOpts;PJ.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,y=l.yCenter,m=l.zmask,b=s.zhoverformat,A=c,w=v,x,_,k,T;if(r.index!==!1){try{k=Math.round(r.index[1]),T=Math.round(r.index[0])}catch(W){c2.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||T<0||T>d.length)return}else{if(EJ.inbox(t-c[0],t-c[c.length-1],0)>0||EJ.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(A=[2*c[0]-c[1]],q=1;q<c.length;q++)A.push((c[q]+c[q-1])/2);for(A.push([2*c[c.length-1]-c[c.length-2]]),w=[2*v[0]-v[1]],q=1;q<v.length;q++)w.push((v[q]+v[q-1])/2);w.push([2*v[v.length-1]-v[v.length-2]])}k=Math.max(0,Math.min(A.length-2,c2.findBin(t,A))),T=Math.max(0,Math.min(w.length-2,c2.findBin(a,w)))}var C=u.c2p(c[k]),E=u.c2p(c[k+1]),P=f.c2p(v[T]),R=f.c2p(v[T+1]),N,I;o?(N=l.orig_x||c,I=l.orig_y||v,E=C,x=N[k],R=P,_=I[T]):(N=l.orig_x||p||c,I=l.orig_y||y||v,x=p?N[k]:(N[k]+N[k+1])/2,_=y?I[T]:(I[T]+I[T+1])/2,u&&u.type==="category"&&(x=c[k]),f&&f.type==="category"&&(_=v[T]),s.zsmooth&&(C=E=u.c2p(x),P=R=f.c2p(_)));var O=d[T][k];if(m&&!m[T][k]&&(O=void 0),!(O===void 0&&!s.hoverongaps)){var U;b3(l.hovertext)&&b3(l.hovertext[T])?U=l.hovertext[T][k]:b3(l.text)&&b3(l.text[T])&&(U=l.text[T][k]);var Y=HEe(s),G={type:"linear",range:[Y.min,Y.max],hoverformat:b,_separators:u._separators,_numFormat:u._numFormat},V=OEe.tickText(G,O,"hover").text;return[c2.extendFlat(r,{index:s._after2before?s._after2before[T][k]:[T,k],distance:r.maxHoverDistance,spikeDistance:r.maxSpikeDistance,x0:C,x1:E,y0:P,y1:R,xLabelVal:x,yLabelVal:_,zLabelVal:O,zLabel:V,text:U})]}}});var FJ=z((RQe,RJ)=>{"use strict";RJ.exports={attributes:u2(),supplyDefaults:k$(),calc:d3(),plot:y3(),colorbar:X9(),style:g3(),hoverPoints:x3(),moduleType:"trace",name:"heatmap",basePlotModule:io(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var NJ=z((FQe,zJ)=>{"use strict";zJ.exports=FJ()});var Z9=z((zQe,IJ)=>{"use strict";IJ.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var BJ={};qt(BJ,{eventDataKeys:()=>UEe});var UEe,OJ=St(()=>{"use strict";UEe=["binNumber"]});var _3=z((NQe,YJ)=>{"use strict";var li=Pf(),HJ=Eo().axisHoverFormat,{hovertemplateAttrs:GEe,texttemplateAttrs:YEe,templatefallbackAttrs:UJ}=di(),$9=Ca(),GJ=Z9(),VEe=(OJ(),ze(BJ)),J9=Mt().extendFlat;YJ.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:HJ("x"),yhoverformat:HJ("y"),text:J9({},li.text,{}),hovertext:J9({},li.hovertext,{}),orientation:li.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:GJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:GJ("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:GEe({},{keys:VEe.eventDataKeys}),hovertemplatefallback:UJ(),texttemplate:YEe({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:UJ({editType:"plot"}),textposition:J9({},li.textposition,{arrayOk:!1}),textfont:$9({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:$9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:$9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:li.insidetextanchor,textangle:li.textangle,cliponaxis:li.cliponaxis,constraintext:li.constraintext,marker:li.marker,offsetgroup:li.offsetgroup,alignmentgroup:li.alignmentgroup,selected:li.selected,unselected:li.unselected,zorder:li.zorder}});var XJ=z((IQe,WJ)=>{"use strict";var VJ=Tr(),v2=ke(),jJ=qr(),jEe=Rf().handleText,WEe=f9(),XEe=_3();WJ.exports=function(r,t,a,n){function i(A,w){return v2.coerce(r,t,XEe,A,w)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");jEe(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",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(v2.minRowLength(o)&&v2.minRowLength(l)):v2.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=VJ.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),WEe(r,t,i,a,n),v2.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=VJ.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||jJ.defaultLine,{axis:"y"}),b(r,t,m||jJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var A3=z((BQe,JJ)=>{"use strict";var h2=ke(),ZEe=Aa(),w3=Tr().traceIs,$Ee=Fd(),JEe=Rf().validateCornerradius,ZJ=h2.nestedProperty,K9=bf().getAxisGroup,$J=[{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"}],KEe=["x","y"];JJ.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(O,U){return h2.coerce(l._input,l,l._module.attributes,O,U)}function y(O){return O.orientation==="v"?"x":"y"}function m(O,U){var Y=ZEe.getFromTrace({_fullLayout:t},O,U);return Y.type}function b(O,U,Y){var G=O.uid+"__"+Y;U||(U=G);var V=m(O,Y),W=O[Y+"calendar"]||"",j=a[U],J=!0;j&&(V===j.axType&&W===j.calendar?(J=!1,j.traces.push(O),j.dirs.push(Y)):(U=G,V!==j.axType&&h2.warn(["Attempted to group the bins of trace",O.index,"set on a","type:"+V,"axis","with bins on","type:"+j.axType,"axis."].join(" ")),W!==j.calendar&&h2.warn(["Attempted to group the bins of trace",O.index,"set with a",W,"calendar","with bins",j.calendar?"on a "+j.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[U]={traces:[O],dirs:[Y],axType:V,calendar:O[Y+"calendar"]||""}),O["_"+Y+"bingroup"]=U}for(c=0;c<r.length;c++)if(l=r[c],w3(l,"histogram")){if(n.push(l),delete l._xautoBinFinished,delete l._yautoBinFinished,l.type==="histogram"){var A=p("marker.cornerradius",t.barcornerradius);l.marker&&(l.marker.cornerradius=JEe(A))}w3(l,"2dMap")||$Ee(l._input,l,t,p,t.barmode)}var w=t._alignmentOpts||{};for(c=0;c<n.length;c++){if(l=n[c],u="",!w3(l,"2dMap")){if(f=y(l),t.barmode==="group"&&l.alignmentgroup){var x=l[f+"axis"],_=K9(t,x)+l.orientation;(w[_]||{})[l.alignmentgroup]&&(u=_)}!u&&t.barmode!=="overlay"&&(u=K9(t,l.xaxis)+K9(t,l.yaxis)+y(l))}u?(i[u]||(i[u]=[]),i[u].push(l)):o.push(l)}for(u in i){if(s=i[u],s.length===1){o.push(s[0]);continue}var k=!1;for(s.length&&(l=s[0],k=p("bingroup")),u=k||u,c=0;c<s.length;c++){l=s[c];var T=l._input.bingroup;T&&T!==u&&h2.warn(["Trace",l.index,"must match","within bingroup",u+".","Ignoring its bingroup:",T,"setting."].join(" ")),l.bingroup=u,b(l,u,y(l))}}for(c=0;c<o.length;c++){l=o[c];var q=p("bingroup");if(w3(l,"2dMap"))for(d=0;d<2;d++){f=KEe[d];var C=p(f+"bingroup",q?q+"__"+f:null);b(l,C,f)}else b(l,q,y(l))}for(u in a){var E=a[u];for(s=E.traces,v=0;v<$J.length;v++){var P=$J[v],R=P.name,N,I;if(!(R==="nbins"&&E.sizeFound)){for(c=0;c<s.length;c++){if(l=s[c],f=E.dirs[c],N=P.aStr[f],ZJ(l._input,N).get()!==void 0){E[R]=p(N),E[R+"Found"]=!0;break}I=(l._autoBin||{})[f]||{},I[R]&&ZJ(l,N).set(I[R])}if(R==="start"||R==="end")for(;c<s.length;c++)l=s[c],l["_"+f+"bingroup"]&&(I=(l._autoBin||{})[f]||{},p(N,I[R]));R==="nbins"&&!E.sizeFound&&!E.nbinsFound&&(l=s[0],E[R]=p(N))}}}}});var QJ=z((OQe,KJ)=>{"use strict";var QEe=g9().hoverPoints,ePe=Yr().hoverLabelText;KJ.exports=function(r,t,a,n,i){var o=QEe(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=ePe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var Q9=z((HQe,eK)=>{"use strict";eK.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 o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=o}return r}});var tK=z((UQe,rK)=>{"use strict";rK.exports={attributes:_3(),layoutAttributes:Kg(),supplyDefaults:XJ(),crossTraceDefaults:A3(),supplyLayoutDefaults:c9(),calc:U9().calc,crossTraceCalc:cg().crossTraceCalc,plot:m9().plot,layerName:"barlayer",style:j0().style,styleOnSelect:j0().styleOnSelect,colorbar:Ud(),hoverPoints:QJ(),selectPoints:b9(),eventData:Q9(),moduleType:"trace",name:"histogram",basePlotModule:io(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var nK=z((GQe,aK)=>{"use strict";aK.exports=tK()});var M3=z((YQe,lK)=>{"use strict";var Xo=_3(),iK=Z9(),T3=u2(),rPe=On(),eA=Eo().axisHoverFormat,{hovertemplateAttrs:tPe,texttemplateAttrs:aPe,templatefallbackAttrs:oK}=di(),nPe=ol(),d2=Mt().extendFlat;lK.exports=d2({x:Xo.x,y:Xo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Xo.histnorm,histfunc:Xo.histfunc,nbinsx:Xo.nbinsx,xbins:iK("x"),nbinsy:Xo.nbinsy,ybins:iK("y"),autobinx:Xo.autobinx,autobiny:Xo.autobiny,bingroup:d2({},Xo.bingroup,{}),xbingroup:d2({},Xo.bingroup,{}),ybingroup:d2({},Xo.bingroup,{}),xgap:T3.xgap,ygap:T3.ygap,zsmooth:T3.zsmooth,xhoverformat:eA("x"),yhoverformat:eA("y"),zhoverformat:eA("z",1),hovertemplate:tPe({},{keys:["z"]}),hovertemplatefallback:oK(),texttemplate:aPe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:oK({editType:"plot"}),textfont:T3.textfont,showlegend:d2({},rPe.showlegend,{dflt:!1})},nPe("",{cLetter:"z",autoColorDflt:!1}))});var rA=z((VQe,uK)=>{"use strict";var iPe=Tr(),sK=ke();uK.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=sK.minRowLength(i),s=sK.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=iPe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var cK=z((jQe,fK)=>{"use strict";var oPe=ke(),lPe=rA(),sPe=F9(),uPe=jl(),fPe=f2(),cPe=M3();fK.exports=function(r,t,a,n){function i(o,l){return oPe.coerce(r,t,cPe,o,l)}lPe(r,t,i,n),t.visible!==!1&&(sPe(r,t,i,n),uPe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),fPe(i,n),i("xhoverformat"),i("yhoverformat"))}});var dK=z((WQe,hK)=>{"use strict";var vPe=x3(),vK=Yr().hoverLabelText;hK.exports=function(r,t,a,n,i){var o=vPe(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=vK(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=vK(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var mK=z((XQe,pK)=>{"use strict";pK.exports={attributes:M3(),supplyDefaults:cK(),crossTraceDefaults:A3(),calc:d3(),plot:y3(),layerName:"heatmaplayer",colorbar:X9(),style:g3(),hoverPoints:dK(),eventData:Q9(),moduleType:"trace",name:"histogram2d",basePlotModule:io(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var gK=z((ZQe,yK)=>{"use strict";yK.exports=mK()});var k3={};qt(k3,{COMPARISON_OPS:()=>hPe,COMPARISON_OPS2:()=>dPe,CONSTRAINT_REDUCTION:()=>yPe,INTERVAL_OPS:()=>pPe,SET_OPS:()=>mPe});var hPe,dPe,pPe,mPe,yPe,S3=St(()=>{"use strict";hPe=["=","!=","<",">=",">","<="],dPe=["=","<",">=",">","<="],pPe=["[]","()","[)","(]","][",")(","](",")["],mPe=["{}","}{"],yPe={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var L3=z(($Qe,wK)=>{"use strict";var wa=u2(),q3=Ji(),xK=Eo(),tA=xK.axisHoverFormat,gPe=xK.descriptionOnlyNumbers,bPe=ol(),xPe=Bi().dash,_Pe=Ca(),ev=Mt().extendFlat,_K=(S3(),ze(k3)),wPe=_K.COMPARISON_OPS2,APe=_K.INTERVAL_OPS,bK=q3.line;wK.exports=ev({z:wa.z,x:wa.x,x0:wa.x0,dx:wa.dx,y:wa.y,y0:wa.y0,dy:wa.dy,xperiod:wa.xperiod,yperiod:wa.yperiod,xperiod0:q3.xperiod0,yperiod0:q3.yperiod0,xperiodalignment:wa.xperiodalignment,yperiodalignment:wa.yperiodalignment,text:wa.text,hovertext:wa.hovertext,transpose:wa.transpose,xtype:wa.xtype,ytype:wa.ytype,xhoverformat:tA("x"),yhoverformat:tA("y"),zhoverformat:tA("z",1),hovertemplate:wa.hovertemplate,hovertemplatefallback:wa.hovertemplatefallback,texttemplate:ev({},wa.texttemplate,{}),texttemplatefallback:wa.texttemplatefallback,textfont:ev({},wa.textfont,{}),hoverongaps:wa.hoverongaps,connectgaps:ev({},wa.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:_Pe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:gPe("contour label")},operation:{valType:"enumerated",values:[].concat(wPe).concat(APe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},bK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:xPe,smoothing:ev({},bK.smoothing,{}),editType:"plot"},zorder:q3.zorder},bPe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var nA=z((JQe,TK)=>{"use strict";var gn=M3(),Ml=L3(),TPe=ol(),aA=Eo().axisHoverFormat,AK=Mt().extendFlat;TK.exports=AK({x:gn.x,y:gn.y,z:gn.z,marker:gn.marker,histnorm:gn.histnorm,histfunc:gn.histfunc,nbinsx:gn.nbinsx,xbins:gn.xbins,nbinsy:gn.nbinsy,ybins:gn.ybins,autobinx:gn.autobinx,autobiny:gn.autobiny,bingroup:gn.bingroup,xbingroup:gn.xbingroup,ybingroup:gn.ybingroup,autocontour:Ml.autocontour,ncontours:Ml.ncontours,contours:Ml.contours,line:{color:Ml.line.color,width:AK({},Ml.line.width,{dflt:.5}),dash:Ml.line.dash,smoothing:Ml.line.smoothing,editType:"plot"},xhoverformat:aA("x"),yhoverformat:aA("y"),zhoverformat:aA("z",1),hovertemplate:gn.hovertemplate,hovertemplatefallback:gn.hovertemplatefallback,texttemplate:Ml.texttemplate,texttemplatefallback:Ml.texttemplatefallback,textfont:Ml.textfont},TPe("",{cLetter:"z",editTypeOverride:"calc"}))});var iA=z((KQe,MK)=>{"use strict";MK.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var oA=z((QQe,kK)=>{"use strict";var MPe=ke();kK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;MPe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var lA=z((eer,SK)=>{"use strict";var kPe=jl(),SPe=oA();SK.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,kPe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),SPe(a,n,s,i)}});var DK=z((rer,CK)=>{"use strict";var qK=ke(),qPe=rA(),LPe=iA(),CPe=lA(),DPe=f2(),LK=nA();CK.exports=function(r,t,a,n){function i(l,s){return qK.coerce(r,t,LK,l,s)}function o(l){return qK.coerce2(r,t,LK,l)}qPe(r,t,i,n),t.visible!==!1&&(LPe(r,t,i,o),CPe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&DPe(i,n))}});var RK=z((ter,PK)=>{"use strict";var uA=Yr(),sA=ke();PK.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=sA.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=sA.aggNums(Math.max,null,t));var o=EK(n,i,r.ncontours);a.size=o.dtick,a.start=uA.tickFirst(o),o.range.reverse(),a.end=uA.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),sA.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=EK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function EK(e,r,t){var a={type:"linear",range:[e,r]};return uA.autoTicks(a,(r-e)/(t||15)),a}});var p2=z((aer,FK)=>{"use strict";FK.exports=function(r){return r.end+r.size/1e6}});var fA=z((ner,NK)=>{"use strict";var zK=ll(),EPe=d3(),PPe=RK(),RPe=p2();NK.exports=function(r,t){var a=EPe(r,t),n=a[0].z;PPe(t,n);var i=t.contours,o=zK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=RPe(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return zK.calc(r,t,{vals:l,cLetter:"z"}),a}});var C3={};qt(C3,{BOTTOMSTART:()=>FPe,CHOOSESADDLE:()=>OPe,LABELDISTANCE:()=>UPe,LABELINCREASE:()=>GPe,LABELMAX:()=>VPe,LABELMIN:()=>YPe,LABELOPTIMIZER:()=>jPe,LEFTSTART:()=>NPe,NEWDELTA:()=>BPe,RIGHTSTART:()=>IPe,SADDLEREMAINDER:()=>HPe,TOPSTART:()=>zPe});var FPe,zPe,NPe,IPe,BPe,OPe,HPe,UPe,GPe,YPe,VPe,jPe,D3=St(()=>{"use strict";FPe=[1,9,13,104,713],zPe=[4,6,7,104,713],NPe=[8,12,14,208,1114],IPe=[2,3,11,208,1114],BPe=[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],OPe={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},HPe={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},UPe=2,GPe=10,YPe=3,VPe=10,jPe={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var BK=z((ier,IK)=>{"use strict";var E3=(D3(),ze(C3));IK.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;l<a-1;l++)for(u=[],l===0&&(u=u.concat(E3.BOTTOMSTART)),l===a-2&&(u=u.concat(E3.TOPSTART)),o=0;o<n-1;o++)for(s=u.slice(),o===0&&(s=s.concat(E3.LEFTSTART)),o===n-2&&(s=s.concat(E3.RIGHTSTART)),f=o+","+l,c=[[t[l][o],t[l][o+1]],[t[l+1][o],t[l+1][o+1]]],p=0;p<r.length;p++)d=r[p],v=WPe(d.level,c),v&&(d.crossings[f]=v,s.indexOf(v)!==-1&&(d.starts.push([o,l]),i&&s.indexOf(v,s.indexOf(v)+1)!==-1&&d.starts.push([o,l])))};function WPe(e,r){var t=(r[0][0]>e?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var GK=z((oer,UK)=>{"use strict";var P3=ke(),rv=(D3(),ze(C3));UK.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o<r.length;o++){for(l=r[o],s=0;s<l.starts.length;s++)i=l.starts[s],OK(l,i,"edge",t,a);for(n=0;Object.keys(l.crossings).length&&n<1e4;)n++,i=Object.keys(l.crossings)[0].split(",").map(Number),OK(l,i,void 0,t,a);n===1e4&&P3.log("Infinite loop in contour?")}};function m2(e,r,t,a){return Math.abs(e[0]-r[0])<t&&Math.abs(e[1]-r[1])<a}function XPe(e,r){var t=e[2]-r[2],a=e[3]-r[3];return Math.sqrt(t*t+a*a)}function OK(e,r,t,a,n){var i=r.join(","),o=e.crossings[i],l=ZPe(o,t,r),s=[HK(e,r,[-l[0],-l[1]])],u=e.z.length,f=e.z[0].length,c=r.slice(),v=l.slice(),d;for(d=0;d<1e4;d++){if(o>20?(o=rv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=rv.SADDLEREMAINDER[o]):delete e.crossings[i],l=rv.NEWDELTA[o],!l){P3.log("Found bad marching index:",o,r,e.level);break}s.push(HK(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),m2(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),y=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(y||t&&p)break;o=e.crossings[i]}d===1e4&&P3.log("Infinite loop in contour?");var m=m2(s[0],s[s.length-1],a,n),b=0,A=.2*e.smoothing,w=[],x=0,_,k,T,q,C,E,P,R,N,I,O;for(d=1;d<s.length;d++)P=XPe(s[d],s[d-1]),b+=P,w.push(P);var U=b/w.length*A;function Y(W){return s[W%s.length]}for(d=s.length-2;d>=x;d--)if(_=w[d],_<U){for(T=0,k=d-1;k>=x&&_+w[k]<U;k--)_+=w[k];if(m&&d===s.length-2)for(T=0;T<k&&_+w[T]<U;T++)_+=w[T];C=d-k+T+1,E=Math.floor((d+k+T+2)/2),!m&&d===s.length-2?q=s[s.length-1]:!m&&k===-1?q=s[0]:C%2?q=Y(E):q=[(Y(E)[0]+Y(E+1)[0])/2,(Y(E)[1]+Y(E+1)[1])/2],s.splice(k+1,d-k+1,q),d=k+1,T&&(x=T),m&&(d===s.length-2?s[T]=s[s.length-1]:d===0&&(s[s.length-1]=s[0]))}for(s.splice(0,x),d=0;d<s.length;d++)s[d].length=2;if(!(s.length<2))if(m)s.pop(),e.paths.push(s);else{t||P3.log("Unclosed interior contour?",e.level,c.join(","),s.join("L"));var G=!1;for(R=0;R<e.edgepaths.length;R++)if(I=e.edgepaths[R],!G&&m2(I[0],s[s.length-1],a,n)){s.pop(),G=!0;var V=!1;for(N=0;N<e.edgepaths.length;N++)if(O=e.edgepaths[N],m2(O[O.length-1],s[0],a,n)){V=!0,s.shift(),e.edgepaths.splice(R,1),N===R?e.paths.push(s.concat(O)):(N>R&&N--,e.edgepaths[N]=O.concat(s,I));break}V||(e.edgepaths[R]=s.concat(I))}for(R=0;R<e.edgepaths.length&&!G;R++)I=e.edgepaths[R],m2(I[I.length-1],s[0],a,n)&&(s.shift(),e.edgepaths[R]=I.concat(s),G=!0);G||e.edgepaths.push(s)}}function ZPe(e,r,t){var a=0,n=0;return e>20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:rv.BOTTOMSTART.indexOf(e)!==-1?n=1:rv.LEFTSTART.indexOf(e)!==-1?a=1:rv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function HK(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var WK=z((ler,jK)=>{"use strict";var cA=(S3(),ze(k3)),$Pe=Br();jK.exports={"[]":YK("[]"),"][":YK("]["),">":vA(">"),"<":vA("<"),"=":vA("=")};function VK(e,r){var t=Array.isArray(r),a;function n(i){return $Pe(i)?+i:null}return cA.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):cA.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:cA.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function YK(e){return function(r){r=VK(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function vA(e){return function(r){return r=VK(e,r),{start:r,end:1/0,size:1/0}}}});var $K=z((ser,ZK)=>{"use strict";var XK=ke(),JPe=WK(),KPe=p2();ZK.exports=function(r,t,a){for(var n=r.type==="constraint"?JPe[r._operation](r.value):r,i=n.size,o=[],l=KPe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f<l;f+=i)if(o.push(XK.extendFlat({level:f,crossings:{},starts:[],edgepaths:[],paths:[],z:a.z,smoothing:a.trace.line.smoothing},u)),o.length>1e3){XK.warn("Too many contours, clipping at 1000",r);break}return o}});var QK=z((uer,KK)=>{"use strict";var tv=ke();KK.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&tv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t<a.edgepaths.length;t++)a.edgepaths[t]=i(a.edgepaths[t]);for(t=0;t<a.paths.length;t++)a.paths[t]=i(a.paths[t]);for(t=0;t<a.starts.length;t++)a.starts[t]=i(a.starts[t]);return e;case"][":var l=i;i=o,o=l;case"[]":for(e.length!==2&&tv.warn("Contour data invalid for the specified inequality range operation."),a=JK(e[0]),n=JK(e[1]),t=0;t<a.edgepaths.length;t++)a.edgepaths[t]=i(a.edgepaths[t]);for(t=0;t<a.paths.length;t++)a.paths[t]=i(a.paths[t]);for(t=0;t<a.starts.length;t++)a.starts[t]=i(a.starts[t]);for(;n.edgepaths.length;)a.edgepaths.push(o(n.edgepaths.shift()));for(;n.paths.length;)a.paths.push(o(n.paths.shift()));for(;n.starts.length;)a.starts.push(o(n.starts.shift()));return[a]}};function JK(e){return tv.extendFlat({},e,{edgepaths:tv.extendDeep([],e.edgepaths),paths:tv.extendDeep([],e.paths),starts:tv.extendDeep([],e.starts)})}});var rQ=z((fer,eQ)=>{"use strict";eQ.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;n<e.length;n++){var o=e[n];o.prefixBoundary=!o.edgepaths.length&&(i>o.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n<s;n++)f=Math.min(f,a[n][0]),f=Math.min(f,a[n][l-1]),u=Math.max(u,a[n][0]),u=Math.max(u,a[n][l-1]);for(n=1;n<l-1;n++)f=Math.min(f,a[0][n]),f=Math.min(f,a[s-1][n]),u=Math.max(u,a[0][n]),u=Math.max(u,a[s-1][n]);var c=r.value,v,d;switch(r._operation){case">":c>u&&(t.prefixBoundary=!0);break;case"<":(c<f||t.starts.length&&c===f)&&(t.prefixBoundary=!0);break;case"[]":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),(d<f||v>u||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),v<f&&d>u&&(t.prefixBoundary=!0);break}break}}});var hA=z(Fn=>{"use strict";var g2=Pr(),Xa=ke(),os=Jr(),QPe=ll(),nQ=Fa(),tQ=Yr(),aQ=i0(),eRe=y3(),iQ=BK(),oQ=GK(),rRe=$K(),tRe=QK(),lQ=rQ(),y2=(D3(),ze(C3)),kl=y2.LABELOPTIMIZER;Fn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Xa.makeTraceGroups(n,a,"contour").each(function(l){var s=g2.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=rRe(d,t,u),y=Xa.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),eRe(r,t,m,y),iQ(p),oQ(p);var b=i.c2p(c[0],!0),A=i.c2p(c[c.length-1],!0),w=o.c2p(v[0],!0),x=o.c2p(v[v.length-1],!0),_=[[b,x],[A,x],[A,w],[b,w]],k=p;d.type==="constraint"&&(k=tRe(p,d._operation)),aRe(s,_,d),nRe(s,k,_,d),iRe(s,p,r,u,d),lRe(s,t,r,u,_)})};function aRe(e,r,t){var a=Xa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function nRe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&lQ(r,a);var o=Xa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+sQ(s,t);u?g2.select(this).attr("d",u).style("stroke","none"):g2.select(this).remove()})}function sQ(e,r){var t="",a=0,n=e.edgepaths.map(function(b,A){return A}),i=!0,o,l,s,u,f,c;function v(b){return Math.abs(b[1]-r[0][1])<.01}function d(b){return Math.abs(b[1]-r[2][1])<.01}function p(b){return Math.abs(b[0]-r[0][0])<.01}function y(b){return Math.abs(b[0]-r[2][0])<.01}for(;n.length;){for(c=os.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Xa.log("Missing end?",a,e);break}for(v(o)&&!y(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:y(o)&&(l=r[2]),f=0;f<e.edgepaths.length;f++){var m=e.edgepaths[f][0];Math.abs(o[0]-l[0])<.01?Math.abs(o[0]-m[0])<.01&&(m[1]-o[1])*(l[1]-m[1])>=0&&(l=m,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(l[0]-m[0])>=0&&(l=m,u=f):Xa.log("endpt to newendpt is not vert. or horz.",o,l,m)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Xa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;a<e.paths.length;a++)t+=os.smoothclosed(e.paths[a],e.smoothing);return t}function iRe(e,r,t,a,n){var i=t._context.staticPlot,o=Xa.ensureSingle(e,"g","contourlines"),l=n.showlines!==!1,s=n.showlabels,u=l&&s,f=Fn.createLines(o,l||s,r,i),c=Fn.createLineClip(o,u,t,a.trace.uid),v=e.selectAll("g.contourlabels").data(s?[0]:[]);if(v.exit().remove(),v.enter().append("g").classed("contourlabels",!0),s){var d=[],p=[];Xa.clearLocationCache();var y=Fn.labelFormatter(t,a),m=os.tester.append("text").attr("data-notex",1).call(os.font,n.labelfont),b=r[0].xaxis,A=r[0].yaxis,w=b._length,x=A._length,_=b.range,k=A.range,T=Xa.aggNums(Math.min,null,a.x),q=Xa.aggNums(Math.max,null,a.x),C=Xa.aggNums(Math.min,null,a.y),E=Xa.aggNums(Math.max,null,a.y),P=Math.max(b.c2p(T,!0),0),R=Math.min(b.c2p(q,!0),w),N=Math.max(A.c2p(E,!0),0),I=Math.min(A.c2p(C,!0),x),O={};_[0]<_[1]?(O.left=P,O.right=R):(O.left=R,O.right=P),k[0]<k[1]?(O.top=N,O.bottom=I):(O.top=I,O.bottom=N),O.middle=(O.top+O.bottom)/2,O.center=(O.left+O.right)/2,d.push([[O.left,O.top],[O.right,O.top],[O.right,O.bottom],[O.left,O.bottom]]);var U=Math.sqrt(w*w+x*x),Y=y2.LABELDISTANCE*U/Math.max(1,r.length/y2.LABELINCREASE);f.each(function(G){var V=Fn.calcTextOpts(G.level,y,m,t);g2.select(this).selectAll("path").each(function(){var W=this,j=Xa.getVisibleSegment(W,O,V.height/2);if(j&&!(j.len<(V.width+V.height)*y2.LABELMIN))for(var J=Math.min(Math.ceil(j.len/Y),y2.LABELMAX),te=0;te<J;te++){var ae=Fn.findBestTextLocation(W,j,V,p,O);if(!ae)break;Fn.addLabelData(ae,V,p,d)}})}),m.remove(),Fn.drawLabels(v,p,t,c,u?d:null)}s&&!l&&f.remove()}Fn.createLines=function(e,r,t,a){var n=t[0].smoothing,i=e.selectAll("g.contourlevel").data(r?t:[]);if(i.exit().remove(),i.enter().append("g").classed("contourlevel",!0),r){var o=i.selectAll("path.openline").data(function(s){return s.pedgepaths||s.edgepaths});o.exit().remove(),o.enter().append("path").classed("openline",!0),o.attr("d",function(s){return os.smoothopen(s,n)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke");var l=i.selectAll("path.closedline").data(function(s){return s.ppaths||s.paths});l.exit().remove(),l.enter().append("path").classed("closedline",!0),l.attr("d",function(s){return os.smoothclosed(s,n)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke")}return i};Fn.createLineClip=function(e,r,t,a){var n=t._fullLayout._clips,i=r?"clipline"+a:null,o=n.selectAll("#"+i).data(r?[0]:[]);return o.exit().remove(),o.enter().append("clipPath").classed("contourlineclip",!0).attr("id",i),os.setClipUrl(e,i,t),o};Fn.labelFormatter=function(e,r){var t=e._fullLayout,a=r.trace,n=a.contours,i={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(n.labelformat)i.tickformat=n.labelformat,aQ(i,t);else{var o=QPe.extractOpts(a);if(o&&o.colorbar&&o.colorbar._axis)i=o.colorbar._axis;else{if(n.type==="constraint"){var l=n.value;Xa.isArrayOrTypedArray(l)?i.range=[l[0],l[l.length-1]]:i.range=[l,l]}else i.range=[n.start,n.end],i.nticks=(n.end-n.start)/n.size;i.range[0]===i.range[1]&&(i.range[1]+=i.range[0]||1),i.nticks||(i.nticks=1e3),aQ(i,t),tQ.prepTicks(i),i._tmin=null,i._tmax=null}}return function(s){return tQ.tickText(i,s).text}};Fn.calcTextOpts=function(e,r,t,a){var n=r(e);t.text(n).call(nQ.convertToTspans,a);var i=t.node(),o=os.bBox(i,!0);return{text:n,width:o.width,height:o.height,fontSize:+i.style["font-size"].replace("px",""),level:e,dy:(o.top+o.bottom)/2}};Fn.findBestTextLocation=function(e,r,t,a,n){var i=t.width,o,l,s,u,f;r.isClosed?(l=r.len/kl.INITIALSEARCHPOINTS,o=r.min+l/2,s=r.max):(l=(r.len-i)/(kl.INITIALSEARCHPOINTS+1),o=r.min+l+i/2,s=r.max-(l+i)/2);for(var c=1/0,v=0;v<kl.ITERATIONS;v++){for(var d=o;d<s;d+=l){var p=Xa.getTextLocation(e,r.total,d,i),y=oRe(p,t,a,n);y<c&&(c=y,f=p,u=d)}if(c>kl.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=kl.MAXCOST)return f};function oRe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=kl.EDGECOST*(1/(c-1)+1/(v-1));d+=kl.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,b=l+f,A=0;A<t.length;A++){var w=t[A],x=Math.cos(w.theta)*w.width/2,_=Math.sin(w.theta)*w.width/2,k=Xa.segmentDistance(p,y,m,b,w.x-x,w.y-_,w.x+x,w.y+_)*2/(r.height+w.height),T=w.level===r.level,q=T?kl.SAMELEVELDISTANCE:1;if(k<=q)return 1/0;var C=kl.NEIGHBORCOST*(T?kl.SAMELEVELFACTOR:1);d+=C/(k-q)}return d}Fn.addLabelData=function(e,r,t,a){var n=r.fontSize,i=r.width+n/3,o=Math.max(0,r.height-n/3),l=e.x,s=e.y,u=e.theta,f=Math.sin(u),c=Math.cos(u),v=function(p,y){return[l+p*c-y*f,s+p*f+y*c]},d=[v(-i/2,-o/2),v(-i/2,o/2),v(i/2,o/2),v(i/2,-o/2)];t.push({text:r.text,x:l,y:s,dy:r.dy,theta:u,level:r.level,width:i,height:o}),a.push(d)};Fn.drawLabels=function(e,r,t,a,n){var i=e.selectAll("text").data(r,function(u){return u.text+","+u.x+","+u.y+","+u.theta});if(i.exit().remove(),i.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(u){var f=u.x+Math.sin(u.theta)*u.dy,c=u.y-Math.cos(u.theta)*u.dy;g2.select(this).text(u.text).attr({x:f,y:c,transform:"rotate("+180*u.theta/Math.PI+" "+f+" "+c+")"}).call(nQ.convertToTspans,t)}),n){for(var o="",l=0;l<n.length;l++)o+="M"+n[l].join("L")+"Z";var s=Xa.ensureSingle(a,"path","");s.attr("d",o)}};function lRe(e,r,t,a,n){var i=a.trace,o=t._fullLayout._clips,l="clip"+i.uid,s=o.selectAll("#"+l).data(i.connectgaps?[]:[0]);if(s.enter().append("clipPath").classed("contourclip",!0).attr("id",l),s.exit().remove(),i.connectgaps===!1){var u={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:r.xaxis,yaxis:r.yaxis,x:a.x,y:a.y,z:sRe(a),smoothing:0};iQ([u]),oQ([u]),lQ([u],{type:"levels"});var f=Xa.ensureSingle(s,"path","");f.attr("d",(u.prefixBoundary?"M"+n.join("L")+"Z":"")+sQ(u,n))}else l=null;os.setClipUrl(e,l,t)}function sRe(e){var r=e.trace._emptypoints,t=[],a=e.z.length,n=e.z[0].length,i,o=[],l;for(i=0;i<n;i++)o.push(1);for(i=0;i<a;i++)t.push(o.slice());for(i=0;i<r.length;i++)l=r[i],t[l[0]][l[1]]=0;return e.zmask=t,t}});var pA=z((ver,uQ)=>{"use strict";var uRe=Pr(),dA=ll(),fRe=p2();uQ.exports=function(r){var t=r.contours,a=t.start,n=fRe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=dA.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?dA.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,y=s.min,m=s.max;if(t.coloring==="heatmap"){for(p=0;p<f;p++)d=u[p],c[p]=d[0]*(m-y)+y,v[p]=d[1];var b=uRe.extent([y,m,t.start,t.start+i*(o-1)]),A=b[y<m?0:1],w=b[y<m?1:0];A!==y&&(c.splice(0,0,A),v.splice(0,0,v[0])),w!==m&&(c.push(w),v.push(v[v.length-1]))}else{var x=r._input&&typeof r._input.zmin=="number"&&typeof r._input.zmax=="number";for(x&&(a<=y||n>=m)&&(a<=y&&(a=y),n>=m&&(n=m),o=Math.floor((n-a)/i)+1,l=0),p=0;p<f;p++)d=u[p],c[p]=(d[0]*(o+l-1)-l/2)*i+a,v[p]=d[1];(x||r.autocontour)&&(c[0]>y&&(c.unshift(y),v.unshift(v[0])),c[c.length-1]<m&&(c.push(m),v.push(v[v.length-1])))}return dA.makeColorScaleFunc({domain:c,range:v},{noNumericCheck:!0})}});var mA=z((her,cQ)=>{"use strict";var R3=Pr(),fQ=Jr(),cRe=g3(),vRe=pA();cQ.exports=function(r){var t=R3.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=R3.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?vRe(i):null;n.selectAll("g.contourlevel").each(function(m){R3.select(this).selectAll("path").call(fQ.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){fQ.font(R3.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(m.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var y;n.selectAll("g.contourfill path").style("fill",function(m){return y===void 0&&(y=m.level),d(m.level+.5*s)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",d(y-.5*s))}}),cRe(r)}});var yA=z((der,hQ)=>{"use strict";var vQ=ll(),hRe=pA(),dRe=p2();function pRe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=hRe(r,{isColorbar:!0});if(o==="heatmap"){var s=vQ.extractOpts(r);t._fillgradient=s.reversescale?vQ.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:dRe(a),size:i}}hQ.exports={min:"zmin",max:"zmax",calc:pRe}});var gA=z((per,dQ)=>{"use strict";var F3=qr(),mRe=x3();dQ.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=mRe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&F3.opacity(s.fillcolor)?l.color=F3.addOpacity(s.fillcolor,1):s.contours.showlines&&F3.opacity(s.line.color)&&(l.color=F3.addOpacity(s.line.color,1)))}),o}});var mQ=z((mer,pQ)=>{"use strict";pQ.exports={attributes:nA(),supplyDefaults:DK(),crossTraceDefaults:A3(),calc:fA(),plot:hA().plot,layerName:"contourlayer",style:mA(),colorbar:yA(),hoverPoints:gA(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:io(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var gQ=z((yer,yQ)=>{"use strict";yQ.exports=mQ()});var MQ=z((ger,TQ)=>{"use strict";var bQ=Br(),yRe=oA(),wQ=qr(),xQ=wQ.addOpacity,gRe=wQ.opacity,AQ=(S3(),ze(k3)),_Q=ke().isArrayOrTypedArray,bRe=AQ.CONSTRAINT_REDUCTION,xRe=AQ.COMPARISON_OPS2;TQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=bRe[c],_Re(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",xQ((r.line||{}).color||i,.5))),s){var v=f&&gRe(f)?xQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),yRe(a,n,u,o)};function _Re(e,r){var t;xRe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),_Q(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:bQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),bQ(r.value)||(_Q(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var qQ=z((ber,SQ)=>{"use strict";var bA=ke(),wRe=R9(),ARe=T0(),TRe=MQ(),MRe=iA(),kRe=lA(),SRe=f2(),kQ=L3();SQ.exports=function(r,t,a,n){function i(u,f){return bA.coerce(r,t,kQ,u,f)}function o(u){return bA.coerce2(r,t,kQ,u)}var l=wRe(r,t,i,n);if(!l){t.visible=!1;return}ARe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate"),i("hovertemplatefallback");var s=i("contours.type")==="constraint";i("connectgaps",bA.isArray1D(t.z)),s?TRe(r,t,i,n,a):(MRe(r,t,i,o),kRe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&SRe(i,n),i("zorder")}});var CQ=z((xer,LQ)=>{"use strict";LQ.exports={attributes:L3(),supplyDefaults:qQ(),calc:fA(),plot:hA().plot,style:mA(),colorbar:yA(),hoverPoints:gA(),moduleType:"trace",name:"contour",basePlotModule:io(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var EQ=z((_er,DQ)=>{"use strict";DQ.exports=CQ()});var xA=z((wer,zQ)=>{"use strict";var{hovertemplateAttrs:qRe,texttemplateAttrs:LRe,templatefallbackAttrs:PQ}=di(),CRe=Cy(),Di=Ji(),DRe=On(),RQ=ol(),ERe=Bi().dash,nu=Mt().extendFlat,vo=Di.marker,b2=Di.line,FQ=vo.line;zQ.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:nu({},Di.mode,{dflt:"markers"}),text:nu({},Di.text,{}),texttemplate:LRe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:PQ({editType:"plot"}),hovertext:nu({},Di.hovertext,{}),line:{color:b2.color,width:b2.width,dash:ERe,backoff:b2.backoff,shape:nu({},b2.shape,{values:["linear","spline"]}),smoothing:b2.smoothing,editType:"calc"},connectgaps:Di.connectgaps,cliponaxis:Di.cliponaxis,fill:nu({},Di.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:CRe(),marker:nu({symbol:vo.symbol,opacity:vo.opacity,angle:vo.angle,angleref:vo.angleref,standoff:vo.standoff,maxdisplayed:vo.maxdisplayed,size:vo.size,sizeref:vo.sizeref,sizemin:vo.sizemin,sizemode:vo.sizemode,line:nu({width:FQ.width,dash:FQ.dash,editType:"calc"},RQ("marker.line")),gradient:vo.gradient,editType:"calc"},RQ("marker")),textfont:Di.textfont,textposition:Di.textposition,selected:Di.selected,unselected:Di.unselected,hoverinfo:nu({},DRe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:Di.hoveron,hovertemplate:qRe(),hovertemplatefallback:PQ()}});var OQ=z((Aer,BQ)=>{"use strict";var NQ=ke(),PRe=(wd(),ze(_d)),av=ri(),RRe=Rw(),FRe=Fw(),IQ=zw(),zRe=Nw(),NRe=Iw(),IRe=xA();BQ.exports=function(r,t,a,n){function i(v,d){return NQ.coerce(r,t,IRe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var f=u<PRe.PTS_LINESONLY?"lines+markers":"lines";i("mode",f),av.hasMarkers(t)&&RRe(r,t,a,n,i,{gradient:!0}),av.hasLines(t)&&(FRe(r,t,a,n,i,{backoff:!0}),IQ(r,t,i),i("connectgaps")),av.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),zRe(r,t,n,i));var c=[];(av.hasMarkers(t)||av.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),c.push("points")),i("fill"),t.fill!=="none"&&(NRe(r,t,a,i),av.hasLines(t)||IQ(r,t,i)),(t.fill==="tonext"||t.fill==="toself")&&c.push("fills"),i("hoveron",c.join("+")||"points"),NQ.coerceSelectionMarkerOpacity(t,i)}});var UQ=z((Ter,HQ)=>{"use strict";var _A=Yr();HQ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=_A.tickText(i.aaxis,r.a,!0).text,n.bLabel=_A.tickText(i.baxis,r.b,!0).text,n.cLabel=_A.tickText(i.caxis,r.c,!0).text,n}});var jQ=z((Mer,VQ)=>{"use strict";var wA=Br(),BRe=Hw(),ORe=og(),HRe=lg(),URe=sg().calcMarkerSize,GQ=["a","b","c"],YQ={a:["b","c"],b:["a","c"],c:["a","b"]};VQ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s<GQ.length;s++)if(f=GQ[s],!o[f]){for(v=o[YQ[f][0]],d=o[YQ[f][1]],c=new Array(v.length),u=0;u<v.length;u++)c[u]=i-v[u]-d[u];o[f]=c}var p=t._length,y=new Array(p),m,b,A,w,x,_;for(s=0;s<p;s++)m=o.a[s],b=o.b[s],A=o.c[s],wA(m)&&wA(b)&&wA(A)?(m=+m,b=+b,A=+A,w=n/(m+b+A),w!==1&&(m*=w,b*=w,A*=w),_=m,x=A-b,y[s]={x,y:_,a:m,b,c:A},l&&(y[s].id=l[s])):y[s]={x:!1,y:!1};return URe(t,p),BRe(r,t),ORe(y,t),HRe(y,t),y}});var XQ=z((ker,WQ)=>{"use strict";var GRe=e8();WQ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u<a.length;u++){var f=a[u];f.length&&(f[0].trace._xA=i,f[0].trace._yA=o)}GRe(r,l,a,s)}});var $Q=z((Ser,ZQ)=>{"use strict";var YRe=o8();ZQ.exports=function(r,t,a,n){var i=YRe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var y=v._module.formatLabels(c,v,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var m=c.hi||v.hoverinfo,b=[];function A(x,_){b.push(x._hovertitle+": "+_)}if(!v.hovertemplate){var w=m.split("+");w.indexOf("all")!==-1&&(w=["a","b","c"]),w.indexOf("a")!==-1&&A(d.aaxis,o.aLabel),w.indexOf("b")!==-1&&A(d.baxis,o.bLabel),w.indexOf("c")!==-1&&A(d.caxis,o.cLabel)}return o.extraText=b.join("<br>"),o.hovertemplate=v.hovertemplate,i}});var KQ=z((qer,JQ)=>{"use strict";JQ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var uee=z((Ler,see)=>{"use strict";var nee=Pr(),AA=Tr(),ls=ke(),Sl=ls.strTranslate,z3=ls._,Bf=qr(),N3=Jr(),x2=i0(),TA=Mt().extendFlat,VRe=ma(),iu=Yr(),QQ=Vi(),eee=Un(),iee=df(),ree=iee.freeMode,jRe=iee.rectMode,MA=n0(),WRe=xl().prepSelect,XRe=xl().selectOnClick,ZRe=xl().clearOutline,$Re=xl().clearSelectionsCache,oee=(Pa(),ze(Ea));function lee(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}see.exports=lee;var ql=lee.prototype;ql.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};ql.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;i<e.length;i++){var o=e[i][0].trace;if(o.cliponaxis===!1){t._hasClipOnAxisFalse=!0;break}}t.updateLayers(a),t.adjustLayout(a,n),VRe.generalUpdatePerTraceModule(t.graphDiv,t,e,a),t.layers.plotbg.select("path").call(Bf.fill,a.bgcolor)};ql.makeFramework=function(e){var r=this,t=r.graphDiv,a=e[r.id],n=r.clipId="clip"+r.layoutId+r.id,i=r.clipIdRelative="clip-relative"+r.layoutId+r.id;r.clipDef=ls.ensureSingleById(e._clips,"clipPath",n,function(o){o.append("path").attr("d","M0,0Z")}),r.clipDefRelative=ls.ensureSingleById(e._clips,"clipPath",i,function(o){o.append("path").attr("d","M0,0Z")}),r.plotContainer=ls.ensureSingle(r.container,"g",r.id),r.updateLayers(a),N3.setClipUrl(r.layers.backplot,n,t),N3.setClipUrl(r.layers.grids,n,t)};ql.updateFx=function(e){e._ternarylayer.selectAll("g.toplevel").style("cursor",e.dragmode==="pan"?"move":"crosshair")};ql.updateLayers=function(e){var r=this,t=r.layers,a=["draglayer","plotbg","backplot","grids"];e.aaxis.layer==="below traces"&&a.push("aaxis","aline"),e.baxis.layer==="below traces"&&a.push("baxis","bline"),e.caxis.layer==="below traces"&&a.push("caxis","cline"),a.push("frontplot"),e.aaxis.layer==="above traces"&&a.push("aaxis","aline"),e.baxis.layer==="above traces"&&a.push("baxis","bline"),e.caxis.layer==="above traces"&&a.push("caxis","cline");var n=r.plotContainer.selectAll("g.toplevel").data(a,String),i=["agrid","bgrid","cgrid"];n.enter().append("g").attr("class",function(o){return"toplevel "+o}).each(function(o){var l=nee.select(this);t[o]=l,o==="frontplot"?l.append("g").classed("scatterlayer",!0):o==="backplot"?l.append("g").classed("maplayer",!0):o==="plotbg"?l.append("path").attr("d","M0,0Z"):o==="aline"||o==="bline"||o==="cline"?l.append("path"):o==="grids"&&i.forEach(function(s){t[s]=l.append("g").classed("grid "+s,!0)})}),n.order()};var nv=Math.sqrt(4/3);ql.adjustLayout=function(e,r){var t=this,a=e.domain,n=(a.x[0]+a.x[1])/2,i=(a.y[0]+a.y[1])/2,o=a.x[1]-a.x[0],l=a.y[1]-a.y[0],s=o*r.w,u=l*r.h,f=e.sum,c=e.aaxis.min,v=e.baxis.min,d=e.caxis.min,p,y,m,b,A,w;s>nv*u?(b=u,m=b*nv):(m=s,b=m/nv),A=o*m/s,w=l*b/u,p=r.l+r.w*n-m/2,y=r.t+r.h*(1-i)-b/2,t.x0=p,t.y0=y,t.w=m,t.h=b,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-A/2,n+A/2],_id:"x"},x2(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(I){return I.a>=t.aaxis.range[0]&&I.a<=t.aaxis.range[1]&&I.b>=t.baxis.range[1]&&I.b<=t.baxis.range[0]&&I.c>=t.caxis.range[1]&&I.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-w/2,i+w/2],_id:"y"},x2(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var x=t.yaxis.domain[0],_=t.aaxis=TA({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:m});x2(_,t.graphDiv._fullLayout),_.setScale();var k=t.baxis=TA({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});x2(k,t.graphDiv._fullLayout),k.setScale();var T=t.caxis=TA({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:m});x2(T,t.graphDiv._fullLayout),T.setScale();var q="M"+p+","+(y+b)+"h"+m+"l-"+m/2+",-"+b+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var C="M0,"+b+"h"+m+"l-"+m/2+",-"+b+"Z";t.clipDefRelative.select("path").attr("d",C);var E=Sl(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),t.clipDefRelative.select("path").attr("transform",null);var P=Sl(p-k._offset,y+b);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Sl(p+m/2,y)+"rotate(30)"+Sl(0,-_._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var N=Sl(p+m/2,y)+"rotate(-30)"+Sl(0,-T._offset);t.layers.caxis.attr("transform",N),t.layers.cgrid.attr("transform",N),t.drawAxes(!0),t.layers.aline.select("path").attr("d",_.showline?"M"+p+","+(y+b)+"l"+m/2+",-"+b:"M0,0").call(Bf.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(y+b)+"h"+m:"M0,0").call(Bf.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",T.showline?"M"+(p+m/2)+","+y+"l"+m/2+","+b:"M0,0").call(Bf.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),N3.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};ql.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.slice(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=MA.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:z3(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=MA.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:z3(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=MA.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:z3(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};ql.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=JRe(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=iu.calcTicks(e),c=iu.clipEnds(e,f),v=iu.makeTransTickFn(e),d=iu.getTickSigns(e)[2],p=ls.deg2rad(l),y=d*(e.linewidth||1)/2,m=d*e.ticklen,b=r.w,A=r.h,w=n==="b"?"M0,"+y+"l"+Math.sin(p)*m+","+Math.cos(p)*m:"M"+y+",0l"+Math.cos(p)*m+","+-Math.sin(p)*m,x={a:"M0,0l"+A+",-"+b/2,b:"M0,0l-"+b/2+",-"+A,c:"M0,0l-"+A+","+b/2}[n];iu.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:w,transFn:v,crisp:!1}),iu.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:x,transFn:v,crisp:!1}),iu.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:iu.makeLabelFns(e,0,l)})};function JRe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ya=oee.MINZOOM/2+.87,KRe="m-0.87,.5h"+Ya+"v3h-"+(Ya+5.2)+"l"+(Ya/2+2.6)+",-"+(Ya*.87+4.5)+"l2.6,1.5l-"+Ya/2+","+Ya*.87+"Z",QRe="m0.87,.5h-"+Ya+"v3h"+(Ya+5.2)+"l-"+(Ya/2+2.6)+",-"+(Ya*.87+4.5)+"l-2.6,1.5l"+Ya/2+","+Ya*.87+"Z",eFe="m0,1l"+Ya/2+","+Ya*.87+"l2.6,-1.5l-"+(Ya/2+2.6)+",-"+(Ya*.87+4.5)+"l-"+(Ya/2+2.6)+","+(Ya*.87+4.5)+"l2.6,1.5l"+Ya/2+",-"+Ya*.87+"Z",rFe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",tee=!0;ql.clearOutline=function(){$Re(this.dragOptions),ZRe(this.dragOptions.gd)};ql.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,N){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var I=e.dragOptions.dragmode=t._fullLayout.dragmode;ree(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=b,e.dragOptions.doneFn=T,A(P,R,N)):I==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=b,e.dragOptions.doneFn=E,q(),e.clearOutline(t)):(jRe(I)||ree(I))&&WRe(P,R,N,e.dragOptions,I)}};var o,l,s,u,f,c,v,d,p,y;function m(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function b(P,R){var N=t._fullLayout.clickmode;aee(t),P===2&&(t.emit("plotly_doubleclick",null),AA.call("_guiRelayout",t,m({a:0,b:0,c:0}))),N.indexOf("select")>-1&&P===1&&XRe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),N.indexOf("event")>-1&&eee.click(t,R,e.id)}function A(P,R,N){var I=r.getBoundingClientRect();o=R-I.left,l=N-I.top,t._fullLayout._calcInverseTransform(t);var O=t._fullLayout._invTransform,U=ls.apply3DTransform(O)(o,l);o=U[0],l=U[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Bf.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Sl(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),y=a.append("path").attr("class","zoombox-corners").attr("transform",Sl(e.x0,e.y0)).style({fill:Bf.background,stroke:Bf.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function w(P,R){return 1-R/e.h}function x(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function _(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var N=o+P*n,I=l+R*i,O=Math.max(0,Math.min(1,w(o,l),w(N,I))),U=Math.max(0,Math.min(1,x(o,l),x(N,I))),Y=Math.max(0,Math.min(1,_(o,l),_(N,I))),G=(O/2+Y)*e.w,V=(1-O/2-U)*e.w,W=(G+V)/2,j=V-G,J=(1-O)*e.h,te=J-j/nv;j<oee.MINZOOM?(f=s,p.attr("d",v),y.attr("d","M0,0Z")):(f={a:s.a+O*u,b:s.b+U*u,c:s.c+Y*u},p.attr("d",v+"M"+G+","+J+"H"+V+"L"+W+","+te+"L"+G+","+J+"Z"),y.attr("d","M"+o+","+l+rFe+"M"+G+","+J+KRe+"M"+V+","+J+QRe+"M"+W+","+te+eFe)),d||(p.transition().style("fill",c>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",m(f))}function T(){aee(t),f!==s&&(AA.call("_guiRelayout",t,m(f)),tee&&t.data&&t._context.showTips&&(ls.notifier(z3(t,"Double-click to zoom back out"),"long",t),tee=!1))}function q(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function C(P,R){var N=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(N+I)/2,c:s.c-(N-I)/2};var O=[f.a,f.b,f.c].sort(ls.sorterAsc),U={a:O.indexOf(f.a),b:O.indexOf(f.b),c:O.indexOf(f.c)};O[0]<0&&(O[1]+O[0]/2<0?(O[2]+=O[0]+O[1],O[0]=O[1]=0):(O[2]+=O[0]/2,O[1]+=O[0]/2,O[0]=0),f={a:O[U.a],b:O[U.b],c:O[U.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var Y=Sl(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var G=Sl(-P,-R);e.clipDefRelative.select("path").attr("transform",G),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(N3.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function E(){AA.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){eee.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||QQ.unhover(t,P)},QQ.init(this.dragOptions)};function aee(e){nee.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var qA=z((Cer,fee)=>{"use strict";var tFe=Ii(),aFe=H0().attributes,st=Gi(),nFe=qo().overrideAll,kA=Mt().extendFlat,SA={title:{text:st.title.text,font:st.title.font},color:st.color,tickmode:st.minor.tickmode,nticks:kA({},st.nticks,{dflt:6,min:1}),tick0:st.tick0,dtick:st.dtick,tickvals:st.tickvals,ticktext:st.ticktext,ticks:st.ticks,ticklen:st.ticklen,tickwidth:st.tickwidth,tickcolor:st.tickcolor,ticklabelstep:st.ticklabelstep,showticklabels:st.showticklabels,labelalias:st.labelalias,showtickprefix:st.showtickprefix,tickprefix:st.tickprefix,showticksuffix:st.showticksuffix,ticksuffix:st.ticksuffix,showexponent:st.showexponent,exponentformat:st.exponentformat,minexponent:st.minexponent,separatethousands:st.separatethousands,tickfont:st.tickfont,tickangle:st.tickangle,tickformat:st.tickformat,tickformatstops:st.tickformatstops,hoverformat:st.hoverformat,showline:kA({},st.showline,{dflt:!0}),linecolor:st.linecolor,linewidth:st.linewidth,showgrid:kA({},st.showgrid,{dflt:!0}),gridcolor:st.gridcolor,gridwidth:st.gridwidth,griddash:st.griddash,layer:st.layer,min:{valType:"number",dflt:0,min:0}},I3=fee.exports=nFe({domain:aFe({name:"ternary"}),bgcolor:{valType:"color",dflt:tFe.background},sum:{valType:"number",dflt:1,min:0},aaxis:SA,baxis:SA,caxis:SA},"plot","from-root");I3.uirevision={valType:"any",editType:"none"};I3.aaxis.uirevision=I3.baxis.uirevision=I3.caxis.uirevision={valType:"any",editType:"none"}});var vee=z((Der,cee)=>{"use strict";var iFe=ke(),oFe=Ct(),lFe=H0().defaults;cee.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(A,w){return iFe.coerce(v,d,o,A,w)}for(var y=0;y<f;y++){var m=u[y];r[m]?v=r[m]:v=r[m]={},d=oFe.newContainer(t,m,c),n.noUirevision||p("uirevision",t.uirevision);var b={};b[s]=[y/f,(y+1)/f],lFe(d,t,p,b),n.id=m,l(v,d,p,n)}}});var mee=z((Eer,pee)=>{"use strict";var sFe=qr(),uFe=Ct(),B3=ke(),fFe=vee(),cFe=lm(),vFe=sm(),hFe=im(),dFe=nm(),pFe=u8(),dee=qA(),hee=["aaxis","baxis","caxis"];pee.exports=function(r,t,a){fFe(r,t,a,{type:"ternary",attributes:dee,handleDefaults:mFe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function mFe(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=sFe.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u<hee.length;u++)o=hee[u],l=e[o]||{},s=uFe.newContainer(r,o),s._name=o,yFe(l,s,a,r);var f=r.aaxis,c=r.baxis,v=r.caxis;f.min+c.min+v.min>=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function yFe(e,r,t,a){var n=dee[r._name];function i(d,p){return B3.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,B3.coerceFont(i,"title.font",t.font,{overrideDflt:{size:B3.bigFont(t.font.size),color:l}}),i("min"),dFe(e,r,i,"linear"),vFe(e,r,i,"linear"),cFe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),hFe(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(B3.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),pFe(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var yee=z(ho=>{"use strict";var gFe=uee(),bFe=Jp().getSubplotCalcData,xFe=ke().counterRegex,iv="ternary";ho.name=iv;var _Fe=ho.attr="subplot";ho.idRoot=iv;ho.idRegex=ho.attrRegex=xFe(iv);var wFe=ho.attributes={};wFe[_Fe]={valType:"subplotid",dflt:"ternary",editType:"calc"};ho.layoutAttributes=qA();ho.supplyLayoutDefaults=mee();ho.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[iv],i=0;i<n.length;i++){var o=n[i],l=bFe(a,iv,o),s=t[o]._subplot;s||(s=new gFe({id:o,graphDiv:r,container:t._ternarylayer.node()},t),t[o]._subplot=s),s.plot(l,t,r._promises)}};ho.clean=function(e,r,t,a){for(var n=a._subplots[iv]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove(),l.layers["a-title"].remove(),l.layers["b-title"].remove(),l.layers["c-title"].remove())}};ho.updateFx=function(e){var r=e._fullLayout;r._ternarylayer.selectAll("g.toplevel").style("cursor",r.dragmode==="pan"?"move":"crosshair")}});var bee=z((Rer,gee)=>{"use strict";gee.exports={attributes:xA(),supplyDefaults:OQ(),colorbar:Ud(),formatLabels:UQ(),calc:jQ(),plot:XQ(),style:Af().style,styleOnSelect:Af().styleOnSelect,hoverPoints:$Q(),selectPoints:l8(),eventData:KQ(),moduleType:"trace",name:"scatterternary",basePlotModule:yee(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var _ee=z((Fer,xee)=>{"use strict";xee.exports=bee()});var LA=z((zer,Aee)=>{"use strict";var ka=i3(),ov=Mt().extendFlat,wee=Eo().axisHoverFormat;Aee.exports={y:ka.y,x:ka.x,x0:ka.x0,y0:ka.y0,xhoverformat:wee("x"),yhoverformat:wee("y"),name:ov({},ka.name,{}),orientation:ov({},ka.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:ka.fillcolor,points:ov({},ka.boxpoints,{}),jitter:ov({},ka.jitter,{}),pointpos:ov({},ka.pointpos,{}),width:ov({},ka.width,{}),marker:ka.marker,text:ka.text,hovertext:ka.hovertext,hovertemplate:ka.hovertemplate,hovertemplatefallback:ka.hovertemplatefallback,quartilemethod:ka.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:ka.offsetgroup,alignmentgroup:ka.alignmentgroup,selected:ka.selected,unselected:ka.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ka.zorder}});var EA=z((Ner,Tee)=>{"use strict";var CA=o3(),DA=ke().extendFlat;Tee.exports={violinmode:DA({},CA.boxmode,{}),violingap:DA({},CA.boxgap,{}),violingroupgap:DA({},CA.boxgroupgap,{})}});var Lee=z((Ier,qee)=>{"use strict";var Mee=ke(),AFe=qr(),kee=s2(),See=LA();qee.exports=function(r,t,a,n){function i(_,k){return Mee.coerce(r,t,See,_,k)}function o(_,k){return Mee.coerce2(r,t,See,_,k)}if(kee.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",AFe.addOpacity(t.line.color,.5));kee.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),y=o("box.line.color",f),m=o("box.line.width",c),b=i("box.visible",!!(d||p||y||m));b||(t.box={visible:!1});var A=o("meanline.color",f),w=o("meanline.width",c),x=i("meanline.visible",!!(A||w));x||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var Dee=z((Ber,Cee)=>{"use strict";var TFe=ke(),MFe=EA(),kFe=x9();Cee.exports=function(r,t,a){function n(i,o){return TFe.coerce(r,t,MFe,i,o)}kFe._supply(r,t,a,n,"violin")}});var O3=z(Of=>{"use strict";var SFe=ke(),qFe={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Of.makeKDE=function(e,r,t){var a=t.length,n=qFe.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u<a;u++)s+=n((l-t[u])/i);return o*s}};Of.getPositionOnKdePath=function(e,r,t){var a,n;r.orientation==="h"?(a="y",n="x"):(a="x",n="y");var i=SFe.findPointOnPath(e.path,t,n,{pathLength:e.pathLength}),o=e.posCenterPx,l=i[a],s=r.side==="both"?2*o-l:o;return[l,s]};Of.getKdeValue=function(e,r,t){var a=e.pts.map(Of.extractVal),n=Of.makeKDE(e,r,a);return n(t)/e.posDensityScale};Of.extractVal=function(e){return e.v}});var Ree=z((Her,Pee)=>{"use strict";var PA=ke(),RA=Yr(),LFe=A9(),Eee=O3(),CFe=(jt(),ze(Zt)).BADNUM;Pee.exports=function(r,t){var a=LFe(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=RA.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f<a.length;f++){var c=a[f],v=c.pts.map(Eee.extractVal),d=c.bandwidth=EFe(t,c,v),p=c.span=PFe(t,c,i,d);if(c.min===c.max&&d===0)p=c.span=[c.min,c.max],c.density=[{v:1,t:p[0]}],c.bandwidth=d,s=Math.max(s,1);else{var y=p[1]-p[0],m=Math.ceil(y/(d/3)),b=y/m;if(!isFinite(b)||!isFinite(m))return PA.error("Something went wrong with computing the violin span"),a[0].t.empty=!0,a;var A=Eee.makeKDE(c,t,v);c.density=new Array(m+1);for(var w=0;w<c.density.length;w++){var x=p[0]+w*b,_=A(x);c.density[w]={v:_,t:x},s=Math.max(s,_)}}u=Math.max(u,v.length),o=Math.min(o,p[0]),l=Math.max(l,p[1])}var k=RA.findExtremes(i,[o,l],{padded:!0});if(t._extremes[i._id]=k,t.width)a[0].t.maxKDE=s;else{var T=n._violinScaleGroupStats,q=t.scalegroup,C=T[q];C?(C.maxKDE=Math.max(C.maxKDE,s),C.maxCount=Math.max(C.maxCount,u)):T[q]={maxKDE:s,maxCount:u}}return a[0].t.labels.kde=PA._(r,"kde:"),a};function DFe(e,r,t){var a=Math.min(r,t/1.349);return 1.059*a*Math.pow(e,-.2)}function EFe(e,r,t){var a=r.max-r.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var n=t.length,i=PA.stdev(t,n-1,r.mean);return Math.max(DFe(n,i,r.q3-r.q1),a/100)}function PFe(e,r,t,a){var n=e.spanmode,i=e.span||[],o=[r.min,r.max],l=[r.min-2*a,r.max+2*a],s;function u(c){var v=i[c],d=t.type==="multicategory"?t.r2c(v):t.d2c(v,0,e[r.valLetter+"calendar"]);return d===CFe?l[c]:d}n==="soft"?s=l:n==="hard"?s=o:s=[u(0),u(1)];var f={type:"linear",range:s};return RA.setConvert(f),f.cleanRange(),s}});var Nee=z((Uer,zee)=>{"use strict";var RFe=T9().setPositionOffset,Fee=["v","h"];zee.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o<Fee.length;o++){for(var l=Fee[o],s=l==="h"?i:n,u=[],f=0;f<a.length;f++){var c=a[f],v=c[0].t,d=c[0].trace;d.visible===!0&&d.type==="violin"&&!v.empty&&d.orientation===l&&d.xaxis===n._id&&d.yaxis===i._id&&u.push(f)}RFe("violin",r,u,s)}}});var Bee=z((Ger,Iee)=>{"use strict";var FA=Pr(),zA=ke(),FFe=Jr(),NA=M9(),zFe=Qw(),NFe=O3();Iee.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=zFe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return FFe.smoothopen(v[0],1)}zA.makeTraceGroups(n,a,"trace violins").each(function(f){var c=FA.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,m=d.bdPos,b=t[d.valLetter+"axis"],A=t[d.posLetter+"axis"],w=p.side==="both",x=w||p.side==="positive",_=w||p.side==="negative",k=c.selectAll("path.violin").data(zA.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(I){var O=FA.select(this),U=I.density,Y=U.length,G=A.c2l(I.pos+y,!0),V=A.l2p(G),W;if(p.width)W=d.maxKDE/m;else{var j=o._violinScaleGroupStats[p.scalegroup];W=p.scalemode==="count"?j.maxKDE/m*(j.maxCount/I.pts.length):j.maxKDE/m}var J,te,ae,se,$,fe,ie;if(x){for(fe=new Array(Y),se=0;se<Y;se++)ie=fe[se]={},ie[d.posLetter]=G+U[se].v/W,ie[d.valLetter]=b.c2l(U[se].t,!0);J=u(fe,p)}if(_){for(fe=new Array(Y),$=0,se=Y-1;$<Y;$++,se--)ie=fe[$]={},ie[d.posLetter]=G-U[se].v/W,ie[d.valLetter]=b.c2l(U[se].t,!0);te=u(fe,p)}if(w)ae=J+"L"+te.slice(1)+"Z";else{var ue=[V,b.c2p(U[0].t)],ce=[V,b.c2p(U[Y-1].t)];p.orientation==="h"&&(ue.reverse(),ce.reverse()),x?ae="M"+ue+"L"+J.slice(1)+"L"+ce:ae="M"+ce+"L"+te.slice(1)+"L"+ue}O.attr("d",ae),I.posCenterPx=V,I.posDensityScale=W*m,I.path=O.node(),I.pathLength=I.path.getTotalLength()/(w?2:1)});var T=p.box,q=T.width,C=(T.line||{}).width,E,P;w?(E=m*q,P=0):x?(E=[0,m*q/2],P=C*{x:1,y:-1}[d.posLetter]):(E=[m*q/2,0],P=C*{x:-1,y:1}[d.posLetter]),NA.plotBoxAndWhiskers(c,{pos:A,val:b},p,{bPos:y,bdPos:E,bPosPxOffset:P}),NA.plotBoxMean(c,{pos:A,val:b},p,{bPos:y,bdPos:E,bPosPxOffset:P});var R;!p.box.visible&&p.meanline.visible&&(R=zA.identity);var N=c.selectAll("path.meanline").data(R||[]);N.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",i?"none":"non-scaling-stroke"),N.exit().remove(),N.each(function(I){var O=b.c2p(I.mean,!0),U=NFe.getPositionOnKdePath(I,p,O);FA.select(this).attr("d",p.orientation==="h"?"M"+O+","+U[0]+"V"+U[1]:"M"+U[0]+","+O+"H"+U[1])}),NA.plotPoints(c,{x:l,y:s},p,d)})}});var Uee=z((Yer,Hee)=>{"use strict";var Oee=Pr(),lv=qr(),IFe=Af().stylePoints;Hee.exports=function(r){var t=Oee.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=Oee.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(lv.stroke,n.line.color).call(lv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(lv.stroke,l.color).call(lv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(lv.stroke,s.color),i.selectAll("path.meanline").style(f).call(lv.stroke,s.color),IFe(i,n,r)})}});var jee=z((Ver,Vee)=>{"use strict";var BFe=qr(),IA=ke(),OFe=Yr(),Gee=D9(),Yee=O3();Vee.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var y=Gee.hoverOnBoxes(r,t,a,n);if(c&&y.length>0){var m=r.xa,b=r.ya,A,w,x,_,k;s.orientation==="h"?(k=t,A="y",x=b,w="x",_=m):(k=a,A="x",x=m,w="y",_=b);var T=l[r.index];if(k>=T.span[0]&&k<=T.span[1]){var q=IA.extendFlat({},r),C=_.c2p(k,!0),E=Yee.getKdeValue(T,s,k),P=Yee.getPositionOnKdePath(T,s,C),R=x._offset,N=x._length;q[A+"0"]=P[0],q[A+"1"]=P[1],q[w+"0"]=q[w+"1"]=C,q[w+"Label"]=w+": "+OFe.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+E.toFixed(3);for(var I=0,O=0;O<y.length;O++)if(y[O].attr==="med"){I=O;break}q.spikeDistance=y[I].spikeDistance;var U=A+"Spike";q[U]=y[I][U],y[I].spikeDistance=void 0,y[I][U]=void 0,q.hovertemplate=!1,v.push(q),p={},p[A+"1"]=IA.constrain(R+P[0],R,R+N),p[A+"2"]=IA.constrain(R+P[1],R,R+N),p[w+"1"]=p[w+"2"]=_._offset+C}}f&&(v=v.concat(y))}u.indexOf("points")!==-1&&(d=Gee.hoverOnPoints(r,t,a));var Y=o.selectAll(".violinline-"+s.uid).data(p?[0]:[]);return Y.enter().append("line").classed("violinline-"+s.uid,!0).attr("stroke-width",1.5),Y.exit().remove(),Y.attr(p).call(BFe.stroke,r.color),n==="closest"?d?[d]:v:(d&&v.push(d),v)}});var Xee=z((jer,Wee)=>{"use strict";Wee.exports={attributes:LA(),layoutAttributes:EA(),supplyDefaults:Lee(),crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:Dee(),calc:Ree(),crossTraceCalc:Nee(),plot:Bee(),style:Uee(),styleOnSelect:Af().styleOnSelect,hoverPoints:jee(),selectPoints:E9(),moduleType:"trace",name:"violin",basePlotModule:io(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var $ee=z((Wer,Zee)=>{"use strict";Zee.exports=Xee()});var _2={};qt(_2,{colormodel:()=>BA});var BA,sv=St(()=>{"use strict";BA={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}});var OA={};qt(OA,{default:()=>UFe});var Jee,Kee,H3,Qee,ere,rre,tre,HFe,UFe,HA=St(()=>{"use strict";Jee=xc(Mt()),Kee=xc(On()),H3=xc(di()),Qee=xc(Ji());sv();ere=["rgb","rgba","rgba256","hsl","hsla"],rre=[],tre=[];for(let e of ere){let r=BA[e];rre.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),tre.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}HFe={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[<media subtype\\\\>][;base64\\\\],<data\\\\>"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:ere,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",rre.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",tre.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,Jee.extendFlat)({},Kee.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,H3.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,H3.templatefallbackAttrs)(),zorder:Qee.zorder},UFe=HFe});var ire=z((Zer,nre)=>{"use strict";var GFe=ke(),YFe=(HA(),ze(OA)).default,are=(sv(),ze(_2)),VFe=Kl().IMAGE_URL_PREFIX;nre.exports=function(r,t){function a(o,l){return GFe.coerce(r,t,YFe,o,l)}a("source"),t.source&&!t.source.match(VFe)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=are.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=are.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),t._length=null,a("zorder")}});var ss=z(($er,UA)=>{typeof Object.create=="function"?UA.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:UA.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var GA=z((Jer,ore)=>{ore.exports=Wu().EventEmitter});var ure=z(U3=>{"use strict";U3.byteLength=WFe;U3.toByteArray=ZFe;U3.fromByteArray=KFe;var Ll=[],po=[],jFe=typeof Uint8Array!="undefined"?Uint8Array:Array,YA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Hf=0,lre=YA.length;Hf<lre;++Hf)Ll[Hf]=YA[Hf],po[YA.charCodeAt(Hf)]=Hf;var Hf,lre;po[45]=62;po[95]=63;function sre(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function WFe(e){var r=sre(e),t=r[0],a=r[1];return(t+a)*3/4-a}function XFe(e,r,t){return(r+t)*3/4-t}function ZFe(e){var r,t=sre(e),a=t[0],n=t[1],i=new jFe(XFe(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s<l;s+=4)r=po[e.charCodeAt(s)]<<18|po[e.charCodeAt(s+1)]<<12|po[e.charCodeAt(s+2)]<<6|po[e.charCodeAt(s+3)],i[o++]=r>>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=po[e.charCodeAt(s)]<<2|po[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=po[e.charCodeAt(s)]<<10|po[e.charCodeAt(s+1)]<<4|po[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function $Fe(e){return Ll[e>>18&63]+Ll[e>>12&63]+Ll[e>>6&63]+Ll[e&63]}function JFe(e,r,t){for(var a,n=[],i=r;i<t;i+=3)a=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),n.push($Fe(a));return n.join("")}function KFe(e){for(var r,t=e.length,a=t%3,n=[],i=16383,o=0,l=t-a;o<l;o+=i)n.push(JFe(e,o,o+i>l?l:o+i));return a===1?(r=e[t-1],n.push(Ll[r>>2]+Ll[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Ll[r>>10]+Ll[r>>4&63]+Ll[r<<2&63]+"=")),n.join("")}});var fre=z(VA=>{VA.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<<l)-1,u=s>>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};VA.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<<u)-1,c=f>>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<<n|l,u+=n;u>0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=y*128}});var hv=z(vv=>{"use strict";var jA=ure(),fv=fre(),cre=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vv.Buffer=je;vv.SlowBuffer=nze;vv.INSPECT_MAX_BYTES=50;var G3=2147483647;vv.kMaxLength=G3;je.TYPED_ARRAY_SUPPORT=QFe();!je.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function QFe(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(je.prototype,"parent",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.buffer}});Object.defineProperty(je.prototype,"offset",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.byteOffset}});function us(e){if(e>G3)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,je.prototype),r}function je(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $A(e)}return pre(e,r,t)}je.poolSize=8192;function pre(e,r,t){if(typeof e=="string")return rze(e,r);if(ArrayBuffer.isView(e))return tze(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Cl(e,ArrayBuffer)||e&&Cl(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Cl(e,SharedArrayBuffer)||e&&Cl(e.buffer,SharedArrayBuffer)))return XA(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return je.from(a,r,t);let n=aze(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return je.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}je.from=function(e,r,t){return pre(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function mre(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function eze(e,r,t){return mre(e),e<=0?us(e):r!==void 0?typeof t=="string"?us(e).fill(r,t):us(e).fill(r):us(e)}je.alloc=function(e,r,t){return eze(e,r,t)};function $A(e){return mre(e),us(e<0?0:JA(e)|0)}je.allocUnsafe=function(e){return $A(e)};je.allocUnsafeSlow=function(e){return $A(e)};function rze(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=yre(e,r)|0,a=us(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function WA(e){let r=e.length<0?0:JA(e.length)|0,t=us(r);for(let a=0;a<r;a+=1)t[a]=e[a]&255;return t}function tze(e){if(Cl(e,Uint8Array)){let r=new Uint8Array(e);return XA(r.buffer,r.byteOffset,r.byteLength)}return WA(e)}function XA(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let a;return r===void 0&&t===void 0?a=new Uint8Array(e):t===void 0?a=new Uint8Array(e,r):a=new Uint8Array(e,r,t),Object.setPrototypeOf(a,je.prototype),a}function aze(e){if(je.isBuffer(e)){let r=JA(e.length)|0,t=us(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||QA(e.length)?us(0):WA(e);if(e.type==="Buffer"&&Array.isArray(e.data))return WA(e.data)}function JA(e){if(e>=G3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G3.toString(16)+" bytes");return e|0}function nze(e){return+e!=e&&(e=0),je.alloc(+e)}je.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==je.prototype};je.compare=function(r,t){if(Cl(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),Cl(t,Uint8Array)&&(t=je.from(t,t.offset,t.byteLength)),!je.isBuffer(r)||!je.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);i<o;++i)if(r[i]!==t[i]){a=r[i],n=t[i];break}return a<n?-1:n<a?1:0};je.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};je.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return je.alloc(0);let a;if(t===void 0)for(t=0,a=0;a<r.length;++a)t+=r[a].length;let n=je.allocUnsafe(t),i=0;for(a=0;a<r.length;++a){let o=r[a];if(Cl(o,Uint8Array))i+o.length>n.length?(je.isBuffer(o)||(o=je.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(je.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function yre(e,r){if(je.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Cl(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ZA(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return kre(e).length;default:if(n)return a?-1:ZA(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=yre;function ize(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return pze(this,r,t);case"utf8":case"utf-8":return bre(this,r,t);case"ascii":return hze(this,r,t);case"latin1":case"binary":return dze(this,r,t);case"base64":return cze(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mze(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}je.prototype._isBuffer=!0;function Uf(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}je.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)Uf(this,t,t+1);return this};je.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)Uf(this,t,t+3),Uf(this,t+1,t+2);return this};je.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)Uf(this,t,t+7),Uf(this,t+1,t+6),Uf(this,t+2,t+5),Uf(this,t+3,t+4);return this};je.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?bre(this,0,r):ize.apply(this,arguments)};je.prototype.toLocaleString=je.prototype.toString;je.prototype.equals=function(r){if(!je.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:je.compare(this,r)===0};je.prototype.inspect=function(){let r="",t=vv.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};cre&&(je.prototype[cre]=je.prototype.inspect);je.prototype.compare=function(r,t,a,n,i){if(Cl(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),!je.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c<s;++c)if(u[c]!==f[c]){o=u[c],l=f[c];break}return o<l?-1:l<o?1:0};function gre(e,r,t,a,n){if(e.length===0)return-1;if(typeof t=="string"?(a=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,QA(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=je.from(r,a)),je.isBuffer(r))return r.length===0?-1:vre(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):vre(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function vre(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;u<o;u++)if(s(e,u)===s(r,f===-1?0:u-f)){if(f===-1&&(f=u),u-f+1===l)return f*i}else f!==-1&&(u-=u-f),f=-1}else for(t+l>o&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;c<l;c++)if(s(e,u+c)!==s(r,c)){f=!1;break}if(f)return u}return-1}je.prototype.includes=function(r,t,a){return this.indexOf(r,t,a)!==-1};je.prototype.indexOf=function(r,t,a){return gre(this,r,t,a,!0)};je.prototype.lastIndexOf=function(r,t,a){return gre(this,r,t,a,!1)};function oze(e,r,t,a){t=Number(t)||0;let n=e.length-t;a?(a=Number(a),a>n&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o<a;++o){let l=parseInt(r.substr(o*2,2),16);if(QA(l))return o;e[t+o]=l}return o}function lze(e,r,t,a){return Y3(ZA(r,e.length-t),e,t,a)}function sze(e,r,t,a){return Y3(xze(r),e,t,a)}function uze(e,r,t,a){return Y3(kre(r),e,t,a)}function fze(e,r,t,a){return Y3(_ze(r,e.length-t),e,t,a)}je.prototype.write=function(r,t,a,n){if(t===void 0)n="utf8",a=this.length,t=0;else if(a===void 0&&typeof t=="string")n=t,a=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return oze(this,r,t,a);case"utf8":case"utf-8":return lze(this,r,t,a);case"ascii":case"latin1":case"binary":return sze(this,r,t,a);case"base64":return uze(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fze(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cze(e,r,t){return r===0&&t===e.length?jA.fromByteArray(e):jA.fromByteArray(e.slice(r,t))}function bre(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n<t;){let i=e[n],o=null,l=i>239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return vze(a)}var hre=4096;function vze(e){let r=e.length;if(r<=hre)return String.fromCharCode.apply(String,e);let t="",a=0;for(;a<r;)t+=String.fromCharCode.apply(String,e.slice(a,a+=hre));return t}function hze(e,r,t){let a="";t=Math.min(e.length,t);for(let n=r;n<t;++n)a+=String.fromCharCode(e[n]&127);return a}function dze(e,r,t){let a="";t=Math.min(e.length,t);for(let n=r;n<t;++n)a+=String.fromCharCode(e[n]);return a}function pze(e,r,t){let a=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>a)&&(t=a);let n="";for(let i=r;i<t;++i)n+=wze[e[i]];return n}function mze(e,r,t){let a=e.slice(r,t),n="";for(let i=0;i<a.length-1;i+=2)n+=String.fromCharCode(a[i]+a[i+1]*256);return n}je.prototype.slice=function(r,t){let a=this.length;r=~~r,t=t===void 0?a:~~t,r<0?(r+=a,r<0&&(r=0)):r>a&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),t<r&&(t=r);let n=this.subarray(r,t);return Object.setPrototypeOf(n,je.prototype),n};function fn(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}je.prototype.readUintLE=je.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||fn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[r+o]*i;return n};je.prototype.readUintBE=je.prototype.readUIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||fn(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};je.prototype.readUint8=je.prototype.readUInt8=function(r,t){return r=r>>>0,t||fn(r,1,this.length),this[r]};je.prototype.readUint16LE=je.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||fn(r,2,this.length),this[r]|this[r+1]<<8};je.prototype.readUint16BE=je.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||fn(r,2,this.length),this[r]<<8|this[r+1]};je.prototype.readUint32LE=je.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};je.prototype.readUint32BE=je.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};je.prototype.readBigUInt64LE=ou(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))});je.prototype.readBigUInt64BE=ou(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<<BigInt(32))+BigInt(i)});je.prototype.readIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||fn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[r+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n};je.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||fn(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};je.prototype.readInt8=function(r,t){return r=r>>>0,t||fn(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};je.prototype.readInt16LE=function(r,t){r=r>>>0,t||fn(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};je.prototype.readInt16BE=function(r,t){r=r>>>0,t||fn(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};je.prototype.readInt32LE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};je.prototype.readInt32BE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};je.prototype.readBigInt64LE=ou(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});je.prototype.readBigInt64BE=ou(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a)});je.prototype.readFloatLE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),fv.read(this,r,!0,23,4)};je.prototype.readFloatBE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),fv.read(this,r,!1,23,4)};je.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||fn(r,8,this.length),fv.read(this,r,!0,52,8)};je.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||fn(r,8,this.length),fv.read(this,r,!1,52,8)};function si(e,r,t,a,n,i){if(!je.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<i)throw new RangeError('"value" argument is out of bounds');if(t+a>e.length)throw new RangeError("Index out of range")}je.prototype.writeUintLE=je.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;si(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o<a&&(i*=256);)this[t+o]=r/i&255;return t+a};je.prototype.writeUintBE=je.prototype.writeUIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;si(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};je.prototype.writeUint8=je.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,1,255,0),this[t]=r&255,t+1};je.prototype.writeUint16LE=je.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeUint16BE=je.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeUint32LE=je.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};je.prototype.writeUint32BE=je.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function xre(e,r,t,a,n){Mre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function _re(e,r,t,a,n){Mre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}je.prototype.writeBigUInt64LE=ou(function(r,t=0){return xre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=ou(function(r,t=0){return _re(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);si(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i<a&&(o*=256);)r<0&&l===0&&this[t+i-1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};je.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);si(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};je.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};je.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};je.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};je.prototype.writeBigInt64LE=ou(function(r,t=0){return xre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=ou(function(r,t=0){return _re(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wre(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Are(e,r,t,a,n){return r=+r,t=t>>>0,n||wre(e,r,t,4,34028234663852886e22,-34028234663852886e22),fv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return Are(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return Are(this,r,t,!1,a)};function Tre(e,r,t,a,n){return r=+r,t=t>>>0,n||wre(e,r,t,8,17976931348623157e292,-17976931348623157e292),fv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return Tre(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return Tre(this,r,t,!1,a)};je.prototype.copy=function(r,t,a,n){if(!je.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<a&&(n=a),n===a||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-a&&(n=r.length-t+a);let i=n-a;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,a,n):Uint8Array.prototype.set.call(r,this.subarray(a,n),t),i};je.prototype.fill=function(r,t,a,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,a=this.length):typeof a=="string"&&(n=a,a=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!je.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){let o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;t=t>>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i<a;++i)this[i]=r;else{let o=je.isBuffer(r)?r:je.from(r,n),l=o.length;if(l===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(i=0;i<a-t;++i)this[i+t]=o[i%l]}return this};var uv={};function KA(e,r,t){uv[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}KA("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);KA("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);KA("ERR_OUT_OF_RANGE",function(e,r,t){let a=`The value of "${e}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>2**32?n=dre(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=dre(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function dre(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function yze(e,r,t){cv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&w2(r,e.length-(t+1))}function Mre(e,r,t,a,n,i){if(e>t||e<r){let o=typeof r=="bigint"?"n":"",l;throw i>3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new uv.ERR_OUT_OF_RANGE("value",l,e)}yze(a,n,i)}function cv(e,r){if(typeof e!="number")throw new uv.ERR_INVALID_ARG_TYPE(r,"number",e)}function w2(e,r,t){throw Math.floor(e)!==e?(cv(e,t),new uv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new uv.ERR_BUFFER_OUT_OF_BOUNDS:new uv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var gze=/[^+/0-9A-Za-z-_]/g;function bze(e){if(e=e.split("=")[0],e=e.trim().replace(gze,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ZA(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o<a;++o){if(t=e.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function xze(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function _ze(e,r){let t,a,n,i=[];for(let o=0;o<e.length&&!((r-=2)<0);++o)t=e.charCodeAt(o),a=t>>8,n=t%256,i.push(n),i.push(a);return i}function kre(e){return jA.toByteArray(bze(e))}function Y3(e,r,t,a){let n;for(n=0;n<a&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Cl(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function QA(e){return e!==e}var wze=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function ou(e){return typeof BigInt=="undefined"?Aze:e}function Aze(){throw new Error("BigInt not supported")}});var V3=z((trr,Sre)=>{"use strict";Sre.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var A2=z((arr,qre)=>{"use strict";var Tze=V3();qre.exports=function(){return Tze()&&!!Symbol.toStringTag}});var j3=z((nrr,Lre)=>{"use strict";Lre.exports=Object});var Dre=z((irr,Cre)=>{"use strict";Cre.exports=Error});var Pre=z((orr,Ere)=>{"use strict";Ere.exports=EvalError});var Fre=z((lrr,Rre)=>{"use strict";Rre.exports=RangeError});var Nre=z((srr,zre)=>{"use strict";zre.exports=ReferenceError});var eT=z((urr,Ire)=>{"use strict";Ire.exports=SyntaxError});var dv=z((frr,Bre)=>{"use strict";Bre.exports=TypeError});var Hre=z((crr,Ore)=>{"use strict";Ore.exports=URIError});var Gre=z((vrr,Ure)=>{"use strict";Ure.exports=Math.abs});var Vre=z((hrr,Yre)=>{"use strict";Yre.exports=Math.floor});var Wre=z((drr,jre)=>{"use strict";jre.exports=Math.max});var Zre=z((prr,Xre)=>{"use strict";Xre.exports=Math.min});var Jre=z((mrr,$re)=>{"use strict";$re.exports=Math.pow});var Qre=z((yrr,Kre)=>{"use strict";Kre.exports=Math.round});var rte=z((grr,ete)=>{"use strict";ete.exports=Number.isNaN||function(r){return r!==r}});var ate=z((brr,tte)=>{"use strict";var Mze=rte();tte.exports=function(r){return Mze(r)||r===0?r:r<0?-1:1}});var ite=z((xrr,nte)=>{"use strict";nte.exports=Object.getOwnPropertyDescriptor});var Gf=z((_rr,ote)=>{"use strict";var W3=ite();if(W3)try{W3([],"length")}catch(e){W3=null}ote.exports=W3});var T2=z((wrr,lte)=>{"use strict";var X3=Object.defineProperty||!1;if(X3)try{X3({},"a",{value:1})}catch(e){X3=!1}lte.exports=X3});var fte=z((Arr,ute)=>{"use strict";var ste=typeof Symbol!="undefined"&&Symbol,kze=V3();ute.exports=function(){return typeof ste!="function"||typeof Symbol!="function"||typeof ste("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:kze()}});var rT=z((Trr,cte)=>{"use strict";cte.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var tT=z((Mrr,vte)=>{"use strict";var Sze=j3();vte.exports=Sze.getPrototypeOf||null});var pte=z((krr,dte)=>{"use strict";var qze="Function.prototype.bind called on incompatible ",Lze=Object.prototype.toString,Cze=Math.max,Dze="[object Function]",hte=function(r,t){for(var a=[],n=0;n<r.length;n+=1)a[n]=r[n];for(var i=0;i<t.length;i+=1)a[i+r.length]=t[i];return a},Eze=function(r,t){for(var a=[],n=t||0,i=0;n<r.length;n+=1,i+=1)a[i]=r[n];return a},Pze=function(e,r){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=r);return t};dte.exports=function(r){var t=this;if(typeof t!="function"||Lze.apply(t)!==Dze)throw new TypeError(qze+t);for(var a=Eze(arguments,1),n,i=function(){if(this instanceof n){var f=t.apply(this,hte(a,arguments));return Object(f)===f?f:this}return t.apply(r,hte(a,arguments))},o=Cze(0,t.length-a.length),l=[],s=0;s<o;s++)l[s]="$"+s;if(n=Function("binder","return function ("+Pze(l,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n}});var pv=z((Srr,mte)=>{"use strict";var Rze=pte();mte.exports=Function.prototype.bind||Rze});var Z3=z((qrr,yte)=>{"use strict";yte.exports=Function.prototype.call});var $3=z((Lrr,gte)=>{"use strict";gte.exports=Function.prototype.apply});var xte=z((Crr,bte)=>{"use strict";bte.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var aT=z((Drr,_te)=>{"use strict";var Fze=pv(),zze=$3(),Nze=Z3(),Ize=xte();_te.exports=Ize||Fze.call(Nze,zze)});var J3=z((Err,wte)=>{"use strict";var Bze=pv(),Oze=dv(),Hze=Z3(),Uze=aT();wte.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Oze("a function is required");return Uze(Bze,Hze,r)}});var qte=z((Prr,Ste)=>{"use strict";var Gze=J3(),Ate=Gf(),Mte;try{Mte=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var nT=!!Mte&&Ate&&Ate(Object.prototype,"__proto__"),kte=Object,Tte=kte.getPrototypeOf;Ste.exports=nT&&typeof nT.get=="function"?Gze([nT.get]):typeof Tte=="function"?function(r){return Tte(r==null?r:kte(r))}:!1});var K3=z((Rrr,Ete)=>{"use strict";var Lte=rT(),Cte=tT(),Dte=qte();Ete.exports=Lte?function(r){return Lte(r)}:Cte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Cte(r)}:Dte?function(r){return Dte(r)}:null});var iT=z((Frr,Pte)=>{"use strict";var Yze=Function.prototype.call,Vze=Object.prototype.hasOwnProperty,jze=pv();Pte.exports=jze.call(Yze,Vze)});var rb=z((zrr,Bte)=>{"use strict";var ut,Wze=j3(),Xze=Dre(),Zze=Pre(),$ze=Fre(),Jze=Nre(),bv=eT(),gv=dv(),Kze=Hre(),Qze=Gre(),eNe=Vre(),rNe=Wre(),tNe=Zre(),aNe=Jre(),nNe=Qre(),iNe=ate(),Nte=Function,oT=function(e){try{return Nte('"use strict"; return ('+e+").constructor;")()}catch(r){}},M2=Gf(),oNe=T2(),lT=function(){throw new gv},lNe=M2?(function(){try{return arguments.callee,lT}catch(e){try{return M2(arguments,"callee").get}catch(r){return lT}}})():lT,mv=fte()(),cn=K3(),sNe=tT(),uNe=rT(),Ite=$3(),k2=Z3(),yv={},fNe=typeof Uint8Array=="undefined"||!cn?ut:cn(Uint8Array),Yf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ut:ArrayBuffer,"%ArrayIteratorPrototype%":mv&&cn?cn([][Symbol.iterator]()):ut,"%AsyncFromSyncIteratorPrototype%":ut,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics=="undefined"?ut:Atomics,"%BigInt%":typeof BigInt=="undefined"?ut:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ut:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ut:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Xze,"%eval%":eval,"%EvalError%":Zze,"%Float16Array%":typeof Float16Array=="undefined"?ut:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ut:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ut:FinalizationRegistry,"%Function%":Nte,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array=="undefined"?ut:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ut:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":mv&&cn?cn(cn([][Symbol.iterator]())):ut,"%JSON%":typeof JSON=="object"?JSON:ut,"%Map%":typeof Map=="undefined"?ut:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!mv||!cn?ut:cn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Wze,"%Object.getOwnPropertyDescriptor%":M2,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ut:Promise,"%Proxy%":typeof Proxy=="undefined"?ut:Proxy,"%RangeError%":$ze,"%ReferenceError%":Jze,"%Reflect%":typeof Reflect=="undefined"?ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ut:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!mv||!cn?ut:cn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":mv&&cn?cn(""[Symbol.iterator]()):ut,"%Symbol%":mv?Symbol:ut,"%SyntaxError%":bv,"%ThrowTypeError%":lNe,"%TypedArray%":fNe,"%TypeError%":gv,"%Uint8Array%":typeof Uint8Array=="undefined"?ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ut:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ut:Uint32Array,"%URIError%":Kze,"%WeakMap%":typeof WeakMap=="undefined"?ut:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ut:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ut:WeakSet,"%Function.prototype.call%":k2,"%Function.prototype.apply%":Ite,"%Object.defineProperty%":oNe,"%Object.getPrototypeOf%":sNe,"%Math.abs%":Qze,"%Math.floor%":eNe,"%Math.max%":rNe,"%Math.min%":tNe,"%Math.pow%":aNe,"%Math.round%":nNe,"%Math.sign%":iNe,"%Reflect.getPrototypeOf%":uNe};if(cn)try{null.error}catch(e){Rte=cn(cn(e)),Yf["%Error.prototype%"]=Rte}var Rte,cNe=function e(r){var t;if(r==="%AsyncFunction%")t=oT("async function () {}");else if(r==="%GeneratorFunction%")t=oT("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=oT("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&cn&&(t=cn(n.prototype))}return Yf[r]=t,t},Fte={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S2=pv(),Q3=iT(),vNe=S2.call(k2,Array.prototype.concat),hNe=S2.call(Ite,Array.prototype.splice),zte=S2.call(k2,String.prototype.replace),eb=S2.call(k2,String.prototype.slice),dNe=S2.call(k2,RegExp.prototype.exec),pNe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mNe=/\\(\\)?/g,yNe=function(r){var t=eb(r,0,1),a=eb(r,-1);if(t==="%"&&a!=="%")throw new bv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new bv("invalid intrinsic syntax, expected opening `%`");var n=[];return zte(r,pNe,function(i,o,l,s){n[n.length]=l?zte(s,mNe,"$1"):o||i}),n},gNe=function(r,t){var a=r,n;if(Q3(Fte,a)&&(n=Fte[a],a="%"+n[0]+"%"),Q3(Yf,a)){var i=Yf[a];if(i===yv&&(i=cNe(a)),typeof i=="undefined"&&!t)throw new gv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new bv("intrinsic "+r+" does not exist!")};Bte.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new gv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new gv('"allowMissing" argument must be a boolean');if(dNe(/^%?[^%]*%?$/,r)===null)throw new bv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=yNe(r),n=a.length>0?a[0]:"",i=gNe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],hNe(a,vNe([0,1],u)));for(var f=1,c=!0;f<a.length;f+=1){var v=a[f],d=eb(v,0,1),p=eb(v,-1);if((d==='"'||d==="'"||d==="`"||p==='"'||p==="'"||p==="`")&&d!==p)throw new bv("property names with quotes must have matching quotes");if((v==="constructor"||!c)&&(s=!0),n+="."+v,o="%"+n+"%",Q3(Yf,o))l=Yf[o];else if(l!=null){if(!(v in l)){if(!t)throw new gv("base intrinsic for "+r+" exists, but the property is not available.");return}if(M2&&f+1>=a.length){var y=M2(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=Q3(l,v),l=l[v];c&&!s&&(Yf[o]=l)}}return l}});var Vf=z((Nrr,Ute)=>{"use strict";var Ote=rb(),Hte=J3(),bNe=Hte([Ote("%String.prototype.indexOf%")]);Ute.exports=function(r,t){var a=Ote(r,!!t);return typeof a=="function"&&bNe(r,".prototype.")>-1?Hte([a]):a}});var Vte=z((Irr,Yte)=>{"use strict";var xNe=A2()(),_Ne=Vf(),sT=_Ne("Object.prototype.toString"),tb=function(r){return xNe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:sT(r)==="[object Arguments]"},Gte=function(r){return tb(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&sT(r)!=="[object Array]"&&"callee"in r&&sT(r.callee)==="[object Function]"},wNe=(function(){return tb(arguments)})();tb.isLegacyArguments=Gte;Yte.exports=wNe?tb:Gte});var Jte=z((Brr,$te)=>{"use strict";var jte=Vf(),ANe=A2()(),TNe=iT(),MNe=Gf(),cT;ANe?(Wte=jte("RegExp.prototype.exec"),uT={},ab=function(){throw uT},fT={toString:ab,valueOf:ab},typeof Symbol.toPrimitive=="symbol"&&(fT[Symbol.toPrimitive]=ab),cT=function(r){if(!r||typeof r!="object")return!1;var t=MNe(r,"lastIndex"),a=t&&TNe(t,"value");if(!a)return!1;try{Wte(r,fT)}catch(n){return n===uT}}):(Xte=jte("Object.prototype.toString"),Zte="[object RegExp]",cT=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Xte(r)===Zte});var Wte,uT,ab,fT,Xte,Zte;$te.exports=cT});var Qte=z((Orr,Kte)=>{"use strict";var kNe=Vf(),SNe=Jte(),qNe=kNe("RegExp.prototype.exec"),LNe=dv();Kte.exports=function(r){if(!SNe(r))throw new LNe("`regex` must be a RegExp");return function(a){return qNe(r,a)!==null}}});var rae=z((Hrr,eae)=>{"use strict";var CNe=function*(){}.constructor;eae.exports=()=>CNe});var iae=z((Urr,nae)=>{"use strict";var aae=Vf(),DNe=Qte(),ENe=DNe(/^\s*(?:function)?\*/),PNe=A2()(),tae=K3(),RNe=aae("Object.prototype.toString"),FNe=aae("Function.prototype.toString"),zNe=rae();nae.exports=function(r){if(typeof r!="function")return!1;if(ENe(FNe(r)))return!0;if(!PNe){var t=RNe(r);return t==="[object GeneratorFunction]"}if(!tae)return!1;var a=zNe();return a&&tae(r)===a.prototype}});var uae=z((Grr,sae)=>{"use strict";var lae=Function.prototype.toString,xv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,hT,nb;if(typeof xv=="function"&&typeof Object.defineProperty=="function")try{hT=Object.defineProperty({},"length",{get:function(){throw nb}}),nb={},xv(function(){throw 42},null,hT)}catch(e){e!==nb&&(xv=null)}else xv=null;var NNe=/^\s*class\b/,dT=function(r){try{var t=lae.call(r);return NNe.test(t)}catch(a){return!1}},vT=function(r){try{return dT(r)?!1:(lae.call(r),!0)}catch(t){return!1}},ib=Object.prototype.toString,INe="[object Object]",BNe="[object Function]",ONe="[object GeneratorFunction]",HNe="[object HTMLAllCollection]",UNe="[object HTML document.all class]",GNe="[object HTMLCollection]",YNe=typeof Symbol=="function"&&!!Symbol.toStringTag,VNe=!(0 in[,]),pT=function(){return!1};typeof document=="object"&&(oae=document.all,ib.call(oae)===ib.call(document.all)&&(pT=function(r){if((VNe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=ib.call(r);return(t===HNe||t===UNe||t===GNe||t===INe)&&r("")==null}catch(a){}return!1}));var oae;sae.exports=xv?function(r){if(pT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xv(r,null,hT)}catch(t){if(t!==nb)return!1}return!dT(r)&&vT(r)}:function(r){if(pT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(YNe)return vT(r);if(dT(r))return!1;var t=ib.call(r);return t!==BNe&&t!==ONe&&!/^\[object HTML/.test(t)?!1:vT(r)}});var vae=z((Yrr,cae)=>{"use strict";var jNe=uae(),WNe=Object.prototype.toString,fae=Object.prototype.hasOwnProperty,XNe=function(r,t,a){for(var n=0,i=r.length;n<i;n++)fae.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))},ZNe=function(r,t,a){for(var n=0,i=r.length;n<i;n++)a==null?t(r.charAt(n),n,r):t.call(a,r.charAt(n),n,r)},$Ne=function(r,t,a){for(var n in r)fae.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))};function JNe(e){return WNe.call(e)==="[object Array]"}cae.exports=function(r,t,a){if(!jNe(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=a),JNe(r)?XNe(r,t,n):typeof r=="string"?ZNe(r,t,n):$Ne(r,t,n)}});var dae=z((Vrr,hae)=>{"use strict";hae.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var mae=z((jrr,pae)=>{"use strict";var mT=dae(),KNe=typeof globalThis=="undefined"?window:globalThis;pae.exports=function(){for(var r=[],t=0;t<mT.length;t++)typeof KNe[mT[t]]=="function"&&(r[r.length]=mT[t]);return r}});var yT=z((Wrr,bae)=>{"use strict";var yae=T2(),QNe=eT(),_v=dv(),gae=Gf();bae.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new _v("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new _v("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _v("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _v("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _v("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _v("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!gae&&gae(r,t);if(yae)yae(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new QNe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var bT=z((Xrr,_ae)=>{"use strict";var gT=T2(),xae=function(){return!!gT};xae.hasArrayLengthDefineBug=function(){if(!gT)return null;try{return gT([],"length",{value:1}).length!==1}catch(r){return!0}};_ae.exports=xae});var kae=z((Zrr,Mae)=>{"use strict";var eIe=rb(),wae=yT(),rIe=bT()(),Aae=Gf(),Tae=dv(),tIe=eIe("%Math.floor%");Mae.exports=function(r,t){if(typeof r!="function")throw new Tae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||tIe(t)!==t)throw new Tae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&Aae){var o=Aae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(rIe?wae(r,"length",t,!0,!0):wae(r,"length",t)),r}});var qae=z(($rr,Sae)=>{"use strict";var aIe=pv(),nIe=$3(),iIe=aT();Sae.exports=function(){return iIe(aIe,nIe,arguments)}});var q2=z((Jrr,ob)=>{"use strict";var oIe=kae(),Lae=T2(),lIe=J3(),Cae=qae();ob.exports=function(r){var t=lIe(arguments),a=1+r.length-(arguments.length-1);return oIe(t,a>0?a:0,!0)};Lae?Lae(ob.exports,"apply",{value:Cae}):ob.exports.apply=Cae});var AT=z((Krr,Rae)=>{"use strict";var ub=vae(),sIe=mae(),Dae=q2(),_T=Vf(),sb=Gf(),lb=K3(),uIe=_T("Object.prototype.toString"),Pae=A2()(),Eae=typeof globalThis=="undefined"?window:globalThis,xT=sIe(),wT=_T("String.prototype.slice"),fIe=_T("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a<r.length;a+=1)if(r[a]===t)return a;return-1},fb={__proto__:null};Pae&&sb&&lb?ub(xT,function(e){var r=new Eae[e];if(Symbol.toStringTag in r&&lb){var t=lb(r),a=sb(t,Symbol.toStringTag);if(!a&&t){var n=lb(t);a=sb(n,Symbol.toStringTag)}if(a&&a.get){var i=Dae(a.get);fb["$"+e]=i}}}):ub(xT,function(e){var r=new Eae[e],t=r.slice||r.set;if(t){var a=Dae(t);fb["$"+e]=a}});function cIe(e){var r=!1;return ub(fb,function(t,a){if(!r)try{"$"+t(e)===a&&(r=wT(a,1))}catch(n){}}),r}function vIe(e){var r=!1;return ub(fb,function(t,a){if(!r)try{t(e),r=wT(a,1)}catch(n){}}),r}function hIe(e){return fIe(xT,e)>-1}function dIe(e){if(!e||typeof e!="object")return!1;if(!Pae){var r=wT(uIe(e),8,-1);return hIe(r)?r:r!=="Object"?!1:vIe(e)}return sb?cIe(e):null}Rae.exports=dIe});var zae=z((Qrr,Fae)=>{"use strict";var pIe=AT();Fae.exports=function(r){return!!pIe(r)}});var kT=z(ft=>{"use strict";var mIe=Vte(),yIe=iae(),Zo=AT(),Nae=zae();function wv(e){return e.call.bind(e)}var Iae=typeof BigInt!="undefined",Bae=typeof Symbol!="undefined",mo=wv(Object.prototype.toString),gIe=wv(Number.prototype.valueOf),bIe=wv(String.prototype.valueOf),xIe=wv(Boolean.prototype.valueOf);Iae&&(Oae=wv(BigInt.prototype.valueOf));var Oae;Bae&&(Hae=wv(Symbol.prototype.valueOf));var Hae;function C2(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ft.isArgumentsObject=mIe;ft.isGeneratorFunction=yIe;ft.isTypedArray=Nae;function _Ie(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ft.isPromise=_Ie;function wIe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Nae(e)||Gae(e)}ft.isArrayBufferView=wIe;function AIe(e){return Zo(e)==="Uint8Array"}ft.isUint8Array=AIe;function TIe(e){return Zo(e)==="Uint8ClampedArray"}ft.isUint8ClampedArray=TIe;function MIe(e){return Zo(e)==="Uint16Array"}ft.isUint16Array=MIe;function kIe(e){return Zo(e)==="Uint32Array"}ft.isUint32Array=kIe;function SIe(e){return Zo(e)==="Int8Array"}ft.isInt8Array=SIe;function qIe(e){return Zo(e)==="Int16Array"}ft.isInt16Array=qIe;function LIe(e){return Zo(e)==="Int32Array"}ft.isInt32Array=LIe;function CIe(e){return Zo(e)==="Float32Array"}ft.isFloat32Array=CIe;function DIe(e){return Zo(e)==="Float64Array"}ft.isFloat64Array=DIe;function EIe(e){return Zo(e)==="BigInt64Array"}ft.isBigInt64Array=EIe;function PIe(e){return Zo(e)==="BigUint64Array"}ft.isBigUint64Array=PIe;function cb(e){return mo(e)==="[object Map]"}cb.working=typeof Map!="undefined"&&cb(new Map);function RIe(e){return typeof Map=="undefined"?!1:cb.working?cb(e):e instanceof Map}ft.isMap=RIe;function vb(e){return mo(e)==="[object Set]"}vb.working=typeof Set!="undefined"&&vb(new Set);function FIe(e){return typeof Set=="undefined"?!1:vb.working?vb(e):e instanceof Set}ft.isSet=FIe;function hb(e){return mo(e)==="[object WeakMap]"}hb.working=typeof WeakMap!="undefined"&&hb(new WeakMap);function zIe(e){return typeof WeakMap=="undefined"?!1:hb.working?hb(e):e instanceof WeakMap}ft.isWeakMap=zIe;function MT(e){return mo(e)==="[object WeakSet]"}MT.working=typeof WeakSet!="undefined"&&MT(new WeakSet);function NIe(e){return MT(e)}ft.isWeakSet=NIe;function db(e){return mo(e)==="[object ArrayBuffer]"}db.working=typeof ArrayBuffer!="undefined"&&db(new ArrayBuffer);function Uae(e){return typeof ArrayBuffer=="undefined"?!1:db.working?db(e):e instanceof ArrayBuffer}ft.isArrayBuffer=Uae;function pb(e){return mo(e)==="[object DataView]"}pb.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&pb(new DataView(new ArrayBuffer(1),0,1));function Gae(e){return typeof DataView=="undefined"?!1:pb.working?pb(e):e instanceof DataView}ft.isDataView=Gae;var TT=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function L2(e){return mo(e)==="[object SharedArrayBuffer]"}function Yae(e){return typeof TT=="undefined"?!1:(typeof L2.working=="undefined"&&(L2.working=L2(new TT)),L2.working?L2(e):e instanceof TT)}ft.isSharedArrayBuffer=Yae;function IIe(e){return mo(e)==="[object AsyncFunction]"}ft.isAsyncFunction=IIe;function BIe(e){return mo(e)==="[object Map Iterator]"}ft.isMapIterator=BIe;function OIe(e){return mo(e)==="[object Set Iterator]"}ft.isSetIterator=OIe;function HIe(e){return mo(e)==="[object Generator]"}ft.isGeneratorObject=HIe;function UIe(e){return mo(e)==="[object WebAssembly.Module]"}ft.isWebAssemblyCompiledModule=UIe;function Vae(e){return C2(e,gIe)}ft.isNumberObject=Vae;function jae(e){return C2(e,bIe)}ft.isStringObject=jae;function Wae(e){return C2(e,xIe)}ft.isBooleanObject=Wae;function Xae(e){return Iae&&C2(e,Oae)}ft.isBigIntObject=Xae;function Zae(e){return Bae&&C2(e,Hae)}ft.isSymbolObject=Zae;function GIe(e){return Vae(e)||jae(e)||Wae(e)||Xae(e)||Zae(e)}ft.isBoxedPrimitive=GIe;function YIe(e){return typeof Uint8Array!="undefined"&&(Uae(e)||Yae(e))}ft.isAnyArrayBuffer=YIe;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ft,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var ST=z((rtr,$ae)=>{$ae.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var PT=z(ct=>{var Jae=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n<t.length;n++)a[t[n]]=Object.getOwnPropertyDescriptor(r,t[n]);return a},VIe=/%[sdj%]/g;ct.format=function(e){if(!wb(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(lu(arguments[t]));return r.join(" ")}for(var t=1,a=arguments,n=a.length,i=String(e).replace(VIe,function(l){if(l==="%%")return"%";if(t>=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t<n;o=a[++t])_b(o)||!Av(o)?i+=" "+o:i+=" "+lu(o);return i};ct.deprecate=function(e,r){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return ct.deprecate(e,r).apply(this,arguments)};var t=!1;function a(){if(!t){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return a};var mb={},Kae=/^$/;yb="false",yb=yb.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Kae=new RegExp("^"+yb+"$","i");var yb;ct.debuglog=function(e){if(e=e.toUpperCase(),!mb[e])if(Kae.test(e)){var r=process.pid;mb[e]=function(){var t=ct.format.apply(ct,arguments);console.error("%s %d: %s",e,r,t)}}else mb[e]=function(){};return mb[e]};function lu(e,r){var t={seen:[],stylize:WIe};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),DT(r)?t.showHidden=r:r&&ct._extend(t,r),Wf(t.showHidden)&&(t.showHidden=!1),Wf(t.depth)&&(t.depth=2),Wf(t.colors)&&(t.colors=!1),Wf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=jIe),bb(t,e,t.depth)}ct.inspect=lu;lu.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};lu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function jIe(e,r){var t=lu.styles[r];return t?"\x1B["+lu.colors[t][0]+"m"+e+"\x1B["+lu.colors[t][1]+"m":e}function WIe(e,r){return e}function XIe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function bb(e,r,t){if(e.customInspect&&r&&gb(r.inspect)&&r.inspect!==ct.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return wb(a)||(a=bb(e,a,t)),a}var n=ZIe(e,r);if(n)return n;var i=Object.keys(r),o=XIe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),E2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return qT(r);if(i.length===0){if(gb(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(D2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(xb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E2(r))return qT(r)}var s="",u=!1,f=["{","}"];if(Qae(r)&&(u=!0,f=["[","]"]),gb(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(D2(r)&&(s=" "+RegExp.prototype.toString.call(r)),xb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),E2(r)&&(s=" "+qT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return D2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=$Ie(e,r,t,o,i):v=i.map(function(d){return CT(e,r,t,o,d,u)}),e.seen.pop(),JIe(v,s,f)}function ZIe(e,r){if(Wf(r))return e.stylize("undefined","undefined");if(wb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(ene(r))return e.stylize(""+r,"number");if(DT(r))return e.stylize(""+r,"boolean");if(_b(r))return e.stylize("null","null")}function qT(e){return"["+Error.prototype.toString.call(e)+"]"}function $Ie(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)rne(r,String(o))?i.push(CT(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(CT(e,r,t,a,s,!0))}),i}function CT(e,r,t,a,n,i){var o,l,s;if(s=Object.getOwnPropertyDescriptor(r,n)||{value:r[n]},s.get?s.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),rne(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(_b(t)?l=bb(e,s.value,null):l=bb(e,s.value,t-1),l.indexOf(`
`)>-1&&(i?l=l.split(`
`).map(function(u){return"  "+u}).join(`
`).slice(2):l=`
`+l.split(`
`).map(function(u){return"   "+u}).join(`
`))):l=e.stylize("[Circular]","special")),Wf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function JIe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(`
`)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+`
 `)+" "+e.join(`,
  `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}ct.types=kT();function Qae(e){return Array.isArray(e)}ct.isArray=Qae;function DT(e){return typeof e=="boolean"}ct.isBoolean=DT;function _b(e){return e===null}ct.isNull=_b;function KIe(e){return e==null}ct.isNullOrUndefined=KIe;function ene(e){return typeof e=="number"}ct.isNumber=ene;function wb(e){return typeof e=="string"}ct.isString=wb;function QIe(e){return typeof e=="symbol"}ct.isSymbol=QIe;function Wf(e){return e===void 0}ct.isUndefined=Wf;function D2(e){return Av(e)&&ET(e)==="[object RegExp]"}ct.isRegExp=D2;ct.types.isRegExp=D2;function Av(e){return typeof e=="object"&&e!==null}ct.isObject=Av;function xb(e){return Av(e)&&ET(e)==="[object Date]"}ct.isDate=xb;ct.types.isDate=xb;function E2(e){return Av(e)&&(ET(e)==="[object Error]"||e instanceof Error)}ct.isError=E2;ct.types.isNativeError=E2;function gb(e){return typeof e=="function"}ct.isFunction=gb;function eBe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ct.isPrimitive=eBe;ct.isBuffer=ST();function ET(e){return Object.prototype.toString.call(e)}function LT(e){return e<10?"0"+e.toString(10):e.toString(10)}var rBe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tBe(){var e=new Date,r=[LT(e.getHours()),LT(e.getMinutes()),LT(e.getSeconds())].join(":");return[e.getDate(),rBe[e.getMonth()],r].join(" ")}ct.log=function(){console.log("%s - %s",tBe(),ct.format.apply(ct,arguments))};ct.inherits=ss();ct._extend=function(e,r){if(!r||!Av(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function rne(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var jf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ct.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(jf&&r[jf]){var t=r[jf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,jf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l<arguments.length;l++)o.push(arguments[l]);o.push(function(s,u){s?n(s):a(u)});try{r.apply(this,o)}catch(s){n(s)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),jf&&Object.defineProperty(t,jf,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Jae(r))};ct.promisify.custom=jf;function aBe(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function nBe(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a]);var n=t.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(l){process.nextTick(o.bind(null,null,l))},function(l){process.nextTick(aBe.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Jae(e)),r}ct.callbackify=nBe});var lne=z((atr,one)=>{"use strict";function tne(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ane(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?tne(Object(t),!0).forEach(function(a){iBe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tne(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function iBe(e,r,t){return r=ine(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function oBe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function nne(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ine(a.key),a)}}function lBe(e,r,t){return r&&nne(e.prototype,r),t&&nne(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ine(e){var r=sBe(e,"string");return typeof r=="symbol"?r:String(r)}function sBe(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var uBe=hv(),Ab=uBe.Buffer,fBe=PT(),RT=fBe.inspect,cBe=RT&&RT.custom||"inspect";function vBe(e,r,t){Ab.prototype.copy.call(e,r,t)}one.exports=(function(){function e(){oBe(this,e),this.head=null,this.tail=null,this.length=0}return lBe(e,[{key:"push",value:function(t){var a={data:t,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return Ab.alloc(0);for(var a=Ab.allocUnsafe(t>>>0),n=this.head,i=0;n;)vBe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?n=this.shift():n=a?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var a=this.head,n=1,i=a.data;for(t-=i.length;a=a.next;){var o=a.data,l=t>o.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=Ab.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:cBe,value:function(t,a){return RT(this,ane(ane({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var zT=z((ntr,une)=>{"use strict";function hBe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(FT,this,e)):process.nextTick(FT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(Tb,t):(t._writableState.errorEmitted=!0,process.nextTick(sne,t,i)):process.nextTick(sne,t,i):r?(process.nextTick(Tb,t),r(i)):process.nextTick(Tb,t)}),this)}function sne(e,r){FT(e,r),Tb(e)}function Tb(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function dBe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function FT(e,r){e.emit("error",r)}function pBe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}une.exports={destroy:hBe,undestroy:dBe,errorOrDestroy:pBe}});var Xf=z((itr,vne)=>{"use strict";function mBe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var cne={};function yo(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){mBe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o})(t);n.prototype.name=t.name,n.prototype.code=e,cne[e]=n}function fne(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function yBe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function gBe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function bBe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}yo("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);yo("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&yBe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(gBe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fne(r,"type"));else{var i=bBe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fne(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);yo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yo("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});yo("ERR_STREAM_PREMATURE_CLOSE","Premature close");yo("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});yo("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yo("ERR_STREAM_WRITE_AFTER_END","write after end");yo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yo("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);yo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vne.exports.codes=cne});var NT=z((otr,hne)=>{"use strict";var xBe=Xf().codes.ERR_INVALID_OPT_VALUE;function _Be(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function wBe(e,r,t,a){var n=_Be(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new xBe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}hne.exports={getHighWaterMark:wBe}});var pne=z((ltr,dne)=>{dne.exports=ABe;function ABe(e,r){if(IT("noDeprecation"))return e;var t=!1;function a(){if(!t){if(IT("throwDeprecation"))throw new Error(r);IT("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function IT(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var HT=z((str,_ne)=>{"use strict";_ne.exports=Sa;function yne(e){var r=this;this.next=null,this.entry=null,this.finish=function(){$Be(r,e)}}var Tv;Sa.WritableState=R2;var TBe={deprecate:pne()},gne=GA(),kb=hv().Buffer,MBe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function kBe(e){return kb.from(e)}function SBe(e){return kb.isBuffer(e)||e instanceof MBe}var OT=zT(),qBe=NT(),LBe=qBe.getHighWaterMark,su=Xf().codes,CBe=su.ERR_INVALID_ARG_TYPE,DBe=su.ERR_METHOD_NOT_IMPLEMENTED,EBe=su.ERR_MULTIPLE_CALLBACK,PBe=su.ERR_STREAM_CANNOT_PIPE,RBe=su.ERR_STREAM_DESTROYED,FBe=su.ERR_STREAM_NULL_VALUES,zBe=su.ERR_STREAM_WRITE_AFTER_END,NBe=su.ERR_UNKNOWN_ENCODING,Mv=OT.errorOrDestroy;ss()(Sa,gne);function IBe(){}function R2(e,r,t){Tv=Tv||Zf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Tv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=LBe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){VBe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new yne(this)}R2.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(R2.prototype,"buffer",{get:TBe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Mb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Sa,Symbol.hasInstance,{value:function(r){return Mb.call(this,r)?!0:this!==Sa?!1:r&&r._writableState instanceof R2}})):Mb=function(r){return r instanceof this};function Sa(e){Tv=Tv||Zf();var r=this instanceof Tv;if(!r&&!Mb.call(Sa,this))return new Sa(e);this._writableState=new R2(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),gne.call(this)}Sa.prototype.pipe=function(){Mv(this,new PBe)};function BBe(e,r){var t=new zBe;Mv(e,t),process.nextTick(r,t)}function OBe(e,r,t,a){var n;return t===null?n=new FBe:typeof t!="string"&&!r.objectMode&&(n=new CBe("chunk",["string","Buffer"],t)),n?(Mv(e,n),process.nextTick(a,n),!1):!0}Sa.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&SBe(e);return i&&!kb.isBuffer(e)&&(e=kBe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=IBe),a.ending?BBe(this,t):(i||OBe(this,a,e,t))&&(a.pendingcb++,n=UBe(this,a,i,e,r,t)),n};Sa.prototype.cork=function(){this._writableState.corked++};Sa.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&bne(this,e))};Sa.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new NBe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Sa.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function HBe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=kb.from(r,t)),r}Object.defineProperty(Sa.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function UBe(e,r,t,a,n,i){if(!t){var o=HBe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length<r.highWaterMark;if(s||(r.needDrain=!0),r.writing||r.corked){var u=r.lastBufferedRequest;r.lastBufferedRequest={chunk:a,encoding:n,isBuf:t,callback:i,next:null},u?u.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else BT(e,r,!1,l,a,n,i);return s}function BT(e,r,t,a,n,i,o){r.writelen=a,r.writecb=o,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new RBe("write")):t?e._writev(n,r.onwrite):e._write(n,i,r.onwrite),r.sync=!1}function GBe(e,r,t,a,n){--r.pendingcb,t?(process.nextTick(n,a),process.nextTick(P2,e,r),e._writableState.errorEmitted=!0,Mv(e,a)):(n(a),e._writableState.errorEmitted=!0,Mv(e,a),P2(e,r))}function YBe(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function VBe(e,r){var t=e._writableState,a=t.sync,n=t.writecb;if(typeof n!="function")throw new EBe;if(YBe(t),r)GBe(e,t,a,r,n);else{var i=xne(t)||e.destroyed;!i&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&bne(e,t),a?process.nextTick(mne,e,t,i,n):mne(e,t,i,n)}}function mne(e,r,t,a){t||jBe(e,r),r.pendingcb--,a(),P2(e,r)}function jBe(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function bne(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var a=r.bufferedRequestCount,n=new Array(a),i=r.corkedRequestsFree;i.entry=t;for(var o=0,l=!0;t;)n[o]=t,t.isBuf||(l=!1),t=t.next,o+=1;n.allBuffers=l,BT(e,r,!0,r.length,n,"",i.finish),r.pendingcb++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i.next,i.next=null):r.corkedRequestsFree=new yne(r),r.bufferedRequestCount=0}else{for(;t;){var s=t.chunk,u=t.encoding,f=t.callback,c=r.objectMode?1:s.length;if(BT(e,r,!1,c,s,u,f),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}Sa.prototype._write=function(e,r,t){t(new DBe("_write()"))};Sa.prototype._writev=null;Sa.prototype.end=function(e,r,t){var a=this._writableState;return typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),a.corked&&(a.corked=1,this.uncork()),a.ending||ZBe(this,a,t),this};Object.defineProperty(Sa.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function xne(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function WBe(e,r){e._final(function(t){r.pendingcb--,t&&Mv(e,t),r.prefinished=!0,e.emit("prefinish"),P2(e,r)})}function XBe(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"&&!r.destroyed?(r.pendingcb++,r.finalCalled=!0,process.nextTick(WBe,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function P2(e,r){var t=xne(r);if(t&&(XBe(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var a=e._readableState;(!a||a.autoDestroy&&a.endEmitted)&&e.destroy()}return t}function ZBe(e,r,t){r.ending=!0,P2(e,r),t&&(r.finished?process.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function $Be(e,r,t){var a=e.entry;for(e.entry=null;a;){var n=a.callback;r.pendingcb--,n(t),a=a.next}r.corkedRequestsFree.next=e}Object.defineProperty(Sa.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});Sa.prototype.destroy=OT.destroy;Sa.prototype._undestroy=OT.undestroy;Sa.prototype._destroy=function(e,r){r(e)}});var Zf=z((utr,Ane)=>{"use strict";var JBe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Ane.exports=Dl;var wne=YT(),GT=HT();ss()(Dl,wne);for(UT=JBe(GT.prototype),Sb=0;Sb<UT.length;Sb++)qb=UT[Sb],Dl.prototype[qb]||(Dl.prototype[qb]=GT.prototype[qb]);var UT,qb,Sb;function Dl(e){if(!(this instanceof Dl))return new Dl(e);wne.call(this,e),GT.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",KBe)))}Object.defineProperty(Dl.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Dl.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Dl.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function KBe(){this._writableState.ended||process.nextTick(QBe,this)}function QBe(e){e.end()}Object.defineProperty(Dl.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}})});var kne=z((VT,Mne)=>{var Lb=hv(),El=Lb.Buffer;function Tne(e,r){for(var t in e)r[t]=e[t]}El.from&&El.alloc&&El.allocUnsafe&&El.allocUnsafeSlow?Mne.exports=Lb:(Tne(Lb,VT),VT.Buffer=$f);function $f(e,r,t){return El(e,r,t)}$f.prototype=Object.create(El.prototype);Tne(El,$f);$f.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return El(e,r,t)};$f.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=El(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};$f.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return El(e)};$f.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Lb.SlowBuffer(e)}});var XT=z(qne=>{"use strict";var WT=kne().Buffer,Sne=WT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function eOe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function rOe(e){var r=eOe(e);if(typeof r!="string"&&(WT.isEncoding===Sne||!Sne(e)))throw new Error("Unknown encoding: "+e);return r||e}qne.StringDecoder=F2;function F2(e){this.encoding=rOe(e);var r;switch(this.encoding){case"utf16le":this.text=lOe,this.end=sOe,r=4;break;case"utf8":this.fillLast=nOe,r=4;break;case"base64":this.text=uOe,this.end=fOe,r=3;break;default:this.write=cOe,this.end=vOe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=WT.allocUnsafe(r)}F2.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};F2.prototype.end=oOe;F2.prototype.text=iOe;F2.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function jT(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function tOe(e,r,t){var a=r.length-1;if(a<t)return 0;var n=jT(r[a]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--a<t||n===-2?0:(n=jT(r[a]),n>=0?(n>0&&(e.lastNeed=n-2),n):--a<t||n===-2?0:(n=jT(r[a]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function aOe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function nOe(e){var r=this.lastTotal-this.lastNeed,t=aOe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function iOe(e,r){var t=tOe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function oOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function lOe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function sOe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function uOe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function fOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function cOe(e){return e.toString(this.encoding)}function vOe(e){return e&&e.length?this.write(e):""}});var Cb=z((ctr,Dne)=>{"use strict";var Lne=Xf().codes.ERR_STREAM_PREMATURE_CLOSE;function hOe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];e.apply(this,a)}}}function dOe(){}function pOe(e){return e.setHeader&&typeof e.abort=="function"}function Cne(e,r,t){if(typeof r=="function")return Cne(e,null,r);r||(r={}),t=hOe(t||dOe);var a=r.readable||r.readable!==!1&&e.readable,n=r.writable||r.writable!==!1&&e.writable,i=function(){e.writable||l()},o=e._writableState&&e._writableState.finished,l=function(){n=!1,o=!0,a||t.call(e)},s=e._readableState&&e._readableState.endEmitted,u=function(){a=!1,s=!0,n||t.call(e)},f=function(p){t.call(e,p)},c=function(){var p;if(a&&!s)return(!e._readableState||!e._readableState.ended)&&(p=new Lne),t.call(e,p);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(p=new Lne),t.call(e,p)},v=function(){e.req.on("finish",l)};return pOe(e)?(e.on("complete",l),e.on("abort",c),e.req?v():e.on("request",v)):n&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",u),e.on("finish",l),r.error!==!1&&e.on("error",f),e.on("close",c),function(){e.removeListener("complete",l),e.removeListener("abort",c),e.removeListener("request",v),e.req&&e.req.removeListener("finish",l),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",l),e.removeListener("end",u),e.removeListener("error",f),e.removeListener("close",c)}}Dne.exports=Cne});var Pne=z((vtr,Ene)=>{"use strict";var Db;function uu(e,r,t){return r=mOe(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function mOe(e){var r=yOe(e,"string");return typeof r=="symbol"?r:String(r)}function yOe(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var gOe=Cb(),fu=Symbol("lastResolve"),Jf=Symbol("lastReject"),z2=Symbol("error"),Eb=Symbol("ended"),Kf=Symbol("lastPromise"),ZT=Symbol("handlePromise"),Qf=Symbol("stream");function cu(e,r){return{value:e,done:r}}function bOe(e){var r=e[fu];if(r!==null){var t=e[Qf].read();t!==null&&(e[Kf]=null,e[fu]=null,e[Jf]=null,r(cu(t,!1)))}}function xOe(e){process.nextTick(bOe,e)}function _Oe(e,r){return function(t,a){e.then(function(){if(r[Eb]){t(cu(void 0,!0));return}r[ZT](t,a)},a)}}var wOe=Object.getPrototypeOf(function(){}),AOe=Object.setPrototypeOf((Db={get stream(){return this[Qf]},next:function(){var r=this,t=this[z2];if(t!==null)return Promise.reject(t);if(this[Eb])return Promise.resolve(cu(void 0,!0));if(this[Qf].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[z2]?l(r[z2]):o(cu(void 0,!0))})});var a=this[Kf],n;if(a)n=new Promise(_Oe(a,this));else{var i=this[Qf].read();if(i!==null)return Promise.resolve(cu(i,!1));n=new Promise(this[ZT])}return this[Kf]=n,n}},uu(Db,Symbol.asyncIterator,function(){return this}),uu(Db,"return",function(){var r=this;return new Promise(function(t,a){r[Qf].destroy(null,function(n){if(n){a(n);return}t(cu(void 0,!0))})})}),Db),wOe),TOe=function(r){var t,a=Object.create(AOe,(t={},uu(t,Qf,{value:r,writable:!0}),uu(t,fu,{value:null,writable:!0}),uu(t,Jf,{value:null,writable:!0}),uu(t,z2,{value:null,writable:!0}),uu(t,Eb,{value:r._readableState.endEmitted,writable:!0}),uu(t,ZT,{value:function(i,o){var l=a[Qf].read();l?(a[Kf]=null,a[fu]=null,a[Jf]=null,i(cu(l,!1))):(a[fu]=i,a[Jf]=o)},writable:!0}),t));return a[Kf]=null,gOe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Jf];i!==null&&(a[Kf]=null,a[fu]=null,a[Jf]=null,i(n)),a[z2]=n;return}var o=a[fu];o!==null&&(a[Kf]=null,a[fu]=null,a[Jf]=null,o(cu(void 0,!0))),a[Eb]=!0}),r.on("readable",xOe.bind(null,a)),a};Ene.exports=TOe});var Fne=z((htr,Rne)=>{Rne.exports=function(){throw new Error("Readable.from is not available in the browser")}});var YT=z((ptr,Vne)=>{"use strict";Vne.exports=Tt;var kv;Tt.ReadableState=Bne;var dtr=Wu().EventEmitter,Ine=function(r,t){return r.listeners(t).length},I2=GA(),Pb=hv().Buffer,MOe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function kOe(e){return Pb.from(e)}function SOe(e){return Pb.isBuffer(e)||e instanceof MOe}var $T=PT(),nt;$T&&$T.debuglog?nt=$T.debuglog("stream"):nt=function(){};var qOe=lne(),aM=zT(),LOe=NT(),COe=LOe.getHighWaterMark,Rb=Xf().codes,DOe=Rb.ERR_INVALID_ARG_TYPE,EOe=Rb.ERR_STREAM_PUSH_AFTER_EOF,POe=Rb.ERR_METHOD_NOT_IMPLEMENTED,ROe=Rb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Sv,JT,KT;ss()(Tt,I2);var N2=aM.errorOrDestroy,QT=["error","close","destroy","pause","resume"];function FOe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Bne(e,r,t){kv=kv||Zf(),e=e||{},typeof t!="boolean"&&(t=r instanceof kv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=COe(this,e,"readableHighWaterMark",t),this.buffer=new qOe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Sv||(Sv=XT().StringDecoder),this.decoder=new Sv(e.encoding),this.encoding=e.encoding)}function Tt(e){if(kv=kv||Zf(),!(this instanceof Tt))return new Tt(e);var r=this instanceof kv;this._readableState=new Bne(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),I2.call(this)}Object.defineProperty(Tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Tt.prototype.destroy=aM.destroy;Tt.prototype._undestroy=aM.undestroy;Tt.prototype._destroy=function(e,r){r(e)};Tt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Pb.from(e,r),r=""),a=!0),One(this,e,r,!1,a)};Tt.prototype.unshift=function(e){return One(this,e,null,!0,!1)};function One(e,r,t,a,n){nt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,IOe(e,i);else{var o;if(n||(o=zOe(i,r)),o)N2(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==Pb.prototype&&(r=kOe(r)),a)i.endEmitted?N2(e,new ROe):eM(e,i,r,!0);else if(i.ended)N2(e,new EOe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?eM(e,i,r,!1):tM(e,i)):eM(e,i,r,!1)}else a||(i.reading=!1,tM(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function eM(e,r,t,a){r.flowing&&r.length===0&&!r.sync?(r.awaitDrain=0,e.emit("data",t)):(r.length+=r.objectMode?1:t.length,a?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&Fb(e)),tM(e,r)}function zOe(e,r){var t;return!SOe(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new DOe("chunk",["string","Buffer","Uint8Array"],r)),t}Tt.prototype.isPaused=function(){return this._readableState.flowing===!1};Tt.prototype.setEncoding=function(e){Sv||(Sv=XT().StringDecoder);var r=new Sv(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,a="";t!==null;)a+=r.write(t.data),t=t.next;return this._readableState.buffer.clear(),a!==""&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var zne=1073741824;function NOe(e){return e>=zne?e=zne:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Nne(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=NOe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}Tt.prototype.read=function(e){nt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return nt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?rM(this):Fb(this),null;if(e=Nne(e,r),e===0&&r.ended)return r.length===0&&rM(this),null;var a=r.needReadable;nt("need readable",a),(r.length===0||r.length-e<r.highWaterMark)&&(a=!0,nt("length less than watermark",a)),r.ended||r.reading?(a=!1,nt("reading or ended",a)):a&&(nt("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Nne(t,r)));var n;return e>0?n=Gne(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&rM(this)),n!==null&&this.emit("data",n),n};function IOe(e,r){if(nt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?Fb(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,Hne(e)))}}function Fb(e){var r=e._readableState;nt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(nt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(Hne,e))}function Hne(e){var r=e._readableState;nt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,nM(e)}function tM(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(BOe,e,r))}function BOe(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&r.length===0);){var t=r.length;if(nt("maybeReadMore read 0"),e.read(0),t===r.length)break}r.readingMore=!1}Tt.prototype._read=function(e){N2(this,new POe("_read()"))};Tt.prototype.pipe=function(e,r){var t=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e);break}a.pipesCount+=1,nt("pipe count=%d opts=%j",a.pipesCount,r);var n=(!r||r.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=n?l:y;a.endEmitted?process.nextTick(i):t.once("end",i),e.on("unpipe",o);function o(m,b){nt("onunpipe"),m===t&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function l(){nt("onend"),e.end()}var s=OOe(t);e.on("drain",s);var u=!1;function f(){nt("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",v),e.removeListener("unpipe",o),t.removeListener("end",l),t.removeListener("end",y),t.removeListener("data",c),u=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}t.on("data",c);function c(m){nt("ondata");var b=e.write(m);nt("dest.write",b),b===!1&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&Yne(a.pipes,e)!==-1)&&!u&&(nt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(m){nt("onerror",m),y(),e.removeListener("error",v),Ine(e,"error")===0&&N2(e,m)}FOe(e,"error",v);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){nt("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){nt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(nt("pipe resume"),t.resume()),e};function OOe(e){return function(){var t=e._readableState;nt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Ine(e,"data")&&(t.flowing=!0,nM(e))}}Tt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i<n;i++)a[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Yne(r.pipes,e);return o===-1?this:(r.pipes.splice(o,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};Tt.prototype.on=function(e,r){var t=I2.prototype.on.call(this,e,r),a=this._readableState;return e==="data"?(a.readableListening=this.listenerCount("readable")>0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,nt("on readable",a.length,a.reading),a.length?Fb(this):a.reading||process.nextTick(HOe,this)),t};Tt.prototype.addListener=Tt.prototype.on;Tt.prototype.removeListener=function(e,r){var t=I2.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(Une,this),t};Tt.prototype.removeAllListeners=function(e){var r=I2.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Une,this),r};function Une(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function HOe(e){nt("readable nexttick read 0"),e.read(0)}Tt.prototype.resume=function(){var e=this._readableState;return e.flowing||(nt("resume"),e.flowing=!e.readableListening,UOe(this,e)),e.paused=!1,this};function UOe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(GOe,e,r))}function GOe(e,r){nt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),nM(e),r.flowing&&!r.reading&&e.read(0)}Tt.prototype.pause=function(){return nt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function nM(e){var r=e._readableState;for(nt("flow",r.flowing);r.flowing&&e.read()!==null;);}Tt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(nt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(nt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(l){return function(){return e[l].apply(e,arguments)}})(n));for(var i=0;i<QT.length;i++)e.on(QT[i],this.emit.bind(this,QT[i]));return this._read=function(o){nt("wrapped _read",o),a&&(a=!1,e.resume())},this};typeof Symbol=="function"&&(Tt.prototype[Symbol.asyncIterator]=function(){return JT===void 0&&(JT=Pne()),JT(this)});Object.defineProperty(Tt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Tt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Tt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}});Tt._fromList=Gne;Object.defineProperty(Tt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Gne(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function rM(e){var r=e._readableState;nt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(YOe,r,e))}function YOe(e,r){if(nt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(Tt.from=function(e,r){return KT===void 0&&(KT=Fne()),KT(Tt,e,r)});function Yne(e,r){for(var t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1}});var iM=z((mtr,Wne)=>{"use strict";Wne.exports=fs;var zb=Xf().codes,VOe=zb.ERR_METHOD_NOT_IMPLEMENTED,jOe=zb.ERR_MULTIPLE_CALLBACK,WOe=zb.ERR_TRANSFORM_ALREADY_TRANSFORMING,XOe=zb.ERR_TRANSFORM_WITH_LENGTH_0,Nb=Zf();ss()(fs,Nb);function ZOe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new jOe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function fs(e){if(!(this instanceof fs))return new fs(e);Nb.call(this,e),this._transformState={afterTransform:ZOe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",$Oe)}function $Oe(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(r,t){jne(e,r,t)}):jne(this,null,null)}fs.prototype.push=function(e,r){return this._transformState.needTransform=!1,Nb.prototype.push.call(this,e,r)};fs.prototype._transform=function(e,r,t){t(new VOe("_transform()"))};fs.prototype._write=function(e,r,t){var a=this._transformState;if(a.writecb=t,a.writechunk=e,a.writeencoding=r,!a.transforming){var n=this._readableState;(a.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};fs.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};fs.prototype._destroy=function(e,r){Nb.prototype._destroy.call(this,e,function(t){r(t)})};function jne(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new XOe;if(e._transformState.transforming)throw new WOe;return e.push(null)}});var $ne=z((ytr,Zne)=>{"use strict";Zne.exports=B2;var Xne=iM();ss()(B2,Xne);function B2(e){if(!(this instanceof B2))return new B2(e);Xne.call(this,e)}B2.prototype._transform=function(e,r,t){t(null,e)}});var rie=z((gtr,eie)=>{"use strict";var oM;function JOe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var Qne=Xf().codes,KOe=Qne.ERR_MISSING_ARGS,QOe=Qne.ERR_STREAM_DESTROYED;function Jne(e){if(e)throw e}function eHe(e){return e.setHeader&&typeof e.abort=="function"}function rHe(e,r,t,a){a=JOe(a);var n=!1;e.on("close",function(){n=!0}),oM===void 0&&(oM=Cb()),oM(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,eHe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new QOe("pipe"))}}}function Kne(e){e()}function tHe(e,r){return e.pipe(r)}function aHe(e){return!e.length||typeof e[e.length-1]!="function"?Jne:e.pop()}function nHe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=aHe(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new KOe("streams");var n,i=r.map(function(o,l){var s=l<r.length-1,u=l>0;return rHe(o,s,u,function(f){n||(n=f),f&&i.forEach(Kne),!s&&(i.forEach(Kne),a(n))})});return r.reduce(tHe)}eie.exports=nHe});var aie=z((btr,tie)=>{tie.exports=go;var lM=Wu().EventEmitter,iHe=ss();iHe(go,lM);go.Readable=YT();go.Writable=HT();go.Duplex=Zf();go.Transform=iM();go.PassThrough=$ne();go.finished=Cb();go.pipeline=rie();go.Stream=go;function go(){lM.call(this)}go.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),lM.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Lv=z(vt=>{var nie=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n<t.length;n++)a[t[n]]=Object.getOwnPropertyDescriptor(r,t[n]);return a},oHe=/%[sdj%]/g;vt.format=function(e){if(!Yb(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(vu(arguments[t]));return r.join(" ")}for(var t=1,a=arguments,n=a.length,i=String(e).replace(oHe,function(l){if(l==="%%")return"%";if(t>=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t<n;o=a[++t])Gb(o)||!qv(o)?i+=" "+o:i+=" "+vu(o);return i};vt.deprecate=function(e,r){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return vt.deprecate(e,r).apply(this,arguments)};var t=!1;function a(){if(!t){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return a};var Ib={},iie=/^$/;Bb="false",Bb=Bb.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),iie=new RegExp("^"+Bb+"$","i");var Bb;vt.debuglog=function(e){if(e=e.toUpperCase(),!Ib[e])if(iie.test(e)){var r=process.pid;Ib[e]=function(){var t=vt.format.apply(vt,arguments);console.error("%s %d: %s",e,r,t)}}else Ib[e]=function(){};return Ib[e]};function vu(e,r){var t={seen:[],stylize:sHe};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),cM(r)?t.showHidden=r:r&&vt._extend(t,r),rc(t.showHidden)&&(t.showHidden=!1),rc(t.depth)&&(t.depth=2),rc(t.colors)&&(t.colors=!1),rc(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=lHe),Hb(t,e,t.depth)}vt.inspect=vu;vu.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};vu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function lHe(e,r){var t=vu.styles[r];return t?"\x1B["+vu.colors[t][0]+"m"+e+"\x1B["+vu.colors[t][1]+"m":e}function sHe(e,r){return e}function uHe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Hb(e,r,t){if(e.customInspect&&r&&Ob(r.inspect)&&r.inspect!==vt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Yb(a)||(a=Hb(e,a,t)),a}var n=fHe(e,r);if(n)return n;var i=Object.keys(r),o=uHe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),H2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return sM(r);if(i.length===0){if(Ob(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(O2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Ub(r))return e.stylize(Date.prototype.toString.call(r),"date");if(H2(r))return sM(r)}var s="",u=!1,f=["{","}"];if(oie(r)&&(u=!0,f=["[","]"]),Ob(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(O2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Ub(r)&&(s=" "+Date.prototype.toUTCString.call(r)),H2(r)&&(s=" "+sM(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return O2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=cHe(e,r,t,o,i):v=i.map(function(d){return fM(e,r,t,o,d,u)}),e.seen.pop(),vHe(v,s,f)}function fHe(e,r){if(rc(r))return e.stylize("undefined","undefined");if(Yb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(lie(r))return e.stylize(""+r,"number");if(cM(r))return e.stylize(""+r,"boolean");if(Gb(r))return e.stylize("null","null")}function sM(e){return"["+Error.prototype.toString.call(e)+"]"}function cHe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)sie(r,String(o))?i.push(fM(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(fM(e,r,t,a,s,!0))}),i}function fM(e,r,t,a,n,i){var o,l,s;if(s=Object.getOwnPropertyDescriptor(r,n)||{value:r[n]},s.get?s.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),sie(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(Gb(t)?l=Hb(e,s.value,null):l=Hb(e,s.value,t-1),l.indexOf(`
`)>-1&&(i?l=l.split(`
`).map(function(u){return"  "+u}).join(`
`).slice(2):l=`
`+l.split(`
`).map(function(u){return"   "+u}).join(`
`))):l=e.stylize("[Circular]","special")),rc(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function vHe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(`
`)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+`
 `)+" "+e.join(`,
  `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}vt.types=kT();function oie(e){return Array.isArray(e)}vt.isArray=oie;function cM(e){return typeof e=="boolean"}vt.isBoolean=cM;function Gb(e){return e===null}vt.isNull=Gb;function hHe(e){return e==null}vt.isNullOrUndefined=hHe;function lie(e){return typeof e=="number"}vt.isNumber=lie;function Yb(e){return typeof e=="string"}vt.isString=Yb;function dHe(e){return typeof e=="symbol"}vt.isSymbol=dHe;function rc(e){return e===void 0}vt.isUndefined=rc;function O2(e){return qv(e)&&vM(e)==="[object RegExp]"}vt.isRegExp=O2;vt.types.isRegExp=O2;function qv(e){return typeof e=="object"&&e!==null}vt.isObject=qv;function Ub(e){return qv(e)&&vM(e)==="[object Date]"}vt.isDate=Ub;vt.types.isDate=Ub;function H2(e){return qv(e)&&(vM(e)==="[object Error]"||e instanceof Error)}vt.isError=H2;vt.types.isNativeError=H2;function Ob(e){return typeof e=="function"}vt.isFunction=Ob;function pHe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}vt.isPrimitive=pHe;vt.isBuffer=ST();function vM(e){return Object.prototype.toString.call(e)}function uM(e){return e<10?"0"+e.toString(10):e.toString(10)}var mHe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yHe(){var e=new Date,r=[uM(e.getHours()),uM(e.getMinutes()),uM(e.getSeconds())].join(":");return[e.getDate(),mHe[e.getMonth()],r].join(" ")}vt.log=function(){console.log("%s - %s",yHe(),vt.format.apply(vt,arguments))};vt.inherits=ss();vt._extend=function(e,r){if(!r||!qv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function sie(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ec=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;vt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(ec&&r[ec]){var t=r[ec];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ec,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l<arguments.length;l++)o.push(arguments[l]);o.push(function(s,u){s?n(s):a(u)});try{r.apply(this,o)}catch(s){n(s)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),ec&&Object.defineProperty(t,ec,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,nie(r))};vt.promisify.custom=ec;function gHe(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function bHe(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a]);var n=t.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(l){process.nextTick(o.bind(null,null,l))},function(l){process.nextTick(gHe.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,nie(e)),r}vt.callbackify=bHe});var pM=z((_tr,vie)=>{"use strict";function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hu(e)}function uie(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,_He(a.key),a)}}function xHe(e,r,t){return r&&uie(e.prototype,r),t&&uie(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _He(e){var r=wHe(e,"string");return hu(r)==="symbol"?r:String(r)}function wHe(e,r){if(hu(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(hu(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function AHe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function THe(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&dM(e,r)}function dM(e,r){return dM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},dM(e,r)}function MHe(e){var r=qHe();return function(){var a=Vb(e),n;if(r){var i=Vb(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return kHe(this,n)}}function kHe(e,r){if(r&&(hu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SHe(e)}function SHe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qHe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Vb(e){return Vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vb(e)}var cie={},Cv,hM;function U2(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){THe(l,i);var o=MHe(l);function l(s,u,f){var c;return AHe(this,l),c=o.call(this,a(s,u,f)),c.code=e,c}return xHe(l)})(t);cie[e]=n}function fie(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function LHe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function CHe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function DHe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}U2("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);U2("ERR_INVALID_ARG_TYPE",function(e,r,t){Cv===void 0&&(Cv=jb()),Cv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&LHe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(CHe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fie(r,"type"));else{var i=DHe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fie(r,"type"))}return n+=". Received type ".concat(hu(t)),n},TypeError);U2("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";hM===void 0&&(hM=Lv());var a=hM.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);U2("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(hu(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);U2("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Cv===void 0&&(Cv=jb()),Cv(r.length>0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);vie.exports.codes=cie});var wie=z((wtr,_ie)=>{"use strict";function hie(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function die(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?hie(Object(t),!0).forEach(function(a){EHe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hie(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function EHe(e,r,t){return r=gie(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function PHe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function pie(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,gie(a.key),a)}}function RHe(e,r,t){return r&&pie(e.prototype,r),t&&pie(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gie(e){var r=FHe(e,"string");return ui(r)==="symbol"?r:String(r)}function FHe(e,r){if(ui(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(ui(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function zHe(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&j2(e,r)}function NHe(e){var r=xie();return function(){var a=W2(e),n;if(r){var i=W2(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return bie(this,n)}}function bie(e,r){if(r&&(ui(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mM(e)}function mM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yM(e){var r=typeof Map=="function"?new Map:void 0;return yM=function(a){if(a===null||!IHe(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(a))return r.get(a);r.set(a,n)}function n(){return Wb(a,arguments,W2(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),j2(n,a)},yM(e)}function Wb(e,r,t){return xie()?Wb=Reflect.construct.bind():Wb=function(n,i,o){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(n,l),u=new s;return o&&j2(u,o.prototype),u},Wb.apply(null,arguments)}function xie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function IHe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function j2(e,r){return j2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},j2(e,r)}function W2(e){return W2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W2(e)}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ui(e)}var BHe=Lv(),gM=BHe.inspect,OHe=pM(),HHe=OHe.codes.ERR_INVALID_ARG_TYPE;function mie(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function UHe(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var $o="",G2="",Y2="",bn="",tc={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},GHe=10;function yie(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function V2(e){return gM(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function YHe(e,r,t){var a="",n="",i=0,o="",l=!1,s=V2(e),u=s.split(`
`),f=V2(r).split(`
`),c=0,v="";if(t==="strictEqual"&&ui(e)==="object"&&ui(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=GHe){if((ui(e)!=="object"||e===null)&&(ui(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(tc[t],`

`)+"".concat(u[0]," !== ").concat(f[0],`
`)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d<p){for(;u[0][c]===f[0][c];)c++;c>2&&(v=`
  `.concat(UHe(" ",c),"^"),c=0)}}}for(var y=u[u.length-1],m=f[f.length-1];y===m&&(c++<2?o=`
  `.concat(y).concat(o):a=y,u.pop(),f.pop(),!(u.length===0||f.length===0));)y=u[u.length-1],m=f[f.length-1];var b=Math.max(u.length,f.length);if(b===0){var A=s.split(`
`);if(A.length>30)for(A[26]="".concat($o,"...").concat(bn);A.length>27;)A.pop();return"".concat(tc.notIdentical,`

`).concat(A.join(`
`),`
`)}c>3&&(o=`
`.concat($o,"...").concat(bn).concat(o),l=!0),a!==""&&(o=`
  `.concat(a).concat(o),a="");var w=0,x=tc[t]+`
`.concat(G2,"+ actual").concat(bn," ").concat(Y2,"- expected").concat(bn),_=" ".concat($o,"...").concat(bn," Lines skipped");for(c=0;c<b;c++){var k=c-i;if(u.length<c+1)k>1&&c>2&&(k>4?(n+=`
`.concat($o,"...").concat(bn),l=!0):k>3&&(n+=`
  `.concat(f[c-2]),w++),n+=`
  `.concat(f[c-1]),w++),i=c,a+=`
`.concat(Y2,"-").concat(bn," ").concat(f[c]),w++;else if(f.length<c+1)k>1&&c>2&&(k>4?(n+=`
`.concat($o,"...").concat(bn),l=!0):k>3&&(n+=`
  `.concat(u[c-2]),w++),n+=`
  `.concat(u[c-1]),w++),i=c,n+=`
`.concat(G2,"+").concat(bn," ").concat(u[c]),w++;else{var T=f[c],q=u[c],C=q!==T&&(!mie(q,",")||q.slice(0,-1)!==T);C&&mie(T,",")&&T.slice(0,-1)===q&&(C=!1,q+=","),C?(k>1&&c>2&&(k>4?(n+=`
`.concat($o,"...").concat(bn),l=!0):k>3&&(n+=`
  `.concat(u[c-2]),w++),n+=`
  `.concat(u[c-1]),w++),i=c,n+=`
`.concat(G2,"+").concat(bn," ").concat(q),a+=`
`.concat(Y2,"-").concat(bn," ").concat(T),w+=2):(n+=a,a="",(k===1||c===0)&&(n+=`
  `.concat(q),w++))}if(w>20&&c<b-2)return"".concat(x).concat(_,`
`).concat(n,`
`).concat($o,"...").concat(bn).concat(a,`
`)+"".concat($o,"...").concat(bn)}return"".concat(x).concat(l?_:"",`
`).concat(n).concat(a).concat(o).concat(v)}var VHe=(function(e,r){zHe(a,e);var t=NHe(a);function a(n){var i;if(PHe(this,a),ui(n)!=="object"||n===null)throw new HHe("options","Object",n);var o=n.message,l=n.operator,s=n.stackStartFn,u=n.actual,f=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)i=t.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?($o="\x1B[34m",G2="\x1B[32m",bn="\x1B[39m",Y2="\x1B[31m"):($o="",G2="",bn="",Y2="")),ui(u)==="object"&&u!==null&&ui(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=yie(u),f=yie(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,YHe(u,f,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=tc[l],d=V2(u).split(`
`);if(l==="notStrictEqual"&&ui(u)==="object"&&u!==null&&(v=tc.notStrictEqualObject),d.length>30)for(d[26]="".concat($o,"...").concat(bn);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,`

`).concat(d.join(`
`),`
`))}else{var p=V2(u),y="",m=tc[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(tc[l],`

`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(V2(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,`

`).concat(p,`

should equal

`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(mM(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=u,i.expected=f,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(mM(i),s),i.stack,i.name="AssertionError",bie(i)}return RHe(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return gM(this,die(die({},o),{},{customInspect:!1,depth:0}))}}]),a})(yM(Error),gM.custom);_ie.exports=VHe});var bM=z((Atr,Tie)=>{"use strict";var Aie=Object.prototype.toString;Tie.exports=function(r){var t=Aie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Aie.call(r.callee)==="[object Function]"),a}});var Pie=z((Ttr,Eie)=>{"use strict";var Die;Object.keys||(X2=Object.prototype.hasOwnProperty,xM=Object.prototype.toString,Mie=bM(),_M=Object.prototype.propertyIsEnumerable,kie=!_M.call({toString:null},"toString"),Sie=_M.call(function(){},"prototype"),Z2=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Xb=function(e){var r=e.constructor;return r&&r.prototype===e},qie={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Lie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!qie["$"+e]&&X2.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Xb(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),Cie=function(e){if(typeof window=="undefined"||!Lie)return Xb(e);try{return Xb(e)}catch(r){return!1}},Die=function(r){var t=r!==null&&typeof r=="object",a=xM.call(r)==="[object Function]",n=Mie(r),i=t&&xM.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=Sie&&a;if(i&&r.length>0&&!X2.call(r,0))for(var s=0;s<r.length;++s)o.push(String(s));if(n&&r.length>0)for(var u=0;u<r.length;++u)o.push(String(u));else for(var f in r)!(l&&f==="prototype")&&X2.call(r,f)&&o.push(String(f));if(kie)for(var c=Cie(r),v=0;v<Z2.length;++v)!(c&&Z2[v]==="constructor")&&X2.call(r,Z2[v])&&o.push(Z2[v]);return o});var X2,xM,Mie,_M,kie,Sie,Z2,Xb,qie,Lie,Cie;Eie.exports=Die});var wM=z((Mtr,zie)=>{"use strict";var jHe=Array.prototype.slice,WHe=bM(),Rie=Object.keys,Zb=Rie?function(r){return Rie(r)}:Pie(),Fie=Object.keys;Zb.shim=function(){if(Object.keys){var r=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);r||(Object.keys=function(a){return WHe(a)?Fie(jHe.call(a)):Fie(a)})}else Object.keys=Zb;return Object.keys||Zb};zie.exports=Zb});var Hie=z((ktr,Oie)=>{"use strict";var XHe=wM(),Iie=V3()(),Bie=Vf(),$b=j3(),ZHe=Bie("Array.prototype.push"),Nie=Bie("Object.prototype.propertyIsEnumerable"),$He=Iie?$b.getOwnPropertySymbols:null;Oie.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=$b(r);if(arguments.length===1)return a;for(var n=1;n<arguments.length;++n){var i=$b(arguments[n]),o=XHe(i),l=Iie&&($b.getOwnPropertySymbols||$He);if(l)for(var s=l(i),u=0;u<s.length;++u){var f=s[u];Nie(i,f)&&ZHe(o,f)}for(var c=0;c<o.length;++c){var v=o[c];if(Nie(i,v)){var d=i[v];a[v]=d}}}return a}});var Gie=z((Str,Uie)=>{"use strict";var AM=Hie(),JHe=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a<r.length;++a)t[r[a]]=r[a];var n=Object.assign({},t),i="";for(var o in n)i+=o;return e!==i},KHe=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(r){return e[1]==="y"}return!1};Uie.exports=function(){return!Object.assign||JHe()||KHe()?AM:Object.assign}});var TM=z((qtr,Vie)=>{"use strict";var Yie=function(e){return e!==e};Vie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||Yie(r)&&Yie(t))}});var Jb=z((Ltr,jie)=>{"use strict";var QHe=TM();jie.exports=function(){return typeof Object.is=="function"?Object.is:QHe}});var $ie=z((Ctr,Zie)=>{"use strict";var Wie=rb(),Xie=q2(),eUe=Xie(Wie("String.prototype.indexOf"));Zie.exports=function(r,t){var a=Wie(r,!!t);return typeof a=="function"&&eUe(r,".prototype.")>-1?Xie(a):a}});var $2=z((Dtr,eoe)=>{"use strict";var rUe=wM(),tUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",aUe=Object.prototype.toString,nUe=Array.prototype.concat,Jie=yT(),iUe=function(e){return typeof e=="function"&&aUe.call(e)==="[object Function]"},Kie=bT()(),oUe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!iUe(a)||!a())return}Kie?Jie(e,r,t,!0):Jie(e,r,t)},Qie=function(e,r){var t=arguments.length>2?arguments[2]:{},a=rUe(r);tUe&&(a=nUe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n<a.length;n+=1)oUe(e,a[n],r[a[n]],t[a[n]])};Qie.supportsDescriptors=!!Kie;eoe.exports=Qie});var toe=z((Etr,roe)=>{"use strict";var lUe=Jb(),sUe=$2();roe.exports=function(){var r=lUe();return sUe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var ooe=z((Ptr,ioe)=>{"use strict";var uUe=$2(),fUe=q2(),cUe=TM(),aoe=Jb(),vUe=toe(),noe=fUe(aoe(),Object);uUe(noe,{getPolyfill:aoe,implementation:cUe,shim:vUe});ioe.exports=noe});var MM=z((Rtr,loe)=>{"use strict";loe.exports=function(r){return r!==r}});var kM=z((Ftr,soe)=>{"use strict";var hUe=MM();soe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:hUe}});var foe=z((ztr,uoe)=>{"use strict";var dUe=$2(),pUe=kM();uoe.exports=function(){var r=pUe();return dUe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var doe=z((Ntr,hoe)=>{"use strict";var mUe=q2(),yUe=$2(),gUe=MM(),coe=kM(),bUe=foe(),voe=mUe(coe(),Number);yUe(voe,{getPolyfill:coe,implementation:gUe,shim:bUe});hoe.exports=voe});var Roe=z((Itr,Poe)=>{"use strict";function poe(e,r){return AUe(e)||wUe(e,r)||_Ue(e,r)||xUe()}function xUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Ue(e,r){if(e){if(typeof e=="string")return moe(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return moe(e,r)}}function moe(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function wUe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,u=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(f){u=!0,n=f}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return l}}function AUe(e){if(Array.isArray(e))return e}function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(e)}var TUe=/a/g.flags!==void 0,nx=function(r){var t=[];return r.forEach(function(a){return t.push(a)}),t},yoe=function(r){var t=[];return r.forEach(function(a,n){return t.push([n,a])}),t},qoe=Object.is?Object.is:ooe(),tx=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},SM=Number.isNaN?Number.isNaN:doe();function LM(e){return e.call.bind(e)}var K2=LM(Object.prototype.hasOwnProperty),ax=LM(Object.prototype.propertyIsEnumerable),goe=LM(Object.prototype.toString),Vn=Lv().types,MUe=Vn.isAnyArrayBuffer,kUe=Vn.isArrayBufferView,boe=Vn.isDate,Kb=Vn.isMap,xoe=Vn.isRegExp,Qb=Vn.isSet,SUe=Vn.isNativeError,qUe=Vn.isBoxedPrimitive,_oe=Vn.isNumberObject,woe=Vn.isStringObject,Aoe=Vn.isBooleanObject,Toe=Vn.isBigIntObject,LUe=Vn.isSymbolObject,CUe=Vn.isFloat32Array,DUe=Vn.isFloat64Array;function EUe(e){if(e.length===0||e.length>10)return!0;for(var r=0;r<e.length;r++){var t=e.charCodeAt(r);if(t<48||t>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function ex(e){return Object.keys(e).filter(EUe).concat(tx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Loe(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n<i;++n)if(e[n]!==r[n]){t=e[n],a=r[n];break}return t<a?-1:a<t?1:0}var rx=void 0,PUe=!0,RUe=!1,qM=0,CM=1,Coe=2,Doe=3;function FUe(e,r){return TUe?e.source===r.source&&e.flags===r.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(r)}function zUe(e,r){if(e.byteLength!==r.byteLength)return!1;for(var t=0;t<e.byteLength;t++)if(e[t]!==r[t])return!1;return!0}function NUe(e,r){return e.byteLength!==r.byteLength?!1:Loe(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(r.buffer,r.byteOffset,r.byteLength))===0}function IUe(e,r){return e.byteLength===r.byteLength&&Loe(new Uint8Array(e),new Uint8Array(r))===0}function BUe(e,r){return _oe(e)?_oe(r)&&qoe(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(r)):woe(e)?woe(r)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(r):Aoe(e)?Aoe(r)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(r):Toe(e)?Toe(r)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(r):LUe(r)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(r)}function xo(e,r,t,a){if(e===r)return e!==0?!0:t?qoe(e,r):!0;if(t){if(bo(e)!=="object")return typeof e=="number"&&SM(e)&&SM(r);if(bo(r)!=="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1}else{if(e===null||bo(e)!=="object")return r===null||bo(r)!=="object"?e==r:!1;if(r===null||bo(r)!=="object")return!1}var n=goe(e),i=goe(r);if(n!==i)return!1;if(Array.isArray(e)){if(e.length!==r.length)return!1;var o=ex(e,rx),l=ex(r,rx);return o.length!==l.length?!1:J2(e,r,t,a,CM,o)}if(n==="[object Object]"&&(!Kb(e)&&Kb(r)||!Qb(e)&&Qb(r)))return!1;if(boe(e)){if(!boe(r)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(r))return!1}else if(xoe(e)){if(!xoe(r)||!FUe(e,r))return!1}else if(SUe(e)||e instanceof Error){if(e.message!==r.message||e.name!==r.name)return!1}else if(kUe(e)){if(!t&&(CUe(e)||DUe(e))){if(!zUe(e,r))return!1}else if(!NUe(e,r))return!1;var s=ex(e,rx),u=ex(r,rx);return s.length!==u.length?!1:J2(e,r,t,a,qM,s)}else{if(Qb(e))return!Qb(r)||e.size!==r.size?!1:J2(e,r,t,a,Coe);if(Kb(e))return!Kb(r)||e.size!==r.size?!1:J2(e,r,t,a,Doe);if(MUe(e)){if(!IUe(e,r))return!1}else if(qUe(e)&&!BUe(e,r))return!1}return J2(e,r,t,a,qM)}function Moe(e,r){return r.filter(function(t){return ax(e,t)})}function J2(e,r,t,a,n,i){if(arguments.length===5){i=Object.keys(e);var o=Object.keys(r);if(i.length!==o.length)return!1}for(var l=0;l<i.length;l++)if(!K2(r,i[l]))return!1;if(t&&arguments.length===5){var s=tx(e);if(s.length!==0){var u=0;for(l=0;l<s.length;l++){var f=s[l];if(ax(e,f)){if(!ax(r,f))return!1;i.push(f),u++}else if(ax(r,f))return!1}var c=tx(r);if(s.length!==c.length&&Moe(r,c).length!==u)return!1}else{var v=tx(r);if(v.length!==0&&Moe(r,v).length!==0)return!1}}if(i.length===0&&(n===qM||n===CM&&e.length===0||e.size===0))return!0;if(a===void 0)a={val1:new Map,val2:new Map,position:0};else{var d=a.val1.get(e);if(d!==void 0){var p=a.val2.get(r);if(p!==void 0)return d===p}a.position++}a.val1.set(e,a.position),a.val2.set(r,a.position);var y=YUe(e,r,t,i,a,n);return a.val1.delete(e),a.val2.delete(r),y}function koe(e,r,t,a){for(var n=nx(e),i=0;i<n.length;i++){var o=n[i];if(xo(r,o,t,a))return e.delete(o),!0}return!1}function Eoe(e){switch(bo(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(SM(e))return!1}return!0}function OUe(e,r,t){var a=Eoe(t);return a!=null?a:r.has(a)&&!e.has(a)}function HUe(e,r,t,a,n){var i=Eoe(t);if(i!=null)return i;var o=r.get(i);return o===void 0&&!r.has(i)||!xo(a,o,!1,n)?!1:!e.has(i)&&xo(a,o,!1,n)}function UUe(e,r,t,a){for(var n=null,i=nx(e),o=0;o<i.length;o++){var l=i[o];if(bo(l)==="object"&&l!==null)n===null&&(n=new Set),n.add(l);else if(!r.has(l)){if(t||!OUe(e,r,l))return!1;n===null&&(n=new Set),n.add(l)}}if(n!==null){for(var s=nx(r),u=0;u<s.length;u++){var f=s[u];if(bo(f)==="object"&&f!==null){if(!koe(n,f,t,a))return!1}else if(!t&&!e.has(f)&&!koe(n,f,t,a))return!1}return n.size===0}return!0}function Soe(e,r,t,a,n,i){for(var o=nx(e),l=0;l<o.length;l++){var s=o[l];if(xo(t,s,n,i)&&xo(a,r.get(s),n,i))return e.delete(s),!0}return!1}function GUe(e,r,t,a){for(var n=null,i=yoe(e),o=0;o<i.length;o++){var l=poe(i[o],2),s=l[0],u=l[1];if(bo(s)==="object"&&s!==null)n===null&&(n=new Set),n.add(s);else{var f=r.get(s);if(f===void 0&&!r.has(s)||!xo(u,f,t,a)){if(t||!HUe(e,r,s,u,a))return!1;n===null&&(n=new Set),n.add(s)}}}if(n!==null){for(var c=yoe(r),v=0;v<c.length;v++){var d=poe(c[v],2),p=d[0],y=d[1];if(bo(p)==="object"&&p!==null){if(!Soe(n,e,p,y,t,a))return!1}else if(!t&&(!e.has(p)||!xo(e.get(p),y,!1,a))&&!Soe(n,e,p,y,!1,a))return!1}return n.size===0}return!0}function YUe(e,r,t,a,n,i){var o=0;if(i===Coe){if(!UUe(e,r,t,n))return!1}else if(i===Doe){if(!GUe(e,r,t,n))return!1}else if(i===CM)for(;o<e.length;o++)if(K2(e,o)){if(!K2(r,o)||!xo(e[o],r[o],t,n))return!1}else{if(K2(r,o))return!1;for(var l=Object.keys(e);o<l.length;o++){var s=l[o];if(!K2(r,s)||!xo(e[s],r[s],t,n))return!1}return l.length===Object.keys(r).length}for(o=0;o<a.length;o++){var u=a[o];if(!xo(e[u],r[u],t,n))return!1}return!0}function VUe(e,r){return xo(e,r,RUe)}function jUe(e,r){return xo(e,r,PUe)}Poe.exports={isDeepEqual:VUe,isDeepStrictEqual:jUe}});var jb=z((Btr,Koe)=>{"use strict";function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jo(e)}function Foe(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,XUe(a.key),a)}}function WUe(e,r,t){return r&&Foe(e.prototype,r),t&&Foe(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XUe(e){var r=ZUe(e,"string");return Jo(r)==="symbol"?r:String(r)}function ZUe(e,r){if(Jo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Jo(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function $Ue(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var JUe=pM(),Q2=JUe.codes,zoe=Q2.ERR_AMBIGUOUS_ARGUMENT,Dv=Q2.ERR_INVALID_ARG_TYPE,KUe=Q2.ERR_INVALID_ARG_VALUE,QUe=Q2.ERR_INVALID_RETURN_VALUE,pu=Q2.ERR_MISSING_ARGS,mu=wie(),eGe=Lv(),ix=eGe.inspect,Ooe=Lv().types,rGe=Ooe.isPromise,ox=Ooe.isRegExp,tGe=Gie()(),Hoe=Jb()(),lx=$ie()("RegExp.prototype.test"),du,sx;function e1(){var e=Roe();du=e.isDeepEqual,sx=e.isDeepStrictEqual}var Noe=!1,Jt=Koe.exports=DM,ux={};function Ko(e){throw e.message instanceof Error?e.message:new mu(e)}function Uoe(e,r,t,a,n){var i=arguments.length,o;if(i===0)o="Failed";else if(i===1)t=e,e=void 0;else{if(Noe===!1){Noe=!0;var l=process.emitWarning?process.emitWarning:console.warn.bind(console);l("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}i===2&&(a="!=")}if(t instanceof Error)throw t;var s={actual:e,expected:r,operator:a===void 0?"fail":a,stackStartFn:n||Uoe};t!==void 0&&(s.message=t);var u=new mu(s);throw o&&(u.message=o,u.generatedMessage=!0),u}Jt.fail=Uoe;Jt.AssertionError=mu;function Goe(e,r,t,a){if(!t){var n=!1;if(r===0)n=!0,a="No value argument passed to `assert.ok()`";else if(a instanceof Error)throw a;var i=new mu({actual:t,expected:!0,message:a,operator:"==",stackStartFn:e});throw i.generatedMessage=n,i}}function DM(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Goe.apply(void 0,[DM,r.length].concat(r))}Jt.ok=DM;Jt.equal=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");r!=t&&Ko({actual:r,expected:t,message:a,operator:"==",stackStartFn:e})};Jt.notEqual=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");r==t&&Ko({actual:r,expected:t,message:a,operator:"!=",stackStartFn:e})};Jt.deepEqual=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");du===void 0&&e1(),du(r,t)||Ko({actual:r,expected:t,message:a,operator:"deepEqual",stackStartFn:e})};Jt.notDeepEqual=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");du===void 0&&e1(),du(r,t)&&Ko({actual:r,expected:t,message:a,operator:"notDeepEqual",stackStartFn:e})};Jt.deepStrictEqual=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");du===void 0&&e1(),sx(r,t)||Ko({actual:r,expected:t,message:a,operator:"deepStrictEqual",stackStartFn:e})};Jt.notDeepStrictEqual=Yoe;function Yoe(e,r,t){if(arguments.length<2)throw new pu("actual","expected");du===void 0&&e1(),sx(e,r)&&Ko({actual:e,expected:r,message:t,operator:"notDeepStrictEqual",stackStartFn:Yoe})}Jt.strictEqual=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");Hoe(r,t)||Ko({actual:r,expected:t,message:a,operator:"strictEqual",stackStartFn:e})};Jt.notStrictEqual=function e(r,t,a){if(arguments.length<2)throw new pu("actual","expected");Hoe(r,t)&&Ko({actual:r,expected:t,message:a,operator:"notStrictEqual",stackStartFn:e})};var Ioe=WUe(function e(r,t,a){var n=this;$Ue(this,e),t.forEach(function(i){i in r&&(a!==void 0&&typeof a[i]=="string"&&ox(r[i])&&lx(r[i],a[i])?n[i]=a[i]:n[i]=r[i])})});function aGe(e,r,t,a,n,i){if(!(t in e)||!sx(e[t],r[t])){if(!a){var o=new Ioe(e,n),l=new Ioe(r,n,e),s=new mu({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw s.actual=e,s.expected=r,s.operator=i.name,s}Ko({actual:e,expected:r,message:a,operator:i.name,stackStartFn:i})}}function Voe(e,r,t,a){if(typeof r!="function"){if(ox(r))return lx(r,e);if(arguments.length===2)throw new Dv("expected",["Function","RegExp"],r);if(Jo(e)!=="object"||e===null){var n=new mu({actual:e,expected:r,message:t,operator:"deepStrictEqual",stackStartFn:a});throw n.operator=a.name,n}var i=Object.keys(r);if(r instanceof Error)i.push("name","message");else if(i.length===0)throw new KUe("error",r,"may not be an empty object");return du===void 0&&e1(),i.forEach(function(o){typeof e[o]=="string"&&ox(r[o])&&lx(r[o],e[o])||aGe(e,r,o,t,i,a)}),!0}return r.prototype!==void 0&&e instanceof r?!0:Error.isPrototypeOf(r)?!1:r.call({},e)===!0}function joe(e){if(typeof e!="function")throw new Dv("fn","Function",e);try{e()}catch(r){return r}return ux}function Boe(e){return rGe(e)||e!==null&&Jo(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function Woe(e){return Promise.resolve().then(function(){var r;if(typeof e=="function"){if(r=e(),!Boe(r))throw new QUe("instance of Promise","promiseFn",r)}else if(Boe(e))r=e;else throw new Dv("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return r}).then(function(){return ux}).catch(function(t){return t})})}function Xoe(e,r,t,a){if(typeof t=="string"){if(arguments.length===4)throw new Dv("error",["Object","Error","Function","RegExp"],t);if(Jo(r)==="object"&&r!==null){if(r.message===t)throw new zoe("error/message",'The error message "'.concat(r.message,'" is identical to the message.'))}else if(r===t)throw new zoe("error/message",'The error "'.concat(r,'" is identical to the message.'));a=t,t=void 0}else if(t!=null&&Jo(t)!=="object"&&typeof t!="function")throw new Dv("error",["Object","Error","Function","RegExp"],t);if(r===ux){var n="";t&&t.name&&(n+=" (".concat(t.name,")")),n+=a?": ".concat(a):".";var i=e.name==="rejects"?"rejection":"exception";Ko({actual:void 0,expected:t,operator:e.name,message:"Missing expected ".concat(i).concat(n),stackStartFn:e})}if(t&&!Voe(r,t,a,e))throw r}function Zoe(e,r,t,a){if(r!==ux){if(typeof t=="string"&&(a=t,t=void 0),!t||Voe(r,t)){var n=a?": ".concat(a):".",i=e.name==="doesNotReject"?"rejection":"exception";Ko({actual:r,expected:t,operator:e.name,message:"Got unwanted ".concat(i).concat(n,`
`)+'Actual message: "'.concat(r&&r.message,'"'),stackStartFn:e})}throw r}}Jt.throws=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];Xoe.apply(void 0,[e,joe(r)].concat(a))};Jt.rejects=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return Woe(r).then(function(i){return Xoe.apply(void 0,[e,i].concat(a))})};Jt.doesNotThrow=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];Zoe.apply(void 0,[e,joe(r)].concat(a))};Jt.doesNotReject=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return Woe(r).then(function(i){return Zoe.apply(void 0,[e,i].concat(a))})};Jt.ifError=function e(r){if(r!=null){var t="ifError got unwanted exception: ";Jo(r)==="object"&&typeof r.message=="string"?r.message.length===0&&r.constructor?t+=r.constructor.name:t+=r.message:t+=ix(r);var a=new mu({actual:r,expected:null,operator:"ifError",message:t,stackStartFn:e}),n=r.stack;if(typeof n=="string"){var i=n.split(`
`);i.shift();for(var o=a.stack.split(`
`),l=0;l<i.length;l++){var s=o.indexOf(i[l]);if(s!==-1){o=o.slice(0,s);break}}a.stack="".concat(o.join(`
`),`
`).concat(i.join(`
`))}throw a}};function $oe(e,r,t,a,n){if(!ox(r))throw new Dv("regexp","RegExp",r);var i=n==="match";if(typeof e!="string"||lx(r,e)!==i){if(t instanceof Error)throw t;var o=!t;t=t||(typeof e!="string"?'The "string" argument must be of type string. Received type '+"".concat(Jo(e)," (").concat(ix(e),")"):(i?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(ix(r),`. Input:

`).concat(ix(e),`
`));var l=new mu({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}Jt.match=function e(r,t,a){$oe(r,t,a,e,"match")};Jt.doesNotMatch=function e(r,t,a){$oe(r,t,a,e,"doesNotMatch")};function Joe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Goe.apply(void 0,[Joe,r.length].concat(r))}Jt.strict=tGe(Joe,Jt,{equal:Jt.strictEqual,deepEqual:Jt.deepStrictEqual,notEqual:Jt.notStrictEqual,notDeepEqual:Jt.notDeepStrictEqual});Jt.strict.strict=Jt.strict});var ele=z((Otr,Qoe)=>{var r1=1e3,t1=r1*60,a1=t1*60,n1=a1*24,nGe=n1*365.25;Qoe.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return iGe(e);if(t==="number"&&isNaN(e)===!1)return r.long?lGe(e):oGe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function iGe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*nGe;case"days":case"day":case"d":return t*n1;case"hours":case"hour":case"hrs":case"hr":case"h":return t*a1;case"minutes":case"minute":case"mins":case"min":case"m":return t*t1;case"seconds":case"second":case"secs":case"sec":case"s":return t*r1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function oGe(e){return e>=n1?Math.round(e/n1)+"d":e>=a1?Math.round(e/a1)+"h":e>=t1?Math.round(e/t1)+"m":e>=r1?Math.round(e/r1)+"s":e+"ms"}function lGe(e){return fx(e,n1,"day")||fx(e,a1,"hour")||fx(e,t1,"minute")||fx(e,r1,"second")||e+" ms"}function fx(e,r,t){if(!(e<r))return e<r*1.5?Math.floor(e/r)+" "+t:Math.ceil(e/r)+" "+t+"s"}});var tle=z((zt,rle)=>{zt=rle.exports=PM.debug=PM.default=PM;zt.coerce=vGe;zt.disable=fGe;zt.enable=uGe;zt.enabled=cGe;zt.humanize=ele();zt.names=[];zt.skips=[];zt.formatters={};var EM;function sGe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return zt.colors[Math.abs(r)%zt.colors.length]}function PM(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(EM||a);t.diff=n,t.prev=EM,t.curr=a,EM=a;for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];i[0]=zt.coerce(i[0]),typeof i[0]!="string"&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(u,f){if(u==="%%")return u;l++;var c=zt.formatters[f];if(typeof c=="function"){var v=i[l];u=c.call(t,v),i.splice(l,1),l--}return u}),zt.formatArgs.call(t,i);var s=r.log||zt.log||console.log.bind(console);s.apply(t,i)}}return r.namespace=e,r.enabled=zt.enabled(e),r.useColors=zt.useColors(),r.color=sGe(e),typeof zt.init=="function"&&zt.init(r),r}function uGe(e){zt.save(e),zt.names=[],zt.skips=[];for(var r=(typeof e=="string"?e:"").split(/[\s,]+/),t=r.length,a=0;a<t;a++)r[a]&&(e=r[a].replace(/\*/g,".*?"),e[0]==="-"?zt.skips.push(new RegExp("^"+e.substr(1)+"$")):zt.names.push(new RegExp("^"+e+"$")))}function fGe(){zt.enable("")}function cGe(e){var r,t;for(r=0,t=zt.skips.length;r<t;r++)if(zt.skips[r].test(e))return!1;for(r=0,t=zt.names.length;r<t;r++)if(zt.names[r].test(e))return!0;return!1}function vGe(e){return e instanceof Error?e.stack||e.message:e}});var ile=z((jn,nle)=>{jn=nle.exports=tle();jn.log=pGe;jn.formatArgs=dGe;jn.save=mGe;jn.load=ale;jn.useColors=hGe;jn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:yGe();jn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function hGe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}jn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function dGe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+jn.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function pGe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function mGe(e){try{e==null?jn.storage.removeItem("debug"):jn.storage.debug=e}catch(r){}}function ale(){var e;try{e=jn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}jn.enable(ale());function yGe(){try{return window.localStorage}catch(e){}}});var hle=z((Htr,vle)=>{var Ev=jb(),yu=ile()("stream-parser");vle.exports=bGe;var lle=-1,cx=0,gGe=1,sle=2;function bGe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");yu("extending Parser into stream"),e._bytes=xGe,e._skipBytes=_Ge,r&&(e._passthrough=wGe),r?e._transform=TGe:e._write=AGe}function i1(e){yu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=lle,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function xGe(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||i1(this),yu("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=cx}function _Ge(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||i1(this),yu("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=gGe}function wGe(e,r){Ev(!this._parserCallback,'There is already a "callback" set!'),Ev(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||i1(this),yu("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=sle}function AGe(e,r,t){this._parserInit||i1(this),yu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),fle(this,e,null,t)}function TGe(e,r,t){this._parserInit||i1(this),yu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),fle(this,e,r,t)}function ule(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return ole(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return ole(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return ule(e,r.slice(n.length),t,a)}})}}function ole(e,r,t,a){if(e._parserBytesLeft-=r.length,yu("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===cx?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===sle&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===cx&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==cx&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=lle,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(cle(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var fle=cle(ule);function cle(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var dle=z(Ei=>{"use strict";Ei.readUInt16LE=function(e,r){return e[r]|e[r+1]<<8};Ei.readUInt16BE=function(e,r){return e[r]<<8|e[r+1]};Ei.readInt16LE=function(e,r){return Ei.readUInt16LE(e,r)<<16>>16};Ei.readInt16BE=function(e,r){return Ei.readUInt16BE(e,r)<<16>>16};Ei.readUInt32LE=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16)+e[r+3]*16777216};Ei.readUInt32BE=function(e,r){return e[r]*16777216+(e[r+1]<<16|e[r+2]<<8|e[r+3])};Ei.readInt32LE=function(e,r){return Ei.readUInt32LE(e,r)|0};Ei.readInt32BE=function(e,r){return Ei.readUInt32BE(e,r)|0}});var _t=z(Pi=>{"use strict";var ple=aie().Transform,MGe=hle(),gu=dle();function o1(){ple.call(this,{readableObjectMode:!0})}o1.prototype=Object.create(ple.prototype);o1.prototype.constructor=o1;MGe(o1.prototype);Pi.ParserStream=o1;Pi.sliceEq=function(e,r,t){for(var a=r,n=0;n<t.length;)if(e[a++]!==t[n++])return!1;return!0};Pi.str2arr=function(e,r){var t=[],a=0;if(r&&r==="hex")for(;a<e.length;)t.push(parseInt(e.slice(a,a+2),16)),a+=2;else for(;a<e.length;a++)t.push(e.charCodeAt(a)&255);return t};function vx(e,r,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||"",this.name=this.constructor.name,this.message=e,r&&(this.code=r),t&&(this.statusCode=t)}vx.prototype=Object.create(Error.prototype);vx.prototype.constructor=vx;Pi.ProbeError=vx;Pi.readUInt16LE=gu.readUInt16LE;Pi.readUInt16BE=gu.readUInt16BE;Pi.readInt16LE=gu.readInt16LE;Pi.readInt16BE=gu.readInt16BE;Pi.readUInt32LE=gu.readUInt32LE;Pi.readUInt32BE=gu.readUInt32BE;Pi.readInt32LE=gu.readInt32LE;Pi.readInt32BE=gu.readInt32BE});var mle=z((Ytr,hx)=>{"use strict";var Pv=_t().readUInt16BE,FM=_t().readUInt32BE;function l1(e,r){if(e.length<4+r)return null;var t=FM(e,r);return e.length<t+r||t<8?null:{boxtype:String.fromCharCode.apply(null,e.slice(r+4,r+8)),data:e.slice(r+8,r+t),end:r+t}}hx.exports.unbox=l1;function kGe(e,r){for(var t=0;;){var a=l1(e,t);if(!a)break;switch(a.boxtype){case"ispe":r.sizes.push({width:FM(a.data,4),height:FM(a.data,8)});break;case"irot":r.transforms.push({type:"irot",value:a.data[0]&3});break;case"imir":r.transforms.push({type:"imir",value:a.data[0]&1});break}t=a.end}}function RM(e,r,t){for(var a=0,n=0;n<t;n++)a=a*256+(e[r+n]||0);return a}function SGe(e,r){for(var t=e[4]>>4&15,a=e[4]&15,n=e[5]>>4&15,i=Pv(e,6),o=8,l=0;l<i;l++){var s=Pv(e,o);o+=2;var u=Pv(e,o);o+=2;var f=RM(e,o,n);o+=n;var c=Pv(e,o);if(o+=2,u===0&&c===1){var v=RM(e,o,t),d=RM(e,o+t,a);r.item_loc[s]={length:d,offset:v+f}}o+=c*(t+a)}}function qGe(e,r){for(var t=Pv(e,4),a=6,n=0;n<t;n++){var i=l1(e,a);if(!i)break;if(i.boxtype==="infe"){for(var o=Pv(i.data,4),l="",s=8;s<i.data.length&&i.data[s];s++)l+=String.fromCharCode(i.data[s]);r.item_inf[l]=o}a=i.end}}function LGe(e,r){for(var t=0;;){var a=l1(e,t);if(!a)break;a.boxtype==="ipco"&&kGe(a.data,r),t=a.end}}function CGe(e,r){for(var t=4;;){var a=l1(e,t);if(!a)break;a.boxtype==="iprp"&&LGe(a.data,r),a.boxtype==="iloc"&&SGe(a.data,r),a.boxtype==="iinf"&&qGe(a.data,r),t=a.end}}function DGe(e){var r=e.reduce(function(n,i){return n.width>i.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}hx.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(CGe(e,r),!!r.sizes.length){var t=DGe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s<i.value;s++)a=o[a]});var n=null;return r.item_inf.Exif&&(n=r.item_loc[r.item_inf.Exif]),{width:t.width,height:t.height,orientation:r.transforms.length?a:null,variants:r.sizes,exif_location:n}}};hx.exports.getMimeType=function(e){var r=String.fromCharCode.apply(null,e.slice(0,4)),t={};t[r]=!0;for(var a=8;a<e.length;a+=4)t[String.fromCharCode.apply(null,e.slice(a,a+4))]=!0;if(!(!t.mif1&&!t.msf1&&!t.miaf))return r==="avif"||r==="avis"||r==="avio"?{type:"avif",mime:"image/avif"}:r==="heic"||r==="heix"?{type:"heic",mime:"image/heic"}:r==="hevc"||r==="hevx"?{type:"heic",mime:"image/heic-sequence"}:t.avif||t.avis?{type:"avif",mime:"image/avif"}:t.heic||t.heix||t.hevc||t.hevx||t.heis?t.msf1?{type:"heif",mime:"image/heif-sequence"}:{type:"heif",mime:"image/heif"}:{type:"avif",mime:"image/avif"}}});var px=z((Vtr,zM)=>{"use strict";function dx(e,r){var t=new Error(e);return t.code=r,t}function EGe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function cs(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw dx("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}cs.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};cs.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw dx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};cs.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw dx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};cs.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};cs.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};cs.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};cs.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;n<a;n++){var i=this.read_uint16(r),o=this.read_uint16(r+2),l=this.read_uint32(r+4),s=this.exif_format_length(o),u=l*s,f=u<=4?r+8:this.read_uint32(r+8),c=!1;if(f+u>this.input.length)throw dx("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p<l;p++,d+=s){var y=this.exif_format_read(o,d);if(y===null){v=null;break}v.push(y)}Array.isArray(v)&&o===2&&(v=EGe(String.fromCharCode.apply(null,v)),v&&v[v.length-1]==="\0"&&(v=v.slice(0,-1))),this.is_subifd_link(e,i)&&Array.isArray(v)&&Number.isInteger(v[0])&&v[0]>0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(m)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};zM.exports.ExifParser=cs;zM.exports.get_orientation=function(e){var r=0;try{return new cs(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var gle=z((jtr,yle)=>{"use strict";var PGe=_t().str2arr,RGe=_t().sliceEq,FGe=_t().readUInt32BE,mx=mle(),zGe=px(),NGe=PGe("ftyp");yle.exports=function(e){if(RGe(e,4,NGe)){var r=mx.unbox(e,0);if(r){var t=mx.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=mx.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=mx.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=FGe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=zGe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var wle=z((Wtr,_le)=>{"use strict";var IGe=_t().str2arr,BGe=_t().sliceEq,ble=_t().readInt16LE,xle=_t().readInt32LE,OGe=_t().readUInt32LE,HGe=IGe("BM");_le.exports=function(e){if(!(e.length<26)&&BGe(e,0,HGe)){var r,t,a=OGe(e,14);if(a===12)t=ble(e,18),r=ble(e,20);else if(a>12)t=xle(e,18),r=xle(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Sle=z((Xtr,kle)=>{"use strict";var Mle=_t().str2arr,Ale=_t().sliceEq,Tle=_t().readUInt16LE,UGe=Mle("GIF87a"),GGe=Mle("GIF89a");kle.exports=function(e){if(!(e.length<10)&&!(!Ale(e,0,UGe)&&!Ale(e,0,GGe)))return{width:Tle(e,6),height:Tle(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Lle=z((Ztr,qle)=>{"use strict";var NM=_t().readUInt16LE,YGe=0,VGe=1,IM=16;qle.exports=function(e){var r=NM(e,0),t=NM(e,2),a=NM(e,4);if(!(r!==YGe||t!==VGe||!a)&&!(e.length<6+a*IM)){for(var n=[],i={width:0,height:0},o=0;o<a;o++){var l=e[6+IM*o]||256,s=e[6+IM*o+1]||256,u={width:l,height:s};n.push(u),(l>i.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Dle=z(($tr,Cle)=>{"use strict";var BM=_t().readUInt16BE,jGe=_t().str2arr,WGe=_t().sliceEq,XGe=px(),ZGe=jGe("Exif\0\0");Cle.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(t>=208&&t<=217||t===1)a=0;else if(t>=192&&t<=254){if(e.length-r<2)return;a=BM(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&WGe(e,r,ZGe)&&(n=XGe.get_orientation(e.slice(r+6,r+a))),a>=5&&t>=192&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r<a)return;var i={width:BM(e,r+3),height:BM(e,r+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return n>0&&(i.orientation=n),i}r+=a}}});var zle=z((Jtr,Fle)=>{"use strict";var Rle=_t().str2arr,Ele=_t().sliceEq,Ple=_t().readUInt32BE,$Ge=Rle(`\x89PNG\r

`),JGe=Rle("IHDR");Fle.exports=function(e){if(!(e.length<24)&&Ele(e,0,$Ge)&&Ele(e,12,JGe))return{width:Ple(e,16),height:Ple(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Ble=z((Ktr,Ile)=>{"use strict";var KGe=_t().str2arr,QGe=_t().sliceEq,Nle=_t().readUInt32BE,eYe=KGe("8BPS\0");Ile.exports=function(e){if(!(e.length<22)&&QGe(e,0,eYe))return{width:Nle(e,18),height:Nle(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var UM=z(HM=>{"use strict";HM.MAX_DATA_LENGTH=1024*10;var OM="[a-zA-Z_:][a-zA-Z0-9:._-]*",Hle="[^\"'=<>`\\x00-\\x20]+",rYe="'[^']*'",tYe='"[^"]*"',aYe="(?:"+Hle+"|"+rYe+"|"+tYe+")",nYe="(?:\\s+"+OM+"(?:\\s*=\\s*"+aYe+")?)",iYe="<[?][\\s\\S]*?[?]>",oYe="<!--(?:[^-]|-[^-]|--[^>])*-->",lYe="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",sYe="<![A-Za-z][^[>]*(?:\\[[\\s\\S]*?\\][^>]*)?>",uYe=new RegExp("^(?:\\s+|"+iYe+"|"+oYe+"|"+lYe+"|"+sYe+")*"),fYe=new RegExp("^<("+OM+")("+nYe+"*)\\s*/?>"),Ole=new RegExp("\\s+("+OM+")(?:\\s*=\\s*(?:("+Hle+`)|'([^']*)'|"([^"]*)"))?`,"g"),cYe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Rv(e){return typeof e=="number"&&isFinite(e)&&e>0}function Pl(e){var r=e.slice(-2),t=r.match(cYe);return t===null?"px":t[0]}HM.parse=function(e){var r=e.match(uYe)[0],t=fYe.exec(r.length?e.slice(r.length):e);if(t){var a=t[1];if(!(a!=="svg"&&a.slice(-4)!==":svg")){var n={},i;for(Ole.lastIndex=0;(i=Ole.exec(t[2]))!==null;)n[i[1]]=i[2]!==void 0?i[2]:i[3]!==void 0?i[3]:i[4];var o=n.width,l=n.height,s=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),l&&l.indexOf("%")!==-1&&(l=void 0);var u=parseFloat(o),f=parseFloat(l);if(o&&l)return!Rv(u)||!Rv(f)?void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:Pl(o),hUnits:Pl(l)};var c=(s||"").trim().split(/[\s,]+/),v=parseFloat(c[2]),d=parseFloat(c[3]);if(!(!Rv(v)||!Rv(d))&&Pl(c[2])===Pl(c[3])){var p=v/d;return o?Rv(u)?{width:u,height:u/p,type:"svg",mime:"image/svg+xml",wUnits:Pl(o),hUnits:Pl(o)}:void 0:l?Rv(f)?{width:f*p,height:f,type:"svg",mime:"image/svg+xml",wUnits:Pl(l),hUnits:Pl(l)}:void 0:{width:v,height:d,type:"svg",mime:"image/svg+xml",wUnits:Pl(c[2]),hUnits:Pl(c[3])}}}}}});var Gle=z((ear,Ule)=>{"use strict";var vYe=UM().parse,hYe=UM().MAX_DATA_LENGTH;Ule.exports=function(e){var r=0;e[0]===239&&e[1]===187&&e[2]===191&&(r=3);for(var t="",a=Math.min(e.length,r+hYe),n=r;n<a;n++)t+=String.fromCharCode(e[n]);return vYe(t)}});var Xle=z((rar,Wle)=>{"use strict";var jle=_t().str2arr,Yle=_t().sliceEq,dYe=_t().readUInt16LE,pYe=_t().readUInt16BE,mYe=_t().readUInt32LE,yYe=_t().readUInt32BE,gYe=jle("II*\0"),bYe=jle("MM\0*");function yx(e,r,t){return t?pYe(e,r):dYe(e,r)}function GM(e,r,t){return t?yYe(e,r):mYe(e,r)}function Vle(e,r,t){var a=yx(e,r+2,t),n=GM(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?yx(e,r+8,t):GM(e,r+8,t)}Wle.exports=function(e){if(!(e.length<8)&&!(!Yle(e,0,gYe)&&!Yle(e,0,bYe))){var r=e[0]===77,t=GM(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=yx(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a<n))){var i,o,l,s;for(i=0;i<n;i+=12)s=yx(e,a+i,r),s===256?o=Vle(e,a+i,r):s===257&&(l=Vle(e,a+i,r));if(o&&l)return{width:o,height:l,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}});var Qle=z((tar,Kle)=>{"use strict";var Jle=_t().str2arr,Zle=_t().sliceEq,$le=_t().readUInt16LE,YM=_t().readUInt32LE,xYe=px(),_Ye=Jle("RIFF"),wYe=Jle("WEBP");function AYe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:$le(e,r+6)&16383,height:$le(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function TYe(e,r){if(e[r]===47){var t=YM(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function MYe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<<16|e[r+8]<<8|e[r+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Kle.exports=function(e){if(!(e.length<16)&&!(!Zle(e,0,_Ye)||!Zle(e,8,wYe))){var r=12,t=null,a=0,n=YM(e,4)+8;if(!(n>e.length)){for(;r+8<n;){if(e[r]===0){r++;continue}var i=String.fromCharCode.apply(null,e.slice(r,r+4)),o=YM(e,r+4);i==="VP8 "&&o>=10?t=t||AYe(e,r+8):i==="VP8L"&&o>=5?t=t||TYe(e,r+8):i==="VP8X"&&o>=10?t=t||MYe(e,r+8):i==="EXIF"&&(a=xYe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var rse=z((aar,ese)=>{"use strict";ese.exports={avif:gle(),bmp:wle(),gif:Sle(),ico:Lle(),jpeg:Dle(),png:zle(),psd:Ble(),svg:Gle(),tiff:Xle(),webp:Qle()}});var tse=z((nar,jM)=>{"use strict";var VM=rse();function kYe(e){for(var r=Object.keys(VM),t=0;t<r.length;t++){var a=VM[r[t]](e);if(a)return a.width>0&&a.height>0?a:null}return null}jM.exports=function(r){return kYe(r)};jM.exports.parsers=VM});var nse=z(ase=>{"use strict";var SYe=tse(),qYe=Kl().IMAGE_URL_PREFIX,LYe=hv().Buffer;ase.getImageSize=function(e){var r=e.replace(qYe,""),t=new LYe(r,"base64");return SYe(t)}});var lse=z((oar,ose)=>{"use strict";var ise=ke(),CYe=(sv(),ze(_2)),DYe=Br(),gx=Yr(),EYe=ke().maxRowLength,PYe=nse().getImageSize;ose.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=EYe(t.z);else if(t._hasSource){var i=PYe(t.source);a=i.height,n=i.width}var o=gx.getFromId(r,t.xaxis||"x"),l=gx.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f<n;f++)c.push(s+f*t.dx);if(l&&l.type==="log")for(f=0;f<a;f++)v.push(u+f*t.dy);t._extremes[o._id]=gx.findExtremes(o,c),t._extremes[l._id]=gx.findExtremes(l,v),t._scaler=zYe(t);var d={x0:s,y0:u,z:t.z,w:n,h:a};return[d]};function RYe(e,r,t,a){return function(n){return ise.constrain((n-e)*r,t,a)}}function FYe(e,r){return function(t){return ise.constrain(t,e,r)}}function zYe(e){var r=CYe.colormodel[e.colormodel],t=r.colormodel||e.colormodel,a=t.length;e._sArray=[];for(var n=0;n<a;n++)r.min[n]!==e.zmin[n]||r.max[n]!==e.zmax[n]?e._sArray.push(RYe(e.zmin[n],(r.max[n]-r.min[n])/(e.zmax[n]-e.zmin[n]),r.min[n],r.max[n])):e._sArray.push(FYe(r.min[n],r.max[n]));return function(i){for(var o=i.slice(0,a),l=0;l<a;l++){var s=o[l];if(!DYe(s))return!1;o[l]=e._sArray[l](s)}return o}}});var fse=z((lar,use)=>{"use strict";var NYe=Pr(),ac=ke(),sse=ac.strTranslate,IYe=(Vl(),ze(Yl)),BYe=(sv(),ze(_2)),OYe=j9(),HYe=(m3(),ze(p3)).STYLE;use.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&OYe();ac.makeTraceGroups(n,a,"im").each(function(s){var u=NYe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,y=f.y0,m=f.w,b=f.h,A=c.dx,w=c.dy,x,_,k,T,q,C;for(C=0;x===void 0&&C<m;)x=i.c2p(p+C*A),C++;for(C=m;_===void 0&&C>0;)_=i.c2p(p+C*A),C--;for(C=0;T===void 0&&C<b;)T=o.c2p(y+C*w),C++;for(C=b;q===void 0&&C>0;)q=o.c2p(y+C*w),C--;if(_<x&&(k=_,_=x,x=k),q<T&&(k=T,T=q,q=k),!v){var E=.5;x=Math.max(-E*i._length,x),_=Math.min((1+E)*i._length,_),T=Math.max(-E*o._length,T),q=Math.min((1+E)*o._length,q)}var P=Math.round(_-x),R=Math.round(q-T),N=P<=0||R<=0;if(N){var I=u.selectAll("image").data([]);I.exit().remove();return}function O(se){var $=document.createElement("canvas");$.width=P,$.height=R;var fe=$.getContext("2d",{willReadFrequently:!0}),ie=function(Ie){return ac.constrain(Math.round(i.c2p(p+Ie*A)-x),0,P)},ue=function(Ie){return ac.constrain(Math.round(o.c2p(y+Ie*w)-T),0,R)},ce=BYe.colormodel[c.colormodel],oe=ce.colormodel||c.colormodel,be=ce.fmt,Re;for(C=0;C<f.w;C++){var ye=ie(C),Ce=ie(C+1);if(!(Ce===ye||isNaN(Ce)||isNaN(ye)))for(var Me=0;Me<f.h;Me++){var Le=ue(Me),De=ue(Me+1);De===Le||isNaN(De)||isNaN(Le)||!se(C,Me)||(Re=c._scaler(se(C,Me)),Re?fe.fillStyle=oe+"("+be(Re).join(",")+")":fe.fillStyle="rgba(0,0,0,0)",fe.fillRect(ye,Le,Ce-ye,De-Le))}}return $}var U=u.selectAll("image").data([s]);U.enter().append("svg:image").attr({xmlns:IYe.svg,preserveAspectRatio:"none"}),U.exit().remove();var Y=c.zsmooth===!1?HYe:"";if(v){var G=ac.simpleMap(i.range,i.r2l),V=ac.simpleMap(o.range,o.r2l),W=G[1]<G[0],j=V[1]>V[0];if(W||j){var J=x+P/2,te=T+R/2;Y+="transform:"+sse(J+"px",te+"px")+"scale("+(W?-1:1)+","+(j?-1:1)+")"+sse(-J+"px",-te+"px")+";"}}U.attr("style",Y);var ae=new Promise(function(se){if(c._hasZ)se();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===m&&c._canvas.el.height===b&&c._canvas.source===c.source)se();else{var $=document.createElement("canvas");$.width=m,$.height=b;var fe=$.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var ie=c._image;ie.onload=function(){fe.drawImage(ie,0,0),c._canvas={el:$,source:c.source},se()},ie.setAttribute("src",c.source)}}).then(function(){var se,$;if(c._hasZ)$=O(function(ue,ce){var oe=d[ce][ue];return ac.isTypedArray(oe)&&(oe=Array.from(oe)),oe}),se=$.toDataURL("image/png");else if(c._hasSource)if(v)se=c.source;else{var fe=c._canvas.el.getContext("2d",{willReadFrequently:!0}),ie=fe.getImageData(0,0,m,b).data;$=O(function(ue,ce){var oe=4*(ce*m+ue);return[ie[oe],ie[oe+1],ie[oe+2],ie[oe+3]]}),se=$.toDataURL("image/png")}U.attr({"xlink:href":se,height:R,width:P,x,y:T})});r._promises.push(ae)})}});var vse=z((sar,cse)=>{"use strict";var UYe=Pr();cse.exports=function(r){UYe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var mse=z((uar,pse)=>{"use strict";var hse=Un(),dse=ke(),bx=dse.isArrayOrTypedArray,GYe=(sv(),ze(_2));pse.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(hse.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||hse.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=GYe.colormodel[i.colormodel],y=p.colormodel||i.colormodel,m=y.length,b=i._scaler(f),A=p.suffix,w=[];(i.hovertemplate||v)&&(w.push("["+[b[0]+A[0],b[1]+A[1],b[2]+A[2]].join(", ")),m===4&&w.push(", "+b[3]+A[3]),w.push("]"),w=w.join(""),r.extraText=y.toUpperCase()+": "+w);var x;bx(i.hovertext)&&bx(i.hovertext[u])?x=i.hovertext[u][s]:bx(i.text)&&bx(i.text[u])&&(x=i.text[u][s]);var _=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,T=n.y0+(u+.5)*i.dy,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[dse.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:_,y1:_,color:b,xVal:k,xLabelVal:k,yVal:T,yLabelVal:T,zLabelVal:q,text:x,hovertemplateLabels:{zLabel:q,colorLabel:w,"color[0]Label":b[0]+A[0],"color[1]Label":b[1]+A[1],"color[2]Label":b[2]+A[2],"color[3]Label":b[3]+A[3]}})]}}}});var gse=z((far,yse)=>{"use strict";yse.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var xse=z((car,bse)=>{"use strict";bse.exports={attributes:(HA(),ze(OA)).default,supplyDefaults:ire(),calc:lse(),plot:fse(),style:vse(),hoverPoints:mse(),eventData:gse(),moduleType:"trace",name:"image",basePlotModule:io(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var wse=z((har,_se)=>{"use strict";_se.exports=xse()});var WM=z((dar,Tse)=>{"use strict";var xx=On(),YYe=H0().attributes,VYe=Ca(),jYe=Ii(),{hovertemplateAttrs:WYe,texttemplateAttrs:XYe,templatefallbackAttrs:Ase}=di(),bu=Mt().extendFlat,ZYe=Bi().pattern,_x=VYe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Tse.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:jYe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:ZYe,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:bu({},xx.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:WYe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Ase(),texttemplate:XYe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Ase({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:bu({},_x,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:bu({},_x,{}),outsidetextfont:bu({},_x,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:bu({},xx.showlegend,{arrayOk:!0}),legend:bu({},xx.legend,{arrayOk:!0}),legendrank:bu({},xx.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:bu({},_x,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:YYe({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 qse=z((par,Sse)=>{"use strict";var $Ye=Br(),s1=ke(),JYe=WM(),KYe=H0().defaults,QYe=Rf().handleText,eVe=ke().coercePattern;function Mse(e,r){var t=s1.isArrayOrTypedArray(e),a=s1.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,o=0;o<n;o++){var l=r[o];if($Ye(l)&&l>0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function kse(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");eVe(a,"marker.pattern",o),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 rVe(e,r,t,a){function n(A,w){return s1.coerce(e,r,JYe,A,w)}var i=n("labels"),o=n("values"),l=Mse(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,kse(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",s1.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");QYe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");KYe(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"),s1.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Sse.exports={handleLabelsAndValues:Mse,handleMarkerDefaults:kse,supplyDefaults:rVe}});var XM=z((mar,Lse)=>{"use strict";Lse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Dse=z((yar,Cse)=>{"use strict";var tVe=ke(),aVe=XM();Cse.exports=function(r,t){function a(n,i){return tVe.coerce(r,t,aVe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var ZM=z((gar,Rse)=>{"use strict";var nVe=Br(),Fv=qr(),iVe={};function oVe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=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={},d=Ese(a["_"+r.type+"colormap"]),p=0,y=!1;for(f=0;f<s;f++){var m,b,A;if(u){if(m=l[f],!nVe(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,A=n.indexOf(b)!==-1,A||(p+=m),t.push({v:m,label:b,color:d(o[f],b),i:f,pts:[f],hidden:A})):(y=!0,c=t[w],c.v+=m,c.pts.push(f),c.hidden||(p+=m),c.color===!1&&o[f]&&(c.color=d(o[f],b)))}t=t.filter(function(_){return _.v>=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(_,k){return k.v-_.v}),t[0]&&(t[0].vTotal=p),t}function Ese(e){return function(t,a){if(!t||!Fv.isValid(t))return!1;let n=Fv.rgbaString(t);return e[a]||(e[a]=n),n}}function lVe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Pse(i,iVe));for(var l=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&&(o[v.label]?v.color=o[v.label]:(o[v.label]=v.color=i[l%i.length],l++))}}}function Pse(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(Fv.hexString(Fv.adjustLightness(e[t],20)));for(t=0;t<e.length;t++)n.push(Fv.hexString(Fv.adjustLightness(e[t],-20)));r[a]=n}return n}Rse.exports={calc:oVe,crossTraceCalc:lVe,makePullColorFn:Ese,generateExtendedColors:Pse}});var zse=z((bar,Fse)=>{"use strict";var sVe=Ro().appendArrayMultiPointValues;Fse.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]),sVe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var nue=z((xar,aue)=>{"use strict";var fi=Pr(),uVe=ma(),wx=Un(),Use=qr(),vs=Jr(),vn=ke(),fVe=vn.strScale,Nse=vn.strTranslate,$M=Fa(),Gse=a2(),cVe=Gse.recordMinTextSize,vVe=Gse.clearMinTextSize,Yse=(Id(),ze(Nd)).TEXTPAD,Dr=Om(),Ax=zse(),Ise=ke().isValidTextValue;function hVe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;vVe("pie",a),Wse(r,e),eue(r,n);var i=vn.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=fi.select(this),s=o[0],u=s.trace;wVe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=fi.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(x,_){if(x.hidden){fi.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 k=s.cx,T=s.cy,q=fi.select(this),C=q.selectAll("path.surface").data([x]);if(C.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(Vse,e,o),u.pull){var E=+Dr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],T+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=T;function P(G,V,W,j){var J=j*(V[0]-G[0]),te=j*(V[1]-G[1]);return"a"+j*s.r+","+j*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+te}var R=u.hole;if(x.v===s.vTotal){var N="M"+(k+x.px0[0])+","+(T+x.px0[1])+P(x.px0,x.pxmid,!0,1)+P(x.pxmid,x.px0,!0,1)+"Z";R?C.attr("d","M"+(k+R*x.px0[0])+","+(T+R*x.px0[1])+P(x.px0,x.pxmid,!1,R)+P(x.pxmid,x.px0,!1,R)+"Z"+N):C.attr("d",N)}else{var I=P(x.px0,x.px1,!0,1);if(R){var O=1-R;C.attr("d","M"+(k+R*x.px1[0])+","+(T+R*x.px1[1])+P(x.px1,x.px0,!1,R)+"l"+O*x.px0[0]+","+O*x.px0[1]+I+"Z")}else C.attr("d","M"+k+","+T+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}rue(e,x,s);var U=Dr.castOption(u.textposition,x.pts),Y=q.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var G=vn.ensureSingle(fi.select(this),"text","",function($){$.attr("data-notex",1)}),V=vn.ensureUniformFontSize(e,U==="outside"?pVe(u,x,a.font):jse(u,x,a.font));G.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(vs.font,V).call($M.convertToTspans,e);var W=vs.bBox(G.node()),j;if(U==="outside")j=Hse(W,x);else if(j=Xse(W,x,s),U==="auto"&&j.scale<1){var J=vn.ensureUniformFontSize(e,u.outsidetextfont);G.call(vs.font,J),W=vs.bBox(G.node()),j=Hse(W,x)}var te=j.textPosAngle,ae=te===void 0?x.pxmid:Tx(s.r,te);if(j.targetX=k+ae[0]*j.rCenter+(j.x||0),j.targetY=T+ae[1]*j.rCenter+(j.y||0),tue(j,W),j.outside){var se=j.targetY;x.yLabelMin=se-W.height/2,x.yLabelMid=se,x.yLabelMax=se+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}j.fontSize=V.size,cVe(u.type,j,a),o[_].transform=j,vn.setTransormAndDisplay(G,j)})});var d=fi.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=vn.ensureSingle(fi.select(this),"text","",function(T){T.attr("data-notex",1)}),_=u.title.text;u._meta&&(_=vn.templateString(_,u._meta)),x.text(_).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(vs.font,u.title.font).call($M.convertToTspans,e);var k;u.title.position==="middle center"?k=gVe(s):k=Kse(s,n),x.attr("transform",Nse(k.x,k.y)+fVe(Math.min(1,k.scale))+Nse(k.tx,k.ty))}),v&&xVe(c,u),dVe(f,u),v&&u.automargin){var p=vs.bBox(l.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),A=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;uVe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-A,xr:y.x[1]+A,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 o=fi.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function dVe(e,r){e.each(function(t){var a=fi.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,vn.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,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)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;vn.ensureSingle(a,"path","textline").call(Use.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Vse(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=wx.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=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=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;vn.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var A=f.hoverlabel,w=A.font,x=[];wx.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?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:Dr.castOption(A.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(A.bordercolor,s.pts),fontFamily:Dr.castOption(w.family,s.pts),fontSize:Dr.castOption(w.size,s.pts),fontColor:Dr.castOption(w.color,s.pts),nameLength:Dr.castOption(A.namelength,s.pts),textAlign:Dr.castOption(A.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[Ax(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[Ax(s,f)],event:fi.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=fi.select(this).datum();o._hasHoverEvent&&(s.originalEvent=fi.event,r.emit("plotly_unhover",{points:[Ax(c,f)],event:fi.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(wx.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[Ax(s,f)],wx.click(r,fi.event))})}function pVe(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function jse(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Use.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Wse(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=vn.templateString(i,a._meta));var o=vs.tester.append("text").attr("data-notex",1).text(i).call(vs.font,a.title.font).call($M.convertToTspans,r),l=vs.bBox(o.node(),!0);t.titleBox={width:l.width,height:l.height},o.remove()}}function Xse(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 o=r.ring,l=o===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",d=f==="radial",p=f==="auto",y=[],m;if(!p){var b=function(q,C){if(mVe(r,q)){var E=Math.abs(q-r.startangle),P=Math.abs(q-r.stopangle),R=E<P?E:P;C==="tan"?m=Ose(e,a,o,R,0):m=Bse(e,a,o,R,Math.PI/2),m.textPosAngle=q,y.push(m)}},A;if(c||v){for(A=4;A>=-4;A-=2)b(Math.PI*A,"tan");for(A=4;A>=-4;A-=2)b(Math.PI*(A+1),"tan")}if(c||d){for(A=4;A>=-4;A-=2)b(Math.PI*(A+1.5),"rad");for(A=4;A>=-4;A-=2)b(Math.PI*(A+.5),"rad")}}if(l||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||d)&&(m=Bse(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=Ose(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,_=0,k=0;k<y.length;k++){var T=y[k].scale;if(_<T&&(_=T,x=k),!p&&_>=1)break}return y[x]}function mVe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t<r&&r<a}function Bse(e,r,t,a,n){r=Math.max(0,r-2*Yse);var i=e.width/e.height,o=Jse(i,a,r,t);return{scale:o*2/e.height,rCenter:Zse(i,o/r),rotate:$se(n)}}function Ose(e,r,t,a,n){r=Math.max(0,r-2*Yse);var i=e.height/e.width,o=Jse(i,a,r,t);return{scale:o*2/e.width,rCenter:Zse(i,o/r),rotate:$se(n+Math.PI/2)}}function Zse(e,r){return Math.cos(r)-e*r}function $se(e){return(180/Math.PI*e+720)%180-90}function Jse(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 yVe(e,r){return e.v===r.vTotal&&!r.trace.hole?1:Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2)}function Hse(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 gVe(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 Kse(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=Qse(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=bVe(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,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=JM(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function bVe(e,r){return e/(r===void 0?1:r)}function JM(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 Qse(e){var r=e.pull;if(!r)return 0;var t;if(vn.isArrayOrTypedArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function xVe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,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 _=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,T=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,E,P,R,N,I,O;if(C*s>0&&(w.labelExtraY=C),!!vn.isArrayOrTypedArray(r.pull))for(P=0;P<c.length;P++)R=c[P],!(R===w||(Dr.castOption(r.pull,w.pts)||0)>=(Dr.castOption(r.pull,R.pts)||0))&&((w.pxmid[1]-R.pxmid[1])*s>0?(N=R.cyFinal+o(R.px0[1],R.px1[1]),C=N-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(T+w.labelExtraY-q)*s>0&&(E=3*l*Math.abs(P-c.indexOf(w)),I=R.cxFinal+i(R.px0[0],R.px1[0]),O=I+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,O*l>0&&(w.labelExtraX+=O)))}for(a=0;a<2;a++)for(n=a?y:m,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v<u.length;v++)u[v].yLabelMid!==void 0&&d.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<d.length;v++){var A=v&&d[v-1];p&&!v&&(A=p),b(d[v],A)}}}function eue(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a][0],i=n.trace,o=i.domain,l=r.w*(o.x[1]-o.x[0]),s=r.h*(o.y[1]-o.y[0]);i.title.text&&i.title.position!=="middle center"&&(s-=JM(n,r));var u=l/2,f=s/2;i.type==="funnelarea"&&!i.scalegroup&&(f/=i.aspectratio),n.r=Math.min(u,f)/(1+Qse(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-=JM(n,r)),i.scalegroup&&t.indexOf(i.scalegroup)===-1&&t.push(i.scalegroup)}_Ve(e,t)}function _Ve(e,r){for(var t,a,n,i=0;i<r.length;i++){var o=1/0,l=r[i];for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===l){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}o=Math.min(o,s/t.vTotal)}for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===l){var c=o*t.vTotal;n.type==="funnelarea"&&(c/=(1+n.baseratio)/2,c/=n.aspectratio),t.r=Math.sqrt(c)}}}function wVe(e){var r=e[0],t=r.r,a=r.trace,n=Dr.getRotationAngle(a.rotation),i=2*Math.PI/r.vTotal,o="px0",l="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,o="px1",l="px0"}for(f=Tx(t,n),s=0;s<e.length;s++)u=e[s],!u.hidden&&(u[o]=f,u.startangle=n,n+=i*u.v/2,u.pxmid=Tx(t,n),u.midangle=n,n+=i*u.v/2,f=Tx(t,n),u.stopangle=n,u[l]=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=yVe(u,r))}function Tx(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function rue(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(x){return l.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Dr.getFirstFilled(n.text,r.pts);Ise(y)&&p.push(y)}c&&p.push(Dr.formatPieValue(r.v,d)),v&&p.push(Dr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("<br>")}function m(x){return{label:x.label,value:x.v,valueLabel:Dr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Dr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:vn.castOption(n,x.i,"customdata")}}if(i){var b=vn.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var A=m(r),w=Dr.getFirstFilled(n.text,r.pts);(Ise(w)||w==="")&&(A.text=w),r.text=vn.texttemplateString({data:[A,n._meta],fallback:n.texttemplatefallback,labels:A,locale:e._fullLayout._d3locale,template:b})}}}function tue(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}aue.exports={plot:hVe,formatSliceLabel:rue,transformInsideText:Xse,determineInsideTextFont:jse,positionTitleOutside:Kse,prerenderTitles:Wse,layoutAreas:eue,attachFxHandlers:Vse,computeTransform:tue}});var lue=z((_ar,oue)=>{"use strict";var iue=Pr(),AVe=Hm(),TVe=a2().resizeText;oue.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");TVe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=iue.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){iue.select(this).call(AVe,l,i,r)})})}});var uue=z(zv=>{"use strict";var sue=ma();zv.name="pie";zv.plot=function(e,r,t,a){sue.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){sue.cleanBasePlot(zv.name,e,r,t,a)}});var cue=z((Aar,fue)=>{"use strict";fue.exports={attributes:WM(),supplyDefaults:qse().supplyDefaults,supplyLayoutDefaults:Dse(),layoutAttributes:XM(),calc:ZM().calc,crossTraceCalc:ZM().crossTraceCalc,plot:nue().plot,style:lue(),styleOne:Hm(),moduleType:"trace",name:"pie",basePlotModule:uue(),categories:["pie-like","pie","showLegend"],meta:{}}});var hue=z((Tar,vue)=>{"use strict";vue.exports=cue()});var xn=z((Mar,pue)=>{"use strict";var due=Object.getOwnPropertySymbols,MVe=Object.prototype.hasOwnProperty,kVe=Object.prototype.propertyIsEnumerable;function SVe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qVe(){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}}pue.exports=qVe()?Object.assign:function(e,r){for(var t,a=SVe(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)MVe.call(t,o)&&(a[o]=t[o]);if(due){n=due(t);for(var l=0;l<n.length;l++)kVe.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var _n=z((kar,yue)=>{var kx=xn();function mue(){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={}}kx(mue.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 KM(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(Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Mx(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}kx(KM.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(Gr.local.invalidDate||Gr.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(Gr.local.differentCalendars||Gr.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?"-":"")+Mx(Math.abs(this.year()),4)+"-"+Mx(this.month(),2)+"-"+Mx(this.day(),2)}});function QM(){this.shortYearCutoff="+10"}kx(QM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new KM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.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,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Mx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Gr.local.invalidMonth||Gr.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,Gr.local.invalidMonth||Gr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Gr.local.invalidDate||Gr.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,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;o<f.minMonth;)i--,o+=f.monthsInYear(i);for(var c=f.monthsInYear(i);o>c-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Gr.local.invalidDate||Gr.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,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate);return Gr.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Gr.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Gr.local.differentCalendars||Gr.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 ek(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}ek.prototype=new QM;kx(ek.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,Gr.local.invalidYear||Gr.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,Gr.local.invalidMonth||Gr.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,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate);e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<3&&(r+=12,e--);var n=Math.floor(e/100),i=2-n+Math.floor(n/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t+i-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=Math.floor((r-186721625e-2)/36524.25);t=r+1+t-Math.floor(t/4);var a=t+1524,n=Math.floor((a-122.1)/365.25),i=Math.floor(365.25*n),o=Math.floor((a-i)/30.6001),l=a-i-Math.floor(o*30.6001),s=o-(o>13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Gr.local.invalidDate||Gr.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 Gr=yue.exports=new mue;Gr.cdate=KM;Gr.baseCalendar=QM;Gr.calendars.gregorian=ek});var gue=z(()=>{var rk=xn(),Za=_n();rk(Za.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"});Za.local=Za.regionalOptions[""];rk(Za.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});rk(Za.baseCalendar.prototype,{UNIX_EPOCH:Za.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Za.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 Za.local.invalidFormat||Za.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,_){for(var k=1;w+k<e.length&&e.charAt(w+k)===x;)k++;return w+=k-1,Math.floor(k/(_||1))>1},f=function(x,_,k,T){var q=""+_;if(u(x,T))for(;q.length<k;)q="0"+q;return q},c=function(x,_,k,T){return u(x)?T[_]:k[_]},v=this,d=function(x){return typeof i=="function"?i.call(v,x,u("m")):m(f("m",x.month(),2))},p=function(x,_){return _?typeof l=="function"?l.call(v,x):l[x.month()-v.minMonth]:typeof o=="function"?o.call(v,x):o[x.month()-v.minMonth]},y=this.local.digits,m=function(x){return t.localNumbers&&y?y(x):x},b="",A=!1,w=0;w<e.length;w++)if(A)e.charAt(w)==="'"&&!u("'")?A=!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+=d(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+="'":A=!0;break;default:b+=e.charAt(w)}return b},parseDate:function(e,r,t){if(r==null)throw Za.local.invalidArguments||Za.regionalOptions[""].invalidArguments;if(r=typeof r=="object"?r.toString():r+"",r==="")return null;e=e||this.local.dateFormat,t=t||{};var a=t.shortYearCutoff||this.shortYearCutoff;a=typeof a!="string"?a:this.today().year()%100+parseInt(a,10);for(var n=t.dayNamesShort||this.local.dayNamesShort,i=t.dayNames||this.local.dayNames,o=t.parseMonth||this.local.parseMonth,l=t.monthNumbers||this.local.monthNumbers,s=t.monthNamesShort||this.local.monthNamesShort,u=t.monthNames||this.local.monthNames,f=-1,c=-1,v=-1,d=-1,p=-1,y=!1,m=!1,b=function(R,N){for(var I=1;C+I<e.length&&e.charAt(C+I)===R;)I++;return C+=I-1,Math.floor(I/(N||1))>1},A=function(R,N){var I=b(R,N),O=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],U=new RegExp("^-?\\d{1,"+O+"}"),Y=r.substring(q).match(U);if(!Y)throw(Za.local.missingNumberAt||Za.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(w,r.substring(q));return q+=R.length,R}return A("m")},_=function(R,N,I,O){for(var U=b(R,O)?I:N,Y=0;Y<U.length;Y++)if(r.substr(q,U[Y].length).toLowerCase()===U[Y].toLowerCase())return q+=U[Y].length,Y+w.minMonth;throw(Za.local.unknownNameAt||Za.regionalOptions[""].unknownNameAt).replace(/\{0\}/,q)},k=function(){if(typeof u=="function"){var R=b("M")?u.call(w,r.substring(q)):s.call(w,r.substring(q));return q+=R.length,R}return _("M",s,u)},T=function(){if(r.charAt(q)!==e.charAt(C))throw(Za.local.unexpectedLiteralAt||Za.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,q);q++},q=0,C=0;C<e.length;C++)if(m)e.charAt(C)==="'"&&!b("'")?m=!1:T();else switch(e.charAt(C)){case"d":d=A("d");break;case"D":_("D",n,i);break;case"o":p=A("o");break;case"w":A("w");break;case"m":v=x();break;case"M":v=k();break;case"y":var E=C;y=!b("y",2),C=E,c=A("y",2);break;case"Y":c=A("Y",2);break;case"J":f=A("J")+.5,r.charAt(q)==="."&&(q++,A("J"));break;case"@":f=A("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=A("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":q=r.length;break;case"'":b("'")?T():m=!0;break;default:T()}if(q<r.length)throw Za.local.unexpectedText||Za.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=o.call(this,c,v)),p>-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var bue=z(()=>{var xu=_n(),LVe=xn(),tk=xu.instance();function Sx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sx.prototype=new xu.baseCalendar;LVe(Sx.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(DVe);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(EVe);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(PVe);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 xu.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 xu.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=_u[e-_u[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,xu.local.invalidyear),n=wu[a-wu[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=tk.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=_u[e-_u[0]],a=t>>13,n=a?12:11;if(r>n)throw xu.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,xu.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=FVe(e,i,t,n);return tk.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=tk.fromJD(e),t=RVe(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(CVe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(Sx.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var CVe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,DVe=/^\d?\d[iI]?/m,EVe=/^闰?十?[一二三四五六七八九]?月/m,PVe=/^闰?十?[一二三四五六七八九]?/m;xu.calendars.chinese=Sx;var _u=[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],wu=[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 RVe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=wu[n.year-wu[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=wu[i.year-wu[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=_u[i.year-_u[0]],A;for(A=0;A<13;A++){var w=b&1<<12-A?30:29;if(p<w)break;p-=w}var x=b>>13;return!x||A<x?(i.isIntercalary=!1,i.month=1+A):A===x?(i.isIntercalary=!0,i.month=A):(i.isIntercalary=!1,i.month=A),i.day=1+p,i}function FVe(e,r,t,a,n){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=_u[o.year-_u[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y<p;y++){var m=v&1<<12-y?30:29;c+=m}var b=wu[o.year-wu[0]],A=b>>9&4095,w=b>>5&15,x=b&31,_=new Date(A,w-1,x+c);return i.year=_.getFullYear(),i.month=1+_.getMonth(),i.day=_.getDate(),i}});var xue=z(()=>{var nc=_n(),zVe=xn();function ak(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ak.prototype=new nc.baseCalendar;zVe(ak.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,nc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,nc.local.invalidYear||nc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,nc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});nc.calendars.coptic=ak});var _ue=z(()=>{var hs=_n(),NVe=xn();function nk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}nk.prototype=new hs.baseCalendar;NVe(nk.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,hs.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.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,hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,hs.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,hs.local.invalidDate);return{century:IVe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,hs.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 IVe={20:"Fruitbat",21:"Anchovy"};hs.calendars.discworld=nk});var wue=z(()=>{var ic=_n(),BVe=xn();function ik(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ik.prototype=new ic.baseCalendar;BVe(ik.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,ic.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,ic.local.invalidYear||ic.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,ic.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,ic.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)}});ic.calendars.ethiopian=ik});var Aue=z(()=>{var Au=_n(),OVe=xn();function ok(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ok.prototype=new Au.baseCalendar;OVe(ok.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,Au.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,qx(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Au.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,Au.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,Au.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&qx(this.daysInYear(e),10)===5?30:r===9&&qx(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,Au.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,Au.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o<r;o++)i+=this.daysInMonth(e,o)}else for(var o=7;o<r;o++)i+=this.daysInMonth(e,o);return i},_delay1:function(e){var r=Math.floor((235*e-234)/19),t=12084+13753*r,a=r*29+Math.floor(t/25920);return qx(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 qx(e,r){return e-r*Math.floor(e/r)}Au.calendars.hebrew=ok});var Tue=z(()=>{var u1=_n(),HVe=xn();function lk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lk.prototype=new u1.baseCalendar;HVe(lk.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,u1.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,u1.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,u1.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)}});u1.calendars.islamic=lk});var Mue=z(()=>{var f1=_n(),UVe=xn();function sk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sk.prototype=new f1.baseCalendar;UVe(sk.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,f1.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,f1.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,f1.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});f1.calendars.julian=sk});var Sue=z(()=>{var _o=_n(),GVe=xn();function fk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fk.prototype=new _o.baseCalendar;GVe(fk.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,_o.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_o.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,_o.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,_o.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_o.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,_o.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,_o.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,_o.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,_o.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=uk(e+8+340,365);return[Math.floor(r/20)+1,uk(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[kue(e+20,20),kue(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,_o.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 uk(e,r){return e-r*Math.floor(e/r)}function kue(e,r){return uk(e-1,r)+1}_o.calendars.mayan=fk});var Lue=z(()=>{var oc=_n(),YVe=xn();function ck(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ck.prototype=new oc.baseCalendar;var que=oc.instance("gregorian");YVe(ck.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,oc.local.invalidYear||oc.regionalOptions[""].invalidYear);return que.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,oc.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,oc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o<a.month();o++)i+=this.daysPerMonth[o-1];return i+que.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)}});oc.calendars.nanakshahi=ck});var Cue=z(()=>{var lc=_n(),VVe=xn();function vk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vk.prototype=new lc.baseCalendar;VVe(vk.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,lc.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,lc.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,lc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=lc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=lc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t<e+2;t++)typeof this.NEPALI_CALENDAR_DATA[t]=="undefined"&&(this.NEPALI_CALENDAR_DATA[t]=r)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}});lc.calendars.nepali=vk});var Due=z(()=>{var Nv=_n(),jVe=xn();function Cx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Lx(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}Cx.prototype=new Nv.baseCalendar;jVe(Cx.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,Nv.local.invalidYear);return Lx(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,Nv.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,Nv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)Lx(i)&&n++;else if(e<0)for(var i=e;i<0;i++)Lx(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,Lx(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)}});Nv.calendars.persian=Cx;Nv.calendars.jalali=Cx});var Eue=z(()=>{var sc=_n(),WVe=xn(),Dx=sc.instance();function hk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hk.prototype=new sc.baseCalendar;WVe(hk.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,sc.local.invalidYear),t=this._t2gYear(r.year());return Dx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,sc.local.invalidYear),n=this._t2gYear(a.year());return Dx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sc.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,sc.local.invalidDate),n=this._t2gYear(a.year());return Dx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Dx.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)}});sc.calendars.taiwan=hk});var Pue=z(()=>{var uc=_n(),XVe=xn(),Ex=uc.instance();function dk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dk.prototype=new uc.baseCalendar;XVe(dk.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,uc.local.invalidYear),t=this._t2gYear(r.year());return Ex.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,uc.local.invalidYear),n=this._t2gYear(a.year());return Ex.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uc.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,uc.local.invalidDate),n=this._t2gYear(a.year());return Ex.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ex.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)}});uc.calendars.thai=dk});var Rue=z(()=>{var fc=_n(),ZVe=xn();function pk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pk.prototype=new fc.baseCalendar;ZVe(pk.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,fc.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,fc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<Tu.length;i++){if(Tu[i]>a)return Tu[n]-Tu[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,fc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Tu[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<Tu.length&&!(Tu[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Tu[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=fc.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=fc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});fc.calendars.ummalqura=pk;var Tu=[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 zue=z((anr,Fue)=>{"use strict";Fue.exports=_n();gue();bue();xue();_ue();wue();Aue();Tue();Mue();Sue();Lue();Cue();Due();Eue();Pue();Rue()});var Gue=z((nnr,Uue)=>{"use strict";var Iue=zue(),c1=ke(),Bue=(jt(),ze(Zt)),$Ve=Bue.EPOCHJD,JVe=Bue.ONEDAY,gk={valType:"enumerated",values:c1.sortObjectKeys(Iue.calendars),editType:"calc",dflt:"gregorian"},Oue=function(e,r,t,a){var n={};return n[t]=gk,c1.coerce(e,r,n,t,a)},KVe=function(e,r,t,a){for(var n=0;n<t.length;n++)Oue(e,r,t[n]+"calendar",a.calendar)},QVe={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"},eje={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"},rje={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"]},Px="##",tje={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:Px,w:Px,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function aje(e,r,t){for(var a=Math.floor((r+.05)/JVe)+$Ve,n=Hue(t).fromJD(a),i=0,o,l,s,u,f;(i=e.indexOf("%",i))!==-1;)o=e.charAt(i+1),o==="0"||o==="-"||o==="_"?(s=3,l=e.charAt(i+2),o==="_"&&(o="-")):(l=o,o="0",s=2),u=tje[l],u?(u===Px?f=Px:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var Nue={};function Hue(e){var r=Nue[e];return r||(r=Nue[e]=Iue.instance(e),r)}function v1(e){return c1.extendFlat({},gk,{description:e})}function bk(e){return"Sets the calendar system to use with `"+e+"` date data."}var yk={xcalendar:v1(bk("x"))},Rl=c1.extendFlat({},yk,{ycalendar:v1(bk("y"))}),mk=c1.extendFlat({},Rl,{zcalendar:v1(bk("z"))}),Iv=v1(["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(" "));Uue.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Rl,bar:Rl,box:Rl,heatmap:Rl,contour:Rl,histogram:Rl,histogram2d:Rl,histogram2dcontour:Rl,scatter3d:mk,surface:mk,mesh3d:mk,scattergl:Rl,ohlc:yk,candlestick:yk},layout:{calendar:v1(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Iv},yaxis:{calendar:Iv},scene:{xaxis:{calendar:Iv},yaxis:{calendar:Iv},zaxis:{calendar:Iv}},polar:{radialaxis:{calendar:Iv}}}},layoutAttributes:gk,handleDefaults:Oue,handleTraceDefaults:KVe,CANONICAL_SUNDAY:eje,CANONICAL_TICK:QVe,DFLTRANGE:rje,getCal:Hue,worldCalFmt:aje}});var Vue=z((inr,Yue)=>{"use strict";Yue.exports=Gue()});var nje=z((onr,Wue)=>{var jue=SX();jue.register([LZ(),m$(),NJ(),nK(),gK(),gQ(),EQ(),_ee(),$ee(),wse(),hue(),Vue()]);Wue.exports=jue});return nje();})();
/*! 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
   *)

ieee754/index.js:
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)

buffer/index.js:
  (*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   *)

safe-buffer/index.js:
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)

assert/build/internal/util/comparisons.js:
  (*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   *)

object-assign/index.js:
  (*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  *)
*/

window.Plotly = Plotly;
return Plotly;
}));