UNPKG

plotly.js

Version:

The open source JavaScript graphing library that also powers plotly.py and Plotly Dash

761 lines • 1.49 MB
/**
* plotly.js (gl2d - minified) v4.3.1
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
 function(root, factory) {
  if (typeof module === "object" && module.exports) {
   module.exports = factory();
  } else {
   root.moduleName = factory();
  }
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var Ate=Object.create;var f1=Object.defineProperty,Tte=Object.defineProperties,Mte=Object.getOwnPropertyDescriptor,kte=Object.getOwnPropertyDescriptors,Ste=Object.getOwnPropertyNames,ag=Object.getOwnPropertySymbols,Cte=Object.getPrototypeOf,f_=Object.prototype.hasOwnProperty,VM=Object.prototype.propertyIsEnumerable;var YM=(e,r,t)=>r in e?f1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ka=(e,r)=>{for(var t in r||(r={}))f_.call(r,t)&&YM(e,t,r[t]);if(ag)for(var t of ag(r))VM.call(r,t)&&YM(e,t,r[t]);return e},Ga=(e,r)=>Tte(e,kte(r));var XM=(e,r)=>{var t={};for(var a in e)f_.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&ag)for(var a of ag(e))r.indexOf(a)<0&&VM.call(e,a)&&(t[a]=e[a]);return t};var $a=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var I=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ka=(e,r)=>{for(var t in r)f1(e,t,{get:r[t],enumerable:!0})},WM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ste(r))!f_.call(e,n)&&n!==t&&f1(e,n,{get:()=>r[n],enumerable:!(a=Mte(r,n))||a.enumerable});return e};var c1=(e,r,t)=>(t=e!=null?Ate(Cte(e)):{},WM(r||!e||!e.__esModule?f1(t,"default",{value:e,enumerable:!0}):t,e)),hr=e=>WM(f1({},"__esModule",{value:!0}),e);var ZM=(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 v1=I(JM=>{"use strict";JM.version="4.3.1"});var $M=I((jM,ng)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ng!="undefined"&&ng.exports&&(ng.exports=t[r])})("Promise",typeof window!="undefined"?window:jM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,x,w){return Object.defineProperty(T,_,{value:x,writable:!0,configurable:w!==!1})}}catch(b){r=function(_,x,w){return _[x]=w,_}}a=(function(){var T,_,x;function w(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,C){x=new w(M,C),_?_.next=x:T=x,_=x,x=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(T=b.then),typeof T=="function"?T:!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,T,_){var x,w;try{T===!1?_.reject(b.msg):(T===!0?x=b.msg:x=T.call(void 0,b.msg),x===_.promise?_.reject(TypeError("Promise-chain cycle")):(w=l(x))?w.call(x,_.resolve,_.reject):_.resolve(x))}catch(k){_.reject(k)}}function f(b){var T,_=this;if(!_.triggered){_.triggered=!0,_.def&&(_=_.def);try{(T=l(b))?o(function(){var x=new d(_);try{T.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(w){c.call(x,w)}}):(_.msg=b,_.state=1,_.chain.length>0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,_,x){for(var w=0;w<T.length;w++)(function(M){b.resolve(T[M]).then(function(D){_(M,D)},x)})(w)}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 m(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var T=new p(this);this.then=function(x,w){var k={success:typeof x=="function"?x:!0,failure:typeof w=="function"?w:!1};return k.promise=new this.constructor(function(C,D){if(typeof C!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=C,k.reject=D}),T.chain.push(k),T.state!==0&&o(s,T),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(T,x)},function(x){c.call(T,x)})}catch(_){c.call(T,_)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(T){var _=this;return T&&typeof T=="object"&&T.__NPO__===1?T:new _(function(w,k){if(typeof w!="function"||typeof k!="function")throw TypeError("Not a function");w(T)})}),r(m,"reject",function(T){return new this(function(x,w){if(typeof x!="function"||typeof w!="function")throw TypeError("Not a function");w(T)})}),r(m,"all",function(T){var _=this;return n.call(T)!="[object Array]"?_.reject(TypeError("Not an array")):T.length===0?_.resolve([]):new _(function(w,k){if(typeof w!="function"||typeof k!="function")throw TypeError("Not a function");var M=T.length,C=Array(M),D=0;v(_,T,function(P,q){C[P]=q,++D===M&&w(C)},k)})}),r(m,"race",function(T){var _=this;return n.call(T)!="[object Array]"?_.reject(TypeError("Not an array")):new _(function(w,k){if(typeof w!="function"||typeof k!="function")throw TypeError("Not a function");v(_,T,function(C,D){w(D)},k)})}),m})});var sa=I((gEe,ig)=>{(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 A=g.length,S=new Array(A);A--;)S[A]=g[A];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,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",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 A=-1,S=h.length,L,E;if(arguments.length===1){for(;++A<S;)if((E=h[A])!=null&&E>=E){L=E;break}for(;++A<S;)(E=h[A])!=null&&L>E&&(L=E)}else{for(;++A<S;)if((E=g.call(h,h[A],A))!=null&&E>=E){L=E;break}for(;++A<S;)(E=g.call(h,h[A],A))!=null&&L>E&&(L=E)}return L},e.max=function(h,g){var A=-1,S=h.length,L,E;if(arguments.length===1){for(;++A<S;)if((E=h[A])!=null&&E>=E){L=E;break}for(;++A<S;)(E=h[A])!=null&&E>L&&(L=E)}else{for(;++A<S;)if((E=g.call(h,h[A],A))!=null&&E>=E){L=E;break}for(;++A<S;)(E=g.call(h,h[A],A))!=null&&E>L&&(L=E)}return L},e.extent=function(h,g){var A=-1,S=h.length,L,E,N;if(arguments.length===1){for(;++A<S;)if((E=h[A])!=null&&E>=E){L=N=E;break}for(;++A<S;)(E=h[A])!=null&&(L>E&&(L=E),N<E&&(N=E))}else{for(;++A<S;)if((E=g.call(h,h[A],A))!=null&&E>=E){L=N=E;break}for(;++A<S;)(E=g.call(h,h[A],A))!=null&&(L>E&&(L=E),N<E&&(N=E))}return[L,N]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var A=0,S=h.length,L,E=-1;if(arguments.length===1)for(;++E<S;)d(L=+h[E])&&(A+=L);else for(;++E<S;)d(L=+g.call(h,h[E],E))&&(A+=L);return A},e.mean=function(h,g){var A=0,S=h.length,L,E=-1,N=S;if(arguments.length===1)for(;++E<S;)d(L=v(h[E]))?A+=L:--N;else for(;++E<S;)d(L=v(g.call(h,h[E],E)))?A+=L:--N;if(N)return A/N},e.quantile=function(h,g){var A=(h.length-1)*g+1,S=Math.floor(A),L=+h[S-1],E=A-S;return E?L+E*(h[S]-L):L},e.median=function(h,g){var A=[],S=h.length,L,E=-1;if(arguments.length===1)for(;++E<S;)d(L=v(h[E]))&&A.push(L);else for(;++E<S;)d(L=v(g.call(h,h[E],E)))&&A.push(L);if(A.length)return e.quantile(A.sort(c),.5)},e.variance=function(h,g){var A=h.length,S=0,L,E,N=0,F=-1,O=0;if(arguments.length===1)for(;++F<A;)d(L=v(h[F]))&&(E=L-S,S+=E/++O,N+=E*(L-S));else for(;++F<A;)d(L=v(g.call(h,h[F],F)))&&(E=L-S,S+=E/++O,N+=E*(L-S));if(O>1)return N/(O-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var E=S+L>>>1;h(g[E],A)<0?S=E+1:L=E}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var E=S+L>>>1;h(g[E],A)>0?L=E:S=E+1}return S}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,L,E;S;)E=Math.random()*S--|0,L=h[S+g],h[S+g]=h[E+g],h[E+g]=L;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,L=h[0],E=new Array(A<0?0:A);g<A;)E[g]=[S=L,L=h[++g]];return E},e.transpose=function(h){if(!(E=h.length))return[];for(var g=-1,A=e.min(h,y),S=new Array(A);++g<A;)for(var L=-1,E,N=S[g]=new Array(E);++L<E;)N[L]=h[L][g];return S};function y(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var A in h)g.push(A);return g},e.values=function(h){var g=[];for(var A in h)g.push(h[A]);return g},e.entries=function(h){var g=[];for(var A in h)g.push({key:A,value:h[A]});return g},e.merge=function(h){for(var g=h.length,A,S=-1,L=0,E,N;++S<g;)L+=h[S].length;for(E=new Array(L);--g>=0;)for(N=h[g],A=N.length;--A>=0;)E[--L]=N[A];return E};var b=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var S=[],L=T(b(A)),E=-1,N;if(h*=L,g*=L,A*=L,A<0)for(;(N=h+A*++E)>g;)S.push(N/L);else for(;(N=h+A*++E)<g;)S.push(N/L);return S};function T(h){for(var g=1;h*g%1;)g*=10;return g}function _(h,g){for(var A in g)Object.defineProperty(h.prototype,A,{value:g[A],enumerable:!1})}e.map=function(h,g){var A=new x;if(h instanceof x)h.forEach(function(F,O){A.set(F,O)});else if(Array.isArray(h)){var S=-1,L=h.length,E;if(arguments.length===1)for(;++S<L;)A.set(S,h[S]);else for(;++S<L;)A.set(g.call(h,E=h[S],S),E)}else for(var N in h)A.set(N,h[N]);return A};function x(){this._=Object.create(null)}var w="__proto__",k="\0";_(x,{has:D,get:function(h){return this._[M(h)]},set:function(h,g){return this._[M(h)]=g},remove:R,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:C(g),value:this._[g]});return h},size:q,empty:z,forEach:function(h){for(var g in this._)h.call(this,C(g),this._[g])}});function M(h){return(h+="")===w||h[0]===k?k+h:h}function C(h){return(h+="")[0]===k?h.slice(1):h}function D(h){return M(h)in this._}function R(h){return(h=M(h))in this._&&delete this._[h]}function P(){var h=[];for(var g in this._)h.push(C(g));return h}function q(){var h=0;for(var g in this._)++h;return h}function z(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],A=[],S,L;function E(F,O,W){if(W>=g.length)return L?L.call(h,O):S?O.sort(S):O;for(var Z=-1,$=O.length,K=g[W++],we,ke,re,ve=new x,xe;++Z<$;)(xe=ve.get(we=K(ke=O[Z])))?xe.push(ke):ve.set(we,[ke]);return F?(ke=F(),re=function(Se,Ee){ke.set(Se,E(F,Ee,W))}):(ke={},re=function(Se,Ee){ke[Se]=E(F,Ee,W)}),ve.forEach(re),ke}function N(F,O){if(O>=g.length)return F;var W=[],Z=A[O++];return F.forEach(function($,K){W.push({key:$,values:N(K,O)})}),Z?W.sort(function($,K){return Z($.key,K.key)}):W}return h.map=function(F,O){return E(O,F,0)},h.entries=function(F){return N(E(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[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 B;if(h)for(var A=0,S=h.length;A<S;++A)g.add(h[A]);return g};function B(){this._=Object.create(null)}_(B,{has:D,add:function(h){return this._[M(h+="")]=!0,h},remove:R,values:P,size:q,empty:z,forEach:function(h){for(var g in this._)h.call(this,C(g))}}),e.behavior={};function U(h){return h}e.rebind=function(h,g){for(var A=1,S=arguments.length,L;++A<S;)h[L=arguments[A]]=G(h,g,g[L]);return h};function G(h,g,A){return function(){var S=A.apply(g,arguments);return S===g?h:S}}function X(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var A=0,S=Y.length;A<S;++A){var L=Y[A]+g;if(L in h)return L}}var Y=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new J,g=-1,A=arguments.length;++g<A;)h[arguments[g]]=j(h);return h};function J(){}J.prototype.on=function(h,g){var A=h.indexOf("."),S="";if(A>=0&&(S=h.slice(A+1),h=h.slice(0,A)),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=[],A=new x;function S(){for(var L=g,E=-1,N=L.length,F;++E<N;)(F=L[E].on)&&F.apply(this,arguments);return h}return S.on=function(L,E){var N=A.get(L),F;return arguments.length<2?N&&N.on:(N&&(N.on=null,g=g.slice(0,F=g.indexOf(N)).concat(g.slice(F+1)),A.remove(L)),E&&g.push(A.set(L,{on:E})),h)},S}e.event=null;function ee(){e.event.preventDefault()}function pe(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function ne(h){for(var g=new J,A=0,S=arguments.length;++A<S;)g[arguments[A]]=j(g);return g.of=function(L,E){return function(N){try{var F=N.sourceEvent=e.event;N.target=h,e.event=N,g[N.type].apply(L,E)}finally{e.event=F}}},g}e.requote=function(h){return h.replace(ye,"\\$&")};var ye=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,te={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var A in g)h[A]=g[A]};function De(h){return te(h,ge),h}var ce=function(h,g){return g.querySelector(h)},Re=function(h,g){return g.querySelectorAll(h)},Fe=function(h,g){var A=h.matches||h[X(h,"matchesSelector")];return Fe=function(S,L){return A.call(S,L)},Fe(h,g)};typeof Sizzle=="function"&&(ce=function(h,g){return Sizzle(h,g)[0]||null},Re=Sizzle,Fe=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var ge=e.selection.prototype=[];ge.select=function(h){var g=[],A,S,L,E;h=Oe(h);for(var N=-1,F=this.length;++N<F;){g.push(A=[]),A.parentNode=(L=this[N]).parentNode;for(var O=-1,W=L.length;++O<W;)(E=L[O])?(A.push(S=h.call(E,E.__data__,O,N)),S&&"__data__"in E&&(S.__data__=E.__data__)):A.push(null)}return De(g)};function Oe(h){return typeof h=="function"?h:function(){return ce(h,this)}}ge.selectAll=function(h){var g=[],A,S;h=cr(h);for(var L=-1,E=this.length;++L<E;)for(var N=this[L],F=-1,O=N.length;++F<O;)(S=N[F])&&(g.push(A=t(h.call(S,S.__data__,F,L))),A.parentNode=S);return De(g)};function cr(h){return typeof h=="function"?h:function(){return Re(h,this)}}var qe="http://www.w3.org/1999/xhtml",ze={svg:"http://www.w3.org/2000/svg",xhtml:qe,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:ze,qualify:function(h){var g=h.indexOf(":"),A=h;return g>=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),ze.hasOwnProperty(A)?{space:ze[A],local:h}:h}},ge.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(Ue(g,h[g]));return this}return this.each(Ue(h,g))};function Ue(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function E(){this.setAttributeNS(h.space,h.local,g)}function N(){var O=g.apply(this,arguments);O==null?this.removeAttribute(h):this.setAttribute(h,O)}function F(){var O=g.apply(this,arguments);O==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,O)}return g==null?h.local?S:A:typeof g=="function"?h.local?F:N:h.local?E:L}function We(h){return h.trim().replace(/\s+/g," ")}ge.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=or(h)).length,L=-1;if(g=A.classList){for(;++L<S;)if(!g.contains(h[L]))return!1}else for(g=A.getAttribute("class");++L<S;)if(!Ge(h[L]).test(g))return!1;return!0}for(g in h)this.each(Ye(g,h[g]));return this}return this.each(Ye(h,g))};function Ge(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function or(h){return(h+"").trim().split(/^|\s+/)}function Ye(h,g){h=or(h).map(_r);var A=h.length;function S(){for(var E=-1;++E<A;)h[E](this,g)}function L(){for(var E=-1,N=g.apply(this,arguments);++E<A;)h[E](this,N)}return typeof g=="function"?L:S}function _r(h){var g=Ge(h);return function(A,S){if(L=A.classList)return S?L.add(h):L.remove(h);var L=A.getAttribute("class")||"";S?(g.lastIndex=0,g.test(L)||A.setAttribute("class",We(L+" "+h))):A.setAttribute("class",We(L.replace(g," ")))}}ge.style=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(A in h)this.each(Pr(A,h[A],g));return this}if(S<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}A=""}return this.each(Pr(h,g,A))};function Pr(h,g,A){function S(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,A)}function E(){var N=g.apply(this,arguments);N==null?this.style.removeProperty(h):this.style.setProperty(h,N,A)}return g==null?S:typeof g=="function"?E:L}ge.property=function(h,g){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(g in h)this.each(Yr(g,h[g]));return this}return this.each(Yr(h,g))};function Yr(h,g){function A(){delete this[h]}function S(){this[h]=g}function L(){var E=g.apply(this,arguments);E==null?delete this[h]:this[h]=E}return g==null?A:typeof g=="function"?L:S}ge.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},ge.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},ge.append=function(h){return h=$e(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function $e(h){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===qe&&S.documentElement.namespaceURI===qe?S.createElement(h):S.createElementNS(L,h)}function A(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?A:g}ge.insert=function(h,g){return h=$e(h),g=Oe(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},ge.remove=function(){return this.each(mr)};function mr(){var h=this.parentNode;h&&h.removeChild(this)}ge.data=function(h,g){var A=-1,S=this.length,L,E;if(!arguments.length){for(h=new Array(S=(L=this[0]).length);++A<S;)(E=L[A])&&(h[A]=E.__data__);return h}function N(Z,$){var K,we=Z.length,ke=$.length,re=Math.min(we,ke),ve=new Array(ke),xe=new Array(ke),Se=new Array(we),Ee,me;if(g){var sr=new x,wr=new Array(we),Fr;for(K=-1;++K<we;)(Ee=Z[K])&&(sr.has(Fr=g.call(Ee,Ee.__data__,K))?Se[K]=Ee:sr.set(Fr,Ee),wr[K]=Fr);for(K=-1;++K<ke;)(Ee=sr.get(Fr=g.call($,me=$[K],K)))?Ee!==!0&&(ve[K]=Ee,Ee.__data__=me):xe[K]=Gr(me),sr.set(Fr,!0);for(K=-1;++K<we;)K in wr&&sr.get(wr[K])!==!0&&(Se[K]=Z[K])}else{for(K=-1;++K<re;)Ee=Z[K],me=$[K],Ee?(Ee.__data__=me,ve[K]=Ee):xe[K]=Gr(me);for(;K<ke;++K)xe[K]=Gr($[K]);for(;K<we;++K)Se[K]=Z[K]}xe.update=ve,xe.parentNode=ve.parentNode=Se.parentNode=Z.parentNode,F.push(xe),O.push(ve),W.push(Se)}var F=tt([]),O=De([]),W=De([]);if(typeof h=="function")for(;++A<S;)N(L=this[A],h.call(L,L.parentNode.__data__,A));else for(;++A<S;)N(L=this[A],h);return O.enter=function(){return F},O.exit=function(){return W},O};function Gr(h){return{__data__:h}}ge.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},ge.filter=function(h){var g=[],A,S,L;typeof h!="function"&&(h=fe(h));for(var E=0,N=this.length;E<N;E++){g.push(A=[]),A.parentNode=(S=this[E]).parentNode;for(var F=0,O=S.length;F<O;F++)(L=S[F])&&h.call(L,L.__data__,F,E)&&A.push(L)}return De(g)};function fe(h){return function(){return Fe(this,h)}}ge.order=function(){for(var h=-1,g=this.length;++h<g;)for(var A=this[h],S=A.length-1,L=A[S],E;--S>=0;)(E=A[S])&&(L&&L!==E.nextSibling&&L.parentNode.insertBefore(E,L),L=E);return this},ge.sort=function(h){h=Ce.apply(this,arguments);for(var g=-1,A=this.length;++g<A;)this[g].sort(h);return this.order()};function Ce(h){return arguments.length||(h=c),function(g,A){return g&&A?h(g.__data__,A.__data__):!g-!A}}ge.each=function(h){return Tr(this,function(g,A,S){h.call(g,g.__data__,A,S)})};function Tr(h,g){for(var A=0,S=h.length;A<S;A++)for(var L=h[A],E=0,N=L.length,F;E<N;E++)(F=L[E])&&g(F,E,A);return h}ge.call=function(h){var g=t(arguments);return h.apply(g[0]=this,g),this},ge.empty=function(){return!this.node()},ge.node=function(){for(var h=0,g=this.length;h<g;h++)for(var A=this[h],S=0,L=A.length;S<L;S++){var E=A[S];if(E)return E}return null},ge.size=function(){var h=0;return Tr(this,function(){++h}),h};function tt(h){return te(h,at),h}var at=[];e.selection.enter=tt,e.selection.enter.prototype=at,at.append=ge.append,at.empty=ge.empty,at.node=ge.node,at.call=ge.call,at.size=ge.size,at.select=function(h){for(var g=[],A,S,L,E,N,F=-1,O=this.length;++F<O;){L=(E=this[F]).update,g.push(A=[]),A.parentNode=E.parentNode;for(var W=-1,Z=E.length;++W<Z;)(N=E[W])?(A.push(L[W]=S=h.call(E.parentNode,N.__data__,W,F)),S.__data__=N.__data__):A.push(null)}return De(g)},at.insert=function(h,g){return arguments.length<2&&(g=de(this)),ge.insert.call(this,h,g)};function de(h){var g,A;return function(S,L,E){var N=h[E].update,F=N.length,O;for(E!=A&&(A=E,g=0),L>=g&&(g=L+1);!(O=N[g])&&++g<F;);return O}}e.select=function(h){var g;return typeof h=="string"?(g=[ce(h,a)],g.parentNode=a.documentElement):(g=[h],g.parentNode=n(h)),De([g])},e.selectAll=function(h){var g;return typeof h=="string"?(g=t(Re(h,a)),g.parentNode=a.documentElement):(g=t(h),g.parentNode=null),De([g])},ge.on=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g=!1);for(A in h)this.each(Le(A,h[A],g));return this}if(S<2)return(S=this.node()["__on"+h])&&S._;A=!1}return this.each(Le(h,g,A))};function Le(h,g,A){var S="__on"+h,L=h.indexOf("."),E=Ar;L>0&&(h=h.slice(0,L));var N=lr.get(h);N&&(h=N,E=ur);function F(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function O(){var Z=E(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=Z,Z.$=A),Z._=g}function W(){var Z=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),$;for(var K in this)if($=K.match(Z)){var we=this[K];this.removeEventListener($[1],we,we.$),delete this[K]}}return L?g?O:F:g?V:W}var lr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&lr.forEach(function(h){"on"+h in a&&lr.remove(h)});function Ar(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function ur(h,g){var A=Ar(h,g);return function(S){var L=this,E=S.relatedTarget;(!E||E!==L&&!(E.compareDocumentPosition(L)&8))&&A.call(L,S)}}var Cr,Er=0;function Vr(h){var g=".dragsuppress-"+ ++Er,A="click"+g,S=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(Cr==null&&(Cr="onselectstart"in h?!1:X(h.style,"userSelect")),Cr){var L=n(h).style,E=L[Cr];L[Cr]="none"}return function(N){if(S.on(g,null),Cr&&(L[Cr]=E),N){var F=function(){S.on(A,null)};S.on(A,function(){ee(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ve(h,pe())};var ot=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ve(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if(ot<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=A[0][0].getScreenCTM();ot=!(E.f||E.e),A.remove()}}return ot?(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 N=h.getBoundingClientRect();return[g.clientX-N.left-h.clientLeft,g.clientY-N.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=pe().changedTouches),g){for(var S=0,L=g.length,E;S<L;++S)if((E=g[S]).identifier===A)return Ve(h,E)}},e.behavior.drag=function(){var h=ne(L,"drag","dragstart","dragend"),g=null,A=E(V,e.mouse,i,"mousemove","mouseup"),S=E(Mr,e.touch,U,"touchmove","touchend");function L(){this.on("mousedown.drag",A).on("touchstart.drag",S)}function E(N,F,O,W,Z){return function(){var $=this,K=e.event.target.correspondingElement||e.event.target,we=$.parentNode,ke=h.of($,arguments),re=0,ve=N(),xe=".drag"+(ve==null?"":"-"+ve),Se,Ee=e.select(O(K)).on(W+xe,wr).on(Z+xe,Fr),me=Vr(K),sr=F(we,ve);g?(Se=g.apply($,arguments),Se=[Se.x-sr[0],Se.y-sr[1]]):Se=[0,0],ke({type:"dragstart"});function wr(){var Jr=F(we,ve),ct,vt;Jr&&(ct=Jr[0]-sr[0],vt=Jr[1]-sr[1],re|=ct|vt,sr=Jr,ke({type:"drag",x:Jr[0]+Se[0],y:Jr[1]+Se[1],dx:ct,dy:vt}))}function Fr(){F(we,ve)&&(Ee.on(W+xe,null).on(Z+xe,null),me(re),ke({type:"dragend"}))}}}return L.origin=function(N){return arguments.length?(g=N,L):g},e.rebind(L,h,"on")};function Mr(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=pe().touches),g?t(g).map(function(A){var S=Ve(h,A);return S.identifier=A.identifier,S}):[]};var Qe=1e-6,zr=Qe*Qe,it=Math.PI,lt=2*it,Qr=lt-Qe,se=it/2,Te=it/180,tr=180/it;function vr(h){return h>0?1:h<0?-1:0}function na(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Ea(h){return h>1?0:h<-1?it:Math.acos(h)}function Da(h){return h>1?se:h<-1?-se:Math.asin(h)}function Va(h){return((h=Math.exp(h))-1/h)/2}function on(h){return((h=Math.exp(h))+1/h)/2}function Xa(h){return((h=Math.exp(2*h))-1)/(h+1)}function Mn(h){return(h=Math.sin(h/2))*h}var Ba=Math.SQRT2,hn=2,Yn=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],L=h[2],E=g[0],N=g[1],F=g[2],O=E-A,W=N-S,Z=O*O+W*W,$,K;if(Z<zr)K=Math.log(F/L)/Ba,$=function(Se){return[A+Se*O,S+Se*W,L*Math.exp(Ba*Se*K)]};else{var we=Math.sqrt(Z),ke=(F*F-L*L+Yn*Z)/(2*L*hn*we),re=(F*F-L*L-Yn*Z)/(2*F*hn*we),ve=Math.log(Math.sqrt(ke*ke+1)-ke),xe=Math.log(Math.sqrt(re*re+1)-re);K=(xe-ve)/Ba,$=function(Se){var Ee=Se*K,me=on(ve),sr=L/(hn*we)*(me*Xa(Ba*Ee+ve)-Va(ve));return[A+sr*O,S+sr*W,L*me/on(Ba*Ee+ve)]}}return $.duration=K*1e3,$},e.behavior.zoom=function(){var h={x:0,y:0,k:1},g,A,S,L=[960,500],E=Kn,N=250,F=0,O="mousedown.zoom",W="mousemove.zoom",Z="mouseup.zoom",$,K="touchstart.zoom",we,ke=ne(Ee,"zoomstart","zoom","zoomend"),re,ve,xe,Se;Wa||(Wa="onwheel"in a?(si=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(si=function(){return e.event.wheelDelta},"mousewheel"):(si=function(){return-e.event.detail},"MozMousePixelScroll"));function Ee(Br){Br.on(O,Ft).on(Wa+".zoom",wn).on("dblclick.zoom",Ta).on(K,ma)}Ee.event=function(Br){Br.each(function(){var Ot=ke.of(this,arguments),Zt=h;ps?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},vt(Ot)}).tween("zoom:zoom",function(){var va=L[0],Ja=L[1],Dn=A?A[0]:va/2,fi=A?A[1]:Ja/2,wi=e.interpolateZoom([(Dn-h.x)/h.k,(fi-h.y)/h.k,va/h.k],[(Dn-Zt.x)/Zt.k,(fi-Zt.y)/Zt.k,va/Zt.k]);return function(Bi){var H=wi(Bi),ae=va/H[2];this.__chart__=h={x:Dn-H[0]*ae,y:fi-H[1]*ae,k:ae},Bt(Ot)}}).each("interrupt.zoom",function(){gt(Ot)}).each("end.zoom",function(){gt(Ot)}):(this.__chart__=h,vt(Ot),Bt(Ot),gt(Ot))})},Ee.translate=function(Br){return arguments.length?(h={x:+Br[0],y:+Br[1],k:h.k},ct(),Ee):[h.x,h.y]},Ee.scale=function(Br){return arguments.length?(h={x:h.x,y:h.y,k:null},wr(+Br),ct(),Ee):h.k},Ee.scaleExtent=function(Br){return arguments.length?(E=Br==null?Kn:[+Br[0],+Br[1]],Ee):E},Ee.center=function(Br){return arguments.length?(S=Br&&[+Br[0],+Br[1]],Ee):S},Ee.size=function(Br){return arguments.length?(L=Br&&[+Br[0],+Br[1]],Ee):L},Ee.duration=function(Br){return arguments.length?(N=+Br,Ee):N},Ee.x=function(Br){return arguments.length?(ve=Br,re=Br.copy(),h={x:0,y:0,k:1},Ee):ve},Ee.y=function(Br){return arguments.length?(Se=Br,xe=Br.copy(),h={x:0,y:0,k:1},Ee):Se};function me(Br){return[(Br[0]-h.x)/h.k,(Br[1]-h.y)/h.k]}function sr(Br){return[Br[0]*h.k+h.x,Br[1]*h.k+h.y]}function wr(Br){h.k=Math.max(E[0],Math.min(E[1],Br))}function Fr(Br,Ot){Ot=sr(Ot),h.x+=Br[0]-Ot[0],h.y+=Br[1]-Ot[1]}function Jr(Br,Ot,Zt,va){Br.__chart__={x:h.x,y:h.y,k:h.k},wr(Math.pow(2,va)),Fr(A=Ot,Zt),Br=e.select(Br),N>0&&(Br=Br.transition().duration(N)),Br.call(Ee.event)}function ct(){ve&&ve.domain(re.range().map(function(Br){return(Br-h.x)/h.k}).map(re.invert)),Se&&Se.domain(xe.range().map(function(Br){return(Br-h.y)/h.k}).map(xe.invert))}function vt(Br){F++||Br({type:"zoomstart"})}function Bt(Br){ct(),Br({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gt(Br){--F||(Br({type:"zoomend"}),A=null)}function Ft(){var Br=this,Ot=ke.of(Br,arguments),Zt=0,va=e.select(i(Br)).on(W,fi).on(Z,wi),Ja=me(e.mouse(Br)),Dn=Vr(Br);gv.call(Br),vt(Ot);function fi(){Zt=1,Fr(e.mouse(Br),Ja),Bt(Ot)}function wi(){va.on(W,null).on(Z,null),Dn(Zt),gt(Ot)}}function ma(){var Br=this,Ot=ke.of(Br,arguments),Zt={},va=0,Ja,Dn=".zoom-"+e.event.changedTouches[0].identifier,fi="touchmove"+Dn,wi="touchend"+Dn,Bi=[],H=e.select(Br),ae=Vr(Br);Be(),vt(Ot),H.on(O,null).on(K,Be);function oe(){var Xe=e.touches(Br);return Ja=h.k,Xe.forEach(function(yr){yr.identifier in Zt&&(Zt[yr.identifier]=me(yr))}),Xe}function Be(){var Xe=e.event.target;e.select(Xe).on(fi,Ze).on(wi,er),Bi.push(Xe);for(var yr=e.event.changedTouches,Dr=0,qr=yr.length;Dr<qr;++Dr)Zt[yr[Dr].identifier]=null;var Rr=oe(),Ct=Date.now();if(Rr.length===1){if(Ct-we<500){var mt=Rr[0];Jr(Br,mt,Zt[mt.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),ee()}we=Ct}else if(Rr.length>1){var mt=Rr[0],$r=Rr[1],fr=mt[0]-$r[0],Pe=mt[1]-$r[1];va=fr*fr+Pe*Pe}}function Ze(){var Xe=e.touches(Br),yr,Dr,qr,Rr;gv.call(Br);for(var Ct=0,mt=Xe.length;Ct<mt;++Ct,Rr=null)if(qr=Xe[Ct],Rr=Zt[qr.identifier]){if(Dr)break;yr=qr,Dr=Rr}if(Rr){var $r=($r=qr[0]-yr[0])*$r+($r=qr[1]-yr[1])*$r,fr=va&&Math.sqrt($r/va);yr=[(yr[0]+qr[0])/2,(yr[1]+qr[1])/2],Dr=[(Dr[0]+Rr[0])/2,(Dr[1]+Rr[1])/2],wr(fr*Ja)}we=null,Fr(yr,Dr),Bt(Ot)}function er(){if(e.event.touches.length){for(var Xe=e.event.changedTouches,yr=0,Dr=Xe.length;yr<Dr;++yr)delete Zt[Xe[yr].identifier];for(var qr in Zt)return void oe()}e.selectAll(Bi).on(Dn,null),H.on(O,Ft).on(K,ma),ae(),gt(Ot)}}function wn(){var Br=ke.of(this,arguments);$?clearTimeout($):(gv.call(this),g=me(A=S||e.mouse(this)),vt(Br)),$=setTimeout(function(){$=null,gt(Br)},50),ee(),wr(Math.pow(2,si()*.002)*h.k),Fr(A,g),Bt(Br)}function Ta(){var Br=e.mouse(this),Ot=Math.log(h.k)/Math.LN2;Jr(this,Br,me(Br),e.event.shiftKey?Math.ceil(Ot)-1:Math.floor(Ot)+1)}return e.rebind(Ee,ke,"on")};var Kn=[0,1/0],si,Wa;e.color=Vn;function Vn(){}Vn.prototype.toString=function(){return this.rgb()+""},e.hsl=ln;function ln(h,g,A){return this instanceof ln?(this.h=+h,this.s=+g,void(this.l=+A)):arguments.length<2?h instanceof ln?new ln(h.h,h.s,h.l):mo(""+h,Pu,ln):new ln(h,g,A)}var sn=ln.prototype=new Vn;sn.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new ln(this.h,this.s,this.l/h)},sn.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new ln(this.h,this.s,h*this.l)},sn.rgb=function(){return Za(this.h,this.s,this.l)};function Za(h,g,A){var S,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,S=2*A-L;function E(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 N(F){return Math.round(E(F)*255)}return new Aa(N(h+120),N(h),N(h-120))}e.hcl=kn;function kn(h,g,A){return this instanceof kn?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof kn?new kn(h.h,h.c,h.l):h instanceof Qt?tl(h.l,h.a,h.b):tl((h=V0((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new kn(h,g,A)}var ui=kn.prototype=new Vn;ui.brighter=function(h){return new kn(this.h,this.c,Math.min(100,this.l+It*(arguments.length?h:1)))},ui.darker=function(h){return new kn(this.h,this.c,Math.max(0,this.l-It*(arguments.length?h:1)))},ui.rgb=function(){return Ir(this.h,this.c,this.l).rgb()};function Ir(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Qt(A,Math.cos(h*=Te)*g,Math.sin(h)*g)}e.lab=Qt;function Qt(h,g,A){return this instanceof Qt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Qt?new Qt(h.l,h.a,h.b):h instanceof kn?Ir(h.h,h.c,h.l):V0((h=Aa(h)).r,h.g,h.b):new Qt(h,g,A)}var It=18,pa=.95047,Xn=1,_i=1.08883,un=Qt.prototype=new Vn;un.brighter=function(h){return new Qt(Math.min(100,this.l+It*(arguments.length?h:1)),this.a,this.b)},un.darker=function(h){return new Qt(Math.max(0,this.l-It*(arguments.length?h:1)),this.a,this.b)},un.rgb=function(){return Io(this.l,this.a,this.b)};function Io(h,g,A){var S=(h+16)/116,L=S+g/500,E=S-A/200;return L=El(L)*pa,S=El(S)*Xn,E=El(E)*_i,new Aa(lo(3.2404542*L-1.5371385*S-.4985314*E),lo(-.969266*L+1.8760108*S+.041556*E),lo(.0556434*L-.2040259*S+1.0572252*E))}function tl(h,g,A){return h>0?new kn(Math.atan2(A,g)*tr,Math.sqrt(g*g+A*A),h):new kn(NaN,NaN,h)}function El(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function os(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function lo(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Aa;function Aa(h,g,A){return this instanceof Aa?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Aa?new Aa(h.r,h.g,h.b):mo(""+h,Aa,Za):new Aa(h,g,A)}function al(h){return new Aa(h>>16,h>>8&255,h&255)}function En(h){return al(h)+""}var Wi=Aa.prototype=new Vn;Wi.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,L=30;return!g&&!A&&!S?new Aa(L,L,L):(g&&g<L&&(g=L),A&&A<L&&(A=L),S&&S<L&&(S=L),new Aa(Math.min(255,g/h),Math.min(255,A/h),Math.min(255,S/h)))},Wi.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Aa(h*this.r,h*this.g,h*this.b)},Wi.hsl=function(){return Pu(this.r,this.g,this.b)},Wi.toString=function(){return"#"+Bo(this.r)+Bo(this.g)+Bo(this.b)};function Bo(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function mo(h,g,A){var S=0,L=0,E=0,N,F,O;if(N=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),N)switch(F=N[2].split(","),N[1]){case"hsl":return A(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return g(fc(F[0]),fc(F[1]),fc(F[2]))}return(O=kt.get(h))?g(O.r,O.g,O.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(O=parseInt(h.slice(1),16))&&(h.length===4?(S=(O&3840)>>4,S=S>>4|S,L=O&240,L=L>>4|L,E=O&15,E=E<<4|E):h.length===7&&(S=(O&16711680)>>16,L=(O&65280)>>8,E=O&255)),g(S,L,E))}function Pu(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),E=L-S,N,F,O=(L+S)/2;return E?(F=O<.5?E/(L+S):E/(2-L-S),h==L?N=(g-A)/E+(g<A?6:0):g==L?N=(A-h)/E+2:N=(h-g)/E+4,N*=60):(N=NaN,F=O>0&&O<1?0:N),new ln(N,F,O)}function V0(h,g,A){h=uc(h),g=uc(g),A=uc(A);var S=os((.4124564*h+.3575761*g+.1804375*A)/pa),L=os((.2126729*h+.7151522*g+.072175*A)/Xn),E=os((.0193339*h+.119192*g+.9503041*A)/_i);return Qt(116*L-16,500*(S-L),200*(L-E))}function uc(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function fc(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kt=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});kt.forEach(function(h,g){kt.set(h,al(g))});function St(h){return typeof h=="function"?h:function(){return h}}e.functor=St,e.xhr=xa(U);function xa(h){return function(g,A,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),Zr(g,A,h,S)}}function Zr(h,g,A,S){var L={},E=e.dispatch("beforesend","progress","load","error"),N={},F=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=W:F.onreadystatechange=function(){F.readyState>3&&W()};function W(){var Z=F.status,$;if(!Z&&Na(F)||Z>=200&&Z<300||Z===304){try{$=A.call(L,F)}catch(K){E.error.call(L,K);return}E.load.call(L,$)}else E.error.call(L,F)}return F.onprogress=function(Z){var $=e.event;e.event=Z;try{E.progress.call(L,F)}finally{e.event=$}},L.header=function(Z,$){return Z=(Z+"").toLowerCase(),arguments.length<2?N[Z]:($==null?delete N[Z]:N[Z]=$+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(O=Z,L):O},L.response=function(Z){return A=Z,L},["get","post"].forEach(function(Z){L[Z]=function(){return L.send.apply(L,[Z].concat(t(arguments)))}}),L.send=function(Z,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),F.open(Z,h,!0),g!=null&&!("accept"in N)&&(N.accept=g+",*/*"),F.setRequestHeader)for(var we in N)F.setRequestHeader(we,N[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),O!=null&&(F.responseType=O),K!=null&&L.on("error",K).on("load",function(ke){K(null,ke)}),E.beforesend.call(L,F),F.send($==null?null:$),L},L.abort=function(){return F.abort(),L},e.rebind(L,E,"on"),S==null?L:L.get(xn(S))}function xn(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Na(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+`
]`),S=h.charCodeAt(0);function L(W,Z,$){arguments.length<3&&($=Z,Z=null);var K=Zr(W,g,Z==null?E:N(Z),$);return K.row=function(we){return arguments.length?K.response((Z=we)==null?E:N(we)):Z},K}function E(W){return L.parse(W.responseText)}function N(W){return function(Z){return L.parse(Z.responseText,W)}}L.parse=function(W,Z){var $;return L.parseRows(W,function(K,we){if($)return $(K,we-1);var ke=function(re){for(var ve={},xe=K.length,Se=0;Se<xe;++Se)ve[K[Se]]=re[Se];return ve};$=Z?function(re,ve){return Z(ke(re),ve)}:ke})},L.parseRows=function(W,Z){var $={},K={},we=[],ke=W.length,re=0,ve=0,xe,Se;function Ee(){if(re>=ke)return K;if(Se)return Se=!1,$;var sr=re;if(W.charCodeAt(sr)===34){for(var wr=sr;wr++<ke;)if(W.charCodeAt(wr)===34){if(W.charCodeAt(wr+1)!==34)break;++wr}re=wr+2;var Fr=W.charCodeAt(wr+1);return Fr===13?(Se=!0,W.charCodeAt(wr+2)===10&&++re):Fr===10&&(Se=!0),W.slice(sr+1,wr).replace(/""/g,'"')}for(;re<ke;){var Fr=W.charCodeAt(re++),Jr=1;if(Fr===10)Se=!0;else if(Fr===13)Se=!0,W.charCodeAt(re)===10&&(++re,++Jr);else if(Fr!==S)continue;return W.slice(sr,re-Jr)}return W.slice(sr)}for(;(xe=Ee())!==K;){for(var me=[];xe!==$&&xe!==K;)me.push(xe),xe=Ee();Z&&(me=Z(me,ve++))==null||we.push(me)}return we},L.format=function(W){if(Array.isArray(W[0]))return L.formatRows(W);var Z=new B,$=[];return W.forEach(function(K){for(var we in K)Z.has(we)||$.push(Z.add(we))}),[$.map(O).join(h)].concat(W.map(function(K){return $.map(function(we){return O(K[we])}).join(h)})).join(`
`)},L.formatRows=function(W){return W.map(F).join(`
`)};function F(W){return W.map(O).join(h)}function O(W){return A.test(W)?'"'+W.replace(/\"/g,'""')+'"':W}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var Oa,Wn,Ii,so,X0=this[X(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){Vs.apply(this,arguments)};function Vs(h,g,A){var S=arguments.length;S<2&&(g=0),S<3&&(A=Date.now());var L=A+g,E={c:h,t:L,n:null};return Wn?Wn.n=E:Oa=E,Wn=E,Ii||(so=clearTimeout(so),Ii=1,X0(Xs)),E}function Xs(){var h=cc(),g=yd()-h;g>24?(isFinite(g)&&(clearTimeout(so),so=setTimeout(Xs,g)),Ii=0):(Ii=1,X0(Xs))}e.timer.flush=function(){cc(),yd()};function cc(){for(var h=Date.now(),g=Oa;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function yd(){for(var h,g=Oa,A=1/0;g;)g.c?(g.t<A&&(A=g.t),g=(h=g).n):g=h?h.n=g.n:Oa=g.n;return Wn=h,A}e.round=function(h,g){return g?Math.round(h*(g=Math.pow(10,g)))/g:Math.round(h)},e.geom={};function ls(h){return h[0]}function Nu(h){return h[1]}e.geom.hull=function(h){var g=ls,A=Nu;if(arguments.length)return S(h);function S(L){if(L.length<3)return[];var E=St(g),N=St(A),F,O=L.length,W=[],Z=[];for(F=0;F<O;F++)W.push([+E.call(this,L[F],F),+N.call(this,L[F],F),F]);for(W.sort(Lx),F=0;F<O;F++)Z.push([W[F][0],-W[F][1]]);var $=ry(W),K=ry(Z),we=K[0]===$[0],ke=K[K.length-1]===$[$.length-1],re=[];for(F=$.length-1;F>=0;--F)re.push(L[W[$[F]][2]]);for(F=+we;F<K.length-ke;++F)re.push(L[W[K[F]][2]]);return re}return S.x=function(L){return arguments.length?(g=L,S):g},S.y=function(L){return arguments.length?(A=L,S):A},S};function ry(h){for(var g=h.length,A=[0,1],S=2,L=2;L<g;L++){for(;S>1&&na(h[A[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function Lx(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return te(h,W0),h};var W0=e.geom.polygon.prototype=[];W0.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],L=0;++h<g;)A=S,S=this[h],L+=A[1]*S[0]-A[0]*S[1];return L*.5},W0.centroid=function(h){var g=-1,A=this.length,S=0,L=0,E,N=this[A-1],F;for(arguments.length||(h=-1/(6*this.area()));++g<A;)E=N,N=this[g],F=E[0]*N[1]-N[0]*E[1],S+=(E[0]+N[0])*F,L+=(E[1]+N[1])*F;return[S*h,L*h]},W0.clip=function(h){for(var g,A=hc(h),S=-1,L=this.length-hc(this),E,N,F=this[L-1],O,W,Z;++S<L;){for(g=h.slice(),h.length=0,O=this[S],W=g[(N=g.length-A)-1],E=-1;++E<N;)Z=g[E],gd(Z,F,O)?(gd(W,F,O)||h.push(vc(W,Z,F,O)),h.push(Z)):gd(W,F,O)&&h.push(vc(W,Z,F,O)),W=Z;A&&h.push(h[0]),F=O}return h};function gd(h,g,A){return(A[0]-g[0])*(h[1]-g[1])<(A[1]-g[1])*(h[0]-g[0])}function vc(h,g,A,S){var L=h[0],E=A[0],N=g[0]-L,F=S[0]-E,O=h[1],W=A[1],Z=g[1]-O,$=S[1]-W,K=(F*(O-W)-$*(L-E))/($*N-F*Z);return[L+K*N,O+K*Z]}function hc(h){var g=h[0],A=h[h.length-1];return!(g[0]-A[0]||g[1]-A[1])}var ss,Dl,Oo,Z0=[],dc,Ws,J0=[];function ty(){yc(this),this.edge=this.site=this.circle=null}function bd(h){var g=Z0.pop()||new ty;return g.site=h,g}function j0(h){Iu(h),Oo.remove(h),Z0.push(h),yc(h)}function ay(h){var g=h.circle,A=g.x,S=g.cy,L={x:A,y:S},E=h.P,N=h.N,F=[h];j0(h);for(var O=E;O.circle&&b(A-O.circle.x)<Qe&&b(S-O.circle.cy)<Qe;)E=O.P,F.unshift(O),j0(O),O=E;F.unshift(O),Iu(O);for(var W=N;W.circle&&b(A-W.circle.x)<Qe&&b(S-W.circle.cy)<Qe;)N=W.N,F.push(W),j0(W),W=N;F.push(W),Iu(W);var Z=F.length,$;for($=1;$<Z;++$)W=F[$],O=F[$-1],Bu(W.edge,O.site,W.site,L);O=F[0],W=F[Z-1],W.edge=pc(O.site,W.site,null,L),nl(O),nl(W)}function ny(h){for(var g=h.x,A=h.y,S,L,E,N,F=Oo._;F;)if(E=xd(F,A)-g,E>Qe)F=F.L;else if(N=g-iy(F,A),N>Qe){if(!F.R){S=F;break}F=F.R}else{E>-Qe?(S=F.P,L=F):N>-Qe?(S=F,L=F.N):S=L=F;break}var O=bd(h);if(Oo.insert(S,O),!(!S&&!L)){if(S===L){Iu(S),L=bd(S.site),Oo.insert(O,L),O.edge=L.edge=pc(S.site,O.site),nl(S),nl(L);return}if(!L){O.edge=pc(S.site,O.site);return}Iu(S),Iu(L);var W=S.site,Z=W.x,$=W.y,K=h.x-Z,we=h.y-$,ke=L.site,re=ke.x-Z,ve=ke.y-$,xe=2*(K*ve-we*re),Se=K*K+we*we,Ee=re*re+ve*ve,me={x:(ve*Se-we*Ee)/xe+Z,y:(K*Ee-re*Se)/xe+$};Bu(L.edge,W,ke,me),O.edge=pc(W,h,null,me),L.edge=pc(h,ke,null,me),nl(S),nl(L)}}function xd(h,g){var A=h.site,S=A.x,L=A.y,E=L-g;if(!E)return S;var N=h.P;if(!N)return-1/0;A=N.site;var F=A.x,O=A.y,W=O-g;if(!W)return F;var Z=F-S,$=1/E-1/W,K=Z/W;return $?(-K+Math.sqrt(K*K-2*$*(Z*Z/(-2*W)-O+W/2+L-E/2)))/$+S:(S+F)/2}function iy(h,g){var A=h.N;if(A)return xd(A,g);var S=h.site;return S.y===g?S.x:1/0}function _d(h){this.site=h,this.edges=[]}_d.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort($0),h.length};function zu(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],E,N,F,O,W=Dl,Z=W.length,$,K,we,ke,re,ve;Z--;)if($=W[Z],!(!$||!$.prepare()))for(we=$.edges,ke=we.length,K=0;K<ke;)ve=we[K].end(),F=ve.x,O=ve.y,re=we[++K%ke].start(),E=re.x,N=re.y,(b(F-E)>Qe||b(O-N)>Qe)&&(we.splice(K,0,new K0(qx($.site,ve,b(F-g)<Qe&&L-O>Qe?{x:g,y:b(E-g)<Qe?N:L}:b(O-L)<Qe&&A-F>Qe?{x:b(N-L)<Qe?E:A,y:L}:b(F-A)<Qe&&O-S>Qe?{x:A,y:b(E-A)<Qe?N:S}:b(O-S)<Qe&&F-g>Qe?{x:b(N-S)<Qe?E:g,y:S}:null),$.site,null)),++ke)}function $0(h,g){return g.angle-h.angle}function wd(){yc(this),this.x=this.y=this.arc=this.site=this.cy=null}function nl(h){var g=h.P,A=h.N;if(!(!g||!A)){var S=g.site,L=h.site,E=A.site;if(S!==E){var N=L.x,F=L.y,O=S.x-N,W=S.y-F,Z=E.x-N,ve=E.y-F,$=2*(O*ve-W*Z);if(!($>=-zr)){var K=O*O+W*W,we=Z*Z+ve*ve,ke=(ve*K-W*we)/$,re=(O*we-Z*K)/$,ve=re+F,xe=J0.pop()||new wd;xe.arc=h,xe.site=L,xe.x=ke+N,xe.y=ve+Math.sqrt(ke*ke+re*re),xe.cy=ve,h.circle=xe;for(var Se=null,Ee=Ws._;Ee;)if(xe.y<Ee.y||xe.y===Ee.y&&xe.x<=Ee.x)if(Ee.L)Ee=Ee.L;else{Se=Ee.P;break}else if(Ee.R)Ee=Ee.R;else{Se=Ee;break}Ws.insert(Se,xe),Se||(dc=xe)}}}}function Iu(h){var g=h.circle;g&&(g.P||(dc=g.N),Ws.remove(g),J0.push(g),yc(g),h.circle=null)}function Ex(h,g,A,S){return function(L){var E=L.a,N=L.b,F=E.x,O=E.y,W=N.x,Z=N.y,$=0,K=1,we=W-F,ke=Z-O,re;if(re=h-F,!(!we&&re>0)){if(re/=we,we<0){if(re<$)return;re<K&&(K=re)}else if(we>0){if(re>K)return;re>$&&($=re)}if(re=A-F,!(!we&&re<0)){if(re/=we,we<0){if(re>K)return;re>$&&($=re)}else if(we>0){if(re<$)return;re<K&&(K=re)}if(re=g-O,!(!ke&&re>0)){if(re/=ke,ke<0){if(re<$)return;re<K&&(K=re)}else if(ke>0){if(re>K)return;re>$&&($=re)}if(re=S-O,!(!ke&&re<0)){if(re/=ke,ke<0){if(re>K)return;re>$&&($=re)}else if(ke>0){if(re<$)return;re<K&&(K=re)}return $>0&&(L.a={x:F+$*we,y:O+$*ke}),K<1&&(L.b={x:F+K*we,y:O+K*ke}),L}}}}}}function Dx(h){for(var g=ss,A=Ex(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!Ad(L,h)||!A(L)||b(L.a.x-L.b.x)<Qe&&b(L.a.y-L.b.y)<Qe)&&(L.a=L.b=null,g.splice(S,1))}function Ad(h,g){var A=h.b;if(A)return!0;var S=h.a,L=g[0][0],E=g[1][0],N=g[0][1],F=g[1][1],O=h.l,W=h.r,Z=O.x,$=O.y,K=W.x,we=W.y,ke=(Z+K)/2,re=($+we)/2,ve,xe;if(we===$){if(ke<L||ke>=E)return;if(Z>K){if(!S)S={x:ke,y:N};else if(S.y>=F)return;A={x:ke,y:F}}else{if(!S)S={x:ke,y:F};else if(S.y<N)return;A={x:ke,y:N}}}else if(ve=(Z-K)/(we-$),xe=re-ve*ke,ve<-1||ve>1)if(Z>K){if(!S)S={x:(N-xe)/ve,y:N};else if(S.y>=F)return;A={x:(F-xe)/ve,y:F}}else{if(!S)S={x:(F-xe)/ve,y:F};else if(S.y<N)return;A={x:(N-xe)/ve,y:N}}else if($<we){if(!S)S={x:L,y:ve*L+xe};else if(S.x>=E)return;A={x:E,y:ve*E+xe}}else{if(!S)S={x:E,y:ve*E+xe};else if(S.x<L)return;A={x:L,y:ve*L+xe}}return h.a=S,h.b=A,!0}function oy(h,g){this.l=h,this.r=g,this.a=this.b=null}function pc(h,g,A,S){var L=new oy(h,g);return ss.push(L),A&&Bu(L,h,g,A),S&&Bu(L,g,h,S),Dl[h.i].edges.push(new K0(L,h,g)),Dl[g.i].edges.push(new K0(L,g,h)),L}function qx(h,g,A){var S=new oy(h,null);return S.a=g,S.b=A,ss.push(S),S}function Bu(h,g,A,S){!h.a&&!h.b?(h.a=S,h.l=g,h.r=A):h.l===A?h.b=S:h.a=S}function K0(h,g,A){var S=h.a,L=h.b;this.edge=h,this.site=g,this.angle=A?Math.atan2(A.y-g.y,A.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)}K0.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 mc(){this._=null}function yc(h){h.U=h.C=h.L=h.R=h.P=h.N=null}mc.prototype={insert:function(h,g){var A,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;A=h}else this._?(h=ly(this._),g.P=null,g.N=h,h.P=h.L=g,A=h):(g.P=g.N=null,this._=g,A=null);for(g.L=g.R=null,g.U=A,g.C=!0,h=g;A&&A.C;)S=A.U,A===S.L?(L=S.R,L&&L.C?(A.C=L.C=!1,S.C=!0,h=S):(h===A.R&&(Ou(this,A),h=A,A=h.U),A.C=!1,S.C=!0,Zs(this,S))):(L=S.L,L&&L.C?(A.C=L.C=!1,S.C=!0,h=S):(h===A.L&&(Zs(this,A),h=A,A=h.U),A.C=!1,S.C=!0,Ou(this,S))),A=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,A,S=h.L,L=h.R,E,N;if(S?L?E=ly(L):E=S:E=L,g?g.L===h?g.L=E:g.R=E:this._=E,S&&L?(N=E.C,E.C=h.C,E.L=S,S.U=E,E!==L?(g=E.U,E.U=h.U,h=E.R,g.L=h,E.R=L,L.U=E):(E.U=g,g=E,h=E.R)):(N=h.C,h=E),h&&(h.U=g),!N){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===g.L){if(A=g.R,A.C&&(A.C=!1,g.C=!0,Ou(this,g),A=g.R),A.L&&A.L.C||A.R&&A.R.C){(!A.R||!A.R.C)&&(A.L.C=!1,A.C=!0,Zs(this,A),A=g.R),A.C=g.C,g.C=A.R.C=!1,Ou(this,g),h=this._;break}}else if(A=g.L,A.C&&(A.C=!1,g.C=!0,Zs(this,g),A=g.L),A.L&&A.L.C||A.R&&A.R.C){(!A.L||!A.L.C)&&(A.R.C=!1,A.C=!0,Ou(this,A),A=g.L),A.C=g.C,g.C=A.L.C=!1,Zs(this,g),h=this._;break}A.C=!0,h=g,g=g.U}while(!h.C);h&&(h.C=!1)}}};function Ou(h,g){var A=g,S=g.R,L=A.U;L?L.L===A?L.L=S:L.R=S:h._=S,S.U=L,A.U=S,A.R=S.L,A.R&&(A.R.U=A),S.L=A}function Zs(h,g){var A=g,S=g.L,L=A.U;L?L.L===A?L.L=S:L.R=S:h._=S,S.U=L,A.U=S,A.L=S.R,A.L&&(A.L.U=A),S.R=A}function ly(h){for(;h.L;)h=h.L;return h}function Hu(h,g){var A=h.sort(Rx).pop(),S,L,E;for(ss=[],Dl=new Array(h.length),Oo=new mc,Ws=new mc;;)if(E=dc,A&&(!E||A.y<E.y||A.y===E.y&&A.x<E.x))(A.x!==S||A.y!==L)&&(Dl[A.i]=new _d(A),ny(A),S=A.x,L=A.y),A=h.pop();else if(E)ay(E.arc);else break;g&&(Dx(g),zu(g));var N={cells:Dl,edges:ss};return Oo=Ws=ss=Dl=null,N}function Rx(h,g){return g.y-h.y||g.x-h.x}e.geom.voronoi=function(h){var g=ls,A=Nu,S=g,L=A,E=Q0;if(h)return N(h);function N(O){var W=new Array(O.length),Z=E[0][0],$=E[0][1],K=E[1][0],we=E[1][1];return Hu(F(O),E).cells.forEach(function(ke,re){var ve=ke.edges,xe=ke.site,Se=W[re]=ve.length?ve.map(function(Ee){var me=Ee.start();return[me.x,me.y]}):xe.x>=Z&&xe.x<=K&&xe.y>=$&&xe.y<=we?[[Z,we],[K,we],[K,$],[Z,$]]:[];Se.point=O[re]}),W}function F(O){return O.map(function(W,Z){return{x:Math.round(S(W,Z)/Qe)*Qe,y:Math.round(L(W,Z)/Qe)*Qe,i:Z}})}return N.links=function(O){return Hu(F(O)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:O[W.l.i],target:O[W.r.i]}})},N.triangles=function(O){var W=[];return Hu(F(O)).cells.forEach(function(Z,$){for(var K=Z.site,we=Z.edges.sort($0),ke=-1,re=we.length,ve,xe,Se=we[re-1].edge,Ee=Se.l===K?Se.r:Se.l;++ke<re;)ve=Se,xe=Ee,Se=we[ke].edge,Ee=Se.l===K?Se.r:Se.l,$<xe.i&&$<Ee.i&&Fx(K,xe,Ee)<0&&W.push([O[$],O[xe.i],O[Ee.i]])}),W},N.x=function(O){return arguments.length?(S=St(g=O),N):g},N.y=function(O){return arguments.length?(L=St(A=O),N):A},N.clipExtent=function(O){return arguments.length?(E=O==null?Q0:O,N):E===Q0?null:E},N.size=function(O){return arguments.length?N.clipExtent(O&&[[0,0],O]):E===Q0?null:E&&E[1]},N};var Q0=[[-1e6,-1e6],[1e6,1e6]];function Fx(h,g,A){return(h.x-A.x)*(g.y-h.y)-(h.x-g.x)*(A.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,g,A,S,L){var E=ls,N=Nu,F;if(F=arguments.length)return E=Px,N=Nx,F===3&&(L=A,S=g,A=g=0),O(h);function O(W){var Z,$=St(E),K=St(N),we,ke,re,ve,xe,Se,Ee,me;if(g!=null)xe=g,Se=A,Ee=S,me=L;else if(Ee=me=-(xe=Se=1/0),we=[],ke=[],ve=W.length,F)for(re=0;re<ve;++re)Z=W[re],Z.x<xe&&(xe=Z.x),Z.y<Se&&(Se=Z.y),Z.x>Ee&&(Ee=Z.x),Z.y>me&&(me=Z.y),we.push(Z.x),ke.push(Z.y);else for(re=0;re<ve;++re){var sr=+$(Z=W[re],re),wr=+K(Z,re);sr<xe&&(xe=sr),wr<Se&&(Se=wr),sr>Ee&&(Ee=sr),wr>me&&(me=wr),we.push(sr),ke.push(wr)}var Fr=Ee-xe,Jr=me-Se;Fr>Jr?me=Se+Fr:Ee=xe+Jr;function ct(gt,Ft,ma,wn,Ta,Br,Ot,Zt){if(!(isNaN(ma)||isNaN(wn)))if(gt.leaf){var va=gt.x,Ja=gt.y;if(va!=null)if(b(va-ma)+b(Ja-wn)<.01)vt(gt,Ft,ma,wn,Ta,Br,Ot,Zt);else{var Dn=gt.point;gt.x=gt.y=gt.point=null,vt(gt,Dn,va,Ja,Ta,Br,Ot,Zt),vt(gt,Ft,ma,wn,Ta,Br,Ot,Zt)}else gt.x=ma,gt.y=wn,gt.point=Ft}else vt(gt,Ft,ma,wn,Ta,Br,Ot,Zt)}function vt(gt,Ft,ma,wn,Ta,Br,Ot,Zt){var va=(Ta+Ot)*.5,Ja=(Br+Zt)*.5,Dn=ma>=va,fi=wn>=Ja,wi=fi<<1|Dn;gt.leaf=!1,gt=gt.nodes[wi]||(gt.nodes[wi]=sy()),Dn?Ta=va:Ot=va,fi?Br=Ja:Zt=Ja,ct(gt,Ft,ma,wn,Ta,Br,Ot,Zt)}var Bt=sy();if(Bt.add=function(gt){ct(Bt,gt,+$(gt,++re),+K(gt,re),xe,Se,Ee,me)},Bt.visit=function(gt){gc(gt,Bt,xe,Se,Ee,me)},Bt.find=function(gt){return uy(Bt,gt[0],gt[1],xe,Se,Ee,me)},re=-1,g==null){for(;++re<ve;)ct(Bt,W[re],we[re],ke[re],xe,Se,Ee,me);--re}else W.forEach(Bt.add);return we=ke=W=Z=null,Bt}return O.x=function(W){return arguments.length?(E=W,O):E},O.y=function(W){return arguments.length?(N=W,O):N},O.extent=function(W){return arguments.length?(W==null?g=A=S=L=null:(g=+W[0][0],A=+W[0][1],S=+W[1][0],L=+W[1][1]),O):g==null?null:[[g,A],[S,L]]},O.size=function(W){return arguments.length?(W==null?g=A=S=L=null:(g=A=0,S=+W[0],L=+W[1]),O):g==null?null:[S-g,L-A]},O};function Px(h){return h.x}function Nx(h){return h.y}function sy(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gc(h,g,A,S,L,E){if(!h(g,A,S,L,E)){var N=(A+L)*.5,F=(S+E)*.5,O=g.nodes;O[0]&&gc(h,O[0],A,S,N,F),O[1]&&gc(h,O[1],N,S,L,F),O[2]&&gc(h,O[2],A,F,N,E),O[3]&&gc(h,O[3],N,F,L,E)}}function uy(h,g,A,S,L,E,N){var F=1/0,O;return(function W(Z,$,K,we,ke){if(!($>E||K>N||we<S||ke<L)){if(re=Z.point){var re,ve=g-Z.x,xe=A-Z.y,Se=ve*ve+xe*xe;if(Se<F){var Ee=Math.sqrt(F=Se);S=g-Ee,L=A-Ee,E=g+Ee,N=A+Ee,O=re}}for(var me=Z.nodes,sr=($+we)*.5,wr=(K+ke)*.5,Fr=g>=sr,Jr=A>=wr,ct=Jr<<1|Fr,vt=ct+4;ct<vt;++ct)if(Z=me[ct&3])switch(ct&3){case 0:W(Z,$,K,sr,wr);break;case 1:W(Z,sr,K,we,wr);break;case 2:W(Z,$,wr,sr,ke);break;case 3:W(Z,sr,wr,we,ke);break}}})(h,S,L,E,N),O}e.interpolateRgb=Js;function Js(h,g){h=e.rgb(h),g=e.rgb(g);var A=h.r,S=h.g,L=h.b,E=g.r-A,N=g.g-S,F=g.b-L;return function(O){return"#"+Bo(Math.round(A+E*O))+Bo(Math.round(S+N*O))+Bo(Math.round(L+F*O))}}e.interpolateObject=fy;function fy(h,g){var A={},S={},L;for(L in h)L in g?A[L]=fs(h[L],g[L]):S[L]=h[L];for(L in g)L in h||(S[L]=g[L]);return function(E){for(L in A)S[L]=A[L](E);return S}}e.interpolateNumber=yo;function yo(h,g){return h=+h,g=+g,function(A){return h*(1-A)+g*A}}e.interpolateString=go;function go(h,g){var A=us.lastIndex=ev.lastIndex=0,S,L,E,N=-1,F=[],O=[];for(h=h+"",g=g+"";(S=us.exec(h))&&(L=ev.exec(g));)(E=L.index)>A&&(E=g.slice(A,E),F[N]?F[N]+=E:F[++N]=E),(S=S[0])===(L=L[0])?F[N]?F[N]+=L:F[++N]=L:(F[++N]=null,O.push({i:N,x:yo(S,L)})),A=ev.lastIndex;return A<g.length&&(E=g.slice(A),F[N]?F[N]+=E:F[++N]=E),F.length<2?O[0]?(g=O[0].x,function(W){return g(W)+""}):function(){return g}:(g=O.length,function(W){for(var Z=0,$;Z<g;++Z)F[($=O[Z]).i]=$.x(W);return F.join("")})}var us=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ev=new RegExp(us.source,"g");e.interpolate=fs;function fs(h,g){for(var A=e.interpolators.length,S;--A>=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?kt.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Js:go:g instanceof Vn?Js:Array.isArray(g)?bc:A==="object"&&isNaN(g)?fy:yo)(h,g)}],e.interpolateArray=bc;function bc(h,g){var A=[],S=[],L=h.length,E=g.length,N=Math.min(h.length,g.length),F;for(F=0;F<N;++F)A.push(fs(h[F],g[F]));for(;F<L;++F)S[F]=h[F];for(;F<E;++F)S[F]=g[F];return function(O){for(F=0;F<N;++F)S[F]=A[F](O);return S}}var Td=function(){return U},cy=e.map({linear:Td,poly:py,quad:function(){return hy},cubic:function(){return dy},sin:function(){return my},exp:function(){return Ix},circle:function(){return Bx},elastic:Ox,back:Hx,bounce:function(){return Md}}),vy=e.map({in:U,out:js,"in-out":Qn,"out-in":function(h){return Qn(js(h))}});e.ease=function(h){var g=h.indexOf("-"),A=g>=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=cy.get(A)||Td,S=vy.get(S)||U,zx(S(A.apply(null,r.call(arguments,1))))};function zx(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function js(h){return function(g){return 1-h(1-g)}}function Qn(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function hy(h){return h*h}function dy(h){return h*h*h}function $s(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function py(h){return function(g){return Math.pow(g,h)}}function my(h){return 1-Math.cos(h*se)}function Ix(h){return Math.pow(2,10*(h-1))}function Bx(h){return 1-Math.sqrt(1-h*h)}function Ox(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/lt*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*lt/g)}}function Hx(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Md(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=yy;function yy(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,E=g.h-A,N=g.c-S,F=g.l-L;return isNaN(N)&&(N=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,A=isNaN(A)?g.h:A):E>180?E-=360:E<-180&&(E+=360),function(O){return Ir(A+E*O,S+N*O,L+F*O)+""}}e.interpolateHsl=Ux;function Ux(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,E=g.h-A,N=g.s-S,F=g.l-L;return isNaN(N)&&(N=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,A=isNaN(A)?g.h:A):E>180?E-=360:E<-180&&(E+=360),function(O){return Za(A+E*O,S+N*O,L+F*O)+""}}e.interpolateLab=gy;function gy(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,E=g.l-A,N=g.a-S,F=g.b-L;return function(O){return Io(A+E*O,S+N*O,L+F*O)+""}}e.interpolateRound=kd;function kd(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var S=g.transform.baseVal.consolidate()}return new by(S?S.matrix:rv)})(h)};function by(h){var g=[h.a,h.b],A=[h.c,h.d],S=xy(g),L=xc(g,A),E=xy(cs(A,g,-L))||0;g[0]*A[1]<A[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,L*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-A[0],A[1]))*tr,this.translate=[h.e,h.f],this.scale=[S,E],this.skew=E?Math.atan2(L,E)*tr:0}by.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function xc(h,g){return h[0]*g[0]+h[1]*g[1]}function xy(h){var g=Math.sqrt(xc(h,h));return g&&(h[0]/=g,h[1]/=g),g}function cs(h,g,A){return h[0]+=A*g[0],h[1]+=A*g[1],h}var rv={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=Sd;function Ks(h){return h.length?h.pop()+",":""}function _y(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push("translate(",null,",",null,")");S.push({i:L-4,x:yo(h[0],g[0])},{i:L-2,x:yo(h[1],g[1])})}else(g[0]||g[1])&&A.push("translate("+g+")")}function wy(h,g,A,S){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(Ks(A)+"rotate(",null,")")-2,x:yo(h,g)})):g&&A.push(Ks(A)+"rotate("+g+")")}function Ay(h,g,A,S){h!==g?S.push({i:A.push(Ks(A)+"skewX(",null,")")-2,x:yo(h,g)}):g&&A.push(Ks(A)+"skewX("+g+")")}function Ty(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(Ks(A)+"scale(",null,",",null,")");S.push({i:L-4,x:yo(h[0],g[0])},{i:L-2,x:yo(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Ks(A)+"scale("+g+")")}function Sd(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),_y(h.translate,g.translate,A,S),wy(h.rotate,g.rotate,A,S),Ay(h.skew,g.skew,A,S),Ty(h.scale,g.scale,A,S),h=g=null,function(L){for(var E=-1,N=S.length,F;++E<N;)A[(F=S[E]).i]=F.x(L);return A.join("")}}function My(h,g){return g=(g-=h=+h)||1/g,function(A){return(A-h)/g}}function ky(h,g){return g=(g-=h=+h)||1/g,function(A){return Math.max(0,Math.min(1,(A-h)/g))}}e.layout={},e.layout.bundle=function(){return function(h){for(var g=[],A=-1,S=h.length;++A<S;)g.push(Sy(h[A]));return g}};function Sy(h){for(var g=h.source,A=h.target,S=Cy(g,A),L=[g];g!==S;)g=g.parent,L.push(g);for(var E=L.length;A!==S;)L.splice(E,0,A),A=A.parent;return L}function bo(h){for(var g=[],A=h.parent;A!=null;)g.push(h),h=A,A=A.parent;return g.push(h),g}function Cy(h,g){if(h===g)return h;for(var A=bo(h),S=bo(g),L=A.pop(),E=S.pop(),N=null;L===E;)N=L,L=A.pop(),E=S.pop();return N}e.layout.chord=function(){var h={},g,A,S,L,E=0,N,F,O;function W(){var $={},K=[],we=e.range(L),ke=[],re,ve,xe,Se,Ee;for(g=[],A=[],re=0,Se=-1;++Se<L;){for(ve=0,Ee=-1;++Ee<L;)ve+=S[Se][Ee];K.push(ve),ke.push(e.range(L)),re+=ve}for(N&&we.sort(function(Bt,gt){return N(K[Bt],K[gt])}),F&&ke.forEach(function(Bt,gt){Bt.sort(function(Ft,ma){return F(S[gt][Ft],S[gt][ma])})}),re=(lt-E*L)/re,ve=0,Se=-1;++Se<L;){for(xe=ve,Ee=-1;++Ee<L;){var me=we[Se],sr=ke[me][Ee],wr=S[me][sr],Fr=ve,Jr=ve+=wr*re;$[me+"-"+sr]={index:me,subindex:sr,startAngle:Fr,endAngle:Jr,value:wr}}A[me]={index:me,startAngle:xe,endAngle:ve,value:K[me]},ve+=E}for(Se=-1;++Se<L;)for(Ee=Se-1;++Ee<L;){var ct=$[Se+"-"+Ee],vt=$[Ee+"-"+Se];(ct.value||vt.value)&&g.push(ct.value<vt.value?{source:vt,target:ct}:{source:ct,target:vt})}O&&Z()}function Z(){g.sort(function($,K){return O(($.source.value+$.target.value)/2,(K.source.value+K.target.value)/2)})}return h.matrix=function($){return arguments.length?(L=(S=$)&&S.length,g=A=null,h):S},h.padding=function($){return arguments.length?(E=$,g=A=null,h):E},h.sortGroups=function($){return arguments.length?(N=$,g=A=null,h):N},h.sortSubgroups=function($){return arguments.length?(F=$,g=null,h):F},h.sortChords=function($){return arguments.length?(O=$,g&&Z(),h):O},h.chords=function(){return g||W(),g},h.groups=function(){return A||W(),A},h},e.layout.force=function(){var h={},g=e.dispatch("start","tick","end"),A,S=[1,1],L,E,N=.9,F=Ly,O=Ey,W=-30,Z=Dy,$=.1,K=.64,we=[],ke=[],re,ve,xe;function Se(me){return function(sr,wr,Fr,Jr){if(sr.point!==me){var ct=sr.cx-me.x,vt=sr.cy-me.y,Bt=Jr-wr,gt=ct*ct+vt*vt;if(Bt*Bt/K<gt){if(gt<Z){var Ft=sr.charge/gt;me.px-=ct*Ft,me.py-=vt*Ft}return!0}if(sr.point&&gt&&gt<Z){var Ft=sr.pointCharge/gt;me.px-=ct*Ft,me.py-=vt*Ft}}return!sr.charge}}h.tick=function(){if((E*=.99)<.005)return A=null,g.end({type:"end",alpha:E=0}),!0;var me=we.length,sr=ke.length,wr,Fr,Jr,ct,vt,Bt,gt,Ft,ma;for(Fr=0;Fr<sr;++Fr)Jr=ke[Fr],ct=Jr.source,vt=Jr.target,Ft=vt.x-ct.x,ma=vt.y-ct.y,(Bt=Ft*Ft+ma*ma)&&(Bt=E*ve[Fr]*((Bt=Math.sqrt(Bt))-re[Fr])/Bt,Ft*=Bt,ma*=Bt,vt.x-=Ft*(gt=ct.weight+vt.weight?ct.weight/(ct.weight+vt.weight):.5),vt.y-=ma*gt,ct.x+=Ft*(gt=1-gt),ct.y+=ma*gt);if((gt=E*$)&&(Ft=S[0]/2,ma=S[1]/2,Fr=-1,gt))for(;++Fr<me;)Jr=we[Fr],Jr.x+=(Ft-Jr.x)*gt,Jr.y+=(ma-Jr.y)*gt;if(W)for(Ld(wr=e.geom.quadtree(we),E,xe),Fr=-1;++Fr<me;)(Jr=we[Fr]).fixed||wr.visit(Se(Jr));for(Fr=-1;++Fr<me;)Jr=we[Fr],Jr.fixed?(Jr.x=Jr.px,Jr.y=Jr.py):(Jr.x-=(Jr.px-(Jr.px=Jr.x))*N,Jr.y-=(Jr.py-(Jr.py=Jr.y))*N);g.tick({type:"tick",alpha:E})},h.nodes=function(me){return arguments.length?(we=me,h):we},h.links=function(me){return arguments.length?(ke=me,h):ke},h.size=function(me){return arguments.length?(S=me,h):S},h.linkDistance=function(me){return arguments.length?(F=typeof me=="function"?me:+me,h):F},h.distance=h.linkDistance,h.linkStrength=function(me){return arguments.length?(O=typeof me=="function"?me:+me,h):O},h.friction=function(me){return arguments.length?(N=+me,h):N},h.charge=function(me){return arguments.length?(W=typeof me=="function"?me:+me,h):W},h.chargeDistance=function(me){return arguments.length?(Z=me*me,h):Math.sqrt(Z)},h.gravity=function(me){return arguments.length?($=+me,h):$},h.theta=function(me){return arguments.length?(K=me*me,h):Math.sqrt(K)},h.alpha=function(me){return arguments.length?(me=+me,E?me>0?E=me:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:E=0})):me>0&&(g.start({type:"start",alpha:E=me}),A=Vs(h.tick)),h):E},h.start=function(){var me,sr=we.length,wr=ke.length,Fr=S[0],Jr=S[1],ct,vt;for(me=0;me<sr;++me)(vt=we[me]).index=me,vt.weight=0;for(me=0;me<wr;++me)vt=ke[me],typeof vt.source=="number"&&(vt.source=we[vt.source]),typeof vt.target=="number"&&(vt.target=we[vt.target]),++vt.source.weight,++vt.target.weight;for(me=0;me<sr;++me)vt=we[me],isNaN(vt.x)&&(vt.x=Bt("x",Fr)),isNaN(vt.y)&&(vt.y=Bt("y",Jr)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(re=[],typeof F=="function")for(me=0;me<wr;++me)re[me]=+F.call(this,ke[me],me);else for(me=0;me<wr;++me)re[me]=F;if(ve=[],typeof O=="function")for(me=0;me<wr;++me)ve[me]=+O.call(this,ke[me],me);else for(me=0;me<wr;++me)ve[me]=O;if(xe=[],typeof W=="function")for(me=0;me<sr;++me)xe[me]=+W.call(this,we[me],me);else for(me=0;me<sr;++me)xe[me]=W;function Bt(gt,Ft){if(!ct){for(ct=new Array(sr),Ta=0;Ta<sr;++Ta)ct[Ta]=[];for(Ta=0;Ta<wr;++Ta){var ma=ke[Ta];ct[ma.source.index].push(ma.target),ct[ma.target.index].push(ma.source)}}for(var wn=ct[me],Ta=-1,Br=wn.length,Ot;++Ta<Br;)if(!isNaN(Ot=wn[Ta][gt]))return Ot;return Math.random()*Ft}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(U).on("dragstart.force",Gx).on("drag.force",Ee).on("dragend.force",ql)),!arguments.length)return L;this.on("mouseover.force",Cd).on("mouseout.force",Uu).call(L)};function Ee(me){me.px=e.event.x,me.py=e.event.y,h.resume()}return e.rebind(h,g,"on")};function Gx(h){h.fixed|=2}function ql(h){h.fixed&=-7}function Cd(h){h.fixed|=4,h.px=h.x,h.py=h.y}function Uu(h){h.fixed&=-5}function Ld(h,g,A){var S=0,L=0;if(h.charge=0,!h.leaf)for(var E=h.nodes,N=E.length,F=-1,O;++F<N;)O=E[F],O!=null&&(Ld(O,g,A),h.charge+=O.charge,S+=O.charge*O.cx,L+=O.charge*O.cy);if(h.point){h.leaf||(h.point.x+=Math.random()-.5,h.point.y+=Math.random()-.5);var W=g*A[h.point.index];h.charge+=h.pointCharge=W,S+=W*h.point.x,L+=W*h.point.y}h.cx=S/h.charge,h.cy=L/h.charge}var Ly=20,Ey=1,Dy=1/0;e.layout.hierarchy=function(){var h=Xx,g=Yx,A=Vx;function S(L){var E=[L],N=[],F;for(L.depth=0;(F=E.pop())!=null;)if(N.push(F),(W=g.call(S,F,F.depth))&&(O=W.length)){for(var O,W,Z;--O>=0;)E.push(Z=W[O]),Z.parent=F,Z.depth=F.depth+1;A&&(F.value=0),F.children=W}else A&&(F.value=+A.call(S,F,F.depth)||0),delete F.children;return il(L,function($){var K,we;h&&(K=$.children)&&K.sort(h),A&&(we=$.parent)&&(we.value+=$.value)}),N}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?(A=L,S):A},S.revalue=function(L){return A&&(_c(L,function(E){E.children&&(E.value=0)}),il(L,function(E){var N;E.children||(E.value=+A.call(S,E,E.depth)||0),(N=E.parent)&&(N.value+=E.value)})),L},S};function Gu(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Wx,h}function _c(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function il(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(N=h.children)&&(E=N.length))for(var L=-1,E,N;++L<E;)A.push(N[L]);for(;(h=S.pop())!=null;)g(h)}function Yx(h){return h.children}function Vx(h){return h.value}function Xx(h,g){return g.value-h.value}function Wx(h){return e.merge(h.map(function(g){return(g.children||[]).map(function(A){return{source:g,target:A}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),g=[1,1];function A(E,N,F,O){var W=E.children;if(E.x=N,E.y=E.depth*O,E.dx=F,E.dy=O,W&&($=W.length)){var Z=-1,$,K,we;for(F=E.value?F/E.value:0;++Z<$;)A(K=W[Z],N,we=K.value*F,O),N+=we}}function S(E){var N=E.children,F=0;if(N&&(W=N.length))for(var O=-1,W;++O<W;)F=Math.max(F,S(N[O]));return 1+F}function L(E,N){var F=h.call(this,E,N);return A(F[0],0,g[0],g[1]/S(F[0])),F}return L.size=function(E){return arguments.length?(g=E,L):g},Gu(L,h)},e.layout.pie=function(){var h=Number,g=tv,A=0,S=lt,L=0;function E(N){var F=N.length,O=N.map(function(Se,Ee){return+h.call(E,Se,Ee)}),W=+(typeof A=="function"?A.apply(this,arguments):A),Z=(typeof S=="function"?S.apply(this,arguments):S)-W,$=Math.min(Math.abs(Z)/F,+(typeof L=="function"?L.apply(this,arguments):L)),K=$*(Z<0?-1:1),we=e.sum(O),ke=we?(Z-F*K)/we:0,re=e.range(F),ve=[],xe;return g!=null&&re.sort(g===tv?function(Se,Ee){return O[Ee]-O[Se]}:function(Se,Ee){return g(N[Se],N[Ee])}),re.forEach(function(Se){ve[Se]={data:N[Se],value:xe=O[Se],startAngle:W,endAngle:W+=xe*ke+K,padAngle:$}}),ve}return E.value=function(N){return arguments.length?(h=N,E):h},E.sort=function(N){return arguments.length?(g=N,E):g},E.startAngle=function(N){return arguments.length?(A=N,E):A},E.endAngle=function(N){return arguments.length?(S=N,E):S},E.padAngle=function(N){return arguments.length?(L=N,E):L},E};var tv={};e.layout.stack=function(){var h=U,g=wc,A=Ed,S=Jx,L=av,E=Zx;function N(F,O){if(!(ke=F.length))return F;var W=F.map(function(Se,Ee){return h.call(N,Se,Ee)}),Z=W.map(function(Se){return Se.map(function(Ee,me){return[L.call(N,Ee,me),E.call(N,Ee,me)]})}),$=g.call(N,Z,O);W=e.permute(W,$),Z=e.permute(Z,$);var K=A.call(N,Z,O),we=W[0].length,ke,re,ve,xe;for(ve=0;ve<we;++ve)for(S.call(N,W[0][ve],xe=K[ve],Z[0][ve][1]),re=1;re<ke;++re)S.call(N,W[re][ve],xe+=Z[re-1][ve][1],Z[re][ve][1]);return F}return N.values=function(F){return arguments.length?(h=F,N):h},N.order=function(F){return arguments.length?(g=typeof F=="function"?F:qy.get(F)||wc,N):g},N.offset=function(F){return arguments.length?(A=typeof F=="function"?F:nv.get(F)||Ed,N):A},N.x=function(F){return arguments.length?(L=F,N):L},N.y=function(F){return arguments.length?(E=F,N):E},N.out=function(F){return arguments.length?(S=F,N):S},N};function av(h){return h.x}function Zx(h){return h.y}function Jx(h,g,A){h.y0=g,h.y=A}var qy=e.map({"inside-out":function(h){var g=h.length,A,S,L=h.map(Ry),E=h.map(jx),N=e.range(g).sort(function($,K){return L[$]-L[K]}),F=0,O=0,W=[],Z=[];for(A=0;A<g;++A)S=N[A],F<O?(F+=E[S],W.push(S)):(O+=E[S],Z.push(S));return Z.reverse().concat(W)},reverse:function(h){return e.range(h.length).reverse()},default:wc}),nv=e.map({silhouette:function(h){var g=h.length,A=h[0].length,S=[],L=0,E,N,F,O=[];for(N=0;N<A;++N){for(E=0,F=0;E<g;E++)F+=h[E][N][1];F>L&&(L=F),S.push(F)}for(N=0;N<A;++N)O[N]=(L-S[N])/2;return O},wiggle:function(h){var g=h.length,A=h[0],S=A.length,L,E,N,F,O,W,Z,$,K,we=[];for(we[0]=$=K=0,E=1;E<S;++E){for(L=0,F=0;L<g;++L)F+=h[L][E][1];for(L=0,O=0,Z=A[E][0]-A[E-1][0];L<g;++L){for(N=0,W=(h[L][E][1]-h[L][E-1][1])/(2*Z);N<L;++N)W+=(h[N][E][1]-h[N][E-1][1])/Z;O+=W*h[L][E][1]}we[E]=$-=F?O/F*Z:0,$<K&&(K=$)}for(E=0;E<S;++E)we[E]-=K;return we},expand:function(h){var g=h.length,A=h[0].length,S=1/g,L,E,N,F=[];for(E=0;E<A;++E){for(L=0,N=0;L<g;L++)N+=h[L][E][1];if(N)for(L=0;L<g;L++)h[L][E][1]/=N;else for(L=0;L<g;L++)h[L][E][1]=S}for(E=0;E<A;++E)F[E]=0;return F},zero:Ed});function wc(h){return e.range(h.length)}function Ed(h){for(var g=-1,A=h[0].length,S=[];++g<A;)S[g]=0;return S}function Ry(h){for(var g=1,A=0,S=h[0][1],L,E=h.length;g<E;++g)(L=h[g][1])>S&&(A=g,S=L);return A}function jx(h){return h.reduce($x,0)}function $x(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Qx,S=Kx;function L(E,K){for(var F=[],O=E.map(g,this),W=A.call(this,O,K),Z=S.call(this,W,O,K),$,K=-1,we=O.length,ke=Z.length-1,re=h?1:1/we,ve;++K<ke;)$=F[K]=[],$.dx=Z[K+1]-($.x=Z[K]),$.y=0;if(ke>0)for(K=-1;++K<we;)ve=O[K],ve>=W[0]&&ve<=W[1]&&($=F[e.bisect(Z,ve,1,ke)-1],$.y+=re,$.push(E[K]));return F}return L.value=function(E){return arguments.length?(g=E,L):g},L.range=function(E){return arguments.length?(A=St(E),L):A},L.bins=function(E){return arguments.length?(S=typeof E=="number"?function(N){return Fy(N,E)}:St(E),L):S},L.frequency=function(E){return arguments.length?(h=!!E,L):h},L};function Kx(h,g){return Fy(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Fy(h,g){for(var A=-1,S=+h[0],L=(h[1]-S)/g,E=[];++A<=g;)E[A]=L*A+S;return E}function Qx(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Dd),g=0,A=[1,1],S;function L(E,N){var F=h.call(this,E,N),O=F[0],W=A[0],Z=A[1],$=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(O.x=O.y=0,il(O,function(we){we.r=+$(we.value)}),il(O,Ny),g){var K=g*(S?1:Math.max(2*O.r/W,2*O.r/Z))/2;il(O,function(we){we.r+=K}),il(O,Ny),il(O,function(we){we.r-=K})}return zy(O,W/2,Z/2,S?1:1/Math.max(2*O.r/W,2*O.r/Z)),F}return L.size=function(E){return arguments.length?(A=E,L):A},L.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,L):S},L.padding=function(E){return arguments.length?(g=+E,L):g},Gu(L,h)};function Dd(h,g){return h.value-g.value}function qd(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function Rd(h,g){h._pack_next=g,g._pack_prev=h}function Py(h,g){var A=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function Ny(h){if(!(g=h.children)||!(K=g.length))return;var g,A=1/0,S=-1/0,L=1/0,E=-1/0,N,F,O,W,Z,$,K;function we(me){A=Math.min(me.x-me.r,A),S=Math.max(me.x+me.r,S),L=Math.min(me.y-me.r,L),E=Math.max(me.y+me.r,E)}if(g.forEach(e_),N=g[0],N.x=-N.r,N.y=0,we(N),K>1&&(F=g[1],F.x=F.r,F.y=0,we(F),K>2))for(O=g[2],t_(N,F,O),we(O),qd(N,O),N._pack_prev=O,qd(O,F),F=N._pack_next,W=3;W<K;W++){t_(N,F,O=g[W]);var ke=0,re=1,ve=1;for(Z=F._pack_next;Z!==F;Z=Z._pack_next,re++)if(Py(Z,O)){ke=1;break}if(ke==1)for($=N._pack_prev;$!==Z._pack_prev&&!Py($,O);$=$._pack_prev,ve++);ke?(re<ve||re==ve&&F.r<N.r?Rd(N,F=Z):Rd(N=$,F),W--):(qd(N,O),F=O,we(O))}var xe=(A+S)/2,Se=(L+E)/2,Ee=0;for(W=0;W<K;W++)O=g[W],O.x-=xe,O.y-=Se,Ee=Math.max(Ee,O.r+Math.sqrt(O.x*O.x+O.y*O.y));h.r=Ee,g.forEach(r_)}function e_(h){h._pack_next=h._pack_prev=h}function r_(h){delete h._pack_next,delete h._pack_prev}function zy(h,g,A,S){var L=h.children;if(h.x=g+=S*h.x,h.y=A+=S*h.y,h.r*=S,L)for(var E=-1,N=L.length;++E<N;)zy(L[E],g,A,S)}function t_(h,g,A){var S=h.r+A.r,L=g.x-h.x,E=g.y-h.y;if(S&&(L||E)){var N=g.r+A.r,F=L*L+E*E;N*=N,S*=S;var O=.5+(S-N)/(2*F),W=Math.sqrt(Math.max(0,2*N*(S+F)-(S-=F)*S-N*N))/(2*F);A.x=h.x+O*L+W*E,A.y=h.y+O*E-W*L}else A.x=h.x+S,A.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Iy,A=[1,1],S=null;function L(Z,$){var K=h.call(this,Z,$),we=K[0],ke=E(we);if(il(ke,N),ke.parent.m=-ke.z,_c(ke,F),S)_c(we,W);else{var re=we,ve=we,xe=we;_c(we,function(sr){sr.x<re.x&&(re=sr),sr.x>ve.x&&(ve=sr),sr.depth>xe.depth&&(xe=sr)});var Se=g(re,ve)/2-re.x,Ee=A[0]/(ve.x+g(ve,re)/2+Se),me=A[1]/(xe.depth||1);_c(we,function(sr){sr.x=(sr.x+Se)*Ee,sr.y=sr.depth*me})}return K}function E(Z){for(var $={A:null,children:[Z]},K=[$],we;(we=K.pop())!=null;)for(var ke=we.children,re,ve=0,xe=ke.length;ve<xe;++ve)K.push((ke[ve]=re={_:ke[ve],parent:we,children:(re=ke[ve].children)&&re.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:ve}).a=re);return $.children[0]}function N(Z){var $=Z.children,K=Z.parent.children,we=Z.i?K[Z.i-1]:null;if($.length){Fd(Z);var ke=($[0].z+$[$.length-1].z)/2;we?(Z.z=we.z+g(Z._,we._),Z.m=Z.z-ke):Z.z=ke}else we&&(Z.z=we.z+g(Z._,we._));Z.parent.A=O(Z,we,Z.parent.A||K[0])}function F(Z){Z._.x=Z.z+Z.parent.m,Z.m+=Z.parent.m}function O(Z,$,K){if($){for(var we=Z,ke=Z,re=$,ve=we.parent.children[0],xe=we.m,Se=ke.m,Ee=re.m,me=ve.m,sr;re=Oy(re),we=By(we),re&&we;)ve=By(ve),ke=Oy(ke),ke.a=Z,sr=re.z+Ee-we.z-xe+g(re._,we._),sr>0&&(a_(Hy(re,Z,K),Z,sr),xe+=sr,Se+=sr),Ee+=re.m,xe+=we.m,me+=ve.m,Se+=ke.m;re&&!Oy(ke)&&(ke.t=re,ke.m+=Ee-Se),we&&!By(ve)&&(ve.t=we,ve.m+=xe-me,K=Z)}return K}function W(Z){Z.x*=A[0],Z.y=Z.depth*A[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(S=(A=Z)==null?W:null,L):S?null:A},L.nodeSize=function(Z){return arguments.length?(S=(A=Z)==null?null:W,L):S?A:null},Gu(L,h)};function Iy(h,g){return h.parent==g.parent?1:2}function By(h){var g=h.children;return g.length?g[0]:h.t}function Oy(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function a_(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function Fd(h){for(var g=0,A=0,S=h.children,L=S.length,E;--L>=0;)E=S[L],E.z+=g,E.m+=g,g+=E.s+(A+=E.c)}function Hy(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Iy,A=[1,1],S=!1;function L(E,N){var F=h.call(this,E,N),O=F[0],W,Z=0;il(O,function(re){var ve=re.children;ve&&ve.length?(re.x=Uy(ve),re.y=ol(ve)):(re.x=W?Z+=g(re,W):0,re.y=0,W=re)});var $=Gy(O),K=Yy(O),we=$.x-g($,K)/2,ke=K.x+g(K,$)/2;return il(O,S?function(re){re.x=(re.x-O.x)*A[0],re.y=(O.y-re.y)*A[1]}:function(re){re.x=(re.x-we)/(ke-we)*A[0],re.y=(1-(O.y?re.y/O.y:1))*A[1]}),F}return L.separation=function(E){return arguments.length?(g=E,L):g},L.size=function(E){return arguments.length?(S=(A=E)==null,L):S?null:A},L.nodeSize=function(E){return arguments.length?(S=(A=E)!=null,L):S?A:null},Gu(L,h)};function ol(h){return 1+e.max(h,function(g){return g.y})}function Uy(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function Gy(h){var g=h.children;return g&&g.length?Gy(g[0]):h}function Yy(h){var g=h.children,A;return g&&(A=g.length)?Yy(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,L=Pd,E=!1,N,F="squarify",O=.5*(1+Math.sqrt(5));function W(re,ve){for(var xe=-1,Se=re.length,Ee,me;++xe<Se;)me=(Ee=re[xe]).value*(ve<0?0:ve),Ee.area=isNaN(me)||me<=0?0:me}function Z(re){var ve=re.children;if(ve&&ve.length){var xe=L(re),Se=[],Ee=ve.slice(),me,sr=1/0,wr,Fr=F==="slice"?xe.dx:F==="dice"?xe.dy:F==="slice-dice"?re.depth&1?xe.dy:xe.dx:Math.min(xe.dx,xe.dy),Jr;for(W(Ee,xe.dx*xe.dy/re.value),Se.area=0;(Jr=Ee.length)>0;)Se.push(me=Ee[Jr-1]),Se.area+=me.area,F!=="squarify"||(wr=K(Se,Fr))<=sr?(Ee.pop(),sr=wr):(Se.area-=Se.pop().area,we(Se,Fr,xe,!1),Fr=Math.min(xe.dx,xe.dy),Se.length=Se.area=0,sr=1/0);Se.length&&(we(Se,Fr,xe,!0),Se.length=Se.area=0),ve.forEach(Z)}}function $(re){var ve=re.children;if(ve&&ve.length){var xe=L(re),Se=ve.slice(),Ee,me=[];for(W(Se,xe.dx*xe.dy/re.value),me.area=0;Ee=Se.pop();)me.push(Ee),me.area+=Ee.area,Ee.z!=null&&(we(me,Ee.z?xe.dx:xe.dy,xe,!Se.length),me.length=me.area=0);ve.forEach($)}}function K(re,ve){for(var xe=re.area,Se,Ee=0,me=1/0,sr=-1,wr=re.length;++sr<wr;)(Se=re[sr].area)&&(Se<me&&(me=Se),Se>Ee&&(Ee=Se));return xe*=xe,ve*=ve,xe?Math.max(ve*Ee*O/xe,xe/(ve*me*O)):1/0}function we(re,ve,xe,Se){var Ee=-1,me=re.length,sr=xe.x,wr=xe.y,Fr=ve?g(re.area/ve):0,Jr;if(ve==xe.dx){for((Se||Fr>xe.dy)&&(Fr=xe.dy);++Ee<me;)Jr=re[Ee],Jr.x=sr,Jr.y=wr,Jr.dy=Fr,sr+=Jr.dx=Math.min(xe.x+xe.dx-sr,Fr?g(Jr.area/Fr):0);Jr.z=!0,Jr.dx+=xe.x+xe.dx-sr,xe.y+=Fr,xe.dy-=Fr}else{for((Se||Fr>xe.dx)&&(Fr=xe.dx);++Ee<me;)Jr=re[Ee],Jr.x=sr,Jr.y=wr,Jr.dx=Fr,wr+=Jr.dy=Math.min(xe.y+xe.dy-wr,Fr?g(Jr.area/Fr):0);Jr.z=!1,Jr.dy+=xe.y+xe.dy-wr,xe.x+=Fr,xe.dx-=Fr}}function ke(re){var ve=N||h(re),xe=ve[0];return xe.x=xe.y=0,xe.value?(xe.dx=A[0],xe.dy=A[1]):xe.dx=xe.dy=0,N&&h.revalue(xe),W([xe],xe.dx*xe.dy/xe.value),(N?$:Z)(xe),E&&(N=ve),ve}return ke.size=function(re){return arguments.length?(A=re,ke):A},ke.padding=function(re){if(!arguments.length)return S;function ve(Ee){var me=re.call(ke,Ee,Ee.depth);return me==null?Pd(Ee):Vy(Ee,typeof me=="number"?[me,me,me,me]:me)}function xe(Ee){return Vy(Ee,re)}var Se;return L=(S=re)==null?Pd:(Se=typeof re)=="function"?ve:(Se==="number"&&(re=[re,re,re,re]),xe),ke},ke.round=function(re){return arguments.length?(g=re?Math.round:Number,ke):g!=Number},ke.sticky=function(re){return arguments.length?(E=re,N=null,ke):E},ke.ratio=function(re){return arguments.length?(O=re,ke):O},ke.mode=function(re){return arguments.length?(F=re+"",ke):F},Gu(ke,h)};function Pd(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function Vy(h,g){var A=h.x+g[3],S=h.y+g[0],L=h.dx-g[1]-g[3],E=h.dy-g[0]-g[2];return L<0&&(A+=L/2,L=0),E<0&&(S+=E/2,E=0),{x:A,y:S,dx:L,dy:E}}e.random={normal:function(h,g){var A=arguments.length;return A<2&&(g=1),A<1&&(h=0),function(){var S,L,E;do S=Math.random()*2-1,L=Math.random()*2-1,E=S*S+L*L;while(!E||E>1);return h+g*S*Math.sqrt(-2*Math.log(E)/E)}},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,A=0;A<h;A++)g+=Math.random();return g}}},e.scale={};function iv(h){var g=h[0],A=h[h.length-1];return g<A?[g,A]:[A,g]}function ov(h){return h.rangeExtent?h.rangeExtent():iv(h.range())}function n_(h,g,A,S){var L=A(h[0],h[1]),E=S(g[0],g[1]);return function(N){return E(L(N))}}function Yu(h,g){var A=0,S=h.length-1,L=h[A],E=h[S],N;return E<L&&(N=A,A=S,S=N,N=L,L=E,E=N),h[A]=g.floor(L),h[S]=g.ceil(E),h}function ei(h){return h?{floor:function(g){return Math.floor(g/h)*h},ceil:function(g){return Math.ceil(g/h)*h}}:Vu}var Vu={floor:U,ceil:U};function Xu(h,g,A,S){var L=[],E=[],N=0,F=Math.min(h.length,g.length)-1;for(h[F]<h[0]&&(h=h.slice().reverse(),g=g.slice().reverse());++N<=F;)L.push(A(h[N-1],h[N])),E.push(S(g[N-1],g[N]));return function(O){var W=e.bisect(h,O,1,F)-1;return E[W](L[W](O))}}e.scale.linear=function(){return Xy([0,1],[0,1],fs,!1)};function Xy(h,g,A,S){var L,E;function N(){var O=Math.min(h.length,g.length)>2?Xu:n_,W=S?ky:My;return L=O(h,g,W,A),E=O(g,h,W,fs),F}function F(O){return L(O)}return F.invert=function(O){return E(O)},F.domain=function(O){return arguments.length?(h=O.map(Number),N()):h},F.range=function(O){return arguments.length?(g=O,N()):g},F.rangeRound=function(O){return F.range(O).interpolate(kd)},F.clamp=function(O){return arguments.length?(S=O,N()):S},F.interpolate=function(O){return arguments.length?(A=O,N()):A},F.ticks=function(O){return Ac(h,O)},F.tickFormat=function(O,W){return d3_scale_linearTickFormat(h,O,W)},F.nice=function(O){return Nd(h,O),N()},F.copy=function(){return Xy(h,g,A,S)},N()}function Qs(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function Nd(h,g){return Yu(h,ei(vs(h,g)[2])),Yu(h,ei(vs(h,g)[2])),h}function vs(h,g){g==null&&(g=10);var A=iv(h),S=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*L;return E<=.15?L*=10:E<=.35?L*=5:E<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function Ac(h,g){return e.range.apply(e,vs(h,g))}var zd={s:1,g:1,p:1,r:1,e:1};function lv(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function Wy(h,g){var A=lv(g[2]);return h in zd?Math.abs(A-lv(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return sv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function sv(h,g,A,S){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function E(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function N(F){return h(L(F))}return N.invert=function(F){return E(h.invert(F))},N.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((S=F.map(Number)).map(L)),N):S},N.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),N):g},N.nice=function(){var F=Yu(S.map(L),A?Math:uv);return h.domain(F),S=F.map(E),N},N.ticks=function(){var F=iv(S),O=[],W=F[0],Z=F[1],$=Math.floor(L(W)),K=Math.ceil(L(Z)),we=g%1?2:g;if(isFinite(K-$)){if(A){for(;$<K;$++)for(var ke=1;ke<we;ke++)O.push(E($)*ke);O.push(E($))}else for(O.push(E($));$++<K;)for(var ke=we-1;ke>0;ke--)O.push(E($)*ke);for($=0;O[$]<W;$++);for(K=O.length;O[K-1]>Z;K--);O=O.slice($,K)}return O},N.copy=function(){return sv(h.copy(),g,A,S)},Qs(N,h)}var uv={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return Id(e.scale.linear(),1,[0,1])};function Id(h,g,A){var S=Tc(g),L=Tc(1/g);function E(N){return h(S(N))}return E.invert=function(N){return L(h.invert(N))},E.domain=function(N){return arguments.length?(h.domain((A=N.map(Number)).map(S)),E):A},E.ticks=function(N){return Ac(A,N)},E.tickFormat=function(N,F){return d3_scale_linearTickFormat(A,N,F)},E.nice=function(N){return E.domain(Nd(A,N))},E.exponent=function(N){return arguments.length?(S=Tc(g=N),L=Tc(1/g),h.domain(A.map(S)),E):g},E.copy=function(){return Id(h.copy(),g,A)},Qs(E,h)}function Tc(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 Bd([],{t:"range",a:[[]]})};function Bd(h,g){var A,S,L;function E(F){return S[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%S.length]}function N(F,O){return e.range(h.length).map(function(W){return F+O*W})}return E.domain=function(F){if(!arguments.length)return h;h=[],A=new x;for(var O=-1,W=F.length,Z;++O<W;)A.has(Z=F[O])||A.set(Z,h.push(Z));return E[g.t].apply(E,g.a)},E.range=function(F){return arguments.length?(S=F,L=0,g={t:"range",a:arguments},E):S},E.rangePoints=function(F,O){arguments.length<2&&(O=0);var W=F[0],Z=F[1],$=h.length<2?(W=(W+Z)/2,0):(Z-W)/(h.length-1+O);return S=N(W+$*O/2,$),L=0,g={t:"rangePoints",a:arguments},E},E.rangeRoundPoints=function(F,O){arguments.length<2&&(O=0);var W=F[0],Z=F[1],$=h.length<2?(W=Z=Math.round((W+Z)/2),0):(Z-W)/(h.length-1+O)|0;return S=N(W+Math.round($*O/2+(Z-W-(h.length-1+O)*$)/2),$),L=0,g={t:"rangeRoundPoints",a:arguments},E},E.rangeBands=function(F,O,W){arguments.length<2&&(O=0),arguments.length<3&&(W=O);var Z=F[1]<F[0],$=F[Z-0],K=F[1-Z],we=(K-$)/(h.length-O+2*W);return S=N($+we*W,we),Z&&S.reverse(),L=we*(1-O),g={t:"rangeBands",a:arguments},E},E.rangeRoundBands=function(F,O,W){arguments.length<2&&(O=0),arguments.length<3&&(W=O);var Z=F[1]<F[0],$=F[Z-0],K=F[1-Z],we=Math.floor((K-$)/(h.length-O+2*W));return S=N($+Math.round((K-$-(h.length-O)*we)/2),we),Z&&S.reverse(),L=Math.round(we*(1-O)),g={t:"rangeRoundBands",a:arguments},E},E.rangeBand=function(){return L},E.rangeExtent=function(){return iv(g.a[0])},E.copy=function(){return Bd(h,g)},E.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(Zy)},e.scale.category20=function(){return e.scale.ordinal().range(Jy)},e.scale.category20b=function(){return e.scale.ordinal().range(Od)},e.scale.category20c=function(){return e.scale.ordinal().range(Hd)};var Zy=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(En),Jy=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(En),Od=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(En),Hd=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(En);e.scale.quantile=function(){return Ud([],[])};function Ud(h,g){var A;function S(){var E=0,N=g.length;for(A=[];++E<N;)A[E-1]=e.quantile(h,E/N);return L}function L(E){if(!isNaN(E=+E))return g[e.bisect(A,E)]}return L.domain=function(E){return arguments.length?(h=E.map(v).filter(d).sort(c),S()):h},L.range=function(E){return arguments.length?(g=E,S()):g},L.quantiles=function(){return A},L.invertExtent=function(E){return E=g.indexOf(E),E<0?[NaN,NaN]:[E>0?A[E-1]:h[0],E<A.length?A[E]:h[h.length-1]]},L.copy=function(){return Ud(h,g)},S()}e.scale.quantize=function(){return Gd(0,1,[0,1])};function Gd(h,g,A){var S,L;function E(F){return A[Math.max(0,Math.min(L,Math.floor(S*(F-h))))]}function N(){return S=A.length/(g-h),L=A.length-1,E}return E.domain=function(F){return arguments.length?(h=+F[0],g=+F[F.length-1],N()):[h,g]},E.range=function(F){return arguments.length?(A=F,N()):A},E.invertExtent=function(F){return F=A.indexOf(F),F=F<0?NaN:F/S+h,[F,F+1/S]},E.copy=function(){return Gd(h,g,A)},N()}e.scale.threshold=function(){return Yd([.5],[0,1])};function Yd(h,g){function A(S){if(S<=S)return g[e.bisect(h,S)]}return A.domain=function(S){return arguments.length?(h=S,A):h},A.range=function(S){return arguments.length?(g=S,A):g},A.invertExtent=function(S){return S=g.indexOf(S),[h[S-1],h[S]]},A.copy=function(){return Yd(h,g)},A}e.scale.identity=function(){return Vd([0,1])};function Vd(h){function g(A){return+A}return g.invert=g,g.domain=g.range=function(A){return arguments.length?(h=A.map(g),g):h},g.ticks=function(A){return Ac(h,A)},g.tickFormat=function(A,S){return d3_scale_linearTickFormat(h,A,S)},g.copy=function(){return Vd(h)},g}e.svg={};function Xd(){return 0}e.svg.arc=function(){var h=jy,g=Wd,A=Xd,S=Mc,L=fv,E=Zd,N=Jd;function F(){var W=Math.max(0,+h.apply(this,arguments)),Z=Math.max(0,+g.apply(this,arguments)),$=L.apply(this,arguments)-se,K=E.apply(this,arguments)-se,we=Math.abs(K-$),ke=$>K?0:1;if(Z<W&&(re=Z,Z=W,W=re),we>=Qr)return O(Z,ke)+(W?O(W,1-ke):"")+"Z";var re,ve,xe,Se,Ee=0,me=0,sr,wr,Fr,Jr,ct,vt,Bt,gt,Ft=[];if((Se=(+N.apply(this,arguments)||0)/2)&&(xe=S===Mc?Math.sqrt(W*W+Z*Z):+S.apply(this,arguments),ke||(me*=-1),Z&&(me=Da(xe/Z*Math.sin(Se))),W&&(Ee=Da(xe/W*Math.sin(Se)))),Z){sr=Z*Math.cos($+me),wr=Z*Math.sin($+me),Fr=Z*Math.cos(K-me),Jr=Z*Math.sin(K-me);var ma=Math.abs(K-$-2*me)<=it?0:1;if(me&&kc(sr,wr,Fr,Jr)===ke^ma){var wn=($+K)/2;sr=Z*Math.cos(wn),wr=Z*Math.sin(wn),Fr=Jr=null}}else sr=wr=0;if(W){ct=W*Math.cos(K-Ee),vt=W*Math.sin(K-Ee),Bt=W*Math.cos($+Ee),gt=W*Math.sin($+Ee);var Ta=Math.abs($-K+2*Ee)<=it?0:1;if(Ee&&kc(ct,vt,Bt,gt)===1-ke^Ta){var Br=($+K)/2;ct=W*Math.cos(Br),vt=W*Math.sin(Br),Bt=gt=null}}else ct=vt=0;if(we>Qe&&(re=Math.min(Math.abs(Z-W)/2,+A.apply(this,arguments)))>.001){ve=W<Z^ke?0:1;var Ot=re,Zt=re;if(we<it){var va=Bt==null?[ct,vt]:Fr==null?[sr,wr]:vc([sr,wr],[Bt,gt],[Fr,Jr],[ct,vt]),Ja=sr-va[0],Dn=wr-va[1],fi=Fr-va[0],wi=Jr-va[1],Bi=1/Math.sin(Math.acos((Ja*fi+Dn*wi)/(Math.sqrt(Ja*Ja+Dn*Dn)*Math.sqrt(fi*fi+wi*wi)))/2),H=Math.sqrt(va[0]*va[0]+va[1]*va[1]);Zt=Math.min(re,(W-H)/(Bi-1)),Ot=Math.min(re,(Z-H)/(Bi+1))}if(Fr!=null){var ae=Sc(Bt==null?[ct,vt]:[Bt,gt],[sr,wr],Z,Ot,ke),oe=Sc([Fr,Jr],[ct,vt],Z,Ot,ke);re===Ot?Ft.push("M",ae[0],"A",Ot,",",Ot," 0 0,",ve," ",ae[1],"A",Z,",",Z," 0 ",1-ke^kc(ae[1][0],ae[1][1],oe[1][0],oe[1][1]),",",ke," ",oe[1],"A",Ot,",",Ot," 0 0,",ve," ",oe[0]):Ft.push("M",ae[0],"A",Ot,",",Ot," 0 1,",ve," ",oe[0])}else Ft.push("M",sr,",",wr);if(Bt!=null){var Be=Sc([sr,wr],[Bt,gt],W,-Zt,ke),Ze=Sc([ct,vt],Fr==null?[sr,wr]:[Fr,Jr],W,-Zt,ke);re===Zt?Ft.push("L",Ze[0],"A",Zt,",",Zt," 0 0,",ve," ",Ze[1],"A",W,",",W," 0 ",ke^kc(Ze[1][0],Ze[1][1],Be[1][0],Be[1][1]),",",1-ke," ",Be[1],"A",Zt,",",Zt," 0 0,",ve," ",Be[0]):Ft.push("L",Ze[0],"A",Zt,",",Zt," 0 0,",ve," ",Be[0])}else Ft.push("L",ct,",",vt)}else Ft.push("M",sr,",",wr),Fr!=null&&Ft.push("A",Z,",",Z," 0 ",ma,",",ke," ",Fr,",",Jr),Ft.push("L",ct,",",vt),Bt!=null&&Ft.push("A",W,",",W," 0 ",Ta,",",1-ke," ",Bt,",",gt);return Ft.push("Z"),Ft.join("")}function O(W,Z){return"M0,"+W+"A"+W+","+W+" 0 1,"+Z+" 0,"+-W+"A"+W+","+W+" 0 1,"+Z+" 0,"+W}return F.innerRadius=function(W){return arguments.length?(h=St(W),F):h},F.outerRadius=function(W){return arguments.length?(g=St(W),F):g},F.cornerRadius=function(W){return arguments.length?(A=St(W),F):A},F.padRadius=function(W){return arguments.length?(S=W==Mc?Mc:St(W),F):S},F.startAngle=function(W){return arguments.length?(L=St(W),F):L},F.endAngle=function(W){return arguments.length?(E=St(W),F):E},F.padAngle=function(W){return arguments.length?(N=St(W),F):N},F.centroid=function(){var W=(+h.apply(this,arguments)+ +g.apply(this,arguments))/2,Z=(+L.apply(this,arguments)+ +E.apply(this,arguments))/2-se;return[Math.cos(Z)*W,Math.sin(Z)*W]},F};var Mc="auto";function jy(h){return h.innerRadius}function Wd(h){return h.outerRadius}function fv(h){return h.startAngle}function Zd(h){return h.endAngle}function Jd(h){return h&&h.padAngle}function kc(h,g,A,S){return(h-A)*g-(g-S)*h>0?0:1}function Sc(h,g,A,S,L){var E=h[0]-g[0],N=h[1]-g[1],F=(L?S:-S)/Math.sqrt(E*E+N*N),O=F*N,W=-F*E,Z=h[0]+O,$=h[1]+W,K=g[0]+O,we=g[1]+W,ke=(Z+K)/2,re=($+we)/2,ve=K-Z,xe=we-$,Se=ve*ve+xe*xe,Ee=A-S,me=Z*we-K*$,sr=(xe<0?-1:1)*Math.sqrt(Math.max(0,Ee*Ee*Se-me*me)),wr=(me*xe-ve*sr)/Se,Fr=(-me*ve-xe*sr)/Se,Jr=(me*xe+ve*sr)/Se,ct=(-me*ve+xe*sr)/Se,vt=wr-ke,Bt=Fr-re,gt=Jr-ke,Ft=ct-re;return vt*vt+Bt*Bt>gt*gt+Ft*Ft&&(wr=Jr,Fr=ct),[[wr-O,Fr-W],[wr*A/Ee,Fr*A/Ee]]}function cv(){return!0}function jd(h){var g=ls,A=Nu,S=cv,L=uo,E=L.key,N=.7;function F(O){var W=[],Z=[],$=-1,K=O.length,we,ke=St(g),re=St(A);function ve(){W.push("M",L(h(Z),N))}for(;++$<K;)S.call(this,we=O[$],$)?Z.push([+ke.call(this,we,$),+re.call(this,we,$)]):Z.length&&(ve(),Z=[]);return Z.length&&ve(),W.length?W.join(""):null}return F.x=function(O){return arguments.length?(g=O,F):g},F.y=function(O){return arguments.length?(A=O,F):A},F.defined=function(O){return arguments.length?(S=O,F):S},F.interpolate=function(O){return arguments.length?(typeof O=="function"?E=L=O:E=(L=vv.get(O)||uo).key,F):E},F.tension=function(O){return arguments.length?(N=O,F):N},F}e.svg.line=function(){return jd(U)};var vv=e.map({linear:uo,"linear-closed":hv,step:Cc,"step-before":dv,"step-after":Wu,basis:ru,"basis-open":ju,"basis-closed":$u,bundle:$d,cardinal:Zu,"cardinal-open":Rl,"cardinal-closed":pv,monotone:$y});vv.forEach(function(h,g){g.key=h,g.closed=/-closed$/.test(h)});function uo(h){return h.length>1?h.join("L"):h+"Z"}function hv(h){return h.join("L")+"Z"}function Cc(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("H",(S[0]+(S=h[g])[0])/2,"V",S[1]);return A>1&&L.push("H",S[0]),L.join("")}function dv(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("V",(S=h[g])[1],"H",S[0]);return L.join("")}function Wu(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("H",(S=h[g])[0],"V",S[1]);return L.join("")}function Rl(h,g){return h.length<4?uo(h):h[1]+eu(h.slice(1,-1),Ju(h,g))}function pv(h,g){return h.length<3?hv(h):h[0]+eu((h.push(h[0]),h),Ju([h[h.length-2]].concat(h,[h[1]]),g))}function Zu(h,g){return h.length<3?uo(h):h[0]+eu(h,Ju(h,g))}function eu(h,g){if(g.length<1||h.length!=g.length&&h.length!=g.length+2)return uo(h);var A=h.length!=g.length,S="",L=h[0],E=h[1],N=g[0],F=N,O=1;if(A&&(S+="Q"+(E[0]-N[0]*2/3)+","+(E[1]-N[1]*2/3)+","+E[0]+","+E[1],L=h[1],O=2),g.length>1){F=g[1],E=h[O],O++,S+="C"+(L[0]+N[0])+","+(L[1]+N[1])+","+(E[0]-F[0])+","+(E[1]-F[1])+","+E[0]+","+E[1];for(var W=2;W<g.length;W++,O++)E=h[O],F=g[W],S+="S"+(E[0]-F[0])+","+(E[1]-F[1])+","+E[0]+","+E[1]}if(A){var Z=h[O];S+="Q"+(E[0]+F[0]*2/3)+","+(E[1]+F[1]*2/3)+","+Z[0]+","+Z[1]}return S}function Ju(h,g){for(var A=[],S=(1-g)/2,L,E=h[0],N=h[1],F=1,O=h.length;++F<O;)L=E,E=N,N=h[F],A.push([S*(N[0]-L[0]),S*(N[1]-L[1])]);return A}function ru(h){if(h.length<3)return uo(h);var g=1,A=h.length,S=h[0],L=S[0],E=S[1],N=[L,L,L,(S=h[1])[0]],F=[E,E,E,S[1]],O=[L,",",E,"L",Zi(ll,N),",",Zi(ll,F)];for(h.push(h[A-1]);++g<=A;)S=h[g],N.shift(),N.push(S[0]),F.shift(),F.push(S[1]),hs(O,N,F);return h.pop(),O.push("L",S),O.join("")}function ju(h){if(h.length<4)return uo(h);for(var g=[],A=-1,S=h.length,L,E=[0],N=[0];++A<3;)L=h[A],E.push(L[0]),N.push(L[1]);for(g.push(Zi(ll,E)+","+Zi(ll,N)),--A;++A<S;)L=h[A],E.shift(),E.push(L[0]),N.shift(),N.push(L[1]),hs(g,E,N);return g.join("")}function $u(h){for(var g,A=-1,S=h.length,L=S+4,E,N=[],F=[];++A<4;)E=h[A%S],N.push(E[0]),F.push(E[1]);for(g=[Zi(ll,N),",",Zi(ll,F)],--A;++A<L;)E=h[A%S],N.shift(),N.push(E[0]),F.shift(),F.push(E[1]),hs(g,N,F);return g.join("")}function $d(h,g){var A=h.length-1;if(A)for(var S=h[0][0],L=h[0][1],E=h[A][0]-S,N=h[A][1]-L,F=-1,O,W;++F<=A;)O=h[F],W=F/A,O[0]=g*O[0]+(1-g)*(S+W*E),O[1]=g*O[1]+(1-g)*(L+W*N);return ru(h)}function Zi(h,g){return h[0]*g[0]+h[1]*g[1]+h[2]*g[2]+h[3]*g[3]}var Lc=[0,2/3,1/3,0],mv=[0,1/3,2/3,0],ll=[0,1/6,2/3,1/6];function hs(h,g,A){h.push("C",Zi(Lc,g),",",Zi(Lc,A),",",Zi(mv,g),",",Zi(mv,A),",",Zi(ll,g),",",Zi(ll,A))}function ds(h,g){return(g[1]-h[1])/(g[0]-h[0])}function i_(h){for(var g=0,A=h.length-1,S=[],L=h[0],E=h[1],N=S[0]=ds(L,E);++g<A;)S[g]=(N+(N=ds(L=E,E=h[g+1])))/2;return S[g]=N,S}function o_(h){for(var g=[],A,S,L,E,N=i_(h),F=-1,O=h.length-1;++F<O;)A=ds(h[F],h[F+1]),b(A)<Qe?N[F]=N[F+1]=0:(S=N[F]/A,L=N[F+1]/A,E=S*S+L*L,E>9&&(E=A*3/Math.sqrt(E),N[F]=E*S,N[F+1]=E*L));for(F=-1;++F<=O;)E=(h[Math.min(O,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+N[F]*N[F])),g.push([E||0,N[F]*E||0]);return g}function $y(h){return h.length<3?uo(h):h[0]+eu(h,o_(h))}e.svg.line.radial=function(){var h=jd(Kd);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function Kd(h){for(var g,A=-1,S=h.length,L,E;++A<S;)g=h[A],L=g[0],E=g[1]-se,g[0]=L*Math.cos(E),g[1]=L*Math.sin(E);return h}function Qd(h){var g=ls,A=ls,S=0,L=Nu,E=cv,N=uo,F=N.key,O=N,W="L",Z=.7;function $(K){var we=[],ke=[],re=[],ve=-1,xe=K.length,Se,Ee=St(g),me=St(S),sr=g===A?function(){return Fr}:St(A),wr=S===L?function(){return Jr}:St(L),Fr,Jr;function ct(){we.push("M",N(h(re),Z),W,O(h(ke.reverse()),Z),"Z")}for(;++ve<xe;)E.call(this,Se=K[ve],ve)?(ke.push([Fr=+Ee.call(this,Se,ve),Jr=+me.call(this,Se,ve)]),re.push([+sr.call(this,Se,ve),+wr.call(this,Se,ve)])):ke.length&&(ct(),ke=[],re=[]);return ke.length&&ct(),we.length?we.join(""):null}return $.x=function(K){return arguments.length?(g=A=K,$):A},$.x0=function(K){return arguments.length?(g=K,$):g},$.x1=function(K){return arguments.length?(A=K,$):A},$.y=function(K){return arguments.length?(S=L=K,$):L},$.y0=function(K){return arguments.length?(S=K,$):S},$.y1=function(K){return arguments.length?(L=K,$):L},$.defined=function(K){return arguments.length?(E=K,$):E},$.interpolate=function(K){return arguments.length?(typeof K=="function"?F=N=K:F=(N=vv.get(K)||uo).key,O=N.reverse||N,W=N.closed?"M":"L",$):F},$.tension=function(K){return arguments.length?(Z=K,$):Z},$}dv.reverse=Wu,Wu.reverse=dv,e.svg.area=function(){return Qd(U)},e.svg.area.radial=function(){var h=Qd(Kd);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 Ky(h){return h.source}function tu(h){return h.target}e.svg.chord=function(){var h=Ky,g=tu,A=e1,S=fv,L=Zd;function E(Z,$){var K=N(this,h,Z,$),we=N(this,g,Z,$);return"M"+K.p0+O(K.r,K.p1,K.a1-K.a0)+(F(K,we)?W(K.r,K.p1,K.r,K.p0):W(K.r,K.p1,we.r,we.p0)+O(we.r,we.p1,we.a1-we.a0)+W(we.r,we.p1,K.r,K.p0))+"Z"}function N(Z,$,K,we){var ke=$.call(Z,K,we),re=A.call(Z,ke,we),ve=S.call(Z,ke,we)-se,xe=L.call(Z,ke,we)-se;return{r:re,a0:ve,a1:xe,p0:[re*Math.cos(ve),re*Math.sin(ve)],p1:[re*Math.cos(xe),re*Math.sin(xe)]}}function F(Z,$){return Z.a0==$.a0&&Z.a1==$.a1}function O(Z,$,K){return"A"+Z+","+Z+" 0 "+ +(K>it)+",1 "+$}function W(Z,$,K,we){return"Q 0,0 "+we}return E.radius=function(Z){return arguments.length?(A=St(Z),E):A},E.source=function(Z){return arguments.length?(h=St(Z),E):h},E.target=function(Z){return arguments.length?(g=St(Z),E):g},E.startAngle=function(Z){return arguments.length?(S=St(Z),E):S},E.endAngle=function(Z){return arguments.length?(L=St(Z),E):L},E};function e1(h){return h.radius}e.svg.diagonal=function(){var h=Ky,g=tu,A=Qy;function S(L,E){var N=h.call(this,L,E),F=g.call(this,L,E),O=(N.y+F.y)/2,W=[N,{x:N.x,y:O},{x:F.x,y:O},F];return W=W.map(A),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return S.source=function(L){return arguments.length?(h=St(L),S):h},S.target=function(L){return arguments.length?(g=St(L),S):g},S.projection=function(L){return arguments.length?(A=L,S):A},S};function Qy(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Qy,A=h.projection;return h.projection=function(S){return arguments.length?A(l_(g=S)):g},h};function l_(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-se;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=u_,g=s_;function A(S,L){return(rg.get(h.call(this,S,L))||eg)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=St(S),A):h},A.size=function(S){return arguments.length?(g=St(S),A):g},A};function s_(){return 64}function u_(){return"circle"}function eg(h){var g=Math.sqrt(h/it);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var rg=e.map({circle:eg,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*tg)),A=g*tg;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",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/yv),A=g*yv/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/yv),A=g*yv/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=rg.keys();var yv=Math.sqrt(3),tg=Math.tan(30*Te);ge.transition=function(h){for(var g=ps||++bv,A=xv(h),S=[],L,E,N=Ku||{time:Date.now(),ease:$s,delay:0,duration:250},F=-1,O=this.length;++F<O;){S.push(L=[]);for(var W=this[F],Z=-1,$=W.length;++Z<$;)(E=W[Z])&&Qu(E,Z,A,g,N),L.push(E)}return au(S,A,g)},ge.interrupt=function(h){return this.each(h==null?gv:r1(xv(h)))};var gv=r1(xv());function r1(h){return function(){var g,A,S;(g=this[h])&&(S=g[A=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[A]:delete this[h],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function au(h,g,A){return te(h,_n),h.namespace=g,h.id=A,h}var _n=[],bv=0,ps,Ku;_n.call=ge.call,_n.empty=ge.empty,_n.node=ge.node,_n.size=ge.size,e.transition=function(h,g){return h&&h.transition?ps?h.transition(g):h:e.selection().transition(h)},e.transition.prototype=_n,_n.select=function(h){var g=this.id,A=this.namespace,S=[],L,E,N;h=Oe(h);for(var F=-1,O=this.length;++F<O;){S.push(L=[]);for(var W=this[F],Z=-1,$=W.length;++Z<$;)(N=W[Z])&&(E=h.call(N,N.__data__,Z,F))?("__data__"in N&&(E.__data__=N.__data__),Qu(E,Z,A,g,N[A][g]),L.push(E)):L.push(null)}return au(S,A,g)},_n.selectAll=function(h){var g=this.id,A=this.namespace,S=[],L,E,N,F,O;h=cr(h);for(var W=-1,Z=this.length;++W<Z;)for(var $=this[W],K=-1,we=$.length;++K<we;)if(N=$[K]){O=N[A][g],E=h.call(N,N.__data__,K,W),S.push(L=[]);for(var ke=-1,re=E.length;++ke<re;)(F=E[ke])&&Qu(F,ke,A,g,O),L.push(F)}return au(S,A,g)},_n.filter=function(h){var g=[],A,S,L;typeof h!="function"&&(h=fe(h));for(var E=0,N=this.length;E<N;E++){g.push(A=[]);for(var S=this[E],F=0,O=S.length;F<O;F++)(L=S[F])&&h.call(L,L.__data__,F,E)&&A.push(L)}return au(g,this.namespace,this.id)},_n.tween=function(h,g){var A=this.id,S=this.namespace;return arguments.length<2?this.node()[S][A].tween.get(h):Tr(this,g==null?function(L){L[S][A].tween.remove(h)}:function(L){L[S][A].tween.set(h,g)})};function Ec(h,g,A,S){var L=h.id,E=h.namespace;return Tr(h,typeof A=="function"?function(N,F,O){N[E][L].tween.set(g,S(A.call(N,N.__data__,F,O)))}:(A=S(A),function(N){N[E][L].tween.set(g,A)}))}_n.attr=function(h,g){if(arguments.length<2){for(g in h)this.attr(g,h[g]);return this}var A=h=="transform"?Sd:fs,S=e.ns.qualify(h);function L(){this.removeAttribute(S)}function E(){this.removeAttributeNS(S.space,S.local)}function N(O){return O==null?L:(O+="",function(){var W=this.getAttribute(S),Z;return W!==O&&(Z=A(W,O),function($){this.setAttribute(S,Z($))})})}function F(O){return O==null?E:(O+="",function(){var W=this.getAttributeNS(S.space,S.local),Z;return W!==O&&(Z=A(W,O),function($){this.setAttributeNS(S.space,S.local,Z($))})})}return Ec(this,"attr."+h,g,S.local?F:N)},_n.attrTween=function(h,g){var A=e.ns.qualify(h);function S(E,N){var F=g.call(this,E,N,this.getAttribute(A));return F&&function(O){this.setAttribute(A,F(O))}}function L(E,N){var F=g.call(this,E,N,this.getAttributeNS(A.space,A.local));return F&&function(O){this.setAttributeNS(A.space,A.local,F(O))}}return this.tween("attr."+h,A.local?L:S)},_n.style=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(A in h)this.style(A,h[A],g);return this}A=""}function L(){this.style.removeProperty(h)}function E(N){return N==null?L:(N+="",function(){var F=i(this).getComputedStyle(this,null).getPropertyValue(h),O;return F!==N&&(O=fs(F,N),function(W){this.style.setProperty(h,O(W),A)})})}return Ec(this,"style."+h,g,E)},_n.styleTween=function(h,g,A){arguments.length<3&&(A="");function S(L,E){var N=g.call(this,L,E,i(this).getComputedStyle(this,null).getPropertyValue(h));return N&&function(F){this.style.setProperty(h,N(F),A)}}return this.tween("style."+h,S)},_n.text=function(h){return Ec(this,"text",h,t1)};function t1(h){return h==null&&(h=""),function(){this.textContent=h}}_n.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var g;this[h].count<2&&(g=this.parentNode)&&g.removeChild(this)})},_n.ease=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Tr(this,function(S){S[A][g].ease=h}))},_n.delay=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].delay:Tr(this,typeof h=="function"?function(S,L,E){S[A][g].delay=+h.call(S,S.__data__,L,E)}:(h=+h,function(S){S[A][g].delay=h}))},_n.duration=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].duration:Tr(this,typeof h=="function"?function(S,L,E){S[A][g].duration=Math.max(1,h.call(S,S.__data__,L,E))}:(h=Math.max(1,h),function(S){S[A][g].duration=h}))},_n.each=function(h,g){var A=this.id,S=this.namespace;if(arguments.length<2){var L=Ku,E=ps;try{ps=A,Tr(this,function(N,F,O){Ku=N[S][A],h.call(N,N.__data__,F,O)})}finally{Ku=L,ps=E}}else Tr(this,function(N){var F=N[S][A];(F.event||(F.event=e.dispatch("start","end","interrupt"))).on(h,g)});return this},_n.transition=function(){for(var h=this.id,g=++bv,A=this.namespace,S=[],L,E,N,F,O=0,W=this.length;O<W;O++){S.push(L=[]);for(var E=this[O],Z=0,$=E.length;Z<$;Z++)(N=E[Z])&&(F=N[A][h],Qu(N,Z,A,g,{time:F.time,ease:F.ease,delay:F.delay+F.duration,duration:F.duration})),L.push(N)}return au(S,A,g)};function xv(h){return h==null?"__transition__":"__transition_"+h+"__"}function Qu(h,g,A,S,L){var E=h[A]||(h[A]={active:0,count:0}),N=E[S],F,O,W,Z,$;function K(re){var ve=N.delay;if(O.t=ve+F,ve<=re)return we(re-ve);O.c=we}function we(re){var ve=E.active,xe=E[ve];xe&&(xe.timer.c=null,xe.timer.t=NaN,--E.count,delete E[ve],xe.event&&xe.event.interrupt.call(h,h.__data__,xe.index));for(var Se in E)if(+Se<S){var Ee=E[Se];Ee.timer.c=null,Ee.timer.t=NaN,--E.count,delete E[Se]}O.c=ke,Vs(function(){return O.c&&ke(re||1)&&(O.c=null,O.t=NaN),1},0,F),E.active=S,N.event&&N.event.start.call(h,h.__data__,g),$=[],N.tween.forEach(function(me,sr){(sr=sr.call(h,h.__data__,g))&&$.push(sr)}),Z=N.ease,W=N.duration}function ke(re){for(var ve=re/W,xe=Z(ve),Se=$.length;Se>0;)$[--Se].call(h,xe);if(ve>=1)return N.event&&N.event.end.call(h,h.__data__,g),--E.count?delete E[S]:delete h[A],1}N||(F=L.time,O=Vs(K,0,F),N=E[S]={tween:new x,time:F,timer:O,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++E.count)}e.svg.axis=function(){var h=e.scale.linear(),g=_v,A=6,S=6,L=3,E=[10],N=null,F;function O(W){W.each(function(){var Z=e.select(this),$=this.__chart__||h,K=this.__chart__=h.copy(),we=N==null?K.ticks?K.ticks.apply(K,E):K.domain():N,ke=F==null?K.tickFormat?K.tickFormat.apply(K,E):U:F,re=Z.selectAll(".tick").data(we,K),ve=re.enter().insert("g",".domain").attr("class","tick").style("opacity",Qe),xe=e.transition(re.exit()).style("opacity",Qe).remove(),Se=e.transition(re.order()).style("opacity",1),Ee=Math.max(A,0)+L,me,sr=ov(K),wr=Z.selectAll(".domain").data([0]),Fr=(wr.enter().append("path").attr("class","domain"),e.transition(wr));ve.append("line"),ve.append("text");var Jr=ve.select("line"),ct=Se.select("line"),vt=re.select("text").text(ke),Bt=ve.select("text"),gt=Se.select("text"),Ft=g==="top"||g==="left"?-1:1,ma,wn,Ta,Br;if(g==="bottom"||g==="top"?(me=n1,ma="x",Ta="y",wn="x2",Br="y2",vt.attr("dy",Ft<0?"0em":".71em").style("text-anchor","middle"),Fr.attr("d","M"+sr[0]+","+Ft*S+"V0H"+sr[1]+"V"+Ft*S)):(me=i1,ma="y",Ta="x",wn="y2",Br="x2",vt.attr("dy",".32em").style("text-anchor",Ft<0?"end":"start"),Fr.attr("d","M"+Ft*S+","+sr[0]+"H0V"+sr[1]+"H"+Ft*S)),Jr.attr(Br,Ft*A),Bt.attr(Ta,Ft*Ee),ct.attr(wn,0).attr(Br,Ft*A),gt.attr(ma,0).attr(Ta,Ft*Ee),K.rangeBand){var Ot=K,Zt=Ot.rangeBand()/2;$=K=function(va){return Ot(va)+Zt}}else $.rangeBand?$=K:xe.call(me,K,$);ve.call(me,$,K),Se.call(me,K,K)})}return O.scale=function(W){return arguments.length?(h=W,O):h},O.orient=function(W){return arguments.length?(g=W in a1?W+"":_v,O):g},O.ticks=function(){return arguments.length?(E=t(arguments),O):E},O.tickValues=function(W){return arguments.length?(N=W,O):N},O.tickFormat=function(W){return arguments.length?(F=W,O):F},O.tickSize=function(W){var Z=arguments.length;return Z?(A=+W,S=+arguments[Z-1],O):A},O.innerTickSize=function(W){return arguments.length?(A=+W,O):A},O.outerTickSize=function(W){return arguments.length?(S=+W,O):S},O.tickPadding=function(W){return arguments.length?(L=+W,O):L},O.tickSubdivide=function(){return arguments.length&&O},O};var _v="bottom",a1={top:1,right:1,bottom:1,left:1};function n1(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function i1(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=ne(Z,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],E,N,F=!0,O=!0,W=Dc[0];function Z(re){re.each(function(){var ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),xe=ve.selectAll(".background").data([0]);xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Se=ve.selectAll(".resize").data(W,U);Se.exit().remove(),Se.enter().append("g").attr("class",function(wr){return"resize "+wr}).style("cursor",function(wr){return o1[wr]}).append("rect").attr("x",function(wr){return/[ew]$/.test(wr)?-3:null}).attr("y",function(wr){return/^[ns]/.test(wr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Se.style("display",Z.empty()?"none":null);var Ee=e.transition(ve),me=e.transition(xe),sr;g&&(sr=ov(g),me.attr("x",sr[0]).attr("width",sr[1]-sr[0]),K(Ee)),A&&(sr=ov(A),me.attr("y",sr[0]).attr("height",sr[1]-sr[0]),we(Ee)),$(Ee)})}Z.event=function(re){re.each(function(){var ve=h.of(this,arguments),xe={x:S,y:L,i:E,j:N},Se=this.__chart__||xe;this.__chart__=xe,ps?e.select(this).transition().each("start.brush",function(){E=Se.i,N=Se.j,S=Se.x,L=Se.y,ve({type:"brushstart"})}).tween("brush:brush",function(){var Ee=bc(S,xe.x),me=bc(L,xe.y);return E=N=null,function(sr){S=xe.x=Ee(sr),L=xe.y=me(sr),ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=xe.i,N=xe.j,ve({type:"brush",mode:"resize"}),ve({type:"brushend"})}):(ve({type:"brushstart"}),ve({type:"brush",mode:"resize"}),ve({type:"brushend"}))})};function $(re){re.selectAll(".resize").attr("transform",function(ve){return"translate("+S[+/e$/.test(ve)]+","+L[+/^s/.test(ve)]+")"})}function K(re){re.select(".extent").attr("x",S[0]),re.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function we(re){re.select(".extent").attr("y",L[0]),re.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function ke(){var re=this,ve=e.select(e.event.target),xe=h.of(re,arguments),Se=e.select(re),Ee=ve.datum(),me=!/^(n|s)$/.test(Ee)&&g,sr=!/^(e|w)$/.test(Ee)&&A,wr=ve.classed("extent"),Fr=Vr(re),Jr,ct=e.mouse(re),vt,Bt=e.select(i(re)).on("keydown.brush",ma).on("keyup.brush",wn);if(e.event.changedTouches?Bt.on("touchmove.brush",Ta).on("touchend.brush",Ot):Bt.on("mousemove.brush",Ta).on("mouseup.brush",Ot),Se.interrupt().selectAll("*").interrupt(),wr)ct[0]=S[0]-ct[0],ct[1]=L[0]-ct[1];else if(Ee){var gt=+/w$/.test(Ee),Ft=+/^n/.test(Ee);vt=[S[1-gt]-ct[0],L[1-Ft]-ct[1]],ct[0]=S[gt],ct[1]=L[Ft]}else e.event.altKey&&(Jr=ct.slice());Se.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ve.style("cursor")),xe({type:"brushstart"}),Ta();function ma(){e.event.keyCode==32&&(wr||(Jr=null,ct[0]-=S[1],ct[1]-=L[1],wr=2),ee())}function wn(){e.event.keyCode==32&&wr==2&&(ct[0]+=S[1],ct[1]+=L[1],wr=0,ee())}function Ta(){var Zt=e.mouse(re),va=!1;vt&&(Zt[0]+=vt[0],Zt[1]+=vt[1]),wr||(e.event.altKey?(Jr||(Jr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),ct[0]=S[+(Zt[0]<Jr[0])],ct[1]=L[+(Zt[1]<Jr[1])]):Jr=null),me&&Br(Zt,g,0)&&(K(Se),va=!0),sr&&Br(Zt,A,1)&&(we(Se),va=!0),va&&($(Se),xe({type:"brush",mode:wr?"move":"resize"}))}function Br(Zt,va,Ja){var Dn=ov(va),fi=Dn[0],wi=Dn[1],Bi=ct[Ja],H=Ja?L:S,ae=H[1]-H[0],oe,Be;if(wr&&(fi-=Bi,wi-=ae+Bi),oe=(Ja?O:F)?Math.max(fi,Math.min(wi,Zt[Ja])):Zt[Ja],wr?Be=(oe+=Bi)+ae:(Jr&&(Bi=Math.max(fi,Math.min(wi,2*Jr[Ja]-oe))),Bi<oe?(Be=oe,oe=Bi):Be=Bi),H[0]!=oe||H[1]!=Be)return Ja?N=null:E=null,H[0]=oe,H[1]=Be,!0}function Ot(){Ta(),Se.style("pointer-events","all").selectAll(".resize").style("display",Z.empty()?"none":null),e.select("body").style("cursor",null),Bt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Fr(),xe({type:"brushend"})}}return Z.x=function(re){return arguments.length?(g=re,W=Dc[!g<<1|!A],Z):g},Z.y=function(re){return arguments.length?(A=re,W=Dc[!g<<1|!A],Z):A},Z.clamp=function(re){return arguments.length?(g&&A?(F=!!re[0],O=!!re[1]):g?F=!!re:A&&(O=!!re),Z):g&&A?[F,O]:g?F:A?O:null},Z.extent=function(re){var ve,xe,Se,Ee,me;return arguments.length?(g&&(ve=re[0],xe=re[1],A&&(ve=ve[0],xe=xe[0]),E=[ve,xe],g.invert&&(ve=g(ve),xe=g(xe)),xe<ve&&(me=ve,ve=xe,xe=me),(ve!=S[0]||xe!=S[1])&&(S=[ve,xe])),A&&(Se=re[0],Ee=re[1],g&&(Se=Se[1],Ee=Ee[1]),N=[Se,Ee],A.invert&&(Se=A(Se),Ee=A(Ee)),Ee<Se&&(me=Se,Se=Ee,Ee=me),(Se!=L[0]||Ee!=L[1])&&(L=[Se,Ee])),Z):(g&&(E?(ve=E[0],xe=E[1]):(ve=S[0],xe=S[1],g.invert&&(ve=g.invert(ve),xe=g.invert(xe)),xe<ve&&(me=ve,ve=xe,xe=me))),A&&(N?(Se=N[0],Ee=N[1]):(Se=L[0],Ee=L[1],A.invert&&(Se=A.invert(Se),Ee=A.invert(Ee)),Ee<Se&&(me=Se,Se=Ee,Ee=me))),g&&A?[[ve,Se],[xe,Ee]]:g?[ve,xe]:A&&[Se,Ee])},Z.clear=function(){return Z.empty()||(S=[0,0],L=[0,0],E=N=null),Z},Z.empty=function(){return!!g&&S[0]==S[1]||!!A&&L[0]==L[1]},e.rebind(Z,h,"on")};var o1={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Dc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=xa(function(h){return h.responseText}),e.json=function(h,g){return Zr(h,"application/json",l1,g)};function l1(h){return JSON.parse(h.responseText)}e.html=function(h,g){return Zr(h,"text/html",s1,g)};function s1(h){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(h.responseText)}e.xml=xa(function(h){return h.responseXML}),typeof ig=="object"&&ig.exports?ig.exports=e:this.d3=e}).apply(self)});var c_=I((og,KM)=>{(function(e,r){typeof og=="object"&&typeof KM!="undefined"?r(og):(e=e||self,r(e.d3=e.d3||{}))})(og,function(e){"use strict";var r=new Date,t=new Date;function a(fe,Ce,Tr,tt){function at(de){return fe(de=arguments.length===0?new Date:new Date(+de)),de}return at.floor=function(de){return fe(de=new Date(+de)),de},at.ceil=function(de){return fe(de=new Date(de-1)),Ce(de,1),fe(de),de},at.round=function(de){var Le=at(de),lr=at.ceil(de);return de-Le<lr-de?Le:lr},at.offset=function(de,Le){return Ce(de=new Date(+de),Le==null?1:Math.floor(Le)),de},at.range=function(de,Le,lr){var Ar=[],ur;if(de=at.ceil(de),lr=lr==null?1:Math.floor(lr),!(de<Le)||!(lr>0))return Ar;do Ar.push(ur=new Date(+de)),Ce(de,lr),fe(de);while(ur<de&&de<Le);return Ar},at.filter=function(de){return a(function(Le){if(Le>=Le)for(;fe(Le),!de(Le);)Le.setTime(Le-1)},function(Le,lr){if(Le>=Le)if(lr<0)for(;++lr<=0;)for(;Ce(Le,-1),!de(Le););else for(;--lr>=0;)for(;Ce(Le,1),!de(Le););})},Tr&&(at.count=function(de,Le){return r.setTime(+de),t.setTime(+Le),fe(r),fe(t),Math.floor(Tr(r,t))},at.every=function(de){return de=Math.floor(de),!isFinite(de)||!(de>0)?null:de>1?at.filter(tt?function(Le){return tt(Le)%de===0}:function(Le){return at.count(0,Le)%de===0}):at}),at}var n=a(function(){},function(fe,Ce){fe.setTime(+fe+Ce)},function(fe,Ce){return Ce-fe});n.every=function(fe){return fe=Math.floor(fe),!isFinite(fe)||!(fe>0)?null:fe>1?a(function(Ce){Ce.setTime(Math.floor(Ce/fe)*fe)},function(Ce,Tr){Ce.setTime(+Ce+Tr*fe)},function(Ce,Tr){return(Tr-Ce)/fe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(fe){fe.setTime(fe-fe.getMilliseconds())},function(fe,Ce){fe.setTime(+fe+Ce*o)},function(fe,Ce){return(Ce-fe)/o},function(fe){return fe.getUTCSeconds()}),v=c.range,d=a(function(fe){fe.setTime(fe-fe.getMilliseconds()-fe.getSeconds()*o)},function(fe,Ce){fe.setTime(+fe+Ce*l)},function(fe,Ce){return(Ce-fe)/l},function(fe){return fe.getMinutes()}),p=d.range,m=a(function(fe){fe.setTime(fe-fe.getMilliseconds()-fe.getSeconds()*o-fe.getMinutes()*l)},function(fe,Ce){fe.setTime(+fe+Ce*s)},function(fe,Ce){return(Ce-fe)/s},function(fe){return fe.getHours()}),y=m.range,b=a(function(fe){fe.setHours(0,0,0,0)},function(fe,Ce){fe.setDate(fe.getDate()+Ce)},function(fe,Ce){return(Ce-fe-(Ce.getTimezoneOffset()-fe.getTimezoneOffset())*l)/u},function(fe){return fe.getDate()-1}),T=b.range;function _(fe){return a(function(Ce){Ce.setDate(Ce.getDate()-(Ce.getDay()+7-fe)%7),Ce.setHours(0,0,0,0)},function(Ce,Tr){Ce.setDate(Ce.getDate()+Tr*7)},function(Ce,Tr){return(Tr-Ce-(Tr.getTimezoneOffset()-Ce.getTimezoneOffset())*l)/f})}var x=_(0),w=_(1),k=_(2),M=_(3),C=_(4),D=_(5),R=_(6),P=x.range,q=w.range,z=k.range,B=M.range,U=C.range,G=D.range,X=R.range,Y=a(function(fe){fe.setDate(1),fe.setHours(0,0,0,0)},function(fe,Ce){fe.setMonth(fe.getMonth()+Ce)},function(fe,Ce){return Ce.getMonth()-fe.getMonth()+(Ce.getFullYear()-fe.getFullYear())*12},function(fe){return fe.getMonth()}),V=Y.range,J=a(function(fe){fe.setMonth(0,1),fe.setHours(0,0,0,0)},function(fe,Ce){fe.setFullYear(fe.getFullYear()+Ce)},function(fe,Ce){return Ce.getFullYear()-fe.getFullYear()},function(fe){return fe.getFullYear()});J.every=function(fe){return!isFinite(fe=Math.floor(fe))||!(fe>0)?null:a(function(Ce){Ce.setFullYear(Math.floor(Ce.getFullYear()/fe)*fe),Ce.setMonth(0,1),Ce.setHours(0,0,0,0)},function(Ce,Tr){Ce.setFullYear(Ce.getFullYear()+Tr*fe)})};var j=J.range,ee=a(function(fe){fe.setUTCSeconds(0,0)},function(fe,Ce){fe.setTime(+fe+Ce*l)},function(fe,Ce){return(Ce-fe)/l},function(fe){return fe.getUTCMinutes()}),pe=ee.range,ne=a(function(fe){fe.setUTCMinutes(0,0,0)},function(fe,Ce){fe.setTime(+fe+Ce*s)},function(fe,Ce){return(Ce-fe)/s},function(fe){return fe.getUTCHours()}),ye=ne.range,te=a(function(fe){fe.setUTCHours(0,0,0,0)},function(fe,Ce){fe.setUTCDate(fe.getUTCDate()+Ce)},function(fe,Ce){return(Ce-fe)/u},function(fe){return fe.getUTCDate()-1}),De=te.range;function ce(fe){return a(function(Ce){Ce.setUTCDate(Ce.getUTCDate()-(Ce.getUTCDay()+7-fe)%7),Ce.setUTCHours(0,0,0,0)},function(Ce,Tr){Ce.setUTCDate(Ce.getUTCDate()+Tr*7)},function(Ce,Tr){return(Tr-Ce)/f})}var Re=ce(0),Fe=ce(1),ge=ce(2),Oe=ce(3),cr=ce(4),qe=ce(5),ze=ce(6),Ue=Re.range,We=Fe.range,Ge=ge.range,or=Oe.range,Ye=cr.range,_r=qe.range,Pr=ze.range,Yr=a(function(fe){fe.setUTCDate(1),fe.setUTCHours(0,0,0,0)},function(fe,Ce){fe.setUTCMonth(fe.getUTCMonth()+Ce)},function(fe,Ce){return Ce.getUTCMonth()-fe.getUTCMonth()+(Ce.getUTCFullYear()-fe.getUTCFullYear())*12},function(fe){return fe.getUTCMonth()}),$e=Yr.range,mr=a(function(fe){fe.setUTCMonth(0,1),fe.setUTCHours(0,0,0,0)},function(fe,Ce){fe.setUTCFullYear(fe.getUTCFullYear()+Ce)},function(fe,Ce){return Ce.getUTCFullYear()-fe.getUTCFullYear()},function(fe){return fe.getUTCFullYear()});mr.every=function(fe){return!isFinite(fe=Math.floor(fe))||!(fe>0)?null:a(function(Ce){Ce.setUTCFullYear(Math.floor(Ce.getUTCFullYear()/fe)*fe),Ce.setUTCMonth(0,1),Ce.setUTCHours(0,0,0,0)},function(Ce,Tr){Ce.setUTCFullYear(Ce.getUTCFullYear()+Tr*fe)})};var Gr=mr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=D,e.timeFridays=G,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=w,e.timeMondays=q,e.timeMonth=Y,e.timeMonths=V,e.timeSaturday=R,e.timeSaturdays=X,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=C,e.timeThursdays=U,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=B,e.timeWeek=x,e.timeWeeks=P,e.timeYear=J,e.timeYears=j,e.utcDay=te,e.utcDays=De,e.utcFriday=qe,e.utcFridays=_r,e.utcHour=ne,e.utcHours=ye,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=pe,e.utcMonday=Fe,e.utcMondays=We,e.utcMonth=Yr,e.utcMonths=$e,e.utcSaturday=ze,e.utcSaturdays=Pr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Re,e.utcSundays=Ue,e.utcThursday=cr,e.utcThursdays=Ye,e.utcTuesday=ge,e.utcTuesdays=Ge,e.utcWednesday=Oe,e.utcWednesdays=or,e.utcWeek=Re,e.utcWeeks=Ue,e.utcYear=mr,e.utcYears=Gr,Object.defineProperty(e,"__esModule",{value:!0})})});var wv=I((lg,QM)=>{(function(e,r){typeof lg=="object"&&typeof QM!="undefined"?r(lg,c_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(lg,function(e,r){"use strict";function t(se){if(0<=se.y&&se.y<100){var Te=new Date(-1,se.m,se.d,se.H,se.M,se.S,se.L);return Te.setFullYear(se.y),Te}return new Date(se.y,se.m,se.d,se.H,se.M,se.S,se.L)}function a(se){if(0<=se.y&&se.y<100){var Te=new Date(Date.UTC(-1,se.m,se.d,se.H,se.M,se.S,se.L));return Te.setUTCFullYear(se.y),Te}return new Date(Date.UTC(se.y,se.m,se.d,se.H,se.M,se.S,se.L))}function n(se,Te,tr){return{y:se,m:Te,d:tr,H:0,M:0,S:0,L:0}}function i(se){var Te=se.dateTime,tr=se.date,vr=se.time,na=se.periods,Ea=se.days,Da=se.shortDays,Va=se.months,on=se.shortMonths,Xa=v(na),Mn=d(na),Ba=v(Ea),hn=d(Ea),Yn=v(Da),Kn=d(Da),si=v(Va),Wa=d(Va),Vn=v(on),ln=d(on),sn={a:os,A:lo,b:Aa,B:al,c:null,d:Y,e:Y,f:pe,g:qe,G:Ue,H:V,I:J,j,L:ee,m:ne,M:ye,p:En,q:Wi,Q:Vr,s:ot,S:te,u:De,U:ce,V:Fe,w:ge,W:Oe,x:null,X:null,y:cr,Y:ze,Z:We,"%":Er},Za={a:Bo,A:mo,b:Pu,B:V0,c:null,d:Ge,e:Ge,f:Yr,g:lr,G:ur,H:or,I:Ye,j:_r,L:Pr,m:$e,M:mr,p:uc,q:fc,Q:Vr,s:ot,S:Gr,u:fe,U:Ce,V:tt,w:at,W:de,x:null,X:null,y:Le,Y:Ar,Z:Cr,"%":Er},kn={a:pa,A:Xn,b:_i,B:un,c:Io,d:C,e:C,f:B,g:x,G:_,H:R,I:R,j:D,L:z,m:M,M:P,p:It,q:k,Q:G,s:X,S:q,u:m,U:y,V:b,w:p,W:T,x:tl,X:El,y:x,Y:_,Z:w,"%":U};sn.x=ui(tr,sn),sn.X=ui(vr,sn),sn.c=ui(Te,sn),Za.x=ui(tr,Za),Za.X=ui(vr,Za),Za.c=ui(Te,Za);function ui(kt,St){return function(xa){var Zr=[],xn=-1,Na=0,Oa=kt.length,Wn,Ii,so;for(xa instanceof Date||(xa=new Date(+xa));++xn<Oa;)kt.charCodeAt(xn)===37&&(Zr.push(kt.slice(Na,xn)),(Ii=o[Wn=kt.charAt(++xn)])!=null?Wn=kt.charAt(++xn):Ii=Wn==="e"?" ":"0",(so=St[Wn])&&(Wn=so(xa,Ii)),Zr.push(Wn),Na=xn+1);return Zr.push(kt.slice(Na,xn)),Zr.join("")}}function Ir(kt,St){return function(xa){var Zr=n(1900,void 0,1),xn=Qt(Zr,kt,xa+="",0),Na,Oa;if(xn!=xa.length)return null;if("Q"in Zr)return new Date(Zr.Q);if("s"in Zr)return new Date(Zr.s*1e3+("L"in Zr?Zr.L:0));if(St&&!("Z"in Zr)&&(Zr.Z=0),"p"in Zr&&(Zr.H=Zr.H%12+Zr.p*12),Zr.m===void 0&&(Zr.m="q"in Zr?Zr.q:0),"V"in Zr){if(Zr.V<1||Zr.V>53)return null;"w"in Zr||(Zr.w=1),"Z"in Zr?(Na=a(n(Zr.y,0,1)),Oa=Na.getUTCDay(),Na=Oa>4||Oa===0?r.utcMonday.ceil(Na):r.utcMonday(Na),Na=r.utcDay.offset(Na,(Zr.V-1)*7),Zr.y=Na.getUTCFullYear(),Zr.m=Na.getUTCMonth(),Zr.d=Na.getUTCDate()+(Zr.w+6)%7):(Na=t(n(Zr.y,0,1)),Oa=Na.getDay(),Na=Oa>4||Oa===0?r.timeMonday.ceil(Na):r.timeMonday(Na),Na=r.timeDay.offset(Na,(Zr.V-1)*7),Zr.y=Na.getFullYear(),Zr.m=Na.getMonth(),Zr.d=Na.getDate()+(Zr.w+6)%7)}else("W"in Zr||"U"in Zr)&&("w"in Zr||(Zr.w="u"in Zr?Zr.u%7:"W"in Zr?1:0),Oa="Z"in Zr?a(n(Zr.y,0,1)).getUTCDay():t(n(Zr.y,0,1)).getDay(),Zr.m=0,Zr.d="W"in Zr?(Zr.w+6)%7+Zr.W*7-(Oa+5)%7:Zr.w+Zr.U*7-(Oa+6)%7);return"Z"in Zr?(Zr.H+=Zr.Z/100|0,Zr.M+=Zr.Z%100,a(Zr)):t(Zr)}}function Qt(kt,St,xa,Zr){for(var xn=0,Na=St.length,Oa=xa.length,Wn,Ii;xn<Na;){if(Zr>=Oa)return-1;if(Wn=St.charCodeAt(xn++),Wn===37){if(Wn=St.charAt(xn++),Ii=kn[Wn in o?St.charAt(xn++):Wn],!Ii||(Zr=Ii(kt,xa,Zr))<0)return-1}else if(Wn!=xa.charCodeAt(Zr++))return-1}return Zr}function It(kt,St,xa){var Zr=Xa.exec(St.slice(xa));return Zr?(kt.p=Mn[Zr[0].toLowerCase()],xa+Zr[0].length):-1}function pa(kt,St,xa){var Zr=Yn.exec(St.slice(xa));return Zr?(kt.w=Kn[Zr[0].toLowerCase()],xa+Zr[0].length):-1}function Xn(kt,St,xa){var Zr=Ba.exec(St.slice(xa));return Zr?(kt.w=hn[Zr[0].toLowerCase()],xa+Zr[0].length):-1}function _i(kt,St,xa){var Zr=Vn.exec(St.slice(xa));return Zr?(kt.m=ln[Zr[0].toLowerCase()],xa+Zr[0].length):-1}function un(kt,St,xa){var Zr=si.exec(St.slice(xa));return Zr?(kt.m=Wa[Zr[0].toLowerCase()],xa+Zr[0].length):-1}function Io(kt,St,xa){return Qt(kt,Te,St,xa)}function tl(kt,St,xa){return Qt(kt,tr,St,xa)}function El(kt,St,xa){return Qt(kt,vr,St,xa)}function os(kt){return Da[kt.getDay()]}function lo(kt){return Ea[kt.getDay()]}function Aa(kt){return on[kt.getMonth()]}function al(kt){return Va[kt.getMonth()]}function En(kt){return na[+(kt.getHours()>=12)]}function Wi(kt){return 1+~~(kt.getMonth()/3)}function Bo(kt){return Da[kt.getUTCDay()]}function mo(kt){return Ea[kt.getUTCDay()]}function Pu(kt){return on[kt.getUTCMonth()]}function V0(kt){return Va[kt.getUTCMonth()]}function uc(kt){return na[+(kt.getUTCHours()>=12)]}function fc(kt){return 1+~~(kt.getUTCMonth()/3)}return{format:function(kt){var St=ui(kt+="",sn);return St.toString=function(){return kt},St},parse:function(kt){var St=Ir(kt+="",!1);return St.toString=function(){return kt},St},utcFormat:function(kt){var St=ui(kt+="",Za);return St.toString=function(){return kt},St},utcParse:function(kt){var St=Ir(kt+="",!0);return St.toString=function(){return kt},St}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(se,Te,tr){var vr=se<0?"-":"",na=(vr?-se:se)+"",Ea=na.length;return vr+(Ea<tr?new Array(tr-Ea+1).join(Te)+na:na)}function c(se){return se.replace(u,"\\$&")}function v(se){return new RegExp("^(?:"+se.map(c).join("|")+")","i")}function d(se){for(var Te={},tr=-1,vr=se.length;++tr<vr;)Te[se[tr].toLowerCase()]=tr;return Te}function p(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+1));return vr?(se.w=+vr[0],tr+vr[0].length):-1}function m(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+1));return vr?(se.u=+vr[0],tr+vr[0].length):-1}function y(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.U=+vr[0],tr+vr[0].length):-1}function b(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.V=+vr[0],tr+vr[0].length):-1}function T(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.W=+vr[0],tr+vr[0].length):-1}function _(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+4));return vr?(se.y=+vr[0],tr+vr[0].length):-1}function x(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.y=+vr[0]+(+vr[0]>68?1900:2e3),tr+vr[0].length):-1}function w(se,Te,tr){var vr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Te.slice(tr,tr+6));return vr?(se.Z=vr[1]?0:-(vr[2]+(vr[3]||"00")),tr+vr[0].length):-1}function k(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+1));return vr?(se.q=vr[0]*3-3,tr+vr[0].length):-1}function M(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.m=vr[0]-1,tr+vr[0].length):-1}function C(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.d=+vr[0],tr+vr[0].length):-1}function D(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+3));return vr?(se.m=0,se.d=+vr[0],tr+vr[0].length):-1}function R(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.H=+vr[0],tr+vr[0].length):-1}function P(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.M=+vr[0],tr+vr[0].length):-1}function q(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+2));return vr?(se.S=+vr[0],tr+vr[0].length):-1}function z(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+3));return vr?(se.L=+vr[0],tr+vr[0].length):-1}function B(se,Te,tr){var vr=l.exec(Te.slice(tr,tr+6));return vr?(se.L=Math.floor(vr[0]/1e3),tr+vr[0].length):-1}function U(se,Te,tr){var vr=s.exec(Te.slice(tr,tr+1));return vr?tr+vr[0].length:-1}function G(se,Te,tr){var vr=l.exec(Te.slice(tr));return vr?(se.Q=+vr[0],tr+vr[0].length):-1}function X(se,Te,tr){var vr=l.exec(Te.slice(tr));return vr?(se.s=+vr[0],tr+vr[0].length):-1}function Y(se,Te){return f(se.getDate(),Te,2)}function V(se,Te){return f(se.getHours(),Te,2)}function J(se,Te){return f(se.getHours()%12||12,Te,2)}function j(se,Te){return f(1+r.timeDay.count(r.timeYear(se),se),Te,3)}function ee(se,Te){return f(se.getMilliseconds(),Te,3)}function pe(se,Te){return ee(se,Te)+"000"}function ne(se,Te){return f(se.getMonth()+1,Te,2)}function ye(se,Te){return f(se.getMinutes(),Te,2)}function te(se,Te){return f(se.getSeconds(),Te,2)}function De(se){var Te=se.getDay();return Te===0?7:Te}function ce(se,Te){return f(r.timeSunday.count(r.timeYear(se)-1,se),Te,2)}function Re(se){var Te=se.getDay();return Te>=4||Te===0?r.timeThursday(se):r.timeThursday.ceil(se)}function Fe(se,Te){return se=Re(se),f(r.timeThursday.count(r.timeYear(se),se)+(r.timeYear(se).getDay()===4),Te,2)}function ge(se){return se.getDay()}function Oe(se,Te){return f(r.timeMonday.count(r.timeYear(se)-1,se),Te,2)}function cr(se,Te){return f(se.getFullYear()%100,Te,2)}function qe(se,Te){return se=Re(se),f(se.getFullYear()%100,Te,2)}function ze(se,Te){return f(se.getFullYear()%1e4,Te,4)}function Ue(se,Te){var tr=se.getDay();return se=tr>=4||tr===0?r.timeThursday(se):r.timeThursday.ceil(se),f(se.getFullYear()%1e4,Te,4)}function We(se){var Te=se.getTimezoneOffset();return(Te>0?"-":(Te*=-1,"+"))+f(Te/60|0,"0",2)+f(Te%60,"0",2)}function Ge(se,Te){return f(se.getUTCDate(),Te,2)}function or(se,Te){return f(se.getUTCHours(),Te,2)}function Ye(se,Te){return f(se.getUTCHours()%12||12,Te,2)}function _r(se,Te){return f(1+r.utcDay.count(r.utcYear(se),se),Te,3)}function Pr(se,Te){return f(se.getUTCMilliseconds(),Te,3)}function Yr(se,Te){return Pr(se,Te)+"000"}function $e(se,Te){return f(se.getUTCMonth()+1,Te,2)}function mr(se,Te){return f(se.getUTCMinutes(),Te,2)}function Gr(se,Te){return f(se.getUTCSeconds(),Te,2)}function fe(se){var Te=se.getUTCDay();return Te===0?7:Te}function Ce(se,Te){return f(r.utcSunday.count(r.utcYear(se)-1,se),Te,2)}function Tr(se){var Te=se.getUTCDay();return Te>=4||Te===0?r.utcThursday(se):r.utcThursday.ceil(se)}function tt(se,Te){return se=Tr(se),f(r.utcThursday.count(r.utcYear(se),se)+(r.utcYear(se).getUTCDay()===4),Te,2)}function at(se){return se.getUTCDay()}function de(se,Te){return f(r.utcMonday.count(r.utcYear(se)-1,se),Te,2)}function Le(se,Te){return f(se.getUTCFullYear()%100,Te,2)}function lr(se,Te){return se=Tr(se),f(se.getUTCFullYear()%100,Te,2)}function Ar(se,Te){return f(se.getUTCFullYear()%1e4,Te,4)}function ur(se,Te){var tr=se.getUTCDay();return se=tr>=4||tr===0?r.utcThursday(se):r.utcThursday.ceil(se),f(se.getUTCFullYear()%1e4,Te,4)}function Cr(){return"+0000"}function Er(){return"%"}function Vr(se){return+se}function ot(se){return Math.floor(+se/1e3)}var Ve;Mr({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 Mr(se){return Ve=i(se),e.timeFormat=Ve.format,e.timeParse=Ve.parse,e.utcFormat=Ve.utcFormat,e.utcParse=Ve.utcParse,Ve}var Qe="%Y-%m-%dT%H:%M:%S.%LZ";function zr(se){return se.toISOString()}var it=Date.prototype.toISOString?zr:e.utcFormat(Qe);function lt(se){var Te=new Date(se);return isNaN(Te)?null:Te}var Qr=+new Date("2000-01-01T00:00:00.000Z")?lt:e.utcParse(Qe);e.isoFormat=it,e.isoParse=Qr,e.timeFormatDefaultLocale=Mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var v_=I((sg,ek)=>{(function(e,r){typeof sg=="object"&&typeof ek!="undefined"?r(sg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(sg,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,C){if((D=(M=C?M.toExponential(C-1):M.toExponential()).indexOf("e"))<0)return null;var D,R=M.slice(0,D);return[R.length>1?R[0]+R.slice(2):R,+M.slice(D+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,C){return function(D,R){for(var P=D.length,q=[],z=0,B=M[0],U=0;P>0&&B>0&&(U+B+1>R&&(B=Math.max(1,R-U)),q.push(D.substring(P-=B,P+B)),!((U+=B+1)>R));)B=M[z=(z+1)%M.length];return q.reverse().join(C)}}function i(M){return function(C){return C.replace(/[0-9]/g,function(D){return M[+D]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(C=o.exec(M)))throw new Error("invalid format: "+M);var C;return new s({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.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(M){e:for(var C=M.length,D=1,R=-1,P;D<C;++D)switch(M[D]){case".":R=P=D;break;case"0":R===0&&(R=D),P=D;break;default:if(!+M[D])break e;R>0&&(R=0);break}return R>0?M.slice(0,R)+M.slice(P+1):M}var f;function c(M,C){var D=t(M,C);if(!D)return M+"";var R=D[0],P=D[1],q=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=R.length;return q===z?R:q>z?R+new Array(q-z+1).join("0"):q>0?R.slice(0,q)+"."+R.slice(q):"0."+new Array(1-q).join("0")+t(M,Math.max(0,C+q-1))[0]}function v(M,C){var D=t(M,C);if(!D)return M+"";var R=D[0],P=D[1];return P<0?"0."+new Array(-P).join("0")+R:R.length>P+1?R.slice(0,P+1)+"."+R.slice(P+1):R+new Array(P-R.length+2).join("0")}var d={"%":function(M,C){return(M*100).toFixed(C)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,C){return M.toExponential(C)},f:function(M,C){return M.toFixed(C)},g:function(M,C){return M.toPrecision(C)},o:function(M){return Math.round(M).toString(8)},p:function(M,C){return v(M*100,C)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var C=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),D=M.currency===void 0?"":M.currency[0]+"",R=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",q=M.numerals===void 0?p:i(m.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",B=M.minus===void 0?"-":M.minus+"",U=M.nan===void 0?"NaN":M.nan+"";function G(Y){Y=l(Y);var V=Y.fill,J=Y.align,j=Y.sign,ee=Y.symbol,pe=Y.zero,ne=Y.width,ye=Y.comma,te=Y.precision,De=Y.trim,ce=Y.type;ce==="n"?(ye=!0,ce="g"):d[ce]||(te===void 0&&(te=12),De=!0,ce="g"),(pe||V==="0"&&J==="=")&&(pe=!0,V="0",J="=");var Re=ee==="$"?D:ee==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",Fe=ee==="$"?R:/[%p]/.test(ce)?z:"",ge=d[ce],Oe=/[defgprs%]/.test(ce);te=te===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function cr(qe){var ze=Re,Ue=Fe,We,Ge,or;if(ce==="c")Ue=ge(qe)+Ue,qe="";else{qe=+qe;var Ye=qe<0||1/qe<0;if(qe=isNaN(qe)?U:ge(Math.abs(qe),te),De&&(qe=u(qe)),Ye&&+qe==0&&j!=="+"&&(Ye=!1),ze=(Ye?j==="("?j:B:j==="-"||j==="("?"":j)+ze,Ue=(ce==="s"?y[8+f/3]:"")+Ue+(Ye&&j==="("?")":""),Oe){for(We=-1,Ge=qe.length;++We<Ge;)if(or=qe.charCodeAt(We),48>or||or>57){Ue=(or===46?P+qe.slice(We+1):qe.slice(We))+Ue,qe=qe.slice(0,We);break}}}ye&&!pe&&(qe=C(qe,1/0));var _r=ze.length+qe.length+Ue.length,Pr=_r<ne?new Array(ne-_r+1).join(V):"";switch(ye&&pe&&(qe=C(Pr+qe,Pr.length?ne-Ue.length:1/0),Pr=""),J){case"<":qe=ze+qe+Ue+Pr;break;case"=":qe=ze+Pr+qe+Ue;break;case"^":qe=Pr.slice(0,_r=Pr.length>>1)+ze+qe+Ue+Pr.slice(_r);break;default:qe=Pr+ze+qe+Ue;break}return q(qe)}return cr.toString=function(){return Y+""},cr}function X(Y,V){var J=G((Y=l(Y),Y.type="f",Y)),j=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,ee=Math.pow(10,-j),pe=y[8+j/3];return function(ne){return J(ee*ne)+pe}}return{format:G,formatPrefix:X}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function w(M,C){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(C)/3)))*3-a(Math.abs(M)))}function k(M,C){return M=Math.abs(M),C=Math.abs(C)-M,Math.max(0,a(C)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=w,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var tk=I((bEe,rk)=>{"use strict";rk.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 da=I((xEe,ak)=>{"use strict";var Lte=tk();ak.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Lte(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri={};Ka(ri,{ALMOST_EQUAL:()=>Zte,BADNUM:()=>h_,EPOCHJD:()=>Wte,FP_SAFE:()=>Ete,LOG_CLIP:()=>Jte,MINUS_SIGN:()=>jte,ONEAVGMONTH:()=>Ite,ONEAVGQUARTER:()=>Pte,ONEAVGYEAR:()=>qte,ONEDAY:()=>Hte,ONEHOUR:()=>Ute,ONEMAXMONTH:()=>zte,ONEMAXQUARTER:()=>Fte,ONEMAXYEAR:()=>Dte,ONEMICROSEC:()=>Xte,ONEMILLI:()=>Vte,ONEMIN:()=>Gte,ONEMINMONTH:()=>Bte,ONEMINQUARTER:()=>Nte,ONEMINYEAR:()=>Rte,ONESEC:()=>Yte,ONEWEEK:()=>Ote});var h_,Ete,Dte,qte,Rte,Fte,Pte,Nte,zte,Ite,Bte,Ote,Hte,Ute,Gte,Yte,Vte,Xte,Wte,Zte,Jte,jte,Zn=$a(()=>{"use strict";h_=void 0,Ete=Number.MAX_VALUE*1e-4,Dte=316224e5,qte=315576e5,Rte=31536e6,Fte=79488e5,Pte=78894e5,Nte=76896e5,zte=26784e5,Ite=26298e5,Bte=24192e5,Ote=6048e5,Hte=864e5,Ute=36e5,Gte=6e4,Yte=1e3,Vte=1,Xte=.001,Wte=24405875e-1,Zte=1-1e-6,Jte=10,jte="\u2212"});var d_=I((ug,nk)=>{(function(e,r){typeof ug=="object"&&typeof nk!="undefined"?r(ug):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(ug,(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 m=new ArrayBuffer(l),y=new Uint8Array(m);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)],y[f++]=c<<2|v>>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var qc=I((_Ee,ik)=>{"use strict";ik.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 vo=I(Fl=>{"use strict";var $te=d_().decode,Kte=qc(),p_=Array.isArray,Qte=ArrayBuffer,eae=DataView;function ok(e){return Qte.isView(e)&&!(e instanceof eae)}Fl.isTypedArray=ok;function fg(e){return p_(e)||ok(e)}Fl.isArrayOrTypedArray=fg;function rae(e){return!fg(e[0])}Fl.isArray1D=rae;Fl.ensureArray=function(e,r){return p_(e)||(e=[]),e.length=r,e};var Mi={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};Mi.uint8c=Mi.u1c;Mi.uint8=Mi.u1;Mi.int8=Mi.i1;Mi.uint16=Mi.u2;Mi.int16=Mi.i2;Mi.uint32=Mi.u4;Mi.int32=Mi.i4;Mi.float32=Mi.f4;Mi.float64=Mi.f8;function m_(e){return e.constructor===ArrayBuffer}Fl.isArrayBuffer=m_;Fl.decodeTypedArraySpec=function(e){var r=[],t=tae(e),a=t.dtype,n=Mi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;m_(o)||(o=$te(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],m=0;m<p;m++)for(r[m]=[],f=0;f<u;f++)r[m][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};Fl.isTypedArraySpec=function(e){return Kte(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||m_(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function tae(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Fl.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),p_(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};Fl.maxRowLength=function(e){return lk(e,Math.max,0)};Fl.minRowLength=function(e){return lk(e,Math.min,1/0)};function lk(e,r,t){if(fg(e))if(fg(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 cg=I((AEe,vk)=>{"use strict";var sk=da(),g_=vo().isArrayOrTypedArray;vk.exports=function(r,t){if(sk(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"?oae(r,t,a):{set:fk(r,a,t),get:uk(r,a),astr:t,parts:a,obj:r}};function uk(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]=uk(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!g_(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 aae=/(^|\.)args\[/;function y_(e,r){return e===void 0||e===null&&!r.match(aae)}function fk(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=y_(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!g_(n))throw"array index but container is not an array";if(s===-1){if(l=!iae(n,r.slice(u+1),a,t),l)break;return}if(!ck(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=nae(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 nae(e,r){var t=r;return sk(r)?t="["+r+"]":e&&(t="."+r),e+t}function iae(e,r,t,a){var n=g_(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:y_(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=y_(o,l)),s&&(i=!1),ck(e,f,u,s)&&fk(e[f],r,a.replace("-1",f))(o);return i}function ck(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function oae(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var mk=I((TEe,pk)=>{"use strict";var Av=cg(),lae=/^\w*$/,sae=0,hk=1,vg=2,dk=3,Rc=4;pk.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Av(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=lae.test(n),c={set:function(v,d){var p=d===null?Rc:sae;if(!o){if(!l||p===Rc)return;o=[],l.set(o)}var m=u[v];if(m===void 0){if(p===Rc)return;p=p|dk,m=o.length,u[v]=m}else d!==(f?o[m][n]:Av(o[m],n).get())&&(p=p|vg);var y=o[m]=o[m]||{};return y[a]=v,f?y[n]=d:Av(y,n).set(d),d!==null&&(p=p&~Rc),s[m]=s[m]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:Av(o[d],n).get()}},rename:function(v,d){var p=u[v];return p===void 0||(s[p]=s[p]|hk,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]|vg,c.set(v,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|dk;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[v]}else Av(p,n).set(null),s[d]=s[d]|vg|Rc;return c},constructUpdate:function(){for(var v,d,p={},m=Object.keys(s),y=0;y<m.length;y++)d=m[y],v=t+"["+d+"]",o[d]?(s[d]&hk&&(p[v+"."+a]=o[d][a]),s[d]&vg&&(f?p[v+"."+n]=s[d]&Rc?null:o[d][n]:p[v+"."+n]=s[d]&Rc?null:Av(o[d],n).get())):p[v]=null;return p}};return c}});var gk=I((MEe,yk)=>{"use strict";var uae=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,fae=/^[^\.\[\]]+$/;yk.exports=function(e,r){for(;r;){var t=e.match(uae);if(t)e=t[1];else if(e.match(fae))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 hg=I((kEe,bk)=>{"use strict";var cae=da();bk.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 cae(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var wk=I((SEe,_k)=>{"use strict";var xk=vo().isArrayOrTypedArray,h1=qc();_k.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(xk(n)&&xk(i)&&h1(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]&&h1(n[l])&&h1(i[l])&&e(i[l],n[l])}else h1(n)&&h1(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var Tv={};Ka(Tv,{mod:()=>vae,modHalf:()=>hae});function vae(e,r){let t=e%r;return t<0?t+r:t}function hae(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var Mv=$a(()=>{"use strict"});var Rn=I(m1=>{"use strict";var Ak=qc(),d1=Array.isArray;function dae(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}m1.extendFlat=function(...e){return p1(e,!1,!1,!1)};m1.extendDeep=function(...e){return p1(e,!0,!1,!1)};m1.extendDeepAll=function(...e){return p1(e,!0,!0,!1)};m1.extendDeepNoArrays=function(...e){return p1(e,!0,!1,!0)};function p1(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&d1(n)&&d1(e[1])&&n.length===0){if(v=dae(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=Object.prototype.hasOwnProperty.call(n,l)?n[l]:void 0,u=o[l],a&&d1(u)?n[l]=u:r&&u&&(Ak(u)||(f=d1(u)))?(f?(f=!1,c=s&&d1(s)?s:[]):c=s&&Ak(s)?s:{},n[l]=p1([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var Di=I((LEe,Tk)=>{"use strict";Tk.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 y1={};Ka(y1,{HOVERARROWSIZE:()=>mae,HOVERFONT:()=>bae,HOVERFONTSIZE:()=>gae,HOVERID:()=>_ae,HOVERMINTIME:()=>xae,HOVERTEXTPAD:()=>yae,YANGLE:()=>pae});var pae,mae,yae,gae,bae,xae,_ae,g1=$a(()=>{"use strict";pae=60,mae=6,yae=3,gae=13,bae="Arial, sans-serif",xae=50,_ae="-hover"});var kv=I((EEe,Sk)=>{"use strict";var Mk=(g1(),hr(y1)),kk=Di(),b_=kk({editType:"none"});b_.family.dflt=Mk.HOVERFONT;b_.size.dflt=Mk.HOVERFONTSIZE;Sk.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:b_,grouptitlefont:kk({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 dg=I((DEe,Ck)=>{"use strict";var wae=Di(),b1=kv().hoverlabel,x1=Rn().extendFlat;Ck.exports={hoverlabel:{bgcolor:x1({},b1.bgcolor,{arrayOk:!0}),bordercolor:x1({},b1.bordercolor,{arrayOk:!0}),font:wae({arrayOk:!0,editType:"none"}),align:x1({},b1.align,{arrayOk:!0}),namelength:x1({},b1.namelength,{arrayOk:!0}),showarrow:x1({},b1.showarrow),editType:"none"}}});var Pl=I((qEe,Lk)=>{"use strict";var Aae=Di(),Tae=dg();Lk.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:Aae({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:Tae.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var _C=I((BEe,xC)=>{var c4=Object.defineProperty,Mae=Object.getOwnPropertyDescriptor,kae=Object.getOwnPropertyNames,Sae=Object.prototype.hasOwnProperty,Cae=(e,r)=>{for(var t in r)c4(e,t,{get:r[t],enumerable:!0})},Lae=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of kae(r))!Sae.call(e,n)&&n!==t&&c4(e,n,{get:()=>r[n],enumerable:!(a=Mae(r,n))||a.enumerable});return e},Eae=e=>Lae(c4({},"__esModule",{value:!0}),e),Bk={};Cae(Bk,{a98:()=>_le,average:()=>kne,averageAngle:()=>gs,averageNumber:()=>tS,blend:()=>Moe,blerp:()=>V_,clampChroma:()=>Voe,clampGamut:()=>I4,clampRgb:()=>Yoe,colorsNamed:()=>Hk,convertA98ToXyz65:()=>X_,convertCubehelixToRgb:()=>eS,convertDlchToLab65:()=>Ag,convertHsiToRgb:()=>fS,convertHslToRgb:()=>hS,convertHsvToRgb:()=>y4,convertHwbToRgb:()=>yS,convertItpToXyz65:()=>Z_,convertJabToJch:()=>j_,convertJabToRgb:()=>A4,convertJabToXyz65:()=>_4,convertJchToJab:()=>$_,convertLab65ToDlch:()=>Tg,convertLab65ToRgb:()=>C1,convertLab65ToXyz65:()=>d4,convertLabToLch:()=>iu,convertLabToRgb:()=>M4,convertLabToXyz50:()=>Fg,convertLchToLab:()=>ou,convertLchuvToLuv:()=>C4,convertLrgbToOklab:()=>L4,convertLrgbToRgb:()=>Oc,convertLuvToLchuv:()=>S4,convertLuvToXyz50:()=>kg,convertOkhslToOklab:()=>e4,convertOkhsvToOklab:()=>t4,convertOklabToLrgb:()=>Fv,convertOklabToOkhsl:()=>Q_,convertOklabToOkhsv:()=>r4,convertOklabToRgb:()=>D1,convertP3ToXyz65:()=>a4,convertProphotoToXyz50:()=>o4,convertRec2020ToXyz65:()=>s4,convertRgbToCubehelix:()=>Qk,convertRgbToHsi:()=>cS,convertRgbToHsl:()=>dS,convertRgbToHsv:()=>g4,convertRgbToHwb:()=>gS,convertRgbToJab:()=>w4,convertRgbToLab:()=>k4,convertRgbToLab65:()=>L1,convertRgbToLrgb:()=>Bc,convertRgbToOklab:()=>E1,convertRgbToXyb:()=>XS,convertRgbToXyz50:()=>Rv,convertRgbToXyz65:()=>tf,convertRgbToYiq:()=>QS,convertXybToRgb:()=>WS,convertXyz50ToLab:()=>Pg,convertXyz50ToLuv:()=>Mg,convertXyz50ToProphoto:()=>i4,convertXyz50ToRgb:()=>qv,convertXyz50ToXyz65:()=>$S,convertXyz65ToA98:()=>W_,convertXyz65ToItp:()=>J_,convertXyz65ToJab:()=>x4,convertXyz65ToLab65:()=>p4,convertXyz65ToP3:()=>n4,convertXyz65ToRec2020:()=>l4,convertXyz65ToRgb:()=>af,convertXyz65ToXyz50:()=>jS,convertYiqToRgb:()=>eC,converter:()=>Qa,cubehelix:()=>wle,differenceCie76:()=>bne,differenceCie94:()=>xne,differenceCiede2000:()=>_ne,differenceCmc:()=>wne,differenceEuclidean:()=>Dv,differenceHueChroma:()=>S1,differenceHueNaive:()=>rS,differenceHueSaturation:()=>k1,differenceHyab:()=>Ane,differenceItp:()=>Mne,differenceKotsarenkoRamos:()=>Tne,displayable:()=>z4,dlab:()=>Ale,dlch:()=>Tle,easingGamma:()=>pC,easingInOutSine:()=>ble,easingMidpoint:()=>sC,easingSmootherstep:()=>yle,easingSmoothstep:()=>dle,easingSmoothstepInverse:()=>ple,filterBrightness:()=>ele,filterContrast:()=>rle,filterDeficiencyDeuter:()=>vle,filterDeficiencyProt:()=>cle,filterDeficiencyTrit:()=>hle,filterGrayscale:()=>nle,filterHueRotate:()=>ole,filterInvert:()=>ile,filterSaturate:()=>ale,filterSepia:()=>tle,fixupAlpha:()=>di,fixupHueDecreasing:()=>dne,fixupHueIncreasing:()=>hne,fixupHueLonger:()=>vne,fixupHueShorter:()=>ys,formatCss:()=>goe,formatHex:()=>boe,formatHex8:()=>xoe,formatHsl:()=>woe,formatRgb:()=>_oe,getMode:()=>ji,hsi:()=>Mle,hsl:()=>kle,hsv:()=>Sle,hwb:()=>Cle,inGamut:()=>Ig,interpolate:()=>Foe,interpolateWith:()=>fC,interpolateWithPremultipliedAlpha:()=>Poe,interpolatorLinear:()=>yt,interpolatorPiecewise:()=>$k,interpolatorSplineBasis:()=>vC,interpolatorSplineBasisClosed:()=>hC,interpolatorSplineMonotone:()=>Ioe,interpolatorSplineMonotone2:()=>Boe,interpolatorSplineMonotoneClosed:()=>Ooe,interpolatorSplineNatural:()=>Noe,interpolatorSplineNaturalClosed:()=>zoe,itp:()=>Lle,jab:()=>Ele,jch:()=>Dle,lab:()=>qle,lab65:()=>Rle,lch:()=>Fle,lch65:()=>Ple,lchuv:()=>Nle,lerp:()=>Pc,lrgb:()=>zle,luv:()=>Ile,mapAlphaDivide:()=>lC,mapAlphaMultiply:()=>oC,mapTransferGamma:()=>Eoe,mapTransferLinear:()=>F4,mapper:()=>q1,modeA98:()=>Kk,modeCubehelix:()=>aS,modeDlab:()=>sS,modeDlch:()=>uS,modeHsi:()=>vS,modeHsl:()=>m4,modeHsv:()=>b4,modeHwb:()=>xS,modeItp:()=>AS,modeJab:()=>TS,modeJch:()=>MS,modeLab:()=>Ng,modeLab65:()=>SS,modeLch:()=>zg,modeLch65:()=>LS,modeLchuv:()=>qS,modeLrgb:()=>RS,modeLuv:()=>FS,modeOkhsl:()=>NS,modeOkhsv:()=>zS,modeOklab:()=>BS,modeOklch:()=>HS,modeP3:()=>US,modeProphoto:()=>GS,modeRec2020:()=>YS,modeRgb:()=>Ic,modeXyb:()=>ZS,modeXyz50:()=>JS,modeXyz65:()=>KS,modeYiq:()=>rC,nearest:()=>Zoe,okhsl:()=>Ble,okhsv:()=>Ole,oklab:()=>Hle,oklch:()=>Ule,p3:()=>Gle,parse:()=>Zk,parseHex:()=>Gk,parseHsl:()=>mS,parseHslLegacy:()=>pS,parseHwb:()=>bS,parseLab:()=>kS,parseLch:()=>CS,parseNamed:()=>Uk,parseOklab:()=>IS,parseOklch:()=>OS,parseRgb:()=>Jk,parseRgbLegacy:()=>Yk,parseTransparent:()=>jk,prophoto:()=>Yle,random:()=>Loe,rec2020:()=>Vle,removeParser:()=>Yae,rgb:()=>Xle,round:()=>tC,samples:()=>Goe,serializeHex:()=>R4,serializeHex8:()=>aC,serializeHsl:()=>iC,serializeRgb:()=>nC,toGamut:()=>Xoe,trilerp:()=>rne,unlerp:()=>ene,useMode:()=>qa,useParser:()=>Xk,wcagContrast:()=>xle,wcagLuminance:()=>f4,xyb:()=>Wle,xyz50:()=>Zle,xyz65:()=>Jle,yiq:()=>jle});xC.exports=Eae(Bk);var Dae=(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}}},Ok=Dae,qae={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},Hk=qae,Rae=e=>Ok(Hk[e.toLowerCase()],6),Uk=Rae,Fae=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Pae=e=>{let r;return(r=e.match(Fae))?Ok(parseInt(r[1],16),r[1].length):void 0},Gk=Pae,Mo="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",REe=`(?:${Mo}|none)`,A1=`${Mo}%`,FEe=`(?:${Mo}%|none)`,v4=`(?:${Mo}%|${Mo})`,Nae=`(?:${Mo}%|${Mo}|none)`,zae=`(?:${Mo}(deg|grad|rad|turn)|${Mo})`,PEe=`(?:${Mo}(deg|grad|rad|turn)|${Mo}|none)`,Lv="\\s*,\\s*",NEe=new RegExp("^"+Nae+"$"),Iae=new RegExp(`^rgba?\\(\\s*${Mo}${Lv}${Mo}${Lv}${Mo}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Bae=new RegExp(`^rgba?\\(\\s*${A1}${Lv}${A1}${Lv}${A1}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Oae=e=>{let r={mode:"rgb"},t;if(t=e.match(Iae))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(Bae))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},Yk=Oae,Hae=(e,r)=>e===void 0?void 0:typeof e!="object"?Zk(e):e.mode!==void 0?e:r?Ga(ka({},e),{mode:r}):void 0,Nl=Hae,Uae=(e="rgb")=>r=>(r=Nl(r,e))!==void 0?r.mode===e?r:ms[r.mode][e]?ms[r.mode][e](r):e==="rgb"?ms[r.mode].rgb(r):ms.rgb[e](ms[r.mode].rgb(r)):void 0,Qa=Uae,ms={},Vk={},Ev=[],h4={},Gae=e=>e,qa=e=>(ms[e.mode]=ka(ka({},ms[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ms[r]||(ms[r]={}),ms[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=Gae)}),Vk[e.mode]=e,(e.parse||[]).forEach(r=>{Xk(r,e.mode)}),Qa(e.mode)),ji=e=>Vk[e],Xk=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");h4[e]=r}else typeof e=="function"&&Ev.indexOf(e)<0&&Ev.push(e)},Yae=e=>{if(typeof e=="string")delete h4[e];else if(typeof e=="function"){let r=Ev.indexOf(e);r>0&&Ev.splice(r,1)}},G_=/[^\x00-\x7F]|[a-zA-Z_]/,Vae=/[^\x00-\x7F]|[-\w]/,et={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},$t=0;function pg(e){let r=e[$t],t=e[$t+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[$t+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Y_(e){if($t>=e.length)return!1;let r=e[$t];if(G_.test(r))return!0;if(r==="-"){if(e.length-$t<2)return!1;let t=e[$t+1];return!!(t==="-"||G_.test(t))}return!1}var Xae={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function _1(e){let r="";if((e[$t]==="-"||e[$t]==="+")&&(r+=e[$t++]),r+=mg(e),e[$t]==="."&&/\d/.test(e[$t+1])&&(r+=e[$t++]+mg(e)),(e[$t]==="e"||e[$t]==="E")&&((e[$t+1]==="-"||e[$t+1]==="+")&&/\d/.test(e[$t+2])?r+=e[$t++]+e[$t++]+mg(e):/\d/.test(e[$t+1])&&(r+=e[$t++]+mg(e))),Y_(e)){let t=bg(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:et.Hue,value:r*Xae[t]}:void 0}return e[$t]==="%"?($t++,{type:et.Percentage,value:+r}):{type:et.Number,value:+r}}function mg(e){let r="";for(;/\d/.test(e[$t]);)r+=e[$t++];return r}function bg(e){let r="";for(;$t<e.length&&Vae.test(e[$t]);)r+=e[$t++];return r}function Wae(e){let r=bg(e);return e[$t]==="("?($t++,{type:et.Function,value:r}):r==="none"?{type:et.None,value:void 0}:{type:et.Ident,value:r}}function Zae(e=""){let r=e.trim(),t=[],a;for($t=0;$t<r.length;){if(a=r[$t++],a===`
`||a==="	"||a===" "){for(;$t<r.length&&(r[$t]===`
`||r[$t]==="	"||r[$t]===" ");)$t++;continue}if(a===",")return;if(a===")"){t.push({type:et.ParenClose});continue}if(a==="+"){if($t--,pg(r)){t.push(_1(r));continue}return}if(a==="-"){if($t--,pg(r)){t.push(_1(r));continue}if(Y_(r)){t.push({type:et.Ident,value:bg(r)});continue}return}if(a==="."){if($t--,pg(r)){t.push(_1(r));continue}return}if(a==="/"){for(;$t<r.length&&(r[$t]===`
`||r[$t]==="	"||r[$t]===" ");)$t++;let n;if(pg(r)&&(n=_1(r),n.type!==et.Hue)){t.push({type:et.Alpha,value:n});continue}if(Y_(r)&&bg(r)==="none"){t.push({type:et.Alpha,value:{type:et.None,value:void 0}});continue}return}if(/\d/.test(a)){$t--,t.push(_1(r));continue}if(G_.test(a)){$t--,t.push(Wae(r));continue}return}return t}function Jae(e){e._i=0;let r=e[e._i++];if(!r||r.type!==et.Function||r.value!=="color"||(r=e[e._i++],r.type!==et.Ident))return;let t=h4[r.value];if(!t)return;let a={mode:t},n=Wk(e,!1);if(!n)return;let i=ji(t).channels;for(let o=0,l,s;o<i.length;o++)l=n[o],s=i[o],l.type!==et.None&&(a[s]=l.type===et.Number?l.value:l.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function Wk(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===et.None||a.type===et.Number||a.type===et.Alpha||a.type===et.Percentage||r&&a.type===et.Hue){t.push(a);continue}if(a.type===et.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==et.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:et.None,value:void 0}),t.every(n=>n.type!==et.Alpha)?t:void 0}}function jae(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==et.Function)return;let a=Wk(e,r);if(a)return a.unshift(t.value),a}var $ae=e=>{if(typeof e!="string")return;let r=Zae(e),t=r?jae(r,!0):void 0,a,n=0,i=Ev.length;for(;n<i;)if((a=Ev[n++](e,t))!==void 0)return a;return r?Jae(r):void 0},Zk=$ae;function Kae(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===et.Hue||n.type===et.Hue||i.type===et.Hue))return a.type!==et.None&&(t.r=a.type===et.Number?a.value/255:a.value/100),n.type!==et.None&&(t.g=n.type===et.Number?n.value/255:n.value/100),i.type!==et.None&&(t.b=i.type===et.Number?i.value/255:i.value/100),o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var Jk=Kae,Qae=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,jk=Qae,Pc=(e,r,t)=>e+t*(r-e),ene=(e,r,t)=>(t-e)/(r-e),V_=(e,r,t,a,n,i)=>Pc(Pc(e,r,n),Pc(t,a,n),i),rne=(e,r,t,a,n,i,o,l,s,u,f)=>Pc(V_(e,r,t,a,s,u),V_(n,i,o,l,s,u),f),tne=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},$k=e=>r=>{let t=tne(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)}},yt=$k(Pc),di=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},ane={mode:"rgb",channels:["r","g","b","alpha"],parse:[Jk,Gk,Yk,Uk,jk,"srgb"],serialize:"srgb",interpolate:{r:yt,g:yt,b:yt,alpha:{use:yt,fixup:di}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ic=ane,x_=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),nne=e=>{let r=x_(e.r),t=x_(e.g),a=x_(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},X_=nne,__=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),ine=({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:__(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:__(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:__(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},W_=ine,w_=(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)},one=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:w_(e),g:w_(r),b:w_(t)};return a!==void 0&&(n.alpha=a),n},Bc=one,lne=e=>{let{r,g:t,b:a,alpha:n}=Bc(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},tf=lne,A_=(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},sne=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:A_(e),g:A_(r),b:A_(t)};return a!==void 0&&(i.alpha=a),i},Oc=sne,une=({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=Oc({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},af=une,fne=Ga(ka({},Ic),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>W_(tf(e)),xyz65:W_},toMode:{rgb:e=>af(X_(e)),xyz65:X_}}),Kk=fne,cne=e=>(e=e%360)<0?e+360:e,Oi=cne,Cg=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Oi(t);return a===0||e[a-1]===void 0?i:r(i-Oi(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),[]),ys=e=>Cg(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),vne=e=>Cg(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),hne=e=>Cg(e,r=>r>=0?r:r+360),dne=e=>Cg(e,r=>r<=0?r:r-360),qi=[-.14861,1.78277,-.29227,-.90649,1.97294,0],pne=Math.PI/180,mne=180/Math.PI,Ek=qi[3]*qi[4],Dk=qi[1]*qi[4],qk=qi[1]*qi[2]-qi[0]*qi[3],yne=({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=(qk*t+e*Ek-r*Dk)/(qk+Ek-Dk),i=t-n,o=(qi[4]*(r-n)-qi[2]*i)/qi[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(qi[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*mne-120),a!==void 0&&(l.alpha=a),l},Qk=yne,gne=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*pne,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*(qi[0]*o+qi[1]*l),n.g=t+i*(qi[2]*o+qi[3]*l),n.b=t+i*(qi[4]*o+qi[5]*l),a!==void 0&&(n.alpha=a),n},eS=gne,k1=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Oi(e.h),a=Oi(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},rS=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Oi(e.h),a=Oi(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},S1=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Oi(e.h),a=Oi(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Dv=(e="rgb",r=[1,1,1,0])=>{let t=ji(e),a=t.channels,n=t.difference,i=Qa(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))}},bne=()=>Dv("lab65"),xne=(e=1,r=.045,t=.015)=>{let a=Qa("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,m=Math.sqrt(d*d+p*p),y=Math.pow(s-v,2),b=Math.pow(c-m,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},_ne=(e=1,r=1,t=1)=>{let a=Qa("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,m=Math.sqrt(d*d+p*p),y=(c+m)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),T=u*(1+b),_=d*(1+b),x=Math.sqrt(T*T+f*f),w=Math.sqrt(_*_+p*p),k=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);k+=(k<0)*2*Math.PI;let M=Math.abs(_)+Math.abs(p)===0?0:Math.atan2(p,_);M+=(M<0)*2*Math.PI;let C=v-s,D=w-x,R=x*w===0?0:M-k;R-=(R>Math.PI)*2*Math.PI,R+=(R<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*w)*Math.sin(R/2),q=(s+v)/2,z=(x+w)/2,B;x*w===0?B=k+M:(B=(k+M)/2,B-=(Math.abs(k-M)>Math.PI)*Math.PI,B+=(B<0)*2*Math.PI);let U=Math.pow(q-50,2),G=1-.17*Math.cos(B-Math.PI/6)+.24*Math.cos(2*B)+.32*Math.cos(3*B+Math.PI/30)-.2*Math.cos(4*B-63*Math.PI/180),X=1+.015*U/Math.sqrt(20+U),Y=1+.045*z,V=1+.015*z*G,J=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*B-275)/25,2)),j=2*Math.sqrt(Math.pow(z,7)/(Math.pow(z,7)+Math.pow(25,7))),ee=-1*Math.sin(2*J)*j;return Math.sqrt(Math.pow(C/(e*X),2)+Math.pow(D/(r*Y),2)+Math.pow(P/(t*V),2)+ee*D/(r*Y)*P/(t*V))}},wne=(e=1,r=1)=>{let t=Qa("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,m=Math.sqrt(d*d+p*p),y=Math.pow(o-v,2),b=Math.pow(u-m,2),T=Math.pow(l-d,2)+Math.pow(s-p,2)-b,_=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)),w=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(_*x+1-_);return Math.sqrt(y/Math.pow(e*w,2)+b/Math.pow(r*k,2)+T/Math.pow(M,2))}},Ane=()=>{let e=Qa("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)}},Tne=()=>Dv("yiq",[.5053,.299,.1957]),Mne=()=>Dv("itp",[518400,129600,518400]),gs=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},tS=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},T_=e=>typeof e=="function";function kne(e,r="rgb",t){let a=ji(r),n=e.map(Qa(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;T_(t)?s=t:t&&T_(t[o])?s=t[o]:a.average&&T_(a.average[o])?s=a.average[o]:s=tS,i[o]=s(l,o)}return i},{mode:r})}var Sne={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Qk},toMode:{rgb:eS},interpolate:{h:{use:yt,fixup:ys},s:yt,l:yt,alpha:{use:yt,fixup:di}},difference:{h:k1},average:{h:gs}},aS=Sne,Cne=({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=Oi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},iu=Cne,Lne=({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},ou=Lne,nS=Math.pow(29,3)/Math.pow(3,3),iS=Math.pow(6,3)/Math.pow(29,3),hi={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Cv={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},zEe=Math.pow(29,3)/Math.pow(3,3),IEe=Math.pow(6,3)/Math.pow(29,3),M_=e=>Math.pow(e,3)>iS?Math.pow(e,3):(116*e-16)/nS,Ene=({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:M_(i)*Cv.X,y:M_(n)*Cv.Y,z:M_(o)*Cv.Z};return a!==void 0&&(l.alpha=a),l},d4=Ene,Dne=e=>af(d4(e)),C1=Dne,k_=e=>e>iS?Math.cbrt(e):(nS*e+16)/116,qne=({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=k_(e/Cv.X),i=k_(r/Cv.Y),o=k_(t/Cv.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},p4=qne,Rne=e=>{let r=p4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L1=Rne,xg=1,oS=1,M1=26/180*Math.PI,_g=Math.cos(M1),wg=Math.sin(M1),lS=100/Math.log(139/100),Fne=({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*xg/lS)-1)/.0039},i=(Math.exp(.0435*r*oS*xg)-1)/.075,o=i*Math.cos(t/180*Math.PI-M1),l=i*Math.sin(t/180*Math.PI-M1);return n.a=o*_g-l/.83*wg,n.b=o*wg+l/.83*_g,a!==void 0&&(n.alpha=a),n},Ag=Fne,Pne=({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*_g+t*wg,i=.83*(t*_g-r*wg),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:lS/xg*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*oS*xg)};return l.c&&(l.h=Oi((Math.atan2(i,n)+M1)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Tg=Pne,Rk=e=>Ag(iu(e,"dlch")),Fk=e=>ou(Tg(e),"dlab"),Nne={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Rk,rgb:e=>C1(Rk(e))},fromMode:{lab65:Fk,rgb:e=>Fk(L1(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:yt,a:yt,b:yt,alpha:{use:yt,fixup:di}}},sS=Nne,zne={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ag,dlab:e=>ou(e,"dlab"),rgb:e=>C1(Ag(e))},fromMode:{lab65:Tg,dlab:e=>iu(e,"dlch"),rgb:e=>Tg(L1(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:yt,c:yt,h:{use:yt,fixup:ys},alpha:{use:yt,fixup:di}},difference:{h:S1},average:{h:gs}},uS=zne;function fS({h:e,s:r,i:t,alpha:a}){e=Oi(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 cS({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 Ine={mode:"hsi",toMode:{rgb:fS},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:cS},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:yt,fixup:ys},s:yt,i:yt,alpha:{use:yt,fixup:di}},difference:{h:k1},average:{h:gs}},vS=Ine;function hS({h:e,s:r,l:t,alpha:a}){e=Oi(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 dS({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 Bne=(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}},One=Bne,Hne=new RegExp(`^hsla?\\(\\s*${zae}${Lv}${A1}${Lv}${A1}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Une=e=>{let r=e.match(Hne);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=One(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},pS=Une;function Gne(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Percentage)return;t.h=a.value}if(n.type!==et.None){if(n.type===et.Hue)return;t.s=n.value/100}if(i.type!==et.None){if(i.type===et.Hue)return;t.l=i.value/100}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var mS=Gne,Yne={mode:"hsl",toMode:{rgb:hS},fromMode:{rgb:dS},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[mS,pS],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:yt,fixup:ys},s:yt,l:yt,alpha:{use:yt,fixup:di}},difference:{h:k1},average:{h:gs}},m4=Yne;function y4({h:e,s:r,v:t,alpha:a}){e=Oi(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function g4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var Vne={mode:"hsv",toMode:{rgb:y4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:g4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:yt,fixup:ys},s:yt,v:yt,alpha:{use:yt,fixup:di}},difference:{h:k1},average:{h:gs}},b4=Vne;function yS({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 y4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function gS(e){let r=g4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function Xne(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Percentage)return;t.h=a.value}if(n.type!==et.None){if(n.type===et.Hue)return;t.w=n.value/100}if(i.type!==et.None){if(i.type===et.Hue)return;t.b=i.value/100}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var bS=Xne,Wne={mode:"hwb",toMode:{rgb:yS},fromMode:{rgb:gS},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[bS],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:yt,fixup:ys},w:yt,b:yt,alpha:{use:yt,fixup:di}},difference:{h:rS},average:{h:gs}},xS=Wne,_S=203,Lg=.1593017578125,wS=78.84375,Eg=.8359375,Dg=18.8515625,qg=18.6875;function S_(e){if(e<0)return 0;let r=Math.pow(e,1/wS);return 1e4*Math.pow(Math.max(0,r-Eg)/(Dg-qg*r),1/Lg)}function C_(e){if(e<0)return 0;let r=Math.pow(e/1e4,Lg);return Math.pow((Eg+Dg*r)/(1+qg*r),wS)}var L_=e=>Math.max(e/_S,0),Zne=({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=S_(e+.008609037037932761*r+.11102962500302593*t),i=S_(e-.00860903703793275*r-.11102962500302599*t),o=S_(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:L_(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:L_(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:L_(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},Z_=Zne,E_=(e=0)=>Math.max(e*_S,0),Jne=({x:e,y:r,z:t,alpha:a})=>{let n=E_(e),i=E_(r),o=E_(t),l=C_(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=C_(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=C_(.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},J_=Jne,jne={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Z_,rgb:e=>af(Z_(e))},fromMode:{xyz65:J_,rgb:e=>J_(tf(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:yt,t:yt,p:yt,alpha:{use:yt,fixup:di}}},AS=jne,$ne=134.03437499999998,Kne=16295499532821565e-27,D_=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Lg);return Math.pow((Eg+Dg*r)/(1+qg*r),$ne)},q_=(e=0)=>Math.max(e*203,0),Qne=({x:e,y:r,z:t,alpha:a})=>{e=q_(e),r=q_(r),t=q_(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=D_(.41478972*n+.579999*i+.014648*t),l=D_(-.20151*n+1.120649*i+.0531008*t),s=D_(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-Kne,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},x4=Qne,eie=134.03437499999998,Pk=16295499532821565e-27,R_=e=>{if(e<0)return 0;let r=Math.pow(e,1/eie);return 1e4*Math.pow((Eg-r)/(qg*r-Dg),1/Lg)},F_=e=>e/203,rie=({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+Pk)/(.44+.56*(e+Pk)),i=R_(n+.13860504*r+.058047316*t),o=R_(n-.13860504*r-.058047316*t),l=R_(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:F_(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:F_(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:F_(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},_4=rie,tie=e=>{let r=x4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},w4=tie,aie=e=>af(_4(e)),A4=aie,nie={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:w4,xyz65:x4},toMode:{rgb:A4,xyz65:_4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:yt,a:yt,b:yt,alpha:{use:yt,fixup:di}}},TS=nie,iie=({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=Oi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},j_=iie,oie=({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},$_=oie,lie={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:$_,rgb:e=>A4($_(e))},fromMode:{rgb:e=>j_(w4(e)),jab:j_},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:yt,fixup:ys},c:yt,j:yt,alpha:{use:yt,fixup:di}},difference:{h:S1},average:{h:gs}},MS=lie,Rg=Math.pow(29,3)/Math.pow(3,3),T4=Math.pow(6,3)/Math.pow(29,3),P_=e=>Math.pow(e,3)>T4?Math.pow(e,3):(116*e-16)/Rg,sie=({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:P_(i)*hi.X,y:P_(n)*hi.Y,z:P_(o)*hi.Z};return a!==void 0&&(l.alpha=a),l},Fg=sie,uie=({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=Oc({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},qv=uie,fie=e=>qv(Fg(e)),M4=fie,cie=e=>{let{r,g:t,b:a,alpha:n}=Bc(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},Rv=cie,N_=e=>e>T4?Math.cbrt(e):(Rg*e+16)/116,vie=({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=N_(e/hi.X),i=N_(r/hi.Y),o=N_(t/hi.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},Pg=vie,hie=e=>{let r=Pg(Rv(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},k4=hie;function die(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===et.Hue||n.type===et.Hue||i.type===et.Hue))return a.type!==et.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==et.None&&(t.a=n.type===et.Number?n.value:n.value*125/100),i.type!==et.None&&(t.b=i.type===et.Number?i.value:i.value*125/100),o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var kS=die,pie={mode:"lab",toMode:{xyz50:Fg,rgb:M4},fromMode:{xyz50:Pg,rgb:k4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[kS],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:yt,a:yt,b:yt,alpha:{use:yt,fixup:di}}},Ng=pie,mie=Ga(ka({},Ng),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:d4,rgb:C1},fromMode:{xyz65:p4,rgb:L1},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),SS=mie;function yie(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==et.None&&(t.c=Math.max(0,n.type===et.Number?n.value:n.value*150/100)),i.type!==et.None){if(i.type===et.Percentage)return;t.h=i.value}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var CS=yie,gie={mode:"lch",toMode:{lab:ou,rgb:e=>M4(ou(e))},fromMode:{rgb:e=>iu(k4(e)),lab:iu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[CS],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:yt,fixup:ys},c:yt,l:yt,alpha:{use:yt,fixup:di}},difference:{h:S1},average:{h:gs}},zg=gie,bie=Ga(ka({},zg),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ou(e,"lab65"),rgb:e=>C1(ou(e,"lab65"))},fromMode:{rgb:e=>iu(L1(e),"lch65"),lab65:e=>iu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),LS=bie,xie=({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=Oi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},S4=xie,_ie=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},C4=_ie,ES=(e,r,t)=>4*e/(e+15*r+3*t),DS=(e,r,t)=>9*r/(e+15*r+3*t),wie=ES(hi.X,hi.Y,hi.Z),Aie=DS(hi.X,hi.Y,hi.Z),Tie=e=>e<=T4?Rg*e:116*Math.cbrt(e)-16,Mie=({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=Tie(r/hi.Y),i=ES(e,r,t),o=DS(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-wie),o=13*n*(o-Aie));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Mg=Mie,kie=(e,r,t)=>4*e/(e+15*r+3*t),Sie=(e,r,t)=>9*r/(e+15*r+3*t),Cie=kie(hi.X,hi.Y,hi.Z),Lie=Sie(hi.X,hi.Y,hi.Z),Eie=({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)+Cie,i=t/(13*e)+Lie,o=hi.Y*(e<=8?e/Rg: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},kg=Eie,Die=e=>S4(Mg(Rv(e))),qie=e=>qv(kg(C4(e))),Rie={mode:"lchuv",toMode:{luv:C4,rgb:qie},fromMode:{rgb:Die,luv:S4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:yt,fixup:ys},c:yt,l:yt,alpha:{use:yt,fixup:di}},difference:{h:S1},average:{h:gs}},qS=Rie,Fie=Ga(ka({},Ic),{mode:"lrgb",toMode:{rgb:Oc},fromMode:{rgb:Bc},parse:["srgb-linear"],serialize:"srgb-linear"}),RS=Fie,Pie={mode:"luv",toMode:{xyz50:kg,rgb:e=>qv(kg(e))},fromMode:{xyz50:Mg,rgb:e=>Mg(Rv(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:yt,u:yt,v:yt,alpha:{use:yt,fixup:di}}},FS=Pie,Nie=({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},L4=Nie,zie=e=>{let r=L4(Bc(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},E1=zie,Iie=({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},Fv=Iie,Bie=e=>Oc(Fv(e)),D1=Bie;function K_(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Sg(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Oie(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,m=1+f*v,y=1+f*d,b=p*p*p,T=m*m*m,_=y*y*y,x=3*c*p*p,w=3*v*m*m,k=3*d*y*y,M=6*c*c*p,C=6*v*v*m,D=6*d*d*y,R=l*b+s*T+u*_,P=l*x+s*w+u*k,q=l*M+s*C+u*D;f=f-R*P/(P*P-.5*R*q)}return f}function E4(e,r){let t=Oie(e,r),a=Fv({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 Hie(e,r,t,a,n,i=null){i||(i=E4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,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 m=n*(1-o)+o*t,y=o*a,b=m+y*u,T=m+y*f,_=m+y*c,x=b*b*b,w=T*T*T,k=_*_*_,M=3*v*b*b,C=3*d*T*T,D=3*p*_*_,R=6*v*v*b,P=6*d*d*T,q=6*p*p*_,z=4.0767416621*x-3.3077115913*w+.2309699292*k-1,B=4.0767416621*M-3.3077115913*C+.2309699292*D,U=4.0767416621*R-3.3077115913*P+.2309699292*q,G=B/(B*B-.5*z*U),X=-z*G,Y=-1.2684380046*x+2.6097574011*w-.3413193965*k-1,V=-1.2684380046*M+2.6097574011*C-.3413193965*D,J=-1.2684380046*R+2.6097574011*P-.3413193965*q,j=V/(V*V-.5*Y*J),ee=-Y*j,pe=-.0041960863*x-.7034186147*w+1.707614701*k-1,ne=-.0041960863*M-.7034186147*C+1.707614701*D,ye=-.0041960863*R-.7034186147*P+1.707614701*q,te=ne/(ne*ne-.5*pe*ye),De=-pe*te;X=G>=0?X:1e6,ee=j>=0?ee:1e6,De=te>=0?De:1e6,o+=Math.min(X,Math.min(ee,De))}}}return o}function D4(e,r,t=null){t||(t=E4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function PS(e,r,t){let a=E4(r,t),n=Hie(r,t,e,1,e,a),i=D4(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 Q_(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:K_(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]=PS(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=Oi(Math.atan2(a,t)*180/Math.PI)),n}function e4(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:Sg(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]=PS(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 Uie=Ga(ka({},m4),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Q_,rgb:e=>Q_(E1(e))},toMode:{oklab:e4,rgb:e=>D1(e4(e))}}),NS=Uie;function r4(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]=D4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=Sg(v),m=d*p/v,y=Fv({l:p,a:i*m,b:o*m}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*K_(r)/r,r=K_(r);let T={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return T.s&&(T.h=Oi(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function t4(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]=D4(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=Sg(c),p=v*d/c,m=Fv({l:d,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),b=Sg(n*c),T=v*b/c;return r.l=b*y,r.a=T*i*y,r.b=T*o*y,r}var Gie=Ga(ka({},b4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:r4,rgb:e=>r4(E1(e))},toMode:{oklab:t4,rgb:e=>D1(t4(e))}}),zS=Gie;function Yie(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===et.Hue||n.type===et.Hue||i.type===et.Hue))return a.type!==et.None&&(t.l=Math.min(Math.max(0,a.type===et.Number?a.value:a.value/100),1)),n.type!==et.None&&(t.a=n.type===et.Number?n.value:n.value*.4/100),i.type!==et.None&&(t.b=i.type===et.Number?i.value:i.value*.4/100),o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var IS=Yie,Vie=Ga(ka({},Ng),{mode:"oklab",toMode:{lrgb:Fv,rgb:D1},fromMode:{lrgb:L4,rgb:E1},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[IS],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}`:""})`}),BS=Vie;function Xie(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Hue)return;t.l=Math.min(Math.max(0,a.type===et.Number?a.value:a.value/100),1)}if(n.type!==et.None&&(t.c=Math.max(0,n.type===et.Number?n.value:n.value*.4/100)),i.type!==et.None){if(i.type===et.Percentage)return;t.h=i.value}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var OS=Xie,Wie=Ga(ka({},zg),{mode:"oklch",toMode:{oklab:e=>ou(e,"oklab"),rgb:e=>D1(ou(e,"oklab"))},fromMode:{rgb:e=>iu(E1(e),"oklch"),oklab:e=>iu(e,"oklch")},parse:[OS],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]}}),HS=Wie,Zie=e=>{let{r,g:t,b:a,alpha:n}=Bc(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},a4=Zie,Jie=({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=Oc({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},n4=Jie,jie=Ga(ka({},Ic),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>n4(tf(e)),xyz65:n4},toMode:{rgb:e=>af(a4(e)),xyz65:a4}}),US=jie,z_=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},$ie=({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:z_(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:z_(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:z_(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},i4=$ie,I_=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},Kie=e=>{let r=I_(e.r),t=I_(e.g),a=I_(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},o4=Kie,Qie=Ga(ka({},Ic),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:i4,rgb:e=>i4(Rv(e))},toMode:{xyz50:o4,rgb:e=>qv(o4(e))}}),GS=Qie,Nk=1.09929682680944,eoe=.018053968510807,B_=e=>{let r=Math.abs(e);return r>eoe?(Math.sign(e)||1)*(Nk*Math.pow(r,.45)-(Nk-1)):4.5*e},roe=({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:B_(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:B_(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:B_(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},l4=roe,zk=1.09929682680944,toe=.018053968510807,O_=(e=0)=>{let r=Math.abs(e);return r<toe*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+zk-1)/zk,1/.45)},aoe=e=>{let r=O_(e.r),t=O_(e.g),a=O_(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},s4=aoe,noe=Ga(ka({},Ic),{mode:"rec2020",fromMode:{xyz65:l4,rgb:e=>l4(tf(e))},toMode:{xyz65:s4,rgb:e=>af(s4(e))},parse:["rec2020"],serialize:"rec2020"}),YS=noe,Nc=.0037930732552754493,VS=Math.cbrt(Nc),H_=e=>Math.cbrt(e)-VS,ioe=e=>{let{r,g:t,b:a,alpha:n}=Bc(e),i=H_(.3*r+.622*t+.078*a+Nc),o=H_(.23*r+.692*t+.078*a+Nc),l=H_(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Nc),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},XS=ioe,U_=e=>Math.pow(e+VS,3),ooe=({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=U_(e+r)-Nc,i=U_(r-e)-Nc,o=U_(t+r)-Nc,l=Oc({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},WS=ooe,loe={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:WS},fromMode:{rgb:XS},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:yt,y:yt,b:yt,alpha:{use:yt,fixup:di}}},ZS=loe,soe={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:qv,lab:Pg},fromMode:{rgb:Rv,lab:Fg},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:yt,y:yt,z:yt,alpha:{use:yt,fixup:di}}},JS=soe,uoe=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},jS=uoe,foe=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},$S=foe,coe={mode:"xyz65",toMode:{rgb:af,xyz50:jS},fromMode:{rgb:tf,xyz50:$S},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:yt,y:yt,z:yt,alpha:{use:yt,fixup:di}}},KS=coe,voe=({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},QS=voe,hoe=({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},eC=hoe,doe={mode:"yiq",toMode:{rgb:eC},fromMode:{rgb:QS},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:yt,i:yt,q:yt,alpha:{use:yt,fixup:di}}},rC=doe,poe=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,moe=(e=4)=>r=>typeof r=="number"?poe(r,e):r,tC=moe,w1=tC(2),T1=e=>Math.max(0,Math.min(1,e||0)),zc=e=>Math.round(T1(e)*255),q4=Qa("rgb"),yoe=Qa("hsl"),R4=e=>{if(e===void 0)return;let r=zc(e.r),t=zc(e.g),a=zc(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},aC=e=>{if(e===void 0)return;let r=zc(e.alpha!==void 0?e.alpha:1);return R4(e)+(256|r).toString(16).slice(1)},nC=e=>{if(e===void 0)return;let r=zc(e.r),t=zc(e.g),a=zc(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${w1(T1(e.alpha))})`},iC=e=>{if(e===void 0)return;let r=w1(e.h||0),t=w1(T1(e.s)*100)+"%",a=w1(T1(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${w1(T1(e.alpha))})`},goe=e=>{let r=Nl(e);if(!r)return;let t=ji(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)},boe=e=>R4(q4(e)),xoe=e=>aC(q4(e)),_oe=e=>nC(q4(e)),woe=e=>iC(yoe(e)),Aoe={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},Toe=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Aoe[r],n=Qa(t),i=ji(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})})},Moe=Toe,koe=([e,r])=>e+Math.random()*(r-e),Soe=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Coe=(e="rgb",r={})=>{let t=ji(e),a=Soe(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=koe(a[i]||t.ranges[i])),n),{mode:e})},Loe=Coe,q1=(e,r="rgb",t=!1)=>{let a=r?ji(r).channels:null,n=r?Qa(r):Nl;return i=>{let o=n(i);if(!o)return;let l=(a||ji(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=Nl(i);return s&&s.mode!==l.mode?Qa(s.mode)(l):l}},oC=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,lC=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,F4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Eoe=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Doe=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},qoe=Doe,Roe=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),sC=Roe,yg=e=>typeof e=="function",Fc=e=>e&&typeof e=="object",Ik=e=>typeof e=="number",uC=(e,r="rgb",t,a)=>{let n=ji(r),i=Qa(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):Ik(v)||yg(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),qoe(l);let u=n.channels.reduce((v,d)=>{let p;return Fc(t)&&Fc(t[d])&&t[d].fixup?p=t[d].fixup:Fc(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=m=>m,v[d]=p(o.map(m=>m[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return yg(t)?p=t:Fc(t)&&yg(t[d])?p=t[d]:Fc(t)&&Fc(t[d])&&t[d].use?p=t[d].use:yg(n.interpolate[d])?p=n.interpolate[d]:Fc(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],m=l[d]-p,y=(v-p)/m,b=s[d]||s[0];b!==void 0&&(Ik(b)&&(b=sC((b-p)/m)),y=b(y));let T=(d-1+y)/c;return n.channels.reduce((_,x)=>{let w=f[x](T);return w!==void 0&&(_[x]=w),_},{mode:r})}},Foe=(e,r="rgb",t)=>uC(e,r,t),fC=(e,r)=>(t,a="rgb",n)=>{let i=r?q1(r,a):void 0,o=uC(t,a,n,e);return i?l=>i(o(l)):o},Poe=fC(oC,lC),gg=(e,r)=>(e+r)%r,cC=(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},vC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return cC(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)},hC=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return cC(e[gg(a-1,e.length)],e[gg(a,e.length)],e[gg(a+1,e.length)],e[gg(a+2,e.length)],(r-a/t)*t)},dC=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},Noe=e=>vC(dC(e)),zoe=e=>hC(dC(e)),Sv=Math.sign,u4=Math.min,Ho=Math.abs,P4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i<r;i++)t.push((e[i+1]-e[i])*r),a.push(i>0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(Sv(t[i-1])+Sv(t[i]))*u4(Ho(t[i-1]),Ho(t[i]),.5*Ho(a[i])):void 0);return[t,a,n]},N4=(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]}},Ioe=e=>{if(e.length<3)return yt(e);let r=e.length-1,[t,,a]=P4(e);return a[0]=t[0],a[r]=t[r-1],N4(e,a,t)},Boe=e=>{if(e.length<3)return yt(e);let r=e.length-1,[t,a,n]=P4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:Ho(a[0])>2*Ho(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:Ho(a[r])>2*Ho(t[r-1])?2*t[r-1]:a[r],N4(e,n,t)},Ooe=e=>{let r=e.length-1,[t,a,n]=P4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(Sv(i)+Sv(t[0]))*u4(Ho(i),Ho(t[0]),.5*Ho(a[0])),n[r]=(Sv(t[r-1])+Sv(o))*u4(Ho(t[r-1]),Ho(o),.5*Ho(a[r])),N4(e,n,t)},Hoe=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),pC=Hoe,Uoe=(e=2,r=1)=>{let t=pC(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},Goe=Uoe,mC=Qa("rgb"),yC=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},gC=e=>yC(mC(e)),bC=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function z4(e){return bC(mC(e))}function Ig(e="rgb"){let{gamut:r}=ji(e);if(!r)return a=>!0;let t=Qa(typeof r=="string"?r:e);return a=>bC(t(a))}function Yoe(e){return e=Nl(e),e===void 0||z4(e)?e:Qa(e.mode)(gC(e))}function I4(e="rgb"){let{gamut:r}=ji(e);if(!r)return i=>Nl(i);let t=typeof r=="string"?r:e,a=Qa(t),n=Ig(t);return i=>{let o=Nl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=yC(l);return o.mode===s.mode?s:Qa(o.mode)(s)}}function Voe(e,r="lch",t="rgb"){e=Nl(e);let a=t==="rgb"?z4:Ig(t),n=t==="rgb"?gC:I4(t);if(e===void 0||a(e))return e;let i=Qa(e.mode);e=Qa(r)(e);let o=Ga(ka({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=ji(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:Ga(ka({},o),{c}))}function Xoe(e="rgb",r="oklch",t=Dv("oklch"),a=.02){let n=Qa(e),i=ji(e);if(!i.gamut)return f=>n(f);let o=Ig(e),l=I4(e),s=Qa(r),{ranges:u}=ji(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Nl(f),f===void 0)return;let c=ka({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Ga(ka({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ga(ka({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;d-v>p;)c.c=(v+d)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?v=c.c:d=c.c;return n(o(c)?c:m)}}var Woe=(e,r=Dv(),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]))},Zoe=Woe,B4=e=>Math.max(e,0),O4=e=>Math.max(Math.min(e,1),0),Joe=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),joe=e=>{let r=1-O4(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]},$oe=e=>{let r=B4(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},Koe=e=>{let r=1-O4(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]},Qoe=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]},Bg=(e,r,t=!1)=>{let a=Qa(r),n=ji(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=Nl(i);return f&&l.mode!==f.mode?Qa(f.mode)(l):l}},ele=(e=1,r="rgb")=>{let t=B4(e);return q1(F4(t),r,!0)},rle=(e=1,r="rgb")=>{let t=B4(e);return q1(F4(t,(1-t)/2),r,!0)},tle=(e=1,r="rgb")=>Bg(joe(e),r,!0),ale=(e=1,r="rgb")=>Bg($oe(e),r,!0),nle=(e=1,r="rgb")=>Bg(Koe(e),r,!0),ile=(e=1,r="rgb")=>{let t=O4(e);return q1((a,n)=>n==="alpha"?a:Joe(t,1-t,a),r,!0)},ole=(e=0,r="rgb")=>Bg(Qoe(e),r,!0),lle=Qa("rgb"),sle=[[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]],ule=[[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]],fle=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],H4=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&a<e.length-1){let o=e[a+1];i=i.map((l,s)=>Pc(i[s],o[s],n))}return o=>{let l=Nl(o);if(l===void 0)return;let{r:s,g:u,b:f}=lle(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),Qa(l.mode)(c)}},cle=(e=1)=>H4(sle,e),vle=(e=1)=>H4(ule,e),hle=(e=1)=>H4(fle,e),dle=e=>e*e*(3-2*e),ple=e=>.5-Math.sin(Math.asin(1-2*e)/3),mle=e=>e*e*e*(e*(e*6-15)+10),yle=mle,gle=e=>(1-Math.cos(e*Math.PI))/2,ble=gle;function f4(e){let r=Qa("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function xle(e,r){let t=f4(e),a=f4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var _le=qa(Kk),wle=qa(aS),Ale=qa(sS),Tle=qa(uS),Mle=qa(vS),kle=qa(m4),Sle=qa(b4),Cle=qa(xS),Lle=qa(AS),Ele=qa(TS),Dle=qa(MS),qle=qa(Ng),Rle=qa(SS),Fle=qa(zg),Ple=qa(LS),Nle=qa(qS),zle=qa(RS),Ile=qa(FS),Ble=qa(NS),Ole=qa(zS),Hle=qa(BS),Ule=qa(HS),Gle=qa(US),Yle=qa(GS),Vle=qa(YS),Xle=qa(Ic),Wle=qa(ZS),Zle=qa(JS),Jle=qa(KS),jle=qa(rC)});var U4={};Ka(U4,{default:()=>Kle});var $le,Kle,G4=$a(()=>{"use strict";$le={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(" ")}},Kle=$le});var nf=I((UEe,kC)=>{"use strict";var{format:Qle,width:ese,height:rse,scale:tse}=(G4(),hr(U4)).default,wC=tse,{dflt:HEe}=wC,ase=XM(wC,["dflt"]),AC={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:Qle,filename:{valType:"string"},width:ese,height:rse,scale:ase},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:{}}},TC={};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(AC,TC);kC.exports={configAttributes:AC,dfltConfig:TC}});var V4=I((YEe,SC)=>{"use strict";var Y4=sa(),nse=da(),R1=[];SC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||R1.indexOf(e)!==-1)return;R1.push(e);var a=1e3;nse(r)?a=r:r==="long"&&(a=3e3);var n=Y4.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(R1);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=R1.indexOf(u);f!==-1&&R1.splice(f,1),Y4.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Y4.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 of=I((VEe,CC)=>{"use strict";var Pv=nf().dfltConfig,X4=V4(),W4=CC.exports={};W4.log=function(){var e;if(Pv.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Pv.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);X4(t.join("<br>"),"long")}};W4.warn=function(){var e;if(Pv.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Pv.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);X4(t.join("<br>"),"stick")}};W4.error=function(){var e;if(Pv.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(Pv.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);X4(t.join("<br>"),"stick")}}});var bs=I(Hc=>{"use strict";Hc.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Hc.defaultLine="#444";Hc.lightLine="#eee";Hc.background="#fff";Hc.borderLine="#BEC8D9";Hc.lightFraction=1e3/11});var Kt=I((WEe,zC)=>{"use strict";var{converter:LC,formatHex:ise,formatRgb:ose,wcagContrast:lse,wcagLuminance:sse}=_C(),{isArrayOrTypedArray:EC}=vo(),{warn:use}=of(),{background:P1,defaultLine:j4,defaults:fse,lightLine:cse}=bs(),DC=LC("rgb"),vse=LC("hsl"),qC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return DC(r)}catch(t){return}},$i=e=>e>0?e>1?1:e:0,hse={mode:"rgb",r:0,g:0,b:0,alpha:1},Z4=e=>Math.round(e*255e6)/255e6,RC=e=>Ga(ka({},e),{r:Z4(e.r),g:Z4(e.g),b:Z4(e.b)}),Uo=e=>ose(RC(e)),dse=e=>ise(RC(e)),pse=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:EC(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},An=(e,r)=>{var a;let t=qC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&use(`Invalid color specifier: ${pse(e)}. Defaulting to "#000"`),hse)},F1=e=>Uo(Ga(ka({},An(e)),{alpha:1})),mse=e=>e?An(e).alpha:0,FC=e=>EC(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),yse=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}},gse=(e,r)=>{let t=FC(e)?yse(e):An(e,!0),a=[$i(t.r),$i(t.g),$i(t.b),$i(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},bse=(e,r)=>Uo(Ga(ka({},An(e)),{alpha:$i(r)})),PC=(e,r)=>{let t=An(e),a=t.alpha;if(a===1)return Uo(t);let n=An(r||P1),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return Uo({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},xse=(e,r,t)=>{let a=An(e),n=An(r),i=(o,l)=>t*o+(1-t)*l;return Uo({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},J4=(e,r)=>{let t=An(e),a=vse(t)||{mode:"hsl",h:0,s:0,l:0};return Uo(DC(Ga(ka({},a),{l:$i((a.l*100+r)/100),alpha:t.alpha})))},Og=(e,r)=>lse(An(e),An(r)),NC=e=>Og(e,P1)>Og(e,j4),_se=Uo(An(P1)),wse=Uo(An(j4)),Ase=(e,r,t)=>(An(e).alpha!==1&&(e=PC(e,P1)),NC(e)?r?J4(e,r):_se:t?J4(e,-t):wse),Tse=(e,r)=>{e.style({stroke:F1(r),"stroke-opacity":An(r).alpha})},Mse=(e,r)=>{e.style({fill:F1(r),"fill-opacity":An(r).alpha})},kse=(e,r)=>!!(e&&r&&F1(e)===F1(r)),Sse=e=>qC(e)!==void 0,Cse=(e,r)=>{r=r===0?0:r||10;let t=An(e),a=r/100;return Uo(Ga(ka({},t),{r:$i(t.r+a),g:$i(t.g+a),b:$i(t.b+a)}))},Lse=(e,r,t)=>{let a=An(e),n=An(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return Uo({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})},Ese=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=Og(e,n);i>a&&(a=i,t=Uo(An(n)))}return t},Dse=e=>Uo(An(e)),qse=e=>dse(An(e)).toUpperCase(),Rse=e=>{let r=An(e);return[$i(r.r)*255,$i(r.g)*255,$i(r.b)*255,$i(r.alpha)]},Fse=([e,r,t,a])=>Uo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Pse=e=>{let r=An(e);return sse({mode:"rgb",r:$i(r.r),g:$i(r.g),b:$i(r.b)})};zC.exports={addOpacity:bse,adjustLightness:J4,background:P1,brighten:Cse,combine:PC,contrast:Ase,defaultLine:j4,defaults:fse,equals:kse,fill:Mse,hexString:qse,interpolate:xse,isChannelArray:FC,isDark:NC,isValid:Sse,lightLine:cse,luminosity:Pse,mix:Lse,mostReadable:Ese,normalize:gse,opacity:mse,parse:An,rgb:F1,rgbaArray:Rse,rgbaArrayToString:Fse,rgbaString:Dse,stroke:Tse,wcagContrast:Og}});var Uc=I((JEe,OC)=>{"use strict";var Nse=Kt(),Hg={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)"]]},IC=Hg.RdBu;function zse(e,r){if(r||(r=IC),!e)return r;function t(){try{e=Hg[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),BC(e)?e:r}function BC(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||!Nse.isValid(a[1]))return!1;r=+a[0]}return!0}function Ise(e){return Hg[e]!==void 0?!0:BC(e)}OC.exports={scales:Hg,defaultScale:IC,get:zse,isValid:Ise}});var Nv={};Ka(Nv,{DESELECTDIM:()=>Hse,HIDE_PLACEHOLDER:()=>Ose,SHOW_PLACEHOLDER:()=>Bse});var Bse,Ose,Hse,zv=$a(()=>{"use strict";Bse=100,Ose=1e3,Hse=.2});var N1={};Ka(N1,{counter:()=>Gc});function Gc(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+$4+"y"+$4+n):new RegExp(i+e+$4+n)}var $4,Iv=$a(()=>{"use strict";$4="([2-9]|[1-9][0-9]+)?"});var GC=I(ko=>{"use strict";var K4=da(),HC=Rn().extendFlat,Use=Pl(),Gse=Uc(),Q4=Kt(),Yse=(zv(),hr(Nv)).DESELECTDIM,Bv=cg(),UC=(Iv(),hr(N1)).counter,Vse=(Mv(),hr(Tv)).modHalf,zl=vo().isArrayOrTypedArray,lf=vo().isTypedArraySpec,sf=vo().decodeTypedArraySpec;ko.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(zl(e)?e:lf(e)?sf(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){lf(e)&&(e=sf(e)),!K4(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}lf(e)&&(e=sf(e)),e%1||!K4(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){lf(e)&&(e=sf(e)),Q4.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=>Q4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Gse.get(e,t))}},angle:{coerceFunction:function(e,r,t){lf(e)&&(e=sf(e)),e==="auto"?r.set("auto"):K4(e)?r.set(Vse(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||UC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&zl(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:!!UC(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(lf(e)?sf(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(T,_,x){var w,k={set:function(M){w=M}};return x===void 0&&(x=_.dflt),ko.valObjectMeta[_.valType].coerceFunction(T,k,x,_),w}if(lf(e)&&(e=sf(e)),!zl(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&zl(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&zl(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,v,d,p,m,y,b;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=zl(e[v])?e[v]:[],f?y=o.length:s?y=o[v].length:y=p.length,d=0;d<y;d++)f?m=o[d]:s?m=o[v][d]:m=o,b=n(p[d],m,(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(!zl(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(!zl(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!Ug(e[i][o],a?t[i][o]:t))return!1}else if(!Ug(e[i],a?t[i]:t))return!1;return!0}}};ko.coerce=function(e,r,t,a,n){var i=Bv(t,a).get(),o=Bv(e,a),l=Bv(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=Bv(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(zl(s))return l.set(s),s;if(lf(s))return s=sf(s),l.set(s),s}var f=ko.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!Ug(s,i)&&(s=Bv(u,a).get(),f(s,l,n,i),c=l.get()),c};ko.coerce2=function(e,r,t,a,n){var i=Bv(e,a),o=ko.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};ko.coerceFont=function(e,r,t,a){a||(a={}),t=HC({},t),t=HC(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};ko.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?Q4.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};ko.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:Use,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 ko.coerce(e,r,n,"hoverinfo",o)};ko.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!zl(t)&&!e.selected&&!e.unselected&&(a=t,n=Yse*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function Ug(e,r){var t=ko.valObjectMeta[r.valType];if(r.arrayOk&&zl(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}ko.validate=Ug});var Gg=I(($Ee,YC)=>{"use strict";YC.exports=function(){}});var e6=I((KEe,VC)=>{"use strict";VC.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 WC=I((QEe,XC)=>{XC.exports=Xse;function Xse(){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 JC=I((eDe,ZC)=>{ZC.exports=Wse;function Wse(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 $C=I((rDe,jC)=>{jC.exports=Zse;function Zse(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 r6=I((tDe,KC)=>{KC.exports=Jse;function Jse(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 eL=I((aDe,QC)=>{QC.exports=jse;function jse(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 tL=I((nDe,rL)=>{rL.exports=$se;function $se(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],m=r[13],y=r[14],b=r[15],T=t*l-a*o,_=t*s-n*o,x=t*u-i*o,w=a*s-n*l,k=a*u-i*l,M=n*u-i*s,C=f*m-c*p,D=f*y-v*p,R=f*b-d*p,P=c*y-v*m,q=c*b-d*m,z=v*b-d*y,B=T*z-_*q+x*P+w*R-k*D+M*C;return B?(B=1/B,e[0]=(l*z-s*q+u*P)*B,e[1]=(n*q-a*z-i*P)*B,e[2]=(m*M-y*k+b*w)*B,e[3]=(v*k-c*M-d*w)*B,e[4]=(s*R-o*z-u*D)*B,e[5]=(t*z-n*R+i*D)*B,e[6]=(y*x-p*M-b*_)*B,e[7]=(f*M-v*x+d*_)*B,e[8]=(o*q-l*R+u*C)*B,e[9]=(a*R-t*q-i*C)*B,e[10]=(p*k-m*x+b*T)*B,e[11]=(c*x-f*k-d*T)*B,e[12]=(l*D-o*P-s*C)*B,e[13]=(t*P-a*D+n*C)*B,e[14]=(m*_-p*w-y*T)*B,e[15]=(f*w-c*_+v*T)*B,e):null}});var nL=I((iDe,aL)=>{aL.exports=Kse;function Kse(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],m=r[13],y=r[14],b=r[15];return e[0]=l*(v*b-d*y)-c*(s*b-u*y)+m*(s*d-u*v),e[1]=-(a*(v*b-d*y)-c*(n*b-i*y)+m*(n*d-i*v)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+m*(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*y)-f*(s*b-u*y)+p*(s*d-u*v)),e[5]=t*(v*b-d*y)-f*(n*b-i*y)+p*(n*d-i*v),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+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*m)-f*(l*b-u*m)+p*(l*d-u*c),e[9]=-(t*(c*b-d*m)-f*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(l*b-u*m)-o*(a*b-i*m)+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*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var oL=I((oDe,iL)=>{iL.exports=Qse;function Qse(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],m=e[14],y=e[15],b=r*o-t*i,T=r*l-a*i,_=r*s-n*i,x=t*l-a*o,w=t*s-n*o,k=a*s-n*l,M=u*p-f*d,C=u*m-c*d,D=u*y-v*d,R=f*m-c*p,P=f*y-v*p,q=c*y-v*m;return b*q-T*P+_*R+x*D-w*C+k*M}});var sL=I((lDe,lL)=>{lL.exports=eue;function eue(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],m=r[12],y=r[13],b=r[14],T=r[15],_=t[0],x=t[1],w=t[2],k=t[3];return e[0]=_*a+x*l+w*c+k*m,e[1]=_*n+x*s+w*v+k*y,e[2]=_*i+x*u+w*d+k*b,e[3]=_*o+x*f+w*p+k*T,_=t[4],x=t[5],w=t[6],k=t[7],e[4]=_*a+x*l+w*c+k*m,e[5]=_*n+x*s+w*v+k*y,e[6]=_*i+x*u+w*d+k*b,e[7]=_*o+x*f+w*p+k*T,_=t[8],x=t[9],w=t[10],k=t[11],e[8]=_*a+x*l+w*c+k*m,e[9]=_*n+x*s+w*v+k*y,e[10]=_*i+x*u+w*d+k*b,e[11]=_*o+x*f+w*p+k*T,_=t[12],x=t[13],w=t[14],k=t[15],e[12]=_*a+x*l+w*c+k*m,e[13]=_*n+x*s+w*v+k*y,e[14]=_*i+x*u+w*d+k*b,e[15]=_*o+x*f+w*p+k*T,e}});var fL=I((sDe,uL)=>{uL.exports=rue;function rue(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var vL=I((uDe,cL)=>{cL.exports=tue;function tue(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 dL=I((fDe,hL)=>{hL.exports=aue;function aue(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,m,y,b,T,_,x,w,k,M,C,D,R,P,q,z,B,U;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],m=r[4],y=r[5],b=r[6],T=r[7],_=r[8],x=r[9],w=r[10],k=r[11],M=n*n*f+u,C=i*n*f+o*s,D=o*n*f-i*s,R=n*i*f-o*s,P=i*i*f+u,q=o*i*f+n*s,z=n*o*f+i*s,B=i*o*f-n*s,U=o*o*f+u,e[0]=c*M+m*C+_*D,e[1]=v*M+y*C+x*D,e[2]=d*M+b*C+w*D,e[3]=p*M+T*C+k*D,e[4]=c*R+m*P+_*q,e[5]=v*R+y*P+x*q,e[6]=d*R+b*P+w*q,e[7]=p*R+T*P+k*q,e[8]=c*z+m*B+_*U,e[9]=v*z+y*B+x*U,e[10]=d*z+b*B+w*U,e[11]=p*z+T*B+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var mL=I((cDe,pL)=>{pL.exports=nue;function nue(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 gL=I((vDe,yL)=>{yL.exports=iue;function iue(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 xL=I((hDe,bL)=>{bL.exports=oue;function oue(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 wL=I((dDe,_L)=>{_L.exports=lue;function lue(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 TL=I((pDe,AL)=>{AL.exports=sue;function sue(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,m=i*u,y=o*l,b=o*s,T=o*u;return e[0]=1-(d+m),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+b,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var kL=I((mDe,ML)=>{ML.exports=uue;function uue(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 CL=I((yDe,SL)=>{SL.exports=fue;function fue(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 EL=I((gDe,LL)=>{LL.exports=cue;function cue(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 qL=I((bDe,DL)=>{DL.exports=vue;function vue(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 FL=I((xDe,RL)=>{RL.exports=hue;function hue(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 NL=I((_De,PL)=>{PL.exports=due;function due(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,m=i*o,y=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var IL=I((wDe,zL)=>{zL.exports=pue;function pue(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 OL=I((ADe,BL)=>{BL.exports=mue;function mue(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 UL=I((TDe,HL)=>{HL.exports=yue;function yue(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 YL=I((MDe,GL)=>{GL.exports=gue;function gue(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 XL=I((kDe,VL)=>{var bue=r6();VL.exports=xue;function xue(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],b=a[0],T=a[1],_=a[2],x=t[0],w=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-w)<1e-6&&Math.abs(y-k)<1e-6?bue(e):(f=p-x,c=m-w,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-_*c,i=_*f-b*v,o=b*c-T*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*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var ZL=I((SDe,WL)=>{WL.exports=_ue;function _ue(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 t6=I((CDe,JL)=>{JL.exports={create:WC(),clone:JC(),copy:$C(),identity:r6(),transpose:eL(),invert:tL(),adjoint:nL(),determinant:oL(),multiply:sL(),translate:fL(),scale:vL(),rotate:dL(),rotateX:mL(),rotateY:gL(),rotateZ:xL(),fromRotation:wL(),fromRotationTranslation:TL(),fromScaling:kL(),fromTranslation:CL(),fromXRotation:EL(),fromYRotation:qL(),fromZRotation:FL(),fromQuat:NL(),frustum:IL(),perspective:OL(),perspectiveFromFieldOfView:UL(),ortho:YL(),lookAt:XL(),str:ZL()}});var Yg=I(Fn=>{"use strict";var wue=t6();Fn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};Fn.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};Fn.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]=Fn.dot(e[n],r);else if(r[0].length){var i=Fn.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=Fn.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};Fn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};Fn.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]]};Fn.rotationXYMatrix=function(e,r,t){return Fn.dot(Fn.dot(Fn.translationMatrix(r,t),Fn.rotationMatrix(e)),Fn.translationMatrix(-r,-t))};Fn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return Fn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};Fn.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 Fn.dot(e,[t[0],t[1],1]).slice(0,2)}};Fn.apply2DTransform2=function(e){var r=Fn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};Fn.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]};Fn.inverseTransformMatrix=function(e){var r=[];return wue.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 z1=I((EDe,rE)=>{"use strict";var Aue=sa(),jL=of(),Tue=Yg(),Mue=t6();function kue(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 Sue(e){var r=Aue.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $L(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Cue(e,r){KL("global",e,r)}function KL(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):jL.warn("addStyleRule failed"):jL.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Lue(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$L(t)}function Eue(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 Due(e){var r=eE(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=QL(a);if(n){var i=Tue.convertCssMatrix(n);t=Mue.multiply(t,t,i)}}),t}function QL(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 eE(e){for(var r=[];que(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function que(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Rue(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}rE.exports={getGraphDiv:kue,isPlotDiv:Sue,removeElement:$L,addStyleRule:Cue,addRelatedStyleRule:KL,deleteRelatedStyleRule:Lue,setStyleOnHover:Eue,getFullTransformMatrix:Due,getElementTransformMatrix:QL,getElementAndAncestors:eE,equalDomRects:Rue}});var I1=I((DDe,tE)=>{"use strict";tE.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 Il=I((qDe,uE)=>{"use strict";var nE=Rn().extendFlat,Fue=qc(),iE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},oE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Pue=iE.flags.slice().concat(["fullReplot"]),Nue=oE.flags.slice().concat("layoutReplot");uE.exports={traces:iE,layout:oE,traceFlags:function(){return aE(Pue)},layoutFlags:function(){return aE(Nue)},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:lE};function aE(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function lE(e,r,t){var a=nE({},e);for(var n in a){var i=a[n];Fue(i)&&(a[n]=sE(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function sE(e,r,t,a){if(e.valType){var n=nE({},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]=sE(e.items[i],r,"from-root")}return n}else return lE(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var uf=I(a6=>{"use strict";a6.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};a6.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 n6={};Ka(n6,{DATE_FORMAT_LINK:()=>Iue,FORMAT_LINK:()=>zue});var zue,Iue,i6=$a(()=>{"use strict";zue="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Iue="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Hv=I(Ov=>{"use strict";var{DATE_FORMAT_LINK:Bue,FORMAT_LINK:Oue}=(i6(),hr(n6)),Hue=["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 Uue({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}".`,Oue,"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}".`,Bue,"for details on the date formatting syntax.",Hue].join(" ")}Ov.templateFormatStringDescription=Uue;Ov.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ka({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Ov.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ka({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Ov.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Ov.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Wg=I((NDe,pE)=>{"use strict";function ff(e,r){return r?r.d2l(e):e}function fE(e,r){return r?r.l2d(e):e}function Gue(e){return e.x0}function Yue(e){return e.x1}function Vue(e){return e.y0}function Xue(e){return e.y1}function cE(e){return e.x0shift||0}function vE(e){return e.x1shift||0}function hE(e){return e.y0shift||0}function dE(e){return e.y1shift||0}function Vg(e,r){return ff(e.x1,r)+vE(e)-ff(e.x0,r)-cE(e)}function Xg(e,r,t){return ff(e.y1,t)+dE(e)-ff(e.y0,t)-hE(e)}function Wue(e,r){return Math.abs(Vg(e,r))}function Zue(e,r,t){return Math.abs(Xg(e,r,t))}function Jue(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Vg(e,r),2)+Math.pow(Xg(e,r,t),2))}function jue(e,r){return fE((ff(e.x1,r)+vE(e)+ff(e.x0,r)+cE(e))/2,r)}function $ue(e,r,t){return fE((ff(e.y1,t)+dE(e)+ff(e.y0,t)+hE(e))/2,t)}function Kue(e,r,t){return e.type!=="line"?void 0:Xg(e,r,t)/Vg(e,r)}var Que=["x0","x1","y0","y1","dy","height","ycenter"],efe=["x0","x1","y0","y1","dx","width","xcenter"];pE.exports={x0:Gue,x1:Yue,y0:Vue,y1:Xue,slope:Kue,dx:Vg,dy:Xg,width:Wue,height:Zue,length:Jue,xcenter:jue,ycenter:$ue,simpleXVariables:Que,simpleYVariables:efe}});var gE=I((zDe,yE)=>{"use strict";var rfe=Il().overrideAll,Yc=Pl(),mE=Di(),tfe=uf().dash,cf=Rn().extendFlat,{shapeTexttemplateAttrs:afe,templatefallbackAttrs:nfe}=Hv(),ife=Wg();yE.exports=rfe({newshape:{visible:cf({},Yc.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:cf({},Yc.legend,{}),legendgroup:cf({},Yc.legendgroup,{}),legendgrouptitle:{text:cf({},Yc.legendgrouptitle.text,{}),font:mE({})},legendrank:cf({},Yc.legendrank,{}),legendwidth:cf({},Yc.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:cf({},tfe,{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:cf({},Yc.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:afe({newshape:!0},{keys:Object.keys(ife)}),texttemplatefallback:nfe({editType:"arraydraw"}),font:mE({}),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 xE=I((IDe,bE)=>{"use strict";var ofe=uf().dash,lfe=Rn().extendFlat;bE.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:lfe({},ofe,{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 Zg=I((BDe,_E)=>{"use strict";_E.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 Uv=I((ODe,ME)=>{"use strict";var o6=Di(),sfe=I1(),Jg=bs(),wE=gE(),AE=xE(),ufe=Zg(),TE=Rn().extendFlat,jg=o6({editType:"calc"});jg.family.dflt='"Open Sans", verdana, arial, sans-serif';jg.size.dflt=12;jg.color.dflt=Jg.defaultLine;ME.exports={font:jg,title:{text:{valType:"string",editType:"layoutstyle"},font:o6({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:o6({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:TE(ufe({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:Jg.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Jg.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:Jg.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:wE.newshape,activeshape:wE.activeshape,newselection:AE.newselection,activeselection:AE.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:TE({},sfe.transition,{editType:"none"})}});var kE=I(()=>{(function(){if(!document.getElementById("17ae9e42e4fa3e7c06fe95ec91b1119e5a4c05dc79afabe050bbaba88da47580")){var e=document.createElement("style");e.id="17ae9e42e4fa3e7c06fe95ec91b1119e5a4c05dc79afabe050bbaba88da47580",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media(forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media(hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%3E")}@media(forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%3E")}}@media(forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E %3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E %3C/svg%3E")}@media(forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E %3C/svg%3E")}}@media(forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E %3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%3E")}@media(forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%3E")}}@media(forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 22 22' stroke='%23333'%3E %3Ccircle cx='11' cy='11' r='8.5'/%3E %3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E %3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517-.195 0-.461-.118-.775-.517-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11c0-2.447.331-4.64.853-6.206.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517.195 0 .461.118.775.517.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E %3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.333 1.333 0 0 1-.224-.138c.047-.038.12-.085.224-.138.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138-.047.038-.12.085-.224.138-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.33 1.33 0 0 1-.224-.138 1.33 1.33 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.33 1.33 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.465 1.465 0 0 1-.39-.272.293.293 0 0 1-.047-.064.293.293 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.33.33 0 0 1 .047.064.293.293 0 0 1-.048.064 1.435 1.435 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002-.002Zm0 .018v.002-.002Zm17.002.002v-.002.002Zm0-.018v-.002.002Z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 22 22' stroke='%2333b5e5'%3E %3Ccircle cx='11' cy='11' r='8.5'/%3E %3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E %3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517-.195 0-.461-.118-.775-.517-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11c0-2.447.331-4.64.853-6.206.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517.195 0 .461.118.775.517.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E %3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.333 1.333 0 0 1-.224-.138c.047-.038.12-.085.224-.138.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138-.047.038-.12.085-.224.138-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.33 1.33 0 0 1-.224-.138 1.33 1.33 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.33 1.33 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.465 1.465 0 0 1-.39-.272.293.293 0 0 1-.047-.064.293.293 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.33.33 0 0 1 .047.064.293.293 0 0 1-.048.064 1.435 1.435 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002-.002Zm0 .018v.002-.002Zm17.002.002v-.002.002Zm0-.018v-.002.002Z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='%23333'%3E %3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='%2333b5e5'%3E %3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23aaa'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e58978'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e54e33'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media(forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23fff'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23999'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e58978'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e54e33'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}}@media(forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23000'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23666'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E %3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E %3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E %3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E %3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E %3Cg style='stroke-width:1.12603545'%3E %3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3C/g%3E %3C/svg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media(forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E %3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E %3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E %3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E %3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E %3Cg style='stroke-width:1.12603545'%3E %3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3C/g%3E %3C/svg%3E")}}@media(forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E %3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E %3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E %3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E %3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E %3Cg style='stroke-width:1.12603545'%3E %3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3C/g%3E %3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E %3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20' fill='%23fff'%3E %3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E %3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right,[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media(prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media(hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`,document.head.appendChild(e)}})()});var Pt=I(ta=>{"use strict";var l6=of(),SE=Gg(),CE=e6(),GDe=z1().addStyleRule,LE=Rn(),ffe=Pl(),cfe=Uv(),vfe=LE.extendFlat,s6=LE.extendDeepAll;ta.modules={};ta.allCategories={};ta.allTypes=[];ta.subplotsRegistry={};ta.componentsRegistry={};ta.layoutArrayContainers=[];ta.layoutArrayRegexes=[];ta.traceLayoutAttributes={};ta.localeRegistry={};ta.apiMethodRegistry={};ta.collectableSubplotTypes=null;ta.register=function(r){if(ta.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":hfe(a);break;case"component":pfe(a);break;case"locale":mfe(a);break;case"apiMethod":var n=a.name;ta.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};ta.getModule=function(e){var r=ta.modules[RE(e)];return r?r._module:!1};ta.traceIs=function(e,r){if(e=RE(e),e==="various")return!1;var t=ta.modules[e];return t||(e&&l6.log("Unrecognized trace type "+e+"."),t=ta.modules[ffe.type.dflt]),!!t.categories[r]};ta.getComponentMethod=function(e,r){var t=ta.componentsRegistry[e];return t&&t[r]||SE};ta.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return ta.apiMethodRegistry[e].apply(null,r)};function hfe(e){var r=e.name,t=e.categories,a=e.meta;if(ta.modules[r]){l6.log("Type "+r+" already registered");return}ta.subplotsRegistry[e.basePlotModule.name]||dfe(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,ta.allCategories[t[i]]=!0;ta.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(ta.modules[r].meta=a),ta.allTypes.push(r);for(var o in ta.componentsRegistry)DE(o,r);e.layoutAttributes&&vfe(ta.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&kE(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function dfe(e){var r=e.name;if(ta.subplotsRegistry[r]){l6.log("Plot type "+r+" already registered.");return}EE(e),ta.subplotsRegistry[r]=e;for(var t in ta.componentsRegistry)qE(t,e.name)}function pfe(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;ta.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&CE(ta.layoutArrayContainers,r),EE(e));for(var t in ta.modules)DE(r,t);for(var a in ta.subplotsRegistry)qE(r,a);e.schema&&e.schema.layout&&s6(cfe,e.schema.layout)}function mfe(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=ta.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 EE(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)CE(ta.layoutArrayRegexes,r[t])}}function DE(e,r){var t=ta.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&s6(ta.modules[r]._module.attributes,a)}}function qE(e,r){var t=ta.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=ta.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&&s6(n,o)}}function RE(e){return typeof e=="object"&&(e=e.type),e}});var UE=I(Pn=>{"use strict";var yfe=wv().timeFormat,OE=da(),u6=of(),hf=(Mv(),hr(Tv)).mod,Vv=(Zn(),hr(ri)),ul=Vv.BADNUM,So=Vv.ONEDAY,B1=Vv.ONEHOUR,vf=Vv.ONEMIN,Yv=Vv.ONESEC,O1=Vv.EPOCHJD,lu=Pt(),FE=wv().utcFormat,gfe=/^\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,bfe=/^\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,PE=new Date().getFullYear()-70;function su(e){return e&&lu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Pn.dateTick0=function(e,r){var t=xfe(e,!!r);if(r<2)return t;var a=Pn.dateTime2ms(t,e);return a+=So*(r-1),Pn.ms2DateTime(a,0,e)};function xfe(e,r){return su(e)?r?lu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:lu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Pn.dfltRange=function(e){return su(e)?lu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Pn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Kg,Qg;Pn.dateTime2ms=function(e,r){if(Pn.isJSDate(e)){var t=e.getTimezoneOffset()*vf,a=(e.getUTCMinutes()-e.getMinutes())*vf+(e.getUTCSeconds()-e.getSeconds())*Yv+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*vf;t=t-n/2+hf(a-t+n/2,n)}return e=Number(e)-t,e>=Kg&&e<=Qg?e:ul}if(typeof e!="string"&&typeof e!="number")return ul;e=String(e);var i=su(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?bfe:gfe);if(!s)return ul;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 ul;u=Number(u);var m;try{var y=lu.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(_){return ul}return m?(m.toJD()-O1)*So+v*B1+d*vf+p*Yv:ul}u.length===2?u=(Number(u)+2e3-PE)%100+PE:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?ul:T.getTime()+p*Yv};Kg=Pn.MIN_MS=Pn.dateTime2ms("-9999");Qg=Pn.MAX_MS=Pn.dateTime2ms("9999-12-31 23:59:59.9999");Pn.isDateTime=function(e,r){return Pn.dateTime2ms(e,r)!==ul};function Gv(e,r){return String(e+Math.pow(10,r)).slice(1)}var $g=90*So,NE=3*B1,zE=5*vf;Pn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Kg&&e<=Qg))return ul;r||(r=0);var a=Math.floor(hf(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(su(t)){var c=Math.floor(n/So)+O1,v=Math.floor(hf(e,So));try{i=lu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=FE("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<$g?Math.floor(v/B1):0,l=r<$g?Math.floor(v%B1/vf):0,s=r<NE?Math.floor(v%vf/Yv):0,u=r<zE?v%Yv*10+a:0}else f=new Date(n),i=FE("%Y-%m-%d")(f),o=r<$g?f.getUTCHours():0,l=r<$g?f.getUTCMinutes():0,s=r<NE?f.getUTCSeconds():0,u=r<zE?f.getUTCMilliseconds()*10+a:0;return HE(i,o,l,s,u)};Pn.ms2DateTimeLocal=function(e){if(!(e>=Kg+So&&e<=Qg-So))return ul;var r=Math.floor(hf(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=yfe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return HE(a,n,i,o,l)};function HE(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Gv(r,2)+":"+Gv(t,2),(a||n)&&(e+=":"+Gv(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Gv(n,i)}return e}Pn.cleanDate=function(e,r,t){if(e===ul)return r;if(Pn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(su(t))return u6.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Pn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Pn.isDateTime(e,t))return u6.error("unrecognized date",e),r;return e};var _fe=/%\d?f/g,wfe=/%h/g,Afe={1:"1",2:"1",3:"2",4:"2"};function IE(e,r,t,a){e=e.replace(_fe,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(wfe,function(){return Afe[t("%q")(n)]}),su(a))try{e=lu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Tfe=[59,59.9,59.99,59.999,59.9999];function Mfe(e,r){var t=hf(e+.05,So),a=Gv(Math.floor(t/B1),2)+":"+Gv(hf(Math.floor(t/vf),60),2);if(r!=="M"){OE(r)||(r=0);var n=Math.min(hf(e/Yv,60),Tfe[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Pn.formatDate=function(e,r,t,a,n,i){if(n=su(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 Mfe(e,t)+`
`+IE(i.dayMonthYear,e,a,n);return IE(r,e,a,n)};var BE=3*So;Pn.incrementMonth=function(e,r,t){t=su(t)&&t;var a=hf(e,So);if(e=Math.round(e-a),t)try{var n=Math.round(e/So)+O1,i=lu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-O1)*So+a}catch(s){u6.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+BE);return l.setUTCMonth(l.getUTCMonth()+r)+a-BE};Pn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=su(r)&&lu.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!OE(l)){i++;continue}if(!(l%So))if(s)try{o=s.fromJD(l/So+O1),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 e2=I((XDe,GE)=>{"use strict";GE.exports=function(r){return r}});var c6=I(uu=>{"use strict";var kfe=da(),Sfe=of(),Cfe=e2(),Lfe=(Zn(),hr(ri)).BADNUM,f6=1e-9;uu.findBin=function(e,r,t){if(kfe(r.start))return t?Math.ceil((e-r.start)/r.size-f6)-1:Math.floor((e-r.start)/r.size+f6);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?Efe:Dfe:s=t?Rfe:qfe,e+=o*f6*(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&&Sfe.log("Long binary search..."),a-1};function Efe(e,r){return e<r}function Dfe(e,r){return e<=r}function qfe(e,r){return e>r}function Rfe(e,r){return e>=r}uu.sorterAsc=function(e,r){return e-r};uu.sorterDes=function(e,r){return r-e};uu.distinctVals=function(e){var r=e.slice();r.sort(uu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Lfe;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}};uu.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]};uu.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()};uu.findIndexOfMin=function(e,r){r=r||Cfe;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 r2={};Ka(r2,{default:()=>Pfe});function Ffe(e){return Object.keys(e).sort()}var Pfe,t2=$a(()=>{"use strict";Pfe=Ffe});var YE=I(Nn=>{"use strict";var H1=da(),Nfe=vo().isArrayOrTypedArray;Nn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),H1(r)||(r=!1),Nfe(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=Nn.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)H1(r)?H1(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};Nn.len=function(e){return Nn.aggNums(function(r){return r+1},0,e)};Nn.mean=function(e,r){return r||(r=Nn.len(e)),Nn.aggNums(function(t,a){return t+a},0,e)/r};Nn.geometricMean=function(e,r){return r||(r=Nn.len(e)),Math.pow(Nn.aggNums(function(t,a){return t*a},1,e),1/r)};Nn.midRange=function(e){if(!(e===void 0||e.length===0))return(Nn.aggNums(Math.max,null,e)+Nn.aggNums(Math.min,null,e))/2};Nn.variance=function(e,r,t){return r||(r=Nn.len(e)),H1(t)||(t=Nn.mean(e,r)),Nn.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};Nn.stdev=function(e,r,t){return Math.sqrt(Nn.variance(e,r,t))};Nn.median=function(e){var r=e.slice().sort();return Nn.interp(r,.5)};Nn.interp=function(e,r){if(!H1(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 JE=I((JDe,ZE)=>{"use strict";var VE=(Mv(),hr(Tv)),v6=VE.mod,zfe=VE.modHalf,U1=Math.PI,df=2*U1;function Ife(e){return e/180*U1}function Bfe(e){return e/U1*180}function h6(e){return Math.abs(e[1]-e[0])>df-1e-14}function XE(e,r){return zfe(r-e,df)}function Ofe(e,r){return Math.abs(XE(e,r))}function WE(e,r){if(h6(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=v6(t,df),a=v6(a,df),t>a&&(a+=df);var n=v6(e,df),i=n+df;return n>=t&&n<=a||i>=t&&i<=a}function Hfe(e,r,t,a){if(!WE(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 d6(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=h6([t,a]),s,u,f,c,v;l?(s=0,u=U1,f=df):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,v=r):(c=r,v=e);function d(b,T){return[b*Math.cos(T)+n,i-b*Math.sin(T)]}var p=Math.abs(f-s)<=U1?0:1;function m(b,T,_){return"A"+[b,b]+" "+[0,p,_]+" "+d(b,T)}var y;return l?c===null?y="M"+d(v,s)+m(v,u,0)+m(v,f,0)+"Z":y="M"+d(c,s)+m(c,u,0)+m(c,f,0)+"ZM"+d(v,s)+m(v,u,1)+m(v,f,1)+"Z":c===null?(y="M"+d(v,s)+m(v,f,0),o&&(y+="L0,0Z")):y="M"+d(c,s)+"L"+d(v,s)+m(v,f,0)+"L"+d(c,f)+m(c,s,1)+"Z",y}function Ufe(e,r,t,a,n){return d6(null,e,r,t,a,n,0)}function Gfe(e,r,t,a,n){return d6(null,e,r,t,a,n,1)}function Yfe(e,r,t,a,n,i){return d6(e,r,t,a,n,i,1)}ZE.exports={deg2rad:Ife,rad2deg:Bfe,angleDelta:XE,angleDist:Ofe,isFullCircle:h6,isAngleInsideSector:WE,isPtInsideSector:Hfe,pathArc:Ufe,pathSector:Gfe,pathAnnulus:Yfe}});var jE=I(Vc=>{"use strict";Vc.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vc.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vc.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vc.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vc.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vc.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var QE=I(Xc=>{"use strict";var p6=(Mv(),hr(Tv)).mod;Xc.segmentsIntersect=KE;function KE(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 m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Xc.segmentDistance=function(r,t,a,n,i,o,l,s){if(KE(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,m=Math.min(a2(u,f,d,i-r,o-t),a2(u,f,d,l-r,s-t),a2(c,v,p,r-i,t-o),a2(c,v,p,a-i,n-o));return Math.sqrt(m)};function a2(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 n2,m6,$E;Xc.getTextLocation=function(r,t,a,n){if((r!==m6||n!==$E)&&(n2={},m6=r,$E=n),n2[a])return n2[a];var i=r.getPointAtLength(p6(a-n/2,t)),o=r.getPointAtLength(p6(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(p6(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 n2[a]=c,c};Xc.clearLocationCache=function(){m6=null};Xc.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(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var b=y.x<n?n-y.x:y.x>i?y.x-i:0,T=y.y<o?o-y.y:y.y>l?y.y-l:0;return Math.sqrt(b*b+T*T)}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}};Xc.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 i2=I(G1=>{"use strict";var fu={};G1.throttle=function(r,t,a){var n=fu[r],i=Date.now();if(!n){for(var o in fu)fu[o].ts<i-6e4&&delete fu[o];n=fu[r]={ts:0,timer:null}}eD(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)};G1.done=function(e){var r=fu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};G1.clear=function(e){if(e)eD(fu[e]),delete fu[e];else for(var r in fu)G1.clear(r)};function eD(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var tD=I((QDe,rD)=>{"use strict";rD.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var aD=I((eqe,o2)=>{"use strict";o2.exports=y6;o2.exports.isMobile=y6;o2.exports.default=y6;var Vfe=/(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,Xfe=/CrOS/,Wfe=/android|ipad|playbook|silk/i;function y6(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=Vfe.test(r)&&!Xfe.test(r)||!!e.tablet&&Wfe.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var iD=I((rqe,nD)=>{"use strict";var Zfe=da(),Jfe=aD();nD.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=jfe(),typeof t!="string")return!0;var a=Jfe({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(Zfe(u)&&(u=+u),u>=13)return!0}}}return a};function jfe(){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 lD=I((tqe,oD)=>{"use strict";var $fe=sa();oD.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]=$fe.select(this)}),n}});var uD=I((aqe,sD)=>{"use strict";var Kfe=Pt();sD.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=Kfe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var cD=I((nqe,fD)=>{"use strict";fD.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 hD=I((iqe,vD)=>{"use strict";vD.exports=function(r){for(var t=rce(r)?ece:Qfe,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function Qfe(e){return e.visible===!0}function ece(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function rce(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var pD=I((oqe,dD)=>{"use strict";dD.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 yD={};Ka(yD,{default:()=>nce});function ace(e){return typeof e=="string"&&(e=e.replace(tce,"")),(0,mD.default)(e)?Number(e):void 0}var mD,tce,nce,gD=$a(()=>{"use strict";mD=c1(da());Zn();tce=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;nce=ace});var _D=I((sqe,xD)=>{"use strict";var ice=/<[^>]*>/g,oce=/[\p{S}\p{P}]/gu,lce=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,sce=/�/g,uce=/\s+/g,l2="-",bD=l2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),fce=new RegExp(bD+"{3,}","g"),cce=new RegExp(bD+"$","g"),vce=60;function hce(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}xD.exports=function(r,t=vce){var a=hce(r!=null?r:"").replace(sce,"").replace(ice," ").replace(oce,n=>n===l2?n:"").toLowerCase().trim().replace(uce,l2).replace(lce,"").replace(fce,l2);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(cce,"")}});var ir=I((uqe,RD)=>{"use strict";var Y1=sa(),dce=wv().utcFormat,pce=v_().format,SD=da(),CD=(Zn(),hr(ri)),LD=CD.FP_SAFE,mce=-LD,wD=CD.BADNUM,_e={};RD.exports=_e;_e.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 AD={};_e.warnBadFormat=function(e){var r=String(e);AD[r]||(AD[r]=1,_e.warn('encountered bad format: "'+r+'"'))};_e.noFormat=function(e){return String(e)};_e.numberFormat=function(e){var r;try{r=pce(_e.adjustFormat(e))}catch(t){return _e.warnBadFormat(e),_e.noFormat}return r};_e.nestedProperty=cg();_e.keyedContainer=mk();_e.relativeAttr=gk();_e.isPlainObject=qc();_e.toLogRange=hg();_e.relinkPrivateKeys=wk();var pf=vo();_e.isArrayBuffer=pf.isArrayBuffer;_e.isTypedArray=pf.isTypedArray;_e.isArrayOrTypedArray=pf.isArrayOrTypedArray;_e.isArray1D=pf.isArray1D;_e.ensureArray=pf.ensureArray;_e.concat=pf.concat;_e.maxRowLength=pf.maxRowLength;_e.minRowLength=pf.minRowLength;var ED=(Mv(),hr(Tv));_e.mod=ED.mod;_e.modHalf=ED.modHalf;var mf=GC();_e.valObjectMeta=mf.valObjectMeta;_e.coerce=mf.coerce;_e.coerce2=mf.coerce2;_e.coerceFont=mf.coerceFont;_e.coercePattern=mf.coercePattern;_e.coerceHoverinfo=mf.coerceHoverinfo;_e.coerceSelectionMarkerOpacity=mf.coerceSelectionMarkerOpacity;_e.validate=mf.validate;var Go=UE();_e.dateTime2ms=Go.dateTime2ms;_e.isDateTime=Go.isDateTime;_e.ms2DateTime=Go.ms2DateTime;_e.ms2DateTimeLocal=Go.ms2DateTimeLocal;_e.cleanDate=Go.cleanDate;_e.isJSDate=Go.isJSDate;_e.formatDate=Go.formatDate;_e.incrementMonth=Go.incrementMonth;_e.dateTick0=Go.dateTick0;_e.dfltRange=Go.dfltRange;_e.findExactDates=Go.findExactDates;_e.MIN_MS=Go.MIN_MS;_e.MAX_MS=Go.MAX_MS;var Wc=c6();_e.findBin=Wc.findBin;_e.sorterAsc=Wc.sorterAsc;_e.sorterDes=Wc.sorterDes;_e.distinctVals=Wc.distinctVals;_e.roundUp=Wc.roundUp;_e.sort=Wc.sort;_e.findIndexOfMin=Wc.findIndexOfMin;_e.sortObjectKeys=(t2(),hr(r2)).default;var cu=YE();_e.aggNums=cu.aggNums;_e.len=cu.len;_e.mean=cu.mean;_e.geometricMean=cu.geometricMean;_e.median=cu.median;_e.midRange=cu.midRange;_e.variance=cu.variance;_e.stdev=cu.stdev;_e.interp=cu.interp;var Bl=Yg();_e.init2dArray=Bl.init2dArray;_e.transposeRagged=Bl.transposeRagged;_e.dot=Bl.dot;_e.translationMatrix=Bl.translationMatrix;_e.rotationMatrix=Bl.rotationMatrix;_e.rotationXYMatrix=Bl.rotationXYMatrix;_e.apply3DTransform=Bl.apply3DTransform;_e.apply2DTransform=Bl.apply2DTransform;_e.apply2DTransform2=Bl.apply2DTransform2;_e.convertCssMatrix=Bl.convertCssMatrix;_e.inverseTransformMatrix=Bl.inverseTransformMatrix;var xs=JE();_e.deg2rad=xs.deg2rad;_e.rad2deg=xs.rad2deg;_e.angleDelta=xs.angleDelta;_e.angleDist=xs.angleDist;_e.isFullCircle=xs.isFullCircle;_e.isAngleInsideSector=xs.isAngleInsideSector;_e.isPtInsideSector=xs.isPtInsideSector;_e.pathArc=xs.pathArc;_e.pathSector=xs.pathSector;_e.pathAnnulus=xs.pathAnnulus;var Wv=jE();_e.isLeftAnchor=Wv.isLeftAnchor;_e.isCenterAnchor=Wv.isCenterAnchor;_e.isRightAnchor=Wv.isRightAnchor;_e.isTopAnchor=Wv.isTopAnchor;_e.isMiddleAnchor=Wv.isMiddleAnchor;_e.isBottomAnchor=Wv.isBottomAnchor;var Zv=QE();_e.segmentsIntersect=Zv.segmentsIntersect;_e.segmentDistance=Zv.segmentDistance;_e.getTextLocation=Zv.getTextLocation;_e.clearLocationCache=Zv.clearLocationCache;_e.getVisibleSegment=Zv.getVisibleSegment;_e.findPointOnPath=Zv.findPointOnPath;var f2=Rn();_e.extendFlat=f2.extendFlat;_e.extendDeep=f2.extendDeep;_e.extendDeepAll=f2.extendDeepAll;_e.extendDeepNoArrays=f2.extendDeepNoArrays;var g6=of();_e.log=g6.log;_e.warn=g6.warn;_e.error=g6.error;var yce=(Iv(),hr(N1));_e.counterRegex=yce.counter;var b6=i2();_e.throttle=b6.throttle;_e.throttleDone=b6.done;_e.clearThrottle=b6.clear;var Ol=z1();_e.getGraphDiv=Ol.getGraphDiv;_e.isPlotDiv=Ol.isPlotDiv;_e.removeElement=Ol.removeElement;_e.addStyleRule=Ol.addStyleRule;_e.addRelatedStyleRule=Ol.addRelatedStyleRule;_e.deleteRelatedStyleRule=Ol.deleteRelatedStyleRule;_e.setStyleOnHover=Ol.setStyleOnHover;_e.getFullTransformMatrix=Ol.getFullTransformMatrix;_e.getElementTransformMatrix=Ol.getElementTransformMatrix;_e.getElementAndAncestors=Ol.getElementAndAncestors;_e.equalDomRects=Ol.equalDomRects;_e.clearResponsive=tD();_e.preserveDrawingBuffer=iD();_e.makeTraceGroups=lD();_e._=uD();_e.notifier=V4();_e.filterUnique=cD();_e.filterVisible=hD();_e.pushUnique=e6();_e.increment=pD();_e.cleanNumber=(gD(),hr(yD)).default;_e.slugify=_D();_e.ensureNumber=function(r){return SD(r)?(r=Number(r),r>LD||r<mce?wD:r):wD};_e.isIndex=function(e,r){return r!==void 0&&e>=r?!1:SD(e)&&e>=0&&e%1===0};_e.noop=Gg();_e.identity=e2();_e.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};_e.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=_e.nestedProperty(e,i.replace("?",t)),l=_e.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};_e.raiseToTop=function(r){r.parentNode.appendChild(r)};_e.cancelTransition=function(e){return e.transition().duration(0)};_e.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};_e.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};_e.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};_e.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?(_e.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};_e.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};_e.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};_e.syncOrAsync=function(e,r,t){var a,n;function i(){return _e.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)};_e.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};_e.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]]}};_e.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(_e.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}};_e.mergeArrayCastPositive=function(e,r,t){return _e.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};_e.fillArray=function(e,r,t,a){if(a=a||_e.identity,_e.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};_e.castOption=function(e,r,t,a){a=a||_e.identity;var n=_e.nestedProperty(e,t).get();return _e.isArrayOrTypedArray(n)?Array.isArray(r)&&_e.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};_e.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=_e.nestedProperty(r,a).get();if(!Array.isArray(n))return n};_e.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(_e.isIndex(o)||_e.isArrayOrTypedArray(o)&&_e.isIndex(o[0])&&_e.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};_e.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=_e.nestedProperty(e,t).get();return _e.isArrayOrTypedArray(a)?a:!1}else if(_e.isArrayOrTypedArray(t))return t;return!1};function DD(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):_e.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=DD(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}_e.minExtend=DD;_e.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};_e.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var gce=/Version\/[\d\.]+.*Safari/;_e.isSafari=function(){return gce.test(window.navigator.userAgent)};var bce=/iPad|iPhone|iPod/;_e.isIOS=function(){return bce.test(window.navigator.userAgent)};var xce=/Macintosh.+AppleWebKit.+Gecko\)$/;_e.isMacWKWebView=()=>xce.test(window.navigator.userAgent);var _ce=/Firefox\/(\d+)\.\d+/;_e.getFirefoxVersion=function(){var e=_ce.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};_e.isD3Selection=function(e){return e instanceof Y1.selection};_e.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};_e.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};_e.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 wce=/^([^\[\.]+)\.(.+)?/,Ace=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function s2(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}_e.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(wce)){if(n=e[t],a=r[1],s2(e,a))continue;delete e[t],e[a]=_e.extendDeepNoArrays(e[a]||{},_e.objectFromPath(t,_e.expandObjectPaths(n))[a])}else if(r=t.match(Ace)){if(n=e[t],a=r[1],s2(e,a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")l=r[4],o=e[a][i]=e[a][i]||{},_e.extendDeepNoArrays(o,_e.objectFromPath(l,_e.expandObjectPaths(n)));else{if(s2(e,a))continue;e[a][i]=_e.expandObjectPaths(n)}}else{if(s2(e,t))continue;e[t]=_e.expandObjectPaths(e[t])}}return e};_e.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};_e.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var qD=/^\w*$/;_e.templateString=function(e,r){var t={};return e.replace(_e.TEMPLATE_STRING_REGEX,function(a,n){var i;return qD.test(n)?i=r[n]:(t[n]=t[n]||_e.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Tce={max:10,count:0,name:"hovertemplate"};_e.hovertemplateString=e=>x6(Ga(ka({},e),{opts:Tce}));var Mce={max:10,count:0,name:"texttemplate"};_e.texttemplateString=e=>x6(Ga(ka({},e),{opts:Mce}));var kce=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Sce(e){var r=e.match(kce);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Cce={max:10,count:0,name:"texttemplate",parseMultDiv:!0};_e.texttemplateStringForShapes=e=>x6(Ga(ka({},e),{opts:Cce}));var TD=/^[:|\|]/;function x6({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(_e.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,m=null;if(n.parseMultDiv){var y=Sce(l);l=y.key,p=y.op,m=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let w of e)if(w){if(w.hasOwnProperty(l)){b=w[l];break}if(qD.test(l)||(b=_e.nestedProperty(w,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:w,max:k,name:M}=n,C=t===!1?o:t;return w<k&&_e.warn([`Variable '${l}' in ${M} could not be found!`,"Please verify that the template is correct.",`Using value: '${C}'.`].join(" ")),w===k&&_e.warn(`Too many '${M}' warnings - additional warnings will be suppressed.`),n.count++,C}if(p==="*"&&(b*=m),p==="/"&&(b/=m),s){var T;if(s[0]===":"&&(T=r?r.numberFormat:_e.numberFormat,b!==""&&(b=T(s.replace(TD,""))(b))),s[0]==="|"){T=r?r.timeFormat:dce;var _=_e.dateTime2ms(b);b=_e.formatDate(_,s.replace(TD,""),!1,T)}}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 u2=48,MD=57;_e.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>=u2&&o<=MD,u=l>=u2&&l<=MD;if(s&&(a=10*a+o-u2),u&&(n=10*n+l-u2),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Xv=2e9;_e.seedPseudoRandom=function(){Xv=2e9};_e.pseudoRandom=function(){var e=Xv;return Xv=(69069*Xv+1)%4294967296,Math.abs(Xv-e)<429496729?_e.pseudoRandom():Xv/4294967296};_e.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=_e.extractOption(e,r,"htx","hovertext");if(_e.isValidTextValue(n))return a(n);var i=_e.extractOption(e,r,"tx","text");if(_e.isValidTextValue(i))return a(i)};_e.isValidTextValue=function(e){return e||e===0};_e.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};_e.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};_e.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};_e.strRotate=function(e){return e?"rotate("+e+")":""};_e.strScale=function(e){return e!==1?"scale("+e+")":""};_e.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,_e.strTranslate(n-u*(t+o),i-u*(a+l))+_e.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};_e.setTransormAndDisplay=function(e,r){e.attr("transform",_e.getTextTransform(r)),e.style("display",r.scale?null:"none")};_e.ensureUniformFontSize=function(e,r){var t=_e.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};_e.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)};_e.bigFont=function(e){return Math.round(1.2*e)};var kD=_e.getFirefoxVersion(),Lce=kD!==null&&kD<86;_e.getPositionFromD3Event=function(){return Lce?[Y1.event.layerX,Y1.event.layerY]:[Y1.event.offsetX,Y1.event.offsetY]}});var ND=I(()=>{"use strict";var Ece=ir(),FD={"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(_6 in FD)PD=_6.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Ece.addStyleRule(PD,FD[_6]);var PD,_6});var w6=I((hqe,zD)=>{zD.exports=!0});var T6=I((dqe,ID)=>{"use strict";var Dce=w6(),A6;typeof window.matchMedia=="function"?A6=!window.matchMedia("(hover: none)").matches:A6=Dce;ID.exports=A6});var h2=I((pqe,M6)=>{"use strict";var Jv=typeof Reflect=="object"?Reflect:null,BD=Jv&&typeof Jv.apply=="function"?Jv.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},c2;Jv&&typeof Jv.ownKeys=="function"?c2=Jv.ownKeys:Object.getOwnPropertySymbols?c2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:c2=function(r){return Object.getOwnPropertyNames(r)};function qce(e){console&&console.warn&&console.warn(e)}var HD=Number.isNaN||function(r){return r!==r};function en(){en.init.call(this)}M6.exports=en;M6.exports.once=Nce;en.EventEmitter=en;en.prototype._events=void 0;en.prototype._eventsCount=0;en.prototype._maxListeners=void 0;var OD=10;function v2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(en,"defaultMaxListeners",{enumerable:!0,get:function(){return OD},set:function(e){if(typeof e!="number"||e<0||HD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");OD=e}});en.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};en.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||HD(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 UD(e){return e._maxListeners===void 0?en.defaultMaxListeners:e._maxListeners}en.prototype.getMaxListeners=function(){return UD(this)};en.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")BD(s,this,t);else for(var u=s.length,f=WD(s,u),a=0;a<u;++a)BD(f[a],this,t);return!0};function GD(e,r,t,a){var n,i,o;if(v2(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=UD(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,qce(l)}return e}en.prototype.addListener=function(r,t){return GD(this,r,t,!1)};en.prototype.on=en.prototype.addListener;en.prototype.prependListener=function(r,t){return GD(this,r,t,!0)};function Rce(){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 YD(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Rce.bind(a);return n.listener=t,a.wrapFn=n,n}en.prototype.once=function(r,t){return v2(t),this.on(r,YD(this,r,t)),this};en.prototype.prependOnceListener=function(r,t){return v2(t),this.prependListener(r,YD(this,r,t)),this};en.prototype.removeListener=function(r,t){var a,n,i,o,l;if(v2(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():Fce(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};en.prototype.off=en.prototype.removeListener;en.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 VD(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?Pce(n):WD(n,n.length)}en.prototype.listeners=function(r){return VD(this,r,!0)};en.prototype.rawListeners=function(r){return VD(this,r,!1)};en.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):XD.call(e,r)};en.prototype.listenerCount=XD;function XD(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}en.prototype.eventNames=function(){return this._eventsCount>0?c2(this._events):[]};function WD(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function Fce(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function Pce(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function Nce(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))}ZD(e,r,i,{once:!0}),r!=="error"&&zce(e,n,{once:!0})})}function zce(e,r,t){typeof e.on=="function"&&ZD(e,"error",r,t)}function ZD(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 V1=I((mqe,JD)=>{"use strict";var k6=h2().EventEmitter,Ice={init:function(e){if(e._ev instanceof k6)return e;var r=new k6,t=new k6;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}};JD.exports=Ice});var KD=I((yqe,$D)=>{"use strict";var jD=ir(),Bce=nf().dfltConfig;function Oce(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)?jD.extendDeep([],a):jD.extendDeepAll({},a):t[n]=a;return t}var vu={};vu.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>Bce.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};vu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};vu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};vu.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++)vu.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};vu.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++)vu.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};vu.plotDo=function(e,r,t){e.autoplay=!0,t=Oce(e,t),r.apply(null,t)};$D.exports=vu});var S6=I((gqe,QD)=>{"use strict";QD.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Kv=I(ti=>{"use strict";var fl=Pt(),X1=ir(),p2=Pl(),C6=Uv(),Hce=S6(),Uce=I1(),Gce=nf().configAttributes,eq=Il(),Hl=X1.extendDeepAll,jv=X1.isPlainObject,Yce=X1.isArrayOrTypedArray,m2=X1.nestedProperty,Vce=X1.valObjectMeta,L6="_isSubplotObj",y2="_isLinkedToArray",Xce="_arrayAttrRegexps",tq="_deprecated",E6=[L6,y2,Xce,tq];ti.IS_SUBPLOT_OBJ=L6;ti.IS_LINKED_TO_ARRAY=y2;ti.DEPRECATED=tq;ti.UNDERSCORE_ATTRS=E6;ti.get=function(){var e={};return fl.allTypes.forEach(function(r){e[r]=Zce(r)}),{defs:{valObjects:Vce,metaKeys:E6.concat(["description","role","editType","impliedEdits"]),editType:{traces:eq.traces,layout:eq.layout},impliedEdits:{}},traces:e,layout:Jce(),frames:jce(),animation:$v(Uce),config:$v(Gce)}};ti.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(E6.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ti.isValObject(o)&&jv(o)&&i!=="impliedEdits"&&ti.crawl(o,r,n+1,l)}})};ti.isValObject=function(e){return e&&e.valType!==void 0};ti.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)Yce(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d<c.length;d++)jv(c[d])&&l(c[d],u+1,v+"["+d+"].")}else jv(c)&&l(c,u+1,v+".")}return n=e,i="",ti.crawl(p2,o),e._module&&e._module.attributes&&ti.crawl(e._module.attributes,o),r};ti.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(fl.modules[e.type||p2.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=p2[t]),aq(i,r,a)};ti.getLayoutValObject=function(e,r){var t=Wce(e,r[0]);return aq(t,r,1)};function Wce(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 fl.componentsRegistry){if(n=fl.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 C6?C6[r]:!1}function aq(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(d2(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(jv(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!d2(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!d2(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(!d2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function d2(e){return e===Math.round(e)&&e>=0}function Zce(e){var r,t;r=fl.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Hl({},p2),i=Hl({},r.attributes);ti.crawl(i,function(s,u,f,c,v){m2(n,v).set(void 0),s===void 0&&m2(i,v).set(void 0)}),Hl(a,n),fl.traceIs(e,"noOpacity")&&delete a.opacity,fl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),fl.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Hl(a,i),t.attributes&&Hl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:$v(a)};if(r.layoutAttributes){var l={};Hl(l,r.layoutAttributes),o.layoutAttributes=$v(l)}return r.animatable||ti.crawl(o,function(s){ti.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Jce(){var e={},r,t;Hl(e,C6);for(r in fl.subplotsRegistry)if(t=fl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)rq(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;rq(e,t,n)}for(r in fl.componentsRegistry){t=fl.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"?Hl(e,t.layoutAttributes):t.layoutAttributes&&e0e(e,t.layoutAttributes,t.name)}return{layoutAttributes:$v(e)}}function jce(){var e={frames:Hl({},Hce)};return $v(e),e.frames}function $v(e){return $ce(e),Kce(e),Qce(e),e}function $ce(e){function r(t,a,n){!ti.isValObject(t)&&jv(t)&&(t.role="object")}ti.crawl(e,r)}function Kce(e){function r(t,a,n){if(t){var i=t[y2];i&&(delete t[y2],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}ti.crawl(e,r)}function Qce(e){function r(t){for(var a in t)if(jv(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 rq(e,r,t){var a=m2(e,t),n=Hl({},r.layoutAttributes);n[L6]=!0,a.set(n)}function e0e(e,r,t){var a=m2(e,t);a.set(Hl(a.get()||{},r))}});var Ra=I(Zc=>{"use strict";var Qv=ir(),r0e=Pl(),yf="templateitemname",D6={name:{valType:"string",editType:"none"}};D6[yf]={valType:"string",editType:"calc"};Zc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=D6.name,r[yf]=D6[yf],r};Zc.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=Qv.coerce(i,{},r0e,"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}};Zc.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Qv.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zc.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[iq(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[yf]=u[yf];if(!nq(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(nq(v)&&!o[v]){var d={_template:c,name:v,_input:{_templateitemname:v}};d[yf]=c[yf],u.push(d),o[v]=1}}return u}return{newItem:l,defaultItems:s}};function nq(e){return e&&typeof e=="string"}function iq(e){var r=e.length-1;return e.charAt(r)!=="s"&&Qv.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Zc.arrayDefaultKey=iq;Zc.arrayEditor=function(e,r,t){var a=(Qv.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][yf]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Qv.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 m=c();for(var y in m)Qv.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var ai={};Ka(ai,{AX_ID_PATTERN:()=>o0e,AX_NAME_PATTERN:()=>l0e,DFLTRANGEX:()=>p0e,DFLTRANGEY:()=>m0e,DRAGGERSIZE:()=>h0e,HOUR_PATTERN:()=>u0e,MINDRAG:()=>c0e,MINZOOM:()=>v0e,REDRAWDELAY:()=>d0e,SUBPLOT_PATTERN:()=>s0e,WEEKDAY_PATTERN:()=>f0e,attrRegex:()=>a0e,clipOnAxisFalseQuery:()=>g0e,idRegex:()=>t0e,layerValue2layerClass:()=>b0e,traceLayerClasses:()=>y0e,xAxisMatch:()=>n0e,yAxisMatch:()=>i0e,zindexSeparator:()=>x0e});var t0e,a0e,n0e,i0e,o0e,l0e,s0e,u0e,f0e,c0e,v0e,h0e,d0e,p0e,m0e,y0e,g0e,b0e,x0e,ni=$a(()=>{"use strict";Iv();t0e={x:Gc("x","( domain)?"),y:Gc("y","( domain)?")},a0e=Gc("[xy]axis"),n0e=Gc("xaxis"),i0e=Gc("yaxis"),o0e=/^[xyz][0-9]*( domain)?$/,l0e=/^[xyz]axis[0-9]*$/,s0e=/^x([0-9]*)y([0-9]*)$/,u0e="hour",f0e="day of week",c0e=8,v0e=20,h0e=20,d0e=50,p0e=[-1,6],m0e=[-1,4],y0e=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],g0e=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],b0e={"above traces":"above","below traces":"below"},x0e="z"});var mn=I(Co=>{"use strict";var _0e=Pt(),q6=(ni(),hr(ai));Co.id2name=function(r){if(!(typeof r!="string"||!r.match(q6.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Co.name2id=function(r){if(r.match(q6.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Co.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(q6.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":"")}};Co.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Co.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};Co.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)};Co.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[Co.id2name(r)]};Co.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(_0e.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Co.getFromId(e,r[t+"axis"]||t);return n};Co.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)};Co.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function oq(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Co.isLinked=function(e,r){return oq(r,e._axisMatchGroups)||oq(r,e._axisConstraintGroups)}});var gf=I((Aqe,lq)=>{"use strict";function w0e(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function A0e(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}lq.exports={clearOutlineControllers:w0e,clearOutline:A0e}});var g2=I((Tqe,sq)=>{"use strict";sq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var W1=I(x2=>{"use strict";var b2=Pt(),Mqe=(ni(),hr(ai)).SUBPLOT_PATTERN;x2.getSubplotCalcData=function(e,r,t){var a=b2.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};x2.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=b2.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]};x2.getSubplotData=function(r,t,a){if(!b2.subplotsRegistry[t])return[];for(var n=b2.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 vq=I(Jc=>{"use strict";var T0e=Pt(),eh=ir();Jc.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Jc.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){uq(e,o,n.cache),n.check=function(){if(i){var f=uq(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 eh.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};Jc.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=Jc.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 uq(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=eh.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}}Jc.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=T0e.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 eh.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Jc.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=cq(e,t);break;case"relayout":a=fq(e,t);break;case"update":a=cq(e,[t[0],t[2]]).concat(fq(e,[t[1]]));break;case"animate":a=M0e(e,t);break;default:a=[]}return a};function M0e(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 fq(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(eh.isPlainObject(a))n=a;else return t;return R6(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function cq(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(eh.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),R6(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 m=0;m<f.length;m++)c[m]=p}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function R6(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;eh.isPlainObject(i)?R6(i,r,o,a+1):r(o,n,i)}})}});var pi=I((Lqe,wq)=>{"use strict";var Cqe=sa(),k0e=wv().timeFormatLocale,S0e=v_().formatLocale,Z1=da(),C0e=d_(),L0e=v1().version,ga=Pt(),E0e=Kv(),D0e=Ra(),st=ir(),q0e=Kt(),hq=(Zn(),hr(ri)).BADNUM,Lo=mn(),R0e=gf().clearOutline,F0e=g2(),F6=I1(),P0e=S6(),N0e=W1().getModuleCalcData,dq=st.relinkPrivateKeys,jc=st._,Ur=wq.exports={};st.extendFlat(Ur,ga);Ur.attributes=Pl();Ur.attributes.type.values=Ur.allTypes;Ur.fontAttrs=Di();Ur.layoutAttributes=Uv();var w2=vq();Ur.executeAPICommand=w2.executeAPICommand;Ur.computeAPICommandBindings=w2.computeAPICommandBindings;Ur.manageCommandObserver=w2.manageCommandObserver;Ur.hasSimpleAPICommandBindings=w2.hasSimpleAPICommandBindings;Ur.redrawText=function(e){return e=st.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ga.getComponentMethod("annotations","draw")(e),ga.getComponentMethod("legend","draw")(e),ga.getComponentMethod("colorbar","draw")(e),r(Ur.previousPromises(e)))},300)})};Ur.resize=function(e){e=st.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||st.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||st.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ga.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ur.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ur.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Ur.graphJson(e,!1,"object");a.version=L0e;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 z0e=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],I0e=["year","month","dayMonth","dayMonthYear"];Ur.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||Ur.createTransitionData(e),n._dfltTitle={plot:jc(e,"Click to enter Plot title"),subtitle:jc(e,"Click to enter Plot subtitle"),x:jc(e,"Click to enter X axis title"),y:jc(e,"Click to enter Y axis title"),colorbar:jc(e,"Click to enter Colorscale title"),annotation:jc(e,"new text")},n._traceWord=jc(e,"trace");var v=pq(e,z0e);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;Ur.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Ur.sanitizeMargins(n)}else{Ur.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,T=m&&(y||b);T?Ur.plotAutoSize(e,i,n):m&&Ur.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=H0e(v,n.separators),n._extraFormat=pq(e,I0e),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=O0e(),x=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=B0e(o,s),Ur.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(ga.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<k.length;c++)st.pushUnique(_.xaxis,k[c]);for(c=0;c<M.length;c++)st.pushUnique(_.yaxis,M[c]);for(var C in w)st.pushUnique(_.cartesian,C)}if(n._has=Ur._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)dq(l[c],o[c]);Ur.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var D=n._visibleModules,R=[];for(c=0;c<D.length;c++){var P=D[c].crossTraceDefaults;P&&st.pushUnique(R,P)}for(c=0;c<R.length;c++)R[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&k.length>15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Ur.linkSubplots(l,n,o,a),Ur.cleanPlot(l,n,o,a);var q=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),B=q,U=z;B&&!U?a._bgLayer.remove():U&&!B&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&R0e({_fullLayout:a}),U0e(l,n),dq(n,a),ga.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var G=n._tracePreGUI,X={},Y;for(Y in G)X[Y]="old";for(c=0;c<l.length;c++)Y=l[c].uid,X[Y]||(G[Y]={}),X[Y]="new";for(Y in X)X[Y]==="old"&&delete G[Y];gq(n),ga.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&Ur.supplyDefaultsUpdateCalc(u,l)};Ur.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 B0e(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(st.randstr(o),a))}return i}function O0e(){var e=ga.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=ga.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++)st.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function pq(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=ga.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(ga.localeRegistry.en.format),n}function H0e(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=S0e(e).format(st.adjustFormat(t))}catch(a){return st.warnBadFormat(t),st.noFormat}return t},timeFormat:k0e(e).utcFormat}}function U0e(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)}Ur.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=[])};Ur._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=ga.modules[n];if(i&&i.categories[e])return!0}return!1};Ur.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()}};Ur.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=Lo.getFromId(u,c,"x"),p=Lo.getFromId(u,c,"y"),m;for(v?m=l[c]=v:(m=l[c]={},m.id=c),d._counterAxes.push(p._id),p._counterAxes.push(d._id),d._subplotsWith.push(c),p._subplotsWith.push(c),m.xaxis=d,m.yaxis=p,m._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===m.xaxis._id&&y.yaxis===m.yaxis._id&&y.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var b=Lo.list(u,null,!0),T;for(n=0;n<b.length;n++){T=b[n];var _=null;T.overlaying&&(_=Lo.getFromId(u,T.overlaying),_&&_.overlaying&&(T.overlaying=!1,_=null)),T._mainAxis=_||T,_&&(T.domain=_.domain.slice()),T._anchorAxis=T.anchor==="free"?null:Lo.getFromId(u,T.anchor)}for(n=0;n<b.length;n++)if(T=b[n],T._counterAxes.sort(Lo.idSort),T._subplotsWith.sort(st.subplotSort),T._mainSubplot=G0e(T,r),T._counterAxes.length&&(T.automargin&&T.mirror&&T.anchor!=="free"||ga.getComponentMethod("rangeslider","isVisible")(T))){var x=1,w=0;for(i=0;i<T._counterAxes.length;i++){var k=Lo.getFromId(u,T._counterAxes[i]);x=Math.min(x,k.domain[0]),w=Math.max(w,k.domain[1])}x<w&&(T._counterDomainMin=x,T._counterDomainMax=w)}};function G0e(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=Lo.getFromId(t,f);if(l&&v.overlaying===l){i=c;break}}}return i||o}Ur.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(T){r.push(T);var _=T._module;_&&(st.pushUnique(n,_),T.visible===!0&&st.pushUnique(i,_),st.pushUnique(o,T._module.basePlotModule),l++,T._input.visible!==!1&&s++)}var d={},p=[],m=(t.template||{}).data||{},y=D0e.traceTemplater(m);for(u=0;u<e.length;u++)c=e[u],f=y.newTrace(c),f.uid=a._traceUids[u],Ur.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,v(f),ga.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),ga.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}};Ur.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return st.coerce(e||{},t,F6,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]=Ur.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Ur.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Ur.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Ur.supplyAnimationTransitionDefaults(e.transition||{});return t};Ur.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return st.coerce(e||{},r,F6.frame,a,n)}return t("duration"),t("redraw"),r};Ur.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return st.coerce(e||{},r,F6.transition,a,n)}return t("duration"),t("easing"),r};Ur.supplyFrameDefaults=function(e){var r={};function t(a,n){return st.coerce(e,r,P0e,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Ur.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||q0e.defaults,o=i[t%i.length],l;function s(_,x){return st.coerce(e,r,Ur.attributes,_,x)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=Ur.getModule(r);if(r._module=f,f){var c=f.basePlotModule,v=c.attr,d=c.attributes;if(v&&d){var p=a._subplots,m="";if(Array.isArray(v))for(l=0;l<v.length;l++){var y=v[l],b=st.coerce(e,r,d,y);p[y]&&st.pushUnique(p[y],b),m+=b}else m=st.coerce(e,r,d,v);p[c.name]&&st.pushUnique(p[c.name],m)}}if(u&&(s("customdata"),s("ids"),s("meta"),ga.traceIs(r,"showLegend")?(st.coerce(e,r,f.attributes.showlegend?f.attributes:Ur.attributes,"showlegend"),st.coerce(e,r,f.attributes.legend?f.attributes:Ur.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),st.coerce(e,r,f.attributes.legend?f.attributes:Ur.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),ga.traceIs(r,"noOpacity")||s("opacity"),ga.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ga.traceIs(r,"noHover")||(r.hovertemplate||st.coerceHoverinfo(e,r,a),r.type!=="parcats"&&ga.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var T=s("selectedpoints");st.isTypedArray(T)&&(r.selectedpoints=Array.from(T))}return r};Ur.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,v){return st.coerce(e,r,Ur.layoutAttributes,c,v)}var n=e.template;st.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=st.coerceFont(a,"font"),o=i.size;st.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),st.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&&Ur.sanitizeMargins(r),ga.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),ga.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ga.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),ga.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),st.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),ga.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ga.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),st.coerce(e,r,F0e,"scattermode")};function _2(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Ur.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=st.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=_2(u.width)||_2(u.maxWidth)||a.width,l=_2(u.height)||_2(u.maxHeight)||a.height,Z1(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Ur.layoutAttributes.width.min,v=Ur.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}),Ur.sanitizeMargins(a)};Ur.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ga.componentsRegistry,i=r._basePlotModules,o,l,s,u=ga.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ga.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(st.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)};Ur.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)),st.clearThrottle(),st.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()};Ur.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&st.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};Ur.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))}};Ur.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Ur.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function gq(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 bq=2,xq=2;Ur.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=st.constrain(n-o.l-o.r,bq,l),f=st.constrain(i-o.t-o.b,xq,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 m=t.pad;if(m===void 0&&(m=Math.min(12,o.l,o.r,o.t,o.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,w=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+m},r:{val:_,size:t.r+m},b:{val:w,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return Ur.doAutoMargin(e)}};function Y0e(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Lo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ur.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),gq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=st.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var b=e._fullLayout._reservedMargin;for(var T in b)for(var _ in b[T]){var x=b[T][_];o[_]=Math.max(o[_],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 w in o){var k=0;for(var M in v)M!=="base"&&Z1(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var C=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-C)}for(var D in v){var R=v[D].l||{},P=v[D].b||{},q=R.val,z=R.size,B=P.val,U=P.size,G=t-o.r-o.l,X=a-o.t-o.b;for(var Y in v){if(Z1(z)&&v[Y].r){var V=v[Y].r.val,J=v[Y].r.size;if(V>q){var j=(z*V+(J-G)*q)/(V-q),ee=(J*(1-q)+(z-G)*(1-V))/(V-q);j+ee>s+u&&(s=j,u=ee)}}if(Z1(U)&&v[Y].t){var pe=v[Y].t.val,ne=v[Y].t.size;if(pe>B){var ye=(U*pe+(ne-X)*B)/(pe-B),te=(ne*(1-B)+(U-X)*(1-pe))/(pe-B);ye+te>c+f&&(c=ye,f=te)}}}}}var De=st.constrain(t-i.l-i.r,bq,p),ce=st.constrain(a-i.t-i.b,xq,m),Re=Math.max(0,t-De),Fe=Math.max(0,a-ce);if(Re){var ge=(s+u)/Re;ge>1&&(s/=ge,u/=ge)}if(Fe){var Oe=(c+f)/Fe;Oe>1&&(c/=Oe,f/=Oe)}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&&(Ur.didMarginChange(l,n)||Y0e(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var cr=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<cr)return ga.call("_doPlot",e);r._size=l,st.warn("Too many auto-margin redraws.")}V0e(e)};function V0e(e){var r=Lo.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var mq=["l","r","t","b","p","w","h"];Ur.didMarginChange=function(e,r){for(var t=0;t<mq.length;t++){var a=mq[t],n=e[a],i=r[a];if(!Z1(n)||Math.abs(i-n)>1)return!0}return!1};Ur.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Ur.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(st.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),m=st.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:st.isArrayBuffer(y)?C0e.encode(y):y},v)}return p?c.map(function(b){return s(b,v)}):m?st.simpleMap(c,st.identity):st.isJSDate(c)?st.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)};Ur.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()};Ur.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=Ur.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]=Ur.extendTrace(f.data[o],l.data[a]))}return f};Ur.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)}};Ur.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=st.extendDeepNoArrays({},r||{}),v=st.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=st.nestedProperty(v,t[i]),n=a.get(),n===void 0?st.nestedProperty(d,t[i]).set(null):(a.set(null),st.nestedProperty(d,t[i]).set(n));if(e=st.extendDeepNoArrays(e||{},v),t&&t.length){for(i=0;i<t.length;i++)if(l=st.nestedProperty(d,t[i]),u=l.get(),!!u){for(s=st.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]=Ur.extendObjectWithContainers(f[o],p)}s.set(f)}}return e};Ur.dataArrayContainers=["dimensions"];Ur.layoutArrayContainers=ga.layoutArrayContainers;Ur.extendTrace=function(e,r){return Ur.extendObjectWithContainers(e,r,Ur.dataArrayContainers)};Ur.extendLayout=function(e,r){return Ur.extendObjectWithContainers(e,r,Ur.layoutArrayContainers)};Ur.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 m=p.basePlotModule.name;l[m]||(l[m]=[]),l[m].push(v)}e.data[f[c]]=Ur.extendTrace(e.data[f[c]],r[c])}}var y=st.expandObjectPaths(st.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var T in y)b.test(T)&&delete y[T].range;Ur.extendLayout(e.layout,y),delete e.calcdata,Ur.supplyDefaults(e),Ur.doCalcdata(e);var _=st.expandObjectPaths(t);if(_){var x=e._fullLayout._plots;for(var w in x){var k=x[w],M=k.xaxis,C=k.yaxis,D=M.range.slice(),R=C.range.slice(),P=null,q=null,z=null,B=null;Array.isArray(_[M._name+".range"])?P=_[M._name+".range"].slice():Array.isArray((_[M._name]||{}).range)&&(P=_[M._name].range.slice()),Array.isArray(_[C._name+".range"])?q=_[C._name+".range"].slice():Array.isArray((_[C._name]||{}).range)&&(q=_[C._name].range.slice()),D&&P&&(M.r2l(D[0])!==M.r2l(P[0])||M.r2l(D[1])!==M.r2l(P[1]))&&(z={xr0:D,xr1:P}),R&&q&&(C.r2l(R[0])!==C.r2l(q[0])||C.r2l(R[1])!==C.r2l(q[1]))&&(B={yr0:R,yr1:q}),(z||B)&&s.push(st.extendFlat({plotinfo:k},z,B))}}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=st.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var p in l){var m=l[p],y=e._fullData[m[0]]._module;y.basePlotModule.plot(e,m,f,u)}},_q(e,i,o)};Ur.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(),m=c.range.slice(),y=v.range.slice();c.setScale(),v.setScale();var b=null,T=null;(c.r2l(d[0])!==c.r2l(m[0])||c.r2l(d[1])!==c.r2l(m[1]))&&(b={xr0:d,xr1:m}),(v.r2l(p[0])!==v.r2l(y[0])||v.r2l(p[1])!==v.r2l(y[1]))&&(T={yr0:p,yr1:y}),(b||T)&&l.push(st.extendFlat({plotinfo:f},b,T))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,v,d,p,m=[],y=0;y<u.length;y++)m.push(y);function b(){if(e._fullLayout)for(var _=0;_<c.length;_++)c[_].transitionAxes&&c[_].transitionAxes(e,l,v,s)}function T(){if(e._fullLayout)for(var _=0;_<c.length;_++)c[_].plot(e,p,d,s)}l.length&&r.anim?i.ordering==="traces first"?(v=st.extendFlat({},i,{duration:0}),p=m,d=i,setTimeout(b,i.duration),T()):(v=i,p=null,d=st.extendFlat({},i,{duration:0}),setTimeout(T,v.duration),b()):l.length?(v=i,b()):r.anim&&(p=m,d=i,T())},_q(e,i,o)};function _q(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 ga.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 ga.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=[Ur.previousPromises,s,t.prepareFn,Ur.rehover,Ur.reselect,o],f=st.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ur.doCalcdata=function(e,r){var t=Lo.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=E0e.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(m,y){if(i=a[m],o=i._module,!!o.isContainer===y){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:hq,y:hq}]),b[0].t||(b[0].t={}),b[0].trace=i,s[m]=b}}for(Z0e(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);yq(e);var p=W0e(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);yq(e)}ga.getComponentMethod("fx","calc")(e),ga.getComponentMethod("errorbars","calc")(e)};var X0e=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function W0e(e,r){var t=[],a,n,i,o,l;function s(Y,V,J){var j=V._id.charAt(0);if(Y==="histogram2dcontour"){var ee=V._counterAxes[0],pe=Lo.getFromId(r,ee),ne=j==="x"||ee==="x"&&pe.type==="category",ye=j==="y"||ee==="y"&&pe.type==="category";return function(te,De){return te===0||De===0||ne&&te===J[De].length-1||ye&&De===J.length-1?-1:(j==="y"?De:te)-1}}else return function(te,De){return j==="y"?De:te}}var u={min:function(Y){return st.aggNums(Math.min,null,Y)},max:function(Y){return st.aggNums(Math.max,null,Y)},sum:function(Y){return st.aggNums(function(V,J){return V+J},null,Y)},total:function(Y){return st.aggNums(function(V,J){return V+J},null,Y)},mean:function(Y){return st.mean(Y)},"geometric mean":function(Y){return st.geometricMean(Y)},median:function(Y){return st.median(Y)}};function f(Y,V){return Y[1]-V[1]}function c(Y,V){return V[1]-Y[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var d=v.categoryorder.match(X0e);if(d){var p=d[1],m=d[2],y=v._id.charAt(0),b=y==="x",T=[];for(n=0;n<v._categories.length;n++)T.push([v._categories[n],[]]);for(n=0;n<v._traceIndices.length;n++){var _=v._traceIndices[n],x=r._fullData[_];if(x.visible===!0){var w=x.type;ga.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var k=w==="splom",M=w==="scattergl",C=r.calcdata[_];for(i=0;i<C.length;i++){var D=C[i],R,P;if(k){var q=x._axesDim[v._id];if(!b){var z=x._diag[q][0];z&&(v=r._fullLayout[Lo.id2name(z)])}var B=D.trace.dimensions[q].values;for(o=0;o<B.length;o++)for(R=v._categoriesMap[B[o]],l=0;l<D.trace.dimensions.length;l++)if(l!==q){var U=D.trace.dimensions[l];T[R][1].push(U.values[o])}}else if(M){for(o=0;o<D.t.x.length;o++)b?(R=D.t.x[o],P=D.t.y[o]):(R=D.t.y[o],P=D.t.x[o]),T[R][1].push(P);D.t&&D.t._scene&&delete D.t._scene.dirty}else if(D.hasOwnProperty("z")){P=D.z;var G=s(x.type,v,P);for(o=0;o<P.length;o++)for(l=0;l<P[o].length;l++)R=G(l,o),R+1&&T[R][1].push(P[o][l])}else{if(R=D.p,R===void 0&&(R=D[y]),isNaN(R)||R<0)continue;for(P=D.s,P===void 0&&(P=D.v),P===void 0&&(P=b?D.y:D.x),Array.isArray(P)||(P===void 0?P=[]:P=[P]),o=0;o<P.length;o++)T[R][1].push(P[o])}}}}v._categoriesValue=T;var X=[];for(n=0;n<T.length;n++)X.push([T[n][0],u[p](T[n][1])]);X.sort(m==="descending"?c:f),v._categoriesAggregatedValue=X,v._initialCategories=X.map(function(Y){return Y[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function Z0e(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}st.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[Lo.id2name(l)])}function yq(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]?st.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)}}Ur.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Ur.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Ur.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);ga.getComponentMethod("selections","reselect")(e,n)};Ur.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,st.filterVisible(d),a)}r.traceHash=i};Ur.plotBasePlot=function(e,r,t,a,n){var i=ga.getModule(e),o=N0e(r.calcdata,i)[0];i.plot(r,o,a,n)};Ur.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 bf={};Ka(bf,{svg:()=>Aq,svgAttrs:()=>j0e,xlink:()=>Tq,xmlns:()=>J0e});var J0e,Aq,Tq,j0e,xf=$a(()=>{"use strict";J0e="http://www.w3.org/2000/xmlns/",Aq="http://www.w3.org/2000/svg",Tq="http://www.w3.org/1999/xlink",j0e={xmlns:Aq,"xmlns:xlink":Tq}});var Hi={};Ka(Hi,{CAP_SHIFT:()=>rve,FROM_BL:()=>$0e,FROM_BR:()=>Q0e,FROM_TL:()=>K0e,LINE_SPACING:()=>eve,MID_SHIFT:()=>tve,OPPOSITE_SIDE:()=>ave});var $0e,K0e,Q0e,eve,rve,tve,ave,Ui=$a(()=>{"use strict";$0e={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},K0e={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},Q0e={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},eve=1.3,rve=.7,tve=.35,ave={left:"right",right:"left",top:"bottom",bottom:"top"}});var Ri=I(Ki=>{"use strict";var Sn=sa(),cl=ir(),nve=cl.strTranslate,P6=(xf(),hr(bf)),ive=(Ui(),hr(Hi)).LINE_SPACING,ove=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,I6=e=>e?e.match(ove):null;Ki.matchTex=I6;var lve=e=>{var r=I6(e);return!!r&&!r[1]&&!r[3]};Ki.isPureTex=lve;function Eq(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,v=o===void 0?f:o,d=l===void 0?c:l;(f>v||c>d)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,b=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+nve(-f/2,b-c/2)}):r[0]==="l"?m=b-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=b):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+b-c/2),a.attr({x:p,y:m})}function sve(e){e.selectAll("a").each(function(){var r=Sn.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,H6(a)||null)})})}Ki.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&I6(a);n&&!vve()&&(n=null);var i=Sn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=wve(e.node(),a);s&&e.style("pointer-events","all"),Ki.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");hve(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),sve(m),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var b=p.width,T=p.height;m.attr({class:o,height:T,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var _=e.node().style.fill||"black",x=m.select("g");x.attr({fill:_,stroke:_}),Eq(e,o,y,m,c,u,b,T),t&&t.call(e,y),s(y)})})):l(),e};Ki.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=Sn.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);Eq(e,r,a,n,i,o)}}};Ki.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=Sn.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var uve=/(<|&lt;|&#60;)/g,fve=/(>|&gt;|&#62;)/g;function cve(e){return e.replace(uve,"\\lt ").replace(fve,"\\gt ")}var N6=null,Dq=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Mq=!1,kq=!1;function vve(){let e=Dq();return e===3||e===4?!0:(e===null?Mq||(Mq=!0,cl.warn("MathJax is not loaded. Math equations will not be rendered.")):kq||(kq=!0,cl.warn("Unsupported MathJax version:",MathJax.version)),!1)}function hve(e,r,t){let a=Dq();var n;let i=function(){if(!N6){let u=MathJax._.output.svg_ts.SVG,f=cl.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=cl.extendFlat({},f.linebreaks,{inline:!1})),N6=MathJax._.mathjax.mathjax.document(document,cl.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+cl.randstr({},64);n=Sn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=cve(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return N6.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)cl.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=>{cl.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var qq={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"},dve={sub:"0.3em",sup:"-0.6em"},pve={sub:"-0.21em",sup:"0.42em"},Sq="\u200B",Cq=["http:","https:","mailto:","",void 0,":"],Rq=Ki.NEWLINES=/(\r\n?|\n)/g,B6=/(<[^<>]*>)/,O6=/<(\/?)([^ >]*)(\s+(.*))?>/i,mve=/<br(\s+.*)?>/i;Ki.BR_TAG_ALL=/<br(\s+.*)?>/gi;var Fq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Pq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Nq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,yve=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function $c(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&A2(a)}var gve=/(^|;)\s*color:/;Ki.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(B6),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],v=c.match(O6),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 m=t-u;s&&(s!=="br"||m<=i||p<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var bve={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},xve=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function A2(e){return e.replace(xve,function(r,t){var a;return t.charAt(0)==="#"?a=_ve(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=bve[t],a||r})}Ki.convertEntities=A2;function _ve(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 wve(e,r){r=r.replace(Rq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(P6.svg,"tspan");Sn.select(k).attr({class:"line",dy:i*ive+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var C=1;C<M.length;C++)l(M[C])}function l(k){var M=k.type,C={},D;if(M==="a"){D="a";var R=k.target,P=k.href,q=k.popup;P&&(C={"xlink:xlink:show":R==="_blank"||R.charAt(0)!=="_"?"new":"replace",target:R,"xlink:xlink:href":P},q&&(C.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+q+'");return false;'))}else D="tspan";k.style&&(C.style=k.style);var z=document.createElementNS(P6.svg,D);if(M==="sup"||M==="sub"){s(n,Sq),n.appendChild(z);var B=document.createElementNS(P6.svg,"tspan");s(B,Sq),Sn.select(B).attr("dy",pve[M]),C.dy=dve[M],n.appendChild(z),n.appendChild(B)}else n.appendChild(z);Sn.select(z).attr(C),n=k.node=z,a.push(k)}function s(k,M){k.appendChild(document.createTextNode(M))}function u(k){if(a.length===1){cl.log("Ignoring unexpected end tag </"+k+">.",r);return}var M=a.pop();k!==M.type&&cl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=mve.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(B6),v=0;v<c.length;v++){var d=c[v],p=d.match(O6),m=p&&p[2].toLowerCase(),y=qq[m];if(m==="br")o();else if(y===void 0)s(n,A2(d));else if(p[1])u(m);else{var b=p[4],T={type:m},_=$c(b,Fq);if(_?(_=_.replace(gve,"$1 fill:"),y&&(_+=";"+y)):y&&(_=y),_&&(T.style=_),m==="a"){t=!0;var x=$c(b,Pq);if(x){var w=H6(x);w&&(T.href=w,T.target=$c(b,Nq)||"_blank",T.popup=$c(b,yve))}}l(T)}}return t}function H6(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 Cq.indexOf(n)!==-1&&Cq.indexOf(i)!==-1?r:""}Ki.sanitizeHTML=function(r){r=r.replace(Rq," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(B6),o=0;o<i.length;o++){var l=i[o],s=l.match(O6),u=s&&s[2].toLowerCase();if(u in qq)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=$c(f,Fq),v=c?{style:c}:{};if(u==="a"){var d=$c(f,Pq);if(d){var p=H6(d);if(p){v.href=p;var m=$c(f,Nq);m&&(v.target=m)}}}var y=document.createElement(u);a.appendChild(y),Sn.select(y).attr(v),a=y,n.push(y)}else a.appendChild(document.createTextNode(A2(l)))}var b="innerHTML";return t[b]};Ki.lineCount=function(r){return r.selectAll("tspan.line").size()||1};Ki.positionText=function(r,t,a){return r.each(function(){var n=Sn.select(this);function i(s,u){return u===void 0?(u=n.attr(s),u===null&&(n.attr(s,0),u=0)):n.attr(s,u),u}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function Lq(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=cl.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 z6="1px ";Ki.makeTextShadow=function(e){var r=z6,t=z6,a=z6;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};Ki.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=Sn.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&Sn.select(e.node().parentNode).select(f).style({opacity:0})}function l(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var v=window.getSelection();v.removeAllRanges(),v.addRange(c),f.focus()}function s(){var u=Sn.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(Lq(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var m=Sn.select(this).attr("class"),y;m?y="."+m.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&Sn.select(e.node().parentNode).select(y).style({opacity:0});var b=this.textContent;Sn.select(this).transition().duration(0).remove(),Sn.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var m=this;t._editing=!0,Sn.select(document).on("mouseup",function(){if(Sn.event.target===m)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){Sn.event.which===27?(t._editing=!1,e.style({opacity:1}),Sn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),Sn.select(this).call(Lq(e,f,r)))}).on("keydown",function(){Sn.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),Sn.rebind(e,n,"on")}});var Ul=I((Dqe,Uq)=>{"use strict";var Ave=sa(),j1=da(),T2=ir(),Kc=Kt(),Tve=Uc().isValid;function Mve(e,r,t){var a=r?T2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(T2.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(j1(n[o])){i=!0;break}}return T2.isPlainObject(a)&&(i||a.showscale===!0||j1(a.cmin)&&j1(a.cmax)||Tve(a.colorscale)||T2.isPlainObject(a.colorbar))}var zq=["showscale","autocolorscale","colorscale","reversescale","colorbar"],J1=["min","max","mid","auto"];function Iq(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<zq.length;i++)o=zq[i],a[o]=t[o];if(r)for(n="c",i=0;i<J1.length;i++)o=J1[i],a[o]=t["c"+o];else{var l;for(i=0;i<J1.length;i++){if(o=J1[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=J1.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function Bq(e){for(var r=Iq(e),t=r.min,a=r.max,n=r.reversescale?Oq(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 Oq(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 Hq(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]=Kc.rgbaArray(a[o]);var l=Ave.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 Kc.rgbaArrayToString(l(c))}:u?f=function(c){return j1(c)?l(c):Kc.isValid(c)?c:Kc.defaultLine}:f=function(c){return j1(c)?Kc.rgbaArrayToString(l(c)):Kc.isValid(c)?c:Kc.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function kve(e,r){return Hq(Bq(e),r)}Uq.exports={hasColorscale:Mve,extractOpts:Iq,extractScale:Bq,flipScale:Oq,makeColorScaleFunc:Hq,makeColorScaleFuncFromTrace:kve}});var $1=I((qqe,Vq)=>{"use strict";var Gq=(i6(),hr(n6)),Sve=Gq.FORMAT_LINK,Cve=Gq.DATE_FORMAT_LINK;function Lve(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?U6:Yq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function U6(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: "+Sve+"."].join(" ")}function Yq(e,r){return U6(e,r)+[" And for dates see: "+Cve+".","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(" ")}Vq.exports={axisHoverFormat:Lve,descriptionOnlyNumbers:U6,descriptionWithDates:Yq}});var vl=I((Fqe,sR)=>{"use strict";var Xq=Di(),rh=bs(),lR=uf().dash,Y6=Rn().extendFlat,Wq=Ra().templatedArray,Rqe=Hv().templateFormatStringDescription,Zq=$1().descriptionWithDates,Eve=(Zn(),hr(ri)).ONEDAY,_s=(ni(),hr(ai)),Dve=_s.HOUR_PATTERN,qve=_s.WEEKDAY_PATTERN,G6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Rve=Y6({},G6,{values:G6.values.slice().concat(["sync"])});function Jq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var jq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$q={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Kq={valType:"data_array",editType:"ticks"},Qq={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function eR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function rR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var tR={valType:"color",dflt:rh.defaultLine,editType:"ticks"},aR={valType:"color",dflt:rh.lightLine,editType:"ticks"};function nR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var iR=Y6({},lR,{editType:"ticks"}),oR={valType:"boolean",editType:"ticks"};sR.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:rh.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Xq({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:[_s.idRegex.x.toString(),_s.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:[_s.idRegex.x.toString(),_s.idRegex.y.toString()],editType:"calc"},rangebreaks:Wq("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:[qve,Dve,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Eve},editType:"calc"}),tickmode:Rve,nticks:Jq(),tick0:jq,dtick:$q,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Kq,ticktext:{valType:"data_array",editType:"ticks"},ticks:Qq,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:eR(),tickwidth:rR(),tickcolor:tR,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:Y6({},lR,{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:Xq({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:Zq("tick label")},tickformatstops:Wq("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:Zq("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:rh.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:oR,gridcolor:aR,gridwidth:nR(),griddash:iR,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:rh.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:rh.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",_s.idRegex.x.toString(),_s.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",_s.idRegex.x.toString(),_s.idRegex.y.toString()],editType:"plot"},minor:{tickmode:G6,nticks:Jq("minor"),tick0:jq,dtick:$q,tickvals:Kq,ticks:Qq,ticklen:eR("minor"),tickwidth:rR("minor"),tickcolor:tR,gridcolor:aR,gridwidth:nR("minor"),griddash:iR,showgrid:oR,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var M2=I((Pqe,fR)=>{"use strict";var rn=vl(),uR=Di(),V6=Rn().extendFlat,Fve=Il().overrideAll;fR.exports=Fve({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:rn.linecolor,outlinewidth:rn.linewidth,bordercolor:rn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:rn.minor.tickmode,nticks:rn.nticks,tick0:rn.tick0,dtick:V6({},rn.dtick,{}),tickvals:rn.tickvals,ticktext:rn.ticktext,ticks:V6({},rn.ticks,{dflt:""}),ticklabeloverflow:V6({},rn.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:rn.ticklen,tickwidth:rn.tickwidth,tickcolor:rn.tickcolor,ticklabelstep:rn.ticklabelstep,showticklabels:rn.showticklabels,labelalias:rn.labelalias,tickfont:uR({description:"Sets the color bar's tick label font"}),tickangle:rn.tickangle,tickformat:rn.tickformat,tickformatstops:rn.tickformatstops,tickprefix:rn.tickprefix,showtickprefix:rn.showtickprefix,ticksuffix:rn.ticksuffix,showticksuffix:rn.showticksuffix,separatethousands:rn.separatethousands,exponentformat:rn.exponentformat,minexponent:rn.minexponent,showexponent:rn.showexponent,title:{text:{valType:"string"},font:uR({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Qc=I((zqe,vR)=>{"use strict";var Pve=M2(),Nve=(Iv(),hr(N1)).counter,zve=(t2(),hr(r2)).default,cR=Uc().scales,Nqe=zve(cR);function k2(e){return"`"+e+"`"}vR.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"?cR[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 "+k2(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=k2(u+d),T=k2(u+p),_=k2(u+m),x=T+" and "+_,w={};w[p]=w[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:w},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:w},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Pve),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Nve("coloraxis"),dflt:null,editType:"calc"}),M}});var W6=I((Iqe,hR)=>{"use strict";var Ive=Rn().extendFlat,Bve=Qc(),X6=Uc().scales;hR.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:X6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:X6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:X6.RdBu,editType:"calc"}},coloraxis:Ive({_isSubplotObj:!0,editType:"calc"},Bve("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Z6=I((Bqe,dR)=>{"use strict";var Ove=ir();dR.exports=function(r){return Ove.isPlainObject(r.colorbar)}});var $6=I(j6=>{"use strict";var J6=da(),pR=ir(),mR=(Zn(),hr(ri)),Hve=mR.ONEDAY,Uve=mR.ONEWEEK;j6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Hve:1;if(!e)return i;if(J6(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=J6(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};j6.tick0=function(e,r,t,a){if(r==="date")return pR.cleanDate(e,pR.dateTick0(t,a%Uve===0?1:0));if(!(a==="D1"||a==="D2"))return J6(e)?Number(e):0}});var K6=I((Hqe,gR)=>{"use strict";var yR=$6(),Gve=ir().isArrayOrTypedArray,Yve=vo().isTypedArraySpec,Vve=vo().decodeTypedArraySpec;gR.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 w=l[x];return Yve(w)&&(w=Vve(w)),w!==void 0?w:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;Gve(d)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var T=s.dtick=yR.dtick(v,n);s.tick0=yR.tick0(c,n,t.calendar,T)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":o||a("ticktext")}}});var e7=I((Uqe,xR)=>{"use strict";var Q6=ir(),bR=vl();xR.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?bR.minor:bR,u=i?"minor.":"",f=Q6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Q6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=Q6.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 r7=I((Gqe,_R)=>{"use strict";_R.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 Yo=I((Yqe,wR)=>{"use strict";var S2=ir(),Xve=Ra();wR.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=S2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Xve.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var v=l[f];S2.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(S2.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)S2.relinkPrivateKeys(s[f],o[f])}return s}});var a7=I((Vqe,TR)=>{"use strict";var t7=ir(),Wve=Kt().contrast,AR=vl(),Zve=r7(),Jve=Yo();TR.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");t7.isPlainObject(o)||delete t.labelalias;var l=Zve(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?Wve(i.bgColor):f&&f!==AR.color.dflt?f:u.color;if(t7.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");Jve(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:jve}),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 jve(e,r){function t(n,i){return t7.coerce(e,r,AR.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var n7=I((Xqe,MR)=>{"use strict";var $ve=r7();MR.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=$ve(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var i7=I((Wqe,kR)=>{"use strict";var _f=ir(),Kve=Ra(),Qve=K6(),ehe=e7(),rhe=a7(),the=n7(),ahe=M2();kR.exports=function(r,t,a){var n=Kve.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,q){return _f.coerce(i,n,ahe,P,q)}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"),m=o("xref"),y=p==="paper",b=m==="paper",T,_,x,w="left";c?(x="middle",w=b?"left":"right",T=b?1.02:1,_=.5):(x=y?"bottom":"top",w="center",T=.5,_=y?1.02:1),_f.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),_f.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",w),o("xpad"),o("yanchor",x),o("ypad"),_f.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=_f.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"),Qve(i,n,o,"linear");var M=a.font,C={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(C.bgColor="black"),the(i,n,o,"linear",C),rhe(i,n,o,"linear",C),ehe(i,n,o,"linear",C),o("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:M,R=_f.extendFlat({},M,{family:D.family,size:_f.bigFont(D.size)});_f.coerceFont(o,"title.font",R),o("title.side",c?"top":"right")}});var th=I((Zqe,LR)=>{"use strict";var SR=da(),l7=ir(),nhe=Z6(),ihe=i7(),CR=Uc().isValid,ohe=Pt().traceIs;function o7(e,r){var t=r.slice(0,r.length-1);return r?l7.nestedProperty(e,t).get()||{}:e}LR.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=o7(r,o),f=o7(t,o),c=o7(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 m=ohe(t,"contour")&&l7.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,l7.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var b=u[l+"min"],T=u[l+"max"],_=SR(b)&&SR(T)&&b<T,x=n(o+l+"auto",!_);x?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var w=u.colorscale,k=c.colorscale,M;if(w!==void 0&&(M=!CR(w)),k!==void 0&&(M=!CR(k)),n(o+"autocolorscale",M),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var C;o&&s&&(C=nhe(u));var D=n(o+"showscale",C);D&&(o&&c&&(f._template=c),ihe(u,f,a))}}});var RR=I((Jqe,qR)=>{"use strict";var ER=ir(),lhe=Ra(),DR=W6(),she=th();qR.exports=function(r,t){function a(c,v){return ER.coerce(r,t,DR,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return ER.coerce(i,o,DR.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=lhe.newContainer(t,s,"coloraxis"),o._name=s,she(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 PR=I((jqe,FR)=>{"use strict";var uhe=ir(),fhe=Ul().hasColorscale,che=Ul().extractOpts;FR.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?uhe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=che(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);fhe(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 u7=I(($qe,zR)=>{"use strict";var NR=da(),s7=ir(),vhe=Ul().extractOpts;zR.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?s7.nestedProperty(t,o).get():t,s=vhe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return s7.aggNums(Math.min,null,i)},p=function(){return s7.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&NR(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&NR(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 m;f*c<0?m=n.colorscale.diverging:f>=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var nh=I((Kqe,IR)=>{"use strict";var C2=Uc(),ah=Ul();IR.exports={moduleType:"component",name:"colorscale",attributes:Qc(),layoutAttributes:W6(),supplyLayoutDefaults:RR(),handleDefaults:th(),crossTraceDefaults:PR(),calc:u7(),scales:C2.scales,defaultScale:C2.defaultScale,getScale:C2.get,isValidScale:C2.isValid,hasColorscale:ah.hasColorscale,extractOpts:ah.extractOpts,extractScale:ah.extractScale,flipScale:ah.flipScale,makeColorScaleFunc:ah.makeColorScaleFunc,makeColorScaleFuncFromTrace:ah.makeColorScaleFuncFromTrace}});var ki=I((Qqe,OR)=>{"use strict";var BR=ir(),hhe=vo().isTypedArraySpec;OR.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 BR.isPlainObject(r)&&(BR.isArrayOrTypedArray(r.size)||hhe(r.size))}}});var f7=I((eRe,HR)=>{"use strict";var dhe=da();HR.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 dhe(s)&&s>0?Math.max(s,i):0}}});var ws=I(Fi=>{"use strict";var K1=ir();Fi.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Fi.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(Fi.getSubplot(e))!==-1};Fi.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};Fi.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};Fi.c2dApply=function(e,r){e.length!==r.length&&K1.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};Fi.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||Fi.quadrature(r,t):e.charAt(0)==="x"?r:t};Fi.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};Fi.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};Fi.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};Fi.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)),Fi.appendArrayPointValue(n,r,a),n};Fi.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=UR(i);if(e[o]===void 0){var l=K1.nestedProperty(r,i).get(),s=GR(l,t);s!==void 0&&(e[o]=s)}}};Fi.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=UR(i);if(e[o]===void 0){for(var l=K1.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=GR(l,t[u]);e[o]=s}}};var phe={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function UR(e){return phe[e]||e}function GR(e,r){if(Array.isArray(r)){if(K1.isArrayOrTypedArray(e)&&K1.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var mhe={x:!0,y:!0},yhe={"x unified":!0,"y unified":!0};Fi.isUnifiedHover=function(e){return typeof e!="string"?!1:!!yhe[e]};Fi.isXYhover=function(e){return typeof e!="string"?!1:!!mhe[e]}});var v7=I((tRe,YR)=>{var c7={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},ghe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,bhe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function xhe(e){let r=[];return e.replace(ghe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=_he(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===c7[i])return r.push([o,...l]),"";if(l.length<c7[i])throw new Error("malformed path data");r.push([o,...l.splice(0,c7[i])])}}),r}function _he(e){let r=e.match(bhe);return r?r.map(Number):[]}YR.exports=xhe});var $R=I((aRe,jR)=>{"use strict";var whe=v7(),Sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Gt="M0,0Z",VR=Math.sqrt(2),wf=Math.sqrt(3),h7=Math.PI,d7=Math.cos,p7=Math.sin;jR.exports={circle:{n:0,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Vt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2);return Vt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*1.3,2);return Vt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*.4,2),n=Sr(e*1.2,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*.8/VR,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Vt(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(Yt(r))return Gt;var a=Sr(e*2/wf,2),n=Sr(e/2,2),i=Sr(e,2);return Vt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*2/wf,2),n=Sr(e/2,2),i=Sr(e,2);return Vt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*2/wf,2),n=Sr(e/2,2),i=Sr(e,2);return Vt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*2/wf,2),n=Sr(e/2,2),i=Sr(e,2);return Vt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Vt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Vt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Vt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Vt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*.951,2),n=Sr(e*.588,2),i=Sr(-e,2),o=Sr(e*-.309,2),l=Sr(e*.809,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*wf/2,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*wf/2,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*.924,2),n=Sr(e*.383,2);return Vt(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(Yt(r))return Gt;var a=e*1.4,n=Sr(a*.225,2),i=Sr(a*.951,2),o=Sr(a*.363,2),l=Sr(a*.588,2),s=Sr(-a,2),u=Sr(a*-.309,2),f=Sr(a*.118,2),c=Sr(a*.809,2),v=Sr(a*.382,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*.66,2),n=Sr(e*.38,2),i=Sr(e*.76,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*wf*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Vt(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(Yt(r))return Gt;var a=Sr(e*wf*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Vt(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(Yt(r))return Gt;var a=Sr(e*1.1,2),n=Sr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Vt(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(Yt(r))return Gt;var a=Sr(e*1.4,2),n=Sr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Vt(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(Yt(r))return Gt;var a=Sr(e*.7,2),n=Sr(e*1.4,2);return Vt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*1.4,2),n=Sr(e*.7,2);return Vt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2);return Vt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e/VR,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.3,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.3,2),n=Sr(e*.65,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.4,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.2,2),n=Sr(e*.85,2);return Vt(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(Yt(r))return Gt;var a=Sr(e/2,2),n=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*1.4,2);return Vt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*1.4,2);return Vt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2);return Vt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2);return Vt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e*2,2);return Vt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e*2,2);return Vt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*2,2),n=Sr(e,2);return Vt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e*2,2),n=Sr(e,2);return Vt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e*2,2);return Vt(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(Yt(r))return Gt;var a=Sr(e,2),n=Sr(e*2,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*2,2),n=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=Sr(e*2,2),n=Sr(e,2);return Vt(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(Yt(r))return Gt;var a=h7/2.5,n=2*e*d7(a),i=2*e*p7(a);return Vt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Yt(r))return Gt;var a=h7/4,n=2*e*d7(a),i=2*e*p7(a);return Vt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Yt(e){return e===null}var XR,WR,ZR,JR;function Vt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ZR===e&&JR===r&&XR===t)return WR;ZR=e,JR=r,XR=t;function a(y,b){var T=d7(y),_=p7(y),x=b[0],w=b[1]+(r||0);return[x*T-w*_,x*_+w*T]}for(var n=e/180*h7,i=0,o=0,l=whe(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 m=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=m[0],f[2]=m[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return WR=s,s}});var Sa=I((nRe,yF)=>{"use strict";var mi=sa(),Ca=ir(),Ahe=Ca.numberFormat,Af=da(),E2=Pt(),ii=Kt(),The=nh(),ep=Ca.strTranslate,D2=Ri(),Mhe=(xf(),hr(bf)),khe=(Ui(),hr(Hi)),She=khe.LINE_SPACING,lF=(zv(),hr(Nv)).DESELECTDIM,Che=ki(),Lhe=f7(),Ehe=ws().appendArrayPointValue,Or={};yF.exports=Or;Or.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(ii.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",m7(qhe(f))),s&&e.style("text-shadow",s==="auto"?D2.makeTextShadow(ii.contrast(i)):m7(s)),u&&e.style("text-decoration-line",m7(Rhe(u)))};function m7(e){return e==="none"?void 0:e}var Dhe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function qhe(e){return Dhe[e]}function Rhe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Or.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Or.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Or.setRect=function(e,r,t,a,n){e.call(Or.setPosition,r,t).call(Or.setSize,a,n)};Or.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Af(n)&&Af(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",ep(n,i));else return!1;return!0};Or.translatePoints=function(e,r,t){e.each(function(a){var n=mi.select(this);Or.translatePoint(a,n,r,t)})};Or.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};Or.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=E2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Or.hideOutsideRangePoint(u,mi.select(this),t,a,o,l)})})}};Or.crispRound=function(e,r,t){return!r||!Af(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Or.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||"";ii.stroke(r,a||i.color),Or.dashLine(r,l,o)};Or.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||"";mi.select(this).call(ii.stroke,t||i.color).call(Or.dashLine,l,o)})};Or.dashLine=function(e,r,t){t=+t||0,r=Or.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Or.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 sF(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=Or.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;Or.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,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(cF,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Or.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ii.fill,r.fillcolor)}Or.singleFillStyle=function(e,r){var t=mi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};sF(e,n,r,!1)};Or.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=mi.select(this);a[0].trace&&sF(n,a[0].trace,r,t)})};var KR=$R();Or.symbolNames=[];Or.symbolFuncs=[];Or.symbolBackOffs=[];Or.symbolNeedLines={};Or.symbolNoDot={};Or.symbolNoFill={};Or.symbolList=[];Object.keys(KR).forEach(function(e){var r=KR[e],t=r.n;Or.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Or.symbolNames[t]=e,Or.symbolFuncs[t]=r.f,Or.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Or.symbolNeedLines[t]=!0),r.noDot?Or.symbolNoDot[t]=!0:Or.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Or.symbolNoFill[t]=!0)});var Fhe=Or.symbolNames.length,Phe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Or.symbolNumber=function(e){if(Af(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=Or.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Fhe||e>=400?0:Math.floor(Math.max(e,0))};function uF(e,r,t,a){var n=e%100;return Or.symbolFuncs[n](r,t,a)+(e>=200?Phe:"")}var QR=Ahe("~f"),fF={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}};Or.gradient=function(e,r,t,a,n,i){var o=fF[a];return cF(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function cF(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]=[QR((1-n[d][0])*100),n[d][1]]:v[d]=[QR(n[d][0]*100),n[d][1]];var p=r._fullLayout,m="g"+p._uid+"-"+t,y=p._defs.select(".gradients").selectAll("#"+m).data([a+v.join(";")],Ca.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var b=mi.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",m);var T=b.selectAll("stop").data(v);T.exit().remove(),T.enter().append("stop"),T.each(function(_){mi.select(this).attr({offset:_[0]+"%","stop-color":ii.rgb(_[1]),"stop-opacity":ii.parse(_[1]).alpha})})}),e.style(i,_7(m,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}Or.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var v=r==="legend";l&&(s==="overlay"?(u=l,f=ii.contrast(u)):(u=void 0,f=l));var d=t._fullLayout,p="p"+d._uid+"-"+a,m,y,b=function(q,z,B,U,G){return U+(G-U)*(q-z)/(B-z)},T,_,x,w,k={},M=ii.rgb(f),C=ii.parse(f).alpha,D=c*C;switch(n){case"/":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2,_=o*i,w="path",k={d:T,opacity:D,stroke:M,"stroke-width":_+"px"};break;case"\\":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,_=o*i,w="path",k={d:T,opacity:D,stroke:M,"stroke-width":_+"px"};break;case"x":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2+"M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,_=i-i*Math.sqrt(1-o),w="path",k={d:T,opacity:D,stroke:M,"stroke-width":_+"px"};break;case"|":m=i,y=i,w="path",T="M"+m/2+",0L"+m/2+","+y,_=o*i,w="path",k={d:T,opacity:D,stroke:M,"stroke-width":_+"px"};break;case"-":m=i,y=i,w="path",T="M0,"+y/2+"L"+m+","+y/2,_=o*i,w="path",k={d:T,opacity:D,stroke:M,"stroke-width":_+"px"};break;case"+":m=i,y=i,w="path",T="M"+m/2+",0L"+m/2+","+y+"M0,"+y/2+"L"+m+","+y/2,_=i-i*Math.sqrt(1-o),w="path",k={d:T,opacity:D,stroke:M,"stroke-width":_+"px"};break;case".":m=i,y=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)),w="circle",k={cx:m/2,cy:y/2,r:x,opacity:D,fill:M};break;default:m=i,y=i,w="path",k={d:n,opacity:D,fill:M};break}var R=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),P=d._defs.select(".patterns").selectAll("#"+p).data([R],Ca.identity);P.exit().remove(),P.enter().append("pattern").each(function(){var q=mi.select(this);if(q.attr({id:p,width:m+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var z=ii.rgb(u),B=ii.parse(u).alpha,U=q.selectAll("rect").data([0]);U.exit().remove(),U.enter().append("rect").attr({width:m+"px",height:y+"px",fill:z,"fill-opacity":B})}var G=q.selectAll(w).data([0]);G.exit().remove(),G.enter().append(w).attr(k)}),e.style("fill",_7(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};Or.initGradients=function(e){var r=e._fullLayout,t=Ca.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),mi.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};Or.initPatterns=function(e){var r=e._fullLayout,t=Ca.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),mi.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};Or.getPatternAttr=function(e,r,t){return e&&Ca.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};Or.pointStyle=function(e,r,t,a){if(e.size()){var n=Or.makePointStyleFns(r);e.each(function(i){Or.singlePointStyle(i,mi.select(this),r,n,t,a)})}};Or.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=Or.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=A7(e,t),c=w7(e,t);r.attr("d",uF(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ca.isArrayOrTypedArray(l.color)?p=ii.defaultLine:p=l.color,Ca.isArrayOrTypedArray(o.color)&&(d=ii.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&&Or.dashLine(r,b,m),e.om)r.call(ii.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,Ca.isArrayOrTypedArray(_)&&(_=_[0],fF[_]||(_=0));var x=o.pattern,w=Or.getPatternAttr,k=x&&(w(x.shape,e.i,"")||w(x.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var C=t.uid;v&&(C+="-"+e.i),Or.gradient(r,n,C,_,[[0,M],[1,d]],"fill")}else if(k){var D=!1,R=x.fgcolor;!R&&i&&i.color&&(R=i.color,D=!0);var P=w(R,e.i,i&&i.color||null),q=w(x.bgcolor,e.i,null),z=x.fgopacity,B=w(x.size,e.i,8),U=w(x.solidity,e.i,.3);D=D||e.mcc||Ca.isArrayOrTypedArray(x.shape)||Ca.isArrayOrTypedArray(x.path)||Ca.isArrayOrTypedArray(x.bgcolor)||Ca.isArrayOrTypedArray(x.fgcolor)||Ca.isArrayOrTypedArray(x.size)||Ca.isArrayOrTypedArray(x.solidity);var G=t.uid;D&&(G+="-"+e.i),Or.pattern(r,"point",n,G,k,B,U,e.mcc,x.fillmode,q,P,z)}else Ca.isArrayOrTypedArray(d)?ii.fill(r,d[e.i]):ii.fill(r,d);m&&ii.stroke(r,p)}};Or.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Or.tryColorscale(t,""),r.lineScale=Or.tryColorscale(t,"line"),E2.traceIs(e,"symbols")&&(r.ms2mrc=Che.isBubble(e)?Lhe(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ca.extendFlat(r,Or.makeSelectedPointStyleFns(e)),r};Or.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;(Ca.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var w=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:w:c?u:lF*w});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var w=x.mcc||v;return x.selected?d||w:p||w});var m=n.size,y=i.size,b=o.size,T=y!==void 0,_=b!==void 0;return E2.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(x){var w=x.mrc||m/2;return x.selected?T?y/2:w:_?b/2:w}),r};Or.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:ii.addOpacity(c,lF))},r};Or.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Or.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){ii.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",uF(Or.symbolNumber(l),s,A7(o,r),w7(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=mi.select(this),l=0;l<n.length;l++)n[l](o,i)})}};Or.tryColorscale=function(e,r){var t=r?Ca.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&Ca.isArrayOrTypedArray(a))return The.makeColorScaleFuncFromTrace(t)}return Ca.identity};var y7={start:1,end:-1,middle:0,bottom:1,top:-1};function vF(e,r,t,a,n){var i=mi.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=(D2.lineCount(e)-1)*She+1,f=y7[l]*s,c=t*.75+y7[o]*s+(y7[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",ep(f,c))}function hF(e,r){var t=e.ts||r.textfont.size;return Af(t)&&t>0?t:0}Or.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=Or.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=mi.select(this),u=i?Ca.extractOption(l,r,"txt","texttemplate"):Ca.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={};Ehe(v,r,l.i),u=Ca.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=hF(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(Or.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:m}).text(u).call(D2.convertToTspans,t).call(vF,d,p,l.mrc)})}};Or.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Or.makeSelectedTextStyleFns(r);e.each(function(a){var n=mi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=hF(a,r);ii.fill(n,i);var s=E2.traceIs(r,"bar-like");vF(n,o,l,a.mrc2||a.mrc,s)})}};var eF=.5;Or.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(L2(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};Or.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[L2(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(L2(e[i-1],e[i],e[i+1],r));for(n.push(L2(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 dF,pF;function ih(e,r,t){return t&&(e=mF(e)),r?t0(e[1]):r0(e[0])}function r0(e){var r=mi.round(e,2);return dF=r,r}function t0(e){var r=mi.round(e,2);return pF=r,r}function L2(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,eF/2),u=Math.pow(o*o+l*l,eF/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[[r0(r[0]+(v&&f/v)),t0(r[1]+(v&&c/v))],[r0(r[0]-(d&&f/d)),t0(r[1]-(d&&c/d))]]}var Nhe={hv:function(e,r,t){return"H"+r0(r[0])+"V"+ih(r,1,t)},vh:function(e,r,t){return"V"+t0(r[1])+"H"+ih(r,0,t)},hvh:function(e,r,t){return"H"+r0((e[0]+r[0])/2)+"V"+t0(r[1])+"H"+ih(r,0,t)},vhv:function(e,r,t){return"V"+t0((e[1]+r[1])/2)+"H"+r0(r[0])+"V"+ih(r,1,t)}},zhe=function(e,r,t){return"L"+ih(r,0,t)+","+ih(r,1,t)};Or.steps=function(e){var r=Nhe[e]||zhe;return function(t){for(var a="M"+r0(t[0][0])+","+t0(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function mF(e,r){var t=e.backoff,a=e.trace,n=e.d,i=e.i;if(t&&a&&a.marker&&a.marker.angle%360===0&&a.line&&a.line.shape!=="spline"){var o=Ca.isArrayOrTypedArray(t),l=e,s=r?r[0]:dF||0,u=r?r[1]:pF||0,f=l[0],c=l[1],v=f-s,d=c-u,p=Math.atan2(d,v),m=o?t[i]:t;if(m==="auto"){var y=l.i;a.type==="scatter"&&y--;var b=l.marker,T=b.symbol;Ca.isArrayOrTypedArray(T)&&(T=T[y]);var _=b.size;Ca.isArrayOrTypedArray(_)&&(_=_[y]),m=b?Or.symbolBackOffs[Or.symbolNumber(T)]*_:0,m+=Or.getMarkerStandoff(n[y],a)||0}var x=f-m*Math.cos(p),w=c-m*Math.sin(p);(x<=f&&x>=s||x>=f&&x<=s)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[x,w])}return e}Or.applyBackoff=mF;Or.makeTester=function(){var e=Ca.ensureSingleById(mi.select("body"),"svg","js-plotly-tester",function(t){t.attr(Mhe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ca.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Or.tester=e,Or.testref=r};Or.savedBBoxes={};var g7=0,Ihe=1e4;Or.bBox=function(e,r,t){t||(t=rF(e));var a;if(t){if(a=Or.savedBBoxes[t],a)return Ca.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=rF(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=Or.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=Or.savedBBoxes[t],a)return Ca.extendFlat({},a)}}var u,f;r?u=e:(f=Or.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),mi.select(u).attr("transform",null).call(D2.positionText,0,0);var c=u.getBoundingClientRect(),v=Or.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 g7>=Ihe&&(Or.savedBBoxes={},g7=0),t&&(Or.savedBBoxes[t]=d),g7++,Ca.extendFlat({},d)};function rF(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Or.setClipUrl=function(e,r,t){e.attr("clip-path",_7(r,t))};function _7(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}Or.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}};Or.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+=ep(r,t),o=o.trim(),e[i]("transform",o),o};Or.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}};Or.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 Bhe=/\s*sc.*/;Or.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(Bhe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Ohe=/translate\([^)]*\)\s*$/;Or.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=mi.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(Ohe);r===1&&t===1?a=[]:a=[ep(o,l),"scale("+r+","+t+")",ep(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function w7(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}Or.getMarkerStandoff=w7;var Q1=Math.atan2,e0=Math.cos,oh=Math.sin;function tF(e,r){var t=r[0],a=r[1];return[t*e0(e)-a*oh(e),t*oh(e)+a*e0(e)]}var aF,nF,iF,oF,b7,x7;function A7(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Af(t)||Ca.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,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=Q1(v[1]-n,v[0]-a),p=Q1(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,T=aF/180*Math.PI,_=nF/180*Math.PI,x=T-y,w=e0(_)*oh(x),k=oh(_)*e0(b)-e0(_)*oh(b)*e0(x);m=-Q1(w,k)-Math.PI,aF=u,nF=f}var M=tF(d,[e0(m),0]),C=tF(p,[oh(m),0]);t=Q1(M[1]+C[1],M[0]+C[0])/Math.PI*180,i==="previous"&&!(x7===r.uid&&e.i===b7+1)&&(t=null)}if(i==="previous"&&!r._geo)if(x7===r.uid&&e.i===b7+1&&Af(a)&&Af(n)){var D=a-iF,R=n-oF,P=r.line&&r.line.shape||"",q=P.slice(P.length-1);q==="h"&&(R=0),q==="v"&&(D=0),t+=Q1(R,D)/Math.PI*180+90}else t=null}return iF=a,oF=n,b7=e.i,x7=r.uid,t}Or.getMarkerAngle=A7});var rp=I((iRe,_F)=>{"use strict";var lh=sa(),Hhe=da(),Uhe=pi(),T7=Pt(),a0=ir(),gF=a0.strTranslate,q2=Sa(),R2=Kt(),sh=Ri(),bF=(zv(),hr(Nv)),Ghe=(Ui(),hr(Hi)).OPPOSITE_SIDE,xF=/ [XY][0-9]* /,M7=1.6,k7=1.6;function Yhe(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(),m=!1,y=d&&d.font?d.font:{},b=y.family,T=y.size,_=y.color,x=y.weight,w=y.style,k=y.variant,M=y.textcase,C=y.lineposition,D=y.shadow,R=t.subtitlePropName,P=!!R,q=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},B=(z.text||"").trim(),U=!1,G=1,X=z.font,Y=X.family,V=X.size,J=X.color,j=X.weight,ee=X.style,pe=X.variant,ne=X.textcase,ye=X.lineposition,te=X.shadow,De;i==="title.text"?De="titleText":i.indexOf("axis")!==-1?De="axisTitleText":i.indexOf("colorbar")!==-1&&(De="colorbarTitleText");var ce=e._context.edits[De];function Re(Pr,Yr){return Pr===void 0||Yr===void 0?!1:Pr.replace(xF," % ")===Yr.replace(xF," % ")}p===""?v=0:Re(p,o)&&(ce||(p=""),v=.2,m=!0),P&&(B===""?G=0:Re(B,q)&&(ce||(B=""),G=.2,U=!0)),t._meta?p=a0.templateString(p,t._meta):a._meta&&(p=a0.templateString(p,a._meta));var Fe=p||B||ce,ge;c||(c=a0.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var Oe=c.selectAll("text."+r).data(Fe?[0]:[]);Oe.enter().append("text"),Oe.text(p).attr("class",r),Oe.exit().remove();var cr=null,qe=r+"-subtitle",ze=B||ce;if(P&&(cr=c.selectAll("text."+qe).data(ze?[0]:[]),cr.enter().append("text"),cr.text(B).attr("class",qe),cr.exit().remove()),!Fe)return c;function Ue(Pr,Yr){a0.syncOrAsync([We,Ge],{title:Pr,subtitle:Yr})}function We(Pr){var Yr=Pr.title,$e=Pr.subtitle,mr;!f&&ge&&(f={}),f?(mr="",f.rotate&&(mr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(mr+=gF(0,(f.offset||0)-(ge||0)))):mr=null,Yr.attr("transform",mr);function Gr(de){if(de){var Le=lh.select(de.node().parentNode).select("."+qe);if(!Le.empty()){var lr=de.node().getBBox();if(lr.height){var Ar=lr.y+lr.height+M7*V;Le.attr("y",Ar)}}}}if(Yr.style("opacity",v*R2.opacity(_)).call(q2.font,{color:R2.rgb(_),size:lh.round(T,2),family:b,weight:x,style:w,variant:k,textcase:M,shadow:D,lineposition:C}).attr(u).call(sh.convertToTspans,e,Gr),$e&&!$e.empty()){var fe=c.select("."+r+"-math-group"),Ce=Yr.node().getBBox(),Tr=fe.node()?fe.node().getBBox():void 0,tt=Tr?Tr.y+Tr.height+M7*V:Ce.y+Ce.height+k7*V,at=a0.extendFlat({},u,{y:tt});$e.attr("transform",mr),$e.style("opacity",G*R2.opacity(J)).call(q2.font,{color:R2.rgb(J),size:lh.round(V,2),family:Y,weight:j,style:ee,variant:pe,textcase:ne,shadow:te,lineposition:ye}).attr(at).call(sh.convertToTspans,e)}return Uhe.previousPromises(e)}function Ge(Pr){var Yr=Pr.title,$e=lh.select(Yr.node().parentNode);if(s&&s.selection&&s.side&&p){$e.attr("transform",null);var mr=Ghe[s.side],Gr=s.side==="left"||s.side==="top"?-1:1,fe=Hhe(s.pad)?s.pad:2,Ce=q2.bBox($e.node()),Tr={t:0,b:0,l:0,r:0},tt=e._fullLayout._reservedMargin;for(var at in tt)for(var de in tt[at]){var Le=tt[at][de];Tr[de]=Math.max(Tr[de],Le)}var lr={left:Tr.l,top:Tr.t,right:a.width-Tr.r,bottom:a.height-Tr.b},Ar=s.maxShift||Gr*(lr[s.side]-Ce[s.side]),ur=0;if(Ar<0)ur=Ar;else{var Cr=s.offsetLeft||0,Er=s.offsetTop||0;Ce.left-=Cr,Ce.right-=Cr,Ce.top-=Er,Ce.bottom-=Er,s.selection.each(function(){var ot=q2.bBox(this);a0.bBoxIntersect(Ce,ot,fe)&&(ur=Math.max(ur,Gr*(ot[s.side]-Ce[mr])+fe))}),ur=Math.min(Ar,ur),n._titleScoot=Math.abs(ur)}if(ur>0||Ar<0){var Vr={left:[-ur,0],right:[ur,0],top:[0,-ur],bottom:[0,ur]}[s.side];$e.attr("transform",gF(Vr[0],Vr[1]))}}}Oe.call(Ue,cr);function or(Pr,Yr){Pr.text(Yr).on("mouseover.opacity",function(){lh.select(this).transition().duration(bF.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){lh.select(this).transition().duration(bF.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?Oe.on(".opacity",null):(or(Oe,o),m=!0),Oe.call(sh.makeEditable,{gd:e}).on("edit",function(Pr){l!==void 0?T7.call("_guiRestyle",e,i,Pr,l):T7.call("_guiRelayout",e,i,Pr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ue)}).on("input",function(Pr){this.text(Pr||" ").call(sh.positionText,u.x,u.y)}),P)){if(P&&!p){var Ye=Oe.node().getBBox(),_r=Ye.y+Ye.height+k7*V;cr.attr("y",_r)}B?cr.on(".opacity",null):(or(cr,q),U=!0),cr.call(sh.makeEditable,{gd:e}).on("edit",function(Pr){T7.call("_guiRelayout",e,"title.subtitle.text",Pr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ue)}).on("input",function(Pr){this.text(Pr||" ").call(sh.positionText,cr.attr("x"),cr.attr("y"))})}return Oe.classed("js-placeholder",m),cr&&!cr.empty()&&cr.classed("js-placeholder",U),c}_F.exports={draw:Yhe,SUBTITLE_PADDING_EM:k7,SUBTITLE_PADDING_MATHJAX_EM:M7}});var H2=I((oRe,kF)=>{"use strict";var Vhe=sa(),Xhe=wv().utcFormat,Fa=ir(),Whe=Fa.numberFormat,As=da(),Tf=Fa.cleanNumber,Zhe=Fa.ms2DateTime,wF=Fa.dateTime2ms,Ts=Fa.ensureNumber,AF=Fa.isArrayOrTypedArray,Mf=(Zn(),hr(ri)),F2=Mf.FP_SAFE,Gl=Mf.BADNUM,Jhe=Mf.LOG_CLIP,jhe=Mf.ONEWEEK,P2=Mf.ONEDAY,N2=Mf.ONEHOUR,TF=Mf.ONEMIN,MF=Mf.ONESEC,z2=mn(),O2=(ni(),hr(ai)),I2=O2.HOUR_PATTERN,B2=O2.WEEKDAY_PATTERN;function tp(e){return Math.pow(10,e)}function S7(e){return e!=null}var $he=2;function Khe(e,r){if(e<=0)return 0;let t=Math.max(0,r-$he);return e>t?t/e:1}kF.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,w){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&w&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Jhe*Math.abs(k-M))}else return Gl}function o(x,w,k,M){if((M||{}).msUTC&&As(x))return+x;var C=wF(x,k||r.calendar);if(C===Gl)if(As(x)){x=+x;var D=Math.floor(Fa.mod(x+.05,1)*10),R=Math.round(x-D/10);C=wF(new Date(R))+D/10}else return Gl;return C}function l(x,w,k){return Zhe(x,w,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(S7(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 w=r._categories.length-1;return r._categoriesMap[x]=w,w}return Gl}function f(x,w){for(var k=new Array(w),M=0;M<w;M++){var C=(x[0]||[])[M],D=(x[1]||[])[M];k[M]=c([C,D])}return k}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function v(x){var w=c(x);if(w!==void 0)return w;if(As(x))return+x}function d(x){return As(x)?+x:c(x)}function p(x,w,k){return Vhe.round(k+w*x,2)}function m(x,w,k){return(x-k)/w}var y=function(w){return As(w)?p(w,r._m,r._b):Gl},b=function(x){return m(x,r._m,r._b)};if(r.rangebreaks){var T=n==="y";y=function(x){if(!As(x))return Gl;var w=r._rangebreaks.length;if(!w)return p(x,r._m,r._b);var k=T;r.range[0]>r.range[1]&&(k=!k);for(var M=k?-1:1,C=M*x,D=0,R=0;R<w;R++){var P=M*r._rangebreaks[R].min,q=M*r._rangebreaks[R].max;if(C<P)break;if(C>q)D=R+1;else{D=C<(P+q)/2?R:R+1;break}}var z=r._B[D]||0;return isFinite(z)?p(x,r._m2,z):0},b=function(x){var w=r._rangebreaks.length;if(!w)return m(x,r._m,r._b);for(var k=0,M=0;M<w&&!(x<r._rangebreaks[M].pmin);M++)x>r._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Ts,r.l2c=r.type==="log"?tp:Ts,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,w){return y(i(x,w))}:y,r.p2c=r.type==="log"?function(x){return tp(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Tf,r.c2d=r.c2r=r.l2d=r.l2r=Ts,r.d2p=r.r2p=function(x){return r.l2p(Tf(x))},r.p2d=r.p2r=b,r.cleanPos=Ts):r.type==="log"?(r.d2r=r.d2l=function(x,w){return i(Tf(x),w)},r.r2d=r.r2c=function(x){return tp(Tf(x))},r.d2c=r.r2l=Tf,r.c2d=r.l2r=Ts,r.c2r=i,r.l2d=tp,r.d2p=function(x,w){return r.l2p(r.d2r(x,w))},r.p2d=function(x){return tp(b(x))},r.r2p=function(x){return r.l2p(Tf(x))},r.p2r=b,r.cleanPos=Ts):r.type==="date"?(r.d2r=r.r2d=Fa.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,w,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,w,k){return l(b(x),w,k)},r.cleanPos=function(x){return Fa.cleanDate(x,Gl,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 w=d(x);return w!==void 0?w:r.fraction2r(.5)},r.l2r=r.c2r=Ts,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:Ts(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var w=v(x);return w!==void 0?w:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ts,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:Ts(x)},r.setupMultiCategory=function(x){var w=r._traceIndices,k,M,C=r._matchGroup;if(C&&r._categories.length===0){for(var D in C)if(D!==a){var R=t[z2.id2name(D)];w=w.concat(R._traceIndices)}}var P=[[0,{}],[0,{}]],q=[];for(k=0;k<w.length;k++){var z=x[w[k]];if(n in z){var B=z[n],U=z._length||Fa.minRowLength(B);if(AF(B[0])&&AF(B[1]))for(M=0;M<U;M++){var G=B[0][M],X=B[1][M];S7(G)&&S7(X)&&(q.push([G,X]),G in P[0][1]||(P[0][1][G]=P[0][0]++),X in P[1][1]||(P[1][1][X]=P[1][0]++))}}}for(q.sort(function(Y,V){var J=P[0][1],j=J[Y[0]]-J[V[0]];if(j)return j;var ee=P[1][1];return ee[Y[1]]-ee[V[1]]}),k=0;k<q.length;k++)u(q[k])}),r.fraction2r=function(x){var w=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return r.l2r(w+x*(k-w))},r.r2fraction=function(x){var w=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return(r.r2l(x)-w)/(k-w)},r.limitRange=function(x){var w=r.minallowed,k=r.maxallowed;if(!(w===void 0&&k===void 0)){x||(x="range");var M=Fa.nestedProperty(r,x).get(),C=Fa.simpleMap(M,r.r2l),D=C[1]<C[0];D&&C.reverse();var R=Fa.simpleMap([w,k],r.r2l);if(w!==void 0&&C[0]<R[0]&&(M[D?1:0]=w,C[0]=R[0]),k!==void 0&&C[1]>R[1]&&(M[D?0:1]=k,C[1]=R[1]),C[0]>=C[1])if(w!==void 0){var P=R[0]+1;k!==void 0&&(P=Math.min(P,R[1])),M[D?0:1]=r.l2r(P)}else k!==void 0&&(M[D?1:0]=r.l2r(R[1]-1))}},r.cleanRange=function(x,w){r._cleanRange(x,w),r.limitRange(x)},r._cleanRange=function(x,w){w||(w={}),x||(x="range");var k=Fa.nestedProperty(r,x).get(),M,C;if(r.type==="date"?C=Fa.dfltRange(r.calendar):n==="y"?C=O2.DFLTRANGEY:r._name==="realaxis"?C=[0,1]:C=w.dfltRange||O2.DFLTRANGEX,C=C.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(C[0]=0),!k||k.length!==2){Fa.nestedProperty(r,x).set(C);return}var D=k[0]===null,R=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Fa.cleanDate(k[0],Gl,r.calendar),k[1]=Fa.cleanDate(k[1],Gl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Fa.isDateTime(k[M],r.calendar)){r[x]=C;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Fa.constrain(r.r2l(k[0]),Fa.MIN_MS+1e3,Fa.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!As(k[M]))if(!(D||R)&&As(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=C;break}if(k[M]<-F2?k[M]=-F2:k[M]>F2&&(k[M]=F2),k[0]===k[1]){var q=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=q,k[1]+=q}}},r.setScale=function(x){var w=t._size;if(r.overlaying){var k=z2.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain,r.domainpad=k.domainpad}var M=x&&r._r?"_r":"range",C=r.calendar;r.cleanRange(M);var D=r.r2l(r[M][0],C),R=r.r2l(r[M][1],C),P=n==="y";let q=(P?w.h:w.w)*(r.domain[1]-r.domain[0]),z=r.domainpad,B=0,U=0;if(z){B=(P?z.top:z.left)||0,U=(P?z.bottom:z.right)||0;let J=Khe(B+U,q);B*=J,U*=J}if(r._length=q-B-U,r._padStart=B,r._padEnd=U,P?(r._offset=w.t+(1-r.domain[1])*w.h+B,r._m=r._length/(D-R),r._b=-r._m*R):(r._offset=w.l+r.domain[0]*w.w+B,r._m=r._length/(R-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var G,X;if(r._rangebreaks=r.locateBreaks(Math.min(D,R),Math.max(D,R)),r._rangebreaks.length){for(G=0;G<r._rangebreaks.length;G++)X=r._rangebreaks[G],r._lBreaks+=Math.abs(X.max-X.min);var Y=P;D>R&&(Y=!Y),Y&&r._rangebreaks.reverse();var V=Y?-1:1;for(r._m2=V*r._length/(Math.abs(R-D)-r._lBreaks),r._B.push(-r._m2*(P?R:D)),G=0;G<r._rangebreaks.length;G++)X=r._rangebreaks[G],r._B.push(r._B[r._B.length-1]-V*r._m2*(X.max-X.min));for(G=0;G<r._rangebreaks.length;G++)X=r._rangebreaks[G],X.pmin=y(X.min),X.pmax=y(X.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 w=r.rangebreaks||[],k,M,C,D,R;w._cachedPatterns||(w._cachedPatterns=w.map(function(J){return J.enabled&&J.bounds?Fa.simpleMap(J.bounds,J.pattern?Tf:r.d2c):null})),w._cachedValues||(w._cachedValues=w.map(function(J){return J.enabled&&J.values?Fa.simpleMap(J.values,r.d2c).sort(Fa.sorterAsc):null}));for(var P=0;P<w.length;P++){var q=w[P];if(q.enabled){if(q.bounds){var z=q.pattern;switch(k=w._cachedPatterns[P],M=k[0],C=k[1],z){case B2:R=new Date(x),D=R.getUTCDay(),M>C&&(C+=7,D<M&&(D+=7));break;case I2:R=new Date(x);var B=R.getUTCHours(),U=R.getUTCMinutes(),G=R.getUTCSeconds(),X=R.getUTCMilliseconds();D=B+(U/60+G/3600+X/36e5),M>C&&(C+=24,D<M&&(D+=24));break;case"":D=x;break}if(D>=M&&D<C)return Gl}else for(var Y=w._cachedValues[P],V=0;V<Y.length;V++)if(M=Y[V],C=M+q.dvalue,x>=M&&x<C)return Gl}}return x},r.locateBreaks=function(x,w){var k,M,C,D,R=[];if(!r.rangebreaks)return R;var P=r.rangebreaks.slice().sort(function(ee,pe){return ee.pattern===B2&&pe.pattern===I2?-1:pe.pattern===B2&&ee.pattern===I2?1:0}),q=function(ee,pe){if(ee=Fa.constrain(ee,x,w),pe=Fa.constrain(pe,x,w),ee===pe)return;let ne;for(let ye=0;ye<R.length;ye++){let te=R[ye];ee<te.max&&pe>=te.min&&(ne?(ne.min=Math.min(ne.min,te.min),ne.max=Math.max(ne.max,te.max),R.splice(ye,1),ye--):(ne=te,ne.min=Math.min(ne.min,ee),ne.max=Math.max(ne.max,pe)))}ne||R.push({min:ee,max:pe})};for(k=0;k<P.length;k++){var z=P[k];if(z.enabled)if(z.bounds){var B=x,U=w;z.pattern&&(B=Math.floor(B)),M=Fa.simpleMap(z.bounds,z.pattern?Tf:r.r2l),C=M[0],D=M[1];var G=new Date(B),X,Y;switch(z.pattern){case B2:Y=jhe,X=((D<C?7:0)+(D-C))*P2,B+=C*P2-(G.getUTCDay()*P2+G.getUTCHours()*N2+G.getUTCMinutes()*TF+G.getUTCSeconds()*MF+G.getUTCMilliseconds());break;case I2:Y=P2,X=((D<C?24:0)+(D-C))*N2,B+=C*N2-(G.getUTCHours()*N2+G.getUTCMinutes()*TF+G.getUTCSeconds()*MF+G.getUTCMilliseconds());break;default:B=Math.min(M[0],M[1]),U=Math.max(M[0],M[1]),Y=U-B,X=Y}for(var V=B;V<U;V+=Y)q(V,V+X)}else for(var J=Fa.simpleMap(z.values,r.d2c),j=0;j<J.length;j++)C=J[j],D=C+z.dvalue,q(C,D)}return R.sort(function(ee,pe){return ee.min-pe.min}),R},r.makeCalcdata=function(x,w,k){var M,C,D,R,P=r.type,q=P==="date"&&x[w+"calendar"];if(w in x){if(M=x[w],R=x._length||Fa.minRowLength(M),Fa.isTypedArray(M)&&(P==="linear"||P==="log")){if(R===M.length)return M;if(M.subarray)return M.subarray(0,R)}if(P==="multicategory")return f(M,R);for(C=new Array(R),D=0;D<R;D++)C[D]=r.d2c(M[D],0,q,k)}else{var z=w+"0"in x?r.d2c(x[w+"0"],0,q):0,B=x["d"+w]?Number(x["d"+w]):1;for(M=x[{x:"y",y:"x"}[w]],R=x._length||M.length,C=new Array(R),D=0;D<R;D++)C[D]=z+D*B}if(r.rangebreaks)for(D=0;D<R;D++)C[D]=r.maskBreaks(C[D]);return C},r.isValidRange=function(x,w){return Array.isArray(x)&&x.length===2&&(w&&x[0]===null||As(r.r2l(x[0])))&&(w&&x[1]===null||As(r.r2l(x[1])))},r.getAutorangeDflt=function(x,w){var k=!r.isValidRange(x,"nullOk");return k&&w&&w.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,w){var k=r.c2l(x[n],null,w),M=r.r2l(r.range[0]),C=r.r2l(r.range[1]);return M<C?M<=k&&k<=C:C<=k&&k<=M},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var w=null,k=null;for(var M in x){var C=t[z2.id2name(M)];if(C._categories){w=C._categories,k=C._categoriesMap;break}}w&&k?(r._categories=w,r._categoriesMap=k):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var D=0;D<r._initialCategories.length;D++)u(r._initialCategories[D])},r.sortByInitialCategories=function(){var x=[];if(r._emptyCategories(),r._initialCategories)for(var w=0;w<r._initialCategories.length;w++)u(r._initialCategories[w]);x=x.concat(r._traceIndices);var k=r._matchGroup;for(var M in k)if(a!==M){var C=t[z2.id2name(M)];C._categories=r._categories,C._categoriesMap=r._categoriesMap,x=x.concat(C._traceIndices)}return x};var _=t._d3locale;r.type==="date"&&(r._dateFormat=_?_.timeFormat:Xhe,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=_?_.numberFormat:Whe,delete r._minDtick,delete r._forceTick0}});var L7=I((lRe,EF)=>{"use strict";var SF=da(),C7=ir(),Qhe=(Zn(),hr(ri)).BADNUM,U2=C7.isArrayOrTypedArray,ede=C7.isDateTime,rde=C7.cleanNumber,CF=Math.round;EF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(U2(n)&&!n.length)return"-";if(!i&&ode(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(U2(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(nde(n,t))return"date";var u=a.autotypenumbers!=="strict";return ide(n,u)?"category":ade(n,u)?"linear":"-"};function tde(e,r){return r?SF(e):typeof e=="number"}function ade(e,r){for(var t=e.length,a=0;a<t;a++)if(tde(e[a],r))return!0;return!1}function nde(e,r){for(var t=e.length,a=LF(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=CF(l),u=e[s],f=String(u);o[f]||(o[f]=1,ede(u,r)&&n++,SF(u)&&i++)}return n>i*2}function LF(e){return Math.max(1,(e-1)/1e3)}function ide(e,r){for(var t=e.length,a=LF(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=CF(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?rde(u)!==Qhe:c==="number")?n++:c==="string"&&i++}}return i>n*2}function ode(e){return U2(e[0])&&U2(e[1])}});var uh=I((sRe,IF)=>{"use strict";var lde=sa(),FF=da(),kf=ir(),G2=(Zn(),hr(ri)).FP_SAFE,sde=Pt(),ude=Sa(),PF=mn(),fde=PF.getFromId,cde=PF.isLinked;IF.exports={applyAutorangeOptions:zF,getAutoRange:E7,makePadFn:D7,doAutoRange:hde,findExtremes:dde,concatExtremes:F7};function E7(e,r){var t,a,n=[],i=e._fullLayout,o=D7(i,r,0),l=D7(i,r,1),s=F7(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return kf.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 m=kf.simpleMap(r.range,r.r2l);p=m[1]<m[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,b=y==="tozero",T=y==="nonnegative",_=r._length,x=_/10,w=0,k,M,C,D,R,P;for(t=0;t<u.length;t++)for(k=u[t],a=0;a<f.length;a++)M=f[a],P=M.val-k.val-DF(r,k.val,M.val),P>0&&(R=_-o(k)-l(M),R>x?P/R>w&&(C=k,D=M,w=P/R):P/_>w&&(C={val:k.val,nopad:1},D={val:M.val,nopad:1},w=P/_));function q(X,Y){return Math.max(X,l(Y))}if(c===v){var z=c-1,B=c+1;if(b)if(c===0)n=[0,1];else{var U=(c>0?f:u).reduce(q,0),G=c/(1-Math.min(.5,U/_));n=c>0?[0,G]:[G,0]}else T?n=[Math.max(0,z),Math.max(1,B)]:n=[z,B]}else b?(C.val>=0&&(C={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):T&&(C.val-w*o(C)<0&&(C={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),w=(D.val-C.val-DF(r,k.val,M.val))/(_-o(C)-l(D)),n=[C.val-w*o(C),D.val+w*l(D)];return n=zF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),kf.simpleMap(n,r.l2r||Number)}function DF(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 D7(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=kf.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return cde(e,r._id)||(l=vde(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 qF=3;function vde(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=kf.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(T){var _=lde.select(this),x=_.select(".text-math-group");x.empty()&&(T.bb=ude.bBox(_.node()))})}for(var d=0;d<l._vals.length;d++){var p=l._vals[d],m=p.bb;if(m){var y=2*qF+m.width,b=2*qF+m.height;a=Math.max(a,n?Math.max(y*u,b*f):Math.max(b*u,y*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function F7(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(y,b){for(s=0;s<b.length;s++){var T=y[b[s]],_=(T._extremes||{})[a];if(T.visible===!0&&_){for(u=0;u<_.min.length;u++)f=_.min[u],q7(o,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<_.max.length;u++)f=_.max[u],R7(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=fde(e,v),p=F7(e,d,!0),m=r._length/d._length;for(u=0;u<p.min.length;u++)f=p.min[u],q7(o,f.val,f.pad*m,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],R7(l,f.val,f.pad*m,{extrapad:f.extrapad})}}return{min:o,max:l}}function hde(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():E7(e,r),r._r=r.range.slice(),r._rl=kf.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,sde.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=E7(e,r)),i._input.rangeslider[r._name]=kf.extendFlat({},o)}}function dde(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,m,y,b,T,_;function x(q){if(Array.isArray(q))return u=!0,function(B){return Math.max(Number(q[B]||0),0)};var z=Math.max(Number(q||0),0);return function(){return z}}var w=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),C=x(t.vpadminus||t.vpad);if(!u){if(T=1/0,_=-1/0,s)for(c=0;c<i;c++)v=r[c],v<T&&v>0&&(T=v),v>_&&v<G2&&(_=v);else for(c=0;c<i;c++)v=r[c],v<T&&v>-G2&&(T=v),v>_&&v<G2&&(_=v);r=[T,_],i=2}var D={tozero:l,extrapad:o};function R(q){d=r[q],FF(d)&&(y=w(q),b=k(q),f?(p=e.c2l(d)-C(q),m=e.c2l(d)+M(q)):(T=d-C(q),_=d+M(q),s&&T<_/10&&(T=_/10),p=e.c2l(T),m=e.c2l(_)),l&&(p=Math.min(0,p),m=Math.max(0,m)),RF(p)&&q7(a,p,b,D),RF(m)&&R7(n,m,y,D))}var P=Math.min(6,i);for(c=0;c<P;c++)R(c);for(c=i-1;c>=P;c--)R(c);return{min:a,max:n,opts:t}}function q7(e,r,t,a){NF(e,r,t,a,pde)}function R7(e,r,t,a){NF(e,r,t,a,mde)}function NF(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 RF(e){return FF(e)&&Math.abs(e)<G2}function pde(e,r){return e<=r}function mde(e,r){return e>=r}function yde(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Y2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Y2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function gde(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Y2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Y2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Y2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function zF(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);kf.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=yde(t,r),a=gde(a,r),[t,a]}});var tn=I((fRe,oP)=>{"use strict";var hl=sa(),zn=da(),fh=pi(),np=Pt(),Rt=ir(),ch=Rt.strTranslate,n0=Ri(),bde=rp(),ip=Kt(),Vo=Sa(),xde=vl(),BF=$6(),uRe=(ni(),hr(ai)),Pi=(Zn(),hr(ri)),_de=Pi.ONEMAXYEAR,W2=Pi.ONEAVGYEAR,Z2=Pi.ONEMINYEAR,wde=Pi.ONEMAXQUARTER,I7=Pi.ONEAVGQUARTER,J2=Pi.ONEMINQUARTER,Ade=Pi.ONEMAXMONTH,vh=Pi.ONEAVGMONTH,j2=Pi.ONEMINMONTH,Xo=Pi.ONEWEEK,Qi=Pi.ONEDAY,Sf=Qi/2,ks=Pi.ONEHOUR,op=Pi.ONEMIN,$2=Pi.ONESEC,Tde=Pi.ONEMILLI,Mde=Pi.ONEMICROSEC,i0=Pi.MINUS_SIGN,Q2=Pi.BADNUM,B7={K:"zeroline"},O7={K:"gridline",L:"path"},H7={K:"minor-gridline",L:"path"},jF={K:"tick",L:"path"},OF={K:"tick",L:"text"},HF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},e3=(Ui(),hr(Hi)),ap=e3.MID_SHIFT,o0=e3.CAP_SHIFT,lp=e3.LINE_SPACING,kde=e3.OPPOSITE_SIDE,K2=3,pr=oP.exports={};pr.setConvert=H2();var Sde=L7(),Ss=mn(),Cde=Ss.idSort,Lde=Ss.isLinked;pr.id2name=Ss.id2name;pr.name2id=Ss.name2id;pr.cleanId=Ss.cleanId;pr.list=Ss.list;pr.listIds=Ss.listIds;pr.getFromId=Ss.getFromId;pr.getFromTrace=Ss.getFromTrace;var $F=uh();pr.getAutoRange=$F.getAutoRange;pr.findExtremes=$F.findExtremes;var Ede=1e-4;function V7(e){var r=(e[1]-e[0])*Ede;return[e[0]-r,e[1]+r]}function Dde(e,r,t){if(![t,e,r].every(zn)||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}pr.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},Rt.coerce(e,r,u,s)};pr.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?(Rt.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(Rt.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]=Ss.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};pr.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};pr.coercePosition=function(e,r,t,a,n,i){var o,l,s=pr.getRefType(a);if(s!=="range")o=Rt.ensureNumber,l=t(n,i);else{var u=pr.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};pr.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?Rt.ensureNumber:pr.getFromId(r,t).cleanPos;return a(e)};pr.redrawComponents=function(e,r){r=r||pr.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=np.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[pr.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 qde=pr.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(Rt.isArrayOrTypedArray(i)){if(n={type:Sde(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},pr.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=pr.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:GF,c2d:GF}:{d2c:UF,c2d:UF}};function UF(e){return+e}function GF(e){return String(e)}pr.getDataToCoordFunc=function(e,r,t,a){return qde(e,r,t,a).d2c};pr.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};pr.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))};pr.saveRangeInitial=function(e,r){for(var t=pr.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};pr.saveShowSpikeInitial=function(e,r){for(var t=pr.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};pr.autoBin=function(e,r,t,a,n,i){var o=Rt.aggNums(Math.min,null,e),l=Rt.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:Rt.simpleMap([o,l],r.c2r,0,n),calendar:n},pr.setConvert(s),i=i&&BF.dtick(i,s.type),i)s.dtick=i,s.tick0=BF.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=Rt.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),v=c*Rt.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(v,2*Rt.stdev(e)/Math.pow(e.length,a?.25:.4)),zn(u)||(u=1)}pr.autoTicks(s,u)}var d=s.dtick,p=pr.tickIncrement(pr.tickFirst(s),d,"reverse",n),m,y;if(typeof d=="number")p=Rde(p,e,s,o,l),y=1+Math.floor((l-p)/d),m=p+y*d;else for(s.dtick.charAt(0)==="M"&&(p=Fde(p,e,d,o,n)),m=p,y=0;m<=l;)m=pr.tickIncrement(m,d,!1,n),y++;return{start:r.c2r(p,0,n),end:r.c2r(m,0,n),size:d,_dataSpan:l-o}};function Rde(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++:zn(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 Fde(e,r,t,a,n){var i=Rt.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=pr.tickIncrement(e,"M6","reverse")+Qi*1.5:i.exactMonths>o?e=pr.tickIncrement(e,"M1","reverse")+Qi*15.5:e-=Sf;var s=pr.tickIncrement(e,t);if(s<=a)return s}return e}pr.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&zn(r._tmin),n;if(a){var i=pr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Rt.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Rt.simpleMap(n,r.l2r),e._isMinor=!0,pr.prepTicks(e,t),a){var l=zn(r.dtick),s=zn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?P7(u,f)?u===2*Xo&&f===2*Qi&&(e.dtick=Xo):u===2*Xo&&f===3*Qi?e.dtick=Xo:u===Xo&&!(r._input.minor||{}).nticks?e.dtick=Qi:YF(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":P7(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"?P7(u,f)||(e.dtick=YF(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(X7(e),r.minor._tickround=e._tickround)};function P7(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function YF(e,r){return Math.abs(e/r-1)<.001}pr.prepTicks=function(e,r){var t=Rt.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?Rt.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Rt.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,pr.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"&&Pde(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),X7(e)};function N7(e){return+e.substring(1)}function Pde(e){var r;function t(){return!(zn(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=pr.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=ks,i&&!a&&e.dtick<ks&&(e.dtick=ks)):/%p/.test(n)?(r=Sf,i&&!a&&e.dtick<Sf&&(e.dtick=Sf)):/%[Aadejuwx]/.test(n)?(r=Qi,i&&!a&&e.dtick<Qi&&(e.dtick=Qi)):/%[UVW]/.test(n)?(r=Xo,i&&!a&&e.dtick<Xo&&(e.dtick=Xo)):/%[Bbm]/.test(n)?(r=vh,i&&(a?N7(e.dtick)<1:e.dtick<j2)&&(e.dtick="M1")):/%[q]/.test(n)?(r=I7,i&&(a?N7(e.dtick)<3:e.dtick<J2)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=W2,i&&(a?N7(e.dtick)<12:e.dtick<Z2)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function Nde(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i,o;if(e[a].periodEndTick!=null)i=e[a].value,o=e[a].periodEndTick.value;else{var l=a,s=a+1;a<e.length-1?(l=a,s=a+1):a>0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=Z2?u>=Z2&&u<=_de?c=u:c=W2:t===I7&&f>=J2?u>=J2&&u<=wde?c=u:c=I7:f>=j2?u>=j2&&u<=Ade?c=u:c=vh:t===Xo&&f>=Xo?c=Xo:f>=Qi?c=Qi:t===Sf&&f>=Sf?c=Sf:t===ks&&f>=ks&&(c=ks);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;y<p;y++){var b=(y+.5)/p;r.maskBreaks(n*(1-b)+b*d)!==Q2&&m++}c*=m/p,c||(e[a].drop=!0),v&&u>Xo&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}pr.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Rt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;var u=Rt.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=[],m=[],y=[],b=[],T=[],_=r.minor&&(r.minor.ticks||r.minor.showgrid),x=_||r._useTicklabelIndex;let w=0;if(o){let ze=r._useTicklabelIndex?Math.max(0,...Array.from(s,Math.abs)):0;w=Math.min(ze+1,Math.floor(d/2))}for(var k=1;k>=(x?0:1);k--){var M=!k;k?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=k?r:Rt.extendFlat({},r,x?r.minor:{minor:{}});if(M?pr.prepMinorTicks(C,r,t):pr.prepTicks(C,t),C.tickmode==="array"){k?(y=[],p=VF(r,!M)):(b=[],m=VF(r,!M));continue}if(C.tickmode==="sync"){y=[],p=zde(r);continue}var D=V7(u),R=D[0],P=D[1];let ze=P;var q=C.dtick;let Ue=zn(q),We=a==="log"&&!(Ue||q.charAt(0)==="L");var z=pr.tickFirst(C,t);if(k){if(r._tmin=z,z<R!==f)break;(a==="category"||a==="multicategory")&&(P=f?Math.max(-.5,P):Math.min(r._categories.length-.5,P))}var B=null,U=z,G;if(k){var X;Ue?X=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(X=vh*r.dtick.substring(1)):X=r._roughDTick,G=Math.round((r.r2l(U)-r.r2l(r.tick0))/X)-1}var Y=a==="linear"?C.r2l(C.tick0):void 0;if(C.rangebreaks&&C._tick0Init!==C.tick0&&(U=z7(U,r),f||(U=pr.tickIncrement(U,q,!f,n))),k&&w){for(let Ge=0;Ge<w;Ge++)U=pr.tickIncrement(U,q,!f,n),r._useTicklabelIndex&&(P=pr.tickIncrement(P,q,f,n));G-=w}else if(M&&w&&r._useTicklabelIndex&&y.length){let Ge=y[0].value;for(;f?U<Ge:U>Ge;)U=pr.tickIncrement(U,q,!f,n);P=y[y.length-1].value}for(;f?U>=P:U<=P;U=pr.tickIncrement(U,q,f,n)){if(k&&G++,C.rangebreaks&&!f){if(U<R)continue;if(C.maskBreaks(U)===Q2&&z7(U,C)>=v)break}if(y.length>d+2*w||U===B)break;B=U;var V={value:Dde(U,Y,q)};(f?U>R||U<ze:U<R||U>ze)&&(V.noTick=!0),k?(U===z&&(V.first=!0),We&&U!==(U|0)&&(V.simpleLabel=!0),i>1&&G%i&&(V.skipLabel=!0),y.push(V)):(V.minor=!0,b.push(V))}}function J(ze,Ue){let We=Ue.find(or=>or.value===ze.value);if(We!=null)return We;let Ge=1e7;for(let or=0;or<Ue.length;or++)if(Ge+Ue[or].value===Ge+ze.value)return Ue[or];return null}if(r._useTicklabelIndex){let ze=b.filter(Ue=>!Ue.noTick);if(ze.length<2)r._useTicklabelIndex=!1;else{let Ue=(ze[1].value-ze[0].value)*(l?-1:1);s1e(Ue,r.tickformat)||(r._useTicklabelIndex=!1)}}if(!r._useTicklabelIndex)T=y;else{let ze=b.filter(Ge=>J(Ge,y)==null),Ue=y.concat(ze).sort((Ge,or)=>Ge.value-or.value),We=(Ge,or)=>{let Ye=Ge[or],_r=o?Ge[or+1]:void 0;Ye.noTick&&!(_r&&!_r.noTick)||(T.push(Ye),_r&&(Ye.periodEndTick=_r))};y.forEach(function(Ge){Ge.skipLabel||(s.forEach(or=>{if(or<0){let Ye=Ue.filter(Yr=>Yr.value<=Ge.value),_r=Math.abs(or),Pr=Ye.length-_r-1;_r<Ye.length&&We(Ye,Pr)}else{let Ye=Ue.filter(_r=>_r.value>=Ge.value);or<Ye.length&&We(Ye,or)}}),Ge.skipLabel=!0)}),T.forEach(Ge=>Ge.skipLabel=!1)}if(_){var j=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!j){for(var ee=[],pe=0;pe<b.length;pe++)J(b[pe],y)==null&&ee.push(b[pe]);b=ee}}o&&Nde(T,r,r._definedDelta);var ne;if(r.rangebreaks){var ye=r._id.charAt(0)==="y",te=1;r.tickmode==="auto"&&(te=r.tickfont?r.tickfont.size:12);var De=NaN;for(ne=y.length-1;ne>-1;ne--){if(y[ne].drop){y.splice(ne,1);continue}y[ne].value=z7(y[ne].value,r);var ce=r.c2p(y[ne].value);(ye?De>ce-te:De<ce+te)?y.splice(f?ne+1:ne,1):De=ce}}j7(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,y.length&&(y[y.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var Re,Fe=function(ze){ze.text="",r._prevDateHead=Re};y=y.concat(b);function ge(ze,Ue){var We=pr.tickText(ze,Ue.value,!1,Ue.simpleLabel,{first:Ue.first,last:Ue.last}),Ge=Ue.periodX;return Ge!==void 0&&(We.periodX=Ge,(Ge>v||Ge<c)&&(Ge>v&&(We.periodX=v),Ge<c&&(We.periodX=c),Fe(We))),We}var Oe;for(ne=0;ne<y.length;ne++){var cr=y[ne].minor,qe=y[ne].value;cr?(r._useTicklabelIndex&&T.indexOf(y[ne])!==-1?Oe=ge(r,y[ne]):Oe={x:qe,text:""},Oe.noTick=y[ne].noTick,Oe.minor=!0,m.push(Oe)):(Re=r._prevDateHead,Oe=ge(r,y[ne]),y[ne].skipLabel&&Fe(Oe),Oe.noTick=y[ne].noTick,p.push(Oe))}return r._inCalcTicks=!1,p=p.concat(m),p};function KF(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==Q2})),r}function zde(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=pr.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=KF(e,t),t}function VF(e,r){var t=Rt.simpleMap(e.range,e.r2l),a=V7(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){Rt.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 m=0;m<u.length;m++){var y=o(u[m]);if(y>n&&y<i){let b=pr.tickText(e,y,!1,f[m]!==void 0,{first:m===c,last:m===v});s&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=KF(e,l),l}var V2=[2,5,10],XF=[1,2,3,6,12],WF=[1,2,5,10,15,30],Ide=[1,2,3,7,14],QF=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],eP=[-.301,0,.301,.699,1],Bde=[15,30,45,90,180];function Ms(e,r,t){return r*Rt.roundUp(e/r,t)}pr.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=Rt.dateTick0(e.calendar,0);var i=2*r;if(i>W2)r/=W2,a=n(10),e.dtick="M"+12*Ms(r,a,V2);else if(i>vh)r/=vh,e.dtick="M"+Ms(r,1,XF);else if(i>Qi){if(e.dtick=Ms(r,Qi,e._hasDayOfWeekBreaks?[1,2,7,14]:Ide),!t){var o=pr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Rt.dateTick0(e.calendar,2):e.tick0=Rt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>ks?e.dtick=Ms(r,ks,XF):i>op?e.dtick=Ms(r,op,WF):i>$2?e.dtick=Ms(r,$2,WF):(a=n(10),e.dtick=Ms(r,a,V2))}else if(e.type==="log"){e.tick0=0;var s=Rt.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"+Ms(r,a,V2)}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))):j7(e)?(e.tick0=0,a=1,e.dtick=Ms(r,a,Bde)):(e.tick0=0,a=n(10),e.dtick=Ms(r,a,V2));if(e.dtick===0&&(e.dtick=1),!zn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function X7(e){var r=e.dtick;if(e._tickexponent=0,!zn(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>=Qi&&n<=10||r>=Qi*15)e._tickround="d";else if(r>=op&&n<=16||r>=ks)e._tickround="M";else if(r>=$2&&n<=19||r>=op)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(zn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);zn(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&&(hh(e.exponentformat)&&e.exponentformat!=="SI extended"&&!W7(s)||hh(e.exponentformat)&&e.exponentformat==="SI extended"&&!Z7(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}pr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(zn(r))return Rt.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Rt.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?eP:QF,s=e+n*.01,u=Rt.roundUp(Rt.mod(s,1),l,t);return Math.floor(s)+Math.log(hl.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};pr.tickFirst=function(e,r){var t=e.r2l||Number,a=Rt.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=V7(a)[0],l=e.dtick,s=t(e.tick0);if(zn(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=Rt.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,m,y;v<10;){if(p=pr.tickIncrement(d,l,n,e.calendar),(p-o)*(d-o)<=0)return n?Math.min(d,p):Math.max(d,p);m=(o-(d+p)/2)/(p-d),y=f+(Math.abs(Math.round(m))||1)*c,d=pr.tickIncrement(d,y,m<0?!n:n,e.calendar),v++}return Rt.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"?eP:QF,T=Rt.roundUp(Rt.mod(o,1),b,n);return Math.floor(o)+Math.log(hl.round(Math.pow(10,T),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};pr.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=rP(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,v,d=function(_){var x=e.l2p(_);return x>=0&&x<=e._length?_:null};if(s&&Rt.isArrayOrTypedArray(e.ticktext)){var p=Rt.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[v]))<m);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 y(_){return _===void 0?!0:t?_==="none":_==="all"?!1:_==="first"?!i:_==="last"?!o:!0}var b=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?Ode(e,l,t,u):f==="log"?Hde(e,l,t,u,b):f==="category"?Ude(e,l):f==="multicategory"?Gde(e,l,t):j7(e)?Vde(e,l,t,u,b):Yde(e,l,t,u,b),a||(e.tickprefix&&!y(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!y(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var T=e.labelalias[l.text];typeof T=="string"&&(l.text=T)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};pr.hoverLabelText=function(e,r,t){t&&(e=Rt.extendFlat({},e,{hoverformat:t}));var a=Rt.isArrayOrTypedArray(r)?r[0]:r,n=Rt.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return pr.hoverLabelText(e,a,t)+" - "+pr.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=pr.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":i0+o:o};function rP(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 Ode(e,r,t,a){var n=e._useTicklabelIndex?e.minor._tickround:e._tickround,i=t&&e.hoverformat||pr.getTickFormat(e);a=!i&&a,a&&(zn(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=Rt.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=up(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function Hde(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=sp(Math.pow(10,o),e,n,a);else if(zn(i)||s==="D"&&(e.minorloglabels==="complete"||Rt.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Rt.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"||hh(p)&&p!=="SI extended"&&W7(v)||hh(p)&&p==="SI extended"&&Z7(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?"":i0)+d+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":i0)+d:(r.text=sp(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,Rt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Ude(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Gde(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 Yde(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=sp(r.x,e,n,a)}function Vde(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Xde(i);if(o[1]>=100)r.text=sp(Rt.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=i0+r.text)}}}else r.text=sp(r.x,e,n,a)}function Xde(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 tP=["f","p","n","\u03BC","m","","k","M","G","T"],Wde=["q","r","y","z","a",...tP,"P","E","Z","Y","R","Q"],hh=e=>["SI","SI extended","B"].includes(e);function W7(e){return e>14||e<-15}function Z7(e){return e>32||e<-30}function Zde(e,r){return hh(r)?!!(r==="SI extended"&&Z7(e)||r!=="SI extended"&&W7(e)):!1}function sp(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=pr.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:zn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};X7(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,i0);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=Rt.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){Zde(l,o)&&(o="power");var v;l<0?v=i0+-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":hh(o)&&(e+=o==="SI extended"?Wde[l/3+10]:tP[l/3+5])}return n?i0+e:e}pr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*vh}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};pr.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?pr.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};pr.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};pr.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=pr.list(e,"x",!0),i=pr.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){hl.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})})}};pr.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"?pr.listIds(e):r,i=pr.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=pr.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 Rt.syncOrAsync(n.map(function(s){return function(){if(s){var u=pr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=pr.drawOne(e,u,t);return u._shiftPusher&&Y7(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Rt.simpleMap(u._r,u.r2l),f}}}))};pr.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=pr.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),Y7(r,p,a,!0),Y7(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=l1e(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,T=r._mainMirrorPosition,_=r._vals=pr.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var w={};function k(Ye){var _r=u+(Ye||"tick");return w[_r]||(w[_r]=Kde(r,_r,b)),w[_r]}if(r.visible){var M=pr.makeTransTickFn(r),C=pr.makeTransTickLabelFn(r),D,R,P=r.ticks==="inside",q=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Jde(r,_);R=pr.clipEnds(r,z),D=P?R:z}else R=pr.clipEnds(r,_),D=P&&r.ticklabelmode!=="period"?R:_;var B=r._gridVals=R,U=$de(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,X={};for(i=0;i<G.length;i++){o=G[i],l=s._plots[o];var Y=l[c+"axis"],V=Y._mainAxis._id;if(!X[V]){X[V]=1;var J=f==="x"?"M0,"+Y._offset+"v"+Y._length:"M"+Y._offset+",0h"+Y._length;pr.drawGrid(e,r,{vals:B,counterAxis:Y,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:J,transFn:M}),pr.drawZeroLine(e,r,{counterAxis:Y,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:J,transFn:M})}}}var j,ee=pr.getTickSigns(r),pe=pr.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var ne=pr.makeTickPath(r,b,ee[2]),ye=pr.makeTickPath(r,b,pe[2],{minor:!0}),te,De,ce,Re;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(te=pr.makeTickPath(r,T,ee[3]),De=pr.makeTickPath(r,T,pe[3],{minor:!0}),ce=ne+te,Re=ye+De):(te="",De="",ce=ne,Re=ye),r.showdividers&&q&&r.tickson==="boundaries"){var Fe={};for(i=0;i<U.length;i++)Fe[U[i].x]=1;j=function(Ye){return Fe[Ye.x]?te:ce}}else j=function(Ye){return Ye.minor?Re:ce}}if(pr.drawTicks(e,r,{vals:D,layer:m,path:j,transFn:M}),r.mirror==="allticks"){var ge=Object.keys(r._linepositions||{});for(i=0;i<ge.length;i++){o=ge[i],l=s._plots[o];var Oe=r._linepositions[o]||[],cr=Oe[0],qe=Oe[1],ze=Oe[2],Ue=pr.makeTickPath(r,cr,ze?ee[0]:pe[0],{minor:ze})+pr.makeTickPath(r,qe,ze?ee[1]:pe[1],{minor:ze});pr.drawTicks(e,r,{vals:D,layer:l[f+"axislayer"],path:Ue,transFn:M})}}var We=[];if(We.push(function(){return pr.drawLabels(e,r,{vals:_,layer:m,plotinfo:l,transFn:C,labelFns:pr.makeLabelFns(r,b)})}),r.type==="multicategory"){var Ge={x:2,y:10}[f];We.push(function(){var Ye={x:"height",y:"width"}[f],_r=k()[Ye]+Ge+(r._tickAngles[u+"tick"]?r.tickfont.size*lp:0);return pr.drawLabels(e,r,{vals:jde(r,_),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:pr.makeLabelFns(r,b+_r*ee[4])})}),We.push(function(){return r._depth=ee[4]*(k("tick2")[r.side]-b),e1e(e,r,{vals:U,layer:m,path:pr.makeTickPath(r,b,ee[4],{len:r._depth}),transFn:M})})}else r.title.hasOwnProperty("standoff")&&We.push(function(){r._depth=ee[4]*(k()[r.side]-b)});var or=np.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(or&&r.side==="bottom")&&We.push(function(){return r1e(e,r)}),We.push(function(){var Ye=r.side.charAt(0),_r=kde[r.side].charAt(0),Pr=pr.getPxPosition(e,r),Yr=q?r.ticklen:0,$e,mr,Gr,fe;(r.automargin||or||r._shiftPusher)&&(r.type==="multicategory"?$e=k("tick2"):($e=k(),f==="x"&&Ye==="b"&&(r._depth=Math.max($e.width>0?$e.bottom-Pr:0,Yr))));var Ce=0,Tr=0;if(r._shiftPusher&&(Ce=Math.max(Yr,$e.height>0?Ye==="l"?Pr-$e.left:$e.right-Pr:0),r.title.text!==s._dfltTitle[f]&&(Tr=(r._titleStandoff||0)+(r._titleScoot||0),Ye==="l"&&(Tr+=JF(r))),r._fullDepth=Math.max(Ce,Tr)),r.automargin){mr={x:0,y:0,r:0,l:0,t:0,b:0};var tt=[0,1],at=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ye==="b"?mr[Ye]=r._depth:(mr[Ye]=r._depth=Math.max($e.width>0?Pr-$e.top:0,Yr),tt.reverse()),$e.width>0){var de=$e.right-(r._offset+r._length);de>0&&(mr.xr=1,mr.r=de);var Le=r._offset-$e.left;Le>0&&(mr.xl=0,mr.l=Le)}}else if(Ye==="l"?(r._depth=Math.max($e.height>0?Pr-$e.left:0,Yr),mr[Ye]=r._depth-at):(r._depth=Math.max($e.height>0?$e.right-Pr:0,Yr),mr[Ye]=r._depth+at,tt.reverse()),$e.height>0){var lr=$e.bottom-(r._offset+r._length);lr>0&&(mr.yb=0,mr.b=lr);var Ar=r._offset-$e.top;Ar>0&&(mr.yt=1,mr.t=Ar)}mr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[tt[0]],r.title.text!==s._dfltTitle[f]&&(mr[Ye]+=JF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Gr={x:0,y:0,r:0,l:0,t:0,b:0},Gr[_r]=r.linewidth,r.mirror&&r.mirror!==!0&&(Gr[_r]+=Yr),r.mirror===!0||r.mirror==="ticks"?Gr[c]=r._anchorAxis.domain[tt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Gr[c]=[r._counterDomainMin,r._counterDomainMax][tt[1]]))}or&&(fe=np.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(ZF(mr,r.automargin),ZF(Gr,r.automargin)),fh.autoMargin(e,J7(r),mr),fh.autoMargin(e,nP(r),Gr),fh.autoMargin(e,iP(r),fe)}),Rt.syncOrAsync(We)}};function ZF(e,r){if(e){var t=Object.keys(HF).reduce(function(a,n){return r.indexOf(n)!==-1&&HF[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 Jde(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Rt.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 jde(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(rP(e,Rt.interp(a[o],.5),o));return t}function $de(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(Rt.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 Kde(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=G7(this);if(s.node().style.display!=="none"){var u=Vo.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=pr.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}}pr.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};pr.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return ch(e._offset+e.l2p(r.x),0)}:function(r){return ch(0,e._offset+e.l2p(r.x))}};pr.makeTransTickLabelFn=function(e){var r=Qde(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 ch(n+e._offset+e.l2p(U7(v))+t,i+a)}:function(v){return ch(i+a,n+e._offset+e.l2p(U7(v))+t)}};function U7(e){return e.periodX!==void 0?e.periodX:e.x}function Qde(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=K2,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*o0,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=K2),s&&f==="top"&&(v-=d*(1-o0)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}pr.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};pr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-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,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=Rt.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,_,x,w,k=0,M=e.side,C=e._id.charAt(0),D=e.tickangle,R;if(C==="x")R=!c&&M==="bottom"||c&&M==="top",w=R?1:-1,c&&(w*=-1),T=p*w,_=r+d*w,x=R?1:-.2,Math.abs(D)===90&&(c?x+=ap:D===-90&&M==="bottom"?x=o0:D===90&&M==="top"?x=ap:x=.5,k=ap/2*(D/90)),b.xFn=function(z){return z.dx+T+k*z.fontSize},b.yFn=function(z){return z.dy+_+z.fontSize*x},b.anchorFn=function(z,B){if(f){if(l)return"end";if(s)return"start"}return!zn(B)||B===0||B===180?"middle":B*w<0!==c?"end":"start"},b.heightFn=function(z,B,U){return B<-60||B>60?-.5*U:e.side==="top"!==c?-U:0};else if(C==="y"){if(R=!c&&M==="left"||c&&M==="right",w=R?1:-1,c&&(w*=-1),T=d,_=p*w,x=0,!c&&Math.abs(D)===90&&(D===-90&&M==="left"||D===90&&M==="right"?x=o0:x=.5),c){var P=zn(D)?+D:0;if(P!==0){var q=Rt.deg2rad(P);k=Math.abs(Math.sin(q))*o0*w,x=0}}b.xFn=function(z){return z.dx+r-(T+z.fontSize*x)*w+k*z.fontSize},b.yFn=function(z){return z.dy+_+z.fontSize*ap},b.anchorFn=function(z,B){return zn(B)&&Math.abs(B)===90?"middle":R?"end":"start"},b.heightFn=function(z,B,U){return e.side==="right"&&(B*=-1),B<-30?-U:B<30?-.5*U:0}}return b};function r3(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}pr.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,r3);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return ip.stroke(hl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Vo.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),t3(r,[jF]),i.attr("transform",t.transFn)};pr.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&&pr.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=Vo.crispRound(e,r.gridwidth,1);for(var c=n?Vo.crispRound(e,r.minor.gridwidth,1):0,v=t.layer,d=t.minorLayer,p=1;p>=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,r3);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return ip.stroke(hl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Vo.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}t3(r,[O7,H7])}};pr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=pr.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 Cde(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(ip.stroke,r.zerolinecolor||ip.defaultLine).style("stroke-width",Vo.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),t3(r,[B7])};pr.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:[],r3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(V){var J=hl.select(this),j=e._promises.length;J.call(n0.positionText,s.xFn(V),s.yFn(V)).call(Vo.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(n0.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),t3(r,[OF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){hl.select(this).select("text").call(n0.positionText,s.xFn(V),s.yFn(V))});function d(V,J){V.each(function(j){var ee=hl.select(this),pe=ee.select(".text-math-group"),ne=s.anchorFn(j,J),ye=t.transFn.call(ee.node(),j)+(zn(J)&&+J!=0?" rotate("+J+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),te=n0.lineCount(ee),De=lp*j.fontSize,ce=s.heightFn(j,zn(J)?+J:0,(te-1)*De);if(ce&&(ye+=ch(0,ce)),pe.empty()){var Re=ee.select("text");Re.attr({transform:ye,"text-anchor":ne}),Re.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Fe=Vo.bBox(pe.node()).width,ge=Fe*{end:-.5,start:.5}[ne];pe.attr("transform",ye+ch(ge,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var J=V.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ee=0,pe=j?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var ne=Rt.simpleMap(r.range,r.r2l);ee=r.l2p(ne[0])+r._offset,pe=r.l2p(ne[1])+r._offset}var ye=Math.min(ee,pe),te=Math.max(ee,pe),De=r.side,ce=1/0,Re=-1/0;c.each(function(cr){var qe=hl.select(this),ze=qe.select(".text-math-group");if(ze.empty()){var Ue=Vo.bBox(qe.node()),We=0;j?(Ue.right>te||Ue.left<ye)&&(We=1):(Ue.bottom>te||Ue.top+(r.tickangle?0:cr.fontSize/4)<ye)&&(We=1);var Ge=qe.select("text");We?J&&Ge.style("display","none"):Ge.node().style.display!=="none"&&(Ge.style("display",null),De==="bottom"||De==="right"?ce=Math.min(ce,j?Ue.top:Ue.left):ce=-1/0,De==="top"||De==="left"?Re=Math.max(Re,j?Ue.bottom:Ue.right):Re=1/0)}});for(var Fe in a._plots){var ge=a._plots[Fe];if(!(r._id!==ge.xaxis._id&&r._id!==ge.yaxis._id)){var Oe=j?ge.yaxis:ge.xaxis;Oe&&(Oe["_visibleLabelMin_"+r._id]=ce,Oe["_visibleLabelMax_"+r._id]=Re)}}}},r._hideCounterAxisInsideTickLabels=function(V){var J=r._id.charAt(0)==="x",j=[];for(var ee in a._plots){var pe=a._plots[ee];r._id!==pe.xaxis._id&&r._id!==pe.yaxis._id||j.push(J?pe.yaxis:pe.xaxis)}j.forEach(function(ne,ye){ne&&up(ne)&&(V||[B7,H7,O7,jF,OF]).forEach(function(te){var De=te.K==="tick"&&te.L==="text"&&r.ticklabelmode==="period",ce=a._plots[r._mainSubplot],Re;if(te.K===B7.K){var Fe=i?ce.zerolinelayerAbove:ce.zerolinelayer;Re=Fe.selectAll("."+r._id+"zl")}else te.K===H7.K?Re=ce.minorGridlayer.selectAll("."+r._id):te.K===O7.K?Re=ce.gridlayer.selectAll("."+r._id):Re=ce[r._id.charAt(0)+"axislayer"];Re.each(function(){var ge=hl.select(this);te.L&&(ge=ge.selectAll(te.L)),ge.each(function(Oe){var cr=r.l2p(De?U7(Oe):Oe.x)+r._offset,qe=hl.select(this);cr<r["_visibleLabelMax_"+ne._id]&&cr>r["_visibleLabelMin_"+ne._id]?qe.style("display","none"):te.K==="tick"&&!ye&&qe.node().style.display!=="none"&&qe.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var V=0,J=[],j,ee=1;c.each(function(mr){V=Math.max(V,mr.fontSize);var Gr=r.l2p(mr.x),fe=G7(this),Ce=Vo.bBox(fe.node());ee=Math.max(ee,n0.lineCount(fe)),J.push({top:0,bottom:10,height:10,left:Gr-Ce.width/2,right:Gr+Ce.width/2+2,width:Ce.width+2})});var pe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ne=l.length,ye=Math.abs((l[ne-1].x-l[0].x)*r._m)/(ne-1),te=pe?ye/2:ye,De=pe?r.ticklen:V*1.25*ee,ce=Math.sqrt(Math.pow(te,2)+Math.pow(De,2)),Re=te/ce,Fe=r.autotickangles.map(function(mr){return mr*Math.PI/180}),ge=Fe.find(function(mr){return Math.abs(Math.cos(mr))<=Re});ge===void 0&&(ge=Fe.reduce(function(mr,Gr){return Math.abs(Math.cos(mr))<Math.abs(Math.cos(Gr))?mr:Gr},Fe[0]));var Oe=ge*(180/Math.PI);if(pe){var cr=2;for(r.ticks&&(cr+=r.tickwidth/2),j=0;j<J.length;j++){var qe=l[j].xbnd,ze=J[j];if(qe[0]!==null&&ze.left-r.l2p(qe[0])<cr||qe[1]!==null&&r.l2p(qe[1])-ze.right<cr){m=Oe;break}}}else{var Ue=r.ticklabelposition||"",We=r.tickson||"",Ge=function(mr){return Ue.indexOf(mr)!==-1},or=Ge("top"),Ye=Ge("left"),_r=Ge("right"),Pr=Ge("bottom"),Yr=We!=="boundaries"&&(Pr||Ye||or||_r),$e=Yr?(r.tickwidth||0)+2*K2:0;for(j=0;j<J.length-1;j++)if(Rt.bBoxIntersect(J[j],J[j+1],$e)){m=Oe;break}}m&&d(c,m)}}r._selections&&(r._selections[o]=c);var b=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(m=f,b.push(function(){d(c,f)})):b.push(y),r._tickAngles&&b.push(function(){r._tickAngles[o]=m===null?zn(u)?u:0:m});var T=function(){var V=0,J=0;return c.each(function(j,ee){var pe=G7(this),ne=pe.select(".text-math-group");if(ne.empty()){var ye;r._vals[ee]&&(ye=r._vals[ee].bb||Vo.bBox(pe.node()),r._vals[ee].bb=ye),V=Math.max(V,ye.width),J=Math.max(J,ye.height)}}),{labelsMaxW:V,labelsMaxH:J}},_=r._anchorAxis;if(_&&(_.autorange||_.insiderange)&&up(r)&&!Lde(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),_.autorange&&(a._insideTickLabelsUpdaterange[_._name+".autorange"]=_.autorange,b.push(T)),_.insiderange)){var x=T(),w=r._id.charAt(0)==="y"?x.labelsMaxW:x.labelsMaxH;w+=2*K2,r.ticklabelposition==="inside"&&(w+=r.ticklen||0);var k=r.side==="right"||r.side==="top"?1:-1,M=k===1?1:0,C=k===1?0:1,D=[];D[C]=_.range[C];var R=_.range,P=_.r2p(R[M]),q=_.r2p(R[C]),z=a._insideTickLabelsUpdaterange[_._name+".range"];if(z){var B=_.r2p(z[M]),U=_.r2p(z[C]),G=k*(r._id.charAt(0)==="y"?1:-1);G*P<G*B&&(P=B,D[M]=R[M]=z[M]),G*q>G*U&&(q=U,D[C]=R[C]=z[C])}var X=Math.abs(q-P);X-w>0?(X-=w,w*=1+w/X):w=0,r._id.charAt(0)!=="y"&&(w=-w),D[M]=_.p2r(_.r2p(R[M])+k*w),_.autorange==="min"||_.autorange==="max reversed"?(D[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(D[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=D}var Y=Rt.syncOrAsync(b);return Y&&Y.then&&e._promises.push(Y),Y};function e1e(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,r3);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(ip.stroke,r.dividercolor).style("stroke-width",Vo.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}pr.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 JF(e){var r=e.title.font.size,t=(e.title.text.match(n0.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(o0+t*lp):t?r*(t+1)*lp:r}function r1e(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(n0.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*o0:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(ap+l*lp));else{var s=up(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=pr.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 m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Vo.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,bde.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"}})}pr.shouldShowZeroLine=function(e,r,t){var a=Rt.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Q2)&&(aP(r,0)||!t1e(e,r,t,a)||a1e(e,r))};pr.clipEnds=function(e,r){return r.filter(function(t){return aP(e,t.x)})};function aP(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function t1e(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=pr.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function u(p){if(!p.showline||!p.linewidth)return!1;var m=Math.max((p.linewidth+r.zerolinewidth)/2,1);function y(_){return typeof _=="number"&&Math.abs(_-s)<m}if(y(p._mainLinePosition)||y(p._mainMirrorPosition))return!0;var b=p._linepositions||{};for(var T in b)if(y(b[T][0])||y(b[T][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=pr.list(e,l),v=0;v<c.length;v++){var d=c[v];if(d._mainAxis===n&&u(d,s))return!0}}function a1e(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&&(np.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 G7(e){var r=hl.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}pr.allowAutoMargin=function(e){for(var r=pr.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(fh.allowAutoMargin(e,J7(a)),a.mirror&&fh.allowAutoMargin(e,nP(a))),np.getComponentMethod("rangeslider","isVisible")(a)&&fh.allowAutoMargin(e,iP(a))}};function J7(e){return e._id+".automargin"}function nP(e){return J7(e)+".mirror"}function iP(e){return e._id+".rangeslider"}pr.swap=function(e,r){for(var t=n1e(e,r),a=0;a<t.length;a++)i1e(e,t[a].x,t[a].y)};function n1e(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]],X2(s.x,u.x),X2(s.y,u.y);X2(s.x,[o]),X2(s.y,[l])}}return t}function X2(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function i1e(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(pr.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(pr.getFromId(e,t[o]));var s=Object.keys(xde),u=["anchor","domain","domainpad","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,m=!1,y=!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?m=!0:b!==v&&(p=!1)}for(l=1;l<n.length&&p;l++){var T=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(T)!==-1&&d!==T?y=!0:n[l][c]!==d&&(p=!1)}p&&(m&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),o1e(i,c,a,n,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var _=e._fullLayout.annotations[o];r.indexOf(_.xref)!==-1&&t.indexOf(_.yref)!==-1&&Rt.swapAttrs(i.annotations[o],["?"])}}function o1e(e,r,t,a,n){var i=Rt.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 j7(e){return e._id==="angularaxis"}function z7(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 up(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function t3(e,r){up(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function Y7(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 l1e(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function s1e(e,r){return/%f/.test(r)?e>=Mde:/%L/.test(r)?e>=Tde:/%[SX]/.test(r)?e>=$2:/%M/.test(r)?e>=op:/%[HI]/.test(r)?e>=ks:/%p/.test(r)?e>=Sf:/%[Aadejuwx]/.test(r)?e>=Qi:/%[UVW]/.test(r)?e>=Xo:/%[Bbm]/.test(r)?e>=j2:/%[q]/.test(r)?e>=J2:/%[Yy]/.test(r)?e>=Z2:!0}});var sP=I((cRe,lP)=>{"use strict";lP.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 $7=I((vRe,uP)=>{"use strict";var u1e=sP();uP.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&&(u1e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var cP=I((hRe,fP)=>{var f1e={left:0,top:0};fP.exports=c1e;function c1e(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=v1e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function v1e(e){return e===window||e===document||e===document.body?f1e:e.getBoundingClientRect()}});var K7=I((dRe,vP)=>{"use strict";var h1e=w6();function d1e(){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}vP.exports=h1e&&d1e()});var dP=I((pRe,hP)=>{"use strict";hP.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 yP=I((mRe,mP)=>{"use strict";var pP=ir(),p1e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];mP.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=pP.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=pP.constrain(Math.floor(t*3),0,2),p1e[t][r]}});var bP=I((yRe,gP)=>{"use strict";var m1e=V1(),y1e=i2(),g1e=z1().getGraphDiv,b1e=(g1(),hr(y1)),Q7=gP.exports={};Q7.wrapped=function(e,r,t){var i;e=g1e(e),e._fullLayout&&y1e.clear(e._fullLayout._uid+b1e.HOVERID);let a=e._hoverdata;Q7.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:[]}))};Q7.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&m1e.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 Yl=I((gRe,AP)=>{"use strict";var x1e=cP(),e8=T6(),_1e=K7(),w1e=ir().removeElement,A1e=(ni(),hr(ai)),l0=AP.exports={};l0.align=dP();l0.getCursor=yP();var _P=bP();l0.unhover=_P.wrapped;l0.unhoverRaw=_P.raw;l0.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=y,_1e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(_,x,w){return Math.abs(_)<w&&(_=0),Math.abs(x)<w&&(x=0),[_,x]}var m=r.clampFn||p;function y(_){t._dragged=!1,t._dragging=!0;var x=xP(_);o=x[0],l=x[1],v=_.target,c=_,d=_.buttons===2||_.ctrlKey,typeof _.clientX=="undefined"&&typeof _.clientY=="undefined"&&(_.clientX=o,_.clientY=l),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(_,o,l),e8&&!d?(f=wP(),f.style.cursor=window.getComputedStyle(i).cursor):e8||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",T),document.addEventListener("touchend",T),r.dragmode!==!1&&(_.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(_){_.preventDefault();var x=xP(_),w=r.minDrag||A1e.MINDRAG,k=m(x[0]-o,x[1]-l,w),M=k[0],C=k[1];(M||C)&&(t._dragged=!0,l0.unhover(t,_)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:M,dy:C},r.moveFn(M,C))}function T(_){if(delete t._dragdata,r.dragmode!==!1&&(_.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),e8?w1e(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(w=>{var k=c[w];!x[w]&&typeof k!="function"&&(x[w]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function wP(){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}l0.coverSlip=wP;function xP(e){return x1e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cf=I((bRe,TP)=>{"use strict";TP.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 SP=I((xRe,kP)=>{"use strict";var r8=Cf(),fp="data-savedcursor",MP="!!";kP.exports=function(r,t){var a=r.attr(fp);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(fp,o.slice(7)).classed(o,!1)}r.attr(fp)||r.attr(fp,MP)}r8(r,t)}else a&&(r.attr(fp,null),a===MP?r8(r):r8(r,a))}});var a3={};Ka(a3,{dfltFillHeight:()=>D1e,itemGap:()=>E1e,itemHeightPad:()=>R1e,itemMinHeight:()=>q1e,scrollBarColor:()=>k1e,scrollBarEnterAttrs:()=>C1e,scrollBarMargin:()=>S1e,scrollBarMinHeight:()=>M1e,scrollBarWidth:()=>T1e,titlePad:()=>L1e});var T1e,M1e,k1e,S1e,C1e,L1e,E1e,D1e,q1e,R1e,n3=$a(()=>{"use strict";T1e=6,M1e=20,k1e="#808BA4",S1e=4,C1e={rx:20,ry:3,width:0,height:0},L1e=2,E1e=5,D1e=6,q1e=16,R1e=3});var a8=I((_Re,LP)=>{"use strict";var t8=Di(),F1e=bs(),{dfltFillHeight:CP}=(n3(),hr(a3));LP.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:F1e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:t8({editType:"legend"}),grouptitlefont:t8({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:CP,dflt:CP,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:t8({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var vp=I(cp=>{"use strict";cp.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};cp.isVertical=function(r){return r.orientation!=="h"};cp.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};cp.getId=function(r){return r._id||"legend"}});var i8=I((ARe,EP)=>{"use strict";var i3=Pt(),Wo=ir(),P1e=Ra(),N1e=Pl(),z1e=a8(),I1e=Uv(),n8=vp();function B1e(e,r,t,a,n){var i=r[e]||{},o=P1e.newContainer(t,e);function l(J,j){return Wo.coerce(i,o,z1e,J,j)}var s=Wo.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(J,j){var ee=f._input,pe=f;return Wo.coerce(ee,pe,N1e,J,j)},v=t.font||{},d=Wo.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(J){return J.showlegend});function T(J){return i3.traceIs(J,"pie-like")&&J._length!=null&&(Array.isArray(J.legend)||Array.isArray(J.showlegend))}a.filter(T).forEach(function(J){J.visible&&p++;for(var j=0;j<J._length;j++){var ee=(Array.isArray(J.legend)?J.legend[j]:J.legend)||"legend";ee===e&&((Array.isArray(J.showlegend)?J.showlegend[j]:J.showlegend)||J._dfltShowLegend)&&(m=!0,p++)}if(e==="legend"&&J._length>J.legend.length)for(var pe=J.legend.length;pe<J._length;pe++)m=!0,p++});for(var _=a.concat(b).filter(function(J){return!T(f)&&e===(J.legend||"legend")}),x=0;x<_.length;x++)if(f=_[x],!!f.visible){var w=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(p++,f.showlegend&&(m=!0,(!w&&i3.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),Wo.coerceFont(c,"legendgrouptitle.font",d)),(!w&&i3.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=n8.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=n8.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var k=Wo.coerce(r,t,I1e,"showlegend",t.showlegend||m&&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 M=l("orientation"),C=l("yref"),D=l("xref"),R=M==="h",P=C==="paper",q=D==="paper",z,B,U,G="left";R?(z=0,i3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(B=1.1,U="bottom"):(B=1,U="top"):P?(B=-.1,U="top"):(B=0,U="bottom")):(B=1,U="auto",q?z=1.02:(z=1,G="right")),Wo.coerce(i,o,{x:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"x"),Wo.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:B}},"y"),l("traceorder",y),n8.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let X=l("groupclick");l("groupdoubleclick",X),l("xanchor",G),l("yanchor",U),l("maxheight"),l("valign"),Wo.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",R?"left":"top");var V=Wo.extendFlat({},s,{size:Wo.bigFont(s.size)});Wo.coerceFont(l,"title.font",V);let J=n>1;l("titleclick",J?"toggle":!1),l("titledoubleclick",J?"toggleothers":!1)}}EP.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):Wo.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];B1e(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var s8=I(l8=>{"use strict";var Lf=Pt(),o8=ir(),O1e=o8.pushUnique,H1e=vp(),DP=!0;l8.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"&&DP&&t.data&&t._context.showTips&&(o8.notifier(o8._(t,"Double-click on legend to isolate one trace"),"long",t),DP=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(Ge=>Ge.showlegend||Ge.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,y,b,T,_,x,w,k={},M=[],C=[],D=[];function R(Ge,or){var Ye=M.indexOf(Ge),_r=k.visible;return _r||(_r=k.visible=[]),M.indexOf(Ge)===-1&&(M.push(Ge),Ye=M.length-1),_r[Ye]=or,Ye}var P=(o.shapes||[]).map(function(Ge){return Ge._input}),q=!1;function z(Ge,or){P[Ge].visible=or,q=!0}function B(Ge,or){if(!(l.groupTitle&&!u)){var Ye=Ge._isShape,_r=Ge.index;_r===void 0&&(_r=Ge._index);var Pr=Ge.visible===!1?!1:or;Ye?z(_r,Pr):R(_r,Pr)}}var U=p.legend;if(!p._isShape&&Lf.traceIs(p,"pie-like")){var G=l.label,X=f.indexOf(G);if(n==="toggle")X===-1?f.push(G):f.splice(X,1);else if(n==="toggleothers"){var Y=X!==-1,V=[];for(y=0;y<t.calcdata.length;y++){var J=t.calcdata[y];for(b=0;b<J.length;b++){var j=J[b],ee=j.label;U===J[0].trace.legend&&G!==ee&&(f.indexOf(ee)===-1&&(Y=!0),O1e(f,ee),V.push(ee))}}if(!Y)for(var pe=0;pe<V.length;pe++){var ne=f.indexOf(V[pe]);ne!==-1&&f.splice(ne,1)}}Lf.call("_guiRelayout",t,"hiddenlabels",f)}else{var ye=m&&m.length,te=[],De;if(ye)for(y=0;y<d.length;y++)De=d[y],De.visible&&De.legendgroup===m&&te.push(y);if(n==="toggle"){var ce;switch(p.visible){case!0:ce="legendonly";break;case!1:ce=!1;break;case"legendonly":ce=!0;break}if(ye)if(u)for(y=0;y<d.length;y++){var Re=d[y];Re.visible!==!1&&Re.legendgroup===m&&B(Re,ce)}else B(p,ce);else B(p,ce)}else if(n==="toggleothers"){var Fe,ge,Oe,cr,qe,ze=!0;let Ge=ye&&u;for(y=0;y<d.length;y++)if(qe=d[y],Fe=qe===p,Oe=qe.showlegend!==!0,!(Fe||Oe)&&(ge=Ge&&qe.legendgroup===m,!ge&&qe.legend===U&&qe.visible===!0&&!Lf.traceIs(qe,"notLegendIsolatable"))){ze=!1;break}for(y=0;y<d.length;y++)if(qe=d[y],!(qe.visible===!1||qe.legend!==U)&&!Lf.traceIs(qe,"notLegendIsolatable"))switch(p.visible){case"legendonly":B(qe,!0);break;case!0:cr=ze?!0:"legendonly",Fe=qe===p,Oe=qe.showlegend!==!0&&!qe.legendgroup,ge=Fe||Ge&&qe.legendgroup===m,B(qe,ge||Oe?!0:cr);break}}for(y=0;y<C.length;y++)if(T=C[y],!!T){var Ue=T.constructUpdate(),We=Object.keys(Ue);for(b=0;b<We.length;b++)_=We[b],w=k[_]=k[_]||[],w[D[y]]=Ue[_]}for(x=Object.keys(k),y=0;y<x.length;y++)for(_=x[y],b=0;b<M.length;b++)k[_].hasOwnProperty(b)||(k[_][b]=void 0);q?Lf.call("_guiUpdate",t,k,{shapes:P},M):Lf.call("_guiRestyle",t,k,M)}};l8.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=H1e.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(T){return u(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y<s.length;y++){let b=s[y],T=u(b);if(!T){let w=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||w)continue}let x=(T?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==x&&(b._isShape?(p[b._index].visible=x,m=!0):(d.push(b.index),v.visible.push(x)))}m?Lf.call("_guiUpdate",r,v,{shapes:p},d):d.length&&Lf.call("_guiRestyle",r,v,d)}});var FP=I((MRe,RP)=>{"use strict";var{isArrayOrTypedArray:u8}=vo(),qP=Pt(),f8=vp();RP.exports=function(r,t,a){var n=t._inHover,i=f8.isGrouped(t),o=f8.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(J,j,ee){if(t.visible!==!1&&!(a&&J!==t._id))if(j===""||!f8.isGrouped(t)){var pe="~~i"+c;s.push(pe),l[pe]=[ee],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[ee]):l[j].push(ee)}for(d=0;d<r.length;d++){var y=r[d],b=y[0],T=b.trace,_=T.legend,x=T.legendgroup;if(!(!n&&(!T.visible||!T.showlegend)))if(qP.traceIs(T,"pie-like")){var w=Array.isArray(T.legend),k=Array.isArray(T.showlegend);for(f[x]||(f[x]={}),p=0;p<y.length;p++)if(!(k&&T.showlegend[y[p].i]===!1)){w&&(_=T.legend[y[p].i]||"legend");var M=y[p].label;f[x][M]||(m(_,x,{label:M,color:y[p].color,i:y[p].i,trace:T,pts:y[p].pts}),f[x][M]=!0,v=Math.max(v,(M||"").length))}}else m(_,x,b),v=Math.max(v,(T.name||"").length)}if(!s.length)return[];var C=!u||!i,D=[];for(d=0;d<s.length;d++){var R=l[s[d]];C?D.push(R[0]):D.push(R)}for(C&&(D=[D]),d=0;d<D.length;d++){var P=1/0;for(p=0;p<D[d].length;p++){var q=D[d][p].trace.legendrank,z=u8(q)?Math.min(q):q;P>z&&(P=z)}D[d][0]._groupMinRank=P,D[d][0]._preGroupSort=d}var B=function(J,j){return J[0]._groupMinRank-j[0]._groupMinRank||J[0]._preGroupSort-j[0]._preGroupSort},U=function(J,j){var ee=u8(J.trace.legendrank)?J.trace.legendrank[J.i]:J.trace.legendrank,pe=u8(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return ee-pe||J._preSort-j._preSort};for(D.forEach(function(J,j){J[0]._preGroupSort=j}),D.sort(B),d=0;d<D.length;d++){D[d].forEach(function(J,j){J._preSort=j}),D[d].sort(U);var G=D[d][0].trace,X=null;for(p=0;p<D[d].length;p++){var Y=D[d][p].trace.legendgrouptitle;if(Y&&Y.text){X=Y,n&&(Y.font=t._groupTitleFont);break}}if(o&&D[d].reverse(),X){var V=!1;for(p=0;p<D[d].length;p++)if(qP.traceIs(D[d][p].trace,"pie-like")){V=!0;break}D[d].unshift({i:-1,groupTitle:X,noClick:V,trace:{showlegend:G.showlegend,legendgroup:G.legendgroup,legend:G.legend,visible:t.groupclick==="toggleitem"?!0:G.visible}})}for(p=0;p<D[d].length;p++)D[d][p]=[D[d][p]]}return t._lgroupsLength=D.length,t._maxNameLength=v,D}});var c8=I(s0=>{"use strict";var o3=ir();function PP(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}s0.formatPiePercent=function(r,t){var a=PP((r*100).toPrecision(3));return o3.numSeparate(a,t)+"%"};s0.formatPieValue=function(r,t){var a=PP(r.toPrecision(10));return o3.numSeparate(a,t)};s0.getFirstFilled=function(r,t){if(o3.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};s0.castOption=function(r,t){if(o3.isArrayOrTypedArray(r))return s0.getFirstFilled(r,t);if(r)return r};s0.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var zP=I((SRe,NP)=>{"use strict";var U1e=Sa(),G1e=Kt();NP.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?U1e.pointStyle(r,a,n,t):G1e.fill(r,t.color)}});var HP=I((CRe,OP)=>{"use strict";var IP=Kt(),BP=c8().castOption,Y1e=zP();OP.exports=function(r,t,a,n){var i=a.marker.line,o=BP(i.color,t.pts)||IP.defaultLine,l=BP(i.width,t.pts)||0;r.call(Y1e,t,a,n).style("stroke-width",l).call(IP.stroke,o)}});var m8=I((LRe,XP)=>{"use strict";var eo=sa(),v8=Pt(),Gi=ir(),h8=Gi.strTranslate,Zo=Sa(),dl=Kt(),d8=Ul().extractOpts,s3=ki(),V1e=HP(),X1e=c8().castOption,UP=(n3(),hr(a3)),GP=12,YP=5,u0=2,W1e=10,dh=5;XP.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+UP.itemGap*2)/2,u=h8(s,0),f=function(C,D,R,P){var q;if(C+1)q=C;else if(D&&D.width>0)q=D.width;else return 0;return i?P:Math.min(q,R)};r.each(function(C){var D=eo.select(this),R=Gi.ensureSingle(D,"g","layers");R.style("opacity",C[0].trace.opacity);var P=a.indentation,q=a.valign,z=C[0].lineHeight,B=C[0].height;if(q==="middle"&&P===0||!z||!B)R.attr("transform",null);else{var U={top:1,bottom:-1}[q],G=U*(.5*(z-B+3))||0,X=a.indentation;R.attr("transform",h8(X,G))}var Y=R.selectAll("g.legendfill").data([C]);Y.enter().append("g").classed("legendfill",!0);var V=R.selectAll("g.legendlines").data([C]);V.enter().append("g").classed("legendlines",!0);var J=R.selectAll("g.legendsymbols").data([C]);J.enter().append("g").classed("legendsymbols",!0),J.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(M).each(d).each(m).each(p).each(b).each(w).each(x).each(c).each(v).each(T).each(_);function c(C){var D=VP(C),R=D.showFill,P=D.showLine,q=D.showGradientLine,z=D.showGradientFill,B=D.anyFill,U=D.anyLine,G=C[0],X=G.trace,Y,V,J=d8(X),j=J.colorscale,ee=J.reversescale,pe=function(ge){if(ge.size())if(R)Zo.fillGroupStyle(ge,t,!0);else{var Oe="legendfill-"+X.uid;Zo.gradient(ge,t,Oe,p8(ee),j,"fill")}},ne=function(ge){if(ge.size()){var Oe="legendline-"+X.uid;Zo.lineGroupStyle(ge),Zo.gradient(ge,t,Oe,p8(ee),j,"stroke")}},ye=s3.hasMarkers(X)||!B?"M5,0":U?"M5,-2":"M5,-3",te=eo.select(this),De=te.select(".legendfill").selectAll("path").data(R||z?[C]:[]);De.enter().append("path").classed("js-fill",!0),De.exit().remove(),De.attr("d",ye+"h"+o+"v"+l+"h-"+o+"z").call(pe);let ce=R||z?(UP.dfltFillHeight-l)/2:0;if(te.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",ce?h8(0,ce):null),P||q){var Re=f(void 0,X.line,W1e,YP);V=Gi.minExtend(X,{line:{width:Re}}),Y=[Gi.minExtend(G,{trace:V})]}var Fe=te.select(".legendlines").selectAll("path").data(P||q?[Y]:[]);Fe.enter().append("path").classed("js-line",!0),Fe.exit().remove(),Fe.attr("d",ye+(q?"l"+o+",0.0001":"h"+o)).call(P?Zo.lineGroupStyle:ne)}function v(C){var D=VP(C),R=D.anyFill,P=D.anyLine,q=D.showLine,z=D.showMarker,B=C[0],U=B.trace,G=!z&&!P&&!R&&s3.hasText(U),X,Y;function V(ce,Re,Fe,ge){var Oe=Gi.nestedProperty(U,ce).get(),cr=Gi.isArrayOrTypedArray(Oe)&&Re?Re(Oe):Oe;if(i&&cr&&ge!==void 0&&(cr=ge),Fe){if(cr<Fe[0])return Fe[0];if(cr>Fe[1])return Fe[1]}return cr}function J(ce){return B._distinct&&B.index&&ce[B.index]?ce[B.index]:ce[0]}if(z||G||q){var j={},ee={};if(z){j.mc=V("marker.color",J);var pe=U.type==="scattermap";j.mx=pe?"circle":V("marker.symbol",J),j.mo=V("marker.opacity",Gi.mean,[.2,1]),j.mlc=V("marker.line.color",J),j.mlw=V("marker.line.width",Gi.mean,[0,5],u0),j.mld=V("marker.line.dash",J),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=V("marker.size",Gi.mean,[2,16],GP);j.ms=ne,ee.marker.size=ne}q&&(ee.line={width:V("line.width",J,[0,10],YP)}),G&&(j.tx="Aa",j.tp=V("textposition",J),j.ts=10,j.tc=V("textfont.color",J),j.tf=V("textfont.family",J),j.tw=V("textfont.weight",J),j.ty=V("textfont.style",J),j.tv=V("textfont.variant",J),j.tC=V("textfont.textcase",J),j.tE=V("textfont.lineposition",J),j.tS=V("textfont.shadow",J)),X=[Gi.minExtend(B,j)],Y=Gi.minExtend(U,ee),Y.selectedpoints=null,Y.texttemplate=null}var ye=eo.select(this).select("g.legendpoints"),te=ye.selectAll("path.scatterpts").data(z?X:[]);te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),te.exit().remove(),te.call(Zo.pointStyle,Y,t),z&&(X[0].mrc=3);var De=ye.selectAll("g.pointtext").data(G?X:[]);De.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),De.exit().remove(),De.selectAll("text").call(Zo.textPointStyle,Y,t)}function d(C){var D=C[0].trace,R=D.type==="waterfall";if(C[0]._distinct&&R){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,y(C,this,"waterfall")}var q=[];D.visible&&R&&(q=C[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 z=eo.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(q);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(B){var U=eo.select(this),G=D[B[0]].marker,X=f(void 0,G.line,dh,u0);U.attr("d",B[1]).style("stroke-width",X+"px").call(dl.fill,G.color),X&&U.call(dl.stroke,G.line.color)})}function p(C){y(C,this)}function m(C){y(C,this,"funnel")}function y(C,D,R){var P=C[0].trace,q=P.marker||{},z=q.line||{},B=q.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",U=R?P.visible&&P.type===R:v8.traceIs(P,"bar"),G=eo.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(U?[C]:[]);G.enter().append("path").classed("legend"+R,!0).attr("d",B).attr("transform",u),G.exit().remove(),G.each(function(X){var Y=eo.select(this),V=X[0],J=f(V.mlw,q.line,dh,u0);Y.style("stroke-width",J+"px");var j=V.mcc;if(!a._inHover&&"mc"in V){var ee=d8(q),pe=ee.mid;pe===void 0&&(pe=(ee.max+ee.min)/2),j=Zo.tryColorscale(q,"")(pe)}var ne=j||V.mc||q.color,ye=q.pattern,te=Zo.getPatternAttr;let De=0;a._inHover&&V._distinct&&V.index!=null&&(De=V.index);let ce=ye&&(te(ye.shape,De,"")||te(ye.path,De,""));if(ce){let Fe=te(ye.bgcolor,De,null),ge=te(ye.fgcolor,De,null);var Re=ye.fgopacity;let Oe=a._inHover?l3(te(ye.size,De,8),8,10):l3(ye.size,8,10),cr=a._inHover?l3(te(ye.solidity,De,.5),.5,1):l3(ye.solidity,.5,1),qe=a._inHover?`hover-${P.uid}-${De}`:`legend-${P.uid}`;Y.call(Zo.pattern,"legend",t,qe,ce,Oe,cr,j,ye.fillmode,Fe,ge,Re)}else Y.call(dl.fill,ne);J&&dl.stroke(Y,V.mlc||z.color)})}function b(C){var D=C[0].trace,R=eo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&v8.traceIs(D,"box-violin")?[C]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),R.exit().remove(),R.each(function(){var P=eo.select(this);if((D.boxpoints==="all"||D.points==="all")&&dl.opacity(D.fillcolor)===0&&dl.opacity((D.line||{}).color)===0){var q=Gi.minExtend(D,{marker:{size:i?GP:Gi.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(Zo.pointStyle,q,t)}else{var z=f(void 0,D.line,dh,u0);P.style("stroke-width",z+"px").call(dl.fill,D.fillcolor),z&&dl.stroke(P,D.line.color)}})}function T(C){var D=C[0].trace,R=eo.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[C,C]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(P,q){return q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(P,q){var z=eo.select(this),B=D[q?"increasing":"decreasing"],U=f(void 0,B.line,dh,u0);z.style("stroke-width",U+"px").call(dl.fill,B.fillcolor),U&&dl.stroke(z,B.line.color)})}function _(C){var D=C[0].trace,R=eo.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[C,C]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(P,q){return q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(P,q){var z=eo.select(this),B=D[q?"increasing":"decreasing"],U=f(void 0,B.line,dh,u0);z.style("fill","none").call(Zo.dashLine,B.line.dash,U),U&&dl.stroke(z,B.line.color)})}function x(C){k(C,this,"pie")}function w(C){k(C,this,"funnelarea")}function k(C,D,R){var P=C[0],q=P.trace,z=R?q.visible&&q.type===R:v8.traceIs(q,R),B=eo.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(z?[C]:[]);if(B.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),B.exit().remove(),B.size()){var U=q.marker||{},G=f(X1e(U.line.width,P.pts),U.line,dh,u0),X="pieLike",Y=Gi.minExtend(q,{marker:{line:{width:G}}},X),V=Gi.minExtend(P,{trace:Y},X);V1e(B,V,Y,t)}}function M(C){var D=C[0].trace,R,P=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],R=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],R=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],R="radial";break;case"cone":P=[["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"]],R=!1;break;case"streamtube":P=[["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"]],R=!1;break;case"surface":P=[["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"]],R=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],R=!1;break}var q=eo.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(z,B){var U=eo.select(this),G=d8(D),X=G.colorscale,Y=G.reversescale,V=function(pe){if(pe.size()){var ne="legendfill-"+D.uid;Zo.gradient(pe,t,ne,p8(Y,R==="radial"),X,"fill")}},J;if(X){if(!R){var ee=X.length;J=B===0?X[Y?ee-1:0][1]:B===1?X[Y?0:ee-1][1]:X[Math.floor((ee-1)/2)][1]}}else{var j=D.vertexcolor||D.facecolor||D.color;J=Gi.isArrayOrTypedArray(j)?j[B]||j[0]:j}U.attr("d",z[0]),J?U.call(dl.fill,J):U.call(V)})}};function p8(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function VP(e){var r=e[0].trace,t=r.contours,a=s3.hasLines(r)||r.visible&&r.type==="quiver",n=s3.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 l3(e,r,t){return e&&Gi.isArrayOrTypedArray(e)?r:e>t?t:e}});var x8=I((ERe,tN)=>{"use strict";var ro=sa(),In=ir(),g8=pi(),f0=Pt(),c3=V1(),y8=Yl(),Bn=Sa(),hp=Kt(),hu=Ri(),WP=s8().handleItemClick,ZP=s8().handleTitleClick,yn=(n3(),hr(a3)),b8=(Ui(),hr(Hi)),eN=b8.LINE_SPACING,mh=b8.FROM_TL,JP=b8.FROM_BR,jP=FP(),Z1e=m8(),yh=vp(),ph=1,J1e=/^legend[0-9]*$/;tN.exports=function(r,t){if(t)$P(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=ro.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(J1e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];$P(r,s)}}};function j1e(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*eN,i=0,o=e.node(),l=Bn.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*yn.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*yn.titlePad-l),hu.positionText(e,t+yn.titlePad+i,t+n)}}function $P(e,r){var t=r||{},a=e._fullLayout,n=yh.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=jP(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&&jP(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(),g8.autoMargin(e,n);var m=In.ensureSingle(o,"g",n,function(C){l||C.attr("pointer-events","all")}),y=In.ensureSingleById(a._topdefs,"clipPath",i,function(C){C.append("rect")}),b=In.ensureSingle(m,"rect","bg",function(C){C.attr("shape-rendering","crispEdges")});b.call(hp.stroke,t.bordercolor).call(hp.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=In.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=In.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Bn.font,_.font).text(_.text),f3(x,T,e,t,ph),!l&&(t.titleclick||t.titledoubleclick)&&Q1e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=In.ensureSingle(m,"rect","scrollbar",function(C){C.attr(yn.scrollBarEnterAttrs).call(hp.fill,yn.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(In.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(C){let D=C[0],R=D.trace;if(D.groupTitle){let P=R.legendgroup,q=(a.shapes||[]).filter(function(B){return B.showlegend});return e._fullData.concat(q).some(function(B){return B.legendgroup===P&&(B.legend||"legend")===n&&B.visible===!0})?1:.5}return f0.traceIs(R,"pie-like")?p.indexOf(C[0].label)!==-1?.5:1:R.visible==="legendonly"?.5:1}).each(function(){ro.select(this).call($1e,e,t)}).call(Z1e,e,t).each(function(C){l||C[0].groupTitle&&t.groupclick==="toggleitem"||ro.select(this).call(K1e,e,n)}),In.syncOrAsync([g8.previousPromises,function(){return tpe(e,k,M,t,T)},function(){var C=a._size,D=t.borderwidth,R=t.xref==="paper",P=t.yref==="paper";if(_.text){let ze=(a.shapes||[]).filter(function(We){return We.showlegend}),Ue=e._fullData.concat(ze).some(function(We){let Ge=We.legend||"legend";var or=Array.isArray(Ge)?Ge.includes(n):Ge===n;return or&&We.visible===!0});x.style("opacity",Ue?1:.5)}if(!l){var q,z;R?q=C.l+C.w*t.x-mh[v3(t)]*t._width:q=a.width*t.x-mh[v3(t)]*t._width,P?z=C.t+C.h*(1-t.y)-mh[h3(t)]*t._effHeight:z=a.height*(1-t.y)-mh[h3(t)]*t._effHeight;var B=ape(e,n,q,z);if(B)return;if(a.margin.autoexpand){var U=q,G=z;q=R?In.constrain(q,0,a.width-t._width):U,z=P?In.constrain(z,0,a.height-t._effHeight):G,q!==U&&In.log("Constrain "+n+".x to make legend fit inside graph"),z!==G&&In.log("Constrain "+n+".y to make legend fit inside graph")}Bn.setTranslate(m,q,z)}if(w.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var X=t._effHeight;l&&(X=t._height),b.attr({width:t._width-D,height:X-D,x:D/2,y:D/2}),Bn.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*D,height:X-2*D,x:D,y:D}),Bn.setClipUrl(T,i,e),Bn.setRect(w,0,0,0,0),delete t._scrollY}else{var Y=Math.max(yn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-Y-2*yn.scrollBarMargin,J=t._height-t._effHeight,j=V/J,ee=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+yn.scrollBarWidth+yn.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+yn.scrollBarWidth+yn.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ee}),Bn.setClipUrl(T,i,e),Fe(ee,Y,j),m.on("wheel",function(){ee=In.constrain(t._scrollY+ro.event.deltaY/J*V,0,J),Fe(ee,Y,j),ee!==0&&ee!==J&&ro.event.preventDefault()});var pe,ne,ye,te=function(ze,Ue,We){var Ge=(We-Ue)/j+ze;return In.constrain(Ge,0,J)},De=function(ze,Ue,We){var Ge=(Ue-We)/j+ze;return In.constrain(Ge,0,J)},ce=ro.behavior.drag().on("dragstart",function(){var ze=ro.event.sourceEvent;ze.type==="touchstart"?pe=ze.changedTouches[0].clientY:pe=ze.clientY,ye=ee}).on("drag",function(){var ze=ro.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(ze.type==="touchmove"?ne=ze.changedTouches[0].clientY:ne=ze.clientY,ee=te(ye,pe,ne),Fe(ee,Y,j))});w.call(ce);var Re=ro.behavior.drag().on("dragstart",function(){var ze=ro.event.sourceEvent;ze.type==="touchstart"&&(pe=ze.changedTouches[0].clientY,ye=ee)}).on("drag",function(){var ze=ro.event.sourceEvent;ze.type==="touchmove"&&(ne=ze.changedTouches[0].clientY,ee=De(ye,pe,ne),Fe(ee,Y,j))});T.call(Re)}function Fe(ze,Ue,We){t._scrollY=e._fullLayout[n]._scrollY=ze,Bn.setTranslate(T,0,-ze),Bn.setRect(w,t._width,yn.scrollBarMargin+ze*We,yn.scrollBarWidth,Ue),y.select("rect").attr("y",D+ze)}if(e._context.edits.legendPosition){var ge,Oe,cr,qe;m.classed("cursor-move",!0),y8.init({element:m.node(),gd:e,prepFn:function(ze){if(ze.target!==w.node()){var Ue=Bn.getTranslate(m);cr=Ue.x,qe=Ue.y}},moveFn:function(ze,Ue){if(cr!==void 0&&qe!==void 0){var We=cr+ze,Ge=qe+Ue;Bn.setTranslate(m,We,Ge),ge=y8.align(We,t._width,C.l,C.l+C.w,t.xanchor),Oe=y8.align(Ge+t._height,-t._height,C.t+C.h,C.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&Oe!==void 0){var ze={};ze[n+".x"]=ge,ze[n+".y"]=Oe,f0.call("_guiRelayout",e,ze)}},clickFn:function(ze,Ue){var We=o.selectAll("g.traces").filter(function(){var Ge=this.getBoundingClientRect();return Ue.clientX>=Ge.left&&Ue.clientX<=Ge.right&&Ue.clientY>=Ge.top&&Ue.clientY<=Ge.bottom});We.size()>0&&rN(e,t,We,ze,Ue)}})}}],e)}}function u3(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 rN(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),f0.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=c3.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&WP(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=c3.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&WP(t,e,r,s,a)}}function $1e(e,r,t){var a=yh.getId(t),n=e.data()[0][0],i=n.trace,o=f0.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=In.templateString(u,i._meta))));var c=In.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Bn.font,f).text(l?KP(u,s):u);var v=t.indentation+t.itemwidth+yn.itemGap*2;hu.positionText(c,v,0),l?c.call(hu.makeEditable,{gd:r,text:u}).call(f3,e,r,t).on("edit",function(d){this.text(KP(d,s)).call(f3,e,r,t);var p={};return p.name=d,n.trace._isShape?f0.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):f0.call("_guiRestyle",r,p,i.index)}):f3(c,e,r,t)}function KP(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 K1e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=In.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(hp.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)),rN(r,l,e,i,ro.event)}}))}function Q1e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&f0.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=In.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(hp.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:ro.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(c3.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ZP(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,c3.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&ZP(r,t,t.titledoubleclick))}))}function f3(e,r,t,a,n){a._inHover&&e.attr("data-notex",hu.isPureTex(e.text())?null:!0),hu.convertToTspans(e,t,function(){epe(r,t,a,n)})}function epe(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=yh.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===ph?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*eN,v,d;if(l){var p=Bn.bBox(l);v=p.height,d=p.width,a===ph?Bn.setTranslate(o,u,u+v*.75):Bn.setTranslate(o,0,v*.25)}else{var m="."+s+(a===ph?"title":"")+"text",y=e.select(m),b=hu.lineCount(y),T=y.node();if(v=c*b,d=T?Bn.bBox(T).width:0,a===ph)t.title.side==="left"&&(d+=yn.itemGap*2),hu.positionText(y,u+yn.titlePad,u+c);else{var _=yn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=yn.itemGap,d-=t.indentation+t.itemwidth),hu.positionText(y,_,-c*((b-1)/2-.3))}}if(a===ph)t._titleWidth=d,t._titleHeight=v;else{n.lineHeight=c;let x=yn.itemMinHeight+t.itemheight-yn.dfltFillHeight;n.height=Math.max(v,yn.itemMinHeight,x)+yn.itemHeightPad,n.width=d}}function rpe(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 tpe(e,r,t,a,n){var i=e._fullLayout,o=yh.getId(a);a||(a=i[o]);var l=i._size,s=yh.isVertical(a),u=yh.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=yn.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=h3(a),b=a.y<0||a.y===0&&y==="top",T=a.y>1||a.y===1&&y==="bottom",_=a.tracegroupgap,x={};let{orientation:w,yref:k}=a,{maxheight:M}=a,C=b||T||w!=="v"||k!=="paper";M||(M=C?.5:1);let D=C?i.height:l.h;if(a._maxHeight=Math.max(M>1?M:M*D,30),k==="container"){let ze=QP(a.y,y)*i.height;a._maxHeight=Math.max(Math.min(a._maxHeight,ze),30)}var R=0;a._width=0,a._height=0;var P=rpe(a);if(s)t.each(function(ze){var Ue=ze[0].height;Bn.setTranslate(this,c+P[0],c+P[1]+a._height+Ue/2+d),a._height+=Ue,a._width=Math.max(a._width,ze[0].width)}),R=p+a._width,a._width+=d+p+v,a._height+=m,u&&(r.each(function(ze,Ue){Bn.setTranslate(this,0,Ue*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var q=v3(a),z=a.x<0||a.x===0&&q==="right",B=a.x>1||a.x===1&&q==="left",U=T||b,G=i.width/2;if(a._maxWidth=Math.max(z?U&&q==="left"?l.l+l.w:G:B?U&&q==="right"?l.r+l.w:G:l.w,2*p),a.xref==="container"){let ze=QP(a.x,q)*i.width;a._maxWidth=Math.max(ze,2*p)}var X=0,Y=0;t.each(function(ze){var Ue=u3(ze,a,p);X=Math.max(X,Ue),Y+=Ue}),R=null;var V=0;if(u){var J=0,j=0,ee=0;r.each(function(){var ze=0,Ue=0;ro.select(this).selectAll("g.traces").each(function(Ge){var or=u3(Ge,a,p),Ye=Ge[0].height;Bn.setTranslate(this,P[0],P[1]+c+d+Ye/2+Ue),Ue+=Ye,ze=Math.max(ze,or),x[Ge[0].trace.legendgroup]=ze});var We=ze+d;j>0&&We+c+j>a._maxWidth?(V=Math.max(V,j),j=0,ee+=J+_,J=Ue):J=Math.max(J,Ue),Bn.setTranslate(this,j,ee),j+=We}),a._width=Math.max(V,j)+c,a._height=ee+J+m}else{var pe=t.size(),ne=Y+v+(pe-1)*d<a._maxWidth,ye=0,te=0,De=0,ce=0;t.each(function(ze){var Ue=ze[0].height,We=u3(ze,a,p,u),Ge=ne?We:X;f||(Ge+=d),Ge+c+te-d>=a._maxWidth&&(V=Math.max(V,ce),te=0,De+=ye,a._height+=ye,ye=0),Bn.setTranslate(this,P[0]+c+te,P[1]+c+De+Ue/2+d),ce=te+We+d,te+=Ge,ye=Math.max(ye,Ue)}),ne?(a._width=te+v,a._height=ye+m):(a._width=Math.max(V,ce)+v,a._height+=ye+m)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+yn.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+yn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Re=e._context.edits,Fe=Re.legendText||Re.legendPosition;if(t.each(function(ze){var Ue=ro.select(this).select("."+o+"toggle"),We=ze[0].height,Ge=ze[0].trace.legendgroup,or=u3(ze,a,p);u&&Ge!==""&&(or=x[Ge]);var Ye=Fe?p:R||or;!s&&!f&&(Ye+=d/2),Bn.setRect(Ue,0,-We/2,Ye,We)}),a._inHover){let ze=a._width-v-d-P[0];t.each(function(Ue){Ue[0].textAlign==="right"&&ro.select(this).select("."+o+"text").attr("text-anchor","end").call(hu.positionText,ze)})}var ge=n.select("."+o+"titletext");ge.node()&&j1e(ge,a,c);var Oe=n.select("."+o+"titletoggle");if(Oe.size()&&ge.node()){var cr=ge.attr("x")||0,qe=yn.titlePad;Bn.setRect(Oe,cr-qe,c,a._titleWidth+2*qe,a._titleHeight+2*qe)}}function ape(e,r,t,a){var n=e._fullLayout,i=n[r],o=v3(i),l=h3(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 g8.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*mh[o],r:i._width*JP[o],b:i._effHeight*JP[l],t:i._effHeight*mh[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 v3(e){return In.isRightAnchor(e)?"right":In.isCenterAnchor(e)?"center":"left"}function h3(e){return In.isBottomAnchor(e)?"bottom":In.isMiddleAnchor(e)?"middle":"top"}function QP(e,r){switch(r){case"left":case"bottom":return 1-e;case"right":case"top":return e;default:return 2*Math.min(e,1-e)}}});var M8=I(T8=>{"use strict";var pu=sa(),du=da(),gn=ir(),npe=gn.pushUnique,_8=gn.strTranslate,ipe=gn.strRotate,ope=V1(),fn=Ri(),lpe=SP(),Cs=Sa(),Jn=Kt(),d3=Yl(),Vl=tn(),spe=(ni(),hr(ai)).zindexSeparator,c0=Pt(),Eo=ws(),v0=(g1(),hr(y1)),upe=i8(),fpe=x8(),vN=v0.YANGLE,A8=Math.PI*vN/180,cpe=1/Math.sin(A8),vpe=Math.cos(A8),hpe=Math.sin(A8),an=v0.HOVERARROWSIZE,oa=v0.HOVERTEXTPAD,aN={box:!0,ohlc:!0,violin:!0,candlestick:!0},dpe={scatter:!0,scattergl:!0,splom:!0};function nN(e,r){return e.distance-r.distance}T8.hover=function(r,t,a,n){r=gn.getGraphDiv(r);var i=t.target;gn.throttle(r._fullLayout._uid+v0.HOVERID,v0.HOVERMINTIME,function(){mpe(r,t,a,n,i)})};T8.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=mN(n),o=yN(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,b=p._y0||p.y0||p.y||0,T=p._y1||p.y1||p.y||0,_=p.eventData;if(_){var x=Math.min(m,y),w=Math.max(m,y),k=Math.min(b,T),M=Math.max(b,T),C=p.trace;if(c0.traceIs(C,"gl3d")){var D=n._fullLayout[C.scene]._scene.container,R=D.offsetLeft,P=D.offsetTop;x+=R,w+=R,k+=P,M+=P}_.bbox={x0:x+o,x1:w+o,y0:k+i,y1:M+i},_.xPixel=(m+y)/2,_.yPixel=(b+T)/2,t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:p.color||Jn.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:_}}),s=!1,u=dN(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Jn.background,container:pu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,y=0;f.sort(function(b,T){return b.y0-T.y0}).each(function(b,T){var _=b.y0-b.by/2;_-p<m?b.offset=m-_+p:b.offset=0,m=_+b.by+b.offset,T===t.anchorIndex&&(y=b.offset)}).each(function(b){b.offset-=y})}var v=n._fullLayout._invScaleX,d=n._fullLayout._invScaleY;return c(),m3(f,s,v,d),u.mathjaxPromise&&u.mathjaxPromise.then(function(){c(),m3(f,s,v,d),f.each(function(){var p=pu.select(this);fn.repositionMathGroup(p.select("text.nums")),fn.repositionMathGroup(p.select("text.name"))})}),a?f:f.node()};function ppe(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function mpe(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(spe)[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=l._has("ternary"),d=r.hovermode||l.hovermode,p=(d||"").charAt(0)==="x",m=(d||"").charAt(0)==="y",y,b;if(c&&(p||m)&&s==="axis"){for(var T=i.length,_=0;_<T;_++)if(o=i[_],u[o]){y=Vl.getFromId(e,o,"x"),b=Vl.getFromId(e,o,"y");var x=(p?y:b)._subplotsWith;if(x&&x.length)for(var w=0;w<x.length;w++)npe(i,x[w])}}if(f&&s!=="single"){var k=f.overlays.map(function(Ir){return Ir.id});i=i.concat(k)}for(var M=i.length,C=new Array(M),D=new Array(M),R=!1,P=0;P<M;P++)if(o=i[P],u[o])R=!0,C[P]=u[o].xaxis,D[P]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var q=l[o]._subplot;C[P]=q.xaxis,D[P]=q.yaxis}else{gn.warn("Unrecognized subplot: "+o);return}if(d&&!R&&(d="closest"),["x","y","closest","x unified","y unified"].indexOf(d)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return d3.unhoverRaw(e,r);var z=l.hoverdistance;z===-1&&(z=1/0);var B=l.spikedistance;B===-1&&(B=1/0);var U=[],G=[],X,Y,V,J,j,ee,pe,ne,ye,te,De,ce,Re,Fe={hLinePoint:null,vLinePoint:null};let ge={};var Oe=!1;if(Array.isArray(r))for(d="array",V=0;V<r.length;V++)j=e.calcdata[r[V].curveNumber||0],j&&(ee=j[0].trace,j[0].trace.hoverinfo!=="skip"&&(G.push(j),ee.orientation==="h"&&(Oe=!0)));else{var cr=e.calcdata.slice();for(cr.sort(function(Ir,Qt){var It=Ir[0].trace.zorder||0,pa=Qt[0].trace.zorder||0;return It-pa}),J=0;J<cr.length;J++)j=cr[J],ee=j[0].trace,ee.hoverinfo!=="skip"&&Eo.isTraceInSubplots(ee,i)&&(G.push(j),ee.orientation==="h"&&(Oe=!0));var qe=!n,ze,Ue;if(qe)"xpx"in r?ze=r.xpx:ze=C[0]._length/2,"ypx"in r?Ue=r.ypx:Ue=D[0]._length/2;else{if(ope.triggerHandler(e,"plotly_beforehover",r)===!1)return;var We=n.getBoundingClientRect();ze=r.clientX-We.left,Ue=r.clientY-We.top,l._calcInverseTransform(e);var Ge=gn.apply3DTransform(l._invTransform)(ze,Ue);if(ze=Ge[0],Ue=Ge[1],ze<0||ze>C[0]._length||Ue<0||Ue>D[0]._length)return d3.unhoverRaw(e,r)}if(r.pointerX=ze+C[0]._offset,r.pointerY=Ue+D[0]._offset,"xval"in r?X=Eo.flat(i,r.xval):X=Eo.p2c(C,ze),"yval"in r?Y=Eo.flat(i,r.yval):Y=Eo.p2c(D,Ue),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!du(X[0])||!du(Y[0]))return gn.warn("Fx.hover failed",r,e),d3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=X,e._hoverYVals=Y,e._hoverXAxes=C,e._hoverYAxes=D);var or=1/0;function Ye(Ir,Qt){for(J=0;J<G.length;J++)if(j=G[J],!(!j||!j[0]||!j[0].trace)&&(ee=j[0].trace,!(ee.visible!==!0||ee._length===0)&&["carpet","contourcarpet"].indexOf(ee._module.name)===-1)){if(ye=d,Eo.isUnifiedHover(ye)&&(ye=ye.charAt(0)),ee.type==="splom"?(ne=0,pe=i[ne]):(pe=Eo.getSubplot(ee),ne=i.indexOf(pe)),ce={cd:j,trace:ee,xa:C[ne],ya:D[ne],maxHoverDistance:z,maxSpikeDistance:B,index:!1,distance:Math.min(or,z),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:Jn.defaultLine,name:ee.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[pe]&&(ce.subplot=l[pe]._subplot),l._splomScenes&&l._splomScenes[ee.uid]&&(ce.scene=l._splomScenes[ee.uid]),ye==="array"){var It=r[J];if("pointNumber"in It){let Aa=j[It.pointNumber];Aa&&(ce.index=It.pointNumber,Aa.lonlat?(te=Aa.lonlat[0],De=Aa.lonlat[1]):(te=Aa.x,De=Aa.y)),ye="closest"}else ye="","xval"in It&&(te=It.xval,ye="x"),"yval"in It&&(De=It.yval,ye=ye?"closest":"y")}else Ir!==void 0&&Qt!==void 0?(te=Ir,De=Qt):(te=X[ne],De=Y[ne]);if(Re=U.length,z!==0)if(ee._module&&ee._module.hoverPoints){var pa=ee._module.hoverPoints(ce,te,De,ye,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(pa)for(var Xn,_i=0;_i<pa.length;_i++)Xn=pa[_i],du(Xn.x0)&&du(Xn.y0)&&U.push(bpe(Xn,d))}else gn.log("Unrecognized trace type in hover:",ee);if(d==="closest"&&U.length>Re&&(U.splice(0,Re),or=U[0].distance),c0.traceIs(ee,"ternary")&&B!==0){let Aa=ce.subplot;if(["aaxis","baxis","caxis"].some(En=>Aa[En].showspikes&&Aa[En].spikesnap!=="hovered data")){let En=pa==null?void 0:pa[0];if(!Number.isFinite(En==null?void 0:En.spikeDistance)){let Bo=gn.extendFlat({},ce,{distance:B,index:!1}),mo=ee._module.hoverPoints(Bo,te,De,"closest");En=mo&&mo[0]}let Wi=ge[pe];En&&En.index!==void 0&&En.index!==!1&&En.spikeDistance<=B&&(!Wi||En.spikeDistance<Wi.spikeDistance)&&(ge[pe]=En)}}if(c&&U.length===0&&B!==0&&ppe(ce.xa,ce.ya)){ce.distance=B,ce.index=!1;var un=ee._module.hoverPoints(ce,te,De,"closest",{hoverLayer:l._hoverlayer});if(un&&(un=un.filter(function(Aa){return Aa.spikeDistance<=B})),un!=null&&un.length){var Io,tl=un.filter(function(Aa){return Aa.xa.showspikes&&Aa.xa.spikesnap!=="hovered data"});if(tl.length){var El=tl[0];du(El.x0)&&du(El.y0)&&(Io=Yr(El),(!Fe.vLinePoint||Fe.vLinePoint.spikeDistance>Io.spikeDistance)&&(Fe.vLinePoint=Io))}var os=un.filter(function(Aa){return Aa.ya.showspikes&&Aa.ya.spikesnap!=="hovered data"});if(os.length){var lo=os[0];du(lo.x0)&&du(lo.y0)&&(Io=Yr(lo),(!Fe.hLinePoint||Fe.hLinePoint.spikeDistance>Io.spikeDistance)&&(Fe.hLinePoint=Io))}}}}}Ye();function _r(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),B!==0)for(let Ir=0;Ir<i.length;Ir++){let Qt=i[Ir],It=l[Qt]&&l[Qt]._subplot;if(It&&It.drawSpikelines){let pa=U.find(Xn=>Xn.trace.subplot===Qt&&Xn.index!==void 0&&Xn.index!==!1&&Xn.spikeDistance<=B);It.drawSpikelines(pa,ge[Qt],X&&X[Ir],Y&&Y[Ir])}}}function Pr(Ir,Qt,It){for(var pa=null,Xn=1/0,_i,un=0;un<Ir.length;un++)y&&y._id!==Ir[un].xa._id||b&&b._id!==Ir[un].ya._id||(_i=Ir[un].spikeDistance,It&&un===0&&(_i=-1/0),_i<=Xn&&_i<=Qt&&(pa=Ir[un],Xn=_i));return pa}function Yr(Ir){return Ir?{xa:Ir.xa,ya:Ir.ya,x:Ir.xSpike!==void 0?Ir.xSpike:(Ir.x0+Ir.x1)/2,y:Ir.ySpike!==void 0?Ir.ySpike:(Ir.y0+Ir.y1)/2,distance:Ir.distance,spikeDistance:Ir.spikeDistance,curveNumber:Ir.trace.index,color:Ir.color,pointNumber:Ir.index}:null}var $e={fullLayout:l,container:l._hoverlayer,event:r},mr=e._spikepoints,Gr={vLinePoint:Fe.vLinePoint,hLinePoint:Fe.hLinePoint};e._spikepoints=Gr;var fe=function(){var Ir=U.filter(function(It){return y&&y._id===It.xa._id&&b&&b._id===It.ya._id}),Qt=U.filter(function(It){return!(y&&y._id===It.xa._id&&b&&b._id===It.ya._id)});Ir.sort(nN),Qt.sort(nN),U=Ir.concat(Qt),U=_pe(U,d)};fe();var Ce=d.charAt(0);let Tr=Ir=>Ir&&["category","multicategory"].includes(Ir.type),tt=Ce==="x"?C:D,at=Ce==="x"?X:Y;if(Eo.isXYhover(ye)&&at){let Ir=U.filter(Qt=>{let It=Qt[Ce+"a"],pa=tt.indexOf(It);return!Tr(It)||pa===-1?!0:Qt[Ce+"LabelVal"]===Math.round(at[pa])});Ir.length&&(U=Ir)}var de=(Ce==="x"||Ce==="y")&&U[0]&&dpe[U[0].trace.type];if(c&&B!==0&&U.length!==0){var Le=U.filter(function(Ir){return Ir.ya.showspikes}),lr=Pr(Le,B,de);Fe.hLinePoint=Yr(lr);var Ar=U.filter(function(Ir){return Ir.xa.showspikes}),ur=Pr(Ar,B,de);Fe.vLinePoint=Yr(ur)}if(U.length===0){var Cr=d3.unhoverRaw(e,r);if(c&&(Fe.hLinePoint!==null||Fe.vLinePoint!==null)&&uN(mr)&&sN(e,Fe,$e),l.hoveranywhere&&!a&&n){var Er=e._hoverdata;Er&&Er.length&&(e.emit("plotly_unhover",{event:r,points:Er}),e._hoverdata=[]),ui([]),e._hoverAnywhereActive=!0}return v&&_r(),Cr}if(c&&uN(mr)&&sN(e,Fe,$e),v&&_r(),Eo.isXYhover(ye)&&U[0].length!==0&&U[0].trace.type!=="splom"){var Vr=U[0];aN[Vr.trace.type]?U=U.filter(Ir=>Ir.trace.index===Vr.trace.index):U=[Vr];var ot=U.length,Ve=cN("x",Vr,l),Mr=cN("y",Vr,l);Ye(Ve,Mr);var Qe=[],zr={},it=0,lt=function(Ir){var Qt=aN[Ir.trace.type]?hN(Ir):Ir.trace.index;if(!zr[Qt])it++,zr[Qt]=it,Qe.push(Ir);else{var It=zr[Qt]-1,pa=Qe[It];It>0&&Math.abs(Ir.distance)<Math.abs(pa.distance)&&(Qe[It]=Ir)}},Qr;for(Qr=0;Qr<ot;Qr++)lt(U[Qr]);for(Qr=U.length-1;Qr>ot-1;Qr--)lt(U[Qr]);var se=Vr[Ce+"a"];if(se&&(se.type==="category"||se.type==="multicategory")){var Te=Vr[Ce+"LabelVal"];Qe=Qe.filter(function(Ir){var Qt=Ir[Ce+"a"];return!Qt||Qt.type!=="category"&&Qt.type!=="multicategory"?!0:Ir[Ce+"LabelVal"]===Te})}U=Qe,fe()}var tr=e._hoverdata,vr=[],na=mN(e),Ea=yN(e);for(let Ir of U){var Da=Eo.makeEventData(Ir,Ir.trace,Ir.cd);if(Ir.hovertemplate!==!1){var Va=!1;Ir.cd[Ir.index]&&Ir.cd[Ir.index].ht&&(Va=Ir.cd[Ir.index].ht),Ir.hovertemplate=Va||Ir.trace.hovertemplate||!1}if(Ir.xa&&Ir.ya){var on=Ir.x0+Ir.xa._offset,Xa=Ir.x1+Ir.xa._offset,Mn=Ir.y0+Ir.ya._offset,Ba=Ir.y1+Ir.ya._offset,hn=Math.min(on,Xa),Yn=Math.max(on,Xa),Kn=Math.min(Mn,Ba),si=Math.max(Mn,Ba);Da.bbox={x0:hn+Ea,x1:Yn+Ea,y0:Kn+na,y1:si+na},Da.xPixel=(on+Xa)/2,Da.yPixel=(Mn+Ba)/2}Ir.eventData=[Da],vr.push(Da)}e._hoverdata=vr;var Wa=d==="y"&&(G.length>1||U.length>1)||d==="closest"&&Oe&&U.length>1,Vn=Jn.combine(l.plot_bgcolor||Jn.background,l.paper_bgcolor),ln=dN(U,{gd:e,hovermode:d,rotateLabels:Wa,bgColor:Vn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),sn=ln.hoverLabels;if(Eo.isUnifiedHover(d)||(oN(sn,Wa,l,ln.commonLabelBoundingBox),m3(sn,Wa,l._invScaleX,l._invScaleY),ln.mathjaxPromise&&ln.mathjaxPromise.then(function(){e._hoverdata===vr&&(oN(sn,Wa,l,ln.commonLabelBoundingBox),m3(sn,Wa,l._invScaleX,l._invScaleY),sn.each(function(){var Ir=pu.select(this);fn.repositionMathGroup(Ir.select("text.nums")),fn.repositionMathGroup(Ir.select("text.name"))}))})),n&&n.tagName){var Za=c0.getComponentMethod("annotations","hasClickToShow")(e,vr);lpe(pu.select(n),Za?"pointer":"")}var kn=xpe(e,r,tr);if(!n||a||!kn&&!l.hoveranywhere)return;tr&&kn&&e.emit("plotly_unhover",{event:r,points:tr}),ui(e._hoverdata);function ui(Ir){e.emit("plotly_hover",{event:r,points:Ir,xaxes:C,yaxes:D,xvals:Eo.c2dApply(C,X),yvals:Eo.c2dApply(D,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function hN(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 ype=/<extra>([\s\S]*)<\/extra>/;function w8(e,r){return p3(e,fn.getMathOrTextNode(r))}function dN(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||v0.HOVERFONT,v=r.fontSize||v0.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,b=r.fontLineposition||a.font.lineposition,T=r.fontShadow||a.font.shadow,_=e[0],x=_.xa,w=_.ya,k=n.charAt(0),M=k+"Label",C=_[M];if(C===void 0&&x.type==="multicategory")for(var D=0;D<e.length&&(C=e[D][M],C===void 0);D++);var R=p3(t,s),P=R.top,q=R.width,z=R.height,B=C!==void 0&&_.distance<=r.hoverdistance&&(n==="x"||n==="y");if(B){var U=!0,G,X;for(G=0;G<e.length;G++)if(U&&e[G].zLabel===void 0&&(U=!1),X=e[G].hoverinfo||e[G].trace.hoverinfo,X){var Y=Array.isArray(X)?X:X.split("+");if(Y.indexOf("all")===-1&&Y.indexOf(n)===-1){B=!1;break}}U&&(B=!1)}var V=l.selectAll("g.axistext").data(B?[0]:[]);V.enter().append("g").classed("axistext",!0),V.exit().remove();var J={minX:0,maxX:0,minY:0,maxY:0};if(V.each(function(){var de=pu.select(this),Le=gn.ensureSingle(de,"path","",function(Qe){Qe.style({"stroke-width":"1px"})}),lr=gn.ensureSingle(de,"text",""),Ar=u.bgcolor||Jn.defaultLine,ur=u.bordercolor||Jn.contrast(Ar),Cr=Jn.contrast(Ar),Er=u.font,Vr={weight:Er.weight||d,style:Er.style||p,variant:Er.variant||m,textcase:Er.textcase||y,lineposition:Er.lineposition||b,shadow:Er.shadow||T,family:Er.family||c,size:Er.size||v,color:Er.color||Cr};Le.style({fill:Ar,stroke:ur});var ot=fn.isPureTex(String(C)),Ve;ot&&f.push(new Promise(function(Qe){Ve=function(){if(!lr.node().parentNode){Qe();return}Mr(),fn.repositionMathGroup(lr),Qe()}})),lr.text(C).call(Cs.font,Vr).attr("data-notex",ot?null:1).call(fn.positionText,0,0).call(fn.convertToTspans,t,Ve),Mr();function Mr(){de.attr("transform",""),fn.positionText(lr,0,0),fn.repositionMathGroup(lr);var Qe=w8(t,lr),zr,it;if(n==="x"){var lt=x.side==="top"?"-":"";lr.attr("text-anchor","middle").call(fn.positionText,0,x.side==="top"?P-Qe.bottom-an-oa:P-Qe.top+an+oa),zr=x._offset+(_.x0+_.x1)/2,it=w._offset+(x.side==="top"?0:w._length);var Qr=Qe.width/2+oa,se=zr;zr<Qr?se=Qr:zr>a.width-Qr&&(se=a.width-Qr),Le.attr("d","M"+(zr-se)+",0L"+(zr-se+an)+","+lt+an+"H"+Qr+"v"+lt+(oa*2+Qe.height)+"H"+-Qr+"V"+lt+an+"H"+(zr-se-an)+"Z"),zr=se,J.minX=zr-Qr,J.maxX=zr+Qr,x.side==="top"?(J.minY=it-(oa*2+Qe.height),J.maxY=it-oa):(J.minY=it+oa,J.maxY=it+(oa*2+Qe.height))}else{var Te,tr,vr;w.side==="right"?(Te="start",tr=1,vr="",zr=x._offset+x._length):(Te="end",tr=-1,vr="-",zr=x._offset),it=w._offset+(_.y0+_.y1)/2,lr.attr("text-anchor",Te),Le.attr("d","M0,0L"+vr+an+","+an+"V"+(oa+Qe.height/2)+"h"+vr+(oa*2+Qe.width)+"V-"+(oa+Qe.height/2)+"H"+vr+an+"V-"+an+"Z"),J.minY=it-(oa+Qe.height/2),J.maxY=it+(oa+Qe.height/2),w.side==="right"?(J.minX=zr+an,J.maxX=zr+an+(oa*2+Qe.width)):(J.minX=zr-an-(oa*2+Qe.width),J.maxX=zr-an);var na=Qe.height/2,Ea=P-Qe.top-na,Da="clip"+a._uid+"commonlabel"+w._id,Va;if(zr<Qe.width+2*oa+an){Va="M-"+(an+oa)+"-"+na+"h-"+(Qe.width-oa)+"V"+na+"h"+(Qe.width-oa)+"Z";var on=Qe.width-zr+oa;fn.positionText(lr,on,Ea),Te==="end"&&lr.selectAll("tspan").each(function(){var Mn=pu.select(this),Ba=Cs.tester.append("text").text(Mn.text()).call(Cs.font,Vr),hn=p3(t,Ba.node());Math.round(hn.width)<Math.round(Qe.width)&&Mn.attr("x",on-hn.width),Ba.remove()})}else fn.positionText(lr,tr*(oa+an),Ea),Va=null;var Xa=a._topclips.selectAll("#"+Da).data(Va?[0]:[]);Xa.enter().append("clipPath").attr("id",Da).append("path"),Xa.exit().remove(),Xa.select("path").attr("d",Va),Cs.setClipUrl(lr,Va?Da:null,t)}de.attr("transform",_8(zr,it))}}),Eo.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let de=e.filter(Le=>Le.hoverinfo!=="none");if(de.length===0)return[];var j=a.hoverlabel,ee=j.font,pe=de[0],ne=((n==="x unified"?pe.xa:pe.ya).unifiedhovertitle||{}).text,ye=ne?gn.hovertemplateString({data:n==="x unified"?[{xa:pe.xa,x:pe.xVal}]:[{ya:pe.ya,y:pe.yVal}],fallback:pe.trace.hovertemplatefallback,locale:a._d3locale,template:ne}):C,te={showlegend:!0,legend:{title:{text:ye,font:ee},font:ee,bgcolor:j.bgcolor,bordercolor:j.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},De={font:ee};upe(te,De,t._fullData);var ce=De.legend;ce.entries=[];for(var Re=0;Re<de.length;Re++){var Fe=de[Re];if(Fe.hoverinfo!=="none"){var ge=iN(Fe,!0,n,a,C),Oe=ge[0],cr=ge[1];Fe.name=cr,cr!==""?Fe.text=cr+" : "+Oe:Fe.text=Oe;var qe=Fe.cd[Fe.index];qe&&(qe.mc&&(Fe.mc=qe.mc),qe.mcc&&(Fe.mc=qe.mcc),qe.mlc&&(Fe.mlc=qe.mlc),qe.mlcc&&(Fe.mlc=qe.mlcc),qe.mlw&&(Fe.mlw=qe.mlw),qe.mrc&&(Fe.mrc=qe.mrc),qe.dir&&(Fe.dir=qe.dir)),Fe._distinct=!0,ce.entries.push([Fe])}}ce.entries.sort(function(Le,lr){var Ar=a.hoversort;if(Ar==="value descending"||Ar==="value ascending"){var ur=n.charAt(0)==="x"?"y":"x",Cr=Le[0][ur+"LabelVal"],Er=lr[0][ur+"LabelVal"];if(Cr!==Er)return Ar==="value descending"?Er-Cr:Cr-Er}return Le[0].trace.index-lr[0].trace.index}),ce.layer=l,ce._inHover=!0,ce._groupTitleFont=j.grouptitlefont,fpe(t,ce);var ze=l.select("g.legend"),Ue=p3(t,ze.node()),We=Ue.width+2*oa,Ge=Ue.height+2*oa,or=de[0],Ye=(or.x0+or.x1)/2,_r=(or.y0+or.y1)/2,Pr=!(c0.traceIs(or.trace,"bar-like")||c0.traceIs(or.trace,"box-violin")),Yr,$e;k==="y"?Pr?($e=_r-oa,Yr=_r+oa):($e=Math.min.apply(null,de.map(function(Le){return Math.min(Le.y0,Le.y1)})),Yr=Math.max.apply(null,de.map(function(Le){return Math.max(Le.y0,Le.y1)}))):$e=Yr=gn.mean(de.map(function(Le){return(Le.y0+Le.y1)/2}))-Ge/2;var mr,Gr;k==="x"?Pr?(mr=Ye+oa,Gr=Ye-oa):(mr=Math.max.apply(null,de.map(function(Le){return Math.max(Le.x0,Le.x1)})),Gr=Math.min.apply(null,de.map(function(Le){return Math.min(Le.x0,Le.x1)}))):mr=Gr=gn.mean(de.map(function(Le){return(Le.x0+Le.x1)/2}))-We/2;var fe=x._offset,Ce=w._offset;Yr+=Ce,mr+=fe,Gr+=fe-We,$e+=Ce-Ge;var Tr,tt;return mr+We<q&&mr>=0?Tr=mr:Gr+We<q&&Gr>=0?Tr=Gr:fe+We<q?Tr=fe:mr-Ye<Ye-Gr+We?Tr=q-We:Tr=0,Tr+=oa,Yr+Ge<z&&Yr>=0?tt=Yr:$e+Ge<z&&$e>=0?tt=$e:Ce+Ge<z?tt=Ce:Yr-_r<_r-$e+Ge?tt=z-Ge:tt=0,tt+=oa,ze.attr("transform",_8(Tr-1,tt-1)),ze}var at=l.selectAll("g.hovertext").data(e,function(de){return hN(de)});return at.enter().append("g").classed("hovertext",!0).each(function(){var de=pu.select(this);de.append("rect").call(Jn.fill,Jn.addOpacity(o,.8)),de.append("text").classed("name",!0),de.append("path").style("stroke-width","1px"),de.append("text").classed("nums",!0).call(Cs.font,{weight:d,style:p,variant:m,textcase:y,lineposition:b,shadow:T,family:c,size:v})}),at.exit().remove(),at.each(function(de){var Le=pu.select(this).attr("transform",""),lr=de.color;Array.isArray(lr)&&(lr=lr[de.eventData[0].pointNumber]);var Ar=de.bgcolor||lr,ur=Jn.combine(Jn.opacity(Ar)?Ar:Jn.defaultLine,o),Cr=Jn.combine(Jn.opacity(lr)?lr:Jn.defaultLine,o),Er=de.borderColor||Jn.contrast(ur),Vr=iN(de,B,n,a,C,Le),ot=Vr[0],Ve=Vr[1],Mr=!!(Ve&&Ve!==ot),Qe=fn.isPureTex(ot),zr=Mr&&fn.isPureTex(Ve),it=(Qe?1:0)+(zr?1:0),lt;it&&f.push(new Promise(function(tr){lt=function(){--it===0&&(Le.node().parentNode&&Te(),tr())}}));var Qr=Le.select("text.nums").call(Cs.font,{family:de.fontFamily||c,size:de.fontSize||v,color:de.fontColor||Er,weight:de.fontWeight||d,style:de.fontStyle||p,variant:de.fontVariant||m,textcase:de.fontTextcase||y,lineposition:de.fontLineposition||b,shadow:de.fontShadow||T}).text(ot).attr("data-notex",Qe?null:1).call(fn.positionText,0,0).call(fn.convertToTspans,t,Qe?lt:void 0),se=Le.select("text.name");Mr?se.call(Cs.font,{family:de.fontFamily||c,size:de.fontSize||v,color:Cr,weight:de.fontWeight||d,style:de.fontStyle||p,variant:de.fontVariant||m,textcase:de.fontTextcase||y,lineposition:de.fontLineposition||b,shadow:de.fontShadow||T}).text(Ve).attr("data-notex",zr?null:1).call(fn.positionText,0,0).call(fn.convertToTspans,t,zr?lt:void 0):(se.remove(),Le.select("rect").remove()),Te();function Te(){Le.attr("transform",""),Qr.call(fn.positionText,0,0),fn.repositionMathGroup(Qr),Mr&&(se.call(fn.positionText,0,0),fn.repositionMathGroup(se)),Le.select("path").style({fill:ur,stroke:Er});var tr=de.xa._offset+(de.x0+de.x1)/2,vr=de.ya._offset+(de.y0+de.y1)/2,na=Math.abs(de.x1-de.x0),Ea=Math.abs(de.y1-de.y0),Da=0,Va=0;if(Mr){var on=w8(t,se);Da=on.width+2*oa,Va=on.height+2*oa}var Xa=w8(t,Qr),Mn=Xa.width/a._invScaleX,Ba=Xa.height/a._invScaleY;de.ty0=(P-Xa.top)/a._invScaleY,de.bx=Mn+2*oa,de.by=Math.max(Ba+2*oa,Va),de.anchor="start",de.txwidth=Mn,de.tx2width=Da,de.offset=0;var hn=(Mn+an+oa+Da)*a._invScaleX,Yn,Kn;if(i)de.pos=tr,Yn=vr+Ea/2+hn<=z,Kn=vr-Ea/2-hn>=0,(de.idealAlign==="top"||!Yn)&&Kn?(vr-=Ea/2,de.anchor="end"):Yn?(vr+=Ea/2,de.anchor="start"):de.anchor="middle",de.crossPos=vr;else{if(de.pos=vr,Yn=tr+na/2+hn<=q,Kn=tr-na/2-hn>=0,(de.idealAlign==="left"||!Yn)&&Kn)tr-=na/2,de.anchor="end";else if(Yn)tr+=na/2,de.anchor="start";else{de.anchor="middle";var si=hn/2,Wa=tr+si-q,Vn=tr-si;Wa>0&&(tr-=Wa),Vn<0&&(tr+=-Vn)}de.crossPos=tr}Qr.attr("text-anchor",de.anchor),Da&&se.attr("text-anchor",de.anchor),Le.attr("transform",_8(tr,vr)+(i?ipe(vN):""))}}),{hoverLabels:at,commonLabelBoundingBox:J,mathjaxPromise:f.length?Promise.all(f):null}}function iN(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=gn.templateString(e.name,e.trace._meta)),o=fN(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=gn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(ype,(p,m)=>(o=fN(m,e.nameLength),""))}return[l,o]}function oN(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,m=function(G){return G*t._invScaleX},y=function(G){return G*t._invScaleY};e.each(function(G){var X=G[n],Y=G[i],V=X._id.charAt(0)==="x",J=X.range;f===0&&J&&J[0]>J[1]!==V&&(l=-1);var j=0,ee=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=pN(G,r),ne=G.anchor,ye=ne==="end"?-1:1,te,De;if(ne==="middle")te=G.crossPos+(V?y(pe.y-G.by/2):m(G.bx/2+G.tx2width/2)),De=te+(V?y(G.by):m(G.bx));else if(V)te=G.crossPos+y(an+pe.y)-y(G.by/2-an),De=te+y(G.by);else{var ce=m(ye*an+pe.x),Re=ce+m(ye*G.bx);te=G.crossPos+Math.min(ce,Re),De=G.crossPos+Math.max(ce,Re)}V?d!==void 0&&p!==void 0&&Math.min(De,p)-Math.max(te,d)>1&&(Y.side==="left"?(j=Y._mainLinePosition,ee=t.width):ee=Y._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(De,v)-Math.max(te,c)>1&&(Y.side==="top"?(j=Y._mainLinePosition,ee=t.height):ee=Y._mainLinePosition)}u[f++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(V?cpe:1)/2,pmin:j,pmax:ee}]}),u.sort(function(G,X){return G[0].posref-X[0].posref||l*(X[0].traceIndex-G[0].traceIndex)});var b,T,_,x,w,k,M;function C(G){var X=G[0],Y=G[G.length-1];if(T=X.pmin-X.pos-X.dp+X.size,_=Y.pos+Y.dp+Y.size-X.pmax,T>.01){for(w=G.length-1;w>=0;w--)G[w].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(w=G.length-1;w>=0;w--)G[w].dp-=_;b=!1}if(b){var V=0;for(x=0;x<G.length;x++)k=G[x],k.pos+k.dp+k.size>X.pmax&&V++;for(x=G.length-1;x>=0&&!(V<=0);x--)k=G[x],k.pos>X.pmax-1&&(k.del=!0,V--);for(x=0;x<G.length&&!(V<=0);x++)if(k=G[x],k.pos<X.pmin+1)for(k.del=!0,V--,_=k.size*2,w=G.length-1;w>=0;w--)G[w].dp-=_;for(x=G.length-1;x>=0&&!(V<=0);x--)k=G[x],k.pos+k.dp+k.size>X.pmax&&(k.del=!0,V--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x<u.length-1;){var D=u[x],R=u[x+1],P=D[D.length-1],q=R[0];if(T=P.pos+P.dp+P.size-q.pos-q.dp+q.size,T>.01){for(w=R.length-1;w>=0;w--)R[w].dp+=T;for(D.push.apply(D,R),u.splice(x+1,1),M=0,w=D.length-1;w>=0;w--)M+=D[w].dp;for(_=M/D.length,w=D.length-1;w>=0;w--)D[w].dp-=_;b=!1}else x++}u.forEach(C)}for(x=u.length-1;x>=0;x--){var z=u[x];for(w=z.length-1;w>=0;w--){var B=z[w],U=B.datum;U.offset=B.dp,U.del=B.del}}}function pN(e,r){var t=0,a=e.offset;return r&&(a*=-hpe,t=e.offset*vpe),{x:t,y:a}}function gpe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(an+oa),a=t+r*(e.txwidth+oa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+oa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function m3(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=pu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=gpe(o),v=pN(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*an+d)+","+i(an+p)+"v"+i(o.by/2-an)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*an+d)+"V"+i(p-an)+"Z":b="M"+n(f*an+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 T=d+c.textShiftX,_=p+o.ty0-o.by/2+oa,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+oa:-o.bx-oa):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-oa:o.bx+oa)),s.call(fn.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(fn.positionText,n(c.text2ShiftX+c.alignShift*oa+d),i(p+o.ty0-o.by/2+oa)),l.select("rect").call(Cs.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 bpe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||du(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=gn.castOption(n,t,v);return o(p)?p:gn.extractOption({},a,"",d)}:function(v,d){return gn.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=gn.constrain(e.x0,0,e.xa._length),e.x1=gn.constrain(e.x1,0,e.xa._length),e.y0=gn.constrain(e.y0,0,e.ya._length),e.y1=gn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Vl.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:Vl.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=Vl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Vl.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=Vl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Vl.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 lN(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=Vl.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function sN(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=Jn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=Jn.wcagContrast(v.color,c)<1.5?Jn.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,_=f.spikecolor||y,x=Vl.getPxPosition(e,f),w,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(w=x,k=d),b.indexOf("across")!==-1){let Y=lN(e,f,i);w=Y[0],k=Y[1]}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":Cs.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var M=r.vLinePoint,C,D;u=M&&M.xa,f=M&&M.ya;var R=u.spikesnap;R==="cursor"?(C=o.pointerX,D=o.pointerY):(C=u._offset+M.x,D=f._offset+M.y);var P=Jn.wcagContrast(M.color,c)<1.5?Jn.contrast(c):M.color,q=u.spikemode,z=u.spikethickness,B=u.spikecolor||P,U=Vl.getPxPosition(e,u),G,X;if(q.indexOf("toaxis")!==-1||q.indexOf("across")!==-1){if(q.indexOf("toaxis")!==-1&&(G=U,X=D),q.indexOf("across")!==-1){let Y=lN(e,u,i);G=Y[0],X=Y[1]}a.insert("line",":first-child").attr({x1:C,x2:C,y1:G,y2:X,"stroke-width":z,stroke:B,"stroke-dasharray":Cs.dashStyle(u.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:C,x2:C,y1:G,y2:X,"stroke-width":z+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}q.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:C,cy:U-(u.side!=="top"?z:-z),r:z,fill:B}).classed("spikeline",!0)}}}function xpe(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 uN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function fN(e,r){return fn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function _pe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];c0.traceIs(l.trace,"bar-like")||c0.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 cN(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 mN=e=>e.offsetTop+e.clientTop,yN=e=>e.offsetLeft+e.clientLeft;function p3(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=gn.apply3DTransform(t._invTransform)(n,i),u=gn.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 y3=I((qRe,gN)=>{"use strict";var wpe=ir(),Ape=Kt(),Tpe=ws().isUnifiedHover;gN.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&&Tpe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Ape.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),wpe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var xN=I((RRe,bN)=>{"use strict";var Mpe=ir(),kpe=y3(),Spe=kv();bN.exports=function(r,t){function a(n,i){return Mpe.coerce(r,t,Spe,n,i)}kpe(r,t,a)}});var AN=I((FRe,wN)=>{"use strict";var _N=ir(),Cpe=dg(),Lpe=y3();wN.exports=function(r,t,a,n){function i(l,s){return _N.coerce(r,t,Cpe,l,s)}var o=_N.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Lpe(r,t,i,o)}});var k8=I((PRe,TN)=>{"use strict";var Epe=ir(),Dpe=kv();TN.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Epe.coerce(r,t,Dpe,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var SN=I((NRe,kN)=>{"use strict";var MN=ir(),qpe=kv(),Rpe=k8(),Fpe=y3();kN.exports=function(r,t){function a(u,f){return MN.coerce(r,t,qpe,u,f)}var n=Rpe(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"),Fpe(r,t,a),MN.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var EN=I((zRe,LN)=>{"use strict";var S8=ir(),CN=Pt();LN.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return S8.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!CN.traceIs(l,"pie-like")){var s=CN.traceIs(l,"2dMap")?Ppe:S8.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 Ppe(e,r,t,a){a=a||S8.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var RN=I((IRe,qN)=>{"use strict";var Npe=Pt(),DN=ws(),zpe=M8().hover;qN.exports=function(r,t,a){var n=Npe.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&zpe(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&&DN.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&DN.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 mu=I((BRe,NN)=>{"use strict";var Ipe=sa(),g3=ir(),Bpe=Yl(),dp=ws(),FN=kv(),PN=M8();NN.exports={moduleType:"component",name:"fx",constants:(g1(),hr(y1)),schema:{layout:FN},attributes:dg(),layoutAttributes:FN,supplyLayoutGlobalDefaults:xN(),supplyDefaults:AN(),supplyLayoutDefaults:SN(),calc:EN(),getDistanceFunction:dp.getDistanceFunction,getClosest:dp.getClosest,inbox:dp.inbox,quadrature:dp.quadrature,appendArrayPointValue:dp.appendArrayPointValue,castHoverOption:Hpe,castHoverinfo:Upe,hover:PN.hover,unhover:Bpe.unhover,loneHover:PN.loneHover,loneUnhover:Ope,click:RN()};function Ope(e){var r=g3.isD3Selection(e)?e:Ipe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Hpe(e,r,t){return g3.castOption(e,r,"hoverlabel."+t)}function Upe(e,r,t){function a(n){return g3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return g3.castOption(e,t,"hoverinfo",a)}});var Ef=I(yu=>{"use strict";yu.selectMode=function(e){return e==="lasso"||e==="select"};yu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};yu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};yu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};yu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};yu.selectingOrDrawing=function(e){return yu.freeMode(e)||yu.rectMode(e)}});var b3=I((HRe,zN)=>{"use strict";zN.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 x3=I((URe,IN)=>{"use strict";IN.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 _3={};Ka(_3,{CIRCLE_SIDES:()=>Gpe,SQRT2:()=>jpe,cos45:()=>Zpe,i000:()=>Ype,i090:()=>Vpe,i180:()=>Xpe,i270:()=>Wpe,sin45:()=>Jpe});var Gpe,Ype,Vpe,Xpe,Wpe,Zpe,Jpe,jpe,w3=$a(()=>{"use strict";Gpe=32,Ype=0,Vpe=8,Xpe=16,Wpe=24,Zpe=Math.cos(Math.PI/4),Jpe=Math.sin(Math.PI/4),jpe=Math.sqrt(2)});var A3=I((GRe,ON)=>{"use strict";var $pe=ir().strTranslate;function BN(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 Kpe(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 Qpe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return BN(e,t[r])}}function eme(e){return $pe(e.xaxis._offset,e.yaxis._offset)}ON.exports={p2r:BN,r2p:Kpe,axValue:Qpe,getTransform:eme}});var Df=I(gu=>{"use strict";var rme=v7(),GN=(w3(),hr(_3)),gh=GN.CIRCLE_SIDES,C8=GN.SQRT2,YN=A3(),HN=YN.p2r,UN=YN.r2p,tme=[0,3,4,5,6,1,2],ame=[0,3,4,1,2];gu.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=ame[s]:o==="C"&&(u=tme[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};gu.readPaths=function(e,r,t,a){var n=rme(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 m=[],y,b,T,_,x=n[p][0],w=x;switch(x){case"M":l(),u=+n[p][1],f=+n[p][2],m.push([w,u,f]),d();break;case"Q":case"S":y=+n[p][1],T=+n[p][2],u=+n[p][3],f=+n[p][4],m.push([w,u,f,y,T]);break;case"C":y=+n[p][1],T=+n[p][2],b=+n[p][3],_=+n[p][4],u=+n[p][5],f=+n[p][6],m.push([w,u,f,y,T,b,_]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],m.push([w,u,f]);break;case"H":w="L",u=+n[p][1],m.push([w,u,f]);break;case"V":w="L",f=+n[p][1],m.push([w,u,f]);break;case"A":w="L";var k=+n[p][1],M=+n[p][2];+n[p][4]||(k=-k,M=-M);var C=u-k,D=f;for(s=1;s<=gh/2;s++){var R=2*Math.PI*s/gh;m.push([w,C+k*Math.cos(R),D+M*Math.sin(R)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,m.push([w,u,f]));break}for(var P=(t||{}).domain,q=r._fullLayout._size,z=t&&t.xsizemode==="pixel",B=t&&t.ysizemode==="pixel",U=a===!1,G=0;G<m.length;G++){for(s=0;s+2<7;s+=2){var X=m[G][s+1],Y=m[G][s+2];X===void 0||Y===void 0||(u=X,f=Y,t&&(t.xaxis&&t.xaxis.p2r?(U&&(X-=t.xaxis._offset),z?X=UN(t.xaxis,t.xanchor)+X:X=HN(t.xaxis,X)):(U&&(X-=q.l),P?X=P.x[0]+X/q.w:X=X/q.w),t.yaxis&&t.yaxis.p2r?(U&&(Y-=t.yaxis._offset),B?Y=UN(t.yaxis,t.yanchor)-Y:Y=HN(t.yaxis,Y)):(U&&(Y-=q.t),P?Y=P.y[1]-Y/q.h:Y=1-Y/q.h)),m[G][s+1]=X,m[G][s+2]=Y)}i[o].push(m[G].slice())}}return i};function pp(e,r){return Math.abs(e-r)<=1e-6}function T3(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}gu.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(!pp(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!pp(i,o))return!1}return!pp(e[0][1],e[1][1])&&!pp(e[0][1],e[3][1])?!1:!!(T3(e[0],e[1])*T3(e[0],e[3]))};gu.pointsOnEllipse=function(e){var r=e.length;if(r!==gh+1)return!1;r=gh;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!pp(T3(e[t],e[i]),T3(e[a],e[n])))return!1}return!0};gu.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=gu.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/C8),l||(l=o=o/C8);for(var s=[],u=0;u<gh;u++){var f=u*2*Math.PI/gh;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};gu.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=C8;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};gu.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 S3=I((VRe,QN)=>{"use strict";var VN=mn(),jN=Ef(),nme=jN.drawMode,ime=jN.openMode,bh=(w3(),hr(_3)),XN=bh.i000,WN=bh.i090,ZN=bh.i180,JN=bh.i270,ome=bh.cos45,lme=bh.sin45,$N=A3(),M3=$N.p2r,qf=$N.r2p,sme=gf(),ume=sme.clearOutline,k3=Df(),fme=k3.readPaths,cme=k3.writePaths,vme=k3.ellipseOver,hme=k3.fixDatesForPaths;function dme(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(!nme(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=KN(e,r,i);ume(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 m=u;switch(p.type){case"line":case"rect":case"circle":var y=VN.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",m.x0-(p.x0shift||0)),c("x1",m.x1-(p.x1shift||0))):(c("x0",m.x0),c("x1",m.x1));var b=VN.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",m.y0-(p.y0shift||0)),c("y1",m.y1-(p.y1shift||0))):(c("y0",m.y0),c("y1",m.y1));break;case"path":c("path",m.path);break}}}return n===void 0?(v.push(u),v):f?f.getUpdateObj():{}}}}function KN(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=ime(t),p=fme(i,n,l,s),m={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:c?"paper":u._id,yref:v?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(m.fillcolor=o.fillcolor,m.fillrule=o.fillrule);var y;if(p.length===1&&(y=p[0]),y&&y.length===5&&t==="drawrect")m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2];else if(y&&t==="drawline")m.type="line",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[1][1],m.y1=y[1][2];else if(y&&t==="drawcircle"){m.type="circle";var b=y[XN][1],T=y[WN][1],_=y[ZN][1],x=y[JN][1],w=y[XN][2],k=y[WN][2],M=y[ZN][2],C=y[JN][2],D=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),R=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");D&&(b=qf(l.xaxis,b),T=qf(l.xaxis,T),_=qf(l.xaxis,_),x=qf(l.xaxis,x)),R&&(w=qf(l.yaxis,w),k=qf(l.yaxis,k),M=qf(l.yaxis,M),C=qf(l.yaxis,C));var P=(T+x)/2,q=(w+M)/2,z=(x-T+_-b)/2,B=(C-k+M-w)/2,U=vme({x0:P,y0:q,x1:P+z*ome,y1:q+B*lme});D&&(U.x0=M3(l.xaxis,U.x0),U.x1=M3(l.xaxis,U.x1)),R&&(U.y0=M3(l.yaxis,U.y0),U.y1=M3(l.yaxis,U.y1)),m.x0=U.x0,m.y0=U.y0,m.x1=U.x1,m.y1=U.y1}else m.type="path",u&&f&&hme(p,u,f),m.path=cme(p),y=null;return m}QN.exports={newShapes:dme,createShapeObj:KN}});var E8=I((XRe,ez)=>{"use strict";var pme=Ef(),mme=pme.selectMode,yme=gf(),gme=yme.clearOutline,L8=Df(),bme=L8.readPaths,xme=L8.writePaths,_me=L8.fixDatesForPaths;ez.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(!mme(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=bme(n,i,l,f),m={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;p.length===1&&(y=p[0]),y&&y.length===5&&c==="select"?(m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2]):(m.type="path",s&&u&&_me(p,s,u),m.path=xme(p),y=null),gme(i);for(var b=t.editHelpers,T=(b||{}).modifyItem,_=[],x=0;x<v.length;x++){var w=i._fullLayout.selections[x];if(!w){_[x]=w;continue}if(_[x]=w._input,f!==void 0&&x===i._fullLayout._activeSelectionIndex){var k=m;switch(w.type){case"rect":T("x0",k.x0),T("x1",k.x1),T("y0",k.y0),T("y1",k.y1);break;case"path":T("path",k.path);break}}}return f===void 0?(_.push(m),_):b?b.getUpdateObj():{}}}}});var mp={};Ka(mp,{numParams:()=>kme,paramIsX:()=>Tme,paramIsY:()=>Mme,paramRE:()=>Ame,segmentRE:()=>wme});var wme,Ame,Tme,Mme,kme,yp=$a(()=>{"use strict";wme=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Ame=/[^\s,]+/g,Tme={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:{}},Mme={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:{}},kme={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Ff=I(Si=>{"use strict";var Es=(yp(),hr(mp)),rz=ir(),Rf=tn();Si.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Si.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Si.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Si.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Si.extractPathCoords=function(e,r,t){var a=[],n=e.match(Es.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Es.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:rz.cleanNumber(s);a.push(u)}}}),a};Si.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Es.segmentRE);if(!a)return 0;let n=t==="x"?Es.paramIsX:Es.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Si.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=Si.shapePositionToRange(r);o=function(s){var u=Ls(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Si.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};Si.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=Si.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};Si.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Si.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}};Si.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}};Si.getPathString=function(e,r){let t=r.type,a=Rf.getRefType(r.xref),n=Rf.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,m,y,b;function T(R,P,q,z){var B;if(R)if(P==="domain")z?B=function(U){return R._offset+R._length*(1-U)}:B=function(U){return R._offset+R._length*U};else{let U=Si.shapePositionToRange(R);B=function(G){return R._offset+R.r2p(U(G,!0))},q==="path"&&R.type==="date"&&(B=Si.decodeDate(B))}else z?B=function(U){return i.t+i.h*(1-U)}:B=function(U){return i.l+i.w*U};return B}if(a==="array"?(v=[],o=r.xref.map(function(R){return Rf.getFromId(e,R)}),v=r.xref.map(function(R,P){return T(o[P],Rf.getRefType(R),t,!1)})):(o=Rf.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(R){return Rf.getFromId(e,R)}),d=r.yref.map(function(R,P){return T(l[P],Rf.getRefType(R),t,!0)})):(l=Rf.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return Sme(r,v,d);if(a==="array")s=Ls(o[0],r.x0shift),u=Ls(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=Ls(o,r.x0shift),u=Ls(o,r.x1shift),r.xsizemode==="pixel"){let R=v(r.xanchor);p=R+r.x0+s,m=R+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=Ls(l[0],r.y0shift),c=Ls(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Ls(l,r.y0shift),c=Ls(l,r.y1shift),r.ysizemode==="pixel"){let R=d(r.yanchor);y=R-r.y0+f,b=R-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var _=(p+m)/2,x=(y+b)/2,w=Math.abs(_-p),k=Math.abs(x-y),M="A"+w+","+k,C=_+w+","+x,D=_+","+(x-k);return"M"+C+M+" 0 1,1 "+D+M+" 0 0,1 "+C+"Z"};function Sme(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(Es.segmentRE,function(v){var d=0,p=v.charAt(0),m=Es.paramIsX[p],y=Es.paramIsY[p],b=Es.numParams[p];let T=m.drawn!==void 0,_=y.drawn!==void 0,x=s?r[f]:r,w=u?t[c]:t;var k=v.slice(1).replace(Es.paramRE,function(M){return m[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):y[d]&&(i==="pixel"?M=w(l)-Number(M):M=w(M)),d++,d>b&&(M="X"),M});return d>b&&(k=k.replace(/[\s,]*X.*/,""),rz.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}Si.getPixelShift=Ls;function Ls(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 D8=I((ZRe,nz)=>{"use strict";var Cme=ir(),Ds=tn(),tz=Ri(),az=Sa(),Lme=Df().readPaths,h0=Ff(),Eme=h0.getPathString,gp=Wg(),Dme=(Ui(),hr(Hi)).FROM_TL;nz.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=Ds.getFromId(r,a.xref),s=Ds.getFromId(r,a.yref);let j=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in gp){var f=typeof gp[u]=="function",c=!j||gp.simpleXVariables.includes(u),v=!ee||gp.simpleYVariables.includes(u);if(f&&c&&v){var d=gp[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Cme.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(y).classed("shape-label-text",!0).text(i),_,x,w,k;if(a.path){var M=Eme(r,a),C=Lme(M,r);_=1/0,w=1/0,x=-1/0,k=-1/0;for(var D=0;D<C.length;D++)for(var R=0;R<C[D].length;R++)for(var P=C[D][R],q=1;q<P.length;q+=2){var z=P[q],B=P[q+1];_=Math.min(_,z),x=Math.max(x,z),w=Math.min(w,B),k=Math.max(k,B)}}else{let j=Array.isArray(a.xref),ee=Array.isArray(a.yref),pe=Ds.getFromId(r,j?a.xref[0]:a.xref),ne=Ds.getFromId(r,j?a.xref[1]:a.xref),ye=Ds.getFromId(r,ee?a.yref[0]:a.yref),te=Ds.getFromId(r,ee?a.yref[1]:a.yref),De=Ds.getRefType(j?a.xref[0]:a.xref),ce=Ds.getRefType(j?a.xref[1]:a.xref),Re=Ds.getRefType(ee?a.yref[0]:a.yref),Fe=Ds.getRefType(ee?a.yref[1]:a.yref),ge=(cr,qe,ze,Ue)=>h0.getDataToPixel(r,ze,qe,!1,Ue)(cr),Oe=(cr,qe,ze,Ue)=>h0.getDataToPixel(r,ze,qe,!0,Ue)(cr);if(a.xsizemode==="pixel"){let cr=ge(a.xanchor,void 0,pe,De),qe=h0.getPixelShift(pe,a.x0shift),ze=h0.getPixelShift(pe,a.x1shift);_=cr+a.x0+qe,x=cr+a.x1+ze}else _=ge(a.x0,a.x0shift,pe,De),x=ge(a.x1,a.x1shift,ne,ce);if(a.ysizemode==="pixel"){let cr=Oe(a.yanchor,void 0,ye,Re),qe=h0.getPixelShift(ye,a.y0shift),ze=h0.getPixelShift(ye,a.y1shift);w=cr-a.y0+qe,k=cr-a.y1+ze}else w=Oe(a.y0,a.y0shift,ye,Re),k=Oe(a.y1,a.y1shift,te,Fe)}var U=a.label.textangle;U==="auto"&&(a.type==="line"?U=qme(_,w,x,k):U=0),T.call(function(j){return j.call(az.font,m).attr({}),tz.convertToTspans(j,r),j});var G=az.bBox(T.node()),X=Rme(_,w,x,k,a,U,G),Y=X.textx,V=X.texty,J=X.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[J],y:V,x:Y,transform:"rotate("+U+","+Y+","+V+")"}).call(tz.positionText,Y,V)}};function qme(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 Rme(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,m=n.label.yanchor,y,b,T,_;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":t<e?p="right":p="center":t>e?p="right":t<e?p="left":p="center":l==="end"?s==="auto"?t>e?p="right":t<e?p="left":p="center":t>e?p="left":t<e?p="right":p="center":p="center");var x={left:1,center:0,right:-1},w={bottom:-1,middle:0,top:1};if(s==="auto"){var k=w[m];T=-u*v*k,_=u*d*k}else{var M=x[p],C=w[m];T=u*M,_=u*C}y=y+T,b=b+_}else T=u+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-T,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+T,p==="auto"&&(p="left")):(y=(e+t)/2,p==="auto"&&(p="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,_=u,m==="bottom"?b=b-_:m==="top"&&(b=b+_);var D=Dme[m],R=n.label.font.size,P=o.height,q=(P*D-R)*v,z=-(P*D-R)*d;return{textx:y+q,texty:b+z,xanchor:p}}});var E3=I((JRe,vz)=>{"use strict";var Fme=ir(),Pme=Fme.strTranslate,iz=Yl(),sz=Ef(),Nme=sz.drawMode,uz=sz.selectMode,fz=Pt(),oz=Kt(),L3=(w3(),hr(_3)),zme=L3.i000,Ime=L3.i090,Bme=L3.i180,Ome=L3.i270,Hme=gf(),cz=Hme.clearOutlineControllers,R8=Df(),C3=R8.pointsOnRectangle,q8=R8.pointsOnEllipse,Ume=R8.writePaths,Gme=S3().newShapes,Yme=S3().createShapeObj,Vme=E8(),Xme=D8();vz.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(q8(r[0])||a.hasText)&&l({redrawing:!0})}function l(X){var Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=Gme(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=Vme(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&fz.call((X||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Nme(f),v=uz(f);(c||v)&&(i._fullLayout._outlining=!0),cz(i),t.attr("d",Ume(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Wme([],r);var T=u.append("g").attr("class","outline-controllers");R(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),x=Yme(t,a,a.dragmode);Xme(i,"label-temp",x,_)}function w(X){m=+X.srcElement.getAttribute("data-i"),y=+X.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(X,Y){if(r.length){var V=b[m][y][1],J=b[m][y][2],j=r[m],ee=j.length;if(C3(j)){var pe=X,ne=Y;if(a.isActiveSelection){var ye=lz(j,y);ye[1]===j[y][1]?ne=0:pe=0}for(var te=0;te<ee;te++)if(te!==y){var De=j[te];De[1]===j[y][1]&&(De[1]=V+pe),De[2]===j[y][2]&&(De[2]=J+ne)}if(j[y][1]=V+pe,j[y][2]=J+ne,!C3(j))for(var ce=0;ce<ee;ce++)for(var Re=0;Re<j[ce].length;Re++)j[ce][Re]=b[m][ce][Re]}else j[y][1]=V+X,j[y][2]=J+Y;o()}}function M(){l()}function C(){if(r.length&&r[m]&&r[m].length){for(var X=[],Y=0;Y<r[m].length;Y++)Y!==y&&X.push(r[m][Y]);X.length>1&&!(X.length===2&&X[1][0]==="Z")&&(y===0&&(X[0][0]="M"),r[m]=X,o(),l())}}function D(X,Y){if(X===2){m=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j");var V=r[m];!C3(V)&&!q8(V)&&C()}}function R(X){d=[];for(var Y=0;Y<r.length;Y++){var V=r[Y],J=C3(V),j=!J&&q8(V);d[Y]=[];for(var ee=V.length,pe=0;pe<ee;pe++)if(V[pe][0]!=="Z"&&!(j&&pe!==zme&&pe!==Ime&&pe!==Bme&&pe!==Ome)){var ne=J&&a.isActiveSelection,ye;ne&&(ye=lz(V,pe));var te=V[pe][1],De=V[pe][2],ce=X.append(ne?"rect":"circle").attr("data-i",Y).attr("data-j",pe).style({fill:oz.background,stroke:oz.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ne){var Re=ye[1]-te,Fe=ye[2]-De,ge=Fe?5:Math.max(Math.min(25,Math.abs(Re)-5),5),Oe=Re?5:Math.max(Math.min(25,Math.abs(Fe)-5),5);ce.classed(Fe?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",ge).attr("height",Oe).attr("x",te-ge/2).attr("y",De-Oe/2).attr("transform",Pme(Re/2,Fe/2))}else ce.classed("cursor-grab",!0).attr("r",5).attr("cx",te).attr("cy",De);d[Y][pe]={element:ce.node(),gd:i,prepFn:w,doneFn:M,clickFn:D},iz.init(d[Y][pe])}}}function P(X,Y){if(r.length)for(var V=0;V<r.length;V++)for(var J=0;J<r[V].length;J++)for(var j=0;j+2<r[V][J].length;j+=2)r[V][J][j+1]=b[V][J][j+1]+X,r[V][J][j+2]=b[V][J][j+2]+Y}function q(X,Y){P(X,Y),o()}function z(X){m=+X.srcElement.getAttribute("data-i"),m||(m=0),p[m].moveFn=q}function B(){l()}function U(X){X===2&&Zme(i)}function G(){if(p=[],!!r.length){var X=0;p[X]={element:t[0][0],gd:i,prepFn:z,doneFn:B,clickFn:U},iz.init(p[X])}}};function Wme(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 lz(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 Zme(e){if(uz(e._fullLayout.dragmode)){cz(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},fz.call("_guiRelayout",e,{selections:a})}}}});var P3=I((jRe,wz)=>{"use strict";var Jme=sa(),gz=Pt(),P8=ir(),d0=tn(),jme=Df().readPaths,$me=E3(),q3=D8(),bz=gf().clearOutlineControllers,F8=Kt(),R3=Sa(),Kme=Ra().arrayEditor,hz=Yl(),dz=mu(),pz=Cf(),p0=(yp(),hr(mp)),Do=Ff(),N8=Do.getPathString;wz.exports={draw:z8,drawOne:xz,eraseActiveShape:aye,drawLabel:q3};function z8(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&&xz(e,n)}function D3(e){return!!e._fullLayout._outlining}function F3(e){return!e._context.edits.shapePosition}function xz(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Do.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=N8(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,m=a.line.dash;!p&&a.editable===!0&&(p=5,m="solid");var y=u[u.length-1]!=="Z",b=F3(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(v=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var T=s.append("g").classed("shape-group",!0).attr({"data-index":r}),_=T.append("path").attr(f).style("opacity",c).call(F8.stroke,d).call(F8.fill,v).call(R3.dashLine,m,p);_z(T,e,a),q3(e,r,a,T);var x;if((b||e._context.edits.shapePosition)&&(x=Kme(e.layout,"shapes",a)),b){_.style({cursor:"move"});var w={element:_.node(),plotinfo:n,gd:e,editHelpers:x,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},k=jme(u,e);$me(k,_,w)}else e._context.edits.shapePosition?rye(e,_,a,r,s,x):a.editable===!0&&_.style("pointer-events",y||F8.opacity(v)*c<=.5?"stroke":"all");_.node().addEventListener("click",function(){return tye(e,_)}),Qme(e,_,n)}}function Qme(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&&dz.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&dz.click(e,o,t.id)}})}function _z(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=eye(r,a,n);P8.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),R3.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");R3.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function eye(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>d0.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 rye(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,m,y,b,T,_,x,w,k,M,C,D,R,P,q=Jme.select(r.node().parentNode),z=d0.getFromId(e,t.xref),B=d0.getRefType(t.xref),U=d0.getFromId(e,t.yref),G=d0.getRefType(t.yref),X=t.x0shift,Y=t.x1shift,V=t.y0shift,J=t.y1shift,j=function(or,Ye){var _r=Do.getDataToPixel(e,z,Ye,!1,B);return _r(or)},ee=function(or,Ye){var _r=Do.getDataToPixel(e,U,Ye,!0,G);return _r(or)},pe=Do.getPixelToData(e,z,!1,B),ne=Do.getPixelToData(e,U,!0,G),ye=ce(),te={element:ye.node(),gd:e,prepFn:ge,doneFn:Oe,clickFn:cr},De;hz.init(te),ye.node().onmousemove=Fe;function ce(){return f?Re():r}function Re(){var or=10,Ye=Math.max(t.line.width,or),_r=n.append("g").attr("data-index",a).attr("drag-helper",!0);_r.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ye,"stroke-opacity":"0"});var Pr={"fill-opacity":"0"},Yr=Math.max(Ye/2,or);return _r.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,X),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,V),r:Yr}).style(Pr).classed("cursor-grab",!0),_r.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,Y),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,J),r:Yr}).style(Pr).classed("cursor-grab",!0),_r}function Fe(or){if(D3(e)){De=null;return}if(f)or.target.tagName==="path"?De="move":De=or.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ye=te.element.getBoundingClientRect(),_r=Ye.right-Ye.left,Pr=Ye.bottom-Ye.top,Yr=or.clientX-Ye.left,$e=or.clientY-Ye.top,mr=!c&&_r>o&&Pr>l&&!or.shiftKey?hz.getCursor(Yr/_r,1-$e/Pr):"move";pz(r,mr),De=mr.split("-")[0]}}function ge(or){D3(e)||(s&&(b=j(t.xanchor)),u&&(T=ee(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:ee(t.y0),m=s?t.x1:j(t.x1),y=u?t.y1:ee(t.y1)),d<m?(w=d,D="x0",k=m,R="x1"):(w=m,D="x1",k=d,R="x0"),!u&&p<y||u&&p>y?(_=p,M="y0",x=y,C="y1"):(_=y,M="y1",x=p,C="y0"),Fe(or),Ue(n,t),Ge(r,t,e),te.moveFn=De==="move"?qe:ze,te.altKey=or.altKey)}function Oe(){D3(e)||(pz(r),We(n),_z(r,e,t),gz.call("_guiRelayout",e,i.getUpdateObj()))}function cr(){D3(e)||We(n)}function qe(or,Ye){if(t.type==="path"){var _r=function($e){return $e},Pr=_r,Yr=_r;s?v("xanchor",t.xanchor=pe(b+or)):(Pr=function(mr){return pe(j(mr)+or)},z&&z.type==="date"&&(Pr=Do.encodeDate(Pr))),u?v("yanchor",t.yanchor=ne(T+Ye)):(Yr=function(mr){return ne(ee(mr)+Ye)},U&&U.type==="date"&&(Yr=Do.encodeDate(Yr))),v("path",t.path=mz(P,Pr,Yr))}else s?v("xanchor",t.xanchor=pe(b+or)):(v("x0",t.x0=pe(d+or)),v("x1",t.x1=pe(m+or))),u?v("yanchor",t.yanchor=ne(T+Ye)):(v("y0",t.y0=ne(p+Ye)),v("y1",t.y1=ne(y+Ye)));r.attr("d",N8(e,t)),Ue(n,t),q3(e,a,t,q)}function ze(or,Ye){if(c){var _r=function(Cr){return Cr},Pr=_r,Yr=_r;s?v("xanchor",t.xanchor=pe(b+or)):(Pr=function(Er){return pe(j(Er)+or)},z&&z.type==="date"&&(Pr=Do.encodeDate(Pr))),u?v("yanchor",t.yanchor=ne(T+Ye)):(Yr=function(Er){return ne(ee(Er)+Ye)},U&&U.type==="date"&&(Yr=Do.encodeDate(Yr))),v("path",t.path=mz(P,Pr,Yr))}else if(f){if(De==="resize-over-start-point"){var $e=d+or,mr=u?p-Ye:p+Ye;v("x0",t.x0=s?$e:pe($e)),v("y0",t.y0=u?mr:ne(mr))}else if(De==="resize-over-end-point"){var Gr=m+or,fe=u?y-Ye:y+Ye;v("x1",t.x1=s?Gr:pe(Gr)),v("y1",t.y1=u?fe:ne(fe))}}else{var Ce=function(Cr){return De.indexOf(Cr)!==-1},Tr=Ce("n"),tt=Ce("s"),at=Ce("w"),de=Ce("e"),Le=Tr?_+Ye:_,lr=tt?x+Ye:x,Ar=at?w+or:w,ur=de?k+or:k;u&&(Tr&&(Le=_-Ye),tt&&(lr=x-Ye)),(!u&&lr-Le>l||u&&Le-lr>l)&&(v(M,t[M]=u?Le:ne(Le)),v(C,t[C]=u?lr:ne(lr))),ur-Ar>o&&(v(D,t[D]=s?Ar:pe(Ar)),v(R,t[R]=s?ur:pe(ur)))}r.attr("d",N8(e,t)),Ue(n,t),q3(e,a,t,q)}function Ue(or,Ye){(s||u)&&_r();function _r(){var Pr=Ye.type!=="path",Yr=or.selectAll(".visual-cue").data([0]),$e=1;Yr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$e}).classed("visual-cue",!0);var mr=j(s?Ye.xanchor:P8.midRange(Pr?[Ye.x0,Ye.x1]:Do.extractPathCoords(Ye.path,p0.paramIsX))),Gr=ee(u?Ye.yanchor:P8.midRange(Pr?[Ye.y0,Ye.y1]:Do.extractPathCoords(Ye.path,p0.paramIsY)));if(mr=Do.roundPositionForSharpStrokeRendering(mr,$e),Gr=Do.roundPositionForSharpStrokeRendering(Gr,$e),s&&u){var fe="M"+(mr-1-$e)+","+(Gr-1-$e)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Yr.attr("d",fe)}else if(s){var Ce="M"+(mr-1-$e)+","+(Gr-9-$e)+"v18 h2 v-18 Z";Yr.attr("d",Ce)}else{var Tr="M"+(mr-9-$e)+","+(Gr-1-$e)+"h18 v2 h-18 Z";Yr.attr("d",Tr)}}}function We(or){or.selectAll(".visual-cue").remove()}function Ge(or,Ye,_r){var Pr=Ye.xref,Yr=Ye.yref,$e=d0.getFromId(_r,Pr),mr=d0.getFromId(_r,Yr),Gr="";Pr!=="paper"&&!$e.autorange&&(Gr+=Pr),Yr!=="paper"&&!mr.autorange&&(Gr+=Yr),R3.setClipUrl(or,Gr?"clip"+_r._fullLayout._uid+Gr:null,_r)}}function mz(e,r,t){return e.replace(p0.segmentRE,function(a){var n=0,i=a.charAt(0),o=p0.paramIsX[i],l=p0.paramIsY[i],s=p0.numParams[i],u=a.slice(1).replace(p0.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function tye(e,r){if(F3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){yz(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=yz,z8(e)}}}function yz(e){if(F3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(bz(e),delete e._fullLayout._activeShapeIndex,z8(e))}}function aye(e){if(F3(e)){bz(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,gz.call("_guiRelayout",e,{shapes:a})}}}});var Tz=I(($Re,Az)=>{"use strict";var xh=ir()._,nye=function(e){return{DIALOG_TITLE:xh(e,"Share chart"),DIALOG_MESSAGE_CLOUD:xh(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:xh(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:xh(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:xh(e,"Cancel"),DIALOG_CONFIRM:xh(e,"Share")}};Az.exports=nye});var Sz=I((KRe,kz)=>{"use strict";var Mz=sa(),{dfltConfig:iye}=nf(),oye=Tz(),lye=(e,r,t,a,n)=>{let i=oye(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===iye.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)},sye=(e,r,t)=>{let a=Mz.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",()=>{Mz.event.target===n.node()&&i()}),lye(e,n,r,()=>{i(),t()},i)};kz.exports=sye});var O8=I((QRe,Fz)=>{"use strict";var Jo=Pt(),uye=pi(),Lz=mn(),_a=x3(),fye=P3().eraseActiveShape,cye=Sz(),_h=ir(),la=_h._,ba={};Fz.exports=ba;ba.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?la(e,"Download plot as a PNG"):la(e,"Download plot")},icon:_a.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};_h.notifier(la(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])}),Jo.call("downloadImage",e,t).then(function(a){_h.notifier(la(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){_h.notifier(la(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ba.downloadJson={name:"downloadJson",title:function(e){return la(e,"Download plot as JSON")},icon:_a.curlybraces,click:function(e){Jo.call("downloadImage",e,{format:"full-json"}).then(function(r){_h.notifier(la(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){_h.notifier(la(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ba.sendChartToCloud={name:"sendChartToCloud",title:function(e){return la(e,"Share chart...")},icon:_a.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}cye(e,r,function(){uye.sendDataToCloud(e,r)})}};ba.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"dragmode",val:"zoom",icon:_a.zoombox,click:to};ba.pan2d={name:"pan2d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"dragmode",val:"pan",icon:_a.pan,click:to};ba.select2d={name:"select2d",_cat:"select",title:function(e){return la(e,"Box Select")},attr:"dragmode",val:"select",icon:_a.selectbox,click:to};ba.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return la(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:_a.lasso,click:to};ba.drawclosedpath={name:"drawclosedpath",title:function(e){return la(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:_a.drawclosedpath,click:to};ba.drawopenpath={name:"drawopenpath",title:function(e){return la(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:_a.drawopenpath,click:to};ba.drawline={name:"drawline",title:function(e){return la(e,"Draw line")},attr:"dragmode",val:"drawline",icon:_a.drawline,click:to};ba.drawrect={name:"drawrect",title:function(e){return la(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:_a.drawrect,click:to};ba.drawcircle={name:"drawcircle",title:function(e){return la(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:_a.drawcircle,click:to};ba.eraseshape={name:"eraseshape",title:function(e){return la(e,"Erase active shape")},icon:_a.eraseshape,click:fye};ba.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:_a.zoom_plus,click:to};ba.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:_a.zoom_minus,click:to};ba.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return la(e,"Autoscale")},attr:"zoom",val:"auto",icon:_a.autoscale,click:to};ba.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return la(e,"Reset axes")},attr:"zoom",val:"reset",icon:_a.home,click:to};ba.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return la(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:to};ba.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return la(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:_a.tooltip_compare,gravity:"ne",click:to};function to(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Lz.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,m;for(f=0;f<l.length;f++)if(u=l[f],m=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,m&&!u.fixedrange)if(p=u._name,n==="auto")o[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[p+".autorange"]=!0:u._rangeInitial0===void 0?(o[p+".autorange"]=u._autorangeInitial,o[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[p+".range"]=[u._rangeInitial0,null],o[p+".autorange"]=u._autorangeInitial):o[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[v*y[0]+d*y[1],v*y[1]+d*y[0]];o[p+".range[0]"]=u.l2r(b[0]),o[p+".range[1]"]=u.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=s,Jo.call("_guiRelayout",e,o)}ba.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:_a.zoombox,click:z3};ba.pan3d={name:"pan3d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:_a.pan,click:z3};ba.orbitRotation={name:"orbitRotation",title:function(e){return la(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:_a["3d_rotate"],click:z3};ba.tableRotation={name:"tableRotation",title:function(e){return la(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:_a["z-axis"],click:z3};function z3(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,Jo.call("_guiRelayout",e,o)}ba.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return la(e,"Reset camera to default")},attr:"resetDefault",icon:_a.home,click:I8};ba.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return la(e,"Reset camera to last save")},attr:"resetLastSave",icon:_a.movie,click:I8};function I8(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,m;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,m=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,m=!0),m&&(s[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)}Jo.call("_guiRelayout",e,s)}ba.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return la(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:_a.tooltip_basic,gravity:"ne",click:vye};function Ez(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],m=f+"."+p+".showspikes";s[m]=!1,l[m]=c[p].showspikes}}t._previousVal=l}return s}function vye(e,r){var t=Ez(e,r);Jo.call("_guiRelayout",e,t)}ba.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:_a.zoom_plus,click:B8};ba.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:_a.zoom_minus,click:B8};ba.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return la(e,"Reset")},attr:"reset",val:null,icon:_a.autoscale,click:B8};ba.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return la(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:_a.tooltip_basic,gravity:"ne",click:qz};var Cz=2;function B8(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),[m,y]=c.invert(f.midPt),{minscale:b}=u.projection,T=(l=u.projection.maxscale)!=null?l:1/0,_=Math.min(b,T),x=Math.max(b,T),w=n==="in"?Cz*v:1/Cz*v;w>x?w=x:w<_&&(w=_),w!==v&&Jo.call("_guiRelayout",e,{[s+".projection.scale"]:w,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&N3(e,"geo")}ba.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return la(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:qz};function Dz(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function qz(e){var r=Dz(e);Jo.call("_guiRelayout",e,"hovermode",r)}ba.resetViewSankey={name:"resetSankeyGroup",title:function(e){return la(e,"Reset view")},icon:_a.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())}Jo.call("restyle",e,r)}};ba.toggleHover={name:"toggleHover",title:function(e){return la(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:_a.tooltip_basic,gravity:"ne",click:function(e,r){var t=Ez(e,r);t.hovermode=Dz(e),Jo.call("_guiRelayout",e,t)}};ba.resetViews={name:"resetViews",title:function(e){return la(e,"Reset views")},icon:_a.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),to(e,r),t.setAttribute("data-attr","resetLastSave"),I8(e,r),N3(e,"geo"),N3(e,"map")}};ba.toggleSpikelines={name:"toggleSpikelines",title:function(e){return la(e,"Toggle Spike Lines")},icon:_a.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Jo.call("_guiRelayout",e,hye(e))}};function hye(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=Lz.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}ba.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return la(e,"Reset view")},attr:"reset",icon:_a.home,click:function(e){N3(e,"map")}};ba.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:_a.zoom_plus,click:Rz};ba.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:_a.zoom_minus,click:Rz};function Rz(e,r){dye(e,r,"map")}function dye(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}Jo.call("_guiRelayout",e,s)}function N3(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]}Jo.call("_guiRelayout",e,n)}});var H8=I((eFe,Iz)=>{"use strict";var Pz=O8(),pye=Object.keys(Pz),Nz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],zz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Nz,["downloadJson"]),wh=[],mye=function(e){if(zz.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();wh.indexOf(r)===-1&&wh.push(r),wh.indexOf(t)===-1&&wh.push(t)}};pye.forEach(function(e){mye(Pz[e])});wh.sort();Iz.exports={DRAW_MODES:Nz,backButtons:zz,foreButtons:wh}});var G8={};Ka(G8,{default:()=>gye});var U8,yye,gye,Y8=$a(()=>{"use strict";U8=c1(H8()),yye={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 *${U8.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 *${U8.default.foreButtons.join("*, *")}*.`].join(" ")}},gye=yye});var Oz=I((rFe,Bz)=>{"use strict";var bye=ir(),bp=Kt(),xye=Ra(),_ye=(Y8(),hr(G8)).default;Bz.exports=function(r,t){var a=r.modebar||{},n=xye.newContainer(t,"modebar");function i(l,s){return bye.coerce(a,n,_ye,l,s)}i("orientation"),i("bgcolor",bp.addOpacity(t.paper_bgcolor,.5));var o=bp.contrast(bp.rgb(t.modebar.bgcolor));i("color",bp.addOpacity(o,.3)),i("activecolor",bp.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Yz=I((tFe,Gz)=>{"use strict";var V8=sa(),wye=da(),I3=ir(),Hz=x3(),Aye=v1().version,Tye=new DOMParser;function Uz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var qs=Uz.prototype;qs.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(),I3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};qs.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)})};qs.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};qs.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&&V8.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Hz.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};qs.createIcon=function(e){var r=wye(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=Tye.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};qs.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=V8.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:I3.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};qs.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 Mye(e){return e+" (v"+Aye+")"}qs.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Mye(I3._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(Hz.newplotlylogo)),e.appendChild(r),e};qs.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};qs.destroy=function(){I3.removeElement(this.container.querySelector(".modebar"))};function kye(e,r){var t=e._fullLayout,a=new Uz({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&V8.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}Gz.exports=kye});var Wz=I((aFe,Xz)=>{"use strict";var Sye=mn(),Vz=ki(),X8=Pt(),Cye=ws().isUnifiedHover,Lye=Yz(),B3=O8(),Eye=H8().DRAW_MODES,Dye=ir().extendDeep;Xz.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=zye(i):!a.displayModeBar&&a.watermark?o=[]:o=qye(r),n?n.update(r,o):t._modeBar=Lye(r,o)};function qye(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,V){if(typeof V=="string"){if(V.toLowerCase()===Y.toLowerCase())return!0}else{var J=V.name,j=V._cat||V.name;if(J===Y||j===Y.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(Y){for(var V=0;V<a.modeBarButtonsToRemove.length;V++)if(n(Y,a.modeBarButtonsToRemove[V]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(Y){for(var V=0;V<a.modeBarButtonsToAdd.length;V++)if(n(Y,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"),m=r._has("map"),y=r._has("polar"),b=r._has("smith"),T=r._has("sankey"),_=Rye(r),x=Cye(r.hovermode),w=[];function k(Y){if(Y.length){for(var V=[],J=0;J<Y.length;J++){for(var j=Y[J],ee=B3[j],pe=ee.name.toLowerCase(),ne=(ee._cat||ee.name).toLowerCase(),ye=!1,te=0;te<s.length;te++){var De=s[te].toLowerCase();if(De===pe||De===ne){ye=!0;break}}ye||V.push(B3[j])}w.push(V)}}var M=!1,C=[],D=[],R=[],P=[];(u||v||d||p)+c+f+m+y+b>1?(D=["toggleHover"],R=["resetViews"]):c?(C=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],R=["resetGeo"]):f?(D=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(C=["zoomInMap","zoomOutMap"],D=["toggleHover"],R=["resetViewMap"]):v?D=["hoverClosestPie"]:T?(D=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Pye(t)||x)&&(D=[]),u&&!_&&(C=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||p?P=["zoom2d","pan2d"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),Fye(t)&&P.push("select2d","lasso2d");var q=[],z=function(Y){q.indexOf(Y)===-1&&D.indexOf(Y)!==-1&&q.push(Y)};if(Array.isArray(l)){for(var B=[],U=0;U<l.length;U++){var G=l[U];typeof G=="string"?(G=G.toLowerCase(),Eye.indexOf(G)!==-1?(r._has("map")||r._has("cartesian"))&&P.push(G):G==="togglespikelines"?z("toggleSpikelines"):G==="togglehover"?z("toggleHover"):G==="hovercompare"?z("hoverCompareCartesian"):G==="hoverclosest"?(z("hoverClosestCartesian"),z("hoverClosestGeo"),z("hoverClosest3d"),z("hoverClosestPie")):G==="v1hovermode"?(z("hoverClosestCartesian"),z("hoverCompareCartesian"),z("hoverClosestGeo"),z("hoverClosest3d"),z("hoverClosestPie")):G==="downloadjson"&&(M=!0)):B.push(G)}l=B}var X=["toImage"];return M&&X.push("downloadJson"),a.showSendToCloud&&X.push("sendChartToCloud"),k(X),k(P),k(C.concat(R)),k(q),Nye(w,l)}function Rye(e){for(var r=Sye.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 Fye(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(X8.traceIs(a,"scatter-like")&&a.type!=="quiver"?(Vz.hasMarkers(a)||Vz.hasText(a))&&(r=!0):X8.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function Pye(e){for(var r=0;r<e.length;r++)if(!X8.traceIs(e[r],"noHover"))return!1;return!0}function Nye(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 zye(e){for(var r=Dye([],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(B3[i]!==void 0)r[t][n]=B3[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var W8=I((nFe,Zz)=>{"use strict";Zz.exports={moduleType:"component",name:"modebar",layoutAttributes:(Y8(),hr(G8)).default,supplyLayoutDefaults:Oz(),manage:Wz()}});var Z8=I((iFe,Jz)=>{"use strict";var Iye=(Ui(),hr(Hi)).FROM_BL;Jz.exports=function(r,t,a){a===void 0&&(a=Iye[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 _p=I(xp=>{"use strict";var m0=ir(),J8=uh(),Xl=mn().id2name,Bye=vl(),jz=Z8(),Oye=H2(),Hye=(Zn(),hr(ri)).ALMOST_EQUAL,Uye=(Ui(),hr(Hi)).FROM_BL;xp.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=Xl(a[l]),c=e[f],v=r[f],Gye(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function m(C,D){for(l=0;l<C.length;l++){s=C[l];for(u in s)r[Xl(u)][D]=s}}for(m(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(v=r[Xl(u)],v.fixedrange){for(var y in s){var b=Xl(y);(e[b]||{}).fixedrange===!1&&m0.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[Xl(u)],v._matchGroup&&Object.keys(v._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}m(i,"_constraintGroup");var T=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],_=!1,x=!1;function w(){p=v[d],d==="range"&&(_=!!(p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null)),d==="rangebreaks"&&(x=v._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l],_=!1;for(var k=0;k<T.length;k++){d=T[k],p=null;var M;for(u in s)if(f=Xl(u),c=e[f],v=r[f],d in v){if(!v.matches&&(M=v,d in c)){w();break}p===null&&d in c&&w()}if(d==="autorange"&&p===null&&_&&(p=!1),p===null&&d in M&&(p=M[d]),p!==null)for(u in s)v=r[Xl(u)],v[d]=d==="range"?p.slice():p,d==="rangebreaks"&&(v._hasDayOfWeekBreaks=x,Oye(v,r))}}};function Gye(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(q,z){return m0.coerce(e,r,Bye,q,z)}d("constrain",i?"domain":"range"),m0.coerce(e,r,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var p=r.type,m,y,b=[];for(m=0;m<a.length;m++)if(y=a[m],y!==c){var T=n[Xl(y)];T.type===p&&b.push(y)}var _=Qz(o,c);if(_){var x=[];for(m=0;m<b.length;m++)y=b[m],_[y]||x.push(y);b=x}var w=b.length,k,M;w&&(e.matches||f.matches)&&(k=m0.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var C=i&&!v?r.anchor:void 0;if(w&&!k&&(e.scaleanchor||C)&&(M=m0.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",C)),k){r._matchGroup=j8(l,c,k,1);var D=n[Xl(k)],R=$z(n,r)/$z(n,D);v!==(k.charAt(0)==="x")&&(R=(v?"x":"y")+R),j8(o,c,k,R)}else e.matches&&a.indexOf(e.matches)!==-1&&m0.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var P=d("scaleratio");P||(P=r.scaleratio=1),j8(o,c,M,P)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&m0.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 $z(e,r){var t=r.domain;return t||(t=e[Xl(r.overlaying)].domain),t[1]-t[0]}function Qz(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function j8(e,r,t,a){var n,i,o,l,s,u=Qz(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]=$8(c,$8(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var v=f[i];u[v]=$8(a,u[v])}u[t]=1}function $8(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 Yye(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}xp.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=Yye(a[n],t);var v=Object.keys(o),d=1/0,p=0,m=1/0,y={},b={},T=!1;for(i=0;i<v.length;i++)l=v[i],b[l]=s=t[Xl(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),y[l]=u=Math.abs(s._m)/o[l],d=Math.min(d,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(m=Math.min(m,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(T=!0);if(!(d>Hye*p&&!T)){for(i=0;i<v.length;i++)if(l=v[i],u=y[l],s=b[l],f=s.constrain,u!==m||f==="domain")if(c=u/m,f==="range")jz(s,c);else{var _=s._inputDomain,x=(s.domain[1]-s.domain[0])/(_[1]-_[0]),w=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=x,c*w<1){s.domain=s._input.domain=_.slice(),jz(s,c);continue}if(w<1&&(s.range=s._input.range=s._inputRange.slice(),c*=w),s.autorange){var k=s.r2l(s.range[0]),M=s.r2l(s.range[1]),C=(k+M)/2,D=C,R=C,P=Math.abs(M-C),q=C-P*c*1.0001,z=C+P*c*1.0001,B=J8.makePadFn(t,s,0),U=J8.makePadFn(t,s,1);Kz(s,c,t);var G=Math.abs(s._m),X=J8.concatExtremes(r,s),Y=X.min,V=X.max,J,j;for(j=0;j<Y.length;j++)J=Y[j].val-B(Y[j])/G,J>q&&J<D&&(D=J);for(j=0;j<V.length;j++)J=V[j].val+U(V[j])/G,J<z&&J>R&&(R=J);var ee=(R-D)/(2*P);c/=ee,D=s.l2r(D),R=s.l2r(R),s.range=s._input.range=k<M?[D,R]:[R,D]}Kz(s,c,t)}}}};xp.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};xp.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 Vye(e,r){let t=e.domainpad;if(!t)return 0;let a=r._size;return e._id.charAt(0)==="y"?((t.top||0)+(t.bottom||0))/a.h:((t.left||0)+(t.right||0))/a.w}function Kz(e,r,t){var a=e._inputDomain,n=Uye[e.constraintoward],i=a[0]+(a[1]-a[0])*n;let o=r,l=Vye(e,t);if(l>0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var U3=I(yi=>{"use strict";var H3=sa(),ao=Pt(),jo=pi(),pl=ir(),K8=Ri(),Q8=b3(),wp=Kt(),Ah=Sa(),eI=rp(),iI=W8(),Ap=tn(),bu=(Ui(),hr(Hi)),oI=_p(),Xye=oI.enforce,Wye=oI.clean,rI=uh().doAutoRange,lI="start",Zye="middle",sI="end",Jye=(ni(),hr(ai)).zindexSeparator;yi.layoutStyles=function(e){return pl.syncOrAsync([jo.doAutoMargin,$ye],e)};function jye(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 $ye(e){var r=e._fullLayout,t=r._size,a=t.p,n=Ap.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(Ah.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),yi.drawMainTitle(e),iI.manage(e),!r._has("cartesian"))return jo.previousPromises(e);function c(ge,Oe,cr){var qe=ge._lw/2;if(ge._id.charAt(0)==="x"){if(Oe){if(cr==="top")return Oe._offset-a-qe}else return t.t+t.h*(1-(ge.position||0))+qe%1;return Oe._offset+Oe._length+a+qe}if(Oe){if(cr==="right")return Oe._offset+Oe._length+a+qe}else return t.l+t.w*(ge.position||0)+qe%1;return Oe._offset-a-qe}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=Ah.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,v,s.side),s._mainMirrorPosition=s.mirror&&v?c(s,v,bu.OPPOSITE_SIDE[s.side]):null}var d=[],p=[],m=[],y=wp.opacity(r.paper_bgcolor)===1&&wp.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,T=l.yaxis.domain,_=l.plotgroup;if(jye(b,T,m)&&o.indexOf(Jye)===-1){var x=_.node(),w=l.bg=pl.ensureSingle(_,"rect","bg");x.insertBefore(w.node(),x.childNodes[0]),p.push(o)}else _.select("rect.bg").remove(),m.push([b,T]),y||(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(ge){r._plots[ge].bg=H3.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(Ah.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(wp.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 M=l.clipId="clip"+r._uid+o+"plot",C=pl.ensureSingleById(r._clips,"clipPath",M,function(ge){ge.classed("plotclip",!0).append("rect")});l.clipRect=C.select("rect").attr({width:u._length,height:f._length}),Ah.setTranslate(l.plot,u._offset,f._offset);var D,R;l._hasClipOnAxisFalse?(D=null,R=M):(D=M,R=null),Ah.setClipUrl(l.plot,D,e),l.layerClipId=R}var P,q,z,B,U,G,X,Y,V,J,j,ee,pe;function ne(ge){return"M"+P+","+ge+"H"+q}function ye(ge){return"M"+u._offset+","+ge+"h"+u._length}function te(ge){return"M"+ge+","+Y+"V"+X}function De(ge){return f._shift!==void 0&&(ge+=f._shift),"M"+ge+","+f._offset+"v"+f._length}function ce(ge,Oe,cr){if(!ge.showline||o!==ge._mainSubplot)return"";if(!ge._anchorAxis)return cr(ge._mainLinePosition);var qe=Oe(ge._mainLinePosition);return ge.mirror&&(qe+=Oe(ge._mainMirrorPosition)),qe}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var Re="M0,0";tI(u,o)&&(U=O3(u,"left",f,n),P=u._offset-(U?a+U:0),G=O3(u,"right",f,n),q=u._offset+u._length+(G?a+G:0),z=c(u,f,"bottom"),B=c(u,f,"top"),pe=!u._anchorAxis||o!==u._mainSubplot,pe&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[z,B]),Re=ce(u,ne,ye),pe&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(Re+=ne(z)+ne(B)),l.xlines.style("stroke-width",u._lw+"px").call(wp.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",Re);var Fe="M0,0";tI(f,o)&&(j=O3(f,"bottom",u,n),X=f._offset+f._length+(j?a:0),ee=O3(f,"top",u,n),Y=f._offset-(ee?a:0),V=c(f,u,"left"),J=c(f,u,"right"),pe=!f._anchorAxis||o!==f._mainSubplot,pe&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[V,J]),Fe=ce(f,te,De),pe&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(Fe+=te(V)+te(J)),l.ylines.style("stroke-width",f._lw+"px").call(wp.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",Fe)}return Ap.makeClipPaths(e),jo.previousPromises(e)}function tI(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function aI(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=bu.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function O3(e,r,t,a){if(aI(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&aI(e,r,i))return i._lw}return 0}yi.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=nge(t),n=ige(t),i=age(t,n),o=tge(t,a);if(eI.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=H3.select(e).selectAll(".gtitle"),s=Ah.bBox(H3.select(e).selectAll(".g-gtitle").node()).height,u=ege(e,r,s);if(u>0){rge(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:nI(r.yanchor)}).call(K8.positionText,o,i);var f=(r.text.match(K8.BR_TAG_ALL)||[]).length;if(f){var c=bu.LINE_SPACING*f+bu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=H3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+eI.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:nI(r.yanchor)}).call(K8.positionText,o,m)}}}};function Kye(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=pl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return pl.isTopAnchor(r)&&t==="t"||pl.isBottomAnchor(r)&&t==="b"?!1:l<n}function Qye(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 ege(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=Qye(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function rge(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"&&Kye(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),jo.allowAutoMargin(e,n),jo.autoMargin(e,n,l)}function tge(e,r){var t=e.title,a=e._size,n=0;return r===lI?n=t.pad.l:r===sI&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function age(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===bu.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 nI(e){return e==="top"?bu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":bu.MID_SHIFT+"em"}function nge(e){var r=e.title,t=Zye;return pl.isRightAnchor(r)?t=sI:pl.isLeftAnchor(r)&&(t=lI),t}function ige(e){var r=e.title,t="0em";return pl.isTopAnchor(r)?t=bu.CAP_SHIFT+"em":pl.isMiddleAnchor(r)&&(t=bu.MID_SHIFT+"em"),t}yi.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)}Q8(e),yi.redrawReglTraces(e)}return jo.style(e),ao.getComponentMethod("legend","draw")(e),jo.previousPromises(e)};yi.doColorBars=function(e){return ao.getComponentMethod("colorbar","draw")(e),jo.previousPromises(e)};yi.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,ao.call("_doPlot",e,"",r)};yi.doLegend=function(e){return ao.getComponentMethod("legend","draw")(e),jo.previousPromises(e)};yi.doTicksRelayout=function(e){var r=Ap.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(ao.subplotsRegistry.splom.updateGrid(e),Q8(e),yi.redrawReglTraces(e)),yi.drawMainTitle(e),Promise.resolve(r).then(function(){return jo.previousPromises(e)})};yi.doModeBar=function(e){var r=e._fullLayout;iI.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return jo.previousPromises(e)};yi.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)}};yi.drawData=function(e){var r=e._fullLayout;Q8(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return yi.redrawReglTraces(e),jo.style(e),ao.getComponentMethod("selections","draw")(e),ao.getComponentMethod("shapes","draw")(e),ao.getComponentMethod("annotations","draw")(e),ao.getComponentMethod("images","draw")(e),r._replotting=!1,jo.previousPromises(e)};yi.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"?pl.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&pl.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()}};yi.doAutoRangeAndConstraints=function(e){for(var r=Ap.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,Wye(e,t),rI(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=Ap.getFromId(e,o);rI(e,l,t.range),a[o]=1}}Xye(e)};yi.finalDraw=function(e){ao.getComponentMethod("rangeslider","draw")(e),ao.getComponentMethod("rangeselector","draw")(e)};yi.drawMarginPushers=function(e){ao.getComponentMethod("legend","draw")(e),ao.getComponentMethod("rangeselector","draw")(e),ao.getComponentMethod("sliders","draw")(e),ao.getComponentMethod("updatemenus","draw")(e),ao.getComponentMethod("colorbar","draw")(e)}});var tw=I((sFe,hI)=>{"use strict";var oge=Df().readPaths,lge=E3(),uI=gf().clearOutlineControllers,ew=Kt(),fI=Sa(),sge=Ra().arrayEditor,cI=Ff(),uge=cI.getPathString;hI.exports={draw:G3,drawOne:vI,activateLastSelection:vge};function G3(e){var r=e._fullLayout;uI(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++)vI(e,n)}function Y3(e){return e._context.editSelection}function vI(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=cI.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=uge(e,a),s={"data-index":r,"fill-rule":"evenodd",d:l},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||ew.contrast(e._fullLayout.plot_bgcolor),v=a.line.width,d=a.line.dash;v||(v=5,d="solid");var p=Y3(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],y=1;y>=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(ew.stroke,c).call(ew.fill,f).call(fI.dashLine,y?"solid":d,y?4+v:v);if(fge(b,e,a),p){var T=sge(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=oge(l,e);lge(x,b,_)}else b.style("pointer-events",y?"all":"none");m[y]=b}var w=m[0],k=m[1];k.node().addEventListener("click",function(){return cge(e,w)})}}function fge(e,r,t){var a=t.xref+t.yref;fI.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function cge(e,r){if(Y3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){rw(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=rw,G3(e)}}}function vge(e){if(Y3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=rw,G3(e)}}function rw(e){if(Y3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(uI(e),delete e._fullLayout._activeSelectionIndex,G3(e))}}});var pI=I((uFe,dI)=>{function hge(){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}dI.exports=hge});var yI=I((fFe,mI)=>{function dge(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,m={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?m.alongA=-2:d<e?m.alongA=-1:d-1<=-e?m.alongA=0:d-1<e?m.alongA=1:m.alongA=2,p<=-e?m.alongB=-2:p<e?m.alongB=-1:p-1<=-e?m.alongB=0:p-1<e?m.alongB=1:m.alongB=2,m},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],s=!1,u=0;u<a.length;u++){var f=a[u][0],c=a[u][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}mI.exports=dge});var bI=I((cFe,gI)=>{var pge={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}};gI.exports=pge});var _I=I((vFe,xI)=>{var Tp=bI();function mge(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Tp.create();function o(p,m,y,b,T,_){var x=r.pointsCompare(m,T);return x!==0?x:r.pointsSame(y,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?T:_,b?_:T)?1:-1}function l(p,m){i.insertBefore(p,function(y){var b=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=Tp.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var b=Tp.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=Tp.create();function b(U,G){var X=U.seg.start,Y=U.seg.end,V=G.seg.start,J=G.seg.end;return r.pointsCollinear(X,V,J)?r.pointsCollinear(Y,V,J)||r.pointAboveOrOnLine(Y,V,J)?1:-1:r.pointAboveOrOnLine(X,V,J)?1:-1}function T(U){return y.findTransition(function(G){var X=b(U,G.ev);return X>0})}function _(U,G){var X=U.seg,Y=G.seg,V=X.start,J=X.end,j=Y.start,ee=Y.end;t&&t.checkIntersection(X,Y);var pe=r.linesIntersect(V,J,j,ee);if(pe===!1){if(!r.pointsCollinear(V,J,j)||r.pointsSame(V,ee)||r.pointsSame(J,j))return!1;var ne=r.pointsSame(V,j),ye=r.pointsSame(J,ee);if(ne&&ye)return G;var te=!ne&&r.pointBetween(V,j,ee),De=!ye&&r.pointBetween(J,j,ee);if(ne)return De?v(G,J):v(U,ee),G;te&&(ye||(De?v(G,J):v(U,ee)),v(G,V))}else pe.alongA===0&&(pe.alongB===-1?v(U,j):pe.alongB===0?v(U,pe.pt):pe.alongB===1&&v(U,ee)),pe.alongB===0&&(pe.alongA===-1?v(G,V):pe.alongA===0?v(G,pe.pt):pe.alongA===1&&v(G,J));return!1}for(var x=[];!i.isEmpty();){var w=i.getHead();if(t&&t.vert(w.pt[0]),w.isStart){let U=function(){if(M){var G=_(w,M);if(G)return G}return C?_(w,C):!1};var B=U;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,C=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,C?C.seg:!1);var D=U();if(D){if(e){var R;w.seg.myFill.below===null?R=!0:R=w.seg.myFill.above!==w.seg.myFill.below,R&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(D.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var R;w.seg.myFill.below===null?R=!0:R=w.seg.myFill.above!==w.seg.myFill.below,C?w.seg.myFill.below=C.seg.myFill.above:w.seg.myFill.below=p,R?w.seg.myFill.above=!w.seg.myFill.below:w.seg.myFill.above=w.seg.myFill.below}else if(w.seg.otherFill===null){var P;C?w.primary===C.primary?P=C.seg.otherFill.above:P=C.seg.myFill.above:P=w.primary?m:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,C?C.seg:!1),w.other.status=k.insert(Tp.node({ev:w}))}else{var q=w.status;if(q===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(q.prev)&&y.exists(q.next)&&_(q.prev.ev,q.next.ev),t&&t.statusRemove(q.ev.seg),q.remove(),!w.primary){var z=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=z}x.push(w.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b<p.length;b++){m=y,y=p[b];var T=r.pointsCompare(m,y);T!==0&&f(a(T<0?m:y,T<0?y:m),!0)}},calculate:function(p){return d(p,!1)}}:{calculate:function(p,m,y,b){return p.forEach(function(T){f(n(T.start,T.end,T),!0)}),y.forEach(function(T){f(n(T.start,T.end,T),!1)}),d(m,b)}}}xI.exports=mge});var AI=I((hFe,wI)=>{function yge(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(B,U,G){return f.index=B,f.matches_head=U,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v<a.length;v++){var d=a[v],p=d[0],m=d[1],y=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(y,o)){if(c(v,!1,!0))break}else if(r.pointsSame(y,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 T=s.index,_=s.matches_pt1?l:o,x=s.matches_head,d=a[T],w=x?d[0]:d[d.length-1],k=x?d[1]:d[d.length-2],M=x?d[d.length-1]:d[0],C=x?d[d.length-2]:d[1];if(r.pointsCollinear(k,w,_)&&(x?(t&&t.chainRemoveHead(s.index,_),d.shift()):(t&&t.chainRemoveTail(s.index,_),d.pop()),w=k),r.pointsSame(M,_)){a.splice(T,1),r.pointsCollinear(C,M,w)&&(x?(t&&t.chainRemoveTail(s.index,w),d.pop()):(t&&t.chainRemoveHead(s.index,w),d.shift())),t&&t.chainClose(s.index),n.push(d);return}x?(t&&t.chainAddHead(s.index,_),d.unshift(_)):(t&&t.chainAddTail(s.index,_),d.push(_));return}function D(B){t&&t.chainReverse(B),a[B].reverse()}function R(B,U){var G=a[B],X=a[U],Y=G[G.length-1],V=G[G.length-2],J=X[0],j=X[1];r.pointsCollinear(V,Y,J)&&(t&&t.chainRemoveTail(B,Y),G.pop(),Y=V),r.pointsCollinear(Y,J,j)&&(t&&t.chainRemoveHead(U,J),X.shift()),t&&t.chainJoin(B,U),a[B]=G.concat(X),a.splice(U,1)}var P=s.index,q=u.index;t&&t.chainConnect(P,q);var z=a[P].length<a[q].length;s.matches_head?u.matches_head?z?(D(P),R(P,q)):(D(q),R(q,P)):R(q,P):u.matches_head?R(P,q):z?(D(P),R(q,P)):(D(q),R(P,q))}),n}wI.exports=yge});var MI=I((dFe,TI)=>{function Mp(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 gge={union:function(e,r){return Mp(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Mp(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Mp(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Mp(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Mp(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};TI.exports=gge});var SI=I((pFe,kI)=>{var bge={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 m=0;m<d.children.length;m++){var y=d.children[m];if(a(p,y.region)){o(y,p);return}}for(var b=n(p),m=0;m<d.children.length;m++){var y=d.children[m];a(y.region,p)&&(b.children.push(y),d.children.splice(m,1),m--)}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 m=0,y=d[d.length-1][0],b=d[d.length-1][1],T=[],_=0;_<d.length;_++){var x=d[_][0],w=d[_][1];T.push([x,w]),m+=w*y-x*b,y=x,b=w}var k=m<0;return k!==p&&T.reverse(),T.push([T[0][0],T[0][1]]),T}var f=[];function c(d){var p=[u(d.region,!1)];f.push(p);for(var m=0;m<d.children.length;m++)p.push(v(d.children[m]))}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}}};kI.exports=bge});var DI=I((mFe,EI)=>{var xge=pI(),_ge=yI(),CI=_I(),wge=AI(),kp=MI(),LI=SI(),ml=!1,Sp=_ge(),qo;qo={buildLog:function(e){return e===!0?ml=xge():e===!1&&(ml=!1),ml===!1?!1:ml.list},epsilon:function(e){return Sp.epsilon(e)},segments:function(e){var r=CI(!0,Sp,ml);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=CI(!1,Sp,ml);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:kp.union(e.combined,ml),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:kp.intersect(e.combined,ml),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:kp.difference(e.combined,ml),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:kp.differenceRev(e.combined,ml),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:kp.xor(e.combined,ml),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:wge(e.segments,Sp,ml),inverted:e.inverted}},polygonFromGeoJSON:function(e){return LI.toPolygon(qo,e)},polygonToGeoJSON:function(e){return LI.fromPolygon(qo,Sp,e)},union:function(e,r){return Cp(e,r,qo.selectUnion)},intersect:function(e,r){return Cp(e,r,qo.selectIntersect)},difference:function(e,r){return Cp(e,r,qo.selectDifference)},differenceRev:function(e,r){return Cp(e,r,qo.selectDifferenceRev)},xor:function(e,r){return Cp(e,r,qo.selectXor)}};function Cp(e,r,t){var a=qo.segments(e),n=qo.segments(r),i=qo.combine(a,n),o=t(i);return qo.polygon(o)}typeof window=="object"&&(window.PolyBool=qo);EI.exports=qo});var RI=I((yFe,qI)=>{qI.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],m=v>o!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var nw=I((gFe,FI)=>{"use strict";var aw=Yg().dot,V3=(Zn(),hr(ri)).BADNUM,X3=FI.exports={};X3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)a=Math.min(a,t[l][0]),n=Math.max(n,t[l][0]),i=Math.min(i,t[l][1]),o=Math.max(o,t[l][1]);var s=!1,u;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(s=!0,u=function(p){return p[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(s=!0,u=function(p){return p[1]===t[0][1]}));function f(p,m){var y=p[0],b=p[1];return!(y===V3||y<a||y>n||b===V3||b<i||b>o||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===V3||y<a||y>n||b===V3||b<i||b>o)return!1;var T=t.length,_=t[0][0],x=t[0][1],w=0,k,M,C,D,R;for(k=1;k<T;k++)if(M=_,C=x,_=t[k][0],x=t[k][1],D=Math.min(M,_),!(y<D||y>Math.max(M,_)||b>Math.max(C,x)))if(b<Math.min(C,x))y!==D&&w++;else{if(_===M?R=b:R=C+(y-M)*(x-C)/(_-M),b===R)return!(k===1&&m);b<=R&&y!==D&&w++}return w%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}};X3.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=aw(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=aw(c,o),v<0||v>l||Math.abs(aw(c,u))>n)return!0;return!1};X3.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||X3.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 PI={};Ka(PI,{BENDPX:()=>Age,MINSELECT:()=>Tge,SELECTDELAY:()=>Mge,SELECTID:()=>kge});var Age,Tge,Mge,kge,NI=$a(()=>{"use strict";Age=1.5,Tge=12,Mge=100,kge="-select"});var nB=I((bFe,aB)=>{"use strict";var zI=DI(),Sge=RI(),Dp=Pt(),Cge=Sa().dashStyle,Lp=Kt(),Lge=mu(),Ege=ws().makeEventData,Np=Ef(),Dge=Np.freeMode,qge=Np.rectMode,qp=Np.drawMode,sw=Np.openMode,uw=Np.selectMode,II=Ff(),BI=(yp(),hr(mp)),YI=E3(),VI=gf().clearOutline,XI=Df(),iw=XI.handleEllipse,Rge=XI.readPaths,Fge=S3().newShapes,Pge=E8(),Nge=tw().activateLastSelection,Z3=ir(),zge=Z3.sorterAsc,WI=nw(),Ep=i2(),yl=mn().getFromId,Ige=b3(),Bge=U3().redrawReglTraces,J3=(NI(),hr(PI)),Rs=J3.MINSELECT,Oge=WI.filter,fw=WI.tester,cw=A3(),OI=cw.p2r,Hge=cw.axValue,Uge=cw.getTransform;function vw(e){return e.subplot!==void 0}function Gge(e,r,t,a,n){var i=!vw(a),o=Dge(n),l=qge(n),s=sw(n),u=qp(n),f=uw(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,x=Uge(_),w=r-T.left,k=t-T.top;m._calcInverseTransform(p);var M=Z3.apply3DTransform(m._invTransform)(w,k);w=M[0],k=M[1];var C=m._invScaleX,D=m._invScaleY,R=w,P=k,q="M"+w+","+k,z=a.xaxes[0],B=a.yaxes[0],U=z._length,G=B._length,X=e.altKey&&!(qp(n)&&s),Y,V,J,j,ee,pe,ne;JI(e,p,a),o&&(Y=Oge([[w,k]],J3.BENDPX));var ye=b.selectAll("path.select-outline-"+_.id).data([1]),te=u?m.newshape:m.newselection;u&&(a.hasText=te.label.text||te.label.texttemplate);var De=u&&!s?te.fillcolor:"rgba(0,0,0,0)",ce=te.line.color||(i?Lp.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ye.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?te.opacity/2:1,"stroke-dasharray":Cge(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(Lp.stroke,ce).call(Lp.fill,De).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",q+"Z");var Re=b.append("path").attr("class","zoombox-corners").style({fill:Lp.background,stroke:Lp.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var Fe=b.select(".label-temp");Fe.empty()&&(Fe=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=m._uid+J3.SELECTID,Oe=[],cr=j3(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ze=z._id,Ue=B._id;eB(p,ze,Ue,cr);for(var We=(p.layout||{}).selections||[],Ge=[],or=!1,Ye=0;Ye<We.length;Ye++){var _r=m.selections[Ye];!_r||_r.xref!==ze||_r.yref!==Ue?Ge.push(We[Ye]):or=!0}or&&(p._fullLayout._noEmitSelectedAtStart=!0,Dp.call("_guiRelayout",p,{selections:Ge}))}});var qe=a2e(a);a.moveFn=function(ze,Ue){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),R=Math.max(0,Math.min(U,C*ze+w)),P=Math.max(0,Math.min(G,D*Ue+k));var We=Math.abs(R-w),Ge=Math.abs(P-k);if(l){var or,Ye,_r;if(f){var Pr=m.selectdirection;switch(Pr==="any"?Ge<Math.min(We*.6,Rs)?or="h":We<Math.min(Ge*.6,Rs)?or="v":or="d":or=Pr,or){case"h":Ye=v?G/2:0,_r=G;break;case"v":Ye=v?U/2:0,_r=U;break}}if(u)switch(m.newshape.drawdirection){case"vertical":or="h",Ye=v?G/2:0,_r=G;break;case"horizontal":or="v",Ye=v?U/2:0,_r=U;break;case"ortho":We<Ge?(or="h",Ye=k,_r=P):(or="v",Ye=w,_r=R);break;default:or="d"}or==="h"?(j=d?iw(v,[R,Ye],[R,_r]):[[w,Ye],[w,_r],[R,_r],[R,Ye]],j.xmin=d?R:Math.min(w,R),j.xmax=d?R:Math.max(w,R),j.ymin=Math.min(Ye,_r),j.ymax=Math.max(Ye,_r),Re.attr("d","M"+j.xmin+","+(k-Rs)+"h-4v"+2*Rs+"h4ZM"+(j.xmax-1)+","+(k-Rs)+"h4v"+2*Rs+"h-4Z")):or==="v"?(j=d?iw(v,[Ye,P],[_r,P]):[[Ye,k],[Ye,P],[_r,P],[_r,k]],j.xmin=Math.min(Ye,_r),j.xmax=Math.max(Ye,_r),j.ymin=d?P:Math.min(k,P),j.ymax=d?P:Math.max(k,P),Re.attr("d","M"+(w-Rs)+","+j.ymin+"v-4h"+2*Rs+"v4ZM"+(w-Rs)+","+(j.ymax-1)+"v4h"+2*Rs+"v-4Z")):or==="d"&&(j=d?iw(v,[w,k],[R,P]):[[w,k],[w,P],[R,P],[R,k]],j.xmin=Math.min(w,R),j.xmax=Math.max(w,R),j.ymin=Math.min(k,P),j.ymax=Math.max(k,P),Re.attr("d","M0,0Z"))}else o&&(Y.addPt([R,P]),j=Y.filtered);if(a.selectionDefs&&a.selectionDefs.length?(J=jI(a.mergedPolygons,j,X),j.subtract=X,V=hw(a.selectionDefs.concat([j]))):(J=[j],V=fw(j)),YI(KI(J,s),ye,a),f){var Yr=lw(p,!1),$e=Yr.eventData?Yr.eventData.points.slice():[];Yr=lw(p,!1,V,cr,a),V=Yr.selectionTesters,ne=Yr.eventData;var mr;Y?mr=Y.filtered:mr=rB(J),Ep.throttle(ge,J3.SELECTDELAY,function(){Oe=QI(V,cr);for(var Gr=Oe.slice(),fe=0;fe<$e.length;fe++){for(var Ce=$e[fe],Tr=!1,tt=0;tt<Gr.length;tt++)if(Gr[tt].curveNumber===Ce.curveNumber&&Gr[tt].pointNumber===Ce.pointNumber){Tr=!0;break}Tr||Gr.push(Ce)}Gr.length&&(ne||(ne={}),ne.points=Gr),qe(ne,mr),n2e(p,ne)})}},a.clickFn=function(ze,Ue){if(Re.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var We=m.clickmode;Ep.done(ge).then(function(){if(Ep.clear(ge),ze===2){for(ye.remove(),ee=0;ee<cr.length;ee++)pe=cr[ee],pe._module.selectPoints(pe,!1);if(Fp(p,cr),Rp(a),pw(p),cr.length){var Ge=cr[0].xaxis,or=cr[0].yaxis;if(Ge&&or){for(var Ye=[],_r=p._fullLayout.selections,Pr=0;Pr<_r.length;Pr++){var Yr=_r[Pr];Yr&&(Yr.xref!==Ge._id||Yr.yref!==or._id)&&Ye.push(Yr)}Ye.length<_r.length&&(p._fullLayout._noEmitSelectedAtStart=!0,Dp.call("_guiRelayout",p,{selections:Ye}))}}}else We.indexOf("select")>-1&&ZI(Ue,p,a.xaxes,a.yaxes,a.subplot,a,ye),We==="event"&&Pp(p,void 0);Lge.click(p,Ue,_.id)}).catch(Z3.error)}},a.doneFn=function(){Re.remove(),Ep.done(ge).then(function(){Ep.clear(ge),!y&&j&&a.selectionDefs&&(j.subtract=X,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(y||u)&&Rp(a,y),a.doneFnCompleted&&a.doneFnCompleted(Oe),f&&Pp(p,ne)}).catch(Z3.error)}}function ZI(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,m,y,b,T,_,x,w;if(Zge(l)){JI(e,r,i),v=j3(r,t,a,n);var k=Jge(l,v),M=k.pointNumbers.length>0;if(M?jge(v,k):$ge(v)&&(T=UI(k))){for(o&&o.remove(),w=0;w<v.length;w++)d=v[w],d._module.selectPoints(d,!1);Fp(r,v),Rp(i),f&&pw(r)}else{_=e.shiftKey&&(T!==void 0?T:UI(k)),p=Yge(k.pointNumber,k.searchInfo,_);var C=i.selectionDefs.concat([p]);for(m=hw(C,m),w=0;w<v.length;w++)if(y=v[w]._module.selectPoints(v[w],m),b=$I(y,v[w]),c.length)for(var D=0;D<b.length;D++)c.push(b[D]);else c=b;if(x={points:c},Fp(r,v,x),p&&i&&i.selectionDefs.push(p),o){var R=i.mergedPolygons,P=sw(i.dragmode);YI(KI(R,P),o,i)}f&&Pp(r,x)}}}function Yge(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function ow(e){return"pointNumber"in e&&"searchInfo"in e}function Vge(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 hw(e){if(!e.length)return;for(var r=[],t=ow(e[0])?0:e[0][0][0],a=t,n=ow(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(ow(e[o]))r.push(Vge(e[o]));else{var l=fw(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 JI(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)&&!(qp(i)&&sw(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&Rp(t),o||(VI(r),a._lastSelectedSubplot=n.id)}function Xge(e){return e._fullLayout._activeShapeIndex>=0}function Wge(e){return e._fullLayout._activeSelectionIndex>=0}function Rp(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Xge(n)&&n._fullLayout._deactivateShape(n),Wge(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=qp(t),s=uw(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Fge(u,e)),f&&Dp.call("_guiRelayout",n,{shapes:f});var c;s&&!vw(e)&&(c=Pge(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Dp.call("_guiRelayout",n,{selections:c}).then(function(){r&&Nge(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function HI(e){return e._id}function j3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(HI),o=t.map(HI),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(vw({subplot:a})&&(s.subplot===a||s.geo===a))n.push(W3(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=W3(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=W3(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(W3(s._module,l,yl(e,s.xaxis),yl(e,s.yaxis)))}return n}function W3(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function Zge(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function Jge(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 UI(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 jge(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 $ge(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 Fp(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;Kge(e,r)}function Kge(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;Dp.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&&(Ige(e),Bge(e))}function jI(e,r,t){for(var a=t?zI.difference:zI.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=dw(l,i.slice(0,o))}return i}function $I(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Ege(e[n],a,t);return e}function KI(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 QI(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=$I(i,l),t=t.concat(a)}return t}function lw(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=GI(e),v=e._fullLayout;if(o){var d=v._zoomlayer,p=v.dragmode,m=qp(p),y=uw(p);if(m||y){var b=yl(e,l,"x"),T=yl(e,s,"y");if(b&&T){var _=d.selectAll(".select-outline-"+o.id);if(_&&e._fullLayout._outlining&&_.length){for(var x=_[0][0],w=x.getAttribute("d"),k=Rge(w,e,o),M=[],C=0;C<k.length;C++){for(var D=k[C],R=[],P=0;P<D.length;P++)R.push([Pf(b,D[P][1]),Pf(T,D[P][2])]);R.xref=l,R.yref=s,R.subtract=dw(R,M),M.push(R)}c=c.concat(M)}}}}var q=l&&s?[l+s]:v._subplots.cartesian;Qge(e);for(var z={},B=0;B<q.length;B++){var U=q[B],G=U.indexOf("y"),X=U.slice(0,G),Y=U.slice(G),V=l&&s?t:void 0;if(V=r2e(c,X,Y,V),V){var J=a;if(!i){var j=yl(e,X,"x"),ee=yl(e,Y,"y");J=j3(e,[j],[ee],U);for(var pe=0;pe<J.length;pe++){var ne=J[pe],ye=ne.cd[0],te=ye.trace;if(ne._module.name==="scattergl"&&!ye.t.xpx){var De=te.x,ce=te.y,Re=te._length;ye.t.xpx=[],ye.t.ypx=[];for(var Fe=0;Fe<Re;Fe++)ye.t.xpx[Fe]=j.c2p(De[Fe]),ye.t.ypx[Fe]=ee.c2p(ce[Fe])}ne._module.name==="splom"&&(z[te.uid]||(z[te.uid]=!0))}}var ge=QI(V,J);u=u.concat(ge),f=f.concat(J)}}var Oe={points:u};Fp(e,f,Oe);var cr=v.clickmode,qe=cr.indexOf("event")>-1&&r;if(!o&&r){var ze=GI(e,!0);if(ze.length){var Ue=ze[0].xref,We=ze[0].yref;if(Ue&&We){var Ge=rB(ze),or=tB([yl(e,Ue,"x"),yl(e,We,"y")]);or(Oe,Ge)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:qe&&Pp(e,Oe),v._reselect=!1}if(!o&&v._deselect){var Ye=v._deselect;l=Ye.xref,s=Ye.yref,e2e(l,s,f)||eB(e,l,s,a),qe&&(Oe.points.length?Pp(e,Oe):pw(e)),v._deselect=!1}return{eventData:Oe,selectionTesters:t}}function Qge(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 e2e(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 eB(e,r,t,a){a=j3(e,[yl(e,r,"x")],[yl(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}Fp(e,a)}function r2e(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=jI(n,o,l),a=hw(n)}else n=[o],a=fw(o)}return a}function GI(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=yl(e,s,"x"),c=yl(e,u,"y"),v,d,p,m,y;if(l.type==="rect"){y=[];var b=Pf(f,l.x0),T=Pf(f,l.x1),_=Pf(c,l.y0),x=Pf(c,l.y1);y=[[b,_],[b,x],[T,x],[T,_]],v=Math.min(b,T),d=Math.max(b,T),p=Math.min(_,x),m=Math.max(_,x),y.xmin=v,y.xmax=d,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=!1,y.isRect=!0,t.push(y)}else if(l.type==="path")for(var w=l.path.split("Z"),k=[],M=0;M<w.length;M++){var C=w[M];if(C){C+="Z";var D=II.extractPathCoords(C,BI.paramIsX,"raw"),R=II.extractPathCoords(C,BI.paramIsY,"raw");v=1/0,d=-1/0,p=1/0,m=-1/0,y=[];for(var P=0;P<D.length;P++){var q=Pf(f,D[P]),z=Pf(c,R[P]);y.push([q,z]),v=Math.min(q,v),d=Math.max(q,d),p=Math.min(z,p),m=Math.max(z,m)}y.xmin=v,y.xmax=d,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=dw(y,k),k.push(y),t.push(y)}}}}return t}function dw(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Sge(e[i],n)){t=!t;break}return t}function Pf(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function rB(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 t2e(t)}function t2e(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 tB(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]=[OI(o,u),OI(o,f)].sort(zge))}else n||(n={}),n[l]=t.map(Hge(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function a2e(e){var r=e.plotinfo;return r.fillRangeItems||tB(e.xaxes.concat(e.yaxes))}function n2e(e,r){e.emit("plotly_selecting",r)}function Pp(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function pw(e){e.emit("plotly_deselect",null)}aB.exports={reselect:lw,prepSelect:Gge,clearOutline:VI,clearSelectionsCache:Rp,selectOnClick:ZI}});var mw=I((xFe,iB)=>{"use strict";iB.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 zp={};Ka(zp,{axisRefDescription:()=>i2e});function i2e(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 Ip=$a(()=>{"use strict"});var Th=I((wFe,sB)=>{"use strict";var oB=mw(),lB=Di(),$3=(ni(),hr(ai)),o2e=Ra().templatedArray,_Fe=(Ip(),hr(zp));sB.exports=o2e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:lB({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:oB.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:oB.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",$3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",$3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",$3.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",$3.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:lB({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Bp={};Ka(Bp,{PTS_LINESONLY:()=>l2e,eventDataKeys:()=>c2e,maxScreensAway:()=>f2e,minTolerance:()=>s2e,toleranceGrowth:()=>u2e});var l2e,s2e,u2e,f2e,c2e,Op=$a(()=>{"use strict";l2e=20,s2e=.2,u2e=10,f2e=20,c2e=[]});var yw=I((AFe,uB)=>{"use strict";uB.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Nf=I((TFe,yB)=>{"use strict";var fB=$1().axisHoverFormat,{hovertemplateAttrs:v2e,texttemplateAttrs:h2e,templatefallbackAttrs:cB}=Hv(),vB=Qc(),d2e=Di(),hB=uf().dash,p2e=uf().pattern,m2e=Sa(),y2e=(Op(),hr(Bp)),Hp=Rn().extendFlat,g2e=yw();function dB(e){return{valType:"any",dflt:0,editType:"calc"}}function pB(e){return{valType:"any",editType:"calc"}}function mB(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}yB.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:dB("x"),yperiod:dB("y"),xperiod0:pB("x0"),yperiod0:pB("y0"),xperiodalignment:mB("x"),yperiodalignment:mB("y"),xhoverformat:fB("x"),yhoverformat:fB("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:h2e(),texttemplatefallback:cB({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:v2e({},{keys:y2e.eventDataKeys}),hovertemplatefallback:cB(),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:Hp({},hB,{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:g2e(!0),fillgradient:Hp({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:p2e,marker:Hp({symbol:{valType:"enumerated",values:m2e.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:Hp({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Hp({},hB,{arrayOk:!0}),editType:"calc"},vB("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"},vB("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:d2e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gw=I((kFe,xB)=>{"use strict";var gB=Th(),bB=Nf().line,b2e=uf().dash,K3=Rn().extendFlat,x2e=Il().overrideAll,_2e=Ra().templatedArray,MFe=(Ip(),hr(zp));xB.exports=x2e(_2e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:K3({},gB.xref,{}),yref:K3({},gB.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:bB.color,width:K3({},bB.width,{min:1,dflt:1}),dash:K3({},b2e,{dflt:"dot"})}}),"arraydraw","from-root")});var TB=I((SFe,AB)=>{"use strict";var _B=ir(),Q3=tn(),w2e=Yo(),A2e=gw(),wB=Ff();AB.exports=function(r,t){w2e(r,t,{name:"selections",handleItemDefaults:T2e});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 T2e(e,r,t){function a(k,M){return _B.coerce(e,r,A2e,k,M)}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,m=Q3.coerceRef(e,r,c,f);if(v=Q3.getFromId(c,m),v._selectionIndices.push(r._index),p=wB.rangeToShapePosition(v),d=wB.shapePositionToRange(v),l){var y=f+"0",b=f+"1",T=e[y],_=e[b];e[y]=d(e[y],!0),e[b]=d(e[b],!0),Q3.coercePosition(r,c,a,m,y),Q3.coercePosition(r,c,a,m,b);var x=r[y],w=r[b];x!==void 0&&w!==void 0&&(r[y]=p(x),r[b]=p(w),e[y]=T,e[b]=_)}}l&&_B.noneOrAll(e,r,["x0","x1","y0","y1"])}});var kB=I((CFe,MB)=>{"use strict";MB.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 Up=I((LFe,LB)=>{"use strict";var M2e=Pt(),SB=ir(),CB=mn();LB.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=M2e.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(SB.isPlainObject(p)){var m=CB.cleanId(p.xref,"x",!1),y=CB.cleanId(p.yref,"y",!1),b=l.x.test(m),T=l.y.test(y);if(b||T){v||SB.pushUnique(n._basePlotModules,o);var _=!1;b&&u.indexOf(m)===-1&&(u.push(m),_=!0),T&&f.indexOf(y)===-1&&(f.push(y),_=!0),_&&b&&T&&c.push(m+y)}}}}}});var Mh=I((EFe,DB)=>{"use strict";var EB=tw(),Gp=nB();DB.exports={moduleType:"component",name:"selections",layoutAttributes:gw(),supplyLayoutDefaults:TB(),supplyDrawNewSelectionDefaults:kB(),includeBasePlot:Up()("selections"),draw:EB.draw,drawOne:EB.drawOne,reselect:Gp.reselect,prepSelect:Gp.prepSelect,clearOutline:Gp.clearOutline,clearSelectionsCache:Gp.clearSelectionsCache,selectOnClick:Gp.selectOnClick}});var $B=I((DFe,jB)=>{"use strict";var Tw=sa(),gl=ir(),qB=gl.numberFormat,k2e=K7(),e5=Pt(),OB=gl.strTranslate,S2e=Ri(),xw=Kt(),zf=Sa(),C2e=mu(),RB=tn(),L2e=Cf(),E2e=Yl(),HB=Ef(),r5=HB.selectingOrDrawing,D2e=HB.freeMode,q2e=(Ui(),hr(Hi)).FROM_TL,R2e=b3(),F2e=U3().redrawReglTraces,P2e=pi(),_w=mn().getFromId,N2e=Mh().prepSelect,z2e=Mh().clearOutline,I2e=Mh().selectOnClick,bw=Z8(),Mw=(ni(),hr(ai)),FB=Mw.MINDRAG,ho=Mw.MINZOOM,PB=!0;function B2e(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,m,y,b,T,_,x,w,k,M,C,D,R,P,q,z,B,U,G,X;t+=r.yaxis._shift;function Y(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var de=r.overlays,Le=0;Le<de.length;Le++){var lr=de[Le].xaxis;d[lr._id]=lr;var Ar=de[Le].yaxis;p[Ar._id]=Ar}m=BB(d),y=BB(p),M=NB(m,l),C=NB(y,o),D=!C&&!M,k=IB(e,e._fullLayout._axisMatchGroups,d,p),w=IB(e,e._fullLayout._axisConstraintGroups,d,p,k);var ur=w.isSubplotConstrained||k.isSubplotConstrained;R=l||ur,P=o||ur;var Cr=e._fullLayout;q=Cr._has("scattergl"),z=Cr._has("splom"),B=Cr._has("svg")}Y();var V=U2e(C+M,e._fullLayout.dragmode,u),J=GB(r,o+l+"drag",V,t,a,n,i);if(D&&!u)return J.onmousedown=null,J.style.pointerEvents="none",J;var j={element:J,gd:e,plotinfo:r};j.prepFn=function(de,Le,lr){var Ar=j.dragmode,ur=e._fullLayout.dragmode;ur!==Ar&&(j.dragmode=ur),Y(),G=e._fullLayout._invScaleX,X=e._fullLayout._invScaleY,D||(u?de.shiftKey?ur==="pan"?ur="zoom":r5(ur)||(ur="pan"):de.ctrlKey&&(ur="pan"):ur="pan"),D2e(ur)?j.minDrag=1:j.minDrag=void 0,r5(ur)?(j.xaxes=m,j.yaxes=y,N2e(de,Le,lr,j,ur)):(j.clickFn=pe,r5(Ar)&&ee(),D||(ur==="zoom"?(j.moveFn=ze,j.doneFn=We,j.minDrag=1,qe(de,Le,lr)):ur==="pan"&&(j.moveFn=Yr,j.doneFn=fe))),e._fullLayout._redrag=function(){var Cr=e._dragdata;if(Cr&&Cr.element===J){var Er=e._fullLayout.dragmode;r5(Er)||(Y(),Ce([0,0,_,x]),j.moveFn(Cr.dx,Cr.dy))}}};function ee(){j.plotinfo.selection=!1,z2e(e)}function pe(de,Le){var lr=j.gd;if(lr._fullLayout._activeShapeIndex>=0){lr._fullLayout._deactivateShape(lr);return}var Ar=lr._fullLayout.clickmode;if(Aw(lr),de===2&&!f&&Gr(),u)Ar.indexOf("select")>-1&&I2e(Le,lr,m,y,r.id,j),Ar.indexOf("event")>-1&&C2e.click(lr,Le,r.id);else if(de===1&&f){var ur=o?v:c,Cr=o==="s"||l==="w"?0:1,Er=ur._name+".range["+Cr+"]",Vr=O2e(ur,Cr),ot="left",Ve="middle";if(ur.fixedrange)return;o?(Ve=o==="n"?"top":"bottom",ur.side==="right"&&(ot="right")):l==="e"&&(ot="right"),lr._context.showAxisRangeEntryBoxes&&Tw.select(J).call(S2e.makeEditable,{gd:lr,immediate:!0,background:lr._fullLayout.paper_bgcolor,text:String(Vr),fill:ur.tickfont?ur.tickfont.color:"#444",horizontalAlign:ot,verticalAlign:Ve}).on("edit",function(Mr){var Qe=ur.d2r(Mr);Qe!==void 0&&e5.call("_guiRelayout",lr,Er,Qe)})}}E2e.init(j);var ne,ye,te,De,ce,Re,Fe,ge,Oe,cr;function qe(de,Le,lr){var Ar=J.getBoundingClientRect();ne=Le-Ar.left,ye=lr-Ar.top,e._fullLayout._calcInverseTransform(e);var ur=gl.apply3DTransform(e._fullLayout._invTransform)(ne,ye);ne=ur[0],ye=ur[1],te={l:ne,r:ne,w:0,t:ye,b:ye,h:0},De=e._hmpixcount?e._hmlumcount/e._hmpixcount:xw.luminosity(e._fullLayout.plot_bgcolor),ce="M0,0H"+_+"V"+x+"H0V0",Re=!1,Fe="xy",cr=!1,ge=YB(s,De,b,T,ce),Oe=VB(s,b,T)}function ze(de,Le){if(e._transitioningWithDuration)return!1;var lr=Math.max(0,Math.min(_,G*de+ne)),Ar=Math.max(0,Math.min(x,X*Le+ye)),ur=Math.abs(lr-ne),Cr=Math.abs(Ar-ye);te.l=Math.min(ne,lr),te.r=Math.max(ne,lr),te.t=Math.min(ye,Ar),te.b=Math.max(ye,Ar);function Er(){Fe="",te.r=te.l,te.t=te.b,Oe.attr("d","M0,0Z")}if(w.isSubplotConstrained)ur>ho||Cr>ho?(Fe="xy",ur/_>Cr/x?(Cr=ur*x/_,ye>Ar?te.t=ye-Cr:te.b=ye+Cr):(ur=Cr*_/x,ne>lr?te.l=ne-ur:te.r=ne+ur),Oe.attr("d",t5(te))):Er();else if(k.isSubplotConstrained)if(ur>ho||Cr>ho){Fe="xy";var Vr=Math.min(te.l/_,(x-te.b)/x),ot=Math.max(te.r/_,(x-te.t)/x);te.l=Vr*_,te.r=ot*_,te.b=(1-Vr)*x,te.t=(1-ot)*x,Oe.attr("d",t5(te))}else Er();else!C||Cr<Math.min(Math.max(ur*.6,FB),ho)?ur<FB||!M?Er():(te.t=0,te.b=x,Fe="x",Oe.attr("d",G2e(te,ye))):!M||ur<Math.min(Cr*.6,ho)?(te.l=0,te.r=_,Fe="y",Oe.attr("d",Y2e(te,ne))):(Fe="xy",Oe.attr("d",t5(te)));te.w=te.r-te.l,te.h=te.b-te.t,Fe&&(cr=!0),e._dragged=cr,XB(ge,Oe,te,ce,Re,De),Ue(),e.emit("plotly_relayouting",U),Re=!0}function Ue(){U={},(Fe==="xy"||Fe==="x")&&(ww(m,te.l/_,te.r/_,U,w.xaxes),$e("x",U)),(Fe==="xy"||Fe==="y")&&(ww(y,(x-te.b)/x,(x-te.t)/x,U,w.yaxes),$e("y",U))}function We(){Ue(),Aw(e),fe(),ZB(e)}var Ge=[0,0,_,x],or=null,Ye=Mw.REDRAWDELAY,_r=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Pr(de){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(ee(),e._transitioningWithDuration){de.preventDefault(),de.stopPropagation();return}Y(),clearTimeout(or);var Le=-de.deltaY;if(isFinite(Le)||(Le=de.wheelDelta/10),!isFinite(Le)){gl.log("Did not find wheel motion attributes: ",de);return}e._fullLayout._replotting=!0;var lr=Math.exp(-Math.min(Math.max(Le,-20),20)/200),Ar=_r.draglayer.select(".nsewdrag").node().getBoundingClientRect(),ur=(de.clientX-Ar.left)/Ar.width,Cr=(Ar.bottom-de.clientY)/Ar.height,Er;function Vr(ot,Ve,Mr){if(ot.fixedrange)return;var Qe=gl.simpleMap(ot.range,ot.r2l),zr=Qe[0]+(Qe[1]-Qe[0])*Ve;function it(lt){return ot.l2r(zr+(lt-zr)*Mr)}ot.range=Qe.map(it)}if(R){for(l||(ur=.5),Er=0;Er<m.length;Er++)Vr(m[Er],ur,lr);$e("x"),Ge[2]*=lr,Ge[0]+=Ge[2]*ur*(1/lr-1)}if(P){for(o||(Cr=.5),Er=0;Er<y.length;Er++)Vr(y[Er],Cr,lr);$e("y"),Ge[3]*=lr,Ge[1]+=Ge[3]*(1-Cr)*(1/lr-1)}Ce(Ge),mr(),e.emit("plotly_relayouting",U),or=setTimeout(function(){e._fullLayout&&(Ge=[0,0,_,x],fe())},Ye),de.preventDefault()}o.length*l.length!==1&&JB(J,Pr);function Yr(de,Le){if(de=de*G,Le=Le*X,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,M==="ew"||C==="ns"){var lr=M?-de:0,Ar=C?-Le:0;if(k.isSubplotConstrained){if(M&&C){var ur=(de/_-Le/x)/2;de=ur*_,Le=-ur*x,lr=-de,Ar=-Le}C?lr=-Ar*_/x:Ar=-lr*x/_}M&&(zB(m,de),$e("x")),C&&(zB(y,Le),$e("y")),Ce([lr,Ar,_,x]),mr(),e.emit("plotly_relayouting",U);return}function Cr(it,lt,Qr){for(var se=1-lt,Te,tr,vr=0;vr<it.length;vr++){var na=it[vr];if(!na.fixedrange){Te=na,tr=na._rl[se]+(na._rl[lt]-na._rl[se])/H2e(Qr/na._length);var Ea=na.l2r(tr);Ea!==!1&&Ea!==void 0&&(na.range[lt]=Ea)}}return Te._length*(Te._rl[lt]-tr)/(Te._rl[lt]-Te._rl[se])}var Er=M==="w"==(C==="n")?1:-1;if(M&&C&&(w.isSubplotConstrained||k.isSubplotConstrained)){var Vr=(de/_+Er*Le/x)/2;de=Vr*_,Le=Er*Vr*x}var ot,Ve;if(M==="w"?de=Cr(m,0,de):M==="e"?de=Cr(m,1,-de):M||(de=0),C==="n"?Le=Cr(y,1,Le):C==="s"?Le=Cr(y,0,-Le):C||(Le=0),ot=M==="w"?de:0,Ve=C==="n"?Le:0,w.isSubplotConstrained&&!k.isSubplotConstrained||k.isSubplotConstrained&&M&&C&&Er>0){var Mr;if(k.isSubplotConstrained||!M&&C.length===1){for(Mr=0;Mr<m.length;Mr++)m[Mr].range=m[Mr]._r.slice(),bw(m[Mr],1-Le/x);de=Le*_/x,ot=de/2}if(k.isSubplotConstrained||!C&&M.length===1){for(Mr=0;Mr<y.length;Mr++)y[Mr].range=y[Mr]._r.slice(),bw(y[Mr],1-de/_);Le=de*x/_,Ve=Le/2}}(!k.isSubplotConstrained||!C)&&$e("x"),(!k.isSubplotConstrained||!M)&&$e("y");var Qe=_-de,zr=x-Le;k.isSubplotConstrained&&!(M&&C)&&(M?(Ve=ot?0:de*x/_,zr=Qe*x/_):(ot=Ve?0:Le*_/x,Qe=zr*_/x)),Ce([ot,Ve,Qe,zr]),mr(),e.emit("plotly_relayouting",U)}function $e(de,Le){for(var lr=k.isSubplotConstrained?{x:y,y:m}[de]:k[de+"axes"],Ar=k.isSubplotConstrained?{x:m,y}[de]:[],ur=0;ur<lr.length;ur++){var Cr=lr[ur],Er=Cr._id,Vr=k.xLinks[Er]||k.yLinks[Er],ot=Ar[0]||d[Vr]||p[Vr];ot&&(Le?(Le[Cr._name+".range[0]"]=Le[ot._name+".range[0]"],Le[Cr._name+".range[1]"]=Le[ot._name+".range[1]"]):Cr.range=ot.range.slice())}}function mr(){var de=[],Le;function lr(Er){for(Le=0;Le<Er.length;Le++)Er[Le].fixedrange||de.push(Er[Le]._id)}function Ar(Er,Vr){for(Le=0;Le<Er.length;Le++){var ot=Er[Le],Ve=ot[Vr],Mr=Ve._id;!ot.fixedrange&&Ve.tickmode==="sync"&&!de.includes(Mr)&&de.push(Mr)}}for(R&&(lr(m),lr(w.xaxes),lr(k.xaxes),Ar(r.overlays,"xaxis")),P&&(lr(y),lr(w.yaxes),lr(k.yaxes),Ar(r.overlays,"yaxis")),U={},Le=0;Le<de.length;Le++){var ur=de[Le],Cr=_w(e,ur);RB.drawOne(e,Cr,{skipTitle:!0}),U[Cr._name+".range[0]"]=Cr.range[0],U[Cr._name+".range[1]"]=Cr.range[1]}RB.redrawComponents(e,de)}function Gr(){if(!e._transitioningWithDuration){var de=e._context.doubleClick,Le=[];M&&(Le=Le.concat(m)),C&&(Le=Le.concat(y)),k.xaxes&&(Le=Le.concat(k.xaxes)),k.yaxes&&(Le=Le.concat(k.yaxes));var lr={},Ar,ur;if(de==="reset+autosize")for(de="autosize",ur=0;ur<Le.length;ur++){Ar=Le[ur];var Cr=Ar._rangeInitial0,Er=Ar._rangeInitial1,Vr=Cr!==void 0||Er!==void 0;if(Vr&&(Cr!==void 0&&Cr!==Ar.range[0]||Er!==void 0&&Er!==Ar.range[1])||!Vr&&Ar.autorange!==!0){de="reset";break}}if(de==="autosize")for(ur=0;ur<Le.length;ur++)Ar=Le[ur],Ar.fixedrange||(lr[Ar._name+".autorange"]=!0);else if(de==="reset"){for((M||w.isSubplotConstrained)&&(Le=Le.concat(w.xaxes)),C&&!w.isSubplotConstrained&&(Le=Le.concat(w.yaxes)),w.isSubplotConstrained&&(M?C||(Le=Le.concat(y)):Le=Le.concat(m)),ur=0;ur<Le.length;ur++)if(Ar=Le[ur],!Ar.fixedrange){var ot=Ar._name,Ve=Ar._autorangeInitial;Ar._rangeInitial0===void 0&&Ar._rangeInitial1===void 0?lr[ot+".autorange"]=!0:Ar._rangeInitial0===void 0?(lr[ot+".autorange"]=Ve,lr[ot+".range"]=[null,Ar._rangeInitial1]):Ar._rangeInitial1===void 0?(lr[ot+".range"]=[Ar._rangeInitial0,null],lr[ot+".autorange"]=Ve):lr[ot+".range"]=[Ar._rangeInitial0,Ar._rangeInitial1]}}e.emit("plotly_doubleclick",null),e5.call("_guiRelayout",e,lr)}}function fe(){Ce([0,0,_,x]),gl.syncOrAsync([P2e.previousPromises,function(){e._fullLayout._replotting=!1,e5.call("_guiRelayout",e,U)}],e)}function Ce(de){var Le=e._fullLayout,lr=Le._plots,Ar=Le._subplots.cartesian,ur,Cr,Er,Vr;if(z&&e5.subplotsRegistry.splom.drag(e),q){for(ur=0;ur<Ar.length;ur++)if(Cr=lr[Ar[ur]],Er=Cr.xaxis,Vr=Cr.yaxis,Cr._scene){Er.limitRange&&Er.limitRange(),Vr.limitRange&&Vr.limitRange();var ot=gl.simpleMap(Er.range,Er.r2l),Ve=gl.simpleMap(Vr.range,Vr.r2l);Cr._scene.update({range:[ot[0],Ve[0],ot[1],Ve[1]]})}}if((z||q)&&(R2e(e),F2e(e)),B){var Mr=de[2]/c._length,Qe=de[3]/v._length;for(ur=0;ur<Ar.length;ur++){Cr=lr[Ar[ur]],Er=Cr.xaxis,Vr=Cr.yaxis;var zr=(R||k.isSubplotConstrained)&&!Er.fixedrange&&d[Er._id],it=(P||k.isSubplotConstrained)&&!Vr.fixedrange&&p[Vr._id],lt,Qr,se,Te;if(zr?(lt=Mr,se=l||k.isSubplotConstrained?de[0]:at(Er,lt)):k.xaHash[Er._id]?(lt=Mr,se=de[0]*Er._length/c._length):k.yaHash[Er._id]?(lt=Qe,se=C==="ns"?-de[1]*Er._length/v._length:at(Er,lt,{n:"top",s:"bottom"}[C])):(lt=Tr(Er,Mr,Qe),se=tt(Er,lt)),lt>1&&(Er.maxallowed!==void 0&&R===(Er.range[0]<Er.range[1]?"e":"w")||Er.minallowed!==void 0&&R===(Er.range[0]<Er.range[1]?"w":"e"))&&(lt=1,se=0),it?(Qr=Qe,Te=o||k.isSubplotConstrained?de[1]:at(Vr,Qr)):k.yaHash[Vr._id]?(Qr=Qe,Te=de[1]*Vr._length/v._length):k.xaHash[Vr._id]?(Qr=Mr,Te=M==="ew"?-de[0]*Vr._length/c._length:at(Vr,Qr,{e:"right",w:"left"}[M])):(Qr=Tr(Vr,Mr,Qe),Te=tt(Vr,Qr)),Qr>1&&(Vr.maxallowed!==void 0&&P===(Vr.range[0]<Vr.range[1]?"n":"s")||Vr.minallowed!==void 0&&P===(Vr.range[0]<Vr.range[1]?"s":"n"))&&(Qr=1,Te=0),!(!lt&&!Qr)){lt||(lt=1),Qr||(Qr=1);var tr=Er._offset-se/lt,vr=Vr._offset-Te/Qr;Cr.clipRect.call(zf.setTranslate,se,Te).call(zf.setScale,lt,Qr),Cr.plot.call(zf.setTranslate,tr,vr).call(zf.setScale,1/lt,1/Qr),(lt!==Cr.xScaleFactor||Qr!==Cr.yScaleFactor)&&(zf.setPointGroupScale(Cr.zoomScalePts,lt,Qr),zf.setTextPointsScale(Cr.zoomScaleTxt,lt,Qr)),zf.hideOutsideRangePoints(Cr.clipOnAxisFalseTraces,Cr),Cr.xScaleFactor=lt,Cr.yScaleFactor=Qr}}}}function Tr(de,Le,lr){return de.fixedrange?0:R&&w.xaHash[de._id]?Le:P&&(w.isSubplotConstrained?w.xaHash:w.yaHash)[de._id]?lr:0}function tt(de,Le){return Le?(de.range=de._r.slice(),bw(de,Le),at(de,Le)):0}function at(de,Le,lr){return de._length*(1-Le)*q2e[lr||de.constraintoward||"middle"]}return J}function UB(e,r,t,a){var n=gl.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(L2e,a),n.node()}function GB(e,r,t,a,n,i,o){var l=UB(e,"rect",r,t);return Tw.select(l).call(zf.setRect,a,n,i,o),l}function NB(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function O2e(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,qB("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,qB("."+String(n)+"g")(t))}function ww(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;ww(n,v,1-v,a,[])}}function zB(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 H2e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function U2e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function YB(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",OB(t,a)).attr("d",n+"Z")}function VB(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:xw.background,stroke:xw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",OB(r,t)).attr("d","M0,0Z")}function XB(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"),WB(e,r,n,i)}function WB(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 Aw(e){Tw.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ZB(e){PB&&e.data&&e._context.showTips&&(gl.notifier(gl._(e,"Double-click to zoom back out"),"long",e),PB=!1)}function G2e(e,r){return"M"+(e.l-.5)+","+(r-ho-.5)+"h-3v"+(2*ho+1)+"h3ZM"+(e.r+.5)+","+(r-ho-.5)+"h3v"+(2*ho+1)+"h-3Z"}function Y2e(e,r){return"M"+(r-ho-.5)+","+(e.t-.5)+"v-3h"+(2*ho+1)+"v3ZM"+(r-ho-.5)+","+(e.b+.5)+"v3h"+(2*ho+1)+"v-3Z"}function t5(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,ho)/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 IB(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 m=r[p];for(s in t)if(m[s]){for(f in m)!(n&&(v[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(v[u]||d[u]))&&m[u]&&(i=!0)}for(u in a)if(m[u])for(c in m)!(n&&(v[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(gl.extendFlat(o,l),l={});var y={},b=[];for(f in o){var T=_w(e,f);b.push(T),y[T._id]=T}var _={},x=[];for(c in l){var w=_w(e,c);x.push(w),_[w._id]=w}return{xaHash:y,yaHash:_,xaxes:b,yaxes:x,xLinks:o,yLinks:l,isSubplotConstrained:i}}function JB(e,r){if(!k2e)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 BB(e){var r=[];for(var t in e)r.push(e[t]);return r}jB.exports={makeDragBox:B2e,makeDragger:UB,makeRectDragger:GB,makeZoombox:YB,makeCorners:VB,updateZoombox:XB,xyCorners:t5,transitionZoombox:WB,removeZoombox:Aw,showDoubleClickNotifier:ZB,attachWheelEventHandler:JB}});var kw=I(n5=>{"use strict";var V2e=sa(),a5=mu(),X2e=Yl(),W2e=Cf(),Wl=$B().makeDragBox,gi=(ni(),hr(ai)).DRAGGERSIZE;n5.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){V2e.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=Wl(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]&&a5.hover(r,v,i)},a5.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,X2e.unhover(r,v))},r._context.showAxisDragHandles&&(Wl(r,o,l._offset-gi,s._offset-gi,gi,gi,"n","w"),Wl(r,o,l._offset+l._length,s._offset-gi,gi,gi,"n","e"),Wl(r,o,l._offset-gi,s._offset+s._length,gi,gi,"s","w"),Wl(r,o,l._offset+l._length,s._offset+s._length,gi,gi,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=gi),Wl(r,o,l._offset+l._length*.1,f,l._length*.8,gi,"","ew"),Wl(r,o,l._offset,f,l._length*.1,gi,"","w"),Wl(r,o,l._offset+l._length*.9,f,l._length*.1,gi,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=gi),Wl(r,o,c,s._offset+s._length*.1,gi,s._length*.8,"ns",""),Wl(r,o,c,s._offset+s._length*.9,gi,s._length*.1,"s",""),Wl(r,o,c,s._offset,gi,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,a5.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,a5.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},n5.updateFx(r)}};n5.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";W2e(r._draggers,t)}});var eO=I((RFe,QB)=>{"use strict";var KB=Pt();QB.exports=function(r){for(var t=KB.layoutArrayContainers,a=KB.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 tO=I(Vp=>{"use strict";var Z2e=qc(),Sw=Gg(),Yp=of(),J2e=c6().sorterAsc,Cw=Pt();Vp.containerArrayMatch=eO();var j2e=Vp.isAddVal=function(r){return r==="add"||Z2e(r)},rO=Vp.isRemoveVal=function(r){return r===null||r==="remove"};Vp.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Cw.getComponentMethod(o,"supplyLayoutDefaults"),s=Cw.getComponentMethod(o,"draw"),u=Cw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===Sw||s===Sw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Yp.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(rO(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Yp.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(J2e),m=t.get(),y=m||[],b=i(v,o).get(),T=[],_=-1,x=y.length,w,k,M,C,D,R,P,q;for(w=0;w<p.length;w++){if(M=p[w],C=a[M],D=Object.keys(C),R=C[""],P=j2e(R),M<0||M>y.length-(P?0:1)){Yp.warn("index out of range",o,M);continue}if(R!==void 0)D.length>1&&Yp.warn("Insertion & removal are incompatible with edits to the same index.",o,M),rO(R)?T.push(M):P?(R==="add"&&(R={}),y.splice(M,0,R),b&&b.splice(M,0,{})):Yp.warn("Unrecognized full object edit value",o,M,R),_===-1&&(_=M);else for(k=0;k<D.length;k++)q=o+"["+M+"].",i(y[M],D[k],q).set(C[D[k]])}for(w=T.length-1;w>=0;w--)y.splice(T[w],1),b&&b.splice(T[w],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==Sw){var z;if(_===-1)z=p;else{for(x=Math.max(y.length,x),z=[],w=0;w<p.length&&(M=p[w],!(M>=_));w++)z.push(M);for(w=_;w<x;w++)z.push(w)}for(w=0;w<z.length;w++)u(r,z[w])}else s(r);return!0}});var uO=I(bl=>{"use strict";var oO=da(),lO=Pt(),no=ir(),Xp=pi(),sO=mn(),Wp=sO.cleanId,$2e=sO.getFromTrace,Lw=lO.traceIs,K2e=["x","y","z"];bl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&no.log("Clearing previous rejected promises from queue."),e._promises=[]};bl.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=(Xp.subplotsRegistry.cartesian||{}).attrRegex,n=(Xp.subplotsRegistry.polar||{}).attrRegex,i=(Xp.subplotsRegistry.ternary||{}).attrRegex,o=(Xp.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=Wp(u.anchor)),u.overlaying&&(u.overlaying=Wp(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,i5(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];no.isPlainObject(c)&&(kh(c,"xref"),kh(c,"yref"))}var v=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<v;r++){var d=e.shapes[r];no.isPlainObject(d)&&(kh(d,"xref",!0),kh(d,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var m=e.images[r];no.isPlainObject(m)&&(kh(m,"xref"),kh(m,"yref"))}var y=e.legend;return y&&(y.x>3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&bl.cleanLayout(e.template.layout),e};function kh(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Wp(a,n,!0))}bl.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"&&bl.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=Wp(t.xaxis,"x")),t.yaxis&&(t.yaxis=Wp(t.yaxis,"y")),Lw(t,"gl3d")&&t.scene&&(t.scene=Xp.subplotsRegistry.gl3d.cleanId(t.scene)),!Lw(t,"pie-like")&&!Lw(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=nO(t.textposition[a]);else t.textposition&&(t.textposition=nO(t.textposition));var n=lO.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"&&no.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];no.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=aO(t.increasing),v=aO(t.decreasing);if(c!==!1&&v!==!1){var d=Q2e(c,v,u,f);d&&(t.name=d)}else(c||v)&&!t.name&&(t.name=c||v)}i5(t,"line")&&delete t.line,"marker"in t&&(i5(t.marker,"line")&&delete t.marker.line,i5(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function aO(e){if(!no.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function Q2e(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 nO(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 i5(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}bl.swapXYData=function(e){var r;if(no.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);no.swapAttrs(e,["error_?.copy_ystyle"]),a&&no.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("+")}};bl.coerceTraceIndices=function(e,r){if(oO(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++)no.isIndex(r[a],e.data.length)?t.push(r[a]):no.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};bl.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=oO(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=no.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 e3e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function iO(e){var r=e.search(e3e);if(r>0)return e.slice(0,r)}bl.hasParent=function(e,r){for(var t=iO(r);t;){if(t in e)return!0;t=iO(t)}return!1};bl.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=$2e(e,n,K2e[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&&no.nestedProperty(e.layout,u).set(null)}}};var Ew=(e,r)=>{let t=(...a)=>a.every(n=>no.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)?Ew(n,i):!1))return!1}return!0}else if([e,r].every(a=>no.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)?Ew(n,i):!1))return!1}return!0}return!1};bl.collectionsAreEqual=Ew});var Pw=I(ua=>{"use strict";var u5=sa(),r3e=da(),t3e=T6(),Wr=ir(),za=Wr.nestedProperty,qw=V1(),po=KD(),xl=Pt(),m5=Kv(),zt=pi(),io=tn(),a3e=$7(),n3e=vl(),l5=Sa(),i3e=Kt(),o3e=kw().initInteractions,l3e=(xf(),hr(bf)),s3e=Mh().clearOutline,dO=nf().dfltConfig,o5=tO(),On=uO(),La=U3(),If=Il(),u3e=(ni(),hr(ai)).AX_NAME_PATTERN,Dw=0,fO=5;function f3e(e,r,t,a){var n;if(e=Wr.getGraphDiv(e),qw.init(e),Wr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=qw.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Wr.isPlotDiv(e)&&Wr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return ua.addFrames(e,n)}mO(e,a),t||(t={}),u5.select(e).classed("js-plotly-plot",!0),l5.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(On.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=On.cleanLayout(t)),zt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(F3e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),l5.initGradients(e),l5.initPatterns(e),s&&io.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.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 C=()=>{Wr.isHidden(e)||zt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",C),e._clearResponsive=()=>window.removeEventListener("resize",C);else{let D=e.offsetWidth,R=e.offsetHeight,P=new ResizeObserver(()=>{let q=e.offsetWidth,z=e.offsetHeight,B=Math.abs(q-D)>1||Math.abs(z-R)>1;D=q,R=z,B&&q&&z&&C()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else Wr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(C=>C.status!=="loaded"):[];var p=Wr.extendFlat({},u._size),m=0;function y(){for(var C=u._basePlotModules,D=0;D<C.length;D++)C[D].drawFramework&&C[D].drawFramework(e);!u._glcanvas&&u._has("gl")&&(u._glcanvas=u._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(z){return z.key}),u._glcanvas.enter().append("canvas").attr("class",function(z){return"gl-canvas gl-canvas-"+z.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var R=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*R).attr("height",u.height*R).style("width",u.width+"px").style("height",u.height+"px");var P=u._glcanvas.data()[0].regl;if(P&&(Math.floor(u.width*R)!==P._gl.drawingBufferWidth||Math.floor(u.height*R)!==P._gl.drawingBufferHeight)){var q="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(m)Wr.error(q);else return Wr.log(q+" Clearing graph and plotting again."),zt.cleanPlot([],{},e._fullData,u),zt.supplyDefaults(e),u=e._fullLayout,zt.doCalcdata(e),m++,y()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),zt.previousPromises(e)}function b(){if(zt.clearAutoMarginIds(e),La.drawMarginPushers(e),io.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&zt.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var C=e._fullData,D=0;D<C.length;D++){var R=C[D];R.type==="pie"&&R.automargin&&zt.allowAutoMargin(e,"pie."+R.uid+".automargin")}return zt.doAutoMargin(e),zt.previousPromises(e)}function T(){if(zt.didMarginChange(p,u._size))return b()}function _(){if(!c){x();return}return Wr.syncOrAsync([xl.getComponentMethod("shapes","calcAutorange"),xl.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(La.doAutoRangeAndConstraints(e),s&&io.saveRangeInitial(e),xl.getComponentMethod("rangeslider","calcAutorange")(e))}function w(){return io.draw(e,s?"":"redraw")}var k=[zt.previousPromises,l,y,b,T];f&&k.push(_),k.push(La.layoutStyles),f&&k.push(w,function(D){var R=D._fullLayout._insideTickLabelsUpdaterange;if(R)return D._fullLayout._insideTickLabelsUpdaterange=void 0,Zp(D,R).then(function(){io.saveRangeInitial(D,!0)})}),k.push(La.drawData,La.finalDraw,o3e,zt.rehover,zt.redrag,zt.reselect,zt.doAutoMargin,zt.previousPromises);var M=Wr.syncOrAsync(k,e);return(!M||!M.then)&&(M=Promise.resolve()),M.then(function(){return c3e(e,d),Jp(e),e})}function c3e(e,r){return ZM(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,l5.savedBBoxes={},ua._doPlot(e))})}function Jp(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function v3e(e){return Wr.extendFlat(dO,e)}function pO(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Wr.error(t)}}function h3e(e,r){var t=i3e.combine(r,"white");pO(e,t)}function mO(e,r){if(!e._context){e._context=Wr.extendDeep({},dO);var t=u5.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]=h3e: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"&&!t3e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=pO),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 d3e(e){if(e=Wr.getGraphDiv(e),!Wr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return On.cleanData(e.data),On.cleanLayout(e.layout),e.calcdata=void 0,ua._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function p3e(e,r,t,a){return e=Wr.getGraphDiv(e),zt.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),zt.purge(e),ua._doPlot(e,r,t,a)}function f5(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 c5(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 yO(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]),c5(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&c5(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function m3e(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 y3e(e,r,t,a){var n=Wr.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Wr.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");c5(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 g3e(e,r,t,a){var n=Wr.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=f5(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=za(o,c),l=s.get(),u=r[c][v],!Wr.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+v+" must be an array");if(!Wr.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,r3e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function gO(e,r,t,a,n){y3e(e,r,t,a);for(var i=g3e(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 bO(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function xO(e,r,t,a){e=Wr.getGraphDiv(e);function n(s,u,f){var c,v;if(Wr.isTypedArray(s))if(f<0){var d=new s.constructor(0),p=bO(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 m=u.length-f;c.set(u.subarray(m)),v.set(s),v.set(u.subarray(0,m),s.length)}else{var y=f-u.length,b=s.length-y;c.set(s.subarray(b)),c.set(u,y),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=gO(e,r,t,a,n),o=ua.redraw(e),l=[e,i.update,t,i.maxPoints];return po.add(e,ua.prependTraces,l,xO,arguments),o}function _O(e,r,t,a){e=Wr.getGraphDiv(e);function n(s,u,f){var c,v;if(Wr.isTypedArray(s))if(f<=0){var d=new s.constructor(0),p=bO(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 m=u.length-f;c.set(u.subarray(0,m)),v.set(u.subarray(m)),v.set(s,m)}else{var y=f-u.length;c.set(u),c.set(s.subarray(0,y),u.length),v.set(s.subarray(y))}else c=u.concat(s),v=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,v]}var i=gO(e,r,t,a,n),o=ua.redraw(e),l=[e,i.update,t,i.maxPoints];return po.add(e,ua.extendTraces,l,_O,arguments),o}function wO(e,r,t){e=Wr.getGraphDiv(e);var a=[],n=ua.deleteTraces,i=wO,o=[e,a],l=[e,r],s,u;for(m3e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return Wr.extendFlat({},f)}),On.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=ua.redraw(e),po.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{yO(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return po.startSequence(e),po.add(e,n,o,i,l),u=ua.moveTraces(e,a,t),po.stopSequence(e),u}function AO(e,r){e=Wr.getGraphDiv(e);var t=[],a=ua.addTraces,n=AO,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]),c5(e,r,"indices"),r=f5(r,e.data.length-1),r.sort(Wr.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=ua.redraw(e);return po.add(e,a,i,n,o),u}function Rw(e,r,t){e=Wr.getGraphDiv(e);var a=[],n=[],i=Rw,o=Rw,l=[e,t,r],s=[e,r,t],u;if(yO(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=f5(r,e.data.length-1),t=f5(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=ua.redraw(e);return po.add(e,i,l,o,s),f}function v5(e,r,t,a){e=Wr.getGraphDiv(e),On.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(Wr.isPlainObject(r))n=Wr.extendFlat({},r),a===void 0&&(a=t);else return Wr.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=On.coerceTraceIndices(e,a),o=TO(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&On.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push(ua._doPlot):(s.push(zt.previousPromises),zt.supplyDefaults(e),l.markerSize&&(zt.doCalcdata(e),y5(s)),l.style&&s.push(La.doTraceStyle),l.colorbars&&s.push(La.doColorBars),s.push(Jp)),s.push(zt.rehover,zt.redrag,zt.reselect),po.add(e,v5,[e,o.undoit,o.traces],v5,[e,o.redoit,o.traces]);var u=Wr.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function xu(e){return e===void 0?null:e}function s5(e,r){return r?function(t,a,n){var i=za(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;h5(s,i.get(),l,e),o(l)},i}:za}function h5(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++)h5(e+"["+l+"]",n[l],i[l],a);else if(Wr.isPlainObject(r)||Wr.isPlainObject(t)){var s=Wr.isPlainObject(r)?r:{},u=Wr.isPlainObject(t)?t:{},f=Wr.extendFlat({},s,u);for(var c in f)h5(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=xu(r))}function b3e(e,r,t){for(var a in t){var n=za(e,a);h5(a,n.get(),t[a],r)}}function TO(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=s5(a._preGUI,o),s=Wr.extendDeepAll({},r),u,f=If.traceFlags(),c={},v={},d;function p(){return t.map(function(){})}function m(ge){var Oe=io.id2name(ge);d.indexOf(Oe)===-1&&d.push(Oe)}function y(ge){return"LAYOUT"+ge+".autorange"}function b(ge){return"LAYOUT"+ge+".range"}function T(ge,Oe,cr){if(Array.isArray(ge)){ge.forEach(function(We){T(We,Oe,cr)});return}if(!(ge in r||On.hasParent(r,ge))){var qe;if(ge.slice(0,6)==="LAYOUT")qe=l(e.layout,ge.replace("LAYOUT",""));else{var ze=t[cr],Ue=a._tracePreGUI[n[ze].uid];qe=s5(Ue,o)(i[ze],ge)}ge in v||(v[ge]=p()),v[ge][cr]===void 0&&(v[ge][cr]=xu(qe.get())),Oe!==void 0&&qe.set(Oe)}}function _(ge){return function(Oe){return n[Oe][ge]}}function x(ge){return function(Oe,cr){return Oe===!1?n[t[cr]][ge]:null}}for(var w in r){if(On.hasParent(r,w))throw new Error("cannot set "+w+" and a parent attribute simultaneously");var k=r[w],M,C,D,R,P,q;if((w==="autobinx"||w==="autobiny")&&(w=w.charAt(w.length-1)+"bins",Array.isArray(k)?k=k.map(x(w)):k===!1?k=t.map(_(w)):k=null),c[w]=k,w.slice(0,6)==="LAYOUT"){D=l(e.layout,w.replace("LAYOUT","")),v[w]=[xu(D.get())],D.set(Array.isArray(k)?k[0]:k),f.calc=!0;continue}for(v[w]=p(),u=0;u<t.length;u++){M=i[t[u]],C=n[t[u]];var z=a._tracePreGUI[C.uid];if(D=s5(z,o)(M,w),R=D.get(),P=Array.isArray(k)?k[u%k.length]:k,P!==void 0){var B=D.parts[D.parts.length-1],U=w.slice(0,w.length-B.length-1),G=U?U+".":"",X=U?za(C,U).get():C;if(q=m5.getTraceValObject(C,D.parts),q&&q.impliedEdits&&P!==null)for(var Y in q.impliedEdits)T(Wr.relativeAttr(w,Y),q.impliedEdits[Y],u);else if((B==="thicknessmode"||B==="lenmode")&&R!==P&&(P==="fraction"||P==="pixels")&&X){var V=a._size,J=X.orient,j=J==="top"||J==="bottom";if(B==="thicknessmode"){var ee=j?V.h:V.w;T(G+"thickness",X.thickness*(P==="fraction"?1/ee:ee),u)}else{var pe=j?V.w:V.h;T(G+"len",X.len*(P==="fraction"?1/pe:pe),u)}}else if(w==="type"&&(P==="pie"!=(R==="pie")||P==="funnelarea"!=(R==="funnelarea"))){var ne="x",ye="y";(P==="bar"||R==="bar")&&M.orientation==="h"&&(ne="y",ye="x"),Wr.swapAttrs(M,["?"],"labels",ne),Wr.swapAttrs(M,["d?","?0"],"label",ne),Wr.swapAttrs(M,["?"],"values",ye),R==="pie"||R==="funnelarea"?(za(M,"marker.color").set(za(M,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):xl.traceIs(M,"cartesian")&&za(M,"marker.colors").set(za(M,"marker.color").get())}v[w][u]=xu(R);var te=["swapxy","swapxyaxes","orientation","orientationaxes"];if(te.indexOf(w)!==-1){if(w==="orientation"){D.set(P);var De=M.x&&!M.y?"h":"v";if((D.get()||De)===C.orientation)continue}else w==="orientationaxes"&&(M.orientation={v:"h",h:"v"}[C.orientation]);On.swapXYData(M),f.calc=f.clearAxisTypes=!0}else zt.dataArrayContainers.indexOf(D.parts[0])!==-1?(On.manageArrayContainers(D,P,v),f.calc=!0):(q?q.arrayOk&&!xl.traceIs(C,"regl")&&(Wr.isArrayOrTypedArray(P)||Wr.isArrayOrTypedArray(R))?f.calc=!0:If.update(f,q):f.calc=!0,D.set(P))}}if(["swapxyaxes","orientationaxes"].indexOf(w)!==-1&&io.swap(e,t),w==="orientationaxes"){var ce=za(e.layout,"hovermode"),Re=ce.get();Re==="x"?ce.set("y"):Re==="y"?ce.set("x"):Re==="x unified"?ce.set("y unified"):Re==="y unified"&&ce.set("x unified")}if(["orientation","type"].indexOf(w)!==-1){for(d=[],u=0;u<t.length;u++){var Fe=i[t[u]];xl.traceIs(Fe,"cartesian")&&(m(Fe.xaxis||"x"),m(Fe.yaxis||"y"))}T(d.map(y),!0,0),T(d.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:v,redoit:c,traces:t,eventData:Wr.extendDeepNoArrays([],[s,t])}}function Zp(e,r,t){e=Wr.getGraphDiv(e),On.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(Wr.isPlainObject(r))a=Wr.extendFlat({},r);else return Wr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=CO(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[zt.previousPromises];i.layoutReplot?o.push(La.layoutReplot):Object.keys(a).length&&(MO(e,i,n)||zt.supplyDefaults(e),i.legend&&o.push(La.doLegend),i.layoutstyle&&o.push(La.layoutStyles),i.axrange&&y5(o,n.rangesAltered),i.ticks&&o.push(La.doTicksRelayout),i.modebar&&o.push(La.doModeBar),i.camera&&o.push(La.doCamera),i.colorbars&&o.push(La.doColorBars),o.push(Jp)),o.push(zt.rehover,zt.redrag,zt.reselect),po.add(e,Zp,[e,n.undoit],Zp,[e,n.redoit]);var l=Wr.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function MO(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 Wr.coerce(i,o,n3e,d,p)},s={};for(var u in t.rangesAltered){var f=io.id2name(u);if(i=e.layout[f],o=a[f],a3e(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var v=a[io.id2name(c)];v.autorange=o.autorange,v.range=o.range.slice(),v._input.range=o.range.slice()}}}return!0}function y5(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=io.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 io.draw(a,n,{skipTitle:i})}:function(a){return io.draw(a,"redraw")};e.push(s3e,La.doAutoRangeAndConstraints,t,La.drawData,La.finalDraw)}var kO=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,SO=/^[xyz]axis[0-9]*\.autorange$/,x3e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function CO(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=s5(a._preGUI,n),o=Object.keys(r),l=io.list(e),s=Wr.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+".":"",m=o[c].replace("allaxes",p+l[v]._name);r[m]||(r[m]=r[o[c]])}delete r[o[c]]}var y=If.layoutFlags(),b={},T={};function _(We,Ge){if(Array.isArray(We)){We.forEach(function(Ye){_(Ye,Ge)});return}if(!(We in r||On.hasParent(r,We))){var or=i(t,We);We in T||(T[We]=xu(or.get())),Ge!==void 0&&or.set(Ge)}}var x={},w;function k(We){var Ge=io.name2id(We.split(".")[0]);return x[Ge]=1,Ge}for(var M in r){if(On.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");for(var C=i(t,M),D=r[M],R=C.parts.length,P=R-1;P>0&&typeof C.parts[P]!="string";)P--;var q=C.parts[P],z=C.parts[P-1]+"."+q,B=C.parts.slice(0,P).join("."),U=za(e.layout,B).get(),G=za(a,B).get(),X=C.get();if(D!==void 0){b[M]=D,T[M]=q==="reverse"?D:xu(X);var Y=m5.getLayoutValObject(a,C.parts);if(Y&&Y.impliedEdits&&D!==null)for(var V in Y.impliedEdits)_(Wr.relativeAttr(M,V),Y.impliedEdits[V]);if(["width","height"].indexOf(M)!==-1)if(D){_("autosize",null);var J=M==="height"?"width":"height";_(J,a[J])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",D?null:a.width),_("height",D?null:a.height);else if(z.match(kO))k(z),za(a,B+"._inputRange").set(null);else if(z.match(SO)){k(z),za(a,B+"._inputRange").set(null);var j=za(a,B).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else z.match(x3e)&&za(a,B+"._inputDomain").set(null);if(q==="type"){w=U;var ee=G.type==="linear"&&D==="log",pe=G.type==="log"&&D==="linear";if(ee||pe){if(!w||!w.range)_(B+".autorange",!0);else if(G.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var ne=w.range[0],ye=w.range[1];ee?(ne<=0&&ye<=0&&_(B+".autorange",!0),ne<=0?ne=ye/1e6:ye<=0&&(ye=ne/1e6),_(B+".range[0]",Math.log(ne)/Math.LN10),_(B+".range[1]",Math.log(ye)/Math.LN10)):(_(B+".range[0]",Math.pow(10,ne)),_(B+".range[1]",Math.pow(10,ye)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[C.parts[0]]&&C.parts[1]==="radialaxis"&&delete a[C.parts[0]]._subplot.viewInitial["radialaxis.range"],xl.getComponentMethod("annotations","convertCoords")(e,G,D,_),xl.getComponentMethod("images","convertCoords")(e,G,D,_)}else _(B+".autorange",!0),_(B+".range",null);za(a,B+"._inputRange").set(null)}else if(q.match(u3e)){var te=za(a,M).get(),De=(D||{}).type;(!De||De==="-")&&(De="linear"),xl.getComponentMethod("annotations","convertCoords")(e,te,De,_),xl.getComponentMethod("images","convertCoords")(e,te,De,_),!B&&te&&D&&(D.range!==void 0||D.autorange!==void 0)&&(k(`${q}.range`),te._inputRange=null)}var ce=o5.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var Re=ce.property,Fe=Y||{editType:"calc"};c!==""&&Re===""&&(o5.isAddVal(D)?T[M]=null:o5.isRemoveVal(D)?T[M]=(za(t,f).get()||[])[c]:Wr.warn("unrecognized full object value",r)),If.update(y,Fe),u[f]||(u[f]={});var ge=u[f][c];ge||(ge=u[f][c]={}),ge[Re]=D,delete r[M]}else q==="reverse"?(U.range?U.range.reverse():(_(B+".autorange",!0),U.range=[1,0]),G.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(D===!1&&X!==!1||D!==!1&&X===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(D==="lasso"||D==="select")&&!(X==="lasso"||X==="select")?y.plot=!0:Y?If.update(y,Y):y.calc=!0,C.set(D))}}for(f in u){var Oe=o5.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Oe||(y.plot=!0)}for(var cr in x){w=io.getFromId(e,cr);var qe=w&&w._constraintGroup;if(qe){y.calc=!0;for(var ze in qe)x[ze]||(io.getFromId(e,ze)._constraintShrinkable=!0)}}(LO(e)||r.height||r.width)&&(y.plot=!0);var Ue=a.shapes;for(c=0;c<Ue.length;c++)if(Ue[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:x,undoit:T,redoit:b,eventData:s}}function LO(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&zt.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function d5(e,r,t,a){e=Wr.getGraphDiv(e),On.clearPromiseQueue(e),Wr.isPlainObject(r)||(r={}),Wr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=On.coerceTraceIndices(e,a),i=TO(e,Wr.extendFlat({},r),n),o=i.flags,l=CO(e,Wr.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&On.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(La.layoutReplot):o.fullReplot?u.push(ua._doPlot):(u.push(zt.previousPromises),MO(e,s,l)||zt.supplyDefaults(e),o.style&&u.push(La.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(La.doColorBars),s.legend&&u.push(La.doLegend),s.layoutstyle&&u.push(La.layoutStyles),s.axrange&&y5(u,l.rangesAltered),s.ticks&&u.push(La.doTicksRelayout),s.modebar&&u.push(La.doModeBar),s.camera&&u.push(La.doCamera),u.push(Jp)),u.push(zt.rehover,zt.redrag,zt.reselect),po.add(e,d5,[e,i.undoit,l.undoit,i.traces],d5,[e,i.redoit,l.redoit,i.traces]);var f=Wr.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 Fw(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var _3e=[{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"}],w3e=[{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 cO(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 vO(e,r){var t=za(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=za(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function A3e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function T3e(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 hO(e,r){var t=Wr.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&Wr.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function M3e(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,v,d,p,m=[],y={},b={};for(i in n){if(u=cO(i,_3e),u){if(d=u.head,p=u.tail,o=u.attr||d+".uirevision",l=za(a,o).get(),s=l&&vO(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=za(r,i),v=c.get(),hO(v,f)){v===void 0&&p==="autorange"&&m.push(d),c.set(xu(za(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var T=n[d+".range[0]"],_=n[d+".range[1]"],x=n[d+".autorange"];if(x||x===null&&T===null&&_===null){if(!(d in y)){var w=za(r,d).get();y[d]=w&&(w.autorange||w.autorange!==!1&&(!w.range||w.range.length!==2))}if(y[d]){c.set(xu(za(a,i).get()));continue}}}}}else Wr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(b[u.head]=1)}for(var k=0;k<m.length;k++){var M=m[k];if(b[M]){var C=za(r,M).get();C&&delete C.autorange}}var D=a._tracePreGUI;for(var R in D){var P=D[R],q=null,z;for(i in P){if(!q){var B=A3e(R,t);if(B<0){delete D[R];break}z=t[B];var U=T3e(R,e,z.index);if(U<0){delete D[R];break}q=e[U]}if(u=cO(i,w3e),u){if(u.attr?(l=za(a,u.attr).get(),s=l&&vO(u.attr,r)):(l=z.uirevision,s=q.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=P[i],f===null&&(f=void 0),c=za(q,i),v=c.get(),hO(v,f))){c.set(xu(za(z,i).get()));continue}}else Wr.warn("unrecognized GUI edit: "+i+" in trace uid "+R);delete P[i]}}}function k3e(e,r,t,a){var n,i;function o(){return ua.addFrames(e,n)}e=Wr.getGraphDiv(e),On.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!Wr.isPlotDiv(e)||!l||!s)i=ua.newPlot(e,r,t,a);else{if(Wr.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let z=Wr.extendDeepAll({},e._context);e._context=void 0,mO(e,a),f=!On.collectionsAreEqual(z,e._context)}if(f){let z=e._ev.eventNames().map(B=>[B,e._ev.listeners(B)]);i=ua.newPlot(e,r,t,a).then(()=>{for(let[B,U]of z)U.forEach(G=>e.on(B,G));return ua.react(e,r,t,a)})}else{e.data=r||[],On.cleanData(e.data),e.layout=t||{},On.cleanLayout(e.layout),M3e(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,m=C3e(e,s,v,d,p),y=m.newDataRevision,b=S3e(e,l,c,d,p,y);if(LO(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_<T.length;_++){var x=T[_],w=x.substring(0,5);if(w==="xaxis"||w==="yaxis"){var k=v[x]._emptyCategories;k&&k()}}}else zt.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},zt.createTransitionData(e),M.push(o)),v.transition&&(b.anim||m.anim))m.ticks&&M.push(La.doTicksRelayout),zt.doCalcdata(e),La.doAutoRangeAndConstraints(e),M.push(function(){return zt.transitionFromReact(e,b,m,s)});else if(b.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(ua._doPlot);else{for(var C in m.arrays){var D=m.arrays[C];if(D.length){var R=xl.getComponentMethod(C,"drawOne");if(R!==Wr.noop)for(var P=0;P<D.length;P++)R(e,D[P]);else{var q=xl.getComponentMethod(C,"draw");if(q===Wr.noop)throw new Error("cannot draw components: "+C);q(e)}}}M.push(zt.previousPromises),b.style&&M.push(La.doTraceStyle),(b.colorbars||m.colorbars)&&M.push(La.doColorBars),m.legend&&M.push(La.doLegend),m.layoutstyle&&M.push(La.layoutStyles),m.axrange&&y5(M),m.ticks&&M.push(La.doTicksRelayout),m.modebar&&M.push(La.doModeBar),m.camera&&M.push(La.doCamera),M.push(Jp)}M.push(zt.rehover,zt.redrag,zt.reselect),i=Wr.syncOrAsync(M,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function S3e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=If.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=m5.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,p5(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 C3e(e,r,t,a,n){var i=If.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(v){return m5.getLayoutValObject(t,v)}for(var l in t){if(!l.startsWith("xaxis")&&!l.startsWith("yaxis")||!r[l])continue;var s=t[l].domain,u=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[l].domain=r[l].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[l]._inputDomain=null));let v=t[l].range,d=r[l].range,p=r[l]._inputRange;if(p&&v&&d){let m=v[0]===p[0]&&v[1]===p[1],y=v[0]===d[0]&&v[1]===d[1];!m&&!y&&(t[l]._inputRange=null)}}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return p5(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 p5(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 B=n.editType;if(f&&B.indexOf("arraydraw")!==-1){Wr.pushUnique(s.arrays[f],c);return}If.update(s,n),B!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(kO.test(o)||SO.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function d(B){return B.valType==="data_array"||B.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],m=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===m)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var b=r.tickmode;if(b==="auto"||b==="array"||!b)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(y),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(m)))){var T=n.valType,_,x=d(n),w=Array.isArray(p),k=Array.isArray(m);if(w&&k){var M="_input_"+i,C=e[M],D=r[M];if(Array.isArray(C)&&C===D)continue}if(m===void 0)x&&w?s.calc=!0:v();else if(n._isLinkedToArray){var R=[],P=!1;f||(s.arrays[i]=R);var q=Math.min(p.length,m.length),z=Math.max(p.length,m.length);if(q!==z)if(n.editType==="arraydraw")P=!0;else{v();continue}for(_=0;_<q;_++)p5(p[_],m[_],y.concat(_),Wr.extendFlat({inArray:i,arrayIndex:_},a));if(P)for(_=q;_<z;_++)R.push(_)}else!T&&Wr.isPlainObject(p)?p5(p,m,y,a):x?w&&k?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):w!==k?s.calc=!0:v():w&&k?(p.length!==m.length||String(p)!==String(m))&&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 L3e(e,r,t){if(e=Wr.getGraphDiv(e),!Wr.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=zt.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 q=a._frameQueue.pop();q.onInterrupt&&q.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(q){if(q.length!==0){for(var z=0;z<q.length;z++){var B;q[z].type==="byname"?B=zt.computeFrame(e,q[z].name):B=q[z].data;var U=l(z),G=o(z);G.duration=Math.min(G.duration,U.duration);var X={frame:B,name:q[z].name,frameOpts:U,transitionOpts:G};z===q.length-1&&(X.onComplete=s(u,2),X.onInterrupt=f),a._frameQueue.push(X)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||m()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var q=a._currentFrame=a._frameQueue.shift();if(q){var z=q.name?q.name.toString():null;e._fullLayout._currentFrame=z,a._lastFrameAt=Date.now(),a._timeToNext=q.frameOpts.duration,zt.transition(e,q.frame.data,q.frame.layout,On.coerceTraceIndices(e,q.frame.traces),q.frameOpts,q.transitionOpts).then(function(){q.onComplete&&q.onComplete()}),e.emit("plotly_animatingframe",{name:z,frame:q.frame,animation:{frame:q.frameOpts,transition:q.transitionOpts}})}else d()}function m(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var q=function(){a._animationRaf=window.requestAnimationFrame(q),Date.now()-a._lastFrameAt>a._timeToNext&&p()};q()}var y=0;function b(q){return Array.isArray(n)?y>=n.length?q.transitionOpts=n[y]:q.transitionOpts=n[0]:q.transitionOpts=n,y++,q}var T,_,x=[],w=r==null,k=Array.isArray(r),M=!w&&!k&&Wr.isPlainObject(r);if(M)x.push({type:"object",data:b(Wr.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(T=0;T<a._frames.length;T++)_=a._frames[T],_&&(w||String(_.group)===String(r))&&x.push({type:"byname",name:String(_.name),data:b({name:_.name})});else if(k)for(T=0;T<r.length;T++){var C=r[T];["number","string"].indexOf(typeof C)!==-1?(C=String(C),x.push({type:"byname",name:C,data:b({name:C})})):Wr.isPlainObject(C)&&x.push({type:"object",data:b(Wr.extendFlat({},C))})}for(T=0;T<x.length;T++)if(_=x[T],_.type==="byname"&&!a._frameHash[_.data.name]){Wr.warn('animate failure: frame not found: "'+_.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&x.reverse();var D=e._fullLayout._currentFrame;if(D&&t.fromcurrent){var R=-1;for(T=0;T<x.length;T++)if(_=x[T],_.type==="byname"&&_.name===D){R=T;break}if(R>0&&R<x.length-1){var P=[];for(T=0;T<x.length;T++)_=x[T],(x[T].type!=="byname"||T>R)&&P.push(_);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function E3e(e,r,t){if(e=Wr.getGraphDiv(e),r==null)return Promise.resolve();if(!Wr.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(Wr.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&Dw<fO&&(Dw++,Wr.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.'),Dw===fO&&Wr.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:zt.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(M,C){return M.index>C.index?-1:M.index<C.index?1:0});var y=[],b=[],T=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Wr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i<l.length&&(l[i]||{}).name!==n.name;i++);y.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,T)),y.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),T++}var _=zt.modifyFrames,x=zt.modifyFrames,w=[e,b],k=[e,y];return po&&po.add(e,_,w,x,k),zt.modifyFrames(e,y)}function D3e(e,r){if(e=Wr.getGraphDiv(e),!Wr.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=zt.modifyFrames,s=zt.modifyFrames,u=[e,o],f=[e,i];return po&&po.add(e,l,u,s,f),zt.modifyFrames(e,i)}function q3e(e){e=Wr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),qw.purge(e),r._container&&r._container.remove(),delete e._context,e}function R3e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Wr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Wr.inverseTransformMatrix(Wr.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 F3e(e){var r=u5.select(e),t=e._fullLayout;if(t._calcInverseTransform=R3e,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={};u5.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Wr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(l3e.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")}ua.animate=L3e;ua.addFrames=E3e;ua.deleteFrames=D3e;ua.addTraces=wO;ua.deleteTraces=AO;ua.extendTraces=xO;ua.moveTraces=Rw;ua.prependTraces=_O;ua.newPlot=p3e;ua._doPlot=f3e;ua.purge=q3e;ua.react=k3e;ua.redraw=d3e;ua.relayout=Zp;ua.restyle=v5;ua.setPlotConfig=v3e;ua.update=d5;ua._guiRelayout=Fw(Zp);ua._guiRestyle=Fw(v5);ua._guiUpdate=Fw(d5);ua._storeDirectGUIEdit=b3e});var y0=I(_l=>{"use strict";var P3e=Pt();_l.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};_l.getRedrawFunc=function(e){return function(){P3e.getComponentMethod("colorbar","draw")(e)}};_l.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};_l.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var EO=window.URL||window.webkitURL;_l.createObjectURL=function(e){return EO.createObjectURL(e)};_l.revokeObjectURL=function(e){return EO.revokeObjectURL(e)};_l.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=N3e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};_l.octetStream=function(e){document.location.href="data:application/octet-stream"+e};_l.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};_l.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 N3e(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}_l.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var g5=I((HFe,DO)=>{"use strict";var zw=sa(),BFe=ir(),z3e=Sa(),I3e=Kt(),OFe=(xf(),hr(bf)),Nw=/"/g,g0="TOBESTRIPPED",B3e=new RegExp(`("${g0})|(${g0}")|(&quot;${g0})|(${g0}&quot;)`,"g"),O3e=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],H3e=["&lt;","&#60;","&#x3c;"],U3e=["&gt;","&#62;","&#x3e;"];function G3e(e){let r=zw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return O3e.includes(n)?a:H3e.includes(n)?"&#60;":U3e.includes(n)?"&#62;":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Y3e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}DO.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(z3e.setRect,0,0,l,s).call(I3e.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 y=zw.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&y.style("font-family",b.replace(Nw,g0));var T=this.style.fontWeight;T&&(T==="normal"||T==="400")&&y.style("font-weight",void 0);var _=this.style.fontStyle;_&&_==="normal"&&y.style("font-style",void 0);var x=this.style.fontVariant;x&&x==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=zw.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(Nw,g0));var T=this.style.stroke;T&&T.indexOf("url(")!==-1&&y.style("stroke",T.replace(Nw,g0))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*l),i.attr("height",a*s),i.attr("viewBox","0 0 "+l+" "+s));var m=new window.XMLSerializer().serializeToString(i.node());return m=G3e(m),m=Y3e(m),m=m.replace(B3e,"'"),m}});var b5=I((UFe,qO)=>{"use strict";var V3e=ir(),X3e=h2().EventEmitter,jp=y0();function W3e(e){var r=e.emitter||new X3e,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}),m=new i,y,b;l==="svg"||V3e.isSafari()?b=jp.encodeSVG(o):(y=jp.createBlob(o,"svg"),b=jp.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,jp.revokeObjectURL(b),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},m.onerror=function(T){if(y=null,jp.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},m.src=b});return e.promise?t:r}qO.exports=W3e});var Bw=I((GFe,PO)=>{"use strict";var RO=da(),FO=Pw(),Z3e=pi(),Fs=ir(),$p=y0(),J3e=g5(),j3e=b5(),$3e=v1().version,Iw=(G4(),hr(U4)).default;function K3e(e,r){r=r||{};var t,a,n,i;Fs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Fs.getGraphDiv(e),t=Fs.extendDeep([],e.data),a=Fs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Fs.validate(r[k],Iw[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 "+Fs.join2(Iw.format.values,", "," or ")+".");var l={};function s(k,M){return Fs.coerce(r,l,Iw,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Fs.extendFlat({},a);f?y.width=f:r.width===null&&RO(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&RO(i.height)&&(y.height=i.height);var b=Fs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=$p.getRedrawFunc(m);function _(){return new Promise(function(k){setTimeout(k,$p.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var C=J3e(m,u,v),D=m._fullLayout.width,R=m._fullLayout.height;function P(){FO.purge(m),document.body.removeChild(m)}if(u==="full-json"){var q=Z3e.graphJson(m,!1,"object",!0,!0);return q.version=$3e,q=JSON.stringify(q),P(),k(p?q:$p.encodeJSON(q))}if(P(),u==="svg")return k(p?C:$p.encodeSVG(C));var z=document.createElement("canvas");z.id=Fs.randstr(),j3e({format:u,width:D,height:R,scale:v,canvas:z,svg:C,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace($p.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){FO.newPlot(m,t,y,b).then(T).then(_).then(x).then(function(C){k(w(C))}).catch(function(C){M(C)})})}PO.exports=K3e});var IO=I((YFe,zO)=>{"use strict";var wl=ir(),Q3e=pi(),e5e=Kv(),r5e=nf().dfltConfig,Zl=wl.isPlainObject,x0=Array.isArray,Ow=wl.isArrayOrTypedArray;zO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=e5e.get(),n=[],i={_context:wl.extendFlat({},r5e)},o,l;x0(r)?(i.data=wl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(bi("array","data"))),Zl(t)?(i.layout=wl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(bi("object","layout"))),Q3e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],v=["data",f];if(!Zl(c)){n.push(bi("object",v));continue}var d=s[f],p=d.type,m=a.traces[p].attributes;m.type={valType:"enumerated",values:[p]},d.visible===!1&&c.visible!==!1&&n.push(bi("invisible",v)),x5(c,d,m,n,v)}var y=i._fullLayout,b=t5e(a,s);return x5(l,y,b,n,"layout"),n.length===0?void 0:n};function x5(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=i5e(t,s),d=(v||{}).valType,p=d==="info_array",m=d==="colorscale",y=(v||{}).items;if(!n5e(t,s))a.push(bi("schema",n,u));else if(Zl(f)&&Zl(c)&&d!=="any")x5(f,c,v,a,n,u);else if(p&&x0(f)){f.length>c.length&&a.push(bi("unused",n,u.concat(c.length)));var b=c.length,T=Array.isArray(y);T&&(b=Math.min(b,y.length));var _,x,w,k,M;if(v.dimensions===2)for(x=0;x<b;x++)if(x0(f[x])){f[x].length>c[x].length&&a.push(bi("unused",n,u.concat(x,c[x].length)));var C=c[x].length;for(_=0;_<(T?Math.min(C,y[x].length):C);_++)w=T?y[x][_]:y,k=f[x][_],M=c[x][_],wl.validate(k,w)?M!==k&&M!==+k&&a.push(bi("dynamic",n,u.concat(x,_),k,M)):a.push(bi("value",n,u.concat(x,_),k))}else a.push(bi("array",n,u.concat(x),f[x]));else for(x=0;x<b;x++)w=T?y[x]:y,k=f[x],M=c[x],wl.validate(k,w)?M!==k&&M!==+k&&a.push(bi("dynamic",n,u.concat(x),k,M)):a.push(bi("value",n,u.concat(x),k))}else if(v.items&&!p&&x0(f)){var D=y[Object.keys(y)[0]],R=[],P,q;for(P=0;P<c.length;P++){var z=c[P]._index||P;if(q=u.slice(),q.push(z),Zl(f[z])&&Zl(c[P])){R.push(z);var B=f[z],U=c[P];Zl(B)&&B.visible!==!1&&U.visible===!1?a.push(bi("invisible",n,q)):x5(B,U,D,a,n,q)}}for(P=0;P<f.length;P++)q=u.slice(),q.push(P),Zl(f[P])?R.indexOf(P)===-1&&a.push(bi("unused",n,q)):a.push(bi("object",n,q,f[P]))}else!Zl(f)&&Zl(c)?a.push(bi("object",n,u,f)):!Ow(f)&&Ow(c)&&!p&&!m?a.push(bi("array",n,u,f)):s in r?wl.validate(f,v)?v.valType==="enumerated"&&(v.coerceNumber&&f!==+c||!Ow(f)&&f!==c||String(f)!==String(c))&&a.push(bi("dynamic",n,u,f,c)):a.push(bi("value",n,u,f)):a.push(bi("unused",n,u,f))}return a}function t5e(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?wl.extendFlat(t[i.attributes.subplot.dflt],o):wl.extendFlat(t,o))}return t}var a5e={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=b0(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=b0(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return b0(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Zl(t)?"container":"key";return b0(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[b0(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?b0(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[b0(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function b0(e){return x0(e)?"In data trace "+e[1]+", ":"In "+e+", "}function bi(e,r,t,a,n){t=t||"";var i,o;x0(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=l5e(t),s=a5e[e](r,l,a,n);return wl.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function n5e(e,r){var t=NO(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function i5e(e,r){if(r in e)return e[r];var t=NO(r);return e[t.keyMinusId]}var o5e=wl.counterRegex("([a-z]+)");function NO(e){var r=e.match(o5e);return{keyMinusId:r&&r[1],id:r&&r[2]}}function l5e(e){if(!x0(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 OO=I((VFe,BO)=>{"use strict";var s5e=ir(),_5=y0();function u5e(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=_5.createBlob(e,t),u=_5.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),_5.revokeObjectURL(u),s=null,o(r);if(s5e.isSafari()){var f=t==="svg"?",":";base64,";return _5.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}BO.exports=u5e});var Hw=I((XFe,YO)=>{"use strict";var w5=ir(),HO=Ri(),f5e=Bw(),c5e=OO(),UO=y0(),GO=40;function v5e(e,r){var t;return w5.isPlainObject(e)||(t=w5.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=f5e(e,r),o=r.filename||e.fn;if(!o){let s=UO.getPlotTitle(e);if(s&&!HO.matchTex(s))o=w5.slugify(s,GO);else{let u=UO.getPlotSubtitle(e);u&&!HO.matchTex(u)&&(o=w5.slugify(u,GO))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),c5e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}YO.exports=v5e});var JO=I(Uw=>{"use strict";var Ro=ir(),Fo=Ro.isPlainObject,VO=Kv(),XO=pi(),h5e=Pl(),WO=Ra(),ZO=nf().dfltConfig;Uw.makeTemplate=function(e){e=Ro.isPlainObject(e)?e:Ro.getGraphDiv(e),e=Ro.extendDeep({_context:ZO},{data:e.data,layout:e.layout}),XO.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={};Kp(d,p,p5e.bind(null,d));var m=Ro.coerce(d,{},h5e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Kp(t,a.layout,d5e.bind(null,t)),delete a.layout.template;var n=t.template;if(Fo(n)){var i=n.layout,o,l,s,u,f,c;Fo(i)&&A5(i,a.layout);var v=n.data;if(Fo(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++)A5(s[o%u],f[o]);for(o=c;o<u;o++)f.push(Ro.extendDeep({},s[o]))}for(l in v)l in a.data||(a.data[l]=Ro.extendDeep([],v[l]))}}return a};function A5(e,r){e=Ro.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(Fo(c)&&Fo(f))A5(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=WO.arrayTemplater({_template:e},v);for(n=0;n<c.length;n++){var p=c[n],m=d.newItem(p)._template;m&&A5(m,p)}var y=d.defaultItems();for(n=0;n<y.length;n++)c.push(y[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,T5(o)===o)for(var s in r){var u=T5(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function T5(e){return e.replace(/[0-9]+$/,"")}function Kp(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=Al(e,o,a),u=Al(e,o,n),f=t(u);if(!f){var c=T5(o);c!==o&&(u=Al(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&&Fo(l))Kp(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var v=!1,d=0,p={},m=0;m<l.length;m++){var y=l[m];if(Fo(y)){var b=y.name;if(b)p[b]||(Kp(y,r,t,Al(l,d,s),Al(l,d,u)),d++,p[b]=1);else if(!v){var T=WO.arrayDefaultKey(o),_=Al(e,T,a),x=Al(l,d,s);Kp(y,r,t,x,Al(l,d,u));var w=Ro.nestedProperty(r,x),k=Ro.nestedProperty(r,_);k.set(w.get()),w.set(null),v=!0}}}else{var M=Ro.nestedProperty(r,s);M.set(l)}}}function d5e(e,r){return VO.getLayoutValObject(e,Ro.nestedProperty({},r).parts)}function p5e(e,r){return VO.getTraceValObject(e,Ro.nestedProperty({},r).parts)}function Al(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}Uw.validateTemplate=function(e,r){var t=Ro.extendDeep({},{_context:ZO,data:e.data,layout:e.layout}),a=t.layout||{};Fo(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,XO.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(_,x){for(var w in _)if(w.charAt(0)!=="_"&&Fo(_[w])){var k=T5(w),M=[],C;for(C=0;C<x.length;C++)M.push(Al(_,w,x[C])),k!==w&&M.push(Al(_,k,x[C]));for(C=0;C<M.length;C++)u[M[C]]=1;f(_[w],M)}}function c(_,x){for(var w in _)if(w.indexOf("defaults")===-1&&Fo(_[w])){var k=Al(_,w,x);u[k]?c(_[w],k):o.push({code:"unused",path:k})}}if(Fo(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!Fo(i))o.push({code:"data"});else{for(var v={},d,p=0;p<s.length;p++){var m=s[p];d=m.type,v[d]=(v[d]||0)+1,m._template||o.push({code:"missing",index:m.index,traceType:d})}for(d in i){var y=i[d].length,b=v[d]||0;y>b?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function T(_,x){for(var w in _)if(w.charAt(0)!=="_"){var k=_[w],M=Al(_,w,x);Fo(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&m5e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(y5e)};function m5e(e){for(var r=0;r<e.length;r++)if(Fo(e[r]))return!0}function y5e(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 $O=I(nn=>{"use strict";var oi=Pw();nn._doPlot=oi._doPlot;nn.newPlot=oi.newPlot;nn.restyle=oi.restyle;nn.relayout=oi.relayout;nn.redraw=oi.redraw;nn.update=oi.update;nn._guiRestyle=oi._guiRestyle;nn._guiRelayout=oi._guiRelayout;nn._guiUpdate=oi._guiUpdate;nn._storeDirectGUIEdit=oi._storeDirectGUIEdit;nn.react=oi.react;nn.extendTraces=oi.extendTraces;nn.prependTraces=oi.prependTraces;nn.addTraces=oi.addTraces;nn.deleteTraces=oi.deleteTraces;nn.moveTraces=oi.moveTraces;nn.purge=oi.purge;nn.addFrames=oi.addFrames;nn.deleteFrames=oi.deleteFrames;nn.animate=oi.animate;nn.setPlotConfig=oi.setPlotConfig;var g5e=z1().getGraphDiv,b5e=P3().eraseActiveShape;nn.deleteActiveShape=function(e){return b5e(g5e(e))};nn.toImage=Bw();nn.validate=IO();nn.downloadImage=Hw();var jO=JO();nn.makeTemplate=jO.makeTemplate;nn.validateTemplate=jO.validateTemplate});var Yw=I((JFe,KO)=>{"use strict";var Gw=ir(),x5e=Pt();KO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=x5e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Gw.minRowLength(i);o?l=Math.min(u,Gw.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Gw.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var Vw=I((jFe,rH)=>{"use strict";var QO=ir().dateTick0,_5e=(Zn(),hr(ri)),w5e=_5e.ONEWEEK;function eH(e,r){return e%w5e===0?QO(r,1):QO(r,0)}rH.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",eH(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",eH(l,t.ycalendar)),n("yperiodalignment"))}}});var nH=I(($Fe,aH)=>{"use strict";var tH=["orientation","groupnorm","stackgaps"];aH.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<tH.length;v++){var d=tH[v],p=d+"Found";if(!u[p]){var m=r[d]!==void 0,y=d==="orientation";if((m||f)&&(u[d]=n(d,c[d]),y&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][d],y))))for(var b=0;b<u.traces.length-1;b++){var T=u.traces[b];T._input.fill!==T.fill&&(T.fill=u.fillDflt)}}}return u}}});var M5=I((KFe,sH)=>{"use strict";var iH=Kt(),oH=Ul().hasColorscale,lH=th(),A5e=ki();sH.exports=function(r,t,a,n,i,o={}){var l=A5e.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),oH(r,"marker")&&lH(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=iH.background:u=iH.defaultLine,i("marker.line.color",u),oH(r,"marker.line")&&lH(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 Xw=I((QFe,uH)=>{"use strict";var T5e=ir().isArrayOrTypedArray,M5e=Ul().hasColorscale,k5e=th();uH.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),M5e(r,"line"))k5e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(T5e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var cH=I((ePe,fH)=>{"use strict";fH.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Ww=I((rPe,vH)=>{"use strict";var S5e=ir();vH.exports=function(e,r,t,a,n){n=n||{},a("textposition"),S5e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Zw=I((tPe,dH)=>{"use strict";var k5=Kt(),hH=ir().isArrayOrTypedArray;function C5e(e){for(var r=k5.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=k5.interpolate(e[t-1][1],e[t][1],.5);r=k5.interpolate(r,a,e[t-1][0]/e[t][0])}return r}dH.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&&!hH(l)?o=l:s&&!hH(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=C5e(c))}}n("fillcolor",k5.addOpacity((t.line||{}).color||o||u||a,.5))}});var gH=I((aPe,yH)=>{"use strict";var pH=ir(),L5e=Pt(),E5e=Nf(),D5e=(Op(),hr(Bp)),Sh=ki(),q5e=Yw(),R5e=Vw(),F5e=nH(),P5e=M5(),N5e=Xw(),mH=cH(),z5e=Ww(),I5e=Zw(),B5e=ir().coercePattern;yH.exports=function(r,t,a,n){function i(d,p){return pH.coerce(r,t,E5e,d,p)}var o=q5e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){R5e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=F5e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<D5e.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),Sh.hasMarkers(t)&&P5e(r,t,a,n,i,{gradient:!0}),Sh.hasLines(t)&&(N5e(r,t,a,n,i,{backoff:!0}),mH(r,t,i),i("connectgaps"),i("line.simplify")),Sh.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),z5e(r,t,n,i));var u=[];(Sh.hasMarkers(t)||Sh.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(I5e(r,t,a,i,{moduleHasFillgradient:!0}),Sh.hasLines(t)||mH(r,t,i),B5e(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=L5e.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),pH.coerceSelectionMarkerOpacity(t,i)}}});var xH=I((nPe,bH)=>{"use strict";var O5e=_p().getAxisGroup;bH.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=O5e(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,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var Jw=I((iPe,_H)=>{"use strict";var H5e=ir(),U5e=xH(),G5e=Nf();_H.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return H5e.coerce(n._input,n,G5e,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,U5e(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 AH=I((oPe,wH)=>{"use strict";var Y5e=ir(),V5e=g2();wH.exports=function(e,r){function t(n,i){return Y5e.coerce(e,r,V5e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var jw=I((lPe,MH)=>{"use strict";var X5e=da(),TH=ir(),W5e=TH.dateTime2ms,S5=TH.incrementMonth,Z5e=(Zn(),hr(ri)),J5e=Z5e.ONEAVGMONTH;MH.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(X5e(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=W5e(v,u)||0,p=[],m=[],y=[],b=n.length,T=0;T<b;T++){var _=n[T],x,w,k;if(l){for(x=Math.round((_-d)/(l*J5e)),k=S5(d,l*x,u);k>_;)k=S5(k,-l,u);for(;k<=_;)k=S5(k,l,u);w=S5(k,-l,u)}else{for(x=Math.round((_-d)/o),k=d+x*o;k>_;)k-=o;for(;k<=_;)k+=o;w=k-o}p[T]=f?w:c?k:(w+k)/2,m[T]=w,y[T]=k}return{vals:p,starts:m,ends:y}}});var Qp=I((sPe,SH)=>{"use strict";var $w=Ul().hasColorscale,Kw=u7(),kH=ki();SH.exports=function(r,t){kH.hasLines(t)&&$w(t,"line")&&Kw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),kH.hasMarkers(t)&&($w(t,"marker")&&Kw(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),$w(t,"marker.line")&&Kw(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Qw=I((uPe,CH)=>{"use strict";var Tn=ir();CH.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Tn.mergeArray(t.text,r,"tx"),Tn.mergeArray(t.texttemplate,r,"txt"),Tn.mergeArray(t.hovertext,r,"htx"),Tn.mergeArray(t.customdata,r,"data"),Tn.mergeArray(t.textposition,r,"tp"),t.textfont&&(Tn.mergeArrayCastPositive(t.textfont.size,r,"ts"),Tn.mergeArray(t.textfont.color,r,"tc"),Tn.mergeArray(t.textfont.family,r,"tf"),Tn.mergeArray(t.textfont.weight,r,"tw"),Tn.mergeArray(t.textfont.style,r,"ty"),Tn.mergeArray(t.textfont.variant,r,"tv"),Tn.mergeArray(t.textfont.textcase,r,"tC"),Tn.mergeArray(t.textfont.lineposition,r,"tE"),Tn.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Tn.mergeArrayCastPositive(n.size,r,"ms"),Tn.mergeArrayCastPositive(n.opacity,r,"mo"),Tn.mergeArray(n.symbol,r,"mx"),Tn.mergeArray(n.angle,r,"ma"),Tn.mergeArray(n.standoff,r,"mf"),Tn.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Tn.mergeArray(i.color,r,"mlc"),Tn.mergeArrayCastPositive(i.width,r,"mlw"),Tn.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(Tn.mergeArray(o.type,r,"mgt"),Tn.mergeArray(o.color,r,"mgc"))}}});var DH=I((fPe,EH)=>{"use strict";var LH=ir();EH.exports=function(r,t){LH.isArrayOrTypedArray(t.selectedpoints)&&LH.tagSelected(r,t)}});var Ch=I((cPe,IH)=>{"use strict";var qH=da(),r9=ir(),em=tn(),RH=jw(),e9=(Zn(),hr(ri)).BADNUM,t9=ki(),j5e=Qp(),$5e=Qw(),K5e=DH();function Q5e(e,r){var t=e._fullLayout,a=r._xA=em.getFromId(e,r.xaxis||"x","x"),n=r._yA=em.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=RH(r,a,"x",i),s=RH(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=a9(r,t,a,n),m=!1,y,b,T,_,x,w;NH(t,r);var k="x",M="y",C;if(p)r9.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",C="x"):(k="s",C="y"),x=p.stackgaps==="interpolate";else{var D=PH(r,c);FH(e,r,a,n,u,f,D)}var R=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;b<c;b++){var q=v[b]={},z=qH(u[b]),B=qH(f[b]);z&&B?(q[k]=u[b],q[M]=f[b],R&&(q.orig_x=i[b],q.xEnd=l.ends[b],q.xStart=l.starts[b]),P&&(q.orig_y=o[b],q.yEnd=s.ends[b],q.yStart=s.starts[b])):p&&(y?z:B)?(q[C]=y?u[b]:f[b],q.gap=!0,x?(q.s=e9,m=!0):q.s=0):q[k]=q[M]=e9,d&&(q.id=String(d[b]))}if($5e(v,r),j5e(e,r),K5e(v,r),p){for(b=0;b<v.length;)v[b][C]===e9?v.splice(b,1):b++;if(r9.sort(v,function(Y,V){return Y[C]-V[C]||Y.i-V.i}),m){for(b=0;b<v.length-1&&v[b].gap;)b++;for(w=v[b].s,w||(w=v[b].s=0),T=0;T<b;T++)v[T].s=w;for(_=v.length-1;_>b&&v[_].gap;)_--;for(w=v[_].s,T=v.length-1;T>_;T--)v[T].s=w;for(;b<_;)if(b++,v[b].gap){for(T=b+1;v[T].gap;)T++;for(var U=v[b-1][C],G=v[b-1].s,X=(v[T].s-G)/(v[T][C]-U);b<T;)v[b].s=G+(v[b][C]-U)*X,b++}}}return v}function FH(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[zH(r)]===r.uid,v=(a9(r,s,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},m={padded:!0};o&&(p.ppad=m.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(d==="tozerox"||d==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!t9.hasMarkers(r)&&!t9.hasText(r))&&(p.padded=!1,p.ppad=0),y&&(d==="tozeroy"||d==="tonexty"&&(c||v==="v"))?m.tozero=!0:(d==="tonextx"||d==="tozerox")&&(m.padded=!1),u&&(r._extremes[u]=em.findExtremes(t,n,p)),f&&(r._extremes[f]=em.findExtremes(a,i,m))}function PH(e,r){if(t9.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)},r9.isArrayOrTypedArray(t.size)){var i={type:"linear"};em.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 NH(e,r){var t=zH(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function zH(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function a9(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}}IH.exports={calc:Q5e,calcMarkerSize:PH,calcAxisExpansion:FH,setFirstScatter:NH,getStackOpts:a9}});var OH=I((vPe,BH)=>{"use strict";BH.exports=C5;var ebe=ir().distinctVals;function C5(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=ebe(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={}}C5.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};C5.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};C5.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 HH={};Ka(HH,{TEXTPAD:()=>rbe,eventDataKeys:()=>tbe});var rbe,tbe,UH=$a(()=>{"use strict";rbe=3,tbe=["value","label"]});var WH=I((hPe,XH)=>{"use strict";var Tl=da(),{isArrayOrTypedArray:_u}=ir(),{BADNUM:Lh}=(Zn(),hr(ri)),abe=Pt(),rm=tn(),{getAxisGroup:nbe}=_p(),L5=OH(),{TEXTPAD:ibe}=(UH(),hr(HH)),{LINE_SPACING:obe}=(Ui(),hr(Hi)),{BR_TAG_ALL:lbe}=Ri();function sbe(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&&abe.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};i9(e,t,a,s,d),i9(e,a,t,l,d)}function i9(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(cbe(t,a),n.mode){case"overlay":n9(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&&vbe(e,r,t,o,n),i.length&&n9(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);fbe(o),o.length&&hbe(e,r,t,o,n),i.length&&n9(e,r,t,i,n);break}ube(a),bbe(a,r)}}function ube(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=Tl(i)?+i:+i.slice(0,-1),l=Tl(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function fbe(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=Tl(i)?+i:+i.slice(0,-1),l=Tl(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function cbe(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(_u(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),Tl(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=Tl(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function n9(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new L5([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});o9(e,r,l,n),n.norm?(VH(l),l9(t,l,n)):YH(t,l)}}function vbe(e,r,t,a,n){var i=new L5(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});o9(e,r,i,n),ybe(i,r),n.norm?(VH(i),l9(t,i,n)):YH(t,i)}function hbe(e,r,t,a,n){var i=new L5(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});o9(e,r,i,n),mbe(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!==Lh){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&l9(t,i,n)}function o9(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,m;if(r._id==="angularaxis")v=c,d=v*(1-(a.groupgap||0)),p=-d/2;else{var y=nbe(n,r._id)+s[0][0].trace.orientation;m=n._alignmentOpts[y]||{}}for(var b=0;b<u;b++){var T=s[b],_=T[0].trace;if(r._id!=="angularaxis"){var x=m[_.alignmentgroup]||{},w=Object.keys(x.offsetGroups||{}).length;w?v=c/w:v=f?c/u:c,d=v*(1-(a.groupgap||0)),w?p=((2*_._offsetIndex+1-w)*v-d)/2:p=f?((2*b+1-u)*v-d)/2:-d/2}var k=T[0].t;k.barwidth=d,k.offsetindex=_._offsetIndex||0,k.poffset=p,k.bargroupwidth=c,k.bardelta=l}t.binWidth=s[0][0].t.barwidth/100,dbe(t),pbe(r,t),r._id==="angularaxis"?GH(r,t):GH(r,t,f)}function dbe(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(_u(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)Tl(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(_u(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)Tl(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 pbe(e,r){for(var t=r.traces,a=Eh(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=_u(l),u=o.barwidth,f=_u(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 GH(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;rm.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 m=s.t,y=m.poffset,b=m.barwidth,T=_u(y),_=_u(b);for(p=0;p<l.length;p++){c=l[p];var x=T?y[p]:y,w=_?b[p]:b;v=c.p+x,d=v+w,f.push(v,d)}}u._extremes[e._id]=rm.findExtremes(e,f,{padded:!1})}}function YH(e,r){for(var t=r.traces,a=Eh(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:m,ppadplus:y}=s9(o,i);o._extremes[e._id]=rm.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:y,ppadminus:m})}}function mbe(e,r,t){var a=Eh(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!==Lh&&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!==Lh){var d;l?d=f.s:d=f.s+f.b;var p=r.put(f.p,c,d),m=p+d;f.b=p,f[a]=m,t.norm||(v.push(m),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:y,ppadplus:b}=s9(o,i);o._extremes[e._id]=rm.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:b,ppadminus:y})}}}function VH(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!==Lh&&e.put(o.p,n,o.b+o.s)}}function ybe(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 L5([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==Lh){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function l9(e,r,t){var a=r.traces,n=Eh(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 Tl(e.c2l(k))&&(k<l-o||k>s+o||!Tl(l))}for(var f=0;f<a.length;f++){for(var c=a[f],v=c[0].t.offsetindex,d=c[0].trace,p=[],m=!1,y=!1,b=0;b<c.length;b++){var T=c[b];if(T.s!==Lh){var _=Math.abs(i/r.get(T.p,v,T.s));T.b*=_,T.s*=_;var x=T.b,w=x+T.s;T[n]=w,p.push(w),y=y||u(w),T.hasB&&(p.push(x),y=y||u(x)),(!T.hasB||!T.b)&&(m=!0)}}let{ppadminus:k,ppadplus:M}=s9(d,c);d._extremes[e._id]=rm.findExtremes(e,p,{tozero:m,padded:y,ppadplus:M,ppadminus:k})}}function s9(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(lbe)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=_u(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*obe*t+ibe;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 gbe(e,r,t,a){for(var n=Eh(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 bbe(e,r){var t=Eh(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;Tl(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var f=1e4/(s-l),c=a.round=function(C){return String(Math.round(f*(C-l)))},v={},d={},p=e.some(function(C){var D=C[0].trace;return"marker"in D&&D.marker.cornerradius});for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=a;var m=o[0].t.poffset,y=_u(m);for(i=0;i<o.length;i++){var b=o[i],T=b[t]-b.w/2;if(Tl(T)){var _=b[t]+b.w/2,x=c(b.p);a[x]?a[x]=[Math.min(T,a[x][0]),Math.max(_,a[x][1])]:a[x]=[T,_]}if(b.p0=b.p+(y?m[i]:m),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,p){var w=Math.min(b.s0,b.s1)||0,k=Math.max(b.s0,b.s1)||0,M=b[t];v[M]=M in v?Math.min(v[M],w):w,d[M]=M in d?Math.max(d[M],k):k}}}p&&gbe(e,v,d,r)}function Eh(e){return e._id.charAt(0)}XH.exports={crossTraceCalc:sbe,setGroupPositions:i9}});var $H=I((dPe,jH)=>{"use strict";var ZH=Ch(),JH=WH().setGroupPositions;function xbe(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};JH(e,t,a,s,c),JH(e,a,t,l,c)}jH.exports=function(r,t){r._fullLayout.scattermode==="group"&&xbe(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,m,y,b,T,_,x,w,k;for(var M in o){b=o[M];var C=b.traceIndices;if(C.length){for(T=b.stackgaps==="interpolate",_=b.groupnorm,b.orientation==="v"?(x="x",w="y"):(x="y",w="x"),k=new Array(C.length),s=0;s<k.length;s++)k[s]=!1;d=l[C[0]];var D=new Array(d.length);for(s=0;s<d.length;s++)D[s]=d[s][x];for(s=1;s<C.length;s++){for(v=l[C[s]],u=f=0;u<v.length;u++){for(p=v[u][x];p>D[f]&&f<D.length;f++)u9(v,u,D[f],s,k,T,x),u++;if(p!==D[f]){for(c=0;c<s;c++)u9(l[C[c]],f,p,c,k,T,x);D.splice(f,0,p)}f++}for(;f<D.length;f++)u9(v,u,D[f],s,k,T,x),u++}var R=D.length;for(u=0;u<d.length;u++){for(m=d[u][w]=d[u].s,s=1;s<C.length;s++)v=l[C[s]],v[0].trace._rawLength=v[0].trace._length,v[0].trace._length=R,m+=v[u].s,v[u][w]=m;if(_)for(y=(_==="fraction"?m:m/100)||1,s=0;s<C.length;s++){var P=l[C[s]][u];P[w]/=y,P.sNorm=P.s/y}}for(s=0;s<C.length;s++){v=l[C[s]];var q=v[0].trace,z=ZH.calcMarkerSize(q,q._rawLength),B=Array.isArray(z);if(z&&k[s]||B){var U=z;for(z=new Array(R),u=0;u<R;u++)z[u]=v[u].gap?0:B?U[v[u].i]:U}var G=new Array(R),X=new Array(R);for(u=0;u<R;u++)G[u]=v[u].x,X[u]=v[u].y;ZH.calcAxisExpansion(r,q,a,n,G,X,z),v[0].t.orientation=b.orientation}}}}};function u9(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=_be(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 _be(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 nU=I((pPe,aU)=>{"use strict";var wbe=Sa(),rU=(Zn(),hr(ri)),tm=rU.BADNUM,tU=rU.LOG_CLIP,KH=tU+.5,QH=tU-.5,E5=ir(),Abe=E5.segmentsIntersect,eU=E5.constrain,f9=(Op(),hr(Bp));aU.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,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],T=f9.minTolerance,_=r.length,x=new Array(_),w=0,k,M,C,D,R,P,q,z,B,U,G,X,Y,V,J,j;function ee(Ve){var Mr=r[Ve];if(!Mr)return!1;var Qe=t.linearized?n.l2p(Mr.x):n.c2p(Mr.x),zr=t.linearized?i.l2p(Mr.y):i.c2p(Mr.y);if(Qe===tm){if(o&&(Qe=n.c2p(Mr.x,!0)),Qe===tm)return!1;l&&zr===tm&&(Qe*=Math.abs(n._m*u*(n._m>0?KH:QH)/(i._m*s*(i._m>0?KH:QH)))),Qe*=1e3}if(zr===tm){if(l&&(zr=i.c2p(Mr.y,!0)),zr===tm)return!1;zr*=1e3}return[Qe,zr]}function pe(Ve,Mr,Qe,zr){var it=Qe-Ve,lt=zr-Mr,Qr=.5-Ve,se=.5-Mr,Te=it*it+lt*lt,tr=it*Qr+lt*se;if(tr>0&&tr<Te){var vr=Qr*lt-se*it;if(vr*vr<Te)return!0}}var ne,ye;function te(Ve,Mr){var Qe=Ve[0]/s,zr=Ve[1]/u,it=Math.max(0,-Qe,Qe-1,-zr,zr-1);return it&&ne!==void 0&&pe(Qe,zr,ne,ye)&&(it=0),it&&Mr&&pe(Qe,zr,Mr[0]/s,Mr[1]/u)&&(it=0),(1+f9.toleranceGrowth*it)*d}function De(Ve,Mr){var Qe=Ve[0]-Mr[0],zr=Ve[1]-Mr[1];return Math.sqrt(Qe*Qe+zr*zr)}var ce=f9.maxScreensAway,Re=-s*ce,Fe=s*(1+ce),ge=-u*ce,Oe=u*(1+ce),cr=[[Re,ge,Fe,ge],[Fe,ge,Fe,Oe],[Fe,Oe,Re,Oe],[Re,Oe,Re,ge]],qe,ze,Ue,We,Ge,or;function Ye(Ve,Mr){for(var Qe=[],zr=0,it=0;it<4;it++){var lt=cr[it],Qr=Abe(Ve[0],Ve[1],Mr[0],Mr[1],lt[0],lt[1],lt[2],lt[3]);Qr&&(!zr||Math.abs(Qr.x-Qe[0][0])>1||Math.abs(Qr.y-Qe[0][1])>1)&&(Qr=[Qr.x,Qr.y],zr&&De(Qr,Ve)<De(Qe[0],Ve)?Qe.unshift(Qr):Qe.push(Qr),zr++)}return Qe}function _r(Ve){if(Ve[0]<Re||Ve[0]>Fe||Ve[1]<ge||Ve[1]>Oe)return[eU(Ve[0],Re,Fe),eU(Ve[1],ge,Oe)]}function Pr(Ve,Mr){if(Ve[0]===Mr[0]&&(Ve[0]===Re||Ve[0]===Fe)||Ve[1]===Mr[1]&&(Ve[1]===ge||Ve[1]===Oe))return!0}function Yr(Ve,Mr){var Qe=[],zr=_r(Ve),it=_r(Mr);return zr&&it&&Pr(zr,it)||(zr&&Qe.push(zr),it&&Qe.push(it)),Qe}function $e(Ve,Mr,Qe){return function(zr,it){var lt=_r(zr),Qr=_r(it),se=[];if(lt&&Qr&&Pr(lt,Qr))return se;lt&&se.push(lt),Qr&&se.push(Qr);var Te=2*E5.constrain((zr[Ve]+it[Ve])/2,Mr,Qe)-((lt||zr)[Ve]+(Qr||it)[Ve]);if(Te){var tr;lt&&Qr?tr=Te>0==lt[Ve]>Qr[Ve]?lt:Qr:tr=lt||Qr,tr[Ve]+=Te}return se}}var mr;p==="linear"||p==="spline"?mr=Ye:p==="hv"||p==="vh"?mr=Yr:p==="hvh"?mr=$e(0,Re,Fe):p==="vhv"&&(mr=$e(1,ge,Oe));function Gr(Ve,Mr){var Qe=Mr[0]-Ve[0],zr=(Mr[1]-Ve[1])/Qe,it=(Ve[1]*Mr[0]-Mr[1]*Ve[0])/Qe;return it>0?[zr>0?Re:Fe,Oe]:[zr>0?Fe:Re,ge]}function fe(Ve){var Mr=Ve[0],Qe=Ve[1],zr=Mr===x[w-1][0],it=Qe===x[w-1][1];if(!(zr&&it))if(w>1){var lt=Mr===x[w-2][0],Qr=Qe===x[w-2][1];zr&&(Mr===Re||Mr===Fe)&&lt?Qr?w--:x[w-1]=Ve:it&&(Qe===ge||Qe===Oe)&&Qr?lt?w--:x[w-1]=Ve:x[w++]=Ve}else x[w++]=Ve}function Ce(Ve){x[w-1][0]!==Ve[0]&&x[w-1][1]!==Ve[1]&&fe([Ue,We]),fe(Ve),Ge=null,Ue=We=0}var Tr=E5.isArrayOrTypedArray(c);function tt(Ve){if(Ve&&f&&(Ve.i=k,Ve.d=r,Ve.trace=a,Ve.marker=Tr?c[Ve.i]:c,Ve.backoff=f),ne=Ve[0]/s,ye=Ve[1]/u,qe=Ve[0]<Re?Re:Ve[0]>Fe?Fe:0,ze=Ve[1]<ge?ge:Ve[1]>Oe?Oe:0,qe||ze){if(!w)x[w++]=[qe||Ve[0],ze||Ve[1]];else if(Ge){var Mr=mr(Ge,Ve);Mr.length>1&&(Ce(Mr[0]),x[w++]=Mr[1])}else or=mr(x[w-1],Ve)[0],x[w++]=or;var Qe=x[w-1];qe&&ze&&(Qe[0]!==qe||Qe[1]!==ze)?(Ge&&(Ue!==qe&&We!==ze?fe(Ue&&We?Gr(Ge,Ve):[Ue||qe,We||ze]):Ue&&We&&fe([Ue,We])),fe([qe,ze])):Ue-qe&&We-ze&&fe([qe||Ue,ze||We]),Ge=Ve,Ue=qe,We=ze}else Ge&&Ce(mr(Ge,Ve)[0]),x[w++]=Ve}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Ge=null,tt(M),k++;k<_;k++){if(D=ee(k),!D){if(v)continue;break}if(!m||!t.simplify){tt(D);continue}var at=ee(k+1);if(U=De(D,M),!(!(y&&(w===0||w===_-1))&&U<te(D,at)*T)){for(z=[(D[0]-M[0])/U,(D[1]-M[1])/U],R=M,G=U,X=V=J=0,q=!1,C=D,k++;k<r.length;k++){if(P=at,at=ee(k+1),!P){if(v)continue;break}if(B=[P[0]-M[0],P[1]-M[1]],j=B[0]*z[1]-B[1]*z[0],V=Math.min(V,j),J=Math.max(J,j),J-V>te(P,at))break;C=P,Y=B[0]*z[0]+B[1]*z[1],Y>G?(G=Y,D=P,q=!1):Y<X&&(X=Y,R=P,q=!0)}if(q?(tt(D),C!==R&&tt(R)):(R!==M&&tt(R),C!==D&&tt(D)),tt(C),k>=r.length||!P)break;tt(P),M=P}}Ge&&fe([Ue||Ge[0],We||Ge[1]]),b.push(x.slice(0,w))}var de=p.slice(p.length-1);if(f&&de!=="h"&&de!=="v"){for(var Le=!1,lr=-1,Ar=[],ur=0;ur<b.length;ur++)for(var Cr=0;Cr<b[ur].length-1;Cr++){var Er=b[ur][Cr],Vr=b[ur][Cr+1],ot=wbe.applyBackoff(Vr,Er);(ot[0]!==Vr[0]||ot[1]!==Vr[1])&&(Le=!0),Ar[lr+1]||(lr++,Ar[lr]=[Er,[ot[0],ot[1]]])}return Le?Ar:b}return b}});var c9=I((mPe,oU)=>{"use strict";var iU={tonextx:1,tonexty:1,tonext:1};oU.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 iU&&d>=0?s=d:(s=d=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(y,b){var T=y[0].trace,_=b[0].trace;return T._groupIndex-_._groupIndex||T.index-_.index});var m={};for(i=0;i<p.length;i++)n=p[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in iU&&(l=m[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),m[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var fU=I((yPe,uU)=>{"use strict";var Jl=sa(),Tbe=Pt(),am=ir(),Dh=am.ensureSingle,sU=am.identity,Cn=Sa(),qh=ki(),Mbe=nU(),kbe=c9(),D5=nw().tester;uU.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=kbe(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(),Sbe(r,l,t),f){o&&(s=o());var v=Jl.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){lU(r,p,t,d,c,this,i)})})}else l.each(function(d,p){lU(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Sbe(e,r,t){r.each(function(a){var n=Dh(Jl.select(this),"g","fills");Cn.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,sU);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Dh(Jl.select(this),"path","js-fill")})})}function lU(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Cbe(e,r,t,a,n);var u=!!o&&o.duration>0;function f($e){return u?$e.transition():$e}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=Jl.select(i),y=Dh(m,"g","errorbars"),b=Dh(m,"g","lines"),T=Dh(m,"g","points"),_=Dh(m,"g","text");if(Tbe.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var x,w,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,C;k==="y"?(M=1,C=v.c2p(0,!0)):k==="x"&&(M=0,C=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var D="",R=[],P=d._prevtrace,q=null,z=null;P&&(D=P._prevRevpath||"",w=P._nextFill,R=P._ownPolygons,q=P._fillsegments,z=P._fillElement);var B,U,G="",X="",Y,V,J,j,ee,pe,ne=[];d._polygons=[];var ye=[],te=[],De=am.noop;if(x=d._ownFill,qh.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Y=Cn.steps(p.shape),V=Cn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Y=V=function($e){var mr=$e[$e.length-1];return $e.length>1&&$e[0][0]===mr[0]&&$e[0][1]===mr[1]?Cn.smoothclosed($e.slice(1),p.smoothing):Cn.smoothopen($e,p.smoothing)}:Y=V=function($e){return"M"+$e.join("L")},J=function($e){return V($e.reverse())},te=Mbe(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}),ye=new Array(te.length);var ce=0;for(s=0;s<te.length;s++){var Re,Fe=te[s];!Re||!k?(Re=Fe.slice(),ye[ce]=Re,ce++):Re.push.apply(Re,Fe)}d._fillElement=null,d._fillExclusionElement=z,d._fillsegments=ye.slice(0,ce),ye=d._fillsegments,te.length&&(j=te[0][0].slice(),ee=te[te.length-1],pe=ee[ee.length-1].slice()),De=function($e){return function(mr){if(B=Y(mr),U=J(mr),G?k?(G+="L"+B.slice(1),X=U+("L"+X.slice(1))):(G+="Z"+B,X=U+"Z"+X):(G=B,X=U),qh.hasLines(d)){var Gr=Jl.select(this);if(Gr.datum(a),$e)f(Gr.style("opacity",0).attr("d",B).call(Cn.lineGroupStyle)).style("opacity",1);else{var fe=f(Gr);fe.attr("d",B),Cn.singleLineStyle(a,fe)}}}}}var ge=b.selectAll(".js-line").data(te);f(ge.exit()).style("opacity",0).remove(),ge.each(De(!1)),ge.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(Cn.lineGroupStyle).each(De(!0)),Cn.setClipUrl(ge,t.layerClipId,e);function Oe($e){f($e).attr("d","M0,0Z")}var cr=function(){var $e=new Array(ye.length);for(s=0;s<ye.length;s++)$e[s]=D5(ye[s]);return $e},qe=function($e){var mr,Gr;if(!$e||$e.length===0)for(mr=new Array(ye.length),Gr=0;Gr<ye.length;Gr++){var fe=ye[Gr][0].slice(),Ce=ye[Gr][ye[Gr].length-1].slice();fe[M]=Ce[M]=C;var Tr=[Ce,fe],tt=Tr.concat(ye[Gr]);mr[Gr]=D5(tt)}else{for(mr=new Array($e.length-1+ye.length),Gr=0;Gr<$e.length-1;Gr++)mr[Gr]=D5($e[Gr]);var at=$e[$e.length-1].slice();for(at.reverse(),Gr=0;Gr<ye.length;Gr++)mr[$e.length-1+Gr]=D5(ye[Gr].concat(at))}return mr};te.length?(x?(x.datum(a),j&&pe&&(k?(j[M]=pe[M]=C,f(x).attr("d","M"+pe+"L"+j+"L"+G.slice(1)).call(Cn.singleFillStyle,e),ne=qe(null)):(f(x).attr("d",G+"Z").call(Cn.singleFillStyle,e),ne=cr())),d._polygons=ne,d._fillElement=x):w&&(d.fill.slice(0,6)==="tonext"&&G&&D?(d.fill==="tonext"?(f(w).attr("d",G+"Z"+D+"Z").call(Cn.singleFillStyle,e),ne=cr(),d._polygons=ne.concat(R)):(f(w).attr("d",G+"L"+D.slice(1)+"Z").call(Cn.singleFillStyle,e),ne=qe(q),d._polygons=ne),d._fillElement=w):Oe(w)),d._prevRevpath=X):(x?Oe(x):w&&Oe(w),d._prevRevpath=null),d._ownPolygons=ne;function ze($e){return $e.filter(function(mr){return!mr.gap&&mr.vis})}function Ue($e){return $e.filter(function(mr){return mr.vis})}function We($e){return $e.filter(function(mr){return!mr.gap})}function Ge($e){return $e.id}function or($e){if($e.ids)return Ge}function Ye(){return!1}function _r($e,mr,Gr){var fe,Ce,Tr,tt=Gr[0].trace,at=qh.hasMarkers(tt),de=qh.hasText(tt),Le=or(tt),lr=Ye,Ar=Ye;if(at||de){var ur=sU,Cr=tt.stackgroup,Er=Cr&&e._fullLayout._scatterStackOpts[c._id+v._id][Cr].stackgaps==="infer zero";tt.marker.maxdisplayed||tt._needsCull?ur=Er?Ue:ze:Cr&&!Er&&(ur=We),at&&(lr=ur),de&&(Ar=ur)}Ce=$e.selectAll("path.point"),fe=Ce.data(lr,Le);var Vr=fe.enter().append("path").classed("point",!0);u&&Vr.call(Cn.pointStyle,tt,e).call(Cn.translatePoints,c,v).style("opacity",0).transition().style("opacity",1),fe.order();var ot;at&&(ot=Cn.makePointStyleFns(tt)),fe.each(function(Ve){var Mr=Jl.select(this),Qe=f(Mr);Tr=Cn.translatePoint(Ve,Qe,c,v),Tr?(Cn.singlePointStyle(Ve,Qe,tt,ot,e),t.layerClipId&&Cn.hideOutsideRangePoint(Ve,Qe,c,v,tt.xcalendar,tt.ycalendar),tt.customdata&&Mr.classed("plotly-customdata",Ve.data!==null&&Ve.data!==void 0)):Qe.remove()}),u?fe.exit().transition().style("opacity",0).remove():fe.exit().remove(),Ce=mr.selectAll("g"),fe=Ce.data(Ar,Le),fe.enter().append("g").classed("textpoint",!0).append("text"),fe.order(),fe.each(function(Ve){var Mr=Jl.select(this),Qe=f(Mr.select("text"));Tr=Cn.translatePoint(Ve,Qe,c,v),Tr?t.layerClipId&&Cn.hideOutsideRangePoint(Ve,Mr,c,v,tt.xcalendar,tt.ycalendar):Mr.remove()}),fe.selectAll("text").call(Cn.textPointStyle,tt,e).each(function(Ve){var Mr=c.c2p(Ve.x),Qe=v.c2p(Ve.y);Jl.select(this).selectAll("tspan.line").each(function(){f(Jl.select(this)).attr({x:Mr,y:Qe})})}),fe.exit().remove()}T.datum(a),_.datum(a),_r(T,_,a);var Pr=d.cliponaxis===!1,Yr=Pr?null:t.layerClipId;Cn.setClipUrl(T,Yr,e),Cn.setClipUrl(_,Yr,e)}function Cbe(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Jl.extent(am.simpleMap(i.range,i.r2c)),s=Jl.extent(am.simpleMap(o.range,o.r2c)),u=a[0].trace;if(qh.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(m){return m.x>=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var b=m[0].trace;qh.hasMarkers(b)&&b.marker.maxdisplayed>0&&y<r&&d++});var p=Math.round(d*v/3+Math.floor(d/3)*v/7.1);a.forEach(function(m){delete m.vis}),c.forEach(function(m,y){Math.round((y+p)%v)===0&&(m.vis=!0)})}}}});var q5=I((gPe,cU)=>{"use strict";cU.exports={container:"marker",min:"cmin",max:"cmax"}});var v9=I((bPe,vU)=>{"use strict";var R5=tn();vU.exports=function(r,t,a){var n={},i={_fullLayout:a},o=R5.getFromTrace(i,t,"x"),l=R5.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=R5.tickText(o,o.c2l(s),!0).text,n.yLabel=R5.tickText(l,l.c2l(u),!0).text,n}});var m9=I((xPe,hU)=>{"use strict";var h9=sa(),Rh=Sa(),Lbe=Pt();function Ebe(e){var r=h9.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=h9.select(this),n=t.trace||t[0].trace;d9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=h9.select(this),n=t.trace||t[0].trace;p9(a,n,e)}),r.selectAll("g.trace path.js-line").call(Rh.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Rh.fillGroupStyle,e,!1),Lbe.getComponentMethod("errorbars","style")(r)}function d9(e,r,t){Rh.pointStyle(e.selectAll("path.point"),r,t)}function p9(e,r,t){Rh.textPointStyle(e.selectAll("text"),r,t)}function Dbe(e,r,t){var a=r[0].trace;a.selectedpoints?(Rh.selectedPointStyle(t.selectAll("path.point"),a),Rh.selectedTextStyle(t.selectAll("text"),a)):(d9(t,a,e),p9(t,a,e))}hU.exports={style:Ebe,stylePoints:d9,styleText:p9,styleOnSelect:Dbe}});var y9=I((_Pe,dU)=>{"use strict";var Fh=Kt(),qbe=ki();dU.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Fh.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&&Fh.opacity(i)?i:o&&Fh.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Fh.opacity(n)<.3?Fh.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Fh.opacity(a)&&qbe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var yU=I((wPe,mU)=>{"use strict";var F5=ir(),pU=mu(),Rbe=Pt(),Fbe=y9(),g9=Kt(),Pbe=F5.fillText;mU.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,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(X){if(p){var Y=l.c2p(X.xStart),V=l.c2p(X.xEnd);return u>=Math.min(Y,V)&&u<=Math.max(Y,V)?0:1/0}var J=Math.max(3,X.mrc||0),j=1-1/J,ee=Math.abs(l.c2p(X.x)-u);return ee<J?j*ee/J:ee-J+j},b=function(X){if(m){var Y=s.c2p(X.yStart),V=s.c2p(X.yEnd);return f>=Math.min(Y,V)&&f<=Math.max(Y,V)?0:1/0}var J=Math.max(3,X.mrc||0),j=1-1/J,ee=Math.abs(s.c2p(X.y)-f);return ee<J?j*ee/J:ee-J+j},T=function(X){var Y=Math.max(d,X.mrc||0),V=l.c2p(X.x)-u,J=s.c2p(X.y)-f;return Math.max(Math.sqrt(V*V+J*J)-Y,1-d/Y)},_=pU.getDistanceFunction(n,y,b,T);if(pU.getClosest(i,_,r),r.index!==!1){var x=i[r.index],w=l.c2p(x.x,!0),k=s.c2p(x.y,!0),M=x.mrc||1;r.index=x.i;var C=i[0].t.orientation,D=C&&(x.sNorm||x.s),R=C==="h"?D:x.orig_x!==void 0?x.orig_x:x.x,P=C==="v"?D:x.orig_y!==void 0?x.orig_y:x.y;return F5.extendFlat(r,{color:Fbe(o,x),x0:w-M,x1:w+M,xLabelVal:R,y0:k-M,y1:k+M,yLabelVal:P,spikeDistance:T(x),hovertemplate:o.hovertemplate}),Pbe(x,o,r),Rbe.getComponentMethod("errorbars","hoverInfo")(x,o,r),[r]}}function q(X){if(!X)return!1;var Y=X.node();try{var V=new DOMPoint(c[0],c[1]);return Y.isPointInFill(V)}catch(j){var J=Y.ownerSVGElement.createSVGPoint();return J.x=c[0],J.y=c[1],Y.isPointInFill(J)}}function z(X){var Y,V=[],J=1/0,j=-1/0,ee=1/0,pe=-1/0,ne;for(Y=0;Y<X.length;Y++){var ye=X[Y];ye.contains(c)&&(V.push(ye),ee=Math.min(ee,ye.ymin),pe=Math.max(pe,ye.ymax))}if(V.length===0)return null;ee=Math.max(ee,0),pe=Math.min(pe,s._length),ne=(ee+pe)/2;var te,De,ce,Re,Fe,ge,Oe;for(Y=0;Y<V.length;Y++)for(De=V[Y].pts,te=1;te<De.length;te++)ge=De[te-1][1],Oe=De[te][1],ge>ne!=Oe>=ne&&(Re=De[te-1][0],Fe=De[te][0],Oe-ge&&(ce=Re+(Fe-Re)*(ne-ge)/(Oe-ge),J=Math.min(J,ce),j=Math.max(j,ce)));return J=Math.max(J,0),j=Math.min(j,l._length),{x0:J,x1:j,y0:ne,y1:ne}}if(v.indexOf("fills")!==-1&&o._fillElement){var B=q(o._fillElement)&&!q(o._fillExclusionElement);if(B){var U=z(o._polygons);U===null&&(U={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=g9.defaultLine;return g9.opacity(o.fillcolor)?G=o.fillcolor:g9.opacity((o.line||{}).color)&&(G=o.line.color),F5.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:G,hovertemplate:!1}),delete r.index,o.text&&!F5.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var xU=I((APe,bU)=>{"use strict";var gU=ki();bU.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&&!gU.hasMarkers(l)&&!gU.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 wU=I((TPe,_U)=>{"use strict";_U.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var kU=I((MPe,MU)=>{"use strict";var P5=Pt().traceIs,b9=L7();MU.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Nbe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Nbe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=zbe(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:!P5(i,"cartesian")||P5(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,TU(i,a)){var u=AU(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!P5(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=b9(f,l,s)}else if(i.type==="splom"){var v=i.dimensions,d=v[i._axesDim[t]];d.visible&&(e.type=b9(d.values,l,s))}else e.type=b9(i[a]||[i[a+"0"]],l,s)}}}function zbe(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(TU(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function AU(e){return{v:"x",h:"y"}[e.orientation||"v"]}function TU(e,r){var t=AU(e),a=P5(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var CU=I((kPe,SU)=>{"use strict";var Ibe=vo().isTypedArraySpec;function Bbe(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)}SU.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||Ibe(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=Bbe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var DU=I((SPe,EU)=>{"use strict";var LU=Kt(),Obe=bs(),Hbe=ir();EU.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(C,D){return Hbe.coerce2(r,t,n.attributes,C,D)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=LU.mix(i,n.bgColor,n.blend||Obe.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 m=LU.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",m),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!y||!!b||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),w=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!w||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var _9=I((CPe,zU)=>{"use strict";var qU=da(),Ube=Pt(),nm=ir(),Gbe=Ra(),Ybe=Yo(),x9=vl(),RU=K6(),FU=e7(),Vbe=a7(),Xbe=n7(),Wbe=CU(),Zbe=DU(),Jbe=$7(),PU=H2(),N5=(ni(),hr(ai)).WEEKDAY_PATTERN,jbe=(ni(),hr(ai)).HOUR_PATTERN;zU.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=Ube.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=nm.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"),PU(t,i),Jbe(r,t,a,n),Wbe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==x9.color.dflt?m:l.color,b=s.label||i._dfltTitle[o];if(Xbe(r,t,a,c,n),!u)return t;a("title.text",b),nm.coerceFont(a,"title.font",l,{overrideDflt:{size:nm.bigFont(l.size),color:y}}),RU(r,t,a,c);var T=n.hasMinor;if(T&&(Gbe.newContainer(t,"minor"),RU(r,t,a,c,{isMinor:!0})),Vbe(r,t,a,c,n),FU(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,FU(r,t,a,n),n.isMinor=_}Zbe(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:x9}),T&&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 w=a("showdividers");w&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Ybe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:$be}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k<t.rangebreaks.length;k++)if(t.rangebreaks[k].pattern===N5){t._hasDayOfWeekBreaks=!0;break}if(PU(t,i),i._has("scattergl")||i._has("splom"))for(var M=0;M<n.data.length;M++){var C=n.data[M];(C.type==="scattergl"||C.type==="splom")&&(C.visible=!1,nm.warn(C.type+" traces do not work on axes with rangebreaks. Setting trace "+C.index+" to `visible: false`."))}}return t};function $be(e,r,t){function a(v,d){return nm.coerce(e,r,x9.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=NU(i[l]),s){o=N5;break}}var u=a("pattern",o);if(u===N5)for(l=0;l<2;l++)s=NU(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case N5:if(!qU(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 jbe:if(!qU(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 Kbe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function NU(e){if(typeof e=="string")return Kbe[e.slice(0,3).toLowerCase()]}});var w9=I((LPe,IU)=>{"use strict";var Qbe=da(),z5=ir();IU.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,m;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||(Qbe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=z5.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=z5.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var _=!1;if(o.length&&(_=z5.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),z5.noneOrAll(r.domain,t.domain,c),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var WU=I((EPe,XU)=>{"use strict";var _0=ir(),BU=Kt(),exe=ws().isUnifiedHover,rxe=k8(),OU=Ra(),txe=Uv(),HU=vl(),axe=kU(),UU=_9(),nxe=_p(),GU=w9(),T9=mn(),Ps=T9.id2name,YU=T9.name2id,ixe=(ni(),hr(ai)).AX_ID_PATTERN,VU=Pt(),I5=VU.traceIs,A9=VU.getComponentMethod;function B5(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}XU.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m<a.length;m++){var b=a[m];if(I5(b,"cartesian")){var T;if(b.xaxis)T=Ps(b.xaxis),B5(i,T,b);else if(b.xaxes)for(y=0;y<b.xaxes.length;y++)B5(i,Ps(b.xaxes[y]),b);var _;if(b.yaxis)_=Ps(b.yaxis),B5(i,_,b);else if(b.yaxes)for(y=0;y<b.yaxes.length;y++)B5(i,Ps(b.yaxes[y]),b);if(b.type==="funnel"?b.orientation==="h"?(T&&(o[T]=!0),_&&(c[_]=!0)):_&&(l[_]=!0):b.type==="image"?(_&&(v[_]=!0),T&&(v[T]=!0)):(_&&(u[_]=!0,f[_]=!0),(!I5(b,"carpet")||b.type==="carpet"&&!b._cheater)&&T&&(s[T]=!0)),b.type==="carpet"&&b._cheater&&T&&(o[T]=!0),I5(b,"2dMap")&&(d[T]=!0,d[_]=!0),I5(b,"oriented")){var x=b.orientation==="h"?_:T;p[x]=!0}}}var w=t._subplots,k=w.xaxis,M=w.yaxis,C=_0.simpleMap(k,Ps),D=_0.simpleMap(M,Ps),R=C.concat(D),P=BU.background;k.length&&M.length&&(P=_0.coerce(r,t,txe,"plot_bgcolor"));var q=BU.combine(P,t.paper_bgcolor),z,B,U,G,X;function Y(){var Ce=i[z]||[];X._traceIndices=Ce.map(function(Tr){return Tr.index}),X._annIndices=[],X._shapeIndices=[],X._selectionIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=z,X._id=B}function V(Ce,Tr){return _0.coerce(G,X,HU,Ce,Tr)}function J(Ce,Tr){return _0.coerce2(G,X,HU,Ce,Tr)}function j(Ce){return Ce==="x"?M:k}function ee(Ce,Tr){for(var tt=Ce==="x"?C:D,at=[],de=0;de<tt.length;de++){var Le=tt[de];Le!==Tr&&!(r[Le]||{}).overlaying&&at.push(YU(Le))}return at}var pe={x:j("x"),y:j("y")},ne=pe.x.concat(pe.y),ye={},te=[];function De(){var Ce=G.matches;ixe.test(Ce)&&ne.indexOf(Ce)===-1&&(ye[Ce]=G.type,te=Object.keys(ye))}var ce=rxe(r,t),Re=exe(ce);for(m=0;m<R.length;m++){z=R[m],B=YU(z),U=z.charAt(0),_0.isPlainObject(r[z])||(r[z]={}),G=r[z],X=OU.newContainer(t,z,U+"axis"),Y();var Fe=U==="x"&&!s[z]&&o[z]||U==="y"&&!u[z]&&l[z],ge=U==="y"&&(!f[z]&&c[z]||v[z]),Oe={hasMinor:!0,letter:U,font:t.font,outerTicks:d[z],showGrid:!p[z],data:i[z]||[],bgColor:q,calendar:t.calendar,automargin:!0,visibleDflt:Fe,reverseDflt:ge,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[U]||{})[B],noAutotickangles:U==="y"};V("uirevision",t.uirevision),axe(G,X,V,Oe),UU(G,X,V,Oe,t);var cr=Re&&U===ce.charAt(0),qe=J("spikecolor",Re?X.color:void 0),ze=J("spikethickness",Re?1.5:void 0),Ue=J("spikedash",Re?"dot":void 0),We=J("spikemode",Re?"across":void 0),Ge=J("spikesnap"),or=V("showspikes",!!cr||!!qe||!!ze||!!Ue||!!We||!!Ge);or||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap);var Ye=Ps(G.overlaying),_r=[0,1];if(t[Ye]!==void 0){var Pr=Ps(t[Ye].anchor);t[Pr]!==void 0&&(_r=t[Pr].domain)}GU(G,X,V,{letter:U,counterAxes:pe[U],overlayableAxes:ee(U,z),grid:t.grid,overlayingDomain:_r}),V("title.standoff"),De(),X._input=G}for(m=0;m<te.length;){B=te[m++],z=Ps(B),U=z.charAt(0),_0.isPlainObject(r[z])||(r[z]={}),G=r[z],X=OU.newContainer(t,z,U+"axis"),Y();var Yr={letter:U,font:t.font,outerTicks:d[z],showGrid:!p[z],data:[],bgColor:q,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[U]||{})[B]};V("uirevision",t.uirevision),X.type=ye[B]||"linear",UU(G,X,V,Yr,t),GU(G,X,V,{letter:U,counterAxes:pe[U],overlayableAxes:ee(U,z),grid:t.grid}),V("fixedrange"),V("modebardisable"),De(),X._input=G}var $e=A9("rangeslider","handleDefaults"),mr=A9("rangeselector","handleDefaults");for(m=0;m<C.length;m++)z=C[m],G=r[z],X=t[z],$e(r,t,z),X.type==="date"&&mr(G,X,t,D,X.calendar),V("fixedrange"),V("modebardisable");for(m=0;m<D.length;m++){z=D[m],G=r[z],X=t[z];var Gr=t[Ps(X.anchor)],fe=A9("rangeslider","isVisible")(Gr);V("fixedrange",fe),V("modebardisable")}nxe.handleDefaults(r,t,{axIds:ne.concat(te).sort(T9.idSort),axHasImage:v})}});var jU=I((DPe,JU)=>{"use strict";var oxe=sa(),ZU=Pt(),O5=ir(),$o=Sa(),H5=tn();JU.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){H5.redrawComponents(r);return}function o(y){var b=y.xaxis,T=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call($o.setTranslate,0,0).call($o.setScale,1,1),y.plot.call($o.setTranslate,b._offset,T._offset).call($o.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call($o.setPointGroupScale,1,1),_.selectAll(".textpoint").call($o.setTextPointsScale,1,1),_.call($o.hideOutsideRangePoints,y)}function l(y,b){var T=y.plotinfo,_=T.xaxis,x=T.yaxis,w=_._length,k=x._length,M=!!y.xr1,C=!!y.yr1,D=[];if(M){var R=O5.simpleMap(y.xr0,_.r2l),P=O5.simpleMap(y.xr1,_.r2l),q=R[1]-R[0],z=P[1]-P[0];D[0]=(R[0]*(1-b)+b*P[0]-R[0])/(R[1]-R[0])*w,D[2]=w*(1-b+b*z/q),_.range[0]=_.l2r(R[0]*(1-b)+b*P[0]),_.range[1]=_.l2r(R[1]*(1-b)+b*P[1])}else D[0]=0,D[2]=w;if(C){var B=O5.simpleMap(y.yr0,x.r2l),U=O5.simpleMap(y.yr1,x.r2l),G=B[1]-B[0],X=U[1]-U[0];D[1]=(B[1]*(1-b)+b*U[1]-B[1])/(B[0]-B[1])*k,D[3]=k*(1-b+b*X/G),x.range[0]=_.l2r(B[0]*(1-b)+b*U[0]),x.range[1]=x.l2r(B[1]*(1-b)+b*U[1])}else D[1]=0,D[3]=k;H5.drawOne(r,_,{skipTitle:!0}),H5.drawOne(r,x,{skipTitle:!0}),H5.redrawComponents(r,[_._id,x._id]);var Y=M?w/D[2]:1,V=C?k/D[3]:1,J=M?D[0]:0,j=C?D[1]:0,ee=M?D[0]/D[2]*w:0,pe=C?D[1]/D[3]*k:0,ne=_._offset-ee,ye=x._offset-pe;T.clipRect.call($o.setTranslate,J,j).call($o.setScale,1/Y,1/V),T.plot.call($o.setTranslate,ne,ye).call($o.setScale,Y,V),$o.setPointGroupScale(T.zoomScalePts,1/Y,1/V),$o.setTextPointsScale(T.zoomScaleTxt,1/Y,1/V)}var s;n&&(s=n());function u(){for(var y={},b=0;b<t.length;b++){var T=t[b],_=T.plotinfo.xaxis,x=T.plotinfo.yaxis;T.xr1&&(y[_._name+".range"]=T.xr1.slice()),T.yr1&&(y[x._name+".range"]=T.yr1.slice())}return s&&s(),ZU.call("relayout",r,y).then(function(){for(var w=0;w<t.length;w++)o(t[w].plotinfo)})}function f(){for(var y={},b=0;b<t.length;b++){var T=t[b],_=T.plotinfo.xaxis,x=T.plotinfo.yaxis;T.xr0&&(y[_._name+".range"]=T.xr0.slice()),T.yr0&&(y[x._name+".range"]=T.yr0.slice())}return ZU.call("relayout",r,y).then(function(){for(var w=0;w<t.length;w++)o(t[w].plotinfo)})}var c,v,d,p=oxe.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function m(){v=Date.now();for(var y=Math.min(1,(v-c)/a.duration),b=p(y),T=0;T<t.length;T++)l(t[T],b);v-c>a.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var im=I(Yi=>{"use strict";var G5=sa(),$U=Pt(),w0=ir(),lxe=pi(),sxe=Sa(),KU=W1().getModuleCalcData,Bf=mn(),jl=(ni(),hr(ai)),uxe=(xf(),hr(bf)),wa=w0.ensureSingle;function U5(e,r,t){return w0.ensureSingle(e,r,t,function(a){a.datum(t)})}var A0=jl.zindexSeparator;Yi.name="cartesian";Yi.attr=["xaxis","yaxis"];Yi.idRoot=["x","y"];Yi.idRegex=jl.idRegex;Yi.attrRegex=jl.attrRegex;Yi.attributes=wU();Yi.layoutAttributes=vl();Yi.supplyLayoutDefaults=WU();Yi.transitionAxes=jU();Yi.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[Bf.id2name(f)]||{}).anchor,jl.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,w0.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[Bf.id2name(c)]||{}).anchor,jl.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,w0.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(jl.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?Bf.name2id(f):"x",c=c?Bf.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};Yi.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(A0)!==-1)continue;d+=A0+(u+1),v=w0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y<o.length;y++){var b=o[y],T=b[0].trace;f===(T.zorder||0)&&T.xaxis+T.yaxis===c&&((r.indexOf(T.index)!==-1||T.carpet)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(T.fill)!==-1&&p.indexOf(m)===-1&&p.push(m),p.push(b)),m=b)}QU(e,v,p,t,a)}}};function QU(e,r,t,a,n){for(var i=jl.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,v=[],d=[],p=0;p<l.length;p++)for(var m=l[p],y=0;y<s.length;y++){u=s[y];var b=u.name,T=$U.modules[b].categories;if(T.svg){var _=u.layerName||b+"layer",x=_+(p?Number(p)+1:""),w=u.plot;f=KU(t,w,m),c=f[0],t=f[1],c.length&&v.push({i:i.indexOf(_),zindex:p,className:x,plotMethod:w,cdModule:c}),T.zoomScale&&d.push("."+x)}}v.sort(function(C,D){return(C.zindex||0)-(D.zindex||0)||C.i-D.i});var k=r.plot.selectAll("g.mlayer").data(v,function(C){return C.className});if(k.enter().append("g").attr("class",function(C){return C.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),k.exit().remove(),k.order(),k.each(function(C){var D=G5.select(this),R=C.className;C.plotMethod(e,r,C.cdModule,D,a,n),jl.clipOnAxisFalseQuery.indexOf("."+R)===-1&&sxe.setClipUrl(D,r.layerClipId,e)}),o._has("scattergl")&&(u=$U.getModule("scattergl"),c=KU(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(jl.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var M=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=M.selectAll("path.point"),r.zoomScaleTxt=M.selectAll(".textpoint")}}Yi.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=Bf.listIds({_fullLayout:a});for(s=0;s<v.length;s++){var d=v[s];r[Bf.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var p=a._has&&a._has("cartesian"),m=r._has&&r._has("cartesian");if(p&&!m)rG(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(s=0;s<o.cartesian.length;s++){var y=o.cartesian[s];if(y.indexOf(A0)===-1&&!i[y]){var b="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(b).remove(),tG(y,a)}}};Yi.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(w0.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=fxe(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]+=A0+(v+1);c=c.concat(d)}var p=r._cartesianlayer.selectAll(".subplot").data(c,String);p.enter().append("g").attr("class",function(m){return"subplot "+m[0]}),p.order(),p.exit().call(rG,r),p.each(function(m){var y=m[0],b=y.indexOf(A0),T=b!==-1,_=T?y.slice(0,b):y,x=r._plots[y];x||(x=w0.extendFlat({},r._plots[_]),x&&(x.id=y,r._plots[y]=x,r._subplots.cartesian.push(y))),x&&(x.plotgroup=G5.select(this),eG(e,x),T||(x.draglayer=wa(r._draggers,"g",y)))})};Yi.rangePlot=function(e,r,t){eG(e,r),QU(e,r,t),lxe.style(e)};function fxe(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,m=d._id+p._id,y=r._plots[m];s.overlays=[],m!==l&&y?(s.mainplot=m,s.mainplotinfo=y,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),T=[];for(i=0;i<n;i++){l=b[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var _=[],x=1;x<=t;x++){var w="";for(x>1&&(w+=A0+x),_.push(l+w),o=0;o<s.overlays.length;o++)_.push(s.overlays[o].id+w)}_=_.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),T.push(_)}return T}function eG(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(A0),o=i!==-1,l=jl.layerValue2layerClass[r.xaxis.layer],s=jl.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=wa(a,"path","xlines-above"),r.ylines=wa(a,"path","ylines-above"),r.xaxislayer=wa(a,"g","xaxislayer-above"),r.yaxislayer=wa(a,"g","yaxislayer-above");else{if(!o){var v=wa(a,"g","layer-subplot");r.shapelayer=wa(v,"g","shapelayer"),r.imagelayer=wa(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=wa(a,"g","minor-gridlayer"),r.gridlayer=wa(a,"g","gridlayer"),r.zerolinelayer=wa(a,"g","zerolinelayer"));var d=wa(a,"g","layer-between");r.shapelayerBetween=wa(d,"g","shapelayer"),r.imagelayerBetween=wa(d,"g","imagelayer"),wa(a,"path","xlines-below"),wa(a,"path","ylines-below"),r.overlinesBelow=wa(a,"g","overlines-below"),wa(a,"g","xaxislayer-below"),wa(a,"g","yaxislayer-below"),r.overaxesBelow=wa(a,"g","overaxes-below")}r.overplot=wa(a,"g","overplot"),r.plot=wa(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=wa(a,"g","zerolinelayer-above"),o||(r.xlines=wa(a,"path","xlines-above"),r.ylines=wa(a,"path","ylines-above"),r.overlinesAbove=wa(a,"g","overlines-above"),wa(a,"g","xaxislayer-above"),wa(a,"g","yaxislayer-above"),r.overaxesAbove=wa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,wa(c.overlinesBelow,"path",m),wa(c.overlinesBelow,"path",y),wa(c.overaxesBelow,"g",m),wa(c.overaxesBelow,"g",y),r.plot=wa(c.overplot,"g",n),wa(c.overlinesAbove,"path",m),wa(c.overlinesAbove,"path",y),wa(c.overaxesAbove,"g",m),wa(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(U5(r.minorGridlayer,"g",r.xaxis._id),U5(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Bf.idSort),U5(r.gridlayer,"g",r.xaxis._id),U5(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Bf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function rG(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=G5.select(this);f.remove(),tG(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 tG(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}Yi.toSVG=function(e){var r=e._fullLayout._glimages,t=G5.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:uxe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};Yi.updateFx=kw().updateFx});var nG=I((RPe,aG)=>{"use strict";var Y5=ki();aG.exports={hasLines:Y5.hasLines,hasMarkers:Y5.hasMarkers,hasText:Y5.hasText,isBubble:Y5.isBubble,attributes:Nf(),layoutAttributes:g2(),supplyDefaults:gH(),crossTraceDefaults:Jw(),supplyLayoutDefaults:AH(),calc:Ch().calc,crossTraceCalc:$H(),arraysToCalcdata:Qw(),plot:fU(),colorbar:q5(),formatLabels:v9(),style:m9().style,styleOnSelect:m9().styleOnSelect,hoverPoints:yU(),selectPoints:xU(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:im(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var lG=I((FPe,oG)=>{"use strict";var cxe=sa(),vxe=Kt(),iG=mw(),M9=ir(),hxe=M9.strScale,dxe=M9.strRotate,pxe=M9.strTranslate;oG.exports=function(r,t,a){var n=r.node(),i=iG[a.arrowhead||0],o=iG[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,m,y;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,T=d.y-p.y;if(m=Math.atan2(T,b),y=m+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){B();return}if(c){if(c*c>b*b+T*T){B();return}var _=c*Math.cos(m),x=c*Math.sin(m);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){B();return}var w=v*Math.cos(m),k=v*Math.sin(m);d.x-=w,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),C="";if(M<c+v){B();return}var D=n.getPointAtLength(0),R=n.getPointAtLength(.1);m=Math.atan2(D.y-R.y,D.x-R.x),d=n.getPointAtLength(Math.min(v,M)),C="0px,"+v+"px,";var P=n.getPointAtLength(M),q=n.getPointAtLength(M-.1);y=Math.atan2(P.y-q.y,P.x-q.x),p=n.getPointAtLength(Math.max(0,M-c));var z=C?v+c:c;C+=M-z+"px,"+M+"px",r.style("stroke-dasharray",C)}function B(){r.style("stroke-dasharray","0px,100px")}function U(G,X,Y,V){G.path&&(G.noRotate&&(Y=0),cxe.select(n.parentNode).append("path").attr({class:r.attr("class"),d:G.path,transform:pxe(X.x,X.y)+dxe(Y*180/Math.PI)+hxe(V)}).style({fill:vxe.rgb(a.arrowcolor),"stroke-width":0}))}u&&U(o,d,m,s),f&&U(i,p,y,l)}});var V5=I((PPe,vG)=>{"use strict";var sG=sa(),k9=Pt(),mxe=pi(),Hf=ir(),S9=Hf.strTranslate,lm=tn(),T0=Kt(),wu=Sa(),uG=mu(),C9=Ri(),L9=Cf(),om=Yl(),yxe=Ra().arrayEditor,gxe=lG();vG.exports={draw:bxe,drawOne:fG,drawRaw:cG};function bxe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&fG(e,t);return mxe.previousPromises(e)}function fG(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=lm.getFromId(e,a.xref),i=lm.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),cG(e,a,r,!1,n,i)}function Of(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=lm.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 cG(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=yxe(e.layout,f,r),v=c.modifyBase,d=c.modifyItem,p=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var m="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){sG.selectAll("#"+m).remove();return}var y={x:{},y:{}},b=+r.textangle||0,T=o._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),_=T.append("g").classed("annotation-text-g",!0),x=s[r.showarrow?"annotationTail":"annotationPosition"],w=r.captureevents||s.annotationText||x;function k(V){var J={index:t,annotation:r._input,fullAnnotation:r,event:V};return a&&(J.subplotId=a),J}var M=_.append("g").style("pointer-events",w?"all":null).call(L9,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",k(sG.event))});r.hovertext&&M.on("mouseover",function(){var V=r.hoverlabel,J=V.font,j=this.getBoundingClientRect(),ee=e.getBoundingClientRect();uG.loneHover({x0:j.left-ee.left,x1:j.right-ee.left,y:(j.top+j.bottom)/2-ee.top,text:r.hovertext,color:V.bgcolor,borderColor:V.bordercolor,fontFamily:J.family,fontSize:J.size,fontColor:J.color,fontWeight:J.weight,fontStyle:J.style,fontVariant:J.variant,fontShadow:J.fontShadow,fontLineposition:J.fontLineposition,fontTextcase:J.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){uG.loneUnhover(o._hoverlayer.node())});var C=r.borderwidth,D=r.borderpad,R=C+D,P=M.append("rect").attr("class","bg").style("stroke-width",C+"px").call(T0.stroke,r.bordercolor).call(T0.fill,r.bgcolor),q=r.width||r.height,z=o._topclips.selectAll("#"+m).data(q?[0]:[]);z.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),z.exit().remove();var B=r.font,U=o._meta?Hf.templateString(r.text,o._meta):r.text,G=M.append("text").classed("annotation-text",!0).text(U);function X(V){return V.call(wu.font,B).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),C9.convertToTspans(V,e,Y),V}function Y(){var V=G.selectAll("a");if(V.size()===1&&V.text()===G.text()){var J=M.insert("a",":first-child").attr({"xlink:xlink:href":V.attr("xlink:href"),"xlink:xlink:show":V.attr("xlink:show")}).style({cursor:"pointer"});J.node().appendChild(P.node())}var j=M.select(".annotation-text-math-group"),ee=!j.empty(),pe=wu.bBox((ee?j:G).node()),ne=pe.width,ye=pe.height,te=r.width||ne,De=r.height||ye,ce=Math.round(te+2*R),Re=Math.round(De+2*R);function Fe(zr,it){return it==="auto"&&(zr<1/3?it="left":zr>2/3?it="right":it="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[it]}for(var ge=!1,Oe=["x","y"],cr=0;cr<Oe.length;cr++){var qe=Oe[cr],ze=r[qe+"ref"]||qe,Ue=r["a"+qe+"ref"],We={x:n,y:i}[qe],Ge=(b+(qe==="x"?0:-90))*Math.PI/180,or=ce*Math.cos(Ge),Ye=Re*Math.sin(Ge),_r=Math.abs(or)+Math.abs(Ye),Pr=r[qe+"anchor"],Yr=r[qe+"shift"]*(qe==="x"?1:-1),$e=y[qe],mr,Gr,fe,Ce,Tr,tt=lm.getRefType(ze);if(We&&tt!=="domain"){var at=We.r2fraction(r[qe]);(at<0||at>1)&&(Ue===ze?(at=We.r2fraction(r["a"+qe]),(at<0||at>1)&&(ge=!0)):ge=!0),mr=We._offset+We.r2p(r[qe]),Ce=.5}else{var de=tt==="domain";qe==="x"?(fe=r[qe],mr=de?We._offset+We._length*fe:mr=l.l+l.w*fe):(fe=1-r[qe],mr=de?We._offset+We._length*fe:mr=l.t+l.h*fe),Ce=r.showarrow?.5:fe}if(r.showarrow){$e.head=mr;var Le=r["a"+qe];if(Tr=or*Fe(.5,r.xanchor)-Ye*Fe(.5,r.yanchor),Ue===ze){var lr=lm.getRefType(Ue);lr==="domain"?(qe==="y"&&(Le=1-Le),$e.tail=We._offset+We._length*Le):lr==="paper"?qe==="y"?(Le=1-Le,$e.tail=l.t+l.h*Le):$e.tail=l.l+l.w*Le:$e.tail=We._offset+We.r2p(Le),Gr=Tr}else $e.tail=mr+Le,Gr=Tr+Le;$e.text=$e.tail+Tr;var Ar=o[qe==="x"?"width":"height"];if(ze==="paper"&&($e.head=Hf.constrain($e.head,1,Ar-1)),Ue==="pixel"){var ur=-Math.max($e.tail-3,$e.text),Cr=Math.min($e.tail+3,$e.text)-Ar;ur>0?($e.tail+=ur,$e.text+=ur):Cr>0&&($e.tail-=Cr,$e.text-=Cr)}$e.tail+=Yr,$e.head+=Yr}else Tr=_r*Fe(Ce,Pr),Gr=Tr,$e.text=mr+Tr;$e.text+=Yr,Tr+=Yr,Gr+=Yr,r["_"+qe+"padplus"]=_r/2+Gr,r["_"+qe+"padminus"]=_r/2-Gr,r["_"+qe+"size"]=_r,r["_"+qe+"shift"]=Tr}if(ge){M.remove();return}var Er=0,Vr=0;if(r.align!=="left"&&(Er=(te-ne)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Vr=(De-ye)*(r.valign==="middle"?.5:1)),ee)j.select("svg").attr({x:R+Er-1,y:R+Vr}).call(wu.setClipUrl,q?m:null,e);else{var ot=R+Vr-pe.top,Ve=R+Er-pe.left;G.call(C9.positionText,Ve,ot).call(wu.setClipUrl,q?m:null,e)}z.select("rect").call(wu.setRect,R,R,te,De),P.call(wu.setRect,C/2,C/2,ce-C,Re-C),M.call(wu.setTranslate,Math.round(y.x.text-ce/2),Math.round(y.y.text-Re/2)),_.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Mr=function(zr,it){T.selectAll(".annotation-arrow-g").remove();var lt=y.x.head,Qr=y.y.head,se=y.x.tail+zr,Te=y.y.tail+it,tr=y.x.text+zr,vr=y.y.text+it,na=Hf.rotationXYMatrix(b,tr,vr),Ea=Hf.apply2DTransform(na),Da=Hf.apply2DTransform2(na),Va=+P.attr("width"),on=+P.attr("height"),Xa=tr-.5*Va,Mn=Xa+Va,Ba=vr-.5*on,hn=Ba+on,Yn=[[Xa,Ba,Xa,hn],[Xa,hn,Mn,hn],[Mn,hn,Mn,Ba],[Mn,Ba,Xa,Ba]].map(Da);if(!Yn.reduce(function(It,pa){return It^!!Hf.segmentsIntersect(lt,Qr,lt+1e6,Qr+1e6,pa[0],pa[1],pa[2],pa[3])},!1)){Yn.forEach(function(It){var pa=Hf.segmentsIntersect(se,Te,lt,Qr,It[0],It[1],It[2],It[3]);pa&&(se=pa.x,Te=pa.y)});var Kn=r.arrowwidth,si=r.arrowcolor,Wa=r.arrowside,Vn=T.append("g").style({opacity:T0.opacity(si)}).classed("annotation-arrow-g",!0),ln=Vn.append("path").attr("d","M"+se+","+Te+"L"+lt+","+Qr).style("stroke-width",Kn+"px").call(T0.stroke,T0.rgb(si));if(gxe(ln,Wa,r),s.annotationPosition&&ln.node().parentNode&&!a){var sn=lt,Za=Qr;if(r.standoff){var kn=Math.sqrt(Math.pow(lt-se,2)+Math.pow(Qr-Te,2));sn+=r.standoff*(se-lt)/kn,Za+=r.standoff*(Te-Qr)/kn}var ui=Vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(se-sn)+","+(Te-Za),transform:S9(sn,Za)}).style("stroke-width",Kn+6+"px").call(T0.stroke,"rgba(0,0,0,0)").call(T0.fill,"rgba(0,0,0,0)"),Ir,Qt;om.init({element:ui.node(),gd:e,prepFn:function(){var It=wu.getTranslate(M);Ir=It.x,Qt=It.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(It,pa){var Xn=Ea(Ir,Qt),_i=Xn[0]+It,un=Xn[1]+pa;M.call(wu.setTranslate,_i,un),d("x",Of(n,It,"x",l,r)),d("y",Of(i,pa,"y",l,r)),r.axref===r.xref&&d("ax",Of(n,It,"ax",l,r)),r.ayref===r.yref&&d("ay",Of(i,pa,"ay",l,r)),Vn.attr("transform",S9(It,pa)),_.attr({transform:"rotate("+b+","+_i+","+un+")"})},doneFn:function(){k9.call("_guiRelayout",e,p());var It=document.querySelector(".js-notes-box-panel");It&&It.redraw(It.selectedObj)}})}}};if(r.showarrow&&Mr(0,0),x){var Qe;om.init({element:M.node(),gd:e,prepFn:function(){Qe=_.attr("transform")},moveFn:function(zr,it){var lt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Of(n,zr,"ax",l,r)):d("ax",r.ax+zr),r.ayref===r.yref?d("ay",Of(i,it,"ay",l.w,r)):d("ay",r.ay+it),Mr(zr,it);else{if(a)return;var Qr,se;if(n)Qr=Of(n,zr,"x",l,r);else{var Te=r._xsize/l.w,tr=r.x+(r._xshift-r.xshift)/l.w-Te/2;Qr=om.align(tr+zr/l.w,Te,0,1,r.xanchor)}if(i)se=Of(i,it,"y",l,r);else{var vr=r._ysize/l.h,na=r.y-(r._yshift+r.yshift)/l.h-vr/2;se=om.align(na-it/l.h,vr,0,1,r.yanchor)}d("x",Qr),d("y",se),(!n||!i)&&(lt=om.getCursor(n?.5:Qr,i?.5:se,r.xanchor,r.yanchor))}_.attr({transform:S9(zr,it)+Qe}),L9(M,lt)},clickFn:function(zr,it){r.captureevents&&e.emit("plotly_clickannotation",k(it))},doneFn:function(){L9(M),k9.call("_guiRelayout",e,p());var zr=document.querySelector(".js-notes-box-panel");zr&&zr.redraw(zr.selectedObj)}})}}s.annotationText?G.call(C9.makeEditable,{delegate:M,gd:e}).call(X).on("edit",function(V){r.text=V,this.call(X),d("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),k9.call("_guiRelayout",e,p())}):G.call(X)}});var gG=I((NPe,yG)=>{"use strict";var hG=ir(),xxe=Pt(),dG=Ra().arrayEditor;yG.exports={hasClickToShow:_xe,onClick:wxe};function _xe(e,r){var t=mG(e,r);return t.on.length>0||t.explicitOff.length>0}function wxe(e,r){var t=mG(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=dG(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),hG.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=dG(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),hG.extendFlat(i,s.getUpdateObj());return xxe.call("update",e,{},i)}}function mG(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)===pG(u._xclick,v)&&d.d2r(c.y)===pG(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 pG(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var D9=I((zPe,bG)=>{"use strict";var E9=ir(),Ph=Kt();bG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Ph.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),E9.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:Ph.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Ph.opacity(i)?Ph.rgb(i):Ph.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||Ph.contrast(y)),T=E9.extendFlat({},m.font);T.color||(T.color=b),E9.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var _G=I((IPe,xG)=>{"use strict";var q9=ir(),M0=tn(),Axe=Yo(),Txe=D9(),Mxe=Th();xG.exports=function(r,t){Axe(r,t,{name:"annotations",handleItemDefaults:kxe})};function kxe(e,r,t){function a(_,x){return q9.coerce(e,r,Mxe,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Txe(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=M0.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=M0.getFromId(u,v);d._annIndices.push(r._index)}if(M0.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=M0.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;M0.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(q9.noneOrAll(e,r,["x","y"]),o&&q9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:M0.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:M0.cleanPosition(T,u,r.yref)}}}});var TG=I((BPe,AG)=>{"use strict";var R9=ir(),k0=tn(),Sxe=V5().draw;AG.exports=function(r){var t=r._fullLayout,a=R9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return R9.syncOrAsync([Sxe,Cxe],r)};function Cxe(e){var r=e._fullLayout;R9.filterVisible(r.annotations).forEach(function(t){var a=k0.getFromId(e,t.xref),n=k0.getFromId(e,t.yref),i=k0.getRefType(t.xref),o=k0.getRefType(t.yref);t._extremes={},i==="range"&&wG(t,a),o==="range"&&wG(t,n)})}function wG(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,m=p+f,y=p-f,b;if(l===o){var T=k0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=k0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=k0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var kG=I((OPe,MG)=>{"use strict";var Lxe=da(),Exe=hg();MG.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],m=null;i?m=Exe(p,t.range):m=Math.pow(10,p),Lxe(m)||(m=null),n(f+d,m)}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 LG=I((HPe,CG)=>{"use strict";var F9=V5(),SG=gG();CG.exports={moduleType:"component",name:"annotations",layoutAttributes:Th(),supplyLayoutDefaults:_G(),includeBasePlot:Up()("annotations"),calcAutorange:TG(),draw:F9.draw,drawOne:F9.drawOne,drawRaw:F9.drawRaw,hasClickToShow:SG.hasClickToShow,onClick:SG.onClick,convertCoords:kG()}});var X5=I((UPe,EG)=>{"use strict";var Ia=Th(),Dxe=Il().overrideAll,qxe=Ra().templatedArray;EG.exports=Dxe(qxe("annotation",{visible:Ia.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ia.xanchor,xshift:Ia.xshift,yanchor:Ia.yanchor,yshift:Ia.yshift,text:Ia.text,textangle:Ia.textangle,font:Ia.font,width:Ia.width,height:Ia.height,opacity:Ia.opacity,align:Ia.align,valign:Ia.valign,bgcolor:Ia.bgcolor,bordercolor:Ia.bordercolor,borderpad:Ia.borderpad,borderwidth:Ia.borderwidth,showarrow:Ia.showarrow,arrowcolor:Ia.arrowcolor,arrowhead:Ia.arrowhead,startarrowhead:Ia.startarrowhead,arrowside:Ia.arrowside,arrowsize:Ia.arrowsize,startarrowsize:Ia.startarrowsize,arrowwidth:Ia.arrowwidth,standoff:Ia.standoff,startstandoff:Ia.startstandoff,hovertext:Ia.hovertext,hoverlabel:Ia.hoverlabel,captureevents:Ia.captureevents}),"calc","from-root")});var qG=I((GPe,DG)=>{"use strict";var P9=ir(),Rxe=tn(),Fxe=Yo(),Pxe=D9(),Nxe=X5();DG.exports=function(r,t,a){Fxe(r,t,{name:"annotations",handleItemDefaults:zxe,fullLayout:a.fullLayout})};function zxe(e,r,t,a){function n(l,s){return P9.coerce(e,r,Nxe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Rxe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Pxe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P9.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),P9.noneOrAll(e,r,["ax","ay"])))}});var NG=I((YPe,PG)=>{"use strict";var RG=ir(),FG=tn();PG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)Ixe(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Ixe(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={},RG.extendFlat(e._xa,i),FG.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={},RG.extendFlat(e._ya,i),FG.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 IG=I((VPe,zG)=>{"use strict";function N9(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 Bxe(e,r){var t=N9(e.projection,N9(e.view,N9(e.model,[r[0],r[1],r[2],1])));return t}zG.exports=Bxe});var OG=I((XPe,BG)=>{"use strict";var Oxe=V5().drawRaw,Hxe=IG(),Uxe=["x","y","z"];BG.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=Uxe[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=Hxe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Oxe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var GG=I((WPe,UG)=>{"use strict";var Gxe=Pt(),HG=ir();UG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:X5()}}},layoutAttributes:X5(),handleDefaults:qG(),includeBasePlot:Yxe,convert:NG(),draw:OG()};function Yxe(e,r){var t=Gxe.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&&(HG.pushUnique(r._basePlotModules,t),HG.pushUnique(r._subplots.gl3d,o))}}});var z9=I((jPe,WG)=>{"use strict";var ZPe=(ni(),hr(ai)),YG=Di(),VG=Nf().line,Vxe=uf().dash,$l=Rn().extendFlat,Xxe=Ra().templatedArray,JPe=(Ip(),hr(zp)),Nh=Pl(),XG=Th(),{shapeTexttemplateAttrs:Wxe,templatefallbackAttrs:Zxe}=Hv(),Jxe=Wg();WG.exports=Xxe("shape",{visible:$l({},Nh.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:$l({},Nh.legend,{editType:"calc+arraydraw"}),legendgroup:$l({},Nh.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:$l({},Nh.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:YG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:$l({},Nh.legendrank,{editType:"calc+arraydraw"}),legendwidth:$l({},Nh.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:$l({},XG.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:$l({},XG.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:$l({},VG.color,{editType:"arraydraw"}),width:$l({},VG.width,{editType:"calc+arraydraw"}),dash:$l({},Vxe,{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:Wxe({},{keys:Object.keys(Jxe)}),texttemplatefallback:Zxe({editType:"arraydraw"}),font:YG({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 JG=I(($Pe,ZG)=>{"use strict";var zh=ir(),Ko=tn(),jxe=Yo(),$xe=z9(),sm=Ff();ZG.exports=function(r,t){jxe(r,t,{name:"shapes",handleItemDefaults:Qxe})};function Kxe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Qxe(e,r,t){function a(_,x){return zh.coerce(e,r,$xe,_,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"),zh.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(_=>{var x=_+"anchor",w=_==="x"?c:v,k={_fullLayout:t},M,C,D,R;let P=_+"ref",q=e[P];if(Array.isArray(q)&&q.length>0){let z=sm.countDefiningCoords(s,o,_);R=Ko.coerceRefArray(e,r,k,_,void 0,"paper",z),r["_"+_+"refArray"]=!0}else R=Ko.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(R))R.forEach(function(z){Ko.getRefType(z)==="range"&&(M=Ko.getFromId(k,z),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(z){let B=R[z];Ko.getRefType(B)==="range"?(M=Ko.getFromId(k,B),C=sm.shapePositionToRange(M),D=sm.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+z+"shift")):C=D=zh.identity;let G=_+z,X=e[G];if(e[G]=C(e[G],!0),w==="pixel"?a(G,p[z]):Ko.coercePosition(r,k,a,B,G,d[z]),r[G]=D(r[G]),e[G]=X,z===0&&w==="pixel"){let Y=e[x];e[x]=C(e[x],!0),Ko.coercePosition(r,k,a,B,x,.25),r[x]=D(r[x]),e[x]=Y}});else{if(Ko.getRefType(R)==="range"?(M=Ko.getFromId(k,R),M._shapeIndices.push(r._index),D=sm.rangeToShapePosition(M),C=sm.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):C=D=zh.identity,u){let B=_+"0",U=_+"1",G=e[B],X=e[U];e[B]=C(e[B],!0),e[U]=C(e[U],!0),w==="pixel"?(a(B,p[0]),a(U,p[1])):(Ko.coercePosition(r,k,a,R,B,d[0]),Ko.coercePosition(r,k,a,R,U,d[1])),r[B]=D(r[B]),r[U]=D(r[U]),e[B]=G,e[U]=X}if(w==="pixel"){let B=e[x];e[x]=C(e[x],!0),Ko.coercePosition(r,k,a,R,x,.25),r[x]=D(r[x]),e[x]=B}}}),u&&zh.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var T=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Kxe(m,T)),a("label.padding"),zh.coerceFont(a,"label.font",t.font)}}});var KG=I((KPe,$G)=>{"use strict";var e_e=Kt(),jG=ir();function r_e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}$G.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"),jG.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",e_e.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",r_e(o,u)),a("newshape.label.padding"),jG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var iY=I((QPe,nY)=>{"use strict";var I9=ir(),Ml=tn(),Ns=(yp(),hr(mp)),B9=Ff();nY.exports=function(r){var t=r._fullLayout,a=I9.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=Ml.getRefType(i.xref),u=Ml.getRefType(i.yref);if(s==="array"){let f=QG(r,i,"x");Object.entries(f).forEach(([c,v])=>{o=Ml.getFromId(r,c),i._extremes[o._id]=Ml.findExtremes(o,v,eY(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ml.getFromId(r,i.xref),l=tY(o,i,Ns.paramIsX),l&&(i._extremes[o._id]=Ml.findExtremes(o,l,eY(i))));if(u==="array"){let f=QG(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=Ml.getFromId(r,c),i._extremes[o._id]=Ml.findExtremes(o,v,rY(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ml.getFromId(r,i.yref),l=tY(o,i,Ns.paramIsY),l&&(i._extremes[o._id]=Ml.findExtremes(o,l,rY(i))))}};function QG(e,r,t){let a=r[t+"ref"],n=t==="x"?Ns.paramIsX:Ns.paramIsY;function i(c,v){c==="paper"||Ml.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Ns.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 m=v.slice(1).match(Ns.paramRE);m&&m.length>p&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=Ml.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=B9.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function eY(e){return aY(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function rY(e){return aY(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function aY(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?B9.extractPathCoords(n,i?Ns.paramIsY:Ns.paramIsX):[t,a],u=I9.aggNums(Math.max,null,s),f=I9.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 tY(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(Ns.segmentRE),p,m,y,b,T;for(e.type==="date"&&(u=B9.decodeDate(u)),p=0;p<d.length;p++)m=d[p],y=t[m.charAt(0)].drawn,y!==void 0&&(b=d[p].slice(1).match(Ns.paramRE),!(!b||b.length<y)&&(T=u(b[y]),T<c&&(c=T),T>v&&(v=T)));if(v>=c)return[c,v]}}});var sY=I((eNe,lY)=>{"use strict";var oY=P3();lY.exports={moduleType:"component",name:"shapes",layoutAttributes:z9(),supplyLayoutDefaults:JG(),supplyDrawNewShapeDefaults:KG(),includeBasePlot:Up()("shapes"),calcAutorange:iY(),draw:oY.draw,drawOne:oY.drawOne}});var O9=I((tNe,fY)=>{"use strict";var uY=(ni(),hr(ai)),t_e=Ra().templatedArray,rNe=(Ip(),hr(zp));fY.exports=t_e("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",uY.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",uY.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var vY=I((aNe,cY)=>{"use strict";var a_e=ir(),H9=tn(),n_e=Yo(),i_e=O9(),o_e="images";cY.exports=function(r,t){var a={name:o_e,handleItemDefaults:l_e};n_e(r,t,a)};function l_e(e,r,t){function a(v,d){return a_e.coerce(e,r,i_e,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=H9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=H9.getFromId(o,f);c._imgIndices.push(r._index)}H9.coercePosition(r,o,a,f,u,0)}return r}});var mY=I((nNe,pY)=>{"use strict";var hY=sa(),s_e=Sa(),Ih=tn(),dY=mn(),u_e=(xf(),hr(bf));pY.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=dY.ref2id(s.xref)+dY.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 w=hY.select(this);if(this._imgSrc!==x.source)if(w.attr("xmlns",u_e.svg),!r._context.staticPlot||x.source&&x.source.slice(0,5)==="data:")w.attr("xlink:href",x.source),this._imgSrc=x.source;else{var k=new Promise(function(M){var C=new Image;this.img=C,C.setAttribute("crossOrigin","anonymous"),C.onerror=D,C.onload=function(){var R=document.createElement("canvas");R.width=this.width,R.height=this.height;var P=R.getContext("2d",{willReadFrequently:!0});P.drawImage(this,0,0);var q=R.toDataURL("image/png");w.attr("xlink:href",q),M()},w.on("error",D),C.src=x.source,this._imgSrc=x.source;function D(){w.remove(),M()}}.bind(this));r._promises.push(k)}}function v(x){var w=hY.select(this),k=Ih.getFromId(r,x.xref),M=Ih.getFromId(r,x.yref),C=Ih.getRefType(x.xref)==="domain",D=Ih.getRefType(x.yref)==="domain",R=t._size,P,q;k!==void 0?P=typeof x.xref=="string"&&C?k._length*x.sizex:Math.abs(k.l2p(x.sizex)-k.l2p(0)):P=x.sizex*R.w,M!==void 0?q=typeof x.yref=="string"&&D?M._length*x.sizey:Math.abs(M.l2p(x.sizey)-M.l2p(0)):q=x.sizey*R.h;var z=P*f.x[x.xanchor].offset,B=q*f.y[x.yanchor].offset,U=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,G,X;switch(k!==void 0?G=typeof x.xref=="string"&&C?k._length*x.x+k._offset:k.r2p(x.x)+k._offset:G=x.x*R.w+R.l,G+=z,M!==void 0?X=typeof x.yref=="string"&&D?M._length*(1-x.y)+M._offset:M.r2p(x.y)+M._offset:X=R.h-x.y*R.h+R.t,X+=B,x.sizing){case"fill":U+=" slice";break;case"stretch":U="none";break}w.attr({x:G,y:X,width:P,height:q,preserveAspectRatio:U,opacity:x.opacity});var Y=k&&Ih.getRefType(x.xref)!=="domain"?k._id:"",V=M&&Ih.getRefType(x.yref)!=="domain"?M._id:"",J=Y+V;s_e.setClipUrl(w,J?"clip"+t._uid+J:null,r)}function d(x){return[x.xref,x.x,x.sizex,x.yref,x.y,x.sizey].join("_")}function p(x,w){return x._index-w._index}var m=t._imageLowerLayer.selectAll("image").data(i,d),y=t._imageUpperLayer.selectAll("image").data(a,d);m.enter().append("image"),y.enter().append("image"),m.exit().remove(),y.exit().remove(),m.each(function(x){c.bind(this)(x),v.bind(this)(x)}),y.each(function(x){c.bind(this)(x),v.bind(this)(x)}),m.sort(p),y.sort(p);var b=Object.keys(t._plots);for(l=0;l<b.length;l++){o=b[l];var T=t._plots[o];if(T.imagelayer){var _=T.imagelayer.selectAll("image").data(n[o]||[],d);_.enter().append("image"),_.exit().remove(),_.each(function(x){c.bind(this)(x),v.bind(this)(x)}),_.sort(p)}}}});var bY=I((iNe,gY)=>{"use strict";var yY=da(),f_e=hg();gY.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,m=null;if(i){p=f_e(v,t.range);var y=d/Math.pow(10,p)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else p=Math.pow(10,v),m=p*(Math.pow(10,d/2)-Math.pow(10,-d/2));yY(p)?yY(m)||(m=null):(p=null,m=null),n(f+s,p),n(f+"size"+s,m)}}}});var _Y=I((oNe,xY)=>{"use strict";xY.exports={moduleType:"component",name:"images",layoutAttributes:O9(),supplyLayoutDefaults:vY(),includeBasePlot:Up()("images"),draw:mY(),convertCoords:bY()}});var W5={};Ka(W5,{activeColor:()=>P_e,arrowOffsetX:()=>q_e,arrowPadX:()=>S_e,arrowSymbol:()=>z_e,autoMarginIdRoot:()=>w_e,blankHeaderOpts:()=>A_e,buttonClassName:()=>g_e,containerClassName:()=>v_e,dropdownButtonClassName:()=>y_e,dropdownButtonGroupClassName:()=>m_e,gapButton:()=>F_e,gapButtonHeader:()=>R_e,headerArrowClassName:()=>p_e,headerClassName:()=>d_e,headerGroupClassName:()=>h_e,hoverColor:()=>N_e,itemRectClassName:()=>b_e,itemTextClassName:()=>x_e,menuIndexAttrName:()=>__e,minHeight:()=>M_e,minWidth:()=>T_e,name:()=>c_e,rx:()=>C_e,ry:()=>L_e,textOffsetX:()=>E_e,textOffsetY:()=>D_e,textPadX:()=>k_e});var c_e,v_e,h_e,d_e,p_e,m_e,y_e,g_e,b_e,x_e,__e,w_e,A_e,T_e,M_e,k_e,S_e,C_e,L_e,E_e,D_e,q_e,R_e,F_e,P_e,N_e,z_e,Z5=$a(()=>{"use strict";c_e="updatemenus",v_e="updatemenu-container",h_e="updatemenu-header-group",d_e="updatemenu-header",p_e="updatemenu-header-arrow",m_e="updatemenu-dropdown-button-group",y_e="updatemenu-dropdown-button",g_e="updatemenu-button",b_e="updatemenu-item-rect",x_e="updatemenu-item-text",__e="updatemenu-active-index",w_e="updatemenu-",A_e={label:"  "},T_e=30,M_e=30,k_e=24,S_e=16,C_e=2,L_e=2,E_e=12,D_e=3,q_e=4,R_e=5,F_e=2,P_e="#F4FAFF",N_e="#F4FAFF",z_e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var U9=I((lNe,AY)=>{"use strict";var I_e=Di(),B_e=bs(),O_e=Rn().extendFlat,H_e=Il().overrideAll,U_e=Zg(),wY=Ra().templatedArray,G_e=wY("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}});AY.exports=H_e(wY("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:G_e,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:O_e(U_e({editType:"arraydraw"}),{}),font:I_e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:B_e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var SY=I((sNe,kY)=>{"use strict";var J5=ir(),TY=Yo(),MY=U9(),Y_e=(Z5(),hr(W5)),V_e=Y_e.name,X_e=MY.buttons;kY.exports=function(r,t){var a={name:V_e,handleItemDefaults:W_e};TY(r,t,a)};function W_e(e,r,t){function a(o,l){return J5.coerce(e,r,MY,o,l)}var n=TY(e,r,{name:"buttons",handleItemDefaults:Z_e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),J5.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),J5.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Z_e(e,r){function t(n,i){return J5.coerce(e,r,X_e,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 EY=I((uNe,LY)=>{"use strict";LY.exports=bn;var Kl=sa(),CY=Kt(),Bh=Sa(),j5=ir();function bn(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})}bn.barWidth=2;bn.barLength=20;bn.barRadius=2;bn.barPad=1;bn.barColor="#808BA4";bn.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",m=c==="up",y=s,b=f,T,_,x,w;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(T=l,_=T+y,v?(x=u,w=Math.min(x+b,o),b=w-x):(w=u+b,x=Math.max(w-b,0),b=w-x)):(x=u,w=x+b,d?(_=l+y,T=Math.max(_-y,0),y=_-T):(T=l,_=Math.min(T+y,i),y=_-T)),this._box={l:T,t:x,w:y,h:b};var M=s>y,C=bn.barLength+2*bn.barPad,D=bn.barWidth+2*bn.barPad,R=l,P=u+f;P+D>o&&(P=o-D);var q=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);q.exit().on(".drag",null).remove(),q.enter().append("rect").classed("scrollbar-horizontal",!0).call(CY.fill,bn.barColor),M?(this.hbar=q.attr({rx:bn.barRadius,ry:bn.barRadius,x:R,y:P,width:C,height:D}),this._hbarXMin=R+C/2,this._hbarTranslateMax=y-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>b,B=bn.barWidth+2*bn.barPad,U=bn.barLength+2*bn.barPad,G=l+s,X=u;G+B>i&&(G=i-B);var Y=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(CY.fill,bn.barColor),z?(this.vbar=Y.attr({rx:bn.barRadius,ry:bn.barRadius,x:G,y:X,width:B,height:U}),this._vbarYMin=X+U/2,this._vbarTranslateMax=b-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,J=T-.5,j=z?_+B+.5:_+.5,ee=x-.5,pe=M?w+D+.5:w+.5,ne=n._topdefs.selectAll("#"+V).data(M||z?[0]:[]);if(ne.exit().remove(),ne.enter().append("clipPath").attr("id",V).append("rect"),M||z?(this._clipRect=ne.select("rect").attr({x:Math.floor(J),y:Math.floor(ee),width:Math.ceil(j)-Math.floor(J),height:Math.ceil(pe)-Math.floor(ee)}),this.container.call(Bh.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(Bh.setClipUrl,null),delete this._clipRect),M||z){var ye=Kl.behavior.drag().on("dragstart",function(){Kl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ye);var te=Kl.behavior.drag().on("dragstart",function(){Kl.event.sourceEvent.preventDefault(),Kl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(te),z&&this.vbar.on(".drag",null).call(te)}this.setTranslate(t,a)};bn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Bh.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)};bn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Kl.event.dx),this.vbar&&(t-=Kl.event.dy),this.setTranslate(r,t)};bn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Kl.event.deltaY),this.vbar&&(t+=Kl.event.deltaY),this.setTranslate(r,t)};bn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=j5.constrain(Kl.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=j5.constrain(Kl.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};bn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=j5.constrain(r||0,0,a),t=j5.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Bh.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(Bh.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Bh.setTranslate,r,t+o*this._vbarTranslateMax)}}});var OY=I((fNe,BY)=>{"use strict";var Oh=sa(),um=pi(),fm=Kt(),Hh=Sa(),Qo=ir(),$5=Ri(),J_e=Ra().arrayEditor,qY=(Ui(),hr(Hi)).LINE_SPACING,Nt=(Z5(),hr(W5)),j_e=EY();BY.exports=function(r){var t=r._fullLayout,a=Qo.filterVisible(t[Nt.name]);function n(v){um.autoMargin(r,zY(v))}var i=t._menulayer.selectAll("g."+Nt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Nt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Oh.select(this).selectAll("g."+Nt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Nt.headerGroupClassName).data(a,$_e);o.enter().append("g").classed(Nt.headerGroupClassName,!0);for(var l=Qo.ensureSingle(i,"g",Nt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];a4e(r,u)}var f="updatemenus"+t._uid,c=new j_e(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(Y9)),o.exit().each(function(v){l.call(Y9),n(v)}).remove(),o.each(function(v){var d=Oh.select(this),p=v.type==="dropdown"?l:null;um.manageCommandObserver(r,v,v.buttons,function(m){G9(r,v,v.buttons[m.index],d,p,c,m.index,!0)}),v.type==="dropdown"?(FY(r,d,l,c,v),RY(l,v)&&cm(r,d,l,c,v)):cm(r,d,null,null,v)})}};function $_e(e){return e._index}function K_e(e){return+e.attr(Nt.menuIndexAttrName)==-1}function RY(e,r){return+e.attr(Nt.menuIndexAttrName)===r._index}function G9(e,r,t,a,n,i,o,l){r.active=o,J_e(e.layout,Nt.name,r).applyUpdate("active",o),r.type==="buttons"?cm(e,a,null,null,r):r.type==="dropdown"&&(n.attr(Nt.menuIndexAttrName,"-1"),FY(e,a,n,i,r),l||cm(e,a,n,i,r))}function FY(e,r,t,a,n){var i=Qo.ensureSingle(r,"g",Nt.headerClassName,function(v){v.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||Nt.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(V9,n,s,e).call(IY,n,u,f);var c=Qo.ensureSingle(r,"text",Nt.headerArrowClassName,function(v){v.attr("text-anchor","end").call(Hh.font,n.font).text(Nt.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-Nt.arrowOffsetX+n.pad.l,y:o.headerHeight/2+Nt.textOffsetY+n.pad.t}),i.on("click",function(){t.call(Y9,String(RY(t,n)?-1:n._index)),cm(e,r,t,a,n)}),i.on("mouseover",function(){i.call(PY)}),i.on("mouseout",function(){i.call(NY,n)}),Hh.setTranslate(r,o.lx,o.ly)}function cm(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!K_e(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?Nt.dropdownButtonClassName:Nt.buttonClassName,l=t.selectAll("g."+o).data(Qo.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+Nt.gapButtonHeader:f=v.headerWidth+Nt.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-Nt.gapButtonHeader+Nt.gapButton-v.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-Nt.gapButtonHeader+Nt.gapButton-v.openWidth);var p={x:v.lx+f+n.pad.l,y:v.ly+c+n.pad.t,yPad:Nt.gapButton,xPad:Nt.gapButton,index:0},m={l:p.x+n.borderwidth,t:p.y+n.borderwidth};l.each(function(y,b){var T=Oh.select(this);T.call(V9,n,y,e).call(IY,n,p),T.on("click",function(){Oh.event.defaultPrevented||(y.execute&&(y.args2&&n.active===b?(G9(e,n,y,r,t,a,-1),um.executeAPICommand(e,y.method,y.args2)):(G9(e,n,y,r,t,a,b),um.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),T.on("mouseover",function(){T.call(PY)}),T.on("mouseout",function(){T.call(NY,n),l.call(DY,n)})}),l.call(DY,n),d?(m.w=Math.max(v.openWidth,v.headerWidth),m.h=p.y-m.t):(m.w=p.x-m.l,m.h=Math.max(v.openHeight,v.headerHeight)),m.direction=n.direction,a&&(l.size()?Q_e(e,r,t,a,n,m):e4e(a))}function Q_e(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]+Nt.gapButton;else for(f=0,v=0;v<u;v++)f+=s.widths[v]+Nt.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 e4e(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 V9(e,r,t,a){e.call(r4e,r).call(t4e,r,t,a)}function r4e(e,r){var t=Qo.ensureSingle(e,"rect",Nt.itemRectClassName,function(a){a.attr({rx:Nt.rx,ry:Nt.ry,"shape-rendering":"crispEdges"})});t.call(fm.stroke,r.bordercolor).call(fm.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function t4e(e,r,t,a){var n=Qo.ensureSingle(e,"text",Nt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Qo.templateString(i,o)),n.call(Hh.font,r.font).text(i).call($5.convertToTspans,a)}function DY(e,r){var t=r.active;e.each(function(a,n){var i=Oh.select(this);n===t&&r.showactive&&i.select("rect."+Nt.itemRectClassName).call(fm.fill,Nt.activeColor)})}function PY(e){e.select("rect."+Nt.itemRectClassName).call(fm.fill,Nt.hoverColor)}function NY(e,r){e.select("rect."+Nt.itemRectClassName).call(fm.fill,r.bgcolor)}function a4e(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=Hh.tester.selectAll("g."+Nt.dropdownButtonClassName).data(Qo.filterVisible(r.buttons));a.enter().append("g").classed(Nt.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var v=Oh.select(this);v.call(V9,r,f,e);var d=v.select("."+Nt.itemTextClassName),p=d.node()&&Hh.bBox(d.node()).width,m=Math.max(p+Nt.textPadX,Nt.minWidth),y=r.font.size*qY,b=$5.lineCount(d),T=Math.max(y*b,Nt.minHeight)+Nt.textOffsetY;T=Math.ceil(T),m=Math.ceil(m),t.widths[c]=m,t.heights[c]=T,t.height1=Math.max(t.height1,T),t.width1=Math.max(t.width1,m),n?(t.totalWidth=Math.max(t.totalWidth,m),t.openWidth=t.totalWidth,t.totalHeight+=T+Nt.gapButton,t.openHeight+=T+Nt.gapButton):(t.totalWidth+=m+Nt.gapButton,t.openWidth+=m+Nt.gapButton,t.totalHeight=Math.max(t.totalHeight,T),t.openHeight=t.totalHeight)}),n?t.totalHeight-=Nt.gapButton:t.totalWidth-=Nt.gapButton,t.headerWidth=t.width1+Nt.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=Nt.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Nt.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";Qo.isRightAnchor(r)&&(t.lx-=i,s="right"),Qo.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Qo.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),Qo.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),um.autoMargin(e,zY(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 zY(e){return Nt.autoMarginIdRoot+e._index}function IY(e,r,t,a){a=a||{};var n=e.select("."+Nt.itemRectClassName),i=e.select("."+Nt.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;Hh.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*qY,v=$5.lineCount(i),d=(v-1)*c/2;$5.positionText(i,Nt.textOffsetX,f/2-d+Nt.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function Y9(e,r){e.attr(Nt.menuIndexAttrName,r||"-1").selectAll("g."+Nt.dropdownButtonClassName).remove()}});var UY=I((cNe,HY)=>{"use strict";var n4e=(Z5(),hr(W5));HY.exports={moduleType:"component",name:n4e.name,layoutAttributes:U9(),supplyLayoutDefaults:SY(),draw:OY()}});var vm={};Ka(vm,{arrowOffsetX:()=>T4e,autoMarginIdRoot:()=>x4e,containerClassName:()=>o4e,currentValueClass:()=>y4e,currentValueInset:()=>$4e,currentValuePadding:()=>j4e,gripBgActiveColor:()=>O4e,gripBgColor:()=>B4e,gripBorder:()=>N4e,gripBorderColor:()=>I4e,gripBorderWidth:()=>z4e,gripHeight:()=>P4e,gripRadius:()=>R4e,gripRectClass:()=>c4e,gripWidth:()=>F4e,groupClassName:()=>l4e,inputAreaClass:()=>s4e,inputProxyClass:()=>h4e,labelClass:()=>m4e,labelGroupClass:()=>p4e,labelOffset:()=>U4e,labelPadding:()=>H4e,labelsClass:()=>d4e,menuIndexAttrName:()=>b4e,minHeight:()=>w4e,minWidth:()=>_4e,minorTickColor:()=>Z4e,minorTickLength:()=>J4e,minorTickOffset:()=>W4e,name:()=>i4e,railBgColor:()=>E4e,railBorder:()=>S4e,railBorderColor:()=>L4e,railBorderWidth:()=>C4e,railHeight:()=>g4e,railInset:()=>D4e,railRadius:()=>M4e,railRectClass:()=>u4e,railTouchRectClass:()=>f4e,railWidth:()=>k4e,stepInset:()=>q4e,textPadX:()=>A4e,tickColor:()=>Y4e,tickLength:()=>X4e,tickOffset:()=>V4e,tickRectClass:()=>v4e,tickWidth:()=>G4e});var i4e,o4e,l4e,s4e,u4e,f4e,c4e,v4e,h4e,d4e,p4e,m4e,y4e,g4e,b4e,x4e,_4e,w4e,A4e,T4e,M4e,k4e,S4e,C4e,L4e,E4e,D4e,q4e,R4e,F4e,P4e,N4e,z4e,I4e,B4e,O4e,H4e,U4e,G4e,Y4e,V4e,X4e,W4e,Z4e,J4e,j4e,$4e,hm=$a(()=>{"use strict";i4e="sliders",o4e="slider-container",l4e="slider-group",s4e="slider-input-area",u4e="slider-rail-rect",f4e="slider-rail-touch-rect",c4e="slider-grip-rect",v4e="slider-tick-rect",h4e="slider-input-proxy",d4e="slider-labels",p4e="slider-label-group",m4e="slider-label",y4e="slider-current-value",g4e=5,b4e="slider-active-index",x4e="slider-",_4e=30,w4e=30,A4e=40,T4e=4,M4e=2,k4e=5,S4e=4,C4e=1,L4e="#bec8d9",E4e="#f8fafc",D4e=8,q4e=10,R4e=10,F4e=20,P4e=20,N4e=20,z4e=1,I4e="#bec8d9",B4e="#f6f8fa",O4e="#dbdde0",H4e=8,U4e=0,G4e=1,Y4e="#333",V4e=25,X4e=7,W4e=25,Z4e="#333",J4e=4,j4e=8,$4e=0});var X9=I((vNe,VY)=>{"use strict";var GY=Di(),K4e=Zg(),Q4e=Rn().extendDeepAll,e6e=Il().overrideAll,r6e=I1(),YY=Ra().templatedArray,S0=(hm(),hr(vm)),t6e=YY("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}});VY.exports=e6e(YY("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t6e,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:Q4e(K4e({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:r6e.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:GY({})},font:GY({}),activebgcolor:{valType:"color",dflt:S0.gripBgActiveColor},bgcolor:{valType:"color",dflt:S0.railBgColor},bordercolor:{valType:"color",dflt:S0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:S0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:S0.tickLength},tickcolor:{valType:"color",dflt:S0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:S0.minorTickLength}}),"arraydraw","from-root")});var JY=I((hNe,ZY)=>{"use strict";var Uh=ir(),XY=Yo(),WY=X9(),a6e=(hm(),hr(vm)),n6e=a6e.name,i6e=WY.steps;ZY.exports=function(r,t){XY(r,t,{name:n6e,handleItemDefaults:o6e})};function o6e(e,r,t){function a(c,v){return Uh.coerce(e,r,WY,c,v)}for(var n=XY(e,r,{name:"steps",handleItemDefaults:l6e}),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=Uh.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),Uh.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"),Uh.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),Uh.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 l6e(e,r){function t(i,o){return Uh.coerce(e,r,i6e,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 iV=I((dNe,nV)=>{"use strict";var Ql=sa(),K5=pi(),Uf=Kt(),es=Sa(),el=ir(),s6e=el.strTranslate,dm=Ri(),u6e=Ra().arrayEditor,jt=(hm(),hr(vm)),J9=(Ui(),hr(Hi)),KY=J9.LINE_SPACING,W9=J9.FROM_TL,Z9=J9.FROM_BR;nV.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=f6e(a,r),i=a._infolayer.selectAll("g."+jt.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(jt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),K5.autoMargin(r,QY(f))}if(i.exit().each(function(){Ql.select(this).selectAll("g."+jt.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+jt.groupClassName).data(n,c6e);l.enter().append("g").classed(jt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];v6e(r,u)}l.each(function(f){var c=Ql.select(this);y6e(f),K5.manageCommandObserver(r,f,f._visibleSteps,function(v){var d=c.data()[0];d.active!==v.index&&(d._dragging||rV(r,c,d,v.index,!1,!0))}),h6e(r,Ql.select(this),f)})}};function QY(e){return jt.autoMarginIdRoot+e._index}function f6e(e,r){for(var t=e[jt.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function c6e(e){return e._index}function v6e(e,r){var t=es.tester.selectAll("g."+jt.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(jt.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var m=Ql.select(this),y=eV(m,{step:p},r),b=y.node();if(b){var T=es.bBox(b);n=Math.max(n,T.height),a=Math.max(a,T.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(jt.railWidth,jt.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*jt.stepInset,s=l/(r._stepCount-1),u=a+jt.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=es.tester.append("g");t.each(function(p){var m=Q5(f,r,p.label),y=m.node()&&es.bBox(m.node())||{width:0,height:0},b=dm.lineCount(m);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(y.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(y.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+jt.tickOffset+r.ticklen+jt.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";el.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),el.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";el.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),el.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*Z9[v],t:i.height*W9[v]};r.lenmode==="fraction"?(d.l=0,d.xl=r.x-r.len*W9[c],d.r=0,d.xr=r.x+r.len*Z9[c]):(d.x=r.x,d.l=i.outerLength*W9[c],d.r=i.outerLength*Z9[c]),K5.autoMargin(e,QY(r),d)}function h6e(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Q5,t).call(b6e,t).call(p6e,t).call(m6e,t).call(g6e,e,t).call(d6e,e,t);var a=t._dims;es.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(aV,t,!1),r.call(Q5,t)}function Q5(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-jt.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=jt.currentValueInset,i="left"}var o=el.ensureSingle(e,"text",jt.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=el.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(es.font,r.currentvalue.font).text(l).call(dm.convertToTspans,r._gd);var f=dm.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*KY;return dm.positionText(o,n,c),o}}function d6e(e,r,t){var a=el.ensureSingle(e,"rect",jt.gripRectClass,function(n){n.call(tV,r,e,t).style("pointer-events","all")});a.attr({width:jt.gripWidth,height:jt.gripHeight,rx:jt.gripRadius,ry:jt.gripRadius}).call(Uf.stroke,t.bordercolor).call(Uf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function eV(e,r,t){var a=el.ensureSingle(e,"text",jt.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=el.templateString(n,i)),a.call(es.font,t.font).text(n).call(dm.convertToTspans,t._gd),a}function p6e(e,r){var t=el.ensureSingle(e,"g",jt.labelsClass),a=r._dims,n=t.selectAll("g."+jt.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(jt.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=Ql.select(this);o.call(eV,i,r),es.setTranslate(o,j9(r,i.fraction),jt.tickOffset+r.ticklen+r.font.size*KY+jt.labelOffset+a.currentValueTotalHeight)})}function jY(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&rV(e,r,t,o,!0,n)}function rV(e,r,t,a,n,i){var o=t.active;t.active=a,u6e(e.layout,jt.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(aV,t,i),r.call(Q5,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&&K5.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function tV(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=Ql.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+jt.gripRectClass);Ql.event.stopPropagation(),Ql.event.preventDefault(),s.call(Uf.fill,l.activebgcolor);var u=$Y(l,Ql.mouse(a)[0]);jY(r,t,l,u,!0),l._dragging=!0;function f(){var v=i(),d=$Y(v,Ql.mouse(a)[0]);jY(r,t,v,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var v=i();v._dragging=!1,s.call(Uf.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 m6e(e,r){var t=e.selectAll("rect."+jt.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(jt.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=Ql.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(Uf.fill,r.tickcolor),es.setTranslate(l,j9(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?jt.tickOffset:jt.minorTickOffset)+a.currentValueTotalHeight)})}function y6e(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 aV(e,r,t){for(var a=e.select("rect."+jt.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=j9(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",s6e(o-jt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function j9(e,r){var t=e._dims;return t.inputAreaStart+jt.stepInset+(t.inputAreaLength-2*jt.stepInset)*Math.min(1,Math.max(0,r))}function $Y(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-jt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*jt.stepInset-2*t.inputAreaStart)))}function g6e(e,r,t){var a=t._dims,n=el.ensureSingle(e,"rect",jt.railTouchRectClass,function(i){i.call(tV,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,jt.tickOffset+t.ticklen+a.labelHeight)}).call(Uf.fill,t.bgcolor).attr("opacity",0),es.setTranslate(n,0,a.currentValueTotalHeight)}function b6e(e,r){var t=r._dims,a=t.inputAreaLength-jt.railInset*2,n=el.ensureSingle(e,"rect",jt.railRectClass);n.attr({width:a,height:jt.railWidth,rx:jt.railRadius,ry:jt.railRadius,"shape-rendering":"crispEdges"}).call(Uf.stroke,r.bordercolor).call(Uf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),es.setTranslate(n,jt.railInset,(t.inputAreaWidth-jt.railWidth)*.5+t.currentValueTotalHeight)}});var lV=I((pNe,oV)=>{"use strict";var x6e=(hm(),hr(vm));oV.exports={moduleType:"component",name:x6e.name,layoutAttributes:X9(),supplyLayoutDefaults:JY(),draw:iV()}});var eb=I((mNe,uV)=>{"use strict";var sV=bs();uV.exports={bgcolor:{valType:"color",dflt:sV.background,editType:"plot"},bordercolor:{valType:"color",dflt:sV.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 $9=I((yNe,fV)=>{"use strict";fV.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 rb={};Ka(rb,{bgClassName:()=>A6e,containerClassName:()=>w6e,extraPad:()=>X6e,grabAreaCursor:()=>H6e,grabAreaFill:()=>O6e,grabAreaMaxClassName:()=>q6e,grabAreaMinClassName:()=>L6e,grabAreaWidth:()=>U6e,grabberMaxClassName:()=>D6e,grabberMinClassName:()=>C6e,handleMaxClassName:()=>R6e,handleMinClassName:()=>E6e,handleRadius:()=>Y6e,handleStrokeWidth:()=>V6e,handleWidth:()=>G6e,maskColor:()=>N6e,maskMaxClassName:()=>k6e,maskMaxOppAxisClassName:()=>P6e,maskMinClassName:()=>M6e,maskMinOppAxisClassName:()=>F6e,maskOppAxisColor:()=>z6e,name:()=>_6e,rangePlotClassName:()=>T6e,slideBoxClassName:()=>S6e,slideBoxCursor:()=>B6e,slideBoxFill:()=>I6e});var _6e,w6e,A6e,T6e,M6e,k6e,S6e,C6e,L6e,E6e,D6e,q6e,R6e,F6e,P6e,N6e,z6e,I6e,B6e,O6e,H6e,U6e,G6e,Y6e,V6e,X6e,tb=$a(()=>{"use strict";_6e="rangeslider",w6e="rangeslider-container",A6e="rangeslider-bg",T6e="rangeslider-rangeplot",M6e="rangeslider-mask-min",k6e="rangeslider-mask-max",S6e="rangeslider-slidebox",C6e="rangeslider-grabber-min",L6e="rangeslider-grabarea-min",E6e="rangeslider-handle-min",D6e="rangeslider-grabber-max",q6e="rangeslider-grabarea-max",R6e="rangeslider-handle-max",F6e="rangeslider-mask-min-opp-axis",P6e="rangeslider-mask-max-opp-axis",N6e="rgba(0,0,0,0.4)",z6e="rgba(0,0,0,0.2)",I6e="transparent",B6e="ew-resize",O6e="transparent",H6e="col-resize",U6e=10,G6e=4,Y6e=1,V6e=1,X6e=15});var hV=I(nb=>{"use strict";var W6e=mn(),Z6e=Ri(),cV=(tb(),hr(rb)),J6e=(Ui(),hr(Hi)).LINE_SPACING,ab=cV.name;function vV(e){var r=e&&e[ab];return r&&r.visible}nb.isVisible=vV;nb.makeData=function(e){for(var r=W6e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(vV(i)){a.push(i);var o=i[ab];o._id=ab+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};nb.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[ab],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(Z6e.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*J6e}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:cV.extraPad+a._offsetShift*2}}});var yV=I((bNe,mV)=>{"use strict";var ib=ir(),dV=Ra(),pV=mn(),j6e=eb(),$6e=$9();mV.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;ib.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=dV.newContainer(i,"rangeslider");function s(w,k){return ib.coerce(o,l,j6e,w,k)}var u,f;function c(w,k){return ib.coerce(u,f,$6e,w,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(w){return w.slice(0,Math.max(0,w.indexOf("y")))===pV.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),m=ib.simpleMap(p,pV.id2name),y=0;y<m.length;y++){var b=m[y];u=o[b]||{},f=dV.newContainer(l,b,"yaxis");var T=t[b],_;u.range&&T.isValidRange(u.range)&&(_="fixed");var x=c("rangemode",_);x!=="match"&&c("range",T.range.slice())}l._input=o}}});var bV=I((xNe,gV)=>{"use strict";var K6e=mn().list,Q6e=uh().getAutoRange,e7e=(tb(),hr(rb));gV.exports=function(r){for(var t=K6e(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[e7e.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=Q6e(r,n))}}});var AV=I((_Ne,wV)=>{"use strict";var ob=sa(),r7e=Pt(),t7e=pi(),Ln=ir(),lb=Ln.strTranslate,_V=Sa(),Gf=Kt(),a7e=rp(),n7e=im(),K9=mn(),i7e=Yl(),o7e=Cf(),aa=(tb(),hr(rb));wV.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][aa.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+aa.containerClassName).data(t,i);o.exit().each(function(l){var s=l[aa.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(aa.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=ob.select(this),u=l[aa.name],f=r[K9.id2name(l.anchor)],c=u[K9.id2name(l.anchor)];if(u.range){var v=Ln.simpleMap(u.range,l.r2l),d=Ln.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=Ln.simpleMap(p,l.l2r)}l.cleanRange("rangeslider.range");var m=r._size;u._width=l._length;let y=Math.round(l._offset);var b=Math.round(m.t+m.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+aa.extraPad);s.attr("transform",lb(y,b)),u._rl=Ln.simpleMap(u.range,l.r2l);var T=u._rl[0],_=u._rl[1],x=_-T;if(u.p2d=function(B){return B/u._width*x+T},u.d2p=function(B){return(B-T)/x*u._width},l.rangebreaks){var w=l.locateBreaks(T,_);if(w.length){var k,M,C=0;for(k=0;k<w.length;k++)M=w[k],C+=M.max-M.min;var D=u._width/(_-T-C),R=[-D*T];for(k=0;k<w.length;k++)M=w[k],R.push(R[R.length-1]-D*(M.max-M.min));for(u.d2p=function(B){for(var U=R[0],G=0;G<w.length;G++){var X=w[G];if(B>=X.max)U=R[G+1];else if(B<X.min)break}return U+D*B},k=0;k<w.length;k++)M=w[k],M.pmin=u.d2p(M.min),M.pmax=u.d2p(M.max);u.p2d=function(B){for(var U=R[0],G=0;G<w.length;G++){var X=w[G];if(B>=X.pmax)U=R[G+1];else if(B<X.pmin)break}return(B-U)/D}}}if(c.rangemode!=="match"){var P=f.r2l(c.range[0]),q=f.r2l(c.range[1]),z=q-P;u.d2pOppAxis=function(B){return(B-P)/z*u._height}}s.call(f7e,e,l,u).call(c7e,e,l,u).call(v7e,e,l,u).call(d7e,e,l,u,c).call(p7e,e,l,u).call(m7e,e,l,u),l7e(s,e,l,u),u7e(s,e,l,u,f,c),l.side==="bottom"&&a7e.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:b+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function xV(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function l7e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+aa.slideBoxClassName).node(),i=e.select("rect."+aa.grabAreaMinClassName).node(),o=e.select("rect."+aa.grabAreaMaxClassName).node();function l(){var s=ob.event,u=s.target,f=xV(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=i7e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=xV(b),_=+T-f,x,w,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;x=v+_,w=d+_;break;case i:if(k="col-resize",v+_>t._length)return;x=v+_,w=d;break;case o:if(k="col-resize",d+_<0)return;x=v,w=d+_;break;default:k="ew-resize",x=c,w=c+_;break}if(w<x){var M=w;w=x,x=M}a._pixelMin=x,a._pixelMax=w,o7e(ob.select(p),k),s7e(e,r,t,a)}function y(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",y),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",y),Ln.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function s7e(e,r,t,a){function n(l){return t.l2r(Ln.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){r7e.call("_guiRelayout",r,t._name+".range",[i,o])})}function u7e(e,r,t,a,n,i){var o=aa.handleWidth/2;function l(b){return Ln.constrain(b,0,a._width)}function s(b){return Ln.constrain(b,0,a._height)}function u(b){return Ln.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."+aa.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+aa.maskMinClassName).attr("width",f),e.select("rect."+aa.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."+aa.maskMinOppAxisClassName).attr("x",f).attr("height",v).attr("width",c-f),e.select("rect."+aa.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+aa.slideBoxClassName).attr("y",v).attr("height",d-v)}var p=.5,m=Math.round(u(f-o))-p,y=Math.round(u(c-o))+p;e.select("g."+aa.grabberMinClassName).attr("transform",lb(m,p)),e.select("g."+aa.grabberMaxClassName).attr("transform",lb(y,p))}function f7e(e,r,t,a){var n=Ln.ensureSingle(e,"rect",aa.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=_V.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:lb(o,o),"stroke-width":l}).call(Gf.stroke,a.bordercolor).call(Gf.fill,a.bgcolor)}function c7e(e,r,t,a){var n=r._fullLayout,i=Ln.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 v7e(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+aa.rangePlotClassName).data(t._subplotsWith,Ln.identity);i.enter().append("g").attr("class",function(l){return aa.rangePlotClassName+" "+l}).call(_V.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=ob.select(this),f=s===0,c=K9.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),t7e.supplyDefaults(p);var m=p._fullLayout.xaxis,y=p._fullLayout[v];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:m,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),n7e.rangePlot(r,b,h7e(n,l))})}function h7e(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 d7e(e,r,t,a,n){var i=Ln.ensureSingle(e,"rect",aa.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(Gf.fill,aa.maskColor);var o=Ln.ensureSingle(e,"rect",aa.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(Gf.fill,aa.maskColor),n.rangemode!=="match"){var l=Ln.ensureSingle(e,"rect",aa.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(Gf.fill,aa.maskOppAxisColor);var s=Ln.ensureSingle(e,"rect",aa.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",aa.maskOppBorder).call(Gf.fill,aa.maskOppAxisColor)}}function p7e(e,r,t,a){if(!r._context.staticPlot){var n=Ln.ensureSingle(e,"rect",aa.slideBoxClassName,function(i){i.attr({y:0,cursor:aa.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:aa.slideBoxFill})}}function m7e(e,r,t,a){var n=Ln.ensureSingle(e,"g",aa.grabberMinClassName),i=Ln.ensureSingle(e,"g",aa.grabberMaxClassName),o={x:0,width:aa.handleWidth,rx:aa.handleRadius,fill:Gf.background,stroke:Gf.defaultLine,"stroke-width":aa.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=Ln.ensureSingle(n,"rect",aa.handleMinClassName,function(d){d.attr(o)});s.attr(l);var u=Ln.ensureSingle(i,"rect",aa.handleMaxClassName,function(d){d.attr(o)});u.attr(l);var f={width:aa.grabAreaWidth,x:0,y:0,fill:aa.grabAreaFill,cursor:r._context.staticPlot?void 0:aa.grabAreaCursor},c=Ln.ensureSingle(n,"rect",aa.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var v=Ln.ensureSingle(i,"rect",aa.grabAreaMaxClassName,function(d){d.attr(f)});v.attr("height",a._height)}});var MV=I((wNe,TV)=>{"use strict";var y7e=ir(),g7e=eb(),b7e=$9(),Q9=hV();TV.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:y7e.extendFlat({},g7e,{yaxis:b7e})}}},layoutAttributes:eb(),handleDefaults:yV(),calcAutorange:bV(),draw:AV(),isVisible:Q9.isVisible,makeData:Q9.makeData,autoMarginOpts:Q9.autoMarginOpts}});var sb=I((ANe,SV)=>{"use strict";var x7e=Di(),kV=bs(),_7e=Ra().templatedArray,w7e=_7e("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"});SV.exports={visible:{valType:"boolean",editType:"plot"},buttons:w7e,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:x7e({editType:"plot"}),bgcolor:{valType:"color",dflt:kV.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:kV.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var eA={};Ka(eA,{darkAmount:()=>C7e,lightAmount:()=>S7e,minButtonWidth:()=>T7e,rx:()=>M7e,ry:()=>k7e,yPad:()=>A7e});var A7e,T7e,M7e,k7e,S7e,C7e,rA=$a(()=>{"use strict";A7e=.02,T7e=30,M7e=3,k7e=3,S7e=25,C7e=10});var EV=I((TNe,LV)=>{"use strict";var ub=ir(),L7e=Kt(),E7e=Ra(),D7e=Yo(),CV=sb(),tA=(rA(),hr(eA));LV.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=E7e.newContainer(t,"rangeselector");function s(d,p){return ub.coerce(o,l,CV,d,p)}var u=D7e(o,l,{name:"buttons",handleItemDefaults:q7e,calendar:i}),f=s("visible",u.length>0);if(f){var c=R7e(t,a,n);s("x",c[0]),s("y",c[1]),ub.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),ub.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",L7e.contrast(v,tA.lightAmount,tA.darkAmount)),s("bordercolor"),s("borderwidth")}};function q7e(e,r,t,a){var n=a.calendar;function i(s,u){return ub.coerce(e,r,CV.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 R7e(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+tA.yPad]}});var qV=I((MNe,DV)=>{"use strict";var F7e=c_(),P7e=ir().titleCase;DV.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=N7e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function N7e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=F7e["utc"+P7e(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 OV=I((kNe,BV)=>{"use strict";var cb=sa(),z7e=Pt(),I7e=pi(),RV=Kt(),IV=Sa(),Au=ir(),FV=Au.strTranslate,fb=Ri(),B7e=mn(),iA=(Ui(),hr(Hi)),PV=iA.LINE_SPACING,NV=iA.FROM_TL,zV=iA.FROM_BR,nA=(rA(),hr(eA)),O7e=qV();BV.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(H7e(r),U7e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=cb.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Au.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=cb.select(this),c=O7e(o,u);u._isActive=G7e(o,u,c),f.call(aA,l,u),f.call(V7e,l,u,r),f.on("click",function(){r._dragged||z7e.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(aA,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(aA,l,u)})}),W7e(r,s,l,o._name,i)})};function H7e(e){for(var r=B7e.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 U7e(e){return e._id}function G7e(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 aA(e,r,t){var a=Au.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:nA.rx,ry:nA.ry}),a.call(RV.stroke,r.bordercolor).call(RV.fill,Y7e(r,t)).style("stroke-width",r.borderwidth+"px")}function Y7e(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function V7e(e,r,t,a){function n(o){fb.convertToTspans(o,a)}var i=Au.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(IV.font,r.font).text(X7e(t,a._fullLayout._meta)).call(n)}function X7e(e,r){return e.label?r?Au.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function W7e(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=cb.select(this),p=d.select(".selector-text"),m=t.font.size*PV,y=Math.max(m*fb.lineCount(p),16)+3;o=Math.max(o,y)}),r.each(function(){var d=cb.select(this),p=d.select(".selector-rect"),m=d.select(".selector-text"),y=m.node()&&IV.bBox(m.node()).width,b=t.font.size*PV,T=fb.lineCount(m),_=Math.max(y+10,nA.minButtonWidth);d.attr("transform",FV(l+i,l)),p.attr({x:0,y:0,width:_,height:o}),fb.positionText(m,_/2,o/2-(T-1)*b/2+3),i+=_+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";Au.isRightAnchor(t)&&(u-=i,c="right"),Au.isCenterAnchor(t)&&(u-=i/2,c="center");var v="top";Au.isBottomAnchor(t)&&(f-=o,v="bottom"),Au.isMiddleAnchor(t)&&(f-=o/2,v="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),I7e.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*NV[c],r:i*zV[c],b:o*zV[v],t:o*NV[v]}),n.attr("transform",FV(u,f))}});var UV=I((SNe,HV)=>{"use strict";HV.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:sb()}}},layoutAttributes:sb(),handleDefaults:EV(),draw:OV()}});var vb=I(oA=>{"use strict";var GV=Rn().extendFlat;oA.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:GV({},t,{}),y:GV({},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};oA.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 sA=I((LNe,WV)=>{"use strict";var Z7e=ir(),J7e=(Iv(),hr(N1)).counter,j7e=vb().attributes,YV=(ni(),hr(ai)).idRegex,$7e=Ra(),lA={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:[J7e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[YV.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[YV.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:j7e({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 hb(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 K7e(e,r){var t=e.grid||{},a=hb(r,t,"x"),n=hb(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=$7e.newContainer(r,"grid");function v(k,M){return Z7e.coerce(t,c,lA,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),b=y==="top to bottom",T=i?.2:.1,_=i?.3:.1,x,w;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,w=r._splomGridDflt.yside),c._domains={x:VV("x",v,T,x,p),y:VV("y",v,_,w,d,b)}}function VV(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 Q7e(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,m,y=t._axisMap={};if(i){var b=a.subplots||[];p=t.subplots=new Array(o);var T=1;for(u=0;u<o;u++){var _=p[u]=new Array(l),x=b[u]||[];for(f=0;f<l;f++)if(s?(d=T===1?"xy":"x"+T+"y"+T,T++):d=x[f],_[f]="",n.cartesian.indexOf(d)!==-1){if(m=d.indexOf("y"),c=d.slice(0,m),v=d.slice(m),y[c]!==void 0&&y[c]!==f||y[v]!==void 0&&y[v]!==u)continue;_[f]=d,y[c]=f,y[v]=u}}}else{var w=hb(r,a,"x"),k=hb(r,a,"y");t.xaxes=XV(w,n.xaxis,l,y,"x"),t.yaxes=XV(k,n.yaxis,o,y,"y")}var M=t._anchors={},C=t.roworder==="top to bottom";for(var D in y){var R=D.charAt(0),P=t[R+"side"],q,z,B;if(P.length<8)M[D]="free";else if(R==="x"){if(P.charAt(0)==="t"===C?(q=0,z=1,B=o):(q=o-1,z=-1,B=-1),i){var U=y[D];for(u=q;u!==B;u+=z)if(d=p[u][U],!!d&&(m=d.indexOf("y"),d.slice(0,m)===D)){M[D]=d.slice(m);break}}else for(u=q;u!==B;u+=z)if(v=t.yaxes[u],n.cartesian.indexOf(D+v)!==-1){M[D]=v;break}}else if(P.charAt(0)==="l"?(q=0,z=1,B=l):(q=l-1,z=-1,B=-1),i){var G=y[D];for(u=q;u!==B;u+=z)if(d=p[G][u],!!d&&(m=d.indexOf("y"),d.slice(m)===D)){M[D]=d.slice(0,m);break}}else for(u=q;u!==B;u+=z)if(c=t.xaxes[u],n.cartesian.indexOf(c+D)!==-1){M[D]=c;break}}}}function XV(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}WV.exports={moduleType:"component",name:"grid",schema:{layout:{grid:lA}},layoutAttributes:lA,sizeDefaults:K7e,contentDefaults:Q7e}});var uA=I((ENe,ZV)=>{"use strict";ZV.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 $V=I((DNe,jV)=>{"use strict";var JV=da(),e8e=Pt(),r8e=ir(),t8e=Ra(),a8e=uA();jV.exports=function(e,r,t,a){var n="error_"+a.axis,i=t8e.newContainer(r,n),o=e[n]||{};function l(p,m){return r8e.coerce(o,i,a8e,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||JV(o.thickness)||JV(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",e8e.traceIs(r,"gl3d")?0:4))}}});var fA=I((qNe,QV)=>{"use strict";QV.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=KV(t,r.value),l=KV(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 KV(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 tX=I((RNe,rX)=>{"use strict";var cA=da(),n8e=Pt(),vA=tn(),i8e=ir(),o8e=fA();rX.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&&n8e.traceIs(i,"errorBarsOK")){var o=vA.getFromId(r,i.xaxis),l=vA.getFromId(r,i.yaxis);eX(n,i,o,"x"),eX(n,i,l,"y")}}};function eX(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=o8e(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(cA(t.c2l(c))){var v=l(c,f);if(cA(v[0])&&cA(v[1])){var d=u[a+"s"]=c-v[0],p=u[a+"h"]=c+v[1];o.push(d,p)}}}var m=t._id,y=r._extremes[m],b=vA.findExtremes(t,o,i8e.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(b.min),y.max=y.max.concat(b.max)}}});var iX=I((FNe,nX)=>{"use strict";var aX=sa(),Yf=da(),l8e=Sa(),s8e=ki();nX.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(T){return T.id});var m=s8e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=aX.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),l8e.setClipUrl(y,a.layerClipId,r),y.each(function(T){var _=aX.select(this),x=u8e(T,o,l);if(!(m&&!T.vis)){var w,k=_.select("path.yerror");if(d.visible&&Yf(x.x)&&Yf(x.yh)&&Yf(x.ys)){var M=d.width;w="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(w+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.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",w)}else k.remove();var C=_.select("path.xerror");if(v.visible&&Yf(x.y)&&Yf(x.xh)&&Yf(x.xs)){var D=(v.copy_ystyle?d:v).width;w="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(w+="m0,-"+D+"v"+2*D),i=!C.size(),i?C=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",w)}else C.remove()}})}})};function u8e(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),Yf(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),Yf(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var sX=I((PNe,lX)=>{"use strict";var f8e=sa(),oX=Kt();lX.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=f8e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(oX.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(oX.stroke,i.color)})}});var cX=I((NNe,fX)=>{"use strict";var pm=ir(),uX=Il().overrideAll,mm=uA(),C0={error_x:pm.extendFlat({},mm),error_y:pm.extendFlat({},mm)};delete C0.error_x.copy_zstyle;delete C0.error_y.copy_zstyle;delete C0.error_y.copy_ystyle;var ym={error_x:pm.extendFlat({},mm),error_y:pm.extendFlat({},mm),error_z:pm.extendFlat({},mm)};delete ym.error_x.copy_ystyle;delete ym.error_y.copy_ystyle;delete ym.error_z.copy_ystyle;delete ym.error_z.copy_zstyle;fX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:C0,bar:C0,histogram:C0,scatter3d:uX(ym,"calc","nested"),scattergl:uX(C0,"calc","nested")}},supplyDefaults:$V(),calc:tX(),makeComputeError:fA(),plot:iX(),style:sX(),hoverInfo:c8e};function c8e(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 vX={};Ka(vX,{cn:()=>v8e});var v8e,hX=$a(()=>{"use strict";v8e={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 _X=I((zNe,xX)=>{"use strict";var Vf=sa(),pb=pi(),dX=Pt(),Tu=tn(),db=Yl(),kl=ir(),ts=kl.strTranslate,bX=Rn().extendFlat,hA=Cf(),rs=Sa(),Gh=Kt(),h8e=rp(),d8e=Ri(),p8e=Ul().flipScale,m8e=_9(),y8e=w9(),g8e=vl(),pA=(Ui(),hr(Hi)),pX=pA.LINE_SPACING,mX=pA.FROM_TL,yX=pA.FROM_BR,cn=(hX(),hr(vX)).cn;function b8e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+cn.colorbar).data(x8e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(cn.colorbar,!0),t.each(function(a){var n=Vf.select(this);kl.ensureSingle(n,"rect",cn.cbbg),kl.ensureSingle(n,"g",cn.cbfills),kl.ensureSingle(n,"g",cn.cblines),kl.ensureSingle(n,"g",cn.cbaxis,function(o){o.classed(cn.crisp,!0)}),kl.ensureSingle(n,"g",cn.cbtitleunshift,function(o){o.append("g").classed(cn.cbtitle,!0)}),kl.ensureSingle(n,"rect",cn.cboutline);var i=_8e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&w8e(n,a,e)}),t.exit().each(function(a){pb.autoMargin(e,a._id)}).remove(),t.order()}function x8e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return bX(_,{_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?p8e(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],m=0;m<p.length;m++){l=p[m];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(d&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var T=r._colorAxes[b];n=s(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},T[0]!=="heatmap"&&(o=T[1],l.calc=o._module.colorbar.calc),u(),a.push(n)}return a}var dA=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],gX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function _8e(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,m=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",T=r.xref==="paper",_=t._fullLayout,x=_._size,w=r._fillcolor,k=r._line,M=r.title,C=M.side,D=r._zrange||Vf.extent((typeof w=="function"?w:k.color).domain()),R=typeof k.color=="function"?k.color:function(){return k.color},P=typeof w=="function"?w:function(){return w},q=r._levels,z=A8e(t,r,D),B=z.fill,U=z.line,G=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),X=G/(a?x.w:x.h),Y=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),V=Y/(a?x.h:x.w),J=T?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,ee=Math.round(a?m*J+d:y*j+p),pe={center:.5,right:1}[c]||0,ne={top:1,middle:.5}[v]||0,ye=a?m-pe*X:y-ne*X,te=a?y-ne*V:m-pe*V,De=Math.round(a?j*(1-te):J*te);r._lenFrac=V,r._thickFrac=X,r._uFrac=ye,r._vFrac=te;var ce=r._axis=T8e(t,r,D);ce.position=X+(a?m+d/x.w:y+p/x.h);var Re=["top","bottom"].indexOf(C)!==-1;if(a&&Re&&(ce.title.side=C,ce.titlex=m+d/x.w,ce.titley=te+(M.side==="top"?V-p/x.h:p/x.h)),!a&&!Re&&(ce.title.side=C,ce.titley=y+p/x.h,ce.titlex=te+d/x.w),k.color&&r.tickmode==="auto"){ce.tickmode="linear",ce.tick0=q.start;var Fe=q.size,ge=kl.constrain(Y/50,4,15)+1,Oe=(D[1]-D[0])/((r.nticks||ge)*Fe);if(Oe>1){var cr=Math.pow(10,Math.floor(Math.log(Oe)/Math.LN10));Fe*=cr*kl.roundUp(Oe/cr,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=Fe}var qe=a?p/x.h:d/x.w;ce.domain=gX(dA([te,te+V],qe),qe),ce.setScale(),e.attr("transform",ts(Math.round(x.l),Math.round(x.t)));var ze=e.select("."+cn.cbtitleunshift).attr("transform",ts(-Math.round(x.l),-Math.round(x.t))),Ue=ce.ticklabelposition,We=ce.title.font.size,Ge=e.select("."+cn.cbaxis),or,Ye=0,_r=0;function Pr(fe,Ce){var Tr={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+cn.cbtitle)},tt=fe.charAt(0)==="h"?fe.slice(1):"h"+fe;e.selectAll("."+tt+",."+tt+"-math-group").remove(),h8e.draw(t,fe,bX(Tr,Ce||{}))}function Yr(){if(a&&Re||!a&&!Re){var fe,Ce;C==="top"&&(fe=d+x.l+J*m,Ce=p+x.t+j*(1-te-V)+3+We*.75),C==="bottom"&&(fe=d+x.l+J*m,Ce=p+x.t+j*(1-te)-3-We*.25),C==="right"&&(Ce=p+x.t+j*y+3+We*.75,fe=d+x.l+J*te),Pr(ce._id+"title",{attributes:{x:fe,y:Ce,"text-anchor":a?"start":"middle"}})}}function $e(){if(a&&!Re||!a&&Re){var fe=ce.position||0,Ce=ce._offset+ce._length/2,Tr,tt;if(C==="right")tt=Ce,Tr=x.l+J*fe+10+We*(ce.showticklabels?1:.5);else if(Tr=Ce,C==="bottom"&&(tt=x.t+j*fe+10+(Ue.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),C==="top"){var at=M.text.split("<br>").length;tt=x.t+j*fe+10-G-pX*We*at}Pr((a?"h":"v")+ce._id+"title",{avoid:{selection:Vf.select(t).selectAll("g."+ce._id+"tick"),side:C,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:Tr,y:tt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function mr(){if(!a&&!Re||a&&Re){var fe=e.select("."+cn.cbtitle),Ce=fe.select("text"),Tr=[-s/2,s/2],tt=fe.select(".h"+ce._id+"title-math-group").node(),at=15.6;Ce.node()&&(at=parseInt(Ce.node().style.fontSize,10)*pX);var de;if(tt?(de=rs.bBox(tt),_r=de.width,Ye=de.height,Ye>at&&(Tr[1]-=(Ye-at)/2)):Ce.node()&&!Ce.classed(cn.jsPlaceholder)&&(de=rs.bBox(Ce.node()),_r=de.width,Ye=de.height),a){if(Ye){if(Ye+=5,C==="top")ce.domain=gX(ce.domain,Ye/x.h),Tr[1]*=-1;else{ce.domain=dA(ce.domain,Ye/x.h);var Le=d8e.lineCount(Ce);Tr[1]+=(1-Le)*at}fe.attr("transform",ts(Tr[0],Tr[1])),ce.setScale()}}else _r&&(C==="right"&&(ce.domain=dA(ce.domain,(_r+We/2)/x.w)),fe.attr("transform",ts(Tr[0],Tr[1])),ce.setScale())}e.selectAll("."+cn.cbfills+",."+cn.cblines).attr("transform",a?ts(0,Math.round(x.h*(1-ce.domain[1]))):ts(Math.round(x.w*ce.domain[0]),0)),Ge.attr("transform",a?ts(0,Math.round(-x.t)):ts(Math.round(-x.l),0));var lr=e.select("."+cn.cbfills).selectAll("rect."+cn.cbfill).attr("style","").data(B);lr.enter().append("rect").classed(cn.cbfill,!0).attr("style",""),lr.exit().remove();var Ar=D.map(ce.c2p).map(Math.round).sort(function(ot,Ve){return ot-Ve});lr.each(function(ot,Ve){var Mr=[Ve===0?D[0]:(B[Ve]+B[Ve-1])/2,Ve===B.length-1?D[1]:(B[Ve]+B[Ve+1])/2].map(ce.c2p).map(Math.round);a&&(Mr[1]=kl.constrain(Mr[1]+(Mr[1]>Mr[0])?1:-1,Ar[0],Ar[1]));var Qe=Vf.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",Vf.min(Mr)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Vf.max(Mr)-Vf.min(Mr),2));if(r._fillgradient)rs.gradient(Qe,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var zr=P(ot).replace("e-","");Qe.attr("fill",Gh.hexString(zr))}});var ur=e.select("."+cn.cblines).selectAll("path."+cn.cbline).data(k.color&&k.width?U:[]);ur.enter().append("path").classed(cn.cbline,!0),ur.exit().remove(),ur.each(function(ot){var Ve=ee,Mr=Math.round(ce.c2p(ot))+k.width/2%1;Vf.select(this).attr("d","M"+(a?Ve+","+Mr:Mr+","+Ve)+(a?"h":"v")+G).call(rs.lineGroupStyle,k.width,R(ot),k.dash)}),Ge.selectAll("g."+ce._id+"tick,path").remove();var Cr=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),Er=Tu.calcTicks(ce),Vr=Tu.getTickSigns(ce)[2];return Tu.drawTicks(t,ce,{vals:ce.ticks==="inside"?Tu.clipEnds(ce,Er):Er,layer:Ge,path:Tu.makeTickPath(ce,Cr,Vr),transFn:Tu.makeTransTickFn(ce)}),Tu.drawLabels(t,ce,{vals:Er,layer:Ge,transFn:Tu.makeTransTickLabelFn(ce),labelFns:Tu.makeLabelFns(ce,Cr)})}function Gr(){var fe,Ce=G+s/2;Ue.indexOf("inside")===-1&&(fe=rs.bBox(Ge.node()),Ce+=a?fe.width:fe.height),or=ze.select("text");var Tr=0,tt=a&&C==="top",at=!a&&C==="right",de=0;if(or.node()&&!or.classed(cn.jsPlaceholder)){var Le,lr=ze.select(".h"+ce._id+"title-math-group").node();lr&&(a&&Re||!a&&!Re)?(fe=rs.bBox(lr),Tr=fe.width,Le=fe.height):(fe=rs.bBox(ze.node()),Tr=fe.right-x.l-(a?ee:De),Le=fe.bottom-x.t-(a?De:ee),!a&&C==="top"&&(Ce+=fe.height,de=fe.height)),at&&(or.attr("transform",ts(Tr/2+We/2,0)),Tr*=2),Ce=Math.max(Ce,a?Tr:Le)}var Ar=(a?d:p)*2+Ce+u+s/2,ur=0;!a&&M.text&&v==="bottom"&&y<=0&&(ur=Ar/2,Ar+=ur,de+=ur),_._hColorbarMoveTitle=ur,_._hColorbarMoveCBTitle=de;var Cr=u+s,Er=(a?ee:De)-Cr/2-(a?d:0),Vr=(a?De:ee)-(a?Y:p+de-ur);e.select("."+cn.cbbg).attr("x",Er).attr("y",Vr).attr(a?"width":"height",Math.max(Ar-ur,2)).attr(a?"height":"width",Math.max(Y+Cr,2)).call(Gh.fill,f).call(Gh.stroke,r.bordercolor).style("stroke-width",u);var ot=at?Math.max(Tr-10,0):0;e.selectAll("."+cn.cboutline).attr("x",(a?ee:De+d)+ot).attr("y",(a?De+p-Y:ee)+(tt?Ye:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Y-(a?2*p+Ye:2*d+ot),2)).call(Gh.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ve=a?pe*Ar:0,Mr=a?0:(1-ne)*Ar-de;if(Ve=T?x.l-Ve:-Ve,Mr=b?x.t-Mr:-Mr,e.attr("transform",ts(Ve,Mr)),!a&&(u||Gh.opacity(f)&&!Gh.equals(_.paper_bgcolor,f))){var Qe=Ge.selectAll("text"),zr=Qe[0].length,it=e.select("."+cn.cbbg).node(),lt=rs.bBox(it),Qr=rs.getTranslate(e),se=2;Qe.each(function(Mn,Ba){var hn=0,Yn=zr-1;if(Ba===hn||Ba===Yn){var Kn=rs.bBox(this),si=rs.getTranslate(this),Wa;if(Ba===Yn){var Vn=Kn.right+si.x,ln=lt.right+Qr.x+De-u-se+m;Wa=ln-Vn,Wa>0&&(Wa=0)}else if(Ba===hn){var sn=Kn.left+si.x,Za=lt.left+Qr.x+De+u+se;Wa=Za-sn,Wa<0&&(Wa=0)}Wa&&(zr<3?this.setAttribute("transform","translate("+Wa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Te={},tr=mX[c],vr=yX[c],na=mX[v],Ea=yX[v],Da=Ar-G;a?(i==="pixels"?(Te.y=y,Te.t=Y*na,Te.b=Y*Ea):(Te.t=Te.b=0,Te.yt=y+n*na,Te.yb=y-n*Ea),l==="pixels"?(Te.x=m,Te.l=Ar*tr,Te.r=Ar*vr):(Te.l=Da*tr,Te.r=Da*vr,Te.xl=m-o*tr,Te.xr=m+o*vr)):(i==="pixels"?(Te.x=m,Te.l=Y*tr,Te.r=Y*vr):(Te.l=Te.r=0,Te.xl=m+n*tr,Te.xr=m-n*vr),l==="pixels"?(Te.y=1-y,Te.t=Ar*na,Te.b=Ar*Ea):(Te.t=Da*na,Te.b=Da*Ea,Te.yt=y-o*na,Te.yb=y+o*Ea));var Va=r.y<.5?"b":"t",on=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Xa={r:_.width-Er-Ve,l:Er+Te.r,b:_.height-Vr-Mr,t:Vr+Te.b};T&&b?pb.autoMargin(t,r._id,Te):T?t._fullLayout._reservedMargin[r._id][Va]=Xa[Va]:b||a?t._fullLayout._reservedMargin[r._id][on]=Xa[on]:t._fullLayout._reservedMargin[r._id][Va]=Xa[Va]}return kl.syncOrAsync([pb.previousPromises,Yr,mr,$e,pb.previousPromises,Gr],t)}function w8e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;db.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),hA(e)},moveFn:function(u,f){e.attr("transform",o+ts(u,f)),l=db.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=db.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=db.getCursor(l,s,r.xanchor,r.yanchor);hA(e,c)},doneFn:function(){if(hA(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?dX.call("_guiRestyle",t,u,r._traceIndex):dX.call("_guiRelayout",t,u)}}})}function A8e(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 T8e(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 kl.coerce(i,l,g8e,f,c)}return m8e(i,l,u,s,a),y8e(i,l,u,s),l}xX.exports={draw:b8e}});var AX=I((INe,wX)=>{"use strict";wX.exports={moduleType:"component",name:"colorbar",attributes:M2(),supplyDefaults:i7(),draw:_X().draw,hasColorbar:Z6()}});var MX=I((BNe,TX)=>{"use strict";TX.exports={moduleType:"component",name:"legend",layoutAttributes:a8(),supplyLayoutDefaults:i8(),draw:x8(),style:m8()}});var SX=I((ONe,kX)=>{"use strict";kX.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 LX=I((HNe,CX)=>{"use strict";CX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var yA=I((UNe,RX)=>{"use strict";var M8e=Pt(),qX=ir(),mA=qX.extendFlat,EX=qX.extendDeep;function DX(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 k8e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}RX.exports=function(r,t){var a,n=r.data,i=r.layout,o=EX([],n),l=EX({},i,DX(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++)k8e(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),M8e.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var 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={}),mA(d.xaxis,v),mA(d.yaxis,v),mA(d.zaxis,v),d._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var m={gd:p,td:p,layout:l,data:o,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showTips:t.showTips||!1}};return t.setBackground!=="transparent"&&(m.config.setBackground=t.setBackground||"opaque"),m.gd.defaultLayout=DX(t.tileClass),m}});var NX=I((GNe,PX)=>{"use strict";var S8e=h2().EventEmitter,C8e=Pt(),L8e=ir(),FX=y0(),E8e=yA(),D8e=g5(),q8e=b5();function R8e(e,r){var t=new S8e,a=E8e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=FX.getDelay(n._fullLayout);setTimeout(function(){var s=D8e(n),u=document.createElement("canvas");u.id=L8e.randstr(),t=q8e({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=FX.getRedrawFunc(n);return C8e.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}PX.exports=R8e});var BX=I((YNe,IX)=>{"use strict";var zX=y0(),F8e={getDelay:zX.getDelay,getRedrawFunc:zX.getRedrawFunc,clone:yA(),toSVG:g5(),svgToImg:b5(),toImage:NX(),downloadImage:Hw()};IX.exports=F8e});var HX=I(Mu=>{"use strict";Mu.version=v1().version;$M();ND();var P8e=Pt(),gm=Mu.register=P8e.register,bA=$O(),OX=Object.keys(bA);for(mb=0;mb<OX.length;mb++)Yh=OX[mb],Yh.charAt(0)!=="_"&&(Mu[Yh]=bA[Yh]),gm({moduleType:"apiMethod",name:Yh,fn:bA[Yh]});var Yh,mb;gm(nG());gm([LG(),GG(),Mh(),sY(),_Y(),UY(),lV(),MV(),UV(),sA(),cX(),nh(),AX(),MX(),mu(),W8()]);gm([SX(),LX()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(gm(window.PlotlyLocales),delete window.PlotlyLocales);Mu.Icons=x3();var yb=mu(),gA=pi();Mu.Plots={resize:gA.resize,graphJson:gA.graphJson,sendDataToCloud:gA.sendDataToCloud};Mu.Fx={hover:yb.hover,unhover:yb.unhover,loneHover:yb.loneHover,loneUnhover:yb.loneUnhover};Mu.Snapshot=BX();Mu.PlotSchema=Kv()});var GX=I((XNe,UX)=>{"use strict";UX.exports=HX()});var xA=I((WNe,VX)=>{"use strict";var N8e=Pt(),rl=ir(),z8e=y9(),I8e=Sa();function B8e(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,u=i.x,f=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var m=l.p2c(c-d),y=l.p2c(c+d),b=s.p2c(v-d),T=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(m,y),Math.min(s._rl[0],s._rl[1]),Math.max(m,y),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(m,y),Math.min(b,T),Math.max(m,y),Math.max(b,T))}else p=i.ids;var _,x,w,k,M,C,D,R,P,q=d;if(a==="x"){var z=!!o.xperiodalignment,B=!!o.yperiodalignment;for(M=0;M<p.length;M++){if(_=p[M],w=u[_],C=Math.abs(l.c2p(w)-c),z){var U=l.c2p(o._xStarts[_]),G=l.c2p(o._xEnds[_]);C=c>=Math.min(U,G)&&c<=Math.max(U,G)?0:1/0}if(C<=q){if(q=C,k=f[_],D=s.c2p(k)-v,B){var X=s.c2p(o._yStarts[_]),Y=s.c2p(o._yEnds[_]);D=v>=Math.min(X,Y)&&v<=Math.max(X,Y)?0:1/0}P=Math.sqrt(C*C+D*D),x=p[M]}}}else for(M=0;M<p.length;M++)_=p[M],w=u[_],k=f[_],C=l.c2p(w)-c,D=s.c2p(k)-v,R=Math.sqrt(C*C+D*D),R<=q&&(q=P=R,x=_);return e.index=x,e.distance=q,e.dxy=P,x===void 0?[e]:[YX(e,u,f,o)]}function YX(e,r,t,a){var n=e.xa,i=e.ya,o=e.distance,l=e.dxy,s=e.index,u={pointNumber:s,x:r[s],y:t[s]};u.tx=rl.isArrayOrTypedArray(a.text)?a.text[s]:a.text,u.htx=Array.isArray(a.hovertext)?a.hovertext[s]:a.hovertext,u.data=Array.isArray(a.customdata)?a.customdata[s]:a.customdata,u.tp=Array.isArray(a.textposition)?a.textposition[s]:a.textposition;var f=a.textfont;f&&(u.ts=rl.isArrayOrTypedArray(f.size)?f.size[s]:f.size,u.tc=rl.isArrayOrTypedArray(f.color)?f.color[s]:f.color,u.tf=Array.isArray(f.family)?f.family[s]:f.family,u.tw=Array.isArray(f.weight)?f.weight[s]:f.weight,u.ty=Array.isArray(f.style)?f.style[s]:f.style,u.tv=Array.isArray(f.variant)?f.variant[s]:f.variant);var c=a.marker;c&&(u.ms=rl.isArrayOrTypedArray(c.size)?c.size[s]:c.size,u.mo=rl.isArrayOrTypedArray(c.opacity)?c.opacity[s]:c.opacity,u.mx=rl.isArrayOrTypedArray(c.symbol)?c.symbol[s]:c.symbol,u.ma=rl.isArrayOrTypedArray(c.angle)?c.angle[s]:c.angle,u.mc=rl.isArrayOrTypedArray(c.color)?c.color[s]:c.color,u.mcc=I8e.tryColorscale(c,"")(u.mc));var v=c&&c.line;v&&(u.mlc=Array.isArray(v.color)?v.color[s]:v.color,u.mlw=rl.isArrayOrTypedArray(v.width)?v.width[s]:v.width);var d=c&&c.gradient;d&&d.type!=="none"&&(u.mgt=Array.isArray(d.type)?d.type[s]:d.type,u.mgc=Array.isArray(d.color)?d.color[s]:d.color);var p=n.c2p(u.x,!0),m=i.c2p(u.y,!0),y=u.mrc||1,b=a.hoverlabel;b&&(u.hbg=Array.isArray(b.bgcolor)?b.bgcolor[s]:b.bgcolor,u.hbc=Array.isArray(b.bordercolor)?b.bordercolor[s]:b.bordercolor,u.hts=rl.isArrayOrTypedArray(b.font.size)?b.font.size[s]:b.font.size,u.htc=Array.isArray(b.font.color)?b.font.color[s]:b.font.color,u.htf=Array.isArray(b.font.family)?b.font.family[s]:b.font.family,u.hnl=rl.isArrayOrTypedArray(b.namelength)?b.namelength[s]:b.namelength);var T=a.hoverinfo;T&&(u.hi=Array.isArray(T)?T[s]:T);var _=a.hovertemplate;_&&(u.ht=Array.isArray(_)?_[s]:_);var x={};x[e.index]=u;var w=a._origX,k=a._origY,M=rl.extendFlat({},e,{color:z8e(a,u),x0:p-y,x1:p+y,xLabelVal:w?w[s]:u.x,y0:m-y,y1:m+y,yLabelVal:k?k[s]:u.y,cd:x,distance:o,spikeDistance:l,hovertemplate:u.ht});return u.htx?M.text=u.htx:u.tx?M.text=u.tx:a.text&&(M.text=a.text),rl.fillText(u,a,M),N8e.getComponentMethod("errorbars","hoverInfo")(u,a,M),M}VX.exports={hoverPoints:B8e,calcHover:YX}});var bm={};Ka(bm,{DASHES:()=>Y8e,SYMBOL_SDF_SIZE:()=>H8e,SYMBOL_SIZE:()=>U8e,SYMBOL_STROKE:()=>G8e,TOO_MANY_POINTS:()=>O8e});var O8e,H8e,U8e,G8e,Y8e,xm=$a(()=>{"use strict";O8e=1e5,H8e=200,U8e=20,G8e=1,Y8e={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var gb=I((ZNe,JX)=>{"use strict";var V8e=Pl(),X8e=Di(),W8e=yw(),vn=Nf(),XX=$1().axisHoverFormat,WX=Qc(),Z8e=(t2(),hr(r2)).default,_A=Rn().extendFlat,J8e=Il().overrideAll,j8e=(xm(),hr(bm)).DASHES,ZX=vn.line,ku=vn.marker,$8e=ku.line,Xf=JX.exports=J8e({x:vn.x,x0:vn.x0,dx:vn.dx,y:vn.y,y0:vn.y0,dy:vn.dy,xperiod:vn.xperiod,yperiod:vn.yperiod,xperiod0:vn.xperiod0,yperiod0:vn.yperiod0,xperiodalignment:vn.xperiodalignment,yperiodalignment:vn.yperiodalignment,xhoverformat:XX("x"),yhoverformat:XX("y"),text:vn.text,hovertext:vn.hovertext,textposition:vn.textposition,textfont:X8e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:ZX.color,width:ZX.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Z8e(j8e),dflt:"solid"}},marker:_A({},WX("marker"),{symbol:ku.symbol,angle:ku.angle,size:ku.size,sizeref:ku.sizeref,sizemin:ku.sizemin,sizemode:ku.sizemode,opacity:ku.opacity,colorbar:ku.colorbar,line:_A({},WX("marker.line"),{width:$8e.width})}),connectgaps:vn.connectgaps,fill:_A({},vn.fill,{dflt:"none"}),fillcolor:W8e(),selected:{marker:vn.selected.marker,textfont:vn.selected.textfont},unselected:{marker:vn.unselected.marker,textfont:vn.unselected.textfont},opacity:V8e.opacity},"calc","nested");Xf.x.editType=Xf.y.editType=Xf.x0.editType=Xf.y0.editType="calc+clearAxisTypes";Xf.hovertemplate=vn.hovertemplate;Xf.hovertemplatefallback=vn.hovertemplatefallback;Xf.texttemplate=vn.texttemplate;Xf.texttemplatefallback=vn.texttemplatefallback});var bb=I(wA=>{"use strict";var{symbolNumber:jX}=Sa();wA.isOpenSymbol=e=>jX(e)%200>=100;wA.isDotSymbol=e=>jX(e)>=200});var QX=I((jNe,KX)=>{"use strict";var $X=ir(),K8e=Pt(),Q8e=bb(),ewe=gb(),rwe=(Op(),hr(Bp)),xb=ki(),twe=Yw(),awe=Vw(),nwe=M5(),iwe=Xw(),owe=Zw(),lwe=Ww();KX.exports=function(r,t,a,n){function i(d,p){return $X.coerce(r,t,ewe,d,p)}var o=r.marker?Q8e.isOpenSymbol(r.marker.symbol):!1,l=xb.isBubble(r),s=twe(r,t,n,i);if(!s){t.visible=!1;return}awe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var u=s<rwe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode",u),xb.hasMarkers(t)&&(nwe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0}),i("marker.line.width",o||l?1:0)),xb.hasLines(t)&&(i("connectgaps"),iwe(r,t,a,n,i),i("line.shape")),xb.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),lwe(r,t,n,i,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var f=(t.line||{}).color,c=(t.marker||{}).color;i("fill"),t.fill!=="none"&&owe(r,t,a,i);var v=K8e.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),$X.coerceSelectionMarkerOpacity(t,i)}});var rW=I(($Ne,eW)=>{"use strict";var swe=v9();eW.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),swe(r,t,a)}});var aW=I((KNe,tW)=>{"use strict";function uwe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function fwe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function cwe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function vwe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function hwe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function _m(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}tW.exports={ge:function(e,r,t,a,n){return _m(e,r,t,a,n,uwe)},gt:function(e,r,t,a,n){return _m(e,r,t,a,n,fwe)},lt:function(e,r,t,a,n){return _m(e,r,t,a,n,cwe)},le:function(e,r,t,a,n){return _m(e,r,t,a,n,vwe)},eq:function(e,r,t,a,n){return _m(e,r,t,a,n,hwe)}}});var AA=I((QNe,nW)=>{nW.exports=dwe;function dwe(e,r,t){return r<t?e<r?r:e>t?t:e:e<t?t:e>r?r:e}});var zs=I((eze,oW)=>{"use strict";oW.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=iW(t)),Array.isArray(t)){var l={};for(o=0;o<t.length;o++)l[t[o]]=!0;t=l}for(i in t)t[i]=iW(t[i]);var s={};for(i in t){var u=t[i];if(Array.isArray(u))for(o=0;o<u.length;o++){var f=u[o];if(a&&(s[f]=!0),f in r){if(n[i]=r[f],a)for(var c=o;c<u.length;c++)s[u[c]]=!0;break}}else i in r&&(t[i]&&(n[i]=r[i]),a&&(s[i]=!0))}if(a)for(i in r)s[i]||(n[i]=r[i]);return n};var TA={};function iW(e){return TA[e]?TA[e]:(typeof e=="string"&&(e=TA[e]=e.split(/\s*,\s*|\s+/)),e)}});var Vh=I((rze,lW)=>{"use strict";var pwe=zs();lW.exports=mwe;function mwe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=pwe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var L0=I((tze,sW)=>{"use strict";sW.exports=ywe;function ywe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;a<r;a++){for(var n=-1/0,i=1/0,o=a,l=e.length;o<l;o+=r)e[o]>n&&(n=e[o]),e[o]<i&&(i=e[o]);t[a]=i,t[r+a]=n}return t}});var fW=I((aze,uW)=>{"use strict";uW.exports=function(){for(var r=0;r<arguments.length;r++)if(typeof arguments[r]!="undefined")return arguments[r]}});var _b=I((nze,cW)=>{cW.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var E0=I((ize,hW)=>{var vW=_b();hW.exports=gwe;function gwe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(vW(r||"float32"))(n+t));var u=r.length-t;if(n!==u)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+u);for(i=0,l=t;i<e.length;i++)for(o=0;o<a;o++)r[l++]=e[i][o]===null?NaN:e[i][o]}else if(!r||typeof r=="string"){var f=vW(r||"float32");if(Array.isArray(e)||r==="array")for(r=new f(e.length+t),i=0,l=t,s=r.length;l<s;l++,i++)r[l]=e[i]===null?NaN:e[i];else t===0?r=new f(e):(r=new f(e.length+t),r.set(e,t))}else r.set(e,t);return r}});var pW=I((oze,dW)=>{"use strict";dW.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var yW=I((lze,mW)=>{"use strict";mW.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var TW=I((sze,AW)=>{"use strict";var gW=aW(),bW=AA(),bwe=Vh(),xwe=L0(),xW=zs(),MA=fW(),_we=E0(),wwe=pW(),Awe=_b(),_W=yW(),Twe=1073741824;AW.exports=function(r,t){t||(t={}),r=_we(r,"float64"),t=xW(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=MA(t.maxDepth,255),n=MA(t.bounds,xwe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=wW(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(Awe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;b<o;++b)l[b]=b;let s=[],u=[],f=[],c=[];d(0,0,1,l,0,1);let v=0;for(let b=0;b<s.length;b++){let T=s[b];if(l.set)l.set(T,v);else for(let x=0,w=T.length;x<w;x++)l[x+v]=T[x];let _=v+s[b].length;c[b]=[v,_],v=_}return l.range=p,l;function d(b,T,_,x,w,k){if(!x.length)return null;let M=s[w]||(s[w]=[]),C=f[w]||(f[w]=[]),D=u[w]||(u[w]=[]),R=M.length;if(w++,w>a||k>Twe){for(let Y=0;Y<x.length;Y++)M.push(x[Y]),C.push(k),D.push(null,null,null,null);return R}if(M.push(x[0]),C.push(k),x.length<=1)return D.push(null,null,null,null),R;let P=_*.5,q=b+P,z=T+P,B=[],U=[],G=[],X=[];for(let Y=1,V=x.length;Y<V;Y++){let J=x[Y],j=i[J*2],ee=i[J*2+1];j<q?ee<z?B.push(J):U.push(J):ee<z?G.push(J):X.push(J)}return k<<=2,D.push(d(b,T,P,B,w,k),d(b,z,P,U,w,k+1),d(q,T,P,G,w,k+2),d(q,z,P,X,w,k+3)),R}function p(...b){let T;if(wwe(b[b.length-1])){let G=b.pop();!b.length&&(G.x!=null||G.l!=null||G.left!=null)&&(b=[G],T={}),T=xW(G,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else T={};b.length||(b=n);let _=bwe(...b),[x,w,k,M]=[Math.min(_.x,_.x+_.width),Math.min(_.y,_.y+_.height),Math.max(_.x,_.x+_.width),Math.max(_.y,_.y+_.height)],[C,D,R,P]=wW([x,w,k,M],n),q=MA(T.level,s.length);if(T.d!=null){let G;typeof T.d=="number"?G=[T.d,T.d]:T.d.length&&(G=T.d),q=Math.min(Math.max(Math.ceil(-_W(Math.abs(G[0])/(n[2]-n[0]))),Math.ceil(-_W(Math.abs(G[1])/(n[3]-n[1])))),q)}if(q=Math.min(q,s.length),T.lod)return m(C,D,R,P,q);let z=[];B(0,0,1,0,0,1);function B(G,X,Y,V,J,j){if(J===null||j===null)return;let ee=G+Y,pe=X+Y;if(C>ee||D>pe||R<G||P<X||V>=q||J===j)return;let ne=s[V];j===void 0&&(j=ne.length);for(let cr=J;cr<j;cr++){let qe=ne[cr],ze=r[qe*2],Ue=r[qe*2+1];ze>=x&&ze<=k&&Ue>=w&&Ue<=M&&z.push(qe)}let ye=u[V],te=ye[J*4+0],De=ye[J*4+1],ce=ye[J*4+2],Re=ye[J*4+3],Fe=U(ye,J+1),ge=Y*.5,Oe=V+1;B(G,X,ge,Oe,te,De||ce||Re||Fe),B(G,X+ge,ge,Oe,De,ce||Re||Fe),B(G+ge,X,ge,Oe,ce,Re||Fe),B(G+ge,X+ge,ge,Oe,Re,Fe)}function U(G,X){let Y=null,V=0;for(;Y===null;)if(Y=G[X*4+V],V++,V>G.length)return null;return Y}return z}function m(b,T,_,x,w){let k=[];for(let M=0;M<w;M++){let C=f[M],D=c[M][0],R=y(b,T,M),P=y(_,x,M),q=gW.ge(C,R),z=gW.gt(C,P,q,C.length-1);k[M]=[q+D,z+D]}return k}function y(b,T,_){let x=1,w=.5,k=.5,M=.5;for(let C=0;C<_;C++)x<<=2,x+=b<w?T<k?0:1:T<k?2:3,M*=.5,w+=b<w?-M:M,k+=T<k?-M:M;return x}};function wW(e,r){let[t,a,n,i]=r,o=1/(n-t),l=1/(i-a),s=new Array(e.length);for(let u=0,f=e.length/2;u<f;u++)s[2*u]=bW((e[2*u]-t)*o,0,1),s[2*u+1]=bW((e[2*u+1]-a)*l,0,1);return s}});var kA=I((uze,MW)=>{"use strict";MW.exports=TW()});var SW=I((fze,kW)=>{kW.exports=kwe;var SA={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Mwe=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function kwe(e){var r=[];return e.replace(Mwe,function(t,a,n){var i=a.toLowerCase();for(n=Cwe(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==SA[i])return n.unshift(a),r.push(n);if(n.length<SA[i])throw new Error("malformed path data");r.push([a].concat(n.splice(0,SA[i])))}}),r}var Swe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function Cwe(e){var r=e.match(Swe);return r?r.map(Number):[]}});var LW=I((cze,CW)=>{CW.exports=Lwe;function Lwe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s<i.length;)i[s++]+=a,i[s++]+=n}switch(l){case"Z":a=r,n=t;break;case"H":a=i[1];break;case"V":n=i[1];break;case"M":a=r=i[1],n=t=i[2];break;default:a=i[i.length-2],n=i[i.length-1]}return i})}});var qW=I((wb,DW)=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});var Ewe=(function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(u){i=!0,o=u}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),wm=Math.PI*2,CA=function(r,t,a,n,i,o,l){var s=r.x,u=r.y;s*=t,u*=a;var f=n*s-i*u,c=i*s+n*u;return{x:f+o,y:c+l}},Dwe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},EW=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},qwe=function(r,t,a,n,i,o,l,s,u,f,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),m=Math.pow(c,2),y=Math.pow(v,2),b=d*p-d*y-p*m;b<0&&(b=0),b/=d*y+p*m,b=Math.sqrt(b)*(l===s?-1:1);var T=b*i/o*v,_=b*-o/i*c,x=f*T-u*_+(r+a)/2,w=u*T+f*_+(t+n)/2,k=(c-T)/i,M=(v-_)/o,C=(-c-T)/i,D=(-v-_)/o,R=EW(1,0,k,M),P=EW(k,M,C,D);return s===0&&P>0&&(P-=wm),s===1&&P<0&&(P+=wm),[x,w,R,P]},Rwe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,u=s===void 0?0:s,f=r.largeArcFlag,c=f===void 0?0:f,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var m=Math.sin(u*wm/360),y=Math.cos(u*wm/360),b=y*(t-n)/2+m*(a-i)/2,T=-m*(t-n)/2+y*(a-i)/2;if(b===0&&T===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(T,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=qwe(t,a,n,i,o,l,c,d,m,y,b,T),w=Ewe(x,4),k=w[0],M=w[1],C=w[2],D=w[3],R=Math.abs(D)/(wm/4);Math.abs(1-R)<1e-7&&(R=1);var P=Math.max(Math.ceil(R),1);D/=P;for(var q=0;q<P;q++)p.push(Dwe(C,D)),C+=D;return p.map(function(z){var B=CA(z[0],o,l,y,m,k,M),U=B.x,G=B.y,X=CA(z[1],o,l,y,m,k,M),Y=X.x,V=X.y,J=CA(z[2],o,l,y,m,k,M),j=J.x,ee=J.y;return{x1:U,y1:G,x2:Y,y2:V,x:j,y:ee}})};wb.default=Rwe;DW.exports=wb.default});var PW=I((vze,FW)=>{"use strict";FW.exports=Pwe;var Fwe=qW();function Pwe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,u=0,f=0,c=0,v=e.length;c<v;c++){var d=e[c],p=d[0];switch(p){case"M":i=d[1],o=d[2];break;case"A":var m=Fwe({px:u,py:f,cx:d[6],cy:d[7],rx:d[1],ry:d[2],xAxisRotation:d[3],largeArcFlag:d[4],sweepFlag:d[5]});if(!m.length)continue;for(var y=0,b;y<m.length;y++)b=m[y],d=["C",b.x1,b.y1,b.x2,b.y2,b.x,b.y],y<m.length-1&&t.push(d);break;case"S":var T=u,_=f;(r=="C"||r=="S")&&(T+=T-a,_+=_-n),d=["C",T,_,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=u*2-l,s=f*2-s):(l=u,s=f),d=RW(u,f,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=RW(u,f,d[1],d[2],d[3],d[4]);break;case"L":d=Ab(u,f,d[1],d[2]);break;case"H":d=Ab(u,f,d[1],f);break;case"V":d=Ab(u,f,u,d[1]);break;case"Z":d=Ab(u,f,i,o);break}r=p,u=d[d.length-2],f=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=u,n=f),t.push(d)}return t}function Ab(e,r,t,a){return["C",e,r,t,a,t,a]}function RW(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var LA=I((hze,NW)=>{"use strict";NW.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var IW=I((dze,zW)=>{"use strict";var Nwe=SW(),zwe=LW(),Iwe=PW(),Bwe=LA();zW.exports=Owe;function Owe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Bwe(e))throw Error("String is not an SVG path.");e=Nwe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=zwe(e),e=Iwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;t<a;t++)for(var n=e[t].slice(1),i=0;i<n.length;i+=2)n[i+0]<r[0]&&(r[0]=n[i+0]),n[i+1]<r[1]&&(r[1]=n[i+1]),n[i+0]>r[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var UW=I((pze,HW)=>{"use strict";HW.exports=Hwe;var Am=1e20;function Hwe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,u,f,c,v,d,p,m;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?f=r.stride:f=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,f=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(u=s,s=Array(i*o),p=0,m=Math.floor(u.length/f);p<m;p++)s[p]=u[p*f+n]/255;else if(f!==1)throw Error("Raw data can have only 1 value per pixel");var y=Array(i*o),b=Array(i*o),T=Array(l),_=Array(l),x=Array(l+1),w=Array(l);for(p=0,m=i*o;p<m;p++){var k=s[p];y[p]=k===1?0:k===0?Am:Math.pow(Math.max(0,.5-k),2),b[p]=k===1?Am:k===0?0:Math.pow(Math.max(0,k-.5),2)}BW(y,i,o,T,_,w,x),BW(b,i,o,T,_,w,x);var M=window.Float32Array?new Float32Array(i*o):new Array(i*o);for(p=0,m=i*o;p<m;p++)M[p]=Math.min(Math.max(1-((y[p]-b[p])/a+t),0),1);return M}function BW(e,r,t,a,n,i,o){for(var l=0;l<r;l++){for(var s=0;s<t;s++)a[s]=e[s*r+l];for(OW(a,n,i,o,t),s=0;s<t;s++)e[s*r+l]=n[s]}for(s=0;s<t;s++){for(l=0;l<r;l++)a[l]=e[s*r+l];for(OW(a,n,i,o,r),l=0;l<r;l++)e[s*r+l]=Math.sqrt(n[l])}}function OW(e,r,t,a,n){t[0]=0,a[0]=-Am,a[1]=+Am;for(var i=1,o=0;i<n;i++){for(var l=(e[i]+i*i-(e[t[o]]+t[o]*t[o]))/(2*i-2*t[o]);l<=a[o];)o--,l=(e[i]+i*i-(e[t[o]]+t[o]*t[o]))/(2*i-2*t[o]);o++,t[o]=i,a[o]=l,a[o+1]=+Am}for(i=0,o=0;i<n;i++){for(;a[o+1]<i;)o++;r[i]=(i-t[o])*(i-t[o])+e[t[o]]}}});var WW={};Ka(WW,{default:()=>XW});function XW(e,r={}){if(!(0,YW.default)(e))throw Error("Invalid SVG path");let t,a;r.shape||Array.isArray(r)?[t,a]=r.shape||r:(t=EA.width=r.width||r.w||200,a=EA.height=r.height||r.h||200);let n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||(0,GW.default)(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;as.fillStyle="black",as.fillRect(0,0,t,a),as.fillStyle="white",i&&(typeof i!="number"&&(i=1),as.strokeStyle=i>0?"white":"black",as.lineWidth=Math.abs(i)),as.translate(t*.5,a*.5),as.scale(s,s);let u=new Path2D(e);return as.fill(u),i&&as.stroke(u),as.setTransform(1,0,0,1,0,0),(0,VW.default)(as,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5})}var GW,YW,VW,EA,as,ZW=$a(()=>{GW=c1(IW()),YW=c1(LA()),VW=c1(UW()),EA=document.createElement("canvas"),as=EA.getContext("2d",{willReadFrequently:!0})});var rZ=I((mze,eZ)=>{"use strict";var KW=da(),Tb=nh(),Xh=Kt(),Uwe=bs().defaultLine,JW=vo().isArrayOrTypedArray,qA=Xh.normalize(Uwe),QW=1;function jW(e,r){return[e[0],e[1],e[2],e[3]*r]}function DA(e){return KW(e)||!Xh.isChannelArray(e)&&!Xh.isValid(e)?qA:Xh.normalize(e)}function $W(e){return KW(e)?e:QW}function Gwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=JW(a),i=JW(r),o=Tb.extractOpts(e),l=[],s,u,f,c,v;if(o.colorscale!==void 0?s=Tb.makeColorScaleFuncFromTrace(e):s=DA,n?u=(p,m)=>p[m]===void 0?qA:o.colorscale===void 0?s(p[m]):Xh.normalize(s(p[m])):u=DA,i?f=function(p,m){return p[m]===void 0?QW:$W(p[m])}:f=$W,n||i)for(var d=0;d<t;d++)c=u(a,d),v=f(r,d),l[d]=jW(c,v);else l=jW(DA(a),r);return l}function Ywe(e){var r=Tb.extractOpts(e),t=r.colorscale;return r.reversescale&&(t=Tb.flipScale(r.colorscale)),t.map(function(a){return{index:a[0],rgb:Xh.rgbaArray(a[1])}})}eZ.exports={formatColor:Gwe,parseColorScale:Ywe}});var Mm=I((yze,vZ)=>{"use strict";var kb=da(),Vwe=(ZW(),hr(WW)).default,{normalize:Mb,rgbaString:q0}=Kt(),Xwe=Pt(),Jh=ir(),Hn=Jh.isArrayOrTypedArray,Wh=Sa(),tZ=mn(),aZ=rZ().formatColor,Zh=ki(),Wwe=f7(),FA=bb(),Tm=(xm(),hr(bm)),Zwe=(zv(),hr(Nv)).DESELECTDIM,nZ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Jwe=ws().appendArrayPointValue;function jwe(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(Zh.hasText(r)&&(a.text=cZ(e,r),a.textSel=oZ(e,r,r.selected),a.textUnsel=oZ(e,r,r.unselected)),Zh.hasMarkers(r)&&(a.marker=NA(e,r),a.markerSel=PA(e,r,r.selected),a.markerUnsel=PA(e,r,r.unselected),!r.unselected&&Hn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t<i.length;t++)a.markerUnsel.opacity[t]=Zwe*i[t]}if(Zh.hasLines(r)){a.line={overlay:!0,thickness:r.line.width*n,color:q0(r.line.color),opacity:r.opacity};var o=(Tm.DASHES[r.line.dash]||[1]).slice();for(t=0;t<o.length;++t)o[t]*=r.line.width*n;a.line.dashes=o}return r.error_x&&r.error_x.visible&&(a.errorX=lZ(r,r.error_x,n)),r.error_y&&r.error_y.visible&&(a.errorY=lZ(r,r.error_y,n)),r.fill&&r.fill!=="none"&&(a.fill={closed:!0,fill:q0(r.fillcolor),thickness:0}),a}function cZ(e,r){var t=e._fullLayout,a=r._length,n=r.textfont,i=r.textposition,o=Hn(i)?i:[i],l=n.color,s=n.size,u=n.family,f=n.weight,c=n.style,v=n.variant,d={},p,m=e._context.plotGlPixelRatio,y=r.texttemplate;if(y){d.text=[];var b=t._d3locale,T=Array.isArray(y),_=T?Math.min(y.length,a):a,x=T?function(R){return y[R]}:function(){return y};for(p=0;p<_;p++){var w={i:p},k=r._module.formatLabels(w,r,t),M={};Jwe(M,r,p),d.text.push(Jh.texttemplateString({data:[M,w,r._meta],fallback:r.texttemplatefallback,labels:k,locale:b,template:x(p)}))}}else Hn(r.text)&&r.text.length<a?d.text=r.text.slice():d.text=r.text;if(Hn(d.text))for(p=d.text.length;p<a;p++)d.text[p]="";for(d.opacity=r.opacity,d.font={},d.align=[],d.baseline=[],p=0;p<o.length;p++){var C=o[p].split(/\s+/);switch(C[1]){case"left":d.align.push("right");break;case"right":d.align.push("left");break;default:d.align.push(C[1])}switch(C[0]){case"top":d.baseline.push("bottom");break;case"bottom":d.baseline.push("top");break;default:d.baseline.push(C[0])}}if(Hn(l))for(d.color=new Array(a),p=0;p<a;p++)d.color[p]=q0(l[p]);else d.color=q0(l);if(Hn(s)||Array.isArray(u)||Hn(f)||Array.isArray(c)||Array.isArray(v))for(d.font=new Array(a),p=0;p<a;p++){var D=d.font[p]={};D.size=(Jh.isTypedArray(s)?s[p]:Hn(s)?kb(s[p])?s[p]:0:s)*m,D.family=Array.isArray(u)?u[p]:u,D.weight=iZ(Hn(f)?f[p]:f),D.style=Array.isArray(c)?c[p]:c,D.variant=Array.isArray(v)?v[p]:v}else d.font={size:s*m,family:u,weight:iZ(f),style:c,variant:v};return d}function iZ(e){return e<=1e3?e>500?"bold":"normal":e}function NA(e,r){var t=r._length,a=r.marker,n={},i,o=Hn(a.symbol),l=Hn(a.angle),s=Hn(a.color),u=Hn(a.line.color),f=Hn(a.opacity),c=Hn(a.size),v=Hn(a.line.width),d;if(o||(d=FA.isOpenSymbol(a.symbol)),o||s||u||f||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,m=a.angle,y=aZ(a,a.opacity,t),b=aZ(a.line,a.opacity,t);if(!Hn(b[0])){var T=b;for(b=Array(t),i=0;i<t;i++)b[i]=T}if(!Hn(y[0])){var _=y;for(y=Array(t),i=0;i<t;i++)y[i]=_}if(!Hn(p)){var x=p;for(p=Array(t),i=0;i<t;i++)p[i]=x}if(!Hn(m)){var w=m;for(m=Array(t),i=0;i<t;i++)m[i]=w}for(n.symbols=p,n.angles=m,n.colors=y,n.borderColors=b,i=0;i<t;i++)o&&(d=FA.isOpenSymbol(a.symbol[i])),d&&(b[i]=y[i].slice(),y[i]=y[i].slice(),y[i][3]=0);for(n.opacity=r.opacity,n.markers=new Array(t),i=0;i<t;i++)n.markers[i]=fZ({mx:n.symbols[i],ma:n.angles[i]},r)}else d?(n.color=Mb(a.color,"uint8"),n.color[3]=0,n.borderColor=Mb(a.color,"uint8")):(n.color=Mb(a.color,"uint8"),n.borderColor=Mb(a.line.color,"uint8")),n.opacity=r.opacity*a.opacity,n.marker=fZ({mx:a.symbol,ma:a.angle},r);var k=1,M=Wwe(r,k),C;if(c||v){var D=n.sizes=new Array(t),R=n.borderSizes=new Array(t),P=0,q;if(c){for(i=0;i<t;i++)D[i]=M(a.size[i]),P+=D[i];q=P/t}else for(C=M(a.size),i=0;i<t;i++)D[i]=C;if(v)for(i=0;i<t;i++)R[i]=a.line.width[i];else for(C=a.line.width,i=0;i<t;i++)R[i]=C;n.sizeAvg=q}else n.size=M(a&&a.size||10),n.borderSizes=M(a.line.width);return n}function PA(e,r,t){var a=r.marker,n={};return t&&(t.marker&&t.marker.symbol?n=NA(e,Jh.extendFlat({},a,t.marker)):t.marker&&(t.marker.size&&(n.size=t.marker.size),t.marker.color&&(n.colors=q0(t.marker.color)),t.marker.opacity!==void 0&&(n.opacity=t.marker.opacity))),n}function oZ(e,r,t){var a={};if(!t)return a;if(t.textfont){var n={opacity:1,text:r.text,texttemplate:r.texttemplate,textposition:r.textposition,textfont:Jh.extendFlat({},r.textfont)};t.textfont&&Jh.extendFlat(n.textfont,t.textfont),a=cZ(e,n)}return a}function lZ(e,r,t){var a={capSize:r.width*2*t,lineWidth:r.thickness*t,color:q0(r.color)};return r.copy_ystyle&&(a=Ga(ka({},e.error_y),{color:q0(e.error_y.color)})),a}var sZ=Tm.SYMBOL_SDF_SIZE,D0=Tm.SYMBOL_SIZE,uZ=Tm.SYMBOL_STROKE,RA={},$we=Wh.symbolFuncs[0](D0*.05);function fZ(e,r){var t=e.mx;if(t==="circle")return null;var a,n,i=Wh.symbolNumber(t),o=Wh.symbolFuncs[i%100],l=!!Wh.symbolNoDot[i%100],s=!!Wh.symbolNoFill[i%100],u=FA.isDotSymbol(t);if(e.ma&&(t+="_"+e.ma),RA[t])return RA[t];var f=Wh.getMarkerAngle(e,r);return u&&!l?a=o(D0*1.1,f)+$we:a=o(D0,f),n=Vwe(a,{w:sZ,h:sZ,viewBox:[-D0,-D0,D0,D0],stroke:s?uZ:-uZ}),RA[t]=n,n||null}function Kwe(e,r,t){var a=t.length,n=a/2,i,o;if(Zh.hasLines(r)&&n)if(r.line.shape==="hv"){for(i=[],o=0;o<n-1;o++)isNaN(t[o*2])||isNaN(t[o*2+1])?i.push(NaN,NaN,NaN,NaN):(i.push(t[o*2],t[o*2+1]),!isNaN(t[o*2+2])&&!isNaN(t[o*2+3])?i.push(t[o*2+2],t[o*2+1]):i.push(NaN,NaN));i.push(t[a-2],t[a-1])}else if(r.line.shape==="hvh"){for(i=[],o=0;o<n-1;o++)if(isNaN(t[o*2])||isNaN(t[o*2+1])||isNaN(t[o*2+2])||isNaN(t[o*2+3]))!isNaN(t[o*2])&&!isNaN(t[o*2+1])?i.push(t[o*2],t[o*2+1]):i.push(NaN,NaN),i.push(NaN,NaN);else{var l=(t[o*2]+t[o*2+2])/2;i.push(t[o*2],t[o*2+1],l,t[o*2+1],l,t[o*2+3])}i.push(t[a-2],t[a-1])}else if(r.line.shape==="vhv"){for(i=[],o=0;o<n-1;o++)if(isNaN(t[o*2])||isNaN(t[o*2+1])||isNaN(t[o*2+2])||isNaN(t[o*2+3]))!isNaN(t[o*2])&&!isNaN(t[o*2+1])?i.push(t[o*2],t[o*2+1]):i.push(NaN,NaN),i.push(NaN,NaN);else{var s=(t[o*2+1]+t[o*2+3])/2;i.push(t[o*2],t[o*2+1],t[o*2],s,t[o*2+2],s)}i.push(t[a-2],t[a-1])}else if(r.line.shape==="vh"){for(i=[],o=0;o<n-1;o++)isNaN(t[o*2])||isNaN(t[o*2+1])?i.push(NaN,NaN,NaN,NaN):(i.push(t[o*2],t[o*2+1]),!isNaN(t[o*2+2])&&!isNaN(t[o*2+3])?i.push(t[o*2],t[o*2+3]):i.push(NaN,NaN));i.push(t[a-2],t[a-1])}else i=t;var u=!1;for(o=0;o<i.length;o++)if(isNaN(i[o])){u=!0;break}var f=u||i.length>Tm.TOO_MANY_POINTS||Zh.hasMarkers(r)?"rect":"round";if(u&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o<i.length;o+=2)isNaN(i[o])||isNaN(i[o+1])?(i[o]=c,i[o+1]=v):(c=i[o],v=i[o+1])}return{join:f,positions:i}}function Qwe(e,r,t,a,n){var i=Xwe.getComponentMethod("errorbars","makeComputeError"),o=tZ.getFromId(e,r.xaxis,"x"),l=tZ.getFromId(e,r.yaxis,"y"),s=t.length/2,u={};function f(c,v){var d=v._id.charAt(0),p=r["error_"+d];if(p&&p.visible&&(v.type==="linear"||v.type==="log")){for(var m=i(p),y={x:0,y:1}[d],b={x:[0,1,2,3],y:[2,3,0,1]}[d],T=new Float64Array(4*s),_=1/0,x=-1/0,w=0,k=0;w<s;w++,k+=4){var M=c[w];if(kb(M)){var C=t[w*2+y],D=m(M,w),R=D[0],P=D[1];if(kb(R)&&kb(P)){var q=M-R,z=M+P;T[k+b[0]]=C-v.c2l(q),T[k+b[1]]=v.c2l(z)-C,T[k+b[2]]=0,T[k+b[3]]=0,_=Math.min(_,M-R),x=Math.max(x,M+P)}}}u[d]={positions:t,errors:T,_bnds:[_,x]}}}return f(a,o),f(n,l),u}function e9e(e,r,t,a){var n=r._length,i={},o;if(Zh.hasMarkers(r)){var l=t.font,s=t.align,u=t.baseline;for(i.offset=new Array(n),o=0;o<n;o++){var f=a.sizes?a.sizes[o]:a.size,c=Hn(l)?l[o].size:l.size,v=Hn(s)?s.length>1?s[o]:s[0]:s,d=Hn(u)?u.length>1?u[o]:u[0]:u,p=nZ[v],m=nZ[d],y=f?f/.8+1:0,b=-m*y-m*.5;i.offset[o]=[p*y/c,b/c]}}return i}vZ.exports={style:jwe,markerStyle:NA,markerSelection:PA,linePositions:Kwe,errorBarPositions:Qwe,textPosition:e9e}});var dZ=I((bze,hZ)=>{"use strict";var Sb=ir();hZ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){Sb.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=Sb.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var u=0;u<a.count;u++)a.glText[u].update(l)},a.draw=function(){for(var l=a.count,s=a.fill2d,u=a.error2d,f=a.line2d,c=a.scatter2d,v=a.glText,d=a.select2d,p=a.selectBatch,m=a.unselectBatch,y=0;y<l;y++){if(s&&a.fillOrder[y]&&s.draw(a.fillOrder[y]),f&&a.lineOptions[y]&&f.draw(y),u&&(a.errorXOptions[y]&&u.draw(y),a.errorYOptions[y]&&u.draw(y+l)),c&&a.markerOptions[y])if(m[y].length){var b=Sb.repeat([],a.count);b[y]=m[y],c.draw(b)}else p[y].length||c.draw(y);v[y]&&a.textOptions[y]&&v[y].render()}d&&d.draw(p),a.dirty=!1},a.destroy=function(){a.fill2d&&a.fill2d.destroy&&a.fill2d.destroy(),a.scatter2d&&a.scatter2d.destroy&&a.scatter2d.destroy(),a.error2d&&a.error2d.destroy&&a.error2d.destroy(),a.line2d&&a.line2d.destroy&&a.line2d.destroy(),a.select2d&&a.select2d.destroy&&a.select2d.destroy(),a.glText&&a.glText.forEach(function(l){l.destroy&&l.destroy()}),a.lineOptions=null,a.fillOptions=null,a.markerOptions=null,a.markerSelectedOptions=null,a.markerUnselectedOptions=null,a.errorXOptions=null,a.errorYOptions=null,a.textOptions=null,a.textSelectedOptions=null,a.textUnselectedOptions=null,a.selectBatch=null,a.unselectBatch=null,t._scene=null}),a.dirty||Sb.extendFlat(a,n),a}});var xZ=I((xze,bZ)=>{"use strict";var r9e=kA(),jh=ir(),pZ=mn(),t9e=uh().findExtremes,mZ=jw(),zA=Ch(),a9e=zA.calcMarkerSize,n9e=zA.calcAxisExpansion,i9e=zA.setFirstScatter,o9e=Qp(),$h=Mm(),l9e=dZ(),yZ=(Zn(),hr(ri)).BADNUM,s9e=(xm(),hr(bm)).TOO_MANY_POINTS;bZ.exports=function(r,t){var a=r._fullLayout,n=t._xA=pZ.getFromId(r,t.xaxis,"x"),i=t._yA=pZ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=s9e,u=l*2,f={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=mZ(t,n,"x",v),m=mZ(t,i,"y",d),y=p.vals,b=m.vals;t._x=y,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=m.starts,t._yEnds=m.ends);var T=new Array(u),_=new Array(l);for(c=0;c<l;c++)T[c*2]=y[c]===yZ?NaN:y[c],T[c*2+1]=b[c]===yZ?NaN:b[c],_[c]=c;if(n.type==="log")for(c=0;c<u;c+=2)T[c]=n.c2l(T[c]);if(i.type==="log")for(c=1;c<u;c+=2)T[c]=i.c2l(T[c]);s&&n.type!=="log"&&i.type!=="log"?f.tree=r9e(T):f.ids=_,o9e(r,t);var x=u9e(r,o,t,T,y,b),w=l9e(r,o);i9e(a,t);var k;return s?x.marker&&(k=x.marker.sizeAvg||Math.max(x.marker.size,3)):k=a9e(t,l),n9e(r,t,n,i,y,b,k),x.errorX&&gZ(t,n,x.errorX),x.errorY&&gZ(t,i,x.errorY),x.fill&&!w.fill2d&&(w.fill2d=!0),x.marker&&!w.scatter2d&&(w.scatter2d=!0),x.line&&!w.line2d&&(w.line2d=!0),(x.errorX||x.errorY)&&!w.error2d&&(w.error2d=!0),x.text&&!w.glText&&(w.glText=!0),x.marker&&(x.marker.snap=l),w.lineOptions.push(x.line),w.errorXOptions.push(x.errorX),w.errorYOptions.push(x.errorY),w.fillOptions.push(x.fill),w.markerOptions.push(x.marker),w.markerSelectedOptions.push(x.markerSel),w.markerUnselectedOptions.push(x.markerUnsel),w.textOptions.push(x.text),w.textSelectedOptions.push(x.textSel),w.textUnselectedOptions.push(x.textUnsel),w.selectBatch.push([]),w.unselectBatch.push([]),f._scene=w,f.index=w.count,f.x=y,f.y=b,f.positions=T,w.count++,[{x:!1,y:!1,t:f,trace:t}]};function gZ(e,r,t){var a=e._extremes[r._id],n=t9e(r,t._bnds,{padded:!0});a.min=a.min.concat(n.min),a.max=a.max.concat(n.max)}function u9e(e,r,t,a,n,i){var o=$h.style(e,t);if(o.marker&&(o.marker.positions=a),o.line&&a.length>1&&jh.extendFlat(o.line,$h.linePositions(e,t,a)),o.errorX||o.errorY){var l=$h.errorBarPositions(e,t,a,n,i);o.errorX&&jh.extendFlat(o.errorX,l.x),o.errorY&&jh.extendFlat(o.errorY,l.y)}return o.text&&(jh.extendFlat(o.text,{positions:a},$h.textPosition(e,t,o.text,o.marker)),jh.extendFlat(o.textSel,{positions:a},$h.textPosition(e,t,o.text,o.markerSel)),jh.extendFlat(o.textUnsel,{positions:a},$h.textPosition(e,t,o.text,o.markerUnsel))),o}});var IA=I((_ze,wZ)=>{"use strict";var _Z=ir(),f9e=Kt(),c9e=(zv(),hr(Nv)).DESELECTDIM;function v9e(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],u=n.textSelectedOptions[i]||{},f=n.textUnselectedOptions[i]||{},c=_Z.extendFlat({},s),v,d;if(o.length||l.length){var p=u.color,m=f.color,y=s.color,b=_Z.isArrayOrTypedArray(y);for(c.color=new Array(t._length),v=0;v<o.length;v++)d=o[v],c.color[d]=p||(b?y[d]:y);for(v=0;v<l.length;v++){d=l[v];var T=b?y[d]:y;c.color[d]=m||(p?T:f9e.addOpacity(T,c9e))}}n.glText[i].update(c)}wZ.exports={styleTextSelection:v9e}});var MZ=I((wze,TZ)=>{"use strict";var AZ=ki(),h9e=IA().styleTextSelection;TZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,u=l._length,f=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=AZ.hasText(l),m=AZ.hasMarkers(l),y=!m&&!p;if(l.visible!==!0||y)return o;var b=[],T=[];if(t!==!1&&!t.degenerate)for(var _=0;_<u;_++)t.contains([s.xpx[_],s.ypx[_]],!1,_,r)?(b.push(_),o.push({pointNumber:_,x:n.c2d(f[_]),y:i.c2d(c[_])})):T.push(_);if(m){var x=v.scatter2d;if(!b.length&&!T.length){var w=new Array(v.count);w[d]=v.markerOptions[d],x.update.apply(x,w)}else if(!v.selectBatch[d].length&&!v.unselectBatch[d].length){var k=new Array(v.count);k[d]=v.markerUnselectedOptions[d],x.update.apply(x,k)}}return v.selectBatch[d]=b,v.unselectBatch[d]=T,p&&h9e(a),o}});var SZ=I((Aze,kZ)=>{"use strict";var d9e=xA();kZ.exports={moduleType:"trace",name:"scattergl",basePlotModule:im(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:gb(),supplyDefaults:QX(),crossTraceDefaults:Jw(),colorbar:q5(),formatLabels:rW(),calc:xZ(),hoverPoints:d9e.hoverPoints,selectPoints:MZ(),meta:{}}});var LZ=I((Tze,CZ)=>{"use strict";CZ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var RZ=I((Mze,qZ)=>{"use strict";var EZ=LZ();qZ.exports=p9e;var DZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function p9e(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),EZ[e])t=EZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],u=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(DZ[v]!==void 0)return DZ[v]}return parseFloat(v)}),s===i&&t.push(1),a=u||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var PZ=I((kze,FZ)=>{"use strict";var m9e=RZ();FZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=m9e(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=y9e(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function y9e(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,u=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];u<3;)o=r+1/3*-(u-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[u++]=s*255;return l}});var km=I((Sze,NZ)=>{"use strict";var g9e=PZ(),b9e=_b();NZ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=b9e(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=g9e(r),r[0]/=255,r[1]/=255,r[2]/=255),x9e(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=Math.min(Math.max(Math.floor(r[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(r[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(r[2]*255),0),255),n[3]=r[3]==null?255:Math.min(Math.max(Math.floor(r[3]*255),0),255)),n)};function x9e(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var IZ=I((Cze,Lb)=>{"use strict";var Cb=AA();Lb.exports=zZ;Lb.exports.to=zZ;Lb.exports.from=_9e;function zZ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=Cb(t,0,255)&255,a=Cb(a,0,255)&255,n=Cb(n,0,255)&255,i=Cb(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function _9e(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var OZ=I((Lze,BZ)=>{BZ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a<e.length-1;a++)t.push(e[a],r[a]||"");return t.push(e[a]),t.join("")}});var BA=I((Eze,HZ)=>{"use strict";HZ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n<i;n++){var o=a[n];for(var l in o)if(!(t[l]!==void 0&&!Array.isArray(t[l])&&r[l]===t[l])&&l in t){var s;if(o[l]===!0)s=t[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](t[l],r,t),s===void 0))continue}r[l]=s}}return r}});var Eb=I((Dze,Kh)=>{"use strict";Kh.exports=Sm;Kh.exports.float32=Kh.exports.float=Sm;Kh.exports.fract32=Kh.exports.fract=w9e;var UZ=new Float32Array(1);function w9e(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Sm(e));for(var t=0,a=r.length;t<a;t++)r[t]=e[t]-r[t];return r}return Sm(e-Sm(e))}function Sm(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(UZ[0]=e,UZ[0])}});var OA=I((qze,GZ)=>{"use strict";var A9e=km(),T9e=L0(),M9e=IZ(),k9e=kA(),Db=OZ(),S9e=zs(),C9e=BA(),L9e=E0(),qb=Eb(),E9e=Vh(),D9e=Ni;function Ni(e,r){if(!(this instanceof Ni))return new Ni(e,r);typeof e=="function"?(r||(r={}),r.regl=e):(r=e,e=null),r&&r.length&&(r.positions=r),e=r.regl;let t=e._gl,a,n=[],i={},o=[],l=[null],s=[null],u=255,f=100;this.tooManyColors=!1,a=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:t,groups:o,markerCache:s,markerTextures:l,palette:n,paletteIds:i,paletteTexture:a,maxColors:u,maxSize:f,canvas:t.canvas}),this.update(r);let c={uniforms:{constPointSize:!!r.constPointSize,opacity:e.prop("opacity"),paletteSize:(p,m)=>[this.tooManyColors?0:u,a.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:a},attributes:{x:(p,m)=>m.xAttr||{buffer:m.positionBuffer,stride:8,offset:0},y:(p,m)=>m.yAttr||{buffer:m.positionBuffer,stride:8,offset:4},xFract:(p,m)=>m.xAttr?{constant:[0,0]}:{buffer:m.positionFractBuffer,stride:8,offset:0},yFract:(p,m)=>m.yAttr?{constant:[0,0]}:{buffer:m.positionFractBuffer,stride:8,offset:4},size:(p,m)=>m.size.length?{buffer:m.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(m.size*255/this.maxSize)]},borderSize:(p,m)=>m.borderSize.length?{buffer:m.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(m.borderSize*255/this.maxSize)]},colorId:(p,m)=>m.color.length?{buffer:m.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(m.color*4,m.color*4+4):[m.color]},borderColorId:(p,m)=>m.borderColor.length?{buffer:m.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(m.borderColor*4,m.borderColor*4+4):[m.borderColor]},isActive:(p,m)=>m.activation===!0?{constant:[1]}:m.activation?m.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},v=Object.assign({},c);v.frag=Db([`precision highp float;
#define GLSLIFY 1

uniform float opacity;
uniform sampler2D markerTexture;

varying vec4 fragColor, fragBorderColor;
varying float fragWidth, fragBorderColorLevel, fragColorLevel;

float smoothStep(float x, float y) {
  return 1.0 / (1.0 + exp(50.0*(x - y)));
}

void main() {
  float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;

  // max-distance alpha
  if (dist < 0.003) discard;

  // null-border case
  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
  }
  else {
    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);

    vec4 color = fragBorderColor;
    color.a *= borderColorAmt;
    color = mix(color, fragColor, colorAmt);
    color.a *= opacity;

    gl_FragColor = color;
  }

}
`]),v.vert=Db([`precision highp float;
#define GLSLIFY 1

attribute float x, y, xFract, yFract;
attribute float size, borderSize;
attribute vec4 colorId, borderColorId;
attribute float isActive;

// \`invariant\` effectively turns off optimizations for the position.
// We need this because -fast-math on M1 Macs is re-ordering
// floating point operations in a way that causes floating point
// precision limits to put points in the wrong locations.
invariant gl_Position;

uniform bool constPointSize;
uniform float pixelRatio;
uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
uniform sampler2D paletteTexture;

const float maxSize = 100.;
const float borderLevel = .5;

varying vec4 fragColor, fragBorderColor;
varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;

float pointSizeScale = (constPointSize) ? 2. : pixelRatio;

bool isDirect = (paletteSize.x < 1.);

vec4 getColor(vec4 id) {
  return isDirect ? id / 255. : texture2D(paletteTexture,
    vec2(
      (id.x + .5) / paletteSize.x,
      (id.y + .5) / paletteSize.y
    )
  );
}

void main() {
  // ignore inactive points
  if (isActive == 0.) return;

  vec2 position = vec2(x, y);
  vec2 positionFract = vec2(xFract, yFract);

  vec4 color = getColor(colorId);
  vec4 borderColor = getColor(borderColorId);

  float size = size * maxSize / 255.;
  float borderSize = borderSize * maxSize / 255.;

  gl_PointSize = 2. * size * pointSizeScale;
  fragPointSize = size * pixelRatio;

  vec2 pos = (position + translate) * scale
      + (positionFract + translateFract) * scale
      + (position + translate) * scaleFract
      + (positionFract + translateFract) * scaleFract;

  gl_Position = vec4(pos * 2. - 1., 0., 1.);

  fragColor = color;
  fragBorderColor = borderColor;
  fragWidth = 1. / gl_PointSize;

  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
}
`]),this.drawMarker=e(v);let d=Object.assign({},c);d.frag=Db([`precision highp float;
#define GLSLIFY 1

varying vec4 fragColor, fragBorderColor;
varying float fragBorderRadius, fragWidth;

uniform float opacity;

float smoothStep(float edge0, float edge1, float x) {
	float t;
	t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
	return t * t * (3.0 - 2.0 * t);
}

void main() {
	float radius, alpha = 1.0, delta = fragWidth;

	radius = length(2.0 * gl_PointCoord.xy - 1.0);

	if (radius > 1.0 + delta) {
		discard;
	}

	alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);

	float borderRadius = fragBorderRadius;
	float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
	vec4 color = mix(fragColor, fragBorderColor, ratio);
	color.a *= alpha * opacity;
	gl_FragColor = color;
}
`]),d.vert=Db([`precision highp float;
#define GLSLIFY 1

attribute float x, y, xFract, yFract;
attribute float size, borderSize;
attribute vec4 colorId, borderColorId;
attribute float isActive;

// \`invariant\` effectively turns off optimizations for the position.
// We need this because -fast-math on M1 Macs is re-ordering
// floating point operations in a way that causes floating point
// precision limits to put points in the wrong locations.
invariant gl_Position;

uniform bool constPointSize;
uniform float pixelRatio;
uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
uniform sampler2D paletteTexture;

const float maxSize = 100.;

varying vec4 fragColor, fragBorderColor;
varying float fragBorderRadius, fragWidth;

float pointSizeScale = (constPointSize) ? 2. : pixelRatio;

bool isDirect = (paletteSize.x < 1.);

vec4 getColor(vec4 id) {
  return isDirect ? id / 255. : texture2D(paletteTexture,
    vec2(
      (id.x + .5) / paletteSize.x,
      (id.y + .5) / paletteSize.y
    )
  );
}

void main() {
  // ignore inactive points
  if (isActive == 0.) return;

  vec2 position = vec2(x, y);
  vec2 positionFract = vec2(xFract, yFract);

  vec4 color = getColor(colorId);
  vec4 borderColor = getColor(borderColorId);

  float size = size * maxSize / 255.;
  float borderSize = borderSize * maxSize / 255.;

  gl_PointSize = (size + borderSize) * pointSizeScale;

  vec2 pos = (position + translate) * scale
      + (positionFract + translateFract) * scale
      + (position + translate) * scaleFract
      + (positionFract + translateFract) * scaleFract;

  gl_Position = vec4(pos * 2. - 1., 0., 1.);

  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
  fragColor = color;
  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
  fragWidth = 1. / gl_PointSize;
}
`]),this.drawCircle=e(d)}Ni.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};Ni.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};Ni.prototype.draw=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];let{groups:a}=this;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(let n=0;n<r.length;n++)this.drawItem(n,r[n]);else a.forEach((n,i)=>{this.drawItem(i)});return this};Ni.prototype.drawItem=function(e,r){let{groups:t}=this,a=t[e];if(typeof r=="number"&&(e=r,a=t[r],r=null),!(a&&a.count&&a.opacity))return;a.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,a,r));let n=[];for(let i=1;i<a.activation.length;i++)!a.activation[i]||a.activation[i]!==!0&&!a.activation[i].data.length||n.push(...this.getMarkerDrawOptions(i,a,r));n.length&&this.drawMarker(n)};Ni.prototype.getMarkerDrawOptions=function(e,r,t){let{range:a,tree:n,viewport:i,activation:o,selectionBuffer:l,count:s}=r;if(!n)return t?[Object.assign({},r,{markerTexture:this.markerTextures[e],activation:o[e],count:t.length,elements:t,offset:0})]:[Object.assign({},r,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];let u=[],f=n.range(a,{lod:!0,px:[(a[2]-a[0])/i.width,(a[3]-a[1])/i.height]});if(t){let v=o[e].data,d=new Uint8Array(s);for(let p=0;p<t.length;p++){let m=t[p];d[m]=v?v[m]:1}l.subdata(d)}for(let c=f.length;c--;){let[v,d]=f[c];u.push(Object.assign({},r,{markerTexture:this.markerTextures[e],activation:t?l:o[e],offset:v,count:d-v}))}return u};Ni.prototype.update=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!r.length)return;r.length===1&&Array.isArray(r[0])&&(r=r[0]);let{groups:a,gl:n,regl:i,maxSize:o,maxColors:l,palette:s}=this;this.groups=a=r.map((u,f)=>{let c=a[f];if(u===void 0)return c;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=S9e(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),c||(a[f]=c={id:f,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:i.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},Ni.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=c.marker,delete c.marker),u.marker&&!("positions"in u)&&(u.positions=c.positions,delete c.positions);let v=0,d=0;if(C9e(c,u,[{snap:!0,size:(p,m)=>(p==null&&(p=Ni.defaults.size),v+=p&&p.length?1:0,p),borderSize:(p,m)=>(p==null&&(p=Ni.defaults.borderSize),v+=p&&p.length?1:0,p),opacity:parseFloat,color:(p,m)=>(p==null&&(p=Ni.defaults.color),p=this.updateColor(p),d++,p),borderColor:(p,m)=>(p==null&&(p=Ni.defaults.borderColor),p=this.updateColor(p),d++,p),bounds:(p,m,y)=>("range"in y||(y.range=null),p),positions:(p,m,y)=>{let{snap:b}=m,{positionBuffer:T,positionFractBuffer:_,selectionBuffer:x}=m;if(p.x||p.y)return p.x.length?m.xAttr={buffer:i.buffer(p.x),offset:0,stride:4,count:p.x.length}:m.xAttr={buffer:p.x.buffer,offset:p.x.offset*4||0,stride:(p.x.stride||1)*4,count:p.x.count},p.y.length?m.yAttr={buffer:i.buffer(p.y),offset:0,stride:4,count:p.y.length}:m.yAttr={buffer:p.y.buffer,offset:p.y.offset*4||0,stride:(p.y.stride||1)*4,count:p.y.count},m.count=Math.max(m.xAttr.count,m.yAttr.count),p;p=L9e(p,"float64");let w=m.count=Math.floor(p.length/2),k=m.bounds=w?T9e(p,2):null;if(!y.range&&!m.range&&(delete m.range,y.range=k),!y.marker&&!m.marker&&(delete m.marker,y.marker=null),b&&(b===!0||w>b)?m.tree=k9e(p,{bounds:k}):b&&b.length&&(m.tree=b),m.tree){let D={primitive:"points",usage:"static",data:m.tree,type:"uint32"};m.elements?m.elements(D):m.elements=i.elements(D)}var M=qb.float32(p);T({data:M,usage:"dynamic"});var C=qb.fract32(p,M);return _({data:C,usage:"dynamic"}),x({data:new Uint8Array(w),type:"uint8",usage:"stream"}),p}},{marker:(p,m,y)=>{let{activation:b}=m;if(b.forEach(T=>T&&T.destroy&&T.destroy()),b.length=0,!p||typeof p[0]=="number"){let T=this.addMarker(p);b[T]=!0}else{let T=[];for(let _=0,x=Math.min(p.length,m.count);_<x;_++){let w=this.addMarker(p[_]);T[w]||(T[w]=new Uint8Array(m.count)),T[w][_]=1}for(let _=0;_<T.length;_++){if(!T[_])continue;let x={data:T[_],type:"uint8",usage:"static"};b[_]?b[_](x):b[_]=i.buffer(x),b[_].data=T[_]}}return p},range:(p,m,y)=>{let b=m.bounds;if(b)return p||(p=b),m.scale=[1/(p[2]-p[0]),1/(p[3]-p[1])],m.translate=[-p[0],-p[1]],m.scaleFract=qb.fract(m.scale),m.translateFract=qb.fract(m.translate),p},viewport:p=>E9e(p||[n.drawingBufferWidth,n.drawingBufferHeight])}]),v){let{count:p,size:m,borderSize:y,sizeBuffer:b}=c,T=new Uint8Array(p*2);if(m.length||y.length)for(let _=0;_<p;_++)T[_*2]=Math.round((m[_]==null?m:m[_])*255/o),T[_*2+1]=Math.round((y[_]==null?y:y[_])*255/o);b({data:T,usage:"dynamic"})}if(d){let{count:p,color:m,borderColor:y,colorBuffer:b}=c,T;if(this.tooManyColors){if(m.length||y.length){T=new Uint8Array(p*8);for(let _=0;_<p;_++){let x=m[_];T[_*8]=s[x*4],T[_*8+1]=s[x*4+1],T[_*8+2]=s[x*4+2],T[_*8+3]=s[x*4+3];let w=y[_];T[_*8+4]=s[w*4],T[_*8+5]=s[w*4+1],T[_*8+6]=s[w*4+2],T[_*8+7]=s[w*4+3]}}}else if(m.length||y.length){T=new Uint8Array(p*4+2);for(let _=0;_<p;_++)m[_]!=null&&(T[_*4]=m[_]%l,T[_*4+1]=Math.floor(m[_]/l)),y[_]!=null&&(T[_*4+2]=y[_]%l,T[_*4+3]=Math.floor(y[_]/l))}b({data:T||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return c})};Ni.prototype.addMarker=function(e){let{markerTextures:r,regl:t,markerCache:a}=this,n=e==null?0:a.indexOf(e);if(n>=0)return n;let i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(let l=0,s=e.length;l<s;l++)i[l]=e[l]*255}let o=Math.floor(Math.sqrt(i.length));return n=r.length,a.push(e),r.push(t.texture({channels:1,data:i,radius:o,mag:"linear",min:"linear"})),n};Ni.prototype.updateColor=function(e){let{paletteIds:r,palette:t,maxColors:a}=this;Array.isArray(e)||(e=[e]);let n=[];if(typeof e[0]=="number"){let i=[];if(Array.isArray(e))for(let o=0;o<e.length;o+=4)i.push(e.slice(o,o+4));else for(let o=0;o<e.length;o+=4)i.push(e.subarray(o,o+4));e=i}for(let i=0;i<e.length;i++){let o=e[i];o=A9e(o,"uint8");let l=M9e(o,!1);if(r[l]==null){let s=t.length;r[l]=Math.floor(s/4),t[s]=o[0],t[s+1]=o[1],t[s+2]=o[2],t[s+3]=o[3]}n[i]=r[l]}return!this.tooManyColors&&t.length>a*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Ni.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:r,paletteTexture:t}=this,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(let n=e.length*.25%r;n<a*r;n++)e.push(0,0,0,0)}t.height<a&&t.resize(r,a),t.subimage({width:Math.min(e.length*.25,r),height:a,data:e},0,0)};Ni.prototype.destroy=function(){return this.groups.forEach(e=>{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(r=>r&&r.destroy&&r.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var q9e=function(e,r){var t=new D9e(e,r),a=t.render.bind(t);return Object.assign(a,{render:a,update:t.update.bind(t),draw:t.draw.bind(t),destroy:t.destroy.bind(t),regl:t.regl,gl:t.gl,canvas:t.gl.canvas,groups:t.groups,markers:t.markerCache,palette:t.palette}),a};GZ.exports=q9e});var xi=I((Rze,VZ)=>{"use strict";var YZ=Object.getOwnPropertySymbols,R9e=Object.prototype.hasOwnProperty,F9e=Object.prototype.propertyIsEnumerable;function P9e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function N9e(){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}}VZ.exports=N9e()?Object.assign:function(e,r){for(var t,a=P9e(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)R9e.call(t,o)&&(a[o]=t[o]);if(YZ){n=YZ(t);for(var l=0;l<n.length;l++)F9e.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var jZ=I((Fze,YA)=>{"use strict";YA.exports=Pb;YA.exports.default=Pb;function Pb(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=WZ(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,u,f,c,v,d;if(a&&(i=H9e(e,r,i,t)),e.length>80*t){l=u=e[0],s=f=e[1];for(var p=t;p<n;p+=t)c=e[p],v=e[p+1],c<l&&(l=c),v<s&&(s=v),c>u&&(u=c),v>f&&(f=v);d=Math.max(u-l,f-s),d=d!==0?32767/d:0}return Cm(i,o,t,l,s,d,0),o}function WZ(e,r,t,a,n){var i,o;if(n===GA(e,r,t,a)>0)for(i=r;i<t;i+=a)o=XZ(i,e[i],e[i+1],o);else for(i=t-a;i>=r;i-=a)o=XZ(i,e[i],e[i+1],o);return o&&Nb(o,o.next)&&(Em(o),o=o.next),o}function R0(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(Nb(t,t.next)||Un(t.prev,t,t.next)===0)){if(Em(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Cm(e,r,t,a,n,i,o){if(e){!o&&i&&X9e(e,a,n,i);for(var l=e,s,u;e.prev!==e.next;){if(s=e.prev,u=e.next,i?I9e(e,a,n,i):z9e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(u.i/t|0),Em(e),e=u.next,l=u.next;continue}if(e=u,e===l){o?o===1?(e=B9e(R0(e),r,t),Cm(e,r,t,a,n,i,2)):o===2&&O9e(e,r,t,a,n,i):Cm(R0(e),r,t,a,n,i,1);break}}}}function z9e(e){var r=e.prev,t=e,a=e.next;if(Un(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,u=a.y,f=n<i?n<o?n:o:i<o?i:o,c=l<s?l<u?l:u:s<u?s:u,v=n>i?n>o?n:o:i>o?i:o,d=l>s?l>u?l:u:s>u?s:u,p=a.next;p!==r;){if(p.x>=f&&p.x<=v&&p.y>=c&&p.y<=d&&Qh(n,l,i,s,o,u,p.x,p.y)&&Un(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function I9e(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Un(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,u=o.x,f=n.y,c=i.y,v=o.y,d=l<s?l<u?l:u:s<u?s:u,p=f<c?f<v?f:v:c<v?c:v,m=l>s?l>u?l:u:s>u?s:u,y=f>c?f>v?f:v:c>v?c:v,b=HA(d,p,r,t,a),T=HA(m,y,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=T;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&Qh(l,f,s,c,u,v,_.x,_.y)&&Un(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=m&&x.y>=p&&x.y<=y&&x!==n&&x!==o&&Qh(l,f,s,c,u,v,x.x,x.y)&&Un(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&Qh(l,f,s,c,u,v,_.x,_.y)&&Un(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=T;){if(x.x>=d&&x.x<=m&&x.y>=p&&x.y<=y&&x!==n&&x!==o&&Qh(l,f,s,c,u,v,x.x,x.y)&&Un(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function B9e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!Nb(n,i)&&ZZ(n,a,a.next,i)&&Lm(n,i)&&Lm(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),Em(a),Em(a.next),a=e=i),a=a.next}while(a!==e);return R0(a)}function O9e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&J9e(o,l)){var s=JZ(o,l);o=R0(o,o.next),s=R0(s,s.next),Cm(o,r,t,a,n,i,0),Cm(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function H9e(e,r,t,a){var n=[],i,o,l,s,u;for(i=0,o=r.length;i<o;i++)l=r[i]*a,s=i<o-1?r[i+1]*a:e.length,u=WZ(e,l,s,a,!1),u===u.next&&(u.steiner=!0),n.push(Z9e(u));for(n.sort(U9e),i=0;i<n.length;i++)t=G9e(n[i],t);return t}function U9e(e,r){return e.x-r.x}function G9e(e,r){var t=Y9e(e,r);if(!t)return r;var a=JZ(t,e);return R0(a,a.next),R0(t,t.next)}function Y9e(e,r){var t=r,a=e.x,n=e.y,i=-1/0,o;do{if(n<=t.y&&n>=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x<t.next.x?t:t.next,l===a))return o}t=t.next}while(t!==r);if(!o)return null;var s=o,u=o.x,f=o.y,c=1/0,v;t=o;do a>=t.x&&t.x>=u&&a!==t.x&&Qh(n<f?a:i,n,u,f,n<f?i:a,n,t.x,t.y)&&(v=Math.abs(n-t.y)/(a-t.x),Lm(t,e)&&(v<c||v===c&&(t.x>o.x||t.x===o.x&&V9e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function V9e(e,r){return Un(e.prev,e,r.prev)<0&&Un(r.next,e,e.next)<0}function X9e(e,r,t,a){var n=e;do n.z===0&&(n.z=HA(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,W9e(n)}function W9e(e){var r,t,a,n,i,o,l,s,u=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r<u&&(l++,a=a.nextZ,!!a);r++);for(s=u;l>0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,u*=2}while(o>1);return e}function HA(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function Z9e(e){var r=e,t=e;do(r.x<t.x||r.x===t.x&&r.y<t.y)&&(t=r),r=r.next;while(r!==e);return t}function Qh(e,r,t,a,n,i,o,l){return(n-o)*(r-l)>=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function J9e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!j9e(e,r)&&(Lm(e,r)&&Lm(r,e)&&$9e(e,r)&&(Un(e.prev,e,r.prev)||Un(e,r.prev,r))||Nb(e,r)&&Un(e.prev,e,e.next)>0&&Un(r.prev,r,r.next)>0)}function Un(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function Nb(e,r){return e.x===r.x&&e.y===r.y}function ZZ(e,r,t,a){var n=Fb(Un(e,r,t)),i=Fb(Un(e,r,a)),o=Fb(Un(t,a,e)),l=Fb(Un(t,a,r));return!!(n!==i&&o!==l||n===0&&Rb(e,t,r)||i===0&&Rb(e,a,r)||o===0&&Rb(t,e,a)||l===0&&Rb(t,r,a))}function Rb(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function Fb(e){return e>0?1:e<0?-1:0}function j9e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&ZZ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Lm(e,r){return Un(e.prev,e,e.next)<0?Un(e,r,e.next)>=0&&Un(e,e.prev,r)>=0:Un(e,r,e.prev)<0||Un(e,e.next,r)<0}function $9e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function JZ(e,r){var t=new UA(e.i,e.x,e.y),a=new UA(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function XZ(e,r,t,a){var n=new UA(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function Em(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function UA(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Pb.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(GA(e,0,i,t));if(n)for(var l=0,s=r.length;l<s;l++){var u=r[l]*t,f=l<s-1?r[l+1]*t:e.length;o-=Math.abs(GA(e,u,f,t))}var c=0;for(l=0;l<a.length;l+=3){var v=a[l]*t,d=a[l+1]*t,p=a[l+2]*t;c+=Math.abs((e[v]-e[p])*(e[d+1]-e[v+1])-(e[v]-e[d])*(e[p+1]-e[v+1]))}return o===0&&c===0?0:Math.abs((c-o)/o)};function GA(e,r,t,a){for(var n=0,i=r,o=t-a;i<t;i+=a)n+=(e[o]-e[i])*(e[i+1]+e[o+1]),o=i;return n}Pb.flatten=function(e){for(var r=e[0][0].length,t={vertices:[],holes:[],dimensions:r},a=0,n=0;n<e.length;n++){for(var i=0;i<e[n].length;i++)for(var o=0;o<r;o++)t.vertices.push(e[n][i][o]);n>0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var KZ=I((Pze,$Z)=>{"use strict";var K9e=L0();$Z.exports=Q9e;function Q9e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=K9e(e,r));for(var a=0;a<r;a++){var n=t[r+a],i=t[a],o=a,l=e.length;if(n===1/0&&i===-1/0)for(o=a;o<l;o+=r)e[o]=e[o]===n?1:e[o]===i?0:.5;else if(n===1/0)for(o=a;o<l;o+=r)e[o]=e[o]===n?1:0;else if(i===-1/0)for(o=a;o<l;o+=r)e[o]=e[o]===i?0:1;else{var s=n-i;for(o=a;o<l;o+=r)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-i)/s)}}return e}});var eJ=I((Nze,QZ)=>{"use strict";QZ.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var tJ=I((zze,rJ)=>{"use strict";rJ.exports=function(){}});var Wf=I((Ize,aJ)=>{"use strict";var eAe=tJ()();aJ.exports=function(e){return e!==eAe&&e!==null}});var VA=I((Bze,iJ)=>{"use strict";var rAe=Object.create,tAe=Object.getPrototypeOf,nJ={};iJ.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||rAe;return typeof e!="function"?!1:tAe(e(r(null),nJ))===nJ}});var XA=I((Oze,oJ)=>{"use strict";var aAe=Wf(),nAe={function:!0,object:!0};oJ.exports=function(e){return aAe(e)&&nAe[typeof e]||!1}});var Su=I((Hze,lJ)=>{"use strict";var iAe=Wf();lJ.exports=function(e){if(!iAe(e))throw new TypeError("Cannot use null or undefined");return e}});var uJ=I((Uze,sJ)=>{"use strict";var WA=Object.create,zb;VA()()||(zb=ZA());sJ.exports=(function(){var e,r,t;return!zb||zb.level!==1?WA:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(zb,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return WA(a===null?e:a,n)})})()});var ZA=I((Gze,fJ)=>{"use strict";var oAe=XA(),lAe=Su(),sAe=Object.prototype.isPrototypeOf,uAe=Object.defineProperty,fAe={configurable:!0,enumerable:!1,writable:!0,value:void 0},Ib;Ib=function(e,r){if(lAe(e),r===null||oAe(r))return e;throw new TypeError("Prototype must be null or an object")};fJ.exports=(function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(Ib(a,n),n),a}):r=function(a,n){return Ib(a,n).__proto__=n,a}:r=function a(n,i){var o;return Ib(n,i),o=sAe.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&uAe(a.nullPolyfill,"__proto__",fAe),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)})());uJ()});var Bb=I((Yze,cJ)=>{"use strict";cJ.exports=VA()()?Object.setPrototypeOf:ZA()});var hJ=I((Vze,vJ)=>{"use strict";var cAe=XA();vJ.exports=function(e){if(!cAe(e))throw new TypeError(e+" is not an Object");return e}});var pJ=I((Xze,dJ)=>{"use strict";var vAe=Object.create(null),hAe=Math.random;dJ.exports=function(){var e;do e=hAe().toString(36).slice(2);while(vAe[e]);return e}});var F0=I((Wze,mJ)=>{"use strict";var dAe=void 0;mJ.exports=function(e){return e!==dAe&&e!==null}});var JA=I((Zze,yJ)=>{"use strict";var pAe=F0(),mAe={object:!0,function:!0,undefined:!0};yJ.exports=function(e){return pAe(e)?hasOwnProperty.call(mAe,typeof e):!1}});var bJ=I((Jze,gJ)=>{"use strict";var yAe=JA();gJ.exports=function(e){if(!yAe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var _J=I((jze,xJ)=>{"use strict";var gAe=bJ();xJ.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!gAe(e)}});var jA=I(($ze,wJ)=>{"use strict";var bAe=_J(),xAe=/^\s*class[\s{/}]/,_Ae=Function.prototype.toString;wJ.exports=function(e){return!(!bAe(e)||xAe.test(_Ae.call(e)))}});var TJ=I((Kze,AJ)=>{"use strict";AJ.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var kJ=I((Qze,MJ)=>{"use strict";MJ.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var CJ=I((eIe,SJ)=>{"use strict";var wAe=Wf(),AAe=Object.keys;SJ.exports=function(e){return AAe(wAe(e)?Object(e):e)}});var EJ=I((rIe,LJ)=>{"use strict";LJ.exports=kJ()()?Object.keys:CJ()});var qJ=I((tIe,DJ)=>{"use strict";var TAe=EJ(),MAe=Su(),kAe=Math.max;DJ.exports=function(e,r){var t,a,n=kAe(arguments.length,2),i;for(e=Object(MAe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a<n;++a)r=arguments[a],TAe(r).forEach(i);if(t!==void 0)throw t;return e}});var Ob=I((aIe,RJ)=>{"use strict";RJ.exports=TJ()()?Object.assign:qJ()});var $A=I((nIe,FJ)=>{"use strict";var SAe=Wf(),CAe=Array.prototype.forEach,LAe=Object.create,EAe=function(e,r){var t;for(t in e)r[t]=e[t]};FJ.exports=function(e){var r=LAe(null);return CAe.call(arguments,function(t){SAe(t)&&EAe(Object(t),r)}),r}});var NJ=I((iIe,PJ)=>{"use strict";var KA="razdwatrzy";PJ.exports=function(){return typeof KA.contains!="function"?!1:KA.contains("dwa")===!0&&KA.contains("foo")===!1}});var IJ=I((oIe,zJ)=>{"use strict";var DAe=String.prototype.indexOf;zJ.exports=function(e){return DAe.call(this,e,arguments[1])>-1}});var QA=I((lIe,BJ)=>{"use strict";BJ.exports=NJ()()?String.prototype.contains:IJ()});var Cu=I((sIe,GJ)=>{"use strict";var Hb=F0(),OJ=jA(),HJ=Ob(),UJ=$A(),Dm=QA(),qAe=GJ.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],Hb(e)?(t=Dm.call(e,"c"),a=Dm.call(e,"e"),n=Dm.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?HJ(UJ(i),o):o};qAe.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],Hb(r)?OJ(r)?Hb(t)?OJ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,Hb(e)?(a=Dm.call(e,"c"),n=Dm.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?HJ(UJ(i),o):o}});var qm=I((uIe,VJ)=>{"use strict";var YJ=Object.prototype.toString,RAe=YJ.call((function(){return arguments})());VJ.exports=function(e){return YJ.call(e)===RAe}});var Rm=I((fIe,WJ)=>{"use strict";var XJ=Object.prototype.toString,FAe=XJ.call("");WJ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||XJ.call(e)===FAe)||!1}});var JJ=I((cIe,ZJ)=>{"use strict";ZJ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var KJ=I((vIe,$J)=>{var jJ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};$J.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return jJ()}try{return __global__||jJ()}finally{delete Object.prototype.__global__}})()});var Fm=I((hIe,QJ)=>{"use strict";QJ.exports=JJ()()?globalThis:KJ()});var rj=I((dIe,ej)=>{"use strict";var PAe=Fm(),eT={object:!0,symbol:!0};ej.exports=function(){var e=PAe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!eT[typeof e.iterator]||!eT[typeof e.toPrimitive]||!eT[typeof e.toStringTag])}});var aj=I((pIe,tj)=>{"use strict";tj.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var rT=I((mIe,nj)=>{"use strict";var NAe=aj();nj.exports=function(e){if(!NAe(e))throw new TypeError(e+" is not a symbol");return e}});var uj=I((yIe,sj)=>{"use strict";var ij=Cu(),zAe=Object.create,oj=Object.defineProperty,IAe=Object.prototype,lj=zAe(null);sj.exports=function(e){for(var r=0,t,a;lj[e+(r||"")];)++r;return e+=r||"",lj[e]=!0,t="@@"+e,oj(IAe,t,ij.gs(null,function(n){a||(a=!0,oj(this,t,ij(n)),a=!1)})),t}});var cj=I((gIe,fj)=>{"use strict";var ns=Cu(),jn=Fm().Symbol;fj.exports=function(e){return Object.defineProperties(e,{hasInstance:ns("",jn&&jn.hasInstance||e("hasInstance")),isConcatSpreadable:ns("",jn&&jn.isConcatSpreadable||e("isConcatSpreadable")),iterator:ns("",jn&&jn.iterator||e("iterator")),match:ns("",jn&&jn.match||e("match")),replace:ns("",jn&&jn.replace||e("replace")),search:ns("",jn&&jn.search||e("search")),species:ns("",jn&&jn.species||e("species")),split:ns("",jn&&jn.split||e("split")),toPrimitive:ns("",jn&&jn.toPrimitive||e("toPrimitive")),toStringTag:ns("",jn&&jn.toStringTag||e("toStringTag")),unscopables:ns("",jn&&jn.unscopables||e("unscopables"))})}});var dj=I((bIe,hj)=>{"use strict";var vj=Cu(),BAe=rT(),Pm=Object.create(null);hj.exports=function(e){return Object.defineProperties(e,{for:vj(function(r){return Pm[r]?Pm[r]:Pm[r]=e(String(r))}),keyFor:vj(function(r){var t;BAe(r);for(t in Pm)if(Pm[t]===r)return t})})}});var yj=I((xIe,mj)=>{"use strict";var Is=Cu(),tT=rT(),Ub=Fm().Symbol,OAe=uj(),HAe=cj(),UAe=dj(),GAe=Object.create,aT=Object.defineProperties,Gb=Object.defineProperty,oo,ed,pj;if(typeof Ub=="function")try{String(Ub()),pj=!0}catch(e){}else Ub=null;ed=function(r){if(this instanceof ed)throw new TypeError("Symbol is not a constructor");return oo(r)};mj.exports=oo=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return pj?Ub(r):(t=GAe(ed.prototype),r=r===void 0?"":String(r),aT(t,{__description__:Is("",r),__name__:Is("",OAe(r))}))};HAe(oo);UAe(oo);aT(ed.prototype,{constructor:Is(oo),toString:Is("",function(){return this.__name__})});aT(oo.prototype,{toString:Is(function(){return"Symbol ("+tT(this).__description__+")"}),valueOf:Is(function(){return tT(this)})});Gb(oo.prototype,oo.toPrimitive,Is("",function(){var e=tT(this);return typeof e=="symbol"?e:e.toString()}));Gb(oo.prototype,oo.toStringTag,Is("c","Symbol"));Gb(ed.prototype,oo.toStringTag,Is("c",oo.prototype[oo.toStringTag]));Gb(ed.prototype,oo.toPrimitive,Is("c",oo.prototype[oo.toPrimitive]))});var Zf=I((_Ie,gj)=>{"use strict";gj.exports=rj()()?Fm().Symbol:yj()});var xj=I((wIe,bj)=>{"use strict";var YAe=Su();bj.exports=function(){return YAe(this).length=0,this}});var rd=I((AIe,_j)=>{"use strict";_j.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var Aj=I((TIe,wj)=>{"use strict";var VAe=F0(),XAe=JA(),WAe=Object.prototype.toString;wj.exports=function(e){if(!VAe(e))return null;if(XAe(e)){var r=e.toString;if(typeof r!="function"||r===WAe)return null}try{return""+e}catch(t){return null}}});var Mj=I((MIe,Tj)=>{"use strict";Tj.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var Sj=I((kIe,kj)=>{"use strict";var ZAe=Mj(),JAe=/[\n\r\u2028\u2029]/g;kj.exports=function(e){var r=ZAe(e);return r===null?"<Non-coercible to string value>":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(JAe,function(t){switch(t){case`
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var Lj=I((SIe,Cj)=>{"use strict";var jAe=Aj(),$Ae=Sj();Cj.exports=function(e,r,t){t&&t.errorMessage&&(e=jAe(t.errorMessage));var a=e.indexOf("%v"),n=a>-1?$Ae(r):null;if(t&&t.name){var i=e.indexOf("%n");if(i>-1){if(a>-1){var o,l,s,u;return i>a?(o=n,s=a,l=t.name,u=i):(o=t.name,s=i,l=n,u=a),e.slice(0,s)+o+e.slice(s+2,u)+l+e.slice(u+2)}return e.slice(0,i)+t.name+e.slice(i+2)}}return a>-1?e.slice(0,a)+n+e.slice(a+2):e}});var nT=I((CIe,Ej)=>{"use strict";var KAe=F0(),QAe=Lj();Ej.exports=function(e,r,t){if(t&&!KAe(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=t&&t.Error||TypeError,n=new a(QAe(r,e,t));throw t&&t.errorCode&&(n.code=t.errorCode),n}});var qj=I((LIe,Dj)=>{"use strict";var eTe=nT(),rTe=F0();Dj.exports=function(e){if(rTe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a value for %n, received %v":"Cannot use %v";return eTe(e,t,r)}});var Fj=I((EIe,Rj)=>{"use strict";var tTe=nT(),aTe=jA();Rj.exports=function(e){if(aTe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return tTe(e,t,r)}});var Nj=I((DIe,Pj)=>{"use strict";Pj.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var Ij=I((qIe,zj)=>{"use strict";var nTe=Object.prototype.toString,iTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);zj.exports=function(e){return typeof e=="function"&&iTe(nTe.call(e))}});var Oj=I((RIe,Bj)=>{"use strict";Bj.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Uj=I((FIe,Hj)=>{"use strict";Hj.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Yj=I((PIe,Gj)=>{"use strict";Gj.exports=Oj()()?Math.sign:Uj()});var Xj=I((NIe,Vj)=>{"use strict";var oTe=Yj(),lTe=Math.abs,sTe=Math.floor;Vj.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:oTe(e)*sTe(lTe(e)))}});var Zj=I((zIe,Wj)=>{"use strict";var uTe=Xj(),fTe=Math.max;Wj.exports=function(e){return fTe(0,uTe(e))}});var Kj=I((IIe,$j)=>{"use strict";var cTe=Zf().iterator,vTe=qm(),hTe=Ij(),dTe=Zj(),Jj=rd(),pTe=Su(),mTe=Wf(),yTe=Rm(),jj=Array.isArray,iT=Function.prototype.call,P0={configurable:!0,enumerable:!0,writable:!0,value:null},oT=Object.defineProperty;$j.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,u,f,c,v;if(e=Object(pTe(e)),mTe(r)&&Jj(r),!this||this===Array||!hTe(this)){if(!r){if(vTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(jj(e)){for(o=new Array(l=e.length),n=0;n<l;++n)o[n]=e[n];return o}}o=[]}else a=this;if(!jj(e)){if((c=e[cTe])!==void 0){for(u=Jj(c).call(e),a&&(o=new a),f=u.next(),n=0;!f.done;)v=r?iT.call(r,t,f.value,n):f.value,a?(P0.value=v,oT(o,n,P0)):o[n]=v,f=u.next(),++n;l=n}else if(yTe(e)){for(l=e.length,a&&(o=new a),n=0,i=0;n<l;++n)v=e[n],n+1<l&&(s=v.charCodeAt(0),s>=55296&&s<=56319&&(v+=e[++n])),v=r?iT.call(r,t,v,i):v,a?(P0.value=v,oT(o,i,P0)):o[i]=v,++i;l=i}}if(l===void 0)for(l=dTe(e.length),a&&(o=new a(l)),n=0;n<l;++n)v=r?iT.call(r,t,e[n],n):e[n],a?(P0.value=v,oT(o,n,P0)):o[n]=v;return a&&(P0.value=null,o.length=l),o}});var e$=I((BIe,Qj)=>{"use strict";Qj.exports=Nj()()?Array.from:Kj()});var t$=I((OIe,r$)=>{"use strict";var gTe=e$(),bTe=Ob(),xTe=Su();r$.exports=function(e){var r=Object(xTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?gTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):bTe(n,e),n}});var i$=I((HIe,n$)=>{"use strict";var _Te=rd(),wTe=Su(),ATe=Function.prototype.bind,a$=Function.prototype.call,TTe=Object.keys,MTe=Object.prototype.propertyIsEnumerable;n$.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(wTe(t)),_Te(a),n=TTe(t),o&&n.sort(typeof o=="function"?ATe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),a$.call(e,n,function(l,s){return MTe.call(t,l)?a$.call(a,i,t[l],l,t,s):r})}}});var l$=I((UIe,o$)=>{"use strict";o$.exports=i$()("forEach")});var u$=I((GIe,s$)=>{"use strict";var kTe=rd(),STe=l$(),CTe=Function.prototype.call;s$.exports=function(e,r){var t={},a=arguments[2];return kTe(r),STe(e,function(n,i,o,l){t[i]=CTe.call(r,a,n,i,o,l)}),t}});var h$=I((YIe,v$)=>{"use strict";var LTe=F0(),ETe=qj(),f$=Fj(),DTe=t$(),qTe=$A(),RTe=u$(),FTe=Function.prototype.bind,PTe=Object.defineProperty,NTe=Object.prototype.hasOwnProperty,c$;c$=function(e,r,t){var a=ETe(r)&&f$(r.value),n;return n=DTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&NTe.call(this,e)?a:(r.value=FTe.call(a,t.resolveContext?t.resolveContext(this):this),PTe(this,e,r),this[e])},n};v$.exports=function(e){var r=qTe(arguments[1]);return LTe(r.resolveContext)&&f$(r.resolveContext),RTe(e,function(t,a){return c$(a,t,r)})}});var lT=I((VIe,y$)=>{"use strict";var zTe=xj(),ITe=Ob(),BTe=rd(),OTe=Su(),Po=Cu(),HTe=h$(),d$=Zf(),p$=Object.defineProperty,m$=Object.defineProperties,Nm;y$.exports=Nm=function(e,r){if(!(this instanceof Nm))throw new TypeError("Constructor requires 'new'");m$(this,{__list__:Po("w",OTe(e)),__context__:Po("w",r),__nextIndex__:Po("w",0)}),r&&(BTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete Nm.prototype.constructor;m$(Nm.prototype,ITe({_next:Po(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:Po(function(){return this._createResult(this._next())}),_createResult:Po(function(e){return e===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}}),_resolve:Po(function(e){return this.__list__[e]}),_unBind:Po(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:Po(function(){return"[object "+(this[d$.toStringTag]||"Object")+"]"})},HTe({_onAdd:Po(function(e){if(!(e>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){p$(this,"__redo__",Po("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:Po(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:Po(function(){this.__redo__&&zTe.call(this.__redo__),this.__nextIndex__=0})})));p$(Nm.prototype,d$.iterator,Po(function(){return this}))});var w$=I((XIe,_$)=>{"use strict";var g$=Bb(),b$=QA(),sT=Cu(),UTe=Zf(),uT=lT(),x$=Object.defineProperty,td;td=_$.exports=function(e,r){if(!(this instanceof td))throw new TypeError("Constructor requires 'new'");uT.call(this,e),r?b$.call(r,"key+value")?r="key+value":b$.call(r,"key")?r="key":r="value":r="value",x$(this,"__kind__",sT("",r))};g$&&g$(td,uT);delete td.prototype.constructor;td.prototype=Object.create(uT.prototype,{_resolve:sT(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});x$(td.prototype,UTe.toStringTag,sT("c","Array Iterator"))});var k$=I((WIe,M$)=>{"use strict";var A$=Bb(),Yb=Cu(),GTe=Zf(),fT=lT(),T$=Object.defineProperty,ad;ad=M$.exports=function(e){if(!(this instanceof ad))throw new TypeError("Constructor requires 'new'");e=String(e),fT.call(this,e),T$(this,"__length__",Yb("",e.length))};A$&&A$(ad,fT);delete ad.prototype.constructor;ad.prototype=Object.create(fT.prototype,{_next:Yb(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:Yb(function(e){var r=this.__list__[e],t;return this.__nextIndex__===this.__length__?r:(t=r.charCodeAt(0),t>=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});T$(ad.prototype,GTe.toStringTag,Yb("c","String Iterator"))});var C$=I((ZIe,S$)=>{"use strict";var YTe=qm(),VTe=Wf(),XTe=Rm(),WTe=Zf().iterator,ZTe=Array.isArray;S$.exports=function(e){return VTe(e)?ZTe(e)||XTe(e)||YTe(e)?!0:typeof e[WTe]=="function":!1}});var E$=I((JIe,L$)=>{"use strict";var JTe=C$();L$.exports=function(e){if(!JTe(e))throw new TypeError(e+" is not iterable");return e}});var cT=I((jIe,R$)=>{"use strict";var jTe=qm(),$Te=Rm(),D$=w$(),KTe=k$(),QTe=E$(),q$=Zf().iterator;R$.exports=function(e){return typeof QTe(e)[q$]=="function"?e[q$]():jTe(e)?new D$(e):$Te(e)?new KTe(e):new D$(e)}});var P$=I(($Ie,F$)=>{"use strict";var eMe=qm(),rMe=rd(),tMe=Rm(),aMe=cT(),nMe=Array.isArray,vT=Function.prototype.call,iMe=Array.prototype.some;F$.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,u,f;if(nMe(e)||eMe(e)?t="array":tMe(e)?t="string":e=aMe(e),rMe(r),i=function(){o=!0},t==="array"){iMe.call(e,function(c){return vT.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l<s&&(u=e[l],l+1<s&&(f=u.charCodeAt(0),f>=55296&&f<=56319&&(u+=e[++l])),vT.call(r,a,u,i),!o);++l);return}for(n=e.next();!n.done;){if(vT.call(r,a,n.value,i),o)return;n=e.next()}}});var z$=I((KIe,N$)=>{"use strict";N$.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var O$=I((QIe,B$)=>{"use strict";var oMe=Wf(),Xb=Bb(),Vb=hJ(),lMe=Su(),sMe=pJ(),Lu=Cu(),uMe=cT(),fMe=P$(),cMe=Zf().toStringTag,I$=z$(),vMe=Array.isArray,dT=Object.defineProperty,hT=Object.prototype.hasOwnProperty,hMe=Object.getPrototypeOf,Jf;B$.exports=Jf=function(){var e=arguments[0],r;if(!(this instanceof Jf))throw new TypeError("Constructor requires 'new'");return r=I$&&Xb&&WeakMap!==Jf?Xb(new WeakMap,hMe(this)):this,oMe(e)&&(vMe(e)||(e=uMe(e))),dT(r,"__weakMapData__",Lu("c","$weakMap$"+sMe())),e&&fMe(e,function(t){lMe(t),r.set(t[0],t[1])}),r};I$&&(Xb&&Xb(Jf,WeakMap),Jf.prototype=Object.create(WeakMap.prototype,{constructor:Lu(Jf)}));Object.defineProperties(Jf.prototype,{delete:Lu(function(e){return hT.call(Vb(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Lu(function(e){if(hT.call(Vb(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Lu(function(e){return hT.call(Vb(e),this.__weakMapData__)}),set:Lu(function(e,r){return dT(Vb(e),this.__weakMapData__,Lu("c",r)),this}),toString:Lu(function(){return"[object WeakMap]"})});dT(Jf.prototype,cMe,Lu("c","WeakMap"))});var pT=I((eBe,H$)=>{"use strict";H$.exports=eJ()()?WeakMap:O$()});var G$=I((rBe,U$)=>{"use strict";U$.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i<n;i++)if(r.call(t,a[i],i,a))return i;return-1}});var gT=I((tBe,X$)=>{"use strict";var Wb=km(),dMe=L0(),yT=xi(),pMe=zs(),mMe=E0(),Y$=jZ(),yMe=KZ(),{float32:gMe,fract32:mT}=Eb(),bMe=pT(),V$=Vh(),xMe=G$(),_Me=`
precision highp float;

attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;
attribute vec4 color;
attribute float lineEnd, lineTop;

uniform vec2 scale, scaleFract, translate, translateFract;
uniform float thickness, pixelRatio, id, depth;
uniform vec4 viewport;

varying vec4 fragColor;
varying vec2 tangent;

vec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {
	// the order is important
	return position * scale + translate
       + positionFract * scale + translateFract
       + position * scaleFract
       + positionFract * scaleFract;
}

void main() {
	float lineStart = 1. - lineEnd;
	float lineOffset = lineTop * 2. - 1.;

	vec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);
	tangent = normalize(diff * scale * viewport.zw);
	vec2 normal = vec2(-tangent.y, tangent.x);

	vec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart
		+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd

		+ thickness * normal * .5 * lineOffset / viewport.zw;

	gl_Position = vec4(position * 2.0 - 1.0, depth, 1);

	fragColor = color / 255.;
}
`,wMe=`
precision highp float;

uniform float dashLength, pixelRatio, thickness, opacity, id;
uniform sampler2D dashTexture;

varying vec4 fragColor;
varying vec2 tangent;

void main() {
	float alpha = 1.;

	float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;
	float dash = texture2D(dashTexture, vec2(t, .5)).r;

	gl_FragColor = fragColor;
	gl_FragColor.a *= alpha * opacity * dash;
}
`,AMe=`
precision highp float;

attribute vec2 position, positionFract;

uniform vec4 color;
uniform vec2 scale, scaleFract, translate, translateFract;
uniform float pixelRatio, id;
uniform vec4 viewport;
uniform float opacity;

varying vec4 fragColor;

const float MAX_LINES = 256.;

void main() {
	float depth = (MAX_LINES - 4. - id) / (MAX_LINES);

	vec2 position = position * scale + translate
       + positionFract * scale + translateFract
       + position * scaleFract
       + positionFract * scaleFract;

	gl_Position = vec4(position * 2.0 - 1.0, depth, 1);

	fragColor = color / 255.;
	fragColor.a *= opacity;
}
`,TMe=`
precision highp float;
varying vec4 fragColor;

void main() {
	gl_FragColor = fragColor;
}
`,MMe=`
precision highp float;

attribute vec2 aCoord, bCoord, nextCoord, prevCoord;
attribute vec4 aColor, bColor;
attribute float lineEnd, lineTop;

uniform vec2 scale, translate;
uniform float thickness, pixelRatio, id, depth;
uniform vec4 viewport;
uniform float miterLimit, miterMode;

varying vec4 fragColor;
varying vec4 startCutoff, endCutoff;
varying vec2 tangent;
varying vec2 startCoord, endCoord;
varying float enableStartMiter, enableEndMiter;

const float REVERSE_THRESHOLD = -.875;
const float MIN_DIFF = 1e-6;

// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead
// TODO: precalculate dot products, normalize things beforehead etc.
// TODO: refactor to rectangular algorithm

float distToLine(vec2 p, vec2 a, vec2 b) {
	vec2 diff = b - a;
	vec2 perp = normalize(vec2(-diff.y, diff.x));
	return dot(p - a, perp);
}

bool isNaN( float val ){
  return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;
}

void main() {
	vec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;

  vec2 adjustedScale;
  adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;
  adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;

  vec2 scaleRatio = adjustedScale * viewport.zw;
	vec2 normalWidth = thickness / scaleRatio;

	float lineStart = 1. - lineEnd;
	float lineBot = 1. - lineTop;

	fragColor = (lineStart * aColor + lineEnd * bColor) / 255.;

	if (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;

	if (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);
	if (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);


	vec2 prevDiff = aCoord - prevCoord;
	vec2 currDiff = bCoord - aCoord;
	vec2 nextDiff = nextCoord - bCoord;

	vec2 prevTangent = normalize(prevDiff * scaleRatio);
	vec2 currTangent = normalize(currDiff * scaleRatio);
	vec2 nextTangent = normalize(nextDiff * scaleRatio);

	vec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);
	vec2 currNormal = vec2(-currTangent.y, currTangent.x);
	vec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);

	vec2 startJoinDirection = normalize(prevTangent - currTangent);
	vec2 endJoinDirection = normalize(currTangent - nextTangent);

	// collapsed/unidirectional segment cases
	// FIXME: there should be more elegant solution
	vec2 prevTanDiff = abs(prevTangent - currTangent);
	vec2 nextTanDiff = abs(nextTangent - currTangent);
	if (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {
		startJoinDirection = currNormal;
	}
	if (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {
		endJoinDirection = currNormal;
	}
	if (aCoord == bCoord) {
		endJoinDirection = startJoinDirection;
		currNormal = prevNormal;
		currTangent = prevTangent;
	}

	tangent = currTangent;

	//calculate join shifts relative to normals
	float startJoinShift = dot(currNormal, startJoinDirection);
	float endJoinShift = dot(currNormal, endJoinDirection);

	float startMiterRatio = abs(1. / startJoinShift);
	float endMiterRatio = abs(1. / endJoinShift);

	vec2 startJoin = startJoinDirection * startMiterRatio;
	vec2 endJoin = endJoinDirection * endMiterRatio;

	vec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;
	startTopJoin = sign(startJoinShift) * startJoin * .5;
	startBotJoin = -startTopJoin;

	endTopJoin = sign(endJoinShift) * endJoin * .5;
	endBotJoin = -endTopJoin;

	vec2 aTopCoord = aCoord + normalWidth * startTopJoin;
	vec2 bTopCoord = bCoord + normalWidth * endTopJoin;
	vec2 aBotCoord = aCoord + normalWidth * startBotJoin;
	vec2 bBotCoord = bCoord + normalWidth * endBotJoin;

	//miter anti-clipping
	float baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));
	float abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));

	//prevent close to reverse direction switch
	bool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) <  length(normalWidth * currNormal);
	bool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) <  length(normalWidth * currNormal);

	if (prevReverse) {
		//make join rectangular
		vec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;
		float normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);
		aBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;
		aTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;
	}
	else if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {
		//handle miter clipping
		bTopCoord -= normalWidth * endTopJoin;
		bTopCoord += normalize(endTopJoin * normalWidth) * baClipping;
	}

	if (nextReverse) {
		//make join rectangular
		vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;
		float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);
		bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;
		bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;
	}
	else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {
		//handle miter clipping
		aBotCoord -= normalWidth * startBotJoin;
		aBotCoord += normalize(startBotJoin * normalWidth) * abClipping;
	}

	vec2 aTopPosition = (aTopCoord) * adjustedScale + translate;
	vec2 aBotPosition = (aBotCoord) * adjustedScale + translate;

	vec2 bTopPosition = (bTopCoord) * adjustedScale + translate;
	vec2 bBotPosition = (bBotCoord) * adjustedScale + translate;

	//position is normalized 0..1 coord on the screen
	vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;

	startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;
	endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;

	gl_Position = vec4(position  * 2.0 - 1.0, depth, 1);

	enableStartMiter = step(dot(currTangent, prevTangent), .5);
	enableEndMiter = step(dot(currTangent, nextTangent), .5);

	//bevel miter cutoffs
	if (miterMode == 1.) {
		if (enableStartMiter == 1.) {
			vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;
			startCutoff = vec4(aCoord, aCoord);
			startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;
			startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;
			startCutoff += viewport.xyxy;
			startCutoff += startMiterWidth.xyxy;
		}

		if (enableEndMiter == 1.) {
			vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;
			endCutoff = vec4(bCoord, bCoord);
			endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;
			endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;
			endCutoff += viewport.xyxy;
			endCutoff += endMiterWidth.xyxy;
		}
	}

	//round miter cutoffs
	else if (miterMode == 2.) {
		if (enableStartMiter == 1.) {
			vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;
			startCutoff = vec4(aCoord, aCoord);
			startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;
			startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;
			startCutoff += viewport.xyxy;
			startCutoff += startMiterWidth.xyxy;
		}

		if (enableEndMiter == 1.) {
			vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;
			endCutoff = vec4(bCoord, bCoord);
			endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;
			endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;
			endCutoff += viewport.xyxy;
			endCutoff += endMiterWidth.xyxy;
		}
	}
}
`,kMe=`
precision highp float;

uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;
uniform sampler2D dashTexture;

varying vec4 fragColor;
varying vec2 tangent;
varying vec4 startCutoff, endCutoff;
varying vec2 startCoord, endCoord;
varying float enableStartMiter, enableEndMiter;

float distToLine(vec2 p, vec2 a, vec2 b) {
	vec2 diff = b - a;
	vec2 perp = normalize(vec2(-diff.y, diff.x));
	return dot(p - a, perp);
}

void main() {
	float alpha = 1., distToStart, distToEnd;
	float cutoff = thickness * .5;

	//bevel miter
	if (miterMode == 1.) {
		if (enableStartMiter == 1.) {
			distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);
			if (distToStart < -1.) {
				discard;
				return;
			}
			alpha *= min(max(distToStart + 1., 0.), 1.);
		}

		if (enableEndMiter == 1.) {
			distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);
			if (distToEnd < -1.) {
				discard;
				return;
			}
			alpha *= min(max(distToEnd + 1., 0.), 1.);
		}
	}

	// round miter
	else if (miterMode == 2.) {
		if (enableStartMiter == 1.) {
			distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);
			if (distToStart < 0.) {
				float radius = length(gl_FragCoord.xy - startCoord);

				if(radius > cutoff + .5) {
					discard;
					return;
				}

				alpha -= smoothstep(cutoff - .5, cutoff + .5, radius);
			}
		}

		if (enableEndMiter == 1.) {
			distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);
			if (distToEnd < 0.) {
				float radius = length(gl_FragCoord.xy - endCoord);

				if(radius > cutoff + .5) {
					discard;
					return;
				}

				alpha -= smoothstep(cutoff - .5, cutoff + .5, radius);
			}
		}
	}

	float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;
	float dash = texture2D(dashTexture, vec2(t, .5)).r;

	gl_FragColor = fragColor;
	gl_FragColor.a *= alpha * opacity * dash;
}
`;X$.exports=Ya;function Ya(e,r){if(!(this instanceof Ya))return new Ya(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Ya.shaders.has(e)?Ya.shaders.get(e):Ya.shaders.set(e,Ya.createShaders(e)).get(e),this.update(r)}Ya.dashMult=2;Ya.maxPatternLength=256;Ya.precisionThreshold=3e6;Ya.maxPoints=1e4;Ya.maxLines=2048;Ya.shaders=new bMe;Ya.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(yT({vert:_Me,frag:wMe,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(yT({cull:{enable:!0,face:"back"},vert:MMe,frag:kMe,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:AMe,frag:TMe,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};Ya.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Ya.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Ya.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>Ya.precisionThreshold||r.scale[1]*r.viewport.height>Ya.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=Ya.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};Ya.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=pMe(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=yT({},Ya.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,i<Ya.maxLines&&(o.depth=2*(Ya.maxLines-1-i%Ya.maxLines)/Ya.maxLines-1)),n.join!=null&&(o.join=n.join),n.hole!=null&&(o.hole=n.hole),n.fill!=null&&(o.fill=n.fill?Wb(n.fill,"uint8"):null),n.viewport!=null&&(o.viewport=V$(n.viewport)),o.viewport||(o.viewport=V$([t.drawingBufferWidth,t.drawingBufferHeight])),n.close!=null&&(o.close=n.close),n.positions===null&&(n.positions=[]),n.positions){let u,f;if(n.positions.x&&n.positions.y){let y=n.positions.x,b=n.positions.y;f=o.count=Math.max(y.length,b.length),u=new Float64Array(f*2);for(let T=0;T<f;T++)u[T*2]=y[T],u[T*2+1]=b[T]}else u=mMe(n.positions,"float64"),f=o.count=Math.floor(u.length/2);let v=o.bounds=dMe(u,2),d=n.range||o.range;if(d&&(v=d.slice(),v[2]>v[0]||(v[2]=v[0]+1e-155),v[3]>v[1]||(v[3]=v[1]+1e-155)),o.normBounds=v,o.fill){let y=[],b={},T=0;for(let _=0,x=0,w=o.count;_<w;_++){let k=u[_*2],M=u[_*2+1];isNaN(k)||isNaN(M)||k==null||M==null?(k=u[T*2],M=u[T*2+1],b[_]=T):T=_,y[x++]=k,y[x++]=M}if(n.splitNull){o.count-1 in b||(b[o.count]=o.count-1);let _=Object.keys(b).map(Number).sort((M,C)=>M-C),x=[],w=0,k=o.hole!=null?o.hole[0]:null;if(k!=null){let M=xMe(_,C=>C>=k);_=_.slice(0,M),_.push(k)}for(let M=0;M<_.length;M++){let C=y.slice(w*2,_[M]*2).concat(k?y.slice(k*2):[]),D=(o.hole||[]).map(P=>P-k+(_[M]-w)),R=Y$(C,D);R=R.map(P=>P+w+(P+w<_[M]?0:k-_[M])),x.push(...R),w=_[M]+1}for(let M=0,C=x.length;M<C;M++)b[x[M]]!=null&&(x[M]=b[x[M]]);o.triangles=x}else{let _=Y$(y,o.hole||[]);for(let x=0,w=_.length;x<w;x++)b[_[x]]!=null&&(_[x]=b[_[x]]);o.triangles=_}}let p=new Float64Array(u);yMe(p,2,v);let m=new Float64Array(f*2+6);o.close?u[0]===u[f*2-2]&&u[1]===u[f*2-1]?(m[0]=p[f*2-4],m[1]=p[f*2-3]):(m[0]=p[f*2-2],m[1]=p[f*2-1]):(m[0]=p[0],m[1]=p[1]),m.set(p,2),o.close?u[0]===u[f*2-2]&&u[1]===u[f*2-1]?(m[f*2+2]=p[2],m[f*2+3]=p[3],o.count-=1):(m[f*2+2]=p[0],m[f*2+3]=p[1],m[f*2+4]=p[2],m[f*2+5]=p[3]):(m[f*2+2]=p[f*2-2],m[f*2+3]=p[f*2-1],m[f*2+4]=p[f*2-2],m[f*2+5]=p[f*2-1]);var l=gMe(m);o.positionBuffer(l);var s=mT(m,l);o.positionFractBuffer(s)}if(n.range?(o.range=n.range,o.rangeBasis=!0):o.range||(o.range=o.bounds),(n.range||n.positions)&&o.count){let u=o.bounds,f=u[2]-u[0],c=u[3]-u[1],v=o.range[2]-o.range[0],d=o.range[3]-o.range[1];if(o.rangeBasis&&o.normBounds){let p=o.normBounds[2]-o.normBounds[0],m=o.normBounds[3]-o.normBounds[1];o.scale=[p/v,m/d],o.translate=[-o.range[0]/v+o.normBounds[0]/v||0,-o.range[1]/d+o.normBounds[1]/d||0]}else o.scale=[f/v,c/d],o.translate=[-o.range[0]/v+u[0]/v||0,-o.range[1]/d+u[1]/d||0];o.scaleFract=mT(o.scale),o.translateFract=mT(o.translate)}if(n.dashes){let u=0,f;if(!n.dashes||n.dashes.length<2)u=1,f=new Uint8Array([255,255,255,255,255,255,255,255]);else{u=0;for(let d=0;d<n.dashes.length;++d)u+=n.dashes[d];f=new Uint8Array(u*Ya.dashMult);let c=0,v=255;for(let d=0;d<2;d++)for(let p=0;p<n.dashes.length;++p){for(let m=0,y=n.dashes[p]*Ya.dashMult*.5;m<y;++m)f[c++]=v;v^=255}}o.dashLength=u,o.dashTexture({channels:1,data:f,width:f.length,height:1,mag:"linear",min:"linear"},0,0)}if(n.color){let u=o.count,f=n.color;f||(f="transparent");let c=new Uint8Array(u*4+4);if(!Array.isArray(f)||typeof f[0]=="number"){let v=Wb(f,"uint8");for(let d=0;d<u+1;d++)c.set(v,d*4)}else{for(let v=0;v<u;v++){let d=Wb(f[v],"uint8");c.set(d,v*4)}c.set(Wb(f[0],"uint8"),u*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:c})}}}),e.length<this.passes.length){for(let n=e.length;n<this.passes.length;n++){let i=this.passes[n];i&&(i.colorBuffer.destroy(),i.positionBuffer.destroy(),i.dashTexture.destroy())}this.passes.length=e.length}let a=[];for(let n=0;n<this.passes.length;n++)this.passes[n]!==null&&a.push(this.passes[n]);return this.passes=a,this};Ya.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var $$=I((aBe,j$)=>{"use strict";var SMe=L0(),CMe=km(),LMe=BA(),EMe=zs(),W$=xi(),Z$=E0(),{float32:DMe,fract32:bT}=Eb();j$.exports=qMe;var J$=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function qMe(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:J$}),p(r),a=e({vert:`
		precision highp float;

		attribute vec2 position, positionFract;
		attribute vec4 error;
		attribute vec4 color;

		attribute vec2 direction, lineOffset, capOffset;

		uniform vec4 viewport;
		uniform float lineWidth, capSize;
		uniform vec2 scale, scaleFract, translate, translateFract;

		varying vec4 fragColor;

		void main() {
			fragColor = color / 255.;

			vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;

			vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;

			vec2 position = position + dxy;

			vec2 pos = (position + translate) * scale
				+ (positionFract + translateFract) * scale
				+ (position + translate) * scaleFract
				+ (positionFract + translateFract) * scaleFract;

			pos += pixelOffset / viewport.zw;

			gl_Position = vec4(pos * 2. - 1., 0, 1);
		}
		`,frag:`
		precision highp float;

		varying vec4 fragColor;

		uniform float opacity;

		void main() {
			gl_FragColor = fragColor;
			gl_FragColor.a *= opacity;
		}
		`,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(y,b)=>[b.viewport.x,b.viewport.y,y.viewportWidth,y.viewportHeight]},attributes:{color:{buffer:o,offset:(y,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(y,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(y,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(y,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:J$.length}),W$(c,{update:p,draw:v,destroy:m,regl:e,gl:t,canvas:t.canvas,groups:f}),c;function c(y){y?p(y):y===null&&m(),v()}function v(y){if(typeof y=="number")return d(y);y&&!Array.isArray(y)&&(y=[y]),e._refresh(),f.forEach((b,T)=>{if(b){if(y&&(y[T]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(T)}})}function d(y){typeof y=="number"&&(y=f[y]),y!=null&&y&&y.count&&y.color&&y.opacity&&y.positions&&y.positions.length>1&&(y.scaleRatio=[y.scale[0]*y.viewport.width,y.scale[1]*y.viewport.height],a(y),y.after&&y.after(y))}function p(y){if(!y)return;y.length!=null?typeof y[0]=="number"&&(y=[{positions:y}]):Array.isArray(y)||(y=[y]);let b=0,T=0;if(c.groups=f=y.map((w,k)=>{let M=f[k];if(w)typeof w=="function"?w={after:w}:typeof w[0]=="number"&&(w={positions:w});else return M;return w=EMe(w,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),M||(f[k]=M={id:k,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},w=W$({},u,w)),LMe(M,w,[{lineWidth:C=>+C*.5,capSize:C=>+C*.5,opacity:parseFloat,errors:C=>(C=Z$(C),T+=C.length,C),positions:(C,D)=>(C=Z$(C,"float64"),D.count=Math.floor(C.length/2),D.bounds=SMe(C,2),D.offset=b,b+=D.count,C)},{color:(C,D)=>{let R=D.count;if(C||(C="transparent"),!Array.isArray(C)||typeof C[0]=="number"){let q=C;C=Array(R);for(let z=0;z<R;z++)C[z]=q}if(C.length<R)throw Error("Not enough colors");let P=new Uint8Array(R*4);for(let q=0;q<R;q++){let z=CMe(C[q],"uint8");P.set(z,q*4)}return P},range:(C,D,R)=>{let P=D.bounds;return C||(C=P),D.scale=[1/(C[2]-C[0]),1/(C[3]-C[1])],D.translate=[-C[0],-C[1]],D.scaleFract=bT(D.scale),D.translateFract=bT(D.translate),C},viewport:C=>{let D;return Array.isArray(C)?D={x:C[0],y:C[1],width:C[2]-C[0],height:C[3]-C[1]}:C?(D={x:C.x||C.left||0,y:C.y||C.top||0},C.right?D.width=C.right-D.x:D.width=C.w||C.width||0,C.bottom?D.height=C.bottom-D.y:D.height=C.h||C.height||0):D={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},D}}]),M}),b||T){let w=f.reduce((D,R,P)=>D+(R?R.count:0),0),k=new Float64Array(w*2),M=new Uint8Array(w*4),C=new Float32Array(w*4);f.forEach((D,R)=>{if(!D)return;let{positions:P,count:q,offset:z,color:B,errors:U}=D;q&&(M.set(B,z*4),C.set(U,z*4),k.set(P,z*2))});var _=DMe(k);n(_);var x=bT(k,_);i(x),o(M),l(C)}}function m(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var eK=I((nBe,Q$)=>{var K$=/[\'\"]/;Q$.exports=function(r){return r?(K$.test(r.charAt(0))&&(r=r.substr(1)),K$.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var xT=I((iBe,RMe)=>{RMe.exports=["inherit","initial","unset"]});var _T=I((oBe,FMe)=>{FMe.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var wT=I((lBe,PMe)=>{PMe.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var AT=I((sBe,NMe)=>{NMe.exports=["normal","italic","oblique"]});var TT=I((uBe,zMe)=>{zMe.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var nK=I((fBe,aK)=>{"use strict";function rK(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var u=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),f=[];function c(v,d,p){var m=t.push(v.slice(s[0].length,-s[1].length))-1;return f.push(m),n+m+n}t.forEach(function(v,d){for(var p,m=0;v!=p;)if(p=v,v=v.replace(u,c),m++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),f=f.reverse(),t=t.map(function(v){return f.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,u,f){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(u[v[1]],u)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function tK(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(u,f){return Array.isArray(f)&&(f=f.reduce(s,"")),u+f},"");function l(s,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function MT(e,r){return Array.isArray(e)?tK(e,r):rK(e,r)}MT.parse=rK;MT.stringify=tK;aK.exports=MT});var lK=I((cBe,oK)=>{"use strict";var iK=nK();oK.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=iK.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s<o.length;s++){var u=o[s],f=o[s+1];u[u.length-1]==="\\"&&u[u.length-2]!=="\\"?(l.push(u+t+f),s++):l.push(u)}o=l}for(var s=0;s<o.length;s++)n[0]=o[s],o[s]=iK.stringify(n,{flat:!0});return o}});var sK=I((vBe,IMe)=>{IMe.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var kT=I((hBe,uK)=>{"use strict";var BMe=sK();uK.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||BMe.indexOf(r)!==-1}}});var hK=I((dBe,vK)=>{"use strict";var OMe=eK(),HMe=xT(),UMe=_T(),GMe=wT(),YMe=AT(),VMe=TT(),ST=lK(),XMe=kT().isSize;vK.exports=cK;var zm=cK.cache={};function cK(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(zm[e])return zm[e];if(e==="")throw new Error("Cannot parse an empty string.");if(UMe.indexOf(e)!==-1)return zm[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=ST(e,/\s+/),a;a=t.shift();){if(HMe.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),zm[e]=r;if(YMe.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(VMe.indexOf(a)!==-1){r.stretch=a;continue}if(GMe.indexOf(a)!==-1){r.weight=a;continue}if(XMe(a)){var n=ST(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=fK(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=fK(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=ST(t.join(" "),/\s*,\s*/).map(OMe),zm[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function fK(e){var r=parseFloat(e);return r.toString()===e?r:e}});var LT=I((pBe,dK)=>{"use strict";var WMe=zs(),ZMe=kT().isSize,JMe=Bm(xT()),jMe=Bm(_T()),$Me=Bm(wT()),KMe=Bm(AT()),QMe=Bm(TT()),eke={normal:1,"small-caps":1},rke={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},CT={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};dK.exports=function(r){if(r=WMe(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&Im(r.system,jMe),r.system;if(Im(r.style,KMe),Im(r.variant,eke),Im(r.weight,$Me),Im(r.stretch,QMe),r.size==null&&(r.size=CT.size),typeof r.size=="number"&&(r.size+="px"),!ZMe)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=CT.family),Array.isArray(r.family)&&(r.family.length||(r.family=[CT.family]),r.family=r.family.map(function(a){return rke[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function Im(e,r){if(e&&!r[e]&&!JMe[e])throw Error("Unknown keyword `"+e+"`");return e}function Bm(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=1;return r}});var mK=I((mBe,pK)=>{"use strict";pK.exports={parse:hK(),stringify:LT()}});var qT=I((ET,DT)=>{(function(e,r){typeof ET=="object"&&typeof DT!="undefined"?DT.exports=r():e.createREGL=r()})(ET,(function(){"use strict";var e=function(H,ae){for(var oe=Object.keys(ae),Be=0;Be<oe.length;++Be)H[oe[Be]]=ae[oe[Be]];return H},r=0,t=0,a=5,n=6;function i(H,ae){this.id=r++,this.type=H,this.data=ae}function o(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function l(H){if(H.length===0)return[];var ae=H.charAt(0),oe=H.charAt(H.length-1);if(H.length>1&&ae===oe&&(ae==='"'||ae==="'"))return['"'+o(H.substr(1,H.length-2))+'"'];var Be=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(H);if(Be)return l(H.substr(0,Be.index)).concat(l(Be[1])).concat(l(H.substr(Be.index+Be[0].length)));var Ze=H.split(".");if(Ze.length===1)return['"'+o(H)+'"'];for(var er=[],Xe=0;Xe<Ze.length;++Xe)er=er.concat(l(Ze[Xe]));return er}function s(H){return"["+l(H).join("][")+"]"}function u(H,ae){return new i(H,s(ae+""))}function f(H){return typeof H=="function"&&!H._reglType||H instanceof i}function c(H,ae){if(typeof H=="function")return new i(t,H);if(typeof H=="number"||typeof H=="boolean")return new i(a,H);if(Array.isArray(H))return new i(n,H.map(function(oe,Be){return c(oe,ae+"["+Be+"]")}));if(H instanceof i)return H}var v={DynamicVariable:i,define:u,isDynamic:f,unbox:c,accessor:s},d={next:typeof requestAnimationFrame=="function"?function(H){return requestAnimationFrame(H)}:function(H){return setTimeout(H,16)},cancel:typeof cancelAnimationFrame=="function"?function(H){return cancelAnimationFrame(H)}:clearTimeout},p=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function m(){var H={"":0},ae=[""];return{id:function(oe){var Be=H[oe];return Be||(Be=H[oe]=ae.length,ae.push(oe),Be)},str:function(oe){return ae[oe]}}}function y(H,ae,oe){var Be=document.createElement("canvas");e(Be.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),H.appendChild(Be),H===document.body&&(Be.style.position="absolute",e(H.style,{margin:0,padding:0}));function Ze(){var yr=window.innerWidth,Dr=window.innerHeight;if(H!==document.body){var qr=Be.getBoundingClientRect();yr=qr.right-qr.left,Dr=qr.bottom-qr.top}Be.width=oe*yr,Be.height=oe*Dr}var er;H!==document.body&&typeof ResizeObserver=="function"?(er=new ResizeObserver(function(){setTimeout(Ze)}),er.observe(H)):window.addEventListener("resize",Ze,!1);function Xe(){er?er.disconnect():window.removeEventListener("resize",Ze),H.removeChild(Be)}return Ze(),{canvas:Be,onDestroy:Xe}}function b(H,ae){function oe(Be){try{return H.getContext(Be,ae)}catch(Ze){return null}}return oe("webgl")||oe("experimental-webgl")||oe("webgl-experimental")}function T(H){return typeof H.nodeName=="string"&&typeof H.appendChild=="function"&&typeof H.getBoundingClientRect=="function"}function _(H){return typeof H.drawArrays=="function"||typeof H.drawElements=="function"}function x(H){return typeof H=="string"?H.split():H}function w(H){return typeof H=="string"?document.querySelector(H):H}function k(H){var ae=H||{},oe,Be,Ze,er,Xe={},yr=[],Dr=[],qr=typeof window=="undefined"?1:window.devicePixelRatio,Rr=!1,Ct={},mt=function(Pe){},$r=function(){};if(typeof ae=="string"?oe=document.querySelector(ae):typeof ae=="object"&&(T(ae)?oe=ae:_(ae)?(er=ae,Ze=er.canvas):("gl"in ae?er=ae.gl:"canvas"in ae?Ze=w(ae.canvas):"container"in ae&&(Be=w(ae.container)),"attributes"in ae&&(Xe=ae.attributes),"extensions"in ae&&(yr=x(ae.extensions)),"optionalExtensions"in ae&&(Dr=x(ae.optionalExtensions)),"onDone"in ae&&(mt=ae.onDone),"profile"in ae&&(Rr=!!ae.profile),"pixelRatio"in ae&&(qr=+ae.pixelRatio),"cachedCode"in ae&&(Ct=ae.cachedCode))),oe&&(oe.nodeName.toLowerCase()==="canvas"?Ze=oe:Be=oe),!er){if(!Ze){var fr=y(Be||document.body,mt,qr);if(!fr)return null;Ze=fr.canvas,$r=fr.onDestroy}Xe.premultipliedAlpha===void 0&&(Xe.premultipliedAlpha=!0),er=b(Ze,Xe)}return er?{gl:er,canvas:Ze,container:Be,extensions:yr,optionalExtensions:Dr,pixelRatio:qr,profile:Rr,cachedCode:Ct,onDone:mt,onDestroy:$r}:($r(),mt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function M(H,ae){var oe={};function Be(Xe){var yr=Xe.toLowerCase(),Dr;try{Dr=oe[yr]=H.getExtension(yr)}catch(qr){}return!!Dr}for(var Ze=0;Ze<ae.extensions.length;++Ze){var er=ae.extensions[Ze];if(!Be(er))return ae.onDestroy(),ae.onDone('"'+er+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return ae.optionalExtensions.forEach(Be),{extensions:oe,restore:function(){Object.keys(oe).forEach(function(Xe){if(oe[Xe]&&!Be(Xe))throw new Error("(regl): error restoring extension "+Xe)})}}}function C(H,ae){for(var oe=Array(H),Be=0;Be<H;++Be)oe[Be]=ae(Be);return oe}var D=5120,R=5121,P=5122,q=5123,z=5124,B=5125,U=5126;function G(H){for(var ae=16;ae<=1<<28;ae*=16)if(H<=ae)return ae;return 0}function X(H){var ae,oe;return ae=(H>65535)<<4,H>>>=ae,oe=(H>255)<<3,H>>>=oe,ae|=oe,oe=(H>15)<<2,H>>>=oe,ae|=oe,oe=(H>3)<<1,H>>>=oe,ae|=oe,ae|H>>1}function Y(){var H=C(8,function(){return[]});function ae(er){var Xe=G(er),yr=H[X(Xe)>>2];return yr.length>0?yr.pop():new ArrayBuffer(Xe)}function oe(er){H[X(er.byteLength)>>2].push(er)}function Be(er,Xe){var yr=null;switch(er){case D:yr=new Int8Array(ae(Xe),0,Xe);break;case R:yr=new Uint8Array(ae(Xe),0,Xe);break;case P:yr=new Int16Array(ae(2*Xe),0,Xe);break;case q:yr=new Uint16Array(ae(2*Xe),0,Xe);break;case z:yr=new Int32Array(ae(4*Xe),0,Xe);break;case B:yr=new Uint32Array(ae(4*Xe),0,Xe);break;case U:yr=new Float32Array(ae(4*Xe),0,Xe);break;default:return null}return yr.length!==Xe?yr.subarray(0,Xe):yr}function Ze(er){oe(er.buffer)}return{alloc:ae,free:oe,allocType:Be,freeType:Ze}}var V=Y();V.zero=Y();var J=3408,j=3410,ee=3411,pe=3412,ne=3413,ye=3414,te=3415,De=33901,ce=33902,Re=3379,Fe=3386,ge=34921,Oe=36347,cr=36348,qe=35661,ze=35660,Ue=34930,We=36349,Ge=34076,or=34024,Ye=7936,_r=7937,Pr=7938,Yr=35724,$e=34047,mr=36063,Gr=34852,fe=3553,Ce=34067,Tr=34069,tt=33984,at=6408,de=5126,Le=5121,lr=36160,Ar=36053,ur=36064,Cr=16384,Er=function(H,ae){var oe=1;ae.ext_texture_filter_anisotropic&&(oe=H.getParameter($e));var Be=1,Ze=1;ae.webgl_draw_buffers&&(Be=H.getParameter(Gr),Ze=H.getParameter(mr));var er=!!ae.oes_texture_float;if(er){var Xe=H.createTexture();H.bindTexture(fe,Xe),H.texImage2D(fe,0,at,1,1,0,at,de,null);var yr=H.createFramebuffer();if(H.bindFramebuffer(lr,yr),H.framebufferTexture2D(lr,ur,fe,Xe,0),H.bindTexture(fe,null),H.checkFramebufferStatus(lr)!==Ar)er=!1;else{H.viewport(0,0,1,1),H.clearColor(1,0,0,1),H.clear(Cr);var Dr=V.allocType(de,4);H.readPixels(0,0,1,1,at,de,Dr),H.getError()?er=!1:(H.deleteFramebuffer(yr),H.deleteTexture(Xe),er=Dr[0]===1),V.freeType(Dr)}}var qr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Rr=!0;if(!qr){var Ct=H.createTexture(),mt=V.allocType(Le,36);H.activeTexture(tt),H.bindTexture(Ce,Ct),H.texImage2D(Tr,0,at,3,3,0,at,Le,mt),V.freeType(mt),H.bindTexture(Ce,null),H.deleteTexture(Ct),Rr=!H.getError()}return{colorBits:[H.getParameter(j),H.getParameter(ee),H.getParameter(pe),H.getParameter(ne)],depthBits:H.getParameter(ye),stencilBits:H.getParameter(te),subpixelBits:H.getParameter(J),extensions:Object.keys(ae).filter(function($r){return!!ae[$r]}),maxAnisotropic:oe,maxDrawbuffers:Be,maxColorAttachments:Ze,pointSizeDims:H.getParameter(De),lineWidthDims:H.getParameter(ce),maxViewportDims:H.getParameter(Fe),maxCombinedTextureUnits:H.getParameter(qe),maxCubeMapSize:H.getParameter(Ge),maxRenderbufferSize:H.getParameter(or),maxTextureUnits:H.getParameter(Ue),maxTextureSize:H.getParameter(Re),maxAttributes:H.getParameter(ge),maxVertexUniforms:H.getParameter(Oe),maxVertexTextureUnits:H.getParameter(ze),maxVaryingVectors:H.getParameter(cr),maxFragmentUniforms:H.getParameter(We),glsl:H.getParameter(Yr),renderer:H.getParameter(_r),vendor:H.getParameter(Ye),version:H.getParameter(Pr),readFloat:er,npotTextureCube:Rr}},Vr=function(H){return H instanceof Uint8Array||H instanceof Uint16Array||H instanceof Uint32Array||H instanceof Int8Array||H instanceof Int16Array||H instanceof Int32Array||H instanceof Float32Array||H instanceof Float64Array||H instanceof Uint8ClampedArray};function ot(H){return!!H&&typeof H=="object"&&Array.isArray(H.shape)&&Array.isArray(H.stride)&&typeof H.offset=="number"&&H.shape.length===H.stride.length&&(Array.isArray(H.data)||Vr(H.data))}var Ve=function(H){return Object.keys(H).map(function(ae){return H[ae]})},Mr={shape:se,flatten:Qr};function Qe(H,ae,oe){for(var Be=0;Be<ae;++Be)oe[Be]=H[Be]}function zr(H,ae,oe,Be){for(var Ze=0,er=0;er<ae;++er)for(var Xe=H[er],yr=0;yr<oe;++yr)Be[Ze++]=Xe[yr]}function it(H,ae,oe,Be,Ze,er){for(var Xe=er,yr=0;yr<ae;++yr)for(var Dr=H[yr],qr=0;qr<oe;++qr)for(var Rr=Dr[qr],Ct=0;Ct<Be;++Ct)Ze[Xe++]=Rr[Ct]}function lt(H,ae,oe,Be,Ze){for(var er=1,Xe=oe+1;Xe<ae.length;++Xe)er*=ae[Xe];var yr=ae[oe];if(ae.length-oe===4){var Dr=ae[oe+1],qr=ae[oe+2],Rr=ae[oe+3];for(Xe=0;Xe<yr;++Xe)it(H[Xe],Dr,qr,Rr,Be,Ze),Ze+=er}else for(Xe=0;Xe<yr;++Xe)lt(H[Xe],ae,oe+1,Be,Ze),Ze+=er}function Qr(H,ae,oe,Be){var Ze=1;if(ae.length)for(var er=0;er<ae.length;++er)Ze*=ae[er];else Ze=0;var Xe=Be||V.allocType(oe,Ze);switch(ae.length){case 0:break;case 1:Qe(H,ae[0],Xe);break;case 2:zr(H,ae[0],ae[1],Xe);break;case 3:it(H,ae[0],ae[1],ae[2],Xe,0);break;default:lt(H,ae,0,Xe,0)}return Xe}function se(H){for(var ae=[],oe=H;oe.length;oe=oe[0])ae.push(oe.length);return ae}var Te={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},tr=5120,vr=5122,na=5124,Ea=5121,Da=5123,Va=5125,on=5126,Xa=5126,Mn={int8:tr,int16:vr,int32:na,uint8:Ea,uint16:Da,uint32:Va,float:on,float32:Xa},Ba=35048,hn=35040,Yn={dynamic:Ba,stream:hn,static:35044},Kn=Mr.flatten,si=Mr.shape,Wa=35044,Vn=35040,ln=5121,sn=5126,Za=[];Za[5120]=1,Za[5122]=2,Za[5124]=4,Za[5121]=1,Za[5123]=2,Za[5125]=4,Za[5126]=4;function kn(H){return Te[Object.prototype.toString.call(H)]|0}function ui(H,ae){for(var oe=0;oe<ae.length;++oe)H[oe]=ae[oe]}function Ir(H,ae,oe,Be,Ze,er,Xe){for(var yr=0,Dr=0;Dr<oe;++Dr)for(var qr=0;qr<Be;++qr)H[yr++]=ae[Ze*Dr+er*qr+Xe]}function Qt(H,ae,oe,Be){var Ze=0,er={};function Xe(Pe){this.id=Ze++,this.buffer=H.createBuffer(),this.type=Pe,this.usage=Wa,this.byteLength=0,this.dimension=1,this.dtype=ln,this.persistentData=null,oe.profile&&(this.stats={size:0})}Xe.prototype.bind=function(){H.bindBuffer(this.type,this.buffer)},Xe.prototype.destroy=function(){mt(this)};var yr=[];function Dr(Pe,ar){var kr=yr.pop();return kr||(kr=new Xe(Pe)),kr.bind(),Ct(kr,ar,Vn,0,1,!1),kr}function qr(Pe){yr.push(Pe)}function Rr(Pe,ar,kr){Pe.byteLength=ar.byteLength,H.bufferData(Pe.type,ar,kr)}function Ct(Pe,ar,kr,Nr,xr,nt){var Kr;if(Pe.usage=kr,Array.isArray(ar)){if(Pe.dtype=Nr||sn,ar.length>0){var Lt;if(Array.isArray(ar[0])){Kr=si(ar);for(var gr=1,dr=1;dr<Kr.length;++dr)gr*=Kr[dr];Pe.dimension=gr,Lt=Kn(ar,Kr,Pe.dtype),Rr(Pe,Lt,kr),nt?Pe.persistentData=Lt:V.freeType(Lt)}else if(typeof ar[0]=="number"){Pe.dimension=xr;var ht=V.allocType(Pe.dtype,ar.length);ui(ht,ar),Rr(Pe,ht,kr),nt?Pe.persistentData=ht:V.freeType(ht)}else Vr(ar[0])&&(Pe.dimension=ar[0].length,Pe.dtype=Nr||kn(ar[0])||sn,Lt=Kn(ar,[ar.length,ar[0].length],Pe.dtype),Rr(Pe,Lt,kr),nt?Pe.persistentData=Lt:V.freeType(Lt))}}else if(Vr(ar))Pe.dtype=Nr||kn(ar),Pe.dimension=xr,Rr(Pe,ar,kr),nt&&(Pe.persistentData=new Uint8Array(new Uint8Array(ar.buffer)));else if(ot(ar)){Kr=ar.shape;var jr=ar.stride,Hr=ar.offset,Xr=0,dt=0,Et=0,Xt=0;Kr.length===1?(Xr=Kr[0],dt=1,Et=jr[0],Xt=0):Kr.length===2&&(Xr=Kr[0],dt=Kr[1],Et=jr[0],Xt=jr[1]),Pe.dtype=Nr||kn(ar.data)||sn,Pe.dimension=dt;var rt=V.allocType(Pe.dtype,Xr*dt);Ir(rt,ar.data,Xr,dt,Et,Xt,Hr),Rr(Pe,rt,kr),nt?Pe.persistentData=rt:V.freeType(rt)}else ar instanceof ArrayBuffer&&(Pe.dtype=ln,Pe.dimension=xr,Rr(Pe,ar,kr),nt&&(Pe.persistentData=new Uint8Array(new Uint8Array(ar))))}function mt(Pe){ae.bufferCount--,Be(Pe);var ar=Pe.buffer;H.deleteBuffer(ar),Pe.buffer=null,delete er[Pe.id]}function $r(Pe,ar,kr,Nr){ae.bufferCount++;var xr=new Xe(ar);er[xr.id]=xr;function nt(gr){var dr=Wa,ht=null,jr=0,Hr=0,Xr=1;return Array.isArray(gr)||Vr(gr)||ot(gr)||gr instanceof ArrayBuffer?ht=gr:typeof gr=="number"?jr=gr|0:gr&&("data"in gr&&(ht=gr.data),"usage"in gr&&(dr=Yn[gr.usage]),"type"in gr&&(Hr=Mn[gr.type]),"dimension"in gr&&(Xr=gr.dimension|0),"length"in gr&&(jr=gr.length|0)),xr.bind(),ht?Ct(xr,ht,dr,Hr,Xr,Nr):(jr&&H.bufferData(xr.type,jr,dr),xr.dtype=Hr||ln,xr.usage=dr,xr.dimension=Xr,xr.byteLength=jr),oe.profile&&(xr.stats.size=xr.byteLength*Za[xr.dtype]),nt}function Kr(gr,dr){H.bufferSubData(xr.type,dr,gr)}function Lt(gr,dr){var ht=(dr||0)|0,jr;if(xr.bind(),Vr(gr)||gr instanceof ArrayBuffer)Kr(gr,ht);else if(Array.isArray(gr)){if(gr.length>0){if(typeof gr[0]=="number"){var Hr=V.allocType(xr.dtype,gr.length);ui(Hr,gr),Kr(Hr,ht),V.freeType(Hr)}else if(Array.isArray(gr[0])||Vr(gr[0])){jr=si(gr);var Xr=Kn(gr,jr,xr.dtype);Kr(Xr,ht),V.freeType(Xr)}}}else if(ot(gr)){jr=gr.shape;var dt=gr.stride,Et=0,Xt=0,rt=0,bt=0;jr.length===1?(Et=jr[0],Xt=1,rt=dt[0],bt=0):jr.length===2&&(Et=jr[0],Xt=jr[1],rt=dt[0],bt=dt[1]);var Ht=Array.isArray(gr.data)?xr.dtype:kn(gr.data),Ut=V.allocType(Ht,Et*Xt);Ir(Ut,gr.data,Et,Xt,rt,bt,gr.offset),Kr(Ut,ht),V.freeType(Ut)}return nt}return kr||nt(Pe),nt._reglType="buffer",nt._buffer=xr,nt.subdata=Lt,oe.profile&&(nt.stats=xr.stats),nt.destroy=function(){mt(xr)},nt}function fr(){Ve(er).forEach(function(Pe){Pe.buffer=H.createBuffer(),H.bindBuffer(Pe.type,Pe.buffer),H.bufferData(Pe.type,Pe.persistentData||Pe.byteLength,Pe.usage)})}return oe.profile&&(ae.getTotalBufferSize=function(){var Pe=0;return Object.keys(er).forEach(function(ar){Pe+=er[ar].stats.size}),Pe}),{create:$r,createStream:Dr,destroyStream:qr,clear:function(){Ve(er).forEach(mt),yr.forEach(mt)},getBuffer:function(Pe){return Pe&&Pe._buffer instanceof Xe?Pe._buffer:null},restore:fr,_initBuffer:Ct}}var It=0,pa=0,Xn=1,_i=1,un=4,Io=4,tl={points:It,point:pa,lines:Xn,line:_i,triangles:un,triangle:Io,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},El=0,os=1,lo=4,Aa=5120,al=5121,En=5122,Wi=5123,Bo=5124,mo=5125,Pu=34963,V0=35040,uc=35044;function fc(H,ae,oe,Be){var Ze={},er=0,Xe={uint8:al,uint16:Wi};ae.oes_element_index_uint&&(Xe.uint32=mo);function yr(fr){this.id=er++,Ze[this.id]=this,this.buffer=fr,this.primType=lo,this.vertCount=0,this.type=0}yr.prototype.bind=function(){this.buffer.bind()};var Dr=[];function qr(fr){var Pe=Dr.pop();return Pe||(Pe=new yr(oe.create(null,Pu,!0,!1)._buffer)),Ct(Pe,fr,V0,-1,-1,0,0),Pe}function Rr(fr){Dr.push(fr)}function Ct(fr,Pe,ar,kr,Nr,xr,nt){fr.buffer.bind();var Kr;if(Pe){var Lt=nt;!nt&&(!Vr(Pe)||ot(Pe)&&!Vr(Pe.data))&&(Lt=ae.oes_element_index_uint?mo:Wi),oe._initBuffer(fr.buffer,Pe,ar,Lt,3)}else H.bufferData(Pu,xr,ar),fr.buffer.dtype=Kr||al,fr.buffer.usage=ar,fr.buffer.dimension=3,fr.buffer.byteLength=xr;if(Kr=nt,!nt){switch(fr.buffer.dtype){case al:case Aa:Kr=al;break;case Wi:case En:Kr=Wi;break;case mo:case Bo:Kr=mo;break;default:}fr.buffer.dtype=Kr}fr.type=Kr;var gr=Nr;gr<0&&(gr=fr.buffer.byteLength,Kr===Wi?gr>>=1:Kr===mo&&(gr>>=2)),fr.vertCount=gr;var dr=kr;if(kr<0){dr=lo;var ht=fr.buffer.dimension;ht===1&&(dr=El),ht===2&&(dr=os),ht===3&&(dr=lo)}fr.primType=dr}function mt(fr){Be.elementsCount--,delete Ze[fr.id],fr.buffer.destroy(),fr.buffer=null}function $r(fr,Pe){var ar=oe.create(null,Pu,!0),kr=new yr(ar._buffer);Be.elementsCount++;function Nr(xr){if(!xr)ar(),kr.primType=lo,kr.vertCount=0,kr.type=al;else if(typeof xr=="number")ar(xr),kr.primType=lo,kr.vertCount=xr|0,kr.type=al;else{var nt=null,Kr=uc,Lt=-1,gr=-1,dr=0,ht=0;Array.isArray(xr)||Vr(xr)||ot(xr)?nt=xr:("data"in xr&&(nt=xr.data),"usage"in xr&&(Kr=Yn[xr.usage]),"primitive"in xr&&(Lt=tl[xr.primitive]),"count"in xr&&(gr=xr.count|0),"type"in xr&&(ht=Xe[xr.type]),"length"in xr?dr=xr.length|0:(dr=gr,ht===Wi||ht===En?dr*=2:(ht===mo||ht===Bo)&&(dr*=4))),Ct(kr,nt,Kr,Lt,gr,dr,ht)}return Nr}return Nr(fr),Nr._reglType="elements",Nr._elements=kr,Nr.subdata=function(xr,nt){return ar.subdata(xr,nt),Nr},Nr.destroy=function(){mt(kr)},Nr}return{create:$r,createStream:qr,destroyStream:Rr,getElements:function(fr){return typeof fr=="function"&&fr._elements instanceof yr?fr._elements:null},clear:function(){Ve(Ze).forEach(mt)}}}var kt=new Float32Array(1),St=new Uint32Array(kt.buffer),xa=5123;function Zr(H){for(var ae=V.allocType(xa,H.length),oe=0;oe<H.length;++oe)if(isNaN(H[oe]))ae[oe]=65535;else if(H[oe]===1/0)ae[oe]=31744;else if(H[oe]===-1/0)ae[oe]=64512;else{kt[0]=H[oe];var Be=St[0],Ze=Be>>>31<<15,er=(Be<<1>>>24)-127,Xe=Be>>13&1023;if(er<-24)ae[oe]=Ze;else if(er<-14){var yr=-14-er;ae[oe]=Ze+(Xe+1024>>yr)}else er>15?ae[oe]=Ze+31744:ae[oe]=Ze+(er+15<<10)+Xe}return ae}function xn(H){return Array.isArray(H)||Vr(H)}var Na=34467,Oa=3553,Wn=34067,Ii=34069,so=6408,X0=6406,Vs=6407,Xs=6409,cc=6410,yd=32854,ls=32855,Nu=36194,ry=32819,Lx=32820,W0=33635,gd=34042,vc=6402,hc=34041,ss=35904,Dl=35906,Oo=36193,Z0=33776,dc=33777,Ws=33778,J0=33779,ty=35986,bd=35987,j0=34798,ay=35840,ny=35841,xd=35842,iy=35843,_d=36196,zu=5121,$0=5123,wd=5125,nl=5126,Iu=10242,Ex=10243,Dx=10497,Ad=33071,oy=33648,pc=10240,qx=10241,Bu=9728,K0=9729,mc=9984,yc=9985,Ou=9986,Zs=9987,ly=33170,Hu=4352,Rx=4353,Q0=4354,Fx=34046,Px=3317,Nx=37440,sy=37441,gc=37443,uy=37444,Js=33984,fy=[mc,Ou,yc,Zs],yo=[0,Xs,cc,Vs,so],go={};go[Xs]=go[X0]=go[vc]=1,go[hc]=go[cc]=2,go[Vs]=go[ss]=3,go[so]=go[Dl]=4;function us(H){return"[object "+H+"]"}var ev=us("HTMLCanvasElement"),fs=us("OffscreenCanvas"),bc=us("CanvasRenderingContext2D"),Td=us("ImageBitmap"),cy=us("HTMLImageElement"),vy=us("HTMLVideoElement"),zx=Object.keys(Te).concat([ev,fs,bc,Td,cy,vy]),js=[];js[zu]=1,js[nl]=4,js[Oo]=2,js[$0]=2,js[wd]=4;var Qn=[];Qn[yd]=2,Qn[ls]=2,Qn[Nu]=2,Qn[hc]=4,Qn[Z0]=.5,Qn[dc]=.5,Qn[Ws]=1,Qn[J0]=1,Qn[ty]=.5,Qn[bd]=1,Qn[j0]=1,Qn[ay]=.5,Qn[ny]=.25,Qn[xd]=.5,Qn[iy]=.25,Qn[_d]=.5;function hy(H){return Array.isArray(H)&&(H.length===0||typeof H[0]=="number")}function dy(H){if(!Array.isArray(H))return!1;var ae=H.length;return!(ae===0||!xn(H[0]))}function $s(H){return Object.prototype.toString.call(H)}function py(H){return $s(H)===ev}function my(H){return $s(H)===fs}function Ix(H){return $s(H)===bc}function Bx(H){return $s(H)===Td}function Ox(H){return $s(H)===cy}function Hx(H){return $s(H)===vy}function Md(H){if(!H)return!1;var ae=$s(H);return zx.indexOf(ae)>=0?!0:hy(H)||dy(H)||ot(H)}function yy(H){return Te[Object.prototype.toString.call(H)]|0}function Ux(H,ae){var oe=ae.length;switch(H.type){case zu:case $0:case wd:case nl:var Be=V.allocType(H.type,oe);Be.set(ae),H.data=Be;break;case Oo:H.data=Zr(ae);break;default:}}function gy(H,ae){return V.allocType(H.type===Oo?nl:H.type,ae)}function kd(H,ae){H.type===Oo?(H.data=Zr(ae),V.freeType(ae)):H.data=ae}function by(H,ae,oe,Be,Ze,er){for(var Xe=H.width,yr=H.height,Dr=H.channels,qr=Xe*yr*Dr,Rr=gy(H,qr),Ct=0,mt=0;mt<yr;++mt)for(var $r=0;$r<Xe;++$r)for(var fr=0;fr<Dr;++fr)Rr[Ct++]=ae[oe*$r+Be*mt+Ze*fr+er];kd(H,Rr)}function xc(H,ae,oe,Be,Ze,er){var Xe;if(typeof Qn[H]!="undefined"?Xe=Qn[H]:Xe=go[H]*js[ae],er&&(Xe*=6),Ze){for(var yr=0,Dr=oe;Dr>=1;)yr+=Xe*Dr*Dr,Dr/=2;return yr}else return Xe*oe*Be}function xy(H,ae,oe,Be,Ze,er,Xe){var yr={"don't care":Hu,"dont care":Hu,nice:Q0,fast:Rx},Dr={repeat:Dx,clamp:Ad,mirror:oy},qr={nearest:Bu,linear:K0},Rr=e({mipmap:Zs,"nearest mipmap nearest":mc,"linear mipmap nearest":yc,"nearest mipmap linear":Ou,"linear mipmap linear":Zs},qr),Ct={none:0,browser:uy},mt={uint8:zu,rgba4:ry,rgb565:W0,"rgb5 a1":Lx},$r={alpha:X0,luminance:Xs,"luminance alpha":cc,rgb:Vs,rgba:so,rgba4:yd,"rgb5 a1":ls,rgb565:Nu},fr={};ae.ext_srgb&&($r.srgb=ss,$r.srgba=Dl),ae.oes_texture_float&&(mt.float32=mt.float=nl),ae.oes_texture_half_float&&(mt.float16=mt["half float"]=Oo),ae.webgl_depth_texture&&(e($r,{depth:vc,"depth stencil":hc}),e(mt,{uint16:$0,uint32:wd,"depth stencil":gd})),ae.webgl_compressed_texture_s3tc&&e(fr,{"rgb s3tc dxt1":Z0,"rgba s3tc dxt1":dc,"rgba s3tc dxt3":Ws,"rgba s3tc dxt5":J0}),ae.webgl_compressed_texture_atc&&e(fr,{"rgb atc":ty,"rgba atc explicit alpha":bd,"rgba atc interpolated alpha":j0}),ae.webgl_compressed_texture_pvrtc&&e(fr,{"rgb pvrtc 4bppv1":ay,"rgb pvrtc 2bppv1":ny,"rgba pvrtc 4bppv1":xd,"rgba pvrtc 2bppv1":iy}),ae.webgl_compressed_texture_etc1&&(fr["rgb etc1"]=_d);var Pe=Array.prototype.slice.call(H.getParameter(Na));Object.keys(fr).forEach(function(ie){var je=fr[ie];Pe.indexOf(je)>=0&&($r[ie]=je)});var ar=Object.keys($r);oe.textureFormats=ar;var kr=[];Object.keys($r).forEach(function(ie){var je=$r[ie];kr[je]=ie});var Nr=[];Object.keys(mt).forEach(function(ie){var je=mt[ie];Nr[je]=ie});var xr=[];Object.keys(qr).forEach(function(ie){var je=qr[ie];xr[je]=ie});var nt=[];Object.keys(Rr).forEach(function(ie){var je=Rr[ie];nt[je]=ie});var Kr=[];Object.keys(Dr).forEach(function(ie){var je=Dr[ie];Kr[je]=ie});var Lt=ar.reduce(function(ie,je){var Ke=$r[je];return Ke===Xs||Ke===X0||Ke===Xs||Ke===cc||Ke===vc||Ke===hc||ae.ext_srgb&&(Ke===ss||Ke===Dl)?ie[Ke]=Ke:Ke===ls||je.indexOf("rgba")>=0?ie[Ke]=so:ie[Ke]=Vs,ie},{});function gr(){this.internalformat=so,this.format=so,this.type=zu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=uy,this.width=0,this.height=0,this.channels=0}function dr(ie,je){ie.internalformat=je.internalformat,ie.format=je.format,ie.type=je.type,ie.compressed=je.compressed,ie.premultiplyAlpha=je.premultiplyAlpha,ie.flipY=je.flipY,ie.unpackAlignment=je.unpackAlignment,ie.colorSpace=je.colorSpace,ie.width=je.width,ie.height=je.height,ie.channels=je.channels}function ht(ie,je){if(!(typeof je!="object"||!je)){if("premultiplyAlpha"in je&&(ie.premultiplyAlpha=je.premultiplyAlpha),"flipY"in je&&(ie.flipY=je.flipY),"alignment"in je&&(ie.unpackAlignment=je.alignment),"colorSpace"in je&&(ie.colorSpace=Ct[je.colorSpace]),"type"in je){var Ke=je.type;ie.type=mt[Ke]}var wt=ie.width,ha=ie.height,Ua=ie.channels,xt=!1;"shape"in je?(wt=je.shape[0],ha=je.shape[1],je.shape.length===3&&(Ua=je.shape[2],xt=!0)):("radius"in je&&(wt=ha=je.radius),"width"in je&&(wt=je.width),"height"in je&&(ha=je.height),"channels"in je&&(Ua=je.channels,xt=!0)),ie.width=wt|0,ie.height=ha|0,ie.channels=Ua|0;var Q=!1;if("format"in je){var le=je.format,be=ie.internalformat=$r[le];ie.format=Lt[be],le in mt&&("type"in je||(ie.type=mt[le])),le in fr&&(ie.compressed=!0),Q=!0}!xt&&Q?ie.channels=go[ie.format]:xt&&!Q&&ie.channels!==yo[ie.format]&&(ie.format=ie.internalformat=yo[ie.channels])}}function jr(ie){H.pixelStorei(Nx,ie.flipY),H.pixelStorei(sy,ie.premultiplyAlpha),H.pixelStorei(gc,ie.colorSpace),H.pixelStorei(Px,ie.unpackAlignment)}function Hr(){gr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Xr(ie,je){var Ke=null;if(Md(je)?Ke=je:je&&(ht(ie,je),"x"in je&&(ie.xOffset=je.x|0),"y"in je&&(ie.yOffset=je.y|0),Md(je.data)&&(Ke=je.data)),je.copy){var wt=Ze.viewportWidth,ha=Ze.viewportHeight;ie.width=ie.width||wt-ie.xOffset,ie.height=ie.height||ha-ie.yOffset,ie.needsCopy=!0}else if(!Ke)ie.width=ie.width||1,ie.height=ie.height||1,ie.channels=ie.channels||4;else if(Vr(Ke))ie.channels=ie.channels||4,ie.data=Ke,!("type"in je)&&ie.type===zu&&(ie.type=yy(Ke));else if(hy(Ke))ie.channels=ie.channels||4,Ux(ie,Ke),ie.alignment=1,ie.needsFree=!0;else if(ot(Ke)){var Ua=Ke.data;!Array.isArray(Ua)&&ie.type===zu&&(ie.type=yy(Ua));var xt=Ke.shape,Q=Ke.stride,le,be,Je,rr,Ie,Ne;xt.length===3?(Je=xt[2],Ne=Q[2]):(Je=1,Ne=1),le=xt[0],be=xt[1],rr=Q[0],Ie=Q[1],ie.alignment=1,ie.width=le,ie.height=be,ie.channels=Je,ie.format=ie.internalformat=yo[Je],ie.needsFree=!0,by(ie,Ua,rr,Ie,Ne,Ke.offset)}else if(py(Ke)||my(Ke)||Ix(Ke))py(Ke)||my(Ke)?ie.element=Ke:ie.element=Ke.canvas,ie.width=ie.element.width,ie.height=ie.element.height,ie.channels=4;else if(Bx(Ke))ie.element=Ke,ie.width=Ke.width,ie.height=Ke.height,ie.channels=4;else if(Ox(Ke))ie.element=Ke,ie.width=Ke.naturalWidth,ie.height=Ke.naturalHeight,ie.channels=4;else if(Hx(Ke))ie.element=Ke,ie.width=Ke.videoWidth,ie.height=Ke.videoHeight,ie.channels=4;else if(dy(Ke)){var Me=ie.width||Ke[0].length,he=ie.height||Ke.length,Ae=ie.channels;xn(Ke[0][0])?Ae=Ae||Ke[0][0].length:Ae=Ae||1;for(var ue=Mr.shape(Ke),He=1,nr=0;nr<ue.length;++nr)He*=ue[nr];var Lr=gy(ie,He);Mr.flatten(Ke,ue,"",Lr),kd(ie,Lr),ie.alignment=1,ie.width=Me,ie.height=he,ie.channels=Ae,ie.format=ie.internalformat=yo[Ae],ie.needsFree=!0}ie.type===nl||ie.type}function dt(ie,je,Ke){var wt=ie.element,ha=ie.data,Ua=ie.internalformat,xt=ie.format,Q=ie.type,le=ie.width,be=ie.height;jr(ie),wt?H.texImage2D(je,Ke,xt,xt,Q,wt):ie.compressed?H.compressedTexImage2D(je,Ke,Ua,le,be,0,ha):ie.needsCopy?(Be(),H.copyTexImage2D(je,Ke,xt,ie.xOffset,ie.yOffset,le,be,0)):H.texImage2D(je,Ke,xt,le,be,0,xt,Q,ha||null)}function Et(ie,je,Ke,wt,ha){var Ua=ie.element,xt=ie.data,Q=ie.internalformat,le=ie.format,be=ie.type,Je=ie.width,rr=ie.height;jr(ie),Ua?H.texSubImage2D(je,ha,Ke,wt,le,be,Ua):ie.compressed?H.compressedTexSubImage2D(je,ha,Ke,wt,Q,Je,rr,xt):ie.needsCopy?(Be(),H.copyTexSubImage2D(je,ha,Ke,wt,ie.xOffset,ie.yOffset,Je,rr)):H.texSubImage2D(je,ha,Ke,wt,Je,rr,le,be,xt)}var Xt=[];function rt(){return Xt.pop()||new Hr}function bt(ie){ie.needsFree&&V.freeType(ie.data),Hr.call(ie),Xt.push(ie)}function Ht(){gr.call(this),this.genMipmaps=!1,this.mipmapHint=Hu,this.mipmask=0,this.images=Array(16)}function Ut(ie,je,Ke){var wt=ie.images[0]=rt();ie.mipmask=1,wt.width=ie.width=je,wt.height=ie.height=Ke,wt.channels=ie.channels=4}function ia(ie,je){var Ke=null;if(Md(je))Ke=ie.images[0]=rt(),dr(Ke,ie),Xr(Ke,je),ie.mipmask=1;else if(ht(ie,je),Array.isArray(je.mipmap))for(var wt=je.mipmap,ha=0;ha<wt.length;++ha)Ke=ie.images[ha]=rt(),dr(Ke,ie),Ke.width>>=ha,Ke.height>>=ha,Xr(Ke,wt[ha]),ie.mipmask|=1<<ha;else Ke=ie.images[0]=rt(),dr(Ke,ie),Xr(Ke,je),ie.mipmask=1;dr(ie,ie.images[0]),ie.compressed&&(ie.internalformat===Z0||ie.internalformat===dc||ie.internalformat===Ws||ie.internalformat)}function qn(ie,je){for(var Ke=ie.images,wt=0;wt<Ke.length;++wt){if(!Ke[wt])return;dt(Ke[wt],je,wt)}}var Ai=[];function fa(){var ie=Ai.pop()||new Ht;gr.call(ie),ie.mipmask=0;for(var je=0;je<16;++je)ie.images[je]=null;return ie}function xo(ie){for(var je=ie.images,Ke=0;Ke<je.length;++Ke)je[Ke]&&bt(je[Ke]),je[Ke]=null;Ai.push(ie)}function Ha(){this.minFilter=Bu,this.magFilter=Bu,this.wrapS=Ad,this.wrapT=Ad,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Hu}function Ji(ie,je){if("min"in je){var Ke=je.min;ie.minFilter=Rr[Ke],fy.indexOf(ie.minFilter)>=0&&!("faces"in je)&&(ie.genMipmaps=!0)}if("mag"in je){var wt=je.mag;ie.magFilter=qr[wt]}var ha=ie.wrapS,Ua=ie.wrapT;if("wrap"in je){var xt=je.wrap;typeof xt=="string"?ha=Ua=Dr[xt]:Array.isArray(xt)&&(ha=Dr[xt[0]],Ua=Dr[xt[1]])}else{if("wrapS"in je){var Q=je.wrapS;ha=Dr[Q]}if("wrapT"in je){var le=je.wrapT;Ua=Dr[le]}}if(ie.wrapS=ha,ie.wrapT=Ua,"anisotropic"in je){var be=je.anisotropic;ie.anisotropic=je.anisotropic}if("mipmap"in je){var Je=!1;switch(typeof je.mipmap){case"string":ie.mipmapHint=yr[je.mipmap],ie.genMipmaps=!0,Je=!0;break;case"boolean":Je=ie.genMipmaps=je.mipmap;break;case"object":ie.genMipmaps=!1,Je=!0;break;default:}Je&&!("min"in je)&&(ie.minFilter=mc)}}function fo(ie,je){H.texParameteri(je,qx,ie.minFilter),H.texParameteri(je,pc,ie.magFilter),H.texParameteri(je,Iu,ie.wrapS),H.texParameteri(je,Ex,ie.wrapT),ae.ext_texture_filter_anisotropic&&H.texParameteri(je,Fx,ie.anisotropic),ie.genMipmaps&&(H.hint(ly,ie.mipmapHint),H.generateMipmap(je))}var _o=0,ci={},vi=oe.maxTextureUnits,Ti=Array(vi).map(function(){return null});function ea(ie){gr.call(this),this.mipmask=0,this.internalformat=so,this.id=_o++,this.refCount=1,this.target=ie,this.texture=H.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ha,Xe.profile&&(this.stats={size:0})}function Ei(ie){H.activeTexture(Js),H.bindTexture(ie.target,ie.texture)}function ja(){var ie=Ti[0];ie?H.bindTexture(ie.target,ie.texture):H.bindTexture(Oa,null)}function co(ie){var je=ie.texture,Ke=ie.unit,wt=ie.target;Ke>=0&&(H.activeTexture(Js+Ke),H.bindTexture(wt,null),Ti[Ke]=null),H.deleteTexture(je),ie.texture=null,ie.params=null,ie.pixels=null,ie.refCount=0,delete ci[ie.id],er.textureCount--}e(ea.prototype,{bind:function(){var ie=this;ie.bindCount+=1;var je=ie.unit;if(je<0){for(var Ke=0;Ke<vi;++Ke){var wt=Ti[Ke];if(wt){if(wt.bindCount>0)continue;wt.unit=-1}Ti[Ke]=ie,je=Ke;break}je>=vi,Xe.profile&&er.maxTextureUnits<je+1&&(er.maxTextureUnits=je+1),ie.unit=je,H.activeTexture(Js+je),H.bindTexture(ie.target,ie.texture)}return je},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&co(this)}});function wo(ie,je){var Ke=new ea(Oa);ci[Ke.id]=Ke,er.textureCount++;function wt(xt,Q){var le=Ke.texInfo;Ha.call(le);var be=fa();return typeof xt=="number"?typeof Q=="number"?Ut(be,xt|0,Q|0):Ut(be,xt|0,xt|0):xt?(Ji(le,xt),ia(be,xt)):Ut(be,1,1),le.genMipmaps&&(be.mipmask=(be.width<<1)-1),Ke.mipmask=be.mipmask,dr(Ke,be),Ke.internalformat=be.internalformat,wt.width=be.width,wt.height=be.height,Ei(Ke),qn(be,Oa),fo(le,Oa),ja(),xo(be),Xe.profile&&(Ke.stats.size=xc(Ke.internalformat,Ke.type,be.width,be.height,le.genMipmaps,!1)),wt.format=kr[Ke.internalformat],wt.type=Nr[Ke.type],wt.mag=xr[le.magFilter],wt.min=nt[le.minFilter],wt.wrapS=Kr[le.wrapS],wt.wrapT=Kr[le.wrapT],wt}function ha(xt,Q,le,be){var Je=Q|0,rr=le|0,Ie=be|0,Ne=rt();return dr(Ne,Ke),Ne.width=0,Ne.height=0,Xr(Ne,xt),Ne.width=Ne.width||(Ke.width>>Ie)-Je,Ne.height=Ne.height||(Ke.height>>Ie)-rr,Ei(Ke),Et(Ne,Oa,Je,rr,Ie),ja(),bt(Ne),wt}function Ua(xt,Q){var le=xt|0,be=Q|0||le;if(le===Ke.width&&be===Ke.height)return wt;wt.width=Ke.width=le,wt.height=Ke.height=be,Ei(Ke);for(var Je=0;Ke.mipmask>>Je;++Je){var rr=le>>Je,Ie=be>>Je;if(!rr||!Ie)break;H.texImage2D(Oa,Je,Ke.format,rr,Ie,0,Ke.format,Ke.type,null)}return ja(),Xe.profile&&(Ke.stats.size=xc(Ke.internalformat,Ke.type,le,be,!1,!1)),wt}return wt(ie,je),wt.subimage=ha,wt.resize=Ua,wt._reglType="texture2d",wt._texture=Ke,Xe.profile&&(wt.stats=Ke.stats),wt.destroy=function(){Ke.decRef()},wt}function Ao(ie,je,Ke,wt,ha,Ua){var xt=new ea(Wn);ci[xt.id]=xt,er.cubeCount++;var Q=new Array(6);function le(rr,Ie,Ne,Me,he,Ae){var ue,He=xt.texInfo;for(Ha.call(He),ue=0;ue<6;++ue)Q[ue]=fa();if(typeof rr=="number"||!rr){var nr=rr|0||1;for(ue=0;ue<6;++ue)Ut(Q[ue],nr,nr)}else if(typeof rr=="object")if(Ie)ia(Q[0],rr),ia(Q[1],Ie),ia(Q[2],Ne),ia(Q[3],Me),ia(Q[4],he),ia(Q[5],Ae);else if(Ji(He,rr),ht(xt,rr),"faces"in rr){var Lr=rr.faces;for(ue=0;ue<6;++ue)dr(Q[ue],xt),ia(Q[ue],Lr[ue])}else for(ue=0;ue<6;++ue)ia(Q[ue],rr);for(dr(xt,Q[0]),He.genMipmaps?xt.mipmask=(Q[0].width<<1)-1:xt.mipmask=Q[0].mipmask,xt.internalformat=Q[0].internalformat,le.width=Q[0].width,le.height=Q[0].height,Ei(xt),ue=0;ue<6;++ue)qn(Q[ue],Ii+ue);for(fo(He,Wn),ja(),Xe.profile&&(xt.stats.size=xc(xt.internalformat,xt.type,le.width,le.height,He.genMipmaps,!0)),le.format=kr[xt.internalformat],le.type=Nr[xt.type],le.mag=xr[He.magFilter],le.min=nt[He.minFilter],le.wrapS=Kr[He.wrapS],le.wrapT=Kr[He.wrapT],ue=0;ue<6;++ue)xo(Q[ue]);return le}function be(rr,Ie,Ne,Me,he){var Ae=Ne|0,ue=Me|0,He=he|0,nr=rt();return dr(nr,xt),nr.width=0,nr.height=0,Xr(nr,Ie),nr.width=nr.width||(xt.width>>He)-Ae,nr.height=nr.height||(xt.height>>He)-ue,Ei(xt),Et(nr,Ii+rr,Ae,ue,He),ja(),bt(nr),le}function Je(rr){var Ie=rr|0;if(Ie!==xt.width){le.width=xt.width=Ie,le.height=xt.height=Ie,Ei(xt);for(var Ne=0;Ne<6;++Ne)for(var Me=0;xt.mipmask>>Me;++Me)H.texImage2D(Ii+Ne,Me,xt.format,Ie>>Me,Ie>>Me,0,xt.format,xt.type,null);return ja(),Xe.profile&&(xt.stats.size=xc(xt.internalformat,xt.type,le.width,le.height,!1,!0)),le}}return le(ie,je,Ke,wt,ha,Ua),le.subimage=be,le.resize=Je,le._reglType="textureCube",le._texture=xt,Xe.profile&&(le.stats=xt.stats),le.destroy=function(){xt.decRef()},le}function Jt(){for(var ie=0;ie<vi;++ie)H.activeTexture(Js+ie),H.bindTexture(Oa,null),Ti[ie]=null;Ve(ci).forEach(co),er.cubeCount=0,er.textureCount=0}Xe.profile&&(er.getTotalTextureSize=function(){var ie=0;return Object.keys(ci).forEach(function(je){ie+=ci[je].stats.size}),ie});function ya(){for(var ie=0;ie<vi;++ie){var je=Ti[ie];je&&(je.bindCount=0,je.unit=-1,Ti[ie]=null)}Ve(ci).forEach(function(Ke){Ke.texture=H.createTexture(),H.bindTexture(Ke.target,Ke.texture);for(var wt=0;wt<32;++wt)if((Ke.mipmask&1<<wt)!==0)if(Ke.target===Oa)H.texImage2D(Oa,wt,Ke.internalformat,Ke.width>>wt,Ke.height>>wt,0,Ke.internalformat,Ke.type,null);else for(var ha=0;ha<6;++ha)H.texImage2D(Ii+ha,wt,Ke.internalformat,Ke.width>>wt,Ke.height>>wt,0,Ke.internalformat,Ke.type,null);fo(Ke.texInfo,Ke.target)})}function dn(){for(var ie=0;ie<vi;++ie){var je=Ti[ie];je&&(je.bindCount=0,je.unit=-1,Ti[ie]=null),H.activeTexture(Js+ie),H.bindTexture(Oa,null),H.bindTexture(Wn,null)}}return{create2D:wo,createCube:Ao,clear:Jt,getTexture:function(ie){return null},restore:ya,refresh:dn}}var cs=36161,rv=32854,Ks=32855,_y=36194,wy=33189,Ay=36168,Ty=34041,Sd=35907,My=34836,ky=34842,Sy=34843,bo=[];bo[rv]=2,bo[Ks]=2,bo[_y]=2,bo[wy]=2,bo[Ay]=1,bo[Ty]=4,bo[Sd]=4,bo[My]=16,bo[ky]=8,bo[Sy]=6;function Cy(H,ae,oe){return bo[H]*ae*oe}var Gx=function(H,ae,oe,Be,Ze){var er={rgba4:rv,rgb565:_y,"rgb5 a1":Ks,depth:wy,stencil:Ay,"depth stencil":Ty};ae.ext_srgb&&(er.srgba=Sd),ae.ext_color_buffer_half_float&&(er.rgba16f=ky,er.rgb16f=Sy),ae.webgl_color_buffer_float&&(er.rgba32f=My);var Xe=[];Object.keys(er).forEach(function($r){var fr=er[$r];Xe[fr]=$r});var yr=0,Dr={};function qr($r){this.id=yr++,this.refCount=1,this.renderbuffer=$r,this.format=rv,this.width=0,this.height=0,Ze.profile&&(this.stats={size:0})}qr.prototype.decRef=function(){--this.refCount<=0&&Rr(this)};function Rr($r){var fr=$r.renderbuffer;H.bindRenderbuffer(cs,null),H.deleteRenderbuffer(fr),$r.renderbuffer=null,$r.refCount=0,delete Dr[$r.id],Be.renderbufferCount--}function Ct($r,fr){var Pe=new qr(H.createRenderbuffer());Dr[Pe.id]=Pe,Be.renderbufferCount++;function ar(Nr,xr){var nt=0,Kr=0,Lt=rv;if(typeof Nr=="object"&&Nr){var gr=Nr;if("shape"in gr){var dr=gr.shape;nt=dr[0]|0,Kr=dr[1]|0}else"radius"in gr&&(nt=Kr=gr.radius|0),"width"in gr&&(nt=gr.width|0),"height"in gr&&(Kr=gr.height|0);"format"in gr&&(Lt=er[gr.format])}else typeof Nr=="number"?(nt=Nr|0,typeof xr=="number"?Kr=xr|0:Kr=nt):Nr||(nt=Kr=1);if(!(nt===Pe.width&&Kr===Pe.height&&Lt===Pe.format))return ar.width=Pe.width=nt,ar.height=Pe.height=Kr,Pe.format=Lt,H.bindRenderbuffer(cs,Pe.renderbuffer),H.renderbufferStorage(cs,Lt,nt,Kr),Ze.profile&&(Pe.stats.size=Cy(Pe.format,Pe.width,Pe.height)),ar.format=Xe[Pe.format],ar}function kr(Nr,xr){var nt=Nr|0,Kr=xr|0||nt;return nt===Pe.width&&Kr===Pe.height||(ar.width=Pe.width=nt,ar.height=Pe.height=Kr,H.bindRenderbuffer(cs,Pe.renderbuffer),H.renderbufferStorage(cs,Pe.format,nt,Kr),Ze.profile&&(Pe.stats.size=Cy(Pe.format,Pe.width,Pe.height))),ar}return ar($r,fr),ar.resize=kr,ar._reglType="renderbuffer",ar._renderbuffer=Pe,Ze.profile&&(ar.stats=Pe.stats),ar.destroy=function(){Pe.decRef()},ar}Ze.profile&&(Be.getTotalRenderbufferSize=function(){var $r=0;return Object.keys(Dr).forEach(function(fr){$r+=Dr[fr].stats.size}),$r});function mt(){Ve(Dr).forEach(function($r){$r.renderbuffer=H.createRenderbuffer(),H.bindRenderbuffer(cs,$r.renderbuffer),H.renderbufferStorage(cs,$r.format,$r.width,$r.height)}),H.bindRenderbuffer(cs,null)}return{create:Ct,clear:function(){Ve(Dr).forEach(Rr)},restore:mt}},ql=36160,Cd=36161,Uu=3553,Ld=34069,Ly=36064,Ey=36096,Dy=36128,Gu=33306,_c=36053,il=36193,Yx=5121,Vx=5126,Xx=6407,Wx=6408,tv=[];tv[Wx]=4,tv[Xx]=3;var av=[];av[Yx]=1,av[Vx]=4,av[il]=2;function Zx(H,ae,oe,Be,Ze,er){var Xe={cur:null,next:null,dirty:!1,setFBO:null},yr=["rgba"],Dr=["rgba4","rgb565","rgb5 a1"];ae.ext_srgb&&Dr.push("srgba"),ae.ext_color_buffer_half_float&&Dr.push("rgba16f","rgb16f"),ae.webgl_color_buffer_float&&Dr.push("rgba32f");var qr=["uint8"];ae.oes_texture_half_float&&qr.push("half float","float16"),ae.oes_texture_float&&qr.push("float","float32");function Rr(Hr,Xr,dt){this.target=Hr,this.texture=Xr,this.renderbuffer=dt;var Et=0,Xt=0;Xr?(Et=Xr.width,Xt=Xr.height):dt&&(Et=dt.width,Xt=dt.height),this.width=Et,this.height=Xt}function Ct(Hr){Hr&&(Hr.texture&&Hr.texture._texture.decRef(),Hr.renderbuffer&&Hr.renderbuffer._renderbuffer.decRef())}function mt(Hr,Xr,dt){if(Hr)if(Hr.texture){var Et=Hr.texture._texture,Xt=Math.max(1,Et.width),rt=Math.max(1,Et.height);Et.refCount+=1}else{var bt=Hr.renderbuffer._renderbuffer;bt.refCount+=1}}function $r(Hr,Xr){Xr&&(Xr.texture?H.framebufferTexture2D(ql,Hr,Xr.target,Xr.texture._texture.texture,0):H.framebufferRenderbuffer(ql,Hr,Cd,Xr.renderbuffer._renderbuffer.renderbuffer))}function fr(Hr){var Xr=Uu,dt=null,Et=null,Xt=Hr;typeof Hr=="object"&&(Xt=Hr.data,"target"in Hr&&(Xr=Hr.target|0));var rt=Xt._reglType;return rt==="texture2d"||rt==="textureCube"?dt=Xt:rt==="renderbuffer"&&(Et=Xt,Xr=Cd),new Rr(Xr,dt,Et)}function Pe(Hr,Xr,dt,Et,Xt){if(dt){var rt=Be.create2D({width:Hr,height:Xr,format:Et,type:Xt});return rt._texture.refCount=0,new Rr(Uu,rt,null)}else{var bt=Ze.create({width:Hr,height:Xr,format:Et});return bt._renderbuffer.refCount=0,new Rr(Cd,null,bt)}}function ar(Hr){return Hr&&(Hr.texture||Hr.renderbuffer)}function kr(Hr,Xr,dt){Hr&&(Hr.texture?Hr.texture.resize(Xr,dt):Hr.renderbuffer&&Hr.renderbuffer.resize(Xr,dt),Hr.width=Xr,Hr.height=dt)}var Nr=0,xr={};function nt(){this.id=Nr++,xr[this.id]=this,this.framebuffer=H.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function Kr(Hr){Hr.colorAttachments.forEach(Ct),Ct(Hr.depthAttachment),Ct(Hr.stencilAttachment),Ct(Hr.depthStencilAttachment)}function Lt(Hr){var Xr=Hr.framebuffer;H.deleteFramebuffer(Xr),Hr.framebuffer=null,er.framebufferCount--,delete xr[Hr.id]}function gr(Hr){var Xr;H.bindFramebuffer(ql,Hr.framebuffer);var dt=Hr.colorAttachments;for(Xr=0;Xr<dt.length;++Xr)$r(Ly+Xr,dt[Xr]);for(Xr=dt.length;Xr<oe.maxColorAttachments;++Xr)H.framebufferTexture2D(ql,Ly+Xr,Uu,null,0);H.framebufferTexture2D(ql,Gu,Uu,null,0),H.framebufferTexture2D(ql,Ey,Uu,null,0),H.framebufferTexture2D(ql,Dy,Uu,null,0),$r(Ey,Hr.depthAttachment),$r(Dy,Hr.stencilAttachment),$r(Gu,Hr.depthStencilAttachment);var Et=H.checkFramebufferStatus(ql);H.isContextLost(),H.bindFramebuffer(ql,Xe.next?Xe.next.framebuffer:null),Xe.cur=Xe.next,H.getError()}function dr(Hr,Xr){var dt=new nt;er.framebufferCount++;function Et(rt,bt){var Ht,Ut=0,ia=0,qn=!0,Ai=!0,fa=null,xo=!0,Ha="rgba",Ji="uint8",fo=1,_o=null,ci=null,vi=null,Ti=!1;if(typeof rt=="number")Ut=rt|0,ia=bt|0||Ut;else if(!rt)Ut=ia=1;else{var ea=rt;if("shape"in ea){var Ei=ea.shape;Ut=Ei[0],ia=Ei[1]}else"radius"in ea&&(Ut=ia=ea.radius),"width"in ea&&(Ut=ea.width),"height"in ea&&(ia=ea.height);("color"in ea||"colors"in ea)&&(fa=ea.color||ea.colors,Array.isArray(fa)),fa||("colorCount"in ea&&(fo=ea.colorCount|0),"colorTexture"in ea&&(xo=!!ea.colorTexture,Ha="rgba4"),"colorType"in ea&&(Ji=ea.colorType,xo||(Ji==="half float"||Ji==="float16"?Ha="rgba16f":(Ji==="float"||Ji==="float32")&&(Ha="rgba32f"))),"colorFormat"in ea&&(Ha=ea.colorFormat,yr.indexOf(Ha)>=0?xo=!0:Dr.indexOf(Ha)>=0&&(xo=!1))),("depthTexture"in ea||"depthStencilTexture"in ea)&&(Ti=!!(ea.depthTexture||ea.depthStencilTexture)),"depth"in ea&&(typeof ea.depth=="boolean"?qn=ea.depth:(_o=ea.depth,Ai=!1)),"stencil"in ea&&(typeof ea.stencil=="boolean"?Ai=ea.stencil:(ci=ea.stencil,qn=!1)),"depthStencil"in ea&&(typeof ea.depthStencil=="boolean"?qn=Ai=ea.depthStencil:(vi=ea.depthStencil,qn=!1,Ai=!1))}var ja=null,co=null,wo=null,Ao=null;if(Array.isArray(fa))ja=fa.map(fr);else if(fa)ja=[fr(fa)];else for(ja=new Array(fo),Ht=0;Ht<fo;++Ht)ja[Ht]=Pe(Ut,ia,xo,Ha,Ji);Ut=Ut||ja[0].width,ia=ia||ja[0].height,_o?co=fr(_o):qn&&!Ai&&(co=Pe(Ut,ia,Ti,"depth","uint32")),ci?wo=fr(ci):Ai&&!qn&&(wo=Pe(Ut,ia,!1,"stencil","uint8")),vi?Ao=fr(vi):!_o&&!ci&&Ai&&qn&&(Ao=Pe(Ut,ia,Ti,"depth stencil","depth stencil"));var Jt=null;for(Ht=0;Ht<ja.length;++Ht)if(mt(ja[Ht],Ut,ia),ja[Ht]&&ja[Ht].texture){var ya=tv[ja[Ht].texture._texture.format]*av[ja[Ht].texture._texture.type];Jt===null&&(Jt=ya)}return mt(co,Ut,ia),mt(wo,Ut,ia),mt(Ao,Ut,ia),Kr(dt),dt.width=Ut,dt.height=ia,dt.colorAttachments=ja,dt.depthAttachment=co,dt.stencilAttachment=wo,dt.depthStencilAttachment=Ao,Et.color=ja.map(ar),Et.depth=ar(co),Et.stencil=ar(wo),Et.depthStencil=ar(Ao),Et.width=dt.width,Et.height=dt.height,gr(dt),Et}function Xt(rt,bt){var Ht=Math.max(rt|0,1),Ut=Math.max(bt|0||Ht,1);if(Ht===dt.width&&Ut===dt.height)return Et;for(var ia=dt.colorAttachments,qn=0;qn<ia.length;++qn)kr(ia[qn],Ht,Ut);return kr(dt.depthAttachment,Ht,Ut),kr(dt.stencilAttachment,Ht,Ut),kr(dt.depthStencilAttachment,Ht,Ut),dt.width=Et.width=Ht,dt.height=Et.height=Ut,gr(dt),Et}return Et(Hr,Xr),e(Et,{resize:Xt,_reglType:"framebuffer",_framebuffer:dt,destroy:function(){Lt(dt),Kr(dt)},use:function(rt){Xe.setFBO({framebuffer:Et},rt)}})}function ht(Hr){var Xr=Array(6);function dt(Xt){var rt,bt={color:null},Ht=0,Ut=null,ia="rgba",qn="uint8",Ai=1;if(typeof Xt=="number")Ht=Xt|0;else if(!Xt)Ht=1;else{var fa=Xt;if("shape"in fa){var xo=fa.shape;Ht=xo[0]}else"radius"in fa&&(Ht=fa.radius|0),"width"in fa?(Ht=fa.width|0,"height"in fa):"height"in fa&&(Ht=fa.height|0);("color"in fa||"colors"in fa)&&(Ut=fa.color||fa.colors,Array.isArray(Ut)),Ut||("colorCount"in fa&&(Ai=fa.colorCount|0),"colorType"in fa&&(qn=fa.colorType),"colorFormat"in fa&&(ia=fa.colorFormat)),"depth"in fa&&(bt.depth=fa.depth),"stencil"in fa&&(bt.stencil=fa.stencil),"depthStencil"in fa&&(bt.depthStencil=fa.depthStencil)}var Ha;if(Ut)if(Array.isArray(Ut))for(Ha=[],rt=0;rt<Ut.length;++rt)Ha[rt]=Ut[rt];else Ha=[Ut];else{Ha=Array(Ai);var Ji={radius:Ht,format:ia,type:qn};for(rt=0;rt<Ai;++rt)Ha[rt]=Be.createCube(Ji)}for(bt.color=Array(Ha.length),rt=0;rt<Ha.length;++rt){var fo=Ha[rt];Ht=Ht||fo.width,bt.color[rt]={target:Ld,data:Ha[rt]}}for(rt=0;rt<6;++rt){for(var _o=0;_o<Ha.length;++_o)bt.color[_o].target=Ld+rt;rt>0&&(bt.depth=Xr[0].depth,bt.stencil=Xr[0].stencil,bt.depthStencil=Xr[0].depthStencil),Xr[rt]?Xr[rt](bt):Xr[rt]=dr(bt)}return e(dt,{width:Ht,height:Ht,color:Ha})}function Et(Xt){var rt,bt=Xt|0;if(bt===dt.width)return dt;var Ht=dt.color;for(rt=0;rt<Ht.length;++rt)Ht[rt].resize(bt);for(rt=0;rt<6;++rt)Xr[rt].resize(bt);return dt.width=dt.height=bt,dt}return dt(Hr),e(dt,{faces:Xr,resize:Et,_reglType:"framebufferCube",destroy:function(){Xr.forEach(function(Xt){Xt.destroy()})}})}function jr(){Xe.cur=null,Xe.next=null,Xe.dirty=!0,Ve(xr).forEach(function(Hr){Hr.framebuffer=H.createFramebuffer(),gr(Hr)})}return e(Xe,{getFramebuffer:function(Hr){if(typeof Hr=="function"&&Hr._reglType==="framebuffer"){var Xr=Hr._framebuffer;if(Xr instanceof nt)return Xr}return null},create:dr,createCube:ht,clear:function(){Ve(xr).forEach(Lt)},restore:jr})}var Jx=5126,qy=34962,nv=34963;function wc(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Jx,this.offset=0,this.stride=0,this.divisor=0}function Ed(H,ae,oe,Be,Ze,er,Xe){for(var yr=oe.maxAttributes,Dr=new Array(yr),qr=0;qr<yr;++qr)Dr[qr]=new wc;var Rr=0,Ct={},mt={Record:wc,scope:{},state:Dr,currentVAO:null,targetVAO:null,restore:fr()?Kr:function(){},createVAO:Lt,getVAO:ar,destroyBuffer:$r,setVAO:fr()?kr:Nr,clear:fr()?xr:function(){}};function $r(gr){for(var dr=0;dr<Dr.length;++dr){var ht=Dr[dr];ht.buffer===gr&&(H.disableVertexAttribArray(dr),ht.buffer=null)}}function fr(){return ae.oes_vertex_array_object}function Pe(){return ae.angle_instanced_arrays}function ar(gr){return typeof gr=="function"&&gr._vao?gr._vao:null}function kr(gr){if(gr!==mt.currentVAO){var dr=fr();gr?dr.bindVertexArrayOES(gr.vao):dr.bindVertexArrayOES(null),mt.currentVAO=gr}}function Nr(gr){if(gr!==mt.currentVAO){if(gr)gr.bindAttrs();else{for(var dr=Pe(),ht=0;ht<Dr.length;++ht){var jr=Dr[ht];jr.buffer?(H.enableVertexAttribArray(ht),jr.buffer.bind(),H.vertexAttribPointer(ht,jr.size,jr.type,jr.normalized,jr.stride,jr.offfset),dr&&jr.divisor&&dr.vertexAttribDivisorANGLE(ht,jr.divisor)):(H.disableVertexAttribArray(ht),H.vertexAttrib4f(ht,jr.x,jr.y,jr.z,jr.w))}Xe.elements?H.bindBuffer(nv,Xe.elements.buffer.buffer):H.bindBuffer(nv,null)}mt.currentVAO=gr}}function xr(){Ve(Ct).forEach(function(gr){gr.destroy()})}function nt(){this.id=++Rr,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var gr=fr();gr?this.vao=gr.createVertexArrayOES():this.vao=null,Ct[this.id]=this,this.buffers=[]}nt.prototype.bindAttrs=function(){for(var gr=Pe(),dr=this.attributes,ht=0;ht<dr.length;++ht){var jr=dr[ht];jr.buffer?(H.enableVertexAttribArray(ht),H.bindBuffer(qy,jr.buffer.buffer),H.vertexAttribPointer(ht,jr.size,jr.type,jr.normalized,jr.stride,jr.offset),gr&&jr.divisor&&gr.vertexAttribDivisorANGLE(ht,jr.divisor)):(H.disableVertexAttribArray(ht),H.vertexAttrib4f(ht,jr.x,jr.y,jr.z,jr.w))}for(var Hr=dr.length;Hr<yr;++Hr)H.disableVertexAttribArray(Hr);var Xr=er.getElements(this.elements);Xr?H.bindBuffer(nv,Xr.buffer.buffer):H.bindBuffer(nv,null)},nt.prototype.refresh=function(){var gr=fr();gr&&(gr.bindVertexArrayOES(this.vao),this.bindAttrs(),mt.currentVAO=null,gr.bindVertexArrayOES(null))},nt.prototype.destroy=function(){if(this.vao){var gr=fr();this===mt.currentVAO&&(mt.currentVAO=null,gr.bindVertexArrayOES(null)),gr.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Ct[this.id]&&(delete Ct[this.id],Be.vaoCount-=1)};function Kr(){var gr=fr();gr&&Ve(Ct).forEach(function(dr){dr.refresh()})}function Lt(gr){var dr=new nt;Be.vaoCount+=1;function ht(jr){var Hr;if(Array.isArray(jr))Hr=jr,dr.elements&&dr.ownsElements&&dr.elements.destroy(),dr.elements=null,dr.ownsElements=!1,dr.offset=0,dr.count=0,dr.instances=-1,dr.primitive=4;else{if(jr.elements){var Xr=jr.elements;dr.ownsElements?typeof Xr=="function"&&Xr._reglType==="elements"?(dr.elements.destroy(),dr.ownsElements=!1):(dr.elements(Xr),dr.ownsElements=!1):er.getElements(jr.elements)?(dr.elements=jr.elements,dr.ownsElements=!1):(dr.elements=er.create(jr.elements),dr.ownsElements=!0)}else dr.elements=null,dr.ownsElements=!1;Hr=jr.attributes,dr.offset=0,dr.count=-1,dr.instances=-1,dr.primitive=4,dr.elements&&(dr.count=dr.elements._elements.vertCount,dr.primitive=dr.elements._elements.primType),"offset"in jr&&(dr.offset=jr.offset|0),"count"in jr&&(dr.count=jr.count|0),"instances"in jr&&(dr.instances=jr.instances|0),"primitive"in jr&&(dr.primitive=tl[jr.primitive])}var dt={},Et=dr.attributes;Et.length=Hr.length;for(var Xt=0;Xt<Hr.length;++Xt){var rt=Hr[Xt],bt=Et[Xt]=new wc,Ht=rt.data||rt;if(Array.isArray(Ht)||Vr(Ht)||ot(Ht)){var Ut;dr.buffers[Xt]&&(Ut=dr.buffers[Xt],Vr(Ht)&&Ut._buffer.byteLength>=Ht.byteLength?Ut.subdata(Ht):(Ut.destroy(),dr.buffers[Xt]=null)),dr.buffers[Xt]||(Ut=dr.buffers[Xt]=Ze.create(rt,qy,!1,!0)),bt.buffer=Ze.getBuffer(Ut),bt.size=bt.buffer.dimension|0,bt.normalized=!1,bt.type=bt.buffer.dtype,bt.offset=0,bt.stride=0,bt.divisor=0,bt.state=1,dt[Xt]=1}else Ze.getBuffer(rt)?(bt.buffer=Ze.getBuffer(rt),bt.size=bt.buffer.dimension|0,bt.normalized=!1,bt.type=bt.buffer.dtype,bt.offset=0,bt.stride=0,bt.divisor=0,bt.state=1):Ze.getBuffer(rt.buffer)?(bt.buffer=Ze.getBuffer(rt.buffer),bt.size=(+rt.size||bt.buffer.dimension)|0,bt.normalized=!!rt.normalized||!1,"type"in rt?bt.type=Mn[rt.type]:bt.type=bt.buffer.dtype,bt.offset=(rt.offset||0)|0,bt.stride=(rt.stride||0)|0,bt.divisor=(rt.divisor||0)|0,bt.state=1):"x"in rt&&(bt.x=+rt.x||0,bt.y=+rt.y||0,bt.z=+rt.z||0,bt.w=+rt.w||0,bt.state=2)}for(var ia=0;ia<dr.buffers.length;++ia)!dt[ia]&&dr.buffers[ia]&&(dr.buffers[ia].destroy(),dr.buffers[ia]=null);return dr.refresh(),ht}return ht.destroy=function(){for(var jr=0;jr<dr.buffers.length;++jr)dr.buffers[jr]&&dr.buffers[jr].destroy();dr.buffers.length=0,dr.ownsElements&&(dr.elements.destroy(),dr.elements=null,dr.ownsElements=!1),dr.destroy()},ht._vao=dr,ht._reglType="vao",ht(gr)}return mt}var Ry=35632,jx=35633,$x=35718,Kx=35721;function Fy(H,ae,oe,Be){var Ze={},er={};function Xe(Pe,ar,kr,Nr){this.name=Pe,this.id=ar,this.location=kr,this.info=Nr}function yr(Pe,ar){for(var kr=0;kr<Pe.length;++kr)if(Pe[kr].id===ar.id){Pe[kr].location=ar.location;return}Pe.push(ar)}function Dr(Pe,ar,kr){var Nr=Pe===Ry?Ze:er,xr=Nr[ar];if(!xr){var nt=ae.str(ar);xr=H.createShader(Pe),H.shaderSource(xr,nt),H.compileShader(xr),Nr[ar]=xr}return xr}var qr={},Rr=[],Ct=0;function mt(Pe,ar){this.id=Ct++,this.fragId=Pe,this.vertId=ar,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Be.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function $r(Pe,ar,kr){var Nr,xr,nt=Dr(Ry,Pe.fragId),Kr=Dr(jx,Pe.vertId),Lt=Pe.program=H.createProgram();if(H.attachShader(Lt,nt),H.attachShader(Lt,Kr),kr)for(Nr=0;Nr<kr.length;++Nr){var gr=kr[Nr];H.bindAttribLocation(Lt,gr[0],gr[1])}H.linkProgram(Lt);var dr=H.getProgramParameter(Lt,$x);Be.profile&&(Pe.stats.uniformsCount=dr);var ht=Pe.uniforms;for(Nr=0;Nr<dr;++Nr)if(xr=H.getActiveUniform(Lt,Nr),xr)if(xr.size>1)for(var jr=0;jr<xr.size;++jr){var Hr=xr.name.replace("[0]","["+jr+"]");yr(ht,new Xe(Hr,ae.id(Hr),H.getUniformLocation(Lt,Hr),xr))}else yr(ht,new Xe(xr.name,ae.id(xr.name),H.getUniformLocation(Lt,xr.name),xr));var Xr=H.getProgramParameter(Lt,Kx);Be.profile&&(Pe.stats.attributesCount=Xr);var dt=Pe.attributes;for(Nr=0;Nr<Xr;++Nr)xr=H.getActiveAttrib(Lt,Nr),xr&&yr(dt,new Xe(xr.name,ae.id(xr.name),H.getAttribLocation(Lt,xr.name),xr))}Be.profile&&(oe.getMaxUniformsCount=function(){var Pe=0;return Rr.forEach(function(ar){ar.stats.uniformsCount>Pe&&(Pe=ar.stats.uniformsCount)}),Pe},oe.getMaxAttributesCount=function(){var Pe=0;return Rr.forEach(function(ar){ar.stats.attributesCount>Pe&&(Pe=ar.stats.attributesCount)}),Pe});function fr(){Ze={},er={};for(var Pe=0;Pe<Rr.length;++Pe)$r(Rr[Pe],null,Rr[Pe].attributes.map(function(ar){return[ar.location,ar.name]}))}return{clear:function(){var Pe=H.deleteShader.bind(H);Ve(Ze).forEach(Pe),Ze={},Ve(er).forEach(Pe),er={},Rr.forEach(function(ar){H.deleteProgram(ar.program)}),Rr.length=0,qr={},oe.shaderCount=0},program:function(Pe,ar,kr,Nr){var xr=qr[ar];xr||(xr=qr[ar]={});var nt=xr[Pe];if(nt&&(nt.refCount++,!Nr))return nt;var Kr=new mt(ar,Pe);return oe.shaderCount++,$r(Kr,kr,Nr),nt||(xr[Pe]=Kr),Rr.push(Kr),e(Kr,{destroy:function(){if(Kr.refCount--,Kr.refCount<=0){H.deleteProgram(Kr.program);var Lt=Rr.indexOf(Kr);Rr.splice(Lt,1),oe.shaderCount--}xr[Kr.vertId].refCount<=0&&(H.deleteShader(er[Kr.vertId]),delete er[Kr.vertId],delete qr[Kr.fragId][Kr.vertId]),Object.keys(qr[Kr.fragId]).length||(H.deleteShader(Ze[Kr.fragId]),delete Ze[Kr.fragId],delete qr[Kr.fragId])}})},restore:fr,shader:Dr,frag:-1,vert:-1}}var Qx=6408,Dd=5121,qd=3333,Rd=5126;function Py(H,ae,oe,Be,Ze,er,Xe){function yr(Rr){var Ct;ae.next===null?Ct=Dd:Ct=ae.next.colorAttachments[0].texture._texture.type;var mt=0,$r=0,fr=Be.framebufferWidth,Pe=Be.framebufferHeight,ar=null;Vr(Rr)?ar=Rr:Rr&&(mt=Rr.x|0,$r=Rr.y|0,fr=(Rr.width||Be.framebufferWidth-mt)|0,Pe=(Rr.height||Be.framebufferHeight-$r)|0,ar=Rr.data||null),oe();var kr=fr*Pe*4;return ar||(Ct===Dd?ar=new Uint8Array(kr):Ct===Rd&&(ar=ar||new Float32Array(kr))),H.pixelStorei(qd,4),H.readPixels(mt,$r,fr,Pe,Qx,Ct,ar),ar}function Dr(Rr){var Ct;return ae.setFBO({framebuffer:Rr.framebuffer},function(){Ct=yr(Rr)}),Ct}function qr(Rr){return!Rr||!("framebuffer"in Rr)?yr(Rr):Dr(Rr)}return qr}var Ny=0,e_="";function r_(H){return Iy(zy(a_(H)))}function zy(H){return Hy(Yu(Fd(H),H.length*8))}function t_(H,ae){var oe=Fd(H);oe.length>16&&(oe=Yu(oe,H.length*8));for(var Be=Array(16),Ze=Array(16),er=0;er<16;er++)Be[er]=oe[er]^909522486,Ze[er]=oe[er]^1549556828;var Xe=Yu(Be.concat(Fd(ae)),512+ae.length*8);return Hy(Yu(Ze.concat(Xe),768))}function Iy(H){for(var ae=Ny?"0123456789ABCDEF":"0123456789abcdef",oe="",Be,Ze=0;Ze<H.length;Ze++)Be=H.charCodeAt(Ze),oe+=ae.charAt(Be>>>4&15)+ae.charAt(Be&15);return oe}function By(H){for(var ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe="",Be=H.length,Ze=0;Ze<Be;Ze+=3)for(var er=H.charCodeAt(Ze)<<16|(Ze+1<Be?H.charCodeAt(Ze+1)<<8:0)|(Ze+2<Be?H.charCodeAt(Ze+2):0),Xe=0;Xe<4;Xe++)Ze*8+Xe*6>H.length*8?oe+=e_:oe+=ae.charAt(er>>>6*(3-Xe)&63);return oe}function Oy(H,ae){var oe=ae.length,Be=Array(),Ze,er,Xe,yr,Dr=Array(Math.ceil(H.length/2));for(Ze=0;Ze<Dr.length;Ze++)Dr[Ze]=H.charCodeAt(Ze*2)<<8|H.charCodeAt(Ze*2+1);for(;Dr.length>0;){for(yr=Array(),Xe=0,Ze=0;Ze<Dr.length;Ze++)Xe=(Xe<<16)+Dr[Ze],er=Math.floor(Xe/oe),Xe-=er*oe,(yr.length>0||er>0)&&(yr[yr.length]=er);Be[Be.length]=Xe,Dr=yr}var qr="";for(Ze=Be.length-1;Ze>=0;Ze--)qr+=ae.charAt(Be[Ze]);var Rr=Math.ceil(H.length*8/(Math.log(ae.length)/Math.log(2)));for(Ze=qr.length;Ze<Rr;Ze++)qr=ae[0]+qr;return qr}function a_(H){for(var ae="",oe=-1,Be,Ze;++oe<H.length;)Be=H.charCodeAt(oe),Ze=oe+1<H.length?H.charCodeAt(oe+1):0,55296<=Be&&Be<=56319&&56320<=Ze&&Ze<=57343&&(Be=65536+((Be&1023)<<10)+(Ze&1023),oe++),Be<=127?ae+=String.fromCharCode(Be):Be<=2047?ae+=String.fromCharCode(192|Be>>>6&31,128|Be&63):Be<=65535?ae+=String.fromCharCode(224|Be>>>12&15,128|Be>>>6&63,128|Be&63):Be<=2097151&&(ae+=String.fromCharCode(240|Be>>>18&7,128|Be>>>12&63,128|Be>>>6&63,128|Be&63));return ae}function Fd(H){for(var ae=Array(H.length>>2),oe=0;oe<ae.length;oe++)ae[oe]=0;for(var oe=0;oe<H.length*8;oe+=8)ae[oe>>5]|=(H.charCodeAt(oe/8)&255)<<24-oe%32;return ae}function Hy(H){for(var ae="",oe=0;oe<H.length*32;oe+=8)ae+=String.fromCharCode(H[oe>>5]>>>24-oe%32&255);return ae}function ol(H,ae){return H>>>ae|H<<32-ae}function Uy(H,ae){return H>>>ae}function Gy(H,ae,oe){return H&ae^~H&oe}function Yy(H,ae,oe){return H&ae^H&oe^ae&oe}function Pd(H){return ol(H,2)^ol(H,13)^ol(H,22)}function Vy(H){return ol(H,6)^ol(H,11)^ol(H,25)}function iv(H){return ol(H,7)^ol(H,18)^Uy(H,3)}function ov(H){return ol(H,17)^ol(H,19)^Uy(H,10)}var n_=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yu(H,ae){var oe=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Be=new Array(64),Ze,er,Xe,yr,Dr,qr,Rr,Ct,mt,$r,fr,Pe;for(H[ae>>5]|=128<<24-ae%32,H[(ae+64>>9<<4)+15]=ae,mt=0;mt<H.length;mt+=16){for(Ze=oe[0],er=oe[1],Xe=oe[2],yr=oe[3],Dr=oe[4],qr=oe[5],Rr=oe[6],Ct=oe[7],$r=0;$r<64;$r++)$r<16?Be[$r]=H[$r+mt]:Be[$r]=ei(ei(ei(ov(Be[$r-2]),Be[$r-7]),iv(Be[$r-15])),Be[$r-16]),fr=ei(ei(ei(ei(Ct,Vy(Dr)),Gy(Dr,qr,Rr)),n_[$r]),Be[$r]),Pe=ei(Pd(Ze),Yy(Ze,er,Xe)),Ct=Rr,Rr=qr,qr=Dr,Dr=ei(yr,fr),yr=Xe,Xe=er,er=Ze,Ze=ei(fr,Pe);oe[0]=ei(Ze,oe[0]),oe[1]=ei(er,oe[1]),oe[2]=ei(Xe,oe[2]),oe[3]=ei(yr,oe[3]),oe[4]=ei(Dr,oe[4]),oe[5]=ei(qr,oe[5]),oe[6]=ei(Rr,oe[6]),oe[7]=ei(Ct,oe[7])}return oe}function ei(H,ae){var oe=(H&65535)+(ae&65535),Be=(H>>16)+(ae>>16)+(oe>>16);return Be<<16|oe&65535}function Vu(H){return Array.prototype.slice.call(H)}function Xu(H){return Vu(H).join("")}function Xy(H){var ae=H&&H.cache,oe=0,Be=[],Ze=[],er=[];function Xe(fr,Pe){var ar=Pe&&Pe.stable;if(!ar){for(var kr=0;kr<Ze.length;++kr)if(Ze[kr]===fr&&!er[kr])return Be[kr]}var Nr="g"+oe++;return Be.push(Nr),Ze.push(fr),er.push(ar),Nr}function yr(){var fr=[];function Pe(){fr.push.apply(fr,Vu(arguments))}var ar=[];function kr(){var Nr="v"+oe++;return ar.push(Nr),arguments.length>0&&(fr.push(Nr,"="),fr.push.apply(fr,Vu(arguments)),fr.push(";")),Nr}return e(Pe,{def:kr,toString:function(){return Xu([ar.length>0?"var "+ar.join(",")+";":"",Xu(fr)])}})}function Dr(){var fr=yr(),Pe=yr(),ar=fr.toString,kr=Pe.toString;function Nr(xr,nt){Pe(xr,nt,"=",fr.def(xr,nt),";")}return e(function(){fr.apply(fr,Vu(arguments))},{def:fr.def,entry:fr,exit:Pe,save:Nr,set:function(xr,nt,Kr){Nr(xr,nt),fr(xr,nt,"=",Kr,";")},toString:function(){return ar()+kr()}})}function qr(){var fr=Xu(arguments),Pe=Dr(),ar=Dr(),kr=Pe.toString,Nr=ar.toString;return e(Pe,{then:function(){return Pe.apply(Pe,Vu(arguments)),this},else:function(){return ar.apply(ar,Vu(arguments)),this},toString:function(){var xr=Nr();return xr&&(xr="else{"+xr+"}"),Xu(["if(",fr,"){",kr(),"}",xr])}})}var Rr=yr(),Ct={};function mt(fr,Pe){var ar=[];function kr(){var Lt="a"+ar.length;return ar.push(Lt),Lt}Pe=Pe||0;for(var Nr=0;Nr<Pe;++Nr)kr();var xr=Dr(),nt=xr.toString,Kr=Ct[fr]=e(xr,{arg:kr,toString:function(){return Xu(["function(",ar.join(),"){",nt(),"}"])}});return Kr}function $r(){var fr=['"use strict";',Rr,"return {"];Object.keys(Ct).forEach(function(Nr){fr.push('"',Nr,'":',Ct[Nr].toString(),",")}),fr.push("}");var Pe=Xu(fr).replace(/;/g,`;
`).replace(/}/g,`}
`).replace(/{/g,`{
`),ar;if(ae&&(ar=r_(Pe),ae[ar]))return ae[ar].apply(null,Ze);var kr=Function.apply(null,Be.concat(Pe));return ae&&(ae[ar]=kr),kr.apply(null,Ze)}return{global:Rr,link:Xe,block:yr,proc:mt,scope:Dr,cond:qr,compile:$r}}var Qs="xyzw".split(""),Nd=5121,vs=1,Ac=2,zd=0,lv=1,Wy=2,sv=3,uv=4,Id=5,Tc=6,Bd="dither",Zy="blend.enable",Jy="blend.color",Od="blend.equation",Hd="blend.func",Ud="depth.enable",Gd="depth.func",Yd="depth.range",Vd="depth.mask",Xd="colorMask",Mc="cull.enable",jy="cull.face",Wd="frontFace",fv="lineWidth",Zd="polygonOffset.enable",Jd="polygonOffset.offset",kc="sample.alpha",Sc="sample.enable",cv="sample.coverage",jd="stencil.enable",vv="stencil.mask",uo="stencil.func",hv="stencil.opFront",Cc="stencil.opBack",dv="scissor.enable",Wu="scissor.box",Rl="viewport",pv="profile",Zu="framebuffer",eu="vert",Ju="frag",ru="elements",ju="primitive",$u="count",$d="offset",Zi="instances",Lc="vao",mv="Width",ll="Height",hs=Zu+mv,ds=Zu+ll,i_=Rl+mv,o_=Rl+ll,$y="drawingBuffer",Kd=$y+mv,Qd=$y+ll,Ky=[Hd,Od,uo,hv,Cc,cv,Rl,Wu,Jd],tu=34962,e1=34963,Qy=2884,l_=3042,s_=3024,u_=2960,eg=2929,rg=3089,yv=32823,tg=32926,gv=32928,r1=5126,au=35664,_n=35665,bv=35666,ps=5124,Ku=35667,Ec=35668,t1=35669,xv=35670,Qu=35671,_v=35672,a1=35673,n1=35674,i1=35675,o1=35676,Dc=35678,l1=35680,s1=4,h=1028,g=1029,A=2304,S=2305,L=32775,E=32776,N=519,F=7680,O=0,W=1,Z=32774,$=513,K=36160,we=36064,ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},re={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},xe={cw:A,ccw:S};function Se(H){return Array.isArray(H)||Vr(H)||ot(H)}function Ee(H){return H.sort(function(ae,oe){return ae===Rl?-1:oe===Rl?1:ae<oe?-1:1})}function me(H,ae,oe,Be){this.thisDep=H,this.contextDep=ae,this.propDep=oe,this.append=Be}function sr(H){return H&&!(H.thisDep||H.contextDep||H.propDep)}function wr(H){return new me(!1,!1,!1,H)}function Fr(H,ae){var oe=H.type;if(oe===zd){var Be=H.data.length;return new me(!0,Be>=1,Be>=2,ae)}else if(oe===uv){var Ze=H.data;return new me(Ze.thisDep,Ze.contextDep,Ze.propDep,ae)}else{if(oe===Id)return new me(!1,!1,!1,ae);if(oe===Tc){for(var er=!1,Xe=!1,yr=!1,Dr=0;Dr<H.data.length;++Dr){var qr=H.data[Dr];if(qr.type===lv)yr=!0;else if(qr.type===Wy)Xe=!0;else if(qr.type===sv)er=!0;else if(qr.type===zd){er=!0;var Rr=qr.data;Rr>=1&&(Xe=!0),Rr>=2&&(yr=!0)}else qr.type===uv&&(er=er||qr.data.thisDep,Xe=Xe||qr.data.contextDep,yr=yr||qr.data.propDep)}return new me(er,Xe,yr,ae)}else return new me(oe===sv,oe===Wy,oe===lv,ae)}}var Jr=new me(!1,!1,!1,function(){});function ct(H,ae,oe,Be,Ze,er,Xe,yr,Dr,qr,Rr,Ct,mt,$r,fr,Pe){var ar=qr.Record,kr={add:32774,subtract:32778,"reverse subtract":32779};oe.ext_blend_minmax&&(kr.min=L,kr.max=E);var Nr=oe.angle_instanced_arrays,xr=oe.webgl_draw_buffers,nt=oe.oes_vertex_array_object,Kr={dirty:!0,profile:Pe.profile},Lt={},gr=[],dr={},ht={};function jr(Q){return Q.replace(".","_")}function Hr(Q,le,be){var Je=jr(Q);gr.push(Q),Lt[Je]=Kr[Je]=!!be,dr[Je]=le}function Xr(Q,le,be){var Je=jr(Q);gr.push(Q),Array.isArray(be)?(Kr[Je]=be.slice(),Lt[Je]=be.slice()):Kr[Je]=Lt[Je]=be,ht[Je]=le}function dt(Q){return!!isNaN(Q)}Hr(Bd,s_),Hr(Zy,l_),Xr(Jy,"blendColor",[0,0,0,0]),Xr(Od,"blendEquationSeparate",[Z,Z]),Xr(Hd,"blendFuncSeparate",[W,O,W,O]),Hr(Ud,eg,!0),Xr(Gd,"depthFunc",$),Xr(Yd,"depthRange",[0,1]),Xr(Vd,"depthMask",!0),Xr(Xd,Xd,[!0,!0,!0,!0]),Hr(Mc,Qy),Xr(jy,"cullFace",g),Xr(Wd,Wd,S),Xr(fv,fv,1),Hr(Zd,yv),Xr(Jd,"polygonOffset",[0,0]),Hr(kc,tg),Hr(Sc,gv),Xr(cv,"sampleCoverage",[1,!1]),Hr(jd,u_),Xr(vv,"stencilMask",-1),Xr(uo,"stencilFunc",[N,0,-1]),Xr(hv,"stencilOpSeparate",[h,F,F,F]),Xr(Cc,"stencilOpSeparate",[g,F,F,F]),Hr(dv,rg),Xr(Wu,"scissor",[0,0,H.drawingBufferWidth,H.drawingBufferHeight]),Xr(Rl,Rl,[0,0,H.drawingBufferWidth,H.drawingBufferHeight]);var Et={gl:H,context:mt,strings:ae,next:Lt,current:Kr,draw:Ct,elements:er,buffer:Ze,shader:Rr,attributes:qr.state,vao:qr,uniforms:Dr,framebuffer:yr,extensions:oe,timer:$r,isBufferArgs:Se},Xt={primTypes:tl,compareFuncs:re,blendFuncs:ke,blendEquations:kr,stencilOps:ve,glTypes:Mn,orientationType:xe};xr&&(Xt.backBuffer=[g],Xt.drawBuffer=C(Be.maxDrawbuffers,function(Q){return Q===0?[0]:C(Q,function(le){return we+le})}));var rt=0;function bt(){var Q=Xy({cache:fr}),le=Q.link,be=Q.global;Q.id=rt++,Q.batchId="0";var Je=le(Et),rr=Q.shared={props:"a0"};Object.keys(Et).forEach(function(Ae){rr[Ae]=be.def(Je,".",Ae)});var Ie=Q.next={},Ne=Q.current={};Object.keys(ht).forEach(function(Ae){Array.isArray(Kr[Ae])&&(Ie[Ae]=be.def(rr.next,".",Ae),Ne[Ae]=be.def(rr.current,".",Ae))});var Me=Q.constants={};Object.keys(Xt).forEach(function(Ae){Me[Ae]=be.def(JSON.stringify(Xt[Ae]))}),Q.invoke=function(Ae,ue){switch(ue.type){case zd:var He=["this",rr.context,rr.props,Q.batchId];return Ae.def(le(ue.data),".call(",He.slice(0,Math.max(ue.data.length+1,4)),")");case lv:return Ae.def(rr.props,ue.data);case Wy:return Ae.def(rr.context,ue.data);case sv:return Ae.def("this",ue.data);case uv:return ue.data.append(Q,Ae),ue.data.ref;case Id:return ue.data.toString();case Tc:return ue.data.map(function(nr){return Q.invoke(Ae,nr)})}},Q.attribCache={};var he={};return Q.scopeAttrib=function(Ae){var ue=ae.id(Ae);if(ue in he)return he[ue];var He=qr.scope[ue];He||(He=qr.scope[ue]=new ar);var nr=he[ue]=le(He);return nr},Q}function Ht(Q){var le=Q.static,be=Q.dynamic,Je;if(pv in le){var rr=!!le[pv];Je=wr(function(Ne,Me){return rr}),Je.enable=rr}else if(pv in be){var Ie=be[pv];Je=Fr(Ie,function(Ne,Me){return Ne.invoke(Me,Ie)})}return Je}function Ut(Q,le){var be=Q.static,Je=Q.dynamic;if(Zu in be){var rr=be[Zu];return rr?(rr=yr.getFramebuffer(rr),wr(function(Ne,Me){var he=Ne.link(rr),Ae=Ne.shared;Me.set(Ae.framebuffer,".next",he);var ue=Ae.context;return Me.set(ue,"."+hs,he+".width"),Me.set(ue,"."+ds,he+".height"),he})):wr(function(Ne,Me){var he=Ne.shared;Me.set(he.framebuffer,".next","null");var Ae=he.context;return Me.set(Ae,"."+hs,Ae+"."+Kd),Me.set(Ae,"."+ds,Ae+"."+Qd),"null"})}else if(Zu in Je){var Ie=Je[Zu];return Fr(Ie,function(Ne,Me){var he=Ne.invoke(Me,Ie),Ae=Ne.shared,ue=Ae.framebuffer,He=Me.def(ue,".getFramebuffer(",he,")");Me.set(ue,".next",He);var nr=Ae.context;return Me.set(nr,"."+hs,He+"?"+He+".width:"+nr+"."+Kd),Me.set(nr,"."+ds,He+"?"+He+".height:"+nr+"."+Qd),He})}else return null}function ia(Q,le,be){var Je=Q.static,rr=Q.dynamic;function Ie(he){if(he in Je){var Ae=Je[he],ue=!0,He=Ae.x|0,nr=Ae.y|0,Lr,qt;return"width"in Ae?Lr=Ae.width|0:ue=!1,"height"in Ae?qt=Ae.height|0:ue=!1,new me(!ue&&le&&le.thisDep,!ue&&le&&le.contextDep,!ue&&le&&le.propDep,function(Dt,Mt){var Tt=Dt.shared.context,ft=Lr;"width"in Ae||(ft=Mt.def(Tt,".",hs,"-",He));var _t=qt;return"height"in Ae||(_t=Mt.def(Tt,".",ds,"-",nr)),[He,nr,ft,_t]})}else if(he in rr){var pt=rr[he],ut=Fr(pt,function(Dt,Mt){var Tt=Dt.invoke(Mt,pt),ft=Dt.shared.context,_t=Mt.def(Tt,".x|0"),At=Mt.def(Tt,".y|0"),Wt=Mt.def('"width" in ',Tt,"?",Tt,".width|0:","(",ft,".",hs,"-",_t,")"),pn=Mt.def('"height" in ',Tt,"?",Tt,".height|0:","(",ft,".",ds,"-",At,")");return[_t,At,Wt,pn]});return le&&(ut.thisDep=ut.thisDep||le.thisDep,ut.contextDep=ut.contextDep||le.contextDep,ut.propDep=ut.propDep||le.propDep),ut}else return le?new me(le.thisDep,le.contextDep,le.propDep,function(Dt,Mt){var Tt=Dt.shared.context;return[0,0,Mt.def(Tt,".",hs),Mt.def(Tt,".",ds)]}):null}var Ne=Ie(Rl);if(Ne){var Me=Ne;Ne=new me(Ne.thisDep,Ne.contextDep,Ne.propDep,function(he,Ae){var ue=Me.append(he,Ae),He=he.shared.context;return Ae.set(He,"."+i_,ue[2]),Ae.set(He,"."+o_,ue[3]),ue})}return{viewport:Ne,scissor_box:Ie(Wu)}}function qn(Q,le){var be=Q.static,Je=typeof be[Ju]=="string"&&typeof be[eu]=="string";if(Je){if(Object.keys(le.dynamic).length>0)return null;var rr=le.static,Ie=Object.keys(rr);if(Ie.length>0&&typeof rr[Ie[0]]=="number"){for(var Ne=[],Me=0;Me<Ie.length;++Me)Ne.push([rr[Ie[Me]]|0,Ie[Me]]);return Ne}}return null}function Ai(Q,le,be){var Je=Q.static,rr=Q.dynamic;function Ie(ue){if(ue in Je){var He=ae.id(Je[ue]),nr=wr(function(){return He});return nr.id=He,nr}else if(ue in rr){var Lr=rr[ue];return Fr(Lr,function(qt,pt){var ut=qt.invoke(pt,Lr),Dt=pt.def(qt.shared.strings,".id(",ut,")");return Dt})}return null}var Ne=Ie(Ju),Me=Ie(eu),he=null,Ae;return sr(Ne)&&sr(Me)?(he=Rr.program(Me.id,Ne.id,null,be),Ae=wr(function(ue,He){return ue.link(he)})):Ae=new me(Ne&&Ne.thisDep||Me&&Me.thisDep,Ne&&Ne.contextDep||Me&&Me.contextDep,Ne&&Ne.propDep||Me&&Me.propDep,function(ue,He){var nr=ue.shared.shader,Lr;Ne?Lr=Ne.append(ue,He):Lr=He.def(nr,".",Ju);var qt;Me?qt=Me.append(ue,He):qt=He.def(nr,".",eu);var pt=nr+".program("+qt+","+Lr;return He.def(pt+")")}),{frag:Ne,vert:Me,progVar:Ae,program:he}}function fa(Q,le){var be=Q.static,Je=Q.dynamic,rr={},Ie=!1;function Ne(){if(Lc in be){var Mt=be[Lc];return Mt!==null&&qr.getVAO(Mt)===null&&(Mt=qr.createVAO(Mt)),Ie=!0,rr.vao=Mt,wr(function(ft){var _t=qr.getVAO(Mt);return _t?ft.link(_t):"null"})}else if(Lc in Je){Ie=!0;var Tt=Je[Lc];return Fr(Tt,function(ft,_t){var At=ft.invoke(_t,Tt);return _t.def(ft.shared.vao+".getVAO("+At+")")})}return null}var Me=Ne(),he=!1;function Ae(){if(ru in be){var Mt=be[ru];if(rr.elements=Mt,Se(Mt)){var Tt=rr.elements=er.create(Mt,!0);Mt=er.getElements(Tt),he=!0}else Mt&&(Mt=er.getElements(Mt),he=!0);var ft=wr(function(At,Wt){if(Mt){var pn=At.link(Mt);return At.ELEMENTS=pn,pn}return At.ELEMENTS=null,null});return ft.value=Mt,ft}else if(ru in Je){he=!0;var _t=Je[ru];return Fr(_t,function(At,Wt){var pn=At.shared,To=pn.isBufferArgs,nu=pn.elements,ef=At.invoke(Wt,_t),rf=Wt.def("null"),sl=Wt.def(To,"(",ef,")"),u1=At.cond(sl).then(rf,"=",nu,".createStream(",ef,");").else(rf,"=",nu,".getElements(",ef,");");return Wt.entry(u1),Wt.exit(At.cond(sl).then(nu,".destroyStream(",rf,");")),At.ELEMENTS=rf,rf})}else if(Ie)return new me(Me.thisDep,Me.contextDep,Me.propDep,function(At,Wt){return Wt.def(At.shared.vao+".currentVAO?"+At.shared.elements+".getElements("+At.shared.vao+".currentVAO.elements):null")});return null}var ue=Ae();function He(){if(ju in be){var Mt=be[ju];return rr.primitive=Mt,wr(function(ft,_t){return tl[Mt]})}else if(ju in Je){var Tt=Je[ju];return Fr(Tt,function(ft,_t){var At=ft.constants.primTypes,Wt=ft.invoke(_t,Tt);return _t.def(At,"[",Wt,"]")})}else{if(he)return sr(ue)?ue.value?wr(function(ft,_t){return _t.def(ft.ELEMENTS,".primType")}):wr(function(){return s1}):new me(ue.thisDep,ue.contextDep,ue.propDep,function(ft,_t){var At=ft.ELEMENTS;return _t.def(At,"?",At,".primType:",s1)});if(Ie)return new me(Me.thisDep,Me.contextDep,Me.propDep,function(ft,_t){return _t.def(ft.shared.vao+".currentVAO?"+ft.shared.vao+".currentVAO.primitive:"+s1)})}return null}function nr(Mt,Tt){if(Mt in be){var ft=be[Mt]|0;return Tt?rr.offset=ft:rr.instances=ft,wr(function(At,Wt){return Tt&&(At.OFFSET=ft),ft})}else if(Mt in Je){var _t=Je[Mt];return Fr(_t,function(At,Wt){var pn=At.invoke(Wt,_t);return Tt&&(At.OFFSET=pn),pn})}else if(Tt){if(he)return wr(function(At,Wt){return At.OFFSET=0,0});if(Ie)return new me(Me.thisDep,Me.contextDep,Me.propDep,function(At,Wt){return Wt.def(At.shared.vao+".currentVAO?"+At.shared.vao+".currentVAO.offset:0")})}else if(Ie)return new me(Me.thisDep,Me.contextDep,Me.propDep,function(At,Wt){return Wt.def(At.shared.vao+".currentVAO?"+At.shared.vao+".currentVAO.instances:-1")});return null}var Lr=nr($d,!0);function qt(){if($u in be){var Mt=be[$u]|0;return rr.count=Mt,wr(function(){return Mt})}else if($u in Je){var Tt=Je[$u];return Fr(Tt,function(Wt,pn){var To=Wt.invoke(pn,Tt);return To})}else if(he)if(sr(ue)){if(ue)return Lr?new me(Lr.thisDep,Lr.contextDep,Lr.propDep,function(Wt,pn){var To=pn.def(Wt.ELEMENTS,".vertCount-",Wt.OFFSET);return To}):wr(function(Wt,pn){return pn.def(Wt.ELEMENTS,".vertCount")});var ft=wr(function(){return-1});return ft}else{var _t=new me(ue.thisDep||Lr.thisDep,ue.contextDep||Lr.contextDep,ue.propDep||Lr.propDep,function(Wt,pn){var To=Wt.ELEMENTS;return Wt.OFFSET?pn.def(To,"?",To,".vertCount-",Wt.OFFSET,":-1"):pn.def(To,"?",To,".vertCount:-1")});return _t}else if(Ie){var At=new me(Me.thisDep,Me.contextDep,Me.propDep,function(Wt,pn){return pn.def(Wt.shared.vao,".currentVAO?",Wt.shared.vao,".currentVAO.count:-1")});return At}return null}var pt=He(),ut=qt(),Dt=nr(Zi,!1);return{elements:ue,primitive:pt,count:ut,instances:Dt,offset:Lr,vao:Me,vaoActive:Ie,elementsActive:he,static:rr}}function xo(Q,le){var be=Q.static,Je=Q.dynamic,rr={};return gr.forEach(function(Ie){var Ne=jr(Ie);function Me(he,Ae){if(Ie in be){var ue=he(be[Ie]);rr[Ne]=wr(function(){return ue})}else if(Ie in Je){var He=Je[Ie];rr[Ne]=Fr(He,function(nr,Lr){return Ae(nr,Lr,nr.invoke(Lr,He))})}}switch(Ie){case Mc:case Zy:case Bd:case jd:case Ud:case dv:case Zd:case kc:case Sc:case Vd:return Me(function(he){return he},function(he,Ae,ue){return ue});case Gd:return Me(function(he){return re[he]},function(he,Ae,ue){var He=he.constants.compareFuncs;return Ae.def(He,"[",ue,"]")});case Yd:return Me(function(he){return he},function(he,Ae,ue){var He=Ae.def("+",ue,"[0]"),nr=Ae.def("+",ue,"[1]");return[He,nr]});case Hd:return Me(function(he){var Ae="srcRGB"in he?he.srcRGB:he.src,ue="srcAlpha"in he?he.srcAlpha:he.src,He="dstRGB"in he?he.dstRGB:he.dst,nr="dstAlpha"in he?he.dstAlpha:he.dst;return[ke[Ae],ke[He],ke[ue],ke[nr]]},function(he,Ae,ue){var He=he.constants.blendFuncs;function nr(Tt,ft){var _t=Ae.def('"',Tt,ft,'" in ',ue,"?",ue,".",Tt,ft,":",ue,".",Tt);return _t}var Lr=nr("src","RGB"),qt=nr("dst","RGB"),pt=Ae.def(He,"[",Lr,"]"),ut=Ae.def(He,"[",nr("src","Alpha"),"]"),Dt=Ae.def(He,"[",qt,"]"),Mt=Ae.def(He,"[",nr("dst","Alpha"),"]");return[pt,Dt,ut,Mt]});case Od:return Me(function(he){if(typeof he=="string")return[kr[he],kr[he]];if(typeof he=="object")return[kr[he.rgb],kr[he.alpha]]},function(he,Ae,ue){var He=he.constants.blendEquations,nr=Ae.def(),Lr=Ae.def(),qt=he.cond("typeof ",ue,'==="string"');return qt.then(nr,"=",Lr,"=",He,"[",ue,"];"),qt.else(nr,"=",He,"[",ue,".rgb];",Lr,"=",He,"[",ue,".alpha];"),Ae(qt),[nr,Lr]});case Jy:return Me(function(he){return C(4,function(Ae){return+he[Ae]})},function(he,Ae,ue){return C(4,function(He){return Ae.def("+",ue,"[",He,"]")})});case vv:return Me(function(he){return he|0},function(he,Ae,ue){return Ae.def(ue,"|0")});case uo:return Me(function(he){var Ae=he.cmp||"keep",ue=he.ref||0,He="mask"in he?he.mask:-1;return[re[Ae],ue,He]},function(he,Ae,ue){var He=he.constants.compareFuncs,nr=Ae.def('"cmp" in ',ue,"?",He,"[",ue,".cmp]",":",F),Lr=Ae.def(ue,".ref|0"),qt=Ae.def('"mask" in ',ue,"?",ue,".mask|0:-1");return[nr,Lr,qt]});case hv:case Cc:return Me(function(he){var Ae=he.fail||"keep",ue=he.zfail||"keep",He=he.zpass||"keep";return[Ie===Cc?g:h,ve[Ae],ve[ue],ve[He]]},function(he,Ae,ue){var He=he.constants.stencilOps;function nr(Lr){return Ae.def('"',Lr,'" in ',ue,"?",He,"[",ue,".",Lr,"]:",F)}return[Ie===Cc?g:h,nr("fail"),nr("zfail"),nr("zpass")]});case Jd:return Me(function(he){var Ae=he.factor|0,ue=he.units|0;return[Ae,ue]},function(he,Ae,ue){var He=Ae.def(ue,".factor|0"),nr=Ae.def(ue,".units|0");return[He,nr]});case jy:return Me(function(he){var Ae=0;return he==="front"?Ae=h:he==="back"&&(Ae=g),Ae},function(he,Ae,ue){return Ae.def(ue,'==="front"?',h,":",g)});case fv:return Me(function(he){return he},function(he,Ae,ue){return ue});case Wd:return Me(function(he){return xe[he]},function(he,Ae,ue){return Ae.def(ue+'==="cw"?'+A+":"+S)});case Xd:return Me(function(he){return he.map(function(Ae){return!!Ae})},function(he,Ae,ue){return C(4,function(He){return"!!"+ue+"["+He+"]"})});case cv:return Me(function(he){var Ae="value"in he?he.value:1,ue=!!he.invert;return[Ae,ue]},function(he,Ae,ue){var He=Ae.def('"value" in ',ue,"?+",ue,".value:1"),nr=Ae.def("!!",ue,".invert");return[He,nr]})}}),rr}function Ha(Q,le){var be=Q.static,Je=Q.dynamic,rr={};return Object.keys(be).forEach(function(Ie){var Ne=be[Ie],Me;if(typeof Ne=="number"||typeof Ne=="boolean")Me=wr(function(){return Ne});else if(typeof Ne=="function"){var he=Ne._reglType;he==="texture2d"||he==="textureCube"?Me=wr(function(Ae){return Ae.link(Ne)}):(he==="framebuffer"||he==="framebufferCube")&&(Me=wr(function(Ae){return Ae.link(Ne.color[0])}))}else xn(Ne)&&(Me=wr(function(Ae){var ue=Ae.global.def("[",C(Ne.length,function(He){return Ne[He]}),"]");return ue}));Me.value=Ne,rr[Ie]=Me}),Object.keys(Je).forEach(function(Ie){var Ne=Je[Ie];rr[Ie]=Fr(Ne,function(Me,he){return Me.invoke(he,Ne)})}),rr}function Ji(Q,le){var be=Q.static,Je=Q.dynamic,rr={};return Object.keys(be).forEach(function(Ie){var Ne=be[Ie],Me=ae.id(Ie),he=new ar;if(Se(Ne))he.state=vs,he.buffer=Ze.getBuffer(Ze.create(Ne,tu,!1,!0)),he.type=0;else{var Ae=Ze.getBuffer(Ne);if(Ae)he.state=vs,he.buffer=Ae,he.type=0;else if("constant"in Ne){var ue=Ne.constant;he.buffer="null",he.state=Ac,typeof ue=="number"?he.x=ue:Qs.forEach(function(Dt,Mt){Mt<ue.length&&(he[Dt]=ue[Mt])})}else{Se(Ne.buffer)?Ae=Ze.getBuffer(Ze.create(Ne.buffer,tu,!1,!0)):Ae=Ze.getBuffer(Ne.buffer);var He=Ne.offset|0,nr=Ne.stride|0,Lr=Ne.size|0,qt=!!Ne.normalized,pt=0;"type"in Ne&&(pt=Mn[Ne.type]);var ut=Ne.divisor|0;he.buffer=Ae,he.state=vs,he.size=Lr,he.normalized=qt,he.type=pt||Ae.dtype,he.offset=He,he.stride=nr,he.divisor=ut}}rr[Ie]=wr(function(Dt,Mt){var Tt=Dt.attribCache;if(Me in Tt)return Tt[Me];var ft={isStream:!1};return Object.keys(he).forEach(function(_t){ft[_t]=he[_t]}),he.buffer&&(ft.buffer=Dt.link(he.buffer),ft.type=ft.type||ft.buffer+".dtype"),Tt[Me]=ft,ft})}),Object.keys(Je).forEach(function(Ie){var Ne=Je[Ie];function Me(he,Ae){var ue=he.invoke(Ae,Ne),He=he.shared,nr=he.constants,Lr=He.isBufferArgs,qt=He.buffer,pt={isStream:Ae.def(!1)},ut=new ar;ut.state=vs,Object.keys(ut).forEach(function(ft){pt[ft]=Ae.def(""+ut[ft])});var Dt=pt.buffer,Mt=pt.type;Ae("if(",Lr,"(",ue,")){",pt.isStream,"=true;",Dt,"=",qt,".createStream(",tu,",",ue,");",Mt,"=",Dt,".dtype;","}else{",Dt,"=",qt,".getBuffer(",ue,");","if(",Dt,"){",Mt,"=",Dt,".dtype;",'}else if("constant" in ',ue,"){",pt.state,"=",Ac,";","if(typeof "+ue+'.constant === "number"){',pt[Qs[0]],"=",ue,".constant;",Qs.slice(1).map(function(ft){return pt[ft]}).join("="),"=0;","}else{",Qs.map(function(ft,_t){return pt[ft]+"="+ue+".constant.length>"+_t+"?"+ue+".constant["+_t+"]:0;"}).join(""),"}}else{","if(",Lr,"(",ue,".buffer)){",Dt,"=",qt,".createStream(",tu,",",ue,".buffer);","}else{",Dt,"=",qt,".getBuffer(",ue,".buffer);","}",Mt,'="type" in ',ue,"?",nr.glTypes,"[",ue,".type]:",Dt,".dtype;",pt.normalized,"=!!",ue,".normalized;");function Tt(ft){Ae(pt[ft],"=",ue,".",ft,"|0;")}return Tt("size"),Tt("offset"),Tt("stride"),Tt("divisor"),Ae("}}"),Ae.exit("if(",pt.isStream,"){",qt,".destroyStream(",Dt,");","}"),pt}rr[Ie]=Fr(Ne,Me)}),rr}function fo(Q){var le=Q.static,be=Q.dynamic,Je={};return Object.keys(le).forEach(function(rr){var Ie=le[rr];Je[rr]=wr(function(Ne,Me){return typeof Ie=="number"||typeof Ie=="boolean"?""+Ie:Ne.link(Ie)})}),Object.keys(be).forEach(function(rr){var Ie=be[rr];Je[rr]=Fr(Ie,function(Ne,Me){return Ne.invoke(Me,Ie)})}),Je}function _o(Q,le,be,Je,rr){var Ie=Q.static,Ne=Q.dynamic,Me=qn(Q,le),he=Ut(Q,rr),Ae=ia(Q,he,rr),ue=fa(Q,rr),He=xo(Q,rr),nr=Ai(Q,rr,Me);function Lr(Tt){var ft=Ae[Tt];ft&&(He[Tt]=ft)}Lr(Rl),Lr(jr(Wu));var qt=Object.keys(He).length>0,pt={framebuffer:he,draw:ue,shader:nr,state:He,dirty:qt,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pt.profile=Ht(Q,rr),pt.uniforms=Ha(be,rr),pt.drawVAO=pt.scopeVAO=ue.vao,!pt.drawVAO&&nr.program&&!Me&&oe.angle_instanced_arrays&&ue.static.elements){var ut=!0,Dt=nr.program.attributes.map(function(Tt){var ft=le.static[Tt];return ut=ut&&!!ft,ft});if(ut&&Dt.length>0){var Mt=qr.getVAO(qr.createVAO({attributes:Dt,elements:ue.static.elements}));pt.drawVAO=new me(null,null,null,function(Tt,ft){return Tt.link(Mt)}),pt.useVAO=!0}}return Me?pt.useVAO=!0:pt.attributes=Ji(le,rr),pt.context=fo(Je,rr),pt}function ci(Q,le,be){var Je=Q.shared,rr=Je.context,Ie=Q.scope();Object.keys(be).forEach(function(Ne){le.save(rr,"."+Ne);var Me=be[Ne],he=Me.append(Q,le);Array.isArray(he)?Ie(rr,".",Ne,"=[",he.join(),"];"):Ie(rr,".",Ne,"=",he,";")}),le(Ie)}function vi(Q,le,be,Je){var rr=Q.shared,Ie=rr.gl,Ne=rr.framebuffer,Me;xr&&(Me=le.def(rr.extensions,".webgl_draw_buffers"));var he=Q.constants,Ae=he.drawBuffer,ue=he.backBuffer,He;be?He=be.append(Q,le):He=le.def(Ne,".next"),Je||le("if(",He,"!==",Ne,".cur){"),le("if(",He,"){",Ie,".bindFramebuffer(",K,",",He,".framebuffer);"),xr&&le(Me,".drawBuffersWEBGL(",Ae,"[",He,".colorAttachments.length]);"),le("}else{",Ie,".bindFramebuffer(",K,",null);"),xr&&le(Me,".drawBuffersWEBGL(",ue,");"),le("}",Ne,".cur=",He,";"),Je||le("}")}function Ti(Q,le,be){var Je=Q.shared,rr=Je.gl,Ie=Q.current,Ne=Q.next,Me=Je.current,he=Je.next,Ae=Q.cond(Me,".dirty");gr.forEach(function(ue){var He=jr(ue);if(!(He in be.state)){var nr,Lr;if(He in Ne){nr=Ne[He],Lr=Ie[He];var qt=C(Kr[He].length,function(ut){return Ae.def(nr,"[",ut,"]")});Ae(Q.cond(qt.map(function(ut,Dt){return ut+"!=="+Lr+"["+Dt+"]"}).join("||")).then(rr,".",ht[He],"(",qt,");",qt.map(function(ut,Dt){return Lr+"["+Dt+"]="+ut}).join(";"),";"))}else{nr=Ae.def(he,".",He);var pt=Q.cond(nr,"!==",Me,".",He);Ae(pt),He in dr?pt(Q.cond(nr).then(rr,".enable(",dr[He],");").else(rr,".disable(",dr[He],");"),Me,".",He,"=",nr,";"):pt(rr,".",ht[He],"(",nr,");",Me,".",He,"=",nr,";")}}}),Object.keys(be.state).length===0&&Ae(Me,".dirty=false;"),le(Ae)}function ea(Q,le,be,Je){var rr=Q.shared,Ie=Q.current,Ne=rr.current,Me=rr.gl,he;Ee(Object.keys(be)).forEach(function(Ae){var ue=be[Ae];if(!(Je&&!Je(ue))){var He=ue.append(Q,le);if(dr[Ae]){var nr=dr[Ae];sr(ue)?(he=Q.link(He,{stable:!0}),le(Q.cond(he).then(Me,".enable(",nr,");").else(Me,".disable(",nr,");")),le(Ne,".",Ae,"=",he,";")):(le(Q.cond(He).then(Me,".enable(",nr,");").else(Me,".disable(",nr,");")),le(Ne,".",Ae,"=",He,";"))}else if(xn(He)){var Lr=Ie[Ae];le(Me,".",ht[Ae],"(",He,");",He.map(function(qt,pt){return Lr+"["+pt+"]="+qt}).join(";"),";")}else sr(ue)?(he=Q.link(He,{stable:!0}),le(Me,".",ht[Ae],"(",he,");",Ne,".",Ae,"=",he,";")):le(Me,".",ht[Ae],"(",He,");",Ne,".",Ae,"=",He,";")}})}function Ei(Q,le){Nr&&(Q.instancing=le.def(Q.shared.extensions,".angle_instanced_arrays"))}function ja(Q,le,be,Je,rr){var Ie=Q.shared,Ne=Q.stats,Me=Ie.current,he=Ie.timer,Ae=be.profile;function ue(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var He,nr;function Lr(Tt){He=le.def(),Tt(He,"=",ue(),";"),typeof rr=="string"?Tt(Ne,".count+=",rr,";"):Tt(Ne,".count++;"),$r&&(Je?(nr=le.def(),Tt(nr,"=",he,".getNumPendingQueries();")):Tt(he,".beginQuery(",Ne,");"))}function qt(Tt){Tt(Ne,".cpuTime+=",ue(),"-",He,";"),$r&&(Je?Tt(he,".pushScopeStats(",nr,",",he,".getNumPendingQueries(),",Ne,");"):Tt(he,".endQuery();"))}function pt(Tt){var ft=le.def(Me,".profile");le(Me,".profile=",Tt,";"),le.exit(Me,".profile=",ft,";")}var ut;if(Ae){if(sr(Ae)){Ae.enable?(Lr(le),qt(le.exit),pt("true")):pt("false");return}ut=Ae.append(Q,le),pt(ut)}else ut=le.def(Me,".profile");var Dt=Q.block();Lr(Dt),le("if(",ut,"){",Dt,"}");var Mt=Q.block();qt(Mt),le.exit("if(",ut,"){",Mt,"}")}function co(Q,le,be,Je,rr){var Ie=Q.shared;function Ne(he){switch(he){case au:case Ku:case Qu:return 2;case _n:case Ec:case _v:return 3;case bv:case t1:case a1:return 4;default:return 1}}function Me(he,Ae,ue){var He=Ie.gl,nr=le.def(he,".location"),Lr=le.def(Ie.attributes,"[",nr,"]"),qt=ue.state,pt=ue.buffer,ut=[ue.x,ue.y,ue.z,ue.w],Dt=["buffer","normalized","offset","stride"];function Mt(){le("if(!",Lr,".buffer){",He,".enableVertexAttribArray(",nr,");}");var ft=ue.type,_t;if(ue.size?_t=le.def(ue.size,"||",Ae):_t=Ae,le("if(",Lr,".type!==",ft,"||",Lr,".size!==",_t,"||",Dt.map(function(Wt){return Lr+"."+Wt+"!=="+ue[Wt]}).join("||"),"){",He,".bindBuffer(",tu,",",pt,".buffer);",He,".vertexAttribPointer(",[nr,_t,ft,ue.normalized,ue.stride,ue.offset],");",Lr,".type=",ft,";",Lr,".size=",_t,";",Dt.map(function(Wt){return Lr+"."+Wt+"="+ue[Wt]+";"}).join(""),"}"),Nr){var At=ue.divisor;le("if(",Lr,".divisor!==",At,"){",Q.instancing,".vertexAttribDivisorANGLE(",[nr,At],");",Lr,".divisor=",At,";}")}}function Tt(){le("if(",Lr,".buffer){",He,".disableVertexAttribArray(",nr,");",Lr,".buffer=null;","}if(",Qs.map(function(ft,_t){return Lr+"."+ft+"!=="+ut[_t]}).join("||"),"){",He,".vertexAttrib4f(",nr,",",ut,");",Qs.map(function(ft,_t){return Lr+"."+ft+"="+ut[_t]+";"}).join(""),"}")}qt===vs?Mt():qt===Ac?Tt():(le("if(",qt,"===",vs,"){"),Mt(),le("}else{"),Tt(),le("}"))}Je.forEach(function(he){var Ae=he.name,ue=be.attributes[Ae],He;if(ue){if(!rr(ue))return;He=ue.append(Q,le)}else{if(!rr(Jr))return;var nr=Q.scopeAttrib(Ae);He={},Object.keys(new ar).forEach(function(Lr){He[Lr]=le.def(nr,".",Lr)})}Me(Q.link(he),Ne(he.info.type),He)})}function wo(Q,le,be,Je,rr,Ie){for(var Ne=Q.shared,Me=Ne.gl,he,Ae=0;Ae<Je.length;++Ae){var ue=Je[Ae],He=ue.name,nr=ue.info.type,Lr=be.uniforms[He],qt=Q.link(ue),pt=qt+".location",ut;if(Lr){if(!rr(Lr))continue;if(sr(Lr)){var Dt=Lr.value;if(nr===Dc||nr===l1){var Mt=Q.link(Dt._texture||Dt.color[0]._texture);le(Me,".uniform1i(",pt,",",Mt+".bind());"),le.exit(Mt,".unbind();")}else if(nr===n1||nr===i1||nr===o1){var Tt=Q.global.def("new Float32Array(["+Array.prototype.slice.call(Dt)+"])"),ft=2;nr===i1?ft=3:nr===o1&&(ft=4),le(Me,".uniformMatrix",ft,"fv(",pt,",false,",Tt,");")}else{switch(nr){case r1:he="1f";break;case au:he="2f";break;case _n:he="3f";break;case bv:he="4f";break;case xv:he="1i";break;case ps:he="1i";break;case Qu:he="2i";break;case Ku:he="2i";break;case _v:he="3i";break;case Ec:he="3i";break;case a1:he="4i";break;case t1:he="4i";break}le(Me,".uniform",he,"(",pt,",",xn(Dt)?Array.prototype.slice.call(Dt):Dt,");")}continue}else ut=Lr.append(Q,le)}else{if(!rr(Jr))continue;ut=le.def(Ne.uniforms,"[",ae.id(He),"]")}nr===Dc?le("if(",ut,"&&",ut,'._reglType==="framebuffer"){',ut,"=",ut,".color[0];","}"):nr===l1&&le("if(",ut,"&&",ut,'._reglType==="framebufferCube"){',ut,"=",ut,".color[0];","}");var _t=1;switch(nr){case Dc:case l1:var At=le.def(ut,"._texture");le(Me,".uniform1i(",pt,",",At,".bind());"),le.exit(At,".unbind();");continue;case ps:case xv:he="1i";break;case Ku:case Qu:he="2i",_t=2;break;case Ec:case _v:he="3i",_t=3;break;case t1:case a1:he="4i",_t=4;break;case r1:he="1f";break;case au:he="2f",_t=2;break;case _n:he="3f",_t=3;break;case bv:he="4f",_t=4;break;case n1:he="Matrix2fv";break;case i1:he="Matrix3fv";break;case o1:he="Matrix4fv";break}if(he.charAt(0)==="M"){le(Me,".uniform",he,"(",pt,",");var Wt=Math.pow(nr-n1+2,2),pn=Q.global.def("new Float32Array(",Wt,")");Array.isArray(ut)?le("false,(",C(Wt,function(sl){return pn+"["+sl+"]="+ut[sl]}),",",pn,")"):le("false,(Array.isArray(",ut,")||",ut," instanceof Float32Array)?",ut,":(",C(Wt,function(sl){return pn+"["+sl+"]="+ut+"["+sl+"]"}),",",pn,")"),le(");")}else if(_t>1){for(var To=[],nu=[],ef=0;ef<_t;++ef)Array.isArray(ut)?nu.push(ut[ef]):nu.push(le.def(ut+"["+ef+"]")),Ie&&To.push(le.def());Ie&&le("if(!",Q.batchId,"||",To.map(function(sl,u1){return sl+"!=="+nu[u1]}).join("||"),"){",To.map(function(sl,u1){return sl+"="+nu[u1]+";"}).join("")),le(Me,".uniform",he,"(",pt,",",nu.join(","),");"),Ie&&le("}")}else{if(Ie){var rf=le.def();le("if(!",Q.batchId,"||",rf,"!==",ut,"){",rf,"=",ut,";")}le(Me,".uniform",he,"(",pt,",",ut,");"),Ie&&le("}")}}}function Ao(Q,le,be,Je){var rr=Q.shared,Ie=rr.gl,Ne=rr.draw,Me=Je.draw;function he(){var _t=Me.elements,At,Wt=le;return _t?((_t.contextDep&&Je.contextDynamic||_t.propDep)&&(Wt=be),At=_t.append(Q,Wt),Me.elementsActive&&Wt("if("+At+")"+Ie+".bindBuffer("+e1+","+At+".buffer.buffer);")):(At=Wt.def(),Wt(At,"=",Ne,".",ru,";","if(",At,"){",Ie,".bindBuffer(",e1,",",At,".buffer.buffer);}","else if(",rr.vao,".currentVAO){",At,"=",Q.shared.elements+".getElements("+rr.vao,".currentVAO.elements);",nt?"":"if("+At+")"+Ie+".bindBuffer("+e1+","+At+".buffer.buffer);","}")),At}function Ae(){var _t=Me.count,At,Wt=le;return _t?((_t.contextDep&&Je.contextDynamic||_t.propDep)&&(Wt=be),At=_t.append(Q,Wt)):At=Wt.def(Ne,".",$u),At}var ue=he();function He(_t){var At=Me[_t];return At?At.contextDep&&Je.contextDynamic||At.propDep?At.append(Q,be):At.append(Q,le):le.def(Ne,".",_t)}var nr=He(ju),Lr=He($d),qt=Ae();if(typeof qt=="number"){if(qt===0)return}else be("if(",qt,"){"),be.exit("}");var pt,ut;Nr&&(pt=He(Zi),ut=Q.instancing);var Dt=ue+".type",Mt=Me.elements&&sr(Me.elements)&&!Me.vaoActive;function Tt(){function _t(){be(ut,".drawElementsInstancedANGLE(",[nr,qt,Dt,Lr+"<<(("+Dt+"-"+Nd+")>>1)",pt],");")}function At(){be(ut,".drawArraysInstancedANGLE(",[nr,Lr,qt,pt],");")}ue&&ue!=="null"?Mt?_t():(be("if(",ue,"){"),_t(),be("}else{"),At(),be("}")):At()}function ft(){function _t(){be(Ie+".drawElements("+[nr,qt,Dt,Lr+"<<(("+Dt+"-"+Nd+")>>1)"]+");")}function At(){be(Ie+".drawArrays("+[nr,Lr,qt]+");")}ue&&ue!=="null"?Mt?_t():(be("if(",ue,"){"),_t(),be("}else{"),At(),be("}")):At()}Nr&&(typeof pt!="number"||pt>=0)?typeof pt=="string"?(be("if(",pt,">0){"),Tt(),be("}else if(",pt,"<0){"),ft(),be("}")):Tt():ft()}function Jt(Q,le,be,Je,rr){var Ie=bt(),Ne=Ie.proc("body",rr);return Nr&&(Ie.instancing=Ne.def(Ie.shared.extensions,".angle_instanced_arrays")),Q(Ie,Ne,be,Je),Ie.compile().body}function ya(Q,le,be,Je){Ei(Q,le),be.useVAO?be.drawVAO?le(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,le),");"):le(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(le(Q.shared.vao,".setVAO(null);"),co(Q,le,be,Je.attributes,function(){return!0})),wo(Q,le,be,Je.uniforms,function(){return!0},!1),Ao(Q,le,le,be)}function dn(Q,le){var be=Q.proc("draw",1);Ei(Q,be),ci(Q,be,le.context),vi(Q,be,le.framebuffer),Ti(Q,be,le),ea(Q,be,le.state),ja(Q,be,le,!1,!0);var Je=le.shader.progVar.append(Q,be);if(be(Q.shared.gl,".useProgram(",Je,".program);"),le.shader.program)ya(Q,be,le,le.shader.program);else{be(Q.shared.vao,".setVAO(null);");var rr=Q.global.def("{}"),Ie=be.def(Je,".id"),Ne=be.def(rr,"[",Ie,"]");be(Q.cond(Ne).then(Ne,".call(this,a0);").else(Ne,"=",rr,"[",Ie,"]=",Q.link(function(Me){return Jt(ya,Q,le,Me,1)}),"(",Je,");",Ne,".call(this,a0);"))}Object.keys(le.state).length>0&&be(Q.shared.current,".dirty=true;"),Q.shared.vao&&be(Q.shared.vao,".setVAO(null);")}function ie(Q,le,be,Je){Q.batchId="a1",Ei(Q,le);function rr(){return!0}co(Q,le,be,Je.attributes,rr),wo(Q,le,be,Je.uniforms,rr,!1),Ao(Q,le,le,be)}function je(Q,le,be,Je){Ei(Q,le);var rr=be.contextDep,Ie=le.def(),Ne="a0",Me="a1",he=le.def();Q.shared.props=he,Q.batchId=Ie;var Ae=Q.scope(),ue=Q.scope();le(Ae.entry,"for(",Ie,"=0;",Ie,"<",Me,";++",Ie,"){",he,"=",Ne,"[",Ie,"];",ue,"}",Ae.exit);function He(Dt){return Dt.contextDep&&rr||Dt.propDep}function nr(Dt){return!He(Dt)}if(be.needsContext&&ci(Q,ue,be.context),be.needsFramebuffer&&vi(Q,ue,be.framebuffer),ea(Q,ue,be.state,He),be.profile&&He(be.profile)&&ja(Q,ue,be,!1,!0),Je)be.useVAO?be.drawVAO?He(be.drawVAO)?ue(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,ue),");"):Ae(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,Ae),");"):Ae(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(Ae(Q.shared.vao,".setVAO(null);"),co(Q,Ae,be,Je.attributes,nr),co(Q,ue,be,Je.attributes,He)),wo(Q,Ae,be,Je.uniforms,nr,!1),wo(Q,ue,be,Je.uniforms,He,!0),Ao(Q,Ae,ue,be);else{var Lr=Q.global.def("{}"),qt=be.shader.progVar.append(Q,ue),pt=ue.def(qt,".id"),ut=ue.def(Lr,"[",pt,"]");ue(Q.shared.gl,".useProgram(",qt,".program);","if(!",ut,"){",ut,"=",Lr,"[",pt,"]=",Q.link(function(Dt){return Jt(ie,Q,be,Dt,2)}),"(",qt,");}",ut,".call(this,a0[",Ie,"],",Ie,");")}}function Ke(Q,le){var be=Q.proc("batch",2);Q.batchId="0",Ei(Q,be);var Je=!1,rr=!0;Object.keys(le.context).forEach(function(Lr){Je=Je||le.context[Lr].propDep}),Je||(ci(Q,be,le.context),rr=!1);var Ie=le.framebuffer,Ne=!1;Ie?(Ie.propDep?Je=Ne=!0:Ie.contextDep&&Je&&(Ne=!0),Ne||vi(Q,be,Ie)):vi(Q,be,null),le.state.viewport&&le.state.viewport.propDep&&(Je=!0);function Me(Lr){return Lr.contextDep&&Je||Lr.propDep}Ti(Q,be,le),ea(Q,be,le.state,function(Lr){return!Me(Lr)}),(!le.profile||!Me(le.profile))&&ja(Q,be,le,!1,"a1"),le.contextDep=Je,le.needsContext=rr,le.needsFramebuffer=Ne;var he=le.shader.progVar;if(he.contextDep&&Je||he.propDep)je(Q,be,le,null);else{var Ae=he.append(Q,be);if(be(Q.shared.gl,".useProgram(",Ae,".program);"),le.shader.program)je(Q,be,le,le.shader.program);else{be(Q.shared.vao,".setVAO(null);");var ue=Q.global.def("{}"),He=be.def(Ae,".id"),nr=be.def(ue,"[",He,"]");be(Q.cond(nr).then(nr,".call(this,a0,a1);").else(nr,"=",ue,"[",He,"]=",Q.link(function(Lr){return Jt(je,Q,le,Lr,2)}),"(",Ae,");",nr,".call(this,a0,a1);"))}}Object.keys(le.state).length>0&&be(Q.shared.current,".dirty=true;"),Q.shared.vao&&be(Q.shared.vao,".setVAO(null);")}function wt(Q,le){var be=Q.proc("scope",3);Q.batchId="a2";var Je=Q.shared,rr=Je.current;if(ci(Q,be,le.context),le.framebuffer&&le.framebuffer.append(Q,be),Ee(Object.keys(le.state)).forEach(function(Me){var he=le.state[Me],Ae=he.append(Q,be);xn(Ae)?Ae.forEach(function(ue,He){dt(ue)?be.set(Q.next[Me],"["+He+"]",ue):be.set(Q.next[Me],"["+He+"]",Q.link(ue,{stable:!0}))}):sr(he)?be.set(Je.next,"."+Me,Q.link(Ae,{stable:!0})):be.set(Je.next,"."+Me,Ae)}),ja(Q,be,le,!0,!0),[ru,$d,$u,Zi,ju].forEach(function(Me){var he=le.draw[Me];if(he){var Ae=he.append(Q,be);dt(Ae)?be.set(Je.draw,"."+Me,Ae):be.set(Je.draw,"."+Me,Q.link(Ae),{stable:!0})}}),Object.keys(le.uniforms).forEach(function(Me){var he=le.uniforms[Me].append(Q,be);Array.isArray(he)&&(he="["+he.map(function(Ae){return dt(Ae)?Ae:Q.link(Ae,{stable:!0})})+"]"),be.set(Je.uniforms,"["+Q.link(ae.id(Me),{stable:!0})+"]",he)}),Object.keys(le.attributes).forEach(function(Me){var he=le.attributes[Me].append(Q,be),Ae=Q.scopeAttrib(Me);Object.keys(new ar).forEach(function(ue){be.set(Ae,"."+ue,he[ue])})}),le.scopeVAO){var Ie=le.scopeVAO.append(Q,be);dt(Ie)?be.set(Je.vao,".targetVAO",Ie):be.set(Je.vao,".targetVAO",Q.link(Ie,{stable:!0}))}function Ne(Me){var he=le.shader[Me];if(he){var Ae=he.append(Q,be);dt(Ae)?be.set(Je.shader,"."+Me,Ae):be.set(Je.shader,"."+Me,Q.link(Ae,{stable:!0}))}}Ne(eu),Ne(Ju),Object.keys(le.state).length>0&&(be(rr,".dirty=true;"),be.exit(rr,".dirty=true;")),be("a1(",Q.shared.context,",a0,",Q.batchId,");")}function ha(Q){if(!(typeof Q!="object"||xn(Q))){for(var le=Object.keys(Q),be=0;be<le.length;++be)if(v.isDynamic(Q[le[be]]))return!0;return!1}}function Ua(Q,le,be){var Je=le.static[be];if(!Je||!ha(Je))return;var rr=Q.global,Ie=Object.keys(Je),Ne=!1,Me=!1,he=!1,Ae=Q.global.def("{}");Ie.forEach(function(He){var nr=Je[He];if(v.isDynamic(nr)){typeof nr=="function"&&(nr=Je[He]=v.unbox(nr));var Lr=Fr(nr,null);Ne=Ne||Lr.thisDep,he=he||Lr.propDep,Me=Me||Lr.contextDep}else{switch(rr(Ae,".",He,"="),typeof nr){case"number":rr(nr);break;case"string":rr('"',nr,'"');break;case"object":Array.isArray(nr)&&rr("[",nr.join(),"]");break;default:rr(Q.link(nr));break}rr(";")}});function ue(He,nr){Ie.forEach(function(Lr){var qt=Je[Lr];if(v.isDynamic(qt)){var pt=He.invoke(nr,qt);nr(Ae,".",Lr,"=",pt,";")}})}le.dynamic[be]=new v.DynamicVariable(uv,{thisDep:Ne,contextDep:Me,propDep:he,ref:Ae,append:ue}),delete le.static[be]}function xt(Q,le,be,Je,rr){var Ie=bt();Ie.stats=Ie.link(rr),Object.keys(le.static).forEach(function(Me){Ua(Ie,le,Me)}),Ky.forEach(function(Me){Ua(Ie,Q,Me)});var Ne=_o(Q,le,be,Je,Ie);return Ne.shader.program&&(Ne.shader.program.attributes.sort(function(Me,he){return Me.name<he.name?-1:1}),Ne.shader.program.uniforms.sort(function(Me,he){return Me.name<he.name?-1:1})),dn(Ie,Ne),wt(Ie,Ne),Ke(Ie,Ne),e(Ie.compile(),{destroy:function(){Ne.shader.program.destroy()}})}return{next:Lt,current:Kr,procs:(function(){var Q=bt(),le=Q.proc("poll"),be=Q.proc("refresh"),Je=Q.block();le(Je),be(Je);var rr=Q.shared,Ie=rr.gl,Ne=rr.next,Me=rr.current;Je(Me,".dirty=false;"),vi(Q,le),vi(Q,be,null,!0);var he;Nr&&(he=Q.link(Nr)),oe.oes_vertex_array_object&&be(Q.link(oe.oes_vertex_array_object),".bindVertexArrayOES(null);");var Ae=be.def(rr.attributes),ue=be.def(0),He=Q.cond(ue,".buffer");He.then(Ie,".enableVertexAttribArray(i);",Ie,".bindBuffer(",tu,",",ue,".buffer.buffer);",Ie,".vertexAttribPointer(i,",ue,".size,",ue,".type,",ue,".normalized,",ue,".stride,",ue,".offset);").else(Ie,".disableVertexAttribArray(i);",Ie,".vertexAttrib4f(i,",ue,".x,",ue,".y,",ue,".z,",ue,".w);",ue,".buffer=null;");var nr=Q.link(Be.maxAttributes,{stable:!0});return be("for(var i=0;i<",nr,";++i){",ue,"=",Ae,"[i];",He,"}"),Nr&&be("for(var i=0;i<",nr,";++i){",he,".vertexAttribDivisorANGLE(i,",Ae,"[i].divisor);","}"),be(Q.shared.vao,".currentVAO=null;",Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"),Object.keys(dr).forEach(function(Lr){var qt=dr[Lr],pt=Je.def(Ne,".",Lr),ut=Q.block();ut("if(",pt,"){",Ie,".enable(",qt,")}else{",Ie,".disable(",qt,")}",Me,".",Lr,"=",pt,";"),be(ut),le("if(",pt,"!==",Me,".",Lr,"){",ut,"}")}),Object.keys(ht).forEach(function(Lr){var qt=ht[Lr],pt=Kr[Lr],ut,Dt,Mt=Q.block();if(Mt(Ie,".",qt,"("),xn(pt)){var Tt=pt.length;ut=Q.global.def(Ne,".",Lr),Dt=Q.global.def(Me,".",Lr),Mt(C(Tt,function(ft){return ut+"["+ft+"]"}),");",C(Tt,function(ft){return Dt+"["+ft+"]="+ut+"["+ft+"];"}).join("")),le("if(",C(Tt,function(ft){return ut+"["+ft+"]!=="+Dt+"["+ft+"]"}).join("||"),"){",Mt,"}")}else ut=Je.def(Ne,".",Lr),Dt=Je.def(Me,".",Lr),Mt(ut,");",Me,".",Lr,"=",ut,";"),le("if(",ut,"!==",Dt,"){",Mt,"}");be(Mt)}),Q.compile()})(),compile:xt}}function vt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Bt=34918,gt=34919,Ft=35007,ma=function(H,ae){if(!ae.ext_disjoint_timer_query)return null;var oe=[];function Be(){return oe.pop()||ae.ext_disjoint_timer_query.createQueryEXT()}function Ze(kr){oe.push(kr)}var er=[];function Xe(kr){var Nr=Be();ae.ext_disjoint_timer_query.beginQueryEXT(Ft,Nr),er.push(Nr),$r(er.length-1,er.length,kr)}function yr(){ae.ext_disjoint_timer_query.endQueryEXT(Ft)}function Dr(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var qr=[];function Rr(){return qr.pop()||new Dr}function Ct(kr){qr.push(kr)}var mt=[];function $r(kr,Nr,xr){var nt=Rr();nt.startQueryIndex=kr,nt.endQueryIndex=Nr,nt.sum=0,nt.stats=xr,mt.push(nt)}var fr=[],Pe=[];function ar(){var kr,Nr,xr=er.length;if(xr!==0){Pe.length=Math.max(Pe.length,xr+1),fr.length=Math.max(fr.length,xr+1),fr[0]=0,Pe[0]=0;var nt=0;for(kr=0,Nr=0;Nr<er.length;++Nr){var Kr=er[Nr];ae.ext_disjoint_timer_query.getQueryObjectEXT(Kr,gt)?(nt+=ae.ext_disjoint_timer_query.getQueryObjectEXT(Kr,Bt),Ze(Kr)):er[kr++]=Kr,fr[Nr+1]=nt,Pe[Nr+1]=kr}for(er.length=kr,kr=0,Nr=0;Nr<mt.length;++Nr){var Lt=mt[Nr],gr=Lt.startQueryIndex,dr=Lt.endQueryIndex;Lt.sum+=fr[dr]-fr[gr];var ht=Pe[gr],jr=Pe[dr];jr===ht?(Lt.stats.gpuTime+=Lt.sum/1e6,Ct(Lt)):(Lt.startQueryIndex=ht,Lt.endQueryIndex=jr,mt[kr++]=Lt)}mt.length=kr}}return{beginQuery:Xe,endQuery:yr,pushScopeStats:$r,update:ar,getNumPendingQueries:function(){return er.length},clear:function(){oe.push.apply(oe,er);for(var kr=0;kr<oe.length;kr++)ae.ext_disjoint_timer_query.deleteQueryEXT(oe[kr]);er.length=0,oe.length=0},restore:function(){er.length=0,oe.length=0}}},wn=16384,Ta=256,Br=1024,Ot=34962,Zt="webglcontextlost",va="webglcontextrestored",Ja=1,Dn=2,fi=3;function wi(H,ae){for(var oe=0;oe<H.length;++oe)if(H[oe]===ae)return oe;return-1}function Bi(H){var ae=k(H);if(!ae)return null;var oe=ae.gl,Be=oe.getContextAttributes(),Ze=oe.isContextLost(),er=M(oe,ae);if(!er)return null;var Xe=m(),yr=vt(),Dr=ae.cachedCode||{},qr=er.extensions,Rr=ma(oe,qr),Ct=p(),mt=oe.drawingBufferWidth,$r=oe.drawingBufferHeight,fr={tick:0,time:0,viewportWidth:mt,viewportHeight:$r,framebufferWidth:mt,framebufferHeight:$r,drawingBufferWidth:mt,drawingBufferHeight:$r,pixelRatio:ae.pixelRatio},Pe={},ar={elements:null,primitive:4,count:-1,offset:0,instances:-1},kr=Er(oe,qr),Nr=Qt(oe,yr,ae,Kr),xr=fc(oe,qr,Nr,yr),nt=Ed(oe,qr,kr,yr,Nr,xr,ar);function Kr(Jt){return nt.destroyBuffer(Jt)}var Lt=Fy(oe,Xe,yr,ae),gr=xy(oe,qr,kr,function(){jr.procs.poll()},fr,yr,ae),dr=Gx(oe,qr,kr,yr,ae),ht=Zx(oe,qr,kr,gr,dr,yr),jr=ct(oe,Xe,qr,kr,Nr,xr,gr,ht,Pe,nt,Lt,ar,fr,Rr,Dr,ae),Hr=Py(oe,ht,jr.procs.poll,fr,Be,qr,kr),Xr=jr.next,dt=oe.canvas,Et=[],Xt=[],rt=[],bt=[ae.onDestroy],Ht=null;function Ut(){if(Et.length===0){Rr&&Rr.update(),Ht=null;return}Ht=d.next(Ut),Ti();for(var Jt=Et.length-1;Jt>=0;--Jt){var ya=Et[Jt];ya&&ya(fr,null,0)}oe.flush(),Rr&&Rr.update()}function ia(){!Ht&&Et.length>0&&(Ht=d.next(Ut))}function qn(){Ht&&(d.cancel(Ut),Ht=null)}function Ai(Jt){Jt.preventDefault(),Ze=!0,qn(),Xt.forEach(function(ya){ya()})}function fa(Jt){oe.getError(),Ze=!1,er.restore(),Lt.restore(),Nr.restore(),gr.restore(),dr.restore(),ht.restore(),nt.restore(),Rr&&Rr.restore(),jr.procs.refresh(),ia(),rt.forEach(function(ya){ya()})}dt&&(dt.addEventListener(Zt,Ai,!1),dt.addEventListener(va,fa,!1));function xo(){Et.length=0,qn(),dt&&(dt.removeEventListener(Zt,Ai),dt.removeEventListener(va,fa)),Lt.clear(),ht.clear(),dr.clear(),nt.clear(),gr.clear(),xr.clear(),Nr.clear(),Rr&&Rr.clear(),bt.forEach(function(Jt){Jt()})}function Ha(Jt){function ya(Ie){var Ne=e({},Ie);delete Ne.uniforms,delete Ne.attributes,delete Ne.context,delete Ne.vao,"stencil"in Ne&&Ne.stencil.op&&(Ne.stencil.opBack=Ne.stencil.opFront=Ne.stencil.op,delete Ne.stencil.op);function Me(he){if(he in Ne){var Ae=Ne[he];delete Ne[he],Object.keys(Ae).forEach(function(ue){Ne[he+"."+ue]=Ae[ue]})}}return Me("blend"),Me("depth"),Me("cull"),Me("stencil"),Me("polygonOffset"),Me("scissor"),Me("sample"),"vao"in Ie&&(Ne.vao=Ie.vao),Ne}function dn(Ie,Ne){var Me={},he={};return Object.keys(Ie).forEach(function(Ae){var ue=Ie[Ae];if(v.isDynamic(ue)){he[Ae]=v.unbox(ue,Ae);return}else if(Ne&&Array.isArray(ue)){for(var He=0;He<ue.length;++He)if(v.isDynamic(ue[He])){he[Ae]=v.unbox(ue,Ae);return}}Me[Ae]=ue}),{dynamic:he,static:Me}}var ie=dn(Jt.context||{},!0),je=dn(Jt.uniforms||{},!0),Ke=dn(Jt.attributes||{},!1),wt=dn(ya(Jt),!1),ha={gpuTime:0,cpuTime:0,count:0},Ua=jr.compile(wt,Ke,je,ie,ha),xt=Ua.draw,Q=Ua.batch,le=Ua.scope,be=[];function Je(Ie){for(;be.length<Ie;)be.push(null);return be}function rr(Ie,Ne){var Me;if(typeof Ie=="function")return le.call(this,null,Ie,0);if(typeof Ne=="function")if(typeof Ie=="number")for(Me=0;Me<Ie;++Me)le.call(this,null,Ne,Me);else if(Array.isArray(Ie))for(Me=0;Me<Ie.length;++Me)le.call(this,Ie[Me],Ne,Me);else return le.call(this,Ie,Ne,0);else if(typeof Ie=="number"){if(Ie>0)return Q.call(this,Je(Ie|0),Ie|0)}else if(Array.isArray(Ie)){if(Ie.length)return Q.call(this,Ie,Ie.length)}else return xt.call(this,Ie)}return e(rr,{stats:ha,destroy:function(){Ua.destroy()}})}var Ji=ht.setFBO=Ha({framebuffer:v.define.call(null,Ja,"framebuffer")});function fo(Jt,ya){var dn=0;jr.procs.poll();var ie=ya.color;ie&&(oe.clearColor(+ie[0]||0,+ie[1]||0,+ie[2]||0,+ie[3]||0),dn|=wn),"depth"in ya&&(oe.clearDepth(+ya.depth),dn|=Ta),"stencil"in ya&&(oe.clearStencil(ya.stencil|0),dn|=Br),oe.clear(dn)}function _o(Jt){if("framebuffer"in Jt)if(Jt.framebuffer&&Jt.framebuffer_reglType==="framebufferCube")for(var ya=0;ya<6;++ya)Ji(e({framebuffer:Jt.framebuffer.faces[ya]},Jt),fo);else Ji(Jt,fo);else fo(null,Jt)}function ci(Jt){Et.push(Jt);function ya(){var dn=wi(Et,Jt);function ie(){var je=wi(Et,ie);Et[je]=Et[Et.length-1],Et.length-=1,Et.length<=0&&qn()}Et[dn]=ie}return ia(),{cancel:ya}}function vi(){var Jt=Xr.viewport,ya=Xr.scissor_box;Jt[0]=Jt[1]=ya[0]=ya[1]=0,fr.viewportWidth=fr.framebufferWidth=fr.drawingBufferWidth=Jt[2]=ya[2]=oe.drawingBufferWidth,fr.viewportHeight=fr.framebufferHeight=fr.drawingBufferHeight=Jt[3]=ya[3]=oe.drawingBufferHeight}function Ti(){fr.tick+=1,fr.time=Ei(),vi(),jr.procs.poll()}function ea(){gr.refresh(),vi(),jr.procs.refresh(),Rr&&Rr.update()}function Ei(){return(p()-Ct)/1e3}ea();function ja(Jt,ya){var dn;switch(Jt){case"frame":return ci(ya);case"lost":dn=Xt;break;case"restore":dn=rt;break;case"destroy":dn=bt;break;default:}return dn.push(ya),{cancel:function(){for(var ie=0;ie<dn.length;++ie)if(dn[ie]===ya){dn[ie]=dn[dn.length-1],dn.pop();return}}}}function co(){return Dr}function wo(Jt){Object.entries(Jt).forEach(function(ya){Dr[ya[0]]=ya[1]})}var Ao=e(Ha,{clear:_o,prop:v.define.bind(null,Ja),context:v.define.bind(null,Dn),this:v.define.bind(null,fi),draw:Ha({}),buffer:function(Jt){return Nr.create(Jt,Ot,!1,!1)},elements:function(Jt){return xr.create(Jt,!1)},texture:gr.create2D,cube:gr.createCube,renderbuffer:dr.create,framebuffer:ht.create,framebufferCube:ht.createCube,vao:nt.createVAO,attributes:Be,frame:ci,on:ja,limits:kr,hasExtension:function(Jt){return kr.extensions.indexOf(Jt.toLowerCase())>=0},read:Hr,destroy:xo,_gl:oe,_refresh:ea,poll:function(){Ti(),Rr&&Rr.update()},now:Ei,stats:yr,getCachedCode:co,preloadCachedCode:wo});return ae.onDone(null,Ao),Ao}return Bi}))});var _K=I((yBe,xK)=>{"use strict";var tke=zs();xK.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},gK(r)?r={container:r}:ake(r)?r={container:r}:nke(r)?r={gl:r}:r=tke(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}gK(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=bK(),r.container.appendChild(r.canvas),yK(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=bK(),r.container.appendChild(r.canvas),yK(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function yK(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function gK(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function ake(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function nke(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function bK(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var AK=I((gBe,wK)=>{"use strict";var ike=LT(),oke=[32,126];wK.exports=lke;function lke(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||oke;if(a&&typeof a!="string"&&(a=ike(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var u=t.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,t.width,t.height),u.font=a,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var f=n[0]/2,c=n[1]/2,l=0;l<i.length;l++)u.fillText(i[l],f,c),(f+=n[0])>r[0]-n[0]/2&&(f=n[0]/2,c+=n[1]);return t}});var FT=I($n=>{"use strict";"use restrict";var RT=32;$n.INT_BITS=RT;$n.INT_MAX=2147483647;$n.INT_MIN=-1<<RT-1;$n.sign=function(e){return(e>0)-(e<0)};$n.abs=function(e){var r=e>>RT-1;return(e^r)-r};$n.min=function(e,r){return r^(e^r)&-(e<r)};$n.max=function(e,r){return e^(e^r)&-(e<r)};$n.isPow2=function(e){return!(e&e-1)&&!!e};$n.log2=function(e){var r,t;return r=(e>65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};$n.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};$n.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function TK(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}$n.countTrailingZeros=TK;$n.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};$n.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};$n.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Om=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<<n&255}})(Om);$n.reverse=function(e){return Om[e&255]<<24|Om[e>>>8&255]<<16|Om[e>>>16&255]<<8|Om[e>>>24&255]};$n.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};$n.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};$n.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};$n.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};$n.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>TK(e)+1}});var SK=I((xBe,kK)=>{"use strict";function MK(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i<a;++i)n[i]=r;else for(i=0;i<a;++i)n[i]=MK(e,r,t+1);return n}function ske(e,r){var t,a;for(t=new Array(e),a=0;a<e;++a)t[a]=r;return t}function uke(e,r){switch(typeof r=="undefined"&&(r=0),typeof e){case"number":if(e>0)return ske(e|0,r);break;case"object":if(typeof e.length=="number")return MK(e,r,0);break}return[]}kK.exports=uke});var EK=I(Zb=>{"use strict";Zb.byteLength=cke;Zb.toByteArray=hke;Zb.fromByteArray=mke;var Bs=[],Sl=[],fke=typeof Uint8Array!="undefined"?Uint8Array:Array,PT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N0=0,CK=PT.length;N0<CK;++N0)Bs[N0]=PT[N0],Sl[PT.charCodeAt(N0)]=N0;var N0,CK;Sl[45]=62;Sl[95]=63;function LK(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 cke(e){var r=LK(e),t=r[0],a=r[1];return(t+a)*3/4-a}function vke(e,r,t){return(r+t)*3/4-t}function hke(e){var r,t=LK(e),a=t[0],n=t[1],i=new fke(vke(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s<l;s+=4)r=Sl[e.charCodeAt(s)]<<18|Sl[e.charCodeAt(s+1)]<<12|Sl[e.charCodeAt(s+2)]<<6|Sl[e.charCodeAt(s+3)],i[o++]=r>>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Sl[e.charCodeAt(s)]<<2|Sl[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Sl[e.charCodeAt(s)]<<10|Sl[e.charCodeAt(s+1)]<<4|Sl[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function dke(e){return Bs[e>>18&63]+Bs[e>>12&63]+Bs[e>>6&63]+Bs[e&63]}function pke(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(dke(a));return n.join("")}function mke(e){for(var r,t=e.length,a=t%3,n=[],i=16383,o=0,l=t-a;o<l;o+=i)n.push(pke(e,o,o+i>l?l:o+i));return a===1?(r=e[t-1],n.push(Bs[r>>2]+Bs[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Bs[r>>10]+Bs[r>>4&63]+Bs[r<<2&63]+"=")),n.join("")}});var DK=I(NT=>{NT.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)};NT.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,m=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]|=m*128}});var ZK=I(ld=>{"use strict";var zT=EK(),id=DK(),qK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ld.Buffer=br;ld.SlowBuffer=wke;ld.INSPECT_MAX_BYTES=50;var Jb=2147483647;ld.kMaxLength=Jb;br.TYPED_ARRAY_SUPPORT=yke();!br.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 yke(){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(br.prototype,"parent",{enumerable:!0,get:function(){if(br.isBuffer(this))return this.buffer}});Object.defineProperty(br.prototype,"offset",{enumerable:!0,get:function(){if(br.isBuffer(this))return this.byteOffset}});function Eu(e){if(e>Jb)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,br.prototype),r}function br(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 HT(e)}return NK(e,r,t)}br.poolSize=8192;function NK(e,r,t){if(typeof e=="string")return bke(e,r);if(ArrayBuffer.isView(e))return xke(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(Os(e,ArrayBuffer)||e&&Os(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Os(e,SharedArrayBuffer)||e&&Os(e.buffer,SharedArrayBuffer)))return BT(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 br.from(a,r,t);let n=_ke(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return br.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)}br.from=function(e,r,t){return NK(e,r,t)};Object.setPrototypeOf(br.prototype,Uint8Array.prototype);Object.setPrototypeOf(br,Uint8Array);function zK(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 gke(e,r,t){return zK(e),e<=0?Eu(e):r!==void 0?typeof t=="string"?Eu(e).fill(r,t):Eu(e).fill(r):Eu(e)}br.alloc=function(e,r,t){return gke(e,r,t)};function HT(e){return zK(e),Eu(e<0?0:UT(e)|0)}br.allocUnsafe=function(e){return HT(e)};br.allocUnsafeSlow=function(e){return HT(e)};function bke(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!br.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=IK(e,r)|0,a=Eu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function IT(e){let r=e.length<0?0:UT(e.length)|0,t=Eu(r);for(let a=0;a<r;a+=1)t[a]=e[a]&255;return t}function xke(e){if(Os(e,Uint8Array)){let r=new Uint8Array(e);return BT(r.buffer,r.byteOffset,r.byteLength)}return IT(e)}function BT(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,br.prototype),a}function _ke(e){if(br.isBuffer(e)){let r=UT(e.length)|0,t=Eu(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||YT(e.length)?Eu(0):IT(e);if(e.type==="Buffer"&&Array.isArray(e.data))return IT(e.data)}function UT(e){if(e>=Jb)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Jb.toString(16)+" bytes");return e|0}function wke(e){return+e!=e&&(e=0),br.alloc(+e)}br.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==br.prototype};br.compare=function(r,t){if(Os(r,Uint8Array)&&(r=br.from(r,r.offset,r.byteLength)),Os(t,Uint8Array)&&(t=br.from(t,t.offset,t.byteLength)),!br.isBuffer(r)||!br.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};br.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}};br.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return br.alloc(0);let a;if(t===void 0)for(t=0,a=0;a<r.length;++a)t+=r[a].length;let n=br.allocUnsafe(t),i=0;for(a=0;a<r.length;++a){let o=r[a];if(Os(o,Uint8Array))i+o.length>n.length?(br.isBuffer(o)||(o=br.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(br.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function IK(e,r){if(br.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Os(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 OT(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return WK(e).length;default:if(n)return a?-1:OT(e).length;r=(""+r).toLowerCase(),n=!0}}br.byteLength=IK;function Ake(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 Rke(this,r,t);case"utf8":case"utf-8":return OK(this,r,t);case"ascii":return Dke(this,r,t);case"latin1":case"binary":return qke(this,r,t);case"base64":return Lke(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fke(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}br.prototype._isBuffer=!0;function z0(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}br.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)z0(this,t,t+1);return this};br.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)z0(this,t,t+3),z0(this,t+1,t+2);return this};br.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)z0(this,t,t+7),z0(this,t+1,t+6),z0(this,t+2,t+5),z0(this,t+3,t+4);return this};br.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?OK(this,0,r):Ake.apply(this,arguments)};br.prototype.toLocaleString=br.prototype.toString;br.prototype.equals=function(r){if(!br.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:br.compare(this,r)===0};br.prototype.inspect=function(){let r="",t=ld.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};qK&&(br.prototype[qK]=br.prototype.inspect);br.prototype.compare=function(r,t,a,n,i){if(Os(r,Uint8Array)&&(r=br.from(r,r.offset,r.byteLength)),!br.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 BK(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,YT(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=br.from(r,a)),br.isBuffer(r))return r.length===0?-1:RK(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):RK(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function RK(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}br.prototype.includes=function(r,t,a){return this.indexOf(r,t,a)!==-1};br.prototype.indexOf=function(r,t,a){return BK(this,r,t,a,!0)};br.prototype.lastIndexOf=function(r,t,a){return BK(this,r,t,a,!1)};function Tke(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(YT(l))return o;e[t+o]=l}return o}function Mke(e,r,t,a){return jb(OT(r,e.length-t),e,t,a)}function kke(e,r,t,a){return jb(Ike(r),e,t,a)}function Ske(e,r,t,a){return jb(WK(r),e,t,a)}function Cke(e,r,t,a){return jb(Bke(r,e.length-t),e,t,a)}br.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 Tke(this,r,t,a);case"utf8":case"utf-8":return Mke(this,r,t,a);case"ascii":case"latin1":case"binary":return kke(this,r,t,a);case"base64":return Ske(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cke(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};br.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Lke(e,r,t){return r===0&&t===e.length?zT.fromByteArray(e):zT.fromByteArray(e.slice(r,t))}function OK(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 Eke(a)}var FK=4096;function Eke(e){let r=e.length;if(r<=FK)return String.fromCharCode.apply(String,e);let t="",a=0;for(;a<r;)t+=String.fromCharCode.apply(String,e.slice(a,a+=FK));return t}function Dke(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 qke(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 Rke(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+=Oke[e[i]];return n}function Fke(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}br.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,br.prototype),n};function zi(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")}br.prototype.readUintLE=br.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||zi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[r+o]*i;return n};br.prototype.readUintBE=br.prototype.readUIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||zi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};br.prototype.readUint8=br.prototype.readUInt8=function(r,t){return r=r>>>0,t||zi(r,1,this.length),this[r]};br.prototype.readUint16LE=br.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||zi(r,2,this.length),this[r]|this[r+1]<<8};br.prototype.readUint16BE=br.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||zi(r,2,this.length),this[r]<<8|this[r+1]};br.prototype.readUint32LE=br.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||zi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};br.prototype.readUint32BE=br.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||zi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};br.prototype.readBigUInt64LE=jf(function(r){r=r>>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hm(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))});br.prototype.readBigUInt64BE=jf(function(r){r=r>>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hm(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)});br.prototype.readIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||zi(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};br.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||zi(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};br.prototype.readInt8=function(r,t){return r=r>>>0,t||zi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};br.prototype.readInt16LE=function(r,t){r=r>>>0,t||zi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};br.prototype.readInt16BE=function(r,t){r=r>>>0,t||zi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};br.prototype.readInt32LE=function(r,t){return r=r>>>0,t||zi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};br.prototype.readInt32BE=function(r,t){return r=r>>>0,t||zi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};br.prototype.readBigInt64LE=jf(function(r){r=r>>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hm(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)});br.prototype.readBigInt64BE=jf(function(r){r=r>>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hm(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)});br.prototype.readFloatLE=function(r,t){return r=r>>>0,t||zi(r,4,this.length),id.read(this,r,!0,23,4)};br.prototype.readFloatBE=function(r,t){return r=r>>>0,t||zi(r,4,this.length),id.read(this,r,!1,23,4)};br.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||zi(r,8,this.length),id.read(this,r,!0,52,8)};br.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||zi(r,8,this.length),id.read(this,r,!1,52,8)};function No(e,r,t,a,n,i){if(!br.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")}br.prototype.writeUintLE=br.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;No(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};br.prototype.writeUintBE=br.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;No(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};br.prototype.writeUint8=br.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||No(this,r,t,1,255,0),this[t]=r&255,t+1};br.prototype.writeUint16LE=br.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||No(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};br.prototype.writeUint16BE=br.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||No(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};br.prototype.writeUint32LE=br.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||No(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};br.prototype.writeUint32BE=br.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||No(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 HK(e,r,t,a,n){XK(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 UK(e,r,t,a,n){XK(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}br.prototype.writeBigUInt64LE=jf(function(r,t=0){return HK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});br.prototype.writeBigUInt64BE=jf(function(r,t=0){return UK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});br.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);No(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};br.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);No(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};br.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||No(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};br.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||No(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};br.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||No(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};br.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||No(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};br.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||No(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};br.prototype.writeBigInt64LE=jf(function(r,t=0){return HK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});br.prototype.writeBigInt64BE=jf(function(r,t=0){return UK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function GK(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 YK(e,r,t,a,n){return r=+r,t=t>>>0,n||GK(e,r,t,4,34028234663852886e22,-34028234663852886e22),id.write(e,r,t,a,23,4),t+4}br.prototype.writeFloatLE=function(r,t,a){return YK(this,r,t,!0,a)};br.prototype.writeFloatBE=function(r,t,a){return YK(this,r,t,!1,a)};function VK(e,r,t,a,n){return r=+r,t=t>>>0,n||GK(e,r,t,8,17976931348623157e292,-17976931348623157e292),id.write(e,r,t,a,52,8),t+8}br.prototype.writeDoubleLE=function(r,t,a){return VK(this,r,t,!0,a)};br.prototype.writeDoubleBE=function(r,t,a){return VK(this,r,t,!1,a)};br.prototype.copy=function(r,t,a,n){if(!br.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};br.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"&&!br.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=br.isBuffer(r)?r:br.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 nd={};function GT(e,r,t){nd[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}`}}}GT("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);GT("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);GT("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=PK(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=PK(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function PK(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 Pke(e,r,t){od(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Hm(r,e.length-(t+1))}function XK(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 nd.ERR_OUT_OF_RANGE("value",l,e)}Pke(a,n,i)}function od(e,r){if(typeof e!="number")throw new nd.ERR_INVALID_ARG_TYPE(r,"number",e)}function Hm(e,r,t){throw Math.floor(e)!==e?(od(e,t),new nd.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new nd.ERR_BUFFER_OUT_OF_BOUNDS:new nd.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var Nke=/[^+/0-9A-Za-z-_]/g;function zke(e){if(e=e.split("=")[0],e=e.trim().replace(Nke,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function OT(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 Ike(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Bke(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 WK(e){return zT.toByteArray(zke(e))}function jb(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 Os(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function YT(e){return e!==e}var Oke=(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 jf(e){return typeof BigInt=="undefined"?Hke:e}function Hke(){throw new Error("BigInt not supported")}});var uQ=I(Ma=>{"use strict";var $f=FT(),Vi=SK(),JK=ZK().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Vi([32,0]),UINT16:Vi([32,0]),UINT32:Vi([32,0]),BIGUINT64:Vi([32,0]),INT8:Vi([32,0]),INT16:Vi([32,0]),INT32:Vi([32,0]),BIGINT64:Vi([32,0]),FLOAT:Vi([32,0]),DOUBLE:Vi([32,0]),DATA:Vi([32,0]),UINT8C:Vi([32,0]),BUFFER:Vi([32,0])});var Uke=typeof Uint8ClampedArray!="undefined",Gke=typeof BigUint64Array!="undefined",Yke=typeof BigInt64Array!="undefined",li=window.__TYPEDARRAY_POOL;li.UINT8C||(li.UINT8C=Vi([32,0]));li.BIGUINT64||(li.BIGUINT64=Vi([32,0]));li.BIGINT64||(li.BIGINT64=Vi([32,0]));li.BUFFER||(li.BUFFER=Vi([32,0]));var $b=li.DATA,Kb=li.BUFFER;Ma.free=function(r){if(JK.isBuffer(r))Kb[$f.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=$f.log2(t)|0;$b[a].push(r)}};function jK(e){if(e){var r=e.length||e.byteLength,t=$f.log2(r);$b[t].push(e)}}function Vke(e){jK(e.buffer)}Ma.freeUint8=Ma.freeUint16=Ma.freeUint32=Ma.freeBigUint64=Ma.freeInt8=Ma.freeInt16=Ma.freeInt32=Ma.freeBigInt64=Ma.freeFloat32=Ma.freeFloat=Ma.freeFloat64=Ma.freeDouble=Ma.freeUint8Clamped=Ma.freeDataView=Vke;Ma.freeArrayBuffer=jK;Ma.freeBuffer=function(r){Kb[$f.log2(r.length)].push(r)};Ma.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return zo(r);switch(t){case"uint8":return VT(r);case"uint16":return $K(r);case"uint32":return KK(r);case"int8":return QK(r);case"int16":return eQ(r);case"int32":return rQ(r);case"float":case"float32":return tQ(r);case"double":case"float64":return aQ(r);case"uint8_clamped":return nQ(r);case"bigint64":return oQ(r);case"biguint64":return iQ(r);case"buffer":return sQ(r);case"data":case"dataview":return lQ(r);default:return null}return null};function zo(r){var r=$f.nextPow2(r),t=$f.log2(r),a=$b[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ma.mallocArrayBuffer=zo;function VT(e){return new Uint8Array(zo(e),0,e)}Ma.mallocUint8=VT;function $K(e){return new Uint16Array(zo(2*e),0,e)}Ma.mallocUint16=$K;function KK(e){return new Uint32Array(zo(4*e),0,e)}Ma.mallocUint32=KK;function QK(e){return new Int8Array(zo(e),0,e)}Ma.mallocInt8=QK;function eQ(e){return new Int16Array(zo(2*e),0,e)}Ma.mallocInt16=eQ;function rQ(e){return new Int32Array(zo(4*e),0,e)}Ma.mallocInt32=rQ;function tQ(e){return new Float32Array(zo(4*e),0,e)}Ma.mallocFloat32=Ma.mallocFloat=tQ;function aQ(e){return new Float64Array(zo(8*e),0,e)}Ma.mallocFloat64=Ma.mallocDouble=aQ;function nQ(e){return Uke?new Uint8ClampedArray(zo(e),0,e):VT(e)}Ma.mallocUint8Clamped=nQ;function iQ(e){return Gke?new BigUint64Array(zo(8*e),0,e):null}Ma.mallocBigUint64=iQ;function oQ(e){return Yke?new BigInt64Array(zo(8*e),0,e):null}Ma.mallocBigInt64=oQ;function lQ(e){return new DataView(zo(e),0,e)}Ma.mallocDataView=lQ;function sQ(e){e=$f.nextPow2(e);var r=$f.log2(e),t=Kb[r];return t.length>0?t.pop():new JK(e)}Ma.mallocBuffer=sQ;Ma.clearCache=function(){for(var r=0;r<32;++r)li.UINT8[r].length=0,li.UINT16[r].length=0,li.UINT32[r].length=0,li.INT8[r].length=0,li.INT16[r].length=0,li.INT32[r].length=0,li.FLOAT[r].length=0,li.DOUBLE[r].length=0,li.BIGUINT64[r].length=0,li.BIGINT64[r].length=0,li.UINT8C[r].length=0,$b[r].length=0,Kb[r].length=0}});var cQ=I((kBe,fQ)=>{"use strict";var Xke=Object.prototype.toString;fQ.exports=function(e){var r;return Xke.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var XT=I((SBe,vQ)=>{vQ.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var pQ=I((CBe,dQ)=>{"use strict";var Wke=XT();dQ.exports=hQ;var Um=96;function WT(e,r){var t=Wke(getComputedStyle(e).getPropertyValue(r));return t[0]*hQ(t[1],e)}function Zke(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=WT(t,"font-size")/128;return r.removeChild(t),a}function hQ(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return Zke(e,r);case"em":return WT(r,"font-size");case"rem":return WT(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Um;case"cm":return Um/2.54;case"mm":return Um/25.4;case"pt":return Um/72;case"pc":return Um/6}return 1}});var gQ=I((LBe,yQ)=>{"use strict";yQ.exports=rx;var Jke=rx.canvas=document.createElement("canvas"),Qb=Jke.getContext("2d"),mQ=ex([32,126]);rx.createPairs=ex;rx.ascii=mQ;function rx(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=ex(r):Array.isArray(r)?a=r:(r.o?a=ex(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=mQ),Qb.font=n+"px "+e;for(var o=0;o<a.length;o++){var l=a[o],s=Qb.measureText(l[0]).width+Qb.measureText(l[1]).width,u=Qb.measureText(l).width;if(Math.abs(s-u)>n*i){var f=(u-s)/n;t[l]=f*1e3}}return t}function ex(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n<e[1];n++){var i=String.fromCharCode(n),o=a+i;r.push(o)}return r}});var wQ=I((EBe,_Q)=>{"use strict";_Q.exports=Kf;Kf.canvas=document.createElement("canvas");Kf.cache={};function Kf(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(Kf.cache[t]&&a<=Kf.cache[t].em)return bQ(Kf.cache[t],l);var s=r.canvas||Kf.canvas,u=s.getContext("2d"),f={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,u.font=o;var v="H",d={top:0};u.clearRect(0,0,c,c),u.textBaseline="top",u.fillStyle="black",u.fillText(v,0,0);var p=Hs(u.getImageData(0,0,c,c));u.clearRect(0,0,c,c),u.textBaseline="bottom",u.fillText(v,0,c);var m=Hs(u.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-m+p,u.clearRect(0,0,c,c),u.textBaseline="alphabetic",u.fillText(v,0,c);var y=Hs(u.getImageData(0,0,c,c)),b=c-y-1+p;d.baseline=d.alphabetic=b,u.clearRect(0,0,c,c),u.textBaseline="middle",u.fillText(v,0,c*.5);var T=Hs(u.getImageData(0,0,c,c));d.median=d.middle=c-T-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="hanging",u.fillText(v,0,c*.5);var _=Hs(u.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="ideographic",u.fillText(v,0,c);var x=Hs(u.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,f.upper&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.upper,0,0),d.upper=Hs(u.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.lower,0,0),d.lower=Hs(u.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.tittle,0,0),d.tittle=Hs(u.getImageData(0,0,c,c))),f.ascent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.ascent,0,0),d.ascent=Hs(u.getImageData(0,0,c,c))),f.descent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.descent,0,0),d.descent=xQ(u.getImageData(0,0,c,c))),f.overshoot){u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.overshoot,0,0);var w=xQ(u.getImageData(0,0,c,c));d.overshoot=w-b}for(var k in d)d[k]/=a;return d.em=a,Kf.cache[t]=d,bQ(d,l)}function bQ(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Hs(e){for(var r=e.height,t=e.data,a=3;a<t.length;a+=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}function xQ(e){for(var r=e.height,t=e.data,a=t.length-1;a>0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var kQ=I((DBe,MQ)=>{"use strict";var sd=mK(),jke=zs(),$ke=qT(),Kke=_K(),Qke=pT(),ZT=km(),eSe=AK(),Qf=uQ(),rSe=Vh(),tSe=cQ(),aSe=XT(),nSe=pQ(),iSe=gQ(),oSe=xi(),lSe=wQ(),sSe=E0(),uSe=FT(),AQ=uSe.nextPow2,TQ=new Qke,ax=!1;document.body&&(tx=document.body.appendChild(document.createElement("div")),tx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(tx).fontStretch&&(ax=!0),document.body.removeChild(tx));var tx,Pa=function(r){fSe(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=Kke(r),this.shader=TQ.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||$ke({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),TQ.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(tSe(r)?r:{})};Pa.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:`
			precision highp float;
			attribute float width, charOffset, char;
			attribute vec2 position;
			uniform float fontSize, charStep, em, align, baseline;
			uniform vec4 viewport;
			uniform vec4 color;
			uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
			varying vec2 charCoord, charId;
			varying float charWidth;
			varying vec4 fontColor;
			void main () {
				vec2 offset = floor(em * (vec2(align + charOffset, baseline)
					+ vec2(positionOffset.x, -positionOffset.y)))
					/ (viewport.zw * scale.xy);

				vec2 position = (position + translate) * scale;
				position += offset * scale;

				charCoord = position * viewport.zw + viewport.xy;

				gl_Position = vec4(position * 2. - 1., 0, 1);

				gl_PointSize = charStep;

				charId.x = mod(char, atlasDim.x);
				charId.y = floor(char / atlasDim.x);

				charWidth = width * em;

				fontColor = color / 255.;
			}`,frag:`
			precision highp float;
			uniform float fontSize, charStep, opacity;
			uniform vec2 atlasSize;
			uniform vec4 viewport;
			uniform sampler2D atlas;
			varying vec4 fontColor;
			varying vec2 charCoord, charId;
			varying float charWidth;

			float lightness(vec4 color) {
				return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
			}

			void main () {
				vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
				float halfCharStep = floor(charStep * .5 + .5);

				// invert y and shift by 1px (FF expecially needs that)
				uv.y = charStep - uv.y;

				// ignore points outside of character bounding box
				float halfCharWidth = ceil(charWidth * .5);
				if (floor(uv.x) > halfCharStep + halfCharWidth ||
					floor(uv.x) < halfCharStep - halfCharWidth) return;

				uv += charId * charStep;
				uv = uv / atlasSize;

				vec4 color = fontColor;
				vec4 mask = texture2D(atlas, uv);

				float maskY = lightness(mask);
				// float colorY = lightness(color);
				color.a *= maskY;
				color.a *= opacity;

				// color.a += .1;

				// antialiasing, see yiq color space y-channel formula
				// color.rgb += (1. - color.rgb) * (1. - mask.rgb);

				gl_FragColor = color;
			}`}),a={};return{regl:r,draw:t,atlas:a}};Pa.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=jke(r,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),r.opacity!=null&&(Array.isArray(r.opacity)?this.opacity=r.opacity.map(function(ne){return parseFloat(ne)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=rSe(r.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),r.kerning!=null&&(this.kerning=r.kerning),r.offset!=null&&(typeof r.offset=="number"&&(r.offset=[r.offset,0]),this.positionOffset=sSe(r.offset)),r.direction&&(this.direction=r.direction),r.range&&(this.range=r.range,this.scale=[1/(r.range[2]-r.range[0]),1/(r.range[3]-r.range[1])],this.translate=[-r.range[0],-r.range[1]]),r.scale&&(this.scale=r.scale),r.translate&&(this.translate=r.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!r.font&&(r.font=Pa.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(ne,ye){if(typeof ne=="string")try{ne=sd.parse(ne)}catch(ze){ne=sd.parse(Pa.baseFontSize+"px "+ne)}else{var te=ne.style,De=ne.weight,ce=ne.stretch,Re=ne.variant;ne=sd.parse(sd.stringify(ne)),te&&(ne.style=te),De&&(ne.weight=De),ce&&(ne.stretch=ce),Re&&(ne.variant=Re)}var Fe=sd.stringify({size:Pa.baseFontSize,family:ne.family,stretch:ax?ne.stretch:void 0,variant:ne.variant,weight:ne.weight,style:ne.style}),ge=aSe(ne.size),Oe=Math.round(ge[0]*nSe(ge[1]));if(Oe!==t.fontSize[ye]&&(n=!0,t.fontSize[ye]=Oe),(!t.font[ye]||Fe!=t.font[ye].baseString)&&(a=!0,t.font[ye]=Pa.fonts[Fe],!t.font[ye])){var cr=ne.family.join(", "),qe=[ne.style];ne.style!=ne.variant&&qe.push(ne.variant),ne.variant!=ne.weight&&qe.push(ne.weight),ax&&ne.weight!=ne.stretch&&qe.push(ne.stretch),t.font[ye]={baseString:Fe,family:cr,weight:ne.weight,stretch:ne.stretch,style:ne.style,variant:ne.variant,width:{},kerning:{},metrics:lSe(cr,{origin:"top",fontSize:Pa.baseFontSize,fontStyle:qe.join(" ")})},Pa.fonts[Fe]=t.font[ye]}}),(a||n)&&this.font.forEach(function(ne,ye){var te=sd.stringify({size:t.fontSize[ye],family:ne.family,stretch:ax?ne.stretch:void 0,variant:ne.variant,weight:ne.weight,style:ne.style});if(t.fontAtlas[ye]=t.shader.atlas[te],!t.fontAtlas[ye]){var De=ne.metrics;t.shader.atlas[te]=t.fontAtlas[ye]={fontString:te,step:Math.ceil(t.fontSize[ye]*De.bottom*.5)*2,em:t.fontSize[ye],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}r.text==null&&(r.text=t.text)}),typeof r.text=="string"&&r.position&&r.position.length>2){for(var i=Array(r.position.length*.5),o=0;o<i.length;o++)i[o]=r.text;r.text=i}var l;if(r.text!=null||a){if(this.textOffsets=[0],Array.isArray(r.text)){this.count=r.text[0].length,this.counts=[this.count];for(var s=1;s<r.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+r.text[s-1].length,this.count+=r.text[s].length,this.counts.push(r.text[s].length);this.text=r.text.join("")}else this.text=r.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(ne,ye){Pa.atlasContext.font=ne.baseString;for(var te=t.fontAtlas[ye],De=0;De<t.text.length;De++){var ce=t.text.charAt(De);if(te.ids[ce]==null&&(te.ids[ce]=te.chars.length,te.chars.push(ce),l.push(ce)),ne.width[ce]==null&&(ne.width[ce]=Pa.atlasContext.measureText(ce).width/Pa.baseFontSize,t.kerning)){var Re=[];for(var Fe in ne.width)Re.push(Fe+ce,ce+Fe);oSe(ne.kerning,iSe(ne.family,{pairs:Re}))}}})}if(r.position)if(r.position.length>2){for(var u=!r.position[0].length,f=Qf.mallocFloat(this.count*2),c=0,v=0;c<this.counts.length;c++){var d=this.counts[c];if(u)for(var p=0;p<d;p++)f[v++]=r.position[c*2],f[v++]=r.position[c*2+1];else for(var m=0;m<d;m++)f[v++]=r.position[c][0],f[v++]=r.position[c][1]}this.position.call?this.position({type:"float",data:f}):this.position=this.regl.buffer({type:"float",data:f}),Qf.freeFloat(f)}else this.position.destroy&&this.position.destroy(),this.position={constant:r.position};if(r.text||a){var y=Qf.mallocUint8(this.count),b=Qf.mallocFloat(this.count*2);this.textWidth=[];for(var T=0,_=0;T<this.counts.length;T++){for(var x=this.counts[T],w=this.font[T]||this.font[0],k=this.fontAtlas[T]||this.fontAtlas[0],M=0;M<x;M++){var C=this.text.charAt(_),D=this.text.charAt(_-1);if(y[_]=k.ids[C],b[_*2]=w.width[C],M){var R=b[_*2-2],P=b[_*2],q=b[_*2-1],z=q+R*.5+P*.5;if(this.kerning){var B=w.kerning[D+C];B&&(z+=B*.001)}b[_*2+1]=z}else b[_*2+1]=b[_*2]*.5;_++}this.textWidth.push(b.length?b[_*2-2]*.5+b[_*2-1]:0)}r.align||(r.align=this.align),this.charBuffer({data:y,type:"uint8",usage:"stream"}),this.sizeBuffer({data:b,type:"float",usage:"stream"}),Qf.freeUint8(y),Qf.freeFloat(b),l.length&&this.font.forEach(function(ne,ye){var te=t.fontAtlas[ye],De=te.step,ce=Math.floor(Pa.maxAtlasSize/De),Re=Math.min(ce,te.chars.length),Fe=Math.ceil(te.chars.length/Re),ge=AQ(Re*De),Oe=AQ(Fe*De);te.width=ge,te.height=Oe,te.rows=Fe,te.cols=Re,te.em&&te.texture({data:eSe({canvas:Pa.atlasCanvas,font:te.fontString,chars:te.chars,shape:[ge,Oe],step:[De,De]})})})}if(r.align&&(this.align=r.align,this.alignOffset=this.textWidth.map(function(ne,ye){var te=Array.isArray(t.align)?t.align.length>1?t.align[ye]:t.align[0]:t.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-ne;case"center":case"centre":case"middle":return-ne*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ne,ye){var te=(t.font[ye]||t.font[0]).metrics,De=0;return De+=te.bottom*.5,typeof ne=="number"?De+=ne-te.baseline:De+=-te[ne],De*=-1,De})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=ZT(r.color,"uint8");else{var U;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var G=r.color.length;U=Qf.mallocUint8(G);for(var X=(r.color.subarray||r.color.slice).bind(r.color),Y=0;Y<G;Y+=4)U.set(ZT(X(Y,Y+4),"uint8"),Y)}else{var V=r.color.length;U=Qf.mallocUint8(V*4);for(var J=0;J<V;J++)U.set(ZT(r.color[J]||0,"uint8"),J*4)}this.color=U}if(r.position||r.text||r.color||r.baseline||r.align||r.font||r.offset||r.opacity){var j=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(j){var ee=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(ee);for(var pe=0;pe<this.batch.length;pe++)this.batch[pe]={count:this.counts.length>1?this.counts[pe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[pe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(pe*4,pe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[pe]:this.opacity,baseline:this.baselineOffset[pe]!=null?this.baselineOffset[pe]:this.baselineOffset[0],align:this.align?this.alignOffset[pe]!=null?this.alignOffset[pe]:this.alignOffset[0]:0,atlas:this.fontAtlas[pe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(pe*2,pe*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Pa.prototype.destroy=function(){};Pa.prototype.kerning=!0;Pa.prototype.position={constant:new Float32Array(2)};Pa.prototype.translate=null;Pa.prototype.scale=null;Pa.prototype.font=null;Pa.prototype.text="";Pa.prototype.positionOffset=[0,0];Pa.prototype.opacity=1;Pa.prototype.color=new Uint8Array([0,0,0,255]);Pa.prototype.alignOffset=[0,0];Pa.maxAtlasSize=1024;Pa.atlasCanvas=document.createElement("canvas");Pa.atlasContext=Pa.atlasCanvas.getContext("2d",{alpha:!1});Pa.baseFontSize=64;Pa.fonts={};function fSe(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}MQ.exports=Pa});var LQ=I((qBe,CQ)=>{"use strict";var SQ=Kt(),cSe=function(){};CQ.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=cSe);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=SQ.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=SQ.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var nx=I((RBe,EQ)=>{"use strict";var vSe=LQ(),hSe=qT();EQ.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=hSe({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||vSe({container:n._glcontainer.node()}),i}});var zQ=I((JT,NQ)=>{"use strict";var DQ=OA(),qQ=gT(),dSe=$$(),RQ=kQ(),FQ=ir(),{rgbaString:pSe}=Kt(),mSe=Ef().selectMode,ySe=nx(),gSe=ki(),bSe=c9(),xSe=IA().styleTextSelection,PQ={};function _Se(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,u=n.r*a,f=n.t*a,c=n.w*a,v=n.h*a;let d=(r._padStart||0)*a,p=(r._padEnd||0)*a,m=(t._padStart||0)*a,y=(t._padEnd||0)*a;return[l+r.domain[0]*c+d,s+t.domain[0]*v+y,i-u-(1-r.domain[1])*c-p,o-f-(1-t.domain[1])*v-m]}var JT=NQ.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,u;if(i){var f=ySe(r,["ANGLE_instanced_arrays","OES_element_index_uint"],PQ);if(!f){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(bSe(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=dSe(v)),i.line2d===!0&&(i.line2d=qQ(v)),i.scatter2d===!0&&(i.scatter2d=DQ(v)),i.fill2d===!0&&(i.fill2d=qQ(v)),i.glText===!0)for(i.glText=new Array(c),s=0;s<c;s++)i.glText[s]=new RQ(v);if(i.glText){if(c>i.glText.length){var d=c-i.glText.length;for(s=0;s<d;s++)i.glText.push(new RQ(v))}else if(c<i.glText.length){var p=i.glText.length-c,m=i.glText.splice(c,p);m.forEach(function(Y){Y.destroy()})}for(s=0;s<c;s++)i.glText[s].update(i.textOptions[s])}if(i.line2d&&(i.line2d.update(i.lineOptions),i.lineOptions=i.lineOptions.map(function(Y){if(Y&&Y.positions){for(var V=Y.positions,J=0;J<V.length&&(isNaN(V[J])||isNaN(V[J+1]));)J+=2;for(var j=V.length-2;j>J&&(isNaN(V[j])||isNaN(V[j+1]));)j-=2;Y.positions=V.slice(J,j+2)}return Y}),i.line2d.update(i.lineOptions)),i.error2d){var y=(i.errorXOptions||[]).concat(i.errorYOptions||[]).map(function(Y){return Y||{positions:[],errors:[]}});i.error2d.update(y)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=FQ.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(Y,V){var J=a[V];if(!(!Y||!J||!J[0]||!J[0].trace)){var j=J[0],ee=j.trace,pe=j.t,ne=i.lineOptions[V],ye,te,De=[];ee._ownfill&&De.push(V),ee._nexttrace&&De.push(V+1),De.length&&(i.fillOrder[V]=De);var ce=[],Re=ne&&ne.positions||pe.positions,Fe,ge;if(ee.fill==="tozeroy"){for(Fe=0;Fe<Re.length&&isNaN(Re[Fe+1]);)Fe+=2;for(ge=Re.length-2;ge>Fe&&isNaN(Re[ge+1]);)ge-=2;Re[Fe+1]!==0&&(ce=[Re[Fe],0]),ce=ce.concat(Re.slice(Fe,ge+2)),Re[ge+1]!==0&&(ce=ce.concat([Re[ge],0]))}else if(ee.fill==="tozerox"){for(Fe=0;Fe<Re.length&&isNaN(Re[Fe]);)Fe+=2;for(ge=Re.length-2;ge>Fe&&isNaN(Re[ge]);)ge-=2;Re[Fe]!==0&&(ce=[0,Re[Fe+1]]),ce=ce.concat(Re.slice(Fe,ge+2)),Re[ge]!==0&&(ce=ce.concat([0,Re[ge+1]]))}else if(ee.fill==="toself"||ee.fill==="tonext"){for(ce=[],ye=0,Y.splitNull=!0,te=0;te<Re.length;te+=2)(isNaN(Re[te])||isNaN(Re[te+1]))&&(ce=ce.concat(Re.slice(ye,te)),ce.push(Re[ye],Re[ye+1]),ce.push(null,null),ye=te+2);ce=ce.concat(Re.slice(ye)),ye&&ce.push(Re[ye],Re[ye+1])}else{var Oe=ee._nexttrace;if(Oe){var cr=i.lineOptions[V+1];if(cr){var qe=cr.positions;if(ee.fill==="tonexty"){for(ce=Re.slice(),V=Math.floor(qe.length/2);V--;){var ze=qe[V*2],Ue=qe[V*2+1];isNaN(ze)||isNaN(Ue)||ce.push(ze,Ue)}Y.fill=pSe(Oe.fillcolor)}}}}if(ee._prevtrace&&ee._prevtrace.fill==="tonext"){var We=i.lineOptions[V-1].positions,Ge=ce.length/2;ye=Ge;var or=[ye];for(te=0;te<We.length;te+=2)(isNaN(We[te])||isNaN(We[te+1]))&&(or.push(te/2+Ge+1),ye=te+2);ce=ce.concat(We),Y.hole=or}return Y.fillmode=ee.fill,Y.opacity=ee.opacity,Y.positions=ce,Y}}),i.fill2d.update(i.fillOptions))}var b=n.dragmode,T=mSe(b),_=n.clickmode.indexOf("select")>-1;for(let[Y]of a)if(Y){var x=Y.trace,w=Y.t,k=w.index,M=x._length,C=w.x,D=w.y;if(x.selectedpoints||T||_){if(T||(T=!0),x.selectedpoints){var R=i.selectBatch[k]=x.selectedpoints,P={};for(u=0;u<R.length;u++)P[R[u]]=1;var q=[];for(u=0;u<M;u++)P[u]||q.push(u);i.unselectBatch[k]=q}var z=w.xpx=new Array(M),B=w.ypx=new Array(M);for(u=0;u<M;u++)z[u]=o.c2p(C[u]),B[u]=l.c2p(D[u])}else w.xpx=w.ypx=null}if(T){if(i.select2d||(i.select2d=DQ(n._glcanvas.data()[1].regl)),i.scatter2d){var U=new Array(c);for(s=0;s<c;s++)U[s]=i.selectBatch[s].length||i.unselectBatch[s].length?i.markerUnselectedOptions[s]:{};i.scatter2d.update(U)}i.select2d&&(i.select2d.update(i.markerOptions),i.select2d.update(i.markerSelectedOptions)),i.glText&&a.forEach(function(Y){var V=((Y||[])[0]||{}).trace||{};gSe.hasText(V)&&xSe(Y)})}else i.scatter2d&&i.scatter2d.update(i.markerOptions);var G={viewport:_Se(n,o,l,r._context.plotGlPixelRatio),range:[(o._rl||o.range)[0],(l._rl||l.range)[0],(o._rl||o.range)[1],(l._rl||l.range)[1]]},X=FQ.repeat(G,i.count);i.fill2d&&i.fill2d.update(X),i.line2d&&i.line2d.update(X),i.error2d&&i.error2d.update(X.concat(X)),i.scatter2d&&i.scatter2d.update(X),i.select2d&&i.select2d.update(X),i.glText&&i.glText.forEach(function(Y){Y.update(G)})}}};JT.reglPrecompiled=PQ});var OQ=I((FBe,BQ)=>{"use strict";var IQ=SZ();IQ.plot=zQ();BQ.exports=IQ});var UQ=I((PBe,HQ)=>{"use strict";HQ.exports=OQ()});var jT=I((NBe,XQ)=>{"use strict";var wSe=Nf(),VQ=Qc(),GQ=$1().axisHoverFormat,{hovertemplateAttrs:ASe,templatefallbackAttrs:TSe}=Hv(),Gm=gb(),MSe=(ni(),hr(ai)).idRegex,kSe=Ra().templatedArray,ud=Rn().extendFlat,Du=wSe.marker,SSe=Du.line,CSe=ud(VQ("marker.line",{editTypeOverride:"calc"}),{width:ud({},SSe.width,{editType:"calc"}),editType:"calc"}),ix=ud(VQ("marker"),{symbol:Du.symbol,angle:Du.angle,size:ud({},Du.size,{editType:"markerSize"}),sizeref:Du.sizeref,sizemin:Du.sizemin,sizemode:Du.sizemode,opacity:Du.opacity,colorbar:Du.colorbar,line:CSe,editType:"calc"});ix.color.editType=ix.cmin.editType=ix.cmax.editType="style";function YQ(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:MSe[e],editType:"plot"}}}XQ.exports={dimensions:kSe("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:ud({},Gm.text,{}),hovertext:ud({},Gm.hovertext,{}),hovertemplate:ASe(),hovertemplatefallback:TSe(),xhoverformat:GQ("x"),yhoverformat:GQ("y"),marker:ix,xaxes:YQ("x"),yaxes:YQ("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Gm.selected.marker,editType:"calc"},unselected:{marker:Gm.unselected.marker,editType:"calc"},opacity:Gm.opacity}});var $T=I((zBe,WQ)=>{"use strict";WQ.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n<r.length;n++)i=r[n],i.visible&&(a=Math.min(a,i[t].length));for(a===1/0&&(a=0),e._length=a,n=0;n<r.length;n++)i=r[n],i.visible&&(i._length=a);return a}});var jQ=I((IBe,JQ)=>{"use strict";var KT=ir(),LSe=Yo(),ZQ=jT(),ESe=ki(),DSe=M5(),qSe=$T(),RSe=bb().isOpenSymbol;JQ.exports=function(r,t,a,n){function i(d,p){return KT.coerce(r,t,ZQ,d,p)}var o=LSe(r,t,{name:"dimensions",handleItemDefaults:FSe}),l=i("diagonal.visible"),s=i("showupperhalf"),u=i("showlowerhalf"),f=qSe(t,o,"values");if(!f||!l&&!s&&!u){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),DSe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=RSe(t.marker.symbol),v=ESe.isBubble(t);i("marker.line.width",c||v?1:0),PSe(r,t,n,i),KT.coerceSelectionMarkerOpacity(t,i)};function FSe(e,r){function t(n,i){return KT.coerce(e,r,ZQ.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function PSe(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,u,f,c=new Array(i),v=new Array(i);for(u=0;u<i;u++){var d=u?u+1:"";c[u]="x"+d,v[u]="y"+d}var p=a("xaxes",c),m=a("yaxes",v),y=r._diag=new Array(i);r._xaxes={},r._yaxes={};var b=[],T=[];function _(q,z,B,U){if(q){var G=q.charAt(0),X=t._splomAxes[G];if(r["_"+G+"axes"][q]=1,U.push(q),!(q in X)){var Y=X[q]={};B&&(Y.label=B.label||"",B.visible&&B.axis&&(B.axis.type&&(Y.type=B.axis.type),B.axis.matches&&(Y.matches=z)))}}}var x=!s&&!l,w=!s&&!o;for(r._axesDim={},u=0;u<i;u++){var k=n[u],M=u===0,C=u===i-1,D=M&&x||C&&w?void 0:p[u],R=M&&w||C&&x?void 0:m[u];_(D,R,k,b),_(R,D,k,T),y[u]=[D,R],r._axesDim[D]=u,r._axesDim[R]=u}for(u=0;u<b.length;u++)for(f=0;f<T.length;f++){var P=b[u]+T[f];(u>f&&o||u<f&&l||u===f&&(s||!l||!o))&&(t._splomSubplots[P]=1)}(!l||!s&&o&&l)&&(t._splomGridDflt.xside="bottom",t._splomGridDflt.yside="left")}});var QQ=I((BBe,KQ)=>{"use strict";var $Q=ir();KQ.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=$Q.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||$Q.extendFlat(s,o),s}});var tee=I((OBe,ree)=>{"use strict";var QT=ir(),ox=mn(),NSe=Ch().calcMarkerSize,zSe=Ch().calcAxisExpansion,ISe=Qp(),eee=Mm().markerSelection,BSe=Mm().markerStyle,OSe=QQ(),HSe=(Zn(),hr(ri)).BADNUM,USe=(xm(),hr(bm)).TOO_MANY_POINTS;ree.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],u,f,c,v,d;function p(_,x){for(var w=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),k=0;k<w.length;k++)w[k]=w[k]===HSe?NaN:w[k];o.push(w),l.push(_.type==="log"?QT.simpleMap(w,_.c2l):w)}for(u=0;u<a.length;u++)if(c=a[u],c.visible){if(v=ox.getFromId(r,t._diag[u][0]),d=ox.getFromId(r,t._diag[u][1]),v&&d&&v.type!==d.type){QT.log("Skipping splom dimension "+u+" with conflicting axis types");continue}v?(p(v,c),d&&d.type==="category"&&(d._categories=v._categories.slice())):p(d,c),s.push(u)}ISe(r,t),QT.extendFlat(i,BSe(r,t));var m=o.length,y=m*n>USe,b;for(y?b=i.sizeAvg||Math.max(i.size,3):b=NSe(t,n),f=0;f<s.length;f++)u=s[f],c=a[u],v=ox.getFromId(r,t._diag[u][0])||{},d=ox.getFromId(r,t._diag[u][1])||{},zSe(r,t,v,d,o[f],o[f],b);var T=OSe(r,t);return T.matrix||(T.matrix=!0),T.matrixOptions=i,T.selectedOptions=eee(r,t,t.selected),T.unselectedOptions=eee(r,t,t.unselected),[{x:!1,y:!1,t:{},trace:t}]}});var nee=I((aee,Ym)=>{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?Ym.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Ym.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(Ym.exports=function(){return Date.now()-t},t=Date.now()):(Ym.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(aee)});var oee=I((HBe,ux)=>{var GSe=nee(),qu=window,lx=["moz","webkit"],cd="AnimationFrame",vd=qu["request"+cd],Vm=qu["cancel"+cd]||qu["cancelRequest"+cd];for(fd=0;!vd&&fd<lx.length;fd++)vd=qu[lx[fd]+"Request"+cd],Vm=qu[lx[fd]+"Cancel"+cd]||qu[lx[fd]+"CancelRequest"+cd];var fd;(!vd||!Vm)&&(sx=0,eM=0,ec=[],iee=1e3/60,vd=function(e){if(ec.length===0){var r=GSe(),t=Math.max(0,iee-(r-sx));sx=t+r,setTimeout(function(){var a=ec.slice(0);ec.length=0;for(var n=0;n<a.length;n++)if(!a[n].cancelled)try{a[n].callback(sx)}catch(i){setTimeout(function(){throw i},0)}},Math.round(t))}return ec.push({handle:++eM,callback:e,cancelled:!1}),eM},Vm=function(e){for(var r=0;r<ec.length;r++)ec[r].handle===e&&(ec[r].cancelled=!0)});var sx,eM,ec,iee;ux.exports=function(e){return vd.call(qu,e)};ux.exports.cancel=function(){Vm.apply(qu,arguments)};ux.exports.polyfill=function(e){e||(e=qu),e.requestAnimationFrame=vd,e.cancelAnimationFrame=Vm}});var see=I((UBe,lee)=>{lee.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l<i;l++,s++)o[l]=s;return o}});var vee=I((GBe,cee)=>{"use strict";var YSe=OA(),VSe=zs(),XSe=L0(),uee=oee(),WSe=see(),rM=Vh(),ZSe=E0();cee.exports=rc;function rc(e,r){if(!(this instanceof rc))return new rc(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=YSe(e),this.canvas=this.scatter.canvas}rc.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=uee(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,uee(()=>{this.dirty=!1})),this)};rc.prototype.update=function(...e){if(!e.length)return;for(let a=0;a<e.length;a++)this.updateItem(a,e[a]);this.traces=this.traces.filter(Boolean);let r=[],t=0;for(let a=0;a<this.traces.length;a++){let n=this.traces[a],i=this.traces[a].passes;for(let o=0;o<i.length;o++)r.push(this.passes[i[o]]);n.passOffset=t,t+=n.passes.length}return this.scatter.update(...r),this};rc.prototype.updateItem=function(e,r){let{regl:t}=this;if(r===null)return this.traces[e]=null,this;if(!r)return this;let a=VSe(r,{data:"data items columns rows values dimensions samples x",snap:"snap cluster",size:"sizes size radius",color:"colors color fill fill-color fillColor",opacity:"opacity alpha transparency opaque",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",borderColor:"borderColors borderColor bordercolor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range ranges databox dataBox",viewport:"viewport viewBox viewbox",domain:"domain domains area areas",padding:"pad padding paddings pads margin margins",transpose:"transpose transposed",diagonal:"diagonal diag showDiagonal",upper:"upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf",lower:"lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower"}),n=this.traces[e]||(this.traces[e]={id:e,buffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),color:"black",marker:null,size:12,borderColor:"transparent",borderSize:1,viewport:rM([t._gl.drawingBufferWidth,t._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(a.color!=null&&(n.color=a.color),a.size!=null&&(n.size=a.size),a.marker!=null&&(n.marker=a.marker),a.borderColor!=null&&(n.borderColor=a.borderColor),a.borderSize!=null&&(n.borderSize=a.borderSize),a.opacity!=null&&(n.opacity=a.opacity),a.viewport&&(n.viewport=rM(a.viewport)),a.diagonal!=null&&(n.diagonal=a.diagonal),a.upper!=null&&(n.upper=a.upper),a.lower!=null&&(n.lower=a.lower),a.data){n.buffer(ZSe(a.data)),n.columns=a.data.length,n.count=a.data[0].length,n.bounds=[];for(let m=0;m<n.columns;m++)n.bounds[m]=XSe(a.data[m],1)}let i;a.range&&(n.range=a.range,i=n.range&&typeof n.range[0]!="number"),a.domain&&(n.domain=a.domain);let o=!1;a.padding!=null&&(Array.isArray(a.padding)&&a.padding.length===n.columns&&typeof a.padding[a.padding.length-1]=="number"?(n.padding=a.padding.map(fee),o=!0):n.padding=fee(a.padding));let l=n.columns,s=n.count,u=n.viewport.width,f=n.viewport.height,c=n.viewport.x,v=n.viewport.y,d=u/l,p=f/l;n.passes=[];for(let m=0;m<l;m++)for(let y=0;y<l;y++){if(!n.diagonal&&y===m||!n.upper&&m>y||!n.lower&&m<y)continue;let b=JSe(n.id,m,y),T=this.passes[b]||(this.passes[b]={});if(a.data&&(a.transpose?T.positions={x:{buffer:n.buffer,offset:y,count:s,stride:l},y:{buffer:n.buffer,offset:m,count:s,stride:l}}:T.positions={x:{buffer:n.buffer,offset:y*s,count:s},y:{buffer:n.buffer,offset:m*s,count:s}},T.bounds=fx(n.bounds,m,y)),a.domain||a.viewport||a.data){let _=o?fx(n.padding,m,y):n.padding;if(n.domain){let[x,w,k,M]=fx(n.domain,m,y);T.viewport=[c+x*u+_[0],v+w*f+_[1],c+k*u-_[2],v+M*f-_[3]]}else T.viewport=[c+y*d+d*_[0],v+m*p+p*_[1],c+(y+1)*d-d*_[2],v+(m+1)*p-p*_[3]]}a.color&&(T.color=n.color),a.size&&(T.size=n.size),a.marker&&(T.marker=n.marker),a.borderSize&&(T.borderSize=n.borderSize),a.borderColor&&(T.borderColor=n.borderColor),a.opacity&&(T.opacity=n.opacity),a.range&&(T.range=i?fx(n.range,m,y):n.range||T.bounds),n.passes.push(b)}return this};rc.prototype.draw=function(...e){if(!e.length)this.scatter.draw();else{let r=[];for(let t=0;t<e.length;t++)if(typeof e[t]=="number"){let{passes:a,passOffset:n}=this.traces[e[t]];r.push(...WSe(n,n+a.length))}else if(e[t].length){let a=e[t],{passes:n,passOffset:i}=this.traces[t];n=n.map((o,l)=>{r[i+l]=a})}this.scatter.draw(...r)}return this};rc.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function JSe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function fx(e,r,t){let a,n,i,o,l,s,u,f,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],u=v[2],s=v[1],f=v[3]):v.length?(l=s=v[0],u=f=v[1]):(l=v.x,s=v.y,u=v.x+v.width,f=v.y+v.height),[l,n,u,o]}function fee(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=rM(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var dee=I((YBe,hee)=>{"use strict";var jSe=vee(),tM=ir(),cx=mn(),$Se=Ef().selectMode;hee.exports=function(r,t,a){if(a.length)for(var n=0;n<a.length;n++)KSe(r,a[n][0])};function KSe(e,r){var t=e._fullLayout,a=t._size,n=r.trace,i=r.t,o=t._splomScenes[n.uid],l=o.matrixOptions,s=l.cdata,u=t._glcanvas.data()[0].regl,f=t.dragmode,c,v,d,p,m;if(s.length===0)return;l.lower=n.showupperhalf,l.upper=n.showlowerhalf,l.diagonal=n.diagonal.visible;var y=n._visibleDims,b=s.length,T=o.viewOpts={};T.ranges=new Array(b),T.domains=new Array(b);let _=(pe,ne)=>(pe||0)/ne;for(m=0;m<y.length;m++){d=y[m];var x=T.ranges[m]=new Array(4),w=T.domains[m]=new Array(4);c=cx.getFromId(e,n._diag[d][0]),c&&(x[0]=c._rl[0],x[2]=c._rl[1],w[0]=c.domain[0]+_(c._padStart,a.w),w[2]=c.domain[1]-_(c._padEnd,a.w)),v=cx.getFromId(e,n._diag[d][1]),v&&(x[1]=v._rl[0],x[3]=v._rl[1],w[1]=v.domain[0]+_(v._padEnd,a.h),w[3]=v.domain[1]-_(v._padStart,a.h))}var k=e._context.plotGlPixelRatio,M=a.l*k,C=a.b*k,D=a.w*k,R=a.h*k;T.viewport=[M,C,D+M,R+C],o.matrix===!0&&(o.matrix=jSe(u));var P=t.clickmode.indexOf("select")>-1,q=$Se(f)||!!n.selectedpoints||P,z=!0;if(q){var B=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var U=n.selectedpoints,G={};for(d=0;d<U.length;d++)G[U[d]]=!0;var X=[];for(d=0;d<B;d++)G[d]||X.push(d);o.unselectBatch=X}var Y=i.xpx=new Array(b),V=i.ypx=new Array(b);for(m=0;m<y.length;m++){if(d=y[m],c=cx.getFromId(e,n._diag[d][0]),c)for(Y[m]=new Array(B),p=0;p<B;p++)Y[m][p]=c.c2p(s[m][p]);if(v=cx.getFromId(e,n._diag[d][1]),v)for(V[m]=new Array(B),p=0;p<B;p++)V[m][p]=v.c2p(s[m][p])}if(o.selectBatch.length||o.unselectBatch.length){var J=tM.extendFlat({},l,o.unselectedOptions,T),j=tM.extendFlat({},l,o.selectedOptions,T);o.matrix.update(J,j),z=!1}}else i.xpx=i.ypx=null;if(z){var ee=tM.extendFlat({},l,T);o.matrix.update(ee,null)}}});var aM=I(pee=>{"use strict";pee.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l<o.length;l++){var s=o[l];if(r._diag[s][i]===a)return l}return!1}});var xee=I((XBe,bee)=>{"use strict";var mee=aM(),QSe=xA().calcHover,yee=tn().getFromId,eCe=Rn().extendFlat;function rCe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=gee(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,u=n.gd,f=eCe({},e),c=0;c<s.length;c++){var v=s[c];if(v!==e.xa._id+e.ya._id){o?f.xa=yee(u,v,"x"):f.ya=yee(u,v,"y");var d=i||o,p=gee(f,r,t,d);l=l.concat(p)}}return l}function gee(e,r,t,a){var n=e.cd,i=n[0].trace,o=e.scene,l=o.matrixOptions.cdata,s=e.xa,u=e.ya,f=s.c2p(r),c=u.c2p(t),v=e.distance,d=mee.getDimIndex(i,s),p=mee.getDimIndex(i,u);if(d===!1||p===!1)return[e];for(var m=l[d],y=l[p],b,T,_=v,x=0;x<m.length;x++)if(!(a&&x!==e.index)){var w=m[x],k=y[x],M=s.c2p(w)-f,C=u.c2p(k)-c,D=Math.sqrt(M*M+C*C);(a||D<=_)&&(_=T=D,b=x)}return e.index=b,e.distance=_,e.dxy=T,b===void 0?[e]:[QSe(e,m,y,i)]}bee.exports={hoverPoints:rCe}});var kee=I((WBe,Mee)=>{"use strict";var Tee=ir(),_ee=Tee.pushUnique,wee=ki(),Aee=aM();Mee.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,u=r.yaxis,f=[];if(!o)return f;var c=!wee.hasMarkers(n)&&!wee.hasText(n);if(n.visible!==!0||c)return f;var v=Aee.getDimIndex(n,s),d=Aee.getDimIndex(n,u);if(v===!1||d===!1)return f;var p=i.xpx[v],m=i.ypx[d],y=l[v],b=l[d],T=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x<y.length;x++)t.contains([p[x],m[x]],null,x,r)?(f.push({pointNumber:x,x:y[x],y:b[x]}),_ee(T,x)):T.indexOf(x)!==-1?_ee(T,x):_.push(x);var w=o.matrixOptions;return!T.length&&!_.length?o.matrix.update(w,null):!o.selectBatch.length&&!o.unselectBatch.length&&o.matrix.update(o.unselectedOptions,Tee.extendFlat({},w,o.selectedOptions,o.viewOpts)),o.selectBatch=T,o.unselectBatch=_,f}});var Lee=I((ZBe,Cee)=>{"use strict";var See=ir(),tCe=Qp(),aCe=Mm().markerStyle;Cee.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){tCe(r,a),See.extendFlat(n.matrixOptions,aCe(r,a));var i=See.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Dee=I((JBe,Eee)=>{"use strict";var nCe=Pt(),iCe=sA();Eee.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:jT(),supplyDefaults:jQ(),colorbar:q5(),calc:tee(),plot:dee(),hoverPoints:xee().hoverPoints,selectPoints:kee(),editStyle:Lee(),meta:{}};nCe.register(iCe)});var zee=I((jBe,Nee)=>{"use strict";var oCe=gT(),lCe=Pt(),{rgbaString:sCe}=Kt(),uCe=nx(),fCe=W1().getModuleCalcData,tc=im(),qee=mn().getFromId,Ree=tn().shouldShowZeroLine,Fee="splom",Pee={};function cCe(e){var r=e._fullLayout,t=lCe.getModule(Fee),a=fCe(e.calcdata,t)[0],n=uCe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Pee);n&&(r._hasOnlyLargeSploms&&nM(e),t.plot(e,{},a))}function vCe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&nM(e);for(var a=0;a<r.length;a++){var n=r[a][0],i=n.trace,o=t._splomScenes[i.uid];i.type==="splom"&&o&&o.matrix&&hCe(e,i,o)}}function hCe(e,r,t){for(var a=t.matrixOptions.data.length,n=r._visibleDims,i=t.viewOpts.ranges=new Array(a),o=0;o<n.length;o++){var l=n[o],s=i[o]=new Array(4),u=qee(e,r._diag[l][0]);u&&(s[0]=u.r2l(u.range[0]),s[2]=u.r2l(u.range[1]));var f=qee(e,r._diag[l][1]);f&&(s[1]=f.r2l(f.range[0]),s[3]=f.r2l(f.range[1]))}t.selectBatch.length||t.unselectBatch.length?t.matrix.update({ranges:i},{ranges:i}):t.matrix.update({ranges:i})}function nM(e){var r=e._fullLayout,t=r._glcanvas.data()[0].regl,a=r._splomGrid;a||(a=r._splomGrid=oCe(t)),a.update(dCe(e))}function dCe(e){var r=e._context.plotGlPixelRatio,t=e._fullLayout,a=t._size,n=[0,0,t.width*r,t.height*r],i={},o;function l(w,k,M,C,D,R){M*=r,C*=r,D*=r,R*=r;var P=k[w+"color"],q=k[w+"width"],z=String(P+q);z in i?i[z].data.push(NaN,NaN,M,C,D,R):i[z]={data:[M,C,D,R],join:"rect",thickness:q*r,color:sCe(P),viewport:n,range:n,overlay:!1}}for(o in t._splomSubplots){var s=t._plots[o],u=s.xaxis,f=s.yaxis,c=u._gridVals,v=f._gridVals,d=u._offset,p=u._length,m=f._length;let w=a.b+f.domain[0]*a.h+(f._padEnd||0);var y=-f._m,b=-y*f.r2l(f.range[0],f.calendar),T,_;if(u.showgrid)for(o=0;o<c.length;o++)T=d+u.l2p(c[o].x),l("grid",u,T,w,T,w+m);if(f.showgrid)for(o=0;o<v.length;o++)_=w+b+y*v[o].x,l("grid",f,d,_,d+p,_);Ree(e,u,f)&&(T=d+u.l2p(0),l("zeroline",u,T,w,T,w+m)),Ree(e,f,u)&&(_=w+b+0,l("zeroline",f,d,_,d+p,_))}var x=[];for(o in i)x.push(i[o]);return x}function pCe(e,r,t,a){var n={},i;if(a._splomScenes){for(i=0;i<e.length;i++){var o=e[i];o.type==="splom"&&(n[o.uid]=1)}for(i=0;i<t.length;i++){var l=t[i];if(!n[l.uid]){var s=a._splomScenes[l.uid];s&&s.destroy&&s.destroy(),a._splomScenes[l.uid]=null,delete a._splomScenes[l.uid]}}}Object.keys(a._splomScenes||{}).length===0&&delete a._splomScenes,a._splomGrid&&!r._hasOnlyLargeSploms&&a._hasOnlyLargeSploms&&(a._splomGrid.destroy(),a._splomGrid=null,delete a._splomGrid),tc.clean(e,r,t,a)}Nee.exports={name:Fee,attr:tc.attr,attrRegex:tc.attrRegex,layoutAttributes:tc.layoutAttributes,supplyLayoutDefaults:tc.supplyLayoutDefaults,drawFramework:tc.drawFramework,plot:cCe,drag:vCe,updateGrid:nM,clean:pCe,updateFx:tc.updateFx,toSVG:tc.toSVG,reglPrecompiled:Pee}});var Oee=I(($Be,Bee)=>{"use strict";var Iee=Dee();Iee.basePlotModule=zee(),Bee.exports=Iee});var Uee=I((KBe,Hee)=>{"use strict";Hee.exports=Oee()});var lM=I((QBe,Gee)=>{"use strict";var mCe=Qc(),iM=vl(),oM=Di(),yCe=vb().attributes,vx=Rn().extendFlat,gCe=Ra().templatedArray;Gee.exports={domain:yCe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:oM({editType:"plot"}),tickfont:oM({autoShadowDflt:!0,editType:"plot"}),rangefont:oM({editType:"plot"}),dimensions:gCe("dimension",{label:{valType:"string",editType:"plot"},tickvals:vx({},iM.tickvals,{editType:"plot"}),ticktext:vx({},iM.ticktext,{editType:"plot"}),tickformat:vx({},iM.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:vx({editType:"calc"},mCe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Xm={};Ka(Xm,{axisExtentOffset:()=>SCe,axisTitleOffset:()=>kCe,bar:()=>CCe,blockLineCount:()=>TCe,canvasPixelRatio:()=>ACe,cn:()=>LCe,id:()=>ECe,layers:()=>MCe,maxDimensionCount:()=>bCe,overdrag:()=>xCe,tickDistance:()=>wCe,verticalPadding:()=>_Ce});var bCe,xCe,_Ce,wCe,ACe,TCe,MCe,kCe,SCe,CCe,LCe,ECe,Wm=$a(()=>{"use strict";bCe=60,xCe=45,_Ce=2,wCe=50,ACe=1,TCe=5e3,MCe=["contextLineLayer","focusLineLayer","pickLineLayer"],kCe=28,SCe=10,CCe={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},LCe={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},ECe={filterBarPattern:"filter-bar-pattern"}});var Zm=I((eOe,Vee)=>{"use strict";var DCe=e2();function Yee(e){return[e]}Vee.exports={keyFun:function(e){return e.key},repeat:Yee,descend:DCe,wrap:Yee,unwrap:function(e){return e[0]}}});var fM=I((rOe,tre)=>{"use strict";var Gn=(Wm(),hr(Xm)),is=sa(),qCe=Zm().keyFun,hx=Zm().repeat,hd=ir().sorterAsc,RCe=ir().strTranslate,Xee=Gn.bar.snapRatio;function Wee(e,r){return e*(1-Xee)+r*Xee}var Zee=Gn.bar.snapClose;function FCe(e,r){return e*(1-Zee)+r*Zee}function px(e,r,t,a){if(PCe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],u=s,f=i;n*f<n*o;f+=n){var c=f+n,v=r[c];if(n*t<n*FCe(s,v))return Wee(s,u);if(n*t<n*v||c===o)return Wee(v,s);u=s,s=v}}function PCe(e,r){for(var t=0;t<r.length;t++)if(e>=r[t][0]&&e<=r[t][1])return!0;return!1}function NCe(e){e.attr("x",-Gn.bar.captureWidth/2).attr("width",Gn.bar.captureWidth)}function zCe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function ICe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=Jee(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;l<r.length;l++)a=r[l],n=a[1]-a[0],t.push(o),t.push(n),i=l+1,i<r.length&&(o=r[i][0]-a[1]);return t.push(e.height),t}function Jee(e,r){return e.map(function(t){return t.map(function(a){return Math.max(0,a*r)}).sort(hd)})}function BCe(e,r){var t=Gn.bar.handleHeight;if(!(r>e[1]+t||r<e[0]-t))return r>=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function jee(){is.select(document.body).style("cursor",null)}function uM(e){e.attr("stroke-dasharray",ICe)}function dx(e,r){var t=is.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Gn.bar.snapDuration).each("end",r):t;uM(a)}function $ee(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),u=Jee(s,l),f=NaN,c=NaN,v=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=r&&r<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=f,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-u[c][1]<u[v][0]-r?c:v),!isNaN(n)){var p=u[n],m=BCe(p,r);m&&(i.interval=s[n],i.intervalPix=p,i.region=m)}}if(e.ordinal&&!i.region){var y=e.unitTickvals,b=e.unitToPaddedPx.invert(r);for(o=0;o<y.length;o++){var T=[y[Math.max(o-1,0)]*.25+y[o]*.75,y[Math.min(o+1,y.length-1)]*.25+y[o]*.75];if(b>=T[0]&&b<=T[1]){i.clickableOrdinalRange=T;break}}}return i}function OCe(e,r){is.event.sourceEvent.stopPropagation();var t=r.height-is.mouse(e)[1]-2*Gn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=$ee(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Gn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function Kee(e,r){is.event.sourceEvent.stopPropagation();var t=r.height-is.mouse(e)[1]-2*Gn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(hd),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),dx(e.parentNode)}function HCe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(Qee(e,r),Kee(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=is.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,jee(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&sM(t)):sM(t),n.brushCallback(r),dx(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]<s[0]&&s.reverse(),n.newExtent=[px(0,s,n.newExtent[0],n.stayingIntervals),px(1,s,n.newExtent[1],n.stayingIntervals)];var u=n.newExtent[1]>n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||sM(t),n.brushCallback(r),u?dx(e.parentNode,l):(l(),dx(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function Qee(e,r){var t=r.height-is.mouse(e)[1]-2*Gn.verticalPadding,a=$ee(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),is.select(document.body).style("cursor",n)}function UCe(e){e.on("mousemove",function(r){is.event.preventDefault(),r.parent.inBrushDrag||Qee(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||jee()}).call(is.behavior.drag().on("dragstart",function(r){OCe(this,r)}).on("drag",function(r){Kee(this,r)}).on("dragend",function(r){HCe(this,r)}))}function ere(e,r){return e[0]-r[0]}function GCe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(hx);n.enter().append("rect").classed("background",!0).call(NCe).call(zCe).style("pointer-events",a?"none":"auto").attr("transform",RCe(0,Gn.verticalPadding)),n.call(UCe).attr("height",function(l){return l.height-Gn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(hx);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Gn.bar.width/2).attr("stroke-width",Gn.bar.width+Gn.bar.strokeWidth).attr("stroke",r).attr("opacity",Gn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(uM);var o=e.selectAll(".highlight").data(hx);o.enter().append("line").classed("highlight",!0).attr("x",-Gn.bar.width/2).attr("stroke-width",Gn.bar.width-Gn.bar.strokeWidth).attr("stroke",Gn.bar.fillColor).attr("opacity",Gn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(uM)}function YCe(e,r,t){var a=e.selectAll("."+Gn.cn.axisBrush).data(hx,qCe);a.enter().append("g").classed(Gn.cn.axisBrush,!0),GCe(a,r,t)}function VCe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function sM(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function XCe(e){return function(t){var a=t.brush,n=VCe(a),i=n.slice();a.filter.set(i),e()}}function rre(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function WCe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(hd)}).sort(ere),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=rre(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function ZCe(e,r,t,a,n,i){var o=WCe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:XCe(n),brushEndCallback:i}}}function JCe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(hd)}),r.multiselect?e=rre(e.sort(ere)):e=[e[0]]):e=[e.sort(hd)],r.tickvals){var t=r.tickvals.slice().sort(hd);if(e=e.map(function(a){var n=[px(0,t,a[0],[]),px(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}tre.exports={makeBrush:ZCe,ensureAxisBrush:YCe,cleanRanges:JCe}});var ire=I((tOe,nre)=>{"use strict";var ac=ir(),jCe=Ul().hasColorscale,$Ce=th(),KCe=vb().defaults,QCe=Yo(),eLe=tn(),are=lM(),rLe=fM(),cM=(Wm(),hr(Xm)).maxDimensionCount,tLe=$T();function aLe(e,r,t,a,n){var i=n("line.color",t);if(jCe(e,"line")&&ac.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),$Ce(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function nLe(e,r,t,a){function n(u,f){return ac.coerce(e,r,are.dimensions,u,f)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},eLe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=rLe.cleanRanges(s,r))}}nre.exports=function(r,t,a,n){function i(f,c){return ac.coerce(r,t,are,f,c)}var o=r.dimensions;Array.isArray(o)&&o.length>cM&&(ac.log("parcoords traces support up to "+cM+" dimensions at the moment"),o.splice(cM));var l=QCe(r,t,{name:"dimensions",layout:n,handleItemDefaults:nLe}),s=aLe(r,t,a,n,i);KCe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),tLe(t,l,"values",s);var u=ac.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});ac.coerceFont(i,"labelfont",u),ac.coerceFont(i,"tickfont",u,{autoShadowDflt:!0}),ac.coerceFont(i,"rangefont",u),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var lre=I((aOe,ore)=>{"use strict";var iLe=ir().isArrayOrTypedArray,vM=nh(),oLe=Zm().wrap;ore.exports=function(r,t){var a,n;return vM.hasColorscale(t,"line")&&iLe(t.line.color)?(a=t.line.color,n=vM.extractOpts(t.line).colorscale,vM.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=lLe(t._length),n=[[0,t.line.color],[1,t.line.color]]),oLe({lineColor:a,cscale:n})};function lLe(e){for(var r=new Array(e),t=0;t<e;t++)r[t]=.5;return r}});var hM=I(mx=>{"use strict";var sLe=ir().isTypedArray;mx.convertTypedArray=function(e){return sLe(e)?Array.prototype.slice.call(e):e};mx.isOrdinal=function(e){return!!e.tickvals};mx.isVisible=function(e){return e.visible||!("visible"in e)}});var yre=I((iOe,mre)=>{"use strict";var uLe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,","               p17_20, p21_24, p25_28, p29_32,","               p33_36, p37_40, p41_44, p45_48,","               p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,","             loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick    = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {","    return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {","    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);","    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);","    return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {","    return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {","    return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {","    return (","        fOutside(p[0], lo[0], hi[0]) ||","        fOutside(p[1], lo[1], hi[1]) ||","        fOutside(p[2], lo[2], hi[2]) ||","        fOutside(p[3], lo[3], hi[3])","    );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {","    return (","        vOutside(p[0], lo[0], hi[0]) ||","        vOutside(p[1], lo[1], hi[1]) ||","        vOutside(p[2], lo[2], hi[2]) ||","        vOutside(p[3], lo[3], hi[3])","    );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {","    return mOutside(A, loA, hiA) ||","           mOutside(B, loB, hiB) ||","           mOutside(C, loC, hiC) ||","           mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {","    mat4 pnts[4];","    pnts[0] = A;","    pnts[1] = B;","    pnts[2] = C;","    pnts[3] = D;","","    for(int i = 0; i < 4; ++i) {","        for(int j = 0; j < 4; ++j) {","            for(int k = 0; k < 4; ++k) {","                if(0 == iMod(","                    int(255.0 * texture2D(maskTexture,","                        vec2(","                            (float(i * 2 + j / 2) + 0.5) / 8.0,","                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight","                        ))[3]","                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),","                    2","                )) return true;","            }","        }","    }","    return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {","    float x = 0.5 * sign(v) + 0.5;","    float y = axisY(x, A, B, C, D);","    float z = 1.0 - abs(v);","","    z += isContext ? 0.0 : 2.0 * float(","        outsideBoundingBox(A, B, C, D) ||","        outsideRasterMask(A, B, C, D)","    );","","    return vec4(","        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,","        z,","        1.0","    );","}","","void main() {","    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);","    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);","    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);","    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);","","    float v = colors[3];","","    gl_Position = position(isContext, v, A, B, C, D);","","    fragColor =","        isContext ? vec4(contextColor) :","        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(`
`),fLe=["precision highp float;","","varying vec4 fragColor;","","void main() {","    gl_FragColor = fragColor;","}"].join(`
`),Jm=(Wm(),hr(Xm)).maxDimensionCount,hre=ir(),sre=1e-6,yx=2048,cLe=new Uint8Array(4),ure=new Uint8Array(4),fre={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function vLe(e){e.read({x:0,y:0,width:1,height:1,data:cLe})}function dre(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function hLe(e,r,t,a,n,i){var o=i.key;function l(s){var u=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],dre(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*u,i.offset=2*s*a,r(i),s*a+u<n&&(t.currentRafs[o]=window.requestAnimationFrame(function(){l(s+1)})),t.drawCompleted=!1)}t.drawCompleted||(vLe(e),t.drawCompleted=!0),l(0)}function dLe(e){return Math.max(sre,Math.min(1-sre,e))}function pLe(e,r){for(var t=new Array(256),a=0;a<256;a++)t[a]=e(a/255).concat(r);return t}function dM(e,r){return(e>>>8*r)%256/255}function mLe(e,r,t){for(var a=new Array(e*(Jm+4)),n=0,i=0;i<e;i++){for(var o=0;o<Jm;o++)a[n++]=o<r.length?r[o].paddedUnitValues[i]:.5;a[n++]=dM(i,2),a[n++]=dM(i,1),a[n++]=dM(i,0),a[n++]=dLe(t[i])}return a}function yLe(e,r,t){for(var a=new Array(r*8),n=0,i=0;i<r;i++)for(var o=0;o<2;o++)for(var l=0;l<4;l++){var s=e*4+l,u=t[i*64+s];s===63&&o===0&&(u*=-1),a[n++]=u}return a}function cre(e){var r="0"+e;return r.slice(-2)}function pre(e){return e<Jm?"p"+cre(e+1)+"_"+cre(e+4):"colors"}function gLe(e,r,t){for(var a=0;a<=Jm;a+=4)e[pre(a)](yLe(a/4,r,t))}function bLe(e){for(var r={},t=0;t<=Jm;t+=4)r[pre(t)]=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return r}function xLe(e,r,t,a,n,i,o,l,s,u,f,c,v,d){for(var p=[[],[]],m=0;m<64;m++)p[0][m]=m===n?1:0,p[1][m]=m===i?1:0;o*=d,l*=d,s*=d,u*=d;var y=e.lines.canvasOverdrag*d,b=e.domain,T=e.canvasWidth*d,_=e.canvasHeight*d,x=e.pad.l*d,w=e.pad.b*d,k=e.layoutHeight*d,M=e.layoutWidth*d,C=e.deselectedLines.color,D=e.deselectedLines.opacity,R=hre.extendFlat({key:f,resolution:[T,_],viewBoxPos:[o+y,l],viewBoxSize:[s,u],i0:n,i1:i,dim0A:p[0].slice(0,16),dim0B:p[0].slice(16,32),dim0C:p[0].slice(32,48),dim0D:p[0].slice(48,64),dim1A:p[1].slice(0,16),dim1B:p[1].slice(16,32),dim1C:p[1].slice(32,48),dim1D:p[1].slice(48,64),drwLayer:c,contextColor:[C[0],C[1],C[2],D!=="auto"?C[3]*D:Math.max(1/255,Math.pow(1/e.lines.color.length,1/3))],scissorX:(a===r?0:o+y)+(x-y)+M*b.x[0],scissorWidth:(a===t?T-o+y:s+.5)+(a===r?o+y:0),scissorY:l+w+k*b.y[0],scissorHeight:u,viewportX:x-y+M*b.x[0],viewportY:w+k*b.y[0],viewportWidth:T,viewportHeight:_},v);return R}function vre(e){var r=yx-1,t=Math.max(0,Math.floor(e[0]*r),0),a=Math.min(r,Math.ceil(e[1]*r),r);return[Math.min(t,a),Math.max(t,a)]}mre.exports=function(e,r){var t=r.context,a=r.pick,n=r.regl,i=n._gl,o=i.getParameter(i.ALIASED_LINE_WIDTH_RANGE),l=Math.max(o[0],Math.min(o[1],r.viewModel.plotGlPixelRatio)),s={currentRafs:{},drawCompleted:!0,clearOnly:!1},u,f,c,v,d=bLe(n),p,m=n.texture(fre),y=[];T(r);var b=n({profile:!1,blend:{enable:t,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!t,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:n.prop("scissorX"),y:n.prop("scissorY"),width:n.prop("scissorWidth"),height:n.prop("scissorHeight")}},viewport:{x:n.prop("viewportX"),y:n.prop("viewportY"),width:n.prop("viewportWidth"),height:n.prop("viewportHeight")},dither:!1,vert:uLe,frag:fLe,primitive:"lines",lineWidth:l,attributes:d,uniforms:{resolution:n.prop("resolution"),viewBoxPos:n.prop("viewBoxPos"),viewBoxSize:n.prop("viewBoxSize"),dim0A:n.prop("dim0A"),dim1A:n.prop("dim1A"),dim0B:n.prop("dim0B"),dim1B:n.prop("dim1B"),dim0C:n.prop("dim0C"),dim1C:n.prop("dim1C"),dim0D:n.prop("dim0D"),dim1D:n.prop("dim1D"),loA:n.prop("loA"),hiA:n.prop("hiA"),loB:n.prop("loB"),hiB:n.prop("hiB"),loC:n.prop("loC"),hiC:n.prop("hiC"),loD:n.prop("loD"),hiD:n.prop("hiD"),palette:m,contextColor:n.prop("contextColor"),maskTexture:n.prop("maskTexture"),drwLayer:n.prop("drwLayer"),maskHeight:n.prop("maskHeight")},offset:n.prop("offset"),count:n.prop("count")});function T(C){u=C.model,f=C.viewModel,c=f.dimensions.slice(),v=c[0]?c[0].values.length:0;var D=u.lines,R=a?D.color.map(function(q,z){return z/D.color.length}):D.color,P=mLe(v,c,R);gLe(d,v,P),!t&&!a&&(m=n.texture(hre.extendFlat({data:pLe(u.unitToColor,255)},fre)))}function _(C){var D,R,P,q=[[],[]];for(P=0;P<64;P++){var z=!C&&P<c.length?c[P].brush.filter.getBounds():[-1/0,1/0];q[0][P]=z[0],q[1][P]=z[1]}var B=yx*8,U=new Array(B);for(D=0;D<B;D++)U[D]=255;if(!C)for(D=0;D<c.length;D++){var G=D%8,X=(D-G)/8,Y=Math.pow(2,G),V=c[D],J=V.brush.filter.get();if(!(J.length<2)){var j=vre(J[0])[1];for(R=1;R<J.length;R++){var ee=vre(J[R]);for(P=j+1;P<ee[0];P++)U[P*8+X]&=~Y;j=Math.max(j,ee[1])}}}var pe={shape:[8,yx],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:U};return p?p(pe):p=n.texture(pe),{maskTexture:p,maskHeight:yx,loA:q[0].slice(0,16),loB:q[0].slice(16,32),loC:q[0].slice(32,48),loD:q[0].slice(48,64),hiA:q[1].slice(0,16),hiB:q[1].slice(16,32),hiC:q[1].slice(32,48),hiD:q[1].slice(48,64)}}function x(C,D,R){var P=C.length,q,z,B,U=1/0,G=-1/0;for(q=0;q<P;q++)C[q].dim0.canvasX<U&&(U=C[q].dim0.canvasX,z=q),C[q].dim1.canvasX>G&&(G=C[q].dim1.canvasX,B=q);P===0&&dre(n,0,0,u.canvasWidth,u.canvasHeight);var X=_(t);for(q=0;q<P;q++){var Y=C[q],V=Y.dim0.crossfilterDimensionIndex,J=Y.dim1.crossfilterDimensionIndex,j=Y.canvasX,ee=Y.canvasY,pe=j+Y.panelSizeX,ne=Y.plotGlPixelRatio;if(D||!y[V]||y[V][0]!==j||y[V][1]!==pe){y[V]=[j,pe];var ye=xLe(u,z,B,q,V,J,j,ee,Y.panelSizeX,Y.panelSizeY,Y.dim0.crossfilterDimensionIndex,t?0:a?2:1,X,ne);s.clearOnly=R;var te=D?u.lines.blockLineCount:v;hLe(n,b,s,te,v,ye)}}}function w(C,D){return n.read({x:C,y:D,width:1,height:1,data:ure}),ure}function k(C,D,R,P){var q=new Uint8Array(4*R*P);return n.read({x:C,y:D,width:R,height:P,data:q}),q}function M(){e.style["pointer-events"]="none",m.destroy(),p&&p.destroy();for(var C in d)d[C].destroy()}return{render:x,readPixel:w,readPixels:k,destroy:M,update:T}}});var Dre=I((oOe,Ere)=>{"use strict";var Ci=sa(),Ru=ir(),pM=Ru.isArrayOrTypedArray,Are=Ru.numberFormat,Tre=Kt(),Mre=tn(),_Le=Ru.strRotate,Us=Ru.strTranslate,wLe=Ri(),gx=Sa(),gre=nh(),gM=Zm(),Cl=gM.keyFun,Gs=gM.repeat,kre=gM.unwrap,dd=hM(),ca=(Wm(),hr(Xm)),Sre=fM(),ALe=yre();function bre(e,r,t){return Ru.aggNums(e,null,r,t)}function Cre(e,r){return bM(bre(Math.min,e,r),bre(Math.max,e,r))}function bx(e){var r=e.range;return r?bM(r[0],r[1]):Cre(e.values,e._length)}function bM(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function TLe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function MLe(e,r,t,a,n){var i=bx(t);return a?Ci.scale.ordinal().domain(a.map(TLe(Are(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Ci.scale.linear().domain(i).range([e-r,r])}function kLe(e,r){return Ci.scale.linear().range([r,e-r])}function SLe(e,r){return Ci.scale.linear().domain(bx(e)).range([r,1-r])}function CLe(e){if(e.tickvals){var r=bx(e);return Ci.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function LLe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){let[o,l,s]=Tre.rgbaArray(i[1]);return Ci.rgb(o,l,s)}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Ci.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function yM(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function ELe(e,r,t){var a=kre(r),n=a.trace,i=dd.convertTypedArray(a.lineColor),o=n.line,l={color:Tre.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},s=gre.extractOpts(o),u=s.reversescale?gre.flipScale(a.cscale):a.cscale,f=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,m=n.labelfont,y=n.tickfont,b=n.rangefont,T=Ru.extendDeepNoArrays({},o,{color:i.map(Ci.scale.linear().domain(bx({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:ca.blockLineCount,canvasOverdrag:ca.overdrag*ca.canvasPixelRatio}),_=Math.floor(v*(f.x[1]-f.x[0])),x=Math.floor(e.height*(f.y[1]-f.y[0])),w=e.margin||{l:80,r:80,t:100,b:80},k=_,M=x;return{key:t,colCount:c.filter(dd.isVisible).length,dimensions:c,tickDistance:ca.tickDistance,unitToColor:LLe(u),lines:T,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:m,tickFont:y,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:f,translateX:f.x[0]*v,translateY:e.height-f.y[1]*e.height,pad:w,canvasWidth:k*ca.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*ca.canvasPixelRatio,width:k,height:M,canvasPixelRatio:ca.canvasPixelRatio}}function DLe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=ca.verticalPadding/n,u=kLe(n,ca.verticalPadding),f={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return f.dimensions=i.filter(dd.isVisible).map(function(v,d){var p=SLe(v,s),m=c[v.label];c[v.label]=(m||0)+1;var y=v.label+(m?"__"+m:""),b=v.constraintrange,T=b&&b.length;T&&!pM(b[0])&&(b=[b]);var _=T?b.map(function(z){return z.map(p)}):[[-1/0,1/0]],x=function(){var z=f;z.focusLayer&&z.focusLayer.render(z.panels,!0);var B=yM(z);!e.contextShown()&&B?(z.contextLayer&&z.contextLayer.render(z.panels,!0),e.contextShown(!0)):e.contextShown()&&!B&&(z.contextLayer&&z.contextLayer.render(z.panels,!0,!0),e.contextShown(!1))},w=v.values;w.length>v._length&&(w=w.slice(0,v._length));var k=v.tickvals,M;function C(z,B){return{val:z,text:M[B]}}function D(z,B){return z.val-B.val}if(pM(k)&&k.length){Ru.isTypedArray(k)&&(k=Array.from(k)),M=v.ticktext,!pM(M)||!M.length?M=k.map(Are(v.tickformat)):M.length>k.length?M=M.slice(0,k.length):k.length>M.length&&(k=k.slice(0,M.length));for(var R=1;R<k.length;R++)if(k[R]<k[R-1]){for(var P=k.map(C).sort(D),q=0;q<k.length;q++)k[q]=P[q].val,M[q]=P[q].text;break}}else k=void 0;return w=dd.convertTypedArray(w),{key:y,label:v.label,tickFormat:v.tickformat,tickvals:k,ticktext:M,ordinal:dd.isOrdinal(v),multiselect:v.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:v._index,height:n,values:w,paddedUnitValues:w.map(p),unitTickvals:k&&k.map(p),xScale:l,x:l(d),canvasX:l(d)*o,unitToPaddedPx:u,domainScale:MLe(n,ca.verticalPadding,v,k,M),ordinalScale:CLe(v),parent:f,model:t,brush:Sre.makeBrush(e,T,_,function(){e.linePickActive(!1)},x,function(z){if(f.focusLayer.render(f.panels,!0),f.pickLayer&&f.pickLayer.render(f.panels,!0),e.linePickActive(!0),r&&r.filterChanged){var B=p.invert,U=z.map(function(G){return G.map(B).sort(Ru.sorterAsc)}).sort(function(G,X){return G[0]-X[0]});r.filterChanged(f.key,v._index,U)}})}}),f}function xre(e){e.classed(ca.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function qLe(){var e=!0,r=!1;return{linePickActive:function(t){return arguments.length?e=!!t:e},contextShown:function(t){return arguments.length?r=!!t:r}}}function _re(e,r){var t=r==="top"?1:-1,a=e*Math.PI/180,n=Math.sin(a),i=Math.cos(a);return{dir:t,dx:n,dy:i,degrees:e}}function mM(e,r,t){for(var a=r.panels||(r.panels=[]),n=e.data(),i=0;i<n.length-1;i++){var o=a[i]||(a[i]={}),l=n[i],s=n[i+1];o.dim0=l,o.dim1=s,o.canvasX=l.canvasX,o.panelSizeX=s.canvasX-l.canvasX,o.panelSizeY=r.model.canvasHeight,o.y=0,o.canvasY=0,o.plotGlPixelRatio=t}}function RLe(e){for(var r=0;r<e.length;r++)for(var t=0;t<e[r].length;t++)for(var a=e[r][t].trace,n=a.dimensions,i=0;i<n.length;i++){var o=n[i].values,l=n[i]._ax;l&&(l.range?l.range=bM(l.range[0],l.range[1]):l.range=Cre(o,a._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=n[i].tickformat,Mre.calcTicks(l),l.cleanRange())}}function Lre(e,r){return Mre.tickText(e._ax,r,!1).text}function wre(e,r){if(e.ordinal)return"";var t=e.domainScale.domain(),a=t[r?t.length-1:0];return Lre(e.model.dimensions[e.visibleIndex],a)}Ere.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=o._toppaper,s=o._glcontainer,u=r._context.plotGlPixelRatio,f=r._fullLayout.paper_bgcolor;RLe(t);var c=qLe(),v=t.filter(function(q){return kre(q).trace.visible}).map(ELe.bind(0,a)).map(DLe.bind(0,c,n));s.each(function(q,z){return Ru.extendFlat(q,v[z])});var d=s.selectAll(".gl-canvas").each(function(q){q.viewModel=v[0],q.viewModel.plotGlPixelRatio=u,q.viewModel.paperColor=f,q.model=q.viewModel?q.viewModel.model:null}),p=null,m=d.filter(function(q){return q.pick});m.style("pointer-events",i?"none":"auto").on("mousemove",function(q){if(c.linePickActive()&&q.lineLayer&&n&&n.hover){var z=Ci.event,B=this.width,U=this.height,G=Ci.mouse(this),X=G[0],Y=G[1];if(X<0||Y<0||X>=B||Y>=U)return;var V=q.lineLayer.readPixel(X,U-1-Y),J=V[3]!==0,j=J?V[2]+256*(V[1]+256*V[0]):null,ee={x:X,y:Y,clientX:z.clientX,clientY:z.clientY,dataIndex:q.model.key,curveNumber:j};j!==p&&(J?n.hover(ee):n.unhover&&n.unhover(ee),p=j)}}),d.style("opacity",function(q){return q.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var y=l.selectAll("."+ca.cn.parcoords).data(v,Cl);y.exit().remove(),y.enter().append("g").classed(ca.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),y.attr("transform",function(q){return Us(q.model.translateX,q.model.translateY)});var b=y.selectAll("."+ca.cn.parcoordsControlView).data(Gs,Cl);b.enter().append("g").classed(ca.cn.parcoordsControlView,!0),b.attr("transform",function(q){return Us(q.model.pad.l,q.model.pad.t)});var T=b.selectAll("."+ca.cn.yAxis).data(function(q){return q.dimensions},Cl);T.enter().append("g").classed(ca.cn.yAxis,!0),b.each(function(q){mM(T,q,u)}),d.each(function(q){if(q.viewModel){!q.lineLayer||n?q.lineLayer=ALe(this,q):q.lineLayer.update(q),(q.key||q.key===0)&&(q.viewModel[q.key]=q.lineLayer);var z=!q.context||n;q.lineLayer.render(q.viewModel.panels,z)}}),T.attr("transform",function(q){return Us(q.xScale(q.xIndex),0)}),T.call(Ci.behavior.drag().origin(function(q){return q}).on("drag",function(q){var z=q.parent;c.linePickActive(!1),q.x=Math.max(-ca.overdrag,Math.min(q.model.width+ca.overdrag,Ci.event.x)),q.canvasX=q.x*q.model.canvasPixelRatio,T.sort(function(B,U){return B.x-U.x}).each(function(B,U){B.xIndex=U,B.x=q===B?B.x:B.xScale(B.xIndex),B.canvasX=B.x*B.model.canvasPixelRatio}),mM(T,z,u),T.filter(function(B){return Math.abs(q.xIndex-B.xIndex)!==0}).attr("transform",function(B){return Us(B.xScale(B.xIndex),0)}),Ci.select(this).attr("transform",Us(q.x,0)),T.each(function(B,U,G){G===q.parent.key&&(z.dimensions[U]=B)}),z.contextLayer&&z.contextLayer.render(z.panels,!1,!yM(z)),z.focusLayer.render&&z.focusLayer.render(z.panels)}).on("dragend",function(q){var z=q.parent;q.x=q.xScale(q.xIndex),q.canvasX=q.x*q.model.canvasPixelRatio,mM(T,z,u),Ci.select(this).attr("transform",function(B){return Us(B.x,0)}),z.contextLayer&&z.contextLayer.render(z.panels,!1,!yM(z)),z.focusLayer&&z.focusLayer.render(z.panels),z.pickLayer&&z.pickLayer.render(z.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(z.key,z.dimensions.map(function(B){return B.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+ca.cn.axisOverlays).data(Gs,Cl);_.enter().append("g").classed(ca.cn.axisOverlays,!0),_.selectAll("."+ca.cn.axis).remove();var x=_.selectAll("."+ca.cn.axis).data(Gs,Cl);x.enter().append("g").classed(ca.cn.axis,!0),x.each(function(q){var z=q.model.height/q.model.tickDistance,B=q.domainScale,U=B.domain();Ci.select(this).call(Ci.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(z,q.tickFormat).tickValues(q.ordinal?U:null).tickFormat(function(G){return dd.isOrdinal(q)?G:Lre(q.model.dimensions[q.visibleIndex],G)}).scale(B)),gx.font(x.selectAll("text"),q.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var w=_.selectAll("."+ca.cn.axisHeading).data(Gs,Cl);w.enter().append("g").classed(ca.cn.axisHeading,!0);var k=w.selectAll("."+ca.cn.axisTitle).data(Gs,Cl);k.enter().append("text").classed(ca.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),k.text(function(q){return q.label}).each(function(q){var z=Ci.select(this);gx.font(z,q.model.labelFont),wLe.convertToTspans(z,r)}).attr("transform",function(q){var z=_re(q.model.labelAngle,q.model.labelSide),B=ca.axisTitleOffset;return(z.dir>0?"":Us(0,2*B+q.model.height))+_Le(z.degrees)+Us(-B*z.dx,-B*z.dy)}).attr("text-anchor",function(q){var z=_re(q.model.labelAngle,q.model.labelSide),B=Math.abs(z.dx),U=Math.abs(z.dy);return 2*B>U?z.dir*z.dx<0?"start":"end":"middle"});var M=_.selectAll("."+ca.cn.axisExtent).data(Gs,Cl);M.enter().append("g").classed(ca.cn.axisExtent,!0);var C=M.selectAll("."+ca.cn.axisExtentTop).data(Gs,Cl);C.enter().append("g").classed(ca.cn.axisExtentTop,!0),C.attr("transform",Us(0,-ca.axisExtentOffset));var D=C.selectAll("."+ca.cn.axisExtentTopText).data(Gs,Cl);D.enter().append("text").classed(ca.cn.axisExtentTopText,!0).call(xre),D.text(function(q){return wre(q,!0)}).each(function(q){gx.font(Ci.select(this),q.model.rangeFont)});var R=M.selectAll("."+ca.cn.axisExtentBottom).data(Gs,Cl);R.enter().append("g").classed(ca.cn.axisExtentBottom,!0),R.attr("transform",function(q){return Us(0,q.model.height+ca.axisExtentOffset)});var P=R.selectAll("."+ca.cn.axisExtentBottomText).data(Gs,Cl);P.enter().append("text").classed(ca.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(xre),P.text(function(q){return wre(q,!1)}).each(function(q){gx.font(Ci.select(this),q.model.rangeFont)}),Sre.ensureAxisBrush(_,f,r)}});var _M=I((xM,Pre)=>{"use strict";var FLe=Dre(),PLe=nx(),qre=hM().isVisible,Fre={};function Rre(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function NLe(e,r){return function(a,n){return Rre(e,r,a)-Rre(e,r,n)}}var xM=Pre.exports=function(r,t){var a=r._fullLayout,n=PLe(r,[],Fre);if(n){var i={},o={},l={},s=a._size;t.forEach(function(d,p){var m=d[0].trace,y=l[p]=m.index;i[p]=r.data[y].dimensions,o[p]=r.data[y].dimensions.slice()});var u=function(d,p,m){var y=o[d][p],b=m.map(function(M){return M.slice()}),T="dimensions["+p+"].constraintrange",_=a._tracePreGUI[r._fullData[l[d]].uid];if(_[T]===void 0){var x=y.constraintrange;_[T]=x||null}var w=r._fullData[l[d]].dimensions[p];b.length?(b.length===1&&(b=b[0]),y.constraintrange=b,w.constraintrange=b.slice(),b=[b]):(delete y.constraintrange,delete w.constraintrange,b=null);var k={};k[T]=b,r.emit("plotly_restyle",[k,[l[d]]])},f=function(d){r.emit("plotly_hover",d)},c=function(d){r.emit("plotly_unhover",d)},v=function(d,p){var m=NLe(p,o[d].filter(qre));i[d].sort(m),o[d].filter(function(y){return!qre(y)}).sort(function(y){return o[d].indexOf(y)}).forEach(function(y){i[d].splice(i[d].indexOf(y),1),i[d].splice(o[d].indexOf(y),0,y)}),r.emit("plotly_restyle",[{dimensions:[i[d]]},[l[d]]])};FLe(r,t,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},{filterChanged:u,hover:f,unhover:c,axesMoved:v})}};xM.reglPrecompiled=Fre});var zre=I(jm=>{"use strict";var Nre=sa(),zLe=W1().getModuleCalcData,ILe=_M(),BLe=(xf(),hr(bf));jm.name="parcoords";jm.plot=function(e){var r=zLe(e.calcdata,"parcoords")[0];r.length&&ILe(e,r)};jm.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};jm.toSVG=function(e){var r=e._fullLayout._glimages,t=Nre.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:BLe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Nre.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Bre=I((sOe,Ire)=>{"use strict";Ire.exports={attributes:lM(),supplyDefaults:ire(),calc:lre(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:zre(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var Ure=I((uOe,Hre)=>{"use strict";var Ore=Bre();Ore.plot=_M();Hre.exports=Ore});var Yre=I((fOe,Gre)=>{"use strict";Gre.exports=Ure()});var Xi=I((cOe,Xre)=>{var _x=xi();function Vre(){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={}}_x(Vre.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 wM(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(ra.local.invalidDate||ra.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function xx(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}_x(wM.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(ra.local.invalidDate||ra.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(ra.local.differentCalendars||ra.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?"-":"")+xx(Math.abs(this.year()),4)+"-"+xx(this.month(),2)+"-"+xx(this.day(),2)}});function AM(){this.shortYearCutoff="+10"}_x(AM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,ra.local.invalidDate||ra.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new wM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,ra.local.invalidYear||ra.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,ra.local.invalidYear||ra.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+xx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ra.local.invalidYear||ra.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,ra.local.invalidMonth||ra.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,ra.local.invalidMonth||ra.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ra.local.invalidYear||ra.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,ra.local.invalidDate||ra.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,ra.local.invalidDate||ra.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,ra.local.invalidDate||ra.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,ra.local.invalidDate||ra.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,ra.local.invalidDate||ra.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,ra.local.invalidDate||ra.regionalOptions[""].invalidDate);return ra.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(ra.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(ra.local.differentCalendars||ra.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 TM(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}TM.prototype=new AM;_x(TM.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,ra.local.invalidYear||ra.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,ra.local.invalidMonth||ra.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,ra.local.invalidDate||ra.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,ra.local.invalidDate||ra.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 ra=Xre.exports=new Vre;ra.cdate=wM;ra.baseCalendar=AM;ra.calendars.gregorian=TM});var Wre=I(()=>{var MM=xi(),Li=Xi();MM(Li.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"});Li.local=Li.regionalOptions[""];MM(Li.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});MM(Li.baseCalendar.prototype,{UNIX_EPOCH:Li.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Li.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 Li.local.invalidFormat||Li.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,w){for(var k=1;_+k<e.length&&e.charAt(_+k)===x;)k++;return _+=k-1,Math.floor(k/(w||1))>1},f=function(x,w,k,M){var C=""+w;if(u(x,M))for(;C.length<k;)C="0"+C;return C},c=function(x,w,k,M){return u(x)?M[w]:k[w]},v=this,d=function(x){return typeof i=="function"?i.call(v,x,u("m")):y(f("m",x.month(),2))},p=function(x,w){return w?typeof l=="function"?l.call(v,x):l[x.month()-v.minMonth]:typeof o=="function"?o.call(v,x):o[x.month()-v.minMonth]},m=this.local.digits,y=function(x){return t.localNumbers&&m?m(x):x},b="",T=!1,_=0;_<e.length;_++)if(T)e.charAt(_)==="'"&&!u("'")?T=!1:b+=e.charAt(_);else switch(e.charAt(_)){case"d":b+=y(f("d",r.day(),2));break;case"D":b+=c("D",r.dayOfWeek(),a,n);break;case"o":b+=f("o",r.dayOfYear(),3);break;case"w":b+=f("w",r.weekOfYear(),2);break;case"m":b+=d(r);break;case"M":b+=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+="'":T=!0;break;default:b+=e.charAt(_)}return b},parseDate:function(e,r,t){if(r==null)throw Li.local.invalidArguments||Li.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,m=!1,y=!1,b=function(q,z){for(var B=1;D+B<e.length&&e.charAt(D+B)===q;)B++;return D+=B-1,Math.floor(B/(z||1))>1},T=function(q,z){var B=b(q,z),U=[2,3,B?4:2,B?4:2,10,11,20]["oyYJ@!".indexOf(q)+1],G=new RegExp("^-?\\d{1,"+U+"}"),X=r.substring(C).match(G);if(!X)throw(Li.local.missingNumberAt||Li.regionalOptions[""].missingNumberAt).replace(/\{0\}/,C);return C+=X[0].length,parseInt(X[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var q=l.call(_,r.substring(C));return C+=q.length,q}return T("m")},w=function(q,z,B,U){for(var G=b(q,U)?B:z,X=0;X<G.length;X++)if(r.substr(C,G[X].length).toLowerCase()===G[X].toLowerCase())return C+=G[X].length,X+_.minMonth;throw(Li.local.unknownNameAt||Li.regionalOptions[""].unknownNameAt).replace(/\{0\}/,C)},k=function(){if(typeof u=="function"){var q=b("M")?u.call(_,r.substring(C)):s.call(_,r.substring(C));return C+=q.length,q}return w("M",s,u)},M=function(){if(r.charAt(C)!==e.charAt(D))throw(Li.local.unexpectedLiteralAt||Li.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,C);C++},C=0,D=0;D<e.length;D++)if(y)e.charAt(D)==="'"&&!b("'")?y=!1:M();else switch(e.charAt(D)){case"d":d=T("d");break;case"D":w("D",n,i);break;case"o":p=T("o");break;case"w":T("w");break;case"m":v=x();break;case"M":v=k();break;case"y":var R=D;m=!b("y",2),D=R,c=T("y",2);break;case"Y":c=T("Y",2);break;case"J":f=T("J")+.5,r.charAt(C)==="."&&(C++,T("J"));break;case"@":f=T("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=T("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":C=r.length;break;case"'":b("'")?M():y=!0;break;default:M()}if(C<r.length)throw Li.local.unexpectedText||Li.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&m&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof 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 Zre=I(()=>{var nc=Xi(),OLe=xi(),kM=nc.instance();function wx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wx.prototype=new nc.baseCalendar;OLe(wx.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(ULe);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(GLe);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(YLe);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 nc.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 nc.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=ic[e-ic[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,nc.local.invalidyear),n=oc[a-oc[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=kM.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=ic[e-ic[0]],a=t>>13,n=a?12:11;if(r>n)throw nc.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,nc.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=XLe(e,i,t,n);return kM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=kM.fromJD(e),t=VLe(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(HLe),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(wx.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 HLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ULe=/^\d?\d[iI]?/m,GLe=/^闰?十?[一二三四五六七八九]?月/m,YLe=/^闰?十?[一二三四五六七八九]?/m;nc.calendars.chinese=wx;var ic=[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],oc=[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 VLe(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=oc[n.year-oc[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=oc[i.year-oc[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=ic[i.year-ic[0]],T;for(T=0;T<13;T++){var _=b&1<<12-T?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||T<x?(i.isIntercalary=!1,i.month=1+T):T===x?(i.isIntercalary=!0,i.month=T):(i.isIntercalary=!1,i.month=T),i.day=1+p,i}function XLe(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=ic[o.year-ic[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m<p;m++){var y=v&1<<12-m?30:29;c+=y}var b=oc[o.year-oc[0]],T=b>>9&4095,_=b>>5&15,x=b&31,w=new Date(T,_-1,x+c);return i.year=w.getFullYear(),i.month=1+w.getMonth(),i.day=w.getDate(),i}});var Jre=I(()=>{var I0=Xi(),WLe=xi();function SM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SM.prototype=new I0.baseCalendar;WLe(SM.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,I0.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,I0.local.invalidYear||I0.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,I0.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,I0.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)}});I0.calendars.coptic=SM});var jre=I(()=>{var Fu=Xi(),ZLe=xi();function CM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CM.prototype=new Fu.baseCalendar;ZLe(CM.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,Fu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fu.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,Fu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Fu.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,Fu.local.invalidDate);return{century:JLe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fu.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 JLe={20:"Fruitbat",21:"Anchovy"};Fu.calendars.discworld=CM});var $re=I(()=>{var B0=Xi(),jLe=xi();function LM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LM.prototype=new B0.baseCalendar;jLe(LM.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,B0.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,B0.local.invalidYear||B0.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,B0.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,B0.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)}});B0.calendars.ethiopian=LM});var Kre=I(()=>{var lc=Xi(),$Le=xi();function EM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EM.prototype=new lc.baseCalendar;$Le(EM.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,lc.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ax(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,lc.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,lc.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,lc.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ax(this.daysInYear(e),10)===5?30:r===9&&Ax(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,lc.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,lc.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 Ax(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 Ax(e,r){return e-r*Math.floor(e/r)}lc.calendars.hebrew=EM});var Qre=I(()=>{var $m=Xi(),KLe=xi();function DM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DM.prototype=new $m.baseCalendar;KLe(DM.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,$m.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,$m.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,$m.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)}});$m.calendars.islamic=DM});var ete=I(()=>{var Km=Xi(),QLe=xi();function qM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qM.prototype=new Km.baseCalendar;QLe(qM.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,Km.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,Km.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,Km.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)}});Km.calendars.julian=qM});var tte=I(()=>{var Ll=Xi(),eEe=xi();function FM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FM.prototype=new Ll.baseCalendar;eEe(FM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t<e.length;t++){var a=parseInt(e[t],10);if(Math.abs(a)>19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ll.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ll.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ll.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ll.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ll.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=RM(e+8+340,365);return[Math.floor(r/20)+1,RM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[rte(e+20,20),rte(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ll.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function RM(e,r){return e-r*Math.floor(e/r)}function rte(e,r){return RM(e-1,r)+1}Ll.calendars.mayan=FM});var nte=I(()=>{var O0=Xi(),rEe=xi();function PM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PM.prototype=new O0.baseCalendar;var ate=O0.instance("gregorian");rEe(PM.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,O0.local.invalidYear||O0.regionalOptions[""].invalidYear);return ate.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,O0.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,O0.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+ate.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)}});O0.calendars.nanakshahi=PM});var ite=I(()=>{var H0=Xi(),tEe=xi();function NM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NM.prototype=new H0.baseCalendar;tEe(NM.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,H0.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,H0.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,H0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=H0.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=H0.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]}});H0.calendars.nepali=NM});var ote=I(()=>{var pd=Xi(),aEe=xi();function Mx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Tx(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}Mx.prototype=new pd.baseCalendar;aEe(Mx.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,pd.local.invalidYear);return Tx(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,pd.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,pd.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)Tx(i)&&n++;else if(e<0)for(var i=e;i<0;i++)Tx(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,Tx(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)}});pd.calendars.persian=Mx;pd.calendars.jalali=Mx});var lte=I(()=>{var U0=Xi(),nEe=xi(),kx=U0.instance();function zM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zM.prototype=new U0.baseCalendar;nEe(zM.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,U0.local.invalidYear),t=this._t2gYear(r.year());return kx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,U0.local.invalidYear),n=this._t2gYear(a.year());return kx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,U0.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,U0.local.invalidDate),n=this._t2gYear(a.year());return kx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=kx.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)}});U0.calendars.taiwan=zM});var ste=I(()=>{var G0=Xi(),iEe=xi(),Sx=G0.instance();function IM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IM.prototype=new G0.baseCalendar;iEe(IM.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,G0.local.invalidYear),t=this._t2gYear(r.year());return Sx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,G0.local.invalidYear),n=this._t2gYear(a.year());return Sx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,G0.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,G0.local.invalidDate),n=this._t2gYear(a.year());return Sx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Sx.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)}});G0.calendars.thai=IM});var ute=I(()=>{var Y0=Xi(),oEe=xi();function BM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BM.prototype=new Y0.baseCalendar;oEe(BM.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,Y0.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,Y0.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<sc.length;i++){if(sc[i]>a)return sc[n]-sc[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,Y0.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+sc[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<sc.length&&!(sc[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-sc[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Y0.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=Y0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Y0.calendars.ummalqura=BM;var sc=[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 cte=I((UOe,fte)=>{"use strict";fte.exports=Xi();Wre();Zre();Jre();jre();$re();Kre();Qre();ete();tte();nte();ite();ote();lte();ste();ute()});var gte=I((GOe,yte)=>{"use strict";var hte=cte(),Qm=ir(),dte=(Zn(),hr(ri)),lEe=dte.EPOCHJD,sEe=dte.ONEDAY,UM={valType:"enumerated",values:Qm.sortObjectKeys(hte.calendars),editType:"calc",dflt:"gregorian"},pte=function(e,r,t,a){var n={};return n[t]=UM,Qm.coerce(e,r,n,t,a)},uEe=function(e,r,t,a){for(var n=0;n<t.length;n++)pte(e,r,t[n]+"calendar",a.calendar)},fEe={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"},cEe={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"},vEe={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"]},Cx="##",hEe={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:Cx,w:Cx,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function dEe(e,r,t){for(var a=Math.floor((r+.05)/sEe)+lEe,n=mte(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=hEe[l],u?(u===Cx?f=Cx:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var vte={};function mte(e){var r=vte[e];return r||(r=vte[e]=hte.instance(e),r)}function ey(e){return Qm.extendFlat({},UM,{description:e})}function GM(e){return"Sets the calendar system to use with `"+e+"` date data."}var HM={xcalendar:ey(GM("x"))},Ys=Qm.extendFlat({},HM,{ycalendar:ey(GM("y"))}),OM=Qm.extendFlat({},Ys,{zcalendar:ey(GM("z"))}),md=ey(["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(" "));yte.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Ys,bar:Ys,box:Ys,heatmap:Ys,contour:Ys,histogram:Ys,histogram2d:Ys,histogram2dcontour:Ys,scatter3d:OM,surface:OM,mesh3d:OM,scattergl:Ys,ohlc:HM,candlestick:HM},layout:{calendar:ey(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:md},yaxis:{calendar:md},scene:{xaxis:{calendar:md},yaxis:{calendar:md},zaxis:{calendar:md}},polar:{radialaxis:{calendar:md}}}},layoutAttributes:UM,handleDefaults:pte,handleTraceDefaults:uEe,CANONICAL_SUNDAY:cEe,CANONICAL_TICK:fEe,DFLTRANGE:vEe,getCal:mte,worldCalFmt:dEe}});var xte=I((YOe,bte)=>{"use strict";bte.exports=gte()});var pEe=I((VOe,wte)=>{var _te=GX();_te.register([UQ(),Uee(),Yre(),xte()]);wte.exports=_te});return pEe();})();
/*! Bundled license information:

native-promise-only/lib/npo.src.js:
  (*! Native Promise Only
      v0.8.1 (c) Kyle Simpson
      MIT License: http://getify.mit-license.org
  *)

polybooljs/index.js:
  (*
   * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
   * @license MIT
   * @preserve Project Home: https://github.com/voidqk/polybooljs
   *)

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

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
   *)
*/

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