/** * plotly.js (gl2d - minified) v4.3.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ ( function(root, factory) { if (typeof module === "object" && module.exports) { module.exports = factory(); } else { root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { "use strict";var Plotly=(()=>{var wte=Object.create;var f2=Object.defineProperty,Ate=Object.defineProperties,Tte=Object.getOwnPropertyDescriptor,Mte=Object.getOwnPropertyDescriptors,kte=Object.getOwnPropertyNames,ay=Object.getOwnPropertySymbols,Ste=Object.getPrototypeOf,f_=Object.prototype.hasOwnProperty,VM=Object.prototype.propertyIsEnumerable;var YM=(e,r,t)=>r in e?f2(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(ay)for(var t of ay(r))VM.call(r,t)&&YM(e,t,r[t]);return e},Va=(e,r)=>Ate(e,Mte(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&&ay)for(var a of ay(e))r.indexOf(a)<0&&VM.call(e,a)&&(t[a]=e[a]);return t};var Ja=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var B=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},ja=(e,r)=>{for(var t in r)f2(e,t,{get:r[t],enumerable:!0})},WM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of kte(r))!f_.call(e,n)&&n!==t&&f2(e,n,{get:()=>r[n],enumerable:!(a=Tte(r,n))||a.enumerable});return e};var c2=(e,r,t)=>(t=e!=null?wte(Ste(e)):{},WM(r||!e||!e.__esModule?f2(t,"default",{value:e,enumerable:!0}):t,e)),vr=e=>WM(f2({},"__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 v2=B(JM=>{"use strict";JM.version="4.3.0"});var $M=B((jM,ny)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ny!="undefined"&&ny.exports&&(ny.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;b0&&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{(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 hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,S=h.length,D,L;if(arguments.length===1){for(;++A=L){D=L;break}for(;++AL&&(D=L)}else{for(;++A=L){D=L;break}for(;++AL&&(D=L)}return D},e.max=function(h,g){var A=-1,S=h.length,D,L;if(arguments.length===1){for(;++A=L){D=L;break}for(;++AD&&(D=L)}else{for(;++A=L){D=L;break}for(;++AD&&(D=L)}return D},e.extent=function(h,g){var A=-1,S=h.length,D,L,N;if(arguments.length===1){for(;++A=L){D=N=L;break}for(;++AL&&(D=L),N=L){D=N=L;break}for(;++AL&&(D=L),N1)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,D){for(arguments.length<3&&(S=0),arguments.length<4&&(D=g.length);S>>1;h(g[L],A)<0?S=L+1:D=L}return S},right:function(g,A,S,D){for(arguments.length<3&&(S=0),arguments.length<4&&(D=g.length);S>>1;h(g[L],A)>0?D=L:S=L+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,D,L;S;)L=Math.random()*S--|0,D=h[S+g],h[S+g]=h[L+g],h[L+g]=D;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,D=h[0],L=new Array(A<0?0:A);g=0;)for(N=h[g],A=N.length;--A>=0;)L[--D]=N[A];return L};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=[],D=T(b(A)),L=-1,N;if(h*=D,g*=D,A*=D,A<0)for(;(N=h+A*++L)>g;)S.push(N/D);else for(;(N=h+A*++L)=g.length)return D?D.call(h,O):S?O.sort(S):O;for(var J=-1,$=O.length,K=g[W++],we,ke,re,ve=new x,xe;++J<$;)(xe=ve.get(we=K(ke=O[J])))?xe.push(ke):ve.set(we,[ke]);return R?(ke=R(),re=function(Se,De){ke.set(Se,L(R,De,W))}):(ke={},re=function(Se,De){ke[Se]=L(R,De,W)}),ve.forEach(re),ke}function N(R,O){if(O>=g.length)return R;var W=[],J=A[O++];return R.forEach(function($,K){W.push({key:$,values:N(K,O)})}),J?W.sort(function($,K){return J($.key,K.key)}):W}return h.map=function(R,O){return L(O,R,0)},h.entries=function(R){return N(L(e.map,R,0),0)},h.key=function(R){return g.push(R),h},h.sortKeys=function(R){return A[g.length-1]=R,h},h.sortValues=function(R){return S=R,h},h.rollup=function(R){return D=R,h},h},e.set=function(h){var g=new I;if(h)for(var A=0,S=h.length;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 D=g,L=-1,N=D.length,R;++L=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ue.hasOwnProperty(A)?{space:Ue[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(Ye(g,h[g]));return this}return this.each(Ye(h,g))};function Ye(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function D(){this.setAttribute(h,g)}function L(){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 R(){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?R:N:h.local?L:D}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=ar(h)).length,D=-1;if(g=A.classList){for(;++D=0;)(L=A[S])&&(D&&D!==L.nextSibling&&D.parentNode.insertBefore(L,D),D=L);return this},ge.sort=function(h){h=Ee.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=D+1);!(O=N[g])&&++g0&&(h=h.slice(0,D));var N=lr.get(h);N&&(h=N,L=fr);function R(){var J=this[S];J&&(this.removeEventListener(h,J,J.$),delete this[S])}function O(){var J=L(g,t(arguments));R.call(this),this.addEventListener(h,this[S]=J,J.$=A),J._=g}function W(){var J=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),$;for(var K in this)if($=K.match(J)){var we=this[K];this.removeEventListener($[1],we,we.$),delete this[K]}}return D?g?O:R:g?V:W}var lr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&lr.forEach(function(h){"on"+h in a&&lr.remove(h)});function wr(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 fr(h,g){var A=wr(h,g);return function(S){var D=this,L=S.relatedTarget;(!L||L!==D&&!(L.compareDocumentPosition(D)&8))&&A.call(D,S)}}var kr,qr=0;function $r(h){var g=".dragsuppress-"+ ++qr,A="click"+g,S=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(kr==null&&(kr="onselectstart"in h?!1:X(h.style,"userSelect")),kr){var D=n(h).style,L=D[kr];D[kr]="none"}return function(N){if(S.on(g,null),kr&&(D[kr]=L),N){var R=function(){S.on(A,null)};S.on(A,function(){ee(),R()},!0),setTimeout(R,0)}}}e.mouse=function(h){return Ge(h,me())};var tt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ge(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if(tt<0){var D=i(h);if(D.scrollX||D.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=A[0][0].getScreenCTM();tt=!(L.f||L.e),A.remove()}}return tt?(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=me().changedTouches),g){for(var S=0,D=g.length,L;S0?1:h<0?-1:0}function ra(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Ca(h){return h>1?0:h<-1?at:Math.acos(h)}function Ha(h){return h>1?le:h<-1?-le:Math.asin(h)}function an(h){return((h=Math.exp(h))-1/h)/2}function yn(h){return((h=Math.exp(h))+1/h)/2}function sn(h){return((h=Math.exp(2*h))-1)/(h+1)}function Yn(h){return(h=Math.sin(h/2))*h}var qa=Math.SQRT2,un=2,fn=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],D=h[2],L=g[0],N=g[1],R=g[2],O=L-A,W=N-S,J=O*O+W*W,$,K;if(J0&&(Or=Or.transition().duration(N)),Or.call(De.event)}function ct(){ve&&ve.domain(re.range().map(function(Or){return(Or-h.x)/h.k}).map(re.invert)),Se&&Se.domain(xe.range().map(function(Or){return(Or-h.y)/h.k}).map(xe.invert))}function vt(Or){R++||Or({type:"zoomstart"})}function Bt(Or){ct(),Or({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gt(Or){--R||(Or({type:"zoomend"}),A=null)}function Rt(){var Or=this,It=ke.of(Or,arguments),Wt=0,va=e.select(i(Or)).on(W,ui).on(J,xi),Wa=ye(e.mouse(Or)),En=$r(Or);gv.call(Or),vt(It);function ui(){Wt=1,Nr(e.mouse(Or),Wa),Bt(It)}function xi(){va.on(W,null).on(J,null),En(Wt),gt(It)}}function pa(){var Or=this,It=ke.of(Or,arguments),Wt={},va=0,Wa,En=".zoom-"+e.event.changedTouches[0].identifier,ui="touchmove"+En,xi="touchend"+En,zi=[],H=e.select(Or),ae=$r(Or);Be(),vt(It),H.on(O,null).on(K,Be);function ie(){var Xe=e.touches(Or);return Wa=h.k,Xe.forEach(function(yr){yr.identifier in Wt&&(Wt[yr.identifier]=ye(yr))}),Xe}function Be(){var Xe=e.event.target;e.select(Xe).on(ui,Ze).on(xi,Qe),zi.push(Xe);for(var yr=e.event.changedTouches,Lr=0,Er=yr.length;Lr1){var mt=Fr[0],jr=Fr[1],cr=mt[0]-jr[0],Pe=mt[1]-jr[1];va=cr*cr+Pe*Pe}}function Ze(){var Xe=e.touches(Or),yr,Lr,Er,Fr;gv.call(Or);for(var Ct=0,mt=Xe.length;Ct1?1:g,A=A<0?0:A>1?1:A,D=A<=.5?A*(1+g):A+g-A*g,S=2*A-D;function L(R){return R>360?R-=360:R<0&&(R+=360),R<60?S+(D-S)*R/60:R<180?D:R<240?S+(D-S)*(240-R)/60:S}function N(R){return Math.round(L(R)*255)}return new Kn(N(h+120),N(h),N(h-120))}e.hcl=Aa;function Aa(h,g,A){return this instanceof Aa?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof Aa?new Aa(h.h,h.c,h.l):h instanceof ba?ns(h.l,h.a,h.b):ns((h=Vc((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new Aa(h,g,A)}var za=Aa.prototype=new Dn;za.brighter=function(h){return new Aa(this.h,this.c,Math.min(100,this.l+Da*(arguments.length?h:1)))},za.darker=function(h){return new Aa(this.h,this.c,Math.max(0,this.l-Da*(arguments.length?h:1)))},za.rgb=function(){return Vn(this.h,this.c,this.l).rgb()};function Vn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new ba(A,Math.cos(h*=Te)*g,Math.sin(h)*g)}e.lab=ba;function ba(h,g,A){return this instanceof ba?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof ba?new ba(h.l,h.a,h.b):h instanceof Aa?Vn(h.h,h.c,h.l):Vc((h=Kn(h)).r,h.g,h.b):new ba(h,g,A)}var Da=18,Ln=.95047,Fo=1,Qo=1.08883,co=ba.prototype=new Dn;co.brighter=function(h){return new ba(Math.min(100,this.l+Da*(arguments.length?h:1)),this.a,this.b)},co.darker=function(h){return new ba(Math.max(0,this.l-Da*(arguments.length?h:1)),this.a,this.b)},co.rgb=function(){return Mn(this.l,this.a,this.b)};function Mn(h,g,A){var S=(h+16)/116,D=S+g/500,L=S-A/200;return D=$n(D)*Ln,S=$n(S)*Fo,L=$n(L)*Qo,new Kn(Ro(3.2404542*D-1.5371385*S-.4985314*L),Ro(-.969266*D+1.8760108*S+.041556*L),Ro(.0556434*D-.2040259*S+1.0572252*L))}function ns(h,g,A){return h>0?new Aa(Math.atan2(A,g)*tr,Math.sqrt(g*g+A*A),h):new Aa(NaN,NaN,h)}function $n(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function is(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Ro(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Kn;function Kn(h,g,A){return this instanceof Kn?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Kn?new Kn(h.r,h.g,h.b):Cl(""+h,Kn,Zt):new Kn(h,g,A)}function kl(h){return new Kn(h>>16,h>>8&255,h&255)}function Ys(h){return kl(h)+""}var Po=Kn.prototype=new Dn;Po.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,D=30;return!g&&!A&&!S?new Kn(D,D,D):(g&&g>4,S=S>>4|S,D=O&240,D=D>>4|D,L=O&15,L=L<<4|L):h.length===7&&(S=(O&16711680)>>16,D=(O&65280)>>8,L=O&255)),g(S,D,L))}function Pu(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),D=Math.max(h,g,A),L=D-S,N,R,O=(D+S)/2;return L?(R=O<.5?L/(D+S):L/(2-D-S),h==D?N=(g-A)/L+(g0&&O<1?0:N),new Ir(N,R,O)}function Vc(h,g,A){h=u0(h),g=u0(g),A=u0(A);var S=is((.4124564*h+.3575761*g+.1804375*A)/Ln),D=is((.2126729*h+.7151522*g+.072175*A)/Fo),L=is((.0193339*h+.119192*g+.9503041*A)/Qo);return ba(116*D-16,500*(S-D),200*(D-L))}function u0(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function f0(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,kl(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),Wr(g,A,h,S)}}function Wr(h,g,A,S){var D={},L=e.dispatch("beforesend","progress","load","error"),N={},R=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(h)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=W:R.onreadystatechange=function(){R.readyState>3&&W()};function W(){var J=R.status,$;if(!J&&Ba(R)||J>=200&&J<300||J===304){try{$=A.call(D,R)}catch(K){L.error.call(D,K);return}L.load.call(D,$)}else L.error.call(D,R)}return R.onprogress=function(J){var $=e.event;e.event=J;try{L.progress.call(D,R)}finally{e.event=$}},D.header=function(J,$){return J=(J+"").toLowerCase(),arguments.length<2?N[J]:($==null?delete N[J]:N[J]=$+"",D)},D.mimeType=function(J){return arguments.length?(g=J==null?null:J+"",D):g},D.responseType=function(J){return arguments.length?(O=J,D):O},D.response=function(J){return A=J,D},["get","post"].forEach(function(J){D[J]=function(){return D.send.apply(D,[J].concat(t(arguments)))}}),D.send=function(J,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),R.open(J,h,!0),g!=null&&!("accept"in N)&&(N.accept=g+",*/*"),R.setRequestHeader)for(var we in N)R.setRequestHeader(we,N[we]);return g!=null&&R.overrideMimeType&&R.overrideMimeType(g),O!=null&&(R.responseType=O),K!=null&&D.on("error",K).on("load",function(ke){K(null,ke)}),L.beforesend.call(D,R),R.send($==null?null:$),D},D.abort=function(){return R.abort(),D},e.rebind(D,L,"on"),S==null?D:D.get(xn(S))}function xn(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Ba(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 D(W,J,$){arguments.length<3&&($=J,J=null);var K=Wr(W,g,J==null?L:N(J),$);return K.row=function(we){return arguments.length?K.response((J=we)==null?L:N(we)):J},K}function L(W){return D.parse(W.responseText)}function N(W){return function(J){return D.parse(J.responseText,W)}}D.parse=function(W,J){var $;return D.parseRows(W,function(K,we){if($)return $(K,we-1);var ke=function(re){for(var ve={},xe=K.length,Se=0;Se=ke)return K;if(Se)return Se=!1,$;var sr=re;if(W.charCodeAt(sr)===34){for(var Ar=sr;Ar++24?(isFinite(g)&&(clearTimeout(no),no=setTimeout(Xs,g)),Ni=0):(Ni=1,Xc(Xs))}e.timer.flush=function(){c0(),yd()};function c0(){for(var h=Date.now(),g=Ua;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function yd(){for(var h,g=Ua,A=1/0;g;)g.c?(g.t=0;--R)re.push(D[W[$[R]][2]]);for(R=+we;R1&&ra(h[A[S-2]],h[A[S-1]],h[D])<=0;)--S;A[S++]=D}return A.slice(0,S)}function Dx(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return te(h,Wc),h};var Wc=e.geom.polygon.prototype=[];Wc.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],D=0;++hrr)R=R.L;else if(N=g-im(R,A),N>rr){if(!R.R){S=R;break}R=R.R}else{L>-rr?(S=R.P,D=R):N>-rr?(S=R,D=R.N):S=D=R;break}var O=bd(h);if(No.insert(S,O),!(!S&&!D)){if(S===D){Bu(S),D=bd(S.site),No.insert(O,D),O.edge=D.edge=p0(S.site,O.site),el(S),el(D);return}if(!D){O.edge=p0(S.site,O.site);return}Bu(S),Bu(D);var W=S.site,J=W.x,$=W.y,K=h.x-J,we=h.y-$,ke=D.site,re=ke.x-J,ve=ke.y-$,xe=2*(K*ve-we*re),Se=K*K+we*we,De=re*re+ve*ve,ye={x:(ve*Se-we*De)/xe+J,y:(K*De-re*Se)/xe+$};Iu(D.edge,W,ke,ye),O.edge=p0(W,h,null,ye),D.edge=p0(h,ke,null,ye),el(S),el(D)}}function xd(h,g){var A=h.site,S=A.x,D=A.y,L=D-g;if(!L)return S;var N=h.P;if(!N)return-1/0;A=N.site;var R=A.x,O=A.y,W=O-g;if(!W)return R;var J=R-S,$=1/L-1/W,K=J/W;return $?(-K+Math.sqrt(K*K-2*$*(J*J/(-2*W)-O+W/2+D-L/2)))/$+S:(S+R)/2}function im(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($c),h.length};function zu(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],D=h[1][1],L,N,R,O,W=Dl,J=W.length,$,K,we,ke,re,ve;J--;)if($=W[J],!(!$||!$.prepare()))for(we=$.edges,ke=we.length,K=0;Krr||b(O-N)>rr)&&(we.splice(K,0,new Kc(qx($.site,ve,b(R-g)rr?{x:g,y:b(L-g)rr?{x:b(N-D)rr?{x:A,y:b(L-A)rr?{x:b(N-S)=-Rr)){var K=O*O+W*W,we=J*J+ve*ve,ke=(ve*K-W*we)/$,re=(O*we-J*K)/$,ve=re+R,xe=Jc.pop()||new wd;xe.arc=h,xe.site=D,xe.x=ke+N,xe.y=ve+Math.sqrt(ke*ke+re*re),xe.cy=ve,h.circle=xe;for(var Se=null,De=Ws._;De;)if(xe.y0)){if(re/=we,we<0){if(re<$)return;re0){if(re>K)return;re>$&&($=re)}if(re=A-R,!(!we&&re<0)){if(re/=we,we<0){if(re>K)return;re>$&&($=re)}else if(we>0){if(re<$)return;re0)){if(re/=ke,ke<0){if(re<$)return;re0){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;re0&&(D.a={x:R+$*we,y:O+$*ke}),K<1&&(D.b={x:R+K*we,y:O+K*ke}),D}}}}}}function Ex(h){for(var g=ls,A=Lx(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,D;S--;)D=g[S],(!Ad(D,h)||!A(D)||b(D.a.x-D.b.x)=L)return;if(J>K){if(!S)S={x:ke,y:N};else if(S.y>=R)return;A={x:ke,y:R}}else{if(!S)S={x:ke,y:R};else if(S.y1)if(J>K){if(!S)S={x:(N-xe)/ve,y:N};else if(S.y>=R)return;A={x:(R-xe)/ve,y:R}}else{if(!S)S={x:(R-xe)/ve,y:R};else if(S.y=L)return;A={x:L,y:ve*L+xe}}else{if(!S)S={x:L,y:ve*L+xe};else if(S.x=J&&xe.x<=K&&xe.y>=$&&xe.y<=we?[[J,we],[K,we],[K,$],[J,$]]:[];Se.point=O[re]}),W}function R(O){return O.map(function(W,J){return{x:Math.round(S(W,J)/rr)*rr,y:Math.round(D(W,J)/rr)*rr,i:J}})}return N.links=function(O){return Hu(R(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(R(O)).cells.forEach(function(J,$){for(var K=J.site,we=J.edges.sort($c),ke=-1,re=we.length,ve,xe,Se=we[re-1].edge,De=Se.l===K?Se.r:Se.l;++keDe&&(De=J.x),J.y>ye&&(ye=J.y),we.push(J.x),ke.push(J.y);else for(re=0;reDe&&(De=sr),Ar>ye&&(ye=Ar),we.push(sr),ke.push(Ar)}var Nr=De-xe,Zr=ye-Se;Nr>Zr?ye=Se+Nr:De=xe+Zr;function ct(gt,Rt,pa,wn,Ta,Or,It,Wt){if(!(isNaN(pa)||isNaN(wn)))if(gt.leaf){var va=gt.x,Wa=gt.y;if(va!=null)if(b(va-pa)+b(Wa-wn)<.01)vt(gt,Rt,pa,wn,Ta,Or,It,Wt);else{var En=gt.point;gt.x=gt.y=gt.point=null,vt(gt,En,va,Wa,Ta,Or,It,Wt),vt(gt,Rt,pa,wn,Ta,Or,It,Wt)}else gt.x=pa,gt.y=wn,gt.point=Rt}else vt(gt,Rt,pa,wn,Ta,Or,It,Wt)}function vt(gt,Rt,pa,wn,Ta,Or,It,Wt){var va=(Ta+It)*.5,Wa=(Or+Wt)*.5,En=pa>=va,ui=wn>=Wa,xi=ui<<1|En;gt.leaf=!1,gt=gt.nodes[xi]||(gt.nodes[xi]=sm()),En?Ta=va:It=va,ui?Or=Wa:Wt=Wa,ct(gt,Rt,pa,wn,Ta,Or,It,Wt)}var Bt=sm();if(Bt.add=function(gt){ct(Bt,gt,+$(gt,++re),+K(gt,re),xe,Se,De,ye)},Bt.visit=function(gt){g0(gt,Bt,xe,Se,De,ye)},Bt.find=function(gt){return um(Bt,gt[0],gt[1],xe,Se,De,ye)},re=-1,g==null){for(;++reL||K>N||we=sr,Zr=A>=Ar,ct=Zr<<1|Nr,vt=ct+4;ctA&&(L=g.slice(A,L),R[N]?R[N]+=L:R[++N]=L),(S=S[0])===(D=D[0])?R[N]?R[N]+=D:R[++N]=D:(R[++N]=null,O.push({i:N,x:vo(S,D)})),A=ev.lastIndex;return 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:ho:g instanceof Dn?Js:Array.isArray(g)?b0:A==="object"&&isNaN(g)?fm:vo)(h,g)}],e.interpolateArray=b0;function b0(h,g){var A=[],S=[],D=h.length,L=g.length,N=Math.min(h.length,g.length),R;for(R=0;R=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=cm.get(A)||Td,S=vm.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 hm(h){return h*h}function dm(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 pm(h){return function(g){return Math.pow(g,h)}}function mm(h){return 1-Math.cos(h*le)}function Bx(h){return Math.pow(2,10*(h-1))}function Ix(h){return 1-Math.sqrt(1-h*h)}function Ox(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/nt*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*nt/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=ym;function ym(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,D=h.l,L=g.h-A,N=g.c-S,R=g.l-D;return isNaN(N)&&(N=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(O){return Vn(A+L*O,S+N*O,D+R*O)+""}}e.interpolateHsl=Ux;function Ux(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,D=h.l,L=g.h-A,N=g.s-S,R=g.l-D;return isNaN(N)&&(N=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(O){return Zt(A+L*O,S+N*O,D+R*O)+""}}e.interpolateLab=gm;function gm(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,D=h.b,L=g.l-A,N=g.a-S,R=g.b-D;return function(O){return Mn(A+L*O,S+N*O,D+R*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 bm(S?S.matrix:rv)})(h)};function bm(h){var g=[h.a,h.b],A=[h.c,h.d],S=xm(g),D=x0(g,A),L=xm(fs(A,g,-D))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(Ks(A)+"rotate(",null,")")-2,x:vo(h,g)})):g&&A.push(Ks(A)+"rotate("+g+")")}function Am(h,g,A,S){h!==g?S.push({i:A.push(Ks(A)+"skewX(",null,")")-2,x:vo(h,g)}):g&&A.push(Ks(A)+"skewX("+g+")")}function Tm(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var D=A.push(Ks(A)+"scale(",null,",",null,")");S.push({i:D-4,x:vo(h[0],g[0])},{i:D-2,x:vo(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),_m(h.translate,g.translate,A,S),wm(h.rotate,g.rotate,A,S),Am(h.skew,g.skew,A,S),Tm(h.scale,g.scale,A,S),h=g=null,function(D){for(var L=-1,N=S.length,R;++L0?L=ye:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:L=0})):ye>0&&(g.start({type:"start",alpha:L=ye}),A=Vs(h.tick)),h):L},h.start=function(){var ye,sr=we.length,Ar=ke.length,Nr=S[0],Zr=S[1],ct,vt;for(ye=0;ye=0;)L.push(J=W[O]),J.parent=R,J.depth=R.depth+1;A&&(R.value=0),R.children=W}else A&&(R.value=+A.call(S,R,R.depth)||0),delete R.children;return rl(D,function($){var K,we;h&&(K=$.children)&&K.sort(h),A&&(we=$.parent)&&(we.value+=$.value)}),N}return S.sort=function(D){return arguments.length?(h=D,S):h},S.children=function(D){return arguments.length?(g=D,S):g},S.value=function(D){return arguments.length?(A=D,S):A},S.revalue=function(D){return A&&(_0(D,function(L){L.children&&(L.value=0)}),rl(D,function(L){var N;L.children||(L.value=+A.call(S,L,L.depth)||0),(N=L.parent)&&(N.value+=L.value)})),D},S};function Gu(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Wx,h}function _0(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(D=h.children)&&(S=D.length))for(var S,D;--S>=0;)A.push(D[S])}function rl(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(N=h.children)&&(L=N.length))for(var D=-1,L,N;++DD&&(D=R),S.push(R)}for(N=0;NS&&(A=g,S=D);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 D(L,K){for(var R=[],O=L.map(g,this),W=A.call(this,O,K),J=S.call(this,W,O,K),$,K=-1,we=O.length,ke=J.length-1,re=h?1:1/we,ve;++K0)for(K=-1;++K=W[0]&&ve<=W[1]&&($=R[e.bisect(J,ve,1,ke)-1],$.y+=re,$.push(L[K]));return R}return D.value=function(L){return arguments.length?(g=L,D):g},D.range=function(L){return arguments.length?(A=St(L),D):A},D.bins=function(L){return arguments.length?(S=typeof L=="number"?function(N){return Rm(N,L)}:St(L),D):S},D.frequency=function(L){return arguments.length?(h=!!L,D):h},D};function Kx(h,g){return Rm(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Rm(h,g){for(var A=-1,S=+h[0],D=(h[1]-S)/g,L=[];++A<=g;)L[A]=D*A+S;return L}function Qx(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Ed),g=0,A=[1,1],S;function D(L,N){var R=h.call(this,L,N),O=R[0],W=A[0],J=A[1],$=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(O.x=O.y=0,rl(O,function(we){we.r=+$(we.value)}),rl(O,Nm),g){var K=g*(S?1:Math.max(2*O.r/W,2*O.r/J))/2;rl(O,function(we){we.r+=K}),rl(O,Nm),rl(O,function(we){we.r-=K})}return zm(O,W/2,J/2,S?1:1/Math.max(2*O.r/W,2*O.r/J)),R}return D.size=function(L){return arguments.length?(A=L,D):A},D.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,D):S},D.padding=function(L){return arguments.length?(g=+L,D):g},Gu(D,h)};function Ed(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 Fd(h,g){h._pack_next=g,g._pack_prev=h}function Pm(h,g){var A=g.x-h.x,S=g.y-h.y,D=h.r+g.r;return .999*D*D>A*A+S*S}function Nm(h){if(!(g=h.children)||!(K=g.length))return;var g,A=1/0,S=-1/0,D=1/0,L=-1/0,N,R,O,W,J,$,K;function we(ye){A=Math.min(ye.x-ye.r,A),S=Math.max(ye.x+ye.r,S),D=Math.min(ye.y-ye.r,D),L=Math.max(ye.y+ye.r,L)}if(g.forEach(e_),N=g[0],N.x=-N.r,N.y=0,we(N),K>1&&(R=g[1],R.x=R.r,R.y=0,we(R),K>2))for(O=g[2],t_(N,R,O),we(O),qd(N,O),N._pack_prev=O,qd(O,R),R=N._pack_next,W=3;Wve.x&&(ve=sr),sr.depth>xe.depth&&(xe=sr)});var Se=g(re,ve)/2-re.x,De=A[0]/(ve.x+g(ve,re)/2+Se),ye=A[1]/(xe.depth||1);_0(we,function(sr){sr.x=(sr.x+Se)*De,sr.y=sr.depth*ye})}return K}function L(J){for(var $={A:null,children:[J]},K=[$],we;(we=K.pop())!=null;)for(var ke=we.children,re,ve=0,xe=ke.length;ve0&&(a_(Hm(re,J,K),J,sr),xe+=sr,Se+=sr),De+=re.m,xe+=we.m,ye+=ve.m,Se+=ke.m;re&&!Om(ke)&&(ke.t=re,ke.m+=De-Se),we&&!Im(ve)&&(ve.t=we,ve.m+=xe-ye,K=J)}return K}function W(J){J.x*=A[0],J.y=J.depth*A[1]}return D.separation=function(J){return arguments.length?(g=J,D):g},D.size=function(J){return arguments.length?(S=(A=J)==null?W:null,D):S?null:A},D.nodeSize=function(J){return arguments.length?(S=(A=J)==null?null:W,D):S?A:null},Gu(D,h)};function Bm(h,g){return h.parent==g.parent?1:2}function Im(h){var g=h.children;return g.length?g[0]:h.t}function Om(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 Rd(h){for(var g=0,A=0,S=h.children,D=S.length,L;--D>=0;)L=S[D],L.z+=g,L.m+=g,g+=L.s+(A+=L.c)}function Hm(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=Bm,A=[1,1],S=!1;function D(L,N){var R=h.call(this,L,N),O=R[0],W,J=0;rl(O,function(re){var ve=re.children;ve&&ve.length?(re.x=Um(ve),re.y=tl(ve)):(re.x=W?J+=g(re,W):0,re.y=0,W=re)});var $=Gm(O),K=Ym(O),we=$.x-g($,K)/2,ke=K.x+g(K,$)/2;return rl(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]}),R}return D.separation=function(L){return arguments.length?(g=L,D):g},D.size=function(L){return arguments.length?(S=(A=L)==null,D):S?null:A},D.nodeSize=function(L){return arguments.length?(S=(A=L)!=null,D):S?A:null},Gu(D,h)};function tl(h){return 1+e.max(h,function(g){return g.y})}function Um(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function Gm(h){var g=h.children;return g&&g.length?Gm(g[0]):h}function Ym(h){var g=h.children,A;return g&&(A=g.length)?Ym(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,D=Pd,L=!1,N,R="squarify",O=.5*(1+Math.sqrt(5));function W(re,ve){for(var xe=-1,Se=re.length,De,ye;++xe0;)Se.push(ye=De[Zr-1]),Se.area+=ye.area,R!=="squarify"||(Ar=K(Se,Nr))<=sr?(De.pop(),sr=Ar):(Se.area-=Se.pop().area,we(Se,Nr,xe,!1),Nr=Math.min(xe.dx,xe.dy),Se.length=Se.area=0,sr=1/0);Se.length&&(we(Se,Nr,xe,!0),Se.length=Se.area=0),ve.forEach(J)}}function $(re){var ve=re.children;if(ve&&ve.length){var xe=D(re),Se=ve.slice(),De,ye=[];for(W(Se,xe.dx*xe.dy/re.value),ye.area=0;De=Se.pop();)ye.push(De),ye.area+=De.area,De.z!=null&&(we(ye,De.z?xe.dx:xe.dy,xe,!Se.length),ye.length=ye.area=0);ve.forEach($)}}function K(re,ve){for(var xe=re.area,Se,De=0,ye=1/0,sr=-1,Ar=re.length;++srDe&&(De=Se));return xe*=xe,ve*=ve,xe?Math.max(ve*De*O/xe,xe/(ve*ye*O)):1/0}function we(re,ve,xe,Se){var De=-1,ye=re.length,sr=xe.x,Ar=xe.y,Nr=ve?g(re.area/ve):0,Zr;if(ve==xe.dx){for((Se||Nr>xe.dy)&&(Nr=xe.dy);++Dexe.dx)&&(Nr=xe.dx);++De1);return h+g*S*Math.sqrt(-2*Math.log(L)/L)}},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;A2?Xu:n_,W=S?km:Mm;return D=O(h,g,W,A),L=O(g,h,W,us),R}function R(O){return D(O)}return R.invert=function(O){return L(O)},R.domain=function(O){return arguments.length?(h=O.map(Number),N()):h},R.range=function(O){return arguments.length?(g=O,N()):g},R.rangeRound=function(O){return R.range(O).interpolate(kd)},R.clamp=function(O){return arguments.length?(S=O,N()):S},R.interpolate=function(O){return arguments.length?(A=O,N()):A},R.ticks=function(O){return A0(h,O)},R.tickFormat=function(O,W){return d3_scale_linearTickFormat(h,O,W)},R.nice=function(O){return Nd(h,O),N()},R.copy=function(){return Xm(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(cs(h,g)[2])),Yu(h,ei(cs(h,g)[2])),h}function cs(h,g){g==null&&(g=10);var A=iv(h),S=A[1]-A[0],D=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*D;return L<=.15?D*=10:L<=.35?D*=5:L<=.75&&(D*=2),A[0]=Math.ceil(A[0]/D)*D,A[1]=Math.floor(A[1]/D)*D+D*.5,A[2]=D,A}function A0(h,g){return e.range.apply(e,cs(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 Wm(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 D(R){return(A?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(g)}function L(R){return A?Math.pow(g,R):-Math.pow(g,-R)}function N(R){return h(D(R))}return N.invert=function(R){return L(h.invert(R))},N.domain=function(R){return arguments.length?(A=R[0]>=0,h.domain((S=R.map(Number)).map(D)),N):S},N.base=function(R){return arguments.length?(g=+R,h.domain(S.map(D)),N):g},N.nice=function(){var R=Yu(S.map(D),A?Math:uv);return h.domain(R),S=R.map(L),N},N.ticks=function(){var R=iv(S),O=[],W=R[0],J=R[1],$=Math.floor(D(W)),K=Math.ceil(D(J)),we=g%1?2:g;if(isFinite(K-$)){if(A){for(;$0;ke--)O.push(L($)*ke);for($=0;O[$]J;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 Bd(e.scale.linear(),1,[0,1])};function Bd(h,g,A){var S=T0(g),D=T0(1/g);function L(N){return h(S(N))}return L.invert=function(N){return D(h.invert(N))},L.domain=function(N){return arguments.length?(h.domain((A=N.map(Number)).map(S)),L):A},L.ticks=function(N){return A0(A,N)},L.tickFormat=function(N,R){return d3_scale_linearTickFormat(A,N,R)},L.nice=function(N){return L.domain(Nd(A,N))},L.exponent=function(N){return arguments.length?(S=T0(g=N),D=T0(1/g),h.domain(A.map(S)),L):g},L.copy=function(){return Bd(h.copy(),g,A)},Qs(L,h)}function T0(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 Id([],{t:"range",a:[[]]})};function Id(h,g){var A,S,D;function L(R){return S[((A.get(R)||(g.t==="range"?A.set(R,h.push(R)):NaN))-1)%S.length]}function N(R,O){return e.range(h.length).map(function(W){return R+O*W})}return L.domain=function(R){if(!arguments.length)return h;h=[],A=new x;for(var O=-1,W=R.length,J;++O0?A[L-1]:h[0],LK?0:1;if(J=lt)return O(J,ke)+(W?O(W,1-ke):"")+"Z";var re,ve,xe,Se,De=0,ye=0,sr,Ar,Nr,Zr,ct,vt,Bt,gt,Rt=[];if((Se=(+N.apply(this,arguments)||0)/2)&&(xe=S===M0?Math.sqrt(W*W+J*J):+S.apply(this,arguments),ke||(ye*=-1),J&&(ye=Ha(xe/J*Math.sin(Se))),W&&(De=Ha(xe/W*Math.sin(Se)))),J){sr=J*Math.cos($+ye),Ar=J*Math.sin($+ye),Nr=J*Math.cos(K-ye),Zr=J*Math.sin(K-ye);var pa=Math.abs(K-$-2*ye)<=at?0:1;if(ye&&k0(sr,Ar,Nr,Zr)===ke^pa){var wn=($+K)/2;sr=J*Math.cos(wn),Ar=J*Math.sin(wn),Nr=Zr=null}}else sr=Ar=0;if(W){ct=W*Math.cos(K-De),vt=W*Math.sin(K-De),Bt=W*Math.cos($+De),gt=W*Math.sin($+De);var Ta=Math.abs($-K+2*De)<=at?0:1;if(De&&k0(ct,vt,Bt,gt)===1-ke^Ta){var Or=($+K)/2;ct=W*Math.cos(Or),vt=W*Math.sin(Or),Bt=gt=null}}else ct=vt=0;if(we>rr&&(re=Math.min(Math.abs(J-W)/2,+A.apply(this,arguments)))>.001){ve=W0?0:1}function S0(h,g,A,S,D){var L=h[0]-g[0],N=h[1]-g[1],R=(D?S:-S)/Math.sqrt(L*L+N*N),O=R*N,W=-R*L,J=h[0]+O,$=h[1]+W,K=g[0]+O,we=g[1]+W,ke=(J+K)/2,re=($+we)/2,ve=K-J,xe=we-$,Se=ve*ve+xe*xe,De=A-S,ye=J*we-K*$,sr=(xe<0?-1:1)*Math.sqrt(Math.max(0,De*De*Se-ye*ye)),Ar=(ye*xe-ve*sr)/Se,Nr=(-ye*ve-xe*sr)/Se,Zr=(ye*xe+ve*sr)/Se,ct=(-ye*ve+xe*sr)/Se,vt=Ar-ke,Bt=Nr-re,gt=Zr-ke,Rt=ct-re;return vt*vt+Bt*Bt>gt*gt+Rt*Rt&&(Ar=Zr,Nr=ct),[[Ar-O,Nr-W],[Ar*A/De,Nr*A/De]]}function cv(){return!0}function jd(h){var g=os,A=Nu,S=cv,D=io,L=D.key,N=.7;function R(O){var W=[],J=[],$=-1,K=O.length,we,ke=St(g),re=St(A);function ve(){W.push("M",D(h(J),N))}for(;++$1?h.join("L"):h+"Z"}function hv(h){return h.join("L")+"Z"}function C0(h){for(var g=0,A=h.length,S=h[0],D=[S[0],",",S[1]];++g1&&D.push("H",S[0]),D.join("")}function dv(h){for(var g=0,A=h.length,S=h[0],D=[S[0],",",S[1]];++g1){R=g[1],L=h[O],O++,S+="C"+(D[0]+N[0])+","+(D[1]+N[1])+","+(L[0]-R[0])+","+(L[1]-R[1])+","+L[0]+","+L[1];for(var W=2;W9&&(L=A*3/Math.sqrt(L),N[R]=L*S,N[R+1]=L*D));for(R=-1;++R<=O;)L=(h[Math.min(O,R+1)][0]-h[Math.max(0,R-1)][0])/(6*(1+N[R]*N[R])),g.push([L||0,N[R]*L||0]);return g}function $m(h){return h.length<3?io(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,D,L;++Aat)+",1 "+$}function W(J,$,K,we){return"Q 0,0 "+we}return L.radius=function(J){return arguments.length?(A=St(J),L):A},L.source=function(J){return arguments.length?(h=St(J),L):h},L.target=function(J){return arguments.length?(g=St(J),L):g},L.startAngle=function(J){return arguments.length?(S=St(J),L):S},L.endAngle=function(J){return arguments.length?(D=St(J),L):D},L};function e2(h){return h.radius}e.svg.diagonal=function(){var h=Km,g=tu,A=Qm;function S(D,L){var N=h.call(this,D,L),R=g.call(this,D,L),O=(N.y+R.y)/2,W=[N,{x:N.x,y:O},{x:R.x,y:O},R];return W=W.map(A),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return S.source=function(D){return arguments.length?(h=St(D),S):h},S.target=function(D){return arguments.length?(g=St(D),S):g},S.projection=function(D){return arguments.length?(A=D,S):A},S};function Qm(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Qm,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]-le;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=u_,g=s_;function A(S,D){return(ry.get(h.call(this,S,D))||ey)(g.call(this,S,D))}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 ey(h){var g=Math.sqrt(h/at);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ry=e.map({circle:ey,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*ty)),A=g*ty;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=ry.keys();var yv=Math.sqrt(3),ty=Math.tan(30*Te);ge.transition=function(h){for(var g=ds||++bv,A=xv(h),S=[],D,L,N=Ku||{time:Date.now(),ease:$s,delay:0,duration:250},R=-1,O=this.length;++R0;)$[--Se].call(h,xe);if(ve>=1)return N.event&&N.event.end.call(h,h.__data__,g),--L.count?delete L[S]:delete h[A],1}N||(R=D.time,O=Vs(K,0,R),N=L[S]={tween:new x,time:R,timer:O,delay:D.delay,duration:D.duration,ease:D.ease,index:g},D=null,++L.count)}e.svg.axis=function(){var h=e.scale.linear(),g=_v,A=6,S=6,D=3,L=[10],N=null,R;function O(W){W.each(function(){var J=e.select(this),$=this.__chart__||h,K=this.__chart__=h.copy(),we=N==null?K.ticks?K.ticks.apply(K,L):K.domain():N,ke=R==null?K.tickFormat?K.tickFormat.apply(K,L):U:R,re=J.selectAll(".tick").data(we,K),ve=re.enter().insert("g",".domain").attr("class","tick").style("opacity",rr),xe=e.transition(re.exit()).style("opacity",rr).remove(),Se=e.transition(re.order()).style("opacity",1),De=Math.max(A,0)+D,ye,sr=ov(K),Ar=J.selectAll(".domain").data([0]),Nr=(Ar.enter().append("path").attr("class","domain"),e.transition(Ar));ve.append("line"),ve.append("text");var Zr=ve.select("line"),ct=Se.select("line"),vt=re.select("text").text(ke),Bt=ve.select("text"),gt=Se.select("text"),Rt=g==="top"||g==="left"?-1:1,pa,wn,Ta,Or;if(g==="bottom"||g==="top"?(ye=n2,pa="x",Ta="y",wn="x2",Or="y2",vt.attr("dy",Rt<0?"0em":".71em").style("text-anchor","middle"),Nr.attr("d","M"+sr[0]+","+Rt*S+"V0H"+sr[1]+"V"+Rt*S)):(ye=i2,pa="y",Ta="x",wn="y2",Or="x2",vt.attr("dy",".32em").style("text-anchor",Rt<0?"end":"start"),Nr.attr("d","M"+Rt*S+","+sr[0]+"H0V"+sr[1]+"H"+Rt*S)),Zr.attr(Or,Rt*A),Bt.attr(Ta,Rt*De),ct.attr(wn,0).attr(Or,Rt*A),gt.attr(pa,0).attr(Ta,Rt*De),K.rangeBand){var It=K,Wt=It.rangeBand()/2;$=K=function(va){return It(va)+Wt}}else $.rangeBand?$=K:xe.call(ye,K,$);ve.call(ye,$,K),Se.call(ye,K,K)})}return O.scale=function(W){return arguments.length?(h=W,O):h},O.orient=function(W){return arguments.length?(g=W in a2?W+"":_v,O):g},O.ticks=function(){return arguments.length?(L=t(arguments),O):L},O.tickValues=function(W){return arguments.length?(N=W,O):N},O.tickFormat=function(W){return arguments.length?(R=W,O):R},O.tickSize=function(W){var J=arguments.length;return J?(A=+W,S=+arguments[J-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?(D=+W,O):D},O.tickSubdivide=function(){return arguments.length&&O},O};var _v="bottom",a2={top:1,right:1,bottom:1,left:1};function n2(h,g,A){h.attr("transform",function(S){var D=g(S);return"translate("+(isFinite(D)?D:A(S))+",0)"})}function i2(h,g,A){h.attr("transform",function(S){var D=g(S);return"translate(0,"+(isFinite(D)?D:A(S))+")"})}e.svg.brush=function(){var h=fe(J,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],D=[0,0],L,N,R=!0,O=!0,W=E0[0];function J(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(Ar){return"resize "+Ar}).style("cursor",function(Ar){return o2[Ar]}).append("rect").attr("x",function(Ar){return/[ew]$/.test(Ar)?-3:null}).attr("y",function(Ar){return/^[ns]/.test(Ar)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Se.style("display",J.empty()?"none":null);var De=e.transition(ve),ye=e.transition(xe),sr;g&&(sr=ov(g),ye.attr("x",sr[0]).attr("width",sr[1]-sr[0]),K(De)),A&&(sr=ov(A),ye.attr("y",sr[0]).attr("height",sr[1]-sr[0]),we(De)),$(De)})}J.event=function(re){re.each(function(){var ve=h.of(this,arguments),xe={x:S,y:D,i:L,j:N},Se=this.__chart__||xe;this.__chart__=xe,ds?e.select(this).transition().each("start.brush",function(){L=Se.i,N=Se.j,S=Se.x,D=Se.y,ve({type:"brushstart"})}).tween("brush:brush",function(){var De=b0(S,xe.x),ye=b0(D,xe.y);return L=N=null,function(sr){S=xe.x=De(sr),D=xe.y=ye(sr),ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=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)]+","+D[+/^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",D[0]),re.selectAll(".extent,.e>rect,.w>rect").attr("height",D[1]-D[0])}function ke(){var re=this,ve=e.select(e.event.target),xe=h.of(re,arguments),Se=e.select(re),De=ve.datum(),ye=!/^(n|s)$/.test(De)&&g,sr=!/^(e|w)$/.test(De)&&A,Ar=ve.classed("extent"),Nr=$r(re),Zr,ct=e.mouse(re),vt,Bt=e.select(i(re)).on("keydown.brush",pa).on("keyup.brush",wn);if(e.event.changedTouches?Bt.on("touchmove.brush",Ta).on("touchend.brush",It):Bt.on("mousemove.brush",Ta).on("mouseup.brush",It),Se.interrupt().selectAll("*").interrupt(),Ar)ct[0]=S[0]-ct[0],ct[1]=D[0]-ct[1];else if(De){var gt=+/w$/.test(De),Rt=+/^n/.test(De);vt=[S[1-gt]-ct[0],D[1-Rt]-ct[1]],ct[0]=S[gt],ct[1]=D[Rt]}else e.event.altKey&&(Zr=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 pa(){e.event.keyCode==32&&(Ar||(Zr=null,ct[0]-=S[1],ct[1]-=D[1],Ar=2),ee())}function wn(){e.event.keyCode==32&&Ar==2&&(ct[0]+=S[1],ct[1]+=D[1],Ar=0,ee())}function Ta(){var Wt=e.mouse(re),va=!1;vt&&(Wt[0]+=vt[0],Wt[1]+=vt[1]),Ar||(e.event.altKey?(Zr||(Zr=[(S[0]+S[1])/2,(D[0]+D[1])/2]),ct[0]=S[+(Wt[0]{(function(e,r){typeof oy=="object"&&typeof KM!="undefined"?r(oy):(e=e||self,r(e.d3=e.d3||{}))})(oy,function(e){"use strict";var r=new Date,t=new Date;function a(ue,Ee,Tr,rt){function ot(pe){return ue(pe=arguments.length===0?new Date:new Date(+pe)),pe}return ot.floor=function(pe){return ue(pe=new Date(+pe)),pe},ot.ceil=function(pe){return ue(pe=new Date(pe-1)),Ee(pe,1),ue(pe),pe},ot.round=function(pe){var Ce=ot(pe),lr=ot.ceil(pe);return pe-Ce0))return wr;do wr.push(fr=new Date(+pe)),Ee(pe,lr),ue(pe);while(fr=Ce)for(;ue(Ce),!pe(Ce);)Ce.setTime(Ce-1)},function(Ce,lr){if(Ce>=Ce)if(lr<0)for(;++lr<=0;)for(;Ee(Ce,-1),!pe(Ce););else for(;--lr>=0;)for(;Ee(Ce,1),!pe(Ce););})},Tr&&(ot.count=function(pe,Ce){return r.setTime(+pe),t.setTime(+Ce),ue(r),ue(t),Math.floor(Tr(r,t))},ot.every=function(pe){return pe=Math.floor(pe),!isFinite(pe)||!(pe>0)?null:pe>1?ot.filter(rt?function(Ce){return rt(Ce)%pe===0}:function(Ce){return ot.count(0,Ce)%pe===0}):ot}),ot}var n=a(function(){},function(ue,Ee){ue.setTime(+ue+Ee)},function(ue,Ee){return Ee-ue});n.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?a(function(Ee){Ee.setTime(Math.floor(Ee/ue)*ue)},function(Ee,Tr){Ee.setTime(+Ee+Tr*ue)},function(Ee,Tr){return(Tr-Ee)/ue}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ue){ue.setTime(ue-ue.getMilliseconds())},function(ue,Ee){ue.setTime(+ue+Ee*o)},function(ue,Ee){return(Ee-ue)/o},function(ue){return ue.getUTCSeconds()}),v=c.range,d=a(function(ue){ue.setTime(ue-ue.getMilliseconds()-ue.getSeconds()*o)},function(ue,Ee){ue.setTime(+ue+Ee*l)},function(ue,Ee){return(Ee-ue)/l},function(ue){return ue.getMinutes()}),p=d.range,m=a(function(ue){ue.setTime(ue-ue.getMilliseconds()-ue.getSeconds()*o-ue.getMinutes()*l)},function(ue,Ee){ue.setTime(+ue+Ee*s)},function(ue,Ee){return(Ee-ue)/s},function(ue){return ue.getHours()}),y=m.range,b=a(function(ue){ue.setHours(0,0,0,0)},function(ue,Ee){ue.setDate(ue.getDate()+Ee)},function(ue,Ee){return(Ee-ue-(Ee.getTimezoneOffset()-ue.getTimezoneOffset())*l)/u},function(ue){return ue.getDate()-1}),T=b.range;function _(ue){return a(function(Ee){Ee.setDate(Ee.getDate()-(Ee.getDay()+7-ue)%7),Ee.setHours(0,0,0,0)},function(Ee,Tr){Ee.setDate(Ee.getDate()+Tr*7)},function(Ee,Tr){return(Tr-Ee-(Tr.getTimezoneOffset()-Ee.getTimezoneOffset())*l)/f})}var x=_(0),w=_(1),k=_(2),M=_(3),C=_(4),E=_(5),F=_(6),P=x.range,q=w.range,z=k.range,I=M.range,U=C.range,G=E.range,X=F.range,Y=a(function(ue){ue.setDate(1),ue.setHours(0,0,0,0)},function(ue,Ee){ue.setMonth(ue.getMonth()+Ee)},function(ue,Ee){return Ee.getMonth()-ue.getMonth()+(Ee.getFullYear()-ue.getFullYear())*12},function(ue){return ue.getMonth()}),V=Y.range,Z=a(function(ue){ue.setMonth(0,1),ue.setHours(0,0,0,0)},function(ue,Ee){ue.setFullYear(ue.getFullYear()+Ee)},function(ue,Ee){return Ee.getFullYear()-ue.getFullYear()},function(ue){return ue.getFullYear()});Z.every=function(ue){return!isFinite(ue=Math.floor(ue))||!(ue>0)?null:a(function(Ee){Ee.setFullYear(Math.floor(Ee.getFullYear()/ue)*ue),Ee.setMonth(0,1),Ee.setHours(0,0,0,0)},function(Ee,Tr){Ee.setFullYear(Ee.getFullYear()+Tr*ue)})};var j=Z.range,ee=a(function(ue){ue.setUTCSeconds(0,0)},function(ue,Ee){ue.setTime(+ue+Ee*l)},function(ue,Ee){return(Ee-ue)/l},function(ue){return ue.getUTCMinutes()}),me=ee.range,fe=a(function(ue){ue.setUTCMinutes(0,0,0)},function(ue,Ee){ue.setTime(+ue+Ee*s)},function(ue,Ee){return(Ee-ue)/s},function(ue){return ue.getUTCHours()}),he=fe.range,te=a(function(ue){ue.setUTCHours(0,0,0,0)},function(ue,Ee){ue.setUTCDate(ue.getUTCDate()+Ee)},function(ue,Ee){return(Ee-ue)/u},function(ue){return ue.getUTCDate()-1}),Le=te.range;function ce(ue){return a(function(Ee){Ee.setUTCDate(Ee.getUTCDate()-(Ee.getUTCDay()+7-ue)%7),Ee.setUTCHours(0,0,0,0)},function(Ee,Tr){Ee.setUTCDate(Ee.getUTCDate()+Tr*7)},function(Ee,Tr){return(Tr-Ee)/f})}var Fe=ce(0),Re=ce(1),ge=ce(2),He=ce(3),ur=ce(4),qe=ce(5),Ue=ce(6),Ye=Fe.range,We=Re.range,Ve=ge.range,ar=He.range,Ie=ur.range,_r=qe.range,Pr=Ue.range,Br=a(function(ue){ue.setUTCDate(1),ue.setUTCHours(0,0,0,0)},function(ue,Ee){ue.setUTCMonth(ue.getUTCMonth()+Ee)},function(ue,Ee){return Ee.getUTCMonth()-ue.getUTCMonth()+(Ee.getUTCFullYear()-ue.getUTCFullYear())*12},function(ue){return ue.getUTCMonth()}),$e=Br.range,mr=a(function(ue){ue.setUTCMonth(0,1),ue.setUTCHours(0,0,0,0)},function(ue,Ee){ue.setUTCFullYear(ue.getUTCFullYear()+Ee)},function(ue,Ee){return Ee.getUTCFullYear()-ue.getUTCFullYear()},function(ue){return ue.getUTCFullYear()});mr.every=function(ue){return!isFinite(ue=Math.floor(ue))||!(ue>0)?null:a(function(Ee){Ee.setUTCFullYear(Math.floor(Ee.getUTCFullYear()/ue)*ue),Ee.setUTCMonth(0,1),Ee.setUTCHours(0,0,0,0)},function(Ee,Tr){Ee.setUTCFullYear(Ee.getUTCFullYear()+Tr*ue)})};var Yr=mr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=E,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=F,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=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=Z,e.timeYears=j,e.utcDay=te,e.utcDays=Le,e.utcFriday=qe,e.utcFridays=_r,e.utcHour=fe,e.utcHours=he,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=me,e.utcMonday=Re,e.utcMondays=We,e.utcMonth=Br,e.utcMonths=$e,e.utcSaturday=Ue,e.utcSaturdays=Pr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Fe,e.utcSundays=Ye,e.utcThursday=ur,e.utcThursdays=Ie,e.utcTuesday=ge,e.utcTuesdays=Ve,e.utcWednesday=He,e.utcWednesdays=ar,e.utcWeek=Fe,e.utcWeeks=Ye,e.utcYear=mr,e.utcYears=Yr,Object.defineProperty(e,"__esModule",{value:!0})})});var wv=B((ly,QM)=>{(function(e,r){typeof ly=="object"&&typeof QM!="undefined"?r(ly,c_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ly,function(e,r){"use strict";function t(le){if(0<=le.y&&le.y<100){var Te=new Date(-1,le.m,le.d,le.H,le.M,le.S,le.L);return Te.setFullYear(le.y),Te}return new Date(le.y,le.m,le.d,le.H,le.M,le.S,le.L)}function a(le){if(0<=le.y&&le.y<100){var Te=new Date(Date.UTC(-1,le.m,le.d,le.H,le.M,le.S,le.L));return Te.setUTCFullYear(le.y),Te}return new Date(Date.UTC(le.y,le.m,le.d,le.H,le.M,le.S,le.L))}function n(le,Te,tr){return{y:le,m:Te,d:tr,H:0,M:0,S:0,L:0}}function i(le){var Te=le.dateTime,tr=le.date,hr=le.time,ra=le.periods,Ca=le.days,Ha=le.shortDays,an=le.months,yn=le.shortMonths,sn=v(ra),Yn=d(ra),qa=v(Ca),un=d(Ca),fn=v(Ha),gn=d(Ha),si=v(an),bn=d(an),Dn=v(yn),Ir=d(yn),ca={a:is,A:Ro,b:Kn,B:kl,c:null,d:Y,e:Y,f:me,g:qe,G:Ye,H:V,I:Z,j,L:ee,m:fe,M:he,p:Ys,q:Po,Q:$r,s:tt,S:te,u:Le,U:ce,V:Re,w:ge,W:He,x:null,X:null,y:ur,Y:Ue,Z:We,"%":qr},Zt={a:Sl,A:Cl,b:Pu,B:Vc,c:null,d:Ve,e:Ve,f:Br,g:lr,G:fr,H:ar,I:Ie,j:_r,L:Pr,m:$e,M:mr,p:u0,q:f0,Q:$r,s:tt,S:Yr,u:ue,U:Ee,V:rt,w:ot,W:pe,x:null,X:null,y:Ce,Y:wr,Z:kr,"%":qr},Aa={a:Ln,A:Fo,b:Qo,B:co,c:Mn,d:C,e:C,f:I,g:x,G:_,H:F,I:F,j:E,L:z,m:M,M:P,p:Da,q:k,Q:G,s:X,S:q,u:m,U:y,V:b,w:p,W:T,x:ns,X:$n,y:x,Y:_,Z:w,"%":U};ca.x=za(tr,ca),ca.X=za(hr,ca),ca.c=za(Te,ca),Zt.x=za(tr,Zt),Zt.X=za(hr,Zt),Zt.c=za(Te,Zt);function za(kt,St){return function(xa){var Wr=[],xn=-1,Ba=0,Ua=kt.length,Xn,Ni,no;for(xa instanceof Date||(xa=new Date(+xa));++xn53)return null;"w"in Wr||(Wr.w=1),"Z"in Wr?(Ba=a(n(Wr.y,0,1)),Ua=Ba.getUTCDay(),Ba=Ua>4||Ua===0?r.utcMonday.ceil(Ba):r.utcMonday(Ba),Ba=r.utcDay.offset(Ba,(Wr.V-1)*7),Wr.y=Ba.getUTCFullYear(),Wr.m=Ba.getUTCMonth(),Wr.d=Ba.getUTCDate()+(Wr.w+6)%7):(Ba=t(n(Wr.y,0,1)),Ua=Ba.getDay(),Ba=Ua>4||Ua===0?r.timeMonday.ceil(Ba):r.timeMonday(Ba),Ba=r.timeDay.offset(Ba,(Wr.V-1)*7),Wr.y=Ba.getFullYear(),Wr.m=Ba.getMonth(),Wr.d=Ba.getDate()+(Wr.w+6)%7)}else("W"in Wr||"U"in Wr)&&("w"in Wr||(Wr.w="u"in Wr?Wr.u%7:"W"in Wr?1:0),Ua="Z"in Wr?a(n(Wr.y,0,1)).getUTCDay():t(n(Wr.y,0,1)).getDay(),Wr.m=0,Wr.d="W"in Wr?(Wr.w+6)%7+Wr.W*7-(Ua+5)%7:Wr.w+Wr.U*7-(Ua+6)%7);return"Z"in Wr?(Wr.H+=Wr.Z/100|0,Wr.M+=Wr.Z%100,a(Wr)):t(Wr)}}function ba(kt,St,xa,Wr){for(var xn=0,Ba=St.length,Ua=xa.length,Xn,Ni;xn=Ua)return-1;if(Xn=St.charCodeAt(xn++),Xn===37){if(Xn=St.charAt(xn++),Ni=Aa[Xn in o?St.charAt(xn++):Xn],!Ni||(Wr=Ni(kt,xa,Wr))<0)return-1}else if(Xn!=xa.charCodeAt(Wr++))return-1}return Wr}function Da(kt,St,xa){var Wr=sn.exec(St.slice(xa));return Wr?(kt.p=Yn[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Ln(kt,St,xa){var Wr=fn.exec(St.slice(xa));return Wr?(kt.w=gn[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Fo(kt,St,xa){var Wr=qa.exec(St.slice(xa));return Wr?(kt.w=un[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Qo(kt,St,xa){var Wr=Dn.exec(St.slice(xa));return Wr?(kt.m=Ir[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function co(kt,St,xa){var Wr=si.exec(St.slice(xa));return Wr?(kt.m=bn[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Mn(kt,St,xa){return ba(kt,Te,St,xa)}function ns(kt,St,xa){return ba(kt,tr,St,xa)}function $n(kt,St,xa){return ba(kt,hr,St,xa)}function is(kt){return Ha[kt.getDay()]}function Ro(kt){return Ca[kt.getDay()]}function Kn(kt){return yn[kt.getMonth()]}function kl(kt){return an[kt.getMonth()]}function Ys(kt){return ra[+(kt.getHours()>=12)]}function Po(kt){return 1+~~(kt.getMonth()/3)}function Sl(kt){return Ha[kt.getUTCDay()]}function Cl(kt){return Ca[kt.getUTCDay()]}function Pu(kt){return yn[kt.getUTCMonth()]}function Vc(kt){return an[kt.getUTCMonth()]}function u0(kt){return ra[+(kt.getUTCHours()>=12)]}function f0(kt){return 1+~~(kt.getUTCMonth()/3)}return{format:function(kt){var St=za(kt+="",ca);return St.toString=function(){return kt},St},parse:function(kt){var St=Vn(kt+="",!1);return St.toString=function(){return kt},St},utcFormat:function(kt){var St=za(kt+="",Zt);return St.toString=function(){return kt},St},utcParse:function(kt){var St=Vn(kt+="",!0);return St.toString=function(){return kt},St}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(le,Te,tr){var hr=le<0?"-":"",ra=(hr?-le:le)+"",Ca=ra.length;return hr+(Ca68?1900:2e3),tr+hr[0].length):-1}function w(le,Te,tr){var hr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Te.slice(tr,tr+6));return hr?(le.Z=hr[1]?0:-(hr[2]+(hr[3]||"00")),tr+hr[0].length):-1}function k(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+1));return hr?(le.q=hr[0]*3-3,tr+hr[0].length):-1}function M(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.m=hr[0]-1,tr+hr[0].length):-1}function C(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.d=+hr[0],tr+hr[0].length):-1}function E(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+3));return hr?(le.m=0,le.d=+hr[0],tr+hr[0].length):-1}function F(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.H=+hr[0],tr+hr[0].length):-1}function P(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.M=+hr[0],tr+hr[0].length):-1}function q(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.S=+hr[0],tr+hr[0].length):-1}function z(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+3));return hr?(le.L=+hr[0],tr+hr[0].length):-1}function I(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+6));return hr?(le.L=Math.floor(hr[0]/1e3),tr+hr[0].length):-1}function U(le,Te,tr){var hr=s.exec(Te.slice(tr,tr+1));return hr?tr+hr[0].length:-1}function G(le,Te,tr){var hr=l.exec(Te.slice(tr));return hr?(le.Q=+hr[0],tr+hr[0].length):-1}function X(le,Te,tr){var hr=l.exec(Te.slice(tr));return hr?(le.s=+hr[0],tr+hr[0].length):-1}function Y(le,Te){return f(le.getDate(),Te,2)}function V(le,Te){return f(le.getHours(),Te,2)}function Z(le,Te){return f(le.getHours()%12||12,Te,2)}function j(le,Te){return f(1+r.timeDay.count(r.timeYear(le),le),Te,3)}function ee(le,Te){return f(le.getMilliseconds(),Te,3)}function me(le,Te){return ee(le,Te)+"000"}function fe(le,Te){return f(le.getMonth()+1,Te,2)}function he(le,Te){return f(le.getMinutes(),Te,2)}function te(le,Te){return f(le.getSeconds(),Te,2)}function Le(le){var Te=le.getDay();return Te===0?7:Te}function ce(le,Te){return f(r.timeSunday.count(r.timeYear(le)-1,le),Te,2)}function Fe(le){var Te=le.getDay();return Te>=4||Te===0?r.timeThursday(le):r.timeThursday.ceil(le)}function Re(le,Te){return le=Fe(le),f(r.timeThursday.count(r.timeYear(le),le)+(r.timeYear(le).getDay()===4),Te,2)}function ge(le){return le.getDay()}function He(le,Te){return f(r.timeMonday.count(r.timeYear(le)-1,le),Te,2)}function ur(le,Te){return f(le.getFullYear()%100,Te,2)}function qe(le,Te){return le=Fe(le),f(le.getFullYear()%100,Te,2)}function Ue(le,Te){return f(le.getFullYear()%1e4,Te,4)}function Ye(le,Te){var tr=le.getDay();return le=tr>=4||tr===0?r.timeThursday(le):r.timeThursday.ceil(le),f(le.getFullYear()%1e4,Te,4)}function We(le){var Te=le.getTimezoneOffset();return(Te>0?"-":(Te*=-1,"+"))+f(Te/60|0,"0",2)+f(Te%60,"0",2)}function Ve(le,Te){return f(le.getUTCDate(),Te,2)}function ar(le,Te){return f(le.getUTCHours(),Te,2)}function Ie(le,Te){return f(le.getUTCHours()%12||12,Te,2)}function _r(le,Te){return f(1+r.utcDay.count(r.utcYear(le),le),Te,3)}function Pr(le,Te){return f(le.getUTCMilliseconds(),Te,3)}function Br(le,Te){return Pr(le,Te)+"000"}function $e(le,Te){return f(le.getUTCMonth()+1,Te,2)}function mr(le,Te){return f(le.getUTCMinutes(),Te,2)}function Yr(le,Te){return f(le.getUTCSeconds(),Te,2)}function ue(le){var Te=le.getUTCDay();return Te===0?7:Te}function Ee(le,Te){return f(r.utcSunday.count(r.utcYear(le)-1,le),Te,2)}function Tr(le){var Te=le.getUTCDay();return Te>=4||Te===0?r.utcThursday(le):r.utcThursday.ceil(le)}function rt(le,Te){return le=Tr(le),f(r.utcThursday.count(r.utcYear(le),le)+(r.utcYear(le).getUTCDay()===4),Te,2)}function ot(le){return le.getUTCDay()}function pe(le,Te){return f(r.utcMonday.count(r.utcYear(le)-1,le),Te,2)}function Ce(le,Te){return f(le.getUTCFullYear()%100,Te,2)}function lr(le,Te){return le=Tr(le),f(le.getUTCFullYear()%100,Te,2)}function wr(le,Te){return f(le.getUTCFullYear()%1e4,Te,4)}function fr(le,Te){var tr=le.getUTCDay();return le=tr>=4||tr===0?r.utcThursday(le):r.utcThursday.ceil(le),f(le.getUTCFullYear()%1e4,Te,4)}function kr(){return"+0000"}function qr(){return"%"}function $r(le){return+le}function tt(le){return Math.floor(+le/1e3)}var Ge;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(le){return Ge=i(le),e.timeFormat=Ge.format,e.timeParse=Ge.parse,e.utcFormat=Ge.utcFormat,e.utcParse=Ge.utcParse,Ge}var rr="%Y-%m-%dT%H:%M:%S.%LZ";function Rr(le){return le.toISOString()}var at=Date.prototype.toISOString?Rr:e.utcFormat(rr);function nt(le){var Te=new Date(le);return isNaN(Te)?null:Te}var lt=+new Date("2000-01-01T00:00:00.000Z")?nt:e.utcParse(rr);e.isoFormat=at,e.isoParse=lt,e.timeFormatDefaultLocale=Mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var v_=B((sy,ek)=>{(function(e,r){typeof sy=="object"&&typeof ek!="undefined"?r(sy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(sy,(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((E=(M=C?M.toExponential(C-1):M.toExponential()).indexOf("e"))<0)return null;var E,F=M.slice(0,E);return[F.length>1?F[0]+F.slice(2):F,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,C){return function(E,F){for(var P=E.length,q=[],z=0,I=M[0],U=0;P>0&&I>0&&(U+I+1>F&&(I=Math.max(1,F-U)),q.push(E.substring(P-=I,P+I)),!((U+=I+1)>F));)I=M[z=(z+1)%M.length];return q.reverse().join(C)}}function i(M){return function(C){return C.replace(/[0-9]/g,function(E){return M[+E]})}}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,E=1,F=-1,P;E0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(P+1):M}var f;function c(M,C){var E=t(M,C);if(!E)return M+"";var F=E[0],P=E[1],q=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=F.length;return q===z?F:q>z?F+new Array(q-z+1).join("0"):q>0?F.slice(0,q)+"."+F.slice(q):"0."+new Array(1-q).join("0")+t(M,Math.max(0,C+q-1))[0]}function v(M,C){var E=t(M,C);if(!E)return M+"";var F=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+F:F.length>P+1?F.slice(0,P+1)+"."+F.slice(P+1):F+new Array(P-F.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+""),E=M.currency===void 0?"":M.currency[0]+"",F=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+"",I=M.minus===void 0?"-":M.minus+"",U=M.nan===void 0?"NaN":M.nan+"";function G(Y){Y=l(Y);var V=Y.fill,Z=Y.align,j=Y.sign,ee=Y.symbol,me=Y.zero,fe=Y.width,he=Y.comma,te=Y.precision,Le=Y.trim,ce=Y.type;ce==="n"?(he=!0,ce="g"):d[ce]||(te===void 0&&(te=12),Le=!0,ce="g"),(me||V==="0"&&Z==="=")&&(me=!0,V="0",Z="=");var Fe=ee==="$"?E:ee==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",Re=ee==="$"?F:/[%p]/.test(ce)?z:"",ge=d[ce],He=/[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 ur(qe){var Ue=Fe,Ye=Re,We,Ve,ar;if(ce==="c")Ye=ge(qe)+Ye,qe="";else{qe=+qe;var Ie=qe<0||1/qe<0;if(qe=isNaN(qe)?U:ge(Math.abs(qe),te),Le&&(qe=u(qe)),Ie&&+qe==0&&j!=="+"&&(Ie=!1),Ue=(Ie?j==="("?j:I:j==="-"||j==="("?"":j)+Ue,Ye=(ce==="s"?y[8+f/3]:"")+Ye+(Ie&&j==="("?")":""),He){for(We=-1,Ve=qe.length;++Wear||ar>57){Ye=(ar===46?P+qe.slice(We+1):qe.slice(We))+Ye,qe=qe.slice(0,We);break}}}he&&!me&&(qe=C(qe,1/0));var _r=Ue.length+qe.length+Ye.length,Pr=_r>1)+Ue+qe+Ye+Pr.slice(_r);break;default:qe=Pr+Ue+qe+Ye;break}return q(qe)}return ur.toString=function(){return Y+""},ur}function X(Y,V){var Z=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),me=y[8+j/3];return function(fe){return Z(ee*fe)+me}}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=B((gLe,rk)=>{"use strict";rk.exports=function(e){for(var r=e.length,t,a=0;a13)&&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=B((bLe,ak)=>{"use strict";var Cte=tk();ak.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Cte(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri={};ja(ri,{ALMOST_EQUAL:()=>Wte,BADNUM:()=>h_,EPOCHJD:()=>Xte,FP_SAFE:()=>Dte,LOG_CLIP:()=>Zte,MINUS_SIGN:()=>Jte,ONEAVGMONTH:()=>zte,ONEAVGQUARTER:()=>Rte,ONEAVGYEAR:()=>Ete,ONEDAY:()=>Ote,ONEHOUR:()=>Hte,ONEMAXMONTH:()=>Nte,ONEMAXQUARTER:()=>Fte,ONEMAXYEAR:()=>Lte,ONEMICROSEC:()=>Vte,ONEMILLI:()=>Yte,ONEMIN:()=>Ute,ONEMINMONTH:()=>Bte,ONEMINQUARTER:()=>Pte,ONEMINYEAR:()=>qte,ONESEC:()=>Gte,ONEWEEK:()=>Ite});var h_,Dte,Lte,Ete,qte,Fte,Rte,Pte,Nte,zte,Bte,Ite,Ote,Hte,Ute,Gte,Yte,Vte,Xte,Wte,Zte,Jte,Wn=Ja(()=>{"use strict";h_=void 0,Dte=Number.MAX_VALUE*1e-4,Lte=316224e5,Ete=315576e5,qte=31536e6,Fte=79488e5,Rte=78894e5,Pte=76896e5,Nte=26784e5,zte=26298e5,Bte=24192e5,Ite=6048e5,Ote=864e5,Hte=36e5,Ute=6e4,Gte=1e3,Yte=1,Vte=.001,Xte=24405875e-1,Wte=1-1e-6,Zte=10,Jte="\u2212"});var d_=B((uy,nk)=>{(function(e,r){typeof uy=="object"&&typeof nk!="undefined"?r(uy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(uy,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>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>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 q0=B((xLe,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 so=B(ql=>{"use strict";var jte=d_().decode,$te=q0(),p_=Array.isArray,Kte=ArrayBuffer,Qte=DataView;function ok(e){return Kte.isView(e)&&!(e instanceof Qte)}ql.isTypedArray=ok;function fy(e){return p_(e)||ok(e)}ql.isArrayOrTypedArray=fy;function eae(e){return!fy(e[0])}ql.isArray1D=eae;ql.ensureArray=function(e,r){return p_(e)||(e=[]),e.length=r,e};var Ai={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};Ai.uint8c=Ai.u1c;Ai.uint8=Ai.u1;Ai.int8=Ai.i1;Ai.uint16=Ai.u2;Ai.int16=Ai.i2;Ai.uint32=Ai.u4;Ai.int32=Ai.i4;Ai.float32=Ai.f4;Ai.float64=Ai.f8;function m_(e){return e.constructor===ArrayBuffer}ql.isArrayBuffer=m_;ql.decodeTypedArraySpec=function(e){var r=[],t=rae(e),a=t.dtype,n=Ai[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;m_(o)||(o=jte(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{"use strict";var sk=da(),g_=so().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{"use strict";var Av=cy(),oae=/^\w*$/,lae=0,hk=1,vy=2,dk=3,F0=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;i2)return s[d]=s[d]|vy,c.set(v,null);if(f){for(i=d;i{"use strict";var sae=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,uae=/^[^\.\[\]]+$/;yk.exports=function(e,r){for(;r;){var t=e.match(sae);if(t)e=t[1];else if(e.match(uae))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 hy=B((MLe,bk)=>{"use strict";var fae=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 fae(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var wk=B((kLe,_k)=>{"use strict";var xk=so().isArrayOrTypedArray,h2=q0();_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)&&h2(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lcae,modHalf:()=>vae});function cae(e,r){let t=e%r;return t<0?t+r:t}function vae(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var Mv=Ja(()=>{"use strict"});var Fn=B(m2=>{"use strict";var Ak=q0(),d2=Array.isArray;function hae(e,r){var t,a;for(t=0;t{"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 y2={};ja(y2,{HOVERARROWSIZE:()=>pae,HOVERFONT:()=>gae,HOVERFONTSIZE:()=>yae,HOVERID:()=>xae,HOVERMINTIME:()=>bae,HOVERTEXTPAD:()=>mae,YANGLE:()=>dae});var dae,pae,mae,yae,gae,bae,xae,g2=Ja(()=>{"use strict";dae=60,pae=6,mae=3,yae=13,gae="Arial, sans-serif",bae=50,xae="-hover"});var kv=B((DLe,Sk)=>{"use strict";var Mk=(g2(),vr(y2)),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 dy=B((LLe,Ck)=>{"use strict";var _ae=Di(),b2=kv().hoverlabel,x2=Fn().extendFlat;Ck.exports={hoverlabel:{bgcolor:x2({},b2.bgcolor,{arrayOk:!0}),bordercolor:x2({},b2.bordercolor,{arrayOk:!0}),font:_ae({arrayOk:!0,editType:"none"}),align:x2({},b2.align,{arrayOk:!0}),namelength:x2({},b2.namelength,{arrayOk:!0}),showarrow:x2({},b2.showarrow),editType:"none"}}});var Fl=B((ELe,Dk)=>{"use strict";var wae=Di(),Aae=dy();Dk.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:wae({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:Aae.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var _C=B((BLe,xC)=>{var c4=Object.defineProperty,Tae=Object.getOwnPropertyDescriptor,Mae=Object.getOwnPropertyNames,kae=Object.prototype.hasOwnProperty,Sae=(e,r)=>{for(var t in r)c4(e,t,{get:r[t],enumerable:!0})},Cae=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mae(r))!kae.call(e,n)&&n!==t&&c4(e,n,{get:()=>r[n],enumerable:!(a=Tae(r,n))||a.enumerable});return e},Dae=e=>Cae(c4({},"__esModule",{value:!0}),e),Ik={};Sae(Ik,{a98:()=>xle,average:()=>Mne,averageAngle:()=>ys,averageNumber:()=>tS,blend:()=>Toe,blerp:()=>V_,clampChroma:()=>Yoe,clampGamut:()=>B4,clampRgb:()=>Goe,colorsNamed:()=>Hk,convertA98ToXyz65:()=>X_,convertCubehelixToRgb:()=>eS,convertDlchToLab65:()=>Ay,convertHsiToRgb:()=>fS,convertHslToRgb:()=>hS,convertHsvToRgb:()=>y4,convertHwbToRgb:()=>yS,convertItpToXyz65:()=>Z_,convertJabToJch:()=>j_,convertJabToRgb:()=>A4,convertJabToXyz65:()=>_4,convertJchToJab:()=>$_,convertLab65ToDlch:()=>Ty,convertLab65ToRgb:()=>C2,convertLab65ToXyz65:()=>d4,convertLabToLch:()=>iu,convertLabToRgb:()=>M4,convertLabToXyz50:()=>Ry,convertLchToLab:()=>ou,convertLchuvToLuv:()=>C4,convertLrgbToOklab:()=>D4,convertLrgbToRgb:()=>O0,convertLuvToLchuv:()=>S4,convertLuvToXyz50:()=>ky,convertOkhslToOklab:()=>e4,convertOkhsvToOklab:()=>t4,convertOklabToLrgb:()=>Rv,convertOklabToOkhsl:()=>Q_,convertOklabToOkhsv:()=>r4,convertOklabToRgb:()=>E2,convertP3ToXyz65:()=>a4,convertProphotoToXyz50:()=>o4,convertRec2020ToXyz65:()=>s4,convertRgbToCubehelix:()=>Qk,convertRgbToHsi:()=>cS,convertRgbToHsl:()=>dS,convertRgbToHsv:()=>g4,convertRgbToHwb:()=>gS,convertRgbToJab:()=>w4,convertRgbToLab:()=>k4,convertRgbToLab65:()=>D2,convertRgbToLrgb:()=>I0,convertRgbToOklab:()=>L2,convertRgbToXyb:()=>XS,convertRgbToXyz50:()=>Fv,convertRgbToXyz65:()=>tf,convertRgbToYiq:()=>QS,convertXybToRgb:()=>WS,convertXyz50ToLab:()=>Py,convertXyz50ToLuv:()=>My,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:()=>$a,cubehelix:()=>_le,differenceCie76:()=>gne,differenceCie94:()=>bne,differenceCiede2000:()=>xne,differenceCmc:()=>_ne,differenceEuclidean:()=>Ev,differenceHueChroma:()=>S2,differenceHueNaive:()=>rS,differenceHueSaturation:()=>k2,differenceHyab:()=>wne,differenceItp:()=>Tne,differenceKotsarenkoRamos:()=>Ane,displayable:()=>z4,dlab:()=>wle,dlch:()=>Ale,easingGamma:()=>pC,easingInOutSine:()=>gle,easingMidpoint:()=>sC,easingSmootherstep:()=>mle,easingSmoothstep:()=>hle,easingSmoothstepInverse:()=>dle,filterBrightness:()=>Qoe,filterContrast:()=>ele,filterDeficiencyDeuter:()=>cle,filterDeficiencyProt:()=>fle,filterDeficiencyTrit:()=>vle,filterGrayscale:()=>ale,filterHueRotate:()=>ile,filterInvert:()=>nle,filterSaturate:()=>tle,filterSepia:()=>rle,fixupAlpha:()=>hi,fixupHueDecreasing:()=>hne,fixupHueIncreasing:()=>vne,fixupHueLonger:()=>cne,fixupHueShorter:()=>ms,formatCss:()=>yoe,formatHex:()=>goe,formatHex8:()=>boe,formatHsl:()=>_oe,formatRgb:()=>xoe,getMode:()=>Wi,hsi:()=>Tle,hsl:()=>Mle,hsv:()=>kle,hwb:()=>Sle,inGamut:()=>By,interpolate:()=>Foe,interpolateWith:()=>fC,interpolateWithPremultipliedAlpha:()=>Roe,interpolatorLinear:()=>yt,interpolatorPiecewise:()=>$k,interpolatorSplineBasis:()=>vC,interpolatorSplineBasisClosed:()=>hC,interpolatorSplineMonotone:()=>zoe,interpolatorSplineMonotone2:()=>Boe,interpolatorSplineMonotoneClosed:()=>Ioe,interpolatorSplineNatural:()=>Poe,interpolatorSplineNaturalClosed:()=>Noe,itp:()=>Cle,jab:()=>Dle,jch:()=>Lle,lab:()=>Ele,lab65:()=>qle,lch:()=>Fle,lch65:()=>Rle,lchuv:()=>Ple,lerp:()=>P0,lrgb:()=>Nle,luv:()=>zle,mapAlphaDivide:()=>lC,mapAlphaMultiply:()=>oC,mapTransferGamma:()=>Doe,mapTransferLinear:()=>R4,mapper:()=>q2,modeA98:()=>Kk,modeCubehelix:()=>aS,modeDlab:()=>sS,modeDlch:()=>uS,modeHsi:()=>vS,modeHsl:()=>m4,modeHsv:()=>b4,modeHwb:()=>xS,modeItp:()=>AS,modeJab:()=>TS,modeJch:()=>MS,modeLab:()=>Ny,modeLab65:()=>SS,modeLch:()=>zy,modeLch65:()=>DS,modeLchuv:()=>qS,modeLrgb:()=>FS,modeLuv:()=>RS,modeOkhsl:()=>NS,modeOkhsv:()=>zS,modeOklab:()=>IS,modeOklch:()=>HS,modeP3:()=>US,modeProphoto:()=>GS,modeRec2020:()=>YS,modeRgb:()=>B0,modeXyb:()=>ZS,modeXyz50:()=>JS,modeXyz65:()=>KS,modeYiq:()=>rC,nearest:()=>Woe,okhsl:()=>Ble,okhsv:()=>Ile,oklab:()=>Ole,oklch:()=>Hle,p3:()=>Ule,parse:()=>Zk,parseHex:()=>Gk,parseHsl:()=>mS,parseHslLegacy:()=>pS,parseHwb:()=>bS,parseLab:()=>kS,parseLch:()=>CS,parseNamed:()=>Uk,parseOklab:()=>BS,parseOklch:()=>OS,parseRgb:()=>Jk,parseRgbLegacy:()=>Yk,parseTransparent:()=>jk,prophoto:()=>Gle,random:()=>Coe,rec2020:()=>Yle,removeParser:()=>Gae,rgb:()=>Vle,round:()=>tC,samples:()=>Uoe,serializeHex:()=>F4,serializeHex8:()=>aC,serializeHsl:()=>iC,serializeRgb:()=>nC,toGamut:()=>Voe,trilerp:()=>ene,unlerp:()=>Qae,useMode:()=>Fa,useParser:()=>Xk,wcagContrast:()=>ble,wcagLuminance:()=>f4,xyb:()=>Xle,xyz50:()=>Wle,xyz65:()=>Zle,yiq:()=>Jle});xC.exports=Dae(Ik);var Lae=(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=Lae,Eae={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=Eae,qae=e=>Ok(Hk[e.toLowerCase()],6),Uk=qae,Fae=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Rae=e=>{let r;return(r=e.match(Fae))?Ok(parseInt(r[1],16),r[1].length):void 0},Gk=Rae,_o="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",qLe=`(?:${_o}|none)`,A2=`${_o}%`,FLe=`(?:${_o}%|none)`,v4=`(?:${_o}%|${_o})`,Pae=`(?:${_o}%|${_o}|none)`,Nae=`(?:${_o}(deg|grad|rad|turn)|${_o})`,RLe=`(?:${_o}(deg|grad|rad|turn)|${_o}|none)`,Dv="\\s*,\\s*",PLe=new RegExp("^"+Pae+"$"),zae=new RegExp(`^rgba?\\(\\s*${_o}${Dv}${_o}${Dv}${_o}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Bae=new RegExp(`^rgba?\\(\\s*${A2}${Dv}${A2}${Dv}${A2}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Iae=e=>{let r={mode:"rgb"},t;if(t=e.match(zae))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=Iae,Oae=(e,r)=>e===void 0?void 0:typeof e!="object"?Zk(e):e.mode!==void 0?e:r?Va(ka({},e),{mode:r}):void 0,Rl=Oae,Hae=(e="rgb")=>r=>(r=Rl(r,e))!==void 0?r.mode===e?r:ps[r.mode][e]?ps[r.mode][e](r):e==="rgb"?ps[r.mode].rgb(r):ps.rgb[e](ps[r.mode].rgb(r)):void 0,$a=Hae,ps={},Vk={},Lv=[],h4={},Uae=e=>e,Fa=e=>(ps[e.mode]=ka(ka({},ps[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ps[r]||(ps[r]={}),ps[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=Uae)}),Vk[e.mode]=e,(e.parse||[]).forEach(r=>{Xk(r,e.mode)}),$a(e.mode)),Wi=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"&&Lv.indexOf(e)<0&&Lv.push(e)},Gae=e=>{if(typeof e=="string")delete h4[e];else if(typeof e=="function"){let r=Lv.indexOf(e);r>0&&Lv.splice(r,1)}},G_=/[^\x00-\x7F]|[a-zA-Z_]/,Yae=/[^\x00-\x7F]|[-\w]/,Qr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},$t=0;function py(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 Vae={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function _2(e){let r="";if((e[$t]==="-"||e[$t]==="+")&&(r+=e[$t++]),r+=my(e),e[$t]==="."&&/\d/.test(e[$t+1])&&(r+=e[$t++]+my(e)),(e[$t]==="e"||e[$t]==="E")&&((e[$t+1]==="-"||e[$t+1]==="+")&&/\d/.test(e[$t+2])?r+=e[$t++]+e[$t++]+my(e):/\d/.test(e[$t+1])&&(r+=e[$t++]+my(e))),Y_(e)){let t=by(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Qr.Hue,value:r*Vae[t]}:void 0}return e[$t]==="%"?($t++,{type:Qr.Percentage,value:+r}):{type:Qr.Number,value:+r}}function my(e){let r="";for(;/\d/.test(e[$t]);)r+=e[$t++];return r}function by(e){let r="";for(;$t4)){if(t.length===4){if(t[3].type!==Qr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Qr.None,value:void 0}),t.every(n=>n.type!==Qr.Alpha)?t:void 0}}function Jae(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Qr.Function)return;let a=Wk(e,r);if(a)return a.unshift(t.value),a}var jae=e=>{if(typeof e!="string")return;let r=Wae(e),t=r?Jae(r,!0):void 0,a,n=0,i=Lv.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,jk=Kae,P0=(e,r,t)=>e+t*(r-e),Qae=(e,r,t)=>(t-e)/(r-e),V_=(e,r,t,a,n,i)=>P0(P0(e,r,n),P0(t,a,n),i),ene=(e,r,t,a,n,i,o,l,s,u,f)=>P0(V_(e,r,t,a,s,u),V_(n,i,o,l,s,u),f),rne=e=>{let r=[];for(let t=0;tr=>{let t=rne(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(P0),hi=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},tne={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:hi}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},B0=tne,x_=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),ane=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_=ane,__=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),nne=({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_=nne,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)},ine=({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},I0=ine,one=e=>{let{r,g:t,b:a,alpha:n}=I0(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=one,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},lne=({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},O0=lne,sne=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O0({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},af=sne,une=Va(ka({},B0),{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=une,fne=e=>(e=e%360)<0?e+360:e,Bi=fne,Cy=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Bi(t);return a===0||e[a-1]===void 0?i:r(i-Bi(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),[]),ms=e=>Cy(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),cne=e=>Cy(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),vne=e=>Cy(e,r=>r>=0?r:r+360),hne=e=>Cy(e,r=>r<=0?r:r-360),Li=[-.14861,1.78277,-.29227,-.90649,1.97294,0],dne=Math.PI/180,pne=180/Math.PI,Lk=Li[3]*Li[4],Ek=Li[1]*Li[4],qk=Li[1]*Li[2]-Li[0]*Li[3],mne=({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*Lk-r*Ek)/(qk+Lk-Ek),i=t-n,o=(Li[4]*(r-n)-Li[2]*i)/Li[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Li[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*pne-120),a!==void 0&&(l.alpha=a),l},Qk=mne,yne=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*dne,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*(Li[0]*o+Li[1]*l),n.g=t+i*(Li[2]*o+Li[3]*l),n.b=t+i*(Li[4]*o+Li[5]*l),a!==void 0&&(n.alpha=a),n},eS=yne,k2=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Bi(e.h),a=Bi(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=Bi(e.h),a=Bi(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},S2=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Bi(e.h),a=Bi(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Ev=(e="rgb",r=[1,1,1,0])=>{let t=Wi(e),a=t.channels,n=t.difference,i=$a(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))}},gne=()=>Ev("lab65"),bne=(e=1,r=.045,t=.015)=>{let a=$a("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))}},xne=(e=1,r=1,t=1)=>{let a=$a("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,E=w-x,F=x*w===0?0:M-k;F-=(F>Math.PI)*2*Math.PI,F+=(F<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*w)*Math.sin(F/2),q=(s+v)/2,z=(x+w)/2,I;x*w===0?I=k+M:(I=(k+M)/2,I-=(Math.abs(k-M)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let U=Math.pow(q-50,2),G=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),X=1+.015*U/Math.sqrt(20+U),Y=1+.045*z,V=1+.015*z*G,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),j=2*Math.sqrt(Math.pow(z,7)/(Math.pow(z,7)+Math.pow(25,7))),ee=-1*Math.sin(2*Z)*j;return Math.sqrt(Math.pow(C/(e*X),2)+Math.pow(E/(r*Y),2)+Math.pow(P/(t*V),2)+ee*E/(r*Y)*P/(t*V))}},_ne=(e=1,r=1)=>{let t=$a("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))}},wne=()=>{let e=$a("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)}},Ane=()=>Ev("yiq",[.5053,.299,.1957]),Tne=()=>Ev("itp",[518400,129600,518400]),ys=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 Mne(e,r="rgb",t){let a=Wi(r),n=e.map($a(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 kne={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:ms},s:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:k2},average:{h:ys}},aS=kne,Sne=({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=Bi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},iu=Sne,Cne=({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=Cne,nS=Math.pow(29,3)/Math.pow(3,3),iS=Math.pow(6,3)/Math.pow(29,3),vi={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Cv={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},NLe=Math.pow(29,3)/Math.pow(3,3),zLe=Math.pow(6,3)/Math.pow(29,3),M_=e=>Math.pow(e,3)>iS?Math.pow(e,3):(116*e-16)/nS,Dne=({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=Dne,Lne=e=>af(d4(e)),C2=Lne,k_=e=>e>iS?Math.cbrt(e):(nS*e+16)/116,Ene=({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=Ene,qne=e=>{let r=p4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},D2=qne,xy=1,oS=1,M2=26/180*Math.PI,_y=Math.cos(M2),wy=Math.sin(M2),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*xy/lS)-1)/.0039},i=(Math.exp(.0435*r*oS*xy)-1)/.075,o=i*Math.cos(t/180*Math.PI-M2),l=i*Math.sin(t/180*Math.PI-M2);return n.a=o*_y-l/.83*wy,n.b=o*wy+l/.83*_y,a!==void 0&&(n.alpha=a),n},Ay=Fne,Rne=({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*_y+t*wy,i=.83*(t*_y-r*wy),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:lS/xy*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*oS*xy)};return l.c&&(l.h=Bi((Math.atan2(i,n)+M2)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Ty=Rne,Fk=e=>Ay(iu(e,"dlch")),Rk=e=>ou(Ty(e),"dlab"),Pne={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Fk,rgb:e=>C2(Fk(e))},fromMode:{lab65:Rk,rgb:e=>Rk(D2(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:hi}}},sS=Pne,Nne={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ay,dlab:e=>ou(e,"dlab"),rgb:e=>C2(Ay(e))},fromMode:{lab65:Ty,dlab:e=>iu(e,"dlch"),rgb:e=>Ty(D2(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:ms},alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},uS=Nne;function fS({h:e,s:r,i:t,alpha:a}){e=Bi(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{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Ine=Bne,One=new RegExp(`^hsla?\\(\\s*${Nae}${Dv}${A2}${Dv}${A2}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Hne=e=>{let r=e.match(One);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=Ine(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=Hne;function Une(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Percentage)return;t.h=a.value}if(n.type!==Qr.None){if(n.type===Qr.Hue)return;t.s=n.value/100}if(i.type!==Qr.None){if(i.type===Qr.Hue)return;t.l=i.value/100}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var mS=Une,Gne={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:ms},s:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:k2},average:{h:ys}},m4=Gne;function y4({h:e,s:r,v:t,alpha:a}){e=Bi(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)+(r1){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 Vne(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Percentage)return;t.h=a.value}if(n.type!==Qr.None){if(n.type===Qr.Hue)return;t.w=n.value/100}if(i.type!==Qr.None){if(i.type===Qr.Hue)return;t.b=i.value/100}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var bS=Vne,Xne={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:ms},w:yt,b:yt,alpha:{use:yt,fixup:hi}},difference:{h:rS},average:{h:ys}},xS=Xne,_S=203,Dy=.1593017578125,wS=78.84375,Ly=.8359375,Ey=18.8515625,qy=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-Ly)/(Ey-qy*r),1/Dy)}function C_(e){if(e<0)return 0;let r=Math.pow(e/1e4,Dy);return Math.pow((Ly+Ey*r)/(1+qy*r),wS)}var D_=e=>Math.max(e/_S,0),Wne=({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:D_(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:D_(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:D_(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},Z_=Wne,L_=(e=0)=>Math.max(e*_S,0),Zne=({x:e,y:r,z:t,alpha:a})=>{let n=L_(e),i=L_(r),o=L_(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_=Zne,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:hi}}},AS=Jne,jne=134.03437499999998,$ne=16295499532821565e-27,E_=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Dy);return Math.pow((Ly+Ey*r)/(1+qy*r),jne)},q_=(e=0)=>Math.max(e*203,0),Kne=({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=E_(.41478972*n+.579999*i+.014648*t),l=E_(-.20151*n+1.120649*i+.0531008*t),s=E_(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-$ne,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=Kne,Qne=134.03437499999998,Pk=16295499532821565e-27,F_=e=>{if(e<0)return 0;let r=Math.pow(e,1/Qne);return 1e4*Math.pow((Ly-r)/(qy*r-Ey),1/Dy)},R_=e=>e/203,eie=({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=F_(n+.13860504*r+.058047316*t),o=F_(n-.13860504*r-.058047316*t),l=F_(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:R_(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:R_(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:R_(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},_4=eie,rie=e=>{let r=x4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},w4=rie,tie=e=>af(_4(e)),A4=tie,aie={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:hi}}},TS=aie,nie=({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=Bi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},j_=nie,iie=({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},$_=iie,oie={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:ms},c:yt,j:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},MS=oie,Fy=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)/Fy,lie=({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)*vi.X,y:P_(n)*vi.Y,z:P_(o)*vi.Z};return a!==void 0&&(l.alpha=a),l},Ry=lie,sie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O0({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},qv=sie,uie=e=>qv(Ry(e)),M4=uie,fie=e=>{let{r,g:t,b:a,alpha:n}=I0(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},Fv=fie,N_=e=>e>T4?Math.cbrt(e):(Fy*e+16)/116,cie=({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/vi.X),i=N_(r/vi.Y),o=N_(t/vi.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},Py=cie,vie=e=>{let r=Py(Fv(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},k4=vie;function hie(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Qr.Hue||n.type===Qr.Hue||i.type===Qr.Hue))return a.type!==Qr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Qr.None&&(t.a=n.type===Qr.Number?n.value:n.value*125/100),i.type!==Qr.None&&(t.b=i.type===Qr.Number?i.value:i.value*125/100),o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var kS=hie,die={mode:"lab",toMode:{xyz50:Ry,rgb:M4},fromMode:{xyz50:Py,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:hi}}},Ny=die,pie=Va(ka({},Ny),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:d4,rgb:C2},fromMode:{xyz65:p4,rgb:D2},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),SS=pie;function mie(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Qr.None&&(t.c=Math.max(0,n.type===Qr.Number?n.value:n.value*150/100)),i.type!==Qr.None){if(i.type===Qr.Percentage)return;t.h=i.value}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var CS=mie,yie={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:ms},c:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},zy=yie,gie=Va(ka({},zy),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ou(e,"lab65"),rgb:e=>C2(ou(e,"lab65"))},fromMode:{rgb:e=>iu(D2(e),"lch65"),lab65:e=>iu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),DS=gie,bie=({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=Bi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},S4=bie,xie=({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=xie,LS=(e,r,t)=>4*e/(e+15*r+3*t),ES=(e,r,t)=>9*r/(e+15*r+3*t),_ie=LS(vi.X,vi.Y,vi.Z),wie=ES(vi.X,vi.Y,vi.Z),Aie=e=>e<=T4?Fy*e:116*Math.cbrt(e)-16,Tie=({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=Aie(r/vi.Y),i=LS(e,r,t),o=ES(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-_ie),o=13*n*(o-wie));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},My=Tie,Mie=(e,r,t)=>4*e/(e+15*r+3*t),kie=(e,r,t)=>9*r/(e+15*r+3*t),Sie=Mie(vi.X,vi.Y,vi.Z),Cie=kie(vi.X,vi.Y,vi.Z),Die=({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)+Sie,i=t/(13*e)+Cie,o=vi.Y*(e<=8?e/Fy: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},ky=Die,Lie=e=>S4(My(Fv(e))),Eie=e=>qv(ky(C4(e))),qie={mode:"lchuv",toMode:{luv:C4,rgb:Eie},fromMode:{rgb:Lie,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:ms},c:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},qS=qie,Fie=Va(ka({},B0),{mode:"lrgb",toMode:{rgb:O0},fromMode:{rgb:I0},parse:["srgb-linear"],serialize:"srgb-linear"}),FS=Fie,Rie={mode:"luv",toMode:{xyz50:ky,rgb:e=>qv(ky(e))},fromMode:{xyz50:My,rgb:e=>My(Fv(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:hi}}},RS=Rie,Pie=({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},D4=Pie,Nie=e=>{let r=D4(I0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L2=Nie,zie=({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},Rv=zie,Bie=e=>O0(Rv(e)),E2=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 Sy(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Iie(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,E=6*d*d*y,F=l*b+s*T+u*_,P=l*x+s*w+u*k,q=l*M+s*C+u*E;f=f-F*P/(P*P-.5*F*q)}return f}function L4(e,r){let t=Iie(e,r),a=Rv({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 Oie(e,r,t,a,n,i=null){i||(i=L4(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,E=3*p*_*_,F=6*v*v*b,P=6*d*d*T,q=6*p*p*_,z=4.0767416621*x-3.3077115913*w+.2309699292*k-1,I=4.0767416621*M-3.3077115913*C+.2309699292*E,U=4.0767416621*F-3.3077115913*P+.2309699292*q,G=I/(I*I-.5*z*U),X=-z*G,Y=-1.2684380046*x+2.6097574011*w-.3413193965*k-1,V=-1.2684380046*M+2.6097574011*C-.3413193965*E,Z=-1.2684380046*F+2.6097574011*P-.3413193965*q,j=V/(V*V-.5*Y*Z),ee=-Y*j,me=-.0041960863*x-.7034186147*w+1.707614701*k-1,fe=-.0041960863*M-.7034186147*C+1.707614701*E,he=-.0041960863*F-.7034186147*P+1.707614701*q,te=fe/(fe*fe-.5*me*he),Le=-me*te;X=G>=0?X:1e6,ee=j>=0?ee:1e6,Le=te>=0?Le:1e6,o+=Math.min(X,Math.min(ee,Le))}}}return o}function E4(e,r,t=null){t||(t=L4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function PS(e,r,t){let a=L4(r,t),n=Oie(r,t,e,1,e,a),i=E4(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(iQ_(L2(e))},toMode:{oklab:e4,rgb:e=>E2(e4(e))}}),NS=Hie;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]=E4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=Sy(v),m=d*p/v,y=Rv({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=Bi(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]=E4(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=Sy(c),p=v*d/c,m=Rv({l:d,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),b=Sy(n*c),T=v*b/c;return r.l=b*y,r.a=T*i*y,r.b=T*o*y,r}var Uie=Va(ka({},b4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:r4,rgb:e=>r4(L2(e))},toMode:{oklab:t4,rgb:e=>E2(t4(e))}}),zS=Uie;function Gie(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Qr.Hue||n.type===Qr.Hue||i.type===Qr.Hue))return a.type!==Qr.None&&(t.l=Math.min(Math.max(0,a.type===Qr.Number?a.value:a.value/100),1)),n.type!==Qr.None&&(t.a=n.type===Qr.Number?n.value:n.value*.4/100),i.type!==Qr.None&&(t.b=i.type===Qr.Number?i.value:i.value*.4/100),o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var BS=Gie,Yie=Va(ka({},Ny),{mode:"oklab",toMode:{lrgb:Rv,rgb:E2},fromMode:{lrgb:D4,rgb:L2},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[BS],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}`:""})`}),IS=Yie;function Vie(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Hue)return;t.l=Math.min(Math.max(0,a.type===Qr.Number?a.value:a.value/100),1)}if(n.type!==Qr.None&&(t.c=Math.max(0,n.type===Qr.Number?n.value:n.value*.4/100)),i.type!==Qr.None){if(i.type===Qr.Percentage)return;t.h=i.value}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var OS=Vie,Xie=Va(ka({},zy),{mode:"oklch",toMode:{oklab:e=>ou(e,"oklab"),rgb:e=>E2(ou(e,"oklab"))},fromMode:{rgb:e=>iu(L2(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=Xie,Wie=e=>{let{r,g:t,b:a,alpha:n}=I0(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=Wie,Zie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O0({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},n4=Zie,Jie=Va(ka({},B0),{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},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={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=jie,B_=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},$ie=e=>{let r=B_(e.r),t=B_(e.g),a=B_(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=$ie,Kie=Va(ka({},B0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:i4,rgb:e=>i4(Fv(e))},toMode:{xyz50:o4,rgb:e=>qv(o4(e))}}),GS=Kie,Nk=1.09929682680944,Qie=.018053968510807,I_=e=>{let r=Math.abs(e);return r>Qie?(Math.sign(e)||1)*(Nk*Math.pow(r,.45)-(Nk-1)):4.5*e},eoe=({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:I_(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:I_(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:I_(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},l4=eoe,zk=1.09929682680944,roe=.018053968510807,O_=(e=0)=>{let r=Math.abs(e);return r{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=toe,aoe=Va(ka({},B0),{mode:"rec2020",fromMode:{xyz65:l4,rgb:e=>l4(tf(e))},toMode:{xyz65:s4,rgb:e=>af(s4(e))},parse:["rec2020"],serialize:"rec2020"}),YS=aoe,N0=.0037930732552754493,VS=Math.cbrt(N0),H_=e=>Math.cbrt(e)-VS,noe=e=>{let{r,g:t,b:a,alpha:n}=I0(e),i=H_(.3*r+.622*t+.078*a+N0),o=H_(.23*r+.692*t+.078*a+N0),l=H_(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+N0),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},XS=noe,U_=e=>Math.pow(e+VS,3),ioe=({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)-N0,i=U_(r-e)-N0,o=U_(t+r)-N0,l=O0({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},WS=ioe,ooe={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:hi}}},ZS=ooe,loe={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:qv,lab:Py},fromMode:{rgb:Fv,lab:Ry},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:hi}}},JS=loe,soe=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=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:"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=uoe,foe={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:hi}}},KS=foe,coe=({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=coe,voe=({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=voe,hoe={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:hi}}},rC=hoe,doe=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,poe=(e=4)=>r=>typeof r=="number"?doe(r,e):r,tC=poe,w2=tC(2),T2=e=>Math.max(0,Math.min(1,e||0)),z0=e=>Math.round(T2(e)*255),q4=$a("rgb"),moe=$a("hsl"),F4=e=>{if(e===void 0)return;let r=z0(e.r),t=z0(e.g),a=z0(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},aC=e=>{if(e===void 0)return;let r=z0(e.alpha!==void 0?e.alpha:1);return F4(e)+(256|r).toString(16).slice(1)},nC=e=>{if(e===void 0)return;let r=z0(e.r),t=z0(e.g),a=z0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${w2(T2(e.alpha))})`},iC=e=>{if(e===void 0)return;let r=w2(e.h||0),t=w2(T2(e.s)*100)+"%",a=w2(T2(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${w2(T2(e.alpha))})`},yoe=e=>{let r=Rl(e);if(!r)return;let t=Wi(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)},goe=e=>F4(q4(e)),boe=e=>aC(q4(e)),xoe=e=>nC(q4(e)),_oe=e=>iC(moe(e)),woe={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},Aoe=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:woe[r],n=$a(t),i=Wi(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})})},Toe=Aoe,Moe=([e,r])=>e+Math.random()*(r-e),koe=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Soe=(e="rgb",r={})=>{let t=Wi(e),a=koe(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Moe(a[i]||t.ranges[i])),n),{mode:e})},Coe=Soe,q2=(e,r="rgb",t=!1)=>{let a=r?Wi(r).channels:null,n=r?$a(r):Rl;return i=>{let o=n(i);if(!o)return;let l=(a||Wi(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=Rl(i);return s&&s.mode!==l.mode?$a(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,R4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Doe=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Loe=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(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),sC=qoe,yy=e=>typeof e=="function",R0=e=>e&&typeof e=="object",Bk=e=>typeof e=="number",uC=(e,r="rgb",t,a)=>{let n=Wi(r),i=$a(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):Bk(v)||yy(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),Eoe(l);let u=n.channels.reduce((v,d)=>{let p;return R0(t)&&R0(t[d])&&t[d].fixup?p=t[d].fixup:R0(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 yy(t)?p=t:R0(t)&&yy(t[d])?p=t[d]:R0(t)&&R0(t[d])&&t[d].use?p=t[d].use:yy(n.interpolate[d])?p=n.interpolate[d]:R0(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]{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?q2(r,a):void 0,o=uC(t,a,n,e);return i?l=>i(o(l)):o},Roe=fC(oC,lC),gy=(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],ar=>{let t=e.length-1,a=Math.floor(r*t);return cC(e[gy(a-1,e.length)],e[gy(a,e.length)],e[gy(a+1,e.length)],e[gy(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;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},Poe=e=>vC(dC(e)),Noe=e=>hC(dC(e)),Sv=Math.sign,u4=Math.min,zo=Math.abs,P4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(Sv(t[i-1])+Sv(t[i]))*u4(zo(t[i-1]),zo(t[i]),.5*zo(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]}},zoe=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:zo(a[0])>2*zo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:zo(a[r])>2*zo(t[r-1])?2*t[r-1]:a[r],N4(e,n,t)},Ioe=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(zo(i),zo(t[0]),.5*zo(a[0])),n[r]=(Sv(t[r-1])+Sv(o))*u4(zo(t[r-1]),zo(o),.5*zo(a[r])),N4(e,n,t)},Ooe=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),pC=Ooe,Hoe=(e=2,r=1)=>{let t=pC(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{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 By(e="rgb"){let{gamut:r}=Wi(e);if(!r)return a=>!0;let t=$a(typeof r=="string"?r:e);return a=>bC(t(a))}function Goe(e){return e=Rl(e),e===void 0||z4(e)?e:$a(e.mode)(gC(e))}function B4(e="rgb"){let{gamut:r}=Wi(e);if(!r)return i=>Rl(i);let t=typeof r=="string"?r:e,a=$a(t),n=By(t);return i=>{let o=Rl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=yC(l);return o.mode===s.mode?s:$a(o.mode)(s)}}function Yoe(e,r="lch",t="rgb"){e=Rl(e);let a=t==="rgb"?z4:By(t),n=t==="rgb"?gC:B4(t);if(e===void 0||a(e))return e;let i=$a(e.mode);e=$a(r)(e);let o=Va(ka({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Wi(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:Va(ka({},o),{c}))}function Voe(e="rgb",r="oklch",t=Ev("oklch"),a=.02){let n=$a(e),i=Wi(e);if(!i.gamut)return f=>n(f);let o=By(e),l=B4(e),s=$a(r),{ranges:u}=Wi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Rl(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=Va(ka({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Va(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 Xoe=(e,r=Ev(),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.de[l.i]))},Woe=Xoe,I4=e=>Math.max(e,0),O4=e=>Math.max(Math.min(e,1),0),Zoe=(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]},joe=e=>{let r=I4(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]},$oe=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]},Koe=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]},Iy=(e,r,t=!1)=>{let a=$a(r),n=Wi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=I4(e);return q2(R4(t),r,!0)},ele=(e=1,r="rgb")=>{let t=I4(e);return q2(R4(t,(1-t)/2),r,!0)},rle=(e=1,r="rgb")=>Iy(Joe(e),r,!0),tle=(e=1,r="rgb")=>Iy(joe(e),r,!0),ale=(e=1,r="rgb")=>Iy($oe(e),r,!0),nle=(e=1,r="rgb")=>{let t=O4(e);return q2((a,n)=>n==="alpha"?a:Zoe(t,1-t,a),r,!0)},ile=(e=0,r="rgb")=>Iy(Koe(e),r,!0),ole=$a("rgb"),lle=[[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]],sle=[[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]],ule=[[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&&aP0(i[s],o[s],n))}return o=>{let l=Rl(o);if(l===void 0)return;let{r:s,g:u,b:f}=ole(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),$a(l.mode)(c)}},fle=(e=1)=>H4(lle,e),cle=(e=1)=>H4(sle,e),vle=(e=1)=>H4(ule,e),hle=e=>e*e*(3-2*e),dle=e=>.5-Math.sin(Math.asin(1-2*e)/3),ple=e=>e*e*e*(e*(e*6-15)+10),mle=ple,yle=e=>(1-Math.cos(e*Math.PI))/2,gle=yle;function f4(e){let r=$a("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function ble(e,r){let t=f4(e),a=f4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var xle=Fa(Kk),_le=Fa(aS),wle=Fa(sS),Ale=Fa(uS),Tle=Fa(vS),Mle=Fa(m4),kle=Fa(b4),Sle=Fa(xS),Cle=Fa(AS),Dle=Fa(TS),Lle=Fa(MS),Ele=Fa(Ny),qle=Fa(SS),Fle=Fa(zy),Rle=Fa(DS),Ple=Fa(qS),Nle=Fa(FS),zle=Fa(RS),Ble=Fa(NS),Ile=Fa(zS),Ole=Fa(IS),Hle=Fa(HS),Ule=Fa(US),Gle=Fa(GS),Yle=Fa(YS),Vle=Fa(B0),Xle=Fa(ZS),Wle=Fa(JS),Zle=Fa(KS),Jle=Fa(rC)});var U4={};ja(U4,{default:()=>$le});var jle,$le,G4=Ja(()=>{"use strict";jle={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(" ")}},$le=jle});var nf=B((HLe,kC)=>{"use strict";var{format:Kle,width:Qle,height:ese,scale:rse}=(G4(),vr(U4)).default,wC=rse,{dflt:OLe}=wC,tse=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:Kle,filename:{valType:"string"},width:Qle,height:ese,scale:tse},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=B((GLe,SC)=>{"use strict";var Y4=la(),ase=da(),F2=[];SC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||F2.indexOf(e)!==-1)return;F2.push(e);var a=1e3;ase(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(F2);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=F2.indexOf(u);f!==-1&&F2.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("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"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;e1){var t=[];for(e=0;e"),"long")}};W4.warn=function(){var e;if(Pv.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};W4.error=function(){var e;if(Pv.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var gs=B(H0=>{"use strict";H0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];H0.defaultLine="#444";H0.lightLine="#eee";H0.background="#fff";H0.borderLine="#BEC8D9";H0.lightFraction=1e3/11});var Kt=B((XLe,zC)=>{"use strict";var{converter:DC,formatHex:nse,formatRgb:ise,wcagContrast:ose,wcagLuminance:lse}=_C(),{isArrayOrTypedArray:LC}=so(),{warn:sse}=of(),{background:P2,defaultLine:j4,defaults:use,lightLine:fse}=gs(),EC=DC("rgb"),cse=DC("hsl"),qC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return EC(r)}catch(t){return}},Zi=e=>e>0?e>1?1:e:0,vse={mode:"rgb",r:0,g:0,b:0,alpha:1},Z4=e=>Math.round(e*255e6)/255e6,FC=e=>Va(ka({},e),{r:Z4(e.r),g:Z4(e.g),b:Z4(e.b)}),Bo=e=>ise(FC(e)),hse=e=>nse(FC(e)),dse=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:LC(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&&sse(`Invalid color specifier: ${dse(e)}. Defaulting to "#000"`),vse)},R2=e=>Bo(Va(ka({},An(e)),{alpha:1})),pse=e=>e?An(e).alpha:0,RC=e=>LC(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),mse=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}},yse=(e,r)=>{let t=RC(e)?mse(e):An(e,!0),a=[Zi(t.r),Zi(t.g),Zi(t.b),Zi(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},gse=(e,r)=>Bo(Va(ka({},An(e)),{alpha:Zi(r)})),PC=(e,r)=>{let t=An(e),a=t.alpha;if(a===1)return Bo(t);let n=An(r||P2),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return Bo({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},bse=(e,r,t)=>{let a=An(e),n=An(r),i=(o,l)=>t*o+(1-t)*l;return Bo({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=cse(t)||{mode:"hsl",h:0,s:0,l:0};return Bo(EC(Va(ka({},a),{l:Zi((a.l*100+r)/100),alpha:t.alpha})))},Oy=(e,r)=>ose(An(e),An(r)),NC=e=>Oy(e,P2)>Oy(e,j4),xse=Bo(An(P2)),_se=Bo(An(j4)),wse=(e,r,t)=>(An(e).alpha!==1&&(e=PC(e,P2)),NC(e)?r?J4(e,r):xse:t?J4(e,-t):_se),Ase=(e,r)=>{e.style({stroke:R2(r),"stroke-opacity":An(r).alpha})},Tse=(e,r)=>{e.style({fill:R2(r),"fill-opacity":An(r).alpha})},Mse=(e,r)=>!!(e&&r&&R2(e)===R2(r)),kse=e=>qC(e)!==void 0,Sse=(e,r)=>{r=r===0?0:r||10;let t=An(e),a=r/100;return Bo(Va(ka({},t),{r:Zi(t.r+a),g:Zi(t.g+a),b:Zi(t.b+a)}))},Cse=(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 Bo({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})},Dse=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=Oy(e,n);i>a&&(a=i,t=Bo(An(n)))}return t},Lse=e=>Bo(An(e)),Ese=e=>hse(An(e)).toUpperCase(),qse=e=>{let r=An(e);return[Zi(r.r)*255,Zi(r.g)*255,Zi(r.b)*255,Zi(r.alpha)]},Fse=([e,r,t,a])=>Bo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Rse=e=>{let r=An(e);return lse({mode:"rgb",r:Zi(r.r),g:Zi(r.g),b:Zi(r.b)})};zC.exports={addOpacity:gse,adjustLightness:J4,background:P2,brighten:Sse,combine:PC,contrast:wse,defaultLine:j4,defaults:use,equals:Mse,fill:Tse,hexString:Ese,interpolate:bse,isChannelArray:RC,isDark:NC,isValid:kse,lightLine:fse,luminosity:Rse,mix:Cse,mostReadable:Dse,normalize:yse,opacity:pse,parse:An,rgb:R2,rgbaArray:qse,rgbaArrayToString:Fse,rgbaString:Lse,stroke:Ase,wcagContrast:Oy}});var U0=B((ZLe,OC)=>{"use strict";var Pse=Kt(),Hy={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)"]]},BC=Hy.RdBu;function Nse(e,r){if(r||(r=BC),!e)return r;function t(){try{e=Hy[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),IC(e)?e:r}function IC(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;tOse,HIDE_PLACEHOLDER:()=>Ise,SHOW_PLACEHOLDER:()=>Bse});var Bse,Ise,Ose,zv=Ja(()=>{"use strict";Bse=100,Ise=1e3,Ose=.2});var N2={};ja(N2,{counter:()=>G0});function G0(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,Bv=Ja(()=>{"use strict";$4="([2-9]|[1-9][0-9]+)?"});var GC=B(wo=>{"use strict";var K4=da(),HC=Fn().extendFlat,Hse=Fl(),Use=U0(),Q4=Kt(),Gse=(zv(),vr(Nv)).DESELECTDIM,Iv=cy(),UC=(Bv(),vr(N2)).counter,Yse=(Mv(),vr(Tv)).modHalf,Pl=so().isArrayOrTypedArray,lf=so().isTypedArraySpec,sf=so().decodeTypedArraySpec;wo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Pl(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;ai===!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&&ea.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&&ea.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(Use.get(e,t))}},angle:{coerceFunction:function(e,r,t){lf(e)&&(e=sf(e)),e==="auto"?r.set("auto"):K4(e)?r.set(Yse(+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&&Pl(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{"use strict";YC.exports=function(){}});var e6=B(($Le,VC)=>{"use strict";VC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{XC.exports=Vse;function Vse(){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=B((QLe,ZC)=>{ZC.exports=Xse;function Xse(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=B((eEe,jC)=>{jC.exports=Wse;function Wse(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=B((rEe,KC)=>{KC.exports=Zse;function Zse(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 eD=B((tEe,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 tD=B((aEe,rD)=>{rD.exports=jse;function jse(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,E=f*y-v*p,F=f*b-d*p,P=c*y-v*m,q=c*b-d*m,z=v*b-d*y,I=T*z-_*q+x*P+w*F-k*E+M*C;return I?(I=1/I,e[0]=(l*z-s*q+u*P)*I,e[1]=(n*q-a*z-i*P)*I,e[2]=(m*M-y*k+b*w)*I,e[3]=(v*k-c*M-d*w)*I,e[4]=(s*F-o*z-u*E)*I,e[5]=(t*z-n*F+i*E)*I,e[6]=(y*x-p*M-b*_)*I,e[7]=(f*M-v*x+d*_)*I,e[8]=(o*q-l*F+u*C)*I,e[9]=(a*F-t*q-i*C)*I,e[10]=(p*k-m*x+b*T)*I,e[11]=(c*x-f*k-d*T)*I,e[12]=(l*E-o*P-s*C)*I,e[13]=(t*P-a*E+n*C)*I,e[14]=(m*_-p*w-y*T)*I,e[15]=(f*w-c*_+v*T)*I,e):null}});var nD=B((nEe,aD)=>{aD.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];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 oD=B((iEe,iD)=>{iD.exports=Kse;function Kse(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,E=u*y-v*d,F=f*m-c*p,P=f*y-v*p,q=c*y-v*m;return b*q-T*P+_*F+x*E-w*C+k*M}});var sD=B((oEe,lD)=>{lD.exports=Qse;function Qse(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 fD=B((lEe,uD)=>{uD.exports=eue;function eue(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 vD=B((sEe,cD)=>{cD.exports=rue;function rue(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 dD=B((uEe,hD)=>{hD.exports=tue;function tue(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,E,F,P,q,z,I,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,E=o*n*f-i*s,F=n*i*f-o*s,P=i*i*f+u,q=o*i*f+n*s,z=n*o*f+i*s,I=i*o*f-n*s,U=o*o*f+u,e[0]=c*M+m*C+_*E,e[1]=v*M+y*C+x*E,e[2]=d*M+b*C+w*E,e[3]=p*M+T*C+k*E,e[4]=c*F+m*P+_*q,e[5]=v*F+y*P+x*q,e[6]=d*F+b*P+w*q,e[7]=p*F+T*P+k*q,e[8]=c*z+m*I+_*U,e[9]=v*z+y*I+x*U,e[10]=d*z+b*I+w*U,e[11]=p*z+T*I+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var mD=B((fEe,pD)=>{pD.exports=aue;function aue(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 gD=B((cEe,yD)=>{yD.exports=nue;function nue(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 xD=B((vEe,bD)=>{bD.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[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 wD=B((hEe,_D)=>{_D.exports=oue;function oue(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 TD=B((dEe,AD)=>{AD.exports=lue;function lue(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 kD=B((pEe,MD)=>{MD.exports=sue;function sue(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 CD=B((mEe,SD)=>{SD.exports=uue;function uue(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 LD=B((yEe,DD)=>{DD.exports=fue;function fue(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 qD=B((gEe,ED)=>{ED.exports=cue;function cue(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 RD=B((bEe,FD)=>{FD.exports=vue;function vue(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 ND=B((xEe,PD)=>{PD.exports=hue;function hue(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 BD=B((_Ee,zD)=>{zD.exports=due;function due(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 OD=B((wEe,ID)=>{ID.exports=pue;function pue(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 UD=B((AEe,HD)=>{HD.exports=mue;function mue(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 YD=B((TEe,GD)=>{GD.exports=yue;function yue(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 XD=B((MEe,VD)=>{var gue=r6();VD.exports=bue;function bue(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?gue(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 ZD=B((kEe,WD)=>{WD.exports=xue;function xue(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=B((SEe,JD)=>{JD.exports={create:WC(),clone:JC(),copy:$C(),identity:r6(),transpose:eD(),invert:tD(),adjoint:nD(),determinant:oD(),multiply:sD(),translate:fD(),scale:vD(),rotate:dD(),rotateX:mD(),rotateY:gD(),rotateZ:xD(),fromRotation:wD(),fromRotationTranslation:TD(),fromScaling:kD(),fromTranslation:CD(),fromXRotation:LD(),fromYRotation:qD(),fromZRotation:RD(),fromQuat:ND(),frustum:BD(),perspective:OD(),perspectiveFromFieldOfView:UD(),ortho:YD(),lookAt:XD(),str:ZD()}});var Yy=B(Rn=>{"use strict";var _ue=t6();Rn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var wue=la(),jD=of(),Aue=Yy(),Tue=t6();function Mue(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 kue(e){var r=wue.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $D(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Sue(e,r){KD("global",e,r)}function KD(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):jD.warn("addStyleRule failed"):jD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Cue(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$D(t)}function Due(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 Lue(e){var r=eL(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=QD(a);if(n){var i=Aue.convertCssMatrix(n);t=Tue.multiply(t,t,i)}}),t}function QD(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 eL(e){for(var r=[];Eue(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Eue(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function que(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}rL.exports={getGraphDiv:Mue,isPlotDiv:kue,removeElement:$D,addStyleRule:Sue,addRelatedStyleRule:KD,deleteRelatedStyleRule:Cue,setStyleOnHover:Due,getFullTransformMatrix:Lue,getElementTransformMatrix:QD,getElementAndAncestors:eL,equalDomRects:que}});var B2=B((LEe,tL)=>{"use strict";tL.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 Nl=B((EEe,uL)=>{"use strict";var nL=Fn().extendFlat,Fue=q0(),iL={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},oL={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Rue=iL.flags.slice().concat(["fullReplot"]),Pue=oL.flags.slice().concat("layoutReplot");uL.exports={traces:iL,layout:oL,traceFlags:function(){return aL(Rue)},layoutFlags:function(){return aL(Pue)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"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={};ja(n6,{DATE_FORMAT_LINK:()=>zue,FORMAT_LINK:()=>Nue});var Nue,zue,i6=Ja(()=>{"use strict";Nue="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",zue="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Hv=B(Ov=>{"use strict";var{DATE_FORMAT_LINK:Bue,FORMAT_LINK:Iue}=(i6(),vr(n6)),Oue=["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 Hue({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}".`,Iue,"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.",Oue].join(" ")}Ov.templateFormatStringDescription=Hue;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 Wy=B((PEe,pL)=>{"use strict";function ff(e,r){return r?r.d2l(e):e}function fL(e,r){return r?r.l2d(e):e}function Uue(e){return e.x0}function Gue(e){return e.x1}function Yue(e){return e.y0}function Vue(e){return e.y1}function cL(e){return e.x0shift||0}function vL(e){return e.x1shift||0}function hL(e){return e.y0shift||0}function dL(e){return e.y1shift||0}function Vy(e,r){return ff(e.x1,r)+vL(e)-ff(e.x0,r)-cL(e)}function Xy(e,r,t){return ff(e.y1,t)+dL(e)-ff(e.y0,t)-hL(e)}function Xue(e,r){return Math.abs(Vy(e,r))}function Wue(e,r,t){return Math.abs(Xy(e,r,t))}function Zue(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Vy(e,r),2)+Math.pow(Xy(e,r,t),2))}function Jue(e,r){return fL((ff(e.x1,r)+vL(e)+ff(e.x0,r)+cL(e))/2,r)}function jue(e,r,t){return fL((ff(e.y1,t)+dL(e)+ff(e.y0,t)+hL(e))/2,t)}function $ue(e,r,t){return e.type!=="line"?void 0:Xy(e,r,t)/Vy(e,r)}var Kue=["x0","x1","y0","y1","dy","height","ycenter"],Que=["x0","x1","y0","y1","dx","width","xcenter"];pL.exports={x0:Uue,x1:Gue,y0:Yue,y1:Vue,slope:$ue,dx:Vy,dy:Xy,width:Xue,height:Wue,length:Zue,xcenter:Jue,ycenter:jue,simpleXVariables:Kue,simpleYVariables:Que}});var gL=B((NEe,yL)=>{"use strict";var efe=Nl().overrideAll,Y0=Fl(),mL=Di(),rfe=uf().dash,cf=Fn().extendFlat,{shapeTexttemplateAttrs:tfe,templatefallbackAttrs:afe}=Hv(),nfe=Wy();yL.exports=efe({newshape:{visible:cf({},Y0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:cf({},Y0.legend,{}),legendgroup:cf({},Y0.legendgroup,{}),legendgrouptitle:{text:cf({},Y0.legendgrouptitle.text,{}),font:mL({})},legendrank:cf({},Y0.legendrank,{}),legendwidth:cf({},Y0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:cf({},rfe,{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({},Y0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:tfe({newshape:!0},{keys:Object.keys(nfe)}),texttemplatefallback:afe({editType:"arraydraw"}),font:mL({}),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 xL=B((zEe,bL)=>{"use strict";var ife=uf().dash,ofe=Fn().extendFlat;bL.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:ofe({},ife,{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 Zy=B((BEe,_L)=>{"use strict";_L.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=B((IEe,ML)=>{"use strict";var o6=Di(),lfe=B2(),Jy=gs(),wL=gL(),AL=xL(),sfe=Zy(),TL=Fn().extendFlat,jy=o6({editType:"calc"});jy.family.dflt='"Open Sans", verdana, arial, sans-serif';jy.size.dflt=12;jy.color.dflt=Jy.defaultLine;ML.exports={font:jy,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:TL(sfe({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:Jy.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Jy.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:Jy.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:wL.newshape,activeshape:wL.activeshape,newselection:AL.newselection,activeselection:AL.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:TL({},lfe.transition,{editType:"none"})}});var kL=B(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Pt=B(ta=>{"use strict";var l6=of(),SL=Gy(),CL=e6(),UEe=z2().addStyleRule,DL=Fn(),ufe=Fl(),ffe=Uv(),cfe=DL.extendFlat,s6=DL.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{"use strict";var mfe=wv().timeFormat,OL=da(),u6=of(),hf=(Mv(),vr(Tv)).mod,Vv=(Wn(),vr(ri)),il=Vv.BADNUM,Ao=Vv.ONEDAY,I2=Vv.ONEHOUR,vf=Vv.ONEMIN,Yv=Vv.ONESEC,O2=Vv.EPOCHJD,lu=Pt(),RL=wv().utcFormat,yfe=/^\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,gfe=/^\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,PL=new Date().getFullYear()-70;function su(e){return e&&lu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Pn.dateTick0=function(e,r){var t=bfe(e,!!r);if(r<2)return t;var a=Pn.dateTime2ms(t,e);return a+=Ao*(r-1),Pn.ms2DateTime(a,0,e)};function bfe(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 Ky,Qy;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>=Ky&&e<=Qy?e:il}if(typeof e!="string"&&typeof e!="number")return il;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?gfe:yfe);if(!s)return il;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 il;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 il}return m?(m.toJD()-O2)*Ao+v*I2+d*vf+p*Yv:il}u.length===2?u=(Number(u)+2e3-PL)%100+PL: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?il:T.getTime()+p*Yv};Ky=Pn.MIN_MS=Pn.dateTime2ms("-9999");Qy=Pn.MAX_MS=Pn.dateTime2ms("9999-12-31 23:59:59.9999");Pn.isDateTime=function(e,r){return Pn.dateTime2ms(e,r)!==il};function Gv(e,r){return String(e+Math.pow(10,r)).slice(1)}var $y=90*Ao,NL=3*I2,zL=5*vf;Pn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ky&&e<=Qy))return il;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/Ao)+O2,v=Math.floor(hf(e,Ao));try{i=lu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=RL("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<$y?Math.floor(v/I2):0,l=r<$y?Math.floor(v%I2/vf):0,s=r=Ky+Ao&&e<=Qy-Ao))return il;var r=Math.floor(hf(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=mfe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return HL(a,n,i,o,l)};function HL(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===il)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 xfe=/%\d?f/g,_fe=/%h/g,wfe={1:"1",2:"1",3:"2",4:"2"};function BL(e,r,t,a){e=e.replace(xfe,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(_fe,function(){return wfe[t("%q")(n)]}),su(a))try{e=lu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Afe=[59,59.9,59.99,59.999,59.9999];function Tfe(e,r){var t=hf(e+.05,Ao),a=Gv(Math.floor(t/I2),2)+":"+Gv(hf(Math.floor(t/vf),60),2);if(r!=="M"){OL(r)||(r=0);var n=Math.min(hf(e/Yv,60),Afe[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 Tfe(e,t)+` `+BL(i.dayMonthYear,e,a,n);return BL(r,e,a,n)};var IL=3*Ao;Pn.incrementMonth=function(e,r,t){t=su(t)&&t;var a=hf(e,Ao);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ao)+O2,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()-O2)*Ao+a}catch(s){u6.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+IL);return l.setUTCMonth(l.getUTCMonth()+r)+a-IL};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{"use strict";GL.exports=function(r){return r}});var c6=B(uu=>{"use strict";var Mfe=da(),kfe=of(),Sfe=eg(),Cfe=(Wn(),vr(ri)).BADNUM,f6=1e-9;uu.findBin=function(e,r,t){if(Mfe(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?Dfe:Lfe:s=t?qfe:Efe,e+=o*f6*(t?-1:1)*(o>=0?1:-1);a90&&kfe.log("Long binary search..."),a-1};function Dfe(e,r){return er}function qfe(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]===Cfe;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;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};uu.findIndexOfMin=function(e,r){r=r||Sfe;for(var t=1/0,a,n=0;nRfe});function Ffe(e){return Object.keys(e).sort()}var Rfe,tg=Ja(()=>{"use strict";Rfe=Ffe});var YL=B(Nn=>{"use strict";var H2=da(),Pfe=so().isArrayOrTypedArray;Nn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),H2(r)||(r=!1),Pfe(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var JL=B((ZEe,ZL)=>{"use strict";var VL=(Mv(),vr(Tv)),v6=VL.mod,Nfe=VL.modHalf,U2=Math.PI,df=2*U2;function zfe(e){return e/180*U2}function Bfe(e){return e/U2*180}function h6(e){return Math.abs(e[1]-e[0])>df-1e-14}function XL(e,r){return Nfe(r-e,df)}function Ife(e,r){return Math.abs(XL(e,r))}function WL(e,r){if(h6(r))return!0;var t,a;r[0]a&&(a+=df);var n=v6(e,df),i=n+df;return n>=t&&n<=a||i>=t&&i<=a}function Ofe(e,r,t,a){if(!WL(r,a))return!1;var n,i;return t[0]=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=U2,f=df):t{"use strict";V0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};V0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};V0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};V0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};V0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};V0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var QL=B(X0=>{"use strict";var p6=(Mv(),vr(Tv)).mod;X0.segmentsIntersect=KL;function KL(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}}X0.segmentDistance=function(r,t,a,n,i,o,l,s){if(KL(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(ag(u,f,d,i-r,o-t),ag(u,f,d,l-r,s-t),ag(c,v,p,r-i,t-o),ag(c,v,p,a-i,n-o));return Math.sqrt(m)};function ag(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 ng,m6,$L;X0.getTextLocation=function(r,t,a,n){if((r!==m6||n!==$L)&&(ng={},m6=r,$L=n),ng[a])return ng[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 ng[a]=c,c};X0.clearLocationCache=function(){m6=null};X0.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.xi?y.x-i:0,T=y.yl?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}};X0.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;u0?c=v:f=v,u++}return d}});var ig=B(G2=>{"use strict";var fu={};G2.throttle=function(r,t,a){var n=fu[r],i=Date.now();if(!n){for(var o in fu)fu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};G2.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}})};G2.clear=function(e){if(e)eE(fu[e]),delete fu[e];else for(var r in fu)G2.clear(r)};function eE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var tE=B((KEe,rE)=>{"use strict";rE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var aE=B((QEe,og)=>{"use strict";og.exports=y6;og.exports.isMobile=y6;og.exports.default=y6;var Yfe=/(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,Vfe=/CrOS/,Xfe=/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=Yfe.test(r)&&!Vfe.test(r)||!!e.tablet&&Xfe.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var iE=B((eqe,nE)=>{"use strict";var Wfe=da(),Zfe=aE();nE.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Jfe(),typeof t!="string")return!0;var a=Zfe({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Wfe(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 lE=B((rqe,oE)=>{"use strict";var jfe=la();oE.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]=jfe.select(this)}),n}});var uE=B((tqe,sE)=>{"use strict";var $fe=Pt();sE.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=$fe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var cE=B((aqe,fE)=>{"use strict";fE.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";vE.exports=function(r){for(var t=e0e(r)?Qfe:Kfe,a=[],n=0;n{"use strict";dE.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 yE={};ja(yE,{default:()=>a0e});function t0e(e){return typeof e=="string"&&(e=e.replace(r0e,"")),(0,mE.default)(e)?Number(e):void 0}var mE,r0e,a0e,gE=Ja(()=>{"use strict";mE=c2(da());Wn();r0e=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;a0e=t0e});var _E=B((lqe,xE)=>{"use strict";var n0e=/<[^>]*>/g,i0e=/[\p{S}\p{P}]/gu,o0e=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,l0e=/�/g,s0e=/\s+/g,lg="-",bE=lg.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),u0e=new RegExp(bE+"{3,}","g"),f0e=new RegExp(bE+"$","g"),c0e=60;function v0e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}xE.exports=function(r,t=c0e){var a=v0e(r!=null?r:"").replace(l0e,"").replace(n0e," ").replace(i0e,n=>n===lg?n:"").toLowerCase().trim().replace(s0e,lg).replace(o0e,"").replace(u0e,lg);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(f0e,"")}});var or=B((sqe,FE)=>{"use strict";var Y2=la(),h0e=wv().utcFormat,d0e=v_().format,SE=da(),CE=(Wn(),vr(ri)),DE=CE.FP_SAFE,p0e=-DE,wE=CE.BADNUM,_e={};FE.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 AE={};_e.warnBadFormat=function(e){var r=String(e);AE[r]||(AE[r]=1,_e.warn('encountered bad format: "'+r+'"'))};_e.noFormat=function(e){return String(e)};_e.numberFormat=function(e){var r;try{r=d0e(_e.adjustFormat(e))}catch(t){return _e.warnBadFormat(e),_e.noFormat}return r};_e.nestedProperty=cy();_e.keyedContainer=mk();_e.relativeAttr=gk();_e.isPlainObject=q0();_e.toLogRange=hy();_e.relinkPrivateKeys=wk();var pf=so();_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 LE=(Mv(),vr(Tv));_e.mod=LE.mod;_e.modHalf=LE.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 Io=UL();_e.dateTime2ms=Io.dateTime2ms;_e.isDateTime=Io.isDateTime;_e.ms2DateTime=Io.ms2DateTime;_e.ms2DateTimeLocal=Io.ms2DateTimeLocal;_e.cleanDate=Io.cleanDate;_e.isJSDate=Io.isJSDate;_e.formatDate=Io.formatDate;_e.incrementMonth=Io.incrementMonth;_e.dateTick0=Io.dateTick0;_e.dfltRange=Io.dfltRange;_e.findExactDates=Io.findExactDates;_e.MIN_MS=Io.MIN_MS;_e.MAX_MS=Io.MAX_MS;var W0=c6();_e.findBin=W0.findBin;_e.sorterAsc=W0.sorterAsc;_e.sorterDes=W0.sorterDes;_e.distinctVals=W0.distinctVals;_e.roundUp=W0.roundUp;_e.sort=W0.sort;_e.findIndexOfMin=W0.findIndexOfMin;_e.sortObjectKeys=(tg(),vr(rg)).default;var cu=YL();_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 zl=Yy();_e.init2dArray=zl.init2dArray;_e.transposeRagged=zl.transposeRagged;_e.dot=zl.dot;_e.translationMatrix=zl.translationMatrix;_e.rotationMatrix=zl.rotationMatrix;_e.rotationXYMatrix=zl.rotationXYMatrix;_e.apply3DTransform=zl.apply3DTransform;_e.apply2DTransform=zl.apply2DTransform;_e.apply2DTransform2=zl.apply2DTransform2;_e.convertCssMatrix=zl.convertCssMatrix;_e.inverseTransformMatrix=zl.inverseTransformMatrix;var bs=JL();_e.deg2rad=bs.deg2rad;_e.rad2deg=bs.rad2deg;_e.angleDelta=bs.angleDelta;_e.angleDist=bs.angleDist;_e.isFullCircle=bs.isFullCircle;_e.isAngleInsideSector=bs.isAngleInsideSector;_e.isPtInsideSector=bs.isPtInsideSector;_e.pathArc=bs.pathArc;_e.pathSector=bs.pathSector;_e.pathAnnulus=bs.pathAnnulus;var Wv=jL();_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=QL();_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 fg=Fn();_e.extendFlat=fg.extendFlat;_e.extendDeep=fg.extendDeep;_e.extendDeepAll=fg.extendDeepAll;_e.extendDeepNoArrays=fg.extendDeepNoArrays;var g6=of();_e.log=g6.log;_e.warn=g6.warn;_e.error=g6.error;var m0e=(Bv(),vr(N2));_e.counterRegex=m0e.counter;var b6=ig();_e.throttle=b6.throttle;_e.throttleDone=b6.done;_e.clearThrottle=b6.clear;var Bl=z2();_e.getGraphDiv=Bl.getGraphDiv;_e.isPlotDiv=Bl.isPlotDiv;_e.removeElement=Bl.removeElement;_e.addStyleRule=Bl.addStyleRule;_e.addRelatedStyleRule=Bl.addRelatedStyleRule;_e.deleteRelatedStyleRule=Bl.deleteRelatedStyleRule;_e.setStyleOnHover=Bl.setStyleOnHover;_e.getFullTransformMatrix=Bl.getFullTransformMatrix;_e.getElementTransformMatrix=Bl.getElementTransformMatrix;_e.getElementAndAncestors=Bl.getElementAndAncestors;_e.equalDomRects=Bl.equalDomRects;_e.clearResponsive=tE();_e.preserveDrawingBuffer=iE();_e.makeTraceGroups=lE();_e._=uE();_e.notifier=V4();_e.filterUnique=cE();_e.filterVisible=hE();_e.pushUnique=e6();_e.increment=pE();_e.cleanNumber=(gE(),vr(yE)).default;_e.slugify=_E();_e.ensureNumber=function(r){return SE(r)?(r=Number(r),r>DE||r=r?!1:SE(e)&&e>=0&&e%1===0};_e.noop=Gy();_e.identity=eg();_e.repeat=function(e,r){for(var t=new Array(r),a=0;at?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=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=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;i0?n:0})};_e.fillArray=function(e,r,t,a){if(a=a||_e.identity,_e.isArrayOrTypedArray(e))for(var n=0;nb0e.test(window.navigator.userAgent);var x0e=/Firefox\/(\d+)\.\d+/;_e.getFirefoxVersion=function(){var e=x0e.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 Y2.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;i1?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 qE=/^\w*$/;_e.templateString=function(e,r){var t={};return e.replace(_e.TEMPLATE_STRING_REGEX,function(a,n){var i;return qE.test(n)?i=r[n]:(t[n]=t[n]||_e.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var A0e={max:10,count:0,name:"hovertemplate"};_e.hovertemplateString=e=>x6(Va(ka({},e),{opts:A0e}));var T0e={max:10,count:0,name:"texttemplate"};_e.texttemplateString=e=>x6(Va(ka({},e),{opts:T0e}));var M0e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function k0e(e){var r=e.match(M0e);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var S0e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};_e.texttemplateStringForShapes=e=>x6(Va(ka({},e),{opts:S0e}));var TE=/^[:|\|]/;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=k0e(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(qE.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=ug&&o<=ME,u=l>=ug&&l<=ME;if(s&&(a=10*a+o-ug),u&&(n=10*n+l-ug),!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;a1&&(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 kE=_e.getFirefoxVersion(),C0e=kE!==null&&kE<86;_e.getPositionFromD3Event=function(){return C0e?[Y2.event.layerX,Y2.event.layerY]:[Y2.event.offsetX,Y2.event.offsetY]}});var NE=B(()=>{"use strict";var D0e=or(),RE={"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 RE)PE=_6.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),D0e.addStyleRule(PE,RE[_6]);var PE,_6});var w6=B((vqe,zE)=>{zE.exports=!0});var T6=B((hqe,BE)=>{"use strict";var L0e=w6(),A6;typeof window.matchMedia=="function"?A6=!window.matchMedia("(hover: none)").matches:A6=L0e;BE.exports=A6});var hg=B((dqe,M6)=>{"use strict";var Jv=typeof Reflect=="object"?Reflect:null,IE=Jv&&typeof Jv.apply=="function"?Jv.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},cg;Jv&&typeof Jv.ownKeys=="function"?cg=Jv.ownKeys:Object.getOwnPropertySymbols?cg=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:cg=function(r){return Object.getOwnPropertyNames(r)};function E0e(e){console&&console.warn&&console.warn(e)}var HE=Number.isNaN||function(r){return r!==r};function Ka(){Ka.init.call(this)}M6.exports=Ka;M6.exports.once=P0e;Ka.EventEmitter=Ka;Ka.prototype._events=void 0;Ka.prototype._eventsCount=0;Ka.prototype._maxListeners=void 0;var OE=10;function vg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ka,"defaultMaxListeners",{enumerable:!0,get:function(){return OE},set:function(e){if(typeof e!="number"||e<0||HE(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");OE=e}});Ka.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};Ka.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||HE(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 UE(e){return e._maxListeners===void 0?Ka.defaultMaxListeners:e._maxListeners}Ka.prototype.getMaxListeners=function(){return UE(this)};Ka.prototype.emit=function(r){for(var t=[],a=1;a0&&(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")IE(s,this,t);else for(var u=s.length,f=WE(s,u),a=0;a0&&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,E0e(l)}return e}Ka.prototype.addListener=function(r,t){return GE(this,r,t,!1)};Ka.prototype.on=Ka.prototype.addListener;Ka.prototype.prependListener=function(r,t){return GE(this,r,t,!0)};function q0e(){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 YE(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=q0e.bind(a);return n.listener=t,a.wrapFn=n,n}Ka.prototype.once=function(r,t){return vg(t),this.on(r,YE(this,r,t)),this};Ka.prototype.prependOnceListener=function(r,t){return vg(t),this.prependListener(r,YE(this,r,t)),this};Ka.prototype.removeListener=function(r,t){var a,n,i,o,l;if(vg(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():F0e(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ka.prototype.off=Ka.prototype.removeListener;Ka.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=0;n--)this.removeListener(r,t[n]);return this};function VE(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?R0e(n):WE(n,n.length)}Ka.prototype.listeners=function(r){return VE(this,r,!0)};Ka.prototype.rawListeners=function(r){return VE(this,r,!1)};Ka.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):XE.call(e,r)};Ka.prototype.listenerCount=XE;function XE(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}Ka.prototype.eventNames=function(){return this._eventsCount>0?cg(this._events):[]};function WE(e,r){for(var t=new Array(r),a=0;a{"use strict";var k6=hg().EventEmitter,z0e={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{"use strict";var jE=or(),B0e=nf().dfltConfig;function I0e(e,r){for(var t=[],a,n=0;nB0e.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=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";QE.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Kv=B(ti=>{"use strict";var ol=Pt(),X2=or(),pg=Fl(),C6=Uv(),O0e=S6(),H0e=B2(),U0e=nf().configAttributes,eq=Nl(),Il=X2.extendDeepAll,jv=X2.isPlainObject,G0e=X2.isArrayOrTypedArray,mg=X2.nestedProperty,Y0e=X2.valObjectMeta,D6="_isSubplotObj",yg="_isLinkedToArray",V0e="_arrayAttrRegexps",tq="_deprecated",L6=[D6,yg,V0e,tq];ti.IS_SUBPLOT_OBJ=D6;ti.IS_LINKED_TO_ARRAY=yg;ti.DEPRECATED=tq;ti.UNDERSCORE_ATTRS=L6;ti.get=function(){var e={};return ol.allTypes.forEach(function(r){e[r]=W0e(r)}),{defs:{valObjects:Y0e,metaKeys:L6.concat(["description","role","editType","impliedEdits"]),editType:{traces:eq.traces,layout:eq.layout},impliedEdits:{}},traces:e,layout:Z0e(),frames:J0e(),animation:$v(H0e),config:$v(U0e)}};ti.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(L6.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)G0e(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!dg(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function dg(e){return e===Math.round(e)&&e>=0}function W0e(e){var r,t;r=ol.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Il({},pg),i=Il({},r.attributes);ti.crawl(i,function(s,u,f,c,v){mg(n,v).set(void 0),s===void 0&&mg(i,v).set(void 0)}),Il(a,n),ol.traceIs(e,"noOpacity")&&delete a.opacity,ol.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),ol.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Il(a,i),t.attributes&&Il(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={};Il(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 Z0e(){var e={},r,t;Il(e,C6);for(r in ol.subplotsRegistry)if(t=ol.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Qv=or(),ece=Fl(),yf="templateitemname",E6={name:{valType:"string",editType:"none"}};E6[yf]={valType:"string",editType:"calc"};Z0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=E6.name,r[yf]=E6[yf],r};Z0.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,{},ece,"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}};Z0.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};Z0.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=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={};ja(ai,{AX_ID_PATTERN:()=>ice,AX_NAME_PATTERN:()=>oce,DFLTRANGEX:()=>dce,DFLTRANGEY:()=>pce,DRAGGERSIZE:()=>vce,HOUR_PATTERN:()=>sce,MINDRAG:()=>fce,MINZOOM:()=>cce,REDRAWDELAY:()=>hce,SUBPLOT_PATTERN:()=>lce,WEEKDAY_PATTERN:()=>uce,attrRegex:()=>tce,clipOnAxisFalseQuery:()=>yce,idRegex:()=>rce,layerValue2layerClass:()=>gce,traceLayerClasses:()=>mce,xAxisMatch:()=>ace,yAxisMatch:()=>nce,zindexSeparator:()=>bce});var rce,tce,ace,nce,ice,oce,lce,sce,uce,fce,cce,vce,hce,dce,pce,mce,yce,gce,bce,ni=Ja(()=>{"use strict";Bv();rce={x:G0("x","( domain)?"),y:G0("y","( domain)?")},tce=G0("[xy]axis"),ace=G0("xaxis"),nce=G0("yaxis"),ice=/^[xyz][0-9]*( domain)?$/,oce=/^[xyz]axis[0-9]*$/,lce=/^x([0-9]*)y([0-9]*)$/,sce="hour",uce="day of week",fce=8,cce=20,vce=20,hce=50,dce=[-1,6],pce=[-1,4],mce=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],yce=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],gce={"above traces":"above","below traces":"below"},bce="z"});var hn=B(To=>{"use strict";var xce=Pt(),q6=(ni(),vr(ai));To.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}};To.name2id=function(r){if(r.match(q6.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};To.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":"")}};To.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=To.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};To.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function oq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function _ce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function wce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}lq.exports={clearOutlineControllers:_ce,clearOutline:wce}});var gg=B((Aqe,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 W2=B(xg=>{"use strict";var bg=Pt(),Tqe=(ni(),vr(ai)).SUBPLOT_PATTERN;xg.getSubplotCalcData=function(e,r,t){var a=bg.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Ace=Pt(),eh=or();J0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=J0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){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;s0?".":"")+n;eh.isPlainObject(i)?F6(i,r,o,a+1):r(o,n,i)}})}});var di=B((Cqe,wq)=>{"use strict";var Sqe=la(),Mce=wv().timeFormatLocale,kce=v_().formatLocale,Z2=da(),Sce=d_(),Cce=v2().version,ya=Pt(),Dce=Kv(),Lce=Ra(),st=or(),Ece=Kt(),hq=(Wn(),vr(ri)).BADNUM,Mo=hn(),qce=gf().clearOutline,Fce=gg(),R6=B2(),Rce=S6(),Pce=W2().getModuleCalcData,dq=st.relinkPrivateKeys,j0=st._,Gr=wq.exports={};st.extendFlat(Gr,ya);Gr.attributes=Fl();Gr.attributes.type.values=Gr.allTypes;Gr.fontAttrs=Di();Gr.layoutAttributes=Uv();var wg=vq();Gr.executeAPICommand=wg.executeAPICommand;Gr.computeAPICommandBindings=wg.computeAPICommandBindings;Gr.manageCommandObserver=wg.manageCommandObserver;Gr.hasSimpleAPICommandBindings=wg.hasSimpleAPICommandBindings;Gr.redrawText=function(e){return e=st.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ya.getComponentMethod("annotations","draw")(e),ya.getComponentMethod("legend","draw")(e),ya.getComponentMethod("colorbar","draw")(e),r(Gr.previousPromises(e)))},300)})};Gr.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,ya.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Gr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Gr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Gr.graphJson(e,!1,"object");a.version=Cce;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 Nce=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],zce=["year","month","dayMonth","dayMonthYear"];Gr.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||Gr.createTransitionData(e),n._dfltTitle={plot:j0(e,"Click to enter Plot title"),subtitle:j0(e,"Click to enter Plot subtitle"),x:j0(e,"Click to enter X axis title"),y:j0(e,"Click to enter Y axis title"),colorbar:j0(e,"Click to enter Colorscale title"),annotation:j0(e,"new text")},n._traceWord=j0(e,"trace");var v=pq(e,Nce);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;Gr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Gr.sanitizeMargins(n)}else{Gr.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,T=m&&(y||b);T?Gr.plotAutoSize(e,i,n):m&&Gr.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Oce(v,n.separators),n._extraFormat=pq(e,zce),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Ice(),x=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Bce(o,s),Gr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(ya.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Gr.linkSubplots(l,n,o,a),Gr.cleanPlot(l,n,o,a);var q=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),I=q,U=z;I&&!U?a._bgLayer.remove():U&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&qce({_fullLayout:a}),Hce(l,n),dq(n,a),ya.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;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Gr.layoutAttributes.width.min,v=Gr.layoutAttributes.height.min;o1,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}),Gr.sanitizeMargins(a)};Gr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ya.componentsRegistry,i=r._basePlotModules,o,l,s,u=ya.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ya.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(st.subplotSort);for(l=0;l1&&(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 Gr.doAutoMargin(e)}};function Gce(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Mo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Gr.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"&&Z2(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 E in v){var F=v[E].l||{},P=v[E].b||{},q=F.val,z=F.size,I=P.val,U=P.size,G=t-o.r-o.l,X=a-o.t-o.b;for(var Y in v){if(Z2(z)&&v[Y].r){var V=v[Y].r.val,Z=v[Y].r.size;if(V>q){var j=(z*V+(Z-G)*q)/(V-q),ee=(Z*(1-q)+(z-G)*(1-V))/(V-q);j+ee>s+u&&(s=j,u=ee)}}if(Z2(U)&&v[Y].t){var me=v[Y].t.val,fe=v[Y].t.size;if(me>I){var he=(U*me+(fe-X)*I)/(me-I),te=(fe*(1-I)+(U-X)*(1-me))/(me-I);he+te>c+f&&(c=he,f=te)}}}}}var Le=st.constrain(t-i.l-i.r,bq,p),ce=st.constrain(a-i.t-i.b,xq,m),Fe=Math.max(0,t-Le),Re=Math.max(0,a-ce);if(Fe){var ge=(s+u)/Fe;ge>1&&(s/=ge,u/=ge)}if(Re){var He=(c+f)/Re;He>1&&(c/=He,f/=He)}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&&(Gr.didMarginChange(l,n)||Gce(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ur=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Gr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Gr.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)?Sce.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)};Gr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ya.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 ya.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=[Gr.previousPromises,s,t.prepareFn,Gr.rehover,Gr.reselect,o],f=st.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Gr.doCalcdata=function(e,r){var t=Mo.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;lAq,svgAttrs:()=>Jce,xlink:()=>Tq,xmlns:()=>Zce});var Zce,Aq,Tq,Jce,xf=Ja(()=>{"use strict";Zce="http://www.w3.org/2000/xmlns/",Aq="http://www.w3.org/2000/svg",Tq="http://www.w3.org/1999/xlink",Jce={xmlns:Aq,"xmlns:xlink":Tq}});var Ii={};ja(Ii,{CAP_SHIFT:()=>eve,FROM_BL:()=>jce,FROM_BR:()=>Kce,FROM_TL:()=>$ce,LINE_SPACING:()=>Qce,MID_SHIFT:()=>rve,OPPOSITE_SIDE:()=>tve});var jce,$ce,Kce,Qce,eve,rve,tve,Oi=Ja(()=>{"use strict";jce={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},$ce={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},Kce={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},Qce=1.3,eve=.7,rve=.35,tve={left:"right",right:"left",top:"bottom",bottom:"top"}});var Ei=B(Ji=>{"use strict";var kn=la(),ll=or(),ave=ll.strTranslate,P6=(xf(),vr(bf)),nve=(Oi(),vr(Ii)).LINE_SPACING,ive=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,B6=e=>e?e.match(ive):null;Ji.matchTex=B6;var ove=e=>{var r=B6(e);return!!r&&!r[1]&&!r[3]};Ji.isPureTex=ove;function Lq(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]+")"+ave(-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 lve(e){e.selectAll("a").each(function(){var r=kn.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,H6(a)||null)})})}Ji.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&B6(a);n&&!cve()&&(n=null);var i=kn.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=_ve(e.node(),a);s&&e.style("pointer-events","all"),Ji.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");vve(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()),lve(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:_}),Lq(e,o,y,m,c,u,b,T),t&&t.call(e,y),s(y)})})):l(),e};Ji.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=kn.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);Lq(e,r,a,n,i,o)}}};Ji.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=kn.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var sve=/(<|<|<)/g,uve=/(>|>|>)/g;function fve(e){return e.replace(sve,"\\lt ").replace(uve,"\\gt ")}var N6=null,Eq=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Mq=!1,kq=!1;function cve(){let e=Eq();return e===3||e===4?!0:(e===null?Mq||(Mq=!0,ll.warn("MathJax is not loaded. Math equations will not be rendered.")):kq||(kq=!0,ll.warn("Unsupported MathJax version:",MathJax.version)),!1)}function vve(e,r,t){let a=Eq();var n;let i=function(){if(!N6){let u=MathJax._.output.svg_ts.SVG,f=ll.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=ll.extendFlat({},f.linebreaks,{inline:!1})),N6=MathJax._.mathjax.mathjax.document(document,ll.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+ll.randstr({},64);n=kn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=fve(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)ll.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=>{ll.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"},hve={sub:"0.3em",sup:"-0.6em"},dve={sub:"-0.21em",sup:"0.42em"},Sq="\u200B",Cq=["http:","https:","mailto:","",void 0,":"],Fq=Ji.NEWLINES=/(\r\n?|\n)/g,I6=/(<[^<>]*>)/,O6=/<(\/?)([^ >]*)(\s+(.*))?>/i,pve=//i;Ji.BR_TAG_ALL=//gi;var Rq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Pq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Nq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,mve=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function $0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Ag(a)}var yve=/(^|;)\s*color:/;Ji.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(I6),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var gve={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},bve=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Ag(e){return e.replace(bve,function(r,t){var a;return t.charAt(0)==="#"?a=xve(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=gve[t],a||r})}Ji.convertEntities=Ag;function xve(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 _ve(e,r){r=r.replace(Fq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(P6.svg,"tspan");kn.select(k).attr({class:"line",dy:i*nve+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var C=1;C.",r);return}var M=a.pop();k!==M.type&&ll.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=pve.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(I6),v=0;v{"use strict";var wve=la(),j2=da(),Tg=or(),K0=Kt(),Ave=U0().isValid;function Tve(e,r,t){var a=r?Tg.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Tg.isArrayOrTypedArray(n)){for(var o=0;o=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{"use strict";var Gq=(i6(),vr(n6)),kve=Gq.FORMAT_LINK,Sve=Gq.DATE_FORMAT_LINK;function Cve(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: "+kve+"."].join(" ")}function Yq(e,r){return U6(e,r)+[" And for dates see: "+Sve+".","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:Cve,descriptionOnlyNumbers:U6,descriptionWithDates:Yq}});var sl=B((Fqe,sF)=>{"use strict";var Xq=Di(),rh=gs(),lF=uf().dash,Y6=Fn().extendFlat,Wq=Ra().templatedArray,qqe=Hv().templateFormatStringDescription,Zq=$2().descriptionWithDates,Dve=(Wn(),vr(ri)).ONEDAY,xs=(ni(),vr(ai)),Lve=xs.HOUR_PATTERN,Eve=xs.WEEKDAY_PATTERN,G6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},qve=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 eF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function rF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var tF={valType:"color",dflt:rh.defaultLine,editType:"ticks"},aF={valType:"color",dflt:rh.lightLine,editType:"ticks"};function nF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var iF=Y6({},lF,{editType:"ticks"}),oF={valType:"boolean",editType:"ticks"};sF.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:[xs.idRegex.x.toString(),xs.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:[xs.idRegex.x.toString(),xs.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:[Eve,Lve,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Dve},editType:"calc"}),tickmode:qve,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:eF(),tickwidth:rF(),tickcolor:tF,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({},lF,{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:oF,gridcolor:aF,gridwidth:nF(),griddash:iF,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",xs.idRegex.x.toString(),xs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",xs.idRegex.x.toString(),xs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:G6,nticks:Jq("minor"),tick0:jq,dtick:$q,tickvals:Kq,ticks:Qq,ticklen:eF("minor"),tickwidth:rF("minor"),tickcolor:tF,gridcolor:aF,gridwidth:nF("minor"),griddash:iF,showgrid:oF,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 Mg=B((Rqe,fF)=>{"use strict";var Qa=sl(),uF=Di(),V6=Fn().extendFlat,Fve=Nl().overrideAll;fF.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:Qa.linecolor,outlinewidth:Qa.linewidth,bordercolor:Qa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Qa.minor.tickmode,nticks:Qa.nticks,tick0:Qa.tick0,dtick:V6({},Qa.dtick,{}),tickvals:Qa.tickvals,ticktext:Qa.ticktext,ticks:V6({},Qa.ticks,{dflt:""}),ticklabeloverflow:V6({},Qa.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Qa.ticklen,tickwidth:Qa.tickwidth,tickcolor:Qa.tickcolor,ticklabelstep:Qa.ticklabelstep,showticklabels:Qa.showticklabels,labelalias:Qa.labelalias,tickfont:uF({description:"Sets the color bar's tick label font"}),tickangle:Qa.tickangle,tickformat:Qa.tickformat,tickformatstops:Qa.tickformatstops,tickprefix:Qa.tickprefix,showtickprefix:Qa.showtickprefix,ticksuffix:Qa.ticksuffix,showticksuffix:Qa.showticksuffix,separatethousands:Qa.separatethousands,exponentformat:Qa.exponentformat,minexponent:Qa.minexponent,showexponent:Qa.showexponent,title:{text:{valType:"string"},font:uF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Q0=B((Nqe,vF)=>{"use strict";var Rve=Mg(),Pve=(Bv(),vr(N2)).counter,Nve=(tg(),vr(rg)).default,cF=U0().scales,Pqe=Nve(cF);function kg(e){return"`"+e+"`"}vF.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"?cF[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 "+kg(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=kg(u+d),T=kg(u+p),_=kg(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=Rve),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Pve("coloraxis"),dflt:null,editType:"calc"}),M}});var W6=B((zqe,hF)=>{"use strict";var zve=Fn().extendFlat,Bve=Q0(),X6=U0().scales;hF.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:zve({_isSubplotObj:!0,editType:"calc"},Bve("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Z6=B((Bqe,dF)=>{"use strict";var Ive=or();dF.exports=function(r){return Ive.isPlainObject(r.colorbar)}});var $6=B(j6=>{"use strict";var J6=da(),pF=or(),mF=(Wn(),vr(ri)),Ove=mF.ONEDAY,Hve=mF.ONEWEEK;j6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Ove: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 pF.cleanDate(e,pF.dateTick0(t,a%Hve===0?1:0));if(!(a==="D1"||a==="D2"))return J6(e)?Number(e):0}});var K6=B((Oqe,gF)=>{"use strict";var yF=$6(),Uve=or().isArrayOrTypedArray,Gve=so().isTypedArraySpec,Yve=so().decodeTypedArraySpec;gF.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 Gve(w)&&(w=Yve(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;Uve(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=yF.dtick(v,n);s.tick0=yF.tick0(c,n,t.calendar,T)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":o||a("ticktext")}}});var e7=B((Hqe,xF)=>{"use strict";var Q6=or(),bF=sl();xF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?bF.minor:bF,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=B((Uqe,_F)=>{"use strict";_F.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 Oo=B((Gqe,wF)=>{"use strict";var Sg=or(),Vve=Ra();wF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Sg.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Vve.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var t7=or(),Xve=Kt().contrast,AF=sl(),Wve=r7(),Zve=Oo();TF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");t7.isPlainObject(o)||delete t.labelalias;var l=Wve(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?Xve(i.bgColor):f&&f!==AF.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");Zve(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,AF.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var n7=B((Vqe,MF)=>{"use strict";var jve=r7();MF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=jve(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var i7=B((Xqe,kF)=>{"use strict";var _f=or(),$ve=Ra(),Kve=K6(),Qve=e7(),ehe=a7(),rhe=n7(),the=Mg();kF.exports=function(r,t,a){var n=$ve.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,q){return _f.coerce(i,n,the,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"),Kve(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"),rhe(i,n,o,"linear",C),ehe(i,n,o,"linear",C),Qve(i,n,o,"linear",C),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,F=_f.extendFlat({},M,{family:E.family,size:_f.bigFont(E.size)});_f.coerceFont(o,"title.font",F),o("title.side",c?"top":"right")}});var th=B((Wqe,DF)=>{"use strict";var SF=da(),l7=or(),ahe=Z6(),nhe=i7(),CF=U0().isValid,ihe=Pt().traceIs;function o7(e,r){var t=r.slice(0,r.length-1);return r?l7.nestedProperty(e,t).get()||{}:e}DF.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=ihe(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"],_=SF(b)&&SF(T)&&b{"use strict";var LF=or(),ohe=Ra(),EF=W6(),lhe=th();qF.exports=function(r,t){function a(c,v){return LF.coerce(r,t,EF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return LF.coerce(i,o,EF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=ohe.newContainer(t,s,"coloraxis"),o._name=s,lhe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var she=or(),uhe=Ol().hasColorscale,fhe=Ol().extractOpts;RF.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?she.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=fhe(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{"use strict";var NF=da(),s7=or(),che=Ol().extractOpts;zF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?s7.nestedProperty(t,o).get():t,s=che(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&&NF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&NF(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var nh=B(($qe,BF)=>{"use strict";var Cg=U0(),ah=Ol();BF.exports={moduleType:"component",name:"colorscale",attributes:Q0(),layoutAttributes:W6(),supplyLayoutDefaults:FF(),handleDefaults:th(),crossTraceDefaults:PF(),calc:u7(),scales:Cg.scales,defaultScale:Cg.defaultScale,getScale:Cg.get,isValidScale:Cg.isValid,hasColorscale:ah.hasColorscale,extractOpts:ah.extractOpts,extractScale:ah.extractScale,flipScale:ah.flipScale,makeColorScaleFunc:ah.makeColorScaleFunc,makeColorScaleFuncFromTrace:ah.makeColorScaleFuncFromTrace}});var Ti=B((Kqe,OF)=>{"use strict";var IF=or(),vhe=so().isTypedArraySpec;OF.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 IF.isPlainObject(r)&&(IF.isArrayOrTypedArray(r.size)||vhe(r.size))}}});var f7=B((Qqe,HF)=>{"use strict";var hhe=da();HF.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 hhe(s)&&s>0?Math.max(s,i):0}}});var _s=B(qi=>{"use strict";var K2=or();qi.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};qi.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var c7={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},yhe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,ghe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function bhe(e){let r=[];return e.replace(yhe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=xhe(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{"use strict";var _he=v7(),Cr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ut="M0,0Z",VF=Math.sqrt(2),wf=Math.sqrt(3),h7=Math.PI,d7=Math.cos,p7=Math.sin;jF.exports={circle:{n:0,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Yt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.3,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.4,2),n=Cr(e*1.2,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*.8/VF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Yt(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(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.951,2),n=Cr(e*.588,2),i=Cr(-e,2),o=Cr(e*-.309,2),l=Cr(e*.809,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e/2,2),i=Cr(e*wf/2,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e/2,2),i=Cr(e*wf/2,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*.924,2),n=Cr(e*.383,2);return Yt(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(Gt(r))return Ut;var a=e*1.4,n=Cr(a*.225,2),i=Cr(a*.951,2),o=Cr(a*.363,2),l=Cr(a*.588,2),s=Cr(-a,2),u=Cr(a*-.309,2),f=Cr(a*.118,2),c=Cr(a*.809,2),v=Cr(a*.382,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*.66,2),n=Cr(e*.38,2),i=Cr(e*.76,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*wf*.8,2),n=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Yt(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(Gt(r))return Ut;var a=Cr(e*wf*.8,2),n=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Yt(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(Gt(r))return Ut;var a=Cr(e*1.1,2),n=Cr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Yt(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(Gt(r))return Ut;var a=Cr(e*1.4,2),n=Cr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Yt(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(Gt(r))return Ut;var a=Cr(e*.7,2),n=Cr(e*1.4,2);return Yt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2),n=Cr(e*.7,2);return Yt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e/VF,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.3,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.3,2),n=Cr(e*.65,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.4,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*.85,2);return Yt(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(Gt(r))return Ut;var a=Cr(e/2,2),n=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*1.4,2);return Yt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2);return Yt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(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(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(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(Gt(r))return Ut;var a=h7/2.5,n=2*e*d7(a),i=2*e*p7(a);return Yt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Gt(r))return Ut;var a=h7/4,n=2*e*d7(a),i=2*e*p7(a);return Yt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Gt(e){return e===null}var XF,WF,ZF,JF;function Yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ZF===e&&JF===r&&XF===t)return WF;ZF=e,JF=r,XF=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=_he(t),s="",u=0;u{"use strict";var pi=la(),La=or(),whe=La.numberFormat,Af=da(),Lg=Pt(),ii=Kt(),Ahe=nh(),e1=La.strTranslate,Eg=Ei(),The=(xf(),vr(bf)),Mhe=(Oi(),vr(Ii)),khe=Mhe.LINE_SPACING,lR=(zv(),vr(Nv)).DESELECTDIM,She=Ti(),Che=f7(),Dhe=_s().appendArrayPointValue,Hr={};yR.exports=Hr;Hr.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(Ehe(f))),s&&e.style("text-shadow",s==="auto"?Eg.makeTextShadow(ii.contrast(i)):m7(s)),u&&e.style("text-decoration-line",m7(qhe(u)))};function m7(e){return e==="none"?void 0:e}var Lhe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Ehe(e){return Lhe[e]}function qhe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Hr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Hr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Hr.setRect=function(e,r,t,a,n){e.call(Hr.setPosition,r,t).call(Hr.setSize,a,n)};Hr.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",e1(n,i));else return!1;return!0};Hr.translatePoints=function(e,r,t){e.each(function(a){var n=pi.select(this);Hr.translatePoint(a,n,r,t)})};Hr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};Hr.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=Lg.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Hr.hideOutsideRangePoint(u,pi.select(this),t,a,o,l)})})}};Hr.crispRound=function(e,r,t){return!r||!Af(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Hr.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),Hr.dashLine(r,l,o)};Hr.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||"";pi.select(this).call(ii.stroke,t||i.color).call(Hr.dashLine,l,o)})};Hr.dashLine=function(e,r,t){t=+t||0,r=Hr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Hr.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 sR(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=Hr.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;Hr.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(cR,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Hr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ii.fill,r.fillcolor)}Hr.singleFillStyle=function(e,r){var t=pi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};sR(e,n,r,!1)};Hr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=pi.select(this);a[0].trace&&sR(n,a[0].trace,r,t)})};var KF=$F();Hr.symbolNames=[];Hr.symbolFuncs=[];Hr.symbolBackOffs=[];Hr.symbolNeedLines={};Hr.symbolNoDot={};Hr.symbolNoFill={};Hr.symbolList=[];Object.keys(KF).forEach(function(e){var r=KF[e],t=r.n;Hr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Hr.symbolNames[t]=e,Hr.symbolFuncs[t]=r.f,Hr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Hr.symbolNeedLines[t]=!0),r.noDot?Hr.symbolNoDot[t]=!0:Hr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Hr.symbolNoFill[t]=!0)});var Fhe=Hr.symbolNames.length,Rhe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Hr.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=Hr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Fhe||e>=400?0:Math.floor(Math.max(e,0))};function uR(e,r,t,a){var n=e%100;return Hr.symbolFuncs[n](r,t,a)+(e>=200?Rhe:"")}var QF=whe("~f"),fR={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}};Hr.gradient=function(e,r,t,a,n,i){var o=fR[a];return cR(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function cR(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=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=Hr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=A7(e,t),c=w7(e,t);r.attr("d",uR(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):La.isArrayOrTypedArray(l.color)?p=ii.defaultLine:p=l.color,La.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&&Hr.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,La.isArrayOrTypedArray(_)&&(_=_[0],fR[_]||(_=0));var x=o.pattern,w=Hr.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),Hr.gradient(r,n,C,_,[[0,M],[1,d]],"fill")}else if(k){var E=!1,F=x.fgcolor;!F&&i&&i.color&&(F=i.color,E=!0);var P=w(F,e.i,i&&i.color||null),q=w(x.bgcolor,e.i,null),z=x.fgopacity,I=w(x.size,e.i,8),U=w(x.solidity,e.i,.3);E=E||e.mcc||La.isArrayOrTypedArray(x.shape)||La.isArrayOrTypedArray(x.path)||La.isArrayOrTypedArray(x.bgcolor)||La.isArrayOrTypedArray(x.fgcolor)||La.isArrayOrTypedArray(x.size)||La.isArrayOrTypedArray(x.solidity);var G=t.uid;E&&(G+="-"+e.i),Hr.pattern(r,"point",n,G,k,I,U,e.mcc,x.fillmode,q,P,z)}else La.isArrayOrTypedArray(d)?ii.fill(r,d[e.i]):ii.fill(r,d);m&&ii.stroke(r,p)}};Hr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Hr.tryColorscale(t,""),r.lineScale=Hr.tryColorscale(t,"line"),Lg.traceIs(e,"symbols")&&(r.ms2mrc=She.isBubble(e)?Che(e):function(){return(t.size||6)/2}),e.selectedpoints&&La.extendFlat(r,Hr.makeSelectedPointStyleFns(e)),r};Hr.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;(La.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:lR*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 Lg.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};Hr.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,lR))},r};Hr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Hr.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",uR(Hr.symbolNumber(l),s,A7(o,r),w7(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=pi.select(this),l=0;l0?t:0}Hr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=Hr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=pi.select(this),u=i?La.extractOption(l,r,"txt","texttemplate"):La.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={};Dhe(v,r,l.i),u=La.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=hR(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(Hr.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(Eg.convertToTspans,t).call(vR,d,p,l.mrc)})}};Hr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Hr.makeSelectedTextStyleFns(r);e.each(function(a){var n=pi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=hR(a,r);ii.fill(n,i);var s=Lg.traceIs(r,"bar-like");vR(n,o,l,a.mrc2||a.mrc,s)})}};var eR=.5;Hr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[x,w])}return e}Hr.applyBackoff=mR;Hr.makeTester=function(){var e=La.ensureSingleById(pi.select("body"),"svg","js-plotly-tester",function(t){t.attr(The.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=La.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Hr.tester=e,Hr.testref=r};Hr.savedBBoxes={};var g7=0,zhe=1e4;Hr.bBox=function(e,r,t){t||(t=rR(e));var a;if(t){if(a=Hr.savedBBoxes[t],a)return La.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=rR(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=Hr.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=Hr.savedBBoxes[t],a)return La.extendFlat({},a)}}var u,f;r?u=e:(f=Hr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),pi.select(u).attr("transform",null).call(Eg.positionText,0,0);var c=u.getBoundingClientRect(),v=Hr.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>=zhe&&(Hr.savedBBoxes={},g7=0),t&&(Hr.savedBBoxes[t]=d),g7++,La.extendFlat({},d)};function rR(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Hr.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+")"}Hr.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}};Hr.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+=e1(r,t),o=o.trim(),e[i]("transform",o),o};Hr.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}};Hr.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.*/;Hr.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 Ihe=/translate\([^)]*\)\s*$/;Hr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=pi.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(Ihe);r===1&&t===1?a=[]:a=[e1(o,l),"scale("+r+","+t+")",e1(-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}Hr.getMarkerStandoff=w7;var Q2=Math.atan2,ec=Math.cos,oh=Math.sin;function tR(e,r){var t=r[0],a=r[1];return[t*ec(e)-a*oh(e),t*oh(e)+a*ec(e)]}var aR,nR,iR,oR,b7,x7;function A7(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Af(t)||La.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=Q2(v[1]-n,v[0]-a),p=Q2(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=aR/180*Math.PI,_=nR/180*Math.PI,x=T-y,w=ec(_)*oh(x),k=oh(_)*ec(b)-ec(_)*oh(b)*ec(x);m=-Q2(w,k)-Math.PI,aR=u,nR=f}var M=tR(d,[ec(m),0]),C=tR(p,[oh(m),0]);t=Q2(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 E=a-iR,F=n-oR,P=r.line&&r.line.shape||"",q=P.slice(P.length-1);q==="h"&&(F=0),q==="v"&&(E=0),t+=Q2(F,E)/Math.PI*180+90}else t=null}return iR=a,oR=n,b7=e.i,x7=r.uid,t}Hr.getMarkerAngle=A7});var r1=B((nFe,_R)=>{"use strict";var lh=la(),Ohe=da(),Hhe=di(),T7=Pt(),ac=or(),gR=ac.strTranslate,qg=Sa(),Fg=Kt(),sh=Ei(),bR=(zv(),vr(Nv)),Uhe=(Oi(),vr(Ii)).OPPOSITE_SIDE,xR=/ [XY][0-9]* /,M7=1.6,k7=1.6;function Ghe(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,E=y.shadow,F=t.subtitlePropName,P=!!F,q=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},I=(z.text||"").trim(),U=!1,G=1,X=z.font,Y=X.family,V=X.size,Z=X.color,j=X.weight,ee=X.style,me=X.variant,fe=X.textcase,he=X.lineposition,te=X.shadow,Le;i==="title.text"?Le="titleText":i.indexOf("axis")!==-1?Le="axisTitleText":i.indexOf("colorbar")!==-1&&(Le="colorbarTitleText");var ce=e._context.edits[Le];function Fe(Pr,Br){return Pr===void 0||Br===void 0?!1:Pr.replace(xR," % ")===Br.replace(xR," % ")}p===""?v=0:Fe(p,o)&&(ce||(p=""),v=.2,m=!0),P&&(I===""?G=0:Fe(I,q)&&(ce||(I=""),G=.2,U=!0)),t._meta?p=ac.templateString(p,t._meta):a._meta&&(p=ac.templateString(p,a._meta));var Re=p||I||ce,ge;c||(c=ac.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var He=c.selectAll("text."+r).data(Re?[0]:[]);He.enter().append("text"),He.text(p).attr("class",r),He.exit().remove();var ur=null,qe=r+"-subtitle",Ue=I||ce;if(P&&(ur=c.selectAll("text."+qe).data(Ue?[0]:[]),ur.enter().append("text"),ur.text(I).attr("class",qe),ur.exit().remove()),!Re)return c;function Ye(Pr,Br){ac.syncOrAsync([We,Ve],{title:Pr,subtitle:Br})}function We(Pr){var Br=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+=gR(0,(f.offset||0)-(ge||0)))):mr=null,Br.attr("transform",mr);function Yr(pe){if(pe){var Ce=lh.select(pe.node().parentNode).select("."+qe);if(!Ce.empty()){var lr=pe.node().getBBox();if(lr.height){var wr=lr.y+lr.height+M7*V;Ce.attr("y",wr)}}}}if(Br.style("opacity",v*Fg.opacity(_)).call(qg.font,{color:Fg.rgb(_),size:lh.round(T,2),family:b,weight:x,style:w,variant:k,textcase:M,shadow:E,lineposition:C}).attr(u).call(sh.convertToTspans,e,Yr),$e&&!$e.empty()){var ue=c.select("."+r+"-math-group"),Ee=Br.node().getBBox(),Tr=ue.node()?ue.node().getBBox():void 0,rt=Tr?Tr.y+Tr.height+M7*V:Ee.y+Ee.height+k7*V,ot=ac.extendFlat({},u,{y:rt});$e.attr("transform",mr),$e.style("opacity",G*Fg.opacity(Z)).call(qg.font,{color:Fg.rgb(Z),size:lh.round(V,2),family:Y,weight:j,style:ee,variant:me,textcase:fe,shadow:te,lineposition:he}).attr(ot).call(sh.convertToTspans,e)}return Hhe.previousPromises(e)}function Ve(Pr){var Br=Pr.title,$e=lh.select(Br.node().parentNode);if(s&&s.selection&&s.side&&p){$e.attr("transform",null);var mr=Uhe[s.side],Yr=s.side==="left"||s.side==="top"?-1:1,ue=Ohe(s.pad)?s.pad:2,Ee=qg.bBox($e.node()),Tr={t:0,b:0,l:0,r:0},rt=e._fullLayout._reservedMargin;for(var ot in rt)for(var pe in rt[ot]){var Ce=rt[ot][pe];Tr[pe]=Math.max(Tr[pe],Ce)}var lr={left:Tr.l,top:Tr.t,right:a.width-Tr.r,bottom:a.height-Tr.b},wr=s.maxShift||Yr*(lr[s.side]-Ee[s.side]),fr=0;if(wr<0)fr=wr;else{var kr=s.offsetLeft||0,qr=s.offsetTop||0;Ee.left-=kr,Ee.right-=kr,Ee.top-=qr,Ee.bottom-=qr,s.selection.each(function(){var tt=qg.bBox(this);ac.bBoxIntersect(Ee,tt,ue)&&(fr=Math.max(fr,Yr*(tt[s.side]-Ee[mr])+ue))}),fr=Math.min(wr,fr),n._titleScoot=Math.abs(fr)}if(fr>0||wr<0){var $r={left:[-fr,0],right:[fr,0],top:[0,-fr],bottom:[0,fr]}[s.side];$e.attr("transform",gR($r[0],$r[1]))}}}He.call(Ye,ur);function ar(Pr,Br){Pr.text(Br).on("mouseover.opacity",function(){lh.select(this).transition().duration(bR.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){lh.select(this).transition().duration(bR.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?He.on(".opacity",null):(ar(He,o),m=!0),He.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(Ye)}).on("input",function(Pr){this.text(Pr||" ").call(sh.positionText,u.x,u.y)}),P)){if(P&&!p){var Ie=He.node().getBBox(),_r=Ie.y+Ie.height+k7*V;ur.attr("y",_r)}I?ur.on(".opacity",null):(ar(ur,q),U=!0),ur.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(Ye)}).on("input",function(Pr){this.text(Pr||" ").call(sh.positionText,ur.attr("x"),ur.attr("y"))})}return He.classed("js-placeholder",m),ur&&!ur.empty()&&ur.classed("js-placeholder",U),c}_R.exports={draw:Ghe,SUBTITLE_PADDING_EM:k7,SUBTITLE_PADDING_MATHJAX_EM:M7}});var Hg=B((iFe,kR)=>{"use strict";var Yhe=la(),Vhe=wv().utcFormat,Pa=or(),Xhe=Pa.numberFormat,ws=da(),Tf=Pa.cleanNumber,Whe=Pa.ms2DateTime,wR=Pa.dateTime2ms,As=Pa.ensureNumber,AR=Pa.isArrayOrTypedArray,Mf=(Wn(),vr(ri)),Rg=Mf.FP_SAFE,Hl=Mf.BADNUM,Zhe=Mf.LOG_CLIP,Jhe=Mf.ONEWEEK,Pg=Mf.ONEDAY,Ng=Mf.ONEHOUR,TR=Mf.ONEMIN,MR=Mf.ONESEC,zg=hn(),Og=(ni(),vr(ai)),Bg=Og.HOUR_PATTERN,Ig=Og.WEEKDAY_PATTERN;function t1(e){return Math.pow(10,e)}function S7(e){return e!=null}var jhe=2;function $he(e,r){if(e<=0)return 0;let t=Math.max(0,r-jhe);return e>t?t/e:1}kR.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*Zhe*Math.abs(k-M))}else return Hl}function o(x,w,k,M){if((M||{}).msUTC&&ws(x))return+x;var C=wR(x,k||r.calendar);if(C===Hl)if(ws(x)){x=+x;var E=Math.floor(Pa.mod(x+.05,1)*10),F=Math.round(x-E/10);C=wR(new Date(F))+E/10}else return Hl;return C}function l(x,w,k){return Whe(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 Hl}function f(x,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,C=M*x,E=0,F=0;Fq)E=F+1;else{E=C<(P+q)/2?F:F+1;break}}var z=r._B[E]||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;Mr._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:As,r.l2c=r.type==="log"?t1:As,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 t1(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=As,r.d2p=r.r2p=function(x){return r.l2p(Tf(x))},r.p2d=r.p2r=b,r.cleanPos=As):r.type==="log"?(r.d2r=r.d2l=function(x,w){return i(Tf(x),w)},r.r2d=r.r2c=function(x){return t1(Tf(x))},r.d2c=r.r2l=Tf,r.c2d=r.l2r=As,r.c2r=i,r.l2d=t1,r.d2p=function(x,w){return r.l2p(r.d2r(x,w))},r.p2d=function(x){return t1(b(x))},r.r2p=function(x){return r.l2p(Tf(x))},r.p2r=b,r.cleanPos=As):r.type==="date"?(r.d2r=r.r2d=Pa.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 Pa.cleanDate(x,Hl,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=As,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:As(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=As,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:As(x)},r.setupMultiCategory=function(x){var w=r._traceIndices,k,M,C=r._matchGroup;if(C&&r._categories.length===0){for(var E in C)if(E!==a){var F=t[zg.id2name(E)];w=w.concat(F._traceIndices)}}var P=[[0,{}],[0,{}]],q=[];for(k=0;kF[1]&&(M[E?0:1]=k,C[1]=F[1]),C[0]>=C[1])if(w!==void 0){var P=F[0]+1;k!==void 0&&(P=Math.min(P,F[1])),M[E?0:1]=r.l2r(P)}else k!==void 0&&(M[E?1:0]=r.l2r(F[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=Pa.nestedProperty(r,x).get(),M,C;if(r.type==="date"?C=Pa.dfltRange(r.calendar):n==="y"?C=Og.DFLTRANGEY:r._name==="realaxis"?C=[0,1]:C=w.dfltRange||Og.DFLTRANGEX,C=C.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(C[0]=0),!k||k.length!==2){Pa.nestedProperty(r,x).set(C);return}var E=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Pa.cleanDate(k[0],Hl,r.calendar),k[1]=Pa.cleanDate(k[1],Hl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Pa.isDateTime(k[M],r.calendar)){r[x]=C;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Pa.constrain(r.r2l(k[0]),Pa.MIN_MS+1e3,Pa.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!ws(k[M]))if(!(E||F)&&ws(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=C;break}if(k[M]<-Rg?k[M]=-Rg:k[M]>Rg&&(k[M]=Rg),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=zg.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 E=r.r2l(r[M][0],C),F=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,I=0,U=0;if(z){I=(P?z.top:z.left)||0,U=(P?z.bottom:z.right)||0;let Z=$he(I+U,q);I*=Z,U*=Z}if(r._length=q-I-U,r._padStart=I,r._padEnd=U,P?(r._offset=w.t+(1-r.domain[1])*w.h+I,r._m=r._length/(E-F),r._b=-r._m*F):(r._offset=w.l+r.domain[0]*w.w+I,r._m=r._length/(F-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var G,X;if(r._rangebreaks=r.locateBreaks(Math.min(E,F),Math.max(E,F)),r._rangebreaks.length){for(G=0;GF&&(Y=!Y),Y&&r._rangebreaks.reverse();var V=Y?-1:1;for(r._m2=V*r._length/(Math.abs(F-E)-r._lBreaks),r._B.push(-r._m2*(P?F:E)),G=0;GC&&(C+=7,EC&&(C+=24,E=M&&E=M&&x=te.min&&(eete.max&&(te.max=me),fe=!1)}fe&&F.push({min:ee,max:me})}};for(k=0;k{"use strict";var SR=da(),C7=or(),Khe=(Wn(),vr(ri)).BADNUM,Ug=C7.isArrayOrTypedArray,Qhe=C7.isDateTime,ede=C7.cleanNumber,CR=Math.round;LR.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Ug(n)&&!n.length)return"-";if(!i&&ide(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function DR(e){return Math.max(1,(e-1)/1e3)}function nde(e,r){for(var t=e.length,a=DR(t),n=0,i=0,o={},l=0;ln*2}function ide(e){return Ug(e[0])&&Ug(e[1])}});var uh=B((lFe,BR)=>{"use strict";var ode=la(),RR=da(),kf=or(),Gg=(Wn(),vr(ri)).FP_SAFE,lde=Pt(),sde=Sa(),PR=hn(),ude=PR.getFromId,fde=PR.isLinked;BR.exports={applyAutorangeOptions:zR,getAutoRange:L7,makePadFn:E7,doAutoRange:vde,findExtremes:hde,concatExtremes:R7};function L7(e,r){var t,a,n=[],i=e._fullLayout,o=E7(i,r,0),l=E7(i,r,1),s=R7(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;t0&&(F=_-o(k)-l(M),F>x?P/F>w&&(C=k,E=M,w=P/F):P/_>w&&(C={val:k.val,nopad:1},E={val:M.val,nopad:1},w=P/_));function q(X,Y){return Math.max(X,l(Y))}if(c===v){var z=c-1,I=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,I)]:n=[z,I]}else b?(C.val>=0&&(C={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(C.val-w*o(C)<0&&(C={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-C.val-ER(r,k.val,M.val))/(_-o(C)-l(E)),n=[C.val-w*o(C),E.val+w*l(E)];return n=zR(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),kf.simpleMap(n,r.l2r||Number)}function ER(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?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;c0&&(T=v),v>_&&v-Gg&&(T=v),v>_&&v=P;c--)F(c);return{min:a,max:n,opts:t}}function q7(e,r,t,a){NR(e,r,t,a,dde)}function F7(e,r,t,a){NR(e,r,t,a,pde)}function NR(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=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 FR(e){return RR(e)&&Math.abs(e)=r}function mde(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Yg(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Yg(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function yde(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Yg(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Yg(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Yg(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=mde(t,r),a=yde(a,r),[t,a]}});var en=B((uFe,oP)=>{"use strict";var ul=la(),zn=da(),fh=di(),n1=Pt(),Ft=or(),ch=Ft.strTranslate,nc=Ei(),gde=r1(),i1=Kt(),Ho=Sa(),bde=sl(),IR=$6(),sFe=(ni(),vr(ai)),Fi=(Wn(),vr(ri)),xde=Fi.ONEMAXYEAR,Wg=Fi.ONEAVGYEAR,Zg=Fi.ONEMINYEAR,_de=Fi.ONEMAXQUARTER,B7=Fi.ONEAVGQUARTER,Jg=Fi.ONEMINQUARTER,wde=Fi.ONEMAXMONTH,vh=Fi.ONEAVGMONTH,jg=Fi.ONEMINMONTH,Uo=Fi.ONEWEEK,ji=Fi.ONEDAY,Sf=ji/2,Ms=Fi.ONEHOUR,o1=Fi.ONEMIN,$g=Fi.ONESEC,Ade=Fi.ONEMILLI,Tde=Fi.ONEMICROSEC,ic=Fi.MINUS_SIGN,Qg=Fi.BADNUM,I7={K:"zeroline"},O7={K:"gridline",L:"path"},H7={K:"minor-gridline",L:"path"},jR={K:"tick",L:"path"},OR={K:"tick",L:"text"},HR={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=(Oi(),vr(Ii)),a1=e3.MID_SHIFT,oc=e3.CAP_SHIFT,l1=e3.LINE_SPACING,Mde=e3.OPPOSITE_SIDE,Kg=3,pr=oP.exports={};pr.setConvert=Hg();var kde=D7(),ks=hn(),Sde=ks.idSort,Cde=ks.isLinked;pr.id2name=ks.id2name;pr.name2id=ks.name2id;pr.cleanId=ks.cleanId;pr.list=ks.list;pr.listIds=ks.listIds;pr.getFromId=ks.getFromId;pr.getFromTrace=ks.getFromTrace;var $R=uh();pr.getAutoRange=$R.getAutoRange;pr.findExtremes=$R.findExtremes;var Dde=1e-4;function V7(e){var r=(e[1]-e[0])*Dde;return[e[0]-r,e[1]+r]}function Lde(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)v+" domain")),s=s.concat(i||[]),f.length>o?(Ft.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-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;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=pr.tickIncrement(e,"M6","reverse")+ji*1.5:i.exactMonths>o?e=pr.tickIncrement(e,"M1","reverse")+ji*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=Ft.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ft.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*Uo&&f===2*ji&&(e.dtick=Uo):u===2*Uo&&f===3*ji?e.dtick=Uo:u===Uo&&!(r._input.minor||{}).nticks?e.dtick=ji:YR(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=YR(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 YR(e,r){return Math.abs(e/r-1)<.001}pr.prepTicks=function(e,r){var t=Ft.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?Ft.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ft.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.dtick0?(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>=Zg?u>=Zg&&u<=xde?c=u:c=Wg:t===B7&&f>=Jg?u>=Jg&&u<=_de?c=u:c=B7:f>=jg?u>=jg&&u<=wde?c=u:c=vh:t===Uo&&f>=Uo?c=Uo:f>=ji?c=ji:t===Sf&&f>=Sf?c=Sf:t===Ms&&f>=Ms&&(c=Ms);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;yUo&&(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||Ft.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=Ft.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);w--){var k=!w;w?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=w?r:Ft.extendFlat({},r,x?r.minor:{minor:{}});if(k?pr.prepMinorTicks(M,r,t):pr.prepTicks(M,t),M.tickmode==="array"){w?(y=[],p=VR(r,!k)):(b=[],m=VR(r,!k));continue}if(M.tickmode==="sync"){y=[],p=Nde(r);continue}var C=V7(u),E=C[0],F=C[1],P=zn(M.dtick),q=a==="log"&&!(P||M.dtick.charAt(0)==="L"),z=pr.tickFirst(M,t);if(w){if(r._tmin=z,z=F:U<=F;U=pr.tickIncrement(U,Y,f,n)){if(w&&G++,M.rangebreaks&&!f){if(U=v)break}if(y.length>d||U===I)break;I=U;var Z={value:Lde(U,V,Y)};w?(U===z&&(Z.first=!0),q&&U!==(U|0)&&(Z.simpleLabel=!0),i>1&&G%i&&(Z.skipLabel=!0),y.push(Z)):(Z.minor=!0,b.push(Z))}}function j(Ye,We){let Ve=We.find(Ie=>Ie.value===Ye.value);if(Ve!=null)return Ve;let ar=1e7;for(let Ie=0;Iej(Ve,y)==null),We=y.concat(Ye).sort((Ve,ar)=>Ve.value-ar.value);o&&y.length&&(y[0].skipLabel=!0),y.forEach(function(Ve){Ve.skipLabel||(s.forEach(ar=>{if(ar<0){let Ie=We.filter(Br=>Br.value<=Ve.value),_r=Math.abs(ar),Pr=Ie.length-_r-1;if(_r_r.value>=Ve.value);if(arVe.skipLabel=!1)}if(_){var ee=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ee){for(var me=[],fe=0;fe-1;he--){if(y[he].drop){y.splice(he,1);continue}y[he].value=z7(y[he].value,r);var Fe=r.c2p(y[he].value);(te?ce>Fe-Le:cev||arv&&(Ve.periodX=v),arn&&pn&&yWg)r/=Wg,a=n(10),e.dtick="M"+12*Ts(r,a,Vg);else if(i>vh)r/=vh,e.dtick="M"+Ts(r,1,XR);else if(i>ji){if(e.dtick=Ts(r,ji,e._hasDayOfWeekBreaks?[1,2,7,14]:zde),!t){var o=pr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ft.dateTick0(e.calendar,2):e.tick0=Ft.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Ms?e.dtick=Ts(r,Ms,XR):i>o1?e.dtick=Ts(r,o1,WR):i>$g?e.dtick=Ts(r,$g,WR):(a=n(10),e.dtick=Ts(r,a,Vg))}else if(e.type==="log"){e.tick0=0;var s=Ft.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"+Ts(r,a,Vg)}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=Ts(r,a,Bde)):(e.tick0=0,a=n(10),e.dtick=Ts(r,a,Vg));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>=ji&&n<=10||r>=ji*15)e._tickround="d";else if(r>=o1&&n<=16||r>=Ms)e._tickround="M";else if(r>=$g&&n<=19||r>=o1)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 Ft.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Ft.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:QR,s=e+n*.01,u=Ft.roundUp(Ft.mod(s,1),l,t);return Math.floor(s)+Math.log(ul.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};pr.tickFirst=function(e,r){var t=e.r2l||Number,a=Ft.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?_:null};if(s&&Ft.isArrayOrTypedArray(e.ticktext)){var p=Ft.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+l;else{var u=u1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Ode(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=s1(Math.pow(10,o),e,n,a);else if(zn(i)||s==="D"&&(e.minorloglabels==="complete"||Ft.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Ft.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+=""+(v>0?"":ic)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":ic)+d:(r.text=s1(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,Ft.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 Hde(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ude(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 Gde(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=s1(r.x,e,n,a)}function Yde(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Vde(i);if(o[1]>=100)r.text=s1(Ft.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=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=ic+r.text)}}}else r.text=s1(r.x,e,n,a)}function Vde(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"],Xde=["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 Wde(e,r){return hh(r)?!!(r==="SI extended"&&Z7(e)||r!=="SI extended"&&W7(e)):!1}function s1(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,ic);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":o==="B"&&l===9?e+="B":hh(o)&&(e+=o==="SI extended"?Xde[l/3+10]:tP[l/3+5])}return n?ic+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=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Ft.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=Ft.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=o2e(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(Ie){var _r=u+(Ie||"tick");return w[_r]||(w[_r]=$de(r,_r,b)),w[_r]}if(r.visible){var M=pr.makeTransTickFn(r),C=pr.makeTransTickLabelFn(r),E,F,P=r.ticks==="inside",q=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Zde(r,_);F=pr.clipEnds(r,z),E=P?F:z}else F=pr.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?F:_;var I=r._gridVals=F,U=jde(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,X={};for(i=0;i0?$e.bottom-Pr:0,Br))));var Ee=0,Tr=0;if(r._shiftPusher&&(Ee=Math.max(Br,$e.height>0?Ie==="l"?Pr-$e.left:$e.right-Pr:0),r.title.text!==s._dfltTitle[f]&&(Tr=(r._titleStandoff||0)+(r._titleScoot||0),Ie==="l"&&(Tr+=JR(r))),r._fullDepth=Math.max(Ee,Tr)),r.automargin){mr={x:0,y:0,r:0,l:0,t:0,b:0};var rt=[0,1],ot=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ie==="b"?mr[Ie]=r._depth:(mr[Ie]=r._depth=Math.max($e.width>0?Pr-$e.top:0,Br),rt.reverse()),$e.width>0){var pe=$e.right-(r._offset+r._length);pe>0&&(mr.xr=1,mr.r=pe);var Ce=r._offset-$e.left;Ce>0&&(mr.xl=0,mr.l=Ce)}}else if(Ie==="l"?(r._depth=Math.max($e.height>0?Pr-$e.left:0,Br),mr[Ie]=r._depth-ot):(r._depth=Math.max($e.height>0?$e.right-Pr:0,Br),mr[Ie]=r._depth+ot,rt.reverse()),$e.height>0){var lr=$e.bottom-(r._offset+r._length);lr>0&&(mr.yb=0,mr.b=lr);var wr=r._offset-$e.top;wr>0&&(mr.yt=1,mr.t=wr)}mr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[rt[0]],r.title.text!==s._dfltTitle[f]&&(mr[Ie]+=JR(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Yr={x:0,y:0,r:0,l:0,t:0,b:0},Yr[_r]=r.linewidth,r.mirror&&r.mirror!==!0&&(Yr[_r]+=Br),r.mirror===!0||r.mirror==="ticks"?Yr[c]=r._anchorAxis.domain[rt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Yr[c]=[r._counterDomainMin,r._counterDomainMax][rt[1]]))}ar&&(ue=n1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(ZR(mr,r.automargin),ZR(Yr,r.automargin)),fh.autoMargin(e,J7(r),mr),fh.autoMargin(e,nP(r),Yr),fh.autoMargin(e,iP(r),ue)}),Ft.syncOrAsync(We)}};function ZR(e,r){if(e){var t=Object.keys(HR).reduce(function(a,n){return r.indexOf(n)!==-1&&HR[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 Zde(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Ft.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.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 Kde(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=Kg,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*oc,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Kg),s&&f==="top"&&(v-=d*(1-oc)),(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=Ft.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),E=e.tickangle,F;if(C==="x")F=!c&&M==="bottom"||c&&M==="top",w=F?1:-1,c&&(w*=-1),T=p*w,_=r+d*w,x=F?1:-.2,Math.abs(E)===90&&(c?x+=a1:E===-90&&M==="bottom"?x=oc:E===90&&M==="top"?x=a1:x=.5,k=a1/2*(E/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,I){if(f){if(l)return"end";if(s)return"start"}return!zn(I)||I===0||I===180?"middle":I*w<0!==c?"end":"start"},b.heightFn=function(z,I,U){return I<-60||I>60?-.5*U:e.side==="top"!==c?-U:0};else if(C==="y"){if(F=!c&&M==="left"||c&&M==="right",w=F?1:-1,c&&(w*=-1),T=d,_=p*w,x=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?x=oc:x=.5),c){var P=zn(E)?+E:0;if(P!==0){var q=Ft.deg2rad(P);k=Math.abs(Math.sin(q))*oc*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*a1},b.anchorFn=function(z,I){return zn(I)&&Math.abs(I)===90?"middle":F?"end":"start"},b.heightFn=function(z,I,U){return e.side==="right"&&(I*=-1),I<-30?-U:I<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 i1.stroke(ul.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Ho.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),t3(r,[jR]),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=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 i1.stroke(ul.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Ho.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 Sde(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(i1.stroke,r.zerolinecolor||i1.defaultLine).style("stroke-width",Ho.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),t3(r,[I7])};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 Z=ul.select(this),j=e._promises.length;Z.call(nc.positionText,s.xFn(V),s.yFn(V)).call(Ho.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(nc.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),t3(r,[OR]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){ul.select(this).select("text").call(nc.positionText,s.xFn(V),s.yFn(V))});function d(V,Z){V.each(function(j){var ee=ul.select(this),me=ee.select(".text-math-group"),fe=s.anchorFn(j,Z),he=t.transFn.call(ee.node(),j)+(zn(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),te=nc.lineCount(ee),Le=l1*j.fontSize,ce=s.heightFn(j,zn(Z)?+Z:0,(te-1)*Le);if(ce&&(he+=ch(0,ce)),me.empty()){var Fe=ee.select("text");Fe.attr({transform:he,"text-anchor":fe}),Fe.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Re=Ho.bBox(me.node()).width,ge=Re*{end:-.5,start:.5}[fe];me.attr("transform",he+ch(ge,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var Z=V.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ee=0,me=j?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var fe=Ft.simpleMap(r.range,r.r2l);ee=r.l2p(fe[0])+r._offset,me=r.l2p(fe[1])+r._offset}var he=Math.min(ee,me),te=Math.max(ee,me),Le=r.side,ce=1/0,Fe=-1/0;c.each(function(ur){var qe=ul.select(this),Ue=qe.select(".text-math-group");if(Ue.empty()){var Ye=Ho.bBox(qe.node()),We=0;j?(Ye.right>te||Ye.leftte||Ye.top+(r.tickangle?0:ur.fontSize/4)r["_visibleLabelMin_"+fe._id]?qe.style("display","none"):te.K==="tick"&&!he&&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,Z=[],j,ee=1;c.each(function(mr){V=Math.max(V,mr.fontSize);var Yr=r.l2p(mr.x),ue=G7(this),Ee=Ho.bBox(ue.node());ee=Math.max(ee,nc.lineCount(ue)),Z.push({top:0,bottom:10,height:10,left:Yr-Ee.width/2,right:Yr+Ee.width/2+2,width:Ee.width+2})});var me=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=l.length,he=Math.abs((l[fe-1].x-l[0].x)*r._m)/(fe-1),te=me?he/2:he,Le=me?r.ticklen:V*1.25*ee,ce=Math.sqrt(Math.pow(te,2)+Math.pow(Le,2)),Fe=te/ce,Re=r.autotickangles.map(function(mr){return mr*Math.PI/180}),ge=Re.find(function(mr){return Math.abs(Math.cos(mr))<=Fe});ge===void 0&&(ge=Re.reduce(function(mr,Yr){return Math.abs(Math.cos(mr))G*U&&(q=U,E[C]=F[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),E[M]=_.p2r(_.r2p(F[M])+k*w),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var Y=Ft.syncOrAsync(b);return Y&&Y.then&&e._promises.push(Y),Y};function Qde(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(i1.stroke,r.dividercolor).style("stroke-width",Ho.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 JR(e){var r=e.title.font.size,t=(e.title.text.match(nc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(oc+t*l1):t?r*(t+1)*l1:r}function e2e(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(nc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*oc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(a1+l*l1));else{var s=u1(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=Ho.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,gde.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=Ft.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Qg)&&(aP(r,0)||!r2e(e,r,t,a)||t2e(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&&t1)for(n=1;n=n.min&&e=Tde:/%L/.test(r)?e>=Ade:/%[SX]/.test(r)?e>=$g:/%M/.test(r)?e>=o1:/%[HI]/.test(r)?e>=Ms:/%p/.test(r)?e>=Sf:/%[Aadejuwx]/.test(r)?e>=ji:/%[UVW]/.test(r)?e>=Uo:/%[Bbm]/.test(r)?e>=jg:/%[q]/.test(r)?e>=Jg:/%[Yy]/.test(r)?e>=Zg:!0}});var sP=B((fFe,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=B((cFe,uP)=>{"use strict";var s2e=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&&(s2e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var cP=B((vFe,fP)=>{var u2e={left:0,top:0};fP.exports=f2e;function f2e(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=c2e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function c2e(e){return e===window||e===document||e===document.body?u2e:e.getBoundingClientRect()}});var K7=B((hFe,vP)=>{"use strict";var v2e=w6();function h2e(){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=v2e&&h2e()});var dP=B((dFe,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=B((pFe,mP)=>{"use strict";var pP=or(),d2e=[["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),d2e[t][r]}});var bP=B((mFe,gP)=>{"use strict";var p2e=V2(),m2e=ig(),y2e=z2().getGraphDiv,g2e=(g2(),vr(y2)),Q7=gP.exports={};Q7.wrapped=function(e,r,t){var i;e=y2e(e),e._fullLayout&&m2e.clear(e._fullLayout._uid+g2e.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&&p2e.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 Ul=B((yFe,AP)=>{"use strict";var b2e=cP(),e8=T6(),x2e=K7(),_2e=or().removeElement,w2e=(ni(),vr(ai)),lc=AP.exports={};lc.align=dP();lc.getCursor=yP();var _P=bP();lc.unhover=_P.wrapped;lc.unhoverRaw=_P.raw;lc.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,x2e?(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(_)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}lc.coverSlip=wP;function xP(e){return b2e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cf=B((gFe,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=B((bFe,kP)=>{"use strict";var r8=Cf(),f1="data-savedcursor",MP="!!";kP.exports=function(r,t){var a=r.attr(f1);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;iL2e,itemGap:()=>D2e,itemHeightPad:()=>q2e,itemMinHeight:()=>E2e,scrollBarColor:()=>M2e,scrollBarEnterAttrs:()=>S2e,scrollBarMargin:()=>k2e,scrollBarMinHeight:()=>T2e,scrollBarWidth:()=>A2e,titlePad:()=>C2e});var A2e,T2e,M2e,k2e,S2e,C2e,D2e,L2e,E2e,q2e,n3=Ja(()=>{"use strict";A2e=6,T2e=20,M2e="#808BA4",k2e=4,S2e={rx:20,ry:3,width:0,height:0},C2e=2,D2e=5,L2e=6,E2e=16,q2e=3});var a8=B((xFe,DP)=>{"use strict";var t8=Di(),F2e=gs(),{dfltFillHeight:CP}=(n3(),vr(a3));DP.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:F2e.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 v1=B(c1=>{"use strict";c1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};c1.isVertical=function(r){return r.orientation!=="h"};c1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};c1.getId=function(r){return r._id||"legend"}});var i8=B((wFe,LP)=>{"use strict";var i3=Pt(),Go=or(),R2e=Ra(),P2e=Fl(),N2e=a8(),z2e=Uv(),n8=v1();function B2e(e,r,t,a,n){var i=r[e]||{},o=R2e.newContainer(t,e);function l(Z,j){return Go.coerce(i,o,N2e,Z,j)}var s=Go.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(Z,j){var ee=f._input,me=f;return Go.coerce(ee,me,P2e,Z,j)},v=t.font||{},d=Go.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(Z){return Z.showlegend});function T(Z){return i3.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}a.filter(T).forEach(function(Z){Z.visible&&p++;for(var j=0;jZ.legend.length)for(var me=Z.legend.length;me(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"),E=l("xref"),F=M==="h",P=C==="paper",q=E==="paper",z,I,U,G="left";F?(z=0,i3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,U="bottom"):(I=1,U="top"):P?(I=-.1,U="top"):(I=0,U="bottom")):(I=1,U="auto",q?z=1.02:(z=1,G="right")),Go.coerce(i,o,{x:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"x"),Go.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"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"),Go.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",F?"left":"top");var V=Go.extendFlat({},s,{size:Go.bigFont(s.size)});Go.coerceFont(l,"title.font",V);let Z=n>1;l("titleclick",Z?"toggle":!1),l("titledoubleclick",Z?"toggleothers":!1)}}LP.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Df=Pt(),o8=or(),I2e=o8.pushUnique,O2e=v1(),EP=!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"&&EP&&t.data&&t._context.showTips&&(o8.notifier(o8._(t,"Double-click on legend to isolate one trace"),"long",t),EP=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(Ve=>Ve.showlegend||Ve.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=[],E=[];function F(Ve,ar){var Ie=M.indexOf(Ve),_r=k.visible;return _r||(_r=k.visible=[]),M.indexOf(Ve)===-1&&(M.push(Ve),Ie=M.length-1),_r[Ie]=ar,Ie}var P=(o.shapes||[]).map(function(Ve){return Ve._input}),q=!1;function z(Ve,ar){P[Ve].visible=ar,q=!0}function I(Ve,ar){if(!(l.groupTitle&&!u)){var Ie=Ve._isShape,_r=Ve.index;_r===void 0&&(_r=Ve._index);var Pr=Ve.visible===!1?!1:ar;Ie?z(_r,Pr):F(_r,Pr)}}var U=p.legend;if(!p._isShape&&Df.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;yb.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{"use strict";var{isArrayOrTypedArray:u8}=so(),qP=Pt(),f8=v1();FP.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(Z,j,ee){if(t.visible!==!1&&!(a&&Z!==t._id))if(j===""||!f8.isGrouped(t)){var me="~~i"+c;s.push(me),l[me]=[ee],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[ee]):l[j].push(ee)}for(d=0;dz&&(P=z)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var I=function(Z,j){return Z[0]._groupMinRank-j[0]._groupMinRank||Z[0]._preGroupSort-j[0]._preGroupSort},U=function(Z,j){var ee=u8(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,me=u8(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return ee-me||Z._preSort-j._preSort};for(E.forEach(function(Z,j){Z[0]._preGroupSort=j}),E.sort(I),d=0;d{"use strict";var o3=or();function PP(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}sc.formatPiePercent=function(r,t){var a=PP((r*100).toPrecision(3));return o3.numSeparate(a,t)+"%"};sc.formatPieValue=function(r,t){var a=PP(r.toPrecision(10));return o3.numSeparate(a,t)};sc.getFirstFilled=function(r,t){if(o3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var H2e=Sa(),U2e=Kt();NP.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?H2e.pointStyle(r,a,n,t):U2e.fill(r,t.color)}});var HP=B((SFe,OP)=>{"use strict";var BP=Kt(),IP=c8().castOption,G2e=zP();OP.exports=function(r,t,a,n){var i=a.marker.line,o=IP(i.color,t.pts)||BP.defaultLine,l=IP(i.width,t.pts)||0;r.call(G2e,t,a,n).style("stroke-width",l).call(BP.stroke,o)}});var m8=B((CFe,XP)=>{"use strict";var $i=la(),v8=Pt(),Hi=or(),h8=Hi.strTranslate,Yo=Sa(),fl=Kt(),d8=Ol().extractOpts,s3=Ti(),Y2e=HP(),V2e=c8().castOption,UP=(n3(),vr(a3)),GP=12,YP=5,uc=2,X2e=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,E,F,P){var q;if(C+1)q=C;else if(E&&E.width>0)q=E.width;else return 0;return i?P:Math.min(q,F)};r.each(function(C){var E=$i.select(this),F=Hi.ensureSingle(E,"g","layers");F.style("opacity",C[0].trace.opacity);var P=a.indentation,q=a.valign,z=C[0].lineHeight,I=C[0].height;if(q==="middle"&&P===0||!z||!I)F.attr("transform",null);else{var U={top:1,bottom:-1}[q],G=U*(.5*(z-I+3))||0,X=a.indentation;F.attr("transform",h8(X,G))}var Y=F.selectAll("g.legendfill").data([C]);Y.enter().append("g").classed("legendfill",!0);var V=F.selectAll("g.legendlines").data([C]);V.enter().append("g").classed("legendlines",!0);var Z=F.selectAll("g.legendsymbols").data([C]);Z.enter().append("g").classed("legendsymbols",!0),Z.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 E=VP(C),F=E.showFill,P=E.showLine,q=E.showGradientLine,z=E.showGradientFill,I=E.anyFill,U=E.anyLine,G=C[0],X=G.trace,Y,V,Z=d8(X),j=Z.colorscale,ee=Z.reversescale,me=function(ge){if(ge.size())if(F)Yo.fillGroupStyle(ge,t,!0);else{var He="legendfill-"+X.uid;Yo.gradient(ge,t,He,p8(ee),j,"fill")}},fe=function(ge){if(ge.size()){var He="legendline-"+X.uid;Yo.lineGroupStyle(ge),Yo.gradient(ge,t,He,p8(ee),j,"stroke")}},he=s3.hasMarkers(X)||!I?"M5,0":U?"M5,-2":"M5,-3",te=$i.select(this),Le=te.select(".legendfill").selectAll("path").data(F||z?[C]:[]);Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",he+"h"+o+"v"+l+"h-"+o+"z").call(me);let ce=F||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 Fe=f(void 0,X.line,X2e,YP);V=Hi.minExtend(X,{line:{width:Fe}}),Y=[Hi.minExtend(G,{trace:V})]}var Re=te.select(".legendlines").selectAll("path").data(P||q?[Y]:[]);Re.enter().append("path").classed("js-line",!0),Re.exit().remove(),Re.attr("d",he+(q?"l"+o+",0.0001":"h"+o)).call(P?Yo.lineGroupStyle:fe)}function v(C){var E=VP(C),F=E.anyFill,P=E.anyLine,q=E.showLine,z=E.showMarker,I=C[0],U=I.trace,G=!z&&!P&&!F&&s3.hasText(U),X,Y;function V(ce,Fe,Re,ge){var He=Hi.nestedProperty(U,ce).get(),ur=Hi.isArrayOrTypedArray(He)&&Fe?Fe(He):He;if(i&&ur&&ge!==void 0&&(ur=ge),Re){if(urRe[1])return Re[1]}return ur}function Z(ce){return I._distinct&&I.index&&ce[I.index]?ce[I.index]:ce[0]}if(z||G||q){var j={},ee={};if(z){j.mc=V("marker.color",Z);var me=U.type==="scattermap";j.mx=me?"circle":V("marker.symbol",Z),j.mo=V("marker.opacity",Hi.mean,[.2,1]),j.mlc=V("marker.line.color",Z),j.mlw=V("marker.line.width",Hi.mean,[0,5],uc),j.mld=V("marker.line.dash",Z),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var fe=V("marker.size",Hi.mean,[2,16],GP);j.ms=fe,ee.marker.size=fe}q&&(ee.line={width:V("line.width",Z,[0,10],YP)}),G&&(j.tx="Aa",j.tp=V("textposition",Z),j.ts=10,j.tc=V("textfont.color",Z),j.tf=V("textfont.family",Z),j.tw=V("textfont.weight",Z),j.ty=V("textfont.style",Z),j.tv=V("textfont.variant",Z),j.tC=V("textfont.textcase",Z),j.tE=V("textfont.lineposition",Z),j.tS=V("textfont.shadow",Z)),X=[Hi.minExtend(I,j)],Y=Hi.minExtend(U,ee),Y.selectedpoints=null,Y.texttemplate=null}var he=$i.select(this).select("g.legendpoints"),te=he.selectAll("path.scatterpts").data(z?X:[]);te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),te.exit().remove(),te.call(Yo.pointStyle,Y,t),z&&(X[0].mrc=3);var Le=he.selectAll("g.pointtext").data(G?X:[]);Le.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Le.exit().remove(),Le.selectAll("text").call(Yo.textPointStyle,Y,t)}function d(C){var E=C[0].trace,F=E.type==="waterfall";if(C[0]._distinct&&F){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=[];E.visible&&F&&(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=$i.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(I){var U=$i.select(this),G=E[I[0]].marker,X=f(void 0,G.line,dh,uc);U.attr("d",I[1]).style("stroke-width",X+"px").call(fl.fill,G.color),X&&U.call(fl.stroke,G.line.color)})}function p(C){y(C,this)}function m(C){y(C,this,"funnel")}function y(C,E,F){var P=C[0].trace,q=P.marker||{},z=q.line||{},I=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=F?P.visible&&P.type===F:v8.traceIs(P,"bar"),G=$i.select(E).select("g.legendpoints").selectAll("path.legend"+F).data(U?[C]:[]);G.enter().append("path").classed("legend"+F,!0).attr("d",I).attr("transform",u),G.exit().remove(),G.each(function(X){var Y=$i.select(this),V=X[0],Z=f(V.mlw,q.line,dh,uc);Y.style("stroke-width",Z+"px");var j=V.mcc;if(!a._inHover&&"mc"in V){var ee=d8(q),me=ee.mid;me===void 0&&(me=(ee.max+ee.min)/2),j=Yo.tryColorscale(q,"")(me)}var fe=j||V.mc||q.color,he=q.pattern,te=Yo.getPatternAttr;let Le=0;a._inHover&&V._distinct&&V.index!=null&&(Le=V.index);let ce=he&&(te(he.shape,Le,"")||te(he.path,Le,""));if(ce){let Re=te(he.bgcolor,Le,null),ge=te(he.fgcolor,Le,null);var Fe=he.fgopacity;let He=a._inHover?l3(te(he.size,Le,8),8,10):l3(he.size,8,10),ur=a._inHover?l3(te(he.solidity,Le,.5),.5,1):l3(he.solidity,.5,1),qe=a._inHover?`hover-${P.uid}-${Le}`:`legend-${P.uid}`;Y.call(Yo.pattern,"legend",t,qe,ce,He,ur,j,he.fillmode,Re,ge,Fe)}else Y.call(fl.fill,fe);Z&&fl.stroke(Y,V.mlc||z.color)})}function b(C){var E=C[0].trace,F=$i.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&v8.traceIs(E,"box-violin")?[C]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.each(function(){var P=$i.select(this);if((E.boxpoints==="all"||E.points==="all")&&fl.opacity(E.fillcolor)===0&&fl.opacity((E.line||{}).color)===0){var q=Hi.minExtend(E,{marker:{size:i?GP:Hi.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(Yo.pointStyle,q,t)}else{var z=f(void 0,E.line,dh,uc);P.style("stroke-width",z+"px").call(fl.fill,E.fillcolor),z&&fl.stroke(P,E.line.color)}})}function T(C){var E=C[0].trace,F=$i.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[C,C]:[]);F.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),F.exit().remove(),F.each(function(P,q){var z=$i.select(this),I=E[q?"increasing":"decreasing"],U=f(void 0,I.line,dh,uc);z.style("stroke-width",U+"px").call(fl.fill,I.fillcolor),U&&fl.stroke(z,I.line.color)})}function _(C){var E=C[0].trace,F=$i.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[C,C]:[]);F.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),F.exit().remove(),F.each(function(P,q){var z=$i.select(this),I=E[q?"increasing":"decreasing"],U=f(void 0,I.line,dh,uc);z.style("fill","none").call(Yo.dashLine,I.line.dash,U),U&&fl.stroke(z,I.line.color)})}function x(C){k(C,this,"pie")}function w(C){k(C,this,"funnelarea")}function k(C,E,F){var P=C[0],q=P.trace,z=F?q.visible&&q.type===F:v8.traceIs(q,F),I=$i.select(E).select("g.legendpoints").selectAll("path.legend"+F).data(z?[C]:[]);if(I.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),I.exit().remove(),I.size()){var U=q.marker||{},G=f(V2e(U.line.width,P.pts),U.line,dh,uc),X="pieLike",Y=Hi.minExtend(q,{marker:{line:{width:G}}},X),V=Hi.minExtend(P,{trace:Y},X);Y2e(I,V,Y,t)}}function M(C){var E=C[0].trace,F,P=[];if(E.visible)switch(E.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="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"]],F=!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"]],F=!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"]],F=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!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"]],F=!1;break}var q=$i.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,I){var U=$i.select(this),G=d8(E),X=G.colorscale,Y=G.reversescale,V=function(me){if(me.size()){var fe="legendfill-"+E.uid;Yo.gradient(me,t,fe,p8(Y,F==="radial"),X,"fill")}},Z;if(X){if(!F){var ee=X.length;Z=I===0?X[Y?ee-1:0][1]:I===1?X[Y?0:ee-1][1]:X[Math.floor((ee-1)/2)][1]}}else{var j=E.vertexcolor||E.facecolor||E.color;Z=Hi.isArrayOrTypedArray(j)?j[I]||j[0]:j}U.attr("d",z[0]),Z?U.call(fl.fill,Z):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&&Hi.isArrayOrTypedArray(e)?r:e>t?t:e}});var x8=B((DFe,rN)=>{"use strict";var Ki=la(),Bn=or(),g8=di(),fc=Pt(),c3=V2(),y8=Ul(),In=Sa(),h1=Kt(),hu=Ei(),WP=s8().handleItemClick,ZP=s8().handleTitleClick,dn=(n3(),vr(a3)),b8=(Oi(),vr(Ii)),QP=b8.LINE_SPACING,mh=b8.FROM_TL,JP=b8.FROM_BR,jP=RP(),W2e=m8(),yh=v1(),ph=1,Z2e=/^legend[0-9]*$/;rN.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=Ki.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Z2e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}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=Bn.ensureSingle(o,"g",n,function(C){l||C.attr("pointer-events","all")}),y=Bn.ensureSingleById(a._topdefs,"clipPath",i,function(C){C.append("rect")}),b=Bn.ensureSingle(m,"rect","bg",function(C){C.attr("shape-rendering","crispEdges")});b.call(h1.stroke,t.bordercolor).call(h1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Bn.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Bn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(In.font,_.font).text(_.text),f3(x,T,e,t,ph),!l&&(t.titleclick||t.titledoubleclick)&&K2e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=Bn.ensureSingle(m,"rect","scrollbar",function(C){C.attr(dn.scrollBarEnterAttrs).call(h1.fill,dn.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(Bn.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(C){let E=C[0],F=E.trace;if(E.groupTitle){let P=F.legendgroup,q=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(q).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return fc.traceIs(F,"pie-like")?p.indexOf(C[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){Ki.select(this).call(j2e,e,t)}).call(W2e,e,t).each(function(C){l||C[0].groupTitle&&t.groupclick==="toggleitem"||Ki.select(this).call($2e,e,n)}),Bn.syncOrAsync([g8.previousPromises,function(){return r1e(e,k,M,t,T)},function(){var C=a._size,E=t.borderwidth,F=t.xref==="paper",P=t.yref==="paper";if(_.text){let Ue=(a.shapes||[]).filter(function(We){return We.showlegend}),Ye=e._fullData.concat(Ue).some(function(We){let Ve=We.legend||"legend";var ar=Array.isArray(Ve)?Ve.includes(n):Ve===n;return ar&&We.visible===!0});x.style("opacity",Ye?1:.5)}if(!l){var q,z;F?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 I=t1e(e,n,q,z);if(I)return;if(a.margin.autoexpand){var U=q,G=z;q=F?Bn.constrain(q,0,a.width-t._width):U,z=P?Bn.constrain(z,0,a.height-t._effHeight):G,q!==U&&Bn.log("Constrain "+n+".x to make legend fit inside graph"),z!==G&&Bn.log("Constrain "+n+".y to make legend fit inside graph")}In.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-E,height:X-E,x:E/2,y:E/2}),In.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*E,height:X-2*E,x:E,y:E}),In.setClipUrl(T,i,e),In.setRect(w,0,0,0,0),delete t._scrollY}else{var Y=Math.max(dn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-Y-2*dn.scrollBarMargin,Z=t._height-t._effHeight,j=V/Z,ee=Math.min(t._scrollY||0,Z);b.attr({width:t._width-2*E+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),y.select("rect").attr({width:t._width-2*E+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ee}),In.setClipUrl(T,i,e),Re(ee,Y,j),m.on("wheel",function(){ee=Bn.constrain(t._scrollY+Ki.event.deltaY/Z*V,0,Z),Re(ee,Y,j),ee!==0&&ee!==Z&&Ki.event.preventDefault()});var me,fe,he,te=function(Ue,Ye,We){var Ve=(We-Ye)/j+Ue;return Bn.constrain(Ve,0,Z)},Le=function(Ue,Ye,We){var Ve=(Ye-We)/j+Ue;return Bn.constrain(Ve,0,Z)},ce=Ki.behavior.drag().on("dragstart",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchstart"?me=Ue.changedTouches[0].clientY:me=Ue.clientY,he=ee}).on("drag",function(){var Ue=Ki.event.sourceEvent;Ue.buttons===2||Ue.ctrlKey||(Ue.type==="touchmove"?fe=Ue.changedTouches[0].clientY:fe=Ue.clientY,ee=te(he,me,fe),Re(ee,Y,j))});w.call(ce);var Fe=Ki.behavior.drag().on("dragstart",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchstart"&&(me=Ue.changedTouches[0].clientY,he=ee)}).on("drag",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchmove"&&(fe=Ue.changedTouches[0].clientY,ee=Le(he,me,fe),Re(ee,Y,j))});T.call(Fe)}function Re(Ue,Ye,We){t._scrollY=e._fullLayout[n]._scrollY=Ue,In.setTranslate(T,0,-Ue),In.setRect(w,t._width,dn.scrollBarMargin+Ue*We,dn.scrollBarWidth,Ye),y.select("rect").attr("y",E+Ue)}if(e._context.edits.legendPosition){var ge,He,ur,qe;m.classed("cursor-move",!0),y8.init({element:m.node(),gd:e,prepFn:function(Ue){if(Ue.target!==w.node()){var Ye=In.getTranslate(m);ur=Ye.x,qe=Ye.y}},moveFn:function(Ue,Ye){if(ur!==void 0&&qe!==void 0){var We=ur+Ue,Ve=qe+Ye;In.setTranslate(m,We,Ve),ge=y8.align(We,t._width,C.l,C.l+C.w,t.xanchor),He=y8.align(Ve+t._height,-t._height,C.t+C.h,C.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&He!==void 0){var Ue={};Ue[n+".x"]=ge,Ue[n+".y"]=He,fc.call("_guiRelayout",e,Ue)}},clickFn:function(Ue,Ye){var We=o.selectAll("g.traces").filter(function(){var Ve=this.getBoundingClientRect();return Ye.clientX>=Ve.left&&Ye.clientX<=Ve.right&&Ye.clientY>=Ve.top&&Ye.clientY<=Ve.bottom});We.size()>0&&eN(e,t,We,Ue,Ye)}})}}],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 eN(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),fc.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 j2e(e,r,t){var a=yh.getId(t),n=e.data()[0][0],i=n.trace,o=fc.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=Bn.templateString(u,i._meta))));var c=Bn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(In.font,f).text(l?KP(u,s):u);var v=t.indentation+t.itemwidth+dn.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?fc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):fc.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 $2e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Bn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(h1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),eN(r,l,e,i,Ki.event)}}))}function K2e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&fc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Bn.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(h1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:Ki.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(){Q2e(r,t,a,n)})}function Q2e(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*QP,v,d;if(l){var p=In.bBox(l);v=p.height,d=p.width,a===ph?In.setTranslate(o,u,u+v*.75):In.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?In.bBox(T).width:0,a===ph)t.title.side==="left"&&(d+=dn.itemGap*2),hu.positionText(y,u+dn.titlePad,u+c);else{var _=dn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=dn.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=dn.itemMinHeight+t.itemheight-dn.dfltFillHeight;n.height=Math.max(v,dn.itemMinHeight,x)+dn.itemHeightPad,n.width=d}}function e1e(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 r1e(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=dn.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 E=C?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*E,30);var F=0;a._width=0,a._height=0;var P=e1e(a);if(s)t.each(function(Ue){var Ye=Ue[0].height;In.setTranslate(this,c+P[0],c+P[1]+a._height+Ye/2+d),a._height+=Ye,a._width=Math.max(a._width,Ue[0].width)}),F=p+a._width,a._width+=d+p+v,a._height+=m,u&&(r.each(function(Ue,Ye){In.setTranslate(this,0,Ye*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var q=v3(a),z=a.x<0||a.x===0&&q==="right",I=a.x>1||a.x===1&&q==="left",U=T||b,G=i.width/2;a._maxWidth=Math.max(z?U&&q==="left"?l.l+l.w:G:I?U&&q==="right"?l.r+l.w:G:l.w,2*p);var X=0,Y=0;t.each(function(Ue){var Ye=u3(Ue,a,p);X=Math.max(X,Ye),Y+=Ye}),F=null;var V=0;if(u){var Z=0,j=0,ee=0;r.each(function(){var Ue=0,Ye=0;Ki.select(this).selectAll("g.traces").each(function(Ve){var ar=u3(Ve,a,p),Ie=Ve[0].height;In.setTranslate(this,P[0],P[1]+c+d+Ie/2+Ye),Ye+=Ie,Ue=Math.max(Ue,ar),x[Ve[0].trace.legendgroup]=Ue});var We=Ue+d;j>0&&We+c+j>a._maxWidth?(V=Math.max(V,j),j=0,ee+=Z+_,Z=Ye):Z=Math.max(Z,Ye),In.setTranslate(this,j,ee),j+=We}),a._width=Math.max(V,j)+c,a._height=ee+Z+m}else{var me=t.size(),fe=Y+v+(me-1)*d=a._maxWidth&&(V=Math.max(V,ce),te=0,Le+=he,a._height+=he,he=0),In.setTranslate(this,P[0]+c+te,P[1]+c+Le+Ye/2+d),ce=te+We+d,te+=Ve,he=Math.max(he,Ye)}),fe?(a._width=te+v,a._height=he+m):(a._width=Math.max(V,ce)+v,a._height+=he+m)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+dn.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+dn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Fe=e._context.edits,Re=Fe.legendText||Fe.legendPosition;if(t.each(function(Ue){var Ye=Ki.select(this).select("."+o+"toggle"),We=Ue[0].height,Ve=Ue[0].trace.legendgroup,ar=u3(Ue,a,p);u&&Ve!==""&&(ar=x[Ve]);var Ie=Re?p:F||ar;!s&&!f&&(Ie+=d/2),In.setRect(Ye,0,-We/2,Ie,We)}),a._inHover){let Ue=a._width-v-d-P[0];t.each(function(Ye){Ye[0].textAlign==="right"&&Ki.select(this).select("."+o+"text").attr("text-anchor","end").call(hu.positionText,Ue)})}var ge=n.select("."+o+"titletext");ge.node()&&J2e(ge,a,c);var He=n.select("."+o+"titletoggle");if(He.size()&&ge.node()){var ur=ge.attr("x")||0,qe=dn.titlePad;In.setRect(He,ur-qe,c,a._titleWidth+2*qe,a._titleHeight+2*qe)}}function t1e(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 Bn.isRightAnchor(e)?"right":Bn.isCenterAnchor(e)?"center":"left"}function h3(e){return Bn.isBottomAnchor(e)?"bottom":Bn.isMiddleAnchor(e)?"middle":"top"}});var M8=B(T8=>{"use strict";var pu=la(),du=da(),pn=or(),a1e=pn.pushUnique,_8=pn.strTranslate,n1e=pn.strRotate,i1e=V2(),nn=Ei(),o1e=SP(),Ss=Sa(),Zn=Kt(),d3=Ul(),Gl=en(),l1e=(ni(),vr(ai)).zindexSeparator,cc=Pt(),Vo=_s(),vc=(g2(),vr(y2)),s1e=i8(),u1e=x8(),cN=vc.YANGLE,A8=Math.PI*cN/180,f1e=1/Math.sin(A8),c1e=Math.cos(A8),v1e=Math.sin(A8),rn=vc.HOVERARROWSIZE,ia=vc.HOVERTEXTPAD,tN={box:!0,ohlc:!0,violin:!0,candlestick:!0},h1e={scatter:!0,scattergl:!0,splom:!0};function aN(e,r){return e.distance-r.distance}T8.hover=function(r,t,a,n){r=pn.getGraphDiv(r);var i=t.target;pn.throttle(r._fullLayout._uid+vc.HOVERID,vc.HOVERMINTIME,function(){p1e(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=pN(n),o=mN(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(cc.traceIs(C,"gl3d")){var E=n._fullLayout[C.scene]._scene.container,F=E.offsetLeft,P=E.offsetTop;x+=F,w+=F,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||Zn.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=hN(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Zn.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;_-pC[0]._length||Ye<0||Ye>E[0]._length)return d3.unhoverRaw(e,r)}if(r.pointerX=Ue+C[0]._offset,r.pointerY=Ye+E[0]._offset,"xval"in r?X=Vo.flat(i,r.xval):X=Vo.p2c(C,Ue),"yval"in r?Y=Vo.flat(i,r.yval):Y=Vo.p2c(E,Ye),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!du(X[0])||!du(Y[0]))return pn.warn("Fx.hover failed",r,e),d3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=X,e._hoverYVals=Y,e._hoverXAxes=C,e._hoverYAxes=E);var ar=1/0;function Ie(Ir,ca){for(Z=0;ZFe&&(U.splice(0,Fe),ar=U[0].distance),cc.traceIs(ee,"ternary")&&I!==0){let Mn=ce.subplot;if(["aaxis","baxis","caxis"].some($n=>Mn[$n].showspikes&&Mn[$n].spikesnap!=="hovered data")){let $n=Aa==null?void 0:Aa[0];if(!Number.isFinite($n==null?void 0:$n.spikeDistance)){let Ro=pn.extendFlat({},ce,{distance:I,index:!1}),Kn=ee._module.hoverPoints(Ro,te,Le,"closest");$n=Kn&&Kn[0]}let is=ge[me];$n&&$n.index!==void 0&&$n.index!==!1&&$n.spikeDistance<=I&&(!is||$n.spikeDistanceDa.spikeDistance)&&(Re.vLinePoint=Da))}var Qo=ba.filter(function(Mn){return Mn.ya.showspikes&&Mn.ya.spikesnap!=="hovered data"});if(Qo.length){var co=Qo[0];du(co.x0)&&du(co.y0)&&(Da=Br(co),(!Re.hLinePoint||Re.hLinePoint.spikeDistance>Da.spikeDistance)&&(Re.hLinePoint=Da))}}}}}Ie();function _r(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),I!==0)for(let Ir=0;Irza.trace.subplot===ca&&za.index!==void 0&&za.index!==!1&&za.spikeDistance<=I);Zt.drawSpikelines(Aa,ge[ca],X&&X[Ir],Y&&Y[Ir])}}}function Pr(Ir,ca,Zt){for(var Aa=null,za=1/0,Vn,ba=0;baIr.trace.index===fr.trace.index):U=[fr];var kr=U.length,qr=fN("x",fr,l),$r=fN("y",fr,l);Ie(qr,$r);var tt=[],Ge={},Mr=0,rr=function(Ir){var ca=tN[Ir.trace.type]?vN(Ir):Ir.trace.index;if(!Ge[ca])Mr++,Ge[ca]=Mr,tt.push(Ir);else{var Zt=Ge[ca]-1,Aa=tt[Zt];Zt>0&&Math.abs(Ir.distance)kr-1;Rr--)rr(U[Rr]);U=tt,ue()}var at=e._hoverdata,nt=[],lt=pN(e),le=mN(e);for(let Ir of U){var Te=Vo.makeEventData(Ir,Ir.trace,Ir.cd);if(Ir.hovertemplate!==!1){var tr=!1;Ir.cd[Ir.index]&&Ir.cd[Ir.index].ht&&(tr=Ir.cd[Ir.index].ht),Ir.hovertemplate=tr||Ir.trace.hovertemplate||!1}if(Ir.xa&&Ir.ya){var hr=Ir.x0+Ir.xa._offset,ra=Ir.x1+Ir.xa._offset,Ca=Ir.y0+Ir.ya._offset,Ha=Ir.y1+Ir.ya._offset,an=Math.min(hr,ra),yn=Math.max(hr,ra),sn=Math.min(Ca,Ha),Yn=Math.max(Ca,Ha);Te.bbox={x0:an+le,x1:yn+le,y0:sn+lt,y1:Yn+lt},Te.xPixel=(hr+ra)/2,Te.yPixel=(Ca+Ha)/2}Ir.eventData=[Te],nt.push(Te)}e._hoverdata=nt;var qa=d==="y"&&(G.length>1||U.length>1)||d==="closest"&&He&&U.length>1,un=Zn.combine(l.plot_bgcolor||Zn.background,l.paper_bgcolor),fn=hN(U,{gd:e,hovermode:d,rotateLabels:qa,bgColor:un,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),gn=fn.hoverLabels;if(Vo.isUnifiedHover(d)||(iN(gn,qa,l,fn.commonLabelBoundingBox),m3(gn,qa,l._invScaleX,l._invScaleY),fn.mathjaxPromise&&fn.mathjaxPromise.then(function(){e._hoverdata===nt&&(iN(gn,qa,l,fn.commonLabelBoundingBox),m3(gn,qa,l._invScaleX,l._invScaleY),gn.each(function(){var Ir=pu.select(this);nn.repositionMathGroup(Ir.select("text.nums")),nn.repositionMathGroup(Ir.select("text.name"))}))})),n&&n.tagName){var si=cc.getComponentMethod("annotations","hasClickToShow")(e,nt);o1e(pu.select(n),si?"pointer":"")}var bn=b1e(e,r,at);if(!n||a||!bn&&!l.hoveranywhere)return;at&&bn&&e.emit("plotly_unhover",{event:r,points:at}),Dn(e._hoverdata);function Dn(Ir){e.emit("plotly_hover",{event:r,points:Ir,xaxes:C,yaxes:E,xvals:Vo.c2dApply(C,X),yvals:Vo.c2dApply(E,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function vN(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 m1e=/([\s\S]*)<\/extra>/;function w8(e,r){return p3(e,nn.getMathOrTextNode(r))}function hN(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||vc.HOVERFONT,v=r.fontSize||vc.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 E=0;Ea.width-lt&&(le=a.width-lt),Ce.attr("d","M"+(Rr-le)+",0L"+(Rr-le+rn)+","+nt+rn+"H"+lt+"v"+nt+(ia*2+rr.height)+"H"+-lt+"V"+nt+rn+"H"+(Rr-le-rn)+"Z"),Rr=le,Z.minX=Rr-lt,Z.maxX=Rr+lt,x.side==="top"?(Z.minY=at-(ia*2+rr.height),Z.maxY=at-ia):(Z.minY=at+ia,Z.maxY=at+(ia*2+rr.height))}else{var Te,tr,hr;w.side==="right"?(Te="start",tr=1,hr="",Rr=x._offset+x._length):(Te="end",tr=-1,hr="-",Rr=x._offset),at=w._offset+(_.y0+_.y1)/2,lr.attr("text-anchor",Te),Ce.attr("d","M0,0L"+hr+rn+","+rn+"V"+(ia+rr.height/2)+"h"+hr+(ia*2+rr.width)+"V-"+(ia+rr.height/2)+"H"+hr+rn+"V-"+rn+"Z"),Z.minY=at-(ia+rr.height/2),Z.maxY=at+(ia+rr.height/2),w.side==="right"?(Z.minX=Rr+rn,Z.maxX=Rr+rn+(ia*2+rr.width)):(Z.minX=Rr-rn-(ia*2+rr.width),Z.maxX=Rr-rn);var ra=rr.height/2,Ca=P-rr.top-ra,Ha="clip"+a._uid+"commonlabel"+w._id,an;if(RrCe.hoverinfo!=="none");if(pe.length===0)return[];var j=a.hoverlabel,ee=j.font,me=pe[0],fe=((n==="x unified"?me.xa:me.ya).unifiedhovertitle||{}).text,he=fe?pn.hovertemplateString({data:n==="x unified"?[{xa:me.xa,x:me.xVal}]:[{ya:me.ya,y:me.yVal}],fallback:me.trace.hovertemplatefallback,locale:a._d3locale,template:fe}):C,te={showlegend:!0,legend:{title:{text:he,font:ee},font:ee,bgcolor:j.bgcolor,bordercolor:j.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},Le={font:ee};s1e(te,Le,t._fullData);var ce=Le.legend;ce.entries=[];for(var Fe=0;Fe=0?Tr=mr:Yr+We=0?Tr=Yr:ue+We=0?rt=Br:$e+Ve=0?rt=$e:Ee+Ve=0,(pe.idealAlign==="top"||!fn)&&gn?(hr-=Ca/2,pe.anchor="end"):fn?(hr+=Ca/2,pe.anchor="start"):pe.anchor="middle",pe.crossPos=hr;else{if(pe.pos=hr,fn=tr+ra/2+un<=q,gn=tr-ra/2-un>=0,(pe.idealAlign==="left"||!fn)&&gn)tr-=ra/2,pe.anchor="end";else if(fn)tr+=ra/2,pe.anchor="start";else{pe.anchor="middle";var si=un/2,bn=tr+si-q,Dn=tr-si;bn>0&&(tr-=bn),Dn<0&&(tr+=-Dn)}pe.crossPos=tr}lt.attr("text-anchor",pe.anchor),Ha&&le.attr("text-anchor",pe.anchor),Ce.attr("transform",_8(tr,hr)+(i?n1e(cN):""))}}),{hoverLabels:ot,commonLabelBoundingBox:Z,mathjaxPromise:f.length?Promise.all(f):null}}function nN(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=pn.templateString(e.name,e.trace._meta)),o=uN(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+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),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?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+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=pn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(m1e,(p,m)=>(o=uN(m,e.nameLength),""))}return[l,o]}function iN(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",Z=X.range;f===0&&Z&&Z[0]>Z[1]!==V&&(l=-1);var j=0,ee=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var me=dN(G,r),fe=G.anchor,he=fe==="end"?-1:1,te,Le;if(fe==="middle")te=G.crossPos+(V?y(me.y-G.by/2):m(G.bx/2+G.tx2width/2)),Le=te+(V?y(G.by):m(G.bx));else if(V)te=G.crossPos+y(rn+me.y)-y(G.by/2-rn),Le=te+y(G.by);else{var ce=m(he*rn+me.x),Fe=ce+m(he*G.bx);te=G.crossPos+Math.min(ce,Fe),Le=G.crossPos+Math.max(ce,Fe)}V?d!==void 0&&p!==void 0&&Math.min(Le,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(Le,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?f1e: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;xX.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=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.01){for(w=F.length-1;w>=0;w--)F[w].dp+=T;for(E.push.apply(E,F),u.splice(x+1,1),M=0,w=E.length-1;w>=0;w--)M+=E[w].dp;for(_=M/E.length,w=E.length-1;w>=0;w--)E[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 I=z[w],U=I.datum;U.offset=I.dp,U.del=I.del}}}function dN(e,r){var t=0,a=e.offset;return r&&(a*=-v1e,t=e.offset*c1e),{x:t,y:a}}function y1e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(rn+ia),a=t+r*(e.txwidth+ia),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+ia),{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=y1e(o),v=dN(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*rn+d)+","+i(rn+p)+"v"+i(o.by/2-rn)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*rn+d)+"V"+i(p-rn)+"Z":b="M"+n(f*rn+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+ia,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+ia:-o.bx-ia):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-ia:o.bx+ia)),s.call(nn.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(nn.positionText,n(c.text2ShiftX+c.alignShift*ia+d),i(p+o.ty0-o.by/2+ia)),l.select("rect").call(Ss.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 g1e(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=pn.castOption(n,t,v);return o(p)?p:pn.extractOption({},a,"",d)}:function(v,d){return pn.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=pn.constrain(e.x0,0,e.xa._length),e.x1=pn.constrain(e.x1,0,e.xa._length),e.y0=pn.constrain(e.y0,0,e.ya._length),e.y1=pn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Gl.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:Gl.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=Gl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Gl.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=Gl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Gl.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 oN(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=Gl.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 lN(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=Zn.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=Zn.wcagContrast(v.color,c)<1.5?Zn.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,_=f.spikecolor||y,x=Gl.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=oN(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":Ss.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,E;u=M&&M.xa,f=M&&M.ya;var F=u.spikesnap;F==="cursor"?(C=o.pointerX,E=o.pointerY):(C=u._offset+M.x,E=f._offset+M.y);var P=Zn.wcagContrast(M.color,c)<1.5?Zn.contrast(c):M.color,q=u.spikemode,z=u.spikethickness,I=u.spikecolor||P,U=Gl.getPxPosition(e,u),G,X;if(q.indexOf("toaxis")!==-1||q.indexOf("across")!==-1){if(q.indexOf("toaxis")!==-1&&(G=U,X=E),q.indexOf("across")!==-1){let Y=oN(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:I,"stroke-dasharray":Ss.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:I}).classed("spikeline",!0)}}}function b1e(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 sN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function uN(e,r){return nn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function x1e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,mN=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=pn.apply3DTransform(t._invTransform)(n,i),u=pn.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=B((EFe,yN)=>{"use strict";var _1e=or(),w1e=Kt(),A1e=_s().isUnifiedHover;yN.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&&A1e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=w1e.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),_1e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var bN=B((qFe,gN)=>{"use strict";var T1e=or(),M1e=y3(),k1e=kv();gN.exports=function(r,t){function a(n,i){return T1e.coerce(r,t,k1e,n,i)}M1e(r,t,a)}});var wN=B((FFe,_N)=>{"use strict";var xN=or(),S1e=dy(),C1e=y3();_N.exports=function(r,t,a,n){function i(l,s){return xN.coerce(r,t,S1e,l,s)}var o=xN.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),C1e(r,t,i,o)}});var k8=B((RFe,AN)=>{"use strict";var D1e=or(),L1e=kv();AN.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:D1e.coerce(r,t,L1e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var kN=B((PFe,MN)=>{"use strict";var TN=or(),E1e=kv(),q1e=k8(),F1e=y3();MN.exports=function(r,t){function a(u,f){return TN.coerce(r,t,E1e,u,f)}var n=q1e(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"),F1e(r,t,a),TN.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var DN=B((NFe,CN)=>{"use strict";var S8=or(),SN=Pt();CN.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{"use strict";var P1e=Pt(),LN=_s(),N1e=M8().hover;EN.exports=function(r,t,a){var n=P1e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&N1e(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&&LN.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&LN.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=B((BFe,PN)=>{"use strict";var z1e=la(),g3=or(),B1e=Ul(),d1=_s(),FN=kv(),RN=M8();PN.exports={moduleType:"component",name:"fx",constants:(g2(),vr(y2)),schema:{layout:FN},attributes:dy(),layoutAttributes:FN,supplyLayoutGlobalDefaults:bN(),supplyDefaults:wN(),supplyLayoutDefaults:kN(),calc:DN(),getDistanceFunction:d1.getDistanceFunction,getClosest:d1.getClosest,inbox:d1.inbox,quadrature:d1.quadrature,appendArrayPointValue:d1.appendArrayPointValue,castHoverOption:O1e,castHoverinfo:H1e,hover:RN.hover,unhover:B1e.unhover,loneHover:RN.loneHover,loneUnhover:I1e,click:qN()};function I1e(e){var r=g3.isD3Selection(e)?e:z1e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function O1e(e,r,t){return g3.castOption(e,r,"hoverlabel."+t)}function H1e(e,r,t){function a(n){return g3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return g3.castOption(e,t,"hoverinfo",a)}});var Lf=B(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=B((OFe,NN)=>{"use strict";NN.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=B((HFe,zN)=>{"use strict";zN.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:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var _3={};ja(_3,{CIRCLE_SIDES:()=>U1e,SQRT2:()=>J1e,cos45:()=>W1e,i000:()=>G1e,i090:()=>Y1e,i180:()=>V1e,i270:()=>X1e,sin45:()=>Z1e});var U1e,G1e,Y1e,V1e,X1e,W1e,Z1e,J1e,w3=Ja(()=>{"use strict";U1e=32,G1e=0,Y1e=8,V1e=16,X1e=24,W1e=Math.cos(Math.PI/4),Z1e=Math.sin(Math.PI/4),J1e=Math.sqrt(2)});var A3=B((UFe,IN)=>{"use strict";var j1e=or().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 $1e(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 K1e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return BN(e,t[r])}}function Q1e(e){return j1e(e.xaxis._offset,e.yaxis._offset)}IN.exports={p2r:BN,r2p:$1e,axValue:K1e,getTransform:Q1e}});var Ef=B(gu=>{"use strict";var epe=v7(),UN=(w3(),vr(_3)),gh=UN.CIRCLE_SIDES,C8=UN.SQRT2,GN=A3(),ON=GN.p2r,HN=GN.r2p,rpe=[0,3,4,5,6,1,2],tpe=[0,3,4,1,2];gu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var YN=hn(),JN=Lf(),ape=JN.drawMode,npe=JN.openMode,bh=(w3(),vr(_3)),VN=bh.i000,XN=bh.i090,WN=bh.i180,ZN=bh.i270,ipe=bh.cos45,ope=bh.sin45,jN=A3(),M3=jN.p2r,qf=jN.r2p,lpe=gf(),spe=lpe.clearOutline,k3=Ef(),upe=k3.readPaths,fpe=k3.writePaths,cpe=k3.ellipseOver,vpe=k3.fixDatesForPaths;function hpe(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(!ape(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var dpe=Lf(),ppe=dpe.selectMode,mpe=gf(),ype=mpe.clearOutline,D8=Ef(),gpe=D8.readPaths,bpe=D8.writePaths,xpe=D8.fixDatesForPaths;QN.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(!ppe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dMpe,paramIsX:()=>Ape,paramIsY:()=>Tpe,paramRE:()=>wpe,segmentRE:()=>_pe});var _pe,wpe,Ape,Tpe,Mpe,y1=Ja(()=>{"use strict";_pe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,wpe=/[^\s,]+/g,Ape={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:{}},Tpe={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:{}},Mpe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Rf=B(Mi=>{"use strict";var Ds=(y1(),vr(m1)),ez=or(),Ff=en();Mi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Mi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Mi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Mi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Mi.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ds.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Ds.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Mi.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=Mi.shapePositionToRange(r);o=function(s){var u=Cs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Mi.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};Mi.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=Mi.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};Mi.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Mi.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}};Mi.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}};Mi.getPathString=function(e,r){let t=r.type,a=Ff.getRefType(r.xref),n=Ff.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,m,y,b;function T(F,P,q,z){var I;if(F)if(P==="domain")z?I=function(U){return F._offset+F._length*(1-U)}:I=function(U){return F._offset+F._length*U};else{let U=Mi.shapePositionToRange(F);I=function(G){return F._offset+F.r2p(U(G,!0))},q==="path"&&F.type==="date"&&(I=Mi.decodeDate(I))}else z?I=function(U){return i.t+i.h*(1-U)}:I=function(U){return i.l+i.w*U};return I}if(a==="array"?(v=[],o=r.xref.map(function(F){return Ff.getFromId(e,F)}),v=r.xref.map(function(F,P){return T(o[P],Ff.getRefType(F),t,!1)})):(o=Ff.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(F){return Ff.getFromId(e,F)}),d=r.yref.map(function(F,P){return T(l[P],Ff.getRefType(F),t,!0)})):(l=Ff.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return kpe(r,v,d);if(a==="array")s=Cs(o[0],r.x0shift),u=Cs(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=Cs(o,r.x0shift),u=Cs(o,r.x1shift),r.xsizemode==="pixel"){let F=v(r.xanchor);p=F+r.x0+s,m=F+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=Cs(l[0],r.y0shift),c=Cs(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Cs(l,r.y0shift),c=Cs(l,r.y1shift),r.ysizemode==="pixel"){let F=d(r.yanchor);y=F-r.y0+f,b=F-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,E=_+","+(x-k);return"M"+C+M+" 0 1,1 "+E+M+" 0 0,1 "+C+"Z"};function kpe(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(Ds.segmentRE,function(v){var d=0,p=v.charAt(0),m=Ds.paramIsX[p],y=Ds.paramIsY[p],b=Ds.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(Ds.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.*/,""),ez.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}Mi.getPixelShift=Cs;function Cs(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 E8=B((WFe,az)=>{"use strict";var Spe=or(),Ls=en(),rz=Ei(),tz=Sa(),Cpe=Ef().readPaths,hc=Rf(),Dpe=hc.getPathString,g1=Wy(),Lpe=(Oi(),vr(Ii)).FROM_TL;az.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=Ls.getFromId(r,a.xref),s=Ls.getFromId(r,a.yref);let j=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in g1){var f=typeof g1[u]=="function",c=!j||g1.simpleXVariables.includes(u),v=!ee||g1.simpleYVariables.includes(u);if(f&&c&&v){var d=g1[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Spe.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=Dpe(r,a),C=Cpe(M,r);_=1/0,w=1/0,x=-1/0,k=-1/0;for(var E=0;Ehc.getDataToPixel(r,Ue,qe,!1,Ye)(ur),He=(ur,qe,Ue,Ye)=>hc.getDataToPixel(r,Ue,qe,!0,Ye)(ur);if(a.xsizemode==="pixel"){let ur=ge(a.xanchor,void 0,me,Le),qe=hc.getPixelShift(me,a.x0shift),Ue=hc.getPixelShift(me,a.x1shift);_=ur+a.x0+qe,x=ur+a.x1+Ue}else _=ge(a.x0,a.x0shift,me,Le),x=ge(a.x1,a.x1shift,fe,ce);if(a.ysizemode==="pixel"){let ur=He(a.yanchor,void 0,he,Fe),qe=hc.getPixelShift(he,a.y0shift),Ue=hc.getPixelShift(he,a.y1shift);w=ur-a.y0+qe,k=ur-a.y1+Ue}else w=He(a.y0,a.y0shift,he,Fe),k=He(a.y1,a.y1shift,te,Re)}var U=a.label.textangle;U==="auto"&&(a.type==="line"?U=Epe(_,w,x,k):U=0),T.call(function(j){return j.call(tz.font,m).attr({}),rz.convertToTspans(j,r),j});var G=tz.bBox(T.node()),X=qpe(_,w,x,k,a,U,G),Y=X.textx,V=X.texty,Z=X.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:V,x:Y,transform:"rotate("+U+","+Y+","+V+")"}).call(rz.positionText,Y,V)}};function Epe(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 qpe(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":te?p="right":te?p="right":te?p="left":t{"use strict";var Fpe=or(),Rpe=Fpe.strTranslate,nz=Ul(),lz=Lf(),Ppe=lz.drawMode,sz=lz.selectMode,uz=Pt(),iz=Kt(),D3=(w3(),vr(_3)),Npe=D3.i000,zpe=D3.i090,Bpe=D3.i180,Ipe=D3.i270,Ope=gf(),fz=Ope.clearOutlineControllers,F8=Ef(),C3=F8.pointsOnRectangle,q8=F8.pointsOnEllipse,Hpe=F8.writePaths,Upe=S3().newShapes,Gpe=S3().createShapeObj,Ype=L8(),Vpe=E8();cz.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=Upe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=Ype(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&uz.call((X||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Ppe(f),v=sz(f);(c||v)&&(i._fullLayout._outlining=!0),fz(i),t.attr("d",Hpe(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Xpe([],r);var T=u.append("g").attr("class","outline-controllers");F(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),x=Gpe(t,a,a.dragmode);Vpe(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],Z=b[m][y][2],j=r[m],ee=j.length;if(C3(j)){var me=X,fe=Y;if(a.isActiveSelection){var he=oz(j,y);he[1]===j[y][1]?fe=0:me=0}for(var te=0;te1&&!(X.length===2&&X[1][0]==="Z")&&(y===0&&(X[0][0]="M"),r[m]=X,o(),l())}}function E(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 F(X){d=[];for(var Y=0;Y{"use strict";var Zpe=la(),yz=Pt(),P8=or(),dc=en(),Jpe=Ef().readPaths,jpe=L3(),q3=E8(),gz=gf().clearOutlineControllers,R8=Kt(),F3=Sa(),$pe=Ra().arrayEditor,vz=Ul(),hz=mu(),dz=Cf(),pc=(y1(),vr(m1)),ko=Rf(),N8=ko.getPathString;_z.exports={draw:z8,drawOne:bz,eraseActiveShape:tme,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{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&hz.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&hz.click(e,o,t.id)}})}function xz(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=Qpe(r,a,n);P8.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),F3.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");F3.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Qpe(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>dc.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 eme(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,E,F,P,q=Zpe.select(r.node().parentNode),z=dc.getFromId(e,t.xref),I=dc.getRefType(t.xref),U=dc.getFromId(e,t.yref),G=dc.getRefType(t.yref),X=t.x0shift,Y=t.x1shift,V=t.y0shift,Z=t.y1shift,j=function(ar,Ie){var _r=ko.getDataToPixel(e,z,Ie,!1,I);return _r(ar)},ee=function(ar,Ie){var _r=ko.getDataToPixel(e,U,Ie,!0,G);return _r(ar)},me=ko.getPixelToData(e,z,!1,I),fe=ko.getPixelToData(e,U,!0,G),he=ce(),te={element:he.node(),gd:e,prepFn:ge,doneFn:He,clickFn:ur},Le;vz.init(te),he.node().onmousemove=Re;function ce(){return f?Fe():r}function Fe(){var ar=10,Ie=Math.max(t.line.width,ar),_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":Ie,"stroke-opacity":"0"});var Pr={"fill-opacity":"0"},Br=Math.max(Ie/2,ar);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:Br}).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,Z),r:Br}).style(Pr).classed("cursor-grab",!0),_r}function Re(ar){if(E3(e)){Le=null;return}if(f)ar.target.tagName==="path"?Le="move":Le=ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=te.element.getBoundingClientRect(),_r=Ie.right-Ie.left,Pr=Ie.bottom-Ie.top,Br=ar.clientX-Ie.left,$e=ar.clientY-Ie.top,mr=!c&&_r>o&&Pr>l&&!ar.shiftKey?vz.getCursor(Br/_r,1-$e/Pr):"move";dz(r,mr),Le=mr.split("-")[0]}}function ge(ar){E3(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)),dy?(_=p,M="y0",x=y,C="y1"):(_=y,M="y1",x=p,C="y0"),Re(ar),Ye(n,t),Ve(r,t,e),te.moveFn=Le==="move"?qe:Ue,te.altKey=ar.altKey)}function He(){E3(e)||(dz(r),We(n),xz(r,e,t),yz.call("_guiRelayout",e,i.getUpdateObj()))}function ur(){E3(e)||We(n)}function qe(ar,Ie){if(t.type==="path"){var _r=function($e){return $e},Pr=_r,Br=_r;s?v("xanchor",t.xanchor=me(b+ar)):(Pr=function(mr){return me(j(mr)+ar)},z&&z.type==="date"&&(Pr=ko.encodeDate(Pr))),u?v("yanchor",t.yanchor=fe(T+Ie)):(Br=function(mr){return fe(ee(mr)+Ie)},U&&U.type==="date"&&(Br=ko.encodeDate(Br))),v("path",t.path=pz(P,Pr,Br))}else s?v("xanchor",t.xanchor=me(b+ar)):(v("x0",t.x0=me(d+ar)),v("x1",t.x1=me(m+ar))),u?v("yanchor",t.yanchor=fe(T+Ie)):(v("y0",t.y0=fe(p+Ie)),v("y1",t.y1=fe(y+Ie)));r.attr("d",N8(e,t)),Ye(n,t),q3(e,a,t,q)}function Ue(ar,Ie){if(c){var _r=function(kr){return kr},Pr=_r,Br=_r;s?v("xanchor",t.xanchor=me(b+ar)):(Pr=function(qr){return me(j(qr)+ar)},z&&z.type==="date"&&(Pr=ko.encodeDate(Pr))),u?v("yanchor",t.yanchor=fe(T+Ie)):(Br=function(qr){return fe(ee(qr)+Ie)},U&&U.type==="date"&&(Br=ko.encodeDate(Br))),v("path",t.path=pz(P,Pr,Br))}else if(f){if(Le==="resize-over-start-point"){var $e=d+ar,mr=u?p-Ie:p+Ie;v("x0",t.x0=s?$e:me($e)),v("y0",t.y0=u?mr:fe(mr))}else if(Le==="resize-over-end-point"){var Yr=m+ar,ue=u?y-Ie:y+Ie;v("x1",t.x1=s?Yr:me(Yr)),v("y1",t.y1=u?ue:fe(ue))}}else{var Ee=function(kr){return Le.indexOf(kr)!==-1},Tr=Ee("n"),rt=Ee("s"),ot=Ee("w"),pe=Ee("e"),Ce=Tr?_+Ie:_,lr=rt?x+Ie:x,wr=ot?w+ar:w,fr=pe?k+ar:k;u&&(Tr&&(Ce=_-Ie),rt&&(lr=x-Ie)),(!u&&lr-Ce>l||u&&Ce-lr>l)&&(v(M,t[M]=u?Ce:fe(Ce)),v(C,t[C]=u?lr:fe(lr))),fr-wr>o&&(v(E,t[E]=s?wr:me(wr)),v(F,t[F]=s?fr:me(fr)))}r.attr("d",N8(e,t)),Ye(n,t),q3(e,a,t,q)}function Ye(ar,Ie){(s||u)&&_r();function _r(){var Pr=Ie.type!=="path",Br=ar.selectAll(".visual-cue").data([0]),$e=1;Br.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$e}).classed("visual-cue",!0);var mr=j(s?Ie.xanchor:P8.midRange(Pr?[Ie.x0,Ie.x1]:ko.extractPathCoords(Ie.path,pc.paramIsX))),Yr=ee(u?Ie.yanchor:P8.midRange(Pr?[Ie.y0,Ie.y1]:ko.extractPathCoords(Ie.path,pc.paramIsY)));if(mr=ko.roundPositionForSharpStrokeRendering(mr,$e),Yr=ko.roundPositionForSharpStrokeRendering(Yr,$e),s&&u){var ue="M"+(mr-1-$e)+","+(Yr-1-$e)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Br.attr("d",ue)}else if(s){var Ee="M"+(mr-1-$e)+","+(Yr-9-$e)+"v18 h2 v-18 Z";Br.attr("d",Ee)}else{var Tr="M"+(mr-9-$e)+","+(Yr-1-$e)+"h18 v2 h-18 Z";Br.attr("d",Tr)}}}function We(ar){ar.selectAll(".visual-cue").remove()}function Ve(ar,Ie,_r){var Pr=Ie.xref,Br=Ie.yref,$e=dc.getFromId(_r,Pr),mr=dc.getFromId(_r,Br),Yr="";Pr!=="paper"&&!$e.autorange&&(Yr+=Pr),Br!=="paper"&&!mr.autorange&&(Yr+=Br),F3.setClipUrl(ar,Yr?"clip"+_r._fullLayout._uid+Yr:null,_r)}}function pz(e,r,t){return e.replace(pc.segmentRE,function(a){var n=0,i=a.charAt(0),o=pc.paramIsX[i],l=pc.paramIsY[i],s=pc.numParams[i],u=a.slice(1).replace(pc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function rme(e,r){if(R3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){mz(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=mz,z8(e)}}}function mz(e){if(R3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(gz(e),delete e._fullLayout._activeShapeIndex,z8(e))}}function tme(e){if(R3(e)){gz(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var xh=or()._,ame=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")}};wz.exports=ame});var kz=B(($Fe,Mz)=>{"use strict";var Tz=la(),{dfltConfig:nme}=nf(),ime=Az(),ome=(e,r,t,a,n)=>{let i=ime(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===nme.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)},lme=(e,r,t)=>{let a=Tz.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",()=>{Tz.event.target===n.node()&&i()}),ome(e,n,r,()=>{i(),t()},i)};Mz.exports=lme});var O8=B((KFe,Fz)=>{"use strict";var Xo=Pt(),sme=di(),Cz=hn(),_a=x3(),ume=P3().eraseActiveShape,fme=kz(),_h=or(),oa=_h._,ga={};Fz.exports=ga;ga.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?oa(e,"Download plot as a PNG"):oa(e,"Download plot")},icon:_a.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};_h.notifier(oa(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])}),Xo.call("downloadImage",e,t).then(function(a){_h.notifier(oa(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){_h.notifier(oa(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ga.downloadJson={name:"downloadJson",title:function(e){return oa(e,"Download plot as JSON")},icon:_a.curlybraces,click:function(e){Xo.call("downloadImage",e,{format:"full-json"}).then(function(r){_h.notifier(oa(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){_h.notifier(oa(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ga.sendChartToCloud={name:"sendChartToCloud",title:function(e){return oa(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}fme(e,r,function(){sme.sendDataToCloud(e,r)})}};ga.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return oa(e,"Zoom")},attr:"dragmode",val:"zoom",icon:_a.zoombox,click:Qi};ga.pan2d={name:"pan2d",_cat:"pan",title:function(e){return oa(e,"Pan")},attr:"dragmode",val:"pan",icon:_a.pan,click:Qi};ga.select2d={name:"select2d",_cat:"select",title:function(e){return oa(e,"Box Select")},attr:"dragmode",val:"select",icon:_a.selectbox,click:Qi};ga.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return oa(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:_a.lasso,click:Qi};ga.drawclosedpath={name:"drawclosedpath",title:function(e){return oa(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:_a.drawclosedpath,click:Qi};ga.drawopenpath={name:"drawopenpath",title:function(e){return oa(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:_a.drawopenpath,click:Qi};ga.drawline={name:"drawline",title:function(e){return oa(e,"Draw line")},attr:"dragmode",val:"drawline",icon:_a.drawline,click:Qi};ga.drawrect={name:"drawrect",title:function(e){return oa(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:_a.drawrect,click:Qi};ga.drawcircle={name:"drawcircle",title:function(e){return oa(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:_a.drawcircle,click:Qi};ga.eraseshape={name:"eraseshape",title:function(e){return oa(e,"Erase active shape")},icon:_a.eraseshape,click:ume};ga.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return oa(e,"Zoom in")},attr:"zoom",val:"in",icon:_a.zoom_plus,click:Qi};ga.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return oa(e,"Zoom out")},attr:"zoom",val:"out",icon:_a.zoom_minus,click:Qi};ga.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return oa(e,"Autoscale")},attr:"zoom",val:"auto",icon:_a.autoscale,click:Qi};ga.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return oa(e,"Reset axes")},attr:"zoom",val:"reset",icon:_a.home,click:Qi};ga.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return oa(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:Qi};ga.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return oa(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:_a.tooltip_compare,gravity:"ne",click:Qi};function Qi(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Cz.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-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"?Sz*v:1/Sz*v;w>x?w=x:w<_&&(w=_),w!==v&&Xo.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")}ga.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return oa(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:Ez};function Lz(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function Ez(e){var r=Lz(e);Xo.call("_guiRelayout",e,"hovermode",r)}ga.resetViewSankey={name:"resetSankeyGroup",title:function(e){return oa(e,"Reset view")},icon:_a.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t{"use strict";var Rz=O8(),dme=Object.keys(Rz),Pz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Nz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Pz,["downloadJson"]),wh=[],pme=function(e){if(Nz.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)}};dme.forEach(function(e){pme(Rz[e])});wh.sort();zz.exports={DRAW_MODES:Pz,backButtons:Nz,foreButtons:wh}});var G8={};ja(G8,{default:()=>yme});var U8,mme,yme,Y8=Ja(()=>{"use strict";U8=c2(H8()),mme={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(" ")}},yme=mme});var Iz=B((eRe,Bz)=>{"use strict";var gme=or(),b1=Kt(),bme=Ra(),xme=(Y8(),vr(G8)).default;Bz.exports=function(r,t){var a=r.modebar||{},n=bme.newContainer(t,"modebar");function i(l,s){return gme.coerce(a,n,xme,l,s)}i("orientation"),i("bgcolor",b1.addOpacity(t.paper_bgcolor,.5));var o=b1.contrast(b1.rgb(t.modebar.bgcolor));i("color",b1.addOpacity(o,.3)),i("activecolor",b1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Gz=B((rRe,Uz)=>{"use strict";var V8=la(),_me=da(),B3=or(),Oz=x3(),wme=v2().version,Ame=new DOMParser;function Hz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Es=Hz.prototype;Es.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(),B3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Es.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)})};Es.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Es.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||Oz.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Es.createIcon=function(e){var r=_me(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=Ame.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Es.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:B3.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Es.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var kme=hn(),Yz=Ti(),X8=Pt(),Sme=_s().isUnifiedHover,Cme=Gz(),I3=O8(),Dme=H8().DRAW_MODES,Lme=or().extendDeep;Vz.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=Nme(i):!a.displayModeBar&&a.watermark?o=[]:o=Eme(r),n?n.update(r,o):t._modeBar=Cme(r,o)};function Eme(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 Z=V.name,j=V._cat||V.name;if(Z===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;V1?(E=["toggleHover"],F=["resetViews"]):c?(C=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],F=["resetGeo"]):f?(E=["hoverClosest3d"],F=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(C=["zoomInMap","zoomOutMap"],E=["toggleHover"],F=["resetViewMap"]):v?E=["hoverClosestPie"]:T?(E=["hoverClosestCartesian","hoverCompareCartesian"],F=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Rme(t)||x)&&(E=[]),u&&!_&&(C=["zoomIn2d","zoomOut2d","autoScale2d"],F[0]!=="resetViews"&&(F=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||p?P=["zoom2d","pan2d"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),Fme(t)&&P.push("select2d","lasso2d");var q=[],z=function(Y){q.indexOf(Y)===-1&&E.indexOf(Y)!==-1&&q.push(Y)};if(Array.isArray(l)){for(var I=[],U=0;U{"use strict";Wz.exports={moduleType:"component",name:"modebar",layoutAttributes:(Y8(),vr(G8)).default,supplyLayoutDefaults:Iz(),manage:Xz()}});var Z8=B((nRe,Zz)=>{"use strict";var zme=(Oi(),vr(Ii)).FROM_BL;Zz.exports=function(r,t,a){a===void 0&&(a=zme[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 _1=B(x1=>{"use strict";var mc=or(),J8=uh(),Yl=hn().id2name,Bme=sl(),Jz=Z8(),Ime=Hg(),Ome=(Wn(),vr(ri)).ALMOST_EQUAL,Hme=(Oi(),vr(Ii)).FROM_BL;x1.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;li?t.slice(i):a.slice(n))+o}function Gme(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oOme*p&&!T)){for(i=0;iq&&ZF&&(F=Z);var ee=(F-E)/(2*P);c/=ee,E=s.l2r(E),F=s.l2r(F),s.range=s._input.range=k0){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=B(mi=>{"use strict";var H3=la(),eo=Pt(),Wo=di(),cl=or(),K8=Ei(),Q8=b3(),w1=Kt(),Ah=Sa(),Qz=r1(),nB=W8(),A1=en(),bu=(Oi(),vr(Ii)),iB=_1(),Vme=iB.enforce,Xme=iB.clean,eB=uh().doAutoRange,oB="start",Wme="middle",lB="end",Zme=(ni(),vr(ai)).zindexSeparator;mi.layoutStyles=function(e){return cl.syncOrAsync([Wo.doAutoMargin,jme],e)};function Jme(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function jme(e){var r=e._fullLayout,t=r._size,a=t.p,n=A1.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),mi.drawMainTitle(e),nB.manage(e),!r._has("cartesian"))return Wo.previousPromises(e);function c(ge,He,ur){var qe=ge._lw/2;if(ge._id.charAt(0)==="x"){if(He){if(ur==="top")return He._offset-a-qe}else return t.t+t.h*(1-(ge.position||0))+qe%1;return He._offset+He._length+a+qe}if(He){if(ur==="right")return He._offset+He._length+a+qe}else return t.l+t.w*(ge.position||0)+qe%1;return He._offset-a-qe}for(i=0;i0){eye(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:aB(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+Qz.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:aB(r.yanchor)}).call(K8.positionText,o,m)}}}};function $me(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=cl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return cl.isTopAnchor(r)&&t==="t"||cl.isBottomAnchor(r)&&t==="b"?!1:l.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=Kme(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function eye(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"&&$me(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Wo.allowAutoMargin(e,n),Wo.autoMargin(e,n,l)}function rye(e,r){var t=e.title,a=e._size,n=0;return r===oB?n=t.pad.l:r===lB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function tye(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 aB(e){return e==="top"?bu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":bu.MID_SHIFT+"em"}function aye(e){var r=e.title,t=Wme;return cl.isRightAnchor(r)?t=lB:cl.isLeftAnchor(r)&&(t=oB),t}function nye(e){var r=e.title,t="0em";return cl.isTopAnchor(r)?t=bu.CAP_SHIFT+"em":cl.isMiddleAnchor(r)&&(t=bu.MID_SHIFT+"em"),t}mi.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var iye=Ef().readPaths,oye=L3(),sB=gf().clearOutlineControllers,ew=Kt(),uB=Sa(),lye=Ra().arrayEditor,fB=Rf(),sye=fB.getPathString;vB.exports={draw:G3,drawOne:cB,activateLastSelection:cye};function G3(e){var r=e._fullLayout;sB(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=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(ew.stroke,c).call(ew.fill,f).call(uB.dashLine,y?"solid":d,y?4+v:v);if(uye(b,e,a),p){var T=lye(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=iye(l,e);oye(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 fye(e,w)})}}function uye(e,r,t){var a=t.xref+t.yref;uB.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function fye(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 cye(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&&(sB(e),delete e._fullLayout._activeSelectionIndex,G3(e))}}});var dB=B((sRe,hB)=>{function vye(){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}hB.exports=vye});var mB=B((uRe,pB)=>{function hye(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)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}pB.exports=hye});var gB=B((fRe,yB)=>{var dye={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}};yB.exports=dye});var xB=B((cRe,bB)=>{var T1=gB();function pye(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=T1.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=T1.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=T1.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=T1.create();function b(U,G){var X=U.seg.start,Y=U.seg.end,V=G.seg.start,Z=G.seg.end;return r.pointsCollinear(X,V,Z)?r.pointsCollinear(Y,V,Z)||r.pointAboveOrOnLine(Y,V,Z)?1:-1:r.pointAboveOrOnLine(X,V,Z)?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,Z=X.end,j=Y.start,ee=Y.end;t&&t.checkIntersection(X,Y);var me=r.linesIntersect(V,Z,j,ee);if(me===!1){if(!r.pointsCollinear(V,Z,j)||r.pointsSame(V,ee)||r.pointsSame(Z,j))return!1;var fe=r.pointsSame(V,j),he=r.pointsSame(Z,ee);if(fe&&he)return G;var te=!fe&&r.pointBetween(V,j,ee),Le=!he&&r.pointBetween(Z,j,ee);if(fe)return Le?v(G,Z):v(U,ee),G;te&&(he||(Le?v(G,Z):v(U,ee)),v(G,V))}else me.alongA===0&&(me.alongB===-1?v(U,j):me.alongB===0?v(U,me.pt):me.alongB===1&&v(U,ee)),me.alongB===0&&(me.alongA===-1?v(G,V):me.alongA===0?v(G,me.pt):me.alongA===1&&v(G,Z));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 I=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 E=U();if(E){if(e){var F;w.seg.myFill.below===null?F=!0:F=w.seg.myFill.above!==w.seg.myFill.below,F&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(E.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var F;w.seg.myFill.below===null?F=!0:F=w.seg.myFill.above!==w.seg.myFill.below,C?w.seg.myFill.below=C.seg.myFill.above:w.seg.myFill.below=p,F?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(T1.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{function mye(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,U,G){return f.index=I,f.matches_head=U,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function M1(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 yye={union:function(e,r){return M1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return M1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return M1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return M1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return M1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};AB.exports=yye});var kB=B((dRe,MB)=>{var gye={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{var bye=dB(),xye=mB(),SB=xB(),_ye=wB(),k1=TB(),CB=kB(),vl=!1,S1=xye(),So;So={buildLog:function(e){return e===!0?vl=bye():e===!1&&(vl=!1),vl===!1?!1:vl.list},epsilon:function(e){return S1.epsilon(e)},segments:function(e){var r=SB(!0,S1,vl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=SB(!1,S1,vl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:k1.union(e.combined,vl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:k1.intersect(e.combined,vl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:k1.difference(e.combined,vl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:k1.differenceRev(e.combined,vl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:k1.xor(e.combined,vl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:_ye(e.segments,S1,vl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return CB.toPolygon(So,e)},polygonToGeoJSON:function(e){return CB.fromPolygon(So,S1,e)},union:function(e,r){return C1(e,r,So.selectUnion)},intersect:function(e,r){return C1(e,r,So.selectIntersect)},difference:function(e,r){return C1(e,r,So.selectDifference)},differenceRev:function(e,r){return C1(e,r,So.selectDifferenceRev)},xor:function(e,r){return C1(e,r,So.selectXor)}};function C1(e,r,t){var a=So.segments(e),n=So.segments(r),i=So.combine(a,n),o=t(i);return So.polygon(o)}typeof window=="object"&&(window.PolyBool=So);DB.exports=So});var qB=B((mRe,EB)=>{EB.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;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var nw=B((yRe,FB)=>{"use strict";var aw=Yy().dot,V3=(Wn(),vr(ri)).BADNUM,X3=FB.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;ln||b===V3||bo||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===V3||yn||b===V3||bo)return!1;var T=t.length,_=t[0][0],x=t[0][1],w=0,k,M,C,E,F;for(k=1;kMath.max(M,_)||b>Math.max(C,x)))if(bl||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;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var RB={};ja(RB,{BENDPX:()=>wye,MINSELECT:()=>Aye,SELECTDELAY:()=>Tye,SELECTID:()=>Mye});var wye,Aye,Tye,Mye,PB=Ja(()=>{"use strict";wye=1.5,Aye=12,Tye=100,Mye="-select"});var aI=B((gRe,tI)=>{"use strict";var NB=LB(),kye=qB(),E1=Pt(),Sye=Sa().dashStyle,D1=Kt(),Cye=mu(),Dye=_s().makeEventData,N1=Lf(),Lye=N1.freeMode,Eye=N1.rectMode,q1=N1.drawMode,sw=N1.openMode,uw=N1.selectMode,zB=Rf(),BB=(y1(),vr(m1)),GB=L3(),YB=gf().clearOutline,VB=Ef(),iw=VB.handleEllipse,qye=VB.readPaths,Fye=S3().newShapes,Rye=L8(),Pye=tw().activateLastSelection,Z3=or(),Nye=Z3.sorterAsc,XB=nw(),L1=ig(),hl=hn().getFromId,zye=b3(),Bye=U3().redrawReglTraces,J3=(PB(),vr(RB)),qs=J3.MINSELECT,Iye=XB.filter,fw=XB.tester,cw=A3(),IB=cw.p2r,Oye=cw.axValue,Hye=cw.getTransform;function vw(e){return e.subplot!==void 0}function Uye(e,r,t,a,n){var i=!vw(a),o=Lye(n),l=Eye(n),s=sw(n),u=q1(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=Hye(_),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,E=m._invScaleY,F=w,P=k,q="M"+w+","+k,z=a.xaxes[0],I=a.yaxes[0],U=z._length,G=I._length,X=e.altKey&&!(q1(n)&&s),Y,V,Z,j,ee,me,fe;ZB(e,p,a),o&&(Y=Iye([[w,k]],J3.BENDPX));var he=b.selectAll("path.select-outline-"+_.id).data([1]),te=u?m.newshape:m.newselection;u&&(a.hasText=te.label.text||te.label.texttemplate);var Le=u&&!s?te.fillcolor:"rgba(0,0,0,0)",ce=te.line.color||(i?D1.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");he.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?te.opacity/2:1,"stroke-dasharray":Sye(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(D1.stroke,ce).call(D1.fill,Le).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",q+"Z");var Fe=b.append("path").attr("class","zoombox-corners").style({fill:D1.background,stroke:D1.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var Re=b.select(".label-temp");Re.empty()&&(Re=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=m._uid+J3.SELECTID,He=[],ur=j3(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ue=z._id,Ye=I._id;QB(p,Ue,Ye,ur);for(var We=(p.layout||{}).selections||[],Ve=[],ar=!1,Ie=0;Ie=0){p._fullLayout._deactivateShape(p);return}if(!u){var We=m.clickmode;L1.done(ge).then(function(){if(L1.clear(ge),Ue===2){for(he.remove(),ee=0;ee-1&&WB(Ye,p,a.xaxes,a.yaxes,a.subplot,a,he),We==="event"&&P1(p,void 0);Cye.click(p,Ye,_.id)}).catch(Z3.error)}},a.doneFn=function(){Fe.remove(),L1.done(ge).then(function(){L1.clear(ge),!y&&j&&a.selectionDefs&&(j.subtract=X,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(y||u)&&F1(a,y),a.doneFnCompleted&&a.doneFnCompleted(He),f&&P1(p,fe)}).catch(Z3.error)}}function WB(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(Wye(l)){ZB(e,r,i),v=j3(r,t,a,n);var k=Zye(l,v),M=k.pointNumbers.length>0;if(M?Jye(v,k):jye(v)&&(T=HB(k))){for(o&&o.remove(),w=0;w=0}function Xye(e){return e._fullLayout._activeSelectionIndex>=0}function F1(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Vye(n)&&n._fullLayout._deactivateShape(n),Xye(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=q1(t),s=uw(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Fye(u,e)),f&&E1.call("_guiRelayout",n,{shapes:f});var c;s&&!vw(e)&&(c=Rye(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,E1.call("_guiRelayout",n,{selections:c}).then(function(){r&&Pye(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function OB(e){return e._id}function j3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(OB),o=t.map(OB),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Jye(e,r){var t=[],a,n,i,o;for(o=0;o0&&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;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function R1(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ue=UB(e,!0);if(Ue.length){var Ye=Ue[0].xref,We=Ue[0].yref;if(Ye&&We){var Ve=eI(Ue),ar=rI([hl(e,Ye,"x"),hl(e,We,"y")]);ar(He,Ve)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:qe&&P1(e,He),v._reselect=!1}if(!o&&v._deselect){var Ie=v._deselect;l=Ie.xref,s=Ie.yref,Qye(l,s,f)||QB(e,l,s,a),qe&&(He.points.length?P1(e,He):pw(e)),v._deselect=!1}return{eventData:He,selectionTesters:t}}function Kye(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";nI.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 z1={};ja(z1,{axisRefDescription:()=>nge});function nge(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 B1=Ja(()=>{"use strict"});var Th=B((_Re,lI)=>{"use strict";var iI=mw(),oI=Di(),$3=(ni(),vr(ai)),ige=Ra().templatedArray,xRe=(B1(),vr(z1));lI.exports=ige("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:oI({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:iI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:iI.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:oI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var I1={};ja(I1,{PTS_LINESONLY:()=>oge,eventDataKeys:()=>fge,maxScreensAway:()=>uge,minTolerance:()=>lge,toleranceGrowth:()=>sge});var oge,lge,sge,uge,fge,O1=Ja(()=>{"use strict";oge=20,lge=.2,sge=10,uge=20,fge=[]});var yw=B((wRe,sI)=>{"use strict";sI.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Nf=B((ARe,mI)=>{"use strict";var uI=$2().axisHoverFormat,{hovertemplateAttrs:cge,texttemplateAttrs:vge,templatefallbackAttrs:fI}=Hv(),cI=Q0(),hge=Di(),vI=uf().dash,dge=uf().pattern,pge=Sa(),mge=(O1(),vr(I1)),H1=Fn().extendFlat,yge=yw();function hI(e){return{valType:"any",dflt:0,editType:"calc"}}function dI(e){return{valType:"any",editType:"calc"}}function pI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}mI.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:hI("x"),yperiod:hI("y"),xperiod0:dI("x0"),yperiod0:dI("y0"),xperiodalignment:pI("x"),yperiodalignment:pI("y"),xhoverformat:uI("x"),yhoverformat:uI("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:vge(),texttemplatefallback:fI({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:cge({},{keys:mge.eventDataKeys}),hovertemplatefallback:fI(),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:H1({},vI,{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:yge(!0),fillgradient:H1({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:dge,marker:H1({symbol:{valType:"enumerated",values:pge.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:H1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:H1({},vI,{arrayOk:!0}),editType:"calc"},cI("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"},cI("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:hge({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gw=B((MRe,bI)=>{"use strict";var yI=Th(),gI=Nf().line,gge=uf().dash,K3=Fn().extendFlat,bge=Nl().overrideAll,xge=Ra().templatedArray,TRe=(B1(),vr(z1));bI.exports=bge(xge("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:K3({},yI.xref,{}),yref:K3({},yI.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:gI.color,width:K3({},gI.width,{min:1,dflt:1}),dash:K3({},gge,{dflt:"dot"})}}),"arraydraw","from-root")});var AI=B((kRe,wI)=>{"use strict";var xI=or(),Q3=en(),_ge=Oo(),wge=gw(),_I=Rf();wI.exports=function(r,t){_ge(r,t,{name:"selections",handleItemDefaults:Age});for(var a=t.selections,n=0;n{"use strict";TI.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 U1=B((CRe,CI)=>{"use strict";var Tge=Pt(),kI=or(),SI=hn();CI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Tge.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var DI=tw(),G1=aI();LI.exports={moduleType:"component",name:"selections",layoutAttributes:gw(),supplyLayoutDefaults:AI(),supplyDrawNewSelectionDefaults:MI(),includeBasePlot:U1()("selections"),draw:DI.draw,drawOne:DI.drawOne,reselect:G1.reselect,prepSelect:G1.prepSelect,clearOutline:G1.clearOutline,clearSelectionsCache:G1.clearSelectionsCache,selectOnClick:G1.selectOnClick}});var jI=B((LRe,JI)=>{"use strict";var Tw=la(),dl=or(),EI=dl.numberFormat,Mge=K7(),e5=Pt(),II=dl.strTranslate,kge=Ei(),xw=Kt(),zf=Sa(),Sge=mu(),qI=en(),Cge=Cf(),Dge=Ul(),OI=Lf(),r5=OI.selectingOrDrawing,Lge=OI.freeMode,Ege=(Oi(),vr(Ii)).FROM_TL,qge=b3(),Fge=U3().redrawReglTraces,Rge=di(),_w=hn().getFromId,Pge=Mh().prepSelect,Nge=Mh().clearOutline,zge=Mh().selectOnClick,bw=Z8(),Mw=(ni(),vr(ai)),FI=Mw.MINDRAG,uo=Mw.MINZOOM,RI=!0;function Bge(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,E,F,P,q,z,I,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 pe=r.overlays,Ce=0;Ce=0){lr._fullLayout._deactivateShape(lr);return}var wr=lr._fullLayout.clickmode;if(Aw(lr),pe===2&&!f&&Yr(),u)wr.indexOf("select")>-1&&zge(Ce,lr,m,y,r.id,j),wr.indexOf("event")>-1&&Sge.click(lr,Ce,r.id);else if(pe===1&&f){var fr=o?v:c,kr=o==="s"||l==="w"?0:1,qr=fr._name+".range["+kr+"]",$r=Ige(fr,kr),tt="left",Ge="middle";if(fr.fixedrange)return;o?(Ge=o==="n"?"top":"bottom",fr.side==="right"&&(tt="right")):l==="e"&&(tt="right"),lr._context.showAxisRangeEntryBoxes&&Tw.select(Z).call(kge.makeEditable,{gd:lr,immediate:!0,background:lr._fullLayout.paper_bgcolor,text:String($r),fill:fr.tickfont?fr.tickfont.color:"#444",horizontalAlign:tt,verticalAlign:Ge}).on("edit",function(Mr){var rr=fr.d2r(Mr);rr!==void 0&&e5.call("_guiRelayout",lr,qr,rr)})}}Dge.init(j);var fe,he,te,Le,ce,Fe,Re,ge,He,ur;function qe(pe,Ce,lr){var wr=Z.getBoundingClientRect();fe=Ce-wr.left,he=lr-wr.top,e._fullLayout._calcInverseTransform(e);var fr=dl.apply3DTransform(e._fullLayout._invTransform)(fe,he);fe=fr[0],he=fr[1],te={l:fe,r:fe,w:0,t:he,b:he,h:0},Le=e._hmpixcount?e._hmlumcount/e._hmpixcount:xw.luminosity(e._fullLayout.plot_bgcolor),ce="M0,0H"+_+"V"+x+"H0V0",Fe=!1,Re="xy",ur=!1,ge=GI(s,Le,b,T,ce),He=YI(s,b,T)}function Ue(pe,Ce){if(e._transitioningWithDuration)return!1;var lr=Math.max(0,Math.min(_,G*pe+fe)),wr=Math.max(0,Math.min(x,X*Ce+he)),fr=Math.abs(lr-fe),kr=Math.abs(wr-he);te.l=Math.min(fe,lr),te.r=Math.max(fe,lr),te.t=Math.min(he,wr),te.b=Math.max(he,wr);function qr(){Re="",te.r=te.l,te.t=te.b,He.attr("d","M0,0Z")}if(w.isSubplotConstrained)fr>uo||kr>uo?(Re="xy",fr/_>kr/x?(kr=fr*x/_,he>wr?te.t=he-kr:te.b=he+kr):(fr=kr*_/x,fe>lr?te.l=fe-fr:te.r=fe+fr),He.attr("d",t5(te))):qr();else if(k.isSubplotConstrained)if(fr>uo||kr>uo){Re="xy";var $r=Math.min(te.l/_,(x-te.b)/x),tt=Math.max(te.r/_,(x-te.t)/x);te.l=$r*_,te.r=tt*_,te.b=(1-$r)*x,te.t=(1-tt)*x,He.attr("d",t5(te))}else qr();else!C||kr0){var Mr;if(k.isSubplotConstrained||!M&&C.length===1){for(Mr=0;Mr1&&(qr.maxallowed!==void 0&&F===(qr.range[0]1&&($r.maxallowed!==void 0&&P===($r.range[0]<$r.range[1]?"n":"s")||$r.minallowed!==void 0&&P===($r.range[0]<$r.range[1]?"s":"n"))&&(lt=1,Te=0),!(!nt&&!lt)){nt||(nt=1),lt||(lt=1);var tr=qr._offset-le/nt,hr=$r._offset-Te/lt;kr.clipRect.call(zf.setTranslate,le,Te).call(zf.setScale,nt,lt),kr.plot.call(zf.setTranslate,tr,hr).call(zf.setScale,1/nt,1/lt),(nt!==kr.xScaleFactor||lt!==kr.yScaleFactor)&&(zf.setPointGroupScale(kr.zoomScalePts,nt,lt),zf.setTextPointsScale(kr.zoomScaleTxt,nt,lt)),zf.hideOutsideRangePoints(kr.clipOnAxisFalseTraces,kr),kr.xScaleFactor=nt,kr.yScaleFactor=lt}}}}function Tr(pe,Ce,lr){return pe.fixedrange?0:F&&w.xaHash[pe._id]?Ce:P&&(w.isSubplotConstrained?w.xaHash:w.yaHash)[pe._id]?lr:0}function rt(pe,Ce){return Ce?(pe.range=pe._r.slice(),bw(pe,Ce),ot(pe,Ce)):0}function ot(pe,Ce,lr){return pe._length*(1-Ce)*Ege[lr||pe.constraintoward||"middle"]}return Z}function HI(e,r,t,a){var n=dl.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(Cge,a),n.node()}function UI(e,r,t,a,n,i,o){var l=HI(e,"rect",r,t);return Tw.select(l).call(zf.setRect,a,n,i,o),l}function PI(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Hge(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function GI(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",II(t,a)).attr("d",n+"Z")}function YI(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",II(r,t)).attr("d","M0,0Z")}function VI(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"),XI(e,r,n,i)}function XI(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 WI(e){RI&&e.data&&e._context.showTips&&(dl.notifier(dl._(e,"Double-click to zoom back out"),"long",e),RI=!1)}function Uge(e,r){return"M"+(e.l-.5)+","+(r-uo-.5)+"h-3v"+(2*uo+1)+"h3ZM"+(e.r+.5)+","+(r-uo-.5)+"h3v"+(2*uo+1)+"h-3Z"}function Gge(e,r){return"M"+(r-uo-.5)+","+(e.t-.5)+"v-3h"+(2*uo+1)+"v3ZM"+(r-uo-.5)+","+(e.b+.5)+"v3h"+(2*uo+1)+"v-3Z"}function t5(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,uo)/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 zI(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Yge=la(),a5=mu(),Vge=Ul(),Xge=Cf(),Vl=jI().makeDragBox,yi=(ni(),vr(ai)).DRAGGERSIZE;n5.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Yge.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=Vl(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,Vge.unhover(r,v))},r._context.showAxisDragHandles&&(Vl(r,o,l._offset-yi,s._offset-yi,yi,yi,"n","w"),Vl(r,o,l._offset+l._length,s._offset-yi,yi,yi,"n","e"),Vl(r,o,l._offset-yi,s._offset+s._length,yi,yi,"s","w"),Vl(r,o,l._offset+l._length,s._offset+s._length,yi,yi,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=yi),Vl(r,o,l._offset+l._length*.1,f,l._length*.8,yi,"","ew"),Vl(r,o,l._offset,f,l._length*.1,yi,"","w"),Vl(r,o,l._offset+l._length*.9,f,l._length*.1,yi,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=yi),Vl(r,o,c,s._offset+s._length*.1,yi,s._length*.8,"ns",""),Vl(r,o,c,s._offset+s._length*.9,yi,s._length*.1,"s",""),Vl(r,o,c,s._offset,yi,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";Xge(r._draggers,t)}});var QI=B((qRe,KI)=>{"use strict";var $I=Pt();KI.exports=function(r){for(var t=$I.layoutArrayContainers,a=$I.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Wge=q0(),Sw=Gy(),Y1=of(),Zge=c6().sorterAsc,Cw=Pt();V1.containerArrayMatch=QI();var Jge=V1.isAddVal=function(r){return r==="add"||Wge(r)},eO=V1.isRemoveVal=function(r){return r===null||r==="remove"};V1.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&&Y1.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(eO(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Y1.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(Zge),m=t.get(),y=m||[],b=i(v,o).get(),T=[],_=-1,x=y.length,w,k,M,C,E,F,P,q;for(w=0;wy.length-(P?0:1)){Y1.warn("index out of range",o,M);continue}if(F!==void 0)E.length>1&&Y1.warn("Insertion & removal are incompatible with edits to the same index.",o,M),eO(F)?T.push(M):P?(F==="add"&&(F={}),y.splice(M,0,F),b&&b.splice(M,0,{})):Y1.warn("Unrecognized full object edit value",o,M,F),_===-1&&(_=M);else for(k=0;k=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=_));w++)z.push(M);for(w=_;w{"use strict";var iO=da(),oO=Pt(),ro=or(),X1=di(),lO=hn(),W1=lO.cleanId,jge=lO.getFromTrace,Dw=oO.traceIs,$ge=["x","y","z"];pl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ro.log("Clearing previous rejected promises from queue."),e._promises=[]};pl.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=(X1.subplotsRegistry.cartesian||{}).attrRegex,n=(X1.subplotsRegistry.polar||{}).attrRegex,i=(X1.subplotsRegistry.ternary||{}).attrRegex,o=(X1.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(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&&pl.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]=W1(a,n,!0))}pl.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}pl.hasParent=function(e,r){for(var t=nO(r);t;){if(t in e)return!0;t=nO(t)}return!1};pl.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>ro.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;aro.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)?Lw(n,i):!1))return!1}return!0}return!1};pl.collectionsAreEqual=Lw});var Pw=B(sa=>{"use strict";var u5=la(),e3e=da(),r3e=T6(),Xr=or(),Ia=Xr.nestedProperty,qw=V2(),fo=KE(),ml=Pt(),m5=Kv(),zt=di(),to=en(),t3e=$7(),a3e=sl(),l5=Sa(),n3e=Kt(),i3e=kw().initInteractions,o3e=(xf(),vr(bf)),l3e=Mh().clearOutline,hO=nf().dfltConfig,o5=rO(),On=sO(),Ea=U3(),Bf=Nl(),s3e=(ni(),vr(ai)).AX_NAME_PATTERN,Ew=0,uO=5;function u3e(e,r,t,a){var n;if(e=Xr.getGraphDiv(e),qw.init(e),Xr.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&&!Xr.isPlotDiv(e)&&Xr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return sa.addFrames(e,n)}pO(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&&to.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v{Xr.isHidden(e)||zt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",C),e._clearResponsive=()=>window.removeEventListener("resize",C);else{let E=e.offsetWidth,F=e.offsetHeight,P=new ResizeObserver(()=>{let q=e.offsetWidth,z=e.offsetHeight,I=Math.abs(q-E)>1||Math.abs(z-F)>1;E=q,F=z,I&&q&&z&&C()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else Xr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(C=>C.status!=="loaded"):[];var p=Xr.extendFlat({},u._size),m=0;function y(){for(var C=u._basePlotModules,E=0;E["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={},sa._doPlot(e))})}function J1(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function c3e(e){return Xr.extendFlat(hO,e)}function dO(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Xr.error(t)}}function v3e(e,r){var t=n3e.combine(r,"white");dO(e,t)}function pO(e,r){if(!e._context){e._context=Xr.extendDeep({},hO);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=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 mO(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 p3e(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=0&&f=0&&f0&&typeof C.parts[P]!="string";)P--;var q=C.parts[P],z=C.parts[P-1]+"."+q,I=C.parts.slice(0,P).join("."),U=Ia(e.layout,I).get(),G=Ia(a,I).get(),X=C.get();if(E!==void 0){b[M]=E,T[M]=q==="reverse"?E:xu(X);var Y=m5.getLayoutValObject(a,C.parts);if(Y&&Y.impliedEdits&&E!==null)for(var V in Y.impliedEdits)_(Xr.relativeAttr(M,V),Y.impliedEdits[V]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var Z=M==="height"?"width":"height";_(Z,a[Z])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(MO))k(z),Ia(a,I+"._inputRange").set(null);else if(z.match(kO)){k(z),Ia(a,I+"._inputRange").set(null);var j=Ia(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else z.match(b3e)&&Ia(a,I+"._inputDomain").set(null);if(q==="type"){w=U;var ee=G.type==="linear"&&E==="log",me=G.type==="log"&&E==="linear";if(ee||me){if(!w||!w.range)_(I+".autorange",!0);else if(G.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var fe=w.range[0],he=w.range[1];ee?(fe<=0&&he<=0&&_(I+".autorange",!0),fe<=0?fe=he/1e6:he<=0&&(he=fe/1e6),_(I+".range[0]",Math.log(fe)/Math.LN10),_(I+".range[1]",Math.log(he)/Math.LN10)):(_(I+".range[0]",Math.pow(10,fe)),_(I+".range[1]",Math.pow(10,he)))}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"],ml.getComponentMethod("annotations","convertCoords")(e,G,E,_),ml.getComponentMethod("images","convertCoords")(e,G,E,_)}else _(I+".autorange",!0),_(I+".range",null);Ia(a,I+"._inputRange").set(null)}else if(q.match(s3e)){var te=Ia(a,M).get(),Le=(E||{}).type;(!Le||Le==="-")&&(Le="linear"),ml.getComponentMethod("annotations","convertCoords")(e,te,Le,_),ml.getComponentMethod("images","convertCoords")(e,te,Le,_),!I&&te&&E&&(E.range!==void 0||E.autorange!==void 0)&&(k(`${q}.range`),te._inputRange=null)}var ce=o5.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var Fe=ce.property,Re=Y||{editType:"calc"};c!==""&&Fe===""&&(o5.isAddVal(E)?T[M]=null:o5.isRemoveVal(E)?T[M]=(Ia(t,f).get()||[])[c]:Xr.warn("unrecognized full object value",r)),Bf.update(y,Re),u[f]||(u[f]={});var ge=u[f][c];ge||(ge=u[f][c]={}),ge[Fe]=E,delete r[M]}else q==="reverse"?(U.range?U.range.reverse():(_(I+".autorange",!0),U.range=[1,0]),G.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(E===!1&&X!==!1||E!==!1&&X===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(X==="lasso"||X==="select")?y.plot=!0:Y?Bf.update(y,Y):y.calc=!0,C.set(E))}}for(f in u){var He=o5.applyContainerArrayChanges(e,i(t,f),u[f],y,i);He||(y.plot=!0)}for(var ur in x){w=to.getFromId(e,ur);var qe=w&&w._constraintGroup;if(qe){y.calc=!0;for(var Ue in qe)x[Ue]||(to.getFromId(e,Ue)._constraintShrinkable=!0)}}(CO(e)||r.height||r.width)&&(y.plot=!0);var Ye=a.shapes;for(c=0;c1;)if(a.pop(),t=Ia(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function w3e(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=sa.newPlot(e,r,t,a).then(()=>{for(let[I,U]of z)U.forEach(G=>e.on(I,G));return sa.react(e,r,t,a)})}else{e.data=r||[],On.cleanData(e.data),e.layout=t||{},On.cleanLayout(e.layout),T3e(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=S3e(e,s,v,d,p),y=m.newDataRevision,b=k3e(e,l,c,d,p,y);if(CO(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function k3e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Bf.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=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;za._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&&Xr.isPlainObject(r);if(M)x.push({type:"object",data:b(Xr.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&FF)&&P.push(_);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function D3e(e,r,t){if(e=Xr.getGraphDiv(e),r==null)return Promise.resolve();if(!Xr.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(Xr.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&&EwC.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Xr.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=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 fo&&fo.add(e,l,u,s,f),zt.modifyFrames(e,i)}function E3e(e){e=Xr.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 q3e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Xr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Xr.inverseTransformMatrix(Xr.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=q3e,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=Xr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(o3e.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")}sa.animate=C3e;sa.addFrames=D3e;sa.deleteFrames=L3e;sa.addTraces=_O;sa.deleteTraces=wO;sa.extendTraces=bO;sa.moveTraces=Fw;sa.prependTraces=xO;sa.newPlot=d3e;sa._doPlot=u3e;sa.purge=E3e;sa.react=M3e;sa.redraw=h3e;sa.relayout=Z1;sa.restyle=v5;sa.setPlotConfig=c3e;sa.update=d5;sa._guiRelayout=Rw(Z1);sa._guiRestyle=Rw(v5);sa._guiUpdate=Rw(d5);sa._storeDirectGUIEdit=g3e});var yc=B(yl=>{"use strict";var R3e=Pt();yl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};yl.getRedrawFunc=function(e){return function(){R3e.getComponentMethod("colorbar","draw")(e)}};yl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};yl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var DO=window.URL||window.webkitURL;yl.createObjectURL=function(e){return DO.createObjectURL(e)};yl.revokeObjectURL=function(e){return DO.revokeObjectURL(e)};yl.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=P3e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};yl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};yl.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};yl.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 P3e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var zw=la(),BRe=or(),N3e=Sa(),z3e=Kt(),IRe=(xf(),vr(bf)),Nw=/"/g,gc="TOBESTRIPPED",B3e=new RegExp(`("${gc})|(${gc}")|("${gc})|(${gc}")`,"g"),I3e=["&","&","&",""",""",""","'","'","'"],O3e=["<","<","<"],H3e=[">",">",">"];function U3e(e){let r=zw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return I3e.includes(n)?a:O3e.includes(n)?"<":H3e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function G3e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}LO.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(N3e.setRect,0,0,l,s).call(z3e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Y3e=or(),V3e=hg().EventEmitter,j1=yc();function X3e(e){var r=e.emitter||new V3e,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"||Y3e.isSafari()?b=j1.encodeSVG(o):(y=j1.createBlob(o,"svg"),b=j1.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,j1.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,j1.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},m.src=b});return e.promise?t:r}EO.exports=X3e});var Iw=B((URe,RO)=>{"use strict";var qO=da(),FO=Pw(),W3e=di(),Fs=or(),$1=yc(),Z3e=g5(),J3e=b5(),j3e=v2().version,Bw=(G4(),vr(U4)).default;function $3e(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],Bw[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(Bw.format.values,", "," or ")+".");var l={};function s(k,M){return Fs.coerce(r,l,Bw,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&&qO(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&qO(i.height)&&(y.height=i.height);var b=Fs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=$1.getRedrawFunc(m);function _(){return new Promise(function(k){setTimeout(k,$1.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var C=Z3e(m,u,v),E=m._fullLayout.width,F=m._fullLayout.height;function P(){FO.purge(m),document.body.removeChild(m)}if(u==="full-json"){var q=W3e.graphJson(m,!1,"object",!0,!0);return q.version=j3e,q=JSON.stringify(q),P(),k(p?q:$1.encodeJSON(q))}if(P(),u==="svg")return k(p?C:$1.encodeSVG(C));var z=document.createElement("canvas");z.id=Fs.randstr(),J3e({format:u,width:E,height:F,scale:v,canvas:z,svg:C,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace($1.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)})})}RO.exports=$3e});var zO=B((GRe,NO)=>{"use strict";var gl=or(),K3e=di(),Q3e=Kv(),e5e=nf().dfltConfig,Xl=gl.isPlainObject,xc=Array.isArray,Ow=gl.isArrayOrTypedArray;NO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Q3e.get(),n=[],i={_context:gl.extendFlat({},e5e)},o,l;xc(r)?(i.data=gl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(gi("array","data"))),Xl(t)?(i.layout=gl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(gi("object","layout"))),K3e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(gi("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;xc[x].length&&a.push(gi("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][_],gl.validate(k,w)?M!==k&&M!==+k&&a.push(gi("dynamic",n,u.concat(x,_),k,M)):a.push(gi("value",n,u.concat(x,_),k))}else a.push(gi("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var l5e=or(),_5=yc();function s5e(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(l5e.isSafari()){var f=t==="svg"?",":";base64,";return _5.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}BO.exports=s5e});var Hw=B((VRe,GO)=>{"use strict";var w5=or(),OO=Ei(),u5e=Iw(),f5e=IO(),HO=yc(),UO=40;function c5e(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=u5e(e,r),o=r.filename||e.fn;if(!o){let s=HO.getPlotTitle(e);if(s&&!OO.matchTex(s))o=w5.slugify(s,UO);else{let u=HO.getPlotSubtitle(e);u&&!OO.matchTex(u)&&(o=w5.slugify(u,UO))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),f5e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}GO.exports=c5e});var ZO=B(Uw=>{"use strict";var Co=or(),Do=Co.isPlainObject,YO=Kv(),VO=di(),v5e=Fl(),XO=Ra(),WO=nf().dfltConfig;Uw.makeTemplate=function(e){e=Co.isPlainObject(e)?e:Co.getGraphDiv(e),e=Co.extendDeep({_context:WO},{data:e.data,layout:e.layout}),VO.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={};K1(d,p,d5e.bind(null,d));var m=Co.coerce(d,{},v5e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),K1(t,a.layout,h5e.bind(null,t)),delete a.layout.template;var n=t.template;if(Do(n)){var i=n.layout,o,l,s,u,f,c;Do(i)&&A5(i,a.layout);var v=n.data;if(Do(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;ob?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=bl(_,w,x);Do(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&p5e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(m5e)};function p5e(e){for(var r=0;r{"use strict";var oi=Pw();tn._doPlot=oi._doPlot;tn.newPlot=oi.newPlot;tn.restyle=oi.restyle;tn.relayout=oi.relayout;tn.redraw=oi.redraw;tn.update=oi.update;tn._guiRestyle=oi._guiRestyle;tn._guiRelayout=oi._guiRelayout;tn._guiUpdate=oi._guiUpdate;tn._storeDirectGUIEdit=oi._storeDirectGUIEdit;tn.react=oi.react;tn.extendTraces=oi.extendTraces;tn.prependTraces=oi.prependTraces;tn.addTraces=oi.addTraces;tn.deleteTraces=oi.deleteTraces;tn.moveTraces=oi.moveTraces;tn.purge=oi.purge;tn.addFrames=oi.addFrames;tn.deleteFrames=oi.deleteFrames;tn.animate=oi.animate;tn.setPlotConfig=oi.setPlotConfig;var y5e=z2().getGraphDiv,g5e=P3().eraseActiveShape;tn.deleteActiveShape=function(e){return g5e(y5e(e))};tn.toImage=Iw();tn.validate=zO();tn.downloadImage=Hw();var JO=ZO();tn.makeTemplate=JO.makeTemplate;tn.validateTemplate=JO.validateTemplate});var Yw=B((ZRe,$O)=>{"use strict";var Gw=or(),b5e=Pt();$O.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=b5e.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=B((JRe,eH)=>{"use strict";var KO=or().dateTick0,x5e=(Wn(),vr(ri)),_5e=x5e.ONEWEEK;function QO(e,r){return e%_5e===0?KO(r,1):KO(r,0)}eH.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",QO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",QO(l,t.ycalendar)),n("yperiodalignment"))}}});var aH=B((jRe,tH)=>{"use strict";var rH=["orientation","groupnorm","stackgaps"];tH.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{"use strict";var nH=Kt(),iH=Ol().hasColorscale,oH=th(),w5e=Ti();lH.exports=function(r,t,a,n,i,o={}){var l=w5e.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),iH(r,"marker")&&oH(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=nH.background:u=nH.defaultLine,i("marker.line.color",u),iH(r,"marker.line")&&oH(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=B((KRe,sH)=>{"use strict";var A5e=or().isArrayOrTypedArray,T5e=Ol().hasColorscale,M5e=th();sH.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),T5e(r,"line"))M5e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(A5e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var fH=B((QRe,uH)=>{"use strict";uH.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Ww=B((ePe,cH)=>{"use strict";var k5e=or();cH.exports=function(e,r,t,a,n){n=n||{},a("textposition"),k5e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Zw=B((rPe,hH)=>{"use strict";var k5=Kt(),vH=or().isArrayOrTypedArray;function S5e(e){for(var r=k5.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var dH=or(),C5e=Pt(),D5e=Nf(),L5e=(O1(),vr(I1)),Sh=Ti(),E5e=Yw(),q5e=Vw(),F5e=aH(),R5e=M5(),P5e=Xw(),pH=fH(),N5e=Ww(),z5e=Zw(),B5e=or().coercePattern;mH.exports=function(r,t,a,n){function i(d,p){return dH.coerce(r,t,D5e,d,p)}var o=E5e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){q5e(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{"use strict";var I5e=_1().getAxisGroup;gH.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=I5e(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=B((nPe,xH)=>{"use strict";var O5e=or(),H5e=bH(),U5e=Nf();xH.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return O5e.coerce(n._input,n,U5e,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var wH=B((iPe,_H)=>{"use strict";var G5e=or(),Y5e=gg();_H.exports=function(e,r){function t(n,i){return G5e.coerce(e,r,Y5e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var jw=B((oPe,TH)=>{"use strict";var V5e=da(),AH=or(),X5e=AH.dateTime2ms,S5=AH.incrementMonth,W5e=(Wn(),vr(ri)),Z5e=W5e.ONEAVGMONTH;TH.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(V5e(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=X5e(v,u)||0,p=[],m=[],y=[],b=n.length,T=0;T_;)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 Q1=B((lPe,kH)=>{"use strict";var $w=Ol().hasColorscale,Kw=u7(),MH=Ti();kH.exports=function(r,t){MH.hasLines(t)&&$w(t,"line")&&Kw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),MH.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=B((sPe,SH)=>{"use strict";var Tn=or();SH.exports=function(r,t){for(var a=0;a{"use strict";var CH=or();DH.exports=function(r,t){CH.isArrayOrTypedArray(t.selectedpoints)&&CH.tagSelected(r,t)}});var Ch=B((fPe,zH)=>{"use strict";var EH=da(),r9=or(),ep=en(),qH=jw(),e9=(Wn(),vr(ri)).BADNUM,t9=Ti(),J5e=Q1(),j5e=Qw(),$5e=LH();function K5e(e,r){var t=e._fullLayout,a=r._xA=ep.getFromId(e,r.xaxis||"x","x"),n=r._yA=ep.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=qH(r,a,"x",i),s=qH(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;PH(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 E=RH(r,c);FH(e,r,a,n,u,f,E)}var F=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;bb&&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{"use strict";BH.exports=C5;var Q5e=or().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;iebe,eventDataKeys:()=>rbe});var ebe,rbe,HH=Ja(()=>{"use strict";ebe=3,rbe=["value","label"]});var XH=B((vPe,VH)=>{"use strict";var xl=da(),{isArrayOrTypedArray:_u}=or(),{BADNUM:Dh}=(Wn(),vr(ri)),tbe=Pt(),rp=en(),{getAxisGroup:abe}=_1(),D5=IH(),{TEXTPAD:nbe}=(HH(),vr(OH)),{LINE_SPACING:ibe}=(Oi(),vr(Ii)),{BR_TAG_ALL:obe}=Ei();function lbe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!xl(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*ibe*t+nbe;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 ybe(e,r,t,a){for(var n=Lh(a),i=0;i{"use strict";var WH=Ch(),ZH=XH().setGroupPositions;function bbe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var _be=Sa(),eU=(Wn(),vr(ri)),tp=eU.BADNUM,rU=eU.LOG_CLIP,$H=rU+.5,KH=rU-.5,L5=or(),wbe=L5.segmentsIntersect,QH=L5.constrain,f9=(O1(),vr(I1));tU.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,E,F,P,q,z,I,U,G,X,Y,V,Z,j;function ee(Ge){var Mr=r[Ge];if(!Mr)return!1;var rr=t.linearized?n.l2p(Mr.x):n.c2p(Mr.x),Rr=t.linearized?i.l2p(Mr.y):i.c2p(Mr.y);if(rr===tp){if(o&&(rr=n.c2p(Mr.x,!0)),rr===tp)return!1;l&&Rr===tp&&(rr*=Math.abs(n._m*u*(n._m>0?$H:KH)/(i._m*s*(i._m>0?$H:KH)))),rr*=1e3}if(Rr===tp){if(l&&(Rr=i.c2p(Mr.y,!0)),Rr===tp)return!1;Rr*=1e3}return[rr,Rr]}function me(Ge,Mr,rr,Rr){var at=rr-Ge,nt=Rr-Mr,lt=.5-Ge,le=.5-Mr,Te=at*at+nt*nt,tr=at*lt+nt*le;if(tr>0&&tr1||Math.abs(lt.y-rr[0][1])>1)&&(lt=[lt.x,lt.y],Rr&&Le(lt,Ge)Re||Ge[1]He)return[QH(Ge[0],Fe,Re),QH(Ge[1],ge,He)]}function Pr(Ge,Mr){if(Ge[0]===Mr[0]&&(Ge[0]===Fe||Ge[0]===Re)||Ge[1]===Mr[1]&&(Ge[1]===ge||Ge[1]===He))return!0}function Br(Ge,Mr){var rr=[],Rr=_r(Ge),at=_r(Mr);return Rr&&at&&Pr(Rr,at)||(Rr&&rr.push(Rr),at&&rr.push(at)),rr}function $e(Ge,Mr,rr){return function(Rr,at){var nt=_r(Rr),lt=_r(at),le=[];if(nt&<&&Pr(nt,lt))return le;nt&&le.push(nt),lt&&le.push(lt);var Te=2*L5.constrain((Rr[Ge]+at[Ge])/2,Mr,rr)-((nt||Rr)[Ge]+(lt||at)[Ge]);if(Te){var tr;nt&<?tr=Te>0==nt[Ge]>lt[Ge]?nt:lt:tr=nt||lt,tr[Ge]+=Te}return le}}var mr;p==="linear"||p==="spline"?mr=Ie:p==="hv"||p==="vh"?mr=Br:p==="hvh"?mr=$e(0,Fe,Re):p==="vhv"&&(mr=$e(1,ge,He));function Yr(Ge,Mr){var rr=Mr[0]-Ge[0],Rr=(Mr[1]-Ge[1])/rr,at=(Ge[1]*Mr[0]-Mr[1]*Ge[0])/rr;return at>0?[Rr>0?Fe:Re,He]:[Rr>0?Re:Fe,ge]}function ue(Ge){var Mr=Ge[0],rr=Ge[1],Rr=Mr===x[w-1][0],at=rr===x[w-1][1];if(!(Rr&&at))if(w>1){var nt=Mr===x[w-2][0],lt=rr===x[w-2][1];Rr&&(Mr===Fe||Mr===Re)&&nt?lt?w--:x[w-1]=Ge:at&&(rr===ge||rr===He)&<?nt?w--:x[w-1]=Ge:x[w++]=Ge}else x[w++]=Ge}function Ee(Ge){x[w-1][0]!==Ge[0]&&x[w-1][1]!==Ge[1]&&ue([Ye,We]),ue(Ge),Ve=null,Ye=We=0}var Tr=L5.isArrayOrTypedArray(c);function rt(Ge){if(Ge&&f&&(Ge.i=k,Ge.d=r,Ge.trace=a,Ge.marker=Tr?c[Ge.i]:c,Ge.backoff=f),fe=Ge[0]/s,he=Ge[1]/u,qe=Ge[0]Re?Re:0,Ue=Ge[1]He?He:0,qe||Ue){if(!w)x[w++]=[qe||Ge[0],Ue||Ge[1]];else if(Ve){var Mr=mr(Ve,Ge);Mr.length>1&&(Ee(Mr[0]),x[w++]=Mr[1])}else ar=mr(x[w-1],Ge)[0],x[w++]=ar;var rr=x[w-1];qe&&Ue&&(rr[0]!==qe||rr[1]!==Ue)?(Ve&&(Ye!==qe&&We!==Ue?ue(Ye&&We?Yr(Ve,Ge):[Ye||qe,We||Ue]):Ye&&We&&ue([Ye,We])),ue([qe,Ue])):Ye-qe&&We-Ue&&ue([qe||Ye,Ue||We]),Ve=Ge,Ye=qe,We=Ue}else Ve&&Ee(mr(Ve,Ge)[0]),x[w++]=Ge}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Ve=null,rt(M),k++;k<_;k++){if(E=ee(k),!E){if(v)continue;break}if(!m||!t.simplify){rt(E);continue}var ot=ee(k+1);if(U=Le(E,M),!(!(y&&(w===0||w===_-1))&&Ute(P,ot))break;C=P,Y=I[0]*z[0]+I[1]*z[1],Y>G?(G=Y,E=P,q=!1):Y=r.length||!P)break;rt(P),M=P}}Ve&&ue([Ye||Ve[0],We||Ve[1]]),b.push(x.slice(0,w))}var pe=p.slice(p.length-1);if(f&&pe!=="h"&&pe!=="v"){for(var Ce=!1,lr=-1,wr=[],fr=0;fr{"use strict";var nU={tonextx:1,tonexty:1,tonext:1};iU.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Wl=la(),Abe=Pt(),ap=or(),Eh=ap.ensureSingle,lU=ap.identity,Sn=Sa(),qh=Ti(),Tbe=aU(),Mbe=c9(),E5=nw().tester;sU.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Mbe(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(),kbe(r,l,t),f){o&&(s=o());var v=Wl.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){oU(r,p,t,d,c,this,i)})})}else l.each(function(d,p){oU(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function kbe(e,r,t){r.each(function(a){var n=Eh(Wl.select(this),"g","fills");Sn.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,lU);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Eh(Wl.select(this),"path","js-fill")})})}function oU(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Sbe(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=Wl.select(i),y=Eh(m,"g","errorbars"),b=Eh(m,"g","lines"),T=Eh(m,"g","points"),_=Eh(m,"g","text");if(Abe.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 E="",F=[],P=d._prevtrace,q=null,z=null;P&&(E=P._prevRevpath||"",w=P._nextFill,F=P._ownPolygons,q=P._fillsegments,z=P._fillElement);var I,U,G="",X="",Y,V,Z,j,ee,me,fe=[];d._polygons=[];var he=[],te=[],Le=ap.noop;if(x=d._ownFill,qh.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Y=Sn.steps(p.shape),V=Sn.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]?Sn.smoothclosed($e.slice(1),p.smoothing):Sn.smoothopen($e,p.smoothing)}:Y=V=function($e){return"M"+$e.join("L")},Z=function($e){return V($e.reverse())},te=Tbe(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}),he=new Array(te.length);var ce=0;for(s=0;s=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{"use strict";fU.exports={container:"marker",min:"cmin",max:"cmax"}});var v9=B((gPe,cU)=>{"use strict";var F5=en();cU.exports=function(r,t,a){var n={},i={_fullLayout:a},o=F5.getFromTrace(i,t,"x"),l=F5.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=F5.tickText(o,o.c2l(s),!0).text,n.yLabel=F5.tickText(l,l.c2l(u),!0).text,n}});var m9=B((bPe,vU)=>{"use strict";var h9=la(),Fh=Sa(),Cbe=Pt();function Dbe(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(Fh.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Fh.fillGroupStyle,e,!1),Cbe.getComponentMethod("errorbars","style")(r)}function d9(e,r,t){Fh.pointStyle(e.selectAll("path.point"),r,t)}function p9(e,r,t){Fh.textPointStyle(e.selectAll("text"),r,t)}function Lbe(e,r,t){var a=r[0].trace;a.selectedpoints?(Fh.selectedPointStyle(t.selectAll("path.point"),a),Fh.selectedTextStyle(t.selectAll("text"),a)):(d9(t,a,e),p9(t,a,e))}vU.exports={style:Dbe,stylePoints:d9,styleText:p9,styleOnSelect:Lbe}});var y9=B((xPe,hU)=>{"use strict";var Rh=Kt(),Ebe=Ti();hU.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Rh.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&&Rh.opacity(i)?i:o&&Rh.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Rh.opacity(n)<.3?Rh.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Rh.opacity(a)&&Ebe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var mU=B((_Pe,pU)=>{"use strict";var R5=or(),dU=mu(),qbe=Pt(),Fbe=y9(),g9=Kt(),Rbe=R5.fillText;pU.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 Z=Math.max(3,X.mrc||0),j=1-1/Z,ee=Math.abs(l.c2p(X.x)-u);return ee=Math.min(Y,V)&&f<=Math.max(Y,V)?0:1/0}var Z=Math.max(3,X.mrc||0),j=1-1/Z,ee=Math.abs(s.c2p(X.y)-f);return eefe!=He>=fe&&(Fe=Le[te-1][0],Re=Le[te][0],He-ge&&(ce=Fe+(Re-Fe)*(fe-ge)/(He-ge),Z=Math.min(Z,ce),j=Math.max(j,ce)));return Z=Math.max(Z,0),j=Math.min(j,l._length),{x0:Z,x1:j,y0:fe,y1:fe}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=q(o._fillElement)&&!q(o._fillExclusionElement);if(I){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),R5.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&&!R5.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var bU=B((wPe,gU)=>{"use strict";var yU=Ti();gU.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&&!yU.hasMarkers(l)&&!yU.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";xU.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var MU=B((TPe,TU)=>{"use strict";var P5=Pt().traceIs,b9=D7();TU.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Pbe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Pbe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Nbe(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,AU(i,a)){var u=wU(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(AU(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function wU(e){return{v:"x",h:"y"}[e.orientation||"v"]}function AU(e,r){var t=wU(e),a=P5(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var SU=B((MPe,kU)=>{"use strict";var zbe=so().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;i0||zbe(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 LU=B((kPe,DU)=>{"use strict";var CU=Kt(),Ibe=gs(),Obe=or();DU.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(C,E){return Obe.coerce2(r,t,n.attributes,C,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=CU.mix(i,n.bgColor,n.blend||Ibe.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=CU.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=B((SPe,NU)=>{"use strict";var EU=da(),Hbe=Pt(),np=or(),Ube=Ra(),Gbe=Oo(),x9=sl(),qU=K6(),FU=e7(),Ybe=a7(),Vbe=n7(),Xbe=SU(),Wbe=LU(),Zbe=$7(),RU=Hg(),N5=(ni(),vr(ai)).WEEKDAY_PATTERN,Jbe=(ni(),vr(ai)).HOUR_PATTERN;NU.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=Hbe.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=np.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"),RU(t,i),Zbe(r,t,a,n),Xbe(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(Vbe(r,t,a,c,n),!u)return t;a("title.text",b),np.coerceFont(a,"title.font",l,{overrideDflt:{size:np.bigFont(l.size),color:y}}),qU(r,t,a,c);var T=n.hasMinor;if(T&&(Ube.newContainer(t,"minor"),qU(r,t,a,c,{isMinor:!0})),Ybe(r,t,a,c,n),FU(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,FU(r,t,a,n),n.isMinor=_}Wbe(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(Gbe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:jbe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=PU(i[l]),s){o=N5;break}}var u=a("pattern",o);if(u===N5)for(l=0;l<2;l++)s=PU(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(!EU(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(!EU(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]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Kbe=da(),z5=or();zU.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||(Kbe(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 XU=B((DPe,VU)=>{"use strict";var _c=or(),BU=Kt(),Qbe=_s().isUnifiedHover,exe=k8(),IU=Ra(),rxe=Uv(),OU=sl(),txe=MU(),HU=_9(),axe=_1(),UU=w9(),T9=hn(),Rs=T9.id2name,GU=T9.name2id,nxe=(ni(),vr(ai)).AX_ID_PATTERN,YU=Pt(),B5=YU.traceIs,A9=YU.getComponentMethod;function I5(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}VU.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{"use strict";var ixe=la(),WU=Pt(),O5=or(),Zo=Sa(),H5=en();ZU.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(Zo.setTranslate,0,0).call(Zo.setScale,1,1),y.plot.call(Zo.setTranslate,b._offset,T._offset).call(Zo.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Zo.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Zo.setTextPointsScale,1,1),_.call(Zo.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,E=[];if(M){var F=O5.simpleMap(y.xr0,_.r2l),P=O5.simpleMap(y.xr1,_.r2l),q=F[1]-F[0],z=P[1]-P[0];E[0]=(F[0]*(1-b)+b*P[0]-F[0])/(F[1]-F[0])*w,E[2]=w*(1-b+b*z/q),_.range[0]=_.l2r(F[0]*(1-b)+b*P[0]),_.range[1]=_.l2r(F[1]*(1-b)+b*P[1])}else E[0]=0,E[2]=w;if(C){var I=O5.simpleMap(y.yr0,x.r2l),U=O5.simpleMap(y.yr1,x.r2l),G=I[1]-I[0],X=U[1]-U[0];E[1]=(I[1]*(1-b)+b*U[1]-I[1])/(I[0]-I[1])*k,E[3]=k*(1-b+b*X/G),x.range[0]=_.l2r(I[0]*(1-b)+b*U[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*U[1])}else E[1]=0,E[3]=k;H5.drawOne(r,_,{skipTitle:!0}),H5.drawOne(r,x,{skipTitle:!0}),H5.redrawComponents(r,[_._id,x._id]);var Y=M?w/E[2]:1,V=C?k/E[3]:1,Z=M?E[0]:0,j=C?E[1]:0,ee=M?E[0]/E[2]*w:0,me=C?E[1]/E[3]*k:0,fe=_._offset-ee,he=x._offset-me;T.clipRect.call(Zo.setTranslate,Z,j).call(Zo.setScale,1/Y,1/V),T.plot.call(Zo.setTranslate,fe,he).call(Zo.setScale,Y,V),Zo.setPointGroupScale(T.zoomScalePts,1/Y,1/V),Zo.setTextPointsScale(T.zoomScaleTxt,1/Y,1/V)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var ip=B(Ui=>{"use strict";var G5=la(),jU=Pt(),wc=or(),oxe=di(),lxe=Sa(),$U=W2().getModuleCalcData,If=hn(),Zl=(ni(),vr(ai)),sxe=(xf(),vr(bf)),wa=wc.ensureSingle;function U5(e,r,t){return wc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ac=Zl.zindexSeparator;Ui.name="cartesian";Ui.attr=["xaxis","yaxis"];Ui.idRoot=["x","y"];Ui.idRegex=Zl.idRegex;Ui.attrRegex=Zl.attrRegex;Ui.attributes=_U();Ui.layoutAttributes=sl();Ui.supplyLayoutDefaults=XU();Ui.transitionAxes=JU();Ui.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;u0){var d=v.id;if(d.indexOf(Ac)!==-1)continue;d+=Ac+(u+1),v=wc.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(w+=Ac+x),_.push(l+w),o=0;o1,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(If.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(If.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function eG(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=G5.select(this);f.remove(),rG(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Y5=Ti();tG.exports={hasLines:Y5.hasLines,hasMarkers:Y5.hasMarkers,hasText:Y5.hasText,isBubble:Y5.isBubble,attributes:Nf(),layoutAttributes:gg(),supplyDefaults:yH(),crossTraceDefaults:Jw(),supplyLayoutDefaults:wH(),calc:Ch().calc,crossTraceCalc:jH(),arraysToCalcdata:Qw(),plot:uU(),colorbar:q5(),formatLabels:v9(),style:m9().style,styleOnSelect:m9().styleOnSelect,hoverPoints:mU(),selectPoints:bU(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ip(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var oG=B((FPe,iG)=>{"use strict";var fxe=la(),cxe=Kt(),nG=mw(),M9=or(),vxe=M9.strScale,hxe=M9.strRotate,dxe=M9.strTranslate;iG.exports=function(r,t,a){var n=r.node(),i=nG[a.arrowhead||0],o=nG[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)){I();return}if(c){if(c*c>b*b+T*T){I();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){I();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{"use strict";var lG=la(),k9=Pt(),pxe=di(),Hf=or(),S9=Hf.strTranslate,lp=en(),Tc=Kt(),wu=Sa(),sG=mu(),C9=Ei(),D9=Cf(),op=Ul(),mxe=Ra().arrayEditor,yxe=oG();cG.exports={draw:gxe,drawOne:uG,drawRaw:fG};function gxe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?at="right":at="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[at]}for(var ge=!1,He=["x","y"],ur=0;ur1)&&(Ye===Ue?(ot=We.r2fraction(r["a"+qe]),(ot<0||ot>1)&&(ge=!0)):ge=!0),mr=We._offset+We.r2p(r[qe]),Ee=.5}else{var pe=rt==="domain";qe==="x"?(ue=r[qe],mr=pe?We._offset+We._length*ue:mr=l.l+l.w*ue):(ue=1-r[qe],mr=pe?We._offset+We._length*ue:mr=l.t+l.h*ue),Ee=r.showarrow?.5:ue}if(r.showarrow){$e.head=mr;var Ce=r["a"+qe];if(Tr=ar*Re(.5,r.xanchor)-Ie*Re(.5,r.yanchor),Ye===Ue){var lr=lp.getRefType(Ye);lr==="domain"?(qe==="y"&&(Ce=1-Ce),$e.tail=We._offset+We._length*Ce):lr==="paper"?qe==="y"?(Ce=1-Ce,$e.tail=l.t+l.h*Ce):$e.tail=l.l+l.w*Ce:$e.tail=We._offset+We.r2p(Ce),Yr=Tr}else $e.tail=mr+Ce,Yr=Tr+Ce;$e.text=$e.tail+Tr;var wr=o[qe==="x"?"width":"height"];if(Ue==="paper"&&($e.head=Hf.constrain($e.head,1,wr-1)),Ye==="pixel"){var fr=-Math.max($e.tail-3,$e.text),kr=Math.min($e.tail+3,$e.text)-wr;fr>0?($e.tail+=fr,$e.text+=fr):kr>0&&($e.tail-=kr,$e.text-=kr)}$e.tail+=Br,$e.head+=Br}else Tr=_r*Re(Ee,Pr),Yr=Tr,$e.text=mr+Tr;$e.text+=Br,Tr+=Br,Yr+=Br,r["_"+qe+"padplus"]=_r/2+Yr,r["_"+qe+"padminus"]=_r/2-Yr,r["_"+qe+"size"]=_r,r["_"+qe+"shift"]=Tr}if(ge){M.remove();return}var qr=0,$r=0;if(r.align!=="left"&&(qr=(te-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&($r=(Le-he)*(r.valign==="middle"?.5:1)),ee)j.select("svg").attr({x:F+qr-1,y:F+$r}).call(wu.setClipUrl,q?m:null,e);else{var tt=F+$r-me.top,Ge=F+qr-me.left;G.call(C9.positionText,Ge,tt).call(wu.setClipUrl,q?m:null,e)}z.select("rect").call(wu.setRect,F,F,te,Le),P.call(wu.setRect,C/2,C/2,ce-C,Fe-C),M.call(wu.setTranslate,Math.round(y.x.text-ce/2),Math.round(y.y.text-Fe/2)),_.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Mr=function(Rr,at){T.selectAll(".annotation-arrow-g").remove();var nt=y.x.head,lt=y.y.head,le=y.x.tail+Rr,Te=y.y.tail+at,tr=y.x.text+Rr,hr=y.y.text+at,ra=Hf.rotationXYMatrix(b,tr,hr),Ca=Hf.apply2DTransform(ra),Ha=Hf.apply2DTransform2(ra),an=+P.attr("width"),yn=+P.attr("height"),sn=tr-.5*an,Yn=sn+an,qa=hr-.5*yn,un=qa+yn,fn=[[sn,qa,sn,un],[sn,un,Yn,un],[Yn,un,Yn,qa],[Yn,qa,sn,qa]].map(Ha);if(!fn.reduce(function(Da,Ln){return Da^!!Hf.segmentsIntersect(nt,lt,nt+1e6,lt+1e6,Ln[0],Ln[1],Ln[2],Ln[3])},!1)){fn.forEach(function(Da){var Ln=Hf.segmentsIntersect(le,Te,nt,lt,Da[0],Da[1],Da[2],Da[3]);Ln&&(le=Ln.x,Te=Ln.y)});var gn=r.arrowwidth,si=r.arrowcolor,bn=r.arrowside,Dn=T.append("g").style({opacity:Tc.opacity(si)}).classed("annotation-arrow-g",!0),Ir=Dn.append("path").attr("d","M"+le+","+Te+"L"+nt+","+lt).style("stroke-width",gn+"px").call(Tc.stroke,Tc.rgb(si));if(yxe(Ir,bn,r),s.annotationPosition&&Ir.node().parentNode&&!a){var ca=nt,Zt=lt;if(r.standoff){var Aa=Math.sqrt(Math.pow(nt-le,2)+Math.pow(lt-Te,2));ca+=r.standoff*(le-nt)/Aa,Zt+=r.standoff*(Te-lt)/Aa}var za=Dn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(le-ca)+","+(Te-Zt),transform:S9(ca,Zt)}).style("stroke-width",gn+6+"px").call(Tc.stroke,"rgba(0,0,0,0)").call(Tc.fill,"rgba(0,0,0,0)"),Vn,ba;op.init({element:za.node(),gd:e,prepFn:function(){var Da=wu.getTranslate(M);Vn=Da.x,ba=Da.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Da,Ln){var Fo=Ca(Vn,ba),Qo=Fo[0]+Da,co=Fo[1]+Ln;M.call(wu.setTranslate,Qo,co),d("x",Of(n,Da,"x",l,r)),d("y",Of(i,Ln,"y",l,r)),r.axref===r.xref&&d("ax",Of(n,Da,"ax",l,r)),r.ayref===r.yref&&d("ay",Of(i,Ln,"ay",l,r)),Dn.attr("transform",S9(Da,Ln)),_.attr({transform:"rotate("+b+","+Qo+","+co+")"})},doneFn:function(){k9.call("_guiRelayout",e,p());var Da=document.querySelector(".js-notes-box-panel");Da&&Da.redraw(Da.selectedObj)}})}}};if(r.showarrow&&Mr(0,0),x){var rr;op.init({element:M.node(),gd:e,prepFn:function(){rr=_.attr("transform")},moveFn:function(Rr,at){var nt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Of(n,Rr,"ax",l,r)):d("ax",r.ax+Rr),r.ayref===r.yref?d("ay",Of(i,at,"ay",l.w,r)):d("ay",r.ay+at),Mr(Rr,at);else{if(a)return;var lt,le;if(n)lt=Of(n,Rr,"x",l,r);else{var Te=r._xsize/l.w,tr=r.x+(r._xshift-r.xshift)/l.w-Te/2;lt=op.align(tr+Rr/l.w,Te,0,1,r.xanchor)}if(i)le=Of(i,at,"y",l,r);else{var hr=r._ysize/l.h,ra=r.y-(r._yshift+r.yshift)/l.h-hr/2;le=op.align(ra-at/l.h,hr,0,1,r.yanchor)}d("x",lt),d("y",le),(!n||!i)&&(nt=op.getCursor(n?.5:lt,i?.5:le,r.xanchor,r.yanchor))}_.attr({transform:S9(Rr,at)+rr}),D9(M,nt)},clickFn:function(Rr,at){r.captureevents&&e.emit("plotly_clickannotation",k(at))},doneFn:function(){D9(M),k9.call("_guiRelayout",e,p());var Rr=document.querySelector(".js-notes-box-panel");Rr&&Rr.redraw(Rr.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 yG=B((PPe,mG)=>{"use strict";var vG=or(),bxe=Pt(),hG=Ra().arrayEditor;mG.exports={hasClickToShow:xxe,onClick:_xe};function xxe(e,r){var t=pG(e,r);return t.on.length>0||t.explicitOff.length>0}function _xe(e,r){var t=pG(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{"use strict";var L9=or(),Ph=Kt();gG.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"),L9.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=L9.extendFlat({},m.font);T.color||(T.color=b),L9.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var xG=B((zPe,bG)=>{"use strict";var q9=or(),Mc=en(),wxe=Oo(),Axe=E9(),Txe=Th();bG.exports=function(r,t){wxe(r,t,{name:"annotations",handleItemDefaults:Mxe})};function Mxe(e,r,t){function a(_,x){return q9.coerce(e,r,Txe,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Axe(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=Mc.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Mc.getFromId(u,v);d._annIndices.push(r._index)}if(Mc.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Mc.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Mc.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:Mc.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:Mc.cleanPosition(T,u,r.yref)}}}});var AG=B((BPe,wG)=>{"use strict";var F9=or(),kc=en(),kxe=V5().draw;wG.exports=function(r){var t=r._fullLayout,a=F9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return F9.syncOrAsync([kxe,Sxe],r)};function Sxe(e){var r=e._fullLayout;F9.filterVisible(r.annotations).forEach(function(t){var a=kc.getFromId(e,t.xref),n=kc.getFromId(e,t.yref),i=kc.getRefType(t.xref),o=kc.getRefType(t.yref);t._extremes={},i==="range"&&_G(t,a),o==="range"&&_G(t,n)})}function _G(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=kc.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=kc.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=kc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var MG=B((IPe,TG)=>{"use strict";var Cxe=da(),Dxe=hy();TG.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=Dxe(p,t.range):m=Math.pow(10,p),Cxe(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var R9=V5(),kG=yG();SG.exports={moduleType:"component",name:"annotations",layoutAttributes:Th(),supplyLayoutDefaults:xG(),includeBasePlot:U1()("annotations"),calcAutorange:AG(),draw:R9.draw,drawOne:R9.drawOne,drawRaw:R9.drawRaw,hasClickToShow:kG.hasClickToShow,onClick:kG.onClick,convertCoords:MG()}});var X5=B((HPe,DG)=>{"use strict";var Oa=Th(),Lxe=Nl().overrideAll,Exe=Ra().templatedArray;DG.exports=Lxe(Exe("annotation",{visible:Oa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Oa.xanchor,xshift:Oa.xshift,yanchor:Oa.yanchor,yshift:Oa.yshift,text:Oa.text,textangle:Oa.textangle,font:Oa.font,width:Oa.width,height:Oa.height,opacity:Oa.opacity,align:Oa.align,valign:Oa.valign,bgcolor:Oa.bgcolor,bordercolor:Oa.bordercolor,borderpad:Oa.borderpad,borderwidth:Oa.borderwidth,showarrow:Oa.showarrow,arrowcolor:Oa.arrowcolor,arrowhead:Oa.arrowhead,startarrowhead:Oa.startarrowhead,arrowside:Oa.arrowside,arrowsize:Oa.arrowsize,startarrowsize:Oa.startarrowsize,arrowwidth:Oa.arrowwidth,standoff:Oa.standoff,startstandoff:Oa.startstandoff,hovertext:Oa.hovertext,hoverlabel:Oa.hoverlabel,captureevents:Oa.captureevents}),"calc","from-root")});var EG=B((UPe,LG)=>{"use strict";var P9=or(),qxe=en(),Fxe=Oo(),Rxe=E9(),Pxe=X5();LG.exports=function(r,t,a){Fxe(r,t,{name:"annotations",handleItemDefaults:Nxe,fullLayout:a.fullLayout})};function Nxe(e,r,t,a){function n(l,s){return P9.coerce(e,r,Pxe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],qxe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Rxe(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 PG=B((GPe,RG)=>{"use strict";var qG=or(),FG=en();RG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"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}NG.exports=Bxe});var IG=B((VPe,BG)=>{"use strict";var Ixe=V5().drawRaw,Oxe=zG(),Hxe=["x","y","z"];BG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=Oxe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Ixe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var UG=B((XPe,HG)=>{"use strict";var Uxe=Pt(),OG=or();HG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:X5()}}},layoutAttributes:X5(),handleDefaults:EG(),includeBasePlot:Gxe,convert:PG(),draw:IG()};function Gxe(e,r){var t=Uxe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var WPe=(ni(),vr(ai)),GG=Di(),YG=Nf().line,Yxe=uf().dash,Jl=Fn().extendFlat,Vxe=Ra().templatedArray,ZPe=(B1(),vr(z1)),Nh=Fl(),VG=Th(),{shapeTexttemplateAttrs:Xxe,templatefallbackAttrs:Wxe}=Hv(),Zxe=Wy();XG.exports=Vxe("shape",{visible:Jl({},Nh.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Jl({},Nh.legend,{editType:"calc+arraydraw"}),legendgroup:Jl({},Nh.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Jl({},Nh.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:GG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Jl({},Nh.legendrank,{editType:"calc+arraydraw"}),legendwidth:Jl({},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:Jl({},VG.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:Jl({},VG.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:Jl({},YG.color,{editType:"arraydraw"}),width:Jl({},YG.width,{editType:"calc+arraydraw"}),dash:Jl({},Yxe,{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:Xxe({},{keys:Object.keys(Zxe)}),texttemplatefallback:Wxe({editType:"arraydraw"}),font:GG({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 ZG=B((jPe,WG)=>{"use strict";var zh=or(),Jo=en(),Jxe=Oo(),jxe=z9(),sp=Rf();WG.exports=function(r,t){Jxe(r,t,{name:"shapes",handleItemDefaults:Kxe})};function $xe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Kxe(e,r,t){function a(_,x){return zh.coerce(e,r,jxe,_,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,E,F;let P=_+"ref",q=e[P];if(Array.isArray(q)&&q.length>0){let z=sp.countDefiningCoords(s,o,_);F=Jo.coerceRefArray(e,r,k,_,void 0,"paper",z),r["_"+_+"refArray"]=!0}else F=Jo.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(F))F.forEach(function(z){Jo.getRefType(z)==="range"&&(M=Jo.getFromId(k,z),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(z){let I=F[z];Jo.getRefType(I)==="range"?(M=Jo.getFromId(k,I),C=sp.shapePositionToRange(M),E=sp.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+z+"shift")):C=E=zh.identity;let G=_+z,X=e[G];if(e[G]=C(e[G],!0),w==="pixel"?a(G,p[z]):Jo.coercePosition(r,k,a,I,G,d[z]),r[G]=E(r[G]),e[G]=X,z===0&&w==="pixel"){let Y=e[x];e[x]=C(e[x],!0),Jo.coercePosition(r,k,a,I,x,.25),r[x]=E(r[x]),e[x]=Y}});else{if(Jo.getRefType(F)==="range"?(M=Jo.getFromId(k,F),M._shapeIndices.push(r._index),E=sp.rangeToShapePosition(M),C=sp.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):C=E=zh.identity,u){let I=_+"0",U=_+"1",G=e[I],X=e[U];e[I]=C(e[I],!0),e[U]=C(e[U],!0),w==="pixel"?(a(I,p[0]),a(U,p[1])):(Jo.coercePosition(r,k,a,F,I,d[0]),Jo.coercePosition(r,k,a,F,U,d[1])),r[I]=E(r[I]),r[U]=E(r[U]),e[I]=G,e[U]=X}if(w==="pixel"){let I=e[x];e[x]=C(e[x],!0),Jo.coercePosition(r,k,a,F,x,.25),r[x]=E(r[x]),e[x]=I}}}),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",$xe(m,T)),a("label.padding"),zh.coerceFont(a,"label.font",t.font)}}});var $G=B(($Pe,jG)=>{"use strict";var Qxe=Kt(),JG=or();function e_e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}jG.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",Qxe.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",e_e(o,u)),a("newshape.label.padding"),JG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var nY=B((KPe,aY)=>{"use strict";var B9=or(),_l=en(),Ps=(y1(),vr(m1)),I9=Rf();aY.exports=function(r){var t=r._fullLayout,a=B9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=_l.getFromId(r,c),i._extremes[o._id]=_l.findExtremes(o,v,QG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=_l.getFromId(r,i.xref),l=rY(o,i,Ps.paramIsX),l&&(i._extremes[o._id]=_l.findExtremes(o,l,QG(i))));if(u==="array"){let f=KG(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=_l.getFromId(r,c),i._extremes[o._id]=_l.findExtremes(o,v,eY(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=_l.getFromId(r,i.yref),l=rY(o,i,Ps.paramIsY),l&&(i._extremes[o._id]=_l.findExtremes(o,l,eY(i))))}};function KG(e,r,t){let a=r[t+"ref"],n=t==="x"?Ps.paramIsX:Ps.paramIsY;function i(c,v){c==="paper"||_l.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Ps.segmentRE)||[];for(var l=0,s=0;sp&&(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=_l.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=I9.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function QG(e){return tY(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function eY(e){return tY(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function tY(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?I9.extractPathCoords(n,i?Ps.paramIsY:Ps.paramIsX):[t,a],u=B9.aggNums(Math.max,null,s),f=B9.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 rY(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(Ps.segmentRE),p,m,y,b,T;for(e.type==="date"&&(u=I9.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var lY=B((QPe,oY)=>{"use strict";var iY=P3();oY.exports={moduleType:"component",name:"shapes",layoutAttributes:z9(),supplyLayoutDefaults:ZG(),supplyDrawNewShapeDefaults:$G(),includeBasePlot:U1()("shapes"),calcAutorange:nY(),draw:iY.draw,drawOne:iY.drawOne}});var O9=B((rNe,uY)=>{"use strict";var sY=(ni(),vr(ai)),r_e=Ra().templatedArray,eNe=(B1(),vr(z1));uY.exports=r_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",sY.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",sY.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var cY=B((tNe,fY)=>{"use strict";var t_e=or(),H9=en(),a_e=Oo(),n_e=O9(),i_e="images";fY.exports=function(r,t){var a={name:i_e,handleItemDefaults:o_e};a_e(r,t,a)};function o_e(e,r,t){function a(v,d){return t_e.coerce(e,r,n_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 pY=B((aNe,dY)=>{"use strict";var vY=la(),l_e=Sa(),Bh=en(),hY=hn(),s_e=(xf(),vr(bf));dY.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var mY=da(),u_e=hy();yY.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{"use strict";bY.exports={moduleType:"component",name:"images",layoutAttributes:O9(),supplyLayoutDefaults:cY(),includeBasePlot:U1()("images"),draw:pY(),convertCoords:gY()}});var W5={};ja(W5,{activeColor:()=>R_e,arrowOffsetX:()=>E_e,arrowPadX:()=>k_e,arrowSymbol:()=>N_e,autoMarginIdRoot:()=>__e,blankHeaderOpts:()=>w_e,buttonClassName:()=>y_e,containerClassName:()=>c_e,dropdownButtonClassName:()=>m_e,dropdownButtonGroupClassName:()=>p_e,gapButton:()=>F_e,gapButtonHeader:()=>q_e,headerArrowClassName:()=>d_e,headerClassName:()=>h_e,headerGroupClassName:()=>v_e,hoverColor:()=>P_e,itemRectClassName:()=>g_e,itemTextClassName:()=>b_e,menuIndexAttrName:()=>x_e,minHeight:()=>T_e,minWidth:()=>A_e,name:()=>f_e,rx:()=>S_e,ry:()=>C_e,textOffsetX:()=>D_e,textOffsetY:()=>L_e,textPadX:()=>M_e});var f_e,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,D_e,L_e,E_e,q_e,F_e,R_e,P_e,N_e,Z5=Ja(()=>{"use strict";f_e="updatemenus",c_e="updatemenu-container",v_e="updatemenu-header-group",h_e="updatemenu-header",d_e="updatemenu-header-arrow",p_e="updatemenu-dropdown-button-group",m_e="updatemenu-dropdown-button",y_e="updatemenu-button",g_e="updatemenu-item-rect",b_e="updatemenu-item-text",x_e="updatemenu-active-index",__e="updatemenu-",w_e={label:" "},A_e=30,T_e=30,M_e=24,k_e=16,S_e=2,C_e=2,D_e=12,L_e=3,E_e=4,q_e=5,F_e=2,R_e="#F4FAFF",P_e="#F4FAFF",N_e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var U9=B((oNe,wY)=>{"use strict";var z_e=Di(),B_e=gs(),I_e=Fn().extendFlat,O_e=Nl().overrideAll,H_e=Zy(),_Y=Ra().templatedArray,U_e=_Y("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}});wY.exports=O_e(_Y("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:U_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:I_e(H_e({editType:"arraydraw"}),{}),font:z_e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:B_e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var kY=B((lNe,MY)=>{"use strict";var J5=or(),AY=Oo(),TY=U9(),G_e=(Z5(),vr(W5)),Y_e=G_e.name,V_e=TY.buttons;MY.exports=function(r,t){var a={name:Y_e,handleItemDefaults:X_e};AY(r,t,a)};function X_e(e,r,t){function a(o,l){return J5.coerce(e,r,TY,o,l)}var n=AY(e,r,{name:"buttons",handleItemDefaults:W_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 W_e(e,r){function t(n,i){return J5.coerce(e,r,V_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 DY=B((sNe,CY)=>{"use strict";CY.exports=mn;var jl=la(),SY=Kt(),Ih=Sa(),j5=or();function mn(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})}mn.barWidth=2;mn.barLength=20;mn.barRadius=2;mn.barPad=1;mn.barColor="#808BA4";mn.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=mn.barLength+2*mn.barPad,E=mn.barWidth+2*mn.barPad,F=l,P=u+f;P+E>o&&(P=o-E);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(SY.fill,mn.barColor),M?(this.hbar=q.attr({rx:mn.barRadius,ry:mn.barRadius,x:F,y:P,width:C,height:E}),this._hbarXMin=F+C/2,this._hbarTranslateMax=y-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>b,I=mn.barWidth+2*mn.barPad,U=mn.barLength+2*mn.barPad,G=l+s,X=u;G+I>i&&(G=i-I);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(SY.fill,mn.barColor),z?(this.vbar=Y.attr({rx:mn.barRadius,ry:mn.barRadius,x:G,y:X,width:I,height:U}),this._vbarYMin=X+U/2,this._vbarTranslateMax=b-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,Z=T-.5,j=z?_+I+.5:_+.5,ee=x-.5,me=M?w+E+.5:w+.5,fe=n._topdefs.selectAll("#"+V).data(M||z?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",V).append("rect"),M||z?(this._clipRect=fe.select("rect").attr({x:Math.floor(Z),y:Math.floor(ee),width:Math.ceil(j)-Math.floor(Z),height:Math.ceil(me)-Math.floor(ee)}),this.container.call(Ih.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(Ih.setClipUrl,null),delete this._clipRect),M||z){var he=jl.behavior.drag().on("dragstart",function(){jl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(he);var te=jl.behavior.drag().on("dragstart",function(){jl.event.sourceEvent.preventDefault(),jl.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)};mn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ih.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)};mn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=jl.event.dx),this.vbar&&(t-=jl.event.dy),this.setTranslate(r,t)};mn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=jl.event.deltaY),this.vbar&&(t+=jl.event.deltaY),this.setTranslate(r,t)};mn.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(jl.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(jl.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};mn.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(Ih.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(Ih.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Ih.setTranslate,r,t+o*this._vbarTranslateMax)}}});var IY=B((uNe,BY)=>{"use strict";var Oh=la(),up=di(),fp=Kt(),Hh=Sa(),jo=or(),$5=Ei(),Z_e=Ra().arrayEditor,EY=(Oi(),vr(Ii)).LINE_SPACING,Nt=(Z5(),vr(W5)),J_e=DY();BY.exports=function(r){var t=r._fullLayout,a=jo.filterVisible(t[Nt.name]);function n(v){up.autoMargin(r,NY(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,j_e);o.enter().append("g").classed(Nt.headerGroupClassName,!0);for(var l=jo.ensureSingle(i,"g",Nt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var a4e=(Z5(),vr(W5));OY.exports={moduleType:"component",name:a4e.name,layoutAttributes:U9(),supplyLayoutDefaults:kY(),draw:IY()}});var vp={};ja(vp,{arrowOffsetX:()=>A4e,autoMarginIdRoot:()=>b4e,containerClassName:()=>i4e,currentValueClass:()=>m4e,currentValueInset:()=>j4e,currentValuePadding:()=>J4e,gripBgActiveColor:()=>I4e,gripBgColor:()=>B4e,gripBorder:()=>P4e,gripBorderColor:()=>z4e,gripBorderWidth:()=>N4e,gripHeight:()=>R4e,gripRadius:()=>q4e,gripRectClass:()=>f4e,gripWidth:()=>F4e,groupClassName:()=>o4e,inputAreaClass:()=>l4e,inputProxyClass:()=>v4e,labelClass:()=>p4e,labelGroupClass:()=>d4e,labelOffset:()=>H4e,labelPadding:()=>O4e,labelsClass:()=>h4e,menuIndexAttrName:()=>g4e,minHeight:()=>_4e,minWidth:()=>x4e,minorTickColor:()=>W4e,minorTickLength:()=>Z4e,minorTickOffset:()=>X4e,name:()=>n4e,railBgColor:()=>D4e,railBorder:()=>k4e,railBorderColor:()=>C4e,railBorderWidth:()=>S4e,railHeight:()=>y4e,railInset:()=>L4e,railRadius:()=>T4e,railRectClass:()=>s4e,railTouchRectClass:()=>u4e,railWidth:()=>M4e,stepInset:()=>E4e,textPadX:()=>w4e,tickColor:()=>G4e,tickLength:()=>V4e,tickOffset:()=>Y4e,tickRectClass:()=>c4e,tickWidth:()=>U4e});var n4e,i4e,o4e,l4e,s4e,u4e,f4e,c4e,v4e,h4e,d4e,p4e,m4e,y4e,g4e,b4e,x4e,_4e,w4e,A4e,T4e,M4e,k4e,S4e,C4e,D4e,L4e,E4e,q4e,F4e,R4e,P4e,N4e,z4e,B4e,I4e,O4e,H4e,U4e,G4e,Y4e,V4e,X4e,W4e,Z4e,J4e,j4e,hp=Ja(()=>{"use strict";n4e="sliders",i4e="slider-container",o4e="slider-group",l4e="slider-input-area",s4e="slider-rail-rect",u4e="slider-rail-touch-rect",f4e="slider-grip-rect",c4e="slider-tick-rect",v4e="slider-input-proxy",h4e="slider-labels",d4e="slider-label-group",p4e="slider-label",m4e="slider-current-value",y4e=5,g4e="slider-active-index",b4e="slider-",x4e=30,_4e=30,w4e=40,A4e=4,T4e=2,M4e=5,k4e=4,S4e=1,C4e="#bec8d9",D4e="#f8fafc",L4e=8,E4e=10,q4e=10,F4e=20,R4e=20,P4e=20,N4e=1,z4e="#bec8d9",B4e="#f6f8fa",I4e="#dbdde0",O4e=8,H4e=0,U4e=1,G4e="#333",Y4e=25,V4e=7,X4e=25,W4e="#333",Z4e=4,J4e=8,j4e=0});var X9=B((cNe,YY)=>{"use strict";var UY=Di(),$4e=Zy(),K4e=Fn().extendDeepAll,Q4e=Nl().overrideAll,e6e=B2(),GY=Ra().templatedArray,Sc=(hp(),vr(vp)),r6e=GY("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}});YY.exports=Q4e(GY("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:r6e,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:K4e($4e({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:e6e.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:UY({})},font:UY({}),activebgcolor:{valType:"color",dflt:Sc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Sc.railBgColor},bordercolor:{valType:"color",dflt:Sc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Sc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Sc.tickLength},tickcolor:{valType:"color",dflt:Sc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Sc.minorTickLength}}),"arraydraw","from-root")});var ZY=B((vNe,WY)=>{"use strict";var Uh=or(),VY=Oo(),XY=X9(),t6e=(hp(),vr(vp)),a6e=t6e.name,n6e=XY.steps;WY.exports=function(r,t){VY(r,t,{name:a6e,handleItemDefaults:i6e})};function i6e(e,r,t){function a(c,v){return Uh.coerce(e,r,XY,c,v)}for(var n=VY(e,r,{name:"steps",handleItemDefaults:o6e}),i=0,o=0;o{"use strict";var $l=la(),K5=di(),Uf=Kt(),Kl=Sa(),$o=or(),l6e=$o.strTranslate,dp=Ei(),s6e=Ra().arrayEditor,jt=(hp(),vr(vp)),J9=(Oi(),vr(Ii)),$Y=J9.LINE_SPACING,W9=J9.FROM_TL,Z9=J9.FROM_BR;aV.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=u6e(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,KY(f))}if(i.exit().each(function(){$l.select(this).selectAll("g."+jt.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+jt.groupClassName).data(n,f6e);l.enter().append("g").classed(jt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",l6e(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 jY(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 y6e(e,r,t){var a=t._dims,n=$o.ensureSingle(e,"rect",jt.railTouchRectClass,function(i){i.call(rV,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),Kl.setTranslate(n,0,a.currentValueTotalHeight)}function g6e(e,r){var t=r._dims,a=t.inputAreaLength-jt.railInset*2,n=$o.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"),Kl.setTranslate(n,jt.railInset,(t.inputAreaWidth-jt.railWidth)*.5+t.currentValueTotalHeight)}});var oV=B((dNe,iV)=>{"use strict";var b6e=(hp(),vr(vp));iV.exports={moduleType:"component",name:b6e.name,layoutAttributes:X9(),supplyLayoutDefaults:ZY(),draw:nV()}});var eb=B((pNe,sV)=>{"use strict";var lV=gs();sV.exports={bgcolor:{valType:"color",dflt:lV.background,editType:"plot"},bordercolor:{valType:"color",dflt:lV.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=B((mNe,uV)=>{"use strict";uV.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={};ja(rb,{bgClassName:()=>w6e,containerClassName:()=>_6e,extraPad:()=>V6e,grabAreaCursor:()=>O6e,grabAreaFill:()=>I6e,grabAreaMaxClassName:()=>E6e,grabAreaMinClassName:()=>C6e,grabAreaWidth:()=>H6e,grabberMaxClassName:()=>L6e,grabberMinClassName:()=>S6e,handleMaxClassName:()=>q6e,handleMinClassName:()=>D6e,handleRadius:()=>G6e,handleStrokeWidth:()=>Y6e,handleWidth:()=>U6e,maskColor:()=>P6e,maskMaxClassName:()=>M6e,maskMaxOppAxisClassName:()=>R6e,maskMinClassName:()=>T6e,maskMinOppAxisClassName:()=>F6e,maskOppAxisColor:()=>N6e,name:()=>x6e,rangePlotClassName:()=>A6e,slideBoxClassName:()=>k6e,slideBoxCursor:()=>B6e,slideBoxFill:()=>z6e});var x6e,_6e,w6e,A6e,T6e,M6e,k6e,S6e,C6e,D6e,L6e,E6e,q6e,F6e,R6e,P6e,N6e,z6e,B6e,I6e,O6e,H6e,U6e,G6e,Y6e,V6e,tb=Ja(()=>{"use strict";x6e="rangeslider",_6e="rangeslider-container",w6e="rangeslider-bg",A6e="rangeslider-rangeplot",T6e="rangeslider-mask-min",M6e="rangeslider-mask-max",k6e="rangeslider-slidebox",S6e="rangeslider-grabber-min",C6e="rangeslider-grabarea-min",D6e="rangeslider-handle-min",L6e="rangeslider-grabber-max",E6e="rangeslider-grabarea-max",q6e="rangeslider-handle-max",F6e="rangeslider-mask-min-opp-axis",R6e="rangeslider-mask-max-opp-axis",P6e="rgba(0,0,0,0.4)",N6e="rgba(0,0,0,0.2)",z6e="transparent",B6e="ew-resize",I6e="transparent",O6e="col-resize",H6e=10,U6e=4,G6e=1,Y6e=1,V6e=15});var vV=B(nb=>{"use strict";var X6e=hn(),W6e=Ei(),fV=(tb(),vr(rb)),Z6e=(Oi(),vr(Ii)).LINE_SPACING,ab=fV.name;function cV(e){var r=e&&e[ab];return r&&r.visible}nb.isVisible=cV;nb.makeData=function(e){for(var r=X6e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var ib=or(),hV=Ra(),dV=hn(),J6e=eb(),j6e=$9();pV.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=hV.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,j6e,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")))===dV.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),m=ib.simpleMap(p,dV.id2name),y=0;y{"use strict";var $6e=hn().list,K6e=uh().getAutoRange,Q6e=(tb(),vr(rb));yV.exports=function(r){for(var t=$6e(r,"x",!0),a=0;a{"use strict";var ob=la(),e7e=Pt(),r7e=di(),Cn=or(),lb=Cn.strTranslate,xV=Sa(),Gf=Kt(),t7e=r1(),a7e=ip(),K9=hn(),n7e=Ul(),i7e=Cf(),aa=(tb(),vr(rb));_V.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=X.max)U=F[G+1];else if(I=X.pmax)U=F[G+1];else if(I0?e.touches[0].clientX:0}function o7e(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=bV(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=n7e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=bV(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{"use strict";var m7e=or(),y7e=eb(),g7e=$9(),Q9=vV();AV.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:m7e.extendFlat({},y7e,{yaxis:g7e})}}},layoutAttributes:eb(),handleDefaults:mV(),calcAutorange:gV(),draw:wV(),isVisible:Q9.isVisible,makeData:Q9.makeData,autoMarginOpts:Q9.autoMarginOpts}});var sb=B((wNe,kV)=>{"use strict";var b7e=Di(),MV=gs(),x7e=Ra().templatedArray,_7e=x7e("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"});kV.exports={visible:{valType:"boolean",editType:"plot"},buttons:_7e,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:b7e({editType:"plot"}),bgcolor:{valType:"color",dflt:MV.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:MV.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var eA={};ja(eA,{darkAmount:()=>S7e,lightAmount:()=>k7e,minButtonWidth:()=>A7e,rx:()=>T7e,ry:()=>M7e,yPad:()=>w7e});var w7e,A7e,T7e,M7e,k7e,S7e,rA=Ja(()=>{"use strict";w7e=.02,A7e=30,T7e=3,M7e=3,k7e=25,S7e=10});var DV=B((ANe,CV)=>{"use strict";var ub=or(),C7e=Kt(),D7e=Ra(),L7e=Oo(),SV=sb(),tA=(rA(),vr(eA));CV.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=D7e.newContainer(t,"rangeselector");function s(d,p){return ub.coerce(o,l,SV,d,p)}var u=L7e(o,l,{name:"buttons",handleItemDefaults:E7e,calendar:i}),f=s("visible",u.length>0);if(f){var c=q7e(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",C7e.contrast(v,tA.lightAmount,tA.darkAmount)),s("bordercolor"),s("borderwidth")}};function E7e(e,r,t,a){var n=a.calendar;function i(s,u){return ub.coerce(e,r,SV.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 q7e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var F7e=c_(),R7e=or().titleCase;LV.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=P7e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function P7e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=F7e["utc"+R7e(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 IV=B((MNe,BV)=>{"use strict";var cb=la(),N7e=Pt(),z7e=di(),qV=Kt(),zV=Sa(),Au=or(),FV=Au.strTranslate,fb=Ei(),B7e=hn(),iA=(Oi(),vr(Ii)),RV=iA.LINE_SPACING,PV=iA.FROM_TL,NV=iA.FROM_BR,nA=(rA(),vr(eA)),I7e=EV();BV.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(O7e(r),H7e);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=I7e(o,u);u._isActive=U7e(o,u,c),f.call(aA,l,u),f.call(Y7e,l,u,r),f.on("click",function(){r._dragged||N7e.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)})}),X7e(r,s,l,o._name,i)})};function O7e(e){for(var r=B7e.list(e,"x",!0),t=[],a=0;a{"use strict";OV.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:sb()}}},layoutAttributes:sb(),handleDefaults:DV(),draw:IV()}});var vb=B(oA=>{"use strict";var UV=Fn().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:UV({},t,{}),y:UV({},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{"use strict";var W7e=or(),Z7e=(Bv(),vr(N2)).counter,J7e=vb().attributes,GV=(ni(),vr(ai)).idRegex,j7e=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:[Z7e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GV.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GV.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 $7e(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=j7e.newContainer(r,"grid");function v(k,M){return W7e.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:YV("x",v,T,x,p),y:YV("y",v,_,w,d,b)}}function YV(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{"use strict";WV.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 jV=B((LNe,JV)=>{"use strict";var ZV=da(),Q7e=Pt(),e8e=or(),r8e=Ra(),t8e=uA();JV.exports=function(e,r,t,a){var n="error_"+a.axis,i=r8e.newContainer(r,n),o=e[n]||{};function l(p,m){return e8e.coerce(o,i,t8e,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||ZV(o.thickness)||ZV(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",Q7e.traceIs(r,"gl3d")?0:4))}}});var fA=B((ENe,KV)=>{"use strict";KV.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=$V(t,r.value),l=$V(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 $V(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 rX=B((qNe,eX)=>{"use strict";var cA=da(),a8e=Pt(),vA=en(),n8e=or(),i8e=fA();eX.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var tX=la(),Yf=da(),o8e=Sa(),l8e=Ti();aX.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=l8e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=tX.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),o8e.setClipUrl(y,a.layerClipId,r),y.each(function(T){var _=tX.select(this),x=s8e(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 E=(v.copy_ystyle?d:v).width;w="M"+x.xh+","+(x.y-E)+"v"+2*E+"m0,-"+E+"H"+x.xs,x.noXS||(w+="m0,-"+E+"v"+2*E),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 s8e(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 lX=B((RNe,oX)=>{"use strict";var u8e=la(),iX=Kt();oX.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=u8e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(iX.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(iX.stroke,i.color)})}});var fX=B((PNe,uX)=>{"use strict";var pp=or(),sX=Nl().overrideAll,mp=uA(),Cc={error_x:pp.extendFlat({},mp),error_y:pp.extendFlat({},mp)};delete Cc.error_x.copy_zstyle;delete Cc.error_y.copy_zstyle;delete Cc.error_y.copy_ystyle;var yp={error_x:pp.extendFlat({},mp),error_y:pp.extendFlat({},mp),error_z:pp.extendFlat({},mp)};delete yp.error_x.copy_ystyle;delete yp.error_y.copy_ystyle;delete yp.error_z.copy_ystyle;delete yp.error_z.copy_zstyle;uX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Cc,bar:Cc,histogram:Cc,scatter3d:sX(yp,"calc","nested"),scattergl:sX(Cc,"calc","nested")}},supplyDefaults:jV(),calc:rX(),makeComputeError:fA(),plot:nX(),style:lX(),hoverInfo:f8e};function f8e(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 cX={};ja(cX,{cn:()=>c8e});var c8e,vX=Ja(()=>{"use strict";c8e={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 xX=B((NNe,bX)=>{"use strict";var Vf=la(),pb=di(),hX=Pt(),Tu=en(),db=Ul(),wl=or(),es=wl.strTranslate,gX=Fn().extendFlat,hA=Cf(),Ql=Sa(),Gh=Kt(),v8e=r1(),h8e=Ei(),d8e=Ol().flipScale,p8e=_9(),m8e=w9(),y8e=sl(),pA=(Oi(),vr(Ii)),dX=pA.LINE_SPACING,pX=pA.FROM_TL,mX=pA.FROM_BR,on=(vX(),vr(cX)).cn;function g8e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+on.colorbar).data(b8e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(on.colorbar,!0),t.each(function(a){var n=Vf.select(this);wl.ensureSingle(n,"rect",on.cbbg),wl.ensureSingle(n,"g",on.cbfills),wl.ensureSingle(n,"g",on.cblines),wl.ensureSingle(n,"g",on.cbaxis,function(o){o.classed(on.crisp,!0)}),wl.ensureSingle(n,"g",on.cbtitleunshift,function(o){o.append("g").classed(on.cbtitle,!0)}),wl.ensureSingle(n,"rect",on.cboutline);var i=x8e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&_8e(n,a,e)}),t.exit().each(function(a){pb.autoMargin(e,a._id)}).remove(),t.order()}function b8e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return gX(_,{_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?d8e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],yX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function x8e(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,E=r._zrange||Vf.extent((typeof w=="function"?w:k.color).domain()),F=typeof k.color=="function"?k.color:function(){return k.color},P=typeof w=="function"?w:function(){return w},q=r._levels,z=w8e(t,r,E),I=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),Z=T?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,ee=Math.round(a?m*Z+d:y*j+p),me={center:.5,right:1}[c]||0,fe={top:1,middle:.5}[v]||0,he=a?m-me*X:y-fe*X,te=a?y-fe*V:m-me*V,Le=Math.round(a?j*(1-te):Z*te);r._lenFrac=V,r._thickFrac=X,r._uFrac=he,r._vFrac=te;var ce=r._axis=A8e(t,r,E);ce.position=X+(a?m+d/x.w:y+p/x.h);var Fe=["top","bottom"].indexOf(C)!==-1;if(a&&Fe&&(ce.title.side=C,ce.titlex=m+d/x.w,ce.titley=te+(M.side==="top"?V-p/x.h:p/x.h)),!a&&!Fe&&(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 Re=q.size,ge=wl.constrain(Y/50,4,15)+1,He=(E[1]-E[0])/((r.nticks||ge)*Re);if(He>1){var ur=Math.pow(10,Math.floor(Math.log(He)/Math.LN10));Re*=ur*wl.roundUp(He/ur,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=Re}var qe=a?p/x.h:d/x.w;ce.domain=yX(dA([te,te+V],qe),qe),ce.setScale(),e.attr("transform",es(Math.round(x.l),Math.round(x.t)));var Ue=e.select("."+on.cbtitleunshift).attr("transform",es(-Math.round(x.l),-Math.round(x.t))),Ye=ce.ticklabelposition,We=ce.title.font.size,Ve=e.select("."+on.cbaxis),ar,Ie=0,_r=0;function Pr(ue,Ee){var Tr={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+on.cbtitle)},rt=ue.charAt(0)==="h"?ue.slice(1):"h"+ue;e.selectAll("."+rt+",."+rt+"-math-group").remove(),v8e.draw(t,ue,gX(Tr,Ee||{}))}function Br(){if(a&&Fe||!a&&!Fe){var ue,Ee;C==="top"&&(ue=d+x.l+Z*m,Ee=p+x.t+j*(1-te-V)+3+We*.75),C==="bottom"&&(ue=d+x.l+Z*m,Ee=p+x.t+j*(1-te)-3-We*.25),C==="right"&&(Ee=p+x.t+j*y+3+We*.75,ue=d+x.l+Z*te),Pr(ce._id+"title",{attributes:{x:ue,y:Ee,"text-anchor":a?"start":"middle"}})}}function $e(){if(a&&!Fe||!a&&Fe){var ue=ce.position||0,Ee=ce._offset+ce._length/2,Tr,rt;if(C==="right")rt=Ee,Tr=x.l+Z*ue+10+We*(ce.showticklabels?1:.5);else if(Tr=Ee,C==="bottom"&&(rt=x.t+j*ue+10+(Ye.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),C==="top"){var ot=M.text.split("
").length;rt=x.t+j*ue+10-G-dX*We*ot}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:rt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function mr(){if(!a&&!Fe||a&&Fe){var ue=e.select("."+on.cbtitle),Ee=ue.select("text"),Tr=[-s/2,s/2],rt=ue.select(".h"+ce._id+"title-math-group").node(),ot=15.6;Ee.node()&&(ot=parseInt(Ee.node().style.fontSize,10)*dX);var pe;if(rt?(pe=Ql.bBox(rt),_r=pe.width,Ie=pe.height,Ie>ot&&(Tr[1]-=(Ie-ot)/2)):Ee.node()&&!Ee.classed(on.jsPlaceholder)&&(pe=Ql.bBox(Ee.node()),_r=pe.width,Ie=pe.height),a){if(Ie){if(Ie+=5,C==="top")ce.domain=yX(ce.domain,Ie/x.h),Tr[1]*=-1;else{ce.domain=dA(ce.domain,Ie/x.h);var Ce=h8e.lineCount(Ee);Tr[1]+=(1-Ce)*ot}ue.attr("transform",es(Tr[0],Tr[1])),ce.setScale()}}else _r&&(C==="right"&&(ce.domain=dA(ce.domain,(_r+We/2)/x.w)),ue.attr("transform",es(Tr[0],Tr[1])),ce.setScale())}e.selectAll("."+on.cbfills+",."+on.cblines).attr("transform",a?es(0,Math.round(x.h*(1-ce.domain[1]))):es(Math.round(x.w*ce.domain[0]),0)),Ve.attr("transform",a?es(0,Math.round(-x.t)):es(Math.round(-x.l),0));var lr=e.select("."+on.cbfills).selectAll("rect."+on.cbfill).attr("style","").data(I);lr.enter().append("rect").classed(on.cbfill,!0).attr("style",""),lr.exit().remove();var wr=E.map(ce.c2p).map(Math.round).sort(function(tt,Ge){return tt-Ge});lr.each(function(tt,Ge){var Mr=[Ge===0?E[0]:(I[Ge]+I[Ge-1])/2,Ge===I.length-1?E[1]:(I[Ge]+I[Ge+1])/2].map(ce.c2p).map(Math.round);a&&(Mr[1]=wl.constrain(Mr[1]+(Mr[1]>Mr[0])?1:-1,wr[0],wr[1]));var rr=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)Ql.gradient(rr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Rr=P(tt).replace("e-","");rr.attr("fill",Gh.hexString(Rr))}});var fr=e.select("."+on.cblines).selectAll("path."+on.cbline).data(k.color&&k.width?U:[]);fr.enter().append("path").classed(on.cbline,!0),fr.exit().remove(),fr.each(function(tt){var Ge=ee,Mr=Math.round(ce.c2p(tt))+k.width/2%1;Vf.select(this).attr("d","M"+(a?Ge+","+Mr:Mr+","+Ge)+(a?"h":"v")+G).call(Ql.lineGroupStyle,k.width,F(tt),k.dash)}),Ve.selectAll("g."+ce._id+"tick,path").remove();var kr=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),qr=Tu.calcTicks(ce),$r=Tu.getTickSigns(ce)[2];return Tu.drawTicks(t,ce,{vals:ce.ticks==="inside"?Tu.clipEnds(ce,qr):qr,layer:Ve,path:Tu.makeTickPath(ce,kr,$r),transFn:Tu.makeTransTickFn(ce)}),Tu.drawLabels(t,ce,{vals:qr,layer:Ve,transFn:Tu.makeTransTickLabelFn(ce),labelFns:Tu.makeLabelFns(ce,kr)})}function Yr(){var ue,Ee=G+s/2;Ye.indexOf("inside")===-1&&(ue=Ql.bBox(Ve.node()),Ee+=a?ue.width:ue.height),ar=Ue.select("text");var Tr=0,rt=a&&C==="top",ot=!a&&C==="right",pe=0;if(ar.node()&&!ar.classed(on.jsPlaceholder)){var Ce,lr=Ue.select(".h"+ce._id+"title-math-group").node();lr&&(a&&Fe||!a&&!Fe)?(ue=Ql.bBox(lr),Tr=ue.width,Ce=ue.height):(ue=Ql.bBox(Ue.node()),Tr=ue.right-x.l-(a?ee:Le),Ce=ue.bottom-x.t-(a?Le:ee),!a&&C==="top"&&(Ee+=ue.height,pe=ue.height)),ot&&(ar.attr("transform",es(Tr/2+We/2,0)),Tr*=2),Ee=Math.max(Ee,a?Tr:Ce)}var wr=(a?d:p)*2+Ee+u+s/2,fr=0;!a&&M.text&&v==="bottom"&&y<=0&&(fr=wr/2,wr+=fr,pe+=fr),_._hColorbarMoveTitle=fr,_._hColorbarMoveCBTitle=pe;var kr=u+s,qr=(a?ee:Le)-kr/2-(a?d:0),$r=(a?Le:ee)-(a?Y:p+pe-fr);e.select("."+on.cbbg).attr("x",qr).attr("y",$r).attr(a?"width":"height",Math.max(wr-fr,2)).attr(a?"height":"width",Math.max(Y+kr,2)).call(Gh.fill,f).call(Gh.stroke,r.bordercolor).style("stroke-width",u);var tt=ot?Math.max(Tr-10,0):0;e.selectAll("."+on.cboutline).attr("x",(a?ee:Le+d)+tt).attr("y",(a?Le+p-Y:ee)+(rt?Ie:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Y-(a?2*p+Ie:2*d+tt),2)).call(Gh.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ge=a?me*wr:0,Mr=a?0:(1-fe)*wr-pe;if(Ge=T?x.l-Ge:-Ge,Mr=b?x.t-Mr:-Mr,e.attr("transform",es(Ge,Mr)),!a&&(u||Gh.opacity(f)&&!Gh.equals(_.paper_bgcolor,f))){var rr=Ve.selectAll("text"),Rr=rr[0].length,at=e.select("."+on.cbbg).node(),nt=Ql.bBox(at),lt=Ql.getTranslate(e),le=2;rr.each(function(Yn,qa){var un=0,fn=Rr-1;if(qa===un||qa===fn){var gn=Ql.bBox(this),si=Ql.getTranslate(this),bn;if(qa===fn){var Dn=gn.right+si.x,Ir=nt.right+lt.x+Le-u-le+m;bn=Ir-Dn,bn>0&&(bn=0)}else if(qa===un){var ca=gn.left+si.x,Zt=nt.left+lt.x+Le+u+le;bn=Zt-ca,bn<0&&(bn=0)}bn&&(Rr<3?this.setAttribute("transform","translate("+bn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Te={},tr=pX[c],hr=mX[c],ra=pX[v],Ca=mX[v],Ha=wr-G;a?(i==="pixels"?(Te.y=y,Te.t=Y*ra,Te.b=Y*Ca):(Te.t=Te.b=0,Te.yt=y+n*ra,Te.yb=y-n*Ca),l==="pixels"?(Te.x=m,Te.l=wr*tr,Te.r=wr*hr):(Te.l=Ha*tr,Te.r=Ha*hr,Te.xl=m-o*tr,Te.xr=m+o*hr)):(i==="pixels"?(Te.x=m,Te.l=Y*tr,Te.r=Y*hr):(Te.l=Te.r=0,Te.xl=m+n*tr,Te.xr=m-n*hr),l==="pixels"?(Te.y=1-y,Te.t=wr*ra,Te.b=wr*Ca):(Te.t=Ha*ra,Te.b=Ha*Ca,Te.yt=y-o*ra,Te.yb=y+o*Ca));var an=r.y<.5?"b":"t",yn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var sn={r:_.width-qr-Ge,l:qr+Te.r,b:_.height-$r-Mr,t:$r+Te.b};T&&b?pb.autoMargin(t,r._id,Te):T?t._fullLayout._reservedMargin[r._id][an]=sn[an]:b||a?t._fullLayout._reservedMargin[r._id][yn]=sn[yn]:t._fullLayout._reservedMargin[r._id][an]=sn[an]}return wl.syncOrAsync([pb.previousPromises,Br,mr,$e,pb.previousPromises,Yr],t)}function _8e(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+es(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?hX.call("_guiRestyle",t,u,r._traceIndex):hX.call("_guiRelayout",t,u)}}})}function w8e(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&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";_X.exports={moduleType:"component",name:"colorbar",attributes:Mg(),supplyDefaults:i7(),draw:xX().draw,hasColorbar:Z6()}});var TX=B((BNe,AX)=>{"use strict";AX.exports={moduleType:"component",name:"legend",layoutAttributes:a8(),supplyLayoutDefaults:i8(),draw:x8(),style:m8()}});var kX=B((INe,MX)=>{"use strict";MX.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 CX=B((ONe,SX)=>{"use strict";SX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var yA=B((HNe,qX)=>{"use strict";var T8e=Pt(),EX=or(),mA=EX.extendFlat,DX=EX.extendDeep;function LX(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 M8e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}qX.exports=function(r,t){var a,n=r.data,i=r.layout,o=DX([],n),l=DX({},i,LX(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{"use strict";var k8e=hg().EventEmitter,S8e=Pt(),C8e=or(),FX=yc(),D8e=yA(),L8e=g5(),E8e=b5();function q8e(e,r){var t=new k8e,a=D8e(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=L8e(n),u=document.createElement("canvas");u.id=C8e.randstr(),t=E8e({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 S8e.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}RX.exports=q8e});var BX=B((GNe,zX)=>{"use strict";var NX=yc(),F8e={getDelay:NX.getDelay,getRedrawFunc:NX.getRedrawFunc,clone:yA(),toSVG:g5(),svgToImg:b5(),toImage:PX(),downloadImage:Hw()};zX.exports=F8e});var OX=B(Mu=>{"use strict";Mu.version=v2().version;$M();NE();var R8e=Pt(),gp=Mu.register=R8e.register,bA=jO(),IX=Object.keys(bA);for(mb=0;mb{"use strict";HX.exports=OX()});var xA=B((XNe,YX)=>{"use strict";var P8e=Pt(),Ko=or(),N8e=y9(),z8e=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,E,F,P,q=d;if(a==="x"){var z=!!o.xperiodalignment,I=!!o.yperiodalignment;for(M=0;M=Math.min(U,G)&&c<=Math.max(U,G)?0:1/0}if(C<=q){if(q=C,k=f[_],E=s.c2p(k)-v,I){var X=s.c2p(o._yStarts[_]),Y=s.c2p(o._yEnds[_]);E=v>=Math.min(X,Y)&&v<=Math.max(X,Y)?0:1/0}P=Math.sqrt(C*C+E*E),x=p[M]}}}else for(M=0;MG8e,SYMBOL_SDF_SIZE:()=>O8e,SYMBOL_SIZE:()=>H8e,SYMBOL_STROKE:()=>U8e,TOO_MANY_POINTS:()=>I8e});var I8e,O8e,H8e,U8e,G8e,xp=Ja(()=>{"use strict";I8e=1e5,O8e=200,H8e=20,U8e=1,G8e={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var gb=B((WNe,ZX)=>{"use strict";var Y8e=Fl(),V8e=Di(),X8e=yw(),ln=Nf(),VX=$2().axisHoverFormat,XX=Q0(),W8e=(tg(),vr(rg)).default,_A=Fn().extendFlat,Z8e=Nl().overrideAll,J8e=(xp(),vr(bp)).DASHES,WX=ln.line,ku=ln.marker,j8e=ku.line,Xf=ZX.exports=Z8e({x:ln.x,x0:ln.x0,dx:ln.dx,y:ln.y,y0:ln.y0,dy:ln.dy,xperiod:ln.xperiod,yperiod:ln.yperiod,xperiod0:ln.xperiod0,yperiod0:ln.yperiod0,xperiodalignment:ln.xperiodalignment,yperiodalignment:ln.yperiodalignment,xhoverformat:VX("x"),yhoverformat:VX("y"),text:ln.text,hovertext:ln.hovertext,textposition:ln.textposition,textfont:V8e({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:WX.color,width:WX.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:W8e(J8e),dflt:"solid"}},marker:_A({},XX("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({},XX("marker.line"),{width:j8e.width})}),connectgaps:ln.connectgaps,fill:_A({},ln.fill,{dflt:"none"}),fillcolor:X8e(),selected:{marker:ln.selected.marker,textfont:ln.selected.textfont},unselected:{marker:ln.unselected.marker,textfont:ln.unselected.textfont},opacity:Y8e.opacity},"calc","nested");Xf.x.editType=Xf.y.editType=Xf.x0.editType=Xf.y0.editType="calc+clearAxisTypes";Xf.hovertemplate=ln.hovertemplate;Xf.hovertemplatefallback=ln.hovertemplatefallback;Xf.texttemplate=ln.texttemplate;Xf.texttemplatefallback=ln.texttemplatefallback});var bb=B(wA=>{"use strict";var{symbolNumber:JX}=Sa();wA.isOpenSymbol=e=>JX(e)%200>=100;wA.isDotSymbol=e=>JX(e)>=200});var KX=B((JNe,$X)=>{"use strict";var jX=or(),$8e=Pt(),K8e=bb(),Q8e=gb(),ewe=(O1(),vr(I1)),xb=Ti(),rwe=Yw(),twe=Vw(),awe=M5(),nwe=Xw(),iwe=Zw(),owe=Ww();$X.exports=function(r,t,a,n){function i(d,p){return jX.coerce(r,t,Q8e,d,p)}var o=r.marker?K8e.isOpenSymbol(r.marker.symbol):!1,l=xb.isBubble(r),s=rwe(r,t,n,i);if(!s){t.visible=!1;return}twe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var u=s{"use strict";var lwe=v9();QX.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]),lwe(r,t,a)}});var tW=B(($Ne,rW)=>{"use strict";function swe(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 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=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 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(;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 _p(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)}rW.exports={ge:function(e,r,t,a,n){return _p(e,r,t,a,n,swe)},gt:function(e,r,t,a,n){return _p(e,r,t,a,n,uwe)},lt:function(e,r,t,a,n){return _p(e,r,t,a,n,fwe)},le:function(e,r,t,a,n){return _p(e,r,t,a,n,cwe)},eq:function(e,r,t,a,n){return _p(e,r,t,a,n,vwe)}}});var AA=B((KNe,aW)=>{aW.exports=hwe;function hwe(e,r,t){return rt?t:e:er?r:e}});var Ns=B((QNe,iW)=>{"use strict";iW.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=nW(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var dwe=Ns();oW.exports=pwe;function pwe(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=dwe(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 Dc=B((rze,lW)=>{"use strict";lW.exports=mwe;function mwe(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;an&&(n=e[o]),e[o]{"use strict";sW.exports=function(){for(var r=0;r{fW.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 Lc=B((nze,vW)=>{var cW=_b();vW.exports=ywe;function ywe(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(cW(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{"use strict";hW.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var mW=B((oze,pW)=>{"use strict";pW.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var AW=B((lze,wW)=>{"use strict";var yW=tW(),gW=AA(),gwe=Vh(),bwe=Dc(),bW=Ns(),MA=uW(),xwe=Lc(),_we=dW(),wwe=_b(),xW=mW(),Awe=1073741824;wW.exports=function(r,t){t||(t={}),r=xwe(r,"float64"),t=bW(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,bwe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=_W(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(wwe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||k>Awe){for(let Y=0;Yee||E>me||F=q||Z===j)return;let fe=s[V];j===void 0&&(j=fe.length);for(let ur=Z;ur=x&&Ue<=k&&Ye>=w&&Ye<=M&&z.push(qe)}let he=u[V],te=he[Z*4+0],Le=he[Z*4+1],ce=he[Z*4+2],Fe=he[Z*4+3],Re=U(he,Z+1),ge=Y*.5,He=V+1;I(G,X,ge,He,te,Le||ce||Fe||Re),I(G,X+ge,ge,He,Le,ce||Fe||Re),I(G+ge,X,ge,He,ce,Fe||Re),I(G+ge,X+ge,ge,He,Fe,Re)}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{"use strict";TW.exports=AW()});var kW=B((uze,MW)=>{MW.exports=Mwe;var SA={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Twe=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Mwe(e){var r=[];return e.replace(Twe,function(t,a,n){var i=a.toLowerCase();for(n=Swe(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{SW.exports=Cwe;function Cwe(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{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});var Dwe=(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")}})(),wp=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}},Lwe=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}]},DW=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)},Ewe=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,E=(-v-_)/o,F=DW(1,0,k,M),P=DW(k,M,C,E);return s===0&&P>0&&(P-=wp),s===1&&P<0&&(P+=wp),[x,w,F,P]},qwe=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*wp/360),y=Math.cos(u*wp/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=Ewe(t,a,n,i,o,l,c,d,m,y,b,T),w=Dwe(x,4),k=w[0],M=w[1],C=w[2],E=w[3],F=Math.abs(E)/(wp/4);Math.abs(1-F)<1e-7&&(F=1);var P=Math.max(Math.ceil(F),1);E/=P;for(var q=0;q{"use strict";FW.exports=Rwe;var Fwe=EW();function Rwe(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;c4?(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 qW(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 DA=B((vze,PW)=>{"use strict";PW.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 zW=B((hze,NW)=>{"use strict";var Pwe=kW(),Nwe=CW(),zwe=RW(),Bwe=DA();NW.exports=Iwe;function Iwe(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=Pwe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Nwe(e),e=zwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var HW=B((dze,OW)=>{"use strict";OW.exports=Owe;var Ap=1e20;function Owe(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);pVW});function VW(e,r={}){if(!(0,GW.default)(e))throw Error("Invalid SVG path");let t,a;r.shape||Array.isArray(r)?[t,a]=r.shape||r:(t=LA.width=r.width||r.w||200,a=LA.height=r.height||r.h||200);let n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||(0,UW.default)(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;rs.fillStyle="black",rs.fillRect(0,0,t,a),rs.fillStyle="white",i&&(typeof i!="number"&&(i=1),rs.strokeStyle=i>0?"white":"black",rs.lineWidth=Math.abs(i)),rs.translate(t*.5,a*.5),rs.scale(s,s);let u=new Path2D(e);return rs.fill(u),i&&rs.stroke(u),rs.setTransform(1,0,0,1,0,0),(0,YW.default)(rs,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5})}var UW,GW,YW,LA,rs,WW=Ja(()=>{UW=c2(zW()),GW=c2(DA()),YW=c2(HW()),LA=document.createElement("canvas"),rs=LA.getContext("2d",{willReadFrequently:!0})});var eZ=B((pze,QW)=>{"use strict";var $W=da(),Tb=nh(),Xh=Kt(),Hwe=gs().defaultLine,ZW=so().isArrayOrTypedArray,qA=Xh.normalize(Hwe),KW=1;function JW(e,r){return[e[0],e[1],e[2],e[3]*r]}function EA(e){return $W(e)||!Xh.isChannelArray(e)&&!Xh.isValid(e)?qA:Xh.normalize(e)}function jW(e){return $W(e)?e:KW}function Uwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=ZW(a),i=ZW(r),o=Tb.extractOpts(e),l=[],s,u,f,c,v;if(o.colorscale!==void 0?s=Tb.makeColorScaleFuncFromTrace(e):s=EA,n?u=(p,m)=>p[m]===void 0?qA:o.colorscale===void 0?s(p[m]):Xh.normalize(s(p[m])):u=EA,i?f=function(p,m){return p[m]===void 0?KW:jW(p[m])}:f=jW,n||i)for(var d=0;d{"use strict";var kb=da(),Ywe=(WW(),vr(XW)).default,{normalize:Mb,rgbaString:qc}=Kt(),Vwe=Pt(),Jh=or(),Hn=Jh.isArrayOrTypedArray,Wh=Sa(),rZ=hn(),tZ=eZ().formatColor,Zh=Ti(),Xwe=f7(),RA=bb(),Tp=(xp(),vr(bp)),Wwe=(zv(),vr(Nv)).DESELECTDIM,aZ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Zwe=_s().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=fZ(e,r),a.textSel=iZ(e,r,r.selected),a.textUnsel=iZ(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;t500?"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=RA.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=tZ(a,a.opacity,t),b=tZ(a.line,a.opacity,t);if(!Hn(b[0])){var T=b;for(b=Array(t),i=0;iTp.TOO_MANY_POINTS||Zh.hasMarkers(r)?"rect":"round";if(u&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Hn(u)?u.length>1?u[o]:u[0]:u,p=aZ[v],m=aZ[d],y=f?f/.8+1:0,b=-m*y-m*.5;i.offset[o]=[p*y/c,b/c]}}return i}cZ.exports={style:Jwe,markerStyle:NA,markerSelection:PA,linePositions:$we,errorBarPositions:Kwe,textPosition:Qwe}});var hZ=B((gze,vZ)=>{"use strict";var Sb=or();vZ.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{"use strict";var e9e=kA(),jh=or(),dZ=hn(),r9e=uh().findExtremes,pZ=jw(),zA=Ch(),t9e=zA.calcMarkerSize,a9e=zA.calcAxisExpansion,n9e=zA.setFirstScatter,i9e=Q1(),$h=Mp(),o9e=hZ(),mZ=(Wn(),vr(ri)).BADNUM,l9e=(xp(),vr(bp)).TOO_MANY_POINTS;gZ.exports=function(r,t){var a=r._fullLayout,n=t._xA=dZ.getFromId(r,t.xaxis,"x"),i=t._yA=dZ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=l9e,u=l*2,f={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=pZ(t,n,"x",v),m=pZ(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;c1&&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 BA=B((xze,_Z)=>{"use strict";var xZ=or(),u9e=Kt(),f9e=(zv(),vr(Nv)).DESELECTDIM;function c9e(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=xZ.extendFlat({},s),v,d;if(o.length||l.length){var p=u.color,m=f.color,y=s.color,b=xZ.isArrayOrTypedArray(y);for(c.color=new Array(t._length),v=0;v{"use strict";var wZ=Ti(),v9e=BA().styleTextSelection;AZ.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=wZ.hasText(l),m=wZ.hasMarkers(l),y=!m&&!p;if(l.visible!==!0||y)return o;var b=[],T=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var h9e=xA();MZ.exports={moduleType:"trace",name:"scattergl",basePlotModule:ip(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:gb(),supplyDefaults:KX(),crossTraceDefaults:Jw(),colorbar:q5(),formatLabels:eW(),calc:bZ(),hoverPoints:h9e.hoverPoints,selectPoints:TZ(),meta:{}}});var CZ=B((Aze,SZ)=>{"use strict";SZ.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 qZ=B((Tze,EZ)=>{"use strict";var DZ=CZ();EZ.exports=d9e;var LZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function d9e(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),DZ[e])t=DZ[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(LZ[v]!==void 0)return LZ[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 RZ=B((Mze,FZ)=>{"use strict";var p9e=qZ();FZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=p9e(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=m9e(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function m9e(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 kp=B((kze,PZ)=>{"use strict";var y9e=RZ(),g9e=_b();PZ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=g9e(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=y9e(r),r[0]/=255,r[1]/=255,r[2]/=255),b9e(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 b9e(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 zZ=B((Sze,Db)=>{"use strict";var Cb=AA();Db.exports=NZ;Db.exports.to=NZ;Db.exports.from=x9e;function NZ(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 x9e(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 IZ=B((Cze,BZ)=>{BZ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";OZ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";Kh.exports=Sp;Kh.exports.float32=Kh.exports.float=Sp;Kh.exports.fract32=Kh.exports.fract=_9e;var HZ=new Float32Array(1);function _9e(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Sp(e));for(var t=0,a=r.length;t{"use strict";var w9e=kp(),A9e=Dc(),T9e=zZ(),M9e=kA(),Eb=IZ(),k9e=Ns(),S9e=IA(),C9e=Lc(),qb=Lb(),D9e=Vh(),L9e=Ri;function Ri(e,r){if(!(this instanceof Ri))return new Ri(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=Eb([`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=Eb([`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=Eb([`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=Eb([`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)}Ri.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};Ri.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};Ri.prototype.draw=function(){for(var e=arguments.length,r=new Array(e),t=0;t{this.drawItem(i)});return this};Ri.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{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=k9e(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({},Ri.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(S9e(c,u,[{snap:!0,size:(p,m)=>(p==null&&(p=Ri.defaults.size),v+=p&&p.length?1:0,p),borderSize:(p,m)=>(p==null&&(p=Ri.defaults.borderSize),v+=p&&p.length?1:0,p),opacity:parseFloat,color:(p,m)=>(p==null&&(p=Ri.defaults.color),p=this.updateColor(p),d++,p),borderColor:(p,m)=>(p==null&&(p=Ri.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=C9e(p,"float64");let w=m.count=Math.floor(p.length/2),k=m.bounds=w?A9e(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=M9e(p,{bounds:k}):b&&b.length&&(m.tree=b),m.tree){let E={primitive:"points",usage:"static",data:m.tree,type:"uint32"};m.elements?m.elements(E):m.elements=i.elements(E)}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);_{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=>D9e(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;_=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;la*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Ri.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{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 E9e=function(e,r){var t=new L9e(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};UZ.exports=E9e});var bi=B((qze,YZ)=>{"use strict";var GZ=Object.getOwnPropertySymbols,q9e=Object.prototype.hasOwnProperty,F9e=Object.prototype.propertyIsEnumerable;function R9e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function P9e(){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}}YZ.exports=P9e()?Object.assign:function(e,r){for(var t,a=R9e(e),n,i=1;i{"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=XZ(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=O9e(e,r,i,t)),e.length>80*t){l=u=e[0],s=f=e[1];for(var p=t;pu&&(u=c),v>f&&(f=v);d=Math.max(u-l,f-s),d=d!==0?32767/d:0}return Cp(i,o,t,l,s,d,0),o}function XZ(e,r,t,a,n){var i,o;if(n===GA(e,r,t,a)>0)for(i=r;i=r;i-=a)o=VZ(i,e[i],e[i+1],o);return o&&Nb(o,o.next)&&(Lp(o),o=o.next),o}function Fc(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(Lp(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Cp(e,r,t,a,n,i,o){if(e){!o&&i&&V9e(e,a,n,i);for(var l=e,s,u;e.prev!==e.next;){if(s=e.prev,u=e.next,i?z9e(e,a,n,i):N9e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(u.i/t|0),Lp(e),e=u.next,l=u.next;continue}if(e=u,e===l){o?o===1?(e=B9e(Fc(e),r,t),Cp(e,r,t,a,n,i,2)):o===2&&I9e(e,r,t,a,n,i):Cp(Fc(e),r,t,a,n,i,1);break}}}}function N9e(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=ni?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 z9e(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=ls?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)&&WZ(n,a,a.next,i)&&Dp(n,i)&&Dp(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),Lp(a),Lp(a.next),a=e=i),a=a.next}while(a!==e);return Fc(a)}function I9e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&Z9e(o,l)){var s=ZZ(o,l);o=Fc(o,o.next),s=Fc(s,s.next),Cp(o,r,t,a,n,i,0),Cp(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function O9e(e,r,t,a){var n=[],i,o,l,s,u;for(i=0,o=r.length;i=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.x&&t.x>=u&&a!==t.x&&Qh(no.x||t.x===o.x&&Y9e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function Y9e(e,r){return Un(e.prev,e,r.prev)<0&&Un(r.next,e,e.next)<0}function V9e(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,X9e(n)}function X9e(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;r0||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 W9e(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function Z9e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!J9e(e,r)&&(Dp(e,r)&&Dp(r,e)&&j9e(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 WZ(e,r,t,a){var n=Rb(Un(e,r,t)),i=Rb(Un(e,r,a)),o=Rb(Un(t,a,e)),l=Rb(Un(t,a,r));return!!(n!==i&&o!==l||n===0&&Fb(e,t,r)||i===0&&Fb(e,a,r)||o===0&&Fb(t,e,a)||l===0&&Fb(t,r,a))}function Fb(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 Rb(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&&WZ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Dp(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 j9e(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 ZZ(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 VZ(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 Lp(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;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var $Z=B((Rze,jZ)=>{"use strict";var $9e=Dc();jZ.exports=K9e;function K9e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=$9e(e,r));for(var a=0;a{"use strict";KZ.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 rJ=B((Nze,eJ)=>{"use strict";eJ.exports=function(){}});var Wf=B((zze,tJ)=>{"use strict";var Q9e=rJ()();tJ.exports=function(e){return e!==Q9e&&e!==null}});var VA=B((Bze,nJ)=>{"use strict";var eAe=Object.create,rAe=Object.getPrototypeOf,aJ={};nJ.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||eAe;return typeof e!="function"?!1:rAe(e(r(null),aJ))===aJ}});var XA=B((Ize,iJ)=>{"use strict";var tAe=Wf(),aAe={function:!0,object:!0};iJ.exports=function(e){return tAe(e)&&aAe[typeof e]||!1}});var Su=B((Oze,oJ)=>{"use strict";var nAe=Wf();oJ.exports=function(e){if(!nAe(e))throw new TypeError("Cannot use null or undefined");return e}});var sJ=B((Hze,lJ)=>{"use strict";var WA=Object.create,zb;VA()()||(zb=ZA());lJ.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=B((Uze,uJ)=>{"use strict";var iAe=XA(),oAe=Su(),lAe=Object.prototype.isPrototypeOf,sAe=Object.defineProperty,uAe={configurable:!0,enumerable:!1,writable:!0,value:void 0},Bb;Bb=function(e,r){if(oAe(e),r===null||iAe(r))return e;throw new TypeError("Prototype must be null or an object")};uJ.exports=(function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(Bb(a,n),n),a}):r=function(a,n){return Bb(a,n).__proto__=n,a}:r=function a(n,i){var o;return Bb(n,i),o=lAe.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&sAe(a.nullPolyfill,"__proto__",uAe),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)})());sJ()});var Ib=B((Gze,fJ)=>{"use strict";fJ.exports=VA()()?Object.setPrototypeOf:ZA()});var vJ=B((Yze,cJ)=>{"use strict";var fAe=XA();cJ.exports=function(e){if(!fAe(e))throw new TypeError(e+" is not an Object");return e}});var dJ=B((Vze,hJ)=>{"use strict";var cAe=Object.create(null),vAe=Math.random;hJ.exports=function(){var e;do e=vAe().toString(36).slice(2);while(cAe[e]);return e}});var Rc=B((Xze,pJ)=>{"use strict";var hAe=void 0;pJ.exports=function(e){return e!==hAe&&e!==null}});var JA=B((Wze,mJ)=>{"use strict";var dAe=Rc(),pAe={object:!0,function:!0,undefined:!0};mJ.exports=function(e){return dAe(e)?hasOwnProperty.call(pAe,typeof e):!1}});var gJ=B((Zze,yJ)=>{"use strict";var mAe=JA();yJ.exports=function(e){if(!mAe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var xJ=B((Jze,bJ)=>{"use strict";var yAe=gJ();bJ.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!yAe(e)}});var jA=B((jze,_J)=>{"use strict";var gAe=xJ(),bAe=/^\s*class[\s{/}]/,xAe=Function.prototype.toString;_J.exports=function(e){return!(!gAe(e)||bAe.test(xAe.call(e)))}});var AJ=B(($ze,wJ)=>{"use strict";wJ.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 MJ=B((Kze,TJ)=>{"use strict";TJ.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var SJ=B((Qze,kJ)=>{"use strict";var _Ae=Wf(),wAe=Object.keys;kJ.exports=function(e){return wAe(_Ae(e)?Object(e):e)}});var DJ=B((eBe,CJ)=>{"use strict";CJ.exports=MJ()()?Object.keys:SJ()});var EJ=B((rBe,LJ)=>{"use strict";var AAe=DJ(),TAe=Su(),MAe=Math.max;LJ.exports=function(e,r){var t,a,n=MAe(arguments.length,2),i;for(e=Object(TAe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";qJ.exports=AJ()()?Object.assign:EJ()});var $A=B((aBe,FJ)=>{"use strict";var kAe=Wf(),SAe=Array.prototype.forEach,CAe=Object.create,DAe=function(e,r){var t;for(t in e)r[t]=e[t]};FJ.exports=function(e){var r=CAe(null);return SAe.call(arguments,function(t){kAe(t)&&DAe(Object(t),r)}),r}});var PJ=B((nBe,RJ)=>{"use strict";var KA="razdwatrzy";RJ.exports=function(){return typeof KA.contains!="function"?!1:KA.contains("dwa")===!0&&KA.contains("foo")===!1}});var zJ=B((iBe,NJ)=>{"use strict";var LAe=String.prototype.indexOf;NJ.exports=function(e){return LAe.call(this,e,arguments[1])>-1}});var QA=B((oBe,BJ)=>{"use strict";BJ.exports=PJ()()?String.prototype.contains:zJ()});var Cu=B((lBe,UJ)=>{"use strict";var Hb=Rc(),IJ=jA(),OJ=Ob(),HJ=$A(),Ep=QA(),EAe=UJ.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=Ep.call(e,"c"),a=Ep.call(e,"e"),n=Ep.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?OJ(HJ(i),o):o};EAe.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)?IJ(r)?Hb(t)?IJ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,Hb(e)?(a=Ep.call(e,"c"),n=Ep.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?OJ(HJ(i),o):o}});var qp=B((sBe,YJ)=>{"use strict";var GJ=Object.prototype.toString,qAe=GJ.call((function(){return arguments})());YJ.exports=function(e){return GJ.call(e)===qAe}});var Fp=B((uBe,XJ)=>{"use strict";var VJ=Object.prototype.toString,FAe=VJ.call("");XJ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||VJ.call(e)===FAe)||!1}});var ZJ=B((fBe,WJ)=>{"use strict";WJ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var $J=B((cBe,jJ)=>{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`")};jJ.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 Rp=B((vBe,KJ)=>{"use strict";KJ.exports=ZJ()()?globalThis:$J()});var ej=B((hBe,QJ)=>{"use strict";var RAe=Rp(),eT={object:!0,symbol:!0};QJ.exports=function(){var e=RAe.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 tj=B((dBe,rj)=>{"use strict";rj.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var rT=B((pBe,aj)=>{"use strict";var PAe=tj();aj.exports=function(e){if(!PAe(e))throw new TypeError(e+" is not a symbol");return e}});var sj=B((mBe,lj)=>{"use strict";var nj=Cu(),NAe=Object.create,ij=Object.defineProperty,zAe=Object.prototype,oj=NAe(null);lj.exports=function(e){for(var r=0,t,a;oj[e+(r||"")];)++r;return e+=r||"",oj[e]=!0,t="@@"+e,ij(zAe,t,nj.gs(null,function(n){a||(a=!0,ij(this,t,nj(n)),a=!1)})),t}});var fj=B((yBe,uj)=>{"use strict";var ts=Cu(),Jn=Rp().Symbol;uj.exports=function(e){return Object.defineProperties(e,{hasInstance:ts("",Jn&&Jn.hasInstance||e("hasInstance")),isConcatSpreadable:ts("",Jn&&Jn.isConcatSpreadable||e("isConcatSpreadable")),iterator:ts("",Jn&&Jn.iterator||e("iterator")),match:ts("",Jn&&Jn.match||e("match")),replace:ts("",Jn&&Jn.replace||e("replace")),search:ts("",Jn&&Jn.search||e("search")),species:ts("",Jn&&Jn.species||e("species")),split:ts("",Jn&&Jn.split||e("split")),toPrimitive:ts("",Jn&&Jn.toPrimitive||e("toPrimitive")),toStringTag:ts("",Jn&&Jn.toStringTag||e("toStringTag")),unscopables:ts("",Jn&&Jn.unscopables||e("unscopables"))})}});var hj=B((gBe,vj)=>{"use strict";var cj=Cu(),BAe=rT(),Pp=Object.create(null);vj.exports=function(e){return Object.defineProperties(e,{for:cj(function(r){return Pp[r]?Pp[r]:Pp[r]=e(String(r))}),keyFor:cj(function(r){var t;BAe(r);for(t in Pp)if(Pp[t]===r)return t})})}});var mj=B((bBe,pj)=>{"use strict";var zs=Cu(),tT=rT(),Ub=Rp().Symbol,IAe=sj(),OAe=fj(),HAe=hj(),UAe=Object.create,aT=Object.defineProperties,Gb=Object.defineProperty,ao,ed,dj;if(typeof Ub=="function")try{String(Ub()),dj=!0}catch(e){}else Ub=null;ed=function(r){if(this instanceof ed)throw new TypeError("Symbol is not a constructor");return ao(r)};pj.exports=ao=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return dj?Ub(r):(t=UAe(ed.prototype),r=r===void 0?"":String(r),aT(t,{__description__:zs("",r),__name__:zs("",IAe(r))}))};OAe(ao);HAe(ao);aT(ed.prototype,{constructor:zs(ao),toString:zs("",function(){return this.__name__})});aT(ao.prototype,{toString:zs(function(){return"Symbol ("+tT(this).__description__+")"}),valueOf:zs(function(){return tT(this)})});Gb(ao.prototype,ao.toPrimitive,zs("",function(){var e=tT(this);return typeof e=="symbol"?e:e.toString()}));Gb(ao.prototype,ao.toStringTag,zs("c","Symbol"));Gb(ed.prototype,ao.toStringTag,zs("c",ao.prototype[ao.toStringTag]));Gb(ed.prototype,ao.toPrimitive,zs("c",ao.prototype[ao.toPrimitive]))});var Zf=B((xBe,yj)=>{"use strict";yj.exports=ej()()?Rp().Symbol:mj()});var bj=B((_Be,gj)=>{"use strict";var GAe=Su();gj.exports=function(){return GAe(this).length=0,this}});var rd=B((wBe,xj)=>{"use strict";xj.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var wj=B((ABe,_j)=>{"use strict";var YAe=Rc(),VAe=JA(),XAe=Object.prototype.toString;_j.exports=function(e){if(!YAe(e))return null;if(VAe(e)){var r=e.toString;if(typeof r!="function"||r===XAe)return null}try{return""+e}catch(t){return null}}});var Tj=B((TBe,Aj)=>{"use strict";Aj.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var kj=B((MBe,Mj)=>{"use strict";var WAe=Tj(),ZAe=/[\n\r\u2028\u2029]/g;Mj.exports=function(e){var r=WAe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(ZAe,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 Cj=B((kBe,Sj)=>{"use strict";var JAe=wj(),jAe=kj();Sj.exports=function(e,r,t){t&&t.errorMessage&&(e=JAe(t.errorMessage));var a=e.indexOf("%v"),n=a>-1?jAe(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=B((SBe,Dj)=>{"use strict";var $Ae=Rc(),KAe=Cj();Dj.exports=function(e,r,t){if(t&&!$Ae(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=t&&t.Error||TypeError,n=new a(KAe(r,e,t));throw t&&t.errorCode&&(n.code=t.errorCode),n}});var Ej=B((CBe,Lj)=>{"use strict";var QAe=nT(),eTe=Rc();Lj.exports=function(e){if(eTe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a value for %n, received %v":"Cannot use %v";return QAe(e,t,r)}});var Fj=B((DBe,qj)=>{"use strict";var rTe=nT(),tTe=jA();qj.exports=function(e){if(tTe(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 rTe(e,t,r)}});var Pj=B((LBe,Rj)=>{"use strict";Rj.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 zj=B((EBe,Nj)=>{"use strict";var aTe=Object.prototype.toString,nTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Nj.exports=function(e){return typeof e=="function"&&nTe(aTe.call(e))}});var Ij=B((qBe,Bj)=>{"use strict";Bj.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Hj=B((FBe,Oj)=>{"use strict";Oj.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Gj=B((RBe,Uj)=>{"use strict";Uj.exports=Ij()()?Math.sign:Hj()});var Vj=B((PBe,Yj)=>{"use strict";var iTe=Gj(),oTe=Math.abs,lTe=Math.floor;Yj.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:iTe(e)*lTe(oTe(e)))}});var Wj=B((NBe,Xj)=>{"use strict";var sTe=Vj(),uTe=Math.max;Xj.exports=function(e){return uTe(0,sTe(e))}});var $j=B((zBe,jj)=>{"use strict";var fTe=Zf().iterator,cTe=qp(),vTe=zj(),hTe=Wj(),Zj=rd(),dTe=Su(),pTe=Wf(),mTe=Fp(),Jj=Array.isArray,iT=Function.prototype.call,Pc={configurable:!0,enumerable:!0,writable:!0,value:null},oT=Object.defineProperty;jj.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,u,f,c,v;if(e=Object(dTe(e)),pTe(r)&&Zj(r),!this||this===Array||!vTe(this)){if(!r){if(cTe(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=55296&&s<=56319&&(v+=e[++n])),v=r?iT.call(r,t,v,i):v,a?(Pc.value=v,oT(o,i,Pc)):o[i]=v,++i;l=i}}if(l===void 0)for(l=hTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";Kj.exports=Pj()()?Array.from:$j()});var r$=B((IBe,e$)=>{"use strict";var yTe=Qj(),gTe=Ob(),bTe=Su();e$.exports=function(e){var r=Object(bTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?yTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):gTe(n,e),n}});var n$=B((OBe,a$)=>{"use strict";var xTe=rd(),_Te=Su(),wTe=Function.prototype.bind,t$=Function.prototype.call,ATe=Object.keys,TTe=Object.prototype.propertyIsEnumerable;a$.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(_Te(t)),xTe(a),n=ATe(t),o&&n.sort(typeof o=="function"?wTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),t$.call(e,n,function(l,s){return TTe.call(t,l)?t$.call(a,i,t[l],l,t,s):r})}}});var o$=B((HBe,i$)=>{"use strict";i$.exports=n$()("forEach")});var s$=B((UBe,l$)=>{"use strict";var MTe=rd(),kTe=o$(),STe=Function.prototype.call;l$.exports=function(e,r){var t={},a=arguments[2];return MTe(r),kTe(e,function(n,i,o,l){t[i]=STe.call(r,a,n,i,o,l)}),t}});var v$=B((GBe,c$)=>{"use strict";var CTe=Rc(),DTe=Ej(),u$=Fj(),LTe=r$(),ETe=$A(),qTe=s$(),FTe=Function.prototype.bind,RTe=Object.defineProperty,PTe=Object.prototype.hasOwnProperty,f$;f$=function(e,r,t){var a=DTe(r)&&u$(r.value),n;return n=LTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&PTe.call(this,e)?a:(r.value=FTe.call(a,t.resolveContext?t.resolveContext(this):this),RTe(this,e,r),this[e])},n};c$.exports=function(e){var r=ETe(arguments[1]);return CTe(r.resolveContext)&&u$(r.resolveContext),qTe(e,function(t,a){return f$(a,t,r)})}});var lT=B((YBe,m$)=>{"use strict";var NTe=bj(),zTe=Ob(),BTe=rd(),ITe=Su(),Lo=Cu(),OTe=v$(),h$=Zf(),d$=Object.defineProperty,p$=Object.defineProperties,Np;m$.exports=Np=function(e,r){if(!(this instanceof Np))throw new TypeError("Constructor requires 'new'");p$(this,{__list__:Lo("w",ITe(e)),__context__:Lo("w",r),__nextIndex__:Lo("w",0)}),r&&(BTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete Np.prototype.constructor;p$(Np.prototype,zTe({_next:Lo(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){d$(this,"__redo__",Lo("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:Lo(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:Lo(function(){this.__redo__&&NTe.call(this.__redo__),this.__nextIndex__=0})})));d$(Np.prototype,h$.iterator,Lo(function(){return this}))});var _$=B((VBe,x$)=>{"use strict";var y$=Ib(),g$=QA(),sT=Cu(),HTe=Zf(),uT=lT(),b$=Object.defineProperty,td;td=x$.exports=function(e,r){if(!(this instanceof td))throw new TypeError("Constructor requires 'new'");uT.call(this,e),r?g$.call(r,"key+value")?r="key+value":g$.call(r,"key")?r="key":r="value":r="value",b$(this,"__kind__",sT("",r))};y$&&y$(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})});b$(td.prototype,HTe.toStringTag,sT("c","Array Iterator"))});var M$=B((XBe,T$)=>{"use strict";var w$=Ib(),Yb=Cu(),UTe=Zf(),fT=lT(),A$=Object.defineProperty,ad;ad=T$.exports=function(e){if(!(this instanceof ad))throw new TypeError("Constructor requires 'new'");e=String(e),fT.call(this,e),A$(this,"__length__",Yb("",e.length))};w$&&w$(ad,fT);delete ad.prototype.constructor;ad.prototype=Object.create(fT.prototype,{_next:Yb(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});A$(ad.prototype,UTe.toStringTag,Yb("c","String Iterator"))});var S$=B((WBe,k$)=>{"use strict";var GTe=qp(),YTe=Wf(),VTe=Fp(),XTe=Zf().iterator,WTe=Array.isArray;k$.exports=function(e){return YTe(e)?WTe(e)||VTe(e)||GTe(e)?!0:typeof e[XTe]=="function":!1}});var D$=B((ZBe,C$)=>{"use strict";var ZTe=S$();C$.exports=function(e){if(!ZTe(e))throw new TypeError(e+" is not iterable");return e}});var cT=B((JBe,q$)=>{"use strict";var JTe=qp(),jTe=Fp(),L$=_$(),$Te=M$(),KTe=D$(),E$=Zf().iterator;q$.exports=function(e){return typeof KTe(e)[E$]=="function"?e[E$]():JTe(e)?new L$(e):jTe(e)?new $Te(e):new L$(e)}});var R$=B((jBe,F$)=>{"use strict";var QTe=qp(),eMe=rd(),rMe=Fp(),tMe=cT(),aMe=Array.isArray,vT=Function.prototype.call,nMe=Array.prototype.some;F$.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,u,f;if(aMe(e)||QTe(e)?t="array":rMe(e)?t="string":e=tMe(e),eMe(r),i=function(){o=!0},t==="array"){nMe.call(e,function(c){return vT.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=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 N$=B(($Be,P$)=>{"use strict";P$.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var I$=B((KBe,B$)=>{"use strict";var iMe=Wf(),Xb=Ib(),Vb=vJ(),oMe=Su(),lMe=dJ(),Du=Cu(),sMe=cT(),uMe=R$(),fMe=Zf().toStringTag,z$=N$(),cMe=Array.isArray,dT=Object.defineProperty,hT=Object.prototype.hasOwnProperty,vMe=Object.getPrototypeOf,Jf;B$.exports=Jf=function(){var e=arguments[0],r;if(!(this instanceof Jf))throw new TypeError("Constructor requires 'new'");return r=z$&&Xb&&WeakMap!==Jf?Xb(new WeakMap,vMe(this)):this,iMe(e)&&(cMe(e)||(e=sMe(e))),dT(r,"__weakMapData__",Du("c","$weakMap$"+lMe())),e&&uMe(e,function(t){oMe(t),r.set(t[0],t[1])}),r};z$&&(Xb&&Xb(Jf,WeakMap),Jf.prototype=Object.create(WeakMap.prototype,{constructor:Du(Jf)}));Object.defineProperties(Jf.prototype,{delete:Du(function(e){return hT.call(Vb(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Du(function(e){if(hT.call(Vb(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Du(function(e){return hT.call(Vb(e),this.__weakMapData__)}),set:Du(function(e,r){return dT(Vb(e),this.__weakMapData__,Du("c",r)),this}),toString:Du(function(){return"[object WeakMap]"})});dT(Jf.prototype,fMe,Du("c","WeakMap"))});var pT=B((QBe,O$)=>{"use strict";O$.exports=QZ()()?WeakMap:I$()});var U$=B((eIe,H$)=>{"use strict";H$.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{"use strict";var Wb=kp(),hMe=Dc(),yT=bi(),dMe=Ns(),pMe=Lc(),G$=JZ(),mMe=$Z(),{float32:yMe,fract32:mT}=Lb(),gMe=pT(),Y$=Vh(),bMe=U$(),xMe=` 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.; } `,_Me=` 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; } `,wMe=` 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; } `,AMe=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } `,TMe=` 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; } } } `,MMe=` 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; } `;V$.exports=Xa;function Xa(e,r){if(!(this instanceof Xa))return new Xa(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=Xa.shaders.has(e)?Xa.shaders.get(e):Xa.shaders.set(e,Xa.createShaders(e)).get(e),this.update(r)}Xa.dashMult=2;Xa.maxPatternLength=256;Xa.precisionThreshold=3e6;Xa.maxPoints=1e4;Xa.maxLines=2048;Xa.shaders=new gMe;Xa.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:xMe,frag:_Me,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:TMe,frag:MMe,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:wMe,frag:AMe,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}};Xa.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};Xa.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Xa.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>Xa.precisionThreshold||r.scale[1]*r.viewport.height>Xa.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=Xa.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};Xa.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=dMe(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({},Xa.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,iv[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;_M-C),x=[],w=0,k=o.hole!=null?o.hole[0]:null;if(k!=null){let M=bMe(_,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):[]),E=(o.hole||[]).map(P=>P-k+(_[M]-w)),F=G$(C,E);F=F.map(P=>P+w+(P+w<_[M]?0:k-_[M])),x.push(...F),w=_[M]+1}for(let M=0,C=x.length;M{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var j$=B((tIe,J$)=>{"use strict";var kMe=Dc(),SMe=kp(),CMe=IA(),DMe=Ns(),X$=bi(),W$=Lc(),{float32:LMe,fract32:bT}=Lb();J$.exports=EMe;var Z$=[[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 EMe(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:Z$}),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:Z$.length}),X$(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=DMe(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=X$({},u,w)),CMe(M,w,[{lineWidth:C=>+C*.5,capSize:C=>+C*.5,opacity:parseFloat,errors:C=>(C=W$(C),T+=C.length,C),positions:(C,E)=>(C=W$(C,"float64"),E.count=Math.floor(C.length/2),E.bounds=kMe(C,2),E.offset=b,b+=E.count,C)},{color:(C,E)=>{let F=E.count;if(C||(C="transparent"),!Array.isArray(C)||typeof C[0]=="number"){let q=C;C=Array(F);for(let z=0;z{let P=E.bounds;return C||(C=P),E.scale=[1/(C[2]-C[0]),1/(C[3]-C[1])],E.translate=[-C[0],-C[1]],E.scaleFract=bT(E.scale),E.translateFract=bT(E.translate),C},viewport:C=>{let E;return Array.isArray(C)?E={x:C[0],y:C[1],width:C[2]-C[0],height:C[3]-C[1]}:C?(E={x:C.x||C.left||0,y:C.y||C.top||0},C.right?E.width=C.right-E.x:E.width=C.w||C.width||0,C.bottom?E.height=C.bottom-E.y:E.height=C.h||C.height||0):E={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},E}}]),M}),b||T){let w=f.reduce((E,F,P)=>E+(F?F.count:0),0),k=new Float64Array(w*2),M=new Uint8Array(w*4),C=new Float32Array(w*4);f.forEach((E,F)=>{if(!E)return;let{positions:P,count:q,offset:z,color:I,errors:U}=E;q&&(M.set(I,z*4),C.set(U,z*4),k.set(P,z*2))});var _=LMe(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 Q$=B((aIe,K$)=>{var $$=/[\'\"]/;K$.exports=function(r){return r?($$.test(r.charAt(0))&&(r=r.substr(1)),$$.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var xT=B((nIe,qMe)=>{qMe.exports=["inherit","initial","unset"]});var _T=B((iIe,FMe)=>{FMe.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var wT=B((oIe,RMe)=>{RMe.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var AT=B((lIe,PMe)=>{PMe.exports=["normal","italic","oblique"]});var TT=B((sIe,NMe)=>{NMe.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var aK=B((uIe,tK)=>{"use strict";function eK(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 rK(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)?rK(e,r):eK(e,r)}MT.parse=eK;MT.stringify=rK;tK.exports=MT});var oK=B((fIe,iK)=>{"use strict";var nK=aK();iK.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=nK.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{zMe.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var kT=B((vIe,sK)=>{"use strict";var BMe=lK();sK.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||BMe.indexOf(r)!==-1}}});var vK=B((hIe,cK)=>{"use strict";var IMe=Q$(),OMe=xT(),HMe=_T(),UMe=wT(),GMe=AT(),YMe=TT(),ST=oK(),VMe=kT().isSize;cK.exports=fK;var zp=fK.cache={};function fK(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(zp[e])return zp[e];if(e==="")throw new Error("Cannot parse an empty string.");if(HMe.indexOf(e)!==-1)return zp[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(OMe.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),zp[e]=r;if(GMe.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(YMe.indexOf(a)!==-1){r.stretch=a;continue}if(UMe.indexOf(a)!==-1){r.weight=a;continue}if(VMe(a)){var n=ST(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=uK(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=uK(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=ST(t.join(" "),/\s*,\s*/).map(IMe),zp[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function uK(e){var r=parseFloat(e);return r.toString()===e?r:e}});var DT=B((dIe,hK)=>{"use strict";var XMe=Ns(),WMe=kT().isSize,ZMe=Ip(xT()),JMe=Ip(_T()),jMe=Ip(wT()),$Me=Ip(AT()),KMe=Ip(TT()),QMe={normal:1,"small-caps":1},eke={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"};hK.exports=function(r){if(r=XMe(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&&Bp(r.system,JMe),r.system;if(Bp(r.style,$Me),Bp(r.variant,QMe),Bp(r.weight,jMe),Bp(r.stretch,KMe),r.size==null&&(r.size=CT.size),typeof r.size=="number"&&(r.size+="px"),!WMe)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 eke[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 Bp(e,r){if(e&&!r[e]&&!ZMe[e])throw Error("Unknown keyword `"+e+"`");return e}function Ip(e){for(var r={},t=0;t{"use strict";dK.exports={parse:vK(),stringify:DT()}});var qT=B((LT,ET)=>{(function(e,r){typeof LT=="object"&&typeof ET!="undefined"?ET.exports=r():e.createREGL=r()})(LT,(function(){"use strict";var e=function(H,ae){for(var ie=Object.keys(ae),Be=0;Be1&&ae===ie&&(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 Qe=[],Xe=0;Xe65535)<<4,H>>>=ae,ie=(H>255)<<3,H>>>=ie,ae|=ie,ie=(H>15)<<2,H>>>=ie,ae|=ie,ie=(H>3)<<1,H>>>=ie,ae|=ie,ae|H>>1}function Y(){var H=C(8,function(){return[]});function ae(Qe){var Xe=G(Qe),yr=H[X(Xe)>>2];return yr.length>0?yr.pop():new ArrayBuffer(Xe)}function ie(Qe){H[X(Qe.byteLength)>>2].push(Qe)}function Be(Qe,Xe){var yr=null;switch(Qe){case E:yr=new Int8Array(ae(Xe),0,Xe);break;case F: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 I: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(Qe){ie(Qe.buffer)}return{alloc:ae,free:ie,allocType:Be,freeType:Ze}}var V=Y();V.zero=Y();var Z=3408,j=3410,ee=3411,me=3412,fe=3413,he=3414,te=3415,Le=33901,ce=33902,Fe=3379,Re=3386,ge=34921,He=36347,ur=36348,qe=35661,Ue=35660,Ye=34930,We=36349,Ve=34076,ar=34024,Ie=7936,_r=7937,Pr=7938,Br=35724,$e=34047,mr=36063,Yr=34852,ue=3553,Ee=34067,Tr=34069,rt=33984,ot=6408,pe=5126,Ce=5121,lr=36160,wr=36053,fr=36064,kr=16384,qr=function(H,ae){var ie=1;ae.ext_texture_filter_anisotropic&&(ie=H.getParameter($e));var Be=1,Ze=1;ae.webgl_draw_buffers&&(Be=H.getParameter(Yr),Ze=H.getParameter(mr));var Qe=!!ae.oes_texture_float;if(Qe){var Xe=H.createTexture();H.bindTexture(ue,Xe),H.texImage2D(ue,0,ot,1,1,0,ot,pe,null);var yr=H.createFramebuffer();if(H.bindFramebuffer(lr,yr),H.framebufferTexture2D(lr,fr,ue,Xe,0),H.bindTexture(ue,null),H.checkFramebufferStatus(lr)!==wr)Qe=!1;else{H.viewport(0,0,1,1),H.clearColor(1,0,0,1),H.clear(kr);var Lr=V.allocType(pe,4);H.readPixels(0,0,1,1,ot,pe,Lr),H.getError()?Qe=!1:(H.deleteFramebuffer(yr),H.deleteTexture(Xe),Qe=Lr[0]===1),V.freeType(Lr)}}var Er=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Fr=!0;if(!Er){var Ct=H.createTexture(),mt=V.allocType(Ce,36);H.activeTexture(rt),H.bindTexture(Ee,Ct),H.texImage2D(Tr,0,ot,3,3,0,ot,Ce,mt),V.freeType(mt),H.bindTexture(Ee,null),H.deleteTexture(Ct),Fr=!H.getError()}return{colorBits:[H.getParameter(j),H.getParameter(ee),H.getParameter(me),H.getParameter(fe)],depthBits:H.getParameter(he),stencilBits:H.getParameter(te),subpixelBits:H.getParameter(Z),extensions:Object.keys(ae).filter(function(jr){return!!ae[jr]}),maxAnisotropic:ie,maxDrawbuffers:Be,maxColorAttachments:Ze,pointSizeDims:H.getParameter(Le),lineWidthDims:H.getParameter(ce),maxViewportDims:H.getParameter(Re),maxCombinedTextureUnits:H.getParameter(qe),maxCubeMapSize:H.getParameter(Ve),maxRenderbufferSize:H.getParameter(ar),maxTextureUnits:H.getParameter(Ye),maxTextureSize:H.getParameter(Fe),maxAttributes:H.getParameter(ge),maxVertexUniforms:H.getParameter(He),maxVertexTextureUnits:H.getParameter(Ue),maxVaryingVectors:H.getParameter(ur),maxFragmentUniforms:H.getParameter(We),glsl:H.getParameter(Br),renderer:H.getParameter(_r),vendor:H.getParameter(Ie),version:H.getParameter(Pr),readFloat:Qe,npotTextureCube:Fr}},$r=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 tt(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)||$r(H.data))}var Ge=function(H){return Object.keys(H).map(function(ae){return H[ae]})},Mr={shape:le,flatten:lt};function rr(H,ae,ie){for(var Be=0;Be0){var Dt;if(Array.isArray(nr[0])){Kr=si(nr);for(var gr=1,dr=1;dr0){if(typeof gr[0]=="number"){var Ur=V.allocType(xr.dtype,gr.length);za(Ur,gr),Kr(Ur,ht),V.freeType(Ur)}else if(Array.isArray(gr[0])||$r(gr[0])){Jr=si(gr);var Vr=gn(gr,Jr,xr.dtype);Kr(Vr,ht),V.freeType(Vr)}}}else if(tt(gr)){Jr=gr.shape;var dt=gr.stride,Lt=0,Vt=0,et=0,bt=0;Jr.length===1?(Lt=Jr[0],Vt=1,et=dt[0],bt=0):Jr.length===2&&(Lt=Jr[0],Vt=Jr[1],et=dt[0],bt=dt[1]);var Ot=Array.isArray(gr.data)?xr.dtype:Aa(gr.data),Ht=V.allocType(Ot,Lt*Vt);Vn(Ht,gr.data,Lt,Vt,et,bt,gr.offset),Kr(Ht,ht),V.freeType(Ht)}return it}return Sr||it(Pe),it._reglType="buffer",it._buffer=xr,it.subdata=Dt,ie.profile&&(it.stats=xr.stats),it.destroy=function(){mt(xr)},it}function cr(){Ge(Qe).forEach(function(Pe){Pe.buffer=H.createBuffer(),H.bindBuffer(Pe.type,Pe.buffer),H.bufferData(Pe.type,Pe.persistentData||Pe.byteLength,Pe.usage)})}return ie.profile&&(ae.getTotalBufferSize=function(){var Pe=0;return Object.keys(Qe).forEach(function(nr){Pe+=Qe[nr].stats.size}),Pe}),{create:jr,createStream:Lr,destroyStream:Er,clear:function(){Ge(Qe).forEach(mt),yr.forEach(mt)},getBuffer:function(Pe){return Pe&&Pe._buffer instanceof Xe?Pe._buffer:null},restore:cr,_initBuffer:Ct}}var Da=0,Ln=0,Fo=1,Qo=1,co=4,Mn=4,ns={points:Da,point:Ln,lines:Fo,line:Qo,triangles:co,triangle:Mn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$n=0,is=1,Ro=4,Kn=5120,kl=5121,Ys=5122,Po=5123,Sl=5124,Cl=5125,Pu=34963,Vc=35040,u0=35044;function f0(H,ae,ie,Be){var Ze={},Qe=0,Xe={uint8:kl,uint16:Po};ae.oes_element_index_uint&&(Xe.uint32=Cl);function yr(cr){this.id=Qe++,Ze[this.id]=this,this.buffer=cr,this.primType=Ro,this.vertCount=0,this.type=0}yr.prototype.bind=function(){this.buffer.bind()};var Lr=[];function Er(cr){var Pe=Lr.pop();return Pe||(Pe=new yr(ie.create(null,Pu,!0,!1)._buffer)),Ct(Pe,cr,Vc,-1,-1,0,0),Pe}function Fr(cr){Lr.push(cr)}function Ct(cr,Pe,nr,Sr,zr,xr,it){cr.buffer.bind();var Kr;if(Pe){var Dt=it;!it&&(!$r(Pe)||tt(Pe)&&!$r(Pe.data))&&(Dt=ae.oes_element_index_uint?Cl:Po),ie._initBuffer(cr.buffer,Pe,nr,Dt,3)}else H.bufferData(Pu,xr,nr),cr.buffer.dtype=Kr||kl,cr.buffer.usage=nr,cr.buffer.dimension=3,cr.buffer.byteLength=xr;if(Kr=it,!it){switch(cr.buffer.dtype){case kl:case Kn:Kr=kl;break;case Po:case Ys:Kr=Po;break;case Cl:case Sl:Kr=Cl;break;default:}cr.buffer.dtype=Kr}cr.type=Kr;var gr=zr;gr<0&&(gr=cr.buffer.byteLength,Kr===Po?gr>>=1:Kr===Cl&&(gr>>=2)),cr.vertCount=gr;var dr=Sr;if(Sr<0){dr=Ro;var ht=cr.buffer.dimension;ht===1&&(dr=$n),ht===2&&(dr=is),ht===3&&(dr=Ro)}cr.primType=dr}function mt(cr){Be.elementsCount--,delete Ze[cr.id],cr.buffer.destroy(),cr.buffer=null}function jr(cr,Pe){var nr=ie.create(null,Pu,!0),Sr=new yr(nr._buffer);Be.elementsCount++;function zr(xr){if(!xr)nr(),Sr.primType=Ro,Sr.vertCount=0,Sr.type=kl;else if(typeof xr=="number")nr(xr),Sr.primType=Ro,Sr.vertCount=xr|0,Sr.type=kl;else{var it=null,Kr=u0,Dt=-1,gr=-1,dr=0,ht=0;Array.isArray(xr)||$r(xr)||tt(xr)?it=xr:("data"in xr&&(it=xr.data),"usage"in xr&&(Kr=fn[xr.usage]),"primitive"in xr&&(Dt=ns[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===Po||ht===Ys?dr*=2:(ht===Cl||ht===Sl)&&(dr*=4))),Ct(Sr,it,Kr,Dt,gr,dr,ht)}return zr}return zr(cr),zr._reglType="elements",zr._elements=Sr,zr.subdata=function(xr,it){return nr.subdata(xr,it),zr},zr.destroy=function(){mt(Sr)},zr}return{create:jr,createStream:Er,destroyStream:Fr,getElements:function(cr){return typeof cr=="function"&&cr._elements instanceof yr?cr._elements:null},clear:function(){Ge(Ze).forEach(mt)}}}var kt=new Float32Array(1),St=new Uint32Array(kt.buffer),xa=5123;function Wr(H){for(var ae=V.allocType(xa,H.length),ie=0;ie>>31<<15,Qe=(Be<<1>>>24)-127,Xe=Be>>13&1023;if(Qe<-24)ae[ie]=Ze;else if(Qe<-14){var yr=-14-Qe;ae[ie]=Ze+(Xe+1024>>yr)}else Qe>15?ae[ie]=Ze+31744:ae[ie]=Ze+(Qe+15<<10)+Xe}return ae}function xn(H){return Array.isArray(H)||$r(H)}var Ba=34467,Ua=3553,Xn=34067,Ni=34069,no=6408,Xc=6406,Vs=6407,Xs=6409,c0=6410,yd=32854,os=32855,Nu=36194,rm=32819,Dx=32820,Wc=33635,gd=34042,v0=6402,h0=34041,ls=35904,Dl=35906,No=36193,Zc=33776,d0=33777,Ws=33778,Jc=33779,tm=35986,bd=35987,jc=34798,am=35840,nm=35841,xd=35842,im=35843,_d=36196,zu=5121,$c=5123,wd=5125,el=5126,Bu=10242,Lx=10243,Ex=10497,Ad=33071,om=33648,p0=10240,qx=10241,Iu=9728,Kc=9729,m0=9984,y0=9985,Ou=9986,Zs=9987,lm=33170,Hu=4352,Fx=4353,Qc=4354,Rx=34046,Px=3317,Nx=37440,sm=37441,g0=37443,um=37444,Js=33984,fm=[m0,Ou,y0,Zs],vo=[0,Xs,c0,Vs,no],ho={};ho[Xs]=ho[Xc]=ho[v0]=1,ho[h0]=ho[c0]=2,ho[Vs]=ho[ls]=3,ho[no]=ho[Dl]=4;function ss(H){return"[object "+H+"]"}var ev=ss("HTMLCanvasElement"),us=ss("OffscreenCanvas"),b0=ss("CanvasRenderingContext2D"),Td=ss("ImageBitmap"),cm=ss("HTMLImageElement"),vm=ss("HTMLVideoElement"),zx=Object.keys(Te).concat([ev,us,b0,Td,cm,vm]),js=[];js[zu]=1,js[el]=4,js[No]=2,js[$c]=2,js[wd]=4;var Qn=[];Qn[yd]=2,Qn[os]=2,Qn[Nu]=2,Qn[h0]=4,Qn[Zc]=.5,Qn[d0]=.5,Qn[Ws]=1,Qn[Jc]=1,Qn[tm]=.5,Qn[bd]=1,Qn[jc]=1,Qn[am]=.5,Qn[nm]=.25,Qn[xd]=.5,Qn[im]=.25,Qn[_d]=.5;function hm(H){return Array.isArray(H)&&(H.length===0||typeof H[0]=="number")}function dm(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 pm(H){return $s(H)===ev}function mm(H){return $s(H)===us}function Bx(H){return $s(H)===b0}function Ix(H){return $s(H)===Td}function Ox(H){return $s(H)===cm}function Hx(H){return $s(H)===vm}function Md(H){if(!H)return!1;var ae=$s(H);return zx.indexOf(ae)>=0?!0:hm(H)||dm(H)||tt(H)}function ym(H){return Te[Object.prototype.toString.call(H)]|0}function Ux(H,ae){var ie=ae.length;switch(H.type){case zu:case $c:case wd:case el:var Be=V.allocType(H.type,ie);Be.set(ae),H.data=Be;break;case No:H.data=Wr(ae);break;default:}}function gm(H,ae){return V.allocType(H.type===No?el:H.type,ae)}function kd(H,ae){H.type===No?(H.data=Wr(ae),V.freeType(ae)):H.data=ae}function bm(H,ae,ie,Be,Ze,Qe){for(var Xe=H.width,yr=H.height,Lr=H.channels,Er=Xe*yr*Lr,Fr=gm(H,Er),Ct=0,mt=0;mt=1;)yr+=Xe*Lr*Lr,Lr/=2;return yr}else return Xe*ie*Be}function xm(H,ae,ie,Be,Ze,Qe,Xe){var yr={"don't care":Hu,"dont care":Hu,nice:Qc,fast:Fx},Lr={repeat:Ex,clamp:Ad,mirror:om},Er={nearest:Iu,linear:Kc},Fr=e({mipmap:Zs,"nearest mipmap nearest":m0,"linear mipmap nearest":y0,"nearest mipmap linear":Ou,"linear mipmap linear":Zs},Er),Ct={none:0,browser:um},mt={uint8:zu,rgba4:rm,rgb565:Wc,"rgb5 a1":Dx},jr={alpha:Xc,luminance:Xs,"luminance alpha":c0,rgb:Vs,rgba:no,rgba4:yd,"rgb5 a1":os,rgb565:Nu},cr={};ae.ext_srgb&&(jr.srgb=ls,jr.srgba=Dl),ae.oes_texture_float&&(mt.float32=mt.float=el),ae.oes_texture_half_float&&(mt.float16=mt["half float"]=No),ae.webgl_depth_texture&&(e(jr,{depth:v0,"depth stencil":h0}),e(mt,{uint16:$c,uint32:wd,"depth stencil":gd})),ae.webgl_compressed_texture_s3tc&&e(cr,{"rgb s3tc dxt1":Zc,"rgba s3tc dxt1":d0,"rgba s3tc dxt3":Ws,"rgba s3tc dxt5":Jc}),ae.webgl_compressed_texture_atc&&e(cr,{"rgb atc":tm,"rgba atc explicit alpha":bd,"rgba atc interpolated alpha":jc}),ae.webgl_compressed_texture_pvrtc&&e(cr,{"rgb pvrtc 4bppv1":am,"rgb pvrtc 2bppv1":nm,"rgba pvrtc 4bppv1":xd,"rgba pvrtc 2bppv1":im}),ae.webgl_compressed_texture_etc1&&(cr["rgb etc1"]=_d);var Pe=Array.prototype.slice.call(H.getParameter(Ba));Object.keys(cr).forEach(function(ne){var je=cr[ne];Pe.indexOf(je)>=0&&(jr[ne]=je)});var nr=Object.keys(jr);ie.textureFormats=nr;var Sr=[];Object.keys(jr).forEach(function(ne){var je=jr[ne];Sr[je]=ne});var zr=[];Object.keys(mt).forEach(function(ne){var je=mt[ne];zr[je]=ne});var xr=[];Object.keys(Er).forEach(function(ne){var je=Er[ne];xr[je]=ne});var it=[];Object.keys(Fr).forEach(function(ne){var je=Fr[ne];it[je]=ne});var Kr=[];Object.keys(Lr).forEach(function(ne){var je=Lr[ne];Kr[je]=ne});var Dt=nr.reduce(function(ne,je){var Ke=jr[je];return Ke===Xs||Ke===Xc||Ke===Xs||Ke===c0||Ke===v0||Ke===h0||ae.ext_srgb&&(Ke===ls||Ke===Dl)?ne[Ke]=Ke:Ke===os||je.indexOf("rgba")>=0?ne[Ke]=no:ne[Ke]=Vs,ne},{});function gr(){this.internalformat=no,this.format=no,this.type=zu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=um,this.width=0,this.height=0,this.channels=0}function dr(ne,je){ne.internalformat=je.internalformat,ne.format=je.format,ne.type=je.type,ne.compressed=je.compressed,ne.premultiplyAlpha=je.premultiplyAlpha,ne.flipY=je.flipY,ne.unpackAlignment=je.unpackAlignment,ne.colorSpace=je.colorSpace,ne.width=je.width,ne.height=je.height,ne.channels=je.channels}function ht(ne,je){if(!(typeof je!="object"||!je)){if("premultiplyAlpha"in je&&(ne.premultiplyAlpha=je.premultiplyAlpha),"flipY"in je&&(ne.flipY=je.flipY),"alignment"in je&&(ne.unpackAlignment=je.alignment),"colorSpace"in je&&(ne.colorSpace=Ct[je.colorSpace]),"type"in je){var Ke=je.type;ne.type=mt[Ke]}var wt=ne.width,ha=ne.height,Ya=ne.channels,xt=!1;"shape"in je?(wt=je.shape[0],ha=je.shape[1],je.shape.length===3&&(Ya=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&&(Ya=je.channels,xt=!0)),ne.width=wt|0,ne.height=ha|0,ne.channels=Ya|0;var Q=!1;if("format"in je){var oe=je.format,be=ne.internalformat=jr[oe];ne.format=Dt[be],oe in mt&&("type"in je||(ne.type=mt[oe])),oe in cr&&(ne.compressed=!0),Q=!0}!xt&&Q?ne.channels=ho[ne.format]:xt&&!Q&&ne.channels!==vo[ne.format]&&(ne.format=ne.internalformat=vo[ne.channels])}}function Jr(ne){H.pixelStorei(Nx,ne.flipY),H.pixelStorei(sm,ne.premultiplyAlpha),H.pixelStorei(g0,ne.colorSpace),H.pixelStorei(Px,ne.unpackAlignment)}function Ur(){gr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Vr(ne,je){var Ke=null;if(Md(je)?Ke=je:je&&(ht(ne,je),"x"in je&&(ne.xOffset=je.x|0),"y"in je&&(ne.yOffset=je.y|0),Md(je.data)&&(Ke=je.data)),je.copy){var wt=Ze.viewportWidth,ha=Ze.viewportHeight;ne.width=ne.width||wt-ne.xOffset,ne.height=ne.height||ha-ne.yOffset,ne.needsCopy=!0}else if(!Ke)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if($r(Ke))ne.channels=ne.channels||4,ne.data=Ke,!("type"in je)&&ne.type===zu&&(ne.type=ym(Ke));else if(hm(Ke))ne.channels=ne.channels||4,Ux(ne,Ke),ne.alignment=1,ne.needsFree=!0;else if(tt(Ke)){var Ya=Ke.data;!Array.isArray(Ya)&&ne.type===zu&&(ne.type=ym(Ya));var xt=Ke.shape,Q=Ke.stride,oe,be,Je,er,ze,Ne;xt.length===3?(Je=xt[2],Ne=Q[2]):(Je=1,Ne=1),oe=xt[0],be=xt[1],er=Q[0],ze=Q[1],ne.alignment=1,ne.width=oe,ne.height=be,ne.channels=Je,ne.format=ne.internalformat=vo[Je],ne.needsFree=!0,bm(ne,Ya,er,ze,Ne,Ke.offset)}else if(pm(Ke)||mm(Ke)||Bx(Ke))pm(Ke)||mm(Ke)?ne.element=Ke:ne.element=Ke.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Ix(Ke))ne.element=Ke,ne.width=Ke.width,ne.height=Ke.height,ne.channels=4;else if(Ox(Ke))ne.element=Ke,ne.width=Ke.naturalWidth,ne.height=Ke.naturalHeight,ne.channels=4;else if(Hx(Ke))ne.element=Ke,ne.width=Ke.videoWidth,ne.height=Ke.videoHeight,ne.channels=4;else if(dm(Ke)){var Me=ne.width||Ke[0].length,de=ne.height||Ke.length,Ae=ne.channels;xn(Ke[0][0])?Ae=Ae||Ke[0][0].length:Ae=Ae||1;for(var se=Mr.shape(Ke),Oe=1,ir=0;ir>=ha,Ke.height>>=ha,Vr(Ke,wt[ha]),ne.mipmask|=1<=0&&!("faces"in je)&&(ne.genMipmaps=!0)}if("mag"in je){var wt=je.mag;ne.magFilter=Er[wt]}var ha=ne.wrapS,Ya=ne.wrapT;if("wrap"in je){var xt=je.wrap;typeof xt=="string"?ha=Ya=Lr[xt]:Array.isArray(xt)&&(ha=Lr[xt[0]],Ya=Lr[xt[1]])}else{if("wrapS"in je){var Q=je.wrapS;ha=Lr[Q]}if("wrapT"in je){var oe=je.wrapT;Ya=Lr[oe]}}if(ne.wrapS=ha,ne.wrapT=Ya,"anisotropic"in je){var be=je.anisotropic;ne.anisotropic=je.anisotropic}if("mipmap"in je){var Je=!1;switch(typeof je.mipmap){case"string":ne.mipmapHint=yr[je.mipmap],ne.genMipmaps=!0,Je=!0;break;case"boolean":Je=ne.genMipmaps=je.mipmap;break;case"object":ne.genMipmaps=!1,Je=!0;break;default:}Je&&!("min"in je)&&(ne.minFilter=m0)}}function oo(ne,je){H.texParameteri(je,qx,ne.minFilter),H.texParameteri(je,p0,ne.magFilter),H.texParameteri(je,Bu,ne.wrapS),H.texParameteri(je,Lx,ne.wrapT),ae.ext_texture_filter_anisotropic&&H.texParameteri(je,Rx,ne.anisotropic),ne.genMipmaps&&(H.hint(lm,ne.mipmapHint),H.generateMipmap(je))}var yo=0,fi={},ci=ie.maxTextureUnits,wi=Array(ci).map(function(){return null});function Qt(ne){gr.call(this),this.mipmask=0,this.internalformat=no,this.id=yo++,this.refCount=1,this.target=ne,this.texture=H.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ga,Xe.profile&&(this.stats={size:0})}function Ci(ne){H.activeTexture(Js),H.bindTexture(ne.target,ne.texture)}function Za(){var ne=wi[0];ne?H.bindTexture(ne.target,ne.texture):H.bindTexture(Ua,null)}function lo(ne){var je=ne.texture,Ke=ne.unit,wt=ne.target;Ke>=0&&(H.activeTexture(Js+Ke),H.bindTexture(wt,null),wi[Ke]=null),H.deleteTexture(je),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete fi[ne.id],Qe.textureCount--}e(Qt.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var je=ne.unit;if(je<0){for(var Ke=0;Ke0)continue;wt.unit=-1}wi[Ke]=ne,je=Ke;break}je>=ci,Xe.profile&&Qe.maxTextureUnits>ze)-Je,Ne.height=Ne.height||(Ke.height>>ze)-er,Ci(Ke),Lt(Ne,Ua,Je,er,ze),Za(),bt(Ne),wt}function Ya(xt,Q){var oe=xt|0,be=Q|0||oe;if(oe===Ke.width&&be===Ke.height)return wt;wt.width=Ke.width=oe,wt.height=Ke.height=be,Ci(Ke);for(var Je=0;Ke.mipmask>>Je;++Je){var er=oe>>Je,ze=be>>Je;if(!er||!ze)break;H.texImage2D(Ua,Je,Ke.format,er,ze,0,Ke.format,Ke.type,null)}return Za(),Xe.profile&&(Ke.stats.size=x0(Ke.internalformat,Ke.type,oe,be,!1,!1)),wt}return wt(ne,je),wt.subimage=ha,wt.resize=Ya,wt._reglType="texture2d",wt._texture=Ke,Xe.profile&&(wt.stats=Ke.stats),wt.destroy=function(){Ke.decRef()},wt}function bo(ne,je,Ke,wt,ha,Ya){var xt=new Qt(Xn);fi[xt.id]=xt,Qe.cubeCount++;var Q=new Array(6);function oe(er,ze,Ne,Me,de,Ae){var se,Oe=xt.texInfo;for(Ga.call(Oe),se=0;se<6;++se)Q[se]=ua();if(typeof er=="number"||!er){var ir=er|0||1;for(se=0;se<6;++se)Ht(Q[se],ir,ir)}else if(typeof er=="object")if(ze)na(Q[0],er),na(Q[1],ze),na(Q[2],Ne),na(Q[3],Me),na(Q[4],de),na(Q[5],Ae);else if(Xi(Oe,er),ht(xt,er),"faces"in er){var Dr=er.faces;for(se=0;se<6;++se)dr(Q[se],xt),na(Q[se],Dr[se])}else for(se=0;se<6;++se)na(Q[se],er);for(dr(xt,Q[0]),Oe.genMipmaps?xt.mipmask=(Q[0].width<<1)-1:xt.mipmask=Q[0].mipmask,xt.internalformat=Q[0].internalformat,oe.width=Q[0].width,oe.height=Q[0].height,Ci(xt),se=0;se<6;++se)qn(Q[se],Ni+se);for(oo(Oe,Xn),Za(),Xe.profile&&(xt.stats.size=x0(xt.internalformat,xt.type,oe.width,oe.height,Oe.genMipmaps,!0)),oe.format=Sr[xt.internalformat],oe.type=zr[xt.type],oe.mag=xr[Oe.magFilter],oe.min=it[Oe.minFilter],oe.wrapS=Kr[Oe.wrapS],oe.wrapT=Kr[Oe.wrapT],se=0;se<6;++se)mo(Q[se]);return oe}function be(er,ze,Ne,Me,de){var Ae=Ne|0,se=Me|0,Oe=de|0,ir=et();return dr(ir,xt),ir.width=0,ir.height=0,Vr(ir,ze),ir.width=ir.width||(xt.width>>Oe)-Ae,ir.height=ir.height||(xt.height>>Oe)-se,Ci(xt),Lt(ir,Ni+er,Ae,se,Oe),Za(),bt(ir),oe}function Je(er){var ze=er|0;if(ze!==xt.width){oe.width=xt.width=ze,oe.height=xt.height=ze,Ci(xt);for(var Ne=0;Ne<6;++Ne)for(var Me=0;xt.mipmask>>Me;++Me)H.texImage2D(Ni+Ne,Me,xt.format,ze>>Me,ze>>Me,0,xt.format,xt.type,null);return Za(),Xe.profile&&(xt.stats.size=x0(xt.internalformat,xt.type,oe.width,oe.height,!1,!0)),oe}}return oe(ne,je,Ke,wt,ha,Ya),oe.subimage=be,oe.resize=Je,oe._reglType="textureCube",oe._texture=xt,Xe.profile&&(oe.stats=xt.stats),oe.destroy=function(){xt.decRef()},oe}function Jt(){for(var ne=0;ne>wt,Ke.height>>wt,0,Ke.internalformat,Ke.type,null);else for(var ha=0;ha<6;++ha)H.texImage2D(Ni+ha,wt,Ke.internalformat,Ke.width>>wt,Ke.height>>wt,0,Ke.internalformat,Ke.type,null);oo(Ke.texInfo,Ke.target)})}function cn(){for(var ne=0;ne=0?mo=!0:Lr.indexOf(Ga)>=0&&(mo=!1))),("depthTexture"in Qt||"depthStencilTexture"in Qt)&&(wi=!!(Qt.depthTexture||Qt.depthStencilTexture)),"depth"in Qt&&(typeof Qt.depth=="boolean"?qn=Qt.depth:(yo=Qt.depth,_i=!1)),"stencil"in Qt&&(typeof Qt.stencil=="boolean"?_i=Qt.stencil:(fi=Qt.stencil,qn=!1)),"depthStencil"in Qt&&(typeof Qt.depthStencil=="boolean"?qn=_i=Qt.depthStencil:(ci=Qt.depthStencil,qn=!1,_i=!1))}var Za=null,lo=null,go=null,bo=null;if(Array.isArray(ua))Za=ua.map(cr);else if(ua)Za=[cr(ua)];else for(Za=new Array(oo),Ot=0;Ot0&&(bt.depth=Vr[0].depth,bt.stencil=Vr[0].stencil,bt.depthStencil=Vr[0].depthStencil),Vr[et]?Vr[et](bt):Vr[et]=dr(bt)}return e(dt,{width:Ot,height:Ot,color:Ga})}function Lt(Vt){var et,bt=Vt|0;if(bt===dt.width)return dt;var Ot=dt.color;for(et=0;et=Ot.byteLength?Ht.subdata(Ot):(Ht.destroy(),dr.buffers[Vt]=null)),dr.buffers[Vt]||(Ht=dr.buffers[Vt]=Ze.create(et,qm,!1,!0)),bt.buffer=Ze.getBuffer(Ht),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[Vt]=1}else Ze.getBuffer(et)?(bt.buffer=Ze.getBuffer(et),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(et.buffer)?(bt.buffer=Ze.getBuffer(et.buffer),bt.size=(+et.size||bt.buffer.dimension)|0,bt.normalized=!!et.normalized||!1,"type"in et?bt.type=Yn[et.type]:bt.type=bt.buffer.dtype,bt.offset=(et.offset||0)|0,bt.stride=(et.stride||0)|0,bt.divisor=(et.divisor||0)|0,bt.state=1):"x"in et&&(bt.x=+et.x||0,bt.y=+et.y||0,bt.z=+et.z||0,bt.w=+et.w||0,bt.state=2)}for(var na=0;na1)for(var Jr=0;JrPe&&(Pe=nr.stats.uniformsCount)}),Pe},ie.getMaxAttributesCount=function(){var Pe=0;return Fr.forEach(function(nr){nr.stats.attributesCount>Pe&&(Pe=nr.stats.attributesCount)}),Pe});function cr(){Ze={},Qe={};for(var Pe=0;Pe16&&(ie=Yu(ie,H.length*8));for(var Be=Array(16),Ze=Array(16),Qe=0;Qe<16;Qe++)Be[Qe]=ie[Qe]^909522486,Ze[Qe]=ie[Qe]^1549556828;var Xe=Yu(Be.concat(Rd(ae)),512+ae.length*8);return Hm(Yu(Ze.concat(Xe),768))}function Bm(H){for(var ae=Nm?"0123456789ABCDEF":"0123456789abcdef",ie="",Be,Ze=0;Ze>>4&15)+ae.charAt(Be&15);return ie}function Im(H){for(var ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie="",Be=H.length,Ze=0;ZeH.length*8?ie+=e_:ie+=ae.charAt(Qe>>>6*(3-Xe)&63);return ie}function Om(H,ae){var ie=ae.length,Be=Array(),Ze,Qe,Xe,yr,Lr=Array(Math.ceil(H.length/2));for(Ze=0;Ze0;){for(yr=Array(),Xe=0,Ze=0;Ze0||Qe>0)&&(yr[yr.length]=Qe);Be[Be.length]=Xe,Lr=yr}var Er="";for(Ze=Be.length-1;Ze>=0;Ze--)Er+=ae.charAt(Be[Ze]);var Fr=Math.ceil(H.length*8/(Math.log(ae.length)/Math.log(2)));for(Ze=Er.length;Ze>>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 Rd(H){for(var ae=Array(H.length>>2),ie=0;ie>5]|=(H.charCodeAt(ie/8)&255)<<24-ie%32;return ae}function Hm(H){for(var ae="",ie=0;ie>5]>>>24-ie%32&255);return ae}function tl(H,ae){return H>>>ae|H<<32-ae}function Um(H,ae){return H>>>ae}function Gm(H,ae,ie){return H&ae^~H&ie}function Ym(H,ae,ie){return H&ae^H&ie^ae&ie}function Pd(H){return tl(H,2)^tl(H,13)^tl(H,22)}function Vm(H){return tl(H,6)^tl(H,11)^tl(H,25)}function iv(H){return tl(H,7)^tl(H,18)^Um(H,3)}function ov(H){return tl(H,17)^tl(H,19)^Um(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 ie=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Be=new Array(64),Ze,Qe,Xe,yr,Lr,Er,Fr,Ct,mt,jr,cr,Pe;for(H[ae>>5]|=128<<24-ae%32,H[(ae+64>>9<<4)+15]=ae,mt=0;mt>16)+(ae>>16)+(ie>>16);return Be<<16|ie&65535}function Vu(H){return Array.prototype.slice.call(H)}function Xu(H){return Vu(H).join("")}function Xm(H){var ae=H&&H.cache,ie=0,Be=[],Ze=[],Qe=[];function Xe(cr,Pe){var nr=Pe&&Pe.stable;if(!nr){for(var Sr=0;Sr0&&(cr.push(zr,"="),cr.push.apply(cr,Vu(arguments)),cr.push(";")),zr}return e(Pe,{def:Sr,toString:function(){return Xu([nr.length>0?"var "+nr.join(",")+";":"",Xu(cr)])}})}function Lr(){var cr=yr(),Pe=yr(),nr=cr.toString,Sr=Pe.toString;function zr(xr,it){Pe(xr,it,"=",cr.def(xr,it),";")}return e(function(){cr.apply(cr,Vu(arguments))},{def:cr.def,entry:cr,exit:Pe,save:zr,set:function(xr,it,Kr){zr(xr,it),cr(xr,it,"=",Kr,";")},toString:function(){return nr()+Sr()}})}function Er(){var cr=Xu(arguments),Pe=Lr(),nr=Lr(),Sr=Pe.toString,zr=nr.toString;return e(Pe,{then:function(){return Pe.apply(Pe,Vu(arguments)),this},else:function(){return nr.apply(nr,Vu(arguments)),this},toString:function(){var xr=zr();return xr&&(xr="else{"+xr+"}"),Xu(["if(",cr,"){",Sr(),"}",xr])}})}var Fr=yr(),Ct={};function mt(cr,Pe){var nr=[];function Sr(){var Dt="a"+nr.length;return nr.push(Dt),Dt}Pe=Pe||0;for(var zr=0;zr":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)||$r(H)||tt(H)}function De(H){return H.sort(function(ae,ie){return ae===El?-1:ie===El?1:ae=1,Be>=2,ae)}else if(ie===uv){var Ze=H.data;return new ye(Ze.thisDep,Ze.contextDep,Ze.propDep,ae)}else{if(ie===Bd)return new ye(!1,!1,!1,ae);if(ie===T0){for(var Qe=!1,Xe=!1,yr=!1,Lr=0;Lr=1&&(Xe=!0),Fr>=2&&(yr=!0)}else Er.type===uv&&(Qe=Qe||Er.data.thisDep,Xe=Xe||Er.data.contextDep,yr=yr||Er.data.propDep)}return new ye(Qe,Xe,yr,ae)}else return new ye(ie===sv,ie===Wm,ie===lv,ae)}}var Zr=new ye(!1,!1,!1,function(){});function ct(H,ae,ie,Be,Ze,Qe,Xe,yr,Lr,Er,Fr,Ct,mt,jr,cr,Pe){var nr=Er.Record,Sr={add:32774,subtract:32778,"reverse subtract":32779};ie.ext_blend_minmax&&(Sr.min=D,Sr.max=L);var zr=ie.angle_instanced_arrays,xr=ie.webgl_draw_buffers,it=ie.oes_vertex_array_object,Kr={dirty:!0,profile:Pe.profile},Dt={},gr=[],dr={},ht={};function Jr(Q){return Q.replace(".","_")}function Ur(Q,oe,be){var Je=Jr(Q);gr.push(Q),Dt[Je]=Kr[Je]=!!be,dr[Je]=oe}function Vr(Q,oe,be){var Je=Jr(Q);gr.push(Q),Array.isArray(be)?(Kr[Je]=be.slice(),Dt[Je]=be.slice()):Kr[Je]=Dt[Je]=be,ht[Je]=oe}function dt(Q){return!!isNaN(Q)}Ur(Id,s_),Ur(Zm,l_),Vr(Jm,"blendColor",[0,0,0,0]),Vr(Od,"blendEquationSeparate",[J,J]),Vr(Hd,"blendFuncSeparate",[W,O,W,O]),Ur(Ud,ey,!0),Vr(Gd,"depthFunc",$),Vr(Yd,"depthRange",[0,1]),Vr(Vd,"depthMask",!0),Vr(Xd,Xd,[!0,!0,!0,!0]),Ur(M0,Qm),Vr(jm,"cullFace",g),Vr(Wd,Wd,S),Vr(fv,fv,1),Ur(Zd,yv),Vr(Jd,"polygonOffset",[0,0]),Ur(k0,ty),Ur(S0,gv),Vr(cv,"sampleCoverage",[1,!1]),Ur(jd,u_),Vr(vv,"stencilMask",-1),Vr(io,"stencilFunc",[N,0,-1]),Vr(hv,"stencilOpSeparate",[h,R,R,R]),Vr(C0,"stencilOpSeparate",[g,R,R,R]),Ur(dv,ry),Vr(Wu,"scissor",[0,0,H.drawingBufferWidth,H.drawingBufferHeight]),Vr(El,El,[0,0,H.drawingBufferWidth,H.drawingBufferHeight]);var Lt={gl:H,context:mt,strings:ae,next:Dt,current:Kr,draw:Ct,elements:Qe,buffer:Ze,shader:Fr,attributes:Er.state,vao:Er,uniforms:Lr,framebuffer:yr,extensions:ie,timer:jr,isBufferArgs:Se},Vt={primTypes:ns,compareFuncs:re,blendFuncs:ke,blendEquations:Sr,stencilOps:ve,glTypes:Yn,orientationType:xe};xr&&(Vt.backBuffer=[g],Vt.drawBuffer=C(Be.maxDrawbuffers,function(Q){return Q===0?[0]:C(Q,function(oe){return we+oe})}));var et=0;function bt(){var Q=Xm({cache:cr}),oe=Q.link,be=Q.global;Q.id=et++,Q.batchId="0";var Je=oe(Lt),er=Q.shared={props:"a0"};Object.keys(Lt).forEach(function(Ae){er[Ae]=be.def(Je,".",Ae)});var ze=Q.next={},Ne=Q.current={};Object.keys(ht).forEach(function(Ae){Array.isArray(Kr[Ae])&&(ze[Ae]=be.def(er.next,".",Ae),Ne[Ae]=be.def(er.current,".",Ae))});var Me=Q.constants={};Object.keys(Vt).forEach(function(Ae){Me[Ae]=be.def(JSON.stringify(Vt[Ae]))}),Q.invoke=function(Ae,se){switch(se.type){case zd:var Oe=["this",er.context,er.props,Q.batchId];return Ae.def(oe(se.data),".call(",Oe.slice(0,Math.max(se.data.length+1,4)),")");case lv:return Ae.def(er.props,se.data);case Wm:return Ae.def(er.context,se.data);case sv:return Ae.def("this",se.data);case uv:return se.data.append(Q,Ae),se.data.ref;case Bd:return se.data.toString();case T0:return se.data.map(function(ir){return Q.invoke(Ae,ir)})}},Q.attribCache={};var de={};return Q.scopeAttrib=function(Ae){var se=ae.id(Ae);if(se in de)return de[se];var Oe=Er.scope[se];Oe||(Oe=Er.scope[se]=new nr);var ir=de[se]=oe(Oe);return ir},Q}function Ot(Q){var oe=Q.static,be=Q.dynamic,Je;if(pv in oe){var er=!!oe[pv];Je=Ar(function(Ne,Me){return er}),Je.enable=er}else if(pv in be){var ze=be[pv];Je=Nr(ze,function(Ne,Me){return Ne.invoke(Me,ze)})}return Je}function Ht(Q,oe){var be=Q.static,Je=Q.dynamic;if(Zu in be){var er=be[Zu];return er?(er=yr.getFramebuffer(er),Ar(function(Ne,Me){var de=Ne.link(er),Ae=Ne.shared;Me.set(Ae.framebuffer,".next",de);var se=Ae.context;return Me.set(se,"."+vs,de+".width"),Me.set(se,"."+hs,de+".height"),de})):Ar(function(Ne,Me){var de=Ne.shared;Me.set(de.framebuffer,".next","null");var Ae=de.context;return Me.set(Ae,"."+vs,Ae+"."+Kd),Me.set(Ae,"."+hs,Ae+"."+Qd),"null"})}else if(Zu in Je){var ze=Je[Zu];return Nr(ze,function(Ne,Me){var de=Ne.invoke(Me,ze),Ae=Ne.shared,se=Ae.framebuffer,Oe=Me.def(se,".getFramebuffer(",de,")");Me.set(se,".next",Oe);var ir=Ae.context;return Me.set(ir,"."+vs,Oe+"?"+Oe+".width:"+ir+"."+Kd),Me.set(ir,"."+hs,Oe+"?"+Oe+".height:"+ir+"."+Qd),Oe})}else return null}function na(Q,oe,be){var Je=Q.static,er=Q.dynamic;function ze(de){if(de in Je){var Ae=Je[de],se=!0,Oe=Ae.x|0,ir=Ae.y|0,Dr,qt;return"width"in Ae?Dr=Ae.width|0:se=!1,"height"in Ae?qt=Ae.height|0:se=!1,new ye(!se&&oe&&oe.thisDep,!se&&oe&&oe.contextDep,!se&&oe&&oe.propDep,function(Et,Mt){var Tt=Et.shared.context,ft=Dr;"width"in Ae||(ft=Mt.def(Tt,".",vs,"-",Oe));var _t=qt;return"height"in Ae||(_t=Mt.def(Tt,".",hs,"-",ir)),[Oe,ir,ft,_t]})}else if(de in er){var pt=er[de],ut=Nr(pt,function(Et,Mt){var Tt=Et.invoke(Mt,pt),ft=Et.shared.context,_t=Mt.def(Tt,".x|0"),At=Mt.def(Tt,".y|0"),Xt=Mt.def('"width" in ',Tt,"?",Tt,".width|0:","(",ft,".",vs,"-",_t,")"),vn=Mt.def('"height" in ',Tt,"?",Tt,".height|0:","(",ft,".",hs,"-",At,")");return[_t,At,Xt,vn]});return oe&&(ut.thisDep=ut.thisDep||oe.thisDep,ut.contextDep=ut.contextDep||oe.contextDep,ut.propDep=ut.propDep||oe.propDep),ut}else return oe?new ye(oe.thisDep,oe.contextDep,oe.propDep,function(Et,Mt){var Tt=Et.shared.context;return[0,0,Mt.def(Tt,".",vs),Mt.def(Tt,".",hs)]}):null}var Ne=ze(El);if(Ne){var Me=Ne;Ne=new ye(Ne.thisDep,Ne.contextDep,Ne.propDep,function(de,Ae){var se=Me.append(de,Ae),Oe=de.shared.context;return Ae.set(Oe,"."+i_,se[2]),Ae.set(Oe,"."+o_,se[3]),se})}return{viewport:Ne,scissor_box:ze(Wu)}}function qn(Q,oe){var be=Q.static,Je=typeof be[Ju]=="string"&&typeof be[eu]=="string";if(Je){if(Object.keys(oe.dynamic).length>0)return null;var er=oe.static,ze=Object.keys(er);if(ze.length>0&&typeof er[ze[0]]=="number"){for(var Ne=[],Me=0;Me"+_t+"?"+se+".constant["+_t+"]:0;"}).join(""),"}}else{","if(",Dr,"(",se,".buffer)){",Et,"=",qt,".createStream(",tu,",",se,".buffer);","}else{",Et,"=",qt,".getBuffer(",se,".buffer);","}",Mt,'="type" in ',se,"?",ir.glTypes,"[",se,".type]:",Et,".dtype;",pt.normalized,"=!!",se,".normalized;");function Tt(ft){Ae(pt[ft],"=",se,".",ft,"|0;")}return Tt("size"),Tt("offset"),Tt("stride"),Tt("divisor"),Ae("}}"),Ae.exit("if(",pt.isStream,"){",qt,".destroyStream(",Et,");","}"),pt}er[ze]=Nr(Ne,Me)}),er}function oo(Q){var oe=Q.static,be=Q.dynamic,Je={};return Object.keys(oe).forEach(function(er){var ze=oe[er];Je[er]=Ar(function(Ne,Me){return typeof ze=="number"||typeof ze=="boolean"?""+ze:Ne.link(ze)})}),Object.keys(be).forEach(function(er){var ze=be[er];Je[er]=Nr(ze,function(Ne,Me){return Ne.invoke(Me,ze)})}),Je}function yo(Q,oe,be,Je,er){var ze=Q.static,Ne=Q.dynamic,Me=qn(Q,oe),de=Ht(Q,er),Ae=na(Q,de,er),se=ua(Q,er),Oe=mo(Q,er),ir=_i(Q,er,Me);function Dr(Tt){var ft=Ae[Tt];ft&&(Oe[Tt]=ft)}Dr(El),Dr(Jr(Wu));var qt=Object.keys(Oe).length>0,pt={framebuffer:de,draw:se,shader:ir,state:Oe,dirty:qt,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pt.profile=Ot(Q,er),pt.uniforms=Ga(be,er),pt.drawVAO=pt.scopeVAO=se.vao,!pt.drawVAO&&ir.program&&!Me&&ie.angle_instanced_arrays&&se.static.elements){var ut=!0,Et=ir.program.attributes.map(function(Tt){var ft=oe.static[Tt];return ut=ut&&!!ft,ft});if(ut&&Et.length>0){var Mt=Er.getVAO(Er.createVAO({attributes:Et,elements:se.static.elements}));pt.drawVAO=new ye(null,null,null,function(Tt,ft){return Tt.link(Mt)}),pt.useVAO=!0}}return Me?pt.useVAO=!0:pt.attributes=Xi(oe,er),pt.context=oo(Je,er),pt}function fi(Q,oe,be){var Je=Q.shared,er=Je.context,ze=Q.scope();Object.keys(be).forEach(function(Ne){oe.save(er,"."+Ne);var Me=be[Ne],de=Me.append(Q,oe);Array.isArray(de)?ze(er,".",Ne,"=[",de.join(),"];"):ze(er,".",Ne,"=",de,";")}),oe(ze)}function ci(Q,oe,be,Je){var er=Q.shared,ze=er.gl,Ne=er.framebuffer,Me;xr&&(Me=oe.def(er.extensions,".webgl_draw_buffers"));var de=Q.constants,Ae=de.drawBuffer,se=de.backBuffer,Oe;be?Oe=be.append(Q,oe):Oe=oe.def(Ne,".next"),Je||oe("if(",Oe,"!==",Ne,".cur){"),oe("if(",Oe,"){",ze,".bindFramebuffer(",K,",",Oe,".framebuffer);"),xr&&oe(Me,".drawBuffersWEBGL(",Ae,"[",Oe,".colorAttachments.length]);"),oe("}else{",ze,".bindFramebuffer(",K,",null);"),xr&&oe(Me,".drawBuffersWEBGL(",se,");"),oe("}",Ne,".cur=",Oe,";"),Je||oe("}")}function wi(Q,oe,be){var Je=Q.shared,er=Je.gl,ze=Q.current,Ne=Q.next,Me=Je.current,de=Je.next,Ae=Q.cond(Me,".dirty");gr.forEach(function(se){var Oe=Jr(se);if(!(Oe in be.state)){var ir,Dr;if(Oe in Ne){ir=Ne[Oe],Dr=ze[Oe];var qt=C(Kr[Oe].length,function(ut){return Ae.def(ir,"[",ut,"]")});Ae(Q.cond(qt.map(function(ut,Et){return ut+"!=="+Dr+"["+Et+"]"}).join("||")).then(er,".",ht[Oe],"(",qt,");",qt.map(function(ut,Et){return Dr+"["+Et+"]="+ut}).join(";"),";"))}else{ir=Ae.def(de,".",Oe);var pt=Q.cond(ir,"!==",Me,".",Oe);Ae(pt),Oe in dr?pt(Q.cond(ir).then(er,".enable(",dr[Oe],");").else(er,".disable(",dr[Oe],");"),Me,".",Oe,"=",ir,";"):pt(er,".",ht[Oe],"(",ir,");",Me,".",Oe,"=",ir,";")}}}),Object.keys(be.state).length===0&&Ae(Me,".dirty=false;"),oe(Ae)}function Qt(Q,oe,be,Je){var er=Q.shared,ze=Q.current,Ne=er.current,Me=er.gl,de;De(Object.keys(be)).forEach(function(Ae){var se=be[Ae];if(!(Je&&!Je(se))){var Oe=se.append(Q,oe);if(dr[Ae]){var ir=dr[Ae];sr(se)?(de=Q.link(Oe,{stable:!0}),oe(Q.cond(de).then(Me,".enable(",ir,");").else(Me,".disable(",ir,");")),oe(Ne,".",Ae,"=",de,";")):(oe(Q.cond(Oe).then(Me,".enable(",ir,");").else(Me,".disable(",ir,");")),oe(Ne,".",Ae,"=",Oe,";"))}else if(xn(Oe)){var Dr=ze[Ae];oe(Me,".",ht[Ae],"(",Oe,");",Oe.map(function(qt,pt){return Dr+"["+pt+"]="+qt}).join(";"),";")}else sr(se)?(de=Q.link(Oe,{stable:!0}),oe(Me,".",ht[Ae],"(",de,");",Ne,".",Ae,"=",de,";")):oe(Me,".",ht[Ae],"(",Oe,");",Ne,".",Ae,"=",Oe,";")}})}function Ci(Q,oe){zr&&(Q.instancing=oe.def(Q.shared.extensions,".angle_instanced_arrays"))}function Za(Q,oe,be,Je,er){var ze=Q.shared,Ne=Q.stats,Me=ze.current,de=ze.timer,Ae=be.profile;function se(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Oe,ir;function Dr(Tt){Oe=oe.def(),Tt(Oe,"=",se(),";"),typeof er=="string"?Tt(Ne,".count+=",er,";"):Tt(Ne,".count++;"),jr&&(Je?(ir=oe.def(),Tt(ir,"=",de,".getNumPendingQueries();")):Tt(de,".beginQuery(",Ne,");"))}function qt(Tt){Tt(Ne,".cpuTime+=",se(),"-",Oe,";"),jr&&(Je?Tt(de,".pushScopeStats(",ir,",",de,".getNumPendingQueries(),",Ne,");"):Tt(de,".endQuery();"))}function pt(Tt){var ft=oe.def(Me,".profile");oe(Me,".profile=",Tt,";"),oe.exit(Me,".profile=",ft,";")}var ut;if(Ae){if(sr(Ae)){Ae.enable?(Dr(oe),qt(oe.exit),pt("true")):pt("false");return}ut=Ae.append(Q,oe),pt(ut)}else ut=oe.def(Me,".profile");var Et=Q.block();Dr(Et),oe("if(",ut,"){",Et,"}");var Mt=Q.block();qt(Mt),oe.exit("if(",ut,"){",Mt,"}")}function lo(Q,oe,be,Je,er){var ze=Q.shared;function Ne(de){switch(de){case au:case Ku:case Qu:return 2;case _n:case L0:case _v:return 3;case bv:case t2:case a2:return 4;default:return 1}}function Me(de,Ae,se){var Oe=ze.gl,ir=oe.def(de,".location"),Dr=oe.def(ze.attributes,"[",ir,"]"),qt=se.state,pt=se.buffer,ut=[se.x,se.y,se.z,se.w],Et=["buffer","normalized","offset","stride"];function Mt(){oe("if(!",Dr,".buffer){",Oe,".enableVertexAttribArray(",ir,");}");var ft=se.type,_t;if(se.size?_t=oe.def(se.size,"||",Ae):_t=Ae,oe("if(",Dr,".type!==",ft,"||",Dr,".size!==",_t,"||",Et.map(function(Xt){return Dr+"."+Xt+"!=="+se[Xt]}).join("||"),"){",Oe,".bindBuffer(",tu,",",pt,".buffer);",Oe,".vertexAttribPointer(",[ir,_t,ft,se.normalized,se.stride,se.offset],");",Dr,".type=",ft,";",Dr,".size=",_t,";",Et.map(function(Xt){return Dr+"."+Xt+"="+se[Xt]+";"}).join(""),"}"),zr){var At=se.divisor;oe("if(",Dr,".divisor!==",At,"){",Q.instancing,".vertexAttribDivisorANGLE(",[ir,At],");",Dr,".divisor=",At,";}")}}function Tt(){oe("if(",Dr,".buffer){",Oe,".disableVertexAttribArray(",ir,");",Dr,".buffer=null;","}if(",Qs.map(function(ft,_t){return Dr+"."+ft+"!=="+ut[_t]}).join("||"),"){",Oe,".vertexAttrib4f(",ir,",",ut,");",Qs.map(function(ft,_t){return Dr+"."+ft+"="+ut[_t]+";"}).join(""),"}")}qt===cs?Mt():qt===A0?Tt():(oe("if(",qt,"===",cs,"){"),Mt(),oe("}else{"),Tt(),oe("}"))}Je.forEach(function(de){var Ae=de.name,se=be.attributes[Ae],Oe;if(se){if(!er(se))return;Oe=se.append(Q,oe)}else{if(!er(Zr))return;var ir=Q.scopeAttrib(Ae);Oe={},Object.keys(new nr).forEach(function(Dr){Oe[Dr]=oe.def(ir,".",Dr)})}Me(Q.link(de),Ne(de.info.type),Oe)})}function go(Q,oe,be,Je,er,ze){for(var Ne=Q.shared,Me=Ne.gl,de,Ae=0;Ae1){for(var xo=[],nu=[],ef=0;ef<_t;++ef)Array.isArray(ut)?nu.push(ut[ef]):nu.push(oe.def(ut+"["+ef+"]")),ze&&xo.push(oe.def());ze&&oe("if(!",Q.batchId,"||",xo.map(function(nl,u2){return nl+"!=="+nu[u2]}).join("||"),"){",xo.map(function(nl,u2){return nl+"="+nu[u2]+";"}).join("")),oe(Me,".uniform",de,"(",pt,",",nu.join(","),");"),ze&&oe("}")}else{if(ze){var rf=oe.def();oe("if(!",Q.batchId,"||",rf,"!==",ut,"){",rf,"=",ut,";")}oe(Me,".uniform",de,"(",pt,",",ut,");"),ze&&oe("}")}}}function bo(Q,oe,be,Je){var er=Q.shared,ze=er.gl,Ne=er.draw,Me=Je.draw;function de(){var _t=Me.elements,At,Xt=oe;return _t?((_t.contextDep&&Je.contextDynamic||_t.propDep)&&(Xt=be),At=_t.append(Q,Xt),Me.elementsActive&&Xt("if("+At+")"+ze+".bindBuffer("+e2+","+At+".buffer.buffer);")):(At=Xt.def(),Xt(At,"=",Ne,".",ru,";","if(",At,"){",ze,".bindBuffer(",e2,",",At,".buffer.buffer);}","else if(",er.vao,".currentVAO){",At,"=",Q.shared.elements+".getElements("+er.vao,".currentVAO.elements);",it?"":"if("+At+")"+ze+".bindBuffer("+e2+","+At+".buffer.buffer);","}")),At}function Ae(){var _t=Me.count,At,Xt=oe;return _t?((_t.contextDep&&Je.contextDynamic||_t.propDep)&&(Xt=be),At=_t.append(Q,Xt)):At=Xt.def(Ne,".",$u),At}var se=de();function Oe(_t){var At=Me[_t];return At?At.contextDep&&Je.contextDynamic||At.propDep?At.append(Q,be):At.append(Q,oe):oe.def(Ne,".",_t)}var ir=Oe(ju),Dr=Oe($d),qt=Ae();if(typeof qt=="number"){if(qt===0)return}else be("if(",qt,"){"),be.exit("}");var pt,ut;zr&&(pt=Oe(Vi),ut=Q.instancing);var Et=se+".type",Mt=Me.elements&&sr(Me.elements)&&!Me.vaoActive;function Tt(){function _t(){be(ut,".drawElementsInstancedANGLE(",[ir,qt,Et,Dr+"<<(("+Et+"-"+Nd+")>>1)",pt],");")}function At(){be(ut,".drawArraysInstancedANGLE(",[ir,Dr,qt,pt],");")}se&&se!=="null"?Mt?_t():(be("if(",se,"){"),_t(),be("}else{"),At(),be("}")):At()}function ft(){function _t(){be(ze+".drawElements("+[ir,qt,Et,Dr+"<<(("+Et+"-"+Nd+")>>1)"]+");")}function At(){be(ze+".drawArrays("+[ir,Dr,qt]+");")}se&&se!=="null"?Mt?_t():(be("if(",se,"){"),_t(),be("}else{"),At(),be("}")):At()}zr&&(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,oe,be,Je,er){var ze=bt(),Ne=ze.proc("body",er);return zr&&(ze.instancing=Ne.def(ze.shared.extensions,".angle_instanced_arrays")),Q(ze,Ne,be,Je),ze.compile().body}function ma(Q,oe,be,Je){Ci(Q,oe),be.useVAO?be.drawVAO?oe(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,oe),");"):oe(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(oe(Q.shared.vao,".setVAO(null);"),lo(Q,oe,be,Je.attributes,function(){return!0})),go(Q,oe,be,Je.uniforms,function(){return!0},!1),bo(Q,oe,oe,be)}function cn(Q,oe){var be=Q.proc("draw",1);Ci(Q,be),fi(Q,be,oe.context),ci(Q,be,oe.framebuffer),wi(Q,be,oe),Qt(Q,be,oe.state),Za(Q,be,oe,!1,!0);var Je=oe.shader.progVar.append(Q,be);if(be(Q.shared.gl,".useProgram(",Je,".program);"),oe.shader.program)ma(Q,be,oe,oe.shader.program);else{be(Q.shared.vao,".setVAO(null);");var er=Q.global.def("{}"),ze=be.def(Je,".id"),Ne=be.def(er,"[",ze,"]");be(Q.cond(Ne).then(Ne,".call(this,a0);").else(Ne,"=",er,"[",ze,"]=",Q.link(function(Me){return Jt(ma,Q,oe,Me,1)}),"(",Je,");",Ne,".call(this,a0);"))}Object.keys(oe.state).length>0&&be(Q.shared.current,".dirty=true;"),Q.shared.vao&&be(Q.shared.vao,".setVAO(null);")}function ne(Q,oe,be,Je){Q.batchId="a1",Ci(Q,oe);function er(){return!0}lo(Q,oe,be,Je.attributes,er),go(Q,oe,be,Je.uniforms,er,!1),bo(Q,oe,oe,be)}function je(Q,oe,be,Je){Ci(Q,oe);var er=be.contextDep,ze=oe.def(),Ne="a0",Me="a1",de=oe.def();Q.shared.props=de,Q.batchId=ze;var Ae=Q.scope(),se=Q.scope();oe(Ae.entry,"for(",ze,"=0;",ze,"<",Me,";++",ze,"){",de,"=",Ne,"[",ze,"];",se,"}",Ae.exit);function Oe(Et){return Et.contextDep&&er||Et.propDep}function ir(Et){return!Oe(Et)}if(be.needsContext&&fi(Q,se,be.context),be.needsFramebuffer&&ci(Q,se,be.framebuffer),Qt(Q,se,be.state,Oe),be.profile&&Oe(be.profile)&&Za(Q,se,be,!1,!0),Je)be.useVAO?be.drawVAO?Oe(be.drawVAO)?se(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,se),");"):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);"),lo(Q,Ae,be,Je.attributes,ir),lo(Q,se,be,Je.attributes,Oe)),go(Q,Ae,be,Je.uniforms,ir,!1),go(Q,se,be,Je.uniforms,Oe,!0),bo(Q,Ae,se,be);else{var Dr=Q.global.def("{}"),qt=be.shader.progVar.append(Q,se),pt=se.def(qt,".id"),ut=se.def(Dr,"[",pt,"]");se(Q.shared.gl,".useProgram(",qt,".program);","if(!",ut,"){",ut,"=",Dr,"[",pt,"]=",Q.link(function(Et){return Jt(ne,Q,be,Et,2)}),"(",qt,");}",ut,".call(this,a0[",ze,"],",ze,");")}}function Ke(Q,oe){var be=Q.proc("batch",2);Q.batchId="0",Ci(Q,be);var Je=!1,er=!0;Object.keys(oe.context).forEach(function(Dr){Je=Je||oe.context[Dr].propDep}),Je||(fi(Q,be,oe.context),er=!1);var ze=oe.framebuffer,Ne=!1;ze?(ze.propDep?Je=Ne=!0:ze.contextDep&&Je&&(Ne=!0),Ne||ci(Q,be,ze)):ci(Q,be,null),oe.state.viewport&&oe.state.viewport.propDep&&(Je=!0);function Me(Dr){return Dr.contextDep&&Je||Dr.propDep}wi(Q,be,oe),Qt(Q,be,oe.state,function(Dr){return!Me(Dr)}),(!oe.profile||!Me(oe.profile))&&Za(Q,be,oe,!1,"a1"),oe.contextDep=Je,oe.needsContext=er,oe.needsFramebuffer=Ne;var de=oe.shader.progVar;if(de.contextDep&&Je||de.propDep)je(Q,be,oe,null);else{var Ae=de.append(Q,be);if(be(Q.shared.gl,".useProgram(",Ae,".program);"),oe.shader.program)je(Q,be,oe,oe.shader.program);else{be(Q.shared.vao,".setVAO(null);");var se=Q.global.def("{}"),Oe=be.def(Ae,".id"),ir=be.def(se,"[",Oe,"]");be(Q.cond(ir).then(ir,".call(this,a0,a1);").else(ir,"=",se,"[",Oe,"]=",Q.link(function(Dr){return Jt(je,Q,oe,Dr,2)}),"(",Ae,");",ir,".call(this,a0,a1);"))}}Object.keys(oe.state).length>0&&be(Q.shared.current,".dirty=true;"),Q.shared.vao&&be(Q.shared.vao,".setVAO(null);")}function wt(Q,oe){var be=Q.proc("scope",3);Q.batchId="a2";var Je=Q.shared,er=Je.current;if(fi(Q,be,oe.context),oe.framebuffer&&oe.framebuffer.append(Q,be),De(Object.keys(oe.state)).forEach(function(Me){var de=oe.state[Me],Ae=de.append(Q,be);xn(Ae)?Ae.forEach(function(se,Oe){dt(se)?be.set(Q.next[Me],"["+Oe+"]",se):be.set(Q.next[Me],"["+Oe+"]",Q.link(se,{stable:!0}))}):sr(de)?be.set(Je.next,"."+Me,Q.link(Ae,{stable:!0})):be.set(Je.next,"."+Me,Ae)}),Za(Q,be,oe,!0,!0),[ru,$d,$u,Vi,ju].forEach(function(Me){var de=oe.draw[Me];if(de){var Ae=de.append(Q,be);dt(Ae)?be.set(Je.draw,"."+Me,Ae):be.set(Je.draw,"."+Me,Q.link(Ae),{stable:!0})}}),Object.keys(oe.uniforms).forEach(function(Me){var de=oe.uniforms[Me].append(Q,be);Array.isArray(de)&&(de="["+de.map(function(Ae){return dt(Ae)?Ae:Q.link(Ae,{stable:!0})})+"]"),be.set(Je.uniforms,"["+Q.link(ae.id(Me),{stable:!0})+"]",de)}),Object.keys(oe.attributes).forEach(function(Me){var de=oe.attributes[Me].append(Q,be),Ae=Q.scopeAttrib(Me);Object.keys(new nr).forEach(function(se){be.set(Ae,"."+se,de[se])})}),oe.scopeVAO){var ze=oe.scopeVAO.append(Q,be);dt(ze)?be.set(Je.vao,".targetVAO",ze):be.set(Je.vao,".targetVAO",Q.link(ze,{stable:!0}))}function Ne(Me){var de=oe.shader[Me];if(de){var Ae=de.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(oe.state).length>0&&(be(er,".dirty=true;"),be.exit(er,".dirty=true;")),be("a1(",Q.shared.context,",a0,",Q.batchId,");")}function ha(Q){if(!(typeof Q!="object"||xn(Q))){for(var oe=Object.keys(Q),be=0;be=0;--Jt){var ma=Lt[Jt];ma&&ma(cr,null,0)}ie.flush(),Fr&&Fr.update()}function na(){!Ot&&Lt.length>0&&(Ot=d.next(Ht))}function qn(){Ot&&(d.cancel(Ht),Ot=null)}function _i(Jt){Jt.preventDefault(),Ze=!0,qn(),Vt.forEach(function(ma){ma()})}function ua(Jt){ie.getError(),Ze=!1,Qe.restore(),Dt.restore(),zr.restore(),gr.restore(),dr.restore(),ht.restore(),it.restore(),Fr&&Fr.restore(),Jr.procs.refresh(),na(),et.forEach(function(ma){ma()})}dt&&(dt.addEventListener(Wt,_i,!1),dt.addEventListener(va,ua,!1));function mo(){Lt.length=0,qn(),dt&&(dt.removeEventListener(Wt,_i),dt.removeEventListener(va,ua)),Dt.clear(),ht.clear(),dr.clear(),it.clear(),gr.clear(),xr.clear(),zr.clear(),Fr&&Fr.clear(),bt.forEach(function(Jt){Jt()})}function Ga(Jt){function ma(ze){var Ne=e({},ze);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(de){if(de in Ne){var Ae=Ne[de];delete Ne[de],Object.keys(Ae).forEach(function(se){Ne[de+"."+se]=Ae[se]})}}return Me("blend"),Me("depth"),Me("cull"),Me("stencil"),Me("polygonOffset"),Me("scissor"),Me("sample"),"vao"in ze&&(Ne.vao=ze.vao),Ne}function cn(ze,Ne){var Me={},de={};return Object.keys(ze).forEach(function(Ae){var se=ze[Ae];if(v.isDynamic(se)){de[Ae]=v.unbox(se,Ae);return}else if(Ne&&Array.isArray(se)){for(var Oe=0;Oe0)return Q.call(this,Je(ze|0),ze|0)}else if(Array.isArray(ze)){if(ze.length)return Q.call(this,ze,ze.length)}else return xt.call(this,ze)}return e(er,{stats:ha,destroy:function(){Ya.destroy()}})}var Xi=ht.setFBO=Ga({framebuffer:v.define.call(null,Wa,"framebuffer")});function oo(Jt,ma){var cn=0;Jr.procs.poll();var ne=ma.color;ne&&(ie.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),cn|=wn),"depth"in ma&&(ie.clearDepth(+ma.depth),cn|=Ta),"stencil"in ma&&(ie.clearStencil(ma.stencil|0),cn|=Or),ie.clear(cn)}function yo(Jt){if("framebuffer"in Jt)if(Jt.framebuffer&&Jt.framebuffer_reglType==="framebufferCube")for(var ma=0;ma<6;++ma)Xi(e({framebuffer:Jt.framebuffer.faces[ma]},Jt),oo);else Xi(Jt,oo);else oo(null,Jt)}function fi(Jt){Lt.push(Jt);function ma(){var cn=xi(Lt,Jt);function ne(){var je=xi(Lt,ne);Lt[je]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&qn()}Lt[cn]=ne}return na(),{cancel:ma}}function ci(){var Jt=Vr.viewport,ma=Vr.scissor_box;Jt[0]=Jt[1]=ma[0]=ma[1]=0,cr.viewportWidth=cr.framebufferWidth=cr.drawingBufferWidth=Jt[2]=ma[2]=ie.drawingBufferWidth,cr.viewportHeight=cr.framebufferHeight=cr.drawingBufferHeight=Jt[3]=ma[3]=ie.drawingBufferHeight}function wi(){cr.tick+=1,cr.time=Ci(),ci(),Jr.procs.poll()}function Qt(){gr.refresh(),ci(),Jr.procs.refresh(),Fr&&Fr.update()}function Ci(){return(p()-Ct)/1e3}Qt();function Za(Jt,ma){var cn;switch(Jt){case"frame":return fi(ma);case"lost":cn=Vt;break;case"restore":cn=et;break;case"destroy":cn=bt;break;default:}return cn.push(ma),{cancel:function(){for(var ne=0;ne=0},read:Ur,destroy:mo,_gl:ie,_refresh:Qt,poll:function(){wi(),Fr&&Fr.update()},now:Ci,stats:yr,getCachedCode:lo,preloadCachedCode:go});return ae.onDone(null,bo),bo}return zi}))});var xK=B((mIe,bK)=>{"use strict";var rke=Ns();bK.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},yK(r)?r={container:r}:tke(r)?r={container:r}:ake(r)?r={gl:r}:r=rke(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}yK(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=gK(),r.container.appendChild(r.canvas),mK(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=gK(),r.container.appendChild(r.canvas),mK(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 mK(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 yK(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function tke(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function ake(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function gK(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var wK=B((yIe,_K)=>{"use strict";var nke=DT(),ike=[32,126];_K.exports=oke;function oke(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||ike;if(a&&typeof a!="string"&&(a=nke(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;lr[0]-n[0]/2&&(f=n[0]/2,c+=n[1]);return t}});var RT=B(jn=>{"use strict";"use restrict";var FT=32;jn.INT_BITS=FT;jn.INT_MAX=2147483647;jn.INT_MIN=-1<0)-(e<0)};jn.abs=function(e){var r=e>>FT-1;return(e^r)-r};jn.min=function(e,r){return r^(e^r)&-(e65535)<<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};jn.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};jn.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function AK(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}jn.countTrailingZeros=AK;jn.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};jn.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};jn.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Op=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<>>8&255]<<16|Op[e>>>16&255]<<8|Op[e>>>24&255]};jn.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};jn.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};jn.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};jn.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};jn.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>AK(e)+1}});var kK=B((bIe,MK)=>{"use strict";function TK(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;i0)return lke(e|0,r);break;case"object":if(typeof e.length=="number")return TK(e,r,0);break}return[]}MK.exports=ske});var DK=B(Zb=>{"use strict";Zb.byteLength=fke;Zb.toByteArray=vke;Zb.fromByteArray=pke;var Bs=[],Al=[],uke=typeof Uint8Array!="undefined"?Uint8Array:Array,PT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Nc=0,SK=PT.length;Nc0)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 fke(e){var r=CK(e),t=r[0],a=r[1];return(t+a)*3/4-a}function cke(e,r,t){return(r+t)*3/4-t}function vke(e){var r,t=CK(e),a=t[0],n=t[1],i=new uke(cke(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Al[e.charCodeAt(s)]<<2|Al[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Al[e.charCodeAt(s)]<<10|Al[e.charCodeAt(s+1)]<<4|Al[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function hke(e){return Bs[e>>18&63]+Bs[e>>12&63]+Bs[e>>6&63]+Bs[e&63]}function dke(e,r,t){for(var a,n=[],i=r;il?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 LK=B(NT=>{NT.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>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<>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<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var WK=B(ld=>{"use strict";var zT=DK(),id=LK(),EK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ld.Buffer=br;ld.SlowBuffer=_ke;ld.INSPECT_MAX_BYTES=50;var Jb=2147483647;ld.kMaxLength=Jb;br.TYPED_ARRAY_SUPPORT=mke();!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 mke(){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 Lu(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 PK(e,r,t)}br.poolSize=8192;function PK(e,r,t){if(typeof e=="string")return gke(e,r);if(ArrayBuffer.isView(e))return bke(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(Is(e,ArrayBuffer)||e&&Is(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Is(e,SharedArrayBuffer)||e&&Is(e.buffer,SharedArrayBuffer)))return IT(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=xke(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 PK(e,r,t)};Object.setPrototypeOf(br.prototype,Uint8Array.prototype);Object.setPrototypeOf(br,Uint8Array);function NK(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 yke(e,r,t){return NK(e),e<=0?Lu(e):r!==void 0?typeof t=="string"?Lu(e).fill(r,t):Lu(e).fill(r):Lu(e)}br.alloc=function(e,r,t){return yke(e,r,t)};function HT(e){return NK(e),Lu(e<0?0:UT(e)|0)}br.allocUnsafe=function(e){return HT(e)};br.allocUnsafeSlow=function(e){return HT(e)};function gke(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!br.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=zK(e,r)|0,a=Lu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function BT(e){let r=e.length<0?0:UT(e.length)|0,t=Lu(r);for(let a=0;a=Jb)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Jb.toString(16)+" bytes");return e|0}function _ke(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(Is(r,Uint8Array)&&(r=br.from(r,r.offset,r.byteLength)),Is(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);in.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 zK(e,r){if(br.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Is(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 XK(e).length;default:if(n)return a?-1:OT(e).length;r=(""+r).toLowerCase(),n=!0}}br.byteLength=zK;function wke(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 qke(this,r,t);case"utf8":case"utf-8":return IK(this,r,t);case"ascii":return Lke(this,r,t);case"latin1":case"binary":return Eke(this,r,t);case"base64":return Cke(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 zc(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;tt&&(r+=" ... "),""};EK&&(br.prototype[EK]=br.prototype.inspect);br.prototype.compare=function(r,t,a,n,i){if(Is(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;c2147483647?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:qK(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):qK(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function qK(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;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>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 Ake(this,r,t,a);case"utf8":case"utf-8":return Tke(this,r,t,a);case"ascii":case"latin1":case"binary":return Mke(this,r,t,a);case"base64":return kke(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ske(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 Cke(e,r,t){return r===0&&t===e.length?zT.fromByteArray(e):zT.fromByteArray(e.slice(r,t))}function IK(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?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 Dke(a)}var FK=4096;function Dke(e){let r=e.length;if(r<=FK)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)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||Pi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Pi(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||Pi(r,1,this.length),this[r]};br.prototype.readUint16LE=br.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Pi(r,2,this.length),this[r]|this[r+1]<<8};br.prototype.readUint16BE=br.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Pi(r,2,this.length),this[r]<<8|this[r+1]};br.prototype.readUint32LE=br.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Pi(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||Pi(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)&&Hp(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)<>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(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)<>>0,t=t>>>0,a||Pi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};br.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Pi(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||Pi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};br.prototype.readInt16LE=function(r,t){r=r>>>0,t||Pi(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||Pi(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||Pi(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||Pi(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)&&Hp(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Pi(r,4,this.length),id.read(this,r,!0,23,4)};br.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Pi(r,4,this.length),id.read(this,r,!1,23,4)};br.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Pi(r,8,this.length),id.read(this,r,!0,52,8)};br.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Pi(r,8,this.length),id.read(this,r,!1,52,8)};function Eo(e,r,t,a,n,i){if(!br.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.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;Eo(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Eo(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||Eo(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||Eo(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||Eo(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||Eo(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||Eo(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 OK(e,r,t,a,n){VK(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 HK(e,r,t,a,n){VK(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 OK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});br.prototype.writeBigUInt64BE=jf(function(r,t=0){return HK(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);Eo(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>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);Eo(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||Eo(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||Eo(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||Eo(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||Eo(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||Eo(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 OK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});br.prototype.writeBigInt64BE=jf(function(r,t=0){return HK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function UK(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 GK(e,r,t,a,n){return r=+r,t=t>>>0,n||UK(e,r,t,4,34028234663852886e22,-34028234663852886e22),id.write(e,r,t,a,23,4),t+4}br.prototype.writeFloatLE=function(r,t,a){return GK(this,r,t,!0,a)};br.prototype.writeFloatBE=function(r,t,a){return GK(this,r,t,!1,a)};function YK(e,r,t,a,n){return r=+r,t=t>>>0,n||UK(e,r,t,8,17976931348623157e292,-17976931348623157e292),id.write(e,r,t,a,52,8),t+8}br.prototype.writeDoubleLE=function(r,t,a){return YK(this,r,t,!0,a)};br.prototype.writeDoubleBE=function(r,t,a){return YK(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=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>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=RK(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=RK(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function RK(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 Rke(e,r,t){od(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Hp(r,e.length-(t+1))}function VK(e,r,t,a,n,i){if(e>t||e3?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)}Rke(a,n,i)}function od(e,r){if(typeof e!="number")throw new nd.ERR_INVALID_ARG_TYPE(r,"number",e)}function Hp(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 Pke=/[^+/0-9A-Za-z-_]/g;function Nke(e){if(e=e.split("=")[0],e=e.trim().replace(Pke,""),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;o55295&&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 zke(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function XK(e){return zT.toByteArray(Nke(e))}function jb(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Is(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 Ike=(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"?Oke:e}function Oke(){throw new Error("BigInt not supported")}});var sQ=B(Ma=>{"use strict";var $f=RT(),Gi=kK(),ZK=WK().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Gi([32,0]),UINT16:Gi([32,0]),UINT32:Gi([32,0]),BIGUINT64:Gi([32,0]),INT8:Gi([32,0]),INT16:Gi([32,0]),INT32:Gi([32,0]),BIGINT64:Gi([32,0]),FLOAT:Gi([32,0]),DOUBLE:Gi([32,0]),DATA:Gi([32,0]),UINT8C:Gi([32,0]),BUFFER:Gi([32,0])});var Hke=typeof Uint8ClampedArray!="undefined",Uke=typeof BigUint64Array!="undefined",Gke=typeof BigInt64Array!="undefined",li=window.__TYPEDARRAY_POOL;li.UINT8C||(li.UINT8C=Gi([32,0]));li.BIGUINT64||(li.BIGUINT64=Gi([32,0]));li.BIGINT64||(li.BIGINT64=Gi([32,0]));li.BUFFER||(li.BUFFER=Gi([32,0]));var $b=li.DATA,Kb=li.BUFFER;Ma.free=function(r){if(ZK.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 Yke(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=Yke;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 qo(r);switch(t){case"uint8":return VT(r);case"uint16":return jK(r);case"uint32":return $K(r);case"int8":return KK(r);case"int16":return QK(r);case"int32":return eQ(r);case"float":case"float32":return rQ(r);case"double":case"float64":return tQ(r);case"uint8_clamped":return aQ(r);case"bigint64":return iQ(r);case"biguint64":return nQ(r);case"buffer":return lQ(r);case"data":case"dataview":return oQ(r);default:return null}return null};function qo(r){var r=$f.nextPow2(r),t=$f.log2(r),a=$b[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ma.mallocArrayBuffer=qo;function VT(e){return new Uint8Array(qo(e),0,e)}Ma.mallocUint8=VT;function jK(e){return new Uint16Array(qo(2*e),0,e)}Ma.mallocUint16=jK;function $K(e){return new Uint32Array(qo(4*e),0,e)}Ma.mallocUint32=$K;function KK(e){return new Int8Array(qo(e),0,e)}Ma.mallocInt8=KK;function QK(e){return new Int16Array(qo(2*e),0,e)}Ma.mallocInt16=QK;function eQ(e){return new Int32Array(qo(4*e),0,e)}Ma.mallocInt32=eQ;function rQ(e){return new Float32Array(qo(4*e),0,e)}Ma.mallocFloat32=Ma.mallocFloat=rQ;function tQ(e){return new Float64Array(qo(8*e),0,e)}Ma.mallocFloat64=Ma.mallocDouble=tQ;function aQ(e){return Hke?new Uint8ClampedArray(qo(e),0,e):VT(e)}Ma.mallocUint8Clamped=aQ;function nQ(e){return Uke?new BigUint64Array(qo(8*e),0,e):null}Ma.mallocBigUint64=nQ;function iQ(e){return Gke?new BigInt64Array(qo(8*e),0,e):null}Ma.mallocBigInt64=iQ;function oQ(e){return new DataView(qo(e),0,e)}Ma.mallocDataView=oQ;function lQ(e){e=$f.nextPow2(e);var r=$f.log2(e),t=Kb[r];return t.length>0?t.pop():new ZK(e)}Ma.mallocBuffer=lQ;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 fQ=B((MIe,uQ)=>{"use strict";var Vke=Object.prototype.toString;uQ.exports=function(e){var r;return Vke.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var XT=B((kIe,cQ)=>{cQ.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 dQ=B((SIe,hQ)=>{"use strict";var Xke=XT();hQ.exports=vQ;var Up=96;function WT(e,r){var t=Xke(getComputedStyle(e).getPropertyValue(r));return t[0]*vQ(t[1],e)}function Wke(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 vQ(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 Wke(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 Up;case"cm":return Up/2.54;case"mm":return Up/25.4;case"pt":return Up/72;case"pc":return Up/6}return 1}});var yQ=B((CIe,mQ)=>{"use strict";mQ.exports=rx;var Zke=rx.canvas=document.createElement("canvas"),Qb=Zke.getContext("2d"),pQ=ex([32,126]);rx.createPairs=ex;rx.ascii=pQ;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=pQ),Qb.font=n+"px "+e;for(var o=0;on*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{"use strict";xQ.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 gQ(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=Os(u.getImageData(0,0,c,c));u.clearRect(0,0,c,c),u.textBaseline="bottom",u.fillText(v,0,c);var m=Os(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=Os(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=Os(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 _=Os(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=Os(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=Os(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=Os(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=Os(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=Os(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=bQ(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=bQ(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,gQ(d,l)}function gQ(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 Os(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var MQ=B((LIe,TQ)=>{"use strict";var sd=pK(),Jke=Ns(),jke=qT(),$ke=xK(),Kke=pT(),ZT=kp(),Qke=wK(),Qf=sQ(),eSe=Vh(),rSe=fQ(),tSe=XT(),aSe=dQ(),nSe=yQ(),iSe=bi(),oSe=_Q(),lSe=Lc(),sSe=RT(),wQ=sSe.nextPow2,AQ=new Kke,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,Na=function(r){uSe(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=$ke(r),this.shader=AQ.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||jke({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(),AQ.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(rSe(r)?r:{})};Na.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}};Na.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(fe){return parseFloat(fe)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=eSe(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=lSe(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=Na.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(fe,he){if(typeof fe=="string")try{fe=sd.parse(fe)}catch(Ue){fe=sd.parse(Na.baseFontSize+"px "+fe)}else{var te=fe.style,Le=fe.weight,ce=fe.stretch,Fe=fe.variant;fe=sd.parse(sd.stringify(fe)),te&&(fe.style=te),Le&&(fe.weight=Le),ce&&(fe.stretch=ce),Fe&&(fe.variant=Fe)}var Re=sd.stringify({size:Na.baseFontSize,family:fe.family,stretch:ax?fe.stretch:void 0,variant:fe.variant,weight:fe.weight,style:fe.style}),ge=tSe(fe.size),He=Math.round(ge[0]*aSe(ge[1]));if(He!==t.fontSize[he]&&(n=!0,t.fontSize[he]=He),(!t.font[he]||Re!=t.font[he].baseString)&&(a=!0,t.font[he]=Na.fonts[Re],!t.font[he])){var ur=fe.family.join(", "),qe=[fe.style];fe.style!=fe.variant&&qe.push(fe.variant),fe.variant!=fe.weight&&qe.push(fe.weight),ax&&fe.weight!=fe.stretch&&qe.push(fe.stretch),t.font[he]={baseString:Re,family:ur,weight:fe.weight,stretch:fe.stretch,style:fe.style,variant:fe.variant,width:{},kerning:{},metrics:oSe(ur,{origin:"top",fontSize:Na.baseFontSize,fontStyle:qe.join(" ")})},Na.fonts[Re]=t.font[he]}}),(a||n)&&this.font.forEach(function(fe,he){var te=sd.stringify({size:t.fontSize[he],family:fe.family,stretch:ax?fe.stretch:void 0,variant:fe.variant,weight:fe.weight,style:fe.style});if(t.fontAtlas[he]=t.shader.atlas[te],!t.fontAtlas[he]){var Le=fe.metrics;t.shader.atlas[te]=t.fontAtlas[he]={fontString:te,step:Math.ceil(t.fontSize[he]*Le.bottom*.5)*2,em:t.fontSize[he],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;o2){for(var u=!r.position[0].length,f=Qf.mallocFloat(this.count*2),c=0,v=0;c1?t.align[he]:t.align[0]:t.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-fe;case"center":case"centre":case"middle":return-fe*.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(fe,he){var te=(t.font[he]||t.font[0]).metrics,Le=0;return Le+=te.bottom*.5,typeof fe=="number"?Le+=fe-te.baseline:Le+=-te[fe],Le*=-1,Le})),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;Y4||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 me=0;me1?this.counts[me]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[me]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(me*4,me*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[me]:this.opacity,baseline:this.baselineOffset[me]!=null?this.baselineOffset[me]:this.baselineOffset[0],align:this.align?this.alignOffset[me]!=null?this.alignOffset[me]:this.alignOffset[0]:0,atlas:this.fontAtlas[me]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(me*2,me*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=[]}};Na.prototype.destroy=function(){};Na.prototype.kerning=!0;Na.prototype.position={constant:new Float32Array(2)};Na.prototype.translate=null;Na.prototype.scale=null;Na.prototype.font=null;Na.prototype.text="";Na.prototype.positionOffset=[0,0];Na.prototype.opacity=1;Na.prototype.color=new Uint8Array([0,0,0,255]);Na.prototype.alignOffset=[0,0];Na.maxAtlasSize=1024;Na.atlasCanvas=document.createElement("canvas");Na.atlasContext=Na.atlasCanvas.getContext("2d",{alpha:!1});Na.baseFontSize=64;Na.fonts={};function uSe(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}TQ.exports=Na});var CQ=B((EIe,SQ)=>{"use strict";var kQ=Kt(),fSe=function(){};SQ.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=fSe);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=kQ.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=kQ.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=B((qIe,DQ)=>{"use strict";var cSe=CQ(),vSe=qT();DQ.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=vSe({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||cSe({container:n._glcontainer.node()}),i}});var NQ=B((JT,PQ)=>{"use strict";var LQ=OA(),EQ=gT(),hSe=j$(),qQ=MQ(),FQ=or(),{rgbaString:dSe}=Kt(),pSe=Lf().selectMode,mSe=nx(),ySe=Ti(),gSe=c9(),bSe=BA().styleTextSelection,RQ={};function xSe(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=PQ.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=mSe(r,["ANGLE_instanced_arrays","OES_element_index_uint"],RQ);if(!f){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(gSe(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=hSe(v)),i.line2d===!0&&(i.line2d=EQ(v)),i.scatter2d===!0&&(i.scatter2d=LQ(v)),i.fill2d===!0&&(i.fill2d=EQ(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sZ&&(isNaN(V[j])||isNaN(V[j+1]));)j-=2;Y.positions=V.slice(Z,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 Z=a[V];if(!(!Y||!Z||!Z[0]||!Z[0].trace)){var j=Z[0],ee=j.trace,me=j.t,fe=i.lineOptions[V],he,te,Le=[];ee._ownfill&&Le.push(V),ee._nexttrace&&Le.push(V+1),Le.length&&(i.fillOrder[V]=Le);var ce=[],Fe=fe&&fe.positions||me.positions,Re,ge;if(ee.fill==="tozeroy"){for(Re=0;ReRe&&isNaN(Fe[ge+1]);)ge-=2;Fe[Re+1]!==0&&(ce=[Fe[Re],0]),ce=ce.concat(Fe.slice(Re,ge+2)),Fe[ge+1]!==0&&(ce=ce.concat([Fe[ge],0]))}else if(ee.fill==="tozerox"){for(Re=0;ReRe&&isNaN(Fe[ge]);)ge-=2;Fe[Re]!==0&&(ce=[0,Fe[Re+1]]),ce=ce.concat(Fe.slice(Re,ge+2)),Fe[ge]!==0&&(ce=ce.concat([0,Fe[ge+1]]))}else if(ee.fill==="toself"||ee.fill==="tonext"){for(ce=[],he=0,Y.splitNull=!0,te=0;te-1;for(let[Y]of a)if(Y){var x=Y.trace,w=Y.t,k=w.index,M=x._length,C=w.x,E=w.y;if(x.selectedpoints||T||_){if(T||(T=!0),x.selectedpoints){var F=i.selectBatch[k]=x.selectedpoints,P={};for(u=0;u{"use strict";var zQ=kZ();zQ.plot=NQ();BQ.exports=zQ});var HQ=B((RIe,OQ)=>{"use strict";OQ.exports=IQ()});var jT=B((PIe,VQ)=>{"use strict";var _Se=Nf(),YQ=Q0(),UQ=$2().axisHoverFormat,{hovertemplateAttrs:wSe,templatefallbackAttrs:ASe}=Hv(),Gp=gb(),TSe=(ni(),vr(ai)).idRegex,MSe=Ra().templatedArray,ud=Fn().extendFlat,Eu=_Se.marker,kSe=Eu.line,SSe=ud(YQ("marker.line",{editTypeOverride:"calc"}),{width:ud({},kSe.width,{editType:"calc"}),editType:"calc"}),ix=ud(YQ("marker"),{symbol:Eu.symbol,angle:Eu.angle,size:ud({},Eu.size,{editType:"markerSize"}),sizeref:Eu.sizeref,sizemin:Eu.sizemin,sizemode:Eu.sizemode,opacity:Eu.opacity,colorbar:Eu.colorbar,line:SSe,editType:"calc"});ix.color.editType=ix.cmin.editType=ix.cmax.editType="style";function GQ(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:TSe[e],editType:"plot"}}}VQ.exports={dimensions:MSe("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({},Gp.text,{}),hovertext:ud({},Gp.hovertext,{}),hovertemplate:wSe(),hovertemplatefallback:ASe(),xhoverformat:UQ("x"),yhoverformat:UQ("y"),marker:ix,xaxes:GQ("x"),yaxes:GQ("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:Gp.selected.marker,editType:"calc"},unselected:{marker:Gp.unselected.marker,editType:"calc"},opacity:Gp.opacity}});var $T=B((NIe,XQ)=>{"use strict";XQ.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var KT=or(),CSe=Oo(),WQ=jT(),DSe=Ti(),LSe=M5(),ESe=$T(),qSe=bb().isOpenSymbol;ZQ.exports=function(r,t,a,n){function i(d,p){return KT.coerce(r,t,WQ,d,p)}var o=CSe(r,t,{name:"dimensions",handleItemDefaults:FSe}),l=i("diagonal.visible"),s=i("showupperhalf"),u=i("showlowerhalf"),f=ESe(t,o,"values");if(!f||!l&&!s&&!u){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),LSe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=qSe(t.marker.symbol),v=DSe.isBubble(t);i("marker.line.width",c||v?1:0),RSe(r,t,n,i),KT.coerceSelectionMarkerOpacity(t,i)};function FSe(e,r){function t(n,i){return KT.coerce(e,r,WQ.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function RSe(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;uf&&o||u{"use strict";var jQ=or();$Q.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]=jQ.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||jQ.extendFlat(s,o),s}});var ree=B((IIe,eee)=>{"use strict";var QT=or(),ox=hn(),PSe=Ch().calcMarkerSize,NSe=Ch().calcAxisExpansion,zSe=Q1(),QQ=Mp().markerSelection,BSe=Mp().markerStyle,ISe=KQ(),OSe=(Wn(),vr(ri)).BADNUM,HSe=(xp(),vr(bp)).TOO_MANY_POINTS;eee.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;kHSe,b;for(y?b=i.sizeAvg||Math.max(i.size,3):b=PSe(t,n),f=0;f{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?Yp.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Yp.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?(Yp.exports=function(){return Date.now()-t},t=Date.now()):(Yp.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(tee)});var iee=B((OIe,ux)=>{var USe=aee(),qu=window,lx=["moz","webkit"],cd="AnimationFrame",vd=qu["request"+cd],Vp=qu["cancel"+cd]||qu["cancelRequest"+cd];for(fd=0;!vd&&fd{oee.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{"use strict";var GSe=OA(),YSe=Ns(),VSe=Dc(),see=iee(),XSe=lee(),rM=Vh(),WSe=Lc();fee.exports=r0;function r0(e,r){if(!(this instanceof r0))return new r0(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=GSe(e),this.canvas=this.scatter.canvas}r0.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=see(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,see(()=>{this.dirty=!1})),this)};r0.prototype.update=function(...e){if(!e.length)return;for(let a=0;ay||!n.lower&&m{r[i+l]=a})}this.scatter.draw(...r)}return this};r0.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 ZSe(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 uee(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 hee=B((GIe,vee)=>{"use strict";var JSe=cee(),tM=or(),cx=hn(),jSe=Lf().selectMode;vee.exports=function(r,t,a){if(a.length)for(var n=0;n(me||0)/fe;for(m=0;m-1,q=jSe(f)||!!n.selectedpoints||P,z=!0;if(q){var I=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var U=n.selectedpoints,G={};for(d=0;d{"use strict";dee.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{"use strict";var pee=aM(),KSe=xA().calcHover,mee=en().getFromId,QSe=Fn().extendFlat;function eCe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=yee(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,u=n.gd,f=QSe({},e),c=0;c{"use strict";var Aee=or(),xee=Aee.pushUnique,_ee=Ti(),wee=aM();Tee.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=!_ee.hasMarkers(n)&&!_ee.hasText(n);if(n.visible!==!0||c)return f;var v=wee.getDimIndex(n,s),d=wee.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{"use strict";var kee=or(),rCe=Q1(),tCe=Mp().markerStyle;See.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){rCe(r,a),kee.extendFlat(n.matrixOptions,tCe(r,a));var i=kee.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Lee=B((ZIe,Dee)=>{"use strict";var aCe=Pt(),nCe=sA();Dee.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:jT(),supplyDefaults:JQ(),colorbar:q5(),calc:ree(),plot:hee(),hoverPoints:bee().hoverPoints,selectPoints:Mee(),editStyle:Cee(),meta:{}};aCe.register(nCe)});var Nee=B((JIe,Pee)=>{"use strict";var iCe=gT(),oCe=Pt(),{rgbaString:lCe}=Kt(),sCe=nx(),uCe=W2().getModuleCalcData,t0=ip(),Eee=hn().getFromId,qee=en().shouldShowZeroLine,Fee="splom",Ree={};function fCe(e){var r=e._fullLayout,t=oCe.getModule(Fee),a=uCe(e.calcdata,t)[0],n=sCe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Ree);n&&(r._hasOnlyLargeSploms&&nM(e),t.plot(e,{},a))}function cCe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&nM(e);for(var a=0;a{"use strict";var zee=Lee();zee.basePlotModule=Nee(),Bee.exports=zee});var Hee=B(($Ie,Oee)=>{"use strict";Oee.exports=Iee()});var lM=B((KIe,Uee)=>{"use strict";var pCe=Q0(),iM=sl(),oM=Di(),mCe=vb().attributes,vx=Fn().extendFlat,yCe=Ra().templatedArray;Uee.exports={domain:mCe({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:yCe("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"},pCe("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 Xp={};ja(Xp,{axisExtentOffset:()=>kCe,axisTitleOffset:()=>MCe,bar:()=>SCe,blockLineCount:()=>ACe,canvasPixelRatio:()=>wCe,cn:()=>CCe,id:()=>DCe,layers:()=>TCe,maxDimensionCount:()=>gCe,overdrag:()=>bCe,tickDistance:()=>_Ce,verticalPadding:()=>xCe});var gCe,bCe,xCe,_Ce,wCe,ACe,TCe,MCe,kCe,SCe,CCe,DCe,Wp=Ja(()=>{"use strict";gCe=60,bCe=45,xCe=2,_Ce=50,wCe=1,ACe=5e3,TCe=["contextLineLayer","focusLineLayer","pickLineLayer"],MCe=28,kCe=10,SCe={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},CCe={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"},DCe={filterBarPattern:"filter-bar-pattern"}});var Zp=B((QIe,Yee)=>{"use strict";var LCe=eg();function Gee(e){return[e]}Yee.exports={keyFun:function(e){return e.key},repeat:Gee,descend:LCe,wrap:Gee,unwrap:function(e){return e[0]}}});var fM=B((eOe,rre)=>{"use strict";var Gn=(Wp(),vr(Xp)),as=la(),ECe=Zp().keyFun,hx=Zp().repeat,hd=or().sorterAsc,qCe=or().strTranslate,Vee=Gn.bar.snapRatio;function Xee(e,r){return e*(1-Vee)+r*Vee}var Wee=Gn.bar.snapClose;function FCe(e,r){return e*(1-Wee)+r*Wee}function px(e,r,t,a){if(RCe(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=r[t][0]&&e<=r[t][1])return!0;return!1}function PCe(e){e.attr("x",-Gn.bar.captureWidth/2).attr("width",Gn.bar.captureWidth)}function NCe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function zCe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=Zee(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function Jee(){as.select(document.body).style("cursor",null)}function uM(e){e.attr("stroke-dasharray",zCe)}function dx(e,r){var t=as.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Gn.bar.snapDuration).each("end",r):t;uM(a)}function jee(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),u=Zee(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]=T[0]&&b<=T[1]){i.clickableOrdinalRange=T;break}}}return i}function ICe(e,r){as.event.sourceEvent.stopPropagation();var t=r.height-as.mouse(e)[1]-2*Gn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=jee(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 $ee(e,r){as.event.sourceEvent.stopPropagation();var t=r.height-as.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 OCe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(Kee(e,r),$ee(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=as.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]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 Kee(e,r){var t=r.height-as.mouse(e)[1]-2*Gn.verticalPadding,a=jee(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),as.select(document.body).style("cursor",n)}function HCe(e){e.on("mousemove",function(r){as.event.preventDefault(),r.parent.inBrushDrag||Kee(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||Jee()}).call(as.behavior.drag().on("dragstart",function(r){ICe(this,r)}).on("drag",function(r){$ee(this,r)}).on("dragend",function(r){OCe(this,r)}))}function Qee(e,r){return e[0]-r[0]}function UCe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(hx);n.enter().append("rect").classed("background",!0).call(PCe).call(NCe).style("pointer-events",a?"none":"auto").attr("transform",qCe(0,Gn.verticalPadding)),n.call(HCe).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 GCe(e,r,t){var a=e.selectAll("."+Gn.cn.axisBrush).data(hx,ECe);a.enter().append("g").classed(Gn.cn.axisBrush,!0),UCe(a,r,t)}function YCe(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 VCe(e){return function(t){var a=t.brush,n=YCe(a),i=n.slice();a.filter.set(i),e()}}function ere(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 XCe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(hd)}).sort(Qee),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=ere(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 WCe(e,r,t,a,n,i){var o=XCe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:VCe(n),brushEndCallback:i}}}function ZCe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(hd)}),r.multiselect?e=ere(e.sort(Qee)):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]}rre.exports={makeBrush:WCe,ensureAxisBrush:GCe,cleanRanges:ZCe}});var nre=B((rOe,are)=>{"use strict";var a0=or(),JCe=Ol().hasColorscale,jCe=th(),$Ce=vb().defaults,KCe=Oo(),QCe=en(),tre=lM(),eDe=fM(),cM=(Wp(),vr(Xp)).maxDimensionCount,rDe=$T();function tDe(e,r,t,a,n){var i=n("line.color",t);if(JCe(e,"line")&&a0.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),jCe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function aDe(e,r,t,a){function n(u,f){return a0.coerce(e,r,tre.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},QCe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=eDe.cleanRanges(s,r))}}are.exports=function(r,t,a,n){function i(f,c){return a0.coerce(r,t,tre,f,c)}var o=r.dimensions;Array.isArray(o)&&o.length>cM&&(a0.log("parcoords traces support up to "+cM+" dimensions at the moment"),o.splice(cM));var l=KCe(r,t,{name:"dimensions",layout:n,handleItemDefaults:aDe}),s=tDe(r,t,a,n,i);$Ce(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),rDe(t,l,"values",s);var u=a0.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});a0.coerceFont(i,"labelfont",u),a0.coerceFont(i,"tickfont",u,{autoShadowDflt:!0}),a0.coerceFont(i,"rangefont",u),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var ore=B((tOe,ire)=>{"use strict";var nDe=or().isArrayOrTypedArray,vM=nh(),iDe=Zp().wrap;ire.exports=function(r,t){var a,n;return vM.hasColorscale(t,"line")&&nDe(t.line.color)?(a=t.line.color,n=vM.extractOpts(t.line).colorscale,vM.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=oDe(t._length),n=[[0,t.line.color],[1,t.line.color]]),iDe({lineColor:a,cscale:n})};function oDe(e){for(var r=new Array(e),t=0;t{"use strict";var lDe=or().isTypedArray;mx.convertTypedArray=function(e){return lDe(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 mre=B((nOe,pre)=>{"use strict";var sDe=["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(` `),uDe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` `),Jp=(Wp(),vr(Xp)).maxDimensionCount,vre=or(),lre=1e-6,yx=2048,fDe=new Uint8Array(4),sre=new Uint8Array(4),ure={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function cDe(e){e.read({x:0,y:0,width:1,height:1,data:fDe})}function hre(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 vDe(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],hre(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>>8*r)%256/255}function pDe(e,r,t){for(var a=new Array(e*(Jp+4)),n=0,i=0;iG&&(G=C[q].dim1.canvasX,I=q);P===0&&hre(n,0,0,u.canvasWidth,u.canvasHeight);var X=_(t);for(q=0;q{"use strict";var ki=la(),Fu=or(),pM=Fu.isArrayOrTypedArray,wre=Fu.numberFormat,Are=Kt(),Tre=en(),xDe=Fu.strRotate,Hs=Fu.strTranslate,_De=Ei(),gx=Sa(),yre=nh(),gM=Zp(),Tl=gM.keyFun,Us=gM.repeat,Mre=gM.unwrap,dd=hM(),fa=(Wp(),vr(Xp)),kre=fM(),wDe=mre();function gre(e,r,t){return Fu.aggNums(e,null,r,t)}function Sre(e,r){return bM(gre(Math.min,e,r),gre(Math.max,e,r))}function bx(e){var r=e.range;return r?bM(r[0],r[1]):Sre(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 ADe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function TDe(e,r,t,a,n){var i=bx(t);return a?ki.scale.ordinal().domain(a.map(ADe(wre(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):ki.scale.linear().domain(i).range([e-r,r])}function MDe(e,r){return ki.scale.linear().range([r,e-r])}function kDe(e,r){return ki.scale.linear().domain(bx(e)).range([r,1-r])}function SDe(e){if(e.tickvals){var r=bx(e);return ki.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function CDe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){let[o,l,s]=Are.rgbaArray(i[1]);return ki.rgb(o,l,s)}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return ki.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 DDe(e,r,t){var a=Mre(r),n=a.trace,i=dd.convertTypedArray(a.lineColor),o=n.line,l={color:Are.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},s=yre.extractOpts(o),u=s.reversescale?yre.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=Fu.extendDeepNoArrays({},o,{color:i.map(ki.scale.linear().domain(bx({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:fa.blockLineCount,canvasOverdrag:fa.overdrag*fa.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:fa.tickDistance,unitToColor:CDe(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*fa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*fa.canvasPixelRatio,width:k,height:M,canvasPixelRatio:fa.canvasPixelRatio}}function LDe(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=fa.verticalPadding/n,u=MDe(n,fa.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=kDe(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 I=yM(z);!e.contextShown()&&I?(z.contextLayer&&z.contextLayer.render(z.panels,!0),e.contextShown(!0)):e.contextShown()&&!I&&(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,I){return{val:z,text:M[I]}}function E(z,I){return z.val-I.val}if(pM(k)&&k.length){Fu.isTypedArray(k)&&(k=Array.from(k)),M=v.ticktext,!pM(M)||!M.length?M=k.map(wre(v.tickformat)):M.length>k.length?M=M.slice(0,k.length):k.length>M.length&&(k=k.slice(0,M.length));for(var F=1;F=I||Y>=U)return;var V=q.lineLayer.readPixel(X,U-1-Y),Z=V[3]!==0,j=Z?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&&(Z?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("."+fa.cn.parcoords).data(v,Tl);y.exit().remove(),y.enter().append("g").classed(fa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),y.attr("transform",function(q){return Hs(q.model.translateX,q.model.translateY)});var b=y.selectAll("."+fa.cn.parcoordsControlView).data(Us,Tl);b.enter().append("g").classed(fa.cn.parcoordsControlView,!0),b.attr("transform",function(q){return Hs(q.model.pad.l,q.model.pad.t)});var T=b.selectAll("."+fa.cn.yAxis).data(function(q){return q.dimensions},Tl);T.enter().append("g").classed(fa.cn.yAxis,!0),b.each(function(q){mM(T,q,u)}),d.each(function(q){if(q.viewModel){!q.lineLayer||n?q.lineLayer=wDe(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 Hs(q.xScale(q.xIndex),0)}),T.call(ki.behavior.drag().origin(function(q){return q}).on("drag",function(q){var z=q.parent;c.linePickActive(!1),q.x=Math.max(-fa.overdrag,Math.min(q.model.width+fa.overdrag,ki.event.x)),q.canvasX=q.x*q.model.canvasPixelRatio,T.sort(function(I,U){return I.x-U.x}).each(function(I,U){I.xIndex=U,I.x=q===I?I.x:I.xScale(I.xIndex),I.canvasX=I.x*I.model.canvasPixelRatio}),mM(T,z,u),T.filter(function(I){return Math.abs(q.xIndex-I.xIndex)!==0}).attr("transform",function(I){return Hs(I.xScale(I.xIndex),0)}),ki.select(this).attr("transform",Hs(q.x,0)),T.each(function(I,U,G){G===q.parent.key&&(z.dimensions[U]=I)}),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),ki.select(this).attr("transform",function(I){return Hs(I.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(I){return I.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+fa.cn.axisOverlays).data(Us,Tl);_.enter().append("g").classed(fa.cn.axisOverlays,!0),_.selectAll("."+fa.cn.axis).remove();var x=_.selectAll("."+fa.cn.axis).data(Us,Tl);x.enter().append("g").classed(fa.cn.axis,!0),x.each(function(q){var z=q.model.height/q.model.tickDistance,I=q.domainScale,U=I.domain();ki.select(this).call(ki.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:Cre(q.model.dimensions[q.visibleIndex],G)}).scale(I)),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("."+fa.cn.axisHeading).data(Us,Tl);w.enter().append("g").classed(fa.cn.axisHeading,!0);var k=w.selectAll("."+fa.cn.axisTitle).data(Us,Tl);k.enter().append("text").classed(fa.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=ki.select(this);gx.font(z,q.model.labelFont),_De.convertToTspans(z,r)}).attr("transform",function(q){var z=xre(q.model.labelAngle,q.model.labelSide),I=fa.axisTitleOffset;return(z.dir>0?"":Hs(0,2*I+q.model.height))+xDe(z.degrees)+Hs(-I*z.dx,-I*z.dy)}).attr("text-anchor",function(q){var z=xre(q.model.labelAngle,q.model.labelSide),I=Math.abs(z.dx),U=Math.abs(z.dy);return 2*I>U?z.dir*z.dx<0?"start":"end":"middle"});var M=_.selectAll("."+fa.cn.axisExtent).data(Us,Tl);M.enter().append("g").classed(fa.cn.axisExtent,!0);var C=M.selectAll("."+fa.cn.axisExtentTop).data(Us,Tl);C.enter().append("g").classed(fa.cn.axisExtentTop,!0),C.attr("transform",Hs(0,-fa.axisExtentOffset));var E=C.selectAll("."+fa.cn.axisExtentTopText).data(Us,Tl);E.enter().append("text").classed(fa.cn.axisExtentTopText,!0).call(bre),E.text(function(q){return _re(q,!0)}).each(function(q){gx.font(ki.select(this),q.model.rangeFont)});var F=M.selectAll("."+fa.cn.axisExtentBottom).data(Us,Tl);F.enter().append("g").classed(fa.cn.axisExtentBottom,!0),F.attr("transform",function(q){return Hs(0,q.model.height+fa.axisExtentOffset)});var P=F.selectAll("."+fa.cn.axisExtentBottomText).data(Us,Tl);P.enter().append("text").classed(fa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(bre),P.text(function(q){return _re(q,!1)}).each(function(q){gx.font(ki.select(this),q.model.rangeFont)}),kre.ensureAxisBrush(_,f,r)}});var _M=B((xM,Rre)=>{"use strict";var FDe=Lre(),RDe=nx(),Ere=hM().isVisible,Fre={};function qre(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function PDe(e,r){return function(a,n){return qre(e,r,a)-qre(e,r,n)}}var xM=Rre.exports=function(r,t){var a=r._fullLayout,n=RDe(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=PDe(p,o[d].filter(Ere));i[d].sort(m),o[d].filter(function(y){return!Ere(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]]])};FDe(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 Nre=B(jp=>{"use strict";var Pre=la(),NDe=W2().getModuleCalcData,zDe=_M(),BDe=(xf(),vr(bf));jp.name="parcoords";jp.plot=function(e){var r=NDe(e.calcdata,"parcoords")[0];r.length&&zDe(e,r)};jp.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())};jp.toSVG=function(e){var r=e._fullLayout._glimages,t=Pre.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:BDe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Pre.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Bre=B((lOe,zre)=>{"use strict";zre.exports={attributes:lM(),supplyDefaults:nre(),calc:ore(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Nre(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var Hre=B((sOe,Ore)=>{"use strict";var Ire=Bre();Ire.plot=_M();Ore.exports=Ire});var Gre=B((uOe,Ure)=>{"use strict";Ure.exports=Hre()});var Yi=B((fOe,Vre)=>{var _x=bi();function Yre(){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(Yre.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(ea.local.invalidDate||ea.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(ea.local.invalidDate||ea.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(ea.local.differentCalendars||ea.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,ea.local.invalidDate||ea.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,ea.local.invalidYear||ea.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,ea.local.invalidYear||ea.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+xx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ea.local.invalidYear||ea.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,ea.local.invalidMonth||ea.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,ea.local.invalidMonth||ea.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ea.local.invalidYear||ea.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,ea.local.invalidDate||ea.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,ea.local.invalidDate||ea.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,ea.local.invalidDate||ea.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,ea.local.invalidDate||ea.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(;oc-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,ea.local.invalidDate||ea.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.minDay&&t-this.minDay13.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,ea.local.invalidDate||ea.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 ea=Vre.exports=new Yre;ea.cdate=wM;ea.baseCalendar=AM;ea.calendars.gregorian=TM});var Xre=B(()=>{var MM=bi(),Si=Yi();MM(Si.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"});Si.local=Si.regionalOptions[""];MM(Si.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});MM(Si.baseCalendar.prototype,{UNIX_EPOCH:Si.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Si.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 Si.local.invalidFormat||Si.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;_+k1},f=function(x,w,k,M){var C=""+w;if(u(x,M))for(;C.length1},T=function(q,z){var I=b(q,z),U=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(q)+1],G=new RegExp("^-?\\d{1,"+U+"}"),X=r.substring(C).match(G);if(!X)throw(Si.local.missingNumberAt||Si.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,I,U){for(var G=b(q,U)?I:z,X=0;X-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 Wre=B(()=>{var n0=Yi(),IDe=bi(),kM=n0.instance();function wx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wx.prototype=new n0.baseCalendar;IDe(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(HDe);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(UDe);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(GDe);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 n0.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 n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return 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,n0.local.invalidyear),n=o0[a-o0[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=i0[e-i0[0]],a=t>>13,n=a?12:11;if(r>n)throw n0.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,n0.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=VDe(e,i,t,n);return kM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=kM.fromJD(e),t=YDe(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(ODe),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 ODe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,HDe=/^\d?\d[iI]?/m,UDe=/^闰?十?[一二三四五六七八九]?月/m,GDe=/^闰?十?[一二三四五六七八九]?/m;n0.calendars.chinese=wx;var i0=[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],o0=[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 YDe(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=o0[n.year-o0[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=o0[i.year-o0[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=i0[i.year-i0[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=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=i0[o.year-i0[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>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 Zre=B(()=>{var Bc=Yi(),XDe=bi();function SM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SM.prototype=new Bc.baseCalendar;XDe(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,Bc.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,Bc.local.invalidYear||Bc.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,Bc.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,Bc.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)}});Bc.calendars.coptic=SM});var Jre=B(()=>{var Ru=Yi(),WDe=bi();function CM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CM.prototype=new Ru.baseCalendar;WDe(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,Ru.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ru.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ru.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,Ru.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ru.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,Ru.local.invalidDate);return{century:ZDe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ru.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 ZDe={20:"Fruitbat",21:"Anchovy"};Ru.calendars.discworld=CM});var jre=B(()=>{var Ic=Yi(),JDe=bi();function DM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DM.prototype=new Ic.baseCalendar;JDe(DM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ic.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ic.local.invalidYear||Ic.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ic.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Ic.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Ic.calendars.ethiopian=DM});var $re=B(()=>{var l0=Yi(),jDe=bi();function LM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LM.prototype=new l0.baseCalendar;jDe(LM.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,l0.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,l0.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,l0.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,l0.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,l0.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,l0.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=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.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)}l0.calendars.hebrew=LM});var Kre=B(()=>{var $p=Yi(),$De=bi();function EM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EM.prototype=new $p.baseCalendar;$De(EM.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,$p.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,$p.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,$p.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)}});$p.calendars.islamic=EM});var Qre=B(()=>{var Kp=Yi(),KDe=bi();function qM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qM.prototype=new Kp.baseCalendar;KDe(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,Kp.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,Kp.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,Kp.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)}});Kp.calendars.julian=qM});var rte=B(()=>{var Ml=Yi(),QDe=bi();function RM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RM.prototype=new Ml.baseCalendar;QDe(RM.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,Ml.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ml.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;t19||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,Ml.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ml.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ml.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ml.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ml.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ml.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ml.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=FM(e+8+340,365);return[Math.floor(r/20)+1,FM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[ete(e+20,20),ete(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ml.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 FM(e,r){return e-r*Math.floor(e/r)}function ete(e,r){return FM(e-1,r)+1}Ml.calendars.mayan=RM});var ate=B(()=>{var Oc=Yi(),eLe=bi();function PM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PM.prototype=new Oc.baseCalendar;var tte=Oc.instance("gregorian");eLe(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,Oc.local.invalidYear||Oc.regionalOptions[""].invalidYear);return tte.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Oc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Oc.calendars.nanakshahi=PM});var nte=B(()=>{var Hc=Yi(),rLe=bi();function NM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NM.prototype=new Hc.baseCalendar;rLe(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,Hc.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,Hc.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,Hc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Hc.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=Hc.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{var pd=Yi(),tLe=bi();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;tLe(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;i0?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 ote=B(()=>{var Uc=Yi(),aLe=bi(),kx=Uc.instance();function zM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zM.prototype=new Uc.baseCalendar;aLe(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,Uc.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,Uc.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,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Uc.local.invalidDate),n=this._t2gYear(a.year());return 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)}});Uc.calendars.taiwan=zM});var lte=B(()=>{var Gc=Yi(),nLe=bi(),Sx=Gc.instance();function BM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BM.prototype=new Gc.baseCalendar;nLe(BM.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,Gc.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,Gc.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,Gc.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,Gc.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)}});Gc.calendars.thai=BM});var ste=B(()=>{var Yc=Yi(),iLe=bi();function IM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IM.prototype=new Yc.baseCalendar;iLe(IM.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,Yc.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,Yc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return s0[n]-s0[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,Yc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+s0[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-s0[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Yc.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=Yc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Yc.calendars.ummalqura=IM;var s0=[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 fte=B((HOe,ute)=>{"use strict";ute.exports=Yi();Xre();Wre();Zre();Jre();jre();$re();Kre();Qre();rte();ate();nte();ite();ote();lte();ste()});var yte=B((UOe,mte)=>{"use strict";var vte=fte(),Qp=or(),hte=(Wn(),vr(ri)),oLe=hte.EPOCHJD,lLe=hte.ONEDAY,UM={valType:"enumerated",values:Qp.sortObjectKeys(vte.calendars),editType:"calc",dflt:"gregorian"},dte=function(e,r,t,a){var n={};return n[t]=UM,Qp.coerce(e,r,n,t,a)},sLe=function(e,r,t,a){for(var n=0;n{"use strict";gte.exports=yte()});var dLe=B((YOe,_te)=>{var xte=UX();xte.register([HQ(),Hee(),Gre(),bte()]);_te.exports=xte});return dLe();})(); /*! 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 *) buffer/index.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) */ window.Plotly = Plotly; return Plotly; }));