@abi-software/simulationvuer 0.6.6-beta.0 → 0.7.0-vue-3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,429 @@
1
+ (function(qn,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(qn=typeof globalThis<"u"?globalThis:qn||self,c(qn.SimulationVuer={},qn.Vue))})(this,function(qn,c){"use strict";const Ti=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const o=e==null?void 0:e(a);if(n===!1||!o)return t==null?void 0:t(a)};var Mk;const kr=typeof window<"u",jN=e=>typeof e=="string",Ck=()=>{},VN=kr&&((Mk=window==null?void 0:window.navigator)==null?void 0:Mk.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ok(e){return typeof e=="function"?e():c.unref(e)}function HN(e){return e}function Qp(e){return c.getCurrentScope()?(c.onScopeDispose(e),!0):!1}function UN(e,t=!0){c.getCurrentInstance()?c.onMounted(e):t?e():c.nextTick(e)}function Si(e){var t;const n=Ok(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Xp=kr?window:void 0;function cl(...e){let t,n,r,a;if(jN(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Xp):[t,n,r,a]=e,!t)return Ck;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(d=>d()),o.length=0},l=(d,f,p,g)=>(d.addEventListener(f,p,g),()=>d.removeEventListener(f,p,g)),s=c.watch(()=>[Si(t),Ok(a)],([d,f])=>{i(),d&&o.push(...n.flatMap(p=>r.map(g=>l(d,p,g,f))))},{immediate:!0,flush:"post"}),u=()=>{s(),i()};return Qp(u),u}let Ek=!1;function qN(e,t,n={}){const{window:r=Xp,ignore:a=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return;VN&&!Ek&&(Ek=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Ck)));let l=!0;const s=p=>a.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(h=>h===p.target||p.composedPath().includes(h));{const h=Si(g);return h&&(p.target===h||p.composedPath().includes(h))}}),d=[cl(r,"click",p=>{const g=Si(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),cl(r,"pointerdown",p=>{const g=Si(e);g&&(l=!p.composedPath().includes(g)&&!s(p))},{passive:!0}),i&&cl(r,"blur",p=>{var g;const h=Si(e);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>d.forEach(p=>p())}function Lk(e,t=!1){const n=c.ref(),r=()=>n.value=!!e();return r(),UN(r,t),n}const zk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fk="__vueuse_ssr_handlers__";zk[Fk]=zk[Fk]||{};var Ik=Object.getOwnPropertySymbols,WN=Object.prototype.hasOwnProperty,GN=Object.prototype.propertyIsEnumerable,ZN=(e,t)=>{var n={};for(var r in e)WN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ik)for(var r of Ik(e))t.indexOf(r)<0&&GN.call(e,r)&&(n[r]=e[r]);return n};function Ai(e,t,n={}){const r=n,{window:a=Xp}=r,o=ZN(r,["window"]);let i;const l=Lk(()=>a&&"ResizeObserver"in a),s=()=>{i&&(i.disconnect(),i=void 0)},u=c.watch(()=>Si(e),f=>{s(),l.value&&a&&f&&(i=new ResizeObserver(t),i.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Qp(d),{isSupported:l,stop:d}}var Dk=Object.getOwnPropertySymbols,KN=Object.prototype.hasOwnProperty,YN=Object.prototype.propertyIsEnumerable,JN=(e,t)=>{var n={};for(var r in e)KN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Dk)for(var r of Dk(e))t.indexOf(r)<0&&YN.call(e,r)&&(n[r]=e[r]);return n};function QN(e,t,n={}){const r=n,{window:a=Xp}=r,o=JN(r,["window"]);let i;const l=Lk(()=>a&&"MutationObserver"in a),s=()=>{i&&(i.disconnect(),i=void 0)},u=c.watch(()=>Si(e),f=>{s(),l.value&&a&&f&&(i=new MutationObserver(t),i.observe(f,o))},{immediate:!0}),d=()=>{s(),u()};return Qp(d),{isSupported:l,stop:d}}var Pk;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Pk||(Pk={}));var XN=Object.defineProperty,Rk=Object.getOwnPropertySymbols,$N=Object.prototype.hasOwnProperty,e7=Object.prototype.propertyIsEnumerable,Nk=(e,t,n)=>t in e?XN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t7=(e,t)=>{for(var n in t||(t={}))$N.call(t,n)&&Nk(e,n,t[n]);if(Rk)for(var n of Rk(t))e7.call(t,n)&&Nk(e,n,t[n]);return e};t7({linear:HN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const n7=()=>kr&&/firefox/i.test(window.navigator.userAgent);/**
2
+ * @vue/shared v3.4.15
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const _d=()=>{},r7=Object.prototype.hasOwnProperty,Bk=(e,t)=>r7.call(e,t),Fa=Array.isArray,ta=e=>typeof e=="function",na=e=>typeof e=="string",ra=e=>e!==null&&typeof e=="object",a7=Object.prototype.toString,o7=e=>a7.call(e),Dy=e=>o7(e).slice(8,-1),jk=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},i7=/-(\w)/g,l7=jk(e=>e.replace(i7,(t,n)=>n?n.toUpperCase():"")),s7=/\B([A-Z])/g,c7=jk(e=>e.replace(s7,"-$1").toLowerCase());var Vk=typeof global=="object"&&global&&global.Object===Object&&global,u7=typeof self=="object"&&self&&self.Object===Object&&self,qo=Vk||u7||Function("return this")(),ul=qo.Symbol,Hk=Object.prototype,d7=Hk.hasOwnProperty,f7=Hk.toString,kd=ul?ul.toStringTag:void 0;function p7(e){var t=d7.call(e,kd),n=e[kd];try{e[kd]=void 0;var r=!0}catch{}var a=f7.call(e);return r&&(t?e[kd]=n:delete e[kd]),a}var h7=Object.prototype,m7=h7.toString;function g7(e){return m7.call(e)}var y7="[object Null]",v7="[object Undefined]",Uk=ul?ul.toStringTag:void 0;function yc(e){return e==null?e===void 0?v7:y7:Uk&&Uk in Object(e)?p7(e):g7(e)}function vc(e){return e!=null&&typeof e=="object"}var b7="[object Symbol]";function $p(e){return typeof e=="symbol"||vc(e)&&yc(e)==b7}function x7(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Mi=Array.isArray,w7=1/0,qk=ul?ul.prototype:void 0,Wk=qk?qk.toString:void 0;function Gk(e){if(typeof e=="string")return e;if(Mi(e))return x7(e,Gk)+"";if($p(e))return Wk?Wk.call(e):"";var t=e+"";return t=="0"&&1/e==-w7?"-0":t}var _7=/\s/;function k7(e){for(var t=e.length;t--&&_7.test(e.charAt(t)););return t}var T7=/^\s+/;function S7(e){return e&&e.slice(0,k7(e)+1).replace(T7,"")}function bc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zk=NaN,A7=/^[-+]0x[0-9a-f]+$/i,M7=/^0b[01]+$/i,C7=/^0o[0-7]+$/i,O7=parseInt;function Py(e){if(typeof e=="number")return e;if($p(e))return Zk;if(bc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=bc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=S7(e);var n=M7.test(e);return n||C7.test(e)?O7(e.slice(2),n?2:8):A7.test(e)?Zk:+e}var Kk=1/0,E7=17976931348623157e292;function L7(e){if(!e)return e===0?e:0;if(e=Py(e),e===Kk||e===-Kk){var t=e<0?-1:1;return t*E7}return e===e?e:0}function z7(e){var t=L7(e),n=t%1;return t===t?n?t-n:t:0}function F7(e){return e}var I7="[object AsyncFunction]",D7="[object Function]",P7="[object GeneratorFunction]",R7="[object Proxy]";function Yk(e){if(!bc(e))return!1;var t=yc(e);return t==D7||t==P7||t==I7||t==R7}var Ry=qo["__core-js_shared__"],Jk=function(){var e=/[^.]+$/.exec(Ry&&Ry.keys&&Ry.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function N7(e){return!!Jk&&Jk in e}var B7=Function.prototype,j7=B7.toString;function ss(e){if(e!=null){try{return j7.call(e)}catch{}try{return e+""}catch{}}return""}var V7=/[\\^$.*+?()[\]{}|]/g,H7=/^\[object .+?Constructor\]$/,U7=Function.prototype,q7=Object.prototype,W7=U7.toString,G7=q7.hasOwnProperty,Z7=RegExp("^"+W7.call(G7).replace(V7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K7(e){if(!bc(e)||N7(e))return!1;var t=Yk(e)?Z7:H7;return t.test(ss(e))}function Y7(e,t){return e==null?void 0:e[t]}function xc(e,t){var n=Y7(e,t);return K7(n)?n:void 0}var Ny=xc(qo,"WeakMap");function J7(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}var Q7=9007199254740991,X7=/^(?:0|[1-9]\d*)$/;function Qk(e,t){var n=typeof e;return t=t??Q7,!!t&&(n=="number"||n!="symbol"&&X7.test(e))&&e>-1&&e%1==0&&e<t}function Xk(e,t){return e===t||e!==e&&t!==t}var $7=9007199254740991;function By(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$7}function eB(e){return e!=null&&By(e.length)&&!Yk(e)}var tB=Object.prototype;function nB(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||tB;return e===n}function rB(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aB="[object Arguments]";function $k(e){return vc(e)&&yc(e)==aB}var eT=Object.prototype,oB=eT.hasOwnProperty,iB=eT.propertyIsEnumerable,tT=$k(function(){return arguments}())?$k:function(e){return vc(e)&&oB.call(e,"callee")&&!iB.call(e,"callee")};function lB(){return!1}var nT=typeof qn=="object"&&qn&&!qn.nodeType&&qn,rT=nT&&typeof module=="object"&&module&&!module.nodeType&&module,sB=rT&&rT.exports===nT,aT=sB?qo.Buffer:void 0,cB=aT?aT.isBuffer:void 0,jy=cB||lB,uB="[object Arguments]",dB="[object Array]",fB="[object Boolean]",pB="[object Date]",hB="[object Error]",mB="[object Function]",gB="[object Map]",yB="[object Number]",vB="[object Object]",bB="[object RegExp]",xB="[object Set]",wB="[object String]",_B="[object WeakMap]",kB="[object ArrayBuffer]",TB="[object DataView]",SB="[object Float32Array]",AB="[object Float64Array]",MB="[object Int8Array]",CB="[object Int16Array]",OB="[object Int32Array]",EB="[object Uint8Array]",LB="[object Uint8ClampedArray]",zB="[object Uint16Array]",FB="[object Uint32Array]",In={};In[SB]=In[AB]=In[MB]=In[CB]=In[OB]=In[EB]=In[LB]=In[zB]=In[FB]=!0,In[uB]=In[dB]=In[kB]=In[fB]=In[TB]=In[pB]=In[hB]=In[mB]=In[gB]=In[yB]=In[vB]=In[bB]=In[xB]=In[wB]=In[_B]=!1;function IB(e){return vc(e)&&By(e.length)&&!!In[yc(e)]}function DB(e){return function(t){return e(t)}}var oT=typeof qn=="object"&&qn&&!qn.nodeType&&qn,Td=oT&&typeof module=="object"&&module&&!module.nodeType&&module,PB=Td&&Td.exports===oT,Vy=PB&&Vk.process,iT=function(){try{var e=Td&&Td.require&&Td.require("util").types;return e||Vy&&Vy.binding&&Vy.binding("util")}catch{}}(),lT=iT&&iT.isTypedArray,sT=lT?DB(lT):IB,RB=Object.prototype,NB=RB.hasOwnProperty;function BB(e,t){var n=Mi(e),r=!n&&tT(e),a=!n&&!r&&jy(e),o=!n&&!r&&!a&&sT(e),i=n||r||a||o,l=i?rB(e.length,String):[],s=l.length;for(var u in e)(t||NB.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qk(u,s)))&&l.push(u);return l}function jB(e,t){return function(n){return e(t(n))}}var VB=jB(Object.keys,Object),HB=Object.prototype,UB=HB.hasOwnProperty;function qB(e){if(!nB(e))return VB(e);var t=[];for(var n in Object(e))UB.call(e,n)&&n!="constructor"&&t.push(n);return t}function cT(e){return eB(e)?BB(e):qB(e)}var WB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GB=/^\w*$/;function Hy(e,t){if(Mi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$p(e)?!0:GB.test(e)||!WB.test(e)||t!=null&&e in Object(t)}var Sd=xc(Object,"create");function ZB(){this.__data__=Sd?Sd(null):{},this.size=0}function KB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YB="__lodash_hash_undefined__",JB=Object.prototype,QB=JB.hasOwnProperty;function XB(e){var t=this.__data__;if(Sd){var n=t[e];return n===YB?void 0:n}return QB.call(t,e)?t[e]:void 0}var $B=Object.prototype,ej=$B.hasOwnProperty;function tj(e){var t=this.__data__;return Sd?t[e]!==void 0:ej.call(t,e)}var nj="__lodash_hash_undefined__";function rj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sd&&t===void 0?nj:t,this}function cs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cs.prototype.clear=ZB,cs.prototype.delete=KB,cs.prototype.get=XB,cs.prototype.has=tj,cs.prototype.set=rj;function aj(){this.__data__=[],this.size=0}function eh(e,t){for(var n=e.length;n--;)if(Xk(e[n][0],t))return n;return-1}var oj=Array.prototype,ij=oj.splice;function lj(e){var t=this.__data__,n=eh(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ij.call(t,n,1),--this.size,!0}function sj(e){var t=this.__data__,n=eh(t,e);return n<0?void 0:t[n][1]}function cj(e){return eh(this.__data__,e)>-1}function uj(e,t){var n=this.__data__,r=eh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ci.prototype.clear=aj,Ci.prototype.delete=lj,Ci.prototype.get=sj,Ci.prototype.has=cj,Ci.prototype.set=uj;var Ad=xc(qo,"Map");function dj(){this.size=0,this.__data__={hash:new cs,map:new(Ad||Ci),string:new cs}}function fj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function th(e,t){var n=e.__data__;return fj(t)?n[typeof t=="string"?"string":"hash"]:n.map}function pj(e){var t=th(this,e).delete(e);return this.size-=t?1:0,t}function hj(e){return th(this,e).get(e)}function mj(e){return th(this,e).has(e)}function gj(e,t){var n=th(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Oi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Oi.prototype.clear=dj,Oi.prototype.delete=pj,Oi.prototype.get=hj,Oi.prototype.has=mj,Oi.prototype.set=gj;var yj="Expected a function";function Uy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Uy.Cache||Oi),n}Uy.Cache=Oi;var vj=500;function bj(e){var t=Uy(e,function(r){return n.size===vj&&n.clear(),r}),n=t.cache;return t}var xj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wj=/\\(\\)?/g,_j=bj(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xj,function(n,r,a,o){t.push(a?o.replace(wj,"$1"):r||n)}),t});function kj(e){return e==null?"":Gk(e)}function uT(e,t){return Mi(e)?e:Hy(e,t)?[e]:_j(kj(e))}var Tj=1/0;function nh(e){if(typeof e=="string"||$p(e))return e;var t=e+"";return t=="0"&&1/e==-Tj?"-0":t}function dT(e,t){t=uT(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[nh(t[n++])];return n&&n==r?e:void 0}function Ei(e,t,n){var r=e==null?void 0:dT(e,t);return r===void 0?n:r}function Sj(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Aj(){this.__data__=new Ci,this.size=0}function Mj(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Cj(e){return this.__data__.get(e)}function Oj(e){return this.__data__.has(e)}var Ej=200;function Lj(e,t){var n=this.__data__;if(n instanceof Ci){var r=n.__data__;if(!Ad||r.length<Ej-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oi(r)}return n.set(e,t),this.size=n.size,this}function Li(e){var t=this.__data__=new Ci(e);this.size=t.size}Li.prototype.clear=Aj,Li.prototype.delete=Mj,Li.prototype.get=Cj,Li.prototype.has=Oj,Li.prototype.set=Lj;function zj(e,t){for(var n=-1,r=e==null?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function Fj(){return[]}var Ij=Object.prototype,Dj=Ij.propertyIsEnumerable,fT=Object.getOwnPropertySymbols,Pj=fT?function(e){return e==null?[]:(e=Object(e),zj(fT(e),function(t){return Dj.call(e,t)}))}:Fj;const Rj=Pj;function Nj(e,t,n){var r=t(e);return Mi(e)?r:Sj(r,n(e))}function pT(e){return Nj(e,cT,Rj)}var qy=xc(qo,"DataView"),Wy=xc(qo,"Promise"),Gy=xc(qo,"Set"),hT="[object Map]",Bj="[object Object]",mT="[object Promise]",gT="[object Set]",yT="[object WeakMap]",vT="[object DataView]",jj=ss(qy),Vj=ss(Ad),Hj=ss(Wy),Uj=ss(Gy),qj=ss(Ny),us=yc;(qy&&us(new qy(new ArrayBuffer(1)))!=vT||Ad&&us(new Ad)!=hT||Wy&&us(Wy.resolve())!=mT||Gy&&us(new Gy)!=gT||Ny&&us(new Ny)!=yT)&&(us=function(e){var t=yc(e),n=t==Bj?e.constructor:void 0,r=n?ss(n):"";if(r)switch(r){case jj:return vT;case Vj:return hT;case Hj:return mT;case Uj:return gT;case qj:return yT}return t});const bT=us;var Wj=qo.Uint8Array;const xT=Wj;var Gj="__lodash_hash_undefined__";function Zj(e){return this.__data__.set(e,Gj),this}function Kj(e){return this.__data__.has(e)}function rh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Oi;++t<n;)this.add(e[t])}rh.prototype.add=rh.prototype.push=Zj,rh.prototype.has=Kj;function Yj(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Jj(e,t){return e.has(t)}var Qj=1,Xj=2;function wT(e,t,n,r,a,o){var i=n&Qj,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,g=n&Xj?new rh:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],y=t[f];if(r)var b=i?r(y,h,f,t,e,o):r(h,y,f,e,t,o);if(b!==void 0){if(b)continue;p=!1;break}if(g){if(!Yj(t,function(v,x){if(!Jj(g,x)&&(h===v||a(h,v,n,r,o)))return g.push(x)})){p=!1;break}}else if(!(h===y||a(h,y,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function $j(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function eV(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var tV=1,nV=2,rV="[object Boolean]",aV="[object Date]",oV="[object Error]",iV="[object Map]",lV="[object Number]",sV="[object RegExp]",cV="[object Set]",uV="[object String]",dV="[object Symbol]",fV="[object ArrayBuffer]",pV="[object DataView]",_T=ul?ul.prototype:void 0,Zy=_T?_T.valueOf:void 0;function hV(e,t,n,r,a,o,i){switch(n){case pV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fV:return!(e.byteLength!=t.byteLength||!o(new xT(e),new xT(t)));case rV:case aV:case lV:return Xk(+e,+t);case oV:return e.name==t.name&&e.message==t.message;case sV:case uV:return e==t+"";case iV:var l=$j;case cV:var s=r&tV;if(l||(l=eV),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=nV,i.set(e,t);var d=wT(l(e),l(t),r,a,o,i);return i.delete(e),d;case dV:if(Zy)return Zy.call(e)==Zy.call(t)}return!1}var mV=1,gV=Object.prototype,yV=gV.hasOwnProperty;function vV(e,t,n,r,a,o){var i=n&mV,l=pT(e),s=l.length,u=pT(t),d=u.length;if(s!=d&&!i)return!1;for(var f=s;f--;){var p=l[f];if(!(i?p in t:yV.call(t,p)))return!1}var g=o.get(e),h=o.get(t);if(g&&h)return g==t&&h==e;var y=!0;o.set(e,t),o.set(t,e);for(var b=i;++f<s;){p=l[f];var v=e[p],x=t[p];if(r)var k=i?r(x,v,p,t,e,o):r(v,x,p,e,t,o);if(!(k===void 0?v===x||a(v,x,n,r,o):k)){y=!1;break}b||(b=p=="constructor")}if(y&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(y=!1)}return o.delete(e),o.delete(t),y}var bV=1,kT="[object Arguments]",TT="[object Array]",ah="[object Object]",xV=Object.prototype,ST=xV.hasOwnProperty;function wV(e,t,n,r,a,o){var i=Mi(e),l=Mi(t),s=i?TT:bT(e),u=l?TT:bT(t);s=s==kT?ah:s,u=u==kT?ah:u;var d=s==ah,f=u==ah,p=s==u;if(p&&jy(e)){if(!jy(t))return!1;i=!0,d=!1}if(p&&!d)return o||(o=new Li),i||sT(e)?wT(e,t,n,r,a,o):hV(e,t,s,n,r,a,o);if(!(n&bV)){var g=d&&ST.call(e,"__wrapped__"),h=f&&ST.call(t,"__wrapped__");if(g||h){var y=g?e.value():e,b=h?t.value():t;return o||(o=new Li),a(y,b,n,r,o)}}return p?(o||(o=new Li),vV(e,t,n,r,a,o)):!1}function oh(e,t,n,r,a){return e===t?!0:e==null||t==null||!vc(e)&&!vc(t)?e!==e&&t!==t:wV(e,t,n,r,oh,a)}var _V=1,kV=2;function TV(e,t,n,r){var a=n.length,o=a,i=!r;if(e==null)return!o;for(e=Object(e);a--;){var l=n[a];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){l=n[a];var s=l[0],u=e[s],d=l[1];if(i&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new Li;if(r)var p=r(u,d,s,e,t,f);if(!(p===void 0?oh(d,u,_V|kV,r,f):p))return!1}}return!0}function AT(e){return e===e&&!bc(e)}function SV(e){for(var t=cT(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,AT(a)]}return t}function MT(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function AV(e){var t=SV(e);return t.length==1&&t[0][2]?MT(t[0][0],t[0][1]):function(n){return n===e||TV(n,e,t)}}function MV(e,t){return e!=null&&t in Object(e)}function CV(e,t,n){t=uT(t,e);for(var r=-1,a=t.length,o=!1;++r<a;){var i=nh(t[r]);if(!(o=e!=null&&n(e,i)))break;e=e[i]}return o||++r!=a?o:(a=e==null?0:e.length,!!a&&By(a)&&Qk(i,a)&&(Mi(e)||tT(e)))}function OV(e,t){return e!=null&&CV(e,t,MV)}var EV=1,LV=2;function zV(e,t){return Hy(e)&&AT(t)?MT(nh(e),t):function(n){var r=Ei(n,e);return r===void 0&&r===t?OV(n,e):oh(t,r,EV|LV)}}function FV(e){return function(t){return t==null?void 0:t[e]}}function IV(e){return function(t){return dT(t,e)}}function DV(e){return Hy(e)?FV(nh(e)):IV(e)}function PV(e){return typeof e=="function"?e:e==null?F7:typeof e=="object"?Mi(e)?zV(e[0],e[1]):AV(e):DV(e)}var Ky=function(){return qo.Date.now()},RV="Expected a function",NV=Math.max,BV=Math.min;function Yy(e,t,n){var r,a,o,i,l,s,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(RV);t=Py(t)||0,bc(n)&&(d=!!n.leading,f="maxWait"in n,o=f?NV(Py(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function g(T){var C=r,A=a;return r=a=void 0,u=T,i=e.apply(A,C),i}function h(T){return u=T,l=setTimeout(v,t),d?g(T):i}function y(T){var C=T-s,A=T-u,O=t-C;return f?BV(O,o-A):O}function b(T){var C=T-s,A=T-u;return s===void 0||C>=t||C<0||f&&A>=o}function v(){var T=Ky();if(b(T))return x(T);l=setTimeout(v,y(T))}function x(T){return l=void 0,p&&r?g(T):(r=a=void 0,i)}function k(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function _(){return l===void 0?i:x(Ky())}function S(){var T=Ky(),C=b(T);if(r=arguments,a=this,s=T,C){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(v,t),g(s)}return l===void 0&&(l=setTimeout(v,t)),i}return S.cancel=k,S.flush=_,S}var jV=Math.max,VV=Math.min;function HV(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=z7(n),a=n<0?jV(r+a,0):VV(a,r-1)),J7(e,PV(t),a,!0)}function ih(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function Md(e,t){return oh(e,t)}function zi(e){return e==null}function UV(e){return e===void 0}const wc=e=>e===void 0,CT=e=>typeof e=="boolean",Dn=e=>typeof e=="number",Cd=e=>typeof Element>"u"?!1:e instanceof Element,qV=e=>na(e)?!Number.isNaN(Number(e)):!1,WV=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),OT=e=>Object.keys(e);class ET extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Jy(e,t){throw new ET(`[${e}] ${t}`)}function yr(e,t){if(process.env.NODE_ENV!=="production"){const n=na(e)?new ET(`[${e}] ${t}`):e;console.warn(n)}}const GV="utils/dom/style",LT=(e="")=>e.split(" ").filter(t=>!!t.trim()),zT=(e,t)=>{!e||!t.trim()||e.classList.add(...LT(t))},lh=(e,t)=>{!e||!t.trim()||e.classList.remove(...LT(t))},Od=(e,t)=>{var n;if(!kr||!e||!t)return"";let r=l7(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch{return e.style[r]}};function Qy(e,t="px"){if(!e)return"";if(Dn(e)||qV(e))return`${e}${t}`;if(na(e))return e;yr(GV,"binding value must be a string or number")}function ZV(e,t){if(!kr)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((s,u)=>s+u.offsetTop,0),o=a+t.offsetHeight,i=e.scrollTop,l=i+e.clientHeight;a<i?e.scrollTop=a:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var KV=c.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),FT=KV,YV=c.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),JV=YV,QV=c.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),c.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),XV=QV,$V=c.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Xy=$V,eH=c.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),IT=eH,tH=c.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),c.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),nH=tH,rH=c.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),DT=rH,aH=c.defineComponent({name:"Minus",__name:"minus",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),oH=aH,iH=c.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),lH=iH,sH=c.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),cH=sH;const PT="__epPropKey",sn=e=>e,uH=e=>ra(e)&&!!e[PT],sh=(e,t)=>{if(!ra(e)||uH(e))return e;const{values:n,required:r,default:a,type:o,validator:i}=e,s={type:o,required:!!r,validator:n||i?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),Bk(e,"default")&&f.push(a),d||(d=f.includes(u))),i&&(d||(d=i(u))),!d&&f.length>0){const p=[...new Set(f)].map(g=>JSON.stringify(g)).join(", ");c.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[PT]:!0};return Bk(e,"default")&&(s.default=a),s},Xn=e=>ih(Object.entries(e).map(([t,n])=>[t,sh(n,t)])),_c=sn([String,Object,Function]),RT={validating:DT,success:XV,error:Xy},mo=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},$y=e=>(e.install=_d,e),kc={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},rr="update:modelValue",Tc="change",ds="input",NT=["","default","small","large"],BT=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),dH=e=>e,fH=["class","style"],pH=/^on[A-Z]/,hH=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=c.computed(()=>((n==null?void 0:n.value)||[]).concat(fH)),a=c.getCurrentInstance();return a?c.computed(()=>{var o;return ih(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&pH.test(i))))}):(yr("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),c.computed(()=>({})))},jT=({from:e,replacement:t,scope:n,version:r,ref:a,type:o="API"},i)=>{c.watch(()=>c.unref(i),l=>{l&&yr(n,`[${o}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
6
+ For more detail, please visit: ${a}
7
+ `)},{immediate:!0})};var mH={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const gH=e=>(t,n)=>yH(t,n,c.unref(e)),yH=(e,t,n)=>Ei(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),vH=e=>{const t=c.computed(()=>c.unref(e).name),n=c.isRef(e)?e:c.ref(e);return{lang:t,locale:n,t:gH(e)}},VT=Symbol("localeContextKey"),ch=e=>{const t=e||c.inject(VT,c.ref());return vH(c.computed(()=>t.value||mH))},uh="el",bH="is-",fs=(e,t,n,r,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),a&&(o+=`--${a}`),o},HT=Symbol("namespaceContextKey"),ev=e=>{const t=e||(c.getCurrentInstance()?c.inject(HT,c.ref(uh)):c.ref(uh));return c.computed(()=>c.unref(t)||uh)},Pn=(e,t)=>{const n=ev(t);return{namespace:n,b:(y="")=>fs(n.value,e,y,"",""),e:y=>y?fs(n.value,e,"",y,""):"",m:y=>y?fs(n.value,e,"","",y):"",be:(y,b)=>y&&b?fs(n.value,e,y,b,""):"",em:(y,b)=>y&&b?fs(n.value,e,"",y,b):"",bm:(y,b)=>y&&b?fs(n.value,e,y,"",b):"",bem:(y,b,v)=>y&&b&&v?fs(n.value,e,y,b,v):"",is:(y,...b)=>{const v=b.length>=1?b[0]:!0;return y&&v?`${bH}${y}`:""},cssVar:y=>{const b={};for(const v in y)y[v]&&(b[`--${n.value}-${v}`]=y[v]);return b},cssVarName:y=>`--${n.value}-${y}`,cssVarBlock:y=>{const b={};for(const v in y)y[v]&&(b[`--${n.value}-${e}-${v}`]=y[v]);return b},cssVarBlockName:y=>`--${n.value}-${e}-${y}`}},xH=sh({type:sn(Boolean),default:null}),wH=sh({type:sn(Function)}),UT=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:xH,[n]:wH};return{useModelToggle:({indicator:i,toggleReason:l,shouldHideWhenRouteChanges:s,shouldProceed:u,onShow:d,onHide:f})=>{const p=c.getCurrentInstance(),{emit:g}=p,h=p.props,y=c.computed(()=>ta(h[n])),b=c.computed(()=>h[e]===null),v=C=>{i.value!==!0&&(i.value=!0,l&&(l.value=C),ta(d)&&d(C))},x=C=>{i.value!==!1&&(i.value=!1,l&&(l.value=C),ta(f)&&f(C))},k=C=>{if(h.disabled===!0||ta(u)&&!u())return;const A=y.value&&kr;A&&g(t,!0),(b.value||!A)&&v(C)},_=C=>{if(h.disabled===!0||!kr)return;const A=y.value&&kr;A&&g(t,!1),(b.value||!A)&&x(C)},S=C=>{CT(C)&&(h.disabled&&C?y.value&&g(t,!1):i.value!==C&&(C?v():x()))},T=()=>{i.value?_():k()};return c.watch(()=>h[e],S),s&&p.appContext.config.globalProperties.$route!==void 0&&c.watch(()=>({...p.proxy.$route}),()=>{s.value&&i.value&&_()}),c.onMounted(()=>{S(h[e])}),{hide:_,show:k,toggle:T,hasUpdateHandler:y}},useModelToggleProps:a,useModelToggleEmits:r}};UT("modelValue");const qT=e=>{const t=c.getCurrentInstance();return c.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var aa="top",Ia="bottom",Da="right",oa="left",tv="auto",Ed=[aa,Ia,Da,oa],Sc="start",Ld="end",_H="clippingParents",WT="viewport",zd="popper",kH="reference",GT=Ed.reduce(function(e,t){return e.concat([t+"-"+Sc,t+"-"+Ld])},[]),Ac=[].concat(Ed,[tv]).reduce(function(e,t){return e.concat([t,t+"-"+Sc,t+"-"+Ld])},[]),TH="beforeRead",SH="read",AH="afterRead",MH="beforeMain",CH="main",OH="afterMain",EH="beforeWrite",LH="write",zH="afterWrite",FH=[TH,SH,AH,MH,CH,OH,EH,LH,zH];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function go(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mc(e){var t=go(e).Element;return e instanceof t||e instanceof Element}function Pa(e){var t=go(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nv(e){if(typeof ShadowRoot>"u")return!1;var t=go(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function IH(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Pa(o)||!Wo(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function DH(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(s,u){return s[u]="",s},{});!Pa(a)||!Wo(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}var ZT={name:"applyStyles",enabled:!0,phase:"write",fn:IH,effect:DH,requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var ps=Math.max,dh=Math.min,Cc=Math.round;function Oc(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Pa(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Cc(n.width)/i||1),o>0&&(a=Cc(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function rv(e){var t=Oc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function KT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fi(e){return go(e).getComputedStyle(e)}function PH(e){return["table","td","th"].indexOf(Wo(e))>=0}function dl(e){return((Mc(e)?e.ownerDocument:e.document)||window.document).documentElement}function fh(e){return Wo(e)==="html"?e:e.assignedSlot||e.parentNode||(nv(e)?e.host:null)||dl(e)}function YT(e){return!Pa(e)||Fi(e).position==="fixed"?null:e.offsetParent}function RH(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Pa(e)){var r=Fi(e);if(r.position==="fixed")return null}var a=fh(e);for(nv(a)&&(a=a.host);Pa(a)&&["html","body"].indexOf(Wo(a))<0;){var o=Fi(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Fd(e){for(var t=go(e),n=YT(e);n&&PH(n)&&Fi(n).position==="static";)n=YT(n);return n&&(Wo(n)==="html"||Wo(n)==="body"&&Fi(n).position==="static")?t:n||RH(e)||t}function av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Id(e,t,n){return ps(e,dh(t,n))}function NH(e,t,n){var r=Id(e,t,n);return r>n?n:r}function JT(){return{top:0,right:0,bottom:0,left:0}}function QT(e){return Object.assign({},JT(),e)}function XT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var BH=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,QT(typeof e!="number"?e:XT(e,Ed))};function jH(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Go(n.placement),s=av(l),u=[oa,Da].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!i)){var f=BH(a.padding,n),p=rv(o),g=s==="y"?aa:oa,h=s==="y"?Ia:Da,y=n.rects.reference[d]+n.rects.reference[s]-i[s]-n.rects.popper[d],b=i[s]-n.rects.reference[s],v=Fd(o),x=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,k=y/2-b/2,_=f[g],S=x-p[d]-f[h],T=x/2-p[d]/2+k,C=Id(_,T,S),A=s;n.modifiersData[r]=(t={},t[A]=C,t.centerOffset=C-T,t)}}function VH(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!KT(t.elements.popper,a)||(t.elements.arrow=a))}var HH={name:"arrow",enabled:!0,phase:"main",fn:jH,effect:VH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ec(e){return e.split("-")[1]}var UH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qH(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Cc(t*a)/a||0,y:Cc(n*a)/a||0}}function $T(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,g=p===void 0?0:p,h=i.y,y=h===void 0?0:h,b=typeof d=="function"?d({x:g,y}):{x:g,y};g=b.x,y=b.y;var v=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),k=oa,_=aa,S=window;if(u){var T=Fd(n),C="clientHeight",A="clientWidth";if(T===go(n)&&(T=dl(n),Fi(T).position!=="static"&&l==="absolute"&&(C="scrollHeight",A="scrollWidth")),T=T,a===aa||(a===oa||a===Da)&&o===Ld){_=Ia;var O=f&&T===S&&S.visualViewport?S.visualViewport.height:T[C];y-=O-r.height,y*=s?1:-1}if(a===oa||(a===aa||a===Ia)&&o===Ld){k=Da;var F=f&&T===S&&S.visualViewport?S.visualViewport.width:T[A];g-=F-r.width,g*=s?1:-1}}var R=Object.assign({position:l},u&&UH),N=d===!0?qH({x:g,y}):{x:g,y};if(g=N.x,y=N.y,s){var B;return Object.assign({},R,(B={},B[_]=x?"0":"",B[k]=v?"0":"",B.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},R,(t={},t[_]=x?y+"px":"",t[k]=v?g+"px":"",t.transform="",t))}function WH(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,l=n.roundOffsets,s=l===void 0?!0:l,u={placement:Go(t.placement),variation:Ec(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$T(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$T(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var eS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WH,data:{}},ph={passive:!0};function GH(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,l=i===void 0?!0:i,s=go(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,ph)}),l&&s.addEventListener("resize",n.update,ph),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ph)}),l&&s.removeEventListener("resize",n.update,ph)}}var tS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GH,data:{}},ZH={left:"right",right:"left",bottom:"top",top:"bottom"};function hh(e){return e.replace(/left|right|bottom|top/g,function(t){return ZH[t]})}var KH={start:"end",end:"start"};function nS(e){return e.replace(/start|end/g,function(t){return KH[t]})}function ov(e){var t=go(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function iv(e){return Oc(dl(e)).left+ov(e).scrollLeft}function YH(e){var t=go(e),n=dl(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,l=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,l=r.offsetTop)),{width:a,height:o,x:i+iv(e),y:l}}function JH(e){var t,n=dl(e),r=ov(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=ps(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=ps(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+iv(e),s=-r.scrollTop;return Fi(a||n).direction==="rtl"&&(l+=ps(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}function lv(e){var t=Fi(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function rS(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:Pa(e)&&lv(e)?e:rS(fh(e))}function Dd(e,t){var n;t===void 0&&(t=[]);var r=rS(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=go(r),i=a?[o].concat(o.visualViewport||[],lv(r)?r:[]):r,l=t.concat(i);return a?l:l.concat(Dd(fh(i)))}function sv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QH(e){var t=Oc(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function aS(e,t){return t===WT?sv(YH(e)):Mc(t)?QH(t):sv(JH(dl(e)))}function XH(e){var t=Dd(fh(e)),n=["absolute","fixed"].indexOf(Fi(e).position)>=0,r=n&&Pa(e)?Fd(e):e;return Mc(r)?t.filter(function(a){return Mc(a)&&KT(a,r)&&Wo(a)!=="body"}):[]}function $H(e,t,n){var r=t==="clippingParents"?XH(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(l,s){var u=aS(e,s);return l.top=ps(u.top,l.top),l.right=dh(u.right,l.right),l.bottom=dh(u.bottom,l.bottom),l.left=ps(u.left,l.left),l},aS(e,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function oS(e){var t=e.reference,n=e.element,r=e.placement,a=r?Go(r):null,o=r?Ec(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(a){case aa:s={x:i,y:t.y-n.height};break;case Ia:s={x:i,y:t.y+t.height};break;case Da:s={x:t.x+t.width,y:l};break;case oa:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var u=a?av(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case Sc:s[u]=s[u]-(t[d]/2-n[d]/2);break;case Ld:s[u]=s[u]+(t[d]/2-n[d]/2);break}}return s}function Pd(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.boundary,i=o===void 0?_H:o,l=n.rootBoundary,s=l===void 0?WT:l,u=n.elementContext,d=u===void 0?zd:u,f=n.altBoundary,p=f===void 0?!1:f,g=n.padding,h=g===void 0?0:g,y=QT(typeof h!="number"?h:XT(h,Ed)),b=d===zd?kH:zd,v=e.rects.popper,x=e.elements[p?b:d],k=$H(Mc(x)?x:x.contextElement||dl(e.elements.popper),i,s),_=Oc(e.elements.reference),S=oS({reference:_,element:v,strategy:"absolute",placement:a}),T=sv(Object.assign({},v,S)),C=d===zd?T:_,A={top:k.top-C.top+y.top,bottom:C.bottom-k.bottom+y.bottom,left:k.left-C.left+y.left,right:C.right-k.right+y.right},O=e.modifiersData.offset;if(d===zd&&O){var F=O[a];Object.keys(A).forEach(function(R){var N=[Da,Ia].indexOf(R)>=0?1:-1,B=[aa,Ia].indexOf(R)>=0?"y":"x";A[R]+=F[B]*N})}return A}function eU(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?Ac:s,d=Ec(r),f=d?l?GT:GT.filter(function(h){return Ec(h)===d}):Ed,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var g=p.reduce(function(h,y){return h[y]=Pd(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[Go(y)],h},{});return Object.keys(g).sort(function(h,y){return g[h]-g[y]})}function tU(e){if(Go(e)===tv)return[];var t=hh(e);return[nS(e),t,nS(t)]}function nU(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!0:i,s=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,y=n.allowedAutoPlacements,b=t.options.placement,v=Go(b),x=v===b,k=s||(x||!h?[hh(b)]:tU(b)),_=[b].concat(k).reduce(function(ne,te){return ne.concat(Go(te)===tv?eU(t,{placement:te,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:y}):te)},[]),S=t.rects.reference,T=t.rects.popper,C=new Map,A=!0,O=_[0],F=0;F<_.length;F++){var R=_[F],N=Go(R),B=Ec(R)===Sc,V=[aa,Ia].indexOf(N)>=0,Z=V?"width":"height",G=Pd(t,{placement:R,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),I=V?B?Da:oa:B?Ia:aa;S[Z]>T[Z]&&(I=hh(I));var P=hh(I),z=[];if(o&&z.push(G[N]<=0),l&&z.push(G[I]<=0,G[P]<=0),z.every(function(ne){return ne})){O=R,A=!1;break}C.set(R,z)}if(A)for(var H=h?3:1,j=function(ne){var te=_.find(function(ee){var se=C.get(ee);if(se)return se.slice(0,ne).every(function(U){return U})});if(te)return O=te,"break"},q=H;q>0;q--){var $=j(q);if($==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var rU={name:"flip",enabled:!0,phase:"main",fn:nU,requiresIfExists:["offset"],data:{_skip:!1}};function iS(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lS(e){return[aa,Da,Ia,oa].some(function(t){return e[t]>=0})}function aU(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Pd(t,{elementContext:"reference"}),l=Pd(t,{altBoundary:!0}),s=iS(i,r),u=iS(l,a,o),d=lS(s),f=lS(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var oU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aU};function iU(e,t,n){var r=Go(e),a=[oa,aa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[oa,Da].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function lU(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=Ac.reduce(function(d,f){return d[f]=iU(f,t.rects,o),d},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}var sU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lU};function cU(e){var t=e.state,n=e.name;t.modifiersData[n]=oS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var sS={name:"popperOffsets",enabled:!0,phase:"read",fn:cU,data:{}};function uU(e){return e==="x"?"y":"x"}function dU(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!1:i,s=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,h=n.tetherOffset,y=h===void 0?0:h,b=Pd(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:d}),v=Go(t.placement),x=Ec(t.placement),k=!x,_=av(v),S=uU(_),T=t.modifiersData.popperOffsets,C=t.rects.reference,A=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(o){var B,V=_==="y"?aa:oa,Z=_==="y"?Ia:Da,G=_==="y"?"height":"width",I=T[_],P=I+b[V],z=I-b[Z],H=g?-A[G]/2:0,j=x===Sc?C[G]:A[G],q=x===Sc?-A[G]:-C[G],$=t.elements.arrow,ne=g&&$?rv($):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JT(),ee=te[V],se=te[Z],U=Id(0,C[G],ne[G]),Y=k?C[G]/2-H-U-ee-F.mainAxis:j-U-ee-F.mainAxis,J=k?-C[G]/2+H+U+se+F.mainAxis:q+U+se+F.mainAxis,re=t.elements.arrow&&Fd(t.elements.arrow),oe=re?_==="y"?re.clientTop||0:re.clientLeft||0:0,he=(B=R==null?void 0:R[_])!=null?B:0,ve=I+Y-he-oe,ge=I+J-he,xe=Id(g?dh(P,ve):P,I,g?ps(z,ge):z);T[_]=xe,N[_]=xe-I}if(l){var Le,Ue=_==="x"?aa:oa,Pe=_==="x"?Ia:Da,De=T[S],je=S==="y"?"height":"width",qe=De+b[Ue],Ee=De-b[Pe],_e=[aa,oa].indexOf(v)!==-1,we=(Le=R==null?void 0:R[S])!=null?Le:0,Re=_e?qe:De-C[je]-A[je]-we+F.altAxis,Je=_e?De+C[je]+A[je]-we-F.altAxis:Ee,it=g&&_e?NH(Re,De,Je):Id(g?Re:qe,De,g?Je:Ee);T[S]=it,N[S]=it-De}t.modifiersData[r]=N}}var fU={name:"preventOverflow",enabled:!0,phase:"main",fn:dU,requiresIfExists:["offset"]};function pU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hU(e){return e===go(e)||!Pa(e)?ov(e):pU(e)}function mU(e){var t=e.getBoundingClientRect(),n=Cc(t.width)/e.offsetWidth||1,r=Cc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gU(e,t,n){n===void 0&&(n=!1);var r=Pa(t),a=Pa(t)&&mU(t),o=dl(t),i=Oc(e,a),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Wo(t)!=="body"||lv(o))&&(l=hU(t)),Pa(t)?(s=Oc(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=iv(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function yU(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&a(s)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function vU(e){var t=yU(e);return FH.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function bU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xU(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var cS={placement:"bottom",modifiers:[],strategy:"absolute"};function uS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function cv(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?cS:a;return function(i,l,s){s===void 0&&(s=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},cS,o),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(y){var b=typeof y=="function"?y(u.options):y;h(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:Mc(i)?Dd(i):i.contextElement?Dd(i.contextElement):[],popper:Dd(l)};var v=vU(xU([].concat(r,u.options.modifiers)));return u.orderedModifiers=v.filter(function(x){return x.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var y=u.elements,b=y.reference,v=y.popper;if(uS(b,v)){u.rects={reference:gU(b,Fd(v),u.options.strategy==="fixed"),popper:rv(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var k=u.orderedModifiers[x],_=k.fn,S=k.options,T=S===void 0?{}:S,C=k.name;typeof _=="function"&&(u=_({state:u,options:T,name:C,instance:p})||u)}}}},update:bU(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){h(),f=!0}};if(!uS(i,l))return p;p.setOptions(s).then(function(y){!f&&s.onFirstUpdate&&s.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var b=y.name,v=y.options,x=v===void 0?{}:v,k=y.effect;if(typeof k=="function"){var _=k({state:u,name:b,instance:p,options:x}),S=function(){};d.push(_||S)}})}function h(){d.forEach(function(y){return y()}),d=[]}return p}}cv();var wU=[tS,sS,eS,ZT];cv({defaultModifiers:wU});var _U=[tS,sS,eS,ZT,sU,rU,fU,HH,oU],kU=cv({defaultModifiers:_U});const TU=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const u=SU(s);Object.assign(i.value,u)},requires:["computeStyles"]},a=c.computed(()=>{const{onFirstUpdate:s,placement:u,strategy:d,modifiers:f}=c.unref(n);return{onFirstUpdate:s,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=c.shallowRef(),i=c.ref({styles:{popper:{position:c.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return c.watch(a,s=>{const u=c.unref(o);u&&u.setOptions(s)},{deep:!0}),c.watch([e,t],([s,u])=>{l(),!(!s||!u)&&(o.value=kU(s,u,c.unref(a)))}),c.onBeforeUnmount(()=>{l()}),{state:c.computed(()=>{var s;return{...((s=c.unref(o))==null?void 0:s.state)||{}}}),styles:c.computed(()=>c.unref(i).styles),attributes:c.computed(()=>c.unref(i).attributes),update:()=>{var s;return(s=c.unref(o))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=c.unref(o))==null?void 0:s.forceUpdate()},instanceRef:c.computed(()=>c.unref(o))}};function SU(e){const t=Object.keys(e.elements),n=ih(t.map(a=>[a,e.styles[a]||{}])),r=ih(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}function dS(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Qp(()=>n()),{registerTimeout:t,cancelTimeout:n}}const uv={prefix:Math.floor(Math.random()*1e4),current:0},AU=Symbol("elIdInjection"),fS=()=>c.getCurrentInstance()?c.inject(AU,uv):uv,mh=e=>{const t=fS();!kr&&t===uv&&yr("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
8
+ usage: app.provide(ID_INJECTION_KEY, {
9
+ prefix: number,
10
+ current: number,
11
+ })`);const n=ev();return c.computed(()=>c.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Lc=[];const pS=e=>{const t=e;t.key===kc.esc&&Lc.forEach(n=>n(t))},MU=e=>{c.onMounted(()=>{Lc.length===0&&document.addEventListener("keydown",pS),kr&&Lc.push(e)}),c.onBeforeUnmount(()=>{Lc=Lc.filter(t=>t!==e),Lc.length===0&&kr&&document.removeEventListener("keydown",pS)})};let hS;const mS=()=>{const e=ev(),t=fS(),n=c.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=c.computed(()=>`#${n.value}`);return{id:n,selector:r}},CU=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},OU=()=>{const{id:e,selector:t}=mS();return c.onBeforeMount(()=>{kr&&(process.env.NODE_ENV==="test"||!hS&&!document.body.querySelector(t.value))&&(hS=CU(e.value))}),{id:e,selector:t}},EU=Xn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),LU=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:o}=dS(),{registerTimeout:i,cancelTimeout:l}=dS();return{onOpen:d=>{o(()=>{r(d);const f=c.unref(n);Dn(f)&&f>0&&i(()=>{a(d)},f)},c.unref(e))},onClose:d=>{l(),o(()=>{a(d)},c.unref(t))}}},gS=Symbol("elForwardRef"),zU=e=>{const t=n=>{e.value=n};c.provide(gS,{setForwardRef:t})},FU=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),yS=c.ref(0),vS=2e3,bS=Symbol("zIndexContextKey"),xS=e=>{const t=e||(c.getCurrentInstance()?c.inject(bS,void 0):void 0),n=c.computed(()=>{const o=c.unref(t);return Dn(o)?o:vS}),r=c.computed(()=>n.value+yS.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(yS.value++,r.value)}};function IU(e){const t=c.ref();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:i}=e.value;if(a==null||o==null)return;const l=i.slice(0,Math.max(0,a)),s=i.slice(Math.max(0,o));t.value={selectionStart:a,selectionEnd:o,value:i,beforeTxt:l,afterTxt:s}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:l}=t.value;if(o==null||i==null||l==null)return;let s=a.length;if(a.endsWith(i))s=a.length-i.length;else if(a.startsWith(o))s=o.length;else{const u=o[l-1],d=a.indexOf(u,l-1);d!==-1&&(s=d+1)}e.value.setSelectionRange(s,s)}return[n,r]}const zc=sh({type:String,values:NT,required:!1}),wS=Symbol("size"),DU=()=>{const e=c.inject(wS,{});return c.computed(()=>c.unref(e.size)||"")};function _S(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const a=c.getCurrentInstance(),{emit:o}=a,i=c.shallowRef(),l=c.ref(!1),s=f=>{l.value||(l.value=!0,o("focus",f),t==null||t())},u=f=>{var p;ta(n)&&n(f)||f.relatedTarget&&((p=i.value)!=null&&p.contains(f.relatedTarget))||(l.value=!1,o("blur",f),r==null||r())},d=()=>{var f;(f=e.value)==null||f.focus()};return c.watch(i,f=>{f&&f.setAttribute("tabindex","-1")}),cl(i,"click",d),{wrapperRef:i,isFocused:l,handleFocus:s,handleBlur:u}}const kS=Symbol(),gh=c.ref();function dv(e,t=void 0){const n=c.getCurrentInstance()?c.inject(kS,gh):gh;return e?c.computed(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function PU(e,t){const n=dv(),r=Pn(e,c.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||uh})),a=ch(c.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),o=xS(c.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||vS})),i=c.computed(()=>{var l;return c.unref(t)||((l=n.value)==null?void 0:l.size)||""});return RU(c.computed(()=>c.unref(n)||{})),{ns:r,locale:a,zIndex:o,size:i}}const RU=(e,t,n=!1)=>{var r;const a=!!c.getCurrentInstance(),o=a?dv():void 0,i=(r=t==null?void 0:t.provide)!=null?r:a?c.provide:void 0;if(!i){yr("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=c.computed(()=>{const s=c.unref(e);return o!=null&&o.value?NU(o.value,s):s});return i(kS,l),i(VT,c.computed(()=>l.value.locale)),i(HT,c.computed(()=>l.value.namespace)),i(bS,c.computed(()=>l.value.zIndex)),i(wS,{size:c.computed(()=>l.value.size||"")}),(n||!gh.value)&&(gh.value=l.value),l},NU=(e,t)=>{var n;const r=[...new Set([...OT(e),...OT(t)])],a={};for(const o of r)a[o]=(n=t[o])!=null?n:e[o];return a};var jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const BU=Xn({size:{type:sn([Number,String])},color:{type:String}}),jU=c.defineComponent({name:"ElIcon",inheritAttrs:!1}),VU=c.defineComponent({...jU,props:BU,setup(e){const t=e,n=Pn("icon"),r=c.computed(()=>{const{size:a,color:o}=t;return!a&&!o?{}:{fontSize:wc(a)?void 0:Qy(a),"--color":o}});return(a,o)=>(c.openBlock(),c.createElementBlock("i",c.mergeProps({class:c.unref(n).b(),style:c.unref(r)},a.$attrs),[c.renderSlot(a.$slots,"default")],16))}});var HU=jn(VU,[["__file","icon.vue"]]);const Ra=mo(HU),fv=Symbol("formContextKey"),yh=Symbol("formItemContextKey"),Fc=(e,t={})=>{const n=c.ref(void 0),r=t.prop?n:qT("size"),a=t.global?n:DU(),o=t.form?{size:void 0}:c.inject(fv,void 0),i=t.formItem?{size:void 0}:c.inject(yh,void 0);return c.computed(()=>r.value||c.unref(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||a.value||"")},vh=e=>{const t=qT("disabled"),n=c.inject(fv,void 0);return c.computed(()=>t.value||c.unref(e)||(n==null?void 0:n.disabled)||!1)},Rd=()=>{const e=c.inject(fv,void 0),t=c.inject(yh,void 0);return{form:e,formItem:t}},pv=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=c.ref(!1)),r||(r=c.ref(!1));const a=c.ref();let o;const i=c.computed(()=>{var l;return!!(!e.label&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return c.onMounted(()=>{o=c.watch([c.toRef(e,"id"),n],([l,s])=>{const u=l??(s?void 0:mh().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!s&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),c.onUnmounted(()=>{o&&o(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:i,inputId:a}};let yo;const UU=`
12
+ height:0 !important;
13
+ visibility:hidden !important;
14
+ ${n7()?"":"overflow:hidden !important;"}
15
+ position:absolute !important;
16
+ z-index:-1000 !important;
17
+ top:0 !important;
18
+ right:0 !important;
19
+ `,qU=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function WU(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:qU.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function TS(e,t=1,n){var r;yo||(yo=document.createElement("textarea"),document.body.appendChild(yo));const{paddingSize:a,borderSize:o,boxSizing:i,contextStyle:l}=WU(e);yo.setAttribute("style",`${l};${UU}`),yo.value=e.value||e.placeholder||"";let s=yo.scrollHeight;const u={};i==="border-box"?s=s+o:i==="content-box"&&(s=s-a),yo.value="";const d=yo.scrollHeight-a;if(Dn(t)){let f=d*t;i==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(Dn(n)){let f=d*n;i==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(r=yo.parentNode)==null||r.removeChild(yo),yo=void 0,u}const GU=Xn({id:{type:String,default:void 0},size:zc,disabled:Boolean,modelValue:{type:sn([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:sn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:_c},prefixIcon:{type:_c},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:sn([Object,Array,String]),default:()=>dH({})},autofocus:{type:Boolean,default:!1}}),ZU={[rr]:e=>na(e),input:e=>na(e),change:e=>na(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},KU=["role"],YU=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],JU=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],QU=c.defineComponent({name:"ElInput",inheritAttrs:!1}),XU=c.defineComponent({...QU,props:GU,emits:ZU,setup(e,{expose:t,emit:n}){const r=e,a=c.useAttrs(),o=c.useSlots(),i=c.computed(()=>{const we={};return r.containerRole==="combobox"&&(we["aria-haspopup"]=a["aria-haspopup"],we["aria-owns"]=a["aria-owns"],we["aria-expanded"]=a["aria-expanded"]),we}),l=c.computed(()=>[r.type==="textarea"?b.b():y.b(),y.m(g.value),y.is("disabled",h.value),y.is("exceed",ne.value),{[y.b("group")]:o.prepend||o.append,[y.bm("group","append")]:o.append,[y.bm("group","prepend")]:o.prepend,[y.m("prefix")]:o.prefix||r.prefixIcon,[y.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[y.bm("suffix","password-clear")]:H.value&&j.value},a.class]),s=c.computed(()=>[y.e("wrapper"),y.is("focus",F.value)]),u=hH({excludeKeys:c.computed(()=>Object.keys(i.value))}),{form:d,formItem:f}=Rd(),{inputId:p}=pv(r,{formItemContext:f}),g=Fc(),h=vh(),y=Pn("input"),b=Pn("textarea"),v=c.shallowRef(),x=c.shallowRef(),k=c.ref(!1),_=c.ref(!1),S=c.ref(!1),T=c.ref(),C=c.shallowRef(r.inputStyle),A=c.computed(()=>v.value||x.value),{wrapperRef:O,isFocused:F,handleFocus:R,handleBlur:N}=_S(A,{afterBlur(){var we;r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"blur").catch(Re=>yr(Re)))}}),B=c.computed(()=>{var we;return(we=d==null?void 0:d.statusIcon)!=null?we:!1}),V=c.computed(()=>(f==null?void 0:f.validateState)||""),Z=c.computed(()=>V.value&&RT[V.value]),G=c.computed(()=>S.value?cH:nH),I=c.computed(()=>[a.style]),P=c.computed(()=>[r.inputStyle,C.value,{resize:r.resize}]),z=c.computed(()=>zi(r.modelValue)?"":String(r.modelValue)),H=c.computed(()=>r.clearable&&!h.value&&!r.readonly&&!!z.value&&(F.value||k.value)),j=c.computed(()=>r.showPassword&&!h.value&&!r.readonly&&!!z.value&&(!!z.value||F.value)),q=c.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),$=c.computed(()=>z.value.length),ne=c.computed(()=>!!q.value&&$.value>Number(r.maxlength)),te=c.computed(()=>!!o.suffix||!!r.suffixIcon||H.value||r.showPassword||q.value||!!V.value&&B.value),[ee,se]=IU(v);Ai(x,we=>{if(J(),!q.value||r.resize!=="both")return;const Re=we[0],{width:Je}=Re.contentRect;T.value={right:`calc(100% - ${Je+15+6}px)`}});const U=()=>{const{type:we,autosize:Re}=r;if(!(!kr||we!=="textarea"||!x.value))if(Re){const Je=ra(Re)?Re.minRows:void 0,it=ra(Re)?Re.maxRows:void 0,dt=TS(x.value,Je,it);C.value={overflowY:"hidden",...dt},c.nextTick(()=>{x.value.offsetHeight,C.value=dt})}else C.value={minHeight:TS(x.value).minHeight}},J=(we=>{let Re=!1;return()=>{var Je;if(Re||!r.autosize)return;((Je=x.value)==null?void 0:Je.offsetParent)===null||(we(),Re=!0)}})(U),re=()=>{const we=A.value,Re=r.formatter?r.formatter(z.value):z.value;!we||we.value===Re||(we.value=Re)},oe=async we=>{ee();let{value:Re}=we.target;if(r.formatter&&(Re=r.parser?r.parser(Re):Re),!_.value){if(Re===z.value){re();return}n(rr,Re),n("input",Re),await c.nextTick(),re(),se()}},he=we=>{n("change",we.target.value)},ve=we=>{n("compositionstart",we),_.value=!0},ge=we=>{var Re;n("compositionupdate",we);const Je=(Re=we.target)==null?void 0:Re.value,it=Je[Je.length-1]||"";_.value=!BT(it)},xe=we=>{n("compositionend",we),_.value&&(_.value=!1,oe(we))},Le=()=>{S.value=!S.value,Ue()},Ue=async()=>{var we;await c.nextTick(),(we=A.value)==null||we.focus()},Pe=()=>{var we;return(we=A.value)==null?void 0:we.blur()},De=we=>{k.value=!1,n("mouseleave",we)},je=we=>{k.value=!0,n("mouseenter",we)},qe=we=>{n("keydown",we)},Ee=()=>{var we;(we=A.value)==null||we.select()},_e=()=>{n(rr,""),n("change",""),n("clear"),n("input","")};return c.watch(()=>r.modelValue,()=>{var we;c.nextTick(()=>U()),r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"change").catch(Re=>yr(Re)))}),c.watch(z,()=>re()),c.watch(()=>r.type,async()=>{await c.nextTick(),re(),U()}),c.onMounted(()=>{!r.formatter&&r.parser&&yr("ElInput","If you set the parser, you also need to set the formatter."),re(),c.nextTick(U)}),t({input:v,textarea:x,ref:A,textareaStyle:P,autosize:c.toRef(r,"autosize"),focus:Ue,blur:Pe,select:Ee,clear:_e,resizeTextarea:U}),(we,Re)=>c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps(c.unref(i),{class:c.unref(l),style:c.unref(I),role:we.containerRole,onMouseenter:je,onMouseleave:De}),[c.createCommentVNode(" input "),we.type!=="textarea"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createCommentVNode(" prepend slot "),we.$slots.prepend?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(y).be("group","prepend"))},[c.renderSlot(we.$slots,"prepend")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref_key:"wrapperRef",ref:O,class:c.normalizeClass(c.unref(s))},[c.createCommentVNode(" prefix slot "),we.$slots.prefix||we.prefixIcon?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(y).e("prefix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(y).e("prefix-inner"))},[c.renderSlot(we.$slots,"prefix"),we.prefixIcon?(c.openBlock(),c.createBlock(c.unref(Ra),{key:0,class:c.normalizeClass(c.unref(y).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(we.prefixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("input",c.mergeProps({id:c.unref(p),ref_key:"input",ref:v,class:c.unref(y).e("inner")},c.unref(u),{minlength:we.minlength,maxlength:we.maxlength,type:we.showPassword?S.value?"text":"password":we.type,disabled:c.unref(h),readonly:we.readonly,autocomplete:we.autocomplete,tabindex:we.tabindex,"aria-label":we.label,placeholder:we.placeholder,style:we.inputStyle,form:we.form,autofocus:we.autofocus,onCompositionstart:ve,onCompositionupdate:ge,onCompositionend:xe,onInput:oe,onFocus:Re[0]||(Re[0]=(...Je)=>c.unref(R)&&c.unref(R)(...Je)),onBlur:Re[1]||(Re[1]=(...Je)=>c.unref(N)&&c.unref(N)(...Je)),onChange:he,onKeydown:qe}),null,16,YU),c.createCommentVNode(" suffix slot "),c.unref(te)?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(c.unref(y).e("suffix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(y).e("suffix-inner"))},[!c.unref(H)||!c.unref(j)||!c.unref(q)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.renderSlot(we.$slots,"suffix"),we.suffixIcon?(c.openBlock(),c.createBlock(c.unref(Ra),{key:0,class:c.normalizeClass(c.unref(y).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(we.suffixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],64)):c.createCommentVNode("v-if",!0),c.unref(H)?(c.openBlock(),c.createBlock(c.unref(Ra),{key:1,class:c.normalizeClass([c.unref(y).e("icon"),c.unref(y).e("clear")]),onMousedown:c.withModifiers(c.unref(_d),["prevent"]),onClick:_e},{default:c.withCtx(()=>[c.createVNode(c.unref(Xy))]),_:1},8,["class","onMousedown"])):c.createCommentVNode("v-if",!0),c.unref(j)?(c.openBlock(),c.createBlock(c.unref(Ra),{key:2,class:c.normalizeClass([c.unref(y).e("icon"),c.unref(y).e("password")]),onClick:Le},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(G))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),c.unref(q)?(c.openBlock(),c.createElementBlock("span",{key:3,class:c.normalizeClass(c.unref(y).e("count"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(y).e("count-inner"))},c.toDisplayString(c.unref($))+" / "+c.toDisplayString(we.maxlength),3)],2)):c.createCommentVNode("v-if",!0),c.unref(V)&&c.unref(Z)&&c.unref(B)?(c.openBlock(),c.createBlock(c.unref(Ra),{key:4,class:c.normalizeClass([c.unref(y).e("icon"),c.unref(y).e("validateIcon"),c.unref(y).is("loading",c.unref(V)==="validating")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(Z))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0)],2),c.createCommentVNode(" append slot "),we.$slots.append?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(c.unref(y).be("group","append"))},[c.renderSlot(we.$slots,"append")],2)):c.createCommentVNode("v-if",!0)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createCommentVNode(" textarea "),c.createElementVNode("textarea",c.mergeProps({id:c.unref(p),ref_key:"textarea",ref:x,class:c.unref(b).e("inner")},c.unref(u),{minlength:we.minlength,maxlength:we.maxlength,tabindex:we.tabindex,disabled:c.unref(h),readonly:we.readonly,autocomplete:we.autocomplete,style:c.unref(P),"aria-label":we.label,placeholder:we.placeholder,form:we.form,autofocus:we.autofocus,onCompositionstart:ve,onCompositionupdate:ge,onCompositionend:xe,onInput:oe,onFocus:Re[2]||(Re[2]=(...Je)=>c.unref(R)&&c.unref(R)(...Je)),onBlur:Re[3]||(Re[3]=(...Je)=>c.unref(N)&&c.unref(N)(...Je)),onChange:he,onKeydown:qe}),null,16,JU),c.unref(q)?(c.openBlock(),c.createElementBlock("span",{key:0,style:c.normalizeStyle(T.value),class:c.normalizeClass(c.unref(y).e("count"))},c.toDisplayString(c.unref($))+" / "+c.toDisplayString(we.maxlength),7)):c.createCommentVNode("v-if",!0)],64))],16,KU)),[[c.vShow,we.type!=="hidden"]])}});var $U=jn(XU,[["__file","input.vue"]]);const SS=mo($U),Ic=4,eq={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},tq=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),AS=Symbol("scrollbarContextKey"),nq=Xn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),rq="Thumb";var MS=jn(c.defineComponent({__name:"thumb",props:nq,setup(e){const t=e,n=c.inject(AS),r=Pn("scrollbar");n||Jy(rq,"can not inject scrollbar context");const a=c.ref(),o=c.ref(),i=c.ref({}),l=c.ref(!1);let s=!1,u=!1,d=kr?document.onselectstart:null;const f=c.computed(()=>eq[t.vertical?"vertical":"horizontal"]),p=c.computed(()=>tq({size:t.size,move:t.move,bar:f.value})),g=c.computed(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/o.value[f.value.offset]),h=T=>{var C;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(C=window.getSelection())==null||C.removeAllRanges(),b(T);const A=T.currentTarget;A&&(i.value[f.value.axis]=A[f.value.offset]-(T[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},y=T=>{if(!o.value||!a.value||!n.wrapElement)return;const C=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),A=o.value[f.value.offset]/2,O=(C-A)*100*g.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=O*n.wrapElement[f.value.scrollSize]/100},b=T=>{T.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},v=T=>{if(!a.value||!o.value||s===!1)return;const C=i.value[f.value.axis];if(!C)return;const A=(a.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,O=o.value[f.value.offset]-C,F=(A-O)*100*g.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=F*n.wrapElement[f.value.scrollSize]/100},x=()=>{s=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",x),S(),u&&(l.value=!1)},k=()=>{u=!1,l.value=!!t.size},_=()=>{u=!0,l.value=s};c.onBeforeUnmount(()=>{S(),document.removeEventListener("mouseup",x)});const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return cl(c.toRef(n,"scrollbarElement"),"mousemove",k),cl(c.toRef(n,"scrollbarElement"),"mouseleave",_),(T,C)=>(c.openBlock(),c.createBlock(c.Transition,{name:c.unref(r).b("fade"),persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{ref_key:"instance",ref:a,class:c.normalizeClass([c.unref(r).e("bar"),c.unref(r).is(c.unref(f).key)]),onMousedown:y},[c.createElementVNode("div",{ref_key:"thumb",ref:o,class:c.normalizeClass(c.unref(r).e("thumb")),style:c.normalizeStyle(c.unref(p)),onMousedown:h},null,38)],34),[[c.vShow,T.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const aq=Xn({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var oq=jn(c.defineComponent({__name:"bar",props:aq,setup(e,{expose:t}){const n=e,r=c.ref(0),a=c.ref(0);return t({handleScroll:i=>{if(i){const l=i.offsetHeight-Ic,s=i.offsetWidth-Ic;a.value=i.scrollTop*100/l*n.ratioY,r.value=i.scrollLeft*100/s*n.ratioX}}}),(i,l)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(MS,{move:r.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),c.createVNode(MS,{move:a.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const iq=Xn({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:sn([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),lq={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Dn)},hv="ElScrollbar",sq=c.defineComponent({name:hv}),cq=c.defineComponent({...sq,props:iq,emits:lq,setup(e,{expose:t,emit:n}){const r=e,a=Pn("scrollbar");let o,i;const l=c.ref(),s=c.ref(),u=c.ref(),d=c.ref("0"),f=c.ref("0"),p=c.ref(),g=c.ref(1),h=c.ref(1),y=c.computed(()=>{const C={};return r.height&&(C.height=Qy(r.height)),r.maxHeight&&(C.maxHeight=Qy(r.maxHeight)),[r.wrapStyle,C]}),b=c.computed(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),v=c.computed(()=>[a.e("view"),r.viewClass]),x=()=>{var C;s.value&&((C=p.value)==null||C.handleScroll(s.value),n("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};function k(C,A){ra(C)?s.value.scrollTo(C):Dn(C)&&Dn(A)&&s.value.scrollTo(C,A)}const _=C=>{if(!Dn(C)){yr(hv,"value must be a number");return}s.value.scrollTop=C},S=C=>{if(!Dn(C)){yr(hv,"value must be a number");return}s.value.scrollLeft=C},T=()=>{if(!s.value)return;const C=s.value.offsetHeight-Ic,A=s.value.offsetWidth-Ic,O=C**2/s.value.scrollHeight,F=A**2/s.value.scrollWidth,R=Math.max(O,r.minSize),N=Math.max(F,r.minSize);g.value=O/(C-O)/(R/(C-R)),h.value=F/(A-F)/(N/(A-N)),f.value=R+Ic<C?`${R}px`:"",d.value=N+Ic<A?`${N}px`:""};return c.watch(()=>r.noresize,C=>{C?(o==null||o(),i==null||i()):({stop:o}=Ai(u,T),i=cl("resize",T))},{immediate:!0}),c.watch(()=>[r.maxHeight,r.height],()=>{r.native||c.nextTick(()=>{var C;T(),s.value&&((C=p.value)==null||C.handleScroll(s.value))})}),c.provide(AS,c.reactive({scrollbarElement:l,wrapElement:s})),c.onMounted(()=>{r.native||c.nextTick(()=>{T()})}),c.onUpdated(()=>T()),t({wrapRef:s,update:T,scrollTo:k,setScrollTop:_,setScrollLeft:S,handleScroll:x}),(C,A)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"scrollbarRef",ref:l,class:c.normalizeClass(c.unref(a).b())},[c.createElementVNode("div",{ref_key:"wrapRef",ref:s,class:c.normalizeClass(c.unref(b)),style:c.normalizeStyle(c.unref(y)),onScroll:x},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(C.tag),{id:C.id,ref_key:"resizeRef",ref:u,class:c.normalizeClass(c.unref(v)),style:c.normalizeStyle(C.viewStyle),role:C.role,"aria-label":C.ariaLabel,"aria-orientation":C.ariaOrientation},{default:c.withCtx(()=>[c.renderSlot(C.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),C.native?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(oq,{key:0,ref_key:"barRef",ref:p,height:f.value,width:d.value,always:C.always,"ratio-x":h.value,"ratio-y":g.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var uq=jn(cq,[["__file","scrollbar.vue"]]);const dq=mo(uq),mv=Symbol("popper"),CS=Symbol("popperContent"),OS=Xn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),fq=c.defineComponent({name:"ElPopper",inheritAttrs:!1}),pq=c.defineComponent({...fq,props:OS,setup(e,{expose:t}){const n=e,r=c.ref(),a=c.ref(),o=c.ref(),i=c.ref(),l=c.computed(()=>n.role),s={triggerRef:r,popperInstanceRef:a,contentRef:o,referenceRef:i,role:l};return t(s),c.provide(mv,s),(u,d)=>c.renderSlot(u.$slots,"default")}});var hq=jn(pq,[["__file","popper.vue"]]);const ES=Xn({arrowOffset:{type:Number,default:5}}),mq=c.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),gq=c.defineComponent({...mq,props:ES,setup(e,{expose:t}){const n=e,r=Pn("popper"),{arrowOffset:a,arrowRef:o,arrowStyle:i}=c.inject(CS,void 0);return c.watch(()=>n.arrowOffset,l=>{a.value=l}),c.onBeforeUnmount(()=>{o.value=void 0}),t({arrowRef:o}),(l,s)=>(c.openBlock(),c.createElementBlock("span",{ref_key:"arrowRef",ref:o,class:c.normalizeClass(c.unref(r).e("arrow")),style:c.normalizeStyle(c.unref(i)),"data-popper-arrow":""},null,6))}});var yq=jn(gq,[["__file","arrow.vue"]]);const gv="ElOnlyChild",vq=c.defineComponent({name:gv,setup(e,{slots:t,attrs:n}){var r;const a=c.inject(gS),o=FU((r=a==null?void 0:a.setForwardRef)!=null?r:_d);return()=>{var i;const l=(i=t.default)==null?void 0:i.call(t,n);if(!l)return null;if(l.length>1)return yr(gv,"requires exact only one valid child."),null;const s=LS(l);return s?c.withDirectives(c.cloneVNode(s,n),[[o]]):(yr(gv,"no valid child node found"),null)}}});function LS(e){if(!e)return null;const t=e;for(const n of t){if(ra(n))switch(n.type){case c.Comment:continue;case c.Text:case"svg":return zS(n);case c.Fragment:return LS(n.children);default:return n}return zS(n)}return null}function zS(e){const t=Pn("only-child");return c.createVNode("span",{class:t.e("content")},[e])}const FS=Xn({virtualRef:{type:sn(Object)},virtualTriggering:Boolean,onMouseenter:{type:sn(Function)},onMouseleave:{type:sn(Function)},onClick:{type:sn(Function)},onKeydown:{type:sn(Function)},onFocus:{type:sn(Function)},onBlur:{type:sn(Function)},onContextmenu:{type:sn(Function)},id:String,open:Boolean}),bq=c.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),xq=c.defineComponent({...bq,props:FS,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=c.inject(mv,void 0);zU(a);const o=c.computed(()=>l.value?n.id:void 0),i=c.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=c.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),s=c.computed(()=>l.value?`${n.open}`:void 0);let u;return c.onMounted(()=>{c.watch(()=>n.virtualRef,d=>{d&&(a.value=Si(d))},{immediate:!0}),c.watch(a,(d,f)=>{u==null||u(),u=void 0,Cd(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var g;const h=n[p];h&&(d.addEventListener(p.slice(2).toLowerCase(),h),(g=f==null?void 0:f.removeEventListener)==null||g.call(f,p.slice(2).toLowerCase(),h))}),u=c.watch([o,i,l,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,h)=>{zi(p[h])?d.removeAttribute(g):d.setAttribute(g,p[h])})},{immediate:!0})),Cd(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>f.removeAttribute(p))},{immediate:!0})}),c.onBeforeUnmount(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(d,f)=>d.virtualTriggering?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(c.unref(vq),c.mergeProps({key:0},d.$attrs,{"aria-controls":c.unref(o),"aria-describedby":c.unref(i),"aria-expanded":c.unref(s),"aria-haspopup":c.unref(l)}),{default:c.withCtx(()=>[c.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var wq=jn(xq,[["__file","trigger.vue"]]);const yv="focus-trap.focus-after-trapped",vv="focus-trap.focus-after-released",_q="focus-trap.focusout-prevented",IS={cancelable:!0,bubbles:!1},kq={cancelable:!0,bubbles:!1},DS="focusAfterTrapped",PS="focusAfterReleased",Tq=Symbol("elFocusTrap"),bv=c.ref(),bh=c.ref(0),xv=c.ref(0);let xh=0;const RS=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},NS=(e,t)=>{for(const n of e)if(!Sq(n,t))return n},Sq=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Aq=e=>{const t=RS(e),n=NS(t,e),r=NS(t.reverse(),e);return[n,r]},Mq=e=>e instanceof HTMLInputElement&&"select"in e,fl=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),xv.value=window.performance.now(),e!==n&&Mq(e)&&t&&e.select()}};function BS(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Cq=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=BS(e,r),e.unshift(r)},remove:r=>{var a,o;e=BS(e,r),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},Oq=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(fl(r,t),document.activeElement!==n)return},jS=Cq(),Eq=()=>bh.value>xv.value,wh=()=>{bv.value="pointer",bh.value=window.performance.now()},VS=()=>{bv.value="keyboard",bh.value=window.performance.now()},Lq=()=>(c.onMounted(()=>{xh===0&&(document.addEventListener("mousedown",wh),document.addEventListener("touchstart",wh),document.addEventListener("keydown",VS)),xh++}),c.onBeforeUnmount(()=>{xh--,xh<=0&&(document.removeEventListener("mousedown",wh),document.removeEventListener("touchstart",wh),document.removeEventListener("keydown",VS))}),{focusReason:bv,lastUserFocusTimestamp:bh,lastAutomatedFocusTimestamp:xv}),_h=e=>new CustomEvent(_q,{...kq,detail:e}),zq=c.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[DS,PS,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=c.ref();let r,a;const{focusReason:o}=Lq();MU(h=>{e.trapped&&!i.paused&&t("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:y,altKey:b,ctrlKey:v,metaKey:x,currentTarget:k,shiftKey:_}=h,{loop:S}=e,T=y===kc.tab&&!b&&!v&&!x,C=document.activeElement;if(T&&C){const A=k,[O,F]=Aq(A);if(O&&F){if(!_&&C===F){const N=_h({focusReason:o.value});t("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),S&&fl(O,!0))}else if(_&&[O,A].includes(C)){const N=_h({focusReason:o.value});t("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),S&&fl(F,!0))}}else if(C===A){const N=_h({focusReason:o.value});t("focusout-prevented",N),N.defaultPrevented||h.preventDefault()}}};c.provide(Tq,{focusTrapRef:n,onKeydown:l}),c.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),c.watch([n],([h],[y])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",d),h.addEventListener("focusout",f)),y&&(y.removeEventListener("keydown",l),y.removeEventListener("focusin",d),y.removeEventListener("focusout",f))});const s=h=>{t(DS,h)},u=h=>t(PS,h),d=h=>{const y=c.unref(n);if(!y)return;const b=h.target,v=h.relatedTarget,x=b&&y.contains(b);e.trapped||v&&y.contains(v)||(r=v),x&&t("focusin",h),!i.paused&&e.trapped&&(x?a=b:fl(a,!0))},f=h=>{const y=c.unref(n);if(!(i.paused||!y))if(e.trapped){const b=h.relatedTarget;!zi(b)&&!y.contains(b)&&setTimeout(()=>{if(!i.paused&&e.trapped){const v=_h({focusReason:o.value});t("focusout-prevented",v),v.defaultPrevented||fl(a,!0)}},0)}else{const b=h.target;b&&y.contains(b)||t("focusout",h)}};async function p(){await c.nextTick();const h=c.unref(n);if(h){jS.push(i);const y=h.contains(document.activeElement)?r:document.activeElement;if(r=y,!h.contains(y)){const v=new Event(yv,IS);h.addEventListener(yv,s),h.dispatchEvent(v),v.defaultPrevented||c.nextTick(()=>{let x=e.focusStartEl;na(x)||(fl(x),document.activeElement!==x&&(x="first")),x==="first"&&Oq(RS(h),!0),(document.activeElement===y||x==="container")&&fl(h)})}}}function g(){const h=c.unref(n);if(h){h.removeEventListener(yv,s);const y=new CustomEvent(vv,{...IS,detail:{focusReason:o.value}});h.addEventListener(vv,u),h.dispatchEvent(y),!y.defaultPrevented&&(o.value=="keyboard"||!Eq()||h.contains(document.activeElement))&&fl(r??document.body),h.removeEventListener(vv,u),jS.remove(i)}}return c.onMounted(()=>{e.trapped&&p(),c.watch(()=>e.trapped,h=>{h?p():g()})}),c.onBeforeUnmount(()=>{e.trapped&&g()}),{onKeydown:l}}});function Fq(e,t,n,r,a,o){return c.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Iq=jn(zq,[["render",Fq],["__file","focus-trap.vue"]]);const Dq=["fixed","absolute"],Pq=Xn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:sn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ac,default:"bottom"},popperOptions:{type:sn(Object),default:()=>({})},strategy:{type:String,values:Dq,default:"absolute"}}),HS=Xn({...Pq,id:String,style:{type:sn([String,Array,Object])},className:{type:sn([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:sn([String,Array,Object])},popperStyle:{type:sn([String,Array,Object])},referenceEl:{type:sn(Object)},triggerTargetEl:{type:sn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Rq={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Nq=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,o={placement:n,strategy:r,...a,modifiers:[...jq(e),...t]};return Vq(o,a==null?void 0:a.modifiers),o},Bq=e=>{if(kr)return Si(e)};function jq(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Vq(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Hq=0,Uq=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=c.inject(mv,void 0),o=c.ref(),i=c.ref(),l=c.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=c.computed(()=>{var v;const x=c.unref(o),k=(v=c.unref(i))!=null?v:Hq;return{name:"arrow",enabled:!UV(x),options:{element:x,padding:k}}}),u=c.computed(()=>({onFirstUpdate:()=>{h()},...Nq(e,[c.unref(s),c.unref(l)])})),d=c.computed(()=>Bq(e.referenceEl)||c.unref(r)),{attributes:f,state:p,styles:g,update:h,forceUpdate:y,instanceRef:b}=TU(d,n,u);return c.watch(b,v=>t.value=v),c.onMounted(()=>{c.watch(()=>{var v;return(v=c.unref(d))==null?void 0:v.getBoundingClientRect()},()=>{h()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:b,state:p,styles:g,role:a,forceUpdate:y,update:h}},qq=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=xS(),o=Pn("popper"),i=c.computed(()=>c.unref(t).popper),l=c.ref(Dn(e.zIndex)?e.zIndex:a()),s=c.computed(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=c.computed(()=>[{zIndex:c.unref(l)},c.unref(n).popper,e.popperStyle||{}]),d=c.computed(()=>r.value==="dialog"?"false":void 0),f=c.computed(()=>c.unref(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:i,contentClass:s,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=Dn(e.zIndex)?e.zIndex:a()}}},Wq=(e,t)=>{const n=c.ref(!1),r=c.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Gq=c.defineComponent({name:"ElPopperContent"}),Zq=c.defineComponent({...Gq,props:HS,emits:Rq,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:o,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:s,onFocusoutPrevented:u,onReleaseRequested:d}=Wq(r,n),{attributes:f,arrowRef:p,contentRef:g,styles:h,instanceRef:y,role:b,update:v}=Uq(r),{ariaModal:x,arrowStyle:k,contentAttrs:_,contentClass:S,contentStyle:T,updateZIndex:C}=qq(r,{styles:h,attributes:f,role:b}),A=c.inject(yh,void 0),O=c.ref();c.provide(CS,{arrowStyle:k,arrowRef:p,arrowOffset:O}),A&&(A.addInputId||A.removeInputId)&&c.provide(yh,{...A,addInputId:_d,removeInputId:_d});let F;const R=(B=!0)=>{v(),B&&C()},N=()=>{R(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return c.onMounted(()=>{c.watch(()=>r.triggerTargetEl,(B,V)=>{F==null||F(),F=void 0;const Z=c.unref(B||g.value),G=c.unref(V||g.value);Cd(Z)&&(F=c.watch([b,()=>r.ariaLabel,x,()=>r.id],I=>{["role","aria-label","aria-modal","id"].forEach((P,z)=>{zi(I[z])?Z.removeAttribute(P):Z.setAttribute(P,I[z])})},{immediate:!0})),G!==Z&&Cd(G)&&["role","aria-label","aria-modal","id"].forEach(I=>{G.removeAttribute(I)})},{immediate:!0}),c.watch(()=>r.visible,N,{immediate:!0})}),c.onBeforeUnmount(()=>{F==null||F(),F=void 0}),t({popperContentRef:g,popperInstanceRef:y,updatePopper:R,contentStyle:T}),(B,V)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps({ref_key:"contentRef",ref:g},c.unref(_),{style:c.unref(T),class:c.unref(S),tabindex:"-1",onMouseenter:V[0]||(V[0]=Z=>B.$emit("mouseenter",Z)),onMouseleave:V[1]||(V[1]=Z=>B.$emit("mouseleave",Z))}),[c.createVNode(c.unref(Iq),{trapped:c.unref(o),"trap-on-focus-in":!0,"focus-trap-el":c.unref(g),"focus-start-el":c.unref(a),onFocusAfterTrapped:c.unref(l),onFocusAfterReleased:c.unref(i),onFocusin:c.unref(s),onFocusoutPrevented:c.unref(u),onReleaseRequested:c.unref(d)},{default:c.withCtx(()=>[c.renderSlot(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Kq=jn(Zq,[["__file","content.vue"]]);const Yq=mo(hq),wv=Symbol("elTooltip"),_v=Xn({...EU,...HS,appendTo:{type:sn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:sn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),US=Xn({...FS,disabled:Boolean,trigger:{type:sn([String,Array]),default:"hover"},triggerKeys:{type:sn(Array),default:()=>[kc.enter,kc.space]}}),{useModelToggleProps:Jq,useModelToggleEmits:Qq,useModelToggle:Xq}=UT("visible"),$q=Xn({...OS,...Jq,..._v,...US,...ES,showArrow:{type:Boolean,default:!0}}),eW=[...Qq,"before-show","before-hide","show","hide","open","close"],tW=(e,t)=>Fa(e)?e.includes(t):e===t,Dc=(e,t,n)=>r=>{tW(c.unref(e),t)&&n(r)},nW=c.defineComponent({name:"ElTooltipTrigger"}),rW=c.defineComponent({...nW,props:US,setup(e,{expose:t}){const n=e,r=Pn("tooltip"),{controlled:a,id:o,open:i,onOpen:l,onClose:s,onToggle:u}=c.inject(wv,void 0),d=c.ref(null),f=()=>{if(c.unref(a)||n.disabled)return!0},p=c.toRef(n,"trigger"),g=Ti(f,Dc(p,"hover",l)),h=Ti(f,Dc(p,"hover",s)),y=Ti(f,Dc(p,"click",_=>{_.button===0&&u(_)})),b=Ti(f,Dc(p,"focus",l)),v=Ti(f,Dc(p,"focus",s)),x=Ti(f,Dc(p,"contextmenu",_=>{_.preventDefault(),u(_)})),k=Ti(f,_=>{const{code:S}=_;n.triggerKeys.includes(S)&&(_.preventDefault(),u(_))});return t({triggerRef:d}),(_,S)=>(c.openBlock(),c.createBlock(c.unref(wq),{id:c.unref(o),"virtual-ref":_.virtualRef,open:c.unref(i),"virtual-triggering":_.virtualTriggering,class:c.normalizeClass(c.unref(r).e("trigger")),onBlur:c.unref(v),onClick:c.unref(y),onContextmenu:c.unref(x),onFocus:c.unref(b),onMouseenter:c.unref(g),onMouseleave:c.unref(h),onKeydown:c.unref(k)},{default:c.withCtx(()=>[c.renderSlot(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var aW=jn(rW,[["__file","trigger.vue"]]);const oW=c.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),iW=c.defineComponent({...oW,props:_v,setup(e,{expose:t}){const n=e,{selector:r}=mS(),a=Pn("tooltip"),o=c.ref(null),i=c.ref(!1),{controlled:l,id:s,open:u,trigger:d,onClose:f,onOpen:p,onShow:g,onHide:h,onBeforeShow:y,onBeforeHide:b}=c.inject(wv,void 0),v=c.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),x=c.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);c.onBeforeUnmount(()=>{i.value=!0});const k=c.computed(()=>c.unref(x)?!0:c.unref(u)),_=c.computed(()=>n.disabled?!1:c.unref(u)),S=c.computed(()=>n.appendTo||r.value),T=c.computed(()=>{var I;return(I=n.style)!=null?I:{}}),C=c.computed(()=>!c.unref(u)),A=()=>{h()},O=()=>{if(c.unref(l))return!0},F=Ti(O,()=>{n.enterable&&c.unref(d)==="hover"&&p()}),R=Ti(O,()=>{c.unref(d)==="hover"&&f()}),N=()=>{var I,P;(P=(I=o.value)==null?void 0:I.updatePopper)==null||P.call(I),y==null||y()},B=()=>{b==null||b()},V=()=>{g(),G=qN(c.computed(()=>{var I;return(I=o.value)==null?void 0:I.popperContentRef}),()=>{if(c.unref(l))return;c.unref(d)!=="hover"&&f()})},Z=()=>{n.virtualTriggering||f()};let G;return c.watch(()=>c.unref(u),I=>{I||G==null||G()},{flush:"post"}),c.watch(()=>n.content,()=>{var I,P;(P=(I=o.value)==null?void 0:I.updatePopper)==null||P.call(I)}),t({contentRef:o}),(I,P)=>(c.openBlock(),c.createBlock(c.Teleport,{disabled:!I.teleported,to:c.unref(S)},[c.createVNode(c.Transition,{name:c.unref(v),onAfterLeave:A,onBeforeEnter:N,onAfterEnter:V,onBeforeLeave:B},{default:c.withCtx(()=>[c.unref(k)?c.withDirectives((c.openBlock(),c.createBlock(c.unref(Kq),c.mergeProps({key:0,id:c.unref(s),ref_key:"contentRef",ref:o},I.$attrs,{"aria-label":I.ariaLabel,"aria-hidden":c.unref(C),"boundaries-padding":I.boundariesPadding,"fallback-placements":I.fallbackPlacements,"gpu-acceleration":I.gpuAcceleration,offset:I.offset,placement:I.placement,"popper-options":I.popperOptions,strategy:I.strategy,effect:I.effect,enterable:I.enterable,pure:I.pure,"popper-class":I.popperClass,"popper-style":[I.popperStyle,c.unref(T)],"reference-el":I.referenceEl,"trigger-target-el":I.triggerTargetEl,visible:c.unref(_),"z-index":I.zIndex,onMouseenter:c.unref(F),onMouseleave:c.unref(R),onBlur:Z,onClose:c.unref(f)}),{default:c.withCtx(()=>[i.value?c.createCommentVNode("v-if",!0):c.renderSlot(I.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[c.vShow,c.unref(_)]]):c.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var lW=jn(iW,[["__file","content.vue"]]);const sW=["innerHTML"],cW={key:1},uW=c.defineComponent({name:"ElTooltip"}),dW=c.defineComponent({...uW,props:$q,emits:eW,setup(e,{expose:t,emit:n}){const r=e;OU();const a=mh(),o=c.ref(),i=c.ref(),l=()=>{var v;const x=c.unref(o);x&&((v=x.popperInstanceRef)==null||v.update())},s=c.ref(!1),u=c.ref(),{show:d,hide:f,hasUpdateHandler:p}=Xq({indicator:s,toggleReason:u}),{onOpen:g,onClose:h}=LU({showAfter:c.toRef(r,"showAfter"),hideAfter:c.toRef(r,"hideAfter"),autoClose:c.toRef(r,"autoClose"),open:d,close:f}),y=c.computed(()=>CT(r.visible)&&!p.value);c.provide(wv,{controlled:y,id:a,open:c.readonly(s),trigger:c.toRef(r,"trigger"),onOpen:v=>{g(v)},onClose:v=>{h(v)},onToggle:v=>{c.unref(s)?h(v):g(v)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:l}),c.watch(()=>r.disabled,v=>{v&&s.value&&(s.value=!1)});const b=v=>{var x,k;const _=(k=(x=i.value)==null?void 0:x.contentRef)==null?void 0:k.popperContentRef,S=(v==null?void 0:v.relatedTarget)||document.activeElement;return _&&_.contains(S)};return c.onDeactivated(()=>s.value&&f()),t({popperRef:o,contentRef:i,isFocusInsideContent:b,updatePopper:l,onOpen:g,onClose:h,hide:f}),(v,x)=>(c.openBlock(),c.createBlock(c.unref(Yq),{ref_key:"popperRef",ref:o,role:v.role},{default:c.withCtx(()=>[c.createVNode(aW,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:c.withCtx(()=>[v.$slots.default?c.renderSlot(v.$slots,"default",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),c.createVNode(lW,{ref_key:"contentRef",ref:i,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:c.withCtx(()=>[c.renderSlot(v.$slots,"content",{},()=>[v.rawContent?(c.openBlock(),c.createElementBlock("span",{key:0,innerHTML:v.content},null,8,sW)):(c.openBlock(),c.createElementBlock("span",cW,c.toDisplayString(v.content),1))]),v.showArrow?(c.openBlock(),c.createBlock(c.unref(yq),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):c.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var fW=jn(dW,[["__file","tooltip.vue"]]);const qS=mo(fW),WS=Symbol("buttonGroupContextKey"),pW=(e,t)=>{jT({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},c.computed(()=>e.type==="text"));const n=c.inject(WS,void 0),r=dv("button"),{form:a}=Rd(),o=Fc(c.computed(()=>n==null?void 0:n.size)),i=vh(),l=c.ref(),s=c.useSlots(),u=c.computed(()=>e.type||(n==null?void 0:n.type)||""),d=c.computed(()=>{var h,y,b;return(b=(y=e.autoInsertSpace)!=null?y:(h=r.value)==null?void 0:h.autoInsertSpace)!=null?b:!1}),f=c.computed(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=c.computed(()=>{var h;const y=(h=s.default)==null?void 0:h.call(s);if(d.value&&(y==null?void 0:y.length)===1){const b=y[0];if((b==null?void 0:b.type)===c.Text){const v=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(v.trim())}}return!1});return{_disabled:i,_size:o,_type:u,_ref:l,_props:f,shouldAddSpace:p,handleClick:h=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",h)}}},kv=Xn({size:zc,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:_c},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:_c,default:()=>DT},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:sn([String,Object]),default:"button"}}),hW={click:e=>e instanceof MouseEvent};function Lr(e,t){mW(e)&&(e="100%");var n=gW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function kh(e){return Math.min(1,Math.max(0,e))}function mW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function GS(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Th(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hs(e){return e.length===1?"0"+e:String(e)}function yW(e,t,n){return{r:Lr(e,255)*255,g:Lr(t,255)*255,b:Lr(n,255)*255}}function ZS(e,t,n){e=Lr(e,255),t=Lr(t,255),n=Lr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,l=(r+a)/2;if(r===a)i=0,o=0;else{var s=r-a;switch(i=l>.5?s/(2-r-a):s/(r+a),r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:i,l}}function Tv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vW(e,t,n){var r,a,o;if(e=Lr(e,360),t=Lr(t,100),n=Lr(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Tv(l,i,e+1/3),a=Tv(l,i,e),o=Tv(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function KS(e,t,n){e=Lr(e,255),t=Lr(t,255),n=Lr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,l=r-a,s=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:i}}function bW(e,t,n){e=Lr(e,360)*6,t=Lr(t,100),n=Lr(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),i=n*(1-a*t),l=n*(1-(1-a)*t),s=r%6,u=[n,i,o,o,l,n][s],d=[l,n,n,i,o,o][s],f=[o,o,l,n,n,i][s];return{r:u*255,g:d*255,b:f*255}}function YS(e,t,n,r){var a=[hs(Math.round(e).toString(16)),hs(Math.round(t).toString(16)),hs(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function xW(e,t,n,r,a){var o=[hs(Math.round(e).toString(16)),hs(Math.round(t).toString(16)),hs(Math.round(n).toString(16)),hs(wW(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function wW(e){return Math.round(parseFloat(e)*255).toString(16)}function JS(e){return ka(e)/255}function ka(e){return parseInt(e,16)}function _W(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Sv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function kW(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=AW(e)),typeof e=="object"&&(Ii(e.r)&&Ii(e.g)&&Ii(e.b)?(t=yW(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ii(e.h)&&Ii(e.s)&&Ii(e.v)?(r=Th(e.s),a=Th(e.v),t=bW(e.h,r,a),i=!0,l="hsv"):Ii(e.h)&&Ii(e.s)&&Ii(e.l)&&(r=Th(e.s),o=Th(e.l),t=vW(e.h,r,o),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=GS(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var TW="[-\\+]?\\d+%?",SW="[-\\+]?\\d*\\.\\d+%?",pl="(?:".concat(SW,")|(?:").concat(TW,")"),Av="[\\s|\\(]+(".concat(pl,")[,|\\s]+(").concat(pl,")[,|\\s]+(").concat(pl,")\\s*\\)?"),Mv="[\\s|\\(]+(".concat(pl,")[,|\\s]+(").concat(pl,")[,|\\s]+(").concat(pl,")[,|\\s]+(").concat(pl,")\\s*\\)?"),vo={CSS_UNIT:new RegExp(pl),rgb:new RegExp("rgb"+Av),rgba:new RegExp("rgba"+Mv),hsl:new RegExp("hsl"+Av),hsla:new RegExp("hsla"+Mv),hsv:new RegExp("hsv"+Av),hsva:new RegExp("hsva"+Mv),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function AW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Sv[e])e=Sv[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=vo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=vo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=vo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=vo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=vo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=vo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=vo.hex8.exec(e),n?{r:ka(n[1]),g:ka(n[2]),b:ka(n[3]),a:JS(n[4]),format:t?"name":"hex8"}:(n=vo.hex6.exec(e),n?{r:ka(n[1]),g:ka(n[2]),b:ka(n[3]),format:t?"name":"hex"}:(n=vo.hex4.exec(e),n?{r:ka(n[1]+n[1]),g:ka(n[2]+n[2]),b:ka(n[3]+n[3]),a:JS(n[4]+n[4]),format:t?"name":"hex8"}:(n=vo.hex3.exec(e),n?{r:ka(n[1]+n[1]),g:ka(n[2]+n[2]),b:ka(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ii(e){return!!vo.CSS_UNIT.exec(String(e))}var MW=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=_W(t)),this.originalInput=t;var a=kW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=GS(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=KS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=KS(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ZS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ZS(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),YS(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),xW(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Lr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Lr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+YS(this.r,this.g,this.b,!1),n=0,r=Object.entries(Sv);n<r.length;n++){var a=r[n],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=kh(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=kh(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=kh(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=kh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(r+i*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function hl(e,t=20){return e.mix("#141414",t).toString()}function CW(e){const t=vh(),n=Pn("button");return c.computed(()=>{let r={};const a=e.color;if(a){const o=new MW(a),i=e.dark?o.tint(20).toString():hl(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?hl(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?hl(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?hl(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?hl(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?hl(o,80):o.tint(80).toString());else{const l=e.dark?hl(o,30):o.tint(30).toString(),s=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":s,"border-color":a,"hover-bg-color":l,"hover-text-color":s,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?hl(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const OW=c.defineComponent({name:"ElButton"}),EW=c.defineComponent({...OW,props:kv,emits:hW,setup(e,{expose:t,emit:n}){const r=e,a=CW(r),o=Pn("button"),{_ref:i,_size:l,_type:s,_disabled:u,_props:d,shouldAddSpace:f,handleClick:p}=pW(r,n);return t({ref:i,size:l,type:s,disabled:u,shouldAddSpace:f}),(g,h)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(g.tag),c.mergeProps({ref_key:"_ref",ref:i},c.unref(d),{class:[c.unref(o).b(),c.unref(o).m(c.unref(s)),c.unref(o).m(c.unref(l)),c.unref(o).is("disabled",c.unref(u)),c.unref(o).is("loading",g.loading),c.unref(o).is("plain",g.plain),c.unref(o).is("round",g.round),c.unref(o).is("circle",g.circle),c.unref(o).is("text",g.text),c.unref(o).is("link",g.link),c.unref(o).is("has-bg",g.bg)],style:c.unref(a),onClick:c.unref(p)}),{default:c.withCtx(()=>[g.loading?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[g.$slots.loading?c.renderSlot(g.$slots,"loading",{key:0}):(c.openBlock(),c.createBlock(c.unref(Ra),{key:1,class:c.normalizeClass(c.unref(o).is("loading"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(c.openBlock(),c.createBlock(c.unref(Ra),{key:1},{default:c.withCtx(()=>[g.icon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(g.icon),{key:0})):c.renderSlot(g.$slots,"icon",{key:1})]),_:3})):c.createCommentVNode("v-if",!0),g.$slots.default?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass({[c.unref(o).em("text","expand")]:c.unref(f)})},[c.renderSlot(g.$slots,"default")],2)):c.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var LW=jn(EW,[["__file","button.vue"]]);const zW={size:kv.size,type:kv.type},FW=c.defineComponent({name:"ElButtonGroup"}),IW=c.defineComponent({...FW,props:zW,setup(e){const t=e;c.provide(WS,c.reactive({size:c.toRef(t,"size"),type:c.toRef(t,"type")}));const n=Pn("button");return(r,a)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`${c.unref(n).b("group")}`)},[c.renderSlot(r.$slots,"default")],2))}});var QS=jn(IW,[["__file","button-group.vue"]]);const XS=mo(LW,{ButtonGroup:QS});$y(QS);var Sh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DW(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}const ml=new Map;let $S;kr&&(document.addEventListener("mousedown",e=>$S=e),document.addEventListener("mouseup",e=>{for(const t of ml.values())for(const{documentHandler:n}of t)n(e,$S)}));function eA(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Cd(t.arg)&&n.push(t.arg),function(r,a){const o=t.instance.popperRef,i=r.target,l=a==null?void 0:a.target,s=!t||!t.instance,u=!i||!l,d=e.contains(i)||e.contains(l),f=e===i,p=n.length&&n.some(h=>h==null?void 0:h.contains(i))||n.length&&n.includes(l),g=o&&(o.contains(i)||o.contains(l));s||u||d||f||p||g||t.value(r,a)}}const PW={beforeMount(e,t){ml.has(e)||ml.set(e,[]),ml.get(e).push({documentHandler:eA(e,t),bindingFn:t.value})},updated(e,t){ml.has(e)||ml.set(e,[]);const n=ml.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:eA(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){ml.delete(e)}},RW=100,NW=600,tA={beforeMount(e,t){const n=t.value,{interval:r=RW,delay:a=NW}=ta(n)?{}:n;let o,i;const l=()=>ta(n)?n():n.handler(),s=()=>{i&&(clearTimeout(i),i=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(s(),l(),document.addEventListener("mouseup",()=>s(),{once:!0}),i=setTimeout(()=>{o=setInterval(()=>{l()},r)},a))})}},nA=Xn({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:NT,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),BW={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},jW=c.defineComponent({name:"ElTag"}),VW=c.defineComponent({...jW,props:nA,emits:BW,setup(e,{emit:t}){const n=e,r=Fc(),a=Pn("tag"),o=c.computed(()=>{const{type:s,hit:u,effect:d,closable:f,round:p}=n;return[a.b(),a.is("closable",f),a.m(s),a.m(r.value),a.m(d),a.is("hit",u),a.is("round",p)]}),i=s=>{t("close",s)},l=s=>{t("click",s)};return(s,u)=>s.disableTransitions?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(o)),style:c.normalizeStyle({backgroundColor:s.color}),onClick:l},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).e("content"))},[c.renderSlot(s.$slots,"default")],2),s.closable?(c.openBlock(),c.createBlock(c.unref(Ra),{key:0,class:c.normalizeClass(c.unref(a).e("close")),onClick:c.withModifiers(i,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(IT))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)):(c.openBlock(),c.createBlock(c.Transition,{key:1,name:`${c.unref(a).namespace.value}-zoom-in-center`,appear:""},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(c.unref(o)),style:c.normalizeStyle({backgroundColor:s.color}),onClick:l},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).e("content"))},[c.renderSlot(s.$slots,"default")],2),s.closable?(c.openBlock(),c.createBlock(c.unref(Ra),{key:0,class:c.normalizeClass(c.unref(a).e("close")),onClick:c.withModifiers(i,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(IT))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var HW=jn(VW,[["__file","tag.vue"]]);const UW=mo(HW),qW=Xn({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:sn(String),default:"solid"}}),WW=c.defineComponent({name:"ElDivider"}),GW=c.defineComponent({...WW,props:qW,setup(e){const t=e,n=Pn("divider"),r=c.computed(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([c.unref(n).b(),c.unref(n).m(a.direction)]),style:c.normalizeStyle(c.unref(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass([c.unref(n).e("text"),c.unref(n).is(a.contentPosition)])},[c.renderSlot(a.$slots,"default")],2)):c.createCommentVNode("v-if",!0)],6))}});var ZW=jn(GW,[["__file","divider.vue"]]);const rA=mo(ZW),KW=Xn({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:zc,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Dn(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),YW={[Tc]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ds]:e=>Dn(e)||zi(e),[rr]:e=>Dn(e)||zi(e)},JW=["aria-label","onKeydown"],QW=["aria-label","onKeydown"],XW=c.defineComponent({name:"ElInputNumber"}),$W=c.defineComponent({...XW,props:KW,emits:YW,setup(e,{expose:t,emit:n}){const r=e,{t:a}=ch(),o=Pn("input-number"),i=c.ref(),l=c.reactive({currentValue:r.modelValue,userInput:null}),{formItem:s}=Rd(),u=c.computed(()=>Dn(r.modelValue)&&r.modelValue<=r.min),d=c.computed(()=>Dn(r.modelValue)&&r.modelValue>=r.max),f=c.computed(()=>{const V=v(r.step);return wc(r.precision)?Math.max(v(r.modelValue),V):(V>r.precision&&yr("InputNumber","precision should not be less than the decimal places of step"),r.precision)}),p=c.computed(()=>r.controls&&r.controlsPosition==="right"),g=Fc(),h=vh(),y=c.computed(()=>{if(l.userInput!==null)return l.userInput;let V=l.currentValue;if(zi(V))return"";if(Dn(V)){if(Number.isNaN(V))return"";wc(r.precision)||(V=V.toFixed(r.precision))}return V}),b=(V,Z)=>{if(wc(Z)&&(Z=f.value),Z===0)return Math.round(V);let G=String(V);const I=G.indexOf(".");if(I===-1||!G.replace(".","").split("")[I+Z])return V;const H=G.length;return G.charAt(H-1)==="5"&&(G=`${G.slice(0,Math.max(0,H-1))}6`),Number.parseFloat(Number(G).toFixed(Z))},v=V=>{if(zi(V))return 0;const Z=V.toString(),G=Z.indexOf(".");let I=0;return G!==-1&&(I=Z.length-G-1),I},x=(V,Z=1)=>Dn(V)?b(V+r.step*Z):l.currentValue,k=()=>{if(r.readonly||h.value||d.value)return;const V=Number(y.value)||0,Z=x(V);T(Z),n(ds,l.currentValue),B()},_=()=>{if(r.readonly||h.value||u.value)return;const V=Number(y.value)||0,Z=x(V,-1);T(Z),n(ds,l.currentValue),B()},S=(V,Z)=>{const{max:G,min:I,step:P,precision:z,stepStrictly:H,valueOnClear:j}=r;G<I&&Jy("InputNumber","min should not be greater than max.");let q=Number(V);if(zi(V)||Number.isNaN(q))return null;if(V===""){if(j===null)return null;q=na(j)?{min:I,max:G}[j]:j}return H&&(q=b(Math.round(q/P)*P,z)),wc(z)||(q=b(q,z)),(q>G||q<I)&&(q=q>G?G:I,Z&&n(rr,q)),q},T=(V,Z=!0)=>{var G;const I=l.currentValue,P=S(V);if(!Z){n(rr,P);return}I!==P&&(l.userInput=null,n(rr,P),n(Tc,P,I),r.validateEvent&&((G=s==null?void 0:s.validate)==null||G.call(s,"change").catch(z=>yr(z))),l.currentValue=P)},C=V=>{l.userInput=V;const Z=V===""?null:Number(V);n(ds,Z),T(Z,!1)},A=V=>{const Z=V!==""?Number(V):"";(Dn(Z)&&!Number.isNaN(Z)||V==="")&&T(Z),B(),l.userInput=null},O=()=>{var V,Z;(Z=(V=i.value)==null?void 0:V.focus)==null||Z.call(V)},F=()=>{var V,Z;(Z=(V=i.value)==null?void 0:V.blur)==null||Z.call(V)},R=V=>{n("focus",V)},N=V=>{var Z;l.userInput=null,n("blur",V),r.validateEvent&&((Z=s==null?void 0:s.validate)==null||Z.call(s,"blur").catch(G=>yr(G)))},B=()=>{l.currentValue!==r.modelValue&&(l.currentValue=r.modelValue)};return c.watch(()=>r.modelValue,(V,Z)=>{const G=S(V,!0);l.userInput===null&&G!==Z&&(l.currentValue=G)},{immediate:!0}),c.onMounted(()=>{var V;const{min:Z,max:G,modelValue:I}=r,P=(V=i.value)==null?void 0:V.input;if(P.setAttribute("role","spinbutton"),Number.isFinite(G)?P.setAttribute("aria-valuemax",String(G)):P.removeAttribute("aria-valuemax"),Number.isFinite(Z)?P.setAttribute("aria-valuemin",String(Z)):P.removeAttribute("aria-valuemin"),P.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),P.setAttribute("aria-disabled",String(h.value)),!Dn(I)&&I!=null){let z=Number(I);Number.isNaN(z)&&(z=null),n(rr,z)}}),c.onUpdated(()=>{var V,Z;const G=(V=i.value)==null?void 0:V.input;G==null||G.setAttribute("aria-valuenow",`${(Z=l.currentValue)!=null?Z:""}`)}),t({focus:O,blur:F}),(V,Z)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([c.unref(o).b(),c.unref(o).m(c.unref(g)),c.unref(o).is("disabled",c.unref(h)),c.unref(o).is("without-controls",!V.controls),c.unref(o).is("controls-right",c.unref(p))]),onDragstart:Z[1]||(Z[1]=c.withModifiers(()=>{},["prevent"]))},[V.controls?c.withDirectives((c.openBlock(),c.createElementBlock("span",{key:0,role:"button","aria-label":c.unref(a)("el.inputNumber.decrease"),class:c.normalizeClass([c.unref(o).e("decrease"),c.unref(o).is("disabled",c.unref(u))]),onKeydown:c.withKeys(_,["enter"])},[c.createVNode(c.unref(Ra),null,{default:c.withCtx(()=>[c.unref(p)?(c.openBlock(),c.createBlock(c.unref(FT),{key:0})):(c.openBlock(),c.createBlock(c.unref(oH),{key:1}))]),_:1})],42,JW)),[[c.unref(tA),_]]):c.createCommentVNode("v-if",!0),V.controls?c.withDirectives((c.openBlock(),c.createElementBlock("span",{key:1,role:"button","aria-label":c.unref(a)("el.inputNumber.increase"),class:c.normalizeClass([c.unref(o).e("increase"),c.unref(o).is("disabled",c.unref(d))]),onKeydown:c.withKeys(k,["enter"])},[c.createVNode(c.unref(Ra),null,{default:c.withCtx(()=>[c.unref(p)?(c.openBlock(),c.createBlock(c.unref(JV),{key:0})):(c.openBlock(),c.createBlock(c.unref(lH),{key:1}))]),_:1})],42,QW)),[[c.unref(tA),k]]):c.createCommentVNode("v-if",!0),c.createVNode(c.unref(SS),{id:V.id,ref_key:"input",ref:i,type:"number",step:V.step,"model-value":c.unref(y),placeholder:V.placeholder,readonly:V.readonly,disabled:c.unref(h),size:c.unref(g),max:V.max,min:V.min,name:V.name,label:V.label,"validate-event":!1,onWheel:Z[0]||(Z[0]=c.withModifiers(()=>{},["prevent"])),onKeydown:[c.withKeys(c.withModifiers(k,["prevent"]),["up"]),c.withKeys(c.withModifiers(_,["prevent"]),["down"])],onBlur:N,onFocus:R,onInput:C,onChange:A},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var eG=jn($W,[["__file","input-number.vue"]]);const Cv=mo(eG),aA=Symbol("ElSelectGroup"),Ah=Symbol("ElSelect");function tG(e,t){const n=c.inject(Ah),r=c.inject(aA,{disabled:!1}),a=c.computed(()=>n.props.multiple?d(n.props.modelValue,e.value):Md(e.value,n.props.modelValue)),o=c.computed(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!a.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),i=c.computed(()=>e.label||(ra(e.value)?"":e.value)),l=c.computed(()=>e.value||e.label||""),s=c.computed(()=>e.disabled||t.groupDisabled||o.value),u=c.getCurrentInstance(),d=(g=[],h)=>{if(ra(e.value)){const y=n.props.valueKey;return g&&g.some(b=>c.toRaw(Ei(b,y))===Ei(h,y))}else return g&&g.includes(h)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},p=g=>{const h=new RegExp(WV(g),"i");t.visible=h.test(i.value)||e.created};return c.watch(()=>i.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),c.watch(()=>e.value,(g,h)=>{const{remote:y,valueKey:b}=n.props;if(Md(g,h)||(n.onOptionDestroy(h,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!y){if(b&&ra(g)&&ra(h)&&g[b]===h[b])return;n.setSelected()}}),c.watch(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:i,currentValue:l,itemSelected:a,isDisabled:s,hoverItem:f,updateOption:p}}const nG=c.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Pn("select"),n=mh(),r=c.computed(()=>[t.be("dropdown","item"),t.is("disabled",c.unref(l)),t.is("selected",c.unref(i)),t.is("hovering",c.unref(p))]),a=c.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:i,isDisabled:l,select:s,hoverItem:u,updateOption:d}=tG(e,a),{visible:f,hover:p}=c.toRefs(a),g=c.getCurrentInstance().proxy;s.onOptionCreate(g),c.onBeforeUnmount(()=>{const y=g.value,{selected:b}=s.states,x=(s.props.multiple?b:[b]).some(k=>k.value===g.value);c.nextTick(()=>{s.states.cachedOptions.get(y)===g&&!x&&s.states.cachedOptions.delete(y)}),s.onOptionDestroy(y,g)});function h(){e.disabled!==!0&&a.groupDisabled!==!0&&s.handleOptionSelect(g)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:i,isDisabled:l,select:s,hoverItem:u,updateOption:d,visible:f,hover:p,selectOptionClick:h,states:a}}}),rG=["id","aria-disabled","aria-selected"];function aG(e,t,n,r,a,o){return c.withDirectives((c.openBlock(),c.createElementBlock("li",{id:e.id,class:c.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=c.withModifiers((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"]))},[c.renderSlot(e.$slots,"default",{},()=>[c.createElementVNode("span",null,c.toDisplayString(e.currentLabel),1)])],42,rG)),[[c.vShow,e.visible]])}var Ov=jn(nG,[["render",aG],["__file","option.vue"]]);const oG=c.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=c.inject(Ah),t=Pn("select"),n=c.computed(()=>e.props.popperClass),r=c.computed(()=>e.props.multiple),a=c.computed(()=>e.props.fitInputWidth),o=c.ref("");function i(){var l;o.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return c.onMounted(()=>{i(),Ai(e.selectRef,i)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function iG(e,t,n,r,a,o){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:c.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(e.ns.be("dropdown","header"))},[c.renderSlot(e.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.renderSlot(e.$slots,"default"),e.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(e.ns.be("dropdown","footer"))},[c.renderSlot(e.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)],6)}var lG=jn(oG,[["render",iG],["__file","select-dropdown.vue"]]);function sG(e){const t=c.ref(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:o=>{const i=o.target.value,l=i[i.length-1]||"";t.value=!BT(l)},handleCompositionEnd:o=>{t.value&&(t.value=!1,ta(e)&&e(o))}}}const cG=11,uG=(e,t)=>{const{t:n}=ch(),r=mh(),a=Pn("select"),o=Pn("input"),i=c.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1});jT({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},c.computed(()=>e.suffixTransition===!1));const l=c.ref(null),s=c.ref(null),u=c.ref(null),d=c.ref(null),f=c.ref(null),p=c.ref(null),g=c.ref(null),h=c.ref(null),y=c.ref(null),b=c.ref(null),v=c.ref(null),x=c.ref(null),{wrapperRef:k,isFocused:_,handleFocus:S,handleBlur:T}=_S(f,{afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(ie){var fe,be;return((fe=u.value)==null?void 0:fe.isFocusInsideContent(ie))||((be=d.value)==null?void 0:be.isFocusInsideContent(ie))},afterBlur(){C.value=!1,i.menuVisibleOnFocus=!1}}),C=c.ref(!1),A=c.ref(),{form:O,formItem:F}=Rd(),{inputId:R}=pv(e,{formItemContext:F}),N=c.computed(()=>e.disabled||(O==null?void 0:O.disabled)),B=c.computed(()=>e.multiple?Fa(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!==""),V=c.computed(()=>e.clearable&&!N.value&&i.inputHovering&&B.value),Z=c.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=c.computed(()=>a.is("reverse",Z.value&&C.value&&e.suffixTransition)),I=c.computed(()=>(F==null?void 0:F.validateState)||""),P=c.computed(()=>RT[I.value]),z=c.computed(()=>e.remote?300:0),H=c.computed(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!i.inputValue&&i.options.size===0?!1:e.filterable&&i.inputValue&&i.options.size>0&&j.value===0?e.noMatchText||n("el.select.noMatch"):i.options.size===0?e.noDataText||n("el.select.noData"):null),j=c.computed(()=>q.value.filter(ie=>ie.visible).length),q=c.computed(()=>{const ie=Array.from(i.options.values()),fe=[];return i.optionValues.forEach(be=>{const Ne=ie.findIndex($e=>$e.value===be);Ne>-1&&fe.push(ie[Ne])}),fe.length>=ie.length?fe:ie}),$=c.computed(()=>Array.from(i.cachedOptions.values())),ne=c.computed(()=>{const ie=q.value.filter(fe=>!fe.created).some(fe=>fe.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!ie}),te=()=>{e.filterable&&ta(e.filterMethod)||e.filterable&&e.remote&&ta(e.remoteMethod)||q.value.forEach(ie=>{ie.updateOption(i.inputValue)})},ee=Fc(),se=c.computed(()=>["small"].includes(ee.value)?"small":"default"),U=c.computed({get(){return C.value&&H.value!==!1},set(ie){C.value=ie}}),Y=c.computed(()=>Fa(e.modelValue)?e.modelValue.length===0&&!i.inputValue:e.filterable?!i.inputValue:!0),J=c.computed(()=>{var ie;const fe=(ie=e.placeholder)!=null?ie:n("el.select.placeholder");return e.multiple||!B.value?fe:i.selectedLabel});c.watch(()=>e.modelValue,(ie,fe)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",re("")),he(),!Md(ie,fe)&&e.validateEvent&&(F==null||F.validate("change").catch(be=>yr(be)))},{flush:"post",deep:!0}),c.watch(()=>C.value,ie=>{ie?re(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),t("visible-change",ie)}),c.watch(()=>i.options.entries(),()=>{var ie;if(!kr)return;const fe=((ie=l.value)==null?void 0:ie.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!wc(e.modelValue)||!Array.from(fe).includes(document.activeElement))&&he(),e.defaultFirstOption&&(e.filterable||e.remote)&&j.value&&oe()},{flush:"post"}),c.watch(()=>i.hoveringIndex,ie=>{Dn(ie)&&ie>-1?A.value=q.value[ie]||{}:A.value={},q.value.forEach(fe=>{fe.hover=A.value===fe})}),c.watchEffect(()=>{i.isBeforeHide||te()});const re=ie=>{i.previousQuery!==ie&&(i.previousQuery=ie,e.filterable&&ta(e.filterMethod)?e.filterMethod(ie):e.filterable&&e.remote&&ta(e.remoteMethod)&&e.remoteMethod(ie),e.defaultFirstOption&&(e.filterable||e.remote)&&j.value?c.nextTick(oe):c.nextTick(ge))},oe=()=>{const ie=q.value.filter(Ne=>Ne.visible&&!Ne.disabled&&!Ne.states.groupDisabled),fe=ie.find(Ne=>Ne.created),be=ie[0];i.hoveringIndex=at(q.value,fe||be)},he=()=>{if(e.multiple)i.selectedLabel="";else{const fe=ve(e.modelValue);i.selectedLabel=fe.currentLabel,i.selected=fe;return}const ie=[];Fa(e.modelValue)&&e.modelValue.forEach(fe=>{ie.push(ve(fe))}),i.selected=ie},ve=ie=>{let fe;const be=Dy(ie).toLowerCase()==="object",Ne=Dy(ie).toLowerCase()==="null",$e=Dy(ie).toLowerCase()==="undefined";for(let Et=i.cachedOptions.size-1;Et>=0;Et--){const _t=$.value[Et];if(be?Ei(_t.value,e.valueKey)===Ei(ie,e.valueKey):_t.value===ie){fe={value:ie,currentLabel:_t.currentLabel,isDisabled:_t.isDisabled};break}}if(fe)return fe;const ot=be?ie.label:!Ne&&!$e?ie:"";return{value:ie,currentLabel:ot}},ge=()=>{e.multiple?i.selected.length>0?i.hoveringIndex=Math.min(...i.selected.map(ie=>q.value.findIndex(fe=>Ke(fe)===Ke(ie)))):i.hoveringIndex=-1:i.hoveringIndex=q.value.findIndex(ie=>Ke(ie)===Ke(i.selected))},xe=()=>{i.selectionWidth=s.value.getBoundingClientRect().width},Le=()=>{i.calculatorWidth=p.value.getBoundingClientRect().width},Ue=()=>{i.collapseItemWidth=v.value.getBoundingClientRect().width},Pe=()=>{var ie,fe;(fe=(ie=u.value)==null?void 0:ie.updatePopper)==null||fe.call(ie)},De=()=>{var ie,fe;(fe=(ie=d.value)==null?void 0:ie.updatePopper)==null||fe.call(ie)},je=()=>{i.inputValue.length>0&&!C.value&&(C.value=!0),re(i.inputValue)},qe=ie=>{if(i.inputValue=ie.target.value,e.remote)Ee();else return je()},Ee=Yy(()=>{je()},z.value),_e=ie=>{Md(e.modelValue,ie)||t(Tc,ie)},we=ie=>HV(ie,fe=>!i.disabledOptions.has(fe)),Re=ie=>{if(e.multiple&&ie.code!==kc.delete&&ie.target.value.length<=0){const fe=e.modelValue.slice(),be=we(fe);if(be<0)return;fe.splice(be,1),t(rr,fe),_e(fe)}},Je=(ie,fe)=>{const be=i.selected.indexOf(fe);if(be>-1&&!N.value){const Ne=e.modelValue.slice();Ne.splice(be,1),t(rr,Ne),_e(Ne),t("remove-tag",fe.value)}ie.stopPropagation(),gt()},it=ie=>{ie.stopPropagation();const fe=e.multiple?[]:"";if(!na(fe))for(const be of i.selected)be.isDisabled&&fe.push(be.value);t(rr,fe),_e(fe),i.hoveringIndex=-1,C.value=!1,t("clear"),gt()},dt=ie=>{if(e.multiple){const fe=(e.modelValue||[]).slice(),be=at(fe,ie.value);be>-1?fe.splice(be,1):(e.multipleLimit<=0||fe.length<e.multipleLimit)&&fe.push(ie.value),t(rr,fe),_e(fe),ie.created&&re(""),e.filterable&&!e.reserveKeyword&&(i.inputValue="")}else t(rr,ie.value),_e(ie.value),C.value=!1;gt(),!C.value&&c.nextTick(()=>{lt(ie)})},at=(ie=[],fe)=>{if(!ra(fe))return ie.indexOf(fe);const be=e.valueKey;let Ne=-1;return ie.some(($e,ot)=>c.toRaw(Ei($e,be))===Ei(fe,be)?(Ne=ot,!0):!1),Ne},lt=ie=>{var fe,be,Ne,$e,ot;const St=Fa(ie)?ie[0]:ie;let Et=null;if(St!=null&&St.value){const _t=q.value.filter(kt=>kt.value===St.value);_t.length>0&&(Et=_t[0].$el)}if(u.value&&Et){const _t=($e=(Ne=(be=(fe=u.value)==null?void 0:fe.popperRef)==null?void 0:be.contentRef)==null?void 0:Ne.querySelector)==null?void 0:$e.call(Ne,`.${a.be("dropdown","wrap")}`);_t&&ZV(_t,Et)}(ot=x.value)==null||ot.handleScroll()},He=ie=>{i.options.set(ie.value,ie),i.cachedOptions.set(ie.value,ie),ie.disabled&&i.disabledOptions.set(ie.value,ie)},Be=(ie,fe)=>{i.options.get(ie)===fe&&i.options.delete(ie)},{handleCompositionStart:Ze,handleCompositionUpdate:Ye,handleCompositionEnd:et}=sG(ie=>qe(ie)),st=c.computed(()=>{var ie,fe;return(fe=(ie=u.value)==null?void 0:ie.popperRef)==null?void 0:fe.contentRef}),nt=()=>{c.nextTick(()=>lt(i.selected))},gt=()=>{var ie;(ie=f.value)==null||ie.focus()},Ve=()=>{ft()},rt=ie=>{it(ie)},ft=ie=>{if(C.value=!1,_.value){const fe=new FocusEvent("focus",ie);c.nextTick(()=>T(fe))}},wt=()=>{i.inputValue.length>0?i.inputValue="":C.value=!1},tt=()=>{N.value||e.filterable&&e.remote&&ta(e.remoteMethod)||(i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:C.value=!C.value)},pt=()=>{C.value?q.value[i.hoveringIndex]&&dt(q.value[i.hoveringIndex]):tt()},Ke=ie=>ra(ie.value)?Ei(ie.value,e.valueKey):ie.value,Ot=c.computed(()=>q.value.filter(ie=>ie.visible).every(ie=>ie.disabled)),X=c.computed(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),ue=c.computed(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),de=ie=>{if(!C.value){C.value=!0;return}if(!(i.options.size===0||j.value===0)&&!Ot.value){ie==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):ie==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const fe=q.value[i.hoveringIndex];(fe.disabled===!0||fe.states.groupDisabled===!0||!fe.visible)&&de(ie),c.nextTick(()=>lt(A.value))}},ce=()=>{if(!s.value)return 0;const ie=window.getComputedStyle(s.value);return Number.parseFloat(ie.gap||"6px")},Oe=c.computed(()=>{const ie=ce();return{maxWidth:`${v.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-ie:i.selectionWidth}px`}}),Te=c.computed(()=>({maxWidth:`${i.selectionWidth}px`})),We=c.computed(()=>({width:`${Math.max(i.calculatorWidth,cG)}px`}));return e.multiple&&!Fa(e.modelValue)&&t(rr,[]),!e.multiple&&Fa(e.modelValue)&&t(rr,""),Ai(s,xe),Ai(p,Le),Ai(y,Pe),Ai(k,Pe),Ai(b,De),Ai(v,Ue),c.onMounted(()=>{he()}),{inputId:R,contentId:r,nsSelect:a,nsInput:o,states:i,isFocused:_,expanded:C,optionsArray:q,hoverOption:A,selectSize:ee,filteredOptionsCount:j,resetCalculatorWidth:Le,updateTooltip:Pe,updateTagTooltip:De,debouncedOnInputChange:Ee,onInput:qe,deletePrevTag:Re,deleteTag:Je,deleteSelected:it,handleOptionSelect:dt,scrollToOption:lt,hasModelValue:B,shouldShowPlaceholder:Y,currentPlaceholder:J,showClose:V,iconComponent:Z,iconReverse:G,validateState:I,validateIcon:P,showNewOption:ne,updateOptions:te,collapseTagSize:se,setSelected:he,selectDisabled:N,emptyText:H,handleCompositionStart:Ze,handleCompositionUpdate:Ye,handleCompositionEnd:et,onOptionCreate:He,onOptionDestroy:Be,handleMenuEnter:nt,handleFocus:S,focus:gt,blur:Ve,handleBlur:T,handleClearClick:rt,handleClickOutside:ft,handleEsc:wt,toggleMenu:tt,selectOption:pt,getValueKey:Ke,navigateOptions:de,dropdownMenuVisible:U,showTagList:X,collapseTagList:ue,tagStyle:Oe,collapseTagStyle:Te,inputStyle:We,popperRef:st,inputRef:f,tooltipRef:u,tagTooltipRef:d,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:k,selectionRef:s,scrollbarRef:x,menuRef:y,tagMenuRef:b,collapseItemRef:v}};var dG=c.defineComponent({name:"ElOptions",setup(e,{slots:t}){const n=c.inject(Ah);let r=[];return()=>{var a,o;const i=(a=t.default)==null?void 0:a.call(t),l=[];function s(u){Fa(u)&&u.forEach(d=>{var f,p,g,h;const y=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;y==="ElOptionGroup"?s(!na(d.children)&&!Fa(d.children)&&ta((p=d.children)==null?void 0:p.default)?(g=d.children)==null?void 0:g.default():d.children):y==="ElOption"?l.push((h=d.props)==null?void 0:h.value):Fa(d.children)&&s(d.children)})}return i.length&&s((o=i[0])==null?void 0:o.children),Md(l,r)||(r=l,n&&(n.states.optionValues=l)),i}}});const fG=Xn({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:zc,effect:{type:sn(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:sn(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:_v.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:_c,default:Xy},fitInputWidth:Boolean,suffixIcon:{type:_c,default:FT},tagType:{...nA.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:sn(String),values:Ac,default:"bottom-start"},ariaLabel:{type:String,default:void 0}}),oA="ElSelect",pG=c.defineComponent({name:oA,componentName:oA,components:{ElInput:SS,ElSelectMenu:lG,ElOption:Ov,ElOptions:dG,ElTag:UW,ElScrollbar:dq,ElTooltip:qS,ElIcon:Ra},directives:{ClickOutside:PW},props:fG,emits:[rr,Tc,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=uG(e,t);return c.provide(Ah,c.reactive({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),hG=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],mG=["textContent"];function gG(e,t,n,r,a,o){const i=c.resolveComponent("el-tag"),l=c.resolveComponent("el-tooltip"),s=c.resolveComponent("el-icon"),u=c.resolveComponent("el-option"),d=c.resolveComponent("el-options"),f=c.resolveComponent("el-scrollbar"),p=c.resolveComponent("el-select-menu"),g=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{ref:"selectRef",class:c.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=h=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=h=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=c.withModifiers((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[c.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=h=>e.states.isBeforeHide=!1)},{default:c.withCtx(()=>{var h;return[c.createElementVNode("div",{ref:"wrapperRef",class:c.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(c.openBlock(),c.createElementBlock("div",{key:0,ref:"prefixRef",class:c.normalizeClass(e.nsSelect.e("prefix"))},[c.renderSlot(e.$slots,"prefix")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref:"selectionRef",class:c.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?c.renderSlot(e.$slots,"tag",{key:0},()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.showTagList,y=>(c.openBlock(),c.createElementBlock("div",{key:e.getValueKey(y),class:c.normalizeClass(e.nsSelect.e("selected-item"))},[c.createVNode(i,{closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:c.normalizeStyle(e.tagStyle),onClose:b=>e.deleteTag(b,y)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(e.nsSelect.e("tags-text"))},c.toDisplayString(y.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(c.openBlock(),c.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:c.withCtx(()=>[c.createElementVNode("div",{ref:"collapseItemRef",class:c.normalizeClass(e.nsSelect.e("selected-item"))},[c.createVNode(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:c.normalizeStyle(e.collapseTagStyle)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(e.nsSelect.e("tags-text"))}," + "+c.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:c.withCtx(()=>[c.createElementVNode("div",{ref:"tagMenuRef",class:c.normalizeClass(e.nsSelect.e("selection"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.collapseTagList,y=>(c.openBlock(),c.createElementBlock("div",{key:e.getValueKey(y),class:c.normalizeClass(e.nsSelect.e("selected-item"))},[c.createVNode(i,{class:"in-tooltip",closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:b=>e.deleteTag(b,y)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(e.nsSelect.e("tags-text"))},c.toDisplayString(y.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):c.createCommentVNode("v-if",!0)]):c.createCommentVNode("v-if",!0),e.selectDisabled?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[c.withDirectives(c.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=y=>e.states.inputValue=y),type:"text",class:c.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:c.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...y)=>e.handleFocus&&e.handleFocus(...y)),onBlur:t[2]||(t[2]=(...y)=>e.handleBlur&&e.handleBlur(...y)),onKeydown:[t[3]||(t[3]=c.withKeys(c.withModifiers(y=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=c.withKeys(c.withModifiers(y=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=c.withKeys(c.withModifiers((...y)=>e.handleEsc&&e.handleEsc(...y),["stop","prevent"]),["esc"])),t[6]||(t[6]=c.withKeys(c.withModifiers((...y)=>e.selectOption&&e.selectOption(...y),["stop","prevent"]),["enter"])),t[7]||(t[7]=c.withKeys(c.withModifiers((...y)=>e.deletePrevTag&&e.deletePrevTag(...y),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...y)=>e.handleCompositionStart&&e.handleCompositionStart(...y)),onCompositionupdate:t[9]||(t[9]=(...y)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...y)),onCompositionend:t[10]||(t[10]=(...y)=>e.handleCompositionEnd&&e.handleCompositionEnd(...y)),onInput:t[11]||(t[11]=(...y)=>e.onInput&&e.onInput(...y)),onClick:t[12]||(t[12]=c.withModifiers((...y)=>e.toggleMenu&&e.toggleMenu(...y),["stop"]))},null,46,hG),[[c.vModelText,e.states.inputValue]]),e.filterable?(c.openBlock(),c.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:c.normalizeClass(e.nsSelect.e("input-calculator")),textContent:c.toDisplayString(e.states.inputValue)},null,10,mG)):c.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[c.createElementVNode("span",null,c.toDisplayString(e.currentPlaceholder),1)],2)):c.createCommentVNode("v-if",!0)],2),c.createElementVNode("div",{ref:"suffixRef",class:c.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(c.openBlock(),c.createBlock(s,{key:0,class:c.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(c.openBlock(),c.createBlock(s,{key:1,class:c.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(c.openBlock(),c.createBlock(s,{key:2,class:c.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)]}),content:c.withCtx(()=>[c.createVNode(p,{ref:"menuRef"},{default:c.withCtx(()=>[e.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(e.nsSelect.be("dropdown","header"))},[c.renderSlot(e.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createVNode(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:c.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:c.withCtx(()=>[e.showNewOption?(c.openBlock(),c.createBlock(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):c.createCommentVNode("v-if",!0),c.createVNode(d,null,{default:c.withCtx(()=>[c.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[c.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(e.nsSelect.be("dropdown","loading"))},[c.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(e.nsSelect.be("dropdown","empty"))},[c.renderSlot(e.$slots,"empty",{},()=>[c.createElementVNode("span",null,c.toDisplayString(e.emptyText),1)])],2)):c.createCommentVNode("v-if",!0),e.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:3,class:c.normalizeClass(e.nsSelect.be("dropdown","footer"))},[c.renderSlot(e.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[g,e.handleClickOutside,e.popperRef]])}var yG=jn(pG,[["render",gG],["__file","select.vue"]]);const vG=c.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Pn("select"),n=c.ref(null),r=c.getCurrentInstance(),a=c.ref([]);c.provide(aA,c.reactive({...c.toRefs(e)}));const o=c.computed(()=>a.value.some(s=>s.visible===!0)),i=s=>{const u=[];return Fa(s.children)&&s.children.forEach(d=>{var f;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(f=d.children)!=null&&f.length&&u.push(...i(d))}),u},l=()=>{a.value=i(r.subTree)};return c.onMounted(()=>{l()}),QN(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function bG(e,t,n,r,a,o){return c.withDirectives((c.openBlock(),c.createElementBlock("ul",{ref:"groupRef",class:c.normalizeClass(e.ns.be("group","wrap"))},[c.createElementVNode("li",{class:c.normalizeClass(e.ns.be("group","title"))},c.toDisplayString(e.label),3),c.createElementVNode("li",null,[c.createElementVNode("ul",{class:c.normalizeClass(e.ns.b("group"))},[c.renderSlot(e.$slots,"default")],2)])],2)),[[c.vShow,e.visible]])}var iA=jn(vG,[["render",bG],["__file","option-group.vue"]]);const lA=mo(yG,{Option:Ov,OptionGroup:iA}),sA=$y(Ov);$y(iA);const cA=Symbol("sliderContextKey"),xG=Xn({modelValue:{type:sn([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:zc,inputSize:zc,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:sn(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:sn(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ac,default:"top"},marks:{type:sn(Object)},validateEvent:{type:Boolean,default:!0}}),Ev=e=>Dn(e)||Fa(e)&&e.every(Dn),wG={[rr]:Ev,[ds]:Ev,[Tc]:Ev},_G=(e,t,n)=>{const r=c.ref();return c.onMounted(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),cl(window,"resize",n),await c.nextTick(),n()}),{sliderWrapper:r}},kG=e=>c.computed(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),TG=(e,t,n)=>{const{form:r,formItem:a}=Rd(),o=c.shallowRef(),i=c.ref(),l=c.ref(),s={firstButton:i,secondButton:l},u=c.computed(()=>e.disabled||(r==null?void 0:r.disabled)||!1),d=c.computed(()=>Math.min(t.firstValue,t.secondValue)),f=c.computed(()=>Math.max(t.firstValue,t.secondValue)),p=c.computed(()=>e.range?`${100*(f.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),g=c.computed(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),h=c.computed(()=>e.vertical?{height:e.height}:{}),y=c.computed(()=>e.vertical?{height:p.value,bottom:g.value}:{width:p.value,left:g.value}),b=()=>{o.value&&(t.sliderSize=o.value[`client${e.vertical?"Height":"Width"}`])},v=R=>{const N=e.min+R*(e.max-e.min)/100;if(!e.range)return i;let B;return Math.abs(d.value-N)<Math.abs(f.value-N)?B=t.firstValue<t.secondValue?"firstButton":"secondButton":B=t.firstValue>t.secondValue?"firstButton":"secondButton",s[B]},x=R=>{const N=v(R);return N.value.setPosition(R),N},k=R=>{t.firstValue=R,S(e.range?[d.value,f.value]:R)},_=R=>{t.secondValue=R,e.range&&S([d.value,f.value])},S=R=>{n(rr,R),n(ds,R)},T=async()=>{await c.nextTick(),n(Tc,e.range?[d.value,f.value]:e.modelValue)},C=R=>{var N,B,V,Z,G,I;if(u.value||t.dragging)return;b();let P=0;if(e.vertical){const z=(V=(B=(N=R.touches)==null?void 0:N.item(0))==null?void 0:B.clientY)!=null?V:R.clientY;P=(o.value.getBoundingClientRect().bottom-z)/t.sliderSize*100}else{const z=(I=(G=(Z=R.touches)==null?void 0:Z.item(0))==null?void 0:G.clientX)!=null?I:R.clientX,H=o.value.getBoundingClientRect().left;P=(z-H)/t.sliderSize*100}if(!(P<0||P>100))return x(P)};return{elFormItem:a,slider:o,firstButton:i,secondButton:l,sliderDisabled:u,minValue:d,maxValue:f,runwayStyle:h,barStyle:y,resetSize:b,setPosition:x,emitChange:T,onSliderWrapperPrevent:R=>{var N,B;((N=s.firstButton.value)!=null&&N.dragging||(B=s.secondButton.value)!=null&&B.dragging)&&R.preventDefault()},onSliderClick:R=>{C(R)&&T()},onSliderDown:async R=>{const N=C(R);N&&(await c.nextTick(),N.value.onButtonDown(R))},setFirstValue:k,setSecondValue:_}},{left:SG,down:AG,right:MG,up:CG,home:OG,end:EG,pageUp:LG,pageDown:zG}=kc,FG=(e,t,n)=>{const r=c.ref(),a=c.ref(!1),o=c.computed(()=>t.value instanceof Function),i=c.computed(()=>o.value&&t.value(e.modelValue)||e.modelValue),l=Yy(()=>{n.value&&(a.value=!0)},50),s=Yy(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:i,displayTooltip:l,hideTooltip:s}},IG=(e,t,n)=>{const{disabled:r,min:a,max:o,step:i,showTooltip:l,precision:s,sliderSize:u,formatTooltip:d,emitChange:f,resetSize:p,updateDragging:g}=c.inject(cA),{tooltip:h,tooltipVisible:y,formatValue:b,displayTooltip:v,hideTooltip:x}=FG(e,d,l),k=c.ref(),_=c.computed(()=>`${(e.modelValue-a.value)/(o.value-a.value)*100}%`),S=c.computed(()=>e.vertical?{bottom:_.value}:{left:_.value}),T=()=>{t.hovering=!0,v()},C=()=>{t.hovering=!1,t.dragging||x()},A=q=>{r.value||(q.preventDefault(),P(q),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",H),window.addEventListener("touchend",H),window.addEventListener("contextmenu",H),k.value.focus())},O=q=>{r.value||(t.newPosition=Number.parseFloat(_.value)+q/(o.value-a.value)*100,j(t.newPosition),f())},F=()=>{O(-i.value)},R=()=>{O(i.value)},N=()=>{O(-i.value*4)},B=()=>{O(i.value*4)},V=()=>{r.value||(j(0),f())},Z=()=>{r.value||(j(100),f())},G=q=>{let $=!0;[SG,AG].includes(q.key)?F():[MG,CG].includes(q.key)?R():q.key===OG?V():q.key===EG?Z():q.key===zG?N():q.key===LG?B():$=!1,$&&q.preventDefault()},I=q=>{let $,ne;return q.type.startsWith("touch")?(ne=q.touches[0].clientY,$=q.touches[0].clientX):(ne=q.clientY,$=q.clientX),{clientX:$,clientY:ne}},P=q=>{t.dragging=!0,t.isClick=!0;const{clientX:$,clientY:ne}=I(q);e.vertical?t.startY=ne:t.startX=$,t.startPosition=Number.parseFloat(_.value),t.newPosition=t.startPosition},z=q=>{if(t.dragging){t.isClick=!1,v(),p();let $;const{clientX:ne,clientY:te}=I(q);e.vertical?(t.currentY=te,$=(t.startY-t.currentY)/u.value*100):(t.currentX=ne,$=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+$,j(t.newPosition)}},H=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||x(),t.isClick||j(t.newPosition),f()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",H),window.removeEventListener("touchend",H),window.removeEventListener("contextmenu",H))},j=async q=>{if(q===null||Number.isNaN(+q))return;q<0?q=0:q>100&&(q=100);const $=100/((o.value-a.value)/i.value);let te=Math.round(q/$)*$*(o.value-a.value)*.01+a.value;te=Number.parseFloat(te.toFixed(s.value)),te!==e.modelValue&&n(rr,te),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await c.nextTick(),t.dragging&&v(),h.value.updatePopper()};return c.watch(()=>t.dragging,q=>{g(q)}),{disabled:r,button:k,tooltip:h,tooltipVisible:y,showTooltip:l,wrapperStyle:S,formatValue:b,handleMouseEnter:T,handleMouseLeave:C,onButtonDown:A,onKeyDown:G,setPosition:j}},DG=(e,t,n,r)=>({stops:c.computed(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return yr("ElSlider","step should not be 0."),[];const i=(e.max-e.min)/e.step,l=100*e.step/(e.max-e.min),s=Array.from({length:i-1}).map((u,d)=>(d+1)*l);return e.range?s.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):s.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:i=>e.vertical?{bottom:`${i}%`}:{left:`${i}%`}}),PG=(e,t,n,r,a,o)=>{const i=u=>{a(rr,u),a(ds,u)},l=()=>e.range?![n.value,r.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,s=()=>{var u,d;e.min>e.max&&Jy("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]<e.min?i([e.min,e.min]):f[0]>e.max?i([e.max,e.max]):f[0]<e.min?i([e.min,f[1]]):f[1]>e.max?i([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],l()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(p=>yr(p))),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<e.min?i(e.min):f>e.max?i(e.max):(t.firstValue=f,l()&&(e.validateEvent&&((d=o==null?void 0:o.validate)==null||d.call(o,"change").catch(p=>yr(p))),t.oldValue=f)))};s(),c.watch(()=>t.dragging,u=>{u||s()}),c.watch(()=>e.modelValue,(u,d)=>{t.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((f,p)=>f===d[p])&&t.firstValue===u[0]&&t.secondValue===u[1]||s()},{deep:!0}),c.watch(()=>[e.min,e.max],()=>{s()})},RG=Xn({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ac,default:"top"}}),NG={[rr]:e=>Dn(e)},BG=["tabindex"],jG=c.defineComponent({name:"ElSliderButton"}),VG=c.defineComponent({...jG,props:RG,emits:NG,setup(e,{expose:t,emit:n}){const r=e,a=Pn("slider"),o=c.reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:i,button:l,tooltip:s,showTooltip:u,tooltipVisible:d,wrapperStyle:f,formatValue:p,handleMouseEnter:g,handleMouseLeave:h,onButtonDown:y,onKeyDown:b,setPosition:v}=IG(r,o,n),{hovering:x,dragging:k}=c.toRefs(o);return t({onButtonDown:y,onKeyDown:b,setPosition:v,hovering:x,dragging:k}),(_,S)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"button",ref:l,class:c.normalizeClass([c.unref(a).e("button-wrapper"),{hover:c.unref(x),dragging:c.unref(k)}]),style:c.normalizeStyle(c.unref(f)),tabindex:c.unref(i)?-1:0,onMouseenter:S[0]||(S[0]=(...T)=>c.unref(g)&&c.unref(g)(...T)),onMouseleave:S[1]||(S[1]=(...T)=>c.unref(h)&&c.unref(h)(...T)),onMousedown:S[2]||(S[2]=(...T)=>c.unref(y)&&c.unref(y)(...T)),onTouchstart:S[3]||(S[3]=(...T)=>c.unref(y)&&c.unref(y)(...T)),onFocus:S[4]||(S[4]=(...T)=>c.unref(g)&&c.unref(g)(...T)),onBlur:S[5]||(S[5]=(...T)=>c.unref(h)&&c.unref(h)(...T)),onKeydown:S[6]||(S[6]=(...T)=>c.unref(b)&&c.unref(b)(...T))},[c.createVNode(c.unref(qS),{ref_key:"tooltip",ref:s,visible:c.unref(d),placement:_.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_.tooltipClass,disabled:!c.unref(u),persistent:""},{content:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(c.unref(p)),1)]),default:c.withCtx(()=>[c.createElementVNode("div",{class:c.normalizeClass([c.unref(a).e("button"),{hover:c.unref(x),dragging:c.unref(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,BG))}});var uA=jn(VG,[["__file","button.vue"]]);const HG=Xn({mark:{type:sn([String,Object]),default:void 0}});var UG=c.defineComponent({name:"ElSliderMarker",props:HG,setup(e){const t=Pn("slider"),n=c.computed(()=>na(e.mark)?e.mark:e.mark.label),r=c.computed(()=>na(e.mark)?void 0:e.mark.style);return()=>c.h("div",{class:t.e("marks-text"),style:r.value},n.value)}});const qG=["id","role","aria-label","aria-labelledby"],WG={key:1},GG=c.defineComponent({name:"ElSlider"}),ZG=c.defineComponent({...GG,props:xG,emits:wG,setup(e,{expose:t,emit:n}){const r=e,a=Pn("slider"),{t:o}=ch(),i=c.reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:s,firstButton:u,secondButton:d,sliderDisabled:f,minValue:p,maxValue:g,runwayStyle:h,barStyle:y,resetSize:b,emitChange:v,onSliderWrapperPrevent:x,onSliderClick:k,onSliderDown:_,setFirstValue:S,setSecondValue:T}=TG(r,i,n),{stops:C,getStopStyle:A}=DG(r,i,p,g),{inputId:O,isLabeledByFormItem:F}=pv(r,{formItemContext:l}),R=Fc(),N=c.computed(()=>r.inputSize||R.value),B=c.computed(()=>r.label||o("el.slider.defaultLabel",{min:r.min,max:r.max})),V=c.computed(()=>r.range?r.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):B.value),Z=c.computed(()=>r.formatValueText?r.formatValueText(q.value):`${q.value}`),G=c.computed(()=>r.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),I=c.computed(()=>r.formatValueText?r.formatValueText($.value):`${$.value}`),P=c.computed(()=>[a.b(),a.m(R.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),z=kG(r);PG(r,i,p,g,n,l);const H=c.computed(()=>{const ee=[r.min,r.max,r.step].map(se=>{const U=`${se}`.split(".")[1];return U?U.length:0});return Math.max.apply(null,ee)}),{sliderWrapper:j}=_G(r,i,b),{firstValue:q,secondValue:$,sliderSize:ne}=c.toRefs(i),te=ee=>{i.dragging=ee};return c.provide(cA,{...c.toRefs(r),sliderSize:ne,disabled:f,precision:H,emitChange:v,resetSize:b,updateDragging:te}),t({onSliderClick:k}),(ee,se)=>{var U,Y;return c.openBlock(),c.createElementBlock("div",{id:ee.range?c.unref(O):void 0,ref_key:"sliderWrapper",ref:j,class:c.normalizeClass(c.unref(P)),role:ee.range?"group":void 0,"aria-label":ee.range&&!c.unref(F)?c.unref(B):void 0,"aria-labelledby":ee.range&&c.unref(F)?(U=c.unref(l))==null?void 0:U.labelId:void 0,onTouchstart:se[2]||(se[2]=(...J)=>c.unref(x)&&c.unref(x)(...J)),onTouchmove:se[3]||(se[3]=(...J)=>c.unref(x)&&c.unref(x)(...J))},[c.createElementVNode("div",{ref_key:"slider",ref:s,class:c.normalizeClass([c.unref(a).e("runway"),{"show-input":ee.showInput&&!ee.range},c.unref(a).is("disabled",c.unref(f))]),style:c.normalizeStyle(c.unref(h)),onMousedown:se[0]||(se[0]=(...J)=>c.unref(_)&&c.unref(_)(...J)),onTouchstart:se[1]||(se[1]=(...J)=>c.unref(_)&&c.unref(_)(...J))},[c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).e("bar")),style:c.normalizeStyle(c.unref(y))},null,6),c.createVNode(uA,{id:ee.range?void 0:c.unref(O),ref_key:"firstButton",ref:u,"model-value":c.unref(q),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":ee.range||!c.unref(F)?c.unref(V):void 0,"aria-labelledby":!ee.range&&c.unref(F)?(Y=c.unref(l))==null?void 0:Y.labelId:void 0,"aria-valuemin":ee.min,"aria-valuemax":ee.range?c.unref($):ee.max,"aria-valuenow":c.unref(q),"aria-valuetext":c.unref(Z),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":c.unref(f),"onUpdate:modelValue":c.unref(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),ee.range?(c.openBlock(),c.createBlock(uA,{key:0,ref_key:"secondButton",ref:d,"model-value":c.unref($),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":c.unref(G),"aria-valuemin":c.unref(q),"aria-valuemax":ee.max,"aria-valuenow":c.unref($),"aria-valuetext":c.unref(I),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":c.unref(f),"onUpdate:modelValue":c.unref(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):c.createCommentVNode("v-if",!0),ee.showStops?(c.openBlock(),c.createElementBlock("div",WG,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(C),(J,re)=>(c.openBlock(),c.createElementBlock("div",{key:re,class:c.normalizeClass(c.unref(a).e("stop")),style:c.normalizeStyle(c.unref(A)(J))},null,6))),128))])):c.createCommentVNode("v-if",!0),c.unref(z).length>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createElementVNode("div",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(z),(J,re)=>(c.openBlock(),c.createElementBlock("div",{key:re,style:c.normalizeStyle(c.unref(A)(J.position)),class:c.normalizeClass([c.unref(a).e("stop"),c.unref(a).e("marks-stop")])},null,6))),128))]),c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).e("marks"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(z),(J,re)=>(c.openBlock(),c.createBlock(c.unref(UG),{key:re,mark:J.mark,style:c.normalizeStyle(c.unref(A)(J.position))},null,8,["mark","style"]))),128))],2)],64)):c.createCommentVNode("v-if",!0)],38),ee.showInput&&!ee.range?(c.openBlock(),c.createBlock(c.unref(Cv),{key:0,ref:"input","model-value":c.unref(q),class:c.normalizeClass(c.unref(a).e("input")),step:ee.step,disabled:c.unref(f),controls:ee.showInputControls,min:ee.min,max:ee.max,debounce:ee.debounce,size:c.unref(N),"onUpdate:modelValue":c.unref(S),onChange:c.unref(v)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):c.createCommentVNode("v-if",!0)],42,qG)}}});var KG=jn(ZG,[["__file","slider.vue"]]);const dA=mo(KG);function YG(e){let t;const n=c.ref(!1),r=c.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){r.text=p}function o(){const p=r.parent,g=f.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(lh(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),lh(p,g.bm("parent","hidden"))}i(),d.unmount()}function i(){var p,g;(g=(p=f.$el)==null?void 0:p.parentNode)==null||g.removeChild(f.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(s,400),r.visible=!1,(p=e.closed)==null||p.call(e))}function s(){if(!n.value)return;const p=r.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const u=c.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:y}=PU("loading");return g({ns:h,zIndex:y}),()=>{const b=r.spinner||r.svg,v=c.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[c.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=r.text?c.h("p",{class:h.b("text")},[r.text]):void 0;return c.h(c.Transition,{name:h.b("fade"),onAfterLeave:s},{default:c.withCtx(()=>[c.withDirectives(c.createVNode("div",{style:{backgroundColor:r.background||""},class:[h.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[c.h("div",{class:h.b("spinner")},[v,x])]),[[c.vShow,r.visible]])])})}}}),d=c.createApp(u),f=d.mount(document.createElement("div"));return{...c.toRefs(r),setText:a,removeElLoadingChild:i,close:l,handleAfterLeave:s,vm:f,get $el(){return f.$el}}}let Mh;const Lv=function(e={}){if(!kr)return;const t=JG(e);if(t.fullscreen&&Mh)return Mh;const n=YG({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Mh=void 0)}});QG(t,t.parent,n),fA(t,t.parent,n),t.parent.vLoadingAddClassList=()=>fA(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),c.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(Mh=n),n},JG=e=>{var t,n,r,a;let o;return na(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:o}},QG=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Od(document.body,"position"),n.originalOverflow.value=Od(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Od(document.body,"position"),await c.nextTick();for(const o of["top","left"]){const i=o==="top"?"scrollTop":"scrollLeft";a[o]=`${e.target.getBoundingClientRect()[o]+document.body[i]+document.documentElement[i]-Number.parseInt(Od(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Od(t,"position");for(const[o,i]of Object.entries(a))n.$el.style[o]=i},fA=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?lh(t,r.bm("parent","relative")):zT(t,r.bm("parent","relative")),e.fullscreen&&e.lock?zT(t,r.bm("parent","hidden")):lh(t,r.bm("parent","hidden"))},Ch=Symbol("ElLoading"),pA=(e,t)=>{var n,r,a,o;const i=t.instance,l=p=>ra(t.value)?t.value[p]:void 0,s=p=>{const g=na(p)&&(i==null?void 0:i[p])||p;return g&&c.ref(g)},u=p=>s(l(p)||e.getAttribute(`element-loading-${c7(p)}`)),d=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=l("target"))!=null?r:d?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(o=l("lock"))!=null?o:t.modifiers.lock};e[Ch]={options:f,instance:Lv(f)}},XG=(e,t)=>{for(const n of Object.keys(t))c.isRef(t[n])&&(t[n].value=e[n])},zv={mounted(e,t){t.value&&pA(e,t)},updated(e,t){const n=e[Ch];t.oldValue!==t.value&&(t.value&&!t.oldValue?pA(e,t):t.value&&t.oldValue?ra(t.value)&&XG(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ch])==null||t.instance.close(),e[Ch]=null}},$G={install(e){e.directive("loading",zv),e.config.globalProperties.$loading=Lv},directive:zv,service:Lv},hA="simcore/services/comp/opencor";function mA(e,t,n){if(t!==void 0){let r=new RegExp(`\\b${t}\\b`,"g");e=e.replace(r,n)}return e}function Fv(e,t){let n=-1;return e.simulationUiInfo.input.forEach(r=>{++n,t=mA(t,r.id,e.$refs.simInput[n].vModel)}),Function("return "+t+";")()}function gA(e,t,n,r){return e.simulationUiInfo.output.data.forEach(a=>{n=mA(n,a.id,t[e.simulationDataId[a.id]][r])}),Function("return "+n+";")()}function eZ(e){e.simulationUiInfo.output.data.forEach(n=>{e.simulationDataId[n.id]=n.name});let t=-1;e.simulationUiInfo.output.plots.forEach(n=>{++t,e.layout[t]={margin:{t:5,l:55,r:55,b:90,pad:4},dragmode:"pan",xaxis:{title:{text:n.xAxisTitle,font:{size:10}}},yaxis:{title:{text:n.yAxisTitle,font:{size:10}}}},e.simulationData[t]=[{}]})}function yA(e){!e.hasFinalisedUi&&e.isMounted&&e.hasValidSimulationUiInfo&&(e.$refs.output.classList.add("x"+e.simulationUiInfo.output.plots.length),vA(e),e.hasFinalisedUi=!0)}function vA(e){e.$nextTick(()=>{let t=-1;e.simulationUiInfo.input.forEach(n=>{++t,e.$refs.simInput[t].visible=n.visible===void 0?!0:Fv(e,n.visible)})})}const bA=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},tZ={name:"SimulationVuerInput",components:{ElInputNumber:Cv,ElOption:sA,ElSelect:lA,ElSlider:dA},props:{defaultValue:{required:!0,type:Number},maximumValue:{type:Number},minimumValue:{type:Number},name:{required:!0,type:String},possibleValues:{type:Array},stepValue:{type:Number}},data:function(){return{isDiscrete:this.possibleValues!==void 0,labelClasses:"default "+(this.possibleValues!==void 0?"discrete":"scalar"),visible:!0,vModel:this.defaultValue}},methods:{updateUi:function(){vA(this.$parent)}}},nZ={key:1,class:"sliders-and-fields"};function rZ(e,t,n,r,a,o){const i=sA,l=lA,s=dA,u=Cv;return c.withDirectives((c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("p",{class:c.normalizeClass(e.labelClasses)},c.toDisplayString(n.name),3),e.isDiscrete?(c.openBlock(),c.createBlock(l,{key:0,class:"discrete","popper-class":"discrete-popper",size:"small",modelValue:e.vModel,"onUpdate:modelValue":t[0]||(t[0]=d=>e.vModel=d),teleport:!1,onChange:t[1]||(t[1]=d=>o.updateUi())},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.possibleValues,d=>(c.openBlock(),c.createBlock(i,{key:d.value,label:d.name,value:d.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):c.createCommentVNode("",!0),e.isDiscrete?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",nZ,[c.createVNode(s,{modelValue:e.vModel,"onUpdate:modelValue":t[2]||(t[2]=d=>e.vModel=d),max:n.maximumValue,min:n.minimumValue,"show-input":!1,"show-tooltip":!1,step:n.stepValue,onChange:t[3]||(t[3]=d=>o.updateUi())},null,8,["modelValue","max","min","step"]),c.createVNode(u,{class:"scalar",size:"small",modelValue:e.vModel,"onUpdate:modelValue":t[4]||(t[4]=d=>e.vModel=d),controls:!1,max:n.maximumValue,min:n.minimumValue,step:n.stepValue,"step-strictly":!0,onInput:t[5]||(t[5]=d=>o.updateUi())},null,8,["modelValue","max","min","step"])]))],512)),[[c.vShow,e.visible]])}const xA=bA(tZ,[["render",rZ],["__scopeId","data-v-7449c077"]]);function aZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wA={exports:{}},ar=wA.exports={},Zo,Ko;function Iv(){throw new Error("setTimeout has not been defined")}function Dv(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Zo=setTimeout:Zo=Iv}catch{Zo=Iv}try{typeof clearTimeout=="function"?Ko=clearTimeout:Ko=Dv}catch{Ko=Dv}})();function _A(e){if(Zo===setTimeout)return setTimeout(e,0);if((Zo===Iv||!Zo)&&setTimeout)return Zo=setTimeout,setTimeout(e,0);try{return Zo(e,0)}catch{try{return Zo.call(null,e,0)}catch{return Zo.call(this,e,0)}}}function oZ(e){if(Ko===clearTimeout)return clearTimeout(e);if((Ko===Dv||!Ko)&&clearTimeout)return Ko=clearTimeout,clearTimeout(e);try{return Ko(e)}catch{try{return Ko.call(null,e)}catch{return Ko.call(this,e)}}}var Di=[],Pc=!1,ms,Oh=-1;function iZ(){!Pc||!ms||(Pc=!1,ms.length?Di=ms.concat(Di):Oh=-1,Di.length&&kA())}function kA(){if(!Pc){var e=_A(iZ);Pc=!0;for(var t=Di.length;t;){for(ms=Di,Di=[];++Oh<t;)ms&&ms[Oh].run();Oh=-1,t=Di.length}ms=null,Pc=!1,oZ(e)}}ar.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Di.push(new TA(e,t)),Di.length===1&&!Pc&&_A(kA)};function TA(e,t){this.fun=e,this.array=t}TA.prototype.run=function(){this.fun.apply(null,this.array)},ar.title="browser",ar.browser=!0,ar.env={},ar.argv=[],ar.version="",ar.versions={};function Pi(){}ar.on=Pi,ar.addListener=Pi,ar.once=Pi,ar.off=Pi,ar.removeListener=Pi,ar.removeAllListeners=Pi,ar.emit=Pi,ar.prependListener=Pi,ar.prependOnceListener=Pi,ar.listeners=function(e){return[]},ar.binding=function(e){throw new Error("process.binding is not supported")},ar.cwd=function(){return"/"},ar.chdir=function(e){throw new Error("process.chdir is not supported")},ar.umask=function(){return 0};var lZ=wA.exports;const Rc=aZ(lZ),Ri=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e==null?void 0:e(r);if(n===!1||!a)return t==null?void 0:t(r)},Nc=globalThis||void 0||self;var SA;const Nr=typeof window<"u",sZ=e=>typeof e=="string",AA=()=>{},cZ=Nr&&((SA=window==null?void 0:window.navigator)==null?void 0:SA.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function MA(e){return typeof e=="function"?e():c.unref(e)}function uZ(e){return e}function Eh(e){return c.getCurrentScope()?(c.onScopeDispose(e),!0):!1}function dZ(e,t=!0){c.getCurrentInstance()?c.onMounted(e):t?e():c.nextTick(e)}function Ni(e){var t;const n=MA(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lh=Nr?window:void 0;function gs(...e){let t,n,r,a;if(sZ(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Lh):[t,n,r,a]=e,!t)return AA;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(d=>d()),o.length=0},l=(d,f,p,g)=>(d.addEventListener(f,p,g),()=>d.removeEventListener(f,p,g)),s=c.watch(()=>[Ni(t),MA(a)],([d,f])=>{i(),d&&o.push(...n.flatMap(p=>r.map(g=>l(d,p,g,f))))},{immediate:!0,flush:"post"}),u=()=>{s(),i()};return Eh(u),u}let CA=!1;function fZ(e,t,n={}){const{window:r=Lh,ignore:a=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return;cZ&&!CA&&(CA=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",AA)));let l=!0;const s=d=>a.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Ni(f);return p&&(d.target===p||d.composedPath().includes(p))}}),u=[gs(r,"click",d=>{const f=Ni(e);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(l=!s(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),gs(r,"pointerdown",d=>{const f=Ni(e);f&&(l=!d.composedPath().includes(f)&&!s(d))},{passive:!0}),i&&gs(r,"blur",d=>{var f;const p=Ni(e);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function OA(e,t=!1){const n=c.ref(),r=()=>n.value=!!e();return r(),dZ(r,t),n}const Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Nc<"u"?Nc:typeof self<"u"?self:{},Rv="__vueuse_ssr_handlers__";Pv[Rv]=Pv[Rv]||{},Pv[Rv];var EA=Object.getOwnPropertySymbols,pZ=Object.prototype.hasOwnProperty,hZ=Object.prototype.propertyIsEnumerable,mZ=(e,t)=>{var n={};for(var r in e)pZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&EA)for(var r of EA(e))t.indexOf(r)<0&&hZ.call(e,r)&&(n[r]=e[r]);return n};function Bi(e,t,n={}){const r=n,{window:a=Lh}=r,o=mZ(r,["window"]);let i;const l=OA(()=>a&&"ResizeObserver"in a),s=()=>{i&&(i.disconnect(),i=void 0)},u=c.watch(()=>Ni(e),f=>{s(),l.value&&a&&f&&(i=new ResizeObserver(t),i.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Eh(d),{isSupported:l,stop:d}}var LA=Object.getOwnPropertySymbols,gZ=Object.prototype.hasOwnProperty,yZ=Object.prototype.propertyIsEnumerable,vZ=(e,t)=>{var n={};for(var r in e)gZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&LA)for(var r of LA(e))t.indexOf(r)<0&&yZ.call(e,r)&&(n[r]=e[r]);return n};function bZ(e,t,n={}){const r=n,{window:a=Lh}=r,o=vZ(r,["window"]);let i;const l=OA(()=>a&&"MutationObserver"in a),s=()=>{i&&(i.disconnect(),i=void 0)},u=c.watch(()=>Ni(e),f=>{s(),l.value&&a&&f&&(i=new MutationObserver(t),i.observe(f,o))},{immediate:!0}),d=()=>{s(),u()};return Eh(d),{isSupported:l,stop:d}}var zA;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(zA||(zA={}));var xZ=Object.defineProperty,FA=Object.getOwnPropertySymbols,wZ=Object.prototype.hasOwnProperty,_Z=Object.prototype.propertyIsEnumerable,IA=(e,t,n)=>t in e?xZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kZ=(e,t)=>{for(var n in t||(t={}))wZ.call(t,n)&&IA(e,n,t[n]);if(FA)for(var n of FA(t))_Z.call(t,n)&&IA(e,n,t[n]);return e};kZ({linear:uZ},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const TZ=()=>Nr&&/firefox/i.test(window.navigator.userAgent);Rc.env.NODE_ENV!=="production"&&Object.freeze({}),Rc.env.NODE_ENV!=="production"&&Object.freeze([]);const Nd=()=>{},SZ=Object.prototype.hasOwnProperty,DA=(e,t)=>SZ.call(e,t),Na=Array.isArray,Ba=e=>typeof e=="function",Yo=e=>typeof e=="string",ja=e=>e!==null&&typeof e=="object",AZ=Object.prototype.toString,MZ=e=>AZ.call(e),Nv=e=>MZ(e).slice(8,-1);var PA=typeof Nc=="object"&&Nc&&Nc.Object===Object&&Nc,CZ=typeof self=="object"&&self&&self.Object===Object&&self,Jo=PA||CZ||Function("return this")(),gl=Jo.Symbol,RA=Object.prototype,OZ=RA.hasOwnProperty,EZ=RA.toString,Bd=gl?gl.toStringTag:void 0;function LZ(e){var t=OZ.call(e,Bd),n=e[Bd];try{e[Bd]=void 0;var r=!0}catch{}var a=EZ.call(e);return r&&(t?e[Bd]=n:delete e[Bd]),a}var zZ=Object.prototype,FZ=zZ.toString;function IZ(e){return FZ.call(e)}var DZ="[object Null]",PZ="[object Undefined]",NA=gl?gl.toStringTag:void 0;function Bc(e){return e==null?e===void 0?PZ:DZ:NA&&NA in Object(e)?LZ(e):IZ(e)}function jc(e){return e!=null&&typeof e=="object"}var RZ="[object Symbol]";function zh(e){return typeof e=="symbol"||jc(e)&&Bc(e)==RZ}function NZ(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Qo=Array.isArray,BZ=1/0,BA=gl?gl.prototype:void 0,jA=BA?BA.toString:void 0;function VA(e){if(typeof e=="string")return e;if(Qo(e))return NZ(e,VA)+"";if(zh(e))return jA?jA.call(e):"";var t=e+"";return t=="0"&&1/e==-BZ?"-0":t}var jZ=/\s/;function VZ(e){for(var t=e.length;t--&&jZ.test(e.charAt(t)););return t}var HZ=/^\s+/;function UZ(e){return e&&e.slice(0,VZ(e)+1).replace(HZ,"")}function Vc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var HA=NaN,qZ=/^[-+]0x[0-9a-f]+$/i,WZ=/^0b[01]+$/i,GZ=/^0o[0-7]+$/i,ZZ=parseInt;function Bv(e){if(typeof e=="number")return e;if(zh(e))return HA;if(Vc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=UZ(e);var n=WZ.test(e);return n||GZ.test(e)?ZZ(e.slice(2),n?2:8):qZ.test(e)?HA:+e}var UA=1/0,KZ=17976931348623157e292;function YZ(e){if(!e)return e===0?e:0;if(e=Bv(e),e===UA||e===-UA){var t=e<0?-1:1;return t*KZ}return e===e?e:0}function JZ(e){var t=YZ(e),n=t%1;return t===t?n?t-n:t:0}function QZ(e){return e}var XZ="[object AsyncFunction]",$Z="[object Function]",eK="[object GeneratorFunction]",tK="[object Proxy]";function qA(e){if(!Vc(e))return!1;var t=Bc(e);return t==$Z||t==eK||t==XZ||t==tK}var jv=Jo["__core-js_shared__"],WA=function(){var e=/[^.]+$/.exec(jv&&jv.keys&&jv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nK(e){return!!WA&&WA in e}var rK=Function.prototype,aK=rK.toString;function ys(e){if(e!=null){try{return aK.call(e)}catch{}try{return e+""}catch{}}return""}var oK=/[\\^$.*+?()[\]{}|]/g,iK=/^\[object .+?Constructor\]$/,lK=Function.prototype,sK=Object.prototype,cK=lK.toString,uK=sK.hasOwnProperty,dK=RegExp("^"+cK.call(uK).replace(oK,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fK(e){if(!Vc(e)||nK(e))return!1;var t=qA(e)?dK:iK;return t.test(ys(e))}function pK(e,t){return e==null?void 0:e[t]}function Hc(e,t){var n=pK(e,t);return fK(n)?n:void 0}var Vv=Hc(Jo,"WeakMap");function hK(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}var mK=9007199254740991,gK=/^(?:0|[1-9]\d*)$/;function GA(e,t){var n=typeof e;return t=t??mK,!!t&&(n=="number"||n!="symbol"&&gK.test(e))&&e>-1&&e%1==0&&e<t}function ZA(e,t){return e===t||e!==e&&t!==t}var yK=9007199254740991;function Hv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yK}function vK(e){return e!=null&&Hv(e.length)&&!qA(e)}var bK=Object.prototype;function xK(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bK;return e===n}function wK(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var _K="[object Arguments]";function KA(e){return jc(e)&&Bc(e)==_K}var YA=Object.prototype,kK=YA.hasOwnProperty,TK=YA.propertyIsEnumerable,JA=KA(function(){return arguments}())?KA:function(e){return jc(e)&&kK.call(e,"callee")&&!TK.call(e,"callee")};function SK(){return!1}var QA=typeof qn=="object"&&qn&&!qn.nodeType&&qn,XA=QA&&typeof module=="object"&&module&&!module.nodeType&&module,AK=XA&&XA.exports===QA,$A=AK?Jo.Buffer:void 0,MK=$A?$A.isBuffer:void 0,Uv=MK||SK,CK="[object Arguments]",OK="[object Array]",EK="[object Boolean]",LK="[object Date]",zK="[object Error]",FK="[object Function]",IK="[object Map]",DK="[object Number]",PK="[object Object]",RK="[object RegExp]",NK="[object Set]",BK="[object String]",jK="[object WeakMap]",VK="[object ArrayBuffer]",HK="[object DataView]",UK="[object Float32Array]",qK="[object Float64Array]",WK="[object Int8Array]",GK="[object Int16Array]",ZK="[object Int32Array]",KK="[object Uint8Array]",YK="[object Uint8ClampedArray]",JK="[object Uint16Array]",QK="[object Uint32Array]",Rn={};Rn[UK]=Rn[qK]=Rn[WK]=Rn[GK]=Rn[ZK]=Rn[KK]=Rn[YK]=Rn[JK]=Rn[QK]=!0,Rn[CK]=Rn[OK]=Rn[VK]=Rn[EK]=Rn[HK]=Rn[LK]=Rn[zK]=Rn[FK]=Rn[IK]=Rn[DK]=Rn[PK]=Rn[RK]=Rn[NK]=Rn[BK]=Rn[jK]=!1;function XK(e){return jc(e)&&Hv(e.length)&&!!Rn[Bc(e)]}function $K(e){return function(t){return e(t)}}var eM=typeof qn=="object"&&qn&&!qn.nodeType&&qn,jd=eM&&typeof module=="object"&&module&&!module.nodeType&&module,eY=jd&&jd.exports===eM,qv=eY&&PA.process,tM=function(){try{var e=jd&&jd.require&&jd.require("util").types;return e||qv&&qv.binding&&qv.binding("util")}catch{}}(),nM=tM&&tM.isTypedArray,rM=nM?$K(nM):XK,tY=Object.prototype,nY=tY.hasOwnProperty;function rY(e,t){var n=Qo(e),r=!n&&JA(e),a=!n&&!r&&Uv(e),o=!n&&!r&&!a&&rM(e),i=n||r||a||o,l=i?wK(e.length,String):[],s=l.length;for(var u in e)(t||nY.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GA(u,s)))&&l.push(u);return l}function aY(e,t){return function(n){return e(t(n))}}var oY=aY(Object.keys,Object),iY=Object.prototype,lY=iY.hasOwnProperty;function sY(e){if(!xK(e))return oY(e);var t=[];for(var n in Object(e))lY.call(e,n)&&n!="constructor"&&t.push(n);return t}function aM(e){return vK(e)?rY(e):sY(e)}var cY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uY=/^\w*$/;function Wv(e,t){if(Qo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zh(e)?!0:uY.test(e)||!cY.test(e)||t!=null&&e in Object(t)}var Vd=Hc(Object,"create");function dY(){this.__data__=Vd?Vd(null):{},this.size=0}function fY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pY="__lodash_hash_undefined__",hY=Object.prototype,mY=hY.hasOwnProperty;function gY(e){var t=this.__data__;if(Vd){var n=t[e];return n===pY?void 0:n}return mY.call(t,e)?t[e]:void 0}var yY=Object.prototype,vY=yY.hasOwnProperty;function bY(e){var t=this.__data__;return Vd?t[e]!==void 0:vY.call(t,e)}var xY="__lodash_hash_undefined__";function wY(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vd&&t===void 0?xY:t,this}function vs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vs.prototype.clear=dY,vs.prototype.delete=fY,vs.prototype.get=gY,vs.prototype.has=bY,vs.prototype.set=wY;function _Y(){this.__data__=[],this.size=0}function Fh(e,t){for(var n=e.length;n--;)if(ZA(e[n][0],t))return n;return-1}var kY=Array.prototype,TY=kY.splice;function SY(e){var t=this.__data__,n=Fh(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():TY.call(t,n,1),--this.size,!0}function AY(e){var t=this.__data__,n=Fh(t,e);return n<0?void 0:t[n][1]}function MY(e){return Fh(this.__data__,e)>-1}function CY(e,t){var n=this.__data__,r=Fh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ji(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ji.prototype.clear=_Y,ji.prototype.delete=SY,ji.prototype.get=AY,ji.prototype.has=MY,ji.prototype.set=CY;var Hd=Hc(Jo,"Map");function OY(){this.size=0,this.__data__={hash:new vs,map:new(Hd||ji),string:new vs}}function EY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ih(e,t){var n=e.__data__;return EY(t)?n[typeof t=="string"?"string":"hash"]:n.map}function LY(e){var t=Ih(this,e).delete(e);return this.size-=t?1:0,t}function zY(e){return Ih(this,e).get(e)}function FY(e){return Ih(this,e).has(e)}function IY(e,t){var n=Ih(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vi.prototype.clear=OY,Vi.prototype.delete=LY,Vi.prototype.get=zY,Vi.prototype.has=FY,Vi.prototype.set=IY;var DY="Expected a function";function Gv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DY);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Gv.Cache||Vi),n}Gv.Cache=Vi;var PY=500;function RY(e){var t=Gv(e,function(r){return n.size===PY&&n.clear(),r}),n=t.cache;return t}var NY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BY=/\\(\\)?/g,jY=RY(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(NY,function(n,r,a,o){t.push(a?o.replace(BY,"$1"):r||n)}),t});function VY(e){return e==null?"":VA(e)}function oM(e,t){return Qo(e)?e:Wv(e,t)?[e]:jY(VY(e))}var HY=1/0;function Dh(e){if(typeof e=="string"||zh(e))return e;var t=e+"";return t=="0"&&1/e==-HY?"-0":t}function iM(e,t){t=oM(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Dh(t[n++])];return n&&n==r?e:void 0}function Hi(e,t,n){var r=e==null?void 0:iM(e,t);return r===void 0?n:r}function UY(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function lM(){if(!arguments.length)return[];var e=arguments[0];return Qo(e)?e:[e]}function qY(){this.__data__=new ji,this.size=0}function WY(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function GY(e){return this.__data__.get(e)}function ZY(e){return this.__data__.has(e)}var KY=200;function YY(e,t){var n=this.__data__;if(n instanceof ji){var r=n.__data__;if(!Hd||r.length<KY-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vi(r)}return n.set(e,t),this.size=n.size,this}function Ui(e){var t=this.__data__=new ji(e);this.size=t.size}Ui.prototype.clear=qY,Ui.prototype.delete=WY,Ui.prototype.get=GY,Ui.prototype.has=ZY,Ui.prototype.set=YY;function JY(e,t){for(var n=-1,r=e==null?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function QY(){return[]}var XY=Object.prototype,$Y=XY.propertyIsEnumerable,sM=Object.getOwnPropertySymbols,eJ=sM?function(e){return e==null?[]:(e=Object(e),JY(sM(e),function(t){return $Y.call(e,t)}))}:QY;const tJ=eJ;function nJ(e,t,n){var r=t(e);return Qo(e)?r:UY(r,n(e))}function cM(e){return nJ(e,aM,tJ)}var Zv=Hc(Jo,"DataView"),Kv=Hc(Jo,"Promise"),Yv=Hc(Jo,"Set"),uM="[object Map]",rJ="[object Object]",dM="[object Promise]",fM="[object Set]",pM="[object WeakMap]",hM="[object DataView]",aJ=ys(Zv),oJ=ys(Hd),iJ=ys(Kv),lJ=ys(Yv),sJ=ys(Vv),bs=Bc;(Zv&&bs(new Zv(new ArrayBuffer(1)))!=hM||Hd&&bs(new Hd)!=uM||Kv&&bs(Kv.resolve())!=dM||Yv&&bs(new Yv)!=fM||Vv&&bs(new Vv)!=pM)&&(bs=function(e){var t=Bc(e),n=t==rJ?e.constructor:void 0,r=n?ys(n):"";if(r)switch(r){case aJ:return hM;case oJ:return uM;case iJ:return dM;case lJ:return fM;case sJ:return pM}return t});const mM=bs;var cJ=Jo.Uint8Array;const gM=cJ;var uJ="__lodash_hash_undefined__";function dJ(e){return this.__data__.set(e,uJ),this}function fJ(e){return this.__data__.has(e)}function Ph(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Vi;++t<n;)this.add(e[t])}Ph.prototype.add=Ph.prototype.push=dJ,Ph.prototype.has=fJ;function pJ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function hJ(e,t){return e.has(t)}var mJ=1,gJ=2;function yM(e,t,n,r,a,o){var i=n&mJ,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,g=n&gJ?new Ph:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],y=t[f];if(r)var b=i?r(y,h,f,t,e,o):r(h,y,f,e,t,o);if(b!==void 0){if(b)continue;p=!1;break}if(g){if(!pJ(t,function(v,x){if(!hJ(g,x)&&(h===v||a(h,v,n,r,o)))return g.push(x)})){p=!1;break}}else if(!(h===y||a(h,y,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function yJ(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function vJ(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var bJ=1,xJ=2,wJ="[object Boolean]",_J="[object Date]",kJ="[object Error]",TJ="[object Map]",SJ="[object Number]",AJ="[object RegExp]",MJ="[object Set]",CJ="[object String]",OJ="[object Symbol]",EJ="[object ArrayBuffer]",LJ="[object DataView]",vM=gl?gl.prototype:void 0,Jv=vM?vM.valueOf:void 0;function zJ(e,t,n,r,a,o,i){switch(n){case LJ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case EJ:return!(e.byteLength!=t.byteLength||!o(new gM(e),new gM(t)));case wJ:case _J:case SJ:return ZA(+e,+t);case kJ:return e.name==t.name&&e.message==t.message;case AJ:case CJ:return e==t+"";case TJ:var l=yJ;case MJ:var s=r&bJ;if(l||(l=vJ),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=xJ,i.set(e,t);var d=yM(l(e),l(t),r,a,o,i);return i.delete(e),d;case OJ:if(Jv)return Jv.call(e)==Jv.call(t)}return!1}var FJ=1,IJ=Object.prototype,DJ=IJ.hasOwnProperty;function PJ(e,t,n,r,a,o){var i=n&FJ,l=cM(e),s=l.length,u=cM(t),d=u.length;if(s!=d&&!i)return!1;for(var f=s;f--;){var p=l[f];if(!(i?p in t:DJ.call(t,p)))return!1}var g=o.get(e),h=o.get(t);if(g&&h)return g==t&&h==e;var y=!0;o.set(e,t),o.set(t,e);for(var b=i;++f<s;){p=l[f];var v=e[p],x=t[p];if(r)var k=i?r(x,v,p,t,e,o):r(v,x,p,e,t,o);if(!(k===void 0?v===x||a(v,x,n,r,o):k)){y=!1;break}b||(b=p=="constructor")}if(y&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(y=!1)}return o.delete(e),o.delete(t),y}var RJ=1,bM="[object Arguments]",xM="[object Array]",Rh="[object Object]",NJ=Object.prototype,wM=NJ.hasOwnProperty;function BJ(e,t,n,r,a,o){var i=Qo(e),l=Qo(t),s=i?xM:mM(e),u=l?xM:mM(t);s=s==bM?Rh:s,u=u==bM?Rh:u;var d=s==Rh,f=u==Rh,p=s==u;if(p&&Uv(e)){if(!Uv(t))return!1;i=!0,d=!1}if(p&&!d)return o||(o=new Ui),i||rM(e)?yM(e,t,n,r,a,o):zJ(e,t,s,n,r,a,o);if(!(n&RJ)){var g=d&&wM.call(e,"__wrapped__"),h=f&&wM.call(t,"__wrapped__");if(g||h){var y=g?e.value():e,b=h?t.value():t;return o||(o=new Ui),a(y,b,n,r,o)}}return p?(o||(o=new Ui),PJ(e,t,n,r,a,o)):!1}function Nh(e,t,n,r,a){return e===t?!0:e==null||t==null||!jc(e)&&!jc(t)?e!==e&&t!==t:BJ(e,t,n,r,Nh,a)}var jJ=1,VJ=2;function HJ(e,t,n,r){var a=n.length,o=a,i=!r;if(e==null)return!o;for(e=Object(e);a--;){var l=n[a];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){l=n[a];var s=l[0],u=e[s],d=l[1];if(i&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new Ui;if(r)var p=r(u,d,s,e,t,f);if(!(p===void 0?Nh(d,u,jJ|VJ,r,f):p))return!1}}return!0}function _M(e){return e===e&&!Vc(e)}function UJ(e){for(var t=aM(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,_M(a)]}return t}function kM(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function qJ(e){var t=UJ(e);return t.length==1&&t[0][2]?kM(t[0][0],t[0][1]):function(n){return n===e||HJ(n,e,t)}}function WJ(e,t){return e!=null&&t in Object(e)}function GJ(e,t,n){t=oM(t,e);for(var r=-1,a=t.length,o=!1;++r<a;){var i=Dh(t[r]);if(!(o=e!=null&&n(e,i)))break;e=e[i]}return o||++r!=a?o:(a=e==null?0:e.length,!!a&&Hv(a)&&GA(i,a)&&(Qo(e)||JA(e)))}function ZJ(e,t){return e!=null&&GJ(e,t,WJ)}var KJ=1,YJ=2;function JJ(e,t){return Wv(e)&&_M(t)?kM(Dh(e),t):function(n){var r=Hi(n,e);return r===void 0&&r===t?ZJ(n,e):Nh(t,r,KJ|YJ)}}function QJ(e){return function(t){return t==null?void 0:t[e]}}function XJ(e){return function(t){return iM(t,e)}}function $J(e){return Wv(e)?QJ(Dh(e)):XJ(e)}function eQ(e){return typeof e=="function"?e:e==null?QZ:typeof e=="object"?Qo(e)?JJ(e[0],e[1]):qJ(e):$J(e)}var Qv=function(){return Jo.Date.now()},tQ="Expected a function",nQ=Math.max,rQ=Math.min;function aQ(e,t,n){var r,a,o,i,l,s,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(tQ);t=Bv(t)||0,Vc(n)&&(d=!!n.leading,f="maxWait"in n,o=f?nQ(Bv(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function g(T){var C=r,A=a;return r=a=void 0,u=T,i=e.apply(A,C),i}function h(T){return u=T,l=setTimeout(v,t),d?g(T):i}function y(T){var C=T-s,A=T-u,O=t-C;return f?rQ(O,o-A):O}function b(T){var C=T-s,A=T-u;return s===void 0||C>=t||C<0||f&&A>=o}function v(){var T=Qv();if(b(T))return x(T);l=setTimeout(v,y(T))}function x(T){return l=void 0,p&&r?g(T):(r=a=void 0,i)}function k(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function _(){return l===void 0?i:x(Qv())}function S(){var T=Qv(),C=b(T);if(r=arguments,a=this,s=T,C){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(v,t),g(s)}return l===void 0&&(l=setTimeout(v,t)),i}return S.cancel=k,S.flush=_,S}var oQ=Math.max,iQ=Math.min;function lQ(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=JZ(n),a=n<0?oQ(r+a,0):iQ(a,r-1)),hK(e,eQ(t),a,!0)}function Bh(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function Ud(e,t){return Nh(e,t)}function jh(e){return e==null}function sQ(e){return e===void 0}const TM=e=>e===void 0,Xv=e=>typeof e=="boolean",ia=e=>typeof e=="number",qd=e=>typeof Element>"u"?!1:e instanceof Element,cQ=e=>Yo(e)?!Number.isNaN(Number(e)):!1,uQ=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");class SM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function dQ(e,t){throw new SM(`[${e}] ${t}`)}function Va(e,t){if(Rc.env.NODE_ENV!=="production"){const n=Yo(e)?new SM(`[${e}] ${t}`):e;console.warn(n)}}const fQ="utils/dom/style";function Vh(e,t="px"){if(!e)return"";if(ia(e)||cQ(e))return`${e}${t}`;if(Yo(e))return e;Va(fQ,"binding value must be a string or number")}function pQ(e,t){if(!Nr)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((s,u)=>s+u.offsetTop,0),o=a+t.offsetHeight,i=e.scrollTop,l=i+e.clientHeight;a<i?e.scrollTop=a:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var hQ=c.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),mQ=hQ,gQ=c.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),yQ=gQ,vQ=c.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),c.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),bQ=vQ,xQ=c.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),$v=xQ,wQ=c.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),AM=wQ,_Q=c.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),c.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),kQ=_Q,TQ=c.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),MM=TQ,SQ=c.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),AQ=SQ;const CM="__epPropKey",nn=e=>e,MQ=e=>ja(e)&&!!e[CM],Hh=(e,t)=>{if(!ja(e)||MQ(e))return e;const{values:n,required:r,default:a,type:o,validator:i}=e,l={type:o,required:!!r,validator:n||i?s=>{let u=!1,d=[];if(n&&(d=Array.from(n),DA(e,"default")&&d.push(a),u||(u=d.includes(s))),i&&(u||(u=i(s))),!u&&d.length>0){const f=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");c.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(s)}.`)}return u}:void 0,[CM]:!0};return DA(e,"default")&&(l.default=a),l},Wn=e=>Bh(Object.entries(e).map(([t,n])=>[t,Hh(n,t)])),xs=nn([String,Object,Function]),OM={validating:MM,success:bQ,error:$v},Xo=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},CQ=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Uh=e=>(e.install=Nd,e),Wd={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Ta="update:modelValue",qh="change",EM=["","default","small","large"],LM=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),zM=e=>e,OQ=["class","style"],EQ=/^on[A-Z]/,LQ=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=c.computed(()=>((n==null?void 0:n.value)||[]).concat(OQ)),a=c.getCurrentInstance();return a?c.computed(()=>{var o;return Bh(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&EQ.test(i))))}):(Va("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),c.computed(()=>({})))},FM=({from:e,replacement:t,scope:n,version:r,ref:a,type:o="API"},i)=>{c.watch(()=>c.unref(i),l=>{l&&Va(n,`[${o}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
20
+ For more detail, please visit: ${a}
21
+ `)},{immediate:!0})};var zQ={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const FQ=e=>(t,n)=>IQ(t,n,c.unref(e)),IQ=(e,t,n)=>Hi(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),DQ=e=>{const t=c.computed(()=>c.unref(e).name),n=c.isRef(e)?e:c.ref(e);return{lang:t,locale:n,t:FQ(e)}},PQ=Symbol("localeContextKey"),RQ=e=>{const t=e||c.inject(PQ,c.ref());return DQ(c.computed(()=>t.value||zQ))},eb="el",NQ="is-",ws=(e,t,n,r,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),a&&(o+=`--${a}`),o},BQ=Symbol("namespaceContextKey"),tb=e=>{const t=e||(c.getCurrentInstance()?c.inject(BQ,c.ref(eb)):c.ref(eb));return c.computed(()=>c.unref(t)||eb)},Vn=(e,t)=>{const n=tb(t);return{namespace:n,b:(r="")=>ws(n.value,e,r,"",""),e:r=>r?ws(n.value,e,"",r,""):"",m:r=>r?ws(n.value,e,"","",r):"",be:(r,a)=>r&&a?ws(n.value,e,r,a,""):"",em:(r,a)=>r&&a?ws(n.value,e,"",r,a):"",bm:(r,a)=>r&&a?ws(n.value,e,r,"",a):"",bem:(r,a,o)=>r&&a&&o?ws(n.value,e,r,a,o):"",is:(r,...a)=>{const o=a.length>=1?a[0]:!0;return r&&o?`${NQ}${r}`:""},cssVar:r=>{const a={};for(const o in r)r[o]&&(a[`--${n.value}-${o}`]=r[o]);return a},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const a={};for(const o in r)r[o]&&(a[`--${n.value}-${e}-${o}`]=r[o]);return a},cssVarBlockName:r=>`--${n.value}-${e}-${r}`}},jQ=Hh({type:nn(Boolean),default:null}),VQ=Hh({type:nn(Function)}),HQ=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:jQ,[n]:VQ};return{useModelToggle:({indicator:o,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:s,onShow:u,onHide:d})=>{const f=c.getCurrentInstance(),{emit:p}=f,g=f.props,h=c.computed(()=>Ba(g[n])),y=c.computed(()=>g[e]===null),b=T=>{o.value!==!0&&(o.value=!0,i&&(i.value=T),Ba(u)&&u(T))},v=T=>{o.value!==!1&&(o.value=!1,i&&(i.value=T),Ba(d)&&d(T))},x=T=>{if(g.disabled===!0||Ba(s)&&!s())return;const C=h.value&&Nr;C&&p(t,!0),(y.value||!C)&&b(T)},k=T=>{if(g.disabled===!0||!Nr)return;const C=h.value&&Nr;C&&p(t,!1),(y.value||!C)&&v(T)},_=T=>{Xv(T)&&(g.disabled&&T?h.value&&p(t,!1):o.value!==T&&(T?b():v()))},S=()=>{o.value?k():x()};return c.watch(()=>g[e],_),l&&f.appContext.config.globalProperties.$route!==void 0&&c.watch(()=>({...f.proxy.$route}),()=>{l.value&&o.value&&k()}),c.onMounted(()=>{_(g[e])}),{hide:k,show:x,toggle:S,hasUpdateHandler:h}},useModelToggleProps:a,useModelToggleEmits:r}},IM=e=>{const t=c.getCurrentInstance();return c.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var la="top",Ha="bottom",Ua="right",sa="left",nb="auto",Gd=[la,Ha,Ua,sa],Uc="start",Zd="end",UQ="clippingParents",DM="viewport",Kd="popper",qQ="reference",PM=Gd.reduce(function(e,t){return e.concat([t+"-"+Uc,t+"-"+Zd])},[]),Wh=[].concat(Gd,[nb]).reduce(function(e,t){return e.concat([t,t+"-"+Uc,t+"-"+Zd])},[]),WQ="beforeRead",GQ="read",ZQ="afterRead",KQ="beforeMain",YQ="main",JQ="afterMain",QQ="beforeWrite",XQ="write",$Q="afterWrite",eX=[WQ,GQ,ZQ,KQ,YQ,JQ,QQ,XQ,$Q];function $o(e){return e?(e.nodeName||"").toLowerCase():null}function bo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qc(e){var t=bo(e).Element;return e instanceof t||e instanceof Element}function qa(e){var t=bo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rb(e){if(typeof ShadowRoot>"u")return!1;var t=bo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tX(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!qa(o)||!$o(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function nX(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(s,u){return s[u]="",s},{});!qa(a)||!$o(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}var RM={name:"applyStyles",enabled:!0,phase:"write",fn:tX,effect:nX,requires:["computeStyles"]};function ei(e){return e.split("-")[0]}var _s=Math.max,Gh=Math.min,Wc=Math.round;function Gc(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(qa(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Wc(n.width)/i||1),o>0&&(a=Wc(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function ab(e){var t=Gc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function NM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qi(e){return bo(e).getComputedStyle(e)}function rX(e){return["table","td","th"].indexOf($o(e))>=0}function yl(e){return((qc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zh(e){return $o(e)==="html"?e:e.assignedSlot||e.parentNode||(rb(e)?e.host:null)||yl(e)}function BM(e){return!qa(e)||qi(e).position==="fixed"?null:e.offsetParent}function aX(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&qa(e)){var r=qi(e);if(r.position==="fixed")return null}var a=Zh(e);for(rb(a)&&(a=a.host);qa(a)&&["html","body"].indexOf($o(a))<0;){var o=qi(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Yd(e){for(var t=bo(e),n=BM(e);n&&rX(n)&&qi(n).position==="static";)n=BM(n);return n&&($o(n)==="html"||$o(n)==="body"&&qi(n).position==="static")?t:n||aX(e)||t}function ob(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jd(e,t,n){return _s(e,Gh(t,n))}function oX(e,t,n){var r=Jd(e,t,n);return r>n?n:r}function jM(){return{top:0,right:0,bottom:0,left:0}}function VM(e){return Object.assign({},jM(),e)}function HM(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iX=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,VM(typeof e!="number"?e:HM(e,Gd))};function lX(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,l=ei(n.placement),s=ob(l),u=[sa,Ua].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!i)){var f=iX(a.padding,n),p=ab(o),g=s==="y"?la:sa,h=s==="y"?Ha:Ua,y=n.rects.reference[d]+n.rects.reference[s]-i[s]-n.rects.popper[d],b=i[s]-n.rects.reference[s],v=Yd(o),x=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,k=y/2-b/2,_=f[g],S=x-p[d]-f[h],T=x/2-p[d]/2+k,C=Jd(_,T,S),A=s;n.modifiersData[r]=(t={},t[A]=C,t.centerOffset=C-T,t)}}function sX(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!NM(t.elements.popper,a)||(t.elements.arrow=a))}var cX={name:"arrow",enabled:!0,phase:"main",fn:lX,effect:sX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zc(e){return e.split("-")[1]}var uX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dX(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Wc(t*a)/a||0,y:Wc(n*a)/a||0}}function UM(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,g=p===void 0?0:p,h=i.y,y=h===void 0?0:h,b=typeof d=="function"?d({x:g,y}):{x:g,y};g=b.x,y=b.y;var v=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),k=sa,_=la,S=window;if(u){var T=Yd(n),C="clientHeight",A="clientWidth";if(T===bo(n)&&(T=yl(n),qi(T).position!=="static"&&l==="absolute"&&(C="scrollHeight",A="scrollWidth")),T=T,a===la||(a===sa||a===Ua)&&o===Zd){_=Ha;var O=f&&T===S&&S.visualViewport?S.visualViewport.height:T[C];y-=O-r.height,y*=s?1:-1}if(a===sa||(a===la||a===Ha)&&o===Zd){k=Ua;var F=f&&T===S&&S.visualViewport?S.visualViewport.width:T[A];g-=F-r.width,g*=s?1:-1}}var R=Object.assign({position:l},u&&uX),N=d===!0?dX({x:g,y}):{x:g,y};if(g=N.x,y=N.y,s){var B;return Object.assign({},R,(B={},B[_]=x?"0":"",B[k]=v?"0":"",B.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},R,(t={},t[_]=x?y+"px":"",t[k]=v?g+"px":"",t.transform="",t))}function fX(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,l=n.roundOffsets,s=l===void 0?!0:l,u={placement:ei(t.placement),variation:Zc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,UM(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,UM(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var qM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fX,data:{}},Kh={passive:!0};function pX(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,l=i===void 0?!0:i,s=bo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Kh)}),l&&s.addEventListener("resize",n.update,Kh),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Kh)}),l&&s.removeEventListener("resize",n.update,Kh)}}var WM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pX,data:{}},hX={left:"right",right:"left",bottom:"top",top:"bottom"};function Yh(e){return e.replace(/left|right|bottom|top/g,function(t){return hX[t]})}var mX={start:"end",end:"start"};function GM(e){return e.replace(/start|end/g,function(t){return mX[t]})}function ib(e){var t=bo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lb(e){return Gc(yl(e)).left+ib(e).scrollLeft}function gX(e){var t=bo(e),n=yl(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,l=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,l=r.offsetTop)),{width:a,height:o,x:i+lb(e),y:l}}function yX(e){var t,n=yl(e),r=ib(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=_s(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=_s(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+lb(e),s=-r.scrollTop;return qi(a||n).direction==="rtl"&&(l+=_s(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}function sb(e){var t=qi(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ZM(e){return["html","body","#document"].indexOf($o(e))>=0?e.ownerDocument.body:qa(e)&&sb(e)?e:ZM(Zh(e))}function Qd(e,t){var n;t===void 0&&(t=[]);var r=ZM(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=bo(r),i=a?[o].concat(o.visualViewport||[],sb(r)?r:[]):r,l=t.concat(i);return a?l:l.concat(Qd(Zh(i)))}function cb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vX(e){var t=Gc(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function KM(e,t){return t===DM?cb(gX(e)):qc(t)?vX(t):cb(yX(yl(e)))}function bX(e){var t=Qd(Zh(e)),n=["absolute","fixed"].indexOf(qi(e).position)>=0,r=n&&qa(e)?Yd(e):e;return qc(r)?t.filter(function(a){return qc(a)&&NM(a,r)&&$o(a)!=="body"}):[]}function xX(e,t,n){var r=t==="clippingParents"?bX(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(l,s){var u=KM(e,s);return l.top=_s(u.top,l.top),l.right=Gh(u.right,l.right),l.bottom=Gh(u.bottom,l.bottom),l.left=_s(u.left,l.left),l},KM(e,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function YM(e){var t=e.reference,n=e.element,r=e.placement,a=r?ei(r):null,o=r?Zc(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(a){case la:s={x:i,y:t.y-n.height};break;case Ha:s={x:i,y:t.y+t.height};break;case Ua:s={x:t.x+t.width,y:l};break;case sa:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var u=a?ob(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case Uc:s[u]=s[u]-(t[d]/2-n[d]/2);break;case Zd:s[u]=s[u]+(t[d]/2-n[d]/2);break}}return s}function Xd(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.boundary,i=o===void 0?UQ:o,l=n.rootBoundary,s=l===void 0?DM:l,u=n.elementContext,d=u===void 0?Kd:u,f=n.altBoundary,p=f===void 0?!1:f,g=n.padding,h=g===void 0?0:g,y=VM(typeof h!="number"?h:HM(h,Gd)),b=d===Kd?qQ:Kd,v=e.rects.popper,x=e.elements[p?b:d],k=xX(qc(x)?x:x.contextElement||yl(e.elements.popper),i,s),_=Gc(e.elements.reference),S=YM({reference:_,element:v,strategy:"absolute",placement:a}),T=cb(Object.assign({},v,S)),C=d===Kd?T:_,A={top:k.top-C.top+y.top,bottom:C.bottom-k.bottom+y.bottom,left:k.left-C.left+y.left,right:C.right-k.right+y.right},O=e.modifiersData.offset;if(d===Kd&&O){var F=O[a];Object.keys(A).forEach(function(R){var N=[Ua,Ha].indexOf(R)>=0?1:-1,B=[la,Ha].indexOf(R)>=0?"y":"x";A[R]+=F[B]*N})}return A}function wX(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?Wh:s,d=Zc(r),f=d?l?PM:PM.filter(function(h){return Zc(h)===d}):Gd,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var g=p.reduce(function(h,y){return h[y]=Xd(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ei(y)],h},{});return Object.keys(g).sort(function(h,y){return g[h]-g[y]})}function _X(e){if(ei(e)===nb)return[];var t=Yh(e);return[GM(e),t,GM(t)]}function kX(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!0:i,s=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,y=n.allowedAutoPlacements,b=t.options.placement,v=ei(b),x=v===b,k=s||(x||!h?[Yh(b)]:_X(b)),_=[b].concat(k).reduce(function(ne,te){return ne.concat(ei(te)===nb?wX(t,{placement:te,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:y}):te)},[]),S=t.rects.reference,T=t.rects.popper,C=new Map,A=!0,O=_[0],F=0;F<_.length;F++){var R=_[F],N=ei(R),B=Zc(R)===Uc,V=[la,Ha].indexOf(N)>=0,Z=V?"width":"height",G=Xd(t,{placement:R,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),I=V?B?Ua:sa:B?Ha:la;S[Z]>T[Z]&&(I=Yh(I));var P=Yh(I),z=[];if(o&&z.push(G[N]<=0),l&&z.push(G[I]<=0,G[P]<=0),z.every(function(ne){return ne})){O=R,A=!1;break}C.set(R,z)}if(A)for(var H=h?3:1,j=function(ne){var te=_.find(function(ee){var se=C.get(ee);if(se)return se.slice(0,ne).every(function(U){return U})});if(te)return O=te,"break"},q=H;q>0;q--){var $=j(q);if($==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var TX={name:"flip",enabled:!0,phase:"main",fn:kX,requiresIfExists:["offset"],data:{_skip:!1}};function JM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QM(e){return[la,Ua,Ha,sa].some(function(t){return e[t]>=0})}function SX(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Xd(t,{elementContext:"reference"}),l=Xd(t,{altBoundary:!0}),s=JM(i,r),u=JM(l,a,o),d=QM(s),f=QM(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var AX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SX};function MX(e,t,n){var r=ei(e),a=[sa,la].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[sa,Ua].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function CX(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=Wh.reduce(function(d,f){return d[f]=MX(f,t.rects,o),d},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}var OX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CX};function EX(e){var t=e.state,n=e.name;t.modifiersData[n]=YM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XM={name:"popperOffsets",enabled:!0,phase:"read",fn:EX,data:{}};function LX(e){return e==="x"?"y":"x"}function zX(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!1:i,s=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,h=n.tetherOffset,y=h===void 0?0:h,b=Xd(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:d}),v=ei(t.placement),x=Zc(t.placement),k=!x,_=ob(v),S=LX(_),T=t.modifiersData.popperOffsets,C=t.rects.reference,A=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(o){var B,V=_==="y"?la:sa,Z=_==="y"?Ha:Ua,G=_==="y"?"height":"width",I=T[_],P=I+b[V],z=I-b[Z],H=g?-A[G]/2:0,j=x===Uc?C[G]:A[G],q=x===Uc?-A[G]:-C[G],$=t.elements.arrow,ne=g&&$?ab($):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jM(),ee=te[V],se=te[Z],U=Jd(0,C[G],ne[G]),Y=k?C[G]/2-H-U-ee-F.mainAxis:j-U-ee-F.mainAxis,J=k?-C[G]/2+H+U+se+F.mainAxis:q+U+se+F.mainAxis,re=t.elements.arrow&&Yd(t.elements.arrow),oe=re?_==="y"?re.clientTop||0:re.clientLeft||0:0,he=(B=R==null?void 0:R[_])!=null?B:0,ve=I+Y-he-oe,ge=I+J-he,xe=Jd(g?Gh(P,ve):P,I,g?_s(z,ge):z);T[_]=xe,N[_]=xe-I}if(l){var Le,Ue=_==="x"?la:sa,Pe=_==="x"?Ha:Ua,De=T[S],je=S==="y"?"height":"width",qe=De+b[Ue],Ee=De-b[Pe],_e=[la,sa].indexOf(v)!==-1,we=(Le=R==null?void 0:R[S])!=null?Le:0,Re=_e?qe:De-C[je]-A[je]-we+F.altAxis,Je=_e?De+C[je]+A[je]-we-F.altAxis:Ee,it=g&&_e?oX(Re,De,Je):Jd(g?Re:qe,De,g?Je:Ee);T[S]=it,N[S]=it-De}t.modifiersData[r]=N}}var FX={name:"preventOverflow",enabled:!0,phase:"main",fn:zX,requiresIfExists:["offset"]};function IX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DX(e){return e===bo(e)||!qa(e)?ib(e):IX(e)}function PX(e){var t=e.getBoundingClientRect(),n=Wc(t.width)/e.offsetWidth||1,r=Wc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function RX(e,t,n){n===void 0&&(n=!1);var r=qa(t),a=qa(t)&&PX(t),o=yl(t),i=Gc(e,a),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(($o(t)!=="body"||sb(o))&&(l=DX(t)),qa(t)?(s=Gc(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=lb(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function NX(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&a(s)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function BX(e){var t=NX(e);return eX.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function jX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function VX(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var $M={placement:"bottom",modifiers:[],strategy:"absolute"};function e5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ub(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?$M:a;return function(i,l,s){s===void 0&&(s=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},$M,o),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(y){var b=typeof y=="function"?y(u.options):y;h(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:qc(i)?Qd(i):i.contextElement?Qd(i.contextElement):[],popper:Qd(l)};var v=BX(VX([].concat(r,u.options.modifiers)));return u.orderedModifiers=v.filter(function(x){return x.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var y=u.elements,b=y.reference,v=y.popper;if(e5(b,v)){u.rects={reference:RX(b,Yd(v),u.options.strategy==="fixed"),popper:ab(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var k=u.orderedModifiers[x],_=k.fn,S=k.options,T=S===void 0?{}:S,C=k.name;typeof _=="function"&&(u=_({state:u,options:T,name:C,instance:p})||u)}}}},update:jX(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){h(),f=!0}};if(!e5(i,l))return p;p.setOptions(s).then(function(y){!f&&s.onFirstUpdate&&s.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var b=y.name,v=y.options,x=v===void 0?{}:v,k=y.effect;if(typeof k=="function"){var _=k({state:u,name:b,instance:p,options:x}),S=function(){};d.push(_||S)}})}function h(){d.forEach(function(y){return y()}),d=[]}return p}}ub();var HX=[WM,XM,qM,RM];ub({defaultModifiers:HX});var UX=[WM,XM,qM,RM,OX,TX,FX,cX,AX],qX=ub({defaultModifiers:UX});const WX=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const u=GX(s);Object.assign(i.value,u)},requires:["computeStyles"]},a=c.computed(()=>{const{onFirstUpdate:s,placement:u,strategy:d,modifiers:f}=c.unref(n);return{onFirstUpdate:s,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=c.shallowRef(),i=c.ref({styles:{popper:{position:c.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return c.watch(a,s=>{const u=c.unref(o);u&&u.setOptions(s)},{deep:!0}),c.watch([e,t],([s,u])=>{l(),!(!s||!u)&&(o.value=qX(s,u,c.unref(a)))}),c.onBeforeUnmount(()=>{l()}),{state:c.computed(()=>{var s;return{...((s=c.unref(o))==null?void 0:s.state)||{}}}),styles:c.computed(()=>c.unref(i).styles),attributes:c.computed(()=>c.unref(i).attributes),update:()=>{var s;return(s=c.unref(o))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=c.unref(o))==null?void 0:s.forceUpdate()},instanceRef:c.computed(()=>c.unref(o))}};function GX(e){const t=Object.keys(e.elements),n=Bh(t.map(a=>[a,e.styles[a]||{}])),r=Bh(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}function t5(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Eh(()=>n()),{registerTimeout:t,cancelTimeout:n}}const db={prefix:Math.floor(Math.random()*1e4),current:0},ZX=Symbol("elIdInjection"),fb=()=>c.getCurrentInstance()?c.inject(ZX,db):db,Jh=e=>{const t=fb();!Nr&&t===db&&Va("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
22
+ usage: app.provide(ID_INJECTION_KEY, {
23
+ prefix: number,
24
+ current: number,
25
+ })`);const n=tb();return c.computed(()=>c.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Kc=[];const n5=e=>{const t=e;t.key===Wd.esc&&Kc.forEach(n=>n(t))},KX=e=>{c.onMounted(()=>{Kc.length===0&&document.addEventListener("keydown",n5),Nr&&Kc.push(e)}),c.onBeforeUnmount(()=>{Kc=Kc.filter(t=>t!==e),Kc.length===0&&Nr&&document.removeEventListener("keydown",n5)})};let r5;const a5=()=>{const e=tb(),t=fb(),n=c.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=c.computed(()=>`#${n.value}`);return{id:n,selector:r}},YX=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},JX=()=>{const{id:e,selector:t}=a5();return c.onBeforeMount(()=>{Nr&&(Rc.env.NODE_ENV==="test"||!r5&&!document.body.querySelector(t.value))&&(r5=YX(e.value))}),{id:e,selector:t}},QX=Wn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),XX=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:o}=t5(),{registerTimeout:i,cancelTimeout:l}=t5();return{onOpen:s=>{o(()=>{r(s);const u=c.unref(n);ia(u)&&u>0&&i(()=>{a(s)},u)},c.unref(e))},onClose:s=>{l(),o(()=>{a(s)},c.unref(t))}}},o5=Symbol("elForwardRef"),$X=e=>{c.provide(o5,{setForwardRef:t=>{e.value=t}})},e$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),i5=c.ref(0),t$=2e3,n$=Symbol("zIndexContextKey"),r$=e=>{const t=e||(c.getCurrentInstance()?c.inject(n$,void 0):void 0),n=c.computed(()=>{const a=c.unref(t);return ia(a)?a:t$}),r=c.computed(()=>n.value+i5.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(i5.value++,r.value)}};function a$(e){const t=c.ref();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:i}=e.value;if(a==null||o==null)return;const l=i.slice(0,Math.max(0,a)),s=i.slice(Math.max(0,o));t.value={selectionStart:a,selectionEnd:o,value:i,beforeTxt:l,afterTxt:s}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:l}=t.value;if(o==null||i==null||l==null)return;let s=a.length;if(a.endsWith(i))s=a.length-i.length;else if(a.startsWith(o))s=o.length;else{const u=o[l-1],d=a.indexOf(u,l-1);d!==-1&&(s=d+1)}e.value.setSelectionRange(s,s)}return[n,r]}const pb=Hh({type:String,values:EM,required:!1}),o$=Symbol("size"),i$=()=>{const e=c.inject(o$,{});return c.computed(()=>c.unref(e.size)||"")};function l5(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const a=c.getCurrentInstance(),{emit:o}=a,i=c.shallowRef(),l=c.ref(!1),s=f=>{l.value||(l.value=!0,o("focus",f),t==null||t())},u=f=>{var p;Ba(n)&&n(f)||f.relatedTarget&&(p=i.value)!=null&&p.contains(f.relatedTarget)||(l.value=!1,o("blur",f),r==null||r())},d=()=>{var f;(f=e.value)==null||f.focus()};return c.watch(i,f=>{f&&f.setAttribute("tabindex","-1")}),gs(i,"click",d),{wrapperRef:i,isFocused:l,handleFocus:s,handleBlur:u}}const l$=Symbol(),s5=c.ref();function s$(e,t=void 0){const n=c.getCurrentInstance()?c.inject(l$,s5):s5;return e?c.computed(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}var zn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const c$=Wn({size:{type:nn([Number,String])},color:{type:String}}),u$=c.defineComponent({name:"ElIcon",inheritAttrs:!1}),d$=c.defineComponent({...u$,props:c$,setup(e){const t=e,n=Vn("icon"),r=c.computed(()=>{const{size:a,color:o}=t;return!a&&!o?{}:{fontSize:TM(a)?void 0:Vh(a),"--color":o}});return(a,o)=>(c.openBlock(),c.createElementBlock("i",c.mergeProps({class:c.unref(n).b(),style:c.unref(r)},a.$attrs),[c.renderSlot(a.$slots,"default")],16))}});var f$=zn(d$,[["__file","icon.vue"]]);const xo=Xo(f$),hb=Symbol("formContextKey"),Qh=Symbol("formItemContextKey"),Xh=(e,t={})=>{const n=c.ref(void 0),r=t.prop?n:IM("size"),a=t.global?n:i$(),o=t.form?{size:void 0}:c.inject(hb,void 0),i=t.formItem?{size:void 0}:c.inject(Qh,void 0);return c.computed(()=>r.value||c.unref(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||a.value||"")},mb=e=>{const t=IM("disabled"),n=c.inject(hb,void 0);return c.computed(()=>t.value||c.unref(e)||(n==null?void 0:n.disabled)||!1)},gb=()=>{const e=c.inject(hb,void 0),t=c.inject(Qh,void 0);return{form:e,formItem:t}},c5=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=c.ref(!1)),r||(r=c.ref(!1));const a=c.ref();let o;const i=c.computed(()=>{var l;return!!(!e.label&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return c.onMounted(()=>{o=c.watch([c.toRef(e,"id"),n],([l,s])=>{const u=l??(s?void 0:Jh().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!s&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),c.onUnmounted(()=>{o&&o(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:i,inputId:a}};let wo;const p$=`
26
+ height:0 !important;
27
+ visibility:hidden !important;
28
+ ${TZ()?"":"overflow:hidden !important;"}
29
+ position:absolute !important;
30
+ z-index:-1000 !important;
31
+ top:0 !important;
32
+ right:0 !important;
33
+ `,h$=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function m$(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:h$.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function u5(e,t=1,n){var r;wo||(wo=document.createElement("textarea"),document.body.appendChild(wo));const{paddingSize:a,borderSize:o,boxSizing:i,contextStyle:l}=m$(e);wo.setAttribute("style",`${l};${p$}`),wo.value=e.value||e.placeholder||"";let s=wo.scrollHeight;const u={};i==="border-box"?s=s+o:i==="content-box"&&(s=s-a),wo.value="";const d=wo.scrollHeight-a;if(ia(t)){let f=d*t;i==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(ia(n)){let f=d*n;i==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(r=wo.parentNode)==null||r.removeChild(wo),wo=void 0,u}const g$=Wn({id:{type:String,default:void 0},size:pb,disabled:Boolean,modelValue:{type:nn([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:nn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:xs},prefixIcon:{type:xs},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:nn([Object,Array,String]),default:()=>zM({})},autofocus:{type:Boolean,default:!1}}),y$={[Ta]:e=>Yo(e),input:e=>Yo(e),change:e=>Yo(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},v$=["role"],b$=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],x$=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],w$=c.defineComponent({name:"ElInput",inheritAttrs:!1}),_$=c.defineComponent({...w$,props:g$,emits:y$,setup(e,{expose:t,emit:n}){const r=e,a=c.useAttrs(),o=c.useSlots(),i=c.computed(()=>{const _e={};return r.containerRole==="combobox"&&(_e["aria-haspopup"]=a["aria-haspopup"],_e["aria-owns"]=a["aria-owns"],_e["aria-expanded"]=a["aria-expanded"]),_e}),l=c.computed(()=>[r.type==="textarea"?b.b():y.b(),y.m(g.value),y.is("disabled",h.value),y.is("exceed",ne.value),{[y.b("group")]:o.prepend||o.append,[y.bm("group","append")]:o.append,[y.bm("group","prepend")]:o.prepend,[y.m("prefix")]:o.prefix||r.prefixIcon,[y.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[y.bm("suffix","password-clear")]:H.value&&j.value},a.class]),s=c.computed(()=>[y.e("wrapper"),y.is("focus",F.value)]),u=LQ({excludeKeys:c.computed(()=>Object.keys(i.value))}),{form:d,formItem:f}=gb(),{inputId:p}=c5(r,{formItemContext:f}),g=Xh(),h=mb(),y=Vn("input"),b=Vn("textarea"),v=c.shallowRef(),x=c.shallowRef(),k=c.ref(!1),_=c.ref(!1),S=c.ref(!1),T=c.ref(),C=c.shallowRef(r.inputStyle),A=c.computed(()=>v.value||x.value),{wrapperRef:O,isFocused:F,handleFocus:R,handleBlur:N}=l5(A,{afterBlur(){var _e;r.validateEvent&&((_e=f==null?void 0:f.validate)==null||_e.call(f,"blur").catch(we=>Va(we)))}}),B=c.computed(()=>{var _e;return(_e=d==null?void 0:d.statusIcon)!=null?_e:!1}),V=c.computed(()=>(f==null?void 0:f.validateState)||""),Z=c.computed(()=>V.value&&OM[V.value]),G=c.computed(()=>S.value?AQ:kQ),I=c.computed(()=>[a.style]),P=c.computed(()=>[r.inputStyle,C.value,{resize:r.resize}]),z=c.computed(()=>jh(r.modelValue)?"":String(r.modelValue)),H=c.computed(()=>r.clearable&&!h.value&&!r.readonly&&!!z.value&&(F.value||k.value)),j=c.computed(()=>r.showPassword&&!h.value&&!r.readonly&&!!z.value&&(!!z.value||F.value)),q=c.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),$=c.computed(()=>z.value.length),ne=c.computed(()=>!!q.value&&$.value>Number(r.maxlength)),te=c.computed(()=>!!o.suffix||!!r.suffixIcon||H.value||r.showPassword||q.value||!!V.value&&B.value),[ee,se]=a$(v);Bi(x,_e=>{if(Y(),!q.value||r.resize!=="both")return;const we=_e[0],{width:Re}=we.contentRect;T.value={right:`calc(100% - ${Re+15+6}px)`}});const U=()=>{const{type:_e,autosize:we}=r;if(!(!Nr||_e!=="textarea"||!x.value))if(we){const Re=ja(we)?we.minRows:void 0,Je=ja(we)?we.maxRows:void 0,it=u5(x.value,Re,Je);C.value={overflowY:"hidden",...it},c.nextTick(()=>{x.value.offsetHeight,C.value=it})}else C.value={minHeight:u5(x.value).minHeight}},Y=(_e=>{let we=!1;return()=>{var Re;we||!r.autosize||((Re=x.value)==null?void 0:Re.offsetParent)===null||(_e(),we=!0)}})(U),J=()=>{const _e=A.value,we=r.formatter?r.formatter(z.value):z.value;!_e||_e.value===we||(_e.value=we)},re=async _e=>{ee();let{value:we}=_e.target;if(r.formatter&&(we=r.parser?r.parser(we):we),!_.value){if(we===z.value){J();return}n(Ta,we),n("input",we),await c.nextTick(),J(),se()}},oe=_e=>{n("change",_e.target.value)},he=_e=>{n("compositionstart",_e),_.value=!0},ve=_e=>{var we;n("compositionupdate",_e);const Re=(we=_e.target)==null?void 0:we.value,Je=Re[Re.length-1]||"";_.value=!LM(Je)},ge=_e=>{n("compositionend",_e),_.value&&(_.value=!1,re(_e))},xe=()=>{S.value=!S.value,Le()},Le=async()=>{var _e;await c.nextTick(),(_e=A.value)==null||_e.focus()},Ue=()=>{var _e;return(_e=A.value)==null?void 0:_e.blur()},Pe=_e=>{k.value=!1,n("mouseleave",_e)},De=_e=>{k.value=!0,n("mouseenter",_e)},je=_e=>{n("keydown",_e)},qe=()=>{var _e;(_e=A.value)==null||_e.select()},Ee=()=>{n(Ta,""),n("change",""),n("clear"),n("input","")};return c.watch(()=>r.modelValue,()=>{var _e;c.nextTick(()=>U()),r.validateEvent&&((_e=f==null?void 0:f.validate)==null||_e.call(f,"change").catch(we=>Va(we)))}),c.watch(z,()=>J()),c.watch(()=>r.type,async()=>{await c.nextTick(),J(),U()}),c.onMounted(()=>{!r.formatter&&r.parser&&Va("ElInput","If you set the parser, you also need to set the formatter."),J(),c.nextTick(U)}),t({input:v,textarea:x,ref:A,textareaStyle:P,autosize:c.toRef(r,"autosize"),focus:Le,blur:Ue,select:qe,clear:Ee,resizeTextarea:U}),(_e,we)=>c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps(c.unref(i),{class:c.unref(l),style:c.unref(I),role:_e.containerRole,onMouseenter:De,onMouseleave:Pe}),[c.createCommentVNode(" input "),_e.type!=="textarea"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createCommentVNode(" prepend slot "),_e.$slots.prepend?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(y).be("group","prepend"))},[c.renderSlot(_e.$slots,"prepend")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref_key:"wrapperRef",ref:O,class:c.normalizeClass(c.unref(s))},[c.createCommentVNode(" prefix slot "),_e.$slots.prefix||_e.prefixIcon?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(y).e("prefix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(y).e("prefix-inner"))},[c.renderSlot(_e.$slots,"prefix"),_e.prefixIcon?(c.openBlock(),c.createBlock(c.unref(xo),{key:0,class:c.normalizeClass(c.unref(y).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(_e.prefixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("input",c.mergeProps({id:c.unref(p),ref_key:"input",ref:v,class:c.unref(y).e("inner")},c.unref(u),{minlength:_e.minlength,maxlength:_e.maxlength,type:_e.showPassword?S.value?"text":"password":_e.type,disabled:c.unref(h),readonly:_e.readonly,autocomplete:_e.autocomplete,tabindex:_e.tabindex,"aria-label":_e.label,placeholder:_e.placeholder,style:_e.inputStyle,form:_e.form,autofocus:_e.autofocus,onCompositionstart:he,onCompositionupdate:ve,onCompositionend:ge,onInput:re,onFocus:we[0]||(we[0]=(...Re)=>c.unref(R)&&c.unref(R)(...Re)),onBlur:we[1]||(we[1]=(...Re)=>c.unref(N)&&c.unref(N)(...Re)),onChange:oe,onKeydown:je}),null,16,b$),c.createCommentVNode(" suffix slot "),c.unref(te)?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(c.unref(y).e("suffix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(y).e("suffix-inner"))},[!c.unref(H)||!c.unref(j)||!c.unref(q)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.renderSlot(_e.$slots,"suffix"),_e.suffixIcon?(c.openBlock(),c.createBlock(c.unref(xo),{key:0,class:c.normalizeClass(c.unref(y).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(_e.suffixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],64)):c.createCommentVNode("v-if",!0),c.unref(H)?(c.openBlock(),c.createBlock(c.unref(xo),{key:1,class:c.normalizeClass([c.unref(y).e("icon"),c.unref(y).e("clear")]),onMousedown:c.withModifiers(c.unref(Nd),["prevent"]),onClick:Ee},{default:c.withCtx(()=>[c.createVNode(c.unref($v))]),_:1},8,["class","onMousedown"])):c.createCommentVNode("v-if",!0),c.unref(j)?(c.openBlock(),c.createBlock(c.unref(xo),{key:2,class:c.normalizeClass([c.unref(y).e("icon"),c.unref(y).e("password")]),onClick:xe},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(G))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),c.unref(q)?(c.openBlock(),c.createElementBlock("span",{key:3,class:c.normalizeClass(c.unref(y).e("count"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(y).e("count-inner"))},c.toDisplayString(c.unref($))+" / "+c.toDisplayString(_e.maxlength),3)],2)):c.createCommentVNode("v-if",!0),c.unref(V)&&c.unref(Z)&&c.unref(B)?(c.openBlock(),c.createBlock(c.unref(xo),{key:4,class:c.normalizeClass([c.unref(y).e("icon"),c.unref(y).e("validateIcon"),c.unref(y).is("loading",c.unref(V)==="validating")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(Z))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0)],2),c.createCommentVNode(" append slot "),_e.$slots.append?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(c.unref(y).be("group","append"))},[c.renderSlot(_e.$slots,"append")],2)):c.createCommentVNode("v-if",!0)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createCommentVNode(" textarea "),c.createElementVNode("textarea",c.mergeProps({id:c.unref(p),ref_key:"textarea",ref:x,class:c.unref(b).e("inner")},c.unref(u),{minlength:_e.minlength,maxlength:_e.maxlength,tabindex:_e.tabindex,disabled:c.unref(h),readonly:_e.readonly,autocomplete:_e.autocomplete,style:c.unref(P),"aria-label":_e.label,placeholder:_e.placeholder,form:_e.form,autofocus:_e.autofocus,onCompositionstart:he,onCompositionupdate:ve,onCompositionend:ge,onInput:re,onFocus:we[2]||(we[2]=(...Re)=>c.unref(R)&&c.unref(R)(...Re)),onBlur:we[3]||(we[3]=(...Re)=>c.unref(N)&&c.unref(N)(...Re)),onChange:oe,onKeydown:je}),null,16,x$),c.unref(q)?(c.openBlock(),c.createElementBlock("span",{key:0,style:c.normalizeStyle(T.value),class:c.normalizeClass(c.unref(y).e("count"))},c.toDisplayString(c.unref($))+" / "+c.toDisplayString(_e.maxlength),7)):c.createCommentVNode("v-if",!0)],64))],16,v$)),[[c.vShow,_e.type!=="hidden"]])}});var k$=zn(_$,[["__file","input.vue"]]);const T$=Xo(k$),Yc=4,S$={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},A$=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),d5=Symbol("scrollbarContextKey"),M$=Wn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),C$="Thumb";var f5=zn(c.defineComponent({__name:"thumb",props:M$,setup(e){const t=e,n=c.inject(d5),r=Vn("scrollbar");n||dQ(C$,"can not inject scrollbar context");const a=c.ref(),o=c.ref(),i=c.ref({}),l=c.ref(!1);let s=!1,u=!1,d=Nr?document.onselectstart:null;const f=c.computed(()=>S$[t.vertical?"vertical":"horizontal"]),p=c.computed(()=>A$({size:t.size,move:t.move,bar:f.value})),g=c.computed(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/o.value[f.value.offset]),h=T=>{var C;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(C=window.getSelection())==null||C.removeAllRanges(),b(T);const A=T.currentTarget;A&&(i.value[f.value.axis]=A[f.value.offset]-(T[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},y=T=>{if(!o.value||!a.value||!n.wrapElement)return;const C=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),A=o.value[f.value.offset]/2,O=(C-A)*100*g.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=O*n.wrapElement[f.value.scrollSize]/100},b=T=>{T.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},v=T=>{if(!a.value||!o.value||s===!1)return;const C=i.value[f.value.axis];if(!C)return;const A=(a.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,O=o.value[f.value.offset]-C,F=(A-O)*100*g.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=F*n.wrapElement[f.value.scrollSize]/100},x=()=>{s=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",x),S(),u&&(l.value=!1)},k=()=>{u=!1,l.value=!!t.size},_=()=>{u=!0,l.value=s};c.onBeforeUnmount(()=>{S(),document.removeEventListener("mouseup",x)});const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return gs(c.toRef(n,"scrollbarElement"),"mousemove",k),gs(c.toRef(n,"scrollbarElement"),"mouseleave",_),(T,C)=>(c.openBlock(),c.createBlock(c.Transition,{name:c.unref(r).b("fade"),persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{ref_key:"instance",ref:a,class:c.normalizeClass([c.unref(r).e("bar"),c.unref(r).is(c.unref(f).key)]),onMousedown:y},[c.createElementVNode("div",{ref_key:"thumb",ref:o,class:c.normalizeClass(c.unref(r).e("thumb")),style:c.normalizeStyle(c.unref(p)),onMousedown:h},null,38)],34),[[c.vShow,T.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const O$=Wn({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var E$=zn(c.defineComponent({__name:"bar",props:O$,setup(e,{expose:t}){const n=e,r=c.ref(0),a=c.ref(0);return t({handleScroll:o=>{if(o){const i=o.offsetHeight-Yc,l=o.offsetWidth-Yc;a.value=o.scrollTop*100/i*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,i)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(f5,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),c.createVNode(f5,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const L$=Wn({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:nn([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),z$={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ia)},yb="ElScrollbar",F$=c.defineComponent({name:yb}),I$=c.defineComponent({...F$,props:L$,emits:z$,setup(e,{expose:t,emit:n}){const r=e,a=Vn("scrollbar");let o,i;const l=c.ref(),s=c.ref(),u=c.ref(),d=c.ref("0"),f=c.ref("0"),p=c.ref(),g=c.ref(1),h=c.ref(1),y=c.computed(()=>{const C={};return r.height&&(C.height=Vh(r.height)),r.maxHeight&&(C.maxHeight=Vh(r.maxHeight)),[r.wrapStyle,C]}),b=c.computed(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),v=c.computed(()=>[a.e("view"),r.viewClass]),x=()=>{var C;s.value&&((C=p.value)==null||C.handleScroll(s.value),n("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};function k(C,A){ja(C)?s.value.scrollTo(C):ia(C)&&ia(A)&&s.value.scrollTo(C,A)}const _=C=>{if(!ia(C)){Va(yb,"value must be a number");return}s.value.scrollTop=C},S=C=>{if(!ia(C)){Va(yb,"value must be a number");return}s.value.scrollLeft=C},T=()=>{if(!s.value)return;const C=s.value.offsetHeight-Yc,A=s.value.offsetWidth-Yc,O=C**2/s.value.scrollHeight,F=A**2/s.value.scrollWidth,R=Math.max(O,r.minSize),N=Math.max(F,r.minSize);g.value=O/(C-O)/(R/(C-R)),h.value=F/(A-F)/(N/(A-N)),f.value=R+Yc<C?`${R}px`:"",d.value=N+Yc<A?`${N}px`:""};return c.watch(()=>r.noresize,C=>{C?(o==null||o(),i==null||i()):({stop:o}=Bi(u,T),i=gs("resize",T))},{immediate:!0}),c.watch(()=>[r.maxHeight,r.height],()=>{r.native||c.nextTick(()=>{var C;T(),s.value&&((C=p.value)==null||C.handleScroll(s.value))})}),c.provide(d5,c.reactive({scrollbarElement:l,wrapElement:s})),c.onMounted(()=>{r.native||c.nextTick(()=>{T()})}),c.onUpdated(()=>T()),t({wrapRef:s,update:T,scrollTo:k,setScrollTop:_,setScrollLeft:S,handleScroll:x}),(C,A)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"scrollbarRef",ref:l,class:c.normalizeClass(c.unref(a).b())},[c.createElementVNode("div",{ref_key:"wrapRef",ref:s,class:c.normalizeClass(c.unref(b)),style:c.normalizeStyle(c.unref(y)),onScroll:x},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(C.tag),{id:C.id,ref_key:"resizeRef",ref:u,class:c.normalizeClass(c.unref(v)),style:c.normalizeStyle(C.viewStyle),role:C.role,"aria-label":C.ariaLabel,"aria-orientation":C.ariaOrientation},{default:c.withCtx(()=>[c.renderSlot(C.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),C.native?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(E$,{key:0,ref_key:"barRef",ref:p,height:f.value,width:d.value,always:C.always,"ratio-x":h.value,"ratio-y":g.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var D$=zn(I$,[["__file","scrollbar.vue"]]);const P$=Xo(D$),vb=Symbol("popper"),p5=Symbol("popperContent"),R$=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],h5=Wn({role:{type:String,values:R$,default:"tooltip"}}),N$=c.defineComponent({name:"ElPopper",inheritAttrs:!1}),B$=c.defineComponent({...N$,props:h5,setup(e,{expose:t}){const n=e,r=c.ref(),a=c.ref(),o=c.ref(),i=c.ref(),l=c.computed(()=>n.role),s={triggerRef:r,popperInstanceRef:a,contentRef:o,referenceRef:i,role:l};return t(s),c.provide(vb,s),(u,d)=>c.renderSlot(u.$slots,"default")}});var j$=zn(B$,[["__file","popper.vue"]]);const m5=Wn({arrowOffset:{type:Number,default:5}}),V$=c.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),H$=c.defineComponent({...V$,props:m5,setup(e,{expose:t}){const n=e,r=Vn("popper"),{arrowOffset:a,arrowRef:o,arrowStyle:i}=c.inject(p5,void 0);return c.watch(()=>n.arrowOffset,l=>{a.value=l}),c.onBeforeUnmount(()=>{o.value=void 0}),t({arrowRef:o}),(l,s)=>(c.openBlock(),c.createElementBlock("span",{ref_key:"arrowRef",ref:o,class:c.normalizeClass(c.unref(r).e("arrow")),style:c.normalizeStyle(c.unref(i)),"data-popper-arrow":""},null,6))}});var U$=zn(H$,[["__file","arrow.vue"]]);const bb="ElOnlyChild",q$=c.defineComponent({name:bb,setup(e,{slots:t,attrs:n}){var r;const a=c.inject(o5),o=e$((r=a==null?void 0:a.setForwardRef)!=null?r:Nd);return()=>{var i;const l=(i=t.default)==null?void 0:i.call(t,n);if(!l)return null;if(l.length>1)return Va(bb,"requires exact only one valid child."),null;const s=g5(l);return s?c.withDirectives(c.cloneVNode(s,n),[[o]]):(Va(bb,"no valid child node found"),null)}}});function g5(e){if(!e)return null;const t=e;for(const n of t){if(ja(n))switch(n.type){case c.Comment:continue;case c.Text:case"svg":return y5(n);case c.Fragment:return g5(n.children);default:return n}return y5(n)}return null}function y5(e){const t=Vn("only-child");return c.createVNode("span",{class:t.e("content")},[e])}const v5=Wn({virtualRef:{type:nn(Object)},virtualTriggering:Boolean,onMouseenter:{type:nn(Function)},onMouseleave:{type:nn(Function)},onClick:{type:nn(Function)},onKeydown:{type:nn(Function)},onFocus:{type:nn(Function)},onBlur:{type:nn(Function)},onContextmenu:{type:nn(Function)},id:String,open:Boolean}),W$=c.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),G$=c.defineComponent({...W$,props:v5,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=c.inject(vb,void 0);$X(a);const o=c.computed(()=>l.value?n.id:void 0),i=c.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=c.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),s=c.computed(()=>l.value?`${n.open}`:void 0);let u;return c.onMounted(()=>{c.watch(()=>n.virtualRef,d=>{d&&(a.value=Ni(d))},{immediate:!0}),c.watch(a,(d,f)=>{u==null||u(),u=void 0,qd(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var g;const h=n[p];h&&(d.addEventListener(p.slice(2).toLowerCase(),h),(g=f==null?void 0:f.removeEventListener)==null||g.call(f,p.slice(2).toLowerCase(),h))}),u=c.watch([o,i,l,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,h)=>{jh(p[h])?d.removeAttribute(g):d.setAttribute(g,p[h])})},{immediate:!0})),qd(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>f.removeAttribute(p))},{immediate:!0})}),c.onBeforeUnmount(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(d,f)=>d.virtualTriggering?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(c.unref(q$),c.mergeProps({key:0},d.$attrs,{"aria-controls":c.unref(o),"aria-describedby":c.unref(i),"aria-expanded":c.unref(s),"aria-haspopup":c.unref(l)}),{default:c.withCtx(()=>[c.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Z$=zn(G$,[["__file","trigger.vue"]]);const xb="focus-trap.focus-after-trapped",wb="focus-trap.focus-after-released",K$="focus-trap.focusout-prevented",b5={cancelable:!0,bubbles:!1},Y$={cancelable:!0,bubbles:!1},x5="focusAfterTrapped",w5="focusAfterReleased",J$=Symbol("elFocusTrap"),_b=c.ref(),$h=c.ref(0),kb=c.ref(0);let em=0;const _5=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},k5=(e,t)=>{for(const n of e)if(!Q$(n,t))return n},Q$=(e,t)=>{if(Rc.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},X$=e=>{const t=_5(e),n=k5(t,e),r=k5(t.reverse(),e);return[n,r]},$$=e=>e instanceof HTMLInputElement&&"select"in e,vl=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),kb.value=window.performance.now(),e!==n&&$$(e)&&t&&e.select()}};function T5(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const eee=()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=T5(e,t),e.unshift(t)},remove:t=>{var n,r;e=T5(e,t),(r=(n=e[0])==null?void 0:n.resume)==null||r.call(n)}}},tee=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(vl(r,t),document.activeElement!==n)return},S5=eee(),nee=()=>$h.value>kb.value,tm=()=>{_b.value="pointer",$h.value=window.performance.now()},A5=()=>{_b.value="keyboard",$h.value=window.performance.now()},ree=()=>(c.onMounted(()=>{em===0&&(document.addEventListener("mousedown",tm),document.addEventListener("touchstart",tm),document.addEventListener("keydown",A5)),em++}),c.onBeforeUnmount(()=>{em--,em<=0&&(document.removeEventListener("mousedown",tm),document.removeEventListener("touchstart",tm),document.removeEventListener("keydown",A5))}),{focusReason:_b,lastUserFocusTimestamp:$h,lastAutomatedFocusTimestamp:kb}),nm=e=>new CustomEvent(K$,{...Y$,detail:e}),aee=c.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[x5,w5,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=c.ref();let r,a;const{focusReason:o}=ree();KX(h=>{e.trapped&&!i.paused&&t("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:y,altKey:b,ctrlKey:v,metaKey:x,currentTarget:k,shiftKey:_}=h,{loop:S}=e,T=y===Wd.tab&&!b&&!v&&!x,C=document.activeElement;if(T&&C){const A=k,[O,F]=X$(A);if(O&&F){if(!_&&C===F){const R=nm({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||(h.preventDefault(),S&&vl(O,!0))}else if(_&&[O,A].includes(C)){const R=nm({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||(h.preventDefault(),S&&vl(F,!0))}}else if(C===A){const R=nm({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||h.preventDefault()}}};c.provide(J$,{focusTrapRef:n,onKeydown:l}),c.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),c.watch([n],([h],[y])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",d),h.addEventListener("focusout",f)),y&&(y.removeEventListener("keydown",l),y.removeEventListener("focusin",d),y.removeEventListener("focusout",f))});const s=h=>{t(x5,h)},u=h=>t(w5,h),d=h=>{const y=c.unref(n);if(!y)return;const b=h.target,v=h.relatedTarget,x=b&&y.contains(b);e.trapped||v&&y.contains(v)||(r=v),x&&t("focusin",h),!i.paused&&e.trapped&&(x?a=b:vl(a,!0))},f=h=>{const y=c.unref(n);if(!(i.paused||!y))if(e.trapped){const b=h.relatedTarget;!jh(b)&&!y.contains(b)&&setTimeout(()=>{if(!i.paused&&e.trapped){const v=nm({focusReason:o.value});t("focusout-prevented",v),v.defaultPrevented||vl(a,!0)}},0)}else{const b=h.target;b&&y.contains(b)||t("focusout",h)}};async function p(){await c.nextTick();const h=c.unref(n);if(h){S5.push(i);const y=h.contains(document.activeElement)?r:document.activeElement;if(r=y,!h.contains(y)){const b=new Event(xb,b5);h.addEventListener(xb,s),h.dispatchEvent(b),b.defaultPrevented||c.nextTick(()=>{let v=e.focusStartEl;Yo(v)||(vl(v),document.activeElement!==v&&(v="first")),v==="first"&&tee(_5(h),!0),(document.activeElement===y||v==="container")&&vl(h)})}}}function g(){const h=c.unref(n);if(h){h.removeEventListener(xb,s);const y=new CustomEvent(wb,{...b5,detail:{focusReason:o.value}});h.addEventListener(wb,u),h.dispatchEvent(y),!y.defaultPrevented&&(o.value=="keyboard"||!nee()||h.contains(document.activeElement))&&vl(r??document.body),h.removeEventListener(wb,u),S5.remove(i)}}return c.onMounted(()=>{e.trapped&&p(),c.watch(()=>e.trapped,h=>{h?p():g()})}),c.onBeforeUnmount(()=>{e.trapped&&g()}),{onKeydown:l}}});function oee(e,t,n,r,a,o){return c.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var iee=zn(aee,[["render",oee],["__file","focus-trap.vue"]]);const lee=["fixed","absolute"],see=Wn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:nn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Wh,default:"bottom"},popperOptions:{type:nn(Object),default:()=>({})},strategy:{type:String,values:lee,default:"absolute"}}),M5=Wn({...see,id:String,style:{type:nn([String,Array,Object])},className:{type:nn([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:nn([String,Array,Object])},popperStyle:{type:nn([String,Array,Object])},referenceEl:{type:nn(Object)},triggerTargetEl:{type:nn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),cee={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},uee=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,o={placement:n,strategy:r,...a,modifiers:[...fee(e),...t]};return pee(o,a==null?void 0:a.modifiers),o},dee=e=>{if(Nr)return Ni(e)};function fee(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function pee(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const hee=0,mee=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=c.inject(vb,void 0),o=c.ref(),i=c.ref(),l=c.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=c.computed(()=>{var v;const x=c.unref(o),k=(v=c.unref(i))!=null?v:hee;return{name:"arrow",enabled:!sQ(x),options:{element:x,padding:k}}}),u=c.computed(()=>({onFirstUpdate:()=>{h()},...uee(e,[c.unref(s),c.unref(l)])})),d=c.computed(()=>dee(e.referenceEl)||c.unref(r)),{attributes:f,state:p,styles:g,update:h,forceUpdate:y,instanceRef:b}=WX(d,n,u);return c.watch(b,v=>t.value=v),c.onMounted(()=>{c.watch(()=>{var v;return(v=c.unref(d))==null?void 0:v.getBoundingClientRect()},()=>{h()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:b,state:p,styles:g,role:a,forceUpdate:y,update:h}},gee=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=r$(),o=Vn("popper"),i=c.computed(()=>c.unref(t).popper),l=c.ref(ia(e.zIndex)?e.zIndex:a()),s=c.computed(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=c.computed(()=>[{zIndex:c.unref(l)},c.unref(n).popper,e.popperStyle||{}]),d=c.computed(()=>r.value==="dialog"?"false":void 0),f=c.computed(()=>c.unref(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:i,contentClass:s,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=ia(e.zIndex)?e.zIndex:a()}}},yee=(e,t)=>{const n=c.ref(!1),r=c.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:a=>{var o;((o=a.detail)==null?void 0:o.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:a=>{e.visible&&!n.value&&(a.target&&(r.value=a.target),n.value=!0)},onFocusoutPrevented:a=>{e.trapping||(a.detail.focusReason==="pointer"&&a.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},vee=c.defineComponent({name:"ElPopperContent"}),bee=c.defineComponent({...vee,props:M5,emits:cee,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:o,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:s,onFocusoutPrevented:u,onReleaseRequested:d}=yee(r,n),{attributes:f,arrowRef:p,contentRef:g,styles:h,instanceRef:y,role:b,update:v}=mee(r),{ariaModal:x,arrowStyle:k,contentAttrs:_,contentClass:S,contentStyle:T,updateZIndex:C}=gee(r,{styles:h,attributes:f,role:b}),A=c.inject(Qh,void 0),O=c.ref();c.provide(p5,{arrowStyle:k,arrowRef:p,arrowOffset:O}),A&&(A.addInputId||A.removeInputId)&&c.provide(Qh,{...A,addInputId:Nd,removeInputId:Nd});let F;const R=(B=!0)=>{v(),B&&C()},N=()=>{R(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return c.onMounted(()=>{c.watch(()=>r.triggerTargetEl,(B,V)=>{F==null||F(),F=void 0;const Z=c.unref(B||g.value),G=c.unref(V||g.value);qd(Z)&&(F=c.watch([b,()=>r.ariaLabel,x,()=>r.id],I=>{["role","aria-label","aria-modal","id"].forEach((P,z)=>{jh(I[z])?Z.removeAttribute(P):Z.setAttribute(P,I[z])})},{immediate:!0})),G!==Z&&qd(G)&&["role","aria-label","aria-modal","id"].forEach(I=>{G.removeAttribute(I)})},{immediate:!0}),c.watch(()=>r.visible,N,{immediate:!0})}),c.onBeforeUnmount(()=>{F==null||F(),F=void 0}),t({popperContentRef:g,popperInstanceRef:y,updatePopper:R,contentStyle:T}),(B,V)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps({ref_key:"contentRef",ref:g},c.unref(_),{style:c.unref(T),class:c.unref(S),tabindex:"-1",onMouseenter:V[0]||(V[0]=Z=>B.$emit("mouseenter",Z)),onMouseleave:V[1]||(V[1]=Z=>B.$emit("mouseleave",Z))}),[c.createVNode(c.unref(iee),{trapped:c.unref(o),"trap-on-focus-in":!0,"focus-trap-el":c.unref(g),"focus-start-el":c.unref(a),onFocusAfterTrapped:c.unref(l),onFocusAfterReleased:c.unref(i),onFocusin:c.unref(s),onFocusoutPrevented:c.unref(u),onReleaseRequested:c.unref(d)},{default:c.withCtx(()=>[c.renderSlot(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var xee=zn(bee,[["__file","content.vue"]]);const wee=Xo(j$),Tb=Symbol("elTooltip"),Sa=Wn({...QX,...M5,appendTo:{type:nn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:nn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),$d=Wn({...v5,disabled:Boolean,trigger:{type:nn([String,Array]),default:"hover"},triggerKeys:{type:nn(Array),default:()=>[Wd.enter,Wd.space]}}),{useModelToggleProps:_ee,useModelToggleEmits:kee,useModelToggle:Tee}=HQ("visible"),See=Wn({...h5,..._ee,...Sa,...$d,...m5,showArrow:{type:Boolean,default:!0}}),Aee=[...kee,"before-show","before-hide","show","hide","open","close"],Mee=(e,t)=>Na(e)?e.includes(t):e===t,Jc=(e,t,n)=>r=>{Mee(c.unref(e),t)&&n(r)},Cee=c.defineComponent({name:"ElTooltipTrigger"}),Oee=c.defineComponent({...Cee,props:$d,setup(e,{expose:t}){const n=e,r=Vn("tooltip"),{controlled:a,id:o,open:i,onOpen:l,onClose:s,onToggle:u}=c.inject(Tb,void 0),d=c.ref(null),f=()=>{if(c.unref(a)||n.disabled)return!0},p=c.toRef(n,"trigger"),g=Ri(f,Jc(p,"hover",l)),h=Ri(f,Jc(p,"hover",s)),y=Ri(f,Jc(p,"click",_=>{_.button===0&&u(_)})),b=Ri(f,Jc(p,"focus",l)),v=Ri(f,Jc(p,"focus",s)),x=Ri(f,Jc(p,"contextmenu",_=>{_.preventDefault(),u(_)})),k=Ri(f,_=>{const{code:S}=_;n.triggerKeys.includes(S)&&(_.preventDefault(),u(_))});return t({triggerRef:d}),(_,S)=>(c.openBlock(),c.createBlock(c.unref(Z$),{id:c.unref(o),"virtual-ref":_.virtualRef,open:c.unref(i),"virtual-triggering":_.virtualTriggering,class:c.normalizeClass(c.unref(r).e("trigger")),onBlur:c.unref(v),onClick:c.unref(y),onContextmenu:c.unref(x),onFocus:c.unref(b),onMouseenter:c.unref(g),onMouseleave:c.unref(h),onKeydown:c.unref(k)},{default:c.withCtx(()=>[c.renderSlot(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Eee=zn(Oee,[["__file","trigger.vue"]]);const Lee=c.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),zee=c.defineComponent({...Lee,props:Sa,setup(e,{expose:t}){const n=e,{selector:r}=a5(),a=Vn("tooltip"),o=c.ref(null),i=c.ref(!1),{controlled:l,id:s,open:u,trigger:d,onClose:f,onOpen:p,onShow:g,onHide:h,onBeforeShow:y,onBeforeHide:b}=c.inject(Tb,void 0),v=c.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),x=c.computed(()=>Rc.env.NODE_ENV==="test"?!0:n.persistent);c.onBeforeUnmount(()=>{i.value=!0});const k=c.computed(()=>c.unref(x)?!0:c.unref(u)),_=c.computed(()=>n.disabled?!1:c.unref(u)),S=c.computed(()=>n.appendTo||r.value),T=c.computed(()=>{var I;return(I=n.style)!=null?I:{}}),C=c.computed(()=>!c.unref(u)),A=()=>{h()},O=()=>{if(c.unref(l))return!0},F=Ri(O,()=>{n.enterable&&c.unref(d)==="hover"&&p()}),R=Ri(O,()=>{c.unref(d)==="hover"&&f()}),N=()=>{var I,P;(P=(I=o.value)==null?void 0:I.updatePopper)==null||P.call(I),y==null||y()},B=()=>{b==null||b()},V=()=>{g(),G=fZ(c.computed(()=>{var I;return(I=o.value)==null?void 0:I.popperContentRef}),()=>{c.unref(l)||c.unref(d)!=="hover"&&f()})},Z=()=>{n.virtualTriggering||f()};let G;return c.watch(()=>c.unref(u),I=>{I||G==null||G()},{flush:"post"}),c.watch(()=>n.content,()=>{var I,P;(P=(I=o.value)==null?void 0:I.updatePopper)==null||P.call(I)}),t({contentRef:o}),(I,P)=>(c.openBlock(),c.createBlock(c.Teleport,{disabled:!I.teleported,to:c.unref(S)},[c.createVNode(c.Transition,{name:c.unref(v),onAfterLeave:A,onBeforeEnter:N,onAfterEnter:V,onBeforeLeave:B},{default:c.withCtx(()=>[c.unref(k)?c.withDirectives((c.openBlock(),c.createBlock(c.unref(xee),c.mergeProps({key:0,id:c.unref(s),ref_key:"contentRef",ref:o},I.$attrs,{"aria-label":I.ariaLabel,"aria-hidden":c.unref(C),"boundaries-padding":I.boundariesPadding,"fallback-placements":I.fallbackPlacements,"gpu-acceleration":I.gpuAcceleration,offset:I.offset,placement:I.placement,"popper-options":I.popperOptions,strategy:I.strategy,effect:I.effect,enterable:I.enterable,pure:I.pure,"popper-class":I.popperClass,"popper-style":[I.popperStyle,c.unref(T)],"reference-el":I.referenceEl,"trigger-target-el":I.triggerTargetEl,visible:c.unref(_),"z-index":I.zIndex,onMouseenter:c.unref(F),onMouseleave:c.unref(R),onBlur:Z,onClose:c.unref(f)}),{default:c.withCtx(()=>[i.value?c.createCommentVNode("v-if",!0):c.renderSlot(I.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[c.vShow,c.unref(_)]]):c.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Fee=zn(zee,[["__file","content.vue"]]);const Iee=["innerHTML"],Dee={key:1},Pee=c.defineComponent({name:"ElTooltip"}),Ree=c.defineComponent({...Pee,props:See,emits:Aee,setup(e,{expose:t,emit:n}){const r=e;JX();const a=Jh(),o=c.ref(),i=c.ref(),l=()=>{var v;const x=c.unref(o);x&&((v=x.popperInstanceRef)==null||v.update())},s=c.ref(!1),u=c.ref(),{show:d,hide:f,hasUpdateHandler:p}=Tee({indicator:s,toggleReason:u}),{onOpen:g,onClose:h}=XX({showAfter:c.toRef(r,"showAfter"),hideAfter:c.toRef(r,"hideAfter"),autoClose:c.toRef(r,"autoClose"),open:d,close:f}),y=c.computed(()=>Xv(r.visible)&&!p.value);c.provide(Tb,{controlled:y,id:a,open:c.readonly(s),trigger:c.toRef(r,"trigger"),onOpen:v=>{g(v)},onClose:v=>{h(v)},onToggle:v=>{c.unref(s)?h(v):g(v)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:l}),c.watch(()=>r.disabled,v=>{v&&s.value&&(s.value=!1)});const b=v=>{var x,k;const _=(k=(x=i.value)==null?void 0:x.contentRef)==null?void 0:k.popperContentRef,S=(v==null?void 0:v.relatedTarget)||document.activeElement;return _&&_.contains(S)};return c.onDeactivated(()=>s.value&&f()),t({popperRef:o,contentRef:i,isFocusInsideContent:b,updatePopper:l,onOpen:g,onClose:h,hide:f}),(v,x)=>(c.openBlock(),c.createBlock(c.unref(wee),{ref_key:"popperRef",ref:o,role:v.role},{default:c.withCtx(()=>[c.createVNode(Eee,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:c.withCtx(()=>[v.$slots.default?c.renderSlot(v.$slots,"default",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),c.createVNode(Fee,{ref_key:"contentRef",ref:i,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:c.withCtx(()=>[c.renderSlot(v.$slots,"content",{},()=>[v.rawContent?(c.openBlock(),c.createElementBlock("span",{key:0,innerHTML:v.content},null,8,Iee)):(c.openBlock(),c.createElementBlock("span",Dee,c.toDisplayString(v.content),1))]),v.showArrow?(c.openBlock(),c.createBlock(c.unref(U$),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):c.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Nee=zn(Ree,[["__file","tooltip.vue"]]);const C5=Xo(Nee),O5=Symbol("buttonGroupContextKey"),Bee=(e,t)=>{FM({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},c.computed(()=>e.type==="text"));const n=c.inject(O5,void 0),r=s$("button"),{form:a}=gb(),o=Xh(c.computed(()=>n==null?void 0:n.size)),i=mb(),l=c.ref(),s=c.useSlots(),u=c.computed(()=>e.type||(n==null?void 0:n.type)||""),d=c.computed(()=>{var g,h,y;return(y=(h=e.autoInsertSpace)!=null?h:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?y:!1}),f=c.computed(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=c.computed(()=>{var g;const h=(g=s.default)==null?void 0:g.call(s);if(d.value&&(h==null?void 0:h.length)===1){const y=h[0];if((y==null?void 0:y.type)===c.Text){const b=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:i,_size:o,_type:u,_ref:l,_props:f,shouldAddSpace:p,handleClick:g=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",g)}}},jee=["default","primary","success","warning","info","danger","text",""],Vee=["button","submit","reset"],Sb=Wn({size:pb,disabled:Boolean,type:{type:String,values:jee,default:""},icon:{type:xs},nativeType:{type:String,values:Vee,default:"button"},loading:Boolean,loadingIcon:{type:xs,default:()=>MM},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:nn([String,Object]),default:"button"}}),Hee={click:e=>e instanceof MouseEvent};function zr(e,t){Uee(e)&&(e="100%");var n=qee(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function rm(e){return Math.min(1,Math.max(0,e))}function Uee(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qee(e){return typeof e=="string"&&e.indexOf("%")!==-1}function E5(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function am(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ks(e){return e.length===1?"0"+e:String(e)}function Wee(e,t,n){return{r:zr(e,255)*255,g:zr(t,255)*255,b:zr(n,255)*255}}function L5(e,t,n){e=zr(e,255),t=zr(t,255),n=zr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,l=(r+a)/2;if(r===a)i=0,o=0;else{var s=r-a;switch(i=l>.5?s/(2-r-a):s/(r+a),r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:i,l}}function Ab(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gee(e,t,n){var r,a,o;if(e=zr(e,360),t=zr(t,100),n=zr(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Ab(l,i,e+1/3),a=Ab(l,i,e),o=Ab(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function z5(e,t,n){e=zr(e,255),t=zr(t,255),n=zr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,l=r-a,s=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:i}}function Zee(e,t,n){e=zr(e,360)*6,t=zr(t,100),n=zr(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),i=n*(1-a*t),l=n*(1-(1-a)*t),s=r%6,u=[n,i,o,o,l,n][s],d=[l,n,n,i,o,o][s],f=[o,o,l,n,n,i][s];return{r:u*255,g:d*255,b:f*255}}function F5(e,t,n,r){var a=[ks(Math.round(e).toString(16)),ks(Math.round(t).toString(16)),ks(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Kee(e,t,n,r,a){var o=[ks(Math.round(e).toString(16)),ks(Math.round(t).toString(16)),ks(Math.round(n).toString(16)),ks(Yee(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Yee(e){return Math.round(parseFloat(e)*255).toString(16)}function I5(e){return Aa(e)/255}function Aa(e){return parseInt(e,16)}function Jee(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Mb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Qee(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=ete(e)),typeof e=="object"&&(Wi(e.r)&&Wi(e.g)&&Wi(e.b)?(t=Wee(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wi(e.h)&&Wi(e.s)&&Wi(e.v)?(r=am(e.s),a=am(e.v),t=Zee(e.h,r,a),i=!0,l="hsv"):Wi(e.h)&&Wi(e.s)&&Wi(e.l)&&(r=am(e.s),o=am(e.l),t=Gee(e.h,r,o),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=E5(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Xee="[-\\+]?\\d+%?",$ee="[-\\+]?\\d*\\.\\d+%?",bl="(?:".concat($ee,")|(?:").concat(Xee,")"),Cb="[\\s|\\(]+(".concat(bl,")[,|\\s]+(").concat(bl,")[,|\\s]+(").concat(bl,")\\s*\\)?"),Ob="[\\s|\\(]+(".concat(bl,")[,|\\s]+(").concat(bl,")[,|\\s]+(").concat(bl,")[,|\\s]+(").concat(bl,")\\s*\\)?"),_o={CSS_UNIT:new RegExp(bl),rgb:new RegExp("rgb"+Cb),rgba:new RegExp("rgba"+Ob),hsl:new RegExp("hsl"+Cb),hsla:new RegExp("hsla"+Ob),hsv:new RegExp("hsv"+Cb),hsva:new RegExp("hsva"+Ob),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ete(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Mb[e])e=Mb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_o.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_o.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_o.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_o.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_o.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_o.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_o.hex8.exec(e),n?{r:Aa(n[1]),g:Aa(n[2]),b:Aa(n[3]),a:I5(n[4]),format:t?"name":"hex8"}:(n=_o.hex6.exec(e),n?{r:Aa(n[1]),g:Aa(n[2]),b:Aa(n[3]),format:t?"name":"hex"}:(n=_o.hex4.exec(e),n?{r:Aa(n[1]+n[1]),g:Aa(n[2]+n[2]),b:Aa(n[3]+n[3]),a:I5(n[4]+n[4]),format:t?"name":"hex8"}:(n=_o.hex3.exec(e),n?{r:Aa(n[1]+n[1]),g:Aa(n[2]+n[2]),b:Aa(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Wi(e){return!!_o.CSS_UNIT.exec(String(e))}var tte=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Jee(t)),this.originalInput=t;var a=Qee(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=E5(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=z5(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=z5(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=L5(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=L5(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),F5(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Kee(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(zr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(zr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+F5(this.r,this.g,this.b,!1),n=0,r=Object.entries(Mb);n<r.length;n++){var a=r[n],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=rm(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=rm(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=rm(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=rm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(r+i*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function xl(e,t=20){return e.mix("#141414",t).toString()}function nte(e){const t=mb(),n=Vn("button");return c.computed(()=>{let r={};const a=e.color;if(a){const o=new tte(a),i=e.dark?o.tint(20).toString():xl(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?xl(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?xl(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?xl(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?xl(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?xl(o,80):o.tint(80).toString());else{const l=e.dark?xl(o,30):o.tint(30).toString(),s=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":s,"border-color":a,"hover-bg-color":l,"hover-text-color":s,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?xl(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const rte=c.defineComponent({name:"ElButton"}),ate=c.defineComponent({...rte,props:Sb,emits:Hee,setup(e,{expose:t,emit:n}){const r=e,a=nte(r),o=Vn("button"),{_ref:i,_size:l,_type:s,_disabled:u,_props:d,shouldAddSpace:f,handleClick:p}=Bee(r,n);return t({ref:i,size:l,type:s,disabled:u,shouldAddSpace:f}),(g,h)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(g.tag),c.mergeProps({ref_key:"_ref",ref:i},c.unref(d),{class:[c.unref(o).b(),c.unref(o).m(c.unref(s)),c.unref(o).m(c.unref(l)),c.unref(o).is("disabled",c.unref(u)),c.unref(o).is("loading",g.loading),c.unref(o).is("plain",g.plain),c.unref(o).is("round",g.round),c.unref(o).is("circle",g.circle),c.unref(o).is("text",g.text),c.unref(o).is("link",g.link),c.unref(o).is("has-bg",g.bg)],style:c.unref(a),onClick:c.unref(p)}),{default:c.withCtx(()=>[g.loading?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[g.$slots.loading?c.renderSlot(g.$slots,"loading",{key:0}):(c.openBlock(),c.createBlock(c.unref(xo),{key:1,class:c.normalizeClass(c.unref(o).is("loading"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(c.openBlock(),c.createBlock(c.unref(xo),{key:1},{default:c.withCtx(()=>[g.icon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(g.icon),{key:0})):c.renderSlot(g.$slots,"icon",{key:1})]),_:3})):c.createCommentVNode("v-if",!0),g.$slots.default?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass({[c.unref(o).em("text","expand")]:c.unref(f)})},[c.renderSlot(g.$slots,"default")],2)):c.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ote=zn(ate,[["__file","button.vue"]]);const ite={size:Sb.size,type:Sb.type},lte=c.defineComponent({name:"ElButtonGroup"}),ste=c.defineComponent({...lte,props:ite,setup(e){const t=e;c.provide(O5,c.reactive({size:c.toRef(t,"size"),type:c.toRef(t,"type")}));const n=Vn("button");return(r,a)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`${c.unref(n).b("group")}`)},[c.renderSlot(r.$slots,"default")],2))}});var D5=zn(ste,[["__file","button-group.vue"]]);const ef=Xo(ote,{ButtonGroup:D5});Uh(D5);var tf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function om(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}const wl=new Map;let P5;Nr&&(document.addEventListener("mousedown",e=>P5=e),document.addEventListener("mouseup",e=>{for(const t of wl.values())for(const{documentHandler:n}of t)n(e,P5)}));function R5(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:qd(t.arg)&&n.push(t.arg),function(r,a){const o=t.instance.popperRef,i=r.target,l=a==null?void 0:a.target,s=!t||!t.instance,u=!i||!l,d=e.contains(i)||e.contains(l),f=e===i,p=n.length&&n.some(h=>h==null?void 0:h.contains(i))||n.length&&n.includes(l),g=o&&(o.contains(i)||o.contains(l));s||u||d||f||p||g||t.value(r,a)}}const cte={beforeMount(e,t){wl.has(e)||wl.set(e,[]),wl.get(e).push({documentHandler:R5(e,t),bindingFn:t.value})},updated(e,t){wl.has(e)||wl.set(e,[]);const n=wl.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:R5(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){wl.delete(e)}},N5=Wn({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:EM,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),ute={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},dte=c.defineComponent({name:"ElTag"}),fte=c.defineComponent({...dte,props:N5,emits:ute,setup(e,{emit:t}){const n=e,r=Xh(),a=Vn("tag"),o=c.computed(()=>{const{type:s,hit:u,effect:d,closable:f,round:p}=n;return[a.b(),a.is("closable",f),a.m(s),a.m(r.value),a.m(d),a.is("hit",u),a.is("round",p)]}),i=s=>{t("close",s)},l=s=>{t("click",s)};return(s,u)=>s.disableTransitions?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(o)),style:c.normalizeStyle({backgroundColor:s.color}),onClick:l},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).e("content"))},[c.renderSlot(s.$slots,"default")],2),s.closable?(c.openBlock(),c.createBlock(c.unref(xo),{key:0,class:c.normalizeClass(c.unref(a).e("close")),onClick:c.withModifiers(i,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(AM))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)):(c.openBlock(),c.createBlock(c.Transition,{key:1,name:`${c.unref(a).namespace.value}-zoom-in-center`,appear:""},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(c.unref(o)),style:c.normalizeStyle({backgroundColor:s.color}),onClick:l},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).e("content"))},[c.renderSlot(s.$slots,"default")],2),s.closable?(c.openBlock(),c.createBlock(c.unref(xo),{key:0,class:c.normalizeClass(c.unref(a).e("close")),onClick:c.withModifiers(i,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(AM))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var pte=zn(fte,[["__file","tag.vue"]]);const hte=Xo(pte),B5=e=>ia(e)||Yo(e)||Na(e),mte=Wn({accordion:Boolean,modelValue:{type:nn([Array,String,Number]),default:()=>zM([])}}),gte={[Ta]:B5,[qh]:B5},j5=Symbol("collapseContextKey"),yte=(e,t)=>{const n=c.ref(lM(e.modelValue)),r=o=>{n.value=o;const i=e.accordion?n.value[0]:n.value;t(Ta,i),t(qh,i)},a=o=>{if(e.accordion)r([n.value[0]===o?"":o]);else{const i=[...n.value],l=i.indexOf(o);l>-1?i.splice(l,1):i.push(o),r(i)}};return c.watch(()=>e.modelValue,()=>n.value=lM(e.modelValue),{deep:!0}),c.provide(j5,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},vte=()=>{const e=Vn("collapse");return{rootKls:c.computed(()=>e.b())}},bte=c.defineComponent({name:"ElCollapse"}),xte=c.defineComponent({...bte,props:mte,emits:gte,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:o}=yte(r,n),{rootKls:i}=vte();return t({activeNames:a,setActiveNames:o}),(l,s)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(c.unref(i))},[c.renderSlot(l.$slots,"default")],2))}});var wte=zn(xte,[["__file","collapse.vue"]]);const _te=c.defineComponent({name:"ElCollapseTransition"}),kte=c.defineComponent({..._te,setup(e){const t=Vn("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,o)=>(c.openBlock(),c.createBlock(c.Transition,c.mergeProps({name:c.unref(t).b()},c.toHandlers(r)),{default:c.withCtx(()=>[c.renderSlot(a.$slots,"default")]),_:3},16,["name"]))}});var im=zn(kte,[["__file","collapse-transition.vue"]]);im.install=e=>{e.component(im.name,im)};const Tte=im,Ste=Wn({title:{type:String,default:""},name:{type:nn([String,Number]),default:void 0},disabled:Boolean}),Ate=e=>{const t=c.inject(j5),{namespace:n}=Vn("collapse"),r=c.ref(!1),a=c.ref(!1),o=fb(),i=c.computed(()=>o.current++),l=c.computed(()=>{var u;return(u=e.name)!=null?u:`${n.value}-id-${o.prefix}-${c.unref(i)}`}),s=c.computed(()=>t==null?void 0:t.activeNames.value.includes(c.unref(l)));return{focusing:r,id:i,isActive:s,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(c.unref(l)),r.value=!1,a.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(c.unref(l))}}},Mte=(e,{focusing:t,isActive:n,id:r})=>{const a=Vn("collapse"),o=c.computed(()=>[a.b("item"),a.is("active",c.unref(n)),a.is("disabled",e.disabled)]),i=c.computed(()=>[a.be("item","header"),a.is("active",c.unref(n)),{focusing:c.unref(t)&&!e.disabled}]),l=c.computed(()=>[a.be("item","arrow"),a.is("active",c.unref(n))]),s=c.computed(()=>a.be("item","wrap")),u=c.computed(()=>a.be("item","content")),d=c.computed(()=>a.b(`content-${c.unref(r)}`)),f=c.computed(()=>a.b(`head-${c.unref(r)}`));return{arrowKls:l,headKls:i,rootKls:o,itemWrapperKls:s,itemContentKls:u,scopedContentId:d,scopedHeadId:f}},Cte=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],Ote=["id","aria-hidden","aria-labelledby"],Ete=c.defineComponent({name:"ElCollapseItem"}),Lte=c.defineComponent({...Ete,props:Ste,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:o,handleFocus:i,handleHeaderClick:l,handleEnterClick:s}=Ate(n),{arrowKls:u,headKls:d,rootKls:f,itemWrapperKls:p,itemContentKls:g,scopedContentId:h,scopedHeadId:y}=Mte(n,{focusing:r,isActive:o,id:a});return t({isActive:o}),(b,v)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(c.unref(f))},[c.createElementVNode("button",{id:c.unref(y),class:c.normalizeClass(c.unref(d)),"aria-expanded":c.unref(o),"aria-controls":c.unref(h),"aria-describedby":c.unref(h),tabindex:b.disabled?-1:0,type:"button",onClick:v[0]||(v[0]=(...x)=>c.unref(l)&&c.unref(l)(...x)),onKeydown:v[1]||(v[1]=c.withKeys(c.withModifiers((...x)=>c.unref(s)&&c.unref(s)(...x),["stop","prevent"]),["space","enter"])),onFocus:v[2]||(v[2]=(...x)=>c.unref(i)&&c.unref(i)(...x)),onBlur:v[3]||(v[3]=x=>r.value=!1)},[c.renderSlot(b.$slots,"title",{},()=>[c.createTextVNode(c.toDisplayString(b.title),1)]),c.createVNode(c.unref(xo),{class:c.normalizeClass(c.unref(u))},{default:c.withCtx(()=>[c.createVNode(c.unref(yQ))]),_:1},8,["class"])],42,Cte),c.createVNode(c.unref(Tte),null,{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{id:c.unref(h),role:"region",class:c.normalizeClass(c.unref(p)),"aria-hidden":!c.unref(o),"aria-labelledby":c.unref(y)},[c.createElementVNode("div",{class:c.normalizeClass(c.unref(g))},[c.renderSlot(b.$slots,"default")],2)],10,Ote),[[c.vShow,c.unref(o)]])]),_:3})],2))}});var V5=zn(Lte,[["__file","collapse-item.vue"]]);const H5=Xo(wte,{CollapseItem:V5}),U5=Uh(V5),zte=c.defineComponent({inheritAttrs:!1});function Fte(e,t,n,r,a,o){return c.renderSlot(e.$slots,"default")}var Ite=zn(zte,[["render",Fte],["__file","collection.vue"]]);const Dte=c.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function Pte(e,t,n,r,a,o){return c.renderSlot(e.$slots,"default")}var Rte=zn(Dte,[["render",Pte],["__file","collection-item.vue"]]);const Nte="data-el-collection-item",Bte=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),o={...Ite,name:t,setup(){const l=c.ref(null),s=new Map;c.provide(r,{itemMap:s,getItems:()=>{const u=c.unref(l);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${Nte}]`));return[...s.values()].sort((f,p)=>d.indexOf(f.ref)-d.indexOf(p.ref))},collectionRef:l})}},i={...Rte,name:n,setup(l,{attrs:s}){const u=c.ref(null),d=c.inject(r,void 0);c.provide(a,{collectionItemRef:u}),c.onMounted(()=>{const f=c.unref(u);f&&d.itemMap.set(f,{ref:f,...s})}),c.onBeforeUnmount(()=>{const f=c.unref(u);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:i}},Eb=Wn({trigger:$d.trigger,effect:{...Sa.effect,default:"light"},type:{type:nn(String)},placement:{type:nn(String),default:"bottom"},popperOptions:{type:nn(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:nn([Number,String]),default:0},maxHeight:{type:nn([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:nn(Object)},teleported:Sa.teleported});Wn({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:xs}}),Wn({onKeydown:{type:nn(Function)}}),Bte("Dropdown");const q5=Symbol("ElSelectGroup"),lm=Symbol("ElSelect");function jte(e,t){const n=c.inject(lm),r=c.inject(q5,{disabled:!1}),a=c.computed(()=>n.props.multiple?d(n.props.modelValue,e.value):Ud(e.value,n.props.modelValue)),o=c.computed(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!a.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),i=c.computed(()=>e.label||(ja(e.value)?"":e.value)),l=c.computed(()=>e.value||e.label||""),s=c.computed(()=>e.disabled||t.groupDisabled||o.value),u=c.getCurrentInstance(),d=(g=[],h)=>{if(ja(e.value)){const y=n.props.valueKey;return g&&g.some(b=>c.toRaw(Hi(b,y))===Hi(h,y))}else return g&&g.includes(h)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},p=g=>{const h=new RegExp(uQ(g),"i");t.visible=h.test(i.value)||e.created};return c.watch(()=>i.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),c.watch(()=>e.value,(g,h)=>{const{remote:y,valueKey:b}=n.props;if(Ud(g,h)||(n.onOptionDestroy(h,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!y){if(b&&ja(g)&&ja(h)&&g[b]===h[b])return;n.setSelected()}}),c.watch(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:i,currentValue:l,itemSelected:a,isDisabled:s,hoverItem:f,updateOption:p}}const Vte=c.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Vn("select"),n=Jh(),r=c.computed(()=>[t.be("dropdown","item"),t.is("disabled",c.unref(l)),t.is("selected",c.unref(i)),t.is("hovering",c.unref(p))]),a=c.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:i,isDisabled:l,select:s,hoverItem:u,updateOption:d}=jte(e,a),{visible:f,hover:p}=c.toRefs(a),g=c.getCurrentInstance().proxy;s.onOptionCreate(g),c.onBeforeUnmount(()=>{const y=g.value,{selected:b}=s.states,v=(s.props.multiple?b:[b]).some(x=>x.value===g.value);c.nextTick(()=>{s.states.cachedOptions.get(y)===g&&!v&&s.states.cachedOptions.delete(y)}),s.onOptionDestroy(y,g)});function h(){e.disabled!==!0&&a.groupDisabled!==!0&&s.handleOptionSelect(g)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:i,isDisabled:l,select:s,hoverItem:u,updateOption:d,visible:f,hover:p,selectOptionClick:h,states:a}}}),Hte=["id","aria-disabled","aria-selected"];function Ute(e,t,n,r,a,o){return c.withDirectives((c.openBlock(),c.createElementBlock("li",{id:e.id,class:c.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=c.withModifiers((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"]))},[c.renderSlot(e.$slots,"default",{},()=>[c.createElementVNode("span",null,c.toDisplayString(e.currentLabel),1)])],42,Hte)),[[c.vShow,e.visible]])}var Lb=zn(Vte,[["render",Ute],["__file","option.vue"]]);const qte=c.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=c.inject(lm),t=Vn("select"),n=c.computed(()=>e.props.popperClass),r=c.computed(()=>e.props.multiple),a=c.computed(()=>e.props.fitInputWidth),o=c.ref("");function i(){var l;o.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return c.onMounted(()=>{i(),Bi(e.selectRef,i)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function Wte(e,t,n,r,a,o){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:c.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(e.ns.be("dropdown","header"))},[c.renderSlot(e.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.renderSlot(e.$slots,"default"),e.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(e.ns.be("dropdown","footer"))},[c.renderSlot(e.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)],6)}var Gte=zn(qte,[["render",Wte],["__file","select-dropdown.vue"]]);function Zte(e){const t=c.ref(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:n=>{const r=n.target.value,a=r[r.length-1]||"";t.value=!LM(a)},handleCompositionEnd:n=>{t.value&&(t.value=!1,Ba(e)&&e(n))}}}const Kte=11,Yte=(e,t)=>{const{t:n}=RQ(),r=Jh(),a=Vn("select"),o=Vn("input"),i=c.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1});FM({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},c.computed(()=>e.suffixTransition===!1));const l=c.ref(null),s=c.ref(null),u=c.ref(null),d=c.ref(null),f=c.ref(null),p=c.ref(null),g=c.ref(null),h=c.ref(null),y=c.ref(null),b=c.ref(null),v=c.ref(null),x=c.ref(null),{wrapperRef:k,isFocused:_,handleFocus:S,handleBlur:T}=l5(f,{afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(ie){var fe,be;return((fe=u.value)==null?void 0:fe.isFocusInsideContent(ie))||((be=d.value)==null?void 0:be.isFocusInsideContent(ie))},afterBlur(){C.value=!1,i.menuVisibleOnFocus=!1}}),C=c.ref(!1),A=c.ref(),{form:O,formItem:F}=gb(),{inputId:R}=c5(e,{formItemContext:F}),N=c.computed(()=>e.disabled||(O==null?void 0:O.disabled)),B=c.computed(()=>e.multiple?Na(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!==""),V=c.computed(()=>e.clearable&&!N.value&&i.inputHovering&&B.value),Z=c.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=c.computed(()=>a.is("reverse",Z.value&&C.value&&e.suffixTransition)),I=c.computed(()=>(F==null?void 0:F.validateState)||""),P=c.computed(()=>OM[I.value]),z=c.computed(()=>e.remote?300:0),H=c.computed(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!i.inputValue&&i.options.size===0?!1:e.filterable&&i.inputValue&&i.options.size>0&&j.value===0?e.noMatchText||n("el.select.noMatch"):i.options.size===0?e.noDataText||n("el.select.noData"):null),j=c.computed(()=>q.value.filter(ie=>ie.visible).length),q=c.computed(()=>{const ie=Array.from(i.options.values()),fe=[];return i.optionValues.forEach(be=>{const Ne=ie.findIndex($e=>$e.value===be);Ne>-1&&fe.push(ie[Ne])}),fe.length>=ie.length?fe:ie}),$=c.computed(()=>Array.from(i.cachedOptions.values())),ne=c.computed(()=>{const ie=q.value.filter(fe=>!fe.created).some(fe=>fe.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!ie}),te=()=>{e.filterable&&Ba(e.filterMethod)||e.filterable&&e.remote&&Ba(e.remoteMethod)||q.value.forEach(ie=>{ie.updateOption(i.inputValue)})},ee=Xh(),se=c.computed(()=>["small"].includes(ee.value)?"small":"default"),U=c.computed({get(){return C.value&&H.value!==!1},set(ie){C.value=ie}}),Y=c.computed(()=>Na(e.modelValue)?e.modelValue.length===0&&!i.inputValue:e.filterable?!i.inputValue:!0),J=c.computed(()=>{var ie;const fe=(ie=e.placeholder)!=null?ie:n("el.select.placeholder");return e.multiple||!B.value?fe:i.selectedLabel});c.watch(()=>e.modelValue,(ie,fe)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",re("")),he(),!Ud(ie,fe)&&e.validateEvent&&(F==null||F.validate("change").catch(be=>Va(be)))},{flush:"post",deep:!0}),c.watch(()=>C.value,ie=>{ie?re(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),t("visible-change",ie)}),c.watch(()=>i.options.entries(),()=>{var ie;if(!Nr)return;const fe=((ie=l.value)==null?void 0:ie.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!TM(e.modelValue)||!Array.from(fe).includes(document.activeElement))&&he(),e.defaultFirstOption&&(e.filterable||e.remote)&&j.value&&oe()},{flush:"post"}),c.watch(()=>i.hoveringIndex,ie=>{ia(ie)&&ie>-1?A.value=q.value[ie]||{}:A.value={},q.value.forEach(fe=>{fe.hover=A.value===fe})}),c.watchEffect(()=>{i.isBeforeHide||te()});const re=ie=>{i.previousQuery!==ie&&(i.previousQuery=ie,e.filterable&&Ba(e.filterMethod)?e.filterMethod(ie):e.filterable&&e.remote&&Ba(e.remoteMethod)&&e.remoteMethod(ie),e.defaultFirstOption&&(e.filterable||e.remote)&&j.value?c.nextTick(oe):c.nextTick(ge))},oe=()=>{const ie=q.value.filter(Ne=>Ne.visible&&!Ne.disabled&&!Ne.states.groupDisabled),fe=ie.find(Ne=>Ne.created),be=ie[0];i.hoveringIndex=at(q.value,fe||be)},he=()=>{if(e.multiple)i.selectedLabel="";else{const fe=ve(e.modelValue);i.selectedLabel=fe.currentLabel,i.selected=fe;return}const ie=[];Na(e.modelValue)&&e.modelValue.forEach(fe=>{ie.push(ve(fe))}),i.selected=ie},ve=ie=>{let fe;const be=Nv(ie).toLowerCase()==="object",Ne=Nv(ie).toLowerCase()==="null",$e=Nv(ie).toLowerCase()==="undefined";for(let St=i.cachedOptions.size-1;St>=0;St--){const Et=$.value[St];if(be?Hi(Et.value,e.valueKey)===Hi(ie,e.valueKey):Et.value===ie){fe={value:ie,currentLabel:Et.currentLabel,isDisabled:Et.isDisabled};break}}if(fe)return fe;const ot=be?ie.label:!Ne&&!$e?ie:"";return{value:ie,currentLabel:ot}},ge=()=>{e.multiple?i.selected.length>0?i.hoveringIndex=Math.min(...i.selected.map(ie=>q.value.findIndex(fe=>Ke(fe)===Ke(ie)))):i.hoveringIndex=-1:i.hoveringIndex=q.value.findIndex(ie=>Ke(ie)===Ke(i.selected))},xe=()=>{i.selectionWidth=s.value.getBoundingClientRect().width},Le=()=>{i.calculatorWidth=p.value.getBoundingClientRect().width},Ue=()=>{i.collapseItemWidth=v.value.getBoundingClientRect().width},Pe=()=>{var ie,fe;(fe=(ie=u.value)==null?void 0:ie.updatePopper)==null||fe.call(ie)},De=()=>{var ie,fe;(fe=(ie=d.value)==null?void 0:ie.updatePopper)==null||fe.call(ie)},je=()=>{i.inputValue.length>0&&!C.value&&(C.value=!0),re(i.inputValue)},qe=ie=>{if(i.inputValue=ie.target.value,e.remote)Ee();else return je()},Ee=aQ(()=>{je()},z.value),_e=ie=>{Ud(e.modelValue,ie)||t(qh,ie)},we=ie=>lQ(ie,fe=>!i.disabledOptions.has(fe)),Re=ie=>{if(e.multiple&&ie.code!==Wd.delete&&ie.target.value.length<=0){const fe=e.modelValue.slice(),be=we(fe);if(be<0)return;fe.splice(be,1),t(Ta,fe),_e(fe)}},Je=(ie,fe)=>{const be=i.selected.indexOf(fe);if(be>-1&&!N.value){const Ne=e.modelValue.slice();Ne.splice(be,1),t(Ta,Ne),_e(Ne),t("remove-tag",fe.value)}ie.stopPropagation(),gt()},it=ie=>{ie.stopPropagation();const fe=e.multiple?[]:"";if(!Yo(fe))for(const be of i.selected)be.isDisabled&&fe.push(be.value);t(Ta,fe),_e(fe),i.hoveringIndex=-1,C.value=!1,t("clear"),gt()},dt=ie=>{if(e.multiple){const fe=(e.modelValue||[]).slice(),be=at(fe,ie.value);be>-1?fe.splice(be,1):(e.multipleLimit<=0||fe.length<e.multipleLimit)&&fe.push(ie.value),t(Ta,fe),_e(fe),ie.created&&re(""),e.filterable&&!e.reserveKeyword&&(i.inputValue="")}else t(Ta,ie.value),_e(ie.value),C.value=!1;gt(),!C.value&&c.nextTick(()=>{lt(ie)})},at=(ie=[],fe)=>{if(!ja(fe))return ie.indexOf(fe);const be=e.valueKey;let Ne=-1;return ie.some(($e,ot)=>c.toRaw(Hi($e,be))===Hi(fe,be)?(Ne=ot,!0):!1),Ne},lt=ie=>{var fe,be,Ne,$e,ot;const St=Na(ie)?ie[0]:ie;let Et=null;if(St!=null&&St.value){const _t=q.value.filter(kt=>kt.value===St.value);_t.length>0&&(Et=_t[0].$el)}if(u.value&&Et){const _t=($e=(Ne=(be=(fe=u.value)==null?void 0:fe.popperRef)==null?void 0:be.contentRef)==null?void 0:Ne.querySelector)==null?void 0:$e.call(Ne,`.${a.be("dropdown","wrap")}`);_t&&pQ(_t,Et)}(ot=x.value)==null||ot.handleScroll()},He=ie=>{i.options.set(ie.value,ie),i.cachedOptions.set(ie.value,ie),ie.disabled&&i.disabledOptions.set(ie.value,ie)},Be=(ie,fe)=>{i.options.get(ie)===fe&&i.options.delete(ie)},{handleCompositionStart:Ze,handleCompositionUpdate:Ye,handleCompositionEnd:et}=Zte(ie=>qe(ie)),st=c.computed(()=>{var ie,fe;return(fe=(ie=u.value)==null?void 0:ie.popperRef)==null?void 0:fe.contentRef}),nt=()=>{c.nextTick(()=>lt(i.selected))},gt=()=>{var ie;(ie=f.value)==null||ie.focus()},Ve=()=>{ft()},rt=ie=>{it(ie)},ft=ie=>{if(C.value=!1,_.value){const fe=new FocusEvent("focus",ie);c.nextTick(()=>T(fe))}},wt=()=>{i.inputValue.length>0?i.inputValue="":C.value=!1},tt=()=>{N.value||e.filterable&&e.remote&&Ba(e.remoteMethod)||(i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:C.value=!C.value)},pt=()=>{C.value?q.value[i.hoveringIndex]&&dt(q.value[i.hoveringIndex]):tt()},Ke=ie=>ja(ie.value)?Hi(ie.value,e.valueKey):ie.value,Ot=c.computed(()=>q.value.filter(ie=>ie.visible).every(ie=>ie.disabled)),X=c.computed(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),ue=c.computed(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),de=ie=>{if(!C.value){C.value=!0;return}if(!(i.options.size===0||j.value===0)&&!Ot.value){ie==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):ie==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const fe=q.value[i.hoveringIndex];(fe.disabled===!0||fe.states.groupDisabled===!0||!fe.visible)&&de(ie),c.nextTick(()=>lt(A.value))}},ce=()=>{if(!s.value)return 0;const ie=window.getComputedStyle(s.value);return Number.parseFloat(ie.gap||"6px")},Oe=c.computed(()=>{const ie=ce();return{maxWidth:`${v.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-ie:i.selectionWidth}px`}}),Te=c.computed(()=>({maxWidth:`${i.selectionWidth}px`})),We=c.computed(()=>({width:`${Math.max(i.calculatorWidth,Kte)}px`}));return e.multiple&&!Na(e.modelValue)&&t(Ta,[]),!e.multiple&&Na(e.modelValue)&&t(Ta,""),Bi(s,xe),Bi(p,Le),Bi(y,Pe),Bi(k,Pe),Bi(b,De),Bi(v,Ue),c.onMounted(()=>{he()}),{inputId:R,contentId:r,nsSelect:a,nsInput:o,states:i,isFocused:_,expanded:C,optionsArray:q,hoverOption:A,selectSize:ee,filteredOptionsCount:j,resetCalculatorWidth:Le,updateTooltip:Pe,updateTagTooltip:De,debouncedOnInputChange:Ee,onInput:qe,deletePrevTag:Re,deleteTag:Je,deleteSelected:it,handleOptionSelect:dt,scrollToOption:lt,hasModelValue:B,shouldShowPlaceholder:Y,currentPlaceholder:J,showClose:V,iconComponent:Z,iconReverse:G,validateState:I,validateIcon:P,showNewOption:ne,updateOptions:te,collapseTagSize:se,setSelected:he,selectDisabled:N,emptyText:H,handleCompositionStart:Ze,handleCompositionUpdate:Ye,handleCompositionEnd:et,onOptionCreate:He,onOptionDestroy:Be,handleMenuEnter:nt,handleFocus:S,focus:gt,blur:Ve,handleBlur:T,handleClearClick:rt,handleClickOutside:ft,handleEsc:wt,toggleMenu:tt,selectOption:pt,getValueKey:Ke,navigateOptions:de,dropdownMenuVisible:U,showTagList:X,collapseTagList:ue,tagStyle:Oe,collapseTagStyle:Te,inputStyle:We,popperRef:st,inputRef:f,tooltipRef:u,tagTooltipRef:d,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:k,selectionRef:s,scrollbarRef:x,menuRef:y,tagMenuRef:b,collapseItemRef:v}};var Jte=c.defineComponent({name:"ElOptions",setup(e,{slots:t}){const n=c.inject(lm);let r=[];return()=>{var a,o;const i=(a=t.default)==null?void 0:a.call(t),l=[];function s(u){Na(u)&&u.forEach(d=>{var f,p,g,h;const y=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;y==="ElOptionGroup"?s(!Yo(d.children)&&!Na(d.children)&&Ba((p=d.children)==null?void 0:p.default)?(g=d.children)==null?void 0:g.default():d.children):y==="ElOption"?l.push((h=d.props)==null?void 0:h.value):Na(d.children)&&s(d.children)})}return i.length&&s((o=i[0])==null?void 0:o.children),Ud(l,r)||(r=l,n&&(n.states.optionValues=l)),i}}});const Qte=Wn({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:pb,effect:{type:nn(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:nn(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Sa.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:xs,default:$v},fitInputWidth:Boolean,suffixIcon:{type:xs,default:mQ},tagType:{...N5.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:nn(String),values:Wh,default:"bottom-start"},ariaLabel:{type:String,default:void 0}}),W5="ElSelect",Xte=c.defineComponent({name:W5,componentName:W5,components:{ElInput:T$,ElSelectMenu:Gte,ElOption:Lb,ElOptions:Jte,ElTag:hte,ElScrollbar:P$,ElTooltip:C5,ElIcon:xo},directives:{ClickOutside:cte},props:Qte,emits:[Ta,qh,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Yte(e,t);return c.provide(lm,c.reactive({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),$te=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],ene=["textContent"];function tne(e,t,n,r,a,o){const i=c.resolveComponent("el-tag"),l=c.resolveComponent("el-tooltip"),s=c.resolveComponent("el-icon"),u=c.resolveComponent("el-option"),d=c.resolveComponent("el-options"),f=c.resolveComponent("el-scrollbar"),p=c.resolveComponent("el-select-menu"),g=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{ref:"selectRef",class:c.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=h=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=h=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=c.withModifiers((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[c.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=h=>e.states.isBeforeHide=!1)},{default:c.withCtx(()=>{var h;return[c.createElementVNode("div",{ref:"wrapperRef",class:c.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(c.openBlock(),c.createElementBlock("div",{key:0,ref:"prefixRef",class:c.normalizeClass(e.nsSelect.e("prefix"))},[c.renderSlot(e.$slots,"prefix")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref:"selectionRef",class:c.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?c.renderSlot(e.$slots,"tag",{key:0},()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.showTagList,y=>(c.openBlock(),c.createElementBlock("div",{key:e.getValueKey(y),class:c.normalizeClass(e.nsSelect.e("selected-item"))},[c.createVNode(i,{closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:c.normalizeStyle(e.tagStyle),onClose:b=>e.deleteTag(b,y)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(e.nsSelect.e("tags-text"))},c.toDisplayString(y.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(c.openBlock(),c.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:c.withCtx(()=>[c.createElementVNode("div",{ref:"collapseItemRef",class:c.normalizeClass(e.nsSelect.e("selected-item"))},[c.createVNode(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:c.normalizeStyle(e.collapseTagStyle)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(e.nsSelect.e("tags-text"))}," + "+c.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:c.withCtx(()=>[c.createElementVNode("div",{ref:"tagMenuRef",class:c.normalizeClass(e.nsSelect.e("selection"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.collapseTagList,y=>(c.openBlock(),c.createElementBlock("div",{key:e.getValueKey(y),class:c.normalizeClass(e.nsSelect.e("selected-item"))},[c.createVNode(i,{class:"in-tooltip",closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:b=>e.deleteTag(b,y)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(e.nsSelect.e("tags-text"))},c.toDisplayString(y.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):c.createCommentVNode("v-if",!0)]):c.createCommentVNode("v-if",!0),e.selectDisabled?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[c.withDirectives(c.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=y=>e.states.inputValue=y),type:"text",class:c.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:c.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...y)=>e.handleFocus&&e.handleFocus(...y)),onBlur:t[2]||(t[2]=(...y)=>e.handleBlur&&e.handleBlur(...y)),onKeydown:[t[3]||(t[3]=c.withKeys(c.withModifiers(y=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=c.withKeys(c.withModifiers(y=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=c.withKeys(c.withModifiers((...y)=>e.handleEsc&&e.handleEsc(...y),["stop","prevent"]),["esc"])),t[6]||(t[6]=c.withKeys(c.withModifiers((...y)=>e.selectOption&&e.selectOption(...y),["stop","prevent"]),["enter"])),t[7]||(t[7]=c.withKeys(c.withModifiers((...y)=>e.deletePrevTag&&e.deletePrevTag(...y),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...y)=>e.handleCompositionStart&&e.handleCompositionStart(...y)),onCompositionupdate:t[9]||(t[9]=(...y)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...y)),onCompositionend:t[10]||(t[10]=(...y)=>e.handleCompositionEnd&&e.handleCompositionEnd(...y)),onInput:t[11]||(t[11]=(...y)=>e.onInput&&e.onInput(...y)),onClick:t[12]||(t[12]=c.withModifiers((...y)=>e.toggleMenu&&e.toggleMenu(...y),["stop"]))},null,46,$te),[[c.vModelText,e.states.inputValue]]),e.filterable?(c.openBlock(),c.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:c.normalizeClass(e.nsSelect.e("input-calculator")),textContent:c.toDisplayString(e.states.inputValue)},null,10,ene)):c.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[c.createElementVNode("span",null,c.toDisplayString(e.currentPlaceholder),1)],2)):c.createCommentVNode("v-if",!0)],2),c.createElementVNode("div",{ref:"suffixRef",class:c.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(c.openBlock(),c.createBlock(s,{key:0,class:c.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(c.openBlock(),c.createBlock(s,{key:1,class:c.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(c.openBlock(),c.createBlock(s,{key:2,class:c.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)]}),content:c.withCtx(()=>[c.createVNode(p,{ref:"menuRef"},{default:c.withCtx(()=>[e.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(e.nsSelect.be("dropdown","header"))},[c.renderSlot(e.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createVNode(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:c.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:c.withCtx(()=>[e.showNewOption?(c.openBlock(),c.createBlock(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):c.createCommentVNode("v-if",!0),c.createVNode(d,null,{default:c.withCtx(()=>[c.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[c.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(e.nsSelect.be("dropdown","loading"))},[c.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(e.nsSelect.be("dropdown","empty"))},[c.renderSlot(e.$slots,"empty",{},()=>[c.createElementVNode("span",null,c.toDisplayString(e.emptyText),1)])],2)):c.createCommentVNode("v-if",!0),e.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:3,class:c.normalizeClass(e.nsSelect.be("dropdown","footer"))},[c.renderSlot(e.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[g,e.handleClickOutside,e.popperRef]])}var nne=zn(Xte,[["render",tne],["__file","select.vue"]]);const rne=c.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Vn("select"),n=c.ref(null),r=c.getCurrentInstance(),a=c.ref([]);c.provide(q5,c.reactive({...c.toRefs(e)}));const o=c.computed(()=>a.value.some(s=>s.visible===!0)),i=s=>{const u=[];return Na(s.children)&&s.children.forEach(d=>{var f;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(f=d.children)!=null&&f.length&&u.push(...i(d))}),u},l=()=>{a.value=i(r.subTree)};return c.onMounted(()=>{l()}),bZ(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function ane(e,t,n,r,a,o){return c.withDirectives((c.openBlock(),c.createElementBlock("ul",{ref:"groupRef",class:c.normalizeClass(e.ns.be("group","wrap"))},[c.createElementVNode("li",{class:c.normalizeClass(e.ns.be("group","title"))},c.toDisplayString(e.label),3),c.createElementVNode("li",null,[c.createElementVNode("ul",{class:c.normalizeClass(e.ns.b("group"))},[c.renderSlot(e.$slots,"default")],2)])],2)),[[c.vShow,e.visible]])}var G5=zn(rne,[["render",ane],["__file","option-group.vue"]]);const rf=Xo(nne,{Option:Lb,OptionGroup:G5}),af=Uh(Lb);Uh(G5);const one=Wn({trigger:$d.trigger,placement:Eb.placement,disabled:$d.disabled,visible:Sa.visible,transition:Sa.transition,popperOptions:Eb.popperOptions,tabindex:Eb.tabindex,content:Sa.content,popperStyle:Sa.popperStyle,popperClass:Sa.popperClass,enterable:{...Sa.enterable,default:!0},effect:{...Sa.effect,default:"light"},teleported:Sa.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),ine={"update:visible":e=>Xv(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},lne="onUpdate:visible",sne=c.defineComponent({name:"ElPopover"}),cne=c.defineComponent({...sne,props:one,emits:ine,setup(e,{expose:t,emit:n}){const r=e,a=c.computed(()=>r[lne]),o=Vn("popover"),i=c.ref(),l=c.computed(()=>{var b;return(b=c.unref(i))==null?void 0:b.popperRef}),s=c.computed(()=>[{width:Vh(r.width)},r.popperStyle]),u=c.computed(()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}]),d=c.computed(()=>r.transition===`${o.namespace.value}-fade-in-linear`),f=()=>{var b;(b=i.value)==null||b.hide()},p=()=>{n("before-enter")},g=()=>{n("before-leave")},h=()=>{n("after-enter")},y=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(b,v)=>(c.openBlock(),c.createBlock(c.unref(C5),c.mergeProps({ref_key:"tooltipRef",ref:i},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":c.unref(u),"popper-style":c.unref(s),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":c.unref(d),"onUpdate:visible":c.unref(a),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:y}),{content:c.withCtx(()=>[b.title?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(o).e("title")),role:"title"},c.toDisplayString(b.title),3)):c.createCommentVNode("v-if",!0),c.renderSlot(b.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(b.content),1)])]),default:c.withCtx(()=>[b.$slots.reference?c.renderSlot(b.$slots,"reference",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var une=zn(cne,[["__file","popover.vue"]]);const Z5=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var dne={mounted(e,t){Z5(e,t)},updated(e,t){Z5(e,t)}};const fne="popover",pne=CQ(dne,fne),zb=Xo(une,{directive:pne}),K5=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},hne=["xlink:href"],mne={__name:"SvgIcon",props:{icon:{type:String,required:!0},spin:{type:Boolean,default:!1}},setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("svg",{class:c.normalizeClass(["map-icon",{"map-icon-spin":e.spin}])},[c.createElementVNode("use",{"xlink:href":`#${e.icon}`},null,8,hne)],2))}},gne=K5(mne,[["__scopeId","data-v-4c9c4762"]]),Y5=`<?xml version="1.0" encoding="UTF-8"?>
34
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
35
+ <title>2horpanel</title>
36
+ <g id="2horpanel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
37
+ <g id="Group-10-Copy-4">
38
+ <g id="Group-15-Copy" fill="currentColor">
39
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
40
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
41
+ <tspan x="8.5" y="18">?</tspan>
42
+ </text>
43
+ </g>
44
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
45
+ <line x1="18.5" y1="12" x2="5.5" y2="12" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
46
+ </g>
47
+ </g>
48
+ </svg>`,J5=`<?xml version="1.0" encoding="UTF-8"?>
49
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
50
+ <title>2vertpanel</title>
51
+ <g id="2vertpanel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
52
+ <g id="Group-10-Copy-3">
53
+ <g id="Group-15-Copy" fill="currentColor">
54
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
55
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
56
+ <tspan x="8.5" y="18">?</tspan>
57
+ </text>
58
+ </g>
59
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
60
+ <line x1="12" y1="7.5" x2="12" y2="16.5" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
61
+ </g>
62
+ </g>
63
+ </svg>`,Q5=`<?xml version="1.0" encoding="UTF-8"?>
64
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
65
+ <title>3panel</title>
66
+ <g id="3panel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
67
+ <g id="Group-10-Copy">
68
+ <g id="Group-15-Copy" fill="currentColor">
69
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
70
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
71
+ <tspan x="8.5" y="18">?</tspan>
72
+ </text>
73
+ </g>
74
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
75
+ <line x1="11.5" y1="7.5" x2="11.5" y2="16.5" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
76
+ <line x1="18.5" y1="11.5" x2="11.5" y2="11.5" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
77
+ </g>
78
+ </g>
79
+ </svg>`,X5=`<?xml version="1.0" encoding="UTF-8"?>
80
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
81
+ <title>4panel</title>
82
+ <g id="4panel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
83
+ <g id="Group-10-Copy-2">
84
+ <g id="Group-15-Copy" fill="currentColor">
85
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
86
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
87
+ <tspan x="8.5" y="18">?</tspan>
88
+ </text>
89
+ </g>
90
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
91
+ <line x1="12" y1="7.5" x2="12" y2="16.5" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
92
+ <line x1="18.5" y1="12" x2="5.5" y2="12" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
93
+ </g>
94
+ </g>
95
+ </svg>`,$5=`<?xml version="1.0" encoding="UTF-8"?>
96
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
97
+ <title>2horpanel</title>
98
+ <g id="2horpanel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
99
+ <g id="Group-10-Copy-4">
100
+ <g id="Group-15-Copy" fill="currentColor">
101
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
102
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
103
+ <tspan x="8.5" y="18">?</tspan>
104
+ </text>
105
+ </g>
106
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
107
+ <line x1="18.5" y1="12" x2="5.5" y2="12" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
108
+ <line x1="12" y1="12.5" x2="12" y2="16.5" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
109
+ <line x1="14.5" y1="12" x2="14.5" y2="7" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
110
+ <line x1="9.5" y1="12" x2="9.5" y2="7" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
111
+ </g>
112
+ </g>
113
+ </svg>`,eC=`<?xml version="1.0" encoding="UTF-8"?>
114
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
115
+ <title>2horpanel</title>
116
+ <g id="2horpanel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
117
+ <g id="Group-10-Copy-4">
118
+ <g id="Group-15-Copy" fill="currentColor">
119
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
120
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
121
+ <tspan x="8.5" y="18">?</tspan>
122
+ </text>
123
+ </g>
124
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
125
+ <line x1="18.5" y1="12" x2="5.5" y2="12" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
126
+ <line x1="14.5" y1="16" x2="14.5" y2="7" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
127
+ <line x1="9.5" y1="16" x2="9.5" y2="7" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
128
+ </g>
129
+ </g>
130
+ </svg>`,tC=`<?xml version="1.0" encoding="UTF-8"?>
131
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
132
+ <title>4panel</title>
133
+ <g id="4panel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
134
+ <g id="Group-10-Copy-2">
135
+ <g id="Group-15-Copy" fill="currentColor">
136
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
137
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
138
+ <tspan x="8.5" y="18">?</tspan>
139
+ </text>
140
+ </g>
141
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
142
+ <line x1="12" y1="7.5" x2="12" y2="16.5" id="Line-6" stroke="#FFFFFF" stroke-linecap="square"></line>
143
+ <line x1="18.5" y1="10.5" x2="5.5" y2="10.5" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
144
+ <line x1="18.5" y1="13.8" x2="5.5" y2="13.8" id="Line-10" stroke="#FFFFFF" stroke-linecap="square"></line>
145
+ </g>
146
+ </g>
147
+ </svg>`,nC=`<?xml version="1.0" encoding="UTF-8"?>
148
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
149
+ <title>changeBckgd</title>
150
+ <g id="changeBckgd" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
151
+ <g id="Group-5">
152
+ <circle id="Oval-Copy" fill="currentColor" cx="12" cy="12" r="12"></circle>
153
+ <rect id="Rectangle" stroke="#FFFFFF" x="7" y="6" width="10" height="7"></rect>
154
+ <line x1="12" y1="13.5" x2="12" y2="16.5" id="Line-4" stroke="#FFFFFF" stroke-width="2"></line>
155
+ <line x1="7" y1="16.5" x2="17" y2="16.5" id="Line" stroke="#FFFFFF" stroke-linecap="square"></line>
156
+ </g>
157
+ </g>
158
+ </svg>`,rC=`<?xml version="1.0" encoding="UTF-8"?>
159
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
160
+ <title>close no bk</title>
161
+ <g id="close-no-bk" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
162
+ <g id="Group-13" transform="translate(12.000000, 12.000000) rotate(-315.000000) translate(-12.000000, -12.000000) translate(5.000000, 5.000000)" stroke="#FFFFFF" stroke-width="2">
163
+ <line x1="0" y1="7" x2="14" y2="7" id="Line-9"></line>
164
+ <line x1="7" y1="0" x2="7" y2="14" id="Line-9"></line>
165
+ </g>
166
+ </g>
167
+ </svg>`,aC=`<?xml version="1.0" encoding="UTF-8"?>
168
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
169
+ <title>close</title>
170
+ <g id="close" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
171
+ <g id="Group-9">
172
+ <g id="Group-8" fill="currentColor">
173
+ <circle id="Oval" cx="12" cy="12" r="12"></circle>
174
+ </g>
175
+ <g id="Group-13" transform="translate(12.000000, 12.000000) rotate(-315.000000) translate(-12.000000, -12.000000) translate(5.000000, 5.000000)" stroke="#FFFFFF" stroke-linecap="square" stroke-width="2">
176
+ <line x1="0" y1="7" x2="14" y2="7" id="Line-9"></line>
177
+ <line x1="7" y1="0" x2="7" y2="14" id="Line-9"></line>
178
+ </g>
179
+ </g>
180
+ </g>
181
+ </svg>`,oC=`<?xml version="1.0" encoding="UTF-8"?>
182
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
183
+ <title>closeFullScreen</title>
184
+ <g id="closeFullScreen" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
185
+ <g id="Group">
186
+ <circle id="Oval" fill="currentColor" cx="12" cy="12" r="12"></circle>
187
+ <polyline id="Line-5" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="square" transform="translate(6.750000, 7.750000) rotate(-180.000000) translate(-6.750000, -7.750000) " points="5 9.5 5 6 8.5 6"></polyline>
188
+ <polyline id="Line-5" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="square" transform="translate(17.250000, 15.750000) rotate(-360.000000) translate(-17.250000, -15.750000) " points="15.5 17.5 15.5 14 19 14"></polyline>
189
+ <polyline id="Line-5" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="square" transform="translate(6.750000, 15.750000) scale(1, -1) rotate(-180.000000) translate(-6.750000, -15.750000) " points="5 17.5 5 14 8.5 14"></polyline>
190
+ <polyline id="Line-5" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="square" transform="translate(17.250000, 7.750000) scale(1, -1) rotate(-360.000000) translate(-17.250000, -7.750000) " points="15.5 9.5 15.5 6 19 6"></polyline>
191
+ </g>
192
+ </g>
193
+ </svg>`,iC=`<?xml version="1.0" encoding="UTF-8"?>
194
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
195
+ <title>dock</title>
196
+ <g id="dock" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
197
+ <g id="Group-8-Copy-2">
198
+ <circle id="Oval" fill="currentColor" cx="12" cy="12" r="12"></circle>
199
+ <g id="Group-5" transform="translate(2.972940, 3.512563)" stroke="#FFFFFF" stroke-linecap="square" stroke-width="2">
200
+ <line x1="10.7289628" y1="7.03553391" x2="14.9716035" y2="2.79289322" id="Line"></line>
201
+ <g id="Group" transform="translate(14.264497, 3.500000) rotate(-315.000000) translate(-14.264497, -3.500000) translate(11.264497, 2.000000)">
202
+ <line x1="2.27373675e-13" y1="2.82842712" x2="2.82842712" y2="0" id="Line"></line>
203
+ <line x1="3" y1="0" x2="5.82842712" y2="2.82842712" id="Line"></line>
204
+ </g>
205
+ <line x1="7.53553391" y1="10.1584369" x2="3.29289322" y2="14.4010776" id="Line"></line>
206
+ <g id="Group" transform="translate(4.000000, 13.693971) rotate(-135.000000) translate(-4.000000, -13.693971) translate(1.000000, 12.193971)">
207
+ <line x1="2.27373675e-13" y1="2.82842712" x2="2.82842712" y2="0" id="Line"></line>
208
+ <line x1="3" y1="0" x2="5.82842712" y2="2.82842712" id="Line"></line>
209
+ </g>
210
+ </g>
211
+ </g>
212
+ </g>
213
+ </svg>`,lC=`<?xml version="1.0" encoding="UTF-8"?>
214
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
215
+ <title>fitWindow</title>
216
+ <g id="fitWindow" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
217
+ <g id="Group-3">
218
+ <g id="Group-8-Copy">
219
+ <circle id="Oval" fill="currentColor" cx="12" cy="12" r="12"></circle>
220
+ <g id="Group" transform="translate(5.000000, 6.000000)" stroke="#FFFFFF" stroke-linecap="square" stroke-width="1.5">
221
+ <polyline id="Line-5" points="0 3.5 0 0 4.80123862 0"></polyline>
222
+ <polyline id="Line-5" transform="translate(2.400619, 9.750000) scale(1, -1) translate(-2.400619, -9.750000) " points="0 11.5 0 8 4.80123862 8"></polyline>
223
+ <polyline id="Line-5" transform="translate(11.600619, 1.750000) scale(1, -1) rotate(-180.000000) translate(-11.600619, -1.750000) " points="9.2 3.5 9.2 0 14.0012386 0"></polyline>
224
+ </g>
225
+ </g>
226
+ <g id="Group-12" transform="translate(9.000000, 8.500000)" stroke="#FFFFFF" stroke-width="2">
227
+ <circle id="Oval" cx="3.5" cy="3.5" r="3.5"></circle>
228
+ <line x1="8.75" y1="8.75" x2="6.25" y2="6.25" id="Line-8" stroke-linecap="square"></line>
229
+ </g>
230
+ </g>
231
+ </g>
232
+ </svg>`,sC=`<?xml version="1.0" encoding="UTF-8"?>
233
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
234
+ <title>fullScreen</title>
235
+ <g id="fullScreen" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
236
+ <g id="Group-8-Copy">
237
+ <circle id="Oval" fill="currentColor" cx="12" cy="12" r="12"></circle>
238
+ <g id="Group" transform="translate(5.000000, 6.000000)" stroke="#FFFFFF" stroke-linecap="square" stroke-width="1.5">
239
+ <polyline id="Line-5" points="7.68274333e-14 3.5 7.68274333e-14 0 4.80123862 0"></polyline>
240
+ <polyline id="Line-5" transform="translate(11.600619, 9.750000) rotate(-180.000000) translate(-11.600619, -9.750000) " points="9.2 11.5 9.2 8 14.0012386 8"></polyline>
241
+ <polyline id="Line-5" transform="translate(2.400619, 9.750000) scale(1, -1) translate(-2.400619, -9.750000) " points="7.68274333e-14 11.5 7.68274333e-14 8 4.80123862 8"></polyline>
242
+ <polyline id="Line-5" transform="translate(11.600619, 1.750000) scale(1, -1) rotate(-180.000000) translate(-11.600619, -1.750000) " points="9.2 3.5 9.2 0 14.0012386 0"></polyline>
243
+ </g>
244
+ </g>
245
+ </g>
246
+ </svg>`,cC='<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>DataPortal-Icons</title><circle cx="12" cy="15.824" r="0.753"/><path d="M12,14.256a.75.75,0,0,1-.75-.75v-1c0-.529.419-.818.862-1.124.623-.43,1.138-.83,1.138-1.376A1.209,1.209,0,0,0,12,8.756a1.252,1.252,0,0,0-1.25,1.25.75.75,0,0,1-1.5,0A2.753,2.753,0,0,1,12,7.256a2.721,2.721,0,0,1,2.75,2.75,3.3,3.3,0,0,1-1.786,2.61c-.079.055-.152.1-.214.147v.743A.75.75,0,0,1,12,14.256Z"/><path d="M12,5a7,7,0,1,1-7,7,7.008,7.008,0,0,1,7-7m0-2a9,9,0,1,0,9,9,9,9,0,0,0-9-9Z"/></svg>',uC=`<?xml version="1.0" encoding="UTF-8"?>
247
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
248
+ <title>magnifyingGlass</title>
249
+ <g id="magnifyingGlass" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
250
+ <g id="Group-19-Copy">
251
+ <g id="Group-13-Copy">
252
+ <circle id="Oval-Copy-2" fill="currentColor" cx="12" cy="12" r="12"></circle>
253
+ <g id="Group-12" transform="translate(5.000000, 4.000000)" stroke="#FFFFFF" stroke-width="2">
254
+ <circle id="Oval" cx="5.5" cy="5.5" r="5.5"></circle>
255
+ <line x1="13.5833333" y1="13.5833333" x2="9.41666667" y2="9.41666667" id="Line-8" stroke-linecap="square"></line>
256
+ </g>
257
+ </g>
258
+ </g>
259
+ </g>
260
+ </svg>`,dC=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0px" y="0px" viewBox="0 0 960 1200" enable-background="new 0 0 960 960" xml:space="preserve"><g><path fill="#000000" d="M670,499.992c0,5.5-4.5,10-10,10H300c-5.516,0-10-4.5-10-10v-40c0-5.5,4.484-10,10-10h360 c5.5,0,10,4.5,10,10V499.992z"/><path fill="#000000" d="M530,649.992c0,5.5-4.5,10-10,10h-80c-5.516,0-10-4.5-10-10v-40c0-5.5,4.484-10,10-10h80 c5.5,0,10,4.5,10,10V649.992z"/><path fill="#000000" d="M780,350.008c0,5.5-4.5,10-10,10H190c-5.516,0-10-4.5-10-10v-40c0-5.516,4.484-10,10-10h580 c5.5,0,10,4.484,10,10V350.008z"/></g><text x="0" y="975" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by Wahyu Prihantoro</text><text x="0" y="980" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>`,fC=`<?xml version="1.0" encoding="UTF-8"?>
261
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
262
+ <title>openMap</title>
263
+ <g id="openMap" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
264
+ <g id="Group-5-Copy" fill="currentColor">
265
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
266
+ </g>
267
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="10" width="10" height="7"></rect>
268
+ <rect id="Rectangle-Copy" stroke="#FFFFFF" x="9" y="6" width="10" height="7"></rect>
269
+ </g>
270
+ </svg>`,pC=`<?xml version="1.0" encoding="UTF-8"?>
271
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
272
+ <title>Artboard Copy 6</title>
273
+ <g id="Artboard-Copy-6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
274
+ <g id="Group-5-Copy" fill="currentColor">
275
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
276
+ </g>
277
+ <line x1="9" y1="8" x2="9" y2="16" id="Line-6-Copy-2" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square"></line>
278
+ <line x1="15" y1="8" x2="15" y2="16" id="Line-6-Copy-3" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square"></line>
279
+ </g>
280
+ </svg>`,hC=`<?xml version="1.0" encoding="UTF-8"?>
281
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
282
+ <title>permalink</title>
283
+ <g id="permalink" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
284
+ <circle id="Oval" fill="currentColor" cx="12" cy="12" r="12"></circle>
285
+ <line x1="12.5" y1="9" x2="12.5" y2="15" id="Line-6-Copy-2" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square" transform="translate(12.500000, 12.000000) rotate(45.000000) translate(-12.500000, -12.000000) "></line>
286
+ <path d="M17,13 L17,16.5 C17,18.9852814 14.9852814,21 12.5,21 C10.0147186,21 8,18.9852814 8,16.5 L8,13 L10,13 L10,16.5 C10,17.8807119 11.1192881,19 12.5,19 C13.8254834,19 14.9100387,17.9684641 14.9946823,16.6643757 L15,16.5 L15,13 L17,13 Z M12.5,3 C14.9852814,3 17,5.01471863 17,7.5 L17,11 L15,11 L15,7.5 C15,6.11928813 13.8807119,5 12.5,5 C11.1745166,5 10.0899613,6.03153594 10.0053177,7.33562431 L10,7.5 L10,11 L8,11 L8,7.5 C8,5.01471863 10.0147186,3 12.5,3 Z" id="Combined-Shape" fill="#FFFFFF" transform="translate(12.500000, 12.000000) rotate(45.000000) translate(-12.500000, -12.000000) "></path>
287
+ </g>
288
+ </svg>`,mC=`<?xml version="1.0" encoding="UTF-8"?>
289
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
290
+ <title>play</title>
291
+ <g id="play" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
292
+ <g id="Group-9">
293
+ <g id="Group-5-Copy" fill="currentColor">
294
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
295
+ </g>
296
+ <polygon id="Triangle" fill="#FFFFFF" class="st0" transform="translate(13.000000, 11.500000) rotate(-270.000000) translate(-13.000000, -11.500000) " points="13 8 19 15 7 15"></polygon>
297
+ </g>
298
+ </g>
299
+ </svg>`,gC=`<?xml version="1.0" encoding="UTF-8"?>
300
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
301
+ <title>resetZoom</title>
302
+ <g id="resetZoom" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
303
+ <g id="Group-13-Copy-2">
304
+ <circle id="Oval-Copy-2" fill="currentColor" cx="12" cy="12" r="12"></circle>
305
+ <g id="Group-12" transform="translate(5.000000, 4.000000)" stroke="#FFFFFF" stroke-width="2">
306
+ <circle id="Oval" cx="5.5" cy="5.5" r="5.5"></circle>
307
+ <line x1="13.5833333" y1="13.5833333" x2="9.41666667" y2="9.41666667" id="Line-8" stroke-linecap="square"></line>
308
+ </g>
309
+ <g id="Group-4" transform="translate(7.500000, 7.000000)">
310
+ <path d="M3,5 C3.83613696,5 4.57640148,4.58952131 5.03027306,3.95908443 C5.19488093,3.73044075 5.32181864,3.47286529 5.40199763,3.19544657 C5.46580562,2.97467142 5.5,2.74132897 5.5,2.5 C5.5,2.26693547 5.46810753,2.04131982 5.40844867,1.82727914 C5.31560782,1.49418996 5.15552386,1.18913241 4.9437468,0.927656488 C4.48541251,0.361762414 3.78495332,0 3,0 C1.61928813,0 0.5,1.11928813 0.5,2.5 C0.5,3.88071187 1.61928813,5 3,5 Z" id="Oval" stroke="#FFFFFF"></path>
311
+ <rect id="Rectangle" fill="currentColor" x="2.5" y="2" width="4" height="1"></rect>
312
+ <line x1="5.5" y1="1.5" x2="5.5" y2="0.5" id="Line-7" stroke="#FFFFFF" stroke-linecap="square"></line>
313
+ <line x1="4.5" y1="1.5" x2="5.5" y2="1.5" id="Line-7" stroke="#FFFFFF" stroke-linecap="square"></line>
314
+ </g>
315
+ </g>
316
+ </g>
317
+ </svg>`,yC=`<?xml version="1.0" encoding="UTF-8"?>
318
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
319
+ <title>singlepanel</title>
320
+ <g id="singlepanel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
321
+ <g id="Group-10-Copy-5">
322
+ <g id="Group-15-Copy" fill="currentColor">
323
+ <circle id="Oval-Copy" cx="12" cy="12" r="12"></circle>
324
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold">
325
+ <tspan x="8.5" y="18">?</tspan>
326
+ </text>
327
+ </g>
328
+ <rect id="Rectangle" stroke="#FFFFFF" x="5" y="7" width="14" height="10"></rect>
329
+ </g>
330
+ </g>
331
+ </svg>`,vC=`<?xml version="1.0" encoding="UTF-8"?>
332
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
333
+ <title>tooltips</title>
334
+ <g id="tooltips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
335
+ <g id="Group-15">
336
+ <circle id="Oval-Copy" fill="currentColor" cx="12" cy="12" r="12"></circle>
337
+ <path d="M6,5 L18,5 C19.1045695,5 20,5.8954305 20,7 L20,15.5714286 C20,16.6759981 19.1045695,17.5714286 18,17.5714286 L15.4003471,17.5714286 L15.4003471,17.5714286 L12.8157442,20.271248 C12.4338253,20.6701921 11.8008107,20.6839938 11.4018666,20.3020749 C11.3997428,20.3000417 11.3976279,20.2979991 11.3955221,20.2959473 L8.59934577,17.5714286 L8.59934577,17.5714286 L6,17.5714286 C4.8954305,17.5714286 4,16.6759981 4,15.5714286 L4,7 C4,5.8954305 4.8954305,5 6,5 Z" id="Rectangle" fill="#FFFFFF"></path>
338
+ <text id="?" font-family="Asap-Bold, Asap" font-size="16" font-weight="bold" fill="currentColor">
339
+ <tspan x="8.5" y="18">?</tspan>
340
+ </text>
341
+ </g>
342
+ </g>
343
+ </svg>`,bC=`<?xml version="1.0" encoding="UTF-8"?>
344
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
345
+ <title>undock</title>
346
+ <g id="undock" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
347
+ <g id="Group-9">
348
+ <circle id="Oval" fill="currentColor" cx="12" cy="12" r="12"></circle>
349
+ <g id="Group-5" transform="translate(5.500000, 6.000000)" stroke="#FFFFFF" stroke-linecap="square" stroke-width="2">
350
+ <line x1="0.728962778" y1="12.0355339" x2="4.97160346" y2="7.79289322" id="Line"></line>
351
+ <g id="Group" transform="translate(4.264497, 8.500000) rotate(-315.000000) translate(-4.264497, -8.500000) translate(1.264497, 7.000000)">
352
+ <line x1="2.27373675e-13" y1="2.82842712" x2="2.82842712" y2="0" id="Line"></line>
353
+ <line x1="3" y1="0" x2="5.82842712" y2="2.82842712" id="Line"></line>
354
+ </g>
355
+ <line x1="12.5355339" y1="0.158436893" x2="8.29289322" y2="4.40107758" id="Line"></line>
356
+ <g id="Group" transform="translate(9.000000, 3.693971) rotate(-135.000000) translate(-9.000000, -3.693971) translate(6.000000, 2.193971)">
357
+ <line x1="2.27373675e-13" y1="2.82842712" x2="2.82842712" y2="0" id="Line"></line>
358
+ <line x1="3" y1="0" x2="5.82842712" y2="2.82842712" id="Line"></line>
359
+ </g>
360
+ </g>
361
+ </g>
362
+ </g>
363
+ </svg>`,xC=`<?xml version="1.0" encoding="UTF-8"?>
364
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
365
+ <title>zoomIn</title>
366
+ <g id="zoomIn" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
367
+ <g id="Group-19-Copy">
368
+ <g id="Group-13-Copy">
369
+ <circle id="Oval-Copy-2" fill="currentColor" cx="12" cy="12" r="12"></circle>
370
+ <g id="Group-12" transform="translate(5.000000, 4.000000)" stroke="#FFFFFF" stroke-width="2">
371
+ <circle id="Oval" cx="5.5" cy="5.5" r="5.5"></circle>
372
+ <line x1="13.5833333" y1="13.5833333" x2="9.41666667" y2="9.41666667" id="Line-8" stroke-linecap="square"></line>
373
+ </g>
374
+ </g>
375
+ <line x1="9" y1="9.5" x2="12" y2="9.5" id="Line-6-Copy-2" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square"></line>
376
+ <line x1="9" y1="9.5" x2="12" y2="9.5" id="Line-6-Copy-2" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square" transform="translate(10.500000, 9.500000) rotate(90.000000) translate(-10.500000, -9.500000) "></line>
377
+ </g>
378
+ </g>
379
+ </svg>`,wC=`<?xml version="1.0" encoding="UTF-8"?>
380
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
381
+ <title>zoomOut</title>
382
+ <g id="zoomOut" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
383
+ <g id="Group-19-Copy-3">
384
+ <g id="Group-13-Copy">
385
+ <circle id="Oval-Copy-2" fill="currentColor" cx="12" cy="12" r="12"></circle>
386
+ <g id="Group-12" transform="translate(5.000000, 4.000000)" stroke="#FFFFFF" stroke-width="2">
387
+ <circle id="Oval" cx="5.5" cy="5.5" r="5.5"></circle>
388
+ <line x1="13.5833333" y1="13.5833333" x2="9.41666667" y2="9.41666667" id="Line-8" stroke-linecap="square"></line>
389
+ </g>
390
+ </g>
391
+ <line x1="9" y1="9.5" x2="12" y2="9.5" id="Line-6-Copy-2" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square"></line>
392
+ </g>
393
+ </g>
394
+ </svg>`,_C=(e,t,n,r)=>{const a=["title","desc","defs","style"],o=["width","height"],i=r||[];let l=document.createElement("div");l.innerHTML=e,t&&a.map(u=>{const d=l.querySelector(u);d&&d.remove()}),n&&o.map(u=>{l.querySelector("svg").removeAttribute(u)}),r&&i.map(u=>{Object.values(l.querySelectorAll(`[${u}]`)).map(d=>{d.removeAttribute(u)})});const s=l.innerHTML;return l=null,s},kC=e=>[[/<\?xml[\s\S]*?>/gi,""],[/<!doctype[\s\S]*?>/gi,""],[/<!--.*-->/gi,""],[/\<([A-Za-z]+)([^\>]*)\/\>/g,"<$1$2></$1>"],[/\s+/g," "],[/\> \</g,"><"]].reduce((t,n)=>"".replace.apply(t,n),e).trim(),yne=!0,vne=!0,bne=["fill"],TC=Object.assign({"/assets/icons/2horpanel.svg":Y5,"/assets/icons/2vertpanel.svg":J5,"/assets/icons/3panel.svg":Q5,"/assets/icons/4panel.svg":X5,"/assets/icons/5panel.svg":$5,"/assets/icons/6panel.svg":eC,"/assets/icons/6panelVertical.svg":tC,"/assets/icons/changeBckgd.svg":nC,"/assets/icons/close-no-bk.svg":rC,"/assets/icons/close.svg":aC,"/assets/icons/closeFullScreen.svg":oC,"/assets/icons/dock.svg":iC,"/assets/icons/fitWindow.svg":lC,"/assets/icons/fullScreen.svg":sC,"/assets/icons/help.svg":cC,"/assets/icons/magnifyingGlass.svg":uC,"/assets/icons/noun-filter.svg":dC,"/assets/icons/openMap.svg":fC,"/assets/icons/pause.svg":pC,"/assets/icons/permalink.svg":hC,"/assets/icons/play.svg":mC,"/assets/icons/resetZoom.svg":gC,"/assets/icons/singlepanel.svg":yC,"/assets/icons/tooltips.svg":vC,"/assets/icons/undock.svg":bC,"/assets/icons/zoomIn.svg":xC,"/assets/icons/zoomOut.svg":wC});Object.keys(TC).map(e=>{const t=_C(TC[e],yne,vne,bne),n=e.replace(/^.+\/(\w+).svg$/,"$1");return kC(t).replace("<svg",`<symbol id="${n}"`).replace("svg>","symbol>")}).join(`
395
+ `);const xne=!0,wne=!0,Fb=Object.assign({"/assets/icons/2horpanel.svg":Y5,"/assets/icons/2vertpanel.svg":J5,"/assets/icons/3panel.svg":Q5,"/assets/icons/4panel.svg":X5,"/assets/icons/5panel.svg":$5,"/assets/icons/6panel.svg":eC,"/assets/icons/6panelVertical.svg":tC,"/assets/icons/changeBckgd.svg":nC,"/assets/icons/close-no-bk.svg":rC,"/assets/icons/close.svg":aC,"/assets/icons/closeFullScreen.svg":oC,"/assets/icons/dock.svg":iC,"/assets/icons/fitWindow.svg":lC,"/assets/icons/fullScreen.svg":sC,"/assets/icons/help.svg":cC,"/assets/icons/magnifyingGlass.svg":uC,"/assets/icons/noun-filter.svg":dC,"/assets/icons/openMap.svg":fC,"/assets/icons/pause.svg":pC,"/assets/icons/permalink.svg":hC,"/assets/icons/play.svg":mC,"/assets/icons/resetZoom.svg":gC,"/assets/icons/singlepanel.svg":yC,"/assets/icons/tooltips.svg":vC,"/assets/icons/undock.svg":bC,"/assets/icons/zoomIn.svg":xC,"/assets/icons/zoomOut.svg":wC}),_ne=Object.keys(Fb).map(e=>{const t=_C(Fb[e],xne,wne),n=e.replace(/^.+\/(\w+).svg$/,"$1");return kC(t).replace("<svg",`<symbol id="${n}"`).replace("svg>","symbol>")}),kne={name:"MapSvgSpriteColor",svgContext:Fb,svgSprite:_ne.join(`
396
+ `)},Tne=["innerHTML"];function Sne(e,t,n,r,a,o){return c.openBlock(),c.createElementBlock("svg",{width:"0",height:"0",style:{display:"none"},innerHTML:e.$options.svgSprite},null,8,Tne)}const Ane=K5(kne,[["render",Sne]]),sm=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Mne={name:"PlotControls",components:{MapSvgSpriteColor:Ane,MapSvgIcon:gne,ElSelect:rf,ElOption:af,ElCollapse:H5,ElCollapseItem:U5,ElButton:ef,ElPopover:zb},props:{parentElement:{type:Object,required:!0},controlsEnabled:{type:Boolean,required:!0}},data:function(){return{hoverVisibilities:[{value:!1},{value:!1},{value:!1},{value:!1},{value:!1}],zoomSelect:[{value:"1",label:"100%"}],selectZoom:"100%",zoom:100,maxZoom:800,zoomInDisabled:!1,zoomOutDisabled:!0}},methods:{zoomIn:function(){this.zoom+=100,this.parentElement.element.querySelector('a[data-attr="zoom"][data-val="in"]').click(),this.setDisabledButtons(this.zoom),this.updateZoomSelect(this.zoom)},zoomOut:function(){this.zoom-=100,this.parentElement.element.querySelector('a[data-attr="zoom"][data-val="out"]').click(),this.setDisabledButtons(this.zoom),this.updateZoomSelect(this.zoom)},setDisabledButtons(e){e===this.maxZoom?this.zoomInDisabled=!0:this.zoomInDisabled=!1,e===0?this.zoomOutDisabled=!0:this.zoomOutDisabled=!1},resetView:function(){this.zoom=100,this.parentElement.element.querySelector('a[data-attr="zoom"][data-val="reset"]').click(),this.setDisabledButtons(this.zoom),this.updateZoomSelect(this.zoom)},percentToNum(e){return Number(e.slice(0,-1))},selectZoomChange:function(e){if(e==="100%"){this.resetView();return}let t=this.percentToNum(e),n=Math.round((t-this.zoom)/100);for(let r=0;r<Math.abs(n);r++)n>0?this.zoomIn():this.zoomOut();this.updateZoomSelect(t)},updateZoomSelect(e){this.selectZoom=String(e)+"%"},createZoomPercentages:function(){this.zoomSelect=[];for(let e=0;e<=this.maxZoom/100;e++)this.zoomSelect.push({value:e,label:(e+1)*100+"%"})},setHelpMode:function(e){e?(this.inHelp=!0,this.hoverVisibilities.forEach(t=>{t.value=!0})):(this.inHelp=!1,this.hoverVisibilities.forEach(t=>{t.value=!1}))},showToolitip:function(e){this.inHelp||(this.hoverVisibilities[e].value=!0,this.tooltipWait=setTimeout(()=>{this.hoverVisibilities[e].value=!0},1e3))},hideToolitip:function(e){this.inHelp||(this.hoverVisibilities[e].value=!1,clearInterval(this.tooltipWait))},handleWheel:function(e){let t=Math.round(e.deltaY/7);this.zoom=this.zoom-t,this.updateZoomSelect(this.zoom)}}},Cne={class:"container"};function One(e,t,n,r,a,o){const i=c.resolveComponent("map-svg-sprite-color"),l=c.resolveComponent("map-svg-icon"),s=zb;return c.openBlock(),c.createElementBlock("div",Cne,[c.createVNode(i),c.createElementVNode("div",{ref:"zoomControls",class:c.normalizeClass([{inactive:!n.controlsEnabled},"bottom-right-control"])},[c.createVNode(s,{modelValue:e.hoverVisibilities[0].value,"onUpdate:modelValue":t[3]||(t[3]=u=>e.hoverVisibilities[0].value=u),content:"Zoom in",placement:"left",teleported:!1,trigger:"manual","popper-class":"plot-popper"},{reference:c.withCtx(()=>[c.createVNode(l,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[0]||(t[0]=u=>o.zoomIn()),onMouseover:t[1]||(t[1]=u=>o.showToolitip(0)),onMouseout:t[2]||(t[2]=u=>o.hideToolitip(0))})]),_:1},8,["modelValue"]),c.createVNode(s,{modelValue:e.hoverVisibilities[1].value,"onUpdate:modelValue":t[7]||(t[7]=u=>e.hoverVisibilities[1].value=u),content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual","popper-class":"plot-popper popper-zoomout"},{reference:c.withCtx(()=>[c.createVNode(l,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[4]||(t[4]=u=>o.zoomOut()),onMouseover:t[5]||(t[5]=u=>o.showToolitip(1)),onMouseout:t[6]||(t[6]=u=>o.hideToolitip(1))})]),_:1},8,["modelValue"]),c.createVNode(s,{modelValue:e.hoverVisibilities[2].value,"onUpdate:modelValue":t[11]||(t[11]=u=>e.hoverVisibilities[2].value=u),content:"Reset",placement:"top",teleported:!1,trigger:"manual","popper-class":"plot-popper"},{reference:c.withCtx(()=>[c.createVNode(l,{icon:"resetZoom",class:"icon-button resetView",onClick:t[8]||(t[8]=u=>o.resetView()),onMouseover:t[9]||(t[9]=u=>o.showToolitip(2)),onMouseout:t[10]||(t[10]=u=>o.hideToolitip(2))})]),_:1},8,["modelValue"])],2)])}const of=sm(Mne,[["render",One],["__scopeId","data-v-b190449a"]]);var SC={},cm={};cm.version="2.28.0";var Ene={exports:{}};/*! Native Promise Only
397
+ v0.8.1 (c) Kyle Simpson
398
+ MIT License: http://getify.mit-license.org
399
+ */(function(e){(function(t,n,r){n[t]=n[t]||r(),e.exports&&(e.exports=n[t])})("Promise",tf,function(){var t,n,r,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(v){return setImmediate(v)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(v,x,k,_){return Object.defineProperty(v,x,{value:k,writable:!0,configurable:_!==!1})}}catch{t=function(v,x,k){return v[x]=k,v}}r=function(){var v,x,k;function _(S,T){this.fn=S,this.self=T,this.next=void 0}return{add:function(S,T){k=new _(S,T),x?x.next=k:v=k,x=k,k=void 0},drain:function(){var S=v;for(v=x=n=void 0;S;)S.fn.call(S.self),S=S.next}}}();function i(v,x){r.add(v,x),n||(n=o(r.drain))}function l(v){var x,k=typeof v;return v!=null&&(k=="object"||k=="function")&&(x=v.then),typeof x=="function"?x:!1}function s(){for(var v=0;v<this.chain.length;v++)u(this,this.state===1?this.chain[v].success:this.chain[v].failure,this.chain[v]);this.chain.length=0}function u(v,x,k){var _,S;try{x===!1?k.reject(v.msg):(x===!0?_=v.msg:_=x.call(void 0,v.msg),_===k.promise?k.reject(TypeError("Promise-chain cycle")):(S=l(_))?S.call(_,k.resolve,k.reject):k.resolve(_))}catch(T){k.reject(T)}}function d(v){var x,k=this;if(!k.triggered){k.triggered=!0,k.def&&(k=k.def);try{(x=l(v))?i(function(){var _=new g(k);try{x.call(v,function(){d.apply(_,arguments)},function(){f.apply(_,arguments)})}catch(S){f.call(_,S)}}):(k.msg=v,k.state=1,k.chain.length>0&&i(s,k))}catch(_){f.call(new g(k),_)}}}function f(v){var x=this;x.triggered||(x.triggered=!0,x.def&&(x=x.def),x.msg=v,x.state=2,x.chain.length>0&&i(s,x))}function p(v,x,k,_){for(var S=0;S<x.length;S++)(function(T){v.resolve(x[T]).then(function(C){k(T,C)},_)})(S)}function g(v){this.def=v,this.triggered=!1}function h(v){this.promise=v,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(v){if(typeof v!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var x=new h(this);this.then=function(k,_){var S={success:typeof k=="function"?k:!0,failure:typeof _=="function"?_:!1};return S.promise=new this.constructor(function(T,C){if(typeof T!="function"||typeof C!="function")throw TypeError("Not a function");S.resolve=T,S.reject=C}),x.chain.push(S),x.state!==0&&i(s,x),S.promise},this.catch=function(k){return this.then(void 0,k)};try{v.call(void 0,function(k){d.call(x,k)},function(k){f.call(x,k)})}catch(k){f.call(x,k)}}var b=t({},"constructor",y,!1);return y.prototype=b,t(b,"__NPO__",0,!1),t(y,"resolve",function(v){var x=this;return v&&typeof v=="object"&&v.__NPO__===1?v:new x(function(k,_){if(typeof k!="function"||typeof _!="function")throw TypeError("Not a function");k(v)})}),t(y,"reject",function(v){return new this(function(x,k){if(typeof x!="function"||typeof k!="function")throw TypeError("Not a function");k(v)})}),t(y,"all",function(v){var x=this;return a.call(v)!="[object Array]"?x.reject(TypeError("Not an array")):v.length===0?x.resolve([]):new x(function(k,_){if(typeof k!="function"||typeof _!="function")throw TypeError("Not a function");var S=v.length,T=Array(S),C=0;p(x,v,function(A,O){T[A]=O,++C===S&&k(T)},_)})}),t(y,"race",function(v){var x=this;return a.call(v)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(k,_){if(typeof k!="function"||typeof _!="function")throw TypeError("Not a function");p(x,v,function(S,T){k(T)},_)})}),y})})(Ene);var AC={exports:{}},MC={exports:{}};(function(e){(function(){var t={version:"3.8.0"},n=[].slice,r=function(m){return n.call(m)},a=self.document;function o(m){return m&&(m.ownerDocument||m.document||m).documentElement}function i(m){return m&&(m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView)}if(a)try{r(a.documentElement.childNodes)[0].nodeType}catch{r=function(m){for(var w=m.length,M=new Array(w);w--;)M[w]=m[w];return M}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,u=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,f=d.setProperty;l.setAttribute=function(m,w){s.call(this,m,w+"")},l.setAttributeNS=function(m,w,M){u.call(this,m,w,M+"")},d.setProperty=function(m,w,M){f.call(this,m,w+"",M)}}t.ascending=p;function p(m,w){return m<w?-1:m>w?1:m>=w?0:NaN}t.descending=function(m,w){return w<m?-1:w>m?1:w>=m?0:NaN},t.min=function(m,w){var M=-1,E=m.length,L,D;if(arguments.length===1){for(;++M<E;)if((D=m[M])!=null&&D>=D){L=D;break}for(;++M<E;)(D=m[M])!=null&&L>D&&(L=D)}else{for(;++M<E;)if((D=w.call(m,m[M],M))!=null&&D>=D){L=D;break}for(;++M<E;)(D=w.call(m,m[M],M))!=null&&L>D&&(L=D)}return L},t.max=function(m,w){var M=-1,E=m.length,L,D;if(arguments.length===1){for(;++M<E;)if((D=m[M])!=null&&D>=D){L=D;break}for(;++M<E;)(D=m[M])!=null&&D>L&&(L=D)}else{for(;++M<E;)if((D=w.call(m,m[M],M))!=null&&D>=D){L=D;break}for(;++M<E;)(D=w.call(m,m[M],M))!=null&&D>L&&(L=D)}return L},t.extent=function(m,w){var M=-1,E=m.length,L,D,K;if(arguments.length===1){for(;++M<E;)if((D=m[M])!=null&&D>=D){L=K=D;break}for(;++M<E;)(D=m[M])!=null&&(L>D&&(L=D),K<D&&(K=D))}else{for(;++M<E;)if((D=w.call(m,m[M],M))!=null&&D>=D){L=K=D;break}for(;++M<E;)(D=w.call(m,m[M],M))!=null&&(L>D&&(L=D),K<D&&(K=D))}return[L,K]};function g(m){return m===null?NaN:+m}function h(m){return!isNaN(m)}t.sum=function(m,w){var M=0,E=m.length,L,D=-1;if(arguments.length===1)for(;++D<E;)h(L=+m[D])&&(M+=L);else for(;++D<E;)h(L=+w.call(m,m[D],D))&&(M+=L);return M},t.mean=function(m,w){var M=0,E=m.length,L,D=-1,K=E;if(arguments.length===1)for(;++D<E;)h(L=g(m[D]))?M+=L:--K;else for(;++D<E;)h(L=g(w.call(m,m[D],D)))?M+=L:--K;if(K)return M/K},t.quantile=function(m,w){var M=(m.length-1)*w+1,E=Math.floor(M),L=+m[E-1],D=M-E;return D?L+D*(m[E]-L):L},t.median=function(m,w){var M=[],E=m.length,L,D=-1;if(arguments.length===1)for(;++D<E;)h(L=g(m[D]))&&M.push(L);else for(;++D<E;)h(L=g(w.call(m,m[D],D)))&&M.push(L);if(M.length)return t.quantile(M.sort(p),.5)},t.variance=function(m,w){var M=m.length,E=0,L,D,K=0,W=-1,Q=0;if(arguments.length===1)for(;++W<M;)h(L=g(m[W]))&&(D=L-E,E+=D/++Q,K+=D*(L-E));else for(;++W<M;)h(L=g(w.call(m,m[W],W)))&&(D=L-E,E+=D/++Q,K+=D*(L-E));if(Q>1)return K/(Q-1)},t.deviation=function(){var m=t.variance.apply(this,arguments);return m&&Math.sqrt(m)};function y(m){return{left:function(w,M,E,L){for(arguments.length<3&&(E=0),arguments.length<4&&(L=w.length);E<L;){var D=E+L>>>1;m(w[D],M)<0?E=D+1:L=D}return E},right:function(w,M,E,L){for(arguments.length<3&&(E=0),arguments.length<4&&(L=w.length);E<L;){var D=E+L>>>1;m(w[D],M)>0?L=D:E=D+1}return E}}}var b=y(p);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(m){return y(m.length===1?function(w,M){return p(m(w),M)}:m)},t.shuffle=function(m,w,M){(E=arguments.length)<3&&(M=m.length,E<2&&(w=0));for(var E=M-w,L,D;E;)D=Math.random()*E--|0,L=m[E+w],m[E+w]=m[D+w],m[D+w]=L;return m},t.permute=function(m,w){for(var M=w.length,E=new Array(M);M--;)E[M]=m[w[M]];return E},t.pairs=function(m){for(var w=0,M=m.length-1,E=m[0],L=new Array(M<0?0:M);w<M;)L[w]=[E,E=m[++w]];return L},t.transpose=function(m){if(!(D=m.length))return[];for(var w=-1,M=t.min(m,v),E=new Array(M);++w<M;)for(var L=-1,D,K=E[w]=new Array(D);++L<D;)K[L]=m[L][w];return E};function v(m){return m.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(m){var w=[];for(var M in m)w.push(M);return w},t.values=function(m){var w=[];for(var M in m)w.push(m[M]);return w},t.entries=function(m){var w=[];for(var M in m)w.push({key:M,value:m[M]});return w},t.merge=function(m){for(var w=m.length,M,E=-1,L=0,D,K;++E<w;)L+=m[E].length;for(D=new Array(L);--w>=0;)for(K=m[w],M=K.length;--M>=0;)D[--L]=K[M];return D};var x=Math.abs;t.range=function(m,w,M){if(arguments.length<3&&(M=1,arguments.length<2&&(w=m,m=0)),(w-m)/M===1/0)throw new Error("infinite range");var E=[],L=k(x(M)),D=-1,K;if(m*=L,w*=L,M*=L,M<0)for(;(K=m+M*++D)>w;)E.push(K/L);else for(;(K=m+M*++D)<w;)E.push(K/L);return E};function k(m){for(var w=1;m*w%1;)w*=10;return w}function _(m,w){for(var M in w)Object.defineProperty(m.prototype,M,{value:w[M],enumerable:!1})}t.map=function(m,w){var M=new S;if(m instanceof S)m.forEach(function(W,Q){M.set(W,Q)});else if(Array.isArray(m)){var E=-1,L=m.length,D;if(arguments.length===1)for(;++E<L;)M.set(E,m[E]);else for(;++E<L;)M.set(w.call(m,D=m[E],E),D)}else for(var K in m)M.set(K,m[K]);return M};function S(){this._=Object.create(null)}var T="__proto__",C="\0";_(S,{has:F,get:function(m){return this._[A(m)]},set:function(m,w){return this._[A(m)]=w},remove:R,keys:N,values:function(){var m=[];for(var w in this._)m.push(this._[w]);return m},entries:function(){var m=[];for(var w in this._)m.push({key:O(w),value:this._[w]});return m},size:B,empty:V,forEach:function(m){for(var w in this._)m.call(this,O(w),this._[w])}});function A(m){return(m+="")===T||m[0]===C?C+m:m}function O(m){return(m+="")[0]===C?m.slice(1):m}function F(m){return A(m)in this._}function R(m){return(m=A(m))in this._&&delete this._[m]}function N(){var m=[];for(var w in this._)m.push(O(w));return m}function B(){var m=0;for(var w in this._)++m;return m}function V(){for(var m in this._)return!1;return!0}t.nest=function(){var m={},w=[],M=[],E,L;function D(W,Q,ae){if(ae>=w.length)return L?L.call(m,Q):E?Q.sort(E):Q;for(var le=-1,pe=Q.length,me=w[ae++],Ce,Fe,ye,ke=new S,Se;++le<pe;)(Se=ke.get(Ce=me(Fe=Q[le])))?Se.push(Fe):ke.set(Ce,[Fe]);return W?(Fe=W(),ye=function(ze,Ie){Fe.set(ze,D(W,Ie,ae))}):(Fe={},ye=function(ze,Ie){Fe[ze]=D(W,Ie,ae)}),ke.forEach(ye),Fe}function K(W,Q){if(Q>=w.length)return W;var ae=[],le=M[Q++];return W.forEach(function(pe,me){ae.push({key:pe,values:K(me,Q)})}),le?ae.sort(function(pe,me){return le(pe.key,me.key)}):ae}return m.map=function(W,Q){return D(Q,W,0)},m.entries=function(W){return K(D(t.map,W,0),0)},m.key=function(W){return w.push(W),m},m.sortKeys=function(W){return M[w.length-1]=W,m},m.sortValues=function(W){return E=W,m},m.rollup=function(W){return L=W,m},m},t.set=function(m){var w=new Z;if(m)for(var M=0,E=m.length;M<E;++M)w.add(m[M]);return w};function Z(){this._=Object.create(null)}_(Z,{has:F,add:function(m){return this._[A(m+="")]=!0,m},remove:R,values:N,size:B,empty:V,forEach:function(m){for(var w in this._)m.call(this,O(w))}}),t.behavior={};function G(m){return m}t.rebind=function(m,w){for(var M=1,E=arguments.length,L;++M<E;)m[L=arguments[M]]=I(m,w,w[L]);return m};function I(m,w,M){return function(){var E=M.apply(w,arguments);return E===w?m:E}}function P(m,w){if(w in m)return w;w=w.charAt(0).toUpperCase()+w.slice(1);for(var M=0,E=z.length;M<E;++M){var L=z[M]+w;if(L in m)return L}}var z=["webkit","ms","moz","Moz","o","O"];function H(){}t.dispatch=function(){for(var m=new j,w=-1,M=arguments.length;++w<M;)m[arguments[w]]=q(m);return m};function j(){}j.prototype.on=function(m,w){var M=m.indexOf("."),E="";if(M>=0&&(E=m.slice(M+1),m=m.slice(0,M)),m)return arguments.length<2?this[m].on(E):this[m].on(E,w);if(arguments.length===2){if(w==null)for(m in this)this.hasOwnProperty(m)&&this[m].on(E,null);return this}};function q(m){var w=[],M=new S;function E(){for(var L=w,D=-1,K=L.length,W;++D<K;)(W=L[D].on)&&W.apply(this,arguments);return m}return E.on=function(L,D){var K=M.get(L),W;return arguments.length<2?K&&K.on:(K&&(K.on=null,w=w.slice(0,W=w.indexOf(K)).concat(w.slice(W+1)),M.remove(L)),D&&w.push(M.set(L,{on:D})),m)},E}t.event=null;function $(){t.event.preventDefault()}function ne(){for(var m=t.event,w;w=m.sourceEvent;)m=w;return m}function te(m){for(var w=new j,M=0,E=arguments.length;++M<E;)w[arguments[M]]=q(w);return w.of=function(L,D){return function(K){try{var W=K.sourceEvent=t.event;K.target=m,t.event=K,w[K.type].apply(L,D)}finally{t.event=W}}},w}t.requote=function(m){return m.replace(ee,"\\$&")};var ee=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,se={}.__proto__?function(m,w){m.__proto__=w}:function(m,w){for(var M in w)m[M]=w[M]};function U(m){return se(m,oe),m}var Y=function(m,w){return w.querySelector(m)},J=function(m,w){return w.querySelectorAll(m)},re=function(m,w){var M=m.matches||m[P(m,"matchesSelector")];return re=function(E,L){return M.call(E,L)},re(m,w)};typeof Sizzle=="function"&&(Y=function(m,w){return Sizzle(m,w)[0]||null},J=Sizzle,re=Sizzle.matchesSelector),t.selection=function(){return t.select(a.documentElement)};var oe=t.selection.prototype=[];oe.select=function(m){var w=[],M,E,L,D;m=he(m);for(var K=-1,W=this.length;++K<W;){w.push(M=[]),M.parentNode=(L=this[K]).parentNode;for(var Q=-1,ae=L.length;++Q<ae;)(D=L[Q])?(M.push(E=m.call(D,D.__data__,Q,K)),E&&"__data__"in D&&(E.__data__=D.__data__)):M.push(null)}return U(w)};function he(m){return typeof m=="function"?m:function(){return Y(m,this)}}oe.selectAll=function(m){var w=[],M,E;m=ve(m);for(var L=-1,D=this.length;++L<D;)for(var K=this[L],W=-1,Q=K.length;++W<Q;)(E=K[W])&&(w.push(M=r(m.call(E,E.__data__,W,L))),M.parentNode=E);return U(w)};function ve(m){return typeof m=="function"?m:function(){return J(m,this)}}var ge="http://www.w3.org/1999/xhtml",xe={svg:"http://www.w3.org/2000/svg",xhtml:ge,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:xe,qualify:function(m){var w=m.indexOf(":"),M=m;return w>=0&&(M=m.slice(0,w))!=="xmlns"&&(m=m.slice(w+1)),xe.hasOwnProperty(M)?{space:xe[M],local:m}:m}},oe.attr=function(m,w){if(arguments.length<2){if(typeof m=="string"){var M=this.node();return m=t.ns.qualify(m),m.local?M.getAttributeNS(m.space,m.local):M.getAttribute(m)}for(w in m)this.each(Le(w,m[w]));return this}return this.each(Le(m,w))};function Le(m,w){m=t.ns.qualify(m);function M(){this.removeAttribute(m)}function E(){this.removeAttributeNS(m.space,m.local)}function L(){this.setAttribute(m,w)}function D(){this.setAttributeNS(m.space,m.local,w)}function K(){var Q=w.apply(this,arguments);Q==null?this.removeAttribute(m):this.setAttribute(m,Q)}function W(){var Q=w.apply(this,arguments);Q==null?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,Q)}return w==null?m.local?E:M:typeof w=="function"?m.local?W:K:m.local?D:L}function Ue(m){return m.trim().replace(/\s+/g," ")}oe.classed=function(m,w){if(arguments.length<2){if(typeof m=="string"){var M=this.node(),E=(m=De(m)).length,L=-1;if(w=M.classList){for(;++L<E;)if(!w.contains(m[L]))return!1}else for(w=M.getAttribute("class");++L<E;)if(!Pe(m[L]).test(w))return!1;return!0}for(w in m)this.each(je(w,m[w]));return this}return this.each(je(m,w))};function Pe(m){return new RegExp("(?:^|\\s+)"+t.requote(m)+"(?:\\s+|$)","g")}function De(m){return(m+"").trim().split(/^|\s+/)}function je(m,w){m=De(m).map(qe);var M=m.length;function E(){for(var D=-1;++D<M;)m[D](this,w)}function L(){for(var D=-1,K=w.apply(this,arguments);++D<M;)m[D](this,K)}return typeof w=="function"?L:E}function qe(m){var w=Pe(m);return function(M,E){if(L=M.classList)return E?L.add(m):L.remove(m);var L=M.getAttribute("class")||"";E?(w.lastIndex=0,w.test(L)||M.setAttribute("class",Ue(L+" "+m))):M.setAttribute("class",Ue(L.replace(w," ")))}}oe.style=function(m,w,M){var E=arguments.length;if(E<3){if(typeof m!="string"){E<2&&(w="");for(M in m)this.each(Ee(M,m[M],w));return this}if(E<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(m)}M=""}return this.each(Ee(m,w,M))};function Ee(m,w,M){function E(){this.style.removeProperty(m)}function L(){this.style.setProperty(m,w,M)}function D(){var K=w.apply(this,arguments);K==null?this.style.removeProperty(m):this.style.setProperty(m,K,M)}return w==null?E:typeof w=="function"?D:L}oe.property=function(m,w){if(arguments.length<2){if(typeof m=="string")return this.node()[m];for(w in m)this.each(_e(w,m[w]));return this}return this.each(_e(m,w))};function _e(m,w){function M(){delete this[m]}function E(){this[m]=w}function L(){var D=w.apply(this,arguments);D==null?delete this[m]:this[m]=D}return w==null?M:typeof w=="function"?L:E}oe.text=function(m){return arguments.length?this.each(typeof m=="function"?function(){var w=m.apply(this,arguments);this.textContent=w??""}:m==null?function(){this.textContent=""}:function(){this.textContent=m}):this.node().textContent},oe.html=function(m){return arguments.length?this.each(typeof m=="function"?function(){var w=m.apply(this,arguments);this.innerHTML=w??""}:m==null?function(){this.innerHTML=""}:function(){this.innerHTML=m}):this.node().innerHTML},oe.append=function(m){return m=we(m),this.select(function(){return this.appendChild(m.apply(this,arguments))})};function we(m){function w(){var E=this.ownerDocument,L=this.namespaceURI;return L===ge&&E.documentElement.namespaceURI===ge?E.createElement(m):E.createElementNS(L,m)}function M(){return this.ownerDocument.createElementNS(m.space,m.local)}return typeof m=="function"?m:(m=t.ns.qualify(m)).local?M:w}oe.insert=function(m,w){return m=we(m),w=he(w),this.select(function(){return this.insertBefore(m.apply(this,arguments),w.apply(this,arguments)||null)})},oe.remove=function(){return this.each(Re)};function Re(){var m=this.parentNode;m&&m.removeChild(this)}oe.data=function(m,w){var M=-1,E=this.length,L,D;if(!arguments.length){for(m=new Array(E=(L=this[0]).length);++M<E;)(D=L[M])&&(m[M]=D.__data__);return m}function K(le,pe){var me,Ce=le.length,Fe=pe.length,ye=Math.min(Ce,Fe),ke=new Array(Fe),Se=new Array(Fe),ze=new Array(Ce),Ie,Me;if(w){var Qe=new S,mt=new Array(Ce),bt;for(me=-1;++me<Ce;)(Ie=le[me])&&(Qe.has(bt=w.call(Ie,Ie.__data__,me))?ze[me]=Ie:Qe.set(bt,Ie),mt[me]=bt);for(me=-1;++me<Fe;)(Ie=Qe.get(bt=w.call(pe,Me=pe[me],me)))?Ie!==!0&&(ke[me]=Ie,Ie.__data__=Me):Se[me]=Je(Me),Qe.set(bt,!0);for(me=-1;++me<Ce;)me in mt&&Qe.get(mt[me])!==!0&&(ze[me]=le[me])}else{for(me=-1;++me<ye;)Ie=le[me],Me=pe[me],Ie?(Ie.__data__=Me,ke[me]=Ie):Se[me]=Je(Me);for(;me<Fe;++me)Se[me]=Je(pe[me]);for(;me<Ce;++me)ze[me]=le[me]}Se.update=ke,Se.parentNode=ke.parentNode=ze.parentNode=le.parentNode,W.push(Se),Q.push(ke),ae.push(ze)}var W=lt([]),Q=U([]),ae=U([]);if(typeof m=="function")for(;++M<E;)K(L=this[M],m.call(L,L.parentNode.__data__,M));else for(;++M<E;)K(L=this[M],m);return Q.enter=function(){return W},Q.exit=function(){return ae},Q};function Je(m){return{__data__:m}}oe.datum=function(m){return arguments.length?this.property("__data__",m):this.property("__data__")},oe.filter=function(m){var w=[],M,E,L;typeof m!="function"&&(m=it(m));for(var D=0,K=this.length;D<K;D++){w.push(M=[]),M.parentNode=(E=this[D]).parentNode;for(var W=0,Q=E.length;W<Q;W++)(L=E[W])&&m.call(L,L.__data__,W,D)&&M.push(L)}return U(w)};function it(m){return function(){return re(this,m)}}oe.order=function(){for(var m=-1,w=this.length;++m<w;)for(var M=this[m],E=M.length-1,L=M[E],D;--E>=0;)(D=M[E])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},oe.sort=function(m){m=dt.apply(this,arguments);for(var w=-1,M=this.length;++w<M;)this[w].sort(m);return this.order()};function dt(m){return arguments.length||(m=p),function(w,M){return w&&M?m(w.__data__,M.__data__):!w-!M}}oe.each=function(m){return at(this,function(w,M,E){m.call(w,w.__data__,M,E)})};function at(m,w){for(var M=0,E=m.length;M<E;M++)for(var L=m[M],D=0,K=L.length,W;D<K;D++)(W=L[D])&&w(W,D,M);return m}oe.call=function(m){var w=r(arguments);return m.apply(w[0]=this,w),this},oe.empty=function(){return!this.node()},oe.node=function(){for(var m=0,w=this.length;m<w;m++)for(var M=this[m],E=0,L=M.length;E<L;E++){var D=M[E];if(D)return D}return null},oe.size=function(){var m=0;return at(this,function(){++m}),m};function lt(m){return se(m,He),m}var He=[];t.selection.enter=lt,t.selection.enter.prototype=He,He.append=oe.append,He.empty=oe.empty,He.node=oe.node,He.call=oe.call,He.size=oe.size,He.select=function(m){for(var w=[],M,E,L,D,K,W=-1,Q=this.length;++W<Q;){L=(D=this[W]).update,w.push(M=[]),M.parentNode=D.parentNode;for(var ae=-1,le=D.length;++ae<le;)(K=D[ae])?(M.push(L[ae]=E=m.call(D.parentNode,K.__data__,ae,W)),E.__data__=K.__data__):M.push(null)}return U(w)},He.insert=function(m,w){return arguments.length<2&&(w=Be(this)),oe.insert.call(this,m,w)};function Be(m){var w,M;return function(E,L,D){var K=m[D].update,W=K.length,Q;for(D!=M&&(M=D,w=0),L>=w&&(w=L+1);!(Q=K[w])&&++w<W;);return Q}}t.select=function(m){var w;return typeof m=="string"?(w=[Y(m,a)],w.parentNode=a.documentElement):(w=[m],w.parentNode=o(m)),U([w])},t.selectAll=function(m){var w;return typeof m=="string"?(w=r(J(m,a)),w.parentNode=a.documentElement):(w=r(m),w.parentNode=null),U([w])},oe.on=function(m,w,M){var E=arguments.length;if(E<3){if(typeof m!="string"){E<2&&(w=!1);for(M in m)this.each(Ze(M,m[M],w));return this}if(E<2)return(E=this.node()["__on"+m])&&E._;M=!1}return this.each(Ze(m,w,M))};function Ze(m,w,M){var E="__on"+m,L=m.indexOf("."),D=et;L>0&&(m=m.slice(0,L));var K=Ye.get(m);K&&(m=K,D=st);function W(){var le=this[E];le&&(this.removeEventListener(m,le,le.$),delete this[E])}function Q(){var le=D(w,r(arguments));W.call(this),this.addEventListener(m,this[E]=le,le.$=M),le._=w}function ae(){var le=new RegExp("^__on([^.]+)"+t.requote(m)+"$"),pe;for(var me in this)if(pe=me.match(le)){var Ce=this[me];this.removeEventListener(pe[1],Ce,Ce.$),delete this[me]}}return L?w?Q:W:w?H:ae}var Ye=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ye.forEach(function(m){"on"+m in a&&Ye.remove(m)});function et(m,w){return function(M){var E=t.event;t.event=M,w[0]=this.__data__;try{m.apply(this,w)}finally{t.event=E}}}function st(m,w){var M=et(m,w);return function(E){var L=this,D=E.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&M.call(L,E)}}var nt,gt=0;function Ve(m){var w=".dragsuppress-"+ ++gt,M="click"+w,E=t.select(i(m)).on("touchmove"+w,$).on("dragstart"+w,$).on("selectstart"+w,$);if(nt==null&&(nt="onselectstart"in m?!1:P(m.style,"userSelect")),nt){var L=o(m).style,D=L[nt];L[nt]="none"}return function(K){if(E.on(w,null),nt&&(L[nt]=D),K){var W=function(){E.on(M,null)};E.on(M,function(){$(),W()},!0),setTimeout(W,0)}}}t.mouse=function(m){return ft(m,ne())};var rt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ft(m,w){w.changedTouches&&(w=w.changedTouches[0]);var M=m.ownerSVGElement||m;if(M.createSVGPoint){var E=M.createSVGPoint();if(rt<0){var L=i(m);if(L.scrollX||L.scrollY){M=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=M[0][0].getScreenCTM();rt=!(D.f||D.e),M.remove()}}return rt?(E.x=w.pageX,E.y=w.pageY):(E.x=w.clientX,E.y=w.clientY),E=E.matrixTransform(m.getScreenCTM().inverse()),[E.x,E.y]}var K=m.getBoundingClientRect();return[w.clientX-K.left-m.clientLeft,w.clientY-K.top-m.clientTop]}t.touch=function(m,w,M){if(arguments.length<3&&(M=w,w=ne().changedTouches),w){for(var E=0,L=w.length,D;E<L;++E)if((D=w[E]).identifier===M)return ft(m,D)}},t.behavior.drag=function(){var m=te(L,"drag","dragstart","dragend"),w=null,M=D(H,t.mouse,i,"mousemove","mouseup"),E=D(wt,t.touch,G,"touchmove","touchend");function L(){this.on("mousedown.drag",M).on("touchstart.drag",E)}function D(K,W,Q,ae,le){return function(){var pe=this,me=t.event.target.correspondingElement||t.event.target,Ce=pe.parentNode,Fe=m.of(pe,arguments),ye=0,ke=K(),Se=".drag"+(ke==null?"":"-"+ke),ze,Ie=t.select(Q(me)).on(ae+Se,mt).on(le+Se,bt),Me=Ve(me),Qe=W(Ce,ke);w?(ze=w.apply(pe,arguments),ze=[ze.x-Qe[0],ze.y-Qe[1]]):ze=[0,0],Fe({type:"dragstart"});function mt(){var yt=W(Ce,ke),Mt,Ct;yt&&(Mt=yt[0]-Qe[0],Ct=yt[1]-Qe[1],ye|=Mt|Ct,Qe=yt,Fe({type:"drag",x:yt[0]+ze[0],y:yt[1]+ze[1],dx:Mt,dy:Ct}))}function bt(){W(Ce,ke)&&(Ie.on(ae+Se,null).on(le+Se,null),Me(ye),Fe({type:"dragend"}))}}}return L.origin=function(K){return arguments.length?(w=K,L):w},t.rebind(L,m,"on")};function wt(){return t.event.changedTouches[0].identifier}t.touches=function(m,w){return arguments.length<2&&(w=ne().touches),w?r(w).map(function(M){var E=ft(m,M);return E.identifier=M.identifier,E}):[]};var tt=1e-6,pt=tt*tt,Ke=Math.PI,Ot=2*Ke,X=Ot-tt,ue=Ke/2,de=Ke/180,ce=180/Ke;function Oe(m,w,M){return(w[0]-m[0])*(M[1]-m[1])-(w[1]-m[1])*(M[0]-m[0])}function Te(m){return m>1?ue:m<-1?-ue:Math.asin(m)}function We(m){return((m=Math.exp(m))-1/m)/2}function ie(m){return((m=Math.exp(m))+1/m)/2}function fe(m){return((m=Math.exp(2*m))-1)/(m+1)}var be=Math.SQRT2,Ne=2,$e=4;t.interpolateZoom=function(m,w){var M=m[0],E=m[1],L=m[2],D=w[0],K=w[1],W=w[2],Q=D-M,ae=K-E,le=Q*Q+ae*ae,pe,me;if(le<pt)me=Math.log(W/L)/be,pe=function(ze){return[M+ze*Q,E+ze*ae,L*Math.exp(be*ze*me)]};else{var Ce=Math.sqrt(le),Fe=(W*W-L*L+$e*le)/(2*L*Ne*Ce),ye=(W*W-L*L-$e*le)/(2*W*Ne*Ce),ke=Math.log(Math.sqrt(Fe*Fe+1)-Fe),Se=Math.log(Math.sqrt(ye*ye+1)-ye);me=(Se-ke)/be,pe=function(ze){var Ie=ze*me,Me=ie(ke),Qe=L/(Ne*Ce)*(Me*fe(be*Ie+ke)-We(ke));return[M+Qe*Q,E+Qe*ae,L*Me/ie(be*Ie+ke)]}}return pe.duration=me*1e3,pe},t.behavior.zoom=function(){var m={x:0,y:0,k:1},w,M,E,L=[960,500],D=ot,K=250,W=0,Q="mousedown.zoom",ae="mousemove.zoom",le="mouseup.zoom",pe,me="touchstart.zoom",Ce,Fe=te(Ie,"zoomstart","zoom","zoomend"),ye,ke,Se,ze;Et||(Et="onwheel"in a?(St=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(St=function(){return t.event.wheelDelta},"mousewheel"):(St=function(){return-t.event.detail},"MozMousePixelScroll"));function Ie(ht){ht.on(Q,Vt).on(Et+".zoom",Qn).on("dblclick.zoom",vn).on(me,un)}Ie.event=function(ht){ht.each(function(){var Ut=Fe.of(this,arguments),Zt=m;hc?t.select(this).transition().each("start.zoom",function(){m=this.__chart__||{x:0,y:0,k:1},Ct(Ut)}).tween("zoom:zoom",function(){var dn=L[0],Bn=L[1],ur=M?M[0]:dn/2,Or=M?M[1]:Bn/2,Kr=t.interpolateZoom([(ur-m.x)/m.k,(Or-m.y)/m.k,dn/m.k],[(ur-Zt.x)/Zt.k,(Or-Zt.y)/Zt.k,dn/Zt.k]);return function(ea){var Yr=Kr(ea),wa=dn/Yr[2];this.__chart__=m={x:ur-Yr[0]*wa,y:Or-Yr[1]*wa,k:wa},Ht(Ut)}}).each("interrupt.zoom",function(){zt(Ut)}).each("end.zoom",function(){zt(Ut)}):(this.__chart__=m,Ct(Ut),Ht(Ut),zt(Ut))})},Ie.translate=function(ht){return arguments.length?(m={x:+ht[0],y:+ht[1],k:m.k},Mt(),Ie):[m.x,m.y]},Ie.scale=function(ht){return arguments.length?(m={x:m.x,y:m.y,k:null},mt(+ht),Mt(),Ie):m.k},Ie.scaleExtent=function(ht){return arguments.length?(D=ht==null?ot:[+ht[0],+ht[1]],Ie):D},Ie.center=function(ht){return arguments.length?(E=ht&&[+ht[0],+ht[1]],Ie):E},Ie.size=function(ht){return arguments.length?(L=ht&&[+ht[0],+ht[1]],Ie):L},Ie.duration=function(ht){return arguments.length?(K=+ht,Ie):K},Ie.x=function(ht){return arguments.length?(ke=ht,ye=ht.copy(),m={x:0,y:0,k:1},Ie):ke},Ie.y=function(ht){return arguments.length?(ze=ht,Se=ht.copy(),m={x:0,y:0,k:1},Ie):ze};function Me(ht){return[(ht[0]-m.x)/m.k,(ht[1]-m.y)/m.k]}function Qe(ht){return[ht[0]*m.k+m.x,ht[1]*m.k+m.y]}function mt(ht){m.k=Math.max(D[0],Math.min(D[1],ht))}function bt(ht,Ut){Ut=Qe(Ut),m.x+=ht[0]-Ut[0],m.y+=ht[1]-Ut[1]}function yt(ht,Ut,Zt,dn){ht.__chart__={x:m.x,y:m.y,k:m.k},mt(Math.pow(2,dn)),bt(M=Ut,Zt),ht=t.select(ht),K>0&&(ht=ht.transition().duration(K)),ht.call(Ie.event)}function Mt(){ke&&ke.domain(ye.range().map(function(ht){return(ht-m.x)/m.k}).map(ye.invert)),ze&&ze.domain(Se.range().map(function(ht){return(ht-m.y)/m.k}).map(Se.invert))}function Ct(ht){W++||ht({type:"zoomstart"})}function Ht(ht){Mt(),ht({type:"zoom",scale:m.k,translate:[m.x,m.y]})}function zt(ht){--W||(ht({type:"zoomend"}),M=null)}function Vt(){var ht=this,Ut=Fe.of(ht,arguments),Zt=0,dn=t.select(i(ht)).on(ae,Or).on(le,Kr),Bn=Me(t.mouse(ht)),ur=Ve(ht);Ly.call(ht),Ct(Ut);function Or(){Zt=1,bt(t.mouse(ht),Bn),Ht(Ut)}function Kr(){dn.on(ae,null).on(le,null),ur(Zt),zt(Ut)}}function un(){var ht=this,Ut=Fe.of(ht,arguments),Zt={},dn=0,Bn,ur=".zoom-"+t.event.changedTouches[0].identifier,Or="touchmove"+ur,Kr="touchend"+ur,ea=[],Yr=t.select(ht),wa=Ve(ht);_a(),Ct(Ut),Yr.on(Q,null).on(me,_a);function Rr(){var Uo=t.touches(ht);return Bn=m.k,Uo.forEach(function(Er){Er.identifier in Zt&&(Zt[Er.identifier]=Me(Er))}),Uo}function _a(){var Uo=t.event.target;t.select(Uo).on(Or,mc).on(Kr,n5e),ea.push(Uo);for(var Er=t.event.changedTouches,po=0,ki=Er.length;po<ki;++po)Zt[Er[po].identifier]=null;var ho=Rr(),wd=Date.now();if(ho.length===1){if(wd-Ce<500){var gc=ho[0];yt(ht,gc,Zt[gc.identifier],Math.floor(Math.log(m.k)/Math.LN2)+1),$()}Ce=wd}else if(ho.length>1){var gc=ho[0],ls=ho[1],Iy=gc[0]-ls[0],BN=gc[1]-ls[1];dn=Iy*Iy+BN*BN}}function mc(){var Uo=t.touches(ht),Er,po,ki,ho;Ly.call(ht);for(var wd=0,gc=Uo.length;wd<gc;++wd,ho=null)if(ki=Uo[wd],ho=Zt[ki.identifier]){if(po)break;Er=ki,po=ho}if(ho){var ls=(ls=ki[0]-Er[0])*ls+(ls=ki[1]-Er[1])*ls,Iy=dn&&Math.sqrt(ls/dn);Er=[(Er[0]+ki[0])/2,(Er[1]+ki[1])/2],po=[(po[0]+ho[0])/2,(po[1]+ho[1])/2],mt(Iy*Bn)}Ce=null,bt(Er,po),Ht(Ut)}function n5e(){if(t.event.touches.length){for(var Uo=t.event.changedTouches,Er=0,po=Uo.length;Er<po;++Er)delete Zt[Uo[Er].identifier];for(var ki in Zt)return void Rr()}t.selectAll(ea).on(ur,null),Yr.on(Q,Vt).on(me,un),wa(),zt(Ut)}}function Qn(){var ht=Fe.of(this,arguments);pe?clearTimeout(pe):(Ly.call(this),w=Me(M=E||t.mouse(this)),Ct(ht)),pe=setTimeout(function(){pe=null,zt(ht)},50),$(),mt(Math.pow(2,St()*.002)*m.k),bt(M,w),Ht(ht)}function vn(){var ht=t.mouse(this),Ut=Math.log(m.k)/Math.LN2;yt(this,ht,Me(ht),t.event.shiftKey?Math.ceil(Ut)-1:Math.floor(Ut)+1)}return t.rebind(Ie,Fe,"on")};var ot=[0,1/0],St,Et;t.color=_t;function _t(){}_t.prototype.toString=function(){return this.rgb()+""},t.hsl=kt;function kt(m,w,M){return this instanceof kt?(this.h=+m,this.s=+w,void(this.l=+M)):arguments.length<2?m instanceof kt?new kt(m.h,m.s,m.l):jo(""+m,ol,kt):new kt(m,w,M)}var Jt=kt.prototype=new _t;Jt.brighter=function(m){return m=Math.pow(.7,arguments.length?m:1),new kt(this.h,this.s,this.l/m)},Jt.darker=function(m){return m=Math.pow(.7,arguments.length?m:1),new kt(this.h,this.s,m*this.l)},Jt.rgb=function(){return Rt(this.h,this.s,this.l)};function Rt(m,w,M){var E,L;m=isNaN(m)?0:(m%=360)<0?m+360:m,w=isNaN(w)||w<0?0:w>1?1:w,M=M<0?0:M>1?1:M,L=M<=.5?M*(1+w):M+w-M*w,E=2*M-L;function D(W){return W>360?W-=360:W<0&&(W+=360),W<60?E+(L-E)*W/60:W<180?L:W<240?E+(L-E)*(240-W)/60:E}function K(W){return Math.round(D(W)*255)}return new Sn(K(m+120),K(m),K(m-120))}t.hcl=xt;function xt(m,w,M){return this instanceof xt?(this.h=+m,this.c=+w,void(this.l=+M)):arguments.length<2?m instanceof xt?new xt(m.h,m.c,m.l):m instanceof It?Qt(m.l,m.a,m.b):Qt((m=sr((m=t.rgb(m)).r,m.g,m.b)).l,m.a,m.b):new xt(m,w,M)}var qt=xt.prototype=new _t;qt.brighter=function(m){return new xt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?m:1)))},qt.darker=function(m){return new xt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?m:1)))},qt.rgb=function(){return Wt(this.h,this.c,this.l).rgb()};function Wt(m,w,M){return isNaN(m)&&(m=0),isNaN(w)&&(w=0),new It(M,Math.cos(m*=de)*w,Math.sin(m)*w)}t.lab=It;function It(m,w,M){return this instanceof It?(this.l=+m,this.a=+w,void(this.b=+M)):arguments.length<2?m instanceof It?new It(m.l,m.a,m.b):m instanceof xt?Wt(m.h,m.c,m.l):sr((m=Sn(m)).r,m.g,m.b):new It(m,w,M)}var Ft=18,Tt=.95047,Lt=1,jt=1.08883,rn=It.prototype=new _t;rn.brighter=function(m){return new It(Math.min(100,this.l+Ft*(arguments.length?m:1)),this.a,this.b)},rn.darker=function(m){return new It(Math.max(0,this.l-Ft*(arguments.length?m:1)),this.a,this.b)},rn.rgb=function(){return At(this.l,this.a,this.b)};function At(m,w,M){var E=(m+16)/116,L=E+w/500,D=E-M/200;return L=Bt(L)*Tt,E=Bt(E)*Lt,D=Bt(D)*jt,new Sn(Xt(3.2404542*L-1.5371385*E-.4985314*D),Xt(-.969266*L+1.8760108*E+.041556*D),Xt(.0556434*L-.2040259*E+1.0572252*D))}function Qt(m,w,M){return m>0?new xt(Math.atan2(M,w)*ce,Math.sqrt(w*w+M*M),m):new xt(NaN,NaN,m)}function Bt(m){return m>.206893034?m*m*m:(m-4/29)/7.787037}function On(m){return m>.008856?Math.pow(m,1/3):7.787037*m+4/29}function Xt(m){return Math.round(255*(m<=.00304?12.92*m:1.055*Math.pow(m,1/2.4)-.055))}t.rgb=Sn;function Sn(m,w,M){return this instanceof Sn?(this.r=~~m,this.g=~~w,void(this.b=~~M)):arguments.length<2?m instanceof Sn?new Sn(m.r,m.g,m.b):jo(""+m,Sn,Rt):new Sn(m,w,M)}function Nn(m){return new Sn(m>>16,m>>8&255,m&255)}function Zr(m){return Nn(m)+""}var mr=Sn.prototype=new _t;mr.brighter=function(m){m=Math.pow(.7,arguments.length?m:1);var w=this.r,M=this.g,E=this.b,L=30;return!w&&!M&&!E?new Sn(L,L,L):(w&&w<L&&(w=L),M&&M<L&&(M=L),E&&E<L&&(E=L),new Sn(Math.min(255,w/m),Math.min(255,M/m),Math.min(255,E/m)))},mr.darker=function(m){return m=Math.pow(.7,arguments.length?m:1),new Sn(m*this.r,m*this.g,m*this.b)},mr.hsl=function(){return ol(this.r,this.g,this.b)},mr.toString=function(){return"#"+gr(this.r)+gr(this.g)+gr(this.b)};function gr(m){return m<16?"0"+Math.max(0,m).toString(16):Math.min(255,m).toString(16)}function jo(m,w,M){var E=0,L=0,D=0,K,W,Q;if(K=/([a-z]+)\((.*)\)/.exec(m=m.toLowerCase()),K)switch(W=K[2].split(","),K[1]){case"hsl":return M(parseFloat(W[0]),parseFloat(W[1])/100,parseFloat(W[2])/100);case"rgb":return w(il(W[0]),il(W[1]),il(W[2]))}return(Q=so.get(m))?w(Q.r,Q.g,Q.b):(m!=null&&m.charAt(0)==="#"&&!isNaN(Q=parseInt(m.slice(1),16))&&(m.length===4?(E=(Q&3840)>>4,E=E>>4|E,L=Q&240,L=L>>4|L,D=Q&15,D=D<<4|D):m.length===7&&(E=(Q&16711680)>>16,L=(Q&65280)>>8,D=Q&255)),w(E,L,D))}function ol(m,w,M){var E=Math.min(m/=255,w/=255,M/=255),L=Math.max(m,w,M),D=L-E,K,W,Q=(L+E)/2;return D?(W=Q<.5?D/(L+E):D/(2-L-E),m==L?K=(w-M)/D+(w<M?6:0):w==L?K=(M-m)/D+2:K=(m-w)/D+4,K*=60):(K=NaN,W=Q>0&&Q<1?0:K),new kt(K,W,Q)}function sr(m,w,M){m=va(m),w=va(w),M=va(M);var E=On((.4124564*m+.3575761*w+.1804375*M)/Tt),L=On((.2126729*m+.7151522*w+.072175*M)/Lt),D=On((.0193339*m+.119192*w+.9503041*M)/jt);return It(116*L-16,500*(E-L),200*(L-D))}function va(m){return(m/=255)<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function il(m){var w=parseFloat(m);return m.charAt(m.length-1)==="%"?Math.round(w*2.55):w}var so=t.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});so.forEach(function(m,w){so.set(m,Nn(w))});function cn(m){return typeof m=="function"?m:function(){return m}}t.functor=cn,t.xhr=co(G);function co(m){return function(w,M,E){return arguments.length===2&&typeof M=="function"&&(E=M,M=null),Vo(w,M,m,E)}}function Vo(m,w,M,E){var L={},D=t.dispatch("beforesend","progress","load","error"),K={},W=new XMLHttpRequest,Q=null;self.XDomainRequest&&!("withCredentials"in W)&&/^(http(s)?:)?\/\//.test(m)&&(W=new XDomainRequest),"onload"in W?W.onload=W.onerror=ae:W.onreadystatechange=function(){W.readyState>3&&ae()};function ae(){var le=W.status,pe;if(!le&&En(W)||le>=200&&le<300||le===304){try{pe=M.call(L,W)}catch(me){D.error.call(L,me);return}D.load.call(L,pe)}else D.error.call(L,W)}return W.onprogress=function(le){var pe=t.event;t.event=le;try{D.progress.call(L,W)}finally{t.event=pe}},L.header=function(le,pe){return le=(le+"").toLowerCase(),arguments.length<2?K[le]:(pe==null?delete K[le]:K[le]=pe+"",L)},L.mimeType=function(le){return arguments.length?(w=le==null?null:le+"",L):w},L.responseType=function(le){return arguments.length?(Q=le,L):Q},L.response=function(le){return M=le,L},["get","post"].forEach(function(le){L[le]=function(){return L.send.apply(L,[le].concat(r(arguments)))}}),L.send=function(le,pe,me){if(arguments.length===2&&typeof pe=="function"&&(me=pe,pe=null),W.open(le,m,!0),w!=null&&!("accept"in K)&&(K.accept=w+",*/*"),W.setRequestHeader)for(var Ce in K)W.setRequestHeader(Ce,K[Ce]);return w!=null&&W.overrideMimeType&&W.overrideMimeType(w),Q!=null&&(W.responseType=Q),me!=null&&L.on("error",me).on("load",function(Fe){me(null,Fe)}),D.beforesend.call(L,W),W.send(pe??null),L},L.abort=function(){return W.abort(),L},t.rebind(L,D,"on"),E==null?L:L.get(ll(E))}function ll(m){return m.length===1?function(w,M){m(w==null?M:null)}:m}function En(m){var w=m.responseType;return w&&w!=="text"?m.response:m.responseText}t.dsv=function(m,w){var M=new RegExp('["'+m+`
400
+ ]`),E=m.charCodeAt(0);function L(ae,le,pe){arguments.length<3&&(pe=le,le=null);var me=Vo(ae,w,le==null?D:K(le),pe);return me.row=function(Ce){return arguments.length?me.response((le=Ce)==null?D:K(Ce)):le},me}function D(ae){return L.parse(ae.responseText)}function K(ae){return function(le){return L.parse(le.responseText,ae)}}L.parse=function(ae,le){var pe;return L.parseRows(ae,function(me,Ce){if(pe)return pe(me,Ce-1);var Fe=function(ye){for(var ke={},Se=me.length,ze=0;ze<Se;++ze)ke[me[ze]]=ye[ze];return ke};pe=le?function(ye,ke){return le(Fe(ye),ke)}:Fe})},L.parseRows=function(ae,le){var pe={},me={},Ce=[],Fe=ae.length,ye=0,ke=0,Se,ze;function Ie(){if(ye>=Fe)return me;if(ze)return ze=!1,pe;var Qe=ye;if(ae.charCodeAt(Qe)===34){for(var mt=Qe;mt++<Fe;)if(ae.charCodeAt(mt)===34){if(ae.charCodeAt(mt+1)!==34)break;++mt}ye=mt+2;var bt=ae.charCodeAt(mt+1);return bt===13?(ze=!0,ae.charCodeAt(mt+2)===10&&++ye):bt===10&&(ze=!0),ae.slice(Qe+1,mt).replace(/""/g,'"')}for(;ye<Fe;){var bt=ae.charCodeAt(ye++),yt=1;if(bt===10)ze=!0;else if(bt===13)ze=!0,ae.charCodeAt(ye)===10&&(++ye,++yt);else if(bt!==E)continue;return ae.slice(Qe,ye-yt)}return ae.slice(Qe)}for(;(Se=Ie())!==me;){for(var Me=[];Se!==pe&&Se!==me;)Me.push(Se),Se=Ie();le&&(Me=le(Me,ke++))==null||Ce.push(Me)}return Ce},L.format=function(ae){if(Array.isArray(ae[0]))return L.formatRows(ae);var le=new Z,pe=[];return ae.forEach(function(me){for(var Ce in me)le.has(Ce)||pe.push(le.add(Ce))}),[pe.map(Q).join(m)].concat(ae.map(function(me){return pe.map(function(Ce){return Q(me[Ce])}).join(m)})).join(`
401
+ `)},L.formatRows=function(ae){return ae.map(W).join(`
402
+ `)};function W(ae){return ae.map(Q).join(m)}function Q(ae){return M.test(ae)?'"'+ae.replace(/\"/g,'""')+'"':ae}return L},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var nr,ba,uo,wi,xa=this[P(this,"requestAnimationFrame")]||function(m){setTimeout(m,17)};t.timer=function(){za.apply(this,arguments)};function za(m,w,M){var E=arguments.length;E<2&&(w=0),E<3&&(M=Date.now());var L=M+w,D={c:m,t:L,n:null};return ba?ba.n=D:nr=D,ba=D,uo||(wi=clearTimeout(wi),uo=1,xa(hd)),D}function hd(){var m=gy(),w=CR()-m;w>24?(isFinite(w)&&(clearTimeout(wi),wi=setTimeout(hd,w)),uo=0):(uo=1,xa(hd))}t.timer.flush=function(){gy(),CR()};function gy(){for(var m=Date.now(),w=nr;w;)m>=w.t&&w.c(m-w.t)&&(w.c=null),w=w.n;return m}function CR(){for(var m,w=nr,M=1/0;w;)w.c?(w.t<M&&(M=w.t),w=(m=w).n):w=m?m.n=w.n:nr=w.n;return ba=m,M}t.round=function(m,w){return w?Math.round(m*(w=Math.pow(10,w)))/w:Math.round(m)},t.geom={};function md(m){return m[0]}function Hp(m){return m[1]}t.geom.hull=function(m){var w=md,M=Hp;if(arguments.length)return E(m);function E(L){if(L.length<3)return[];var D=cn(w),K=cn(M),W,Q=L.length,ae=[],le=[];for(W=0;W<Q;W++)ae.push([+D.call(this,L[W],W),+K.call(this,L[W],W),W]);for(ae.sort(iAe),W=0;W<Q;W++)le.push([ae[W][0],-ae[W][1]]);var pe=OR(ae),me=OR(le),Ce=me[0]===pe[0],Fe=me[me.length-1]===pe[pe.length-1],ye=[];for(W=pe.length-1;W>=0;--W)ye.push(L[ae[pe[W]][2]]);for(W=+Ce;W<me.length-Fe;++W)ye.push(L[ae[me[W]][2]]);return ye}return E.x=function(L){return arguments.length?(w=L,E):w},E.y=function(L){return arguments.length?(M=L,E):M},E};function OR(m){for(var w=m.length,M=[0,1],E=2,L=2;L<w;L++){for(;E>1&&Oe(m[M[E-2]],m[M[E-1]],m[L])<=0;)--E;M[E++]=L}return M.slice(0,E)}function iAe(m,w){return m[0]-w[0]||m[1]-w[1]}t.geom.polygon=function(m){return se(m,yy),m};var yy=t.geom.polygon.prototype=[];yy.area=function(){for(var m=-1,w=this.length,M,E=this[w-1],L=0;++m<w;)M=E,E=this[m],L+=M[1]*E[0]-M[0]*E[1];return L*.5},yy.centroid=function(m){var w=-1,M=this.length,E=0,L=0,D,K=this[M-1],W;for(arguments.length||(m=-1/(6*this.area()));++w<M;)D=K,K=this[w],W=D[0]*K[1]-K[0]*D[1],E+=(D[0]+K[0])*W,L+=(D[1]+K[1])*W;return[E*m,L*m]},yy.clip=function(m){for(var w,M=ER(m),E=-1,L=this.length-ER(this),D,K,W=this[L-1],Q,ae,le;++E<L;){for(w=m.slice(),m.length=0,Q=this[E],ae=w[(K=w.length-M)-1],D=-1;++D<K;)le=w[D],ek(le,W,Q)?(ek(ae,W,Q)||m.push(tk(ae,le,W,Q)),m.push(le)):ek(ae,W,Q)&&m.push(tk(ae,le,W,Q)),ae=le;M&&m.push(m[0]),W=Q}return m};function ek(m,w,M){return(M[0]-w[0])*(m[1]-w[1])<(M[1]-w[1])*(m[0]-w[0])}function tk(m,w,M,E){var L=m[0],D=M[0],K=w[0]-L,W=E[0]-D,Q=m[1],ae=M[1],le=w[1]-Q,pe=E[1]-ae,me=(W*(Q-ae)-pe*(L-D))/(pe*K-W*le);return[L+me*K,Q+me*le]}function ER(m){var w=m[0],M=m[m.length-1];return!(w[0]-M[0]||w[1]-M[1])}var gd,fc,yd,LR=[],nk,Up,zR=[];function lAe(){xy(this),this.edge=this.site=this.circle=null}function FR(m){var w=LR.pop()||new lAe;return w.site=m,w}function rk(m){bd(m),yd.remove(m),LR.push(m),xy(m)}function sAe(m){var w=m.circle,M=w.x,E=w.cy,L={x:M,y:E},D=m.P,K=m.N,W=[m];rk(m);for(var Q=D;Q.circle&&x(M-Q.circle.x)<tt&&x(E-Q.circle.cy)<tt;)D=Q.P,W.unshift(Q),rk(Q),Q=D;W.unshift(Q),bd(Q);for(var ae=K;ae.circle&&x(M-ae.circle.x)<tt&&x(E-ae.circle.cy)<tt;)K=ae.N,W.push(ae),rk(ae),ae=K;W.push(ae),bd(ae);var le=W.length,pe;for(pe=1;pe<le;++pe)ae=W[pe],Q=W[pe-1],vy(ae.edge,Q.site,ae.site,L);Q=W[0],ae=W[le-1],ae.edge=qp(Q.site,ae.site,null,L),vd(Q),vd(ae)}function cAe(m){for(var w=m.x,M=m.y,E,L,D,K,W=yd._;W;)if(D=IR(W,M)-w,D>tt)W=W.L;else if(K=w-uAe(W,M),K>tt){if(!W.R){E=W;break}W=W.R}else{D>-tt?(E=W.P,L=W):K>-tt?(E=W,L=W.N):E=L=W;break}var Q=FR(m);if(yd.insert(E,Q),!(!E&&!L)){if(E===L){bd(E),L=FR(E.site),yd.insert(Q,L),Q.edge=L.edge=qp(E.site,Q.site),vd(E),vd(L);return}if(!L){Q.edge=qp(E.site,Q.site);return}bd(E),bd(L);var ae=E.site,le=ae.x,pe=ae.y,me=m.x-le,Ce=m.y-pe,Fe=L.site,ye=Fe.x-le,ke=Fe.y-pe,Se=2*(me*ke-Ce*ye),ze=me*me+Ce*Ce,Ie=ye*ye+ke*ke,Me={x:(ke*ze-Ce*Ie)/Se+le,y:(me*Ie-ye*ze)/Se+pe};vy(L.edge,ae,Fe,Me),Q.edge=qp(ae,m,null,Me),L.edge=qp(m,Fe,null,Me),vd(E),vd(L)}}function IR(m,w){var M=m.site,E=M.x,L=M.y,D=L-w;if(!D)return E;var K=m.P;if(!K)return-1/0;M=K.site;var W=M.x,Q=M.y,ae=Q-w;if(!ae)return W;var le=W-E,pe=1/D-1/ae,me=le/ae;return pe?(-me+Math.sqrt(me*me-2*pe*(le*le/(-2*ae)-Q+ae/2+L-D/2)))/pe+E:(E+W)/2}function uAe(m,w){var M=m.N;if(M)return IR(M,w);var E=m.site;return E.y===w?E.x:1/0}function DR(m){this.site=m,this.edges=[]}DR.prototype.prepare=function(){for(var m=this.edges,w=m.length,M;w--;)M=m[w].edge,(!M.b||!M.a)&&m.splice(w,1);return m.sort(PR),m.length};function dAe(m){for(var w=m[0][0],M=m[1][0],E=m[0][1],L=m[1][1],D,K,W,Q,ae=fc,le=ae.length,pe,me,Ce,Fe,ye,ke;le--;)if(pe=ae[le],!(!pe||!pe.prepare()))for(Ce=pe.edges,Fe=Ce.length,me=0;me<Fe;)ke=Ce[me].end(),W=ke.x,Q=ke.y,ye=Ce[++me%Fe].start(),D=ye.x,K=ye.y,(x(W-D)>tt||x(Q-K)>tt)&&(Ce.splice(me,0,new by(gAe(pe.site,ke,x(W-w)<tt&&L-Q>tt?{x:w,y:x(D-w)<tt?K:L}:x(Q-L)<tt&&M-W>tt?{x:x(K-L)<tt?D:M,y:L}:x(W-M)<tt&&Q-E>tt?{x:M,y:x(D-M)<tt?K:E}:x(Q-E)<tt&&W-w>tt?{x:x(K-E)<tt?D:w,y:E}:null),pe.site,null)),++Fe)}function PR(m,w){return w.angle-m.angle}function fAe(){xy(this),this.x=this.y=this.arc=this.site=this.cy=null}function vd(m){var w=m.P,M=m.N;if(!(!w||!M)){var E=w.site,L=m.site,D=M.site;if(E!==D){var K=L.x,W=L.y,Q=E.x-K,ae=E.y-W,le=D.x-K,pe=D.y-W,me=2*(Q*pe-ae*le);if(!(me>=-pt)){var Ce=Q*Q+ae*ae,Fe=le*le+pe*pe,ye=(pe*Ce-ae*Fe)/me,ke=(Q*Fe-le*Ce)/me,pe=ke+W,Se=zR.pop()||new fAe;Se.arc=m,Se.site=L,Se.x=ye+K,Se.y=pe+Math.sqrt(ye*ye+ke*ke),Se.cy=pe,m.circle=Se;for(var ze=null,Ie=Up._;Ie;)if(Se.y<Ie.y||Se.y===Ie.y&&Se.x<=Ie.x)if(Ie.L)Ie=Ie.L;else{ze=Ie.P;break}else if(Ie.R)Ie=Ie.R;else{ze=Ie;break}Up.insert(ze,Se),ze||(nk=Se)}}}}function bd(m){var w=m.circle;w&&(w.P||(nk=w.N),Up.remove(w),zR.push(w),xy(w),m.circle=null)}function pAe(m,w,M,E){return function(L){var D=L.a,K=L.b,W=D.x,Q=D.y,ae=K.x,le=K.y,pe=0,me=1,Ce=ae-W,Fe=le-Q,ye;if(ye=m-W,!(!Ce&&ye>0)){if(ye/=Ce,Ce<0){if(ye<pe)return;ye<me&&(me=ye)}else if(Ce>0){if(ye>me)return;ye>pe&&(pe=ye)}if(ye=M-W,!(!Ce&&ye<0)){if(ye/=Ce,Ce<0){if(ye>me)return;ye>pe&&(pe=ye)}else if(Ce>0){if(ye<pe)return;ye<me&&(me=ye)}if(ye=w-Q,!(!Fe&&ye>0)){if(ye/=Fe,Fe<0){if(ye<pe)return;ye<me&&(me=ye)}else if(Fe>0){if(ye>me)return;ye>pe&&(pe=ye)}if(ye=E-Q,!(!Fe&&ye<0)){if(ye/=Fe,Fe<0){if(ye>me)return;ye>pe&&(pe=ye)}else if(Fe>0){if(ye<pe)return;ye<me&&(me=ye)}return pe>0&&(L.a={x:W+pe*Ce,y:Q+pe*Fe}),me<1&&(L.b={x:W+me*Ce,y:Q+me*Fe}),L}}}}}}function hAe(m){for(var w=gd,M=pAe(m[0][0],m[0][1],m[1][0],m[1][1]),E=w.length,L;E--;)L=w[E],(!mAe(L,m)||!M(L)||x(L.a.x-L.b.x)<tt&&x(L.a.y-L.b.y)<tt)&&(L.a=L.b=null,w.splice(E,1))}function mAe(m,w){var M=m.b;if(M)return!0;var E=m.a,L=w[0][0],D=w[1][0],K=w[0][1],W=w[1][1],Q=m.l,ae=m.r,le=Q.x,pe=Q.y,me=ae.x,Ce=ae.y,Fe=(le+me)/2,ye=(pe+Ce)/2,ke,Se;if(Ce===pe){if(Fe<L||Fe>=D)return;if(le>me){if(!E)E={x:Fe,y:K};else if(E.y>=W)return;M={x:Fe,y:W}}else{if(!E)E={x:Fe,y:W};else if(E.y<K)return;M={x:Fe,y:K}}}else if(ke=(le-me)/(Ce-pe),Se=ye-ke*Fe,ke<-1||ke>1)if(le>me){if(!E)E={x:(K-Se)/ke,y:K};else if(E.y>=W)return;M={x:(W-Se)/ke,y:W}}else{if(!E)E={x:(W-Se)/ke,y:W};else if(E.y<K)return;M={x:(K-Se)/ke,y:K}}else if(pe<Ce){if(!E)E={x:L,y:ke*L+Se};else if(E.x>=D)return;M={x:D,y:ke*D+Se}}else{if(!E)E={x:D,y:ke*D+Se};else if(E.x<L)return;M={x:L,y:ke*L+Se}}return m.a=E,m.b=M,!0}function RR(m,w){this.l=m,this.r=w,this.a=this.b=null}function qp(m,w,M,E){var L=new RR(m,w);return gd.push(L),M&&vy(L,m,w,M),E&&vy(L,w,m,E),fc[m.i].edges.push(new by(L,m,w)),fc[w.i].edges.push(new by(L,w,m)),L}function gAe(m,w,M){var E=new RR(m,null);return E.a=w,E.b=M,gd.push(E),E}function vy(m,w,M,E){!m.a&&!m.b?(m.a=E,m.l=w,m.r=M):m.l===M?m.b=E:m.a=E}function by(m,w,M){var E=m.a,L=m.b;this.edge=m,this.site=w,this.angle=M?Math.atan2(M.y-w.y,M.x-w.x):m.l===w?Math.atan2(L.x-E.x,E.y-L.y):Math.atan2(E.x-L.x,L.y-E.y)}by.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function ak(){this._=null}function xy(m){m.U=m.C=m.L=m.R=m.P=m.N=null}ak.prototype={insert:function(m,w){var M,E,L;if(m){if(w.P=m,w.N=m.N,m.N&&(m.N.P=w),m.N=w,m.R){for(m=m.R;m.L;)m=m.L;m.L=w}else m.R=w;M=m}else this._?(m=NR(this._),w.P=null,w.N=m,m.P=m.L=w,M=m):(w.P=w.N=null,this._=w,M=null);for(w.L=w.R=null,w.U=M,w.C=!0,m=w;M&&M.C;)E=M.U,M===E.L?(L=E.R,L&&L.C?(M.C=L.C=!1,E.C=!0,m=E):(m===M.R&&(Wp(this,M),m=M,M=m.U),M.C=!1,E.C=!0,Gp(this,E))):(L=E.L,L&&L.C?(M.C=L.C=!1,E.C=!0,m=E):(m===M.L&&(Gp(this,M),m=M,M=m.U),M.C=!1,E.C=!0,Wp(this,E))),M=m.U;this._.C=!1},remove:function(m){m.N&&(m.N.P=m.P),m.P&&(m.P.N=m.N),m.N=m.P=null;var w=m.U,M,E=m.L,L=m.R,D,K;if(E?L?D=NR(L):D=E:D=L,w?w.L===m?w.L=D:w.R=D:this._=D,E&&L?(K=D.C,D.C=m.C,D.L=E,E.U=D,D!==L?(w=D.U,D.U=m.U,m=D.R,w.L=m,D.R=L,L.U=D):(D.U=w,w=D,m=D.R)):(K=m.C,m=D),m&&(m.U=w),!K){if(m&&m.C){m.C=!1;return}do{if(m===this._)break;if(m===w.L){if(M=w.R,M.C&&(M.C=!1,w.C=!0,Wp(this,w),M=w.R),M.L&&M.L.C||M.R&&M.R.C){(!M.R||!M.R.C)&&(M.L.C=!1,M.C=!0,Gp(this,M),M=w.R),M.C=w.C,w.C=M.R.C=!1,Wp(this,w),m=this._;break}}else if(M=w.L,M.C&&(M.C=!1,w.C=!0,Gp(this,w),M=w.L),M.L&&M.L.C||M.R&&M.R.C){(!M.L||!M.L.C)&&(M.R.C=!1,M.C=!0,Wp(this,M),M=w.L),M.C=w.C,w.C=M.L.C=!1,Gp(this,w),m=this._;break}M.C=!0,m=w,w=w.U}while(!m.C);m&&(m.C=!1)}}};function Wp(m,w){var M=w,E=w.R,L=M.U;L?L.L===M?L.L=E:L.R=E:m._=E,E.U=L,M.U=E,M.R=E.L,M.R&&(M.R.U=M),E.L=M}function Gp(m,w){var M=w,E=w.L,L=M.U;L?L.L===M?L.L=E:L.R=E:m._=E,E.U=L,M.U=E,M.L=E.R,M.L&&(M.L.U=M),E.R=M}function NR(m){for(;m.L;)m=m.L;return m}function ok(m,w){var M=m.sort(yAe).pop(),E,L,D;for(gd=[],fc=new Array(m.length),yd=new ak,Up=new ak;;)if(D=nk,M&&(!D||M.y<D.y||M.y===D.y&&M.x<D.x))(M.x!==E||M.y!==L)&&(fc[M.i]=new DR(M),cAe(M),E=M.x,L=M.y),M=m.pop();else if(D)sAe(D.arc);else break;w&&(hAe(w),dAe(w));var K={cells:fc,edges:gd};return yd=Up=gd=fc=null,K}function yAe(m,w){return w.y-m.y||w.x-m.x}t.geom.voronoi=function(m){var w=md,M=Hp,E=w,L=M,D=wy;if(m)return K(m);function K(Q){var ae=new Array(Q.length),le=D[0][0],pe=D[0][1],me=D[1][0],Ce=D[1][1];return ok(W(Q),D).cells.forEach(function(Fe,ye){var ke=Fe.edges,Se=Fe.site,ze=ae[ye]=ke.length?ke.map(function(Ie){var Me=Ie.start();return[Me.x,Me.y]}):Se.x>=le&&Se.x<=me&&Se.y>=pe&&Se.y<=Ce?[[le,Ce],[me,Ce],[me,pe],[le,pe]]:[];ze.point=Q[ye]}),ae}function W(Q){return Q.map(function(ae,le){return{x:Math.round(E(ae,le)/tt)*tt,y:Math.round(L(ae,le)/tt)*tt,i:le}})}return K.links=function(Q){return ok(W(Q)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:Q[ae.l.i],target:Q[ae.r.i]}})},K.triangles=function(Q){var ae=[];return ok(W(Q)).cells.forEach(function(le,pe){for(var me=le.site,Ce=le.edges.sort(PR),Fe=-1,ye=Ce.length,ke,Se=Ce[ye-1].edge,ze=Se.l===me?Se.r:Se.l;++Fe<ye;)ke=ze,Se=Ce[Fe].edge,ze=Se.l===me?Se.r:Se.l,pe<ke.i&&pe<ze.i&&vAe(me,ke,ze)<0&&ae.push([Q[pe],Q[ke.i],Q[ze.i]])}),ae},K.x=function(Q){return arguments.length?(E=cn(w=Q),K):w},K.y=function(Q){return arguments.length?(L=cn(M=Q),K):M},K.clipExtent=function(Q){return arguments.length?(D=Q??wy,K):D===wy?null:D},K.size=function(Q){return arguments.length?K.clipExtent(Q&&[[0,0],Q]):D===wy?null:D&&D[1]},K};var wy=[[-1e6,-1e6],[1e6,1e6]];function vAe(m,w,M){return(m.x-M.x)*(w.y-m.y)-(m.x-w.x)*(M.y-m.y)}t.geom.delaunay=function(m){return t.geom.voronoi().triangles(m)},t.geom.quadtree=function(m,w,M,E,L){var D=md,K=Hp,W;if(W=arguments.length)return D=bAe,K=xAe,W===3&&(L=M,E=w,M=w=0),Q(m);function Q(ae){var le,pe=cn(D),me=cn(K),Ce,Fe,ye,ke,Se,ze,Ie,Me;if(w!=null)Se=w,ze=M,Ie=E,Me=L;else if(Ie=Me=-(Se=ze=1/0),Ce=[],Fe=[],ke=ae.length,W)for(ye=0;ye<ke;++ye)le=ae[ye],le.x<Se&&(Se=le.x),le.y<ze&&(ze=le.y),le.x>Ie&&(Ie=le.x),le.y>Me&&(Me=le.y),Ce.push(le.x),Fe.push(le.y);else for(ye=0;ye<ke;++ye){var Qe=+pe(le=ae[ye],ye),mt=+me(le,ye);Qe<Se&&(Se=Qe),mt<ze&&(ze=mt),Qe>Ie&&(Ie=Qe),mt>Me&&(Me=mt),Ce.push(Qe),Fe.push(mt)}var bt=Ie-Se,yt=Me-ze;bt>yt?Me=ze+bt:Ie=Se+yt;function Mt(zt,Vt,un,Qn,vn,ht,Ut,Zt){if(!(isNaN(un)||isNaN(Qn)))if(zt.leaf){var dn=zt.x,Bn=zt.y;if(dn!=null)if(x(dn-un)+x(Bn-Qn)<.01)Ct(zt,Vt,un,Qn,vn,ht,Ut,Zt);else{var ur=zt.point;zt.x=zt.y=zt.point=null,Ct(zt,ur,dn,Bn,vn,ht,Ut,Zt),Ct(zt,Vt,un,Qn,vn,ht,Ut,Zt)}else zt.x=un,zt.y=Qn,zt.point=Vt}else Ct(zt,Vt,un,Qn,vn,ht,Ut,Zt)}function Ct(zt,Vt,un,Qn,vn,ht,Ut,Zt){var dn=(vn+Ut)*.5,Bn=(ht+Zt)*.5,ur=un>=dn,Or=Qn>=Bn,Kr=Or<<1|ur;zt.leaf=!1,zt=zt.nodes[Kr]||(zt.nodes[Kr]=BR()),ur?vn=dn:Ut=dn,Or?ht=Bn:Zt=Bn,Mt(zt,Vt,un,Qn,vn,ht,Ut,Zt)}var Ht=BR();if(Ht.add=function(zt){Mt(Ht,zt,+pe(zt,++ye),+me(zt,ye),Se,ze,Ie,Me)},Ht.visit=function(zt){Zp(zt,Ht,Se,ze,Ie,Me)},Ht.find=function(zt){return wAe(Ht,zt[0],zt[1],Se,ze,Ie,Me)},ye=-1,w==null){for(;++ye<ke;)Mt(Ht,ae[ye],Ce[ye],Fe[ye],Se,ze,Ie,Me);--ye}else ae.forEach(Ht.add);return Ce=Fe=ae=le=null,Ht}return Q.x=function(ae){return arguments.length?(D=ae,Q):D},Q.y=function(ae){return arguments.length?(K=ae,Q):K},Q.extent=function(ae){return arguments.length?(ae==null?w=M=E=L=null:(w=+ae[0][0],M=+ae[0][1],E=+ae[1][0],L=+ae[1][1]),Q):w==null?null:[[w,M],[E,L]]},Q.size=function(ae){return arguments.length?(ae==null?w=M=E=L=null:(w=M=0,E=+ae[0],L=+ae[1]),Q):w==null?null:[E-w,L-M]},Q};function bAe(m){return m.x}function xAe(m){return m.y}function BR(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Zp(m,w,M,E,L,D){if(!m(w,M,E,L,D)){var K=(M+L)*.5,W=(E+D)*.5,Q=w.nodes;Q[0]&&Zp(m,Q[0],M,E,K,W),Q[1]&&Zp(m,Q[1],K,E,L,W),Q[2]&&Zp(m,Q[2],M,W,K,D),Q[3]&&Zp(m,Q[3],K,W,L,D)}}function wAe(m,w,M,E,L,D,K){var W=1/0,Q;return function ae(le,pe,me,Ce,Fe){if(!(pe>D||me>K||Ce<E||Fe<L)){if(ye=le.point){var ye,ke=w-le.x,Se=M-le.y,ze=ke*ke+Se*Se;if(ze<W){var Ie=Math.sqrt(W=ze);E=w-Ie,L=M-Ie,D=w+Ie,K=M+Ie,Q=ye}}for(var Me=le.nodes,Qe=(pe+Ce)*.5,mt=(me+Fe)*.5,bt=w>=Qe,yt=M>=mt,Mt=yt<<1|bt,Ct=Mt+4;Mt<Ct;++Mt)if(le=Me[Mt&3])switch(Mt&3){case 0:ae(le,pe,me,Qe,mt);break;case 1:ae(le,Qe,me,Ce,mt);break;case 2:ae(le,pe,mt,Qe,Fe);break;case 3:ae(le,Qe,mt,Ce,Fe);break}}}(m,E,L,D,K),Q}t.interpolateRgb=ik;function ik(m,w){m=t.rgb(m),w=t.rgb(w);var M=m.r,E=m.g,L=m.b,D=w.r-M,K=w.g-E,W=w.b-L;return function(Q){return"#"+gr(Math.round(M+D*Q))+gr(Math.round(E+K*Q))+gr(Math.round(L+W*Q))}}t.interpolateObject=jR;function jR(m,w){var M={},E={},L;for(L in m)L in w?M[L]=pc(m[L],w[L]):E[L]=m[L];for(L in w)L in m||(E[L]=w[L]);return function(D){for(L in M)E[L]=M[L](D);return E}}t.interpolateNumber=sl;function sl(m,w){return m=+m,w=+w,function(M){return m*(1-M)+w*M}}t.interpolateString=VR;function VR(m,w){var M=lk.lastIndex=sk.lastIndex=0,E,L,D,K=-1,W=[],Q=[];for(m=m+"",w=w+"";(E=lk.exec(m))&&(L=sk.exec(w));)(D=L.index)>M&&(D=w.slice(M,D),W[K]?W[K]+=D:W[++K]=D),(E=E[0])===(L=L[0])?W[K]?W[K]+=L:W[++K]=L:(W[++K]=null,Q.push({i:K,x:sl(E,L)})),M=sk.lastIndex;return M<w.length&&(D=w.slice(M),W[K]?W[K]+=D:W[++K]=D),W.length<2?Q[0]?(w=Q[0].x,function(ae){return w(ae)+""}):function(){return w}:(w=Q.length,function(ae){for(var le=0,pe;le<w;++le)W[(pe=Q[le]).i]=pe.x(ae);return W.join("")})}var lk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sk=new RegExp(lk.source,"g");t.interpolate=pc;function pc(m,w){for(var M=t.interpolators.length,E;--M>=0&&!(E=t.interpolators[M](m,w)););return E}t.interpolators=[function(m,w){var M=typeof w;return(M==="string"?so.has(w.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(w)?ik:VR:w instanceof _t?ik:Array.isArray(w)?_y:M==="object"&&isNaN(w)?jR:sl)(m,w)}],t.interpolateArray=_y;function _y(m,w){var M=[],E=[],L=m.length,D=w.length,K=Math.min(m.length,w.length),W;for(W=0;W<K;++W)M.push(pc(m[W],w[W]));for(;W<L;++W)E[W]=m[W];for(;W<D;++W)E[W]=w[W];return function(Q){for(W=0;W<K;++W)E[W]=M[W](Q);return E}}var HR=function(){return G},_Ae=t.map({linear:HR,poly:CAe,quad:function(){return SAe},cubic:function(){return AAe},sin:function(){return OAe},exp:function(){return EAe},circle:function(){return LAe},elastic:zAe,back:FAe,bounce:function(){return IAe}}),kAe=t.map({in:G,out:UR,"in-out":qR,"out-in":function(m){return qR(UR(m))}});t.ease=function(m){var w=m.indexOf("-"),M=w>=0?m.slice(0,w):m,E=w>=0?m.slice(w+1):"in";return M=_Ae.get(M)||HR,E=kAe.get(E)||G,TAe(E(M.apply(null,n.call(arguments,1))))};function TAe(m){return function(w){return w<=0?0:w>=1?1:m(w)}}function UR(m){return function(w){return 1-m(1-w)}}function qR(m){return function(w){return .5*(w<.5?m(2*w):2-m(2-2*w))}}function SAe(m){return m*m}function AAe(m){return m*m*m}function MAe(m){if(m<=0)return 0;if(m>=1)return 1;var w=m*m,M=w*m;return 4*(m<.5?M:3*(m-w)+M-.75)}function CAe(m){return function(w){return Math.pow(w,m)}}function OAe(m){return 1-Math.cos(m*ue)}function EAe(m){return Math.pow(2,10*(m-1))}function LAe(m){return 1-Math.sqrt(1-m*m)}function zAe(m,w){var M;return arguments.length<2&&(w=.45),arguments.length?M=w/Ot*Math.asin(1/m):(m=1,M=w/4),function(E){return 1+m*Math.pow(2,-10*E)*Math.sin((E-M)*Ot/w)}}function FAe(m){return m||(m=1.70158),function(w){return w*w*((m+1)*w-m)}}function IAe(m){return m<1/2.75?7.5625*m*m:m<2/2.75?7.5625*(m-=1.5/2.75)*m+.75:m<2.5/2.75?7.5625*(m-=2.25/2.75)*m+.9375:7.5625*(m-=2.625/2.75)*m+.984375}t.interpolateHcl=DAe;function DAe(m,w){m=t.hcl(m),w=t.hcl(w);var M=m.h,E=m.c,L=m.l,D=w.h-M,K=w.c-E,W=w.l-L;return isNaN(K)&&(K=0,E=isNaN(E)?w.c:E),isNaN(D)?(D=0,M=isNaN(M)?w.h:M):D>180?D-=360:D<-180&&(D+=360),function(Q){return Wt(M+D*Q,E+K*Q,L+W*Q)+""}}t.interpolateHsl=PAe;function PAe(m,w){m=t.hsl(m),w=t.hsl(w);var M=m.h,E=m.s,L=m.l,D=w.h-M,K=w.s-E,W=w.l-L;return isNaN(K)&&(K=0,E=isNaN(E)?w.s:E),isNaN(D)?(D=0,M=isNaN(M)?w.h:M):D>180?D-=360:D<-180&&(D+=360),function(Q){return Rt(M+D*Q,E+K*Q,L+W*Q)+""}}t.interpolateLab=RAe;function RAe(m,w){m=t.lab(m),w=t.lab(w);var M=m.l,E=m.a,L=m.b,D=w.l-M,K=w.a-E,W=w.b-L;return function(Q){return At(M+D*Q,E+K*Q,L+W*Q)+""}}t.interpolateRound=WR;function WR(m,w){return w-=m,function(M){return Math.round(m+w*M)}}t.transform=function(m){var w=a.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(M){if(M!=null){w.setAttribute("transform",M);var E=w.transform.baseVal.consolidate()}return new GR(E?E.matrix:BAe)})(m)};function GR(m){var w=[m.a,m.b],M=[m.c,m.d],E=KR(w),L=ZR(w,M),D=KR(NAe(M,w,-L))||0;w[0]*M[1]<M[0]*w[1]&&(w[0]*=-1,w[1]*=-1,E*=-1,L*=-1),this.rotate=(E?Math.atan2(w[1],w[0]):Math.atan2(-M[0],M[1]))*ce,this.translate=[m.e,m.f],this.scale=[E,D],this.skew=D?Math.atan2(L,D)*ce:0}GR.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function ZR(m,w){return m[0]*w[0]+m[1]*w[1]}function KR(m){var w=Math.sqrt(ZR(m,m));return w&&(m[0]/=w,m[1]/=w),w}function NAe(m,w,M){return m[0]+=M*w[0],m[1]+=M*w[1],m}var BAe={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=YR;function xd(m){return m.length?m.pop()+",":""}function jAe(m,w,M,E){if(m[0]!==w[0]||m[1]!==w[1]){var L=M.push("translate(",null,",",null,")");E.push({i:L-4,x:sl(m[0],w[0])},{i:L-2,x:sl(m[1],w[1])})}else(w[0]||w[1])&&M.push("translate("+w+")")}function VAe(m,w,M,E){m!==w?(m-w>180?w+=360:w-m>180&&(m+=360),E.push({i:M.push(xd(M)+"rotate(",null,")")-2,x:sl(m,w)})):w&&M.push(xd(M)+"rotate("+w+")")}function HAe(m,w,M,E){m!==w?E.push({i:M.push(xd(M)+"skewX(",null,")")-2,x:sl(m,w)}):w&&M.push(xd(M)+"skewX("+w+")")}function UAe(m,w,M,E){if(m[0]!==w[0]||m[1]!==w[1]){var L=M.push(xd(M)+"scale(",null,",",null,")");E.push({i:L-4,x:sl(m[0],w[0])},{i:L-2,x:sl(m[1],w[1])})}else(w[0]!==1||w[1]!==1)&&M.push(xd(M)+"scale("+w+")")}function YR(m,w){var M=[],E=[];return m=t.transform(m),w=t.transform(w),jAe(m.translate,w.translate,M,E),VAe(m.rotate,w.rotate,M,E),HAe(m.skew,w.skew,M,E),UAe(m.scale,w.scale,M,E),m=w=null,function(L){for(var D=-1,K=E.length,W;++D<K;)M[(W=E[D]).i]=W.x(L);return M.join("")}}function qAe(m,w){return w=(w-=m=+m)||1/w,function(M){return(M-m)/w}}function WAe(m,w){return w=(w-=m=+m)||1/w,function(M){return Math.max(0,Math.min(1,(M-m)/w))}}t.layout={},t.layout.bundle=function(){return function(m){for(var w=[],M=-1,E=m.length;++M<E;)w.push(GAe(m[M]));return w}};function GAe(m){for(var w=m.source,M=m.target,E=ZAe(w,M),L=[w];w!==E;)w=w.parent,L.push(w);for(var D=L.length;M!==E;)L.splice(D,0,M),M=M.parent;return L}function JR(m){for(var w=[],M=m.parent;M!=null;)w.push(m),m=M,M=M.parent;return w.push(m),w}function ZAe(m,w){if(m===w)return m;for(var M=JR(m),E=JR(w),L=M.pop(),D=E.pop(),K=null;L===D;)K=L,L=M.pop(),D=E.pop();return K}t.layout.chord=function(){var m={},w,M,E,L,D=0,K,W,Q;function ae(){var pe={},me=[],Ce=t.range(L),Fe=[],ye,ke,Se,ze,Ie;for(w=[],M=[],ye=0,ze=-1;++ze<L;){for(ke=0,Ie=-1;++Ie<L;)ke+=E[ze][Ie];me.push(ke),Fe.push(t.range(L)),ye+=ke}for(K&&Ce.sort(function(Ht,zt){return K(me[Ht],me[zt])}),W&&Fe.forEach(function(Ht,zt){Ht.sort(function(Vt,un){return W(E[zt][Vt],E[zt][un])})}),ye=(Ot-D*L)/ye,ke=0,ze=-1;++ze<L;){for(Se=ke,Ie=-1;++Ie<L;){var Me=Ce[ze],Qe=Fe[Me][Ie],mt=E[Me][Qe],bt=ke,yt=ke+=mt*ye;pe[Me+"-"+Qe]={index:Me,subindex:Qe,startAngle:bt,endAngle:yt,value:mt}}M[Me]={index:Me,startAngle:Se,endAngle:ke,value:me[Me]},ke+=D}for(ze=-1;++ze<L;)for(Ie=ze-1;++Ie<L;){var Mt=pe[ze+"-"+Ie],Ct=pe[Ie+"-"+ze];(Mt.value||Ct.value)&&w.push(Mt.value<Ct.value?{source:Ct,target:Mt}:{source:Mt,target:Ct})}Q&&le()}function le(){w.sort(function(pe,me){return Q((pe.source.value+pe.target.value)/2,(me.source.value+me.target.value)/2)})}return m.matrix=function(pe){return arguments.length?(L=(E=pe)&&E.length,w=M=null,m):E},m.padding=function(pe){return arguments.length?(D=pe,w=M=null,m):D},m.sortGroups=function(pe){return arguments.length?(K=pe,w=M=null,m):K},m.sortSubgroups=function(pe){return arguments.length?(W=pe,w=null,m):W},m.sortChords=function(pe){return arguments.length?(Q=pe,w&&le(),m):Q},m.chords=function(){return w||ae(),w},m.groups=function(){return M||ae(),M},m},t.layout.force=function(){var m={},w=t.dispatch("start","tick","end"),M,E=[1,1],L,D,K=.9,W=XAe,Q=$Ae,ae=-30,le=eMe,pe=.1,me=.64,Ce=[],Fe=[],ye,ke,Se;function ze(Me){return function(Qe,mt,bt,yt){if(Qe.point!==Me){var Mt=Qe.cx-Me.x,Ct=Qe.cy-Me.y,Ht=yt-mt,zt=Mt*Mt+Ct*Ct;if(Ht*Ht/me<zt){if(zt<le){var Vt=Qe.charge/zt;Me.px-=Mt*Vt,Me.py-=Ct*Vt}return!0}if(Qe.point&&zt&&zt<le){var Vt=Qe.pointCharge/zt;Me.px-=Mt*Vt,Me.py-=Ct*Vt}}return!Qe.charge}}m.tick=function(){if((D*=.99)<.005)return M=null,w.end({type:"end",alpha:D=0}),!0;var Me=Ce.length,Qe=Fe.length,mt,bt,yt,Mt,Ct,Ht,zt,Vt,un;for(bt=0;bt<Qe;++bt)yt=Fe[bt],Mt=yt.source,Ct=yt.target,Vt=Ct.x-Mt.x,un=Ct.y-Mt.y,(Ht=Vt*Vt+un*un)&&(Ht=D*ke[bt]*((Ht=Math.sqrt(Ht))-ye[bt])/Ht,Vt*=Ht,un*=Ht,Ct.x-=Vt*(zt=Mt.weight+Ct.weight?Mt.weight/(Mt.weight+Ct.weight):.5),Ct.y-=un*zt,Mt.x+=Vt*(zt=1-zt),Mt.y+=un*zt);if((zt=D*pe)&&(Vt=E[0]/2,un=E[1]/2,bt=-1,zt))for(;++bt<Me;)yt=Ce[bt],yt.x+=(Vt-yt.x)*zt,yt.y+=(un-yt.y)*zt;if(ae)for(QR(mt=t.geom.quadtree(Ce),D,Se),bt=-1;++bt<Me;)(yt=Ce[bt]).fixed||mt.visit(ze(yt));for(bt=-1;++bt<Me;)yt=Ce[bt],yt.fixed?(yt.x=yt.px,yt.y=yt.py):(yt.x-=(yt.px-(yt.px=yt.x))*K,yt.y-=(yt.py-(yt.py=yt.y))*K);w.tick({type:"tick",alpha:D})},m.nodes=function(Me){return arguments.length?(Ce=Me,m):Ce},m.links=function(Me){return arguments.length?(Fe=Me,m):Fe},m.size=function(Me){return arguments.length?(E=Me,m):E},m.linkDistance=function(Me){return arguments.length?(W=typeof Me=="function"?Me:+Me,m):W},m.distance=m.linkDistance,m.linkStrength=function(Me){return arguments.length?(Q=typeof Me=="function"?Me:+Me,m):Q},m.friction=function(Me){return arguments.length?(K=+Me,m):K},m.charge=function(Me){return arguments.length?(ae=typeof Me=="function"?Me:+Me,m):ae},m.chargeDistance=function(Me){return arguments.length?(le=Me*Me,m):Math.sqrt(le)},m.gravity=function(Me){return arguments.length?(pe=+Me,m):pe},m.theta=function(Me){return arguments.length?(me=Me*Me,m):Math.sqrt(me)},m.alpha=function(Me){return arguments.length?(Me=+Me,D?Me>0?D=Me:(M.c=null,M.t=NaN,M=null,w.end({type:"end",alpha:D=0})):Me>0&&(w.start({type:"start",alpha:D=Me}),M=za(m.tick)),m):D},m.start=function(){var Me,Qe=Ce.length,mt=Fe.length,bt=E[0],yt=E[1],Mt,Ct;for(Me=0;Me<Qe;++Me)(Ct=Ce[Me]).index=Me,Ct.weight=0;for(Me=0;Me<mt;++Me)Ct=Fe[Me],typeof Ct.source=="number"&&(Ct.source=Ce[Ct.source]),typeof Ct.target=="number"&&(Ct.target=Ce[Ct.target]),++Ct.source.weight,++Ct.target.weight;for(Me=0;Me<Qe;++Me)Ct=Ce[Me],isNaN(Ct.x)&&(Ct.x=Ht("x",bt)),isNaN(Ct.y)&&(Ct.y=Ht("y",yt)),isNaN(Ct.px)&&(Ct.px=Ct.x),isNaN(Ct.py)&&(Ct.py=Ct.y);if(ye=[],typeof W=="function")for(Me=0;Me<mt;++Me)ye[Me]=+W.call(this,Fe[Me],Me);else for(Me=0;Me<mt;++Me)ye[Me]=W;if(ke=[],typeof Q=="function")for(Me=0;Me<mt;++Me)ke[Me]=+Q.call(this,Fe[Me],Me);else for(Me=0;Me<mt;++Me)ke[Me]=Q;if(Se=[],typeof ae=="function")for(Me=0;Me<Qe;++Me)Se[Me]=+ae.call(this,Ce[Me],Me);else for(Me=0;Me<Qe;++Me)Se[Me]=ae;function Ht(zt,Vt){if(!Mt){for(Mt=new Array(Qe),vn=0;vn<Qe;++vn)Mt[vn]=[];for(vn=0;vn<mt;++vn){var un=Fe[vn];Mt[un.source.index].push(un.target),Mt[un.target.index].push(un.source)}}for(var Qn=Mt[Me],vn=-1,ht=Qn.length,Ut;++vn<ht;)if(!isNaN(Ut=Qn[vn][zt]))return Ut;return Math.random()*Vt}return m.resume()},m.resume=function(){return m.alpha(.1)},m.stop=function(){return m.alpha(0)},m.drag=function(){if(L||(L=t.behavior.drag().origin(G).on("dragstart.force",KAe).on("drag.force",Ie).on("dragend.force",YAe)),!arguments.length)return L;this.on("mouseover.force",JAe).on("mouseout.force",QAe).call(L)};function Ie(Me){Me.px=t.event.x,Me.py=t.event.y,m.resume()}return t.rebind(m,w,"on")};function KAe(m){m.fixed|=2}function YAe(m){m.fixed&=-7}function JAe(m){m.fixed|=4,m.px=m.x,m.py=m.y}function QAe(m){m.fixed&=-5}function QR(m,w,M){var E=0,L=0;if(m.charge=0,!m.leaf)for(var D=m.nodes,K=D.length,W=-1,Q;++W<K;)Q=D[W],Q!=null&&(QR(Q,w,M),m.charge+=Q.charge,E+=Q.charge*Q.cx,L+=Q.charge*Q.cy);if(m.point){m.leaf||(m.point.x+=Math.random()-.5,m.point.y+=Math.random()-.5);var ae=w*M[m.point.index];m.charge+=m.pointCharge=ae,E+=ae*m.point.x,L+=ae*m.point.y}m.cx=E/m.charge,m.cy=L/m.charge}var XAe=20,$Ae=1,eMe=1/0;t.layout.hierarchy=function(){var m=rMe,w=tMe,M=nMe;function E(L){var D=[L],K=[],W;for(L.depth=0;(W=D.pop())!=null;)if(K.push(W),(ae=w.call(E,W,W.depth))&&(Q=ae.length)){for(var Q,ae,le;--Q>=0;)D.push(le=ae[Q]),le.parent=W,le.depth=W.depth+1;M&&(W.value=0),W.children=ae}else M&&(W.value=+M.call(E,W,W.depth)||0),delete W.children;return _i(L,function(pe){var me,Ce;m&&(me=pe.children)&&me.sort(m),M&&(Ce=pe.parent)&&(Ce.value+=pe.value)}),K}return E.sort=function(L){return arguments.length?(m=L,E):m},E.children=function(L){return arguments.length?(w=L,E):w},E.value=function(L){return arguments.length?(M=L,E):M},E.revalue=function(L){return M&&(Yp(L,function(D){D.children&&(D.value=0)}),_i(L,function(D){var K;D.children||(D.value=+M.call(E,D,D.depth)||0),(K=D.parent)&&(K.value+=D.value)})),L},E};function Kp(m,w){return t.rebind(m,w,"sort","children","value"),m.nodes=m,m.links=aMe,m}function Yp(m,w){for(var M=[m];(m=M.pop())!=null;)if(w(m),(L=m.children)&&(E=L.length))for(var E,L;--E>=0;)M.push(L[E])}function _i(m,w){for(var M=[m],E=[];(m=M.pop())!=null;)if(E.push(m),(K=m.children)&&(D=K.length))for(var L=-1,D,K;++L<D;)M.push(K[L]);for(;(m=E.pop())!=null;)w(m)}function tMe(m){return m.children}function nMe(m){return m.value}function rMe(m,w){return w.value-m.value}function aMe(m){return t.merge(m.map(function(w){return(w.children||[]).map(function(M){return{source:w,target:M}})}))}t.layout.partition=function(){var m=t.layout.hierarchy(),w=[1,1];function M(D,K,W,Q){var ae=D.children;if(D.x=K,D.y=D.depth*Q,D.dx=W,D.dy=Q,ae&&(pe=ae.length)){var le=-1,pe,me,Ce;for(W=D.value?W/D.value:0;++le<pe;)M(me=ae[le],K,Ce=me.value*W,Q),K+=Ce}}function E(D){var K=D.children,W=0;if(K&&(ae=K.length))for(var Q=-1,ae;++Q<ae;)W=Math.max(W,E(K[Q]));return 1+W}function L(D,K){var W=m.call(this,D,K);return M(W[0],0,w[0],w[1]/E(W[0])),W}return L.size=function(D){return arguments.length?(w=D,L):w},Kp(L,m)},t.layout.pie=function(){var m=Number,w=XR,M=0,E=Ot,L=0;function D(K){var W=K.length,Q=K.map(function(ze,Ie){return+m.call(D,ze,Ie)}),ae=+(typeof M=="function"?M.apply(this,arguments):M),le=(typeof E=="function"?E.apply(this,arguments):E)-ae,pe=Math.min(Math.abs(le)/W,+(typeof L=="function"?L.apply(this,arguments):L)),me=pe*(le<0?-1:1),Ce=t.sum(Q),Fe=Ce?(le-W*me)/Ce:0,ye=t.range(W),ke=[],Se;return w!=null&&ye.sort(w===XR?function(ze,Ie){return Q[Ie]-Q[ze]}:function(ze,Ie){return w(K[ze],K[Ie])}),ye.forEach(function(ze){ke[ze]={data:K[ze],value:Se=Q[ze],startAngle:ae,endAngle:ae+=Se*Fe+me,padAngle:pe}}),ke}return D.value=function(K){return arguments.length?(m=K,D):m},D.sort=function(K){return arguments.length?(w=K,D):w},D.startAngle=function(K){return arguments.length?(M=K,D):M},D.endAngle=function(K){return arguments.length?(E=K,D):E},D.padAngle=function(K){return arguments.length?(L=K,D):L},D};var XR={};t.layout.stack=function(){var m=G,w=ck,M=uk,E=lMe,L=oMe,D=iMe;function K(W,Q){if(!(Fe=W.length))return W;var ae=W.map(function(ze,Ie){return m.call(K,ze,Ie)}),le=ae.map(function(ze){return ze.map(function(Ie,Me){return[L.call(K,Ie,Me),D.call(K,Ie,Me)]})}),pe=w.call(K,le,Q);ae=t.permute(ae,pe),le=t.permute(le,pe);var me=M.call(K,le,Q),Ce=ae[0].length,Fe,ye,ke,Se;for(ke=0;ke<Ce;++ke)for(E.call(K,ae[0][ke],Se=me[ke],le[0][ke][1]),ye=1;ye<Fe;++ye)E.call(K,ae[ye][ke],Se+=le[ye-1][ke][1],le[ye][ke][1]);return W}return K.values=function(W){return arguments.length?(m=W,K):m},K.order=function(W){return arguments.length?(w=typeof W=="function"?W:sMe.get(W)||ck,K):w},K.offset=function(W){return arguments.length?(M=typeof W=="function"?W:cMe.get(W)||uk,K):M},K.x=function(W){return arguments.length?(L=W,K):L},K.y=function(W){return arguments.length?(D=W,K):D},K.out=function(W){return arguments.length?(E=W,K):E},K};function oMe(m){return m.x}function iMe(m){return m.y}function lMe(m,w,M){m.y0=w,m.y=M}var sMe=t.map({"inside-out":function(m){var w=m.length,M,E,L=m.map(uMe),D=m.map(dMe),K=t.range(w).sort(function(pe,me){return L[pe]-L[me]}),W=0,Q=0,ae=[],le=[];for(M=0;M<w;++M)E=K[M],W<Q?(W+=D[E],ae.push(E)):(Q+=D[E],le.push(E));return le.reverse().concat(ae)},reverse:function(m){return t.range(m.length).reverse()},default:ck}),cMe=t.map({silhouette:function(m){var w=m.length,M=m[0].length,E=[],L=0,D,K,W,Q=[];for(K=0;K<M;++K){for(D=0,W=0;D<w;D++)W+=m[D][K][1];W>L&&(L=W),E.push(W)}for(K=0;K<M;++K)Q[K]=(L-E[K])/2;return Q},wiggle:function(m){var w=m.length,M=m[0],E=M.length,L,D,K,W,Q,ae,le,pe,me,Ce=[];for(Ce[0]=pe=me=0,D=1;D<E;++D){for(L=0,W=0;L<w;++L)W+=m[L][D][1];for(L=0,Q=0,le=M[D][0]-M[D-1][0];L<w;++L){for(K=0,ae=(m[L][D][1]-m[L][D-1][1])/(2*le);K<L;++K)ae+=(m[K][D][1]-m[K][D-1][1])/le;Q+=ae*m[L][D][1]}Ce[D]=pe-=W?Q/W*le:0,pe<me&&(me=pe)}for(D=0;D<E;++D)Ce[D]-=me;return Ce},expand:function(m){var w=m.length,M=m[0].length,E=1/w,L,D,K,W=[];for(D=0;D<M;++D){for(L=0,K=0;L<w;L++)K+=m[L][D][1];if(K)for(L=0;L<w;L++)m[L][D][1]/=K;else for(L=0;L<w;L++)m[L][D][1]=E}for(D=0;D<M;++D)W[D]=0;return W},zero:uk});function ck(m){return t.range(m.length)}function uk(m){for(var w=-1,M=m[0].length,E=[];++w<M;)E[w]=0;return E}function uMe(m){for(var w=1,M=0,E=m[0][1],L,D=m.length;w<D;++w)(L=m[w][1])>E&&(M=w,E=L);return M}function dMe(m){return m.reduce(fMe,0)}function fMe(m,w){return m+w[1]}t.layout.histogram=function(){var m=!0,w=Number,M=hMe,E=pMe;function L(D,K){for(var W=[],Q=D.map(w,this),ae=M.call(this,Q,K),le=E.call(this,ae,Q,K),pe,K=-1,me=Q.length,Ce=le.length-1,Fe=m?1:1/me,ye;++K<Ce;)pe=W[K]=[],pe.dx=le[K+1]-(pe.x=le[K]),pe.y=0;if(Ce>0)for(K=-1;++K<me;)ye=Q[K],ye>=ae[0]&&ye<=ae[1]&&(pe=W[t.bisect(le,ye,1,Ce)-1],pe.y+=Fe,pe.push(D[K]));return W}return L.value=function(D){return arguments.length?(w=D,L):w},L.range=function(D){return arguments.length?(M=cn(D),L):M},L.bins=function(D){return arguments.length?(E=typeof D=="number"?function(K){return $R(K,D)}:cn(D),L):E},L.frequency=function(D){return arguments.length?(m=!!D,L):m},L};function pMe(m,w){return $R(m,Math.ceil(Math.log(w.length)/Math.LN2+1))}function $R(m,w){for(var M=-1,E=+m[0],L=(m[1]-E)/w,D=[];++M<=w;)D[M]=L*M+E;return D}function hMe(m){return[t.min(m),t.max(m)]}t.layout.pack=function(){var m=t.layout.hierarchy().sort(mMe),w=0,M=[1,1],E;function L(D,K){var W=m.call(this,D,K),Q=W[0],ae=M[0],le=M[1],pe=E==null?Math.sqrt:typeof E=="function"?E:function(){return E};if(Q.x=Q.y=0,_i(Q,function(Ce){Ce.r=+pe(Ce.value)}),_i(Q,nN),w){var me=w*(E?1:Math.max(2*Q.r/ae,2*Q.r/le))/2;_i(Q,function(Ce){Ce.r+=me}),_i(Q,nN),_i(Q,function(Ce){Ce.r-=me})}return rN(Q,ae/2,le/2,E?1:1/Math.max(2*Q.r/ae,2*Q.r/le)),W}return L.size=function(D){return arguments.length?(M=D,L):M},L.radius=function(D){return arguments.length?(E=D==null||typeof D=="function"?D:+D,L):E},L.padding=function(D){return arguments.length?(w=+D,L):w},Kp(L,m)};function mMe(m,w){return m.value-w.value}function dk(m,w){var M=m._pack_next;m._pack_next=w,w._pack_prev=m,w._pack_next=M,M._pack_prev=w}function eN(m,w){m._pack_next=w,w._pack_prev=m}function tN(m,w){var M=w.x-m.x,E=w.y-m.y,L=m.r+w.r;return .999*L*L>M*M+E*E}function nN(m){if(!(w=m.children)||!(me=w.length))return;var w,M=1/0,E=-1/0,L=1/0,D=-1/0,K,W,Q,ae,le,pe,me;function Ce(Me){M=Math.min(Me.x-Me.r,M),E=Math.max(Me.x+Me.r,E),L=Math.min(Me.y-Me.r,L),D=Math.max(Me.y+Me.r,D)}if(w.forEach(gMe),K=w[0],K.x=-K.r,K.y=0,Ce(K),me>1&&(W=w[1],W.x=W.r,W.y=0,Ce(W),me>2))for(Q=w[2],aN(K,W,Q),Ce(Q),dk(K,Q),K._pack_prev=Q,dk(Q,W),W=K._pack_next,ae=3;ae<me;ae++){aN(K,W,Q=w[ae]);var Fe=0,ye=1,ke=1;for(le=W._pack_next;le!==W;le=le._pack_next,ye++)if(tN(le,Q)){Fe=1;break}if(Fe==1)for(pe=K._pack_prev;pe!==le._pack_prev&&!tN(pe,Q);pe=pe._pack_prev,ke++);Fe?(ye<ke||ye==ke&&W.r<K.r?eN(K,W=le):eN(K=pe,W),ae--):(dk(K,Q),W=Q,Ce(Q))}var Se=(M+E)/2,ze=(L+D)/2,Ie=0;for(ae=0;ae<me;ae++)Q=w[ae],Q.x-=Se,Q.y-=ze,Ie=Math.max(Ie,Q.r+Math.sqrt(Q.x*Q.x+Q.y*Q.y));m.r=Ie,w.forEach(yMe)}function gMe(m){m._pack_next=m._pack_prev=m}function yMe(m){delete m._pack_next,delete m._pack_prev}function rN(m,w,M,E){var L=m.children;if(m.x=w+=E*m.x,m.y=M+=E*m.y,m.r*=E,L)for(var D=-1,K=L.length;++D<K;)rN(L[D],w,M,E)}function aN(m,w,M){var E=m.r+M.r,L=w.x-m.x,D=w.y-m.y;if(E&&(L||D)){var K=w.r+M.r,W=L*L+D*D;K*=K,E*=E;var Q=.5+(E-K)/(2*W),ae=Math.sqrt(Math.max(0,2*K*(E+W)-(E-=W)*E-K*K))/(2*W);M.x=m.x+Q*L+ae*D,M.y=m.y+Q*D-ae*L}else M.x=m.x+E,M.y=m.y}t.layout.tree=function(){var m=t.layout.hierarchy().sort(null).value(null),w=oN,M=[1,1],E=null;function L(le,pe){var me=m.call(this,le,pe),Ce=me[0],Fe=D(Ce);if(_i(Fe,K),Fe.parent.m=-Fe.z,Yp(Fe,W),E)Yp(Ce,ae);else{var ye=Ce,ke=Ce,Se=Ce;Yp(Ce,function(Qe){Qe.x<ye.x&&(ye=Qe),Qe.x>ke.x&&(ke=Qe),Qe.depth>Se.depth&&(Se=Qe)});var ze=w(ye,ke)/2-ye.x,Ie=M[0]/(ke.x+w(ke,ye)/2+ze),Me=M[1]/(Se.depth||1);Yp(Ce,function(Qe){Qe.x=(Qe.x+ze)*Ie,Qe.y=Qe.depth*Me})}return me}function D(le){for(var pe={A:null,children:[le]},me=[pe],Ce;(Ce=me.pop())!=null;)for(var Fe=Ce.children,ye,ke=0,Se=Fe.length;ke<Se;++ke)me.push((Fe[ke]=ye={_:Fe[ke],parent:Ce,children:(ye=Fe[ke].children)&&ye.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:ke}).a=ye);return pe.children[0]}function K(le){var pe=le.children,me=le.parent.children,Ce=le.i?me[le.i-1]:null;if(pe.length){bMe(le);var Fe=(pe[0].z+pe[pe.length-1].z)/2;Ce?(le.z=Ce.z+w(le._,Ce._),le.m=le.z-Fe):le.z=Fe}else Ce&&(le.z=Ce.z+w(le._,Ce._));le.parent.A=Q(le,Ce,le.parent.A||me[0])}function W(le){le._.x=le.z+le.parent.m,le.m+=le.parent.m}function Q(le,pe,me){if(pe){for(var Ce=le,Fe=le,ye=pe,ke=Ce.parent.children[0],Se=Ce.m,ze=Fe.m,Ie=ye.m,Me=ke.m,Qe;ye=pk(ye),Ce=fk(Ce),ye&&Ce;)ke=fk(ke),Fe=pk(Fe),Fe.a=le,Qe=ye.z+Ie-Ce.z-Se+w(ye._,Ce._),Qe>0&&(vMe(xMe(ye,le,me),le,Qe),Se+=Qe,ze+=Qe),Ie+=ye.m,Se+=Ce.m,Me+=ke.m,ze+=Fe.m;ye&&!pk(Fe)&&(Fe.t=ye,Fe.m+=Ie-ze),Ce&&!fk(ke)&&(ke.t=Ce,ke.m+=Se-Me,me=le)}return me}function ae(le){le.x*=M[0],le.y=le.depth*M[1]}return L.separation=function(le){return arguments.length?(w=le,L):w},L.size=function(le){return arguments.length?(E=(M=le)==null?ae:null,L):E?null:M},L.nodeSize=function(le){return arguments.length?(E=(M=le)==null?null:ae,L):E?M:null},Kp(L,m)};function oN(m,w){return m.parent==w.parent?1:2}function fk(m){var w=m.children;return w.length?w[0]:m.t}function pk(m){var w=m.children,M;return(M=w.length)?w[M-1]:m.t}function vMe(m,w,M){var E=M/(w.i-m.i);w.c-=E,w.s+=M,m.c+=E,w.z+=M,w.m+=M}function bMe(m){for(var w=0,M=0,E=m.children,L=E.length,D;--L>=0;)D=E[L],D.z+=w,D.m+=w,w+=D.s+(M+=D.c)}function xMe(m,w,M){return m.a.parent===w.parent?m.a:M}t.layout.cluster=function(){var m=t.layout.hierarchy().sort(null).value(null),w=oN,M=[1,1],E=!1;function L(D,K){var W=m.call(this,D,K),Q=W[0],ae,le=0;_i(Q,function(ye){var ke=ye.children;ke&&ke.length?(ye.x=_Me(ke),ye.y=wMe(ke)):(ye.x=ae?le+=w(ye,ae):0,ye.y=0,ae=ye)});var pe=iN(Q),me=lN(Q),Ce=pe.x-w(pe,me)/2,Fe=me.x+w(me,pe)/2;return _i(Q,E?function(ye){ye.x=(ye.x-Q.x)*M[0],ye.y=(Q.y-ye.y)*M[1]}:function(ye){ye.x=(ye.x-Ce)/(Fe-Ce)*M[0],ye.y=(1-(Q.y?ye.y/Q.y:1))*M[1]}),W}return L.separation=function(D){return arguments.length?(w=D,L):w},L.size=function(D){return arguments.length?(E=(M=D)==null,L):E?null:M},L.nodeSize=function(D){return arguments.length?(E=(M=D)!=null,L):E?M:null},Kp(L,m)};function wMe(m){return 1+t.max(m,function(w){return w.y})}function _Me(m){return m.reduce(function(w,M){return w+M.x},0)/m.length}function iN(m){var w=m.children;return w&&w.length?iN(w[0]):m}function lN(m){var w=m.children,M;return w&&(M=w.length)?lN(w[M-1]):m}t.layout.treemap=function(){var m=t.layout.hierarchy(),w=Math.round,M=[1,1],E=null,L=hk,D=!1,K,W="squarify",Q=.5*(1+Math.sqrt(5));function ae(ye,ke){for(var Se=-1,ze=ye.length,Ie,Me;++Se<ze;)Me=(Ie=ye[Se]).value*(ke<0?0:ke),Ie.area=isNaN(Me)||Me<=0?0:Me}function le(ye){var ke=ye.children;if(ke&&ke.length){var Se=L(ye),ze=[],Ie=ke.slice(),Me,Qe=1/0,mt,bt=W==="slice"?Se.dx:W==="dice"?Se.dy:W==="slice-dice"?ye.depth&1?Se.dy:Se.dx:Math.min(Se.dx,Se.dy),yt;for(ae(Ie,Se.dx*Se.dy/ye.value),ze.area=0;(yt=Ie.length)>0;)ze.push(Me=Ie[yt-1]),ze.area+=Me.area,W!=="squarify"||(mt=me(ze,bt))<=Qe?(Ie.pop(),Qe=mt):(ze.area-=ze.pop().area,Ce(ze,bt,Se,!1),bt=Math.min(Se.dx,Se.dy),ze.length=ze.area=0,Qe=1/0);ze.length&&(Ce(ze,bt,Se,!0),ze.length=ze.area=0),ke.forEach(le)}}function pe(ye){var ke=ye.children;if(ke&&ke.length){var Se=L(ye),ze=ke.slice(),Ie,Me=[];for(ae(ze,Se.dx*Se.dy/ye.value),Me.area=0;Ie=ze.pop();)Me.push(Ie),Me.area+=Ie.area,Ie.z!=null&&(Ce(Me,Ie.z?Se.dx:Se.dy,Se,!ze.length),Me.length=Me.area=0);ke.forEach(pe)}}function me(ye,ke){for(var Se=ye.area,ze,Ie=0,Me=1/0,Qe=-1,mt=ye.length;++Qe<mt;)(ze=ye[Qe].area)&&(ze<Me&&(Me=ze),ze>Ie&&(Ie=ze));return Se*=Se,ke*=ke,Se?Math.max(ke*Ie*Q/Se,Se/(ke*Me*Q)):1/0}function Ce(ye,ke,Se,ze){var Ie=-1,Me=ye.length,Qe=Se.x,mt=Se.y,bt=ke?w(ye.area/ke):0,yt;if(ke==Se.dx){for((ze||bt>Se.dy)&&(bt=Se.dy);++Ie<Me;)yt=ye[Ie],yt.x=Qe,yt.y=mt,yt.dy=bt,Qe+=yt.dx=Math.min(Se.x+Se.dx-Qe,bt?w(yt.area/bt):0);yt.z=!0,yt.dx+=Se.x+Se.dx-Qe,Se.y+=bt,Se.dy-=bt}else{for((ze||bt>Se.dx)&&(bt=Se.dx);++Ie<Me;)yt=ye[Ie],yt.x=Qe,yt.y=mt,yt.dx=bt,mt+=yt.dy=Math.min(Se.y+Se.dy-mt,bt?w(yt.area/bt):0);yt.z=!1,yt.dy+=Se.y+Se.dy-mt,Se.x+=bt,Se.dx-=bt}}function Fe(ye){var ke=K||m(ye),Se=ke[0];return Se.x=Se.y=0,Se.value?(Se.dx=M[0],Se.dy=M[1]):Se.dx=Se.dy=0,K&&m.revalue(Se),ae([Se],Se.dx*Se.dy/Se.value),(K?pe:le)(Se),D&&(K=ke),ke}return Fe.size=function(ye){return arguments.length?(M=ye,Fe):M},Fe.padding=function(ye){if(!arguments.length)return E;function ke(Ie){var Me=ye.call(Fe,Ie,Ie.depth);return Me==null?hk(Ie):sN(Ie,typeof Me=="number"?[Me,Me,Me,Me]:Me)}function Se(Ie){return sN(Ie,ye)}var ze;return L=(E=ye)==null?hk:(ze=typeof ye)=="function"?ke:(ze==="number"&&(ye=[ye,ye,ye,ye]),Se),Fe},Fe.round=function(ye){return arguments.length?(w=ye?Math.round:Number,Fe):w!=Number},Fe.sticky=function(ye){return arguments.length?(D=ye,K=null,Fe):D},Fe.ratio=function(ye){return arguments.length?(Q=ye,Fe):Q},Fe.mode=function(ye){return arguments.length?(W=ye+"",Fe):W},Kp(Fe,m)};function hk(m){return{x:m.x,y:m.y,dx:m.dx,dy:m.dy}}function sN(m,w){var M=m.x+w[3],E=m.y+w[0],L=m.dx-w[1]-w[3],D=m.dy-w[0]-w[2];return L<0&&(M+=L/2,L=0),D<0&&(E+=D/2,D=0),{x:M,y:E,dx:L,dy:D}}t.random={normal:function(m,w){var M=arguments.length;return M<2&&(w=1),M<1&&(m=0),function(){var E,L,D;do E=Math.random()*2-1,L=Math.random()*2-1,D=E*E+L*L;while(!D||D>1);return m+w*E*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var m=t.random.normal.apply(t,arguments);return function(){return Math.exp(m())}},bates:function(m){var w=t.random.irwinHall(m);return function(){return w()/m}},irwinHall:function(m){return function(){for(var w=0,M=0;M<m;M++)w+=Math.random();return w}}},t.scale={};function ky(m){var w=m[0],M=m[m.length-1];return w<M?[w,M]:[M,w]}function Ty(m){return m.rangeExtent?m.rangeExtent():ky(m.range())}function kMe(m,w,M,E){var L=M(m[0],m[1]),D=E(w[0],w[1]);return function(K){return D(L(K))}}function mk(m,w){var M=0,E=m.length-1,L=m[M],D=m[E],K;return D<L&&(K=M,M=E,E=K,K=L,L=D,D=K),m[M]=w.floor(L),m[E]=w.ceil(D),m}function cN(m){return m?{floor:function(w){return Math.floor(w/m)*m},ceil:function(w){return Math.ceil(w/m)*m}}:TMe}var TMe={floor:G,ceil:G};function SMe(m,w,M,E){var L=[],D=[],K=0,W=Math.min(m.length,w.length)-1;for(m[W]<m[0]&&(m=m.slice().reverse(),w=w.slice().reverse());++K<=W;)L.push(M(m[K-1],m[K])),D.push(E(w[K-1],w[K]));return function(Q){var ae=t.bisect(m,Q,1,W)-1;return D[ae](L[ae](Q))}}t.scale.linear=function(){return uN([0,1],[0,1],pc,!1)};function uN(m,w,M,E){var L,D;function K(){var Q=Math.min(m.length,w.length)>2?SMe:kMe,ae=E?WAe:qAe;return L=Q(m,w,ae,M),D=Q(w,m,ae,pc),W}function W(Q){return L(Q)}return W.invert=function(Q){return D(Q)},W.domain=function(Q){return arguments.length?(m=Q.map(Number),K()):m},W.range=function(Q){return arguments.length?(w=Q,K()):w},W.rangeRound=function(Q){return W.range(Q).interpolate(WR)},W.clamp=function(Q){return arguments.length?(E=Q,K()):E},W.interpolate=function(Q){return arguments.length?(M=Q,K()):M},W.ticks=function(Q){return yk(m,Q)},W.tickFormat=function(Q,ae){return d3_scale_linearTickFormat(m,Q,ae)},W.nice=function(Q){return fN(m,Q),K()},W.copy=function(){return uN(m,w,M,E)},K()}function dN(m,w){return t.rebind(m,w,"range","rangeRound","interpolate","clamp")}function fN(m,w){return mk(m,cN(gk(m,w)[2])),mk(m,cN(gk(m,w)[2])),m}function gk(m,w){w==null&&(w=10);var M=ky(m),E=M[1]-M[0],L=Math.pow(10,Math.floor(Math.log(E/w)/Math.LN10)),D=w/E*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),M[0]=Math.ceil(M[0]/L)*L,M[1]=Math.floor(M[1]/L)*L+L*.5,M[2]=L,M}function yk(m,w){return t.range.apply(t,gk(m,w))}t.scale.log=function(){return pN(t.scale.linear().domain([0,1]),10,!0,[1,10])};function pN(m,w,M,E){function L(W){return(M?Math.log(W<0?0:W):-Math.log(W>0?0:-W))/Math.log(w)}function D(W){return M?Math.pow(w,W):-Math.pow(w,-W)}function K(W){return m(L(W))}return K.invert=function(W){return D(m.invert(W))},K.domain=function(W){return arguments.length?(M=W[0]>=0,m.domain((E=W.map(Number)).map(L)),K):E},K.base=function(W){return arguments.length?(w=+W,m.domain(E.map(L)),K):w},K.nice=function(){var W=mk(E.map(L),M?Math:AMe);return m.domain(W),E=W.map(D),K},K.ticks=function(){var W=ky(E),Q=[],ae=W[0],le=W[1],pe=Math.floor(L(ae)),me=Math.ceil(L(le)),Ce=w%1?2:w;if(isFinite(me-pe)){if(M){for(;pe<me;pe++)for(var Fe=1;Fe<Ce;Fe++)Q.push(D(pe)*Fe);Q.push(D(pe))}else for(Q.push(D(pe));pe++<me;)for(var Fe=Ce-1;Fe>0;Fe--)Q.push(D(pe)*Fe);for(pe=0;Q[pe]<ae;pe++);for(me=Q.length;Q[me-1]>le;me--);Q=Q.slice(pe,me)}return Q},K.copy=function(){return pN(m.copy(),w,M,E)},dN(K,m)}var AMe={floor:function(m){return-Math.ceil(-m)},ceil:function(m){return-Math.floor(-m)}};t.scale.pow=function(){return hN(t.scale.linear(),1,[0,1])};function hN(m,w,M){var E=Sy(w),L=Sy(1/w);function D(K){return m(E(K))}return D.invert=function(K){return L(m.invert(K))},D.domain=function(K){return arguments.length?(m.domain((M=K.map(Number)).map(E)),D):M},D.ticks=function(K){return yk(M,K)},D.tickFormat=function(K,W){return d3_scale_linearTickFormat(M,K,W)},D.nice=function(K){return D.domain(fN(M,K))},D.exponent=function(K){return arguments.length?(E=Sy(w=K),L=Sy(1/w),m.domain(M.map(E)),D):w},D.copy=function(){return hN(m.copy(),w,M)},dN(D,m)}function Sy(m){return function(w){return w<0?-Math.pow(-w,m):Math.pow(w,m)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return mN([],{t:"range",a:[[]]})};function mN(m,w){var M,E,L;function D(W){return E[((M.get(W)||(w.t==="range"?M.set(W,m.push(W)):NaN))-1)%E.length]}function K(W,Q){return t.range(m.length).map(function(ae){return W+Q*ae})}return D.domain=function(W){if(!arguments.length)return m;m=[],M=new S;for(var Q=-1,ae=W.length,le;++Q<ae;)M.has(le=W[Q])||M.set(le,m.push(le));return D[w.t].apply(D,w.a)},D.range=function(W){return arguments.length?(E=W,L=0,w={t:"range",a:arguments},D):E},D.rangePoints=function(W,Q){arguments.length<2&&(Q=0);var ae=W[0],le=W[1],pe=m.length<2?(ae=(ae+le)/2,0):(le-ae)/(m.length-1+Q);return E=K(ae+pe*Q/2,pe),L=0,w={t:"rangePoints",a:arguments},D},D.rangeRoundPoints=function(W,Q){arguments.length<2&&(Q=0);var ae=W[0],le=W[1],pe=m.length<2?(ae=le=Math.round((ae+le)/2),0):(le-ae)/(m.length-1+Q)|0;return E=K(ae+Math.round(pe*Q/2+(le-ae-(m.length-1+Q)*pe)/2),pe),L=0,w={t:"rangeRoundPoints",a:arguments},D},D.rangeBands=function(W,Q,ae){arguments.length<2&&(Q=0),arguments.length<3&&(ae=Q);var le=W[1]<W[0],pe=W[le-0],me=W[1-le],Ce=(me-pe)/(m.length-Q+2*ae);return E=K(pe+Ce*ae,Ce),le&&E.reverse(),L=Ce*(1-Q),w={t:"rangeBands",a:arguments},D},D.rangeRoundBands=function(W,Q,ae){arguments.length<2&&(Q=0),arguments.length<3&&(ae=Q);var le=W[1]<W[0],pe=W[le-0],me=W[1-le],Ce=Math.floor((me-pe)/(m.length-Q+2*ae));return E=K(pe+Math.round((me-pe-(m.length-Q)*Ce)/2),Ce),le&&E.reverse(),L=Math.round(Ce*(1-Q)),w={t:"rangeRoundBands",a:arguments},D},D.rangeBand=function(){return L},D.rangeExtent=function(){return ky(w.a[0])},D.copy=function(){return mN(m,w)},D.domain(m)}t.scale.category10=function(){return t.scale.ordinal().range(MMe)},t.scale.category20=function(){return t.scale.ordinal().range(CMe)},t.scale.category20b=function(){return t.scale.ordinal().range(OMe)},t.scale.category20c=function(){return t.scale.ordinal().range(EMe)};var MMe=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Zr),CMe=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Zr),OMe=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Zr),EMe=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Zr);t.scale.quantile=function(){return gN([],[])};function gN(m,w){var M;function E(){var D=0,K=w.length;for(M=[];++D<K;)M[D-1]=t.quantile(m,D/K);return L}function L(D){if(!isNaN(D=+D))return w[t.bisect(M,D)]}return L.domain=function(D){return arguments.length?(m=D.map(g).filter(h).sort(p),E()):m},L.range=function(D){return arguments.length?(w=D,E()):w},L.quantiles=function(){return M},L.invertExtent=function(D){return D=w.indexOf(D),D<0?[NaN,NaN]:[D>0?M[D-1]:m[0],D<M.length?M[D]:m[m.length-1]]},L.copy=function(){return gN(m,w)},E()}t.scale.quantize=function(){return yN(0,1,[0,1])};function yN(m,w,M){var E,L;function D(W){return M[Math.max(0,Math.min(L,Math.floor(E*(W-m))))]}function K(){return E=M.length/(w-m),L=M.length-1,D}return D.domain=function(W){return arguments.length?(m=+W[0],w=+W[W.length-1],K()):[m,w]},D.range=function(W){return arguments.length?(M=W,K()):M},D.invertExtent=function(W){return W=M.indexOf(W),W=W<0?NaN:W/E+m,[W,W+1/E]},D.copy=function(){return yN(m,w,M)},K()}t.scale.threshold=function(){return vN([.5],[0,1])};function vN(m,w){function M(E){if(E<=E)return w[t.bisect(m,E)]}return M.domain=function(E){return arguments.length?(m=E,M):m},M.range=function(E){return arguments.length?(w=E,M):w},M.invertExtent=function(E){return E=w.indexOf(E),[m[E-1],m[E]]},M.copy=function(){return vN(m,w)},M}t.scale.identity=function(){return bN([0,1])};function bN(m){function w(M){return+M}return w.invert=w,w.domain=w.range=function(M){return arguments.length?(m=M.map(w),w):m},w.ticks=function(M){return yk(m,M)},w.tickFormat=function(M,E){return d3_scale_linearTickFormat(m,M,E)},w.copy=function(){return bN(m)},w}t.svg={};function LMe(){return 0}t.svg.arc=function(){var m=zMe,w=FMe,M=LMe,E=Ay,L=xN,D=wN,K=IMe;function W(){var ae=Math.max(0,+m.apply(this,arguments)),le=Math.max(0,+w.apply(this,arguments)),pe=L.apply(this,arguments)-ue,me=D.apply(this,arguments)-ue,Ce=Math.abs(me-pe),Fe=pe>me?0:1;if(le<ae&&(ye=le,le=ae,ae=ye),Ce>=X)return Q(le,Fe)+(ae?Q(ae,1-Fe):"")+"Z";var ye,ke,Se,ze,Ie=0,Me=0,Qe,mt,bt,yt,Mt,Ct,Ht,zt,Vt=[];if((ze=(+K.apply(this,arguments)||0)/2)&&(Se=E===Ay?Math.sqrt(ae*ae+le*le):+E.apply(this,arguments),Fe||(Me*=-1),le&&(Me=Te(Se/le*Math.sin(ze))),ae&&(Ie=Te(Se/ae*Math.sin(ze)))),le){Qe=le*Math.cos(pe+Me),mt=le*Math.sin(pe+Me),bt=le*Math.cos(me-Me),yt=le*Math.sin(me-Me);var un=Math.abs(me-pe-2*Me)<=Ke?0:1;if(Me&&My(Qe,mt,bt,yt)===Fe^un){var Qn=(pe+me)/2;Qe=le*Math.cos(Qn),mt=le*Math.sin(Qn),bt=yt=null}}else Qe=mt=0;if(ae){Mt=ae*Math.cos(me-Ie),Ct=ae*Math.sin(me-Ie),Ht=ae*Math.cos(pe+Ie),zt=ae*Math.sin(pe+Ie);var vn=Math.abs(pe-me+2*Ie)<=Ke?0:1;if(Ie&&My(Mt,Ct,Ht,zt)===1-Fe^vn){var ht=(pe+me)/2;Mt=ae*Math.cos(ht),Ct=ae*Math.sin(ht),Ht=zt=null}}else Mt=Ct=0;if(Ce>tt&&(ye=Math.min(Math.abs(le-ae)/2,+M.apply(this,arguments)))>.001){ke=ae<le^Fe?0:1;var Ut=ye,Zt=ye;if(Ce<Ke){var dn=Ht==null?[Mt,Ct]:bt==null?[Qe,mt]:tk([Qe,mt],[Ht,zt],[bt,yt],[Mt,Ct]),Bn=Qe-dn[0],ur=mt-dn[1],Or=bt-dn[0],Kr=yt-dn[1],ea=1/Math.sin(Math.acos((Bn*Or+ur*Kr)/(Math.sqrt(Bn*Bn+ur*ur)*Math.sqrt(Or*Or+Kr*Kr)))/2),Yr=Math.sqrt(dn[0]*dn[0]+dn[1]*dn[1]);Zt=Math.min(ye,(ae-Yr)/(ea-1)),Ut=Math.min(ye,(le-Yr)/(ea+1))}if(bt!=null){var wa=Cy(Ht==null?[Mt,Ct]:[Ht,zt],[Qe,mt],le,Ut,Fe),Rr=Cy([bt,yt],[Mt,Ct],le,Ut,Fe);ye===Ut?Vt.push("M",wa[0],"A",Ut,",",Ut," 0 0,",ke," ",wa[1],"A",le,",",le," 0 ",1-Fe^My(wa[1][0],wa[1][1],Rr[1][0],Rr[1][1]),",",Fe," ",Rr[1],"A",Ut,",",Ut," 0 0,",ke," ",Rr[0]):Vt.push("M",wa[0],"A",Ut,",",Ut," 0 1,",ke," ",Rr[0])}else Vt.push("M",Qe,",",mt);if(Ht!=null){var _a=Cy([Qe,mt],[Ht,zt],ae,-Zt,Fe),mc=Cy([Mt,Ct],bt==null?[Qe,mt]:[bt,yt],ae,-Zt,Fe);ye===Zt?Vt.push("L",mc[0],"A",Zt,",",Zt," 0 0,",ke," ",mc[1],"A",ae,",",ae," 0 ",Fe^My(mc[1][0],mc[1][1],_a[1][0],_a[1][1]),",",1-Fe," ",_a[1],"A",Zt,",",Zt," 0 0,",ke," ",_a[0]):Vt.push("L",mc[0],"A",Zt,",",Zt," 0 0,",ke," ",_a[0])}else Vt.push("L",Mt,",",Ct)}else Vt.push("M",Qe,",",mt),bt!=null&&Vt.push("A",le,",",le," 0 ",un,",",Fe," ",bt,",",yt),Vt.push("L",Mt,",",Ct),Ht!=null&&Vt.push("A",ae,",",ae," 0 ",vn,",",1-Fe," ",Ht,",",zt);return Vt.push("Z"),Vt.join("")}function Q(ae,le){return"M0,"+ae+"A"+ae+","+ae+" 0 1,"+le+" 0,"+-ae+"A"+ae+","+ae+" 0 1,"+le+" 0,"+ae}return W.innerRadius=function(ae){return arguments.length?(m=cn(ae),W):m},W.outerRadius=function(ae){return arguments.length?(w=cn(ae),W):w},W.cornerRadius=function(ae){return arguments.length?(M=cn(ae),W):M},W.padRadius=function(ae){return arguments.length?(E=ae==Ay?Ay:cn(ae),W):E},W.startAngle=function(ae){return arguments.length?(L=cn(ae),W):L},W.endAngle=function(ae){return arguments.length?(D=cn(ae),W):D},W.padAngle=function(ae){return arguments.length?(K=cn(ae),W):K},W.centroid=function(){var ae=(+m.apply(this,arguments)+ +w.apply(this,arguments))/2,le=(+L.apply(this,arguments)+ +D.apply(this,arguments))/2-ue;return[Math.cos(le)*ae,Math.sin(le)*ae]},W};var Ay="auto";function zMe(m){return m.innerRadius}function FMe(m){return m.outerRadius}function xN(m){return m.startAngle}function wN(m){return m.endAngle}function IMe(m){return m&&m.padAngle}function My(m,w,M,E){return(m-M)*w-(w-E)*m>0?0:1}function Cy(m,w,M,E,L){var D=m[0]-w[0],K=m[1]-w[1],W=(L?E:-E)/Math.sqrt(D*D+K*K),Q=W*K,ae=-W*D,le=m[0]+Q,pe=m[1]+ae,me=w[0]+Q,Ce=w[1]+ae,Fe=(le+me)/2,ye=(pe+Ce)/2,ke=me-le,Se=Ce-pe,ze=ke*ke+Se*Se,Ie=M-E,Me=le*Ce-me*pe,Qe=(Se<0?-1:1)*Math.sqrt(Math.max(0,Ie*Ie*ze-Me*Me)),mt=(Me*Se-ke*Qe)/ze,bt=(-Me*ke-Se*Qe)/ze,yt=(Me*Se+ke*Qe)/ze,Mt=(-Me*ke+Se*Qe)/ze,Ct=mt-Fe,Ht=bt-ye,zt=yt-Fe,Vt=Mt-ye;return Ct*Ct+Ht*Ht>zt*zt+Vt*Vt&&(mt=yt,bt=Mt),[[mt-Q,bt-ae],[mt*M/Ie,bt*M/Ie]]}function _N(){return!0}function kN(m){var w=md,M=Hp,E=_N,L=Ho,D=L.key,K=.7;function W(Q){var ae=[],le=[],pe=-1,me=Q.length,Ce,Fe=cn(w),ye=cn(M);function ke(){ae.push("M",L(m(le),K))}for(;++pe<me;)E.call(this,Ce=Q[pe],pe)?le.push([+Fe.call(this,Ce,pe),+ye.call(this,Ce,pe)]):le.length&&(ke(),le=[]);return le.length&&ke(),ae.length?ae.join(""):null}return W.x=function(Q){return arguments.length?(w=Q,W):w},W.y=function(Q){return arguments.length?(M=Q,W):M},W.defined=function(Q){return arguments.length?(E=Q,W):E},W.interpolate=function(Q){return arguments.length?(typeof Q=="function"?D=L=Q:D=(L=vk.get(Q)||Ho).key,W):D},W.tension=function(Q){return arguments.length?(K=Q,W):K},W}t.svg.line=function(){return kN(G)};var vk=t.map({linear:Ho,"linear-closed":TN,step:DMe,"step-before":bk,"step-after":xk,basis:SN,"basis-open":BMe,"basis-closed":jMe,bundle:VMe,cardinal:NMe,"cardinal-open":PMe,"cardinal-closed":RMe,monotone:qMe});vk.forEach(function(m,w){w.key=m,w.closed=/-closed$/.test(m)});function Ho(m){return m.length>1?m.join("L"):m+"Z"}function TN(m){return m.join("L")+"Z"}function DMe(m){for(var w=0,M=m.length,E=m[0],L=[E[0],",",E[1]];++w<M;)L.push("H",(E[0]+(E=m[w])[0])/2,"V",E[1]);return M>1&&L.push("H",E[0]),L.join("")}function bk(m){for(var w=0,M=m.length,E=m[0],L=[E[0],",",E[1]];++w<M;)L.push("V",(E=m[w])[1],"H",E[0]);return L.join("")}function xk(m){for(var w=0,M=m.length,E=m[0],L=[E[0],",",E[1]];++w<M;)L.push("H",(E=m[w])[0],"V",E[1]);return L.join("")}function PMe(m,w){return m.length<4?Ho(m):m[1]+Oy(m.slice(1,-1),wk(m,w))}function RMe(m,w){return m.length<3?TN(m):m[0]+Oy((m.push(m[0]),m),wk([m[m.length-2]].concat(m,[m[1]]),w))}function NMe(m,w){return m.length<3?Ho(m):m[0]+Oy(m,wk(m,w))}function Oy(m,w){if(w.length<1||m.length!=w.length&&m.length!=w.length+2)return Ho(m);var M=m.length!=w.length,E="",L=m[0],D=m[1],K=w[0],W=K,Q=1;if(M&&(E+="Q"+(D[0]-K[0]*2/3)+","+(D[1]-K[1]*2/3)+","+D[0]+","+D[1],L=m[1],Q=2),w.length>1){W=w[1],D=m[Q],Q++,E+="C"+(L[0]+K[0])+","+(L[1]+K[1])+","+(D[0]-W[0])+","+(D[1]-W[1])+","+D[0]+","+D[1];for(var ae=2;ae<w.length;ae++,Q++)D=m[Q],W=w[ae],E+="S"+(D[0]-W[0])+","+(D[1]-W[1])+","+D[0]+","+D[1]}if(M){var le=m[Q];E+="Q"+(D[0]+W[0]*2/3)+","+(D[1]+W[1]*2/3)+","+le[0]+","+le[1]}return E}function wk(m,w){for(var M=[],E=(1-w)/2,L,D=m[0],K=m[1],W=1,Q=m.length;++W<Q;)L=D,D=K,K=m[W],M.push([E*(K[0]-L[0]),E*(K[1]-L[1])]);return M}function SN(m){if(m.length<3)return Ho(m);var w=1,M=m.length,E=m[0],L=E[0],D=E[1],K=[L,L,L,(E=m[1])[0]],W=[D,D,D,E[1]],Q=[L,",",D,"L",fo(is,K),",",fo(is,W)];for(m.push(m[M-1]);++w<=M;)E=m[w],K.shift(),K.push(E[0]),W.shift(),W.push(E[1]),_k(Q,K,W);return m.pop(),Q.push("L",E),Q.join("")}function BMe(m){if(m.length<4)return Ho(m);for(var w=[],M=-1,E=m.length,L,D=[0],K=[0];++M<3;)L=m[M],D.push(L[0]),K.push(L[1]);for(w.push(fo(is,D)+","+fo(is,K)),--M;++M<E;)L=m[M],D.shift(),D.push(L[0]),K.shift(),K.push(L[1]),_k(w,D,K);return w.join("")}function jMe(m){for(var w,M=-1,E=m.length,L=E+4,D,K=[],W=[];++M<4;)D=m[M%E],K.push(D[0]),W.push(D[1]);for(w=[fo(is,K),",",fo(is,W)],--M;++M<L;)D=m[M%E],K.shift(),K.push(D[0]),W.shift(),W.push(D[1]),_k(w,K,W);return w.join("")}function VMe(m,w){var M=m.length-1;if(M)for(var E=m[0][0],L=m[0][1],D=m[M][0]-E,K=m[M][1]-L,W=-1,Q,ae;++W<=M;)Q=m[W],ae=W/M,Q[0]=w*Q[0]+(1-w)*(E+ae*D),Q[1]=w*Q[1]+(1-w)*(L+ae*K);return SN(m)}function fo(m,w){return m[0]*w[0]+m[1]*w[1]+m[2]*w[2]+m[3]*w[3]}var AN=[0,2/3,1/3,0],MN=[0,1/3,2/3,0],is=[0,1/6,2/3,1/6];function _k(m,w,M){m.push("C",fo(AN,w),",",fo(AN,M),",",fo(MN,w),",",fo(MN,M),",",fo(is,w),",",fo(is,M))}function kk(m,w){return(w[1]-m[1])/(w[0]-m[0])}function HMe(m){for(var w=0,M=m.length-1,E=[],L=m[0],D=m[1],K=E[0]=kk(L,D);++w<M;)E[w]=(K+(K=kk(L=D,D=m[w+1])))/2;return E[w]=K,E}function UMe(m){for(var w=[],M,E,L,D,K=HMe(m),W=-1,Q=m.length-1;++W<Q;)M=kk(m[W],m[W+1]),x(M)<tt?K[W]=K[W+1]=0:(E=K[W]/M,L=K[W+1]/M,D=E*E+L*L,D>9&&(D=M*3/Math.sqrt(D),K[W]=D*E,K[W+1]=D*L));for(W=-1;++W<=Q;)D=(m[Math.min(Q,W+1)][0]-m[Math.max(0,W-1)][0])/(6*(1+K[W]*K[W])),w.push([D||0,K[W]*D||0]);return w}function qMe(m){return m.length<3?Ho(m):m[0]+Oy(m,UMe(m))}t.svg.line.radial=function(){var m=kN(CN);return m.radius=m.x,delete m.x,m.angle=m.y,delete m.y,m};function CN(m){for(var w,M=-1,E=m.length,L,D;++M<E;)w=m[M],L=w[0],D=w[1]-ue,w[0]=L*Math.cos(D),w[1]=L*Math.sin(D);return m}function ON(m){var w=md,M=md,E=0,L=Hp,D=_N,K=Ho,W=K.key,Q=K,ae="L",le=.7;function pe(me){var Ce=[],Fe=[],ye=[],ke=-1,Se=me.length,ze,Ie=cn(w),Me=cn(E),Qe=w===M?function(){return bt}:cn(M),mt=E===L?function(){return yt}:cn(L),bt,yt;function Mt(){Ce.push("M",K(m(ye),le),ae,Q(m(Fe.reverse()),le),"Z")}for(;++ke<Se;)D.call(this,ze=me[ke],ke)?(Fe.push([bt=+Ie.call(this,ze,ke),yt=+Me.call(this,ze,ke)]),ye.push([+Qe.call(this,ze,ke),+mt.call(this,ze,ke)])):Fe.length&&(Mt(),Fe=[],ye=[]);return Fe.length&&Mt(),Ce.length?Ce.join(""):null}return pe.x=function(me){return arguments.length?(w=M=me,pe):M},pe.x0=function(me){return arguments.length?(w=me,pe):w},pe.x1=function(me){return arguments.length?(M=me,pe):M},pe.y=function(me){return arguments.length?(E=L=me,pe):L},pe.y0=function(me){return arguments.length?(E=me,pe):E},pe.y1=function(me){return arguments.length?(L=me,pe):L},pe.defined=function(me){return arguments.length?(D=me,pe):D},pe.interpolate=function(me){return arguments.length?(typeof me=="function"?W=K=me:W=(K=vk.get(me)||Ho).key,Q=K.reverse||K,ae=K.closed?"M":"L",pe):W},pe.tension=function(me){return arguments.length?(le=me,pe):le},pe}bk.reverse=xk,xk.reverse=bk,t.svg.area=function(){return ON(G)},t.svg.area.radial=function(){var m=ON(CN);return m.radius=m.x,delete m.x,m.innerRadius=m.x0,delete m.x0,m.outerRadius=m.x1,delete m.x1,m.angle=m.y,delete m.y,m.startAngle=m.y0,delete m.y0,m.endAngle=m.y1,delete m.y1,m};function EN(m){return m.source}function LN(m){return m.target}t.svg.chord=function(){var m=EN,w=LN,M=WMe,E=xN,L=wN;function D(le,pe){var me=K(this,m,le,pe),Ce=K(this,w,le,pe);return"M"+me.p0+Q(me.r,me.p1,me.a1-me.a0)+(W(me,Ce)?ae(me.r,me.p1,me.r,me.p0):ae(me.r,me.p1,Ce.r,Ce.p0)+Q(Ce.r,Ce.p1,Ce.a1-Ce.a0)+ae(Ce.r,Ce.p1,me.r,me.p0))+"Z"}function K(le,pe,me,Ce){var Fe=pe.call(le,me,Ce),ye=M.call(le,Fe,Ce),ke=E.call(le,Fe,Ce)-ue,Se=L.call(le,Fe,Ce)-ue;return{r:ye,a0:ke,a1:Se,p0:[ye*Math.cos(ke),ye*Math.sin(ke)],p1:[ye*Math.cos(Se),ye*Math.sin(Se)]}}function W(le,pe){return le.a0==pe.a0&&le.a1==pe.a1}function Q(le,pe,me){return"A"+le+","+le+" 0 "+ +(me>Ke)+",1 "+pe}function ae(le,pe,me,Ce){return"Q 0,0 "+Ce}return D.radius=function(le){return arguments.length?(M=cn(le),D):M},D.source=function(le){return arguments.length?(m=cn(le),D):m},D.target=function(le){return arguments.length?(w=cn(le),D):w},D.startAngle=function(le){return arguments.length?(E=cn(le),D):E},D.endAngle=function(le){return arguments.length?(L=cn(le),D):L},D};function WMe(m){return m.radius}t.svg.diagonal=function(){var m=EN,w=LN,M=zN;function E(L,D){var K=m.call(this,L,D),W=w.call(this,L,D),Q=(K.y+W.y)/2,ae=[K,{x:K.x,y:Q},{x:W.x,y:Q},W];return ae=ae.map(M),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return E.source=function(L){return arguments.length?(m=cn(L),E):m},E.target=function(L){return arguments.length?(w=cn(L),E):w},E.projection=function(L){return arguments.length?(M=L,E):M},E};function zN(m){return[m.x,m.y]}t.svg.diagonal.radial=function(){var m=t.svg.diagonal(),w=zN,M=m.projection;return m.projection=function(E){return arguments.length?M(GMe(w=E)):w},m};function GMe(m){return function(){var w=m.apply(this,arguments),M=w[0],E=w[1]-ue;return[M*Math.cos(E),M*Math.sin(E)]}}t.svg.symbol=function(){var m=KMe,w=ZMe;function M(E,L){return(IN.get(m.call(this,E,L))||FN)(w.call(this,E,L))}return M.type=function(E){return arguments.length?(m=cn(E),M):m},M.size=function(E){return arguments.length?(w=cn(E),M):w},M};function ZMe(){return 64}function KMe(){return"circle"}function FN(m){var w=Math.sqrt(m/Ke);return"M0,"+w+"A"+w+","+w+" 0 1,1 0,"+-w+"A"+w+","+w+" 0 1,1 0,"+w+"Z"}var IN=t.map({circle:FN,cross:function(m){var w=Math.sqrt(m/5)/2;return"M"+-3*w+","+-w+"H"+-w+"V"+-3*w+"H"+w+"V"+-w+"H"+3*w+"V"+w+"H"+w+"V"+3*w+"H"+-w+"V"+w+"H"+-3*w+"Z"},diamond:function(m){var w=Math.sqrt(m/(2*DN)),M=w*DN;return"M0,"+-w+"L"+M+",0 0,"+w+" "+-M+",0Z"},square:function(m){var w=Math.sqrt(m)/2;return"M"+-w+","+-w+"L"+w+","+-w+" "+w+","+w+" "+-w+","+w+"Z"},"triangle-down":function(m){var w=Math.sqrt(m/Ey),M=w*Ey/2;return"M0,"+M+"L"+w+","+-M+" "+-w+","+-M+"Z"},"triangle-up":function(m){var w=Math.sqrt(m/Ey),M=w*Ey/2;return"M0,"+-M+"L"+w+","+M+" "+-w+","+M+"Z"}});t.svg.symbolTypes=IN.keys();var Ey=Math.sqrt(3),DN=Math.tan(30*de);oe.transition=function(m){for(var w=hc||++RN,M=Sk(m),E=[],L,D,K=zy||{time:Date.now(),ease:MAe,delay:0,duration:250},W=-1,Q=this.length;++W<Q;){E.push(L=[]);for(var ae=this[W],le=-1,pe=ae.length;++le<pe;)(D=ae[le])&&Fy(D,le,M,w,K),L.push(D)}return Jp(E,M,w)},oe.interrupt=function(m){return this.each(m==null?Ly:PN(Sk(m)))};var Ly=PN(Sk());function PN(m){return function(){var w,M,E;(w=this[m])&&(E=w[M=w.active])&&(E.timer.c=null,E.timer.t=NaN,--w.count?delete w[M]:delete this[m],w.active+=.5,E.event&&E.event.interrupt.call(this,this.__data__,E.index))}}function Jp(m,w,M){return se(m,cr),m.namespace=w,m.id=M,m}var cr=[],RN=0,hc,zy;cr.call=oe.call,cr.empty=oe.empty,cr.node=oe.node,cr.size=oe.size,t.transition=function(m,w){return m&&m.transition?hc?m.transition(w):m:t.selection().transition(m)},t.transition.prototype=cr,cr.select=function(m){var w=this.id,M=this.namespace,E=[],L,D,K;m=he(m);for(var W=-1,Q=this.length;++W<Q;){E.push(L=[]);for(var ae=this[W],le=-1,pe=ae.length;++le<pe;)(K=ae[le])&&(D=m.call(K,K.__data__,le,W))?("__data__"in K&&(D.__data__=K.__data__),Fy(D,le,M,w,K[M][w]),L.push(D)):L.push(null)}return Jp(E,M,w)},cr.selectAll=function(m){var w=this.id,M=this.namespace,E=[],L,D,K,W,Q;m=ve(m);for(var ae=-1,le=this.length;++ae<le;)for(var pe=this[ae],me=-1,Ce=pe.length;++me<Ce;)if(K=pe[me]){Q=K[M][w],D=m.call(K,K.__data__,me,ae),E.push(L=[]);for(var Fe=-1,ye=D.length;++Fe<ye;)(W=D[Fe])&&Fy(W,Fe,M,w,Q),L.push(W)}return Jp(E,M,w)},cr.filter=function(m){var w=[],M,E,L;typeof m!="function"&&(m=it(m));for(var D=0,K=this.length;D<K;D++){w.push(M=[]);for(var E=this[D],W=0,Q=E.length;W<Q;W++)(L=E[W])&&m.call(L,L.__data__,W,D)&&M.push(L)}return Jp(w,this.namespace,this.id)},cr.tween=function(m,w){var M=this.id,E=this.namespace;return arguments.length<2?this.node()[E][M].tween.get(m):at(this,w==null?function(L){L[E][M].tween.remove(m)}:function(L){L[E][M].tween.set(m,w)})};function Tk(m,w,M,E){var L=m.id,D=m.namespace;return at(m,typeof M=="function"?function(K,W,Q){K[D][L].tween.set(w,E(M.call(K,K.__data__,W,Q)))}:(M=E(M),function(K){K[D][L].tween.set(w,M)}))}cr.attr=function(m,w){if(arguments.length<2){for(w in m)this.attr(w,m[w]);return this}var M=m=="transform"?YR:pc,E=t.ns.qualify(m);function L(){this.removeAttribute(E)}function D(){this.removeAttributeNS(E.space,E.local)}function K(Q){return Q==null?L:(Q+="",function(){var ae=this.getAttribute(E),le;return ae!==Q&&(le=M(ae,Q),function(pe){this.setAttribute(E,le(pe))})})}function W(Q){return Q==null?D:(Q+="",function(){var ae=this.getAttributeNS(E.space,E.local),le;return ae!==Q&&(le=M(ae,Q),function(pe){this.setAttributeNS(E.space,E.local,le(pe))})})}return Tk(this,"attr."+m,w,E.local?W:K)},cr.attrTween=function(m,w){var M=t.ns.qualify(m);function E(D,K){var W=w.call(this,D,K,this.getAttribute(M));return W&&function(Q){this.setAttribute(M,W(Q))}}function L(D,K){var W=w.call(this,D,K,this.getAttributeNS(M.space,M.local));return W&&function(Q){this.setAttributeNS(M.space,M.local,W(Q))}}return this.tween("attr."+m,M.local?L:E)},cr.style=function(m,w,M){var E=arguments.length;if(E<3){if(typeof m!="string"){E<2&&(w="");for(M in m)this.style(M,m[M],w);return this}M=""}function L(){this.style.removeProperty(m)}function D(K){return K==null?L:(K+="",function(){var W=i(this).getComputedStyle(this,null).getPropertyValue(m),Q;return W!==K&&(Q=pc(W,K),function(ae){this.style.setProperty(m,Q(ae),M)})})}return Tk(this,"style."+m,w,D)},cr.styleTween=function(m,w,M){arguments.length<3&&(M="");function E(L,D){var K=w.call(this,L,D,i(this).getComputedStyle(this,null).getPropertyValue(m));return K&&function(W){this.style.setProperty(m,K(W),M)}}return this.tween("style."+m,E)},cr.text=function(m){return Tk(this,"text",m,YMe)};function YMe(m){return m==null&&(m=""),function(){this.textContent=m}}cr.remove=function(){var m=this.namespace;return this.each("end.transition",function(){var w;this[m].count<2&&(w=this.parentNode)&&w.removeChild(this)})},cr.ease=function(m){var w=this.id,M=this.namespace;return arguments.length<1?this.node()[M][w].ease:(typeof m!="function"&&(m=t.ease.apply(t,arguments)),at(this,function(E){E[M][w].ease=m}))},cr.delay=function(m){var w=this.id,M=this.namespace;return arguments.length<1?this.node()[M][w].delay:at(this,typeof m=="function"?function(E,L,D){E[M][w].delay=+m.call(E,E.__data__,L,D)}:(m=+m,function(E){E[M][w].delay=m}))},cr.duration=function(m){var w=this.id,M=this.namespace;return arguments.length<1?this.node()[M][w].duration:at(this,typeof m=="function"?function(E,L,D){E[M][w].duration=Math.max(1,m.call(E,E.__data__,L,D))}:(m=Math.max(1,m),function(E){E[M][w].duration=m}))},cr.each=function(m,w){var M=this.id,E=this.namespace;if(arguments.length<2){var L=zy,D=hc;try{hc=M,at(this,function(K,W,Q){zy=K[E][M],m.call(K,K.__data__,W,Q)})}finally{zy=L,hc=D}}else at(this,function(K){var W=K[E][M];(W.event||(W.event=t.dispatch("start","end","interrupt"))).on(m,w)});return this},cr.transition=function(){for(var m=this.id,w=++RN,M=this.namespace,E=[],L,D,K,W,Q=0,ae=this.length;Q<ae;Q++){E.push(L=[]);for(var D=this[Q],le=0,pe=D.length;le<pe;le++)(K=D[le])&&(W=K[M][m],Fy(K,le,M,w,{time:W.time,ease:W.ease,delay:W.delay+W.duration,duration:W.duration})),L.push(K)}return Jp(E,M,w)};function Sk(m){return m==null?"__transition__":"__transition_"+m+"__"}function Fy(m,w,M,E,L){var D=m[M]||(m[M]={active:0,count:0}),K=D[E],W,Q,ae,le,pe;function me(ye){var ke=K.delay;if(Q.t=ke+W,ke<=ye)return Ce(ye-ke);Q.c=Ce}function Ce(ye){var ke=D.active,Se=D[ke];Se&&(Se.timer.c=null,Se.timer.t=NaN,--D.count,delete D[ke],Se.event&&Se.event.interrupt.call(m,m.__data__,Se.index));for(var ze in D)if(+ze<E){var Ie=D[ze];Ie.timer.c=null,Ie.timer.t=NaN,--D.count,delete D[ze]}Q.c=Fe,za(function(){return Q.c&&Fe(ye||1)&&(Q.c=null,Q.t=NaN),1},0,W),D.active=E,K.event&&K.event.start.call(m,m.__data__,w),pe=[],K.tween.forEach(function(Me,Qe){(Qe=Qe.call(m,m.__data__,w))&&pe.push(Qe)}),le=K.ease,ae=K.duration}function Fe(ye){for(var ke=ye/ae,Se=le(ke),ze=pe.length;ze>0;)pe[--ze].call(m,Se);if(ke>=1)return K.event&&K.event.end.call(m,m.__data__,w),--D.count?delete D[E]:delete m[M],1}K||(W=L.time,Q=za(me,0,W),K=D[E]={tween:new S,time:W,timer:Q,delay:L.delay,duration:L.duration,ease:L.ease,index:w},L=null,++D.count)}t.svg.axis=function(){var m=t.scale.linear(),w=NN,M=6,E=6,L=3,D=[10],K=null,W;function Q(ae){ae.each(function(){var le=t.select(this),pe=this.__chart__||m,me=this.__chart__=m.copy(),Ce=K??(me.ticks?me.ticks.apply(me,D):me.domain()),Fe=W??(me.tickFormat?me.tickFormat.apply(me,D):G),ye=le.selectAll(".tick").data(Ce,me),ke=ye.enter().insert("g",".domain").attr("class","tick").style("opacity",tt),Se=t.transition(ye.exit()).style("opacity",tt).remove(),ze=t.transition(ye.order()).style("opacity",1),Ie=Math.max(M,0)+L,Me,Qe=Ty(me),mt=le.selectAll(".domain").data([0]),bt=(mt.enter().append("path").attr("class","domain"),t.transition(mt));ke.append("line"),ke.append("text");var yt=ke.select("line"),Mt=ze.select("line"),Ct=ye.select("text").text(Fe),Ht=ke.select("text"),zt=ze.select("text"),Vt=w==="top"||w==="left"?-1:1,un,Qn,vn,ht;if(w==="bottom"||w==="top"?(Me=QMe,un="x",vn="y",Qn="x2",ht="y2",Ct.attr("dy",Vt<0?"0em":".71em").style("text-anchor","middle"),bt.attr("d","M"+Qe[0]+","+Vt*E+"V0H"+Qe[1]+"V"+Vt*E)):(Me=XMe,un="y",vn="x",Qn="y2",ht="x2",Ct.attr("dy",".32em").style("text-anchor",Vt<0?"end":"start"),bt.attr("d","M"+Vt*E+","+Qe[0]+"H0V"+Qe[1]+"H"+Vt*E)),yt.attr(ht,Vt*M),Ht.attr(vn,Vt*Ie),Mt.attr(Qn,0).attr(ht,Vt*M),zt.attr(un,0).attr(vn,Vt*Ie),me.rangeBand){var Ut=me,Zt=Ut.rangeBand()/2;pe=me=function(dn){return Ut(dn)+Zt}}else pe.rangeBand?pe=me:Se.call(Me,me,pe);ke.call(Me,pe,me),ze.call(Me,me,me)})}return Q.scale=function(ae){return arguments.length?(m=ae,Q):m},Q.orient=function(ae){return arguments.length?(w=ae in JMe?ae+"":NN,Q):w},Q.ticks=function(){return arguments.length?(D=r(arguments),Q):D},Q.tickValues=function(ae){return arguments.length?(K=ae,Q):K},Q.tickFormat=function(ae){return arguments.length?(W=ae,Q):W},Q.tickSize=function(ae){var le=arguments.length;return le?(M=+ae,E=+arguments[le-1],Q):M},Q.innerTickSize=function(ae){return arguments.length?(M=+ae,Q):M},Q.outerTickSize=function(ae){return arguments.length?(E=+ae,Q):E},Q.tickPadding=function(ae){return arguments.length?(L=+ae,Q):L},Q.tickSubdivide=function(){return arguments.length&&Q},Q};var NN="bottom",JMe={top:1,right:1,bottom:1,left:1};function QMe(m,w,M){m.attr("transform",function(E){var L=w(E);return"translate("+(isFinite(L)?L:M(E))+",0)"})}function XMe(m,w,M){m.attr("transform",function(E){var L=w(E);return"translate(0,"+(isFinite(L)?L:M(E))+")"})}t.svg.brush=function(){var m=te(le,"brushstart","brush","brushend"),w=null,M=null,E=[0,0],L=[0,0],D,K,W=!0,Q=!0,ae=Ak[0];function le(ye){ye.each(function(){var ke=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Fe).on("touchstart.brush",Fe),Se=ke.selectAll(".background").data([0]);Se.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ke.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ze=ke.selectAll(".resize").data(ae,G);ze.exit().remove(),ze.enter().append("g").attr("class",function(mt){return"resize "+mt}).style("cursor",function(mt){return $Me[mt]}).append("rect").attr("x",function(mt){return/[ew]$/.test(mt)?-3:null}).attr("y",function(mt){return/^[ns]/.test(mt)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ze.style("display",le.empty()?"none":null);var Ie=t.transition(ke),Me=t.transition(Se),Qe;w&&(Qe=Ty(w),Me.attr("x",Qe[0]).attr("width",Qe[1]-Qe[0]),me(Ie)),M&&(Qe=Ty(M),Me.attr("y",Qe[0]).attr("height",Qe[1]-Qe[0]),Ce(Ie)),pe(Ie)})}le.event=function(ye){ye.each(function(){var ke=m.of(this,arguments),Se={x:E,y:L,i:D,j:K},ze=this.__chart__||Se;this.__chart__=Se,hc?t.select(this).transition().each("start.brush",function(){D=ze.i,K=ze.j,E=ze.x,L=ze.y,ke({type:"brushstart"})}).tween("brush:brush",function(){var Ie=_y(E,Se.x),Me=_y(L,Se.y);return D=K=null,function(Qe){E=Se.x=Ie(Qe),L=Se.y=Me(Qe),ke({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Se.i,K=Se.j,ke({type:"brush",mode:"resize"}),ke({type:"brushend"})}):(ke({type:"brushstart"}),ke({type:"brush",mode:"resize"}),ke({type:"brushend"}))})};function pe(ye){ye.selectAll(".resize").attr("transform",function(ke){return"translate("+E[+/e$/.test(ke)]+","+L[+/^s/.test(ke)]+")"})}function me(ye){ye.select(".extent").attr("x",E[0]),ye.selectAll(".extent,.n>rect,.s>rect").attr("width",E[1]-E[0])}function Ce(ye){ye.select(".extent").attr("y",L[0]),ye.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Fe(){var ye=this,ke=t.select(t.event.target),Se=m.of(ye,arguments),ze=t.select(ye),Ie=ke.datum(),Me=!/^(n|s)$/.test(Ie)&&w,Qe=!/^(e|w)$/.test(Ie)&&M,mt=ke.classed("extent"),bt=Ve(ye),yt,Mt=t.mouse(ye),Ct,Ht=t.select(i(ye)).on("keydown.brush",un).on("keyup.brush",Qn);if(t.event.changedTouches?Ht.on("touchmove.brush",vn).on("touchend.brush",Ut):Ht.on("mousemove.brush",vn).on("mouseup.brush",Ut),ze.interrupt().selectAll("*").interrupt(),mt)Mt[0]=E[0]-Mt[0],Mt[1]=L[0]-Mt[1];else if(Ie){var zt=+/w$/.test(Ie),Vt=+/^n/.test(Ie);Ct=[E[1-zt]-Mt[0],L[1-Vt]-Mt[1]],Mt[0]=E[zt],Mt[1]=L[Vt]}else t.event.altKey&&(yt=Mt.slice());ze.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",ke.style("cursor")),Se({type:"brushstart"}),vn();function un(){t.event.keyCode==32&&(mt||(yt=null,Mt[0]-=E[1],Mt[1]-=L[1],mt=2),$())}function Qn(){t.event.keyCode==32&&mt==2&&(Mt[0]+=E[1],Mt[1]+=L[1],mt=0,$())}function vn(){var Zt=t.mouse(ye),dn=!1;Ct&&(Zt[0]+=Ct[0],Zt[1]+=Ct[1]),mt||(t.event.altKey?(yt||(yt=[(E[0]+E[1])/2,(L[0]+L[1])/2]),Mt[0]=E[+(Zt[0]<yt[0])],Mt[1]=L[+(Zt[1]<yt[1])]):yt=null),Me&&ht(Zt,w,0)&&(me(ze),dn=!0),Qe&&ht(Zt,M,1)&&(Ce(ze),dn=!0),dn&&(pe(ze),Se({type:"brush",mode:mt?"move":"resize"}))}function ht(Zt,dn,Bn){var ur=Ty(dn),Or=ur[0],Kr=ur[1],ea=Mt[Bn],Yr=Bn?L:E,wa=Yr[1]-Yr[0],Rr,_a;if(mt&&(Or-=ea,Kr-=wa+ea),Rr=(Bn?Q:W)?Math.max(Or,Math.min(Kr,Zt[Bn])):Zt[Bn],mt?_a=(Rr+=ea)+wa:(yt&&(ea=Math.max(Or,Math.min(Kr,2*yt[Bn]-Rr))),ea<Rr?(_a=Rr,Rr=ea):_a=ea),Yr[0]!=Rr||Yr[1]!=_a)return Bn?K=null:D=null,Yr[0]=Rr,Yr[1]=_a,!0}function Ut(){vn(),ze.style("pointer-events","all").selectAll(".resize").style("display",le.empty()?"none":null),t.select("body").style("cursor",null),Ht.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),bt(),Se({type:"brushend"})}}return le.x=function(ye){return arguments.length?(w=ye,ae=Ak[!w<<1|!M],le):w},le.y=function(ye){return arguments.length?(M=ye,ae=Ak[!w<<1|!M],le):M},le.clamp=function(ye){return arguments.length?(w&&M?(W=!!ye[0],Q=!!ye[1]):w?W=!!ye:M&&(Q=!!ye),le):w&&M?[W,Q]:w?W:M?Q:null},le.extent=function(ye){var ke,Se,ze,Ie,Me;return arguments.length?(w&&(ke=ye[0],Se=ye[1],M&&(ke=ke[0],Se=Se[0]),D=[ke,Se],w.invert&&(ke=w(ke),Se=w(Se)),Se<ke&&(Me=ke,ke=Se,Se=Me),(ke!=E[0]||Se!=E[1])&&(E=[ke,Se])),M&&(ze=ye[0],Ie=ye[1],w&&(ze=ze[1],Ie=Ie[1]),K=[ze,Ie],M.invert&&(ze=M(ze),Ie=M(Ie)),Ie<ze&&(Me=ze,ze=Ie,Ie=Me),(ze!=L[0]||Ie!=L[1])&&(L=[ze,Ie])),le):(w&&(D?(ke=D[0],Se=D[1]):(ke=E[0],Se=E[1],w.invert&&(ke=w.invert(ke),Se=w.invert(Se)),Se<ke&&(Me=ke,ke=Se,Se=Me))),M&&(K?(ze=K[0],Ie=K[1]):(ze=L[0],Ie=L[1],M.invert&&(ze=M.invert(ze),Ie=M.invert(Ie)),Ie<ze&&(Me=ze,ze=Ie,Ie=Me))),w&&M?[[ke,ze],[Se,Ie]]:w?[ke,Se]:M&&[ze,Ie])},le.clear=function(){return le.empty()||(E=[0,0],L=[0,0],D=K=null),le},le.empty=function(){return!!w&&E[0]==E[1]||!!M&&L[0]==L[1]},t.rebind(le,m,"on")};var $Me={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ak=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=co(function(m){return m.responseText}),t.json=function(m,w){return Vo(m,"application/json",e5e,w)};function e5e(m){return JSON.parse(m.responseText)}t.html=function(m,w){return Vo(m,"text/html",t5e,w)};function t5e(m){var w=a.createRange();return w.selectNode(a.body),w.createContextualFragment(m.responseText)}t.xml=co(function(m){return m.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(MC);var $t=MC.exports,Ib=new Date,Db=new Date;function vr(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=function(o){return e(o=new Date(+o)),o},a.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},a.round=function(o){var i=a(o),l=a.ceil(o);return o-i<l-o?i:l},a.offset=function(o,i){return t(o=new Date(+o),i==null?1:Math.floor(i)),o},a.range=function(o,i,l){var s=[],u;if(o=a.ceil(o),l=l==null?1:Math.floor(l),!(o<i)||!(l>0))return s;do s.push(u=new Date(+o)),t(o,l),e(o);while(u<o&&o<i);return s},a.filter=function(o){return vr(function(i){if(i>=i)for(;e(i),!o(i);)i.setTime(i-1)},function(i,l){if(i>=i)if(l<0)for(;++l<=0;)for(;t(i,-1),!o(i););else for(;--l>=0;)for(;t(i,1),!o(i););})},n&&(a.count=function(o,i){return Ib.setTime(+o),Db.setTime(+i),e(Ib),e(Db),Math.floor(n(Ib,Db))},a.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?function(i){return r(i)%o===0}:function(i){return a.count(0,i)%o===0}):a}),a}var um=vr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});um.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):um};const CC=um;var OC=um.range,dm=1e3,Ts=6e4,fm=36e5,EC=864e5,LC=6048e5,zC=vr(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*dm)},function(e,t){return(t-e)/dm},function(e){return e.getUTCSeconds()});const FC=zC;var IC=zC.range,DC=vr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*dm)},function(e,t){e.setTime(+e+t*Ts)},function(e,t){return(t-e)/Ts},function(e){return e.getMinutes()});const Lne=DC;var zne=DC.range,PC=vr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*dm-e.getMinutes()*Ts)},function(e,t){e.setTime(+e+t*fm)},function(e,t){return(t-e)/fm},function(e){return e.getHours()});const Fne=PC;var Ine=PC.range,pm=vr(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ts)/EC},function(e){return e.getDate()-1}),Dne=pm.range;function Ss(e){return vr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ts)/LC})}var hm=Ss(0),lf=Ss(1),RC=Ss(2),NC=Ss(3),As=Ss(4),BC=Ss(5),jC=Ss(6),VC=hm.range,Pne=lf.range,Rne=RC.range,Nne=NC.range,Bne=As.range,jne=BC.range,Vne=jC.range,HC=vr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const Hne=HC;var Une=HC.range,_l=vr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});_l.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:vr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};var qne=_l.range,UC=vr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ts)},function(e,t){return(t-e)/Ts},function(e){return e.getUTCMinutes()});const Wne=UC;var Gne=UC.range,qC=vr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*fm)},function(e,t){return(t-e)/fm},function(e){return e.getUTCHours()});const Zne=qC;var Kne=qC.range,mm=vr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/EC},function(e){return e.getUTCDate()-1}),Yne=mm.range;function Ms(e){return vr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/LC})}var gm=Ms(0),sf=Ms(1),WC=Ms(2),GC=Ms(3),Cs=Ms(4),ZC=Ms(5),KC=Ms(6),YC=gm.range,Jne=sf.range,Qne=WC.range,Xne=GC.range,$ne=Cs.range,ere=ZC.range,tre=KC.range,JC=vr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const nre=JC;var rre=JC.range,kl=vr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});kl.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:vr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};var are=kl.range;const ore=Object.freeze(Object.defineProperty({__proto__:null,timeDay:pm,timeDays:Dne,timeFriday:BC,timeFridays:jne,timeHour:Fne,timeHours:Ine,timeInterval:vr,timeMillisecond:CC,timeMilliseconds:OC,timeMinute:Lne,timeMinutes:zne,timeMonday:lf,timeMondays:Pne,timeMonth:Hne,timeMonths:Une,timeSaturday:jC,timeSaturdays:Vne,timeSecond:FC,timeSeconds:IC,timeSunday:hm,timeSundays:VC,timeThursday:As,timeThursdays:Bne,timeTuesday:RC,timeTuesdays:Rne,timeWednesday:NC,timeWednesdays:Nne,timeWeek:hm,timeWeeks:VC,timeYear:_l,timeYears:qne,utcDay:mm,utcDays:Yne,utcFriday:ZC,utcFridays:ere,utcHour:Zne,utcHours:Kne,utcMillisecond:CC,utcMilliseconds:OC,utcMinute:Wne,utcMinutes:Gne,utcMonday:sf,utcMondays:Jne,utcMonth:nre,utcMonths:rre,utcSaturday:KC,utcSaturdays:tre,utcSecond:FC,utcSeconds:IC,utcSunday:gm,utcSundays:YC,utcThursday:Cs,utcThursdays:$ne,utcTuesday:WC,utcTuesdays:Qne,utcWednesday:GC,utcWednesdays:Xne,utcWeek:gm,utcWeeks:YC,utcYear:kl,utcYears:are},Symbol.toStringTag,{value:"Module"}));function Pb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Rb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function cf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function QC(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,u=uf(a),d=df(a),f=uf(o),p=df(o),g=uf(i),h=df(i),y=uf(l),b=df(l),v=uf(s),x=df(s),k={a:I,A:P,b:z,B:H,c:null,d:r3,e:r3,f:Cre,g:Nre,G:jre,H:Sre,I:Are,j:Mre,L:a3,m:Ore,M:Ere,p:j,q,Q:u3,s:d3,S:Lre,u:zre,U:Fre,V:Ire,w:Dre,W:Pre,x:null,X:null,y:Rre,Y:Bre,Z:Vre,"%":c3},_={a:$,A:ne,b:te,B:ee,c:null,d:i3,e:i3,f:Wre,g:tae,G:rae,H:Hre,I:Ure,j:qre,L:l3,m:Gre,M:Zre,p:se,q:U,Q:u3,s:d3,S:Kre,u:Yre,U:Jre,V:Qre,w:Xre,W:$re,x:null,X:null,y:eae,Y:nae,Z:aae,"%":c3},S={a:F,A:R,b:N,B,c:V,d:t3,e:t3,f:wre,g:e3,G:$C,H:n3,I:n3,j:yre,L:xre,m:gre,M:vre,p:O,q:mre,Q:kre,s:Tre,S:bre,u:ure,U:dre,V:fre,w:cre,W:pre,x:Z,X:G,y:e3,Y:$C,Z:hre,"%":_re};k.x=T(n,k),k.X=T(r,k),k.c=T(t,k),_.x=T(n,_),_.X=T(r,_),_.c=T(t,_);function T(Y,J){return function(re){var oe=[],he=-1,ve=0,ge=Y.length,xe,Le,Ue;for(re instanceof Date||(re=new Date(+re));++he<ge;)Y.charCodeAt(he)===37&&(oe.push(Y.slice(ve,he)),(Le=XC[xe=Y.charAt(++he)])!=null?xe=Y.charAt(++he):Le=xe==="e"?" ":"0",(Ue=J[xe])&&(xe=Ue(re,Le)),oe.push(xe),ve=he+1);return oe.push(Y.slice(ve,he)),oe.join("")}}function C(Y,J){return function(re){var oe=cf(1900,void 0,1),he=A(oe,Y,re+="",0),ve,ge;if(he!=re.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(J&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;"w"in oe||(oe.w=1),"Z"in oe?(ve=Rb(cf(oe.y,0,1)),ge=ve.getUTCDay(),ve=ge>4||ge===0?sf.ceil(ve):sf(ve),ve=mm.offset(ve,(oe.V-1)*7),oe.y=ve.getUTCFullYear(),oe.m=ve.getUTCMonth(),oe.d=ve.getUTCDate()+(oe.w+6)%7):(ve=Pb(cf(oe.y,0,1)),ge=ve.getDay(),ve=ge>4||ge===0?lf.ceil(ve):lf(ve),ve=pm.offset(ve,(oe.V-1)*7),oe.y=ve.getFullYear(),oe.m=ve.getMonth(),oe.d=ve.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),ge="Z"in oe?Rb(cf(oe.y,0,1)).getUTCDay():Pb(cf(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(ge+5)%7:oe.w+oe.U*7-(ge+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,Rb(oe)):Pb(oe)}}function A(Y,J,re,oe){for(var he=0,ve=J.length,ge=re.length,xe,Le;he<ve;){if(oe>=ge)return-1;if(xe=J.charCodeAt(he++),xe===37){if(xe=J.charAt(he++),Le=S[xe in XC?J.charAt(he++):xe],!Le||(oe=Le(Y,re,oe))<0)return-1}else if(xe!=re.charCodeAt(oe++))return-1}return oe}function O(Y,J,re){var oe=u.exec(J.slice(re));return oe?(Y.p=d[oe[0].toLowerCase()],re+oe[0].length):-1}function F(Y,J,re){var oe=g.exec(J.slice(re));return oe?(Y.w=h[oe[0].toLowerCase()],re+oe[0].length):-1}function R(Y,J,re){var oe=f.exec(J.slice(re));return oe?(Y.w=p[oe[0].toLowerCase()],re+oe[0].length):-1}function N(Y,J,re){var oe=v.exec(J.slice(re));return oe?(Y.m=x[oe[0].toLowerCase()],re+oe[0].length):-1}function B(Y,J,re){var oe=y.exec(J.slice(re));return oe?(Y.m=b[oe[0].toLowerCase()],re+oe[0].length):-1}function V(Y,J,re){return A(Y,t,J,re)}function Z(Y,J,re){return A(Y,n,J,re)}function G(Y,J,re){return A(Y,r,J,re)}function I(Y){return i[Y.getDay()]}function P(Y){return o[Y.getDay()]}function z(Y){return s[Y.getMonth()]}function H(Y){return l[Y.getMonth()]}function j(Y){return a[+(Y.getHours()>=12)]}function q(Y){return 1+~~(Y.getMonth()/3)}function $(Y){return i[Y.getUTCDay()]}function ne(Y){return o[Y.getUTCDay()]}function te(Y){return s[Y.getUTCMonth()]}function ee(Y){return l[Y.getUTCMonth()]}function se(Y){return a[+(Y.getUTCHours()>=12)]}function U(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var J=T(Y+="",k);return J.toString=function(){return Y},J},parse:function(Y){var J=C(Y+="",!1);return J.toString=function(){return Y},J},utcFormat:function(Y){var J=T(Y+="",_);return J.toString=function(){return Y},J},utcParse:function(Y){var J=C(Y+="",!0);return J.toString=function(){return Y},J}}}var XC={"-":"",_:" ",0:"0"},Tr=/^\s*\d+/,ire=/^%/,lre=/[\\^$*+?|[\]().{}]/g;function xn(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function sre(e){return e.replace(lre,"\\$&")}function uf(e){return new RegExp("^(?:"+e.map(sre).join("|")+")","i")}function df(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function cre(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ure(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dre(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fre(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pre(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function $C(e,t,n){var r=Tr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function e3(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hre(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function mre(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function gre(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function t3(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function yre(e,t,n){var r=Tr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function n3(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function vre(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bre(e,t,n){var r=Tr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function xre(e,t,n){var r=Tr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wre(e,t,n){var r=Tr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _re(e,t,n){var r=ire.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kre(e,t,n){var r=Tr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Tre(e,t,n){var r=Tr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function r3(e,t){return xn(e.getDate(),t,2)}function Sre(e,t){return xn(e.getHours(),t,2)}function Are(e,t){return xn(e.getHours()%12||12,t,2)}function Mre(e,t){return xn(1+pm.count(_l(e),e),t,3)}function a3(e,t){return xn(e.getMilliseconds(),t,3)}function Cre(e,t){return a3(e,t)+"000"}function Ore(e,t){return xn(e.getMonth()+1,t,2)}function Ere(e,t){return xn(e.getMinutes(),t,2)}function Lre(e,t){return xn(e.getSeconds(),t,2)}function zre(e){var t=e.getDay();return t===0?7:t}function Fre(e,t){return xn(hm.count(_l(e)-1,e),t,2)}function o3(e){var t=e.getDay();return t>=4||t===0?As(e):As.ceil(e)}function Ire(e,t){return e=o3(e),xn(As.count(_l(e),e)+(_l(e).getDay()===4),t,2)}function Dre(e){return e.getDay()}function Pre(e,t){return xn(lf.count(_l(e)-1,e),t,2)}function Rre(e,t){return xn(e.getFullYear()%100,t,2)}function Nre(e,t){return e=o3(e),xn(e.getFullYear()%100,t,2)}function Bre(e,t){return xn(e.getFullYear()%1e4,t,4)}function jre(e,t){var n=e.getDay();return e=n>=4||n===0?As(e):As.ceil(e),xn(e.getFullYear()%1e4,t,4)}function Vre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xn(t/60|0,"0",2)+xn(t%60,"0",2)}function i3(e,t){return xn(e.getUTCDate(),t,2)}function Hre(e,t){return xn(e.getUTCHours(),t,2)}function Ure(e,t){return xn(e.getUTCHours()%12||12,t,2)}function qre(e,t){return xn(1+mm.count(kl(e),e),t,3)}function l3(e,t){return xn(e.getUTCMilliseconds(),t,3)}function Wre(e,t){return l3(e,t)+"000"}function Gre(e,t){return xn(e.getUTCMonth()+1,t,2)}function Zre(e,t){return xn(e.getUTCMinutes(),t,2)}function Kre(e,t){return xn(e.getUTCSeconds(),t,2)}function Yre(e){var t=e.getUTCDay();return t===0?7:t}function Jre(e,t){return xn(gm.count(kl(e)-1,e),t,2)}function s3(e){var t=e.getUTCDay();return t>=4||t===0?Cs(e):Cs.ceil(e)}function Qre(e,t){return e=s3(e),xn(Cs.count(kl(e),e)+(kl(e).getUTCDay()===4),t,2)}function Xre(e){return e.getUTCDay()}function $re(e,t){return xn(sf.count(kl(e)-1,e),t,2)}function eae(e,t){return xn(e.getUTCFullYear()%100,t,2)}function tae(e,t){return e=s3(e),xn(e.getUTCFullYear()%100,t,2)}function nae(e,t){return xn(e.getUTCFullYear()%1e4,t,4)}function rae(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Cs(e):Cs.ceil(e),xn(e.getUTCFullYear()%1e4,t,4)}function aae(){return"+0000"}function c3(){return"%"}function u3(e){return+e}function d3(e){return Math.floor(+e/1e3)}var Qc,f3,p3,Nb,Bb;h3({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 h3(e){return Qc=QC(e),f3=Qc.format,p3=Qc.parse,Nb=Qc.utcFormat,Bb=Qc.utcParse,Qc}var m3="%Y-%m-%dT%H:%M:%S.%LZ";function oae(e){return e.toISOString()}var iae=Date.prototype.toISOString?oae:Nb(m3);const lae=iae;function sae(e){var t=new Date(e);return isNaN(t)?null:t}var cae=+new Date("2000-01-01T00:00:00.000Z")?sae:Bb(m3);const uae=cae,dae=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:lae,isoParse:uae,get timeFormat(){return f3},timeFormatDefaultLocale:h3,timeFormatLocale:QC,get timeParse(){return p3},get utcFormat(){return Nb},get utcParse(){return Bb}},Symbol.toStringTag,{value:"Module"})),ff=om(dae);function fae(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ym(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Xc(e){return e=ym(Math.abs(e)),e?e[1]:NaN}function pae(e,t){return function(n,r){for(var a=n.length,o=[],i=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),o.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[i=(i+1)%e.length];return o.reverse().join(t)}}function hae(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var mae=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vm(e){if(!(t=mae.exec(e)))throw new Error("invalid format: "+e);var t;return new bm({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}vm.prototype=bm.prototype;function bm(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}bm.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 gae(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var g3;function yae(e,t){var n=ym(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(g3=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=r.length;return o===i?r:o>i?r+new Array(o-i+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ym(e,Math.max(0,t+o-1))[0]}function y3(e,t){var n=ym(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const v3={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:fae,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return y3(e*100,t)},r:y3,s:yae,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function b3(e){return e}var x3=Array.prototype.map,w3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _3(e){var t=e.grouping===void 0||e.thousands===void 0?b3:pae(x3.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?b3:hae(x3.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=vm(f);var p=f.fill,g=f.align,h=f.sign,y=f.symbol,b=f.zero,v=f.width,x=f.comma,k=f.precision,_=f.trim,S=f.type;S==="n"?(x=!0,S="g"):v3[S]||(k===void 0&&(k=12),_=!0,S="g"),(b||p==="0"&&g==="=")&&(b=!0,p="0",g="=");var T=y==="$"?n:y==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",C=y==="$"?r:/[%p]/.test(S)?i:"",A=v3[S],O=/[defgprs%]/.test(S);k=k===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function F(R){var N=T,B=C,V,Z,G;if(S==="c")B=A(R)+B,R="";else{R=+R;var I=R<0||1/R<0;if(R=isNaN(R)?s:A(Math.abs(R),k),_&&(R=gae(R)),I&&+R==0&&h!=="+"&&(I=!1),N=(I?h==="("?h:l:h==="-"||h==="("?"":h)+N,B=(S==="s"?w3[8+g3/3]:"")+B+(I&&h==="("?")":""),O){for(V=-1,Z=R.length;++V<Z;)if(G=R.charCodeAt(V),48>G||G>57){B=(G===46?a+R.slice(V+1):R.slice(V))+B,R=R.slice(0,V);break}}}x&&!b&&(R=t(R,1/0));var P=N.length+R.length+B.length,z=P<v?new Array(v-P+1).join(p):"";switch(x&&b&&(R=t(z+R,z.length?v-B.length:1/0),z=""),g){case"<":R=N+R+B+z;break;case"=":R=N+z+R+B;break;case"^":R=z.slice(0,P=z.length>>1)+N+R+B+z.slice(P);break;default:R=z+N+R+B;break}return o(R)}return F.toString=function(){return f+""},F}function d(f,p){var g=u((f=vm(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(Xc(p)/3)))*3,y=Math.pow(10,-h),b=w3[8+h/3];return function(v){return g(y*v)+b}}return{format:u,formatPrefix:d}}var xm,k3,T3;S3({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S3(e){return xm=_3(e),k3=xm.format,T3=xm.formatPrefix,xm}function vae(e){return Math.max(0,-Xc(Math.abs(e)))}function bae(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xc(t)/3)))*3-Xc(Math.abs(e)))}function xae(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xc(t)-Xc(e))+1}const wae=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:bm,get format(){return k3},formatDefaultLocale:S3,formatLocale:_3,get formatPrefix(){return T3},formatSpecifier:vm,precisionFixed:vae,precisionPrefix:bae,precisionRound:xae},Symbol.toStringTag,{value:"Module"})),A3=om(wae);for(var _ae=function(e){for(var t=e.length,n,r=0;r<t;r++)if(n=e.charCodeAt(r),(n<9||n>13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0},kae=_ae,en=function(e){var t=typeof e;if(t==="string"){var n=e;if(e=+e,e===0&&kae(n))return!1}else if(t!=="number")return!1;return e-e<1},Gn={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"},$n={},$c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pf=typeof Uint8Array>"u"?[]:new Uint8Array(256),wm=0;wm<$c.length;wm++)pf[$c.charCodeAt(wm)]=wm;var Tae=function(e){var t=new Uint8Array(e),n,r=t.length,a="";for(n=0;n<r;n+=3)a+=$c[t[n]>>2],a+=$c[(t[n]&3)<<4|t[n+1]>>4],a+=$c[(t[n+1]&15)<<2|t[n+2]>>6],a+=$c[t[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a},Sae=function(e){var t=e.length*.75,n=e.length,r,a=0,o,i,l,s;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)o=pf[e.charCodeAt(r)],i=pf[e.charCodeAt(r+1)],l=pf[e.charCodeAt(r+2)],s=pf[e.charCodeAt(r+3)],d[a++]=o<<2|i>>4,d[a++]=(i&15)<<4|l>>2,d[a++]=(l&3)<<6|s&63;return u};const Aae=Object.freeze(Object.defineProperty({__proto__:null,decode:Sae,encode:Tae},Symbol.toStringTag,{value:"Module"})),M3=om(Aae);var Os=function(e){return window&&window.process&&window.process.versions?Object.prototype.toString.call(e)==="[object Object]":Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")},Mae=M3.decode,Cae=Os,jb=Array.isArray,Oae=ArrayBuffer,Eae=DataView;function C3(e){return Oae.isView(e)&&!(e instanceof Eae)}$n.isTypedArray=C3;function _m(e){return jb(e)||C3(e)}$n.isArrayOrTypedArray=_m;function Lae(e){return!_m(e[0])}$n.isArray1D=Lae,$n.ensureArray=function(e,t){return jb(e)||(e=[]),e.length=t,e};var br={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};br.uint8c=br.u1c,br.uint8=br.u1,br.int8=br.i1,br.uint16=br.u2,br.int16=br.i2,br.uint32=br.u4,br.int32=br.i4,br.float32=br.f4,br.float64=br.f8;function Vb(e){return e.constructor===ArrayBuffer}$n.isArrayBuffer=Vb,$n.decodeTypedArraySpec=function(e){var t=[],n=zae(e),r=n.dtype,a=br[r];if(!a)throw new Error('Error in dtype: "'+r+'"');var o=a.BYTES_PER_ELEMENT,i=n.bdata;Vb(i)||(i=Mae(i));var l=n.shape===void 0?[i.byteLength/o]:(""+n.shape).split(",");l.reverse();var s=l.length,u,d,f=+l[0],p=o*f,g=0;if(s===1)t=new a(i);else if(s===2)for(u=+l[1],d=0;d<u;d++)t[d]=new a(i,g,f),g+=p;else if(s===3){u=+l[1];for(var h=+l[2],y=0;y<h;y++)for(t[y]=[],d=0;d<u;d++)t[y][d]=new a(i,g,f),g+=p}else throw new Error("ndim: "+s+'is not supported with the shape:"'+n.shape+'"');return t.bdata=n.bdata,t.dtype=n.dtype,t.shape=l.reverse().join(","),e._inputArray=t,t},$n.isTypedArraySpec=function(e){return Cae(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Vb(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function zae(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}$n.concat=function(){var e=[],t=!0,n=0,r,a,o,i,l,s,u,d;for(o=0;o<arguments.length;o++)i=arguments[o],s=i.length,s&&(a?e.push(i):(a=i,l=s),jb(i)?r=!1:(t=!1,n?r!==i.constructor&&(r=!1):r=i.constructor),n+=s);if(!n)return[];if(!e.length)return a;if(t)return a.concat.apply(a,e);if(r){for(u=new r(n),u.set(a),o=0;o<e.length;o++)i=e[o],u.set(i,l),l+=i.length;return u}for(u=new Array(n),d=0;d<a.length;d++)u[d]=a[d];for(o=0;o<e.length;o++){for(i=e[o],d=0;d<i.length;d++)u[l+d]=i[d];l+=d}return u},$n.maxRowLength=function(e){return O3(e,Math.max,0)},$n.minRowLength=function(e){return O3(e,Math.min,1/0)};function O3(e,t,n){if(_m(e))if(_m(e[0])){for(var r=n,a=0;a<e.length;a++)r=t(r,e[a].length);return r}else return e.length;return 0}var E3=en,Hb=$n.isArrayOrTypedArray,Ub=function(e,t){if(E3(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),r,a,o,i;for(i=0;i<n.length;i++)if(String(n[i]).slice(0,2)==="__")throw"bad property string";for(i=0;i<n.length;){if(r=String(n[i]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),r){if(r[1])n[i]=r[1];else if(i===0)n.splice(0,1);else throw"bad property string";for(a=r[2].substr(1,r[2].length-2).split("]["),o=0;o<a.length;o++)i++,n.splice(i,0,Number(a[o]))}i++}return typeof e!="object"?Pae(e,t,n):{set:z3(e,n,t),get:L3(e,n),astr:t,parts:n,obj:e}};function L3(e,t){return function(){var n=e,r,a,o,i,l;for(i=0;i<t.length-1;i++){if(r=t[i],r===-1){for(a=!0,o=[],l=0;l<n.length;l++)o[l]=L3(n[l],t.slice(i+1))(),o[l]!==o[0]&&(a=!1);return a?o[0]:o}if(typeof r=="number"&&!Hb(n)||(n=n[r],typeof n!="object"||n===null))return}if(!(typeof n!="object"||n===null)&&(o=n[t[i]],o!==null))return o}}var Fae=/(^|\.)args\[/;function qb(e,t){return e===void 0||e===null&&!t.match(Fae)}function z3(e,t,n){return function(r){var a=e,o="",i=qb(r,n),l,s;for(s=0;s<t.length-1;s++){if(l=t[s],typeof l=="number"&&!Hb(a))throw"array index but container is not an array";if(l===-1){if(i=!Dae(a,t.slice(s+1),r,n),i)break;return}if(!F3(a,l,t[s+1],i))break;if(a=a[l],typeof a!="object"||a===null)throw"container is not an object";o=Iae(o,l)}if(i){if(s===t.length-1&&(delete a[t[s]],Array.isArray(a)&&+t[s]===a.length-1))for(;a.length&&a[a.length-1]===void 0;)a.pop()}else a[t[s]]=r}}function Iae(e,t){var n=t;return E3(t)?n="["+t+"]":e&&(n="."+t),e+n}function Dae(e,t,n,r){var a=Hb(n),o=!0,i=n,l=r.replace("-1",0),s=a?!1:qb(n,l),u=t[0],d;for(d=0;d<e.length;d++)l=r.replace("-1",d),a&&(i=n[d%n.length],s=qb(i,l)),s&&(o=!1),F3(e,d,u,s)&&z3(e[d],t,r.replace("-1",d))(i);return o}function F3(e,t,n,r){if(e[t]===void 0){if(r)return!1;typeof n=="number"?e[t]=[]:e[t]={}}return!0}function Pae(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}var eu=Ub,Rae=/^\w*$/,Nae=0,I3=1,km=2,D3=3,Es=4,Bae=function(e,t,n,r){n=n||"name",r=r||"value";var a,o,i,l={};t&&t.length?(i=eu(e,t),o=i.get()):o=e,t=t||"";var s={};if(o)for(a=0;a<o.length;a++)s[o[a][n]]=a;var u=Rae.test(r),d={set:function(f,p){var g=p===null?Es:Nae;if(!o){if(!i||g===Es)return;o=[],i.set(o)}var h=s[f];if(h===void 0){if(g===Es)return;g=g|D3,h=o.length,s[f]=h}else p!==(u?o[h][r]:eu(o[h],r).get())&&(g=g|km);var y=o[h]=o[h]||{};return y[n]=f,u?y[r]=p:eu(y,r).set(p),p!==null&&(g=g&~Es),l[h]=l[h]|g,d},get:function(f){if(o){var p=s[f];if(p!==void 0)return u?o[p][r]:eu(o[p],r).get()}},rename:function(f,p){var g=s[f];return g===void 0||(l[g]=l[g]|I3,s[p]=g,delete s[f],o[g][n]=p),d},remove:function(f){var p=s[f];if(p===void 0)return d;var g=o[p];if(Object.keys(g).length>2)return l[p]=l[p]|km,d.set(f,null);if(u){for(a=p;a<o.length;a++)l[a]=l[a]|D3;for(a=p;a<o.length;a++)s[o[a][n]]--;o.splice(p,1),delete s[f]}else eu(g,r).set(null),l[p]=l[p]|km|Es;return d},constructUpdate:function(){for(var f,p,g={},h=Object.keys(l),y=0;y<h.length;y++)p=h[y],f=t+"["+p+"]",o[p]?(l[p]&I3&&(g[f+"."+n]=o[p][n]),l[p]&km&&(u?g[f+"."+r]=l[p]&Es?null:o[p][r]:g[f+"."+r]=l[p]&Es?null:eu(o[p],r).get())):g[f]=null;return g}};return d},jae=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Vae=/^[^\.\[\]]+$/,Hae=function(e,t){for(;t;){var n=e.match(jae);if(n)e=n[1];else if(e.match(Vae))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t},Uae=en,Wb=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return Uae(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n},P3=$n.isArrayOrTypedArray,hf=Os,qae=function e(t,n){for(var r in n){var a=n[r],o=t[r];if(o!==a)if(r.charAt(0)==="_"||typeof a=="function"){if(r in t)continue;t[r]=a}else if(P3(a)&&P3(o)&&hf(a[0])){if(r==="customdata"||r==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l<i;l++)o[l]!==a[l]&&hf(a[l])&&hf(o[l])&&e(o[l],a[l])}else hf(a)&&hf(o)&&(e(o,a),Object.keys(o).length||delete t[r])}};function Wae(e,t){var n=e%t;return n<0?n+t:n}function Gae(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var mf={mod:Wae,modHalf:Gae},R3={},N3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tf,function(){function n(U){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},n(U)}var r=/^\s+/,a=/\s+$/;function o(U,Y){if(U=U||"",Y=Y||{},U instanceof o)return U;if(!(this instanceof o))return new o(U,Y);var J=i(U);this._originalInput=U,this._r=J.r,this._g=J.g,this._b=J.b,this._a=J.a,this._roundA=Math.round(100*this._a)/100,this._format=Y.format||J.format,this._gradientType=Y.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=J.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),Y,J,re,oe,he,ve;return Y=U.r/255,J=U.g/255,re=U.b/255,Y<=.03928?oe=Y/12.92:oe=Math.pow((Y+.055)/1.055,2.4),J<=.03928?he=J/12.92:he=Math.pow((J+.055)/1.055,2.4),re<=.03928?ve=re/12.92:ve=Math.pow((re+.055)/1.055,2.4),.2126*oe+.7152*he+.0722*ve},setAlpha:function(U){return this._a=V(U),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),Y=Math.round(U.h*360),J=Math.round(U.s*100),re=Math.round(U.v*100);return this._a==1?"hsv("+Y+", "+J+"%, "+re+"%)":"hsva("+Y+", "+J+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var U=s(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=s(this._r,this._g,this._b),Y=Math.round(U.h*360),J=Math.round(U.s*100),re=Math.round(U.l*100);return this._a==1?"hsl("+Y+", "+J+"%, "+re+"%)":"hsla("+Y+", "+J+"%, "+re+"%, "+this._roundA+")"},toHex:function(U){return p(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return g(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var Y="#"+h(this._r,this._g,this._b,this._a),J=Y,re=this._gradientType?"GradientType = 1, ":"";if(U){var oe=o(U);J="#"+h(oe._r,oe._g,oe._b,oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Y+",endColorstr="+J+")"},toString:function(U){var Y=!!U;U=U||this._format;var J=!1,re=this._a<1&&this._a>=0,oe=!Y&&re&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return oe?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(J=this.toRgbString()),U==="prgb"&&(J=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(J=this.toHexString()),U==="hex3"&&(J=this.toHexString(!0)),U==="hex4"&&(J=this.toHex8String(!0)),U==="hex8"&&(J=this.toHex8String()),U==="name"&&(J=this.toName()),U==="hsl"&&(J=this.toHslString()),U==="hsv"&&(J=this.toHsvString()),J||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(U,Y){var J=U.apply(null,[this].concat([].slice.call(Y)));return this._r=J._r,this._g=J._g,this._b=J._b,this.setAlpha(J._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(U,Y){return U.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(C,[3])},tetrad:function(){return this._applyCombination(C,[4])}},o.fromRatio=function(U,Y){if(n(U)=="object"){var J={};for(var re in U)U.hasOwnProperty(re)&&(re==="a"?J[re]=U[re]:J[re]=j(U[re]));U=J}return o(U,Y)};function i(U){var Y={r:0,g:0,b:0},J=1,re=null,oe=null,he=null,ve=!1,ge=!1;return typeof U=="string"&&(U=ee(U)),n(U)=="object"&&(te(U.r)&&te(U.g)&&te(U.b)?(Y=l(U.r,U.g,U.b),ve=!0,ge=String(U.r).substr(-1)==="%"?"prgb":"rgb"):te(U.h)&&te(U.s)&&te(U.v)?(re=j(U.s),oe=j(U.v),Y=f(U.h,re,oe),ve=!0,ge="hsv"):te(U.h)&&te(U.s)&&te(U.l)&&(re=j(U.s),he=j(U.l),Y=u(U.h,re,he),ve=!0,ge="hsl"),U.hasOwnProperty("a")&&(J=U.a)),J=V(J),{ok:ve,format:U.format||ge,r:Math.min(255,Math.max(Y.r,0)),g:Math.min(255,Math.max(Y.g,0)),b:Math.min(255,Math.max(Y.b,0)),a:J}}function l(U,Y,J){return{r:Z(U,255)*255,g:Z(Y,255)*255,b:Z(J,255)*255}}function s(U,Y,J){U=Z(U,255),Y=Z(Y,255),J=Z(J,255);var re=Math.max(U,Y,J),oe=Math.min(U,Y,J),he,ve,ge=(re+oe)/2;if(re==oe)he=ve=0;else{var xe=re-oe;switch(ve=ge>.5?xe/(2-re-oe):xe/(re+oe),re){case U:he=(Y-J)/xe+(Y<J?6:0);break;case Y:he=(J-U)/xe+2;break;case J:he=(U-Y)/xe+4;break}he/=6}return{h:he,s:ve,l:ge}}function u(U,Y,J){var re,oe,he;U=Z(U,360),Y=Z(Y,100),J=Z(J,100);function ve(Le,Ue,Pe){return Pe<0&&(Pe+=1),Pe>1&&(Pe-=1),Pe<1/6?Le+(Ue-Le)*6*Pe:Pe<1/2?Ue:Pe<2/3?Le+(Ue-Le)*(2/3-Pe)*6:Le}if(Y===0)re=oe=he=J;else{var ge=J<.5?J*(1+Y):J+Y-J*Y,xe=2*J-ge;re=ve(xe,ge,U+1/3),oe=ve(xe,ge,U),he=ve(xe,ge,U-1/3)}return{r:re*255,g:oe*255,b:he*255}}function d(U,Y,J){U=Z(U,255),Y=Z(Y,255),J=Z(J,255);var re=Math.max(U,Y,J),oe=Math.min(U,Y,J),he,ve,ge=re,xe=re-oe;if(ve=re===0?0:xe/re,re==oe)he=0;else{switch(re){case U:he=(Y-J)/xe+(Y<J?6:0);break;case Y:he=(J-U)/xe+2;break;case J:he=(U-Y)/xe+4;break}he/=6}return{h:he,s:ve,v:ge}}function f(U,Y,J){U=Z(U,360)*6,Y=Z(Y,100),J=Z(J,100);var re=Math.floor(U),oe=U-re,he=J*(1-Y),ve=J*(1-oe*Y),ge=J*(1-(1-oe)*Y),xe=re%6,Le=[J,ve,he,he,ge,J][xe],Ue=[ge,J,J,ve,he,he][xe],Pe=[he,he,ge,J,J,ve][xe];return{r:Le*255,g:Ue*255,b:Pe*255}}function p(U,Y,J,re){var oe=[H(Math.round(U).toString(16)),H(Math.round(Y).toString(16)),H(Math.round(J).toString(16))];return re&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0):oe.join("")}function g(U,Y,J,re,oe){var he=[H(Math.round(U).toString(16)),H(Math.round(Y).toString(16)),H(Math.round(J).toString(16)),H(q(re))];return oe&&he[0].charAt(0)==he[0].charAt(1)&&he[1].charAt(0)==he[1].charAt(1)&&he[2].charAt(0)==he[2].charAt(1)&&he[3].charAt(0)==he[3].charAt(1)?he[0].charAt(0)+he[1].charAt(0)+he[2].charAt(0)+he[3].charAt(0):he.join("")}function h(U,Y,J,re){var oe=[H(q(re)),H(Math.round(U).toString(16)),H(Math.round(Y).toString(16)),H(Math.round(J).toString(16))];return oe.join("")}o.equals=function(U,Y){return!U||!Y?!1:o(U).toRgbString()==o(Y).toRgbString()},o.random=function(){return o.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function y(U,Y){Y=Y===0?0:Y||10;var J=o(U).toHsl();return J.s-=Y/100,J.s=G(J.s),o(J)}function b(U,Y){Y=Y===0?0:Y||10;var J=o(U).toHsl();return J.s+=Y/100,J.s=G(J.s),o(J)}function v(U){return o(U).desaturate(100)}function x(U,Y){Y=Y===0?0:Y||10;var J=o(U).toHsl();return J.l+=Y/100,J.l=G(J.l),o(J)}function k(U,Y){Y=Y===0?0:Y||10;var J=o(U).toRgb();return J.r=Math.max(0,Math.min(255,J.r-Math.round(255*-(Y/100)))),J.g=Math.max(0,Math.min(255,J.g-Math.round(255*-(Y/100)))),J.b=Math.max(0,Math.min(255,J.b-Math.round(255*-(Y/100)))),o(J)}function _(U,Y){Y=Y===0?0:Y||10;var J=o(U).toHsl();return J.l-=Y/100,J.l=G(J.l),o(J)}function S(U,Y){var J=o(U).toHsl(),re=(J.h+Y)%360;return J.h=re<0?360+re:re,o(J)}function T(U){var Y=o(U).toHsl();return Y.h=(Y.h+180)%360,o(Y)}function C(U,Y){if(isNaN(Y)||Y<=0)throw new Error("Argument to polyad must be a positive number");for(var J=o(U).toHsl(),re=[o(U)],oe=360/Y,he=1;he<Y;he++)re.push(o({h:(J.h+he*oe)%360,s:J.s,l:J.l}));return re}function A(U){var Y=o(U).toHsl(),J=Y.h;return[o(U),o({h:(J+72)%360,s:Y.s,l:Y.l}),o({h:(J+216)%360,s:Y.s,l:Y.l})]}function O(U,Y,J){Y=Y||6,J=J||30;var re=o(U).toHsl(),oe=360/J,he=[o(U)];for(re.h=(re.h-(oe*Y>>1)+720)%360;--Y;)re.h=(re.h+oe)%360,he.push(o(re));return he}function F(U,Y){Y=Y||6;for(var J=o(U).toHsv(),re=J.h,oe=J.s,he=J.v,ve=[],ge=1/Y;Y--;)ve.push(o({h:re,s:oe,v:he})),he=(he+ge)%1;return ve}o.mix=function(U,Y,J){J=J===0?0:J||50;var re=o(U).toRgb(),oe=o(Y).toRgb(),he=J/100,ve={r:(oe.r-re.r)*he+re.r,g:(oe.g-re.g)*he+re.g,b:(oe.b-re.b)*he+re.b,a:(oe.a-re.a)*he+re.a};return o(ve)},o.readability=function(U,Y){var J=o(U),re=o(Y);return(Math.max(J.getLuminance(),re.getLuminance())+.05)/(Math.min(J.getLuminance(),re.getLuminance())+.05)},o.isReadable=function(U,Y,J){var re=o.readability(U,Y),oe,he;switch(he=!1,oe=se(J),oe.level+oe.size){case"AAsmall":case"AAAlarge":he=re>=4.5;break;case"AAlarge":he=re>=3;break;case"AAAsmall":he=re>=7;break}return he},o.mostReadable=function(U,Y,J){var re=null,oe=0,he,ve,ge,xe;J=J||{},ve=J.includeFallbackColors,ge=J.level,xe=J.size;for(var Le=0;Le<Y.length;Le++)he=o.readability(U,Y[Le]),he>oe&&(oe=he,re=o(Y[Le]));return o.isReadable(U,re,{level:ge,size:xe})||!ve?re:(J.includeFallbackColors=!1,o.mostReadable(U,["#fff","#000"],J))};var R=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=o.hexNames=B(R);function B(U){var Y={};for(var J in U)U.hasOwnProperty(J)&&(Y[U[J]]=J);return Y}function V(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function Z(U,Y){P(U)&&(U="100%");var J=z(U);return U=Math.min(Y,Math.max(0,parseFloat(U))),J&&(U=parseInt(U*Y,10)/100),Math.abs(U-Y)<1e-6?1:U%Y/parseFloat(Y)}function G(U){return Math.min(1,Math.max(0,U))}function I(U){return parseInt(U,16)}function P(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function z(U){return typeof U=="string"&&U.indexOf("%")!=-1}function H(U){return U.length==1?"0"+U:""+U}function j(U){return U<=1&&(U=U*100+"%"),U}function q(U){return Math.round(parseFloat(U)*255).toString(16)}function $(U){return I(U)/255}var ne=function(){var U="[-\\+]?\\d+%?",Y="[-\\+]?\\d*\\.\\d+%?",J="(?:"+Y+")|(?:"+U+")",re="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",oe="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?";return{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+re),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+re),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+re),hsva:new RegExp("hsva"+oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function te(U){return!!ne.CSS_UNIT.exec(U)}function ee(U){U=U.replace(r,"").replace(a,"").toLowerCase();var Y=!1;if(R[U])U=R[U],Y=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var J;return(J=ne.rgb.exec(U))?{r:J[1],g:J[2],b:J[3]}:(J=ne.rgba.exec(U))?{r:J[1],g:J[2],b:J[3],a:J[4]}:(J=ne.hsl.exec(U))?{h:J[1],s:J[2],l:J[3]}:(J=ne.hsla.exec(U))?{h:J[1],s:J[2],l:J[3],a:J[4]}:(J=ne.hsv.exec(U))?{h:J[1],s:J[2],v:J[3]}:(J=ne.hsva.exec(U))?{h:J[1],s:J[2],v:J[3],a:J[4]}:(J=ne.hex8.exec(U))?{r:I(J[1]),g:I(J[2]),b:I(J[3]),a:$(J[4]),format:Y?"name":"hex8"}:(J=ne.hex6.exec(U))?{r:I(J[1]),g:I(J[2]),b:I(J[3]),format:Y?"name":"hex"}:(J=ne.hex4.exec(U))?{r:I(J[1]+""+J[1]),g:I(J[2]+""+J[2]),b:I(J[3]+""+J[3]),a:$(J[4]+""+J[4]),format:Y?"name":"hex8"}:(J=ne.hex3.exec(U))?{r:I(J[1]+""+J[1]),g:I(J[2]+""+J[2]),b:I(J[3]+""+J[3]),format:Y?"name":"hex"}:!1}function se(U){var Y,J;return U=U||{level:"AA",size:"small"},Y=(U.level||"AA").toUpperCase(),J=(U.size||"small").toLowerCase(),Y!=="AA"&&Y!=="AAA"&&(Y="AA"),J!=="small"&&J!=="large"&&(J="small"),{level:Y,size:J}}return o})})(N3);var ko=N3.exports,Fr=function(e){var t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var r={family:{valType:"string",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},editType:t,description:""+(e.description||"")};return e.autoSize&&(r.size.dflt="auto"),e.autoColor&&(r.color.dflt="auto"),e.arrayOk&&(r.family.arrayOk=!0,r.size.arrayOk=!0,r.color.arrayOk=!0),r},Tm={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"},B3=Tm,j3=Fr,Gb=j3({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});Gb.family.dflt=B3.HOVERFONT,Gb.size.dflt=B3.HOVERFONTSIZE;var gf={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:Gb,grouptitlefont:j3({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}},Zn={},V3=Os,yf=Array.isArray;function Zae(e,t){var n,r;for(n=0;n<e.length;n++){if(r=e[n],r!==null&&typeof r=="object")return!1;r!==void 0&&(t[n]=r)}return!0}Zn.extendFlat=function(){return vf(arguments,!1,!1,!1)},Zn.extendDeep=function(){return vf(arguments,!0,!1,!1)},Zn.extendDeepAll=function(){return vf(arguments,!0,!0,!1)},Zn.extendDeepNoArrays=function(){return vf(arguments,!0,!1,!0)};function vf(e,t,n,r){var a=e[0],o=e.length,i,l,s,u,d,f,p;if(o===2&&yf(a)&&yf(e[1])&&a.length===0){if(p=Zae(e[1],a),p)return a;a.splice(0,a.length)}for(var g=1;g<o;g++){i=e[g];for(l in i)s=a[l],u=i[l],r&&yf(u)?a[l]=u:t&&u&&(V3(u)||(d=yf(u)))?(d?(d=!1,f=s&&yf(s)?s:[]):f=s&&V3(s)?s:{},a[l]=vf([f,u],t,n,r)):(typeof u<"u"||n)&&(a[l]=u)}return a}var Kae=Fr,Sm=gf.hoverlabel,Am=Zn.extendFlat,Zb={hoverlabel:{bgcolor:Am({},Sm.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:Am({},Sm.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:Kae({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:Am({},Sm.align,{arrayOk:!0}),namelength:Am({},Sm.namelength,{arrayOk:!0}),editType:"none"}},Yae=Fr,Jae=Zb,ti={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legend:{valType:"subplotid",dflt:"legend",editType:"style",description:["Sets the reference to a legend to show this trace in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:Yae({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")},legendwidth:{valType:"number",min:0,editType:"style",description:"Sets the width (in px or fraction) of the legend for this trace."},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appears as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:Jae.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["WARNING: All transforms are deprecated and may be removed from the API in next major version.","An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}},Qae=ko,Mm={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)"]]},H3=Mm.RdBu;function Xae(e,t){if(t||(t=H3),!e)return t;function n(){try{e=Mm[e]||JSON.parse(e)}catch{e=t}}return typeof e=="string"&&(n(),typeof e=="string"&&n()),U3(e)?e:t}function U3(e){var t=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 n=0;n<e.length;n++){var r=e[n];if(r.length!==2||+r[0]<t||!Qae(r[1]).isValid())return!1;t=+r[0]}return!0}function $ae(e){return Mm[e]!==void 0?!0:U3(e)}var tu={scales:Mm,defaultScale:H3,get:Xae,isValid:$ae},q3={exports:{}},ca={};ca.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],ca.defaultLine="#444",ca.lightLine="#eee",ca.background="#fff",ca.borderLine="#BEC8D9",ca.lightFraction=100*10/11;var To=ko,eoe=en,toe=$n.isTypedArray,xr=q3.exports={},Cm=ca;xr.defaults=Cm.defaults;var noe=xr.defaultLine=Cm.defaultLine;xr.lightLine=Cm.lightLine;var Kb=xr.background=Cm.background;xr.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},xr.rgb=function(e){return xr.tinyRGB(To(e))},xr.opacity=function(e){return e?To(e).getAlpha():0},xr.addOpacity=function(e,t){var n=To(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},xr.combine=function(e,t){var n=To(e).toRgb();if(n.a===1)return To(e).toRgbString();var r=To(t||Kb).toRgb(),a=r.a===1?r:{r:255*(1-r.a)+r.r*r.a,g:255*(1-r.a)+r.g*r.a,b:255*(1-r.a)+r.b*r.a},o={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return To(o).toRgbString()},xr.contrast=function(e,t,n){var r=To(e);r.getAlpha()!==1&&(r=To(xr.combine(e,Kb)));var a=r.isDark()?t?r.lighten(t):Kb:n?r.darken(n):noe;return a.toString()},xr.stroke=function(e,t){var n=To(t);e.style({stroke:xr.tinyRGB(n),"stroke-opacity":n.getAlpha()})},xr.fill=function(e,t){var n=To(t);e.style({fill:xr.tinyRGB(n),"fill-opacity":n.getAlpha()})},xr.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),n,r,a,o;for(n=0;n<t.length;n++)if(a=t[n],o=e[a],a.substr(a.length-5)==="color")if(Array.isArray(o))for(r=0;r<o.length;r++)o[r]=Yb(o[r]);else e[a]=Yb(o);else if(a.substr(a.length-10)==="colorscale"&&Array.isArray(o))for(r=0;r<o.length;r++)Array.isArray(o[r])&&(o[r][1]=Yb(o[r][1]));else if(Array.isArray(o)){var i=o[0];if(!Array.isArray(i)&&i&&typeof i=="object")for(r=0;r<o.length;r++)xr.clean(o[r])}else o&&typeof o=="object"&&!toe(o)&&xr.clean(o)}};function Yb(e){if(eoe(e)||typeof e!="string")return e;var t=e.trim();if(t.substr(0,3)!=="rgb")return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),a=t.charAt(3)==="a"&&r.length===4;if(!a&&r.length!==3)return e;for(var o=0;o<r.length;o++){if(!r[o].length||(r[o]=Number(r[o]),!(r[o]>=0)))return e;if(o===3)r[o]>1&&(r[o]=1);else if(r[o]>=1)return e}var i=Math.round(r[0]*255)+", "+Math.round(r[1]*255)+", "+Math.round(r[2]*255);return a?"rgba("+i+", "+r[3]+")":"rgb("+i+")"}var Kt=q3.exports,Jb={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2},nu={};nu.counter=function(e,t,n,r){var a=(t||"")+(n?"":"$"),o=r===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)},function(e){var t=en,n=ko,r=ti,a=tu,o=Kt,i=Jb.DESELECTDIM,l=Ub,s=nu.counter,u=mf.modHalf,d=$n.isArrayOrTypedArray,f=$n.isTypedArraySpec,p=$n.decodeTypedArraySpec;e.valObjectMeta={data_array:{description:["An {array} of data.","The value must represent an {array} or it will be ignored,","but this array can be provided in several forms:","(1) a regular {array} object","(2) a typed array (e.g. Float32Array)","(3) an object with keys dtype, bdata, and optionally shape.","In this 3rd form, dtype is one of","*f8*, *f4*.","*i4*, *u4*,","*i2*, *u2*,","*i1*, *u1* or *u1c* for Uint8ClampedArray.","In addition to shorthand `dtype` above one could also use the following forms:","*float64*, *float32*,","*int32*, *uint32*,","*int16*, *uint16*,","*int8*, *uint8* or *uint8c* for Uint8ClampedArray.","`bdata` is either a base64-encoded string or the ArrayBuffer of","an integer or float typed array.","For either multi-dimensional arrays you must also","provide its dimensions separated by comma via `shape`.","For example using `dtype`: *f4* and `shape`: *5,100* you can","declare a 2-D array that has 5 rows and 100 columns","containing float32 values i.e. 4 bits per value.","`shape` is optional for one dimensional arrays."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(h,y,b){y.set(d(h)?h:f(h)?p(h):b)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(h,y,b,v){v.coerceNumber&&(h=+h),v.values.indexOf(h)===-1?y.set(b):y.set(h)},validateFunction:function(h,y){y.coerceNumber&&(h=+h);for(var b=y.values,v=0;v<b.length;v++){var x=String(b[v]);if(x.charAt(0)==="/"&&x.charAt(x.length-1)==="/"){var k=new RegExp(x.substr(1,x.length-2));if(k.test(h))return!0}else if(h===b[v])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(h,y,b){h===!0||h===!1?y.set(h):y.set(b)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(h,y,b,v){!t(h)||v.min!==void 0&&h<v.min||v.max!==void 0&&h>v.max?y.set(b):y.set(+h)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(h,y,b,v){h%1||!t(h)||v.min!==void 0&&h<v.min||v.max!==void 0&&h>v.max?y.set(b):y.set(+h)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(h,y,b,v){if(typeof h!="string"){var x=typeof h=="number";v.strict===!0||!x?y.set(b):y.set(String(h))}else v.noBlank&&!h?y.set(b):y.set(h)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(h,y,b){n(h).isValid()?y.set(h):y.set(b)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(h,y,b){function v(x){return n(x).isValid()}!Array.isArray(h)||!h.length?y.set(b):h.every(v)?y.set(h):y.set(b)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(a.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(h,y,b){y.set(a.get(h,b))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(h,y,b){h==="auto"?y.set("auto"):t(h)?y.set(u(+h,360)):y.set(b)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(h,y,b,v){var x=v.regex||s(b);if(typeof h=="string"&&x.test(h)){y.set(h);return}y.set(b)},validateFunction:function(h,y){var b=y.dflt;return h===b?!0:typeof h!="string"?!1:!!s(b).test(h)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(h,y,b,v){if((v.extras||[]).indexOf(h)!==-1){y.set(h);return}if(typeof h!="string"){y.set(b);return}for(var x=h.split("+"),k=0;k<x.length;){var _=x[k];v.flags.indexOf(_)===-1||x.indexOf(_)<k?x.splice(k,1):k++}x.length?y.set(x.join("+")):y.set(b)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(h,y,b){h===void 0?y.set(b):y.set(f(h)?p(h):h)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(h,y,b,v){function x(G,I,P){var z,H={set:function(j){z=j}};return P===void 0&&(P=I.dflt),e.valObjectMeta[I.valType].coerceFunction(G,H,P,I),z}if(f(h)&&(h=p(h)),!d(h)){y.set(b);return}var k=v.dimensions===2||v.dimensions==="1-2"&&Array.isArray(h)&&d(h[0]),_=v.items,S=[],T=Array.isArray(_),C=T&&k&&d(_[0]),A=k&&T&&!C,O=T&&!A?_.length:h.length,F,R,N,B,V,Z;if(b=Array.isArray(b)?b:[],k)for(F=0;F<O;F++)for(S[F]=[],N=d(h[F])?h[F]:[],A?V=_.length:T?V=_[F].length:V=N.length,R=0;R<V;R++)A?B=_[R]:T?B=_[F][R]:B=_,Z=x(N[R],B,(b[F]||[])[R]),Z!==void 0&&(S[F][R]=Z);else for(F=0;F<O;F++)Z=x(h[F],T?_[F]:_,b[F]),Z!==void 0&&(S[F]=Z);y.set(S)},validateFunction:function(h,y){if(!d(h))return!1;var b=y.items,v=Array.isArray(b),x=y.dimensions===2;if(!y.freeLength&&h.length!==b.length)return!1;for(var k=0;k<h.length;k++)if(x){if(!d(h[k])||!y.freeLength&&h[k].length!==b[k].length)return!1;for(var _=0;_<h[k].length;_++)if(!g(h[k][_],v?b[k][_]:b))return!1}else if(!g(h[k],v?b[k]:b))return!1;return!0}}},e.coerce=function(h,y,b,v,x){var k=l(b,v).get(),_=l(h,v),S=l(y,v),T=_.get(),C=y._template;if(T===void 0&&C&&(T=l(C,v).get(),C=0),x===void 0&&(x=k.dflt),k.arrayOk){if(d(T))return S.set(T),T;if(f(T))return T=p(T),S.set(T),T}var A=e.valObjectMeta[k.valType].coerceFunction;A(T,S,x,k);var O=S.get();return C&&O===x&&!g(T,k)&&(T=l(C,v).get(),A(T,S,x,k),O=S.get()),O},e.coerce2=function(h,y,b,v,x){var k=l(h,v),_=e.coerce(h,y,b,v,x),S=k.get();return S!=null?_:!1},e.coerceFont=function(h,y,b){var v={};return b=b||{},v.family=h(y+".family",b.family),v.size=h(y+".size",b.size),v.color=h(y+".color",b.color),v},e.coercePattern=function(h,y,b,v){var x=h(y+".shape");if(x){h(y+".solidity"),h(y+".size");var k=h(y+".fillmode"),_=k==="overlay";if(!v){var S=h(y+".bgcolor",_?b:void 0);h(y+".fgcolor",_?o.contrast(S):b)}h(y+".fgopacity",_?.5:1)}},e.coerceHoverinfo=function(h,y,b){var v=y._module.attributes,x=v.hoverinfo?v:r,k=x.hoverinfo,_;if(b._dataLength===1){var S=k.dflt==="all"?k.flags.slice():k.dflt.split("+");S.splice(S.indexOf("name"),1),_=S.join("+")}return e.coerce(h,y,x,"hoverinfo",_)},e.coerceSelectionMarkerOpacity=function(h,y){if(h.marker){var b=h.marker.opacity;if(b!==void 0){var v,x;!d(b)&&!h.selected&&!h.unselected&&(v=b,x=i*b),y("selected.marker.opacity",v),y("unselected.marker.opacity",x)}}};function g(h,y){var b=e.valObjectMeta[y.valType];if(y.arrayOk&&d(h))return!0;if(b.validateFunction)return b.validateFunction(h,y);var v={},x=v,k={set:function(_){x=_}};return b.coerceFunction(h,k,v,y),x!==v}e.validate=g}(R3);var W3={},G3={exports:{}},Z3={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},typesetMath:{valType:"boolean",dflt:!0,description:["Determines whether math should be typeset or not,","when MathJax (either v2 or v3) is present on the page."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},editSelection:{valType:"boolean",dflt:!0,description:"Enables moving selections."},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v3, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments.","To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,","simply provide their string name(s). This could include:","*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,","*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.","Please note that these predefined buttons will only be shown if they are compatible","with all trace types used in a graph."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},K3={};function Y3(e,t){for(var n in e){var r=e[n];r.valType?t[n]=r.dflt:(t[n]||(t[n]={}),Y3(r,t[n]))}}Y3(Z3,K3);var ru={configAttributes:Z3,dfltConfig:K3},Qb=$t,roe=en,bf=[],J3=function(e,t){if(bf.indexOf(e)!==-1)return;bf.push(e);var n=1e3;roe(t)?n=t:t==="long"&&(n=3e3);var r=Qb.select("body").selectAll(".plotly-notifier").data([0]);r.enter().append("div").classed("plotly-notifier",!0);var a=r.selectAll(".notifier-note").data(bf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var s=bf.indexOf(l);s!==-1&&bf.splice(s,1),Qb.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=Qb.select(this);l.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){l.transition().call(o)});for(var s=l.append("p"),u=i.split(/<br\s*\/?>/g),d=0;d<u.length;d++)d&&s.append("br"),s.append("span").text(u[d]);t==="stick"?l.transition().duration(350).style("opacity",1):l.transition().duration(700).style("opacity",1).transition().delay(n).call(o)})},au=ru.dfltConfig,Xb=J3,$b=G3.exports={};$b.log=function(){var e;if(au.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(au.notifyOnLogging>1){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);Xb(n.join("<br>"),"long")}},$b.warn=function(){var e;if(au.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(au.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);Xb(n.join("<br>"),"stick")}},$b.error=function(){var e;if(au.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(au.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);Xb(n.join("<br>"),"stick")}};var ou=G3.exports,Dt={},ex=function(){},Q3=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else(t||t===0)&&e.indexOf(t)===-1&&e.push(t);return e},Om={},aoe=ooe;function ooe(){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 ioe=loe;function loe(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var soe=coe;function coe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var X3=uoe;function uoe(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 doe=foe;function foe(e,t){if(e===t){var n=t[1],r=t[2],a=t[3],o=t[6],i=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var poe=hoe;function hoe(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=t[4],l=t[5],s=t[6],u=t[7],d=t[8],f=t[9],p=t[10],g=t[11],h=t[12],y=t[13],b=t[14],v=t[15],x=n*l-r*i,k=n*s-a*i,_=n*u-o*i,S=r*s-a*l,T=r*u-o*l,C=a*u-o*s,A=d*y-f*h,O=d*b-p*h,F=d*v-g*h,R=f*b-p*y,N=f*v-g*y,B=p*v-g*b,V=x*B-k*N+_*R+S*F-T*O+C*A;return V?(V=1/V,e[0]=(l*B-s*N+u*R)*V,e[1]=(a*N-r*B-o*R)*V,e[2]=(y*C-b*T+v*S)*V,e[3]=(p*T-f*C-g*S)*V,e[4]=(s*F-i*B-u*O)*V,e[5]=(n*B-a*F+o*O)*V,e[6]=(b*_-h*C-v*k)*V,e[7]=(d*C-p*_+g*k)*V,e[8]=(i*N-l*F+u*A)*V,e[9]=(r*F-n*N-o*A)*V,e[10]=(h*T-y*_+v*x)*V,e[11]=(f*_-d*T-g*x)*V,e[12]=(l*O-i*R-s*A)*V,e[13]=(n*R-r*O+a*A)*V,e[14]=(y*k-h*S-b*x)*V,e[15]=(d*S-f*k+p*x)*V,e):null}var moe=goe;function goe(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=t[4],l=t[5],s=t[6],u=t[7],d=t[8],f=t[9],p=t[10],g=t[11],h=t[12],y=t[13],b=t[14],v=t[15];return e[0]=l*(p*v-g*b)-f*(s*v-u*b)+y*(s*g-u*p),e[1]=-(r*(p*v-g*b)-f*(a*v-o*b)+y*(a*g-o*p)),e[2]=r*(s*v-u*b)-l*(a*v-o*b)+y*(a*u-o*s),e[3]=-(r*(s*g-u*p)-l*(a*g-o*p)+f*(a*u-o*s)),e[4]=-(i*(p*v-g*b)-d*(s*v-u*b)+h*(s*g-u*p)),e[5]=n*(p*v-g*b)-d*(a*v-o*b)+h*(a*g-o*p),e[6]=-(n*(s*v-u*b)-i*(a*v-o*b)+h*(a*u-o*s)),e[7]=n*(s*g-u*p)-i*(a*g-o*p)+d*(a*u-o*s),e[8]=i*(f*v-g*y)-d*(l*v-u*y)+h*(l*g-u*f),e[9]=-(n*(f*v-g*y)-d*(r*v-o*y)+h*(r*g-o*f)),e[10]=n*(l*v-u*y)-i*(r*v-o*y)+h*(r*u-o*l),e[11]=-(n*(l*g-u*f)-i*(r*g-o*f)+d*(r*u-o*l)),e[12]=-(i*(f*b-p*y)-d*(l*b-s*y)+h*(l*p-s*f)),e[13]=n*(f*b-p*y)-d*(r*b-a*y)+h*(r*p-a*f),e[14]=-(n*(l*b-s*y)-i*(r*b-a*y)+h*(r*s-a*l)),e[15]=n*(l*p-s*f)-i*(r*p-a*f)+d*(r*s-a*l),e}var yoe=voe;function voe(e){var t=e[0],n=e[1],r=e[2],a=e[3],o=e[4],i=e[5],l=e[6],s=e[7],u=e[8],d=e[9],f=e[10],p=e[11],g=e[12],h=e[13],y=e[14],b=e[15],v=t*i-n*o,x=t*l-r*o,k=t*s-a*o,_=n*l-r*i,S=n*s-a*i,T=r*s-a*l,C=u*h-d*g,A=u*y-f*g,O=u*b-p*g,F=d*y-f*h,R=d*b-p*h,N=f*b-p*y;return v*N-x*R+k*F+_*O-S*A+T*C}var boe=xoe;function xoe(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3],l=t[4],s=t[5],u=t[6],d=t[7],f=t[8],p=t[9],g=t[10],h=t[11],y=t[12],b=t[13],v=t[14],x=t[15],k=n[0],_=n[1],S=n[2],T=n[3];return e[0]=k*r+_*l+S*f+T*y,e[1]=k*a+_*s+S*p+T*b,e[2]=k*o+_*u+S*g+T*v,e[3]=k*i+_*d+S*h+T*x,k=n[4],_=n[5],S=n[6],T=n[7],e[4]=k*r+_*l+S*f+T*y,e[5]=k*a+_*s+S*p+T*b,e[6]=k*o+_*u+S*g+T*v,e[7]=k*i+_*d+S*h+T*x,k=n[8],_=n[9],S=n[10],T=n[11],e[8]=k*r+_*l+S*f+T*y,e[9]=k*a+_*s+S*p+T*b,e[10]=k*o+_*u+S*g+T*v,e[11]=k*i+_*d+S*h+T*x,k=n[12],_=n[13],S=n[14],T=n[15],e[12]=k*r+_*l+S*f+T*y,e[13]=k*a+_*s+S*p+T*b,e[14]=k*o+_*u+S*g+T*v,e[15]=k*i+_*d+S*h+T*x,e}var woe=_oe;function _oe(e,t,n){var r=n[0],a=n[1],o=n[2],i,l,s,u,d,f,p,g,h,y,b,v;return t===e?(e[12]=t[0]*r+t[4]*a+t[8]*o+t[12],e[13]=t[1]*r+t[5]*a+t[9]*o+t[13],e[14]=t[2]*r+t[6]*a+t[10]*o+t[14],e[15]=t[3]*r+t[7]*a+t[11]*o+t[15]):(i=t[0],l=t[1],s=t[2],u=t[3],d=t[4],f=t[5],p=t[6],g=t[7],h=t[8],y=t[9],b=t[10],v=t[11],e[0]=i,e[1]=l,e[2]=s,e[3]=u,e[4]=d,e[5]=f,e[6]=p,e[7]=g,e[8]=h,e[9]=y,e[10]=b,e[11]=v,e[12]=i*r+d*a+h*o+t[12],e[13]=l*r+f*a+y*o+t[13],e[14]=s*r+p*a+b*o+t[14],e[15]=u*r+g*a+v*o+t[15]),e}var koe=Toe;function Toe(e,t,n){var r=n[0],a=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var Soe=Aoe;function Aoe(e,t,n,r){var a=r[0],o=r[1],i=r[2],l=Math.sqrt(a*a+o*o+i*i),s,u,d,f,p,g,h,y,b,v,x,k,_,S,T,C,A,O,F,R,N,B,V,Z;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,s=Math.sin(n),u=Math.cos(n),d=1-u,f=t[0],p=t[1],g=t[2],h=t[3],y=t[4],b=t[5],v=t[6],x=t[7],k=t[8],_=t[9],S=t[10],T=t[11],C=a*a*d+u,A=o*a*d+i*s,O=i*a*d-o*s,F=a*o*d-i*s,R=o*o*d+u,N=i*o*d+a*s,B=a*i*d+o*s,V=o*i*d-a*s,Z=i*i*d+u,e[0]=f*C+y*A+k*O,e[1]=p*C+b*A+_*O,e[2]=g*C+v*A+S*O,e[3]=h*C+x*A+T*O,e[4]=f*F+y*R+k*N,e[5]=p*F+b*R+_*N,e[6]=g*F+v*R+S*N,e[7]=h*F+x*R+T*N,e[8]=f*B+y*V+k*Z,e[9]=p*B+b*V+_*Z,e[10]=g*B+v*V+S*Z,e[11]=h*B+x*V+T*Z,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var Moe=Coe;function Coe(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[4],i=t[5],l=t[6],s=t[7],u=t[8],d=t[9],f=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*a+u*r,e[5]=i*a+d*r,e[6]=l*a+f*r,e[7]=s*a+p*r,e[8]=u*a-o*r,e[9]=d*a-i*r,e[10]=f*a-l*r,e[11]=p*a-s*r,e}var Ooe=Eoe;function Eoe(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[0],i=t[1],l=t[2],s=t[3],u=t[8],d=t[9],f=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*a-u*r,e[1]=i*a-d*r,e[2]=l*a-f*r,e[3]=s*a-p*r,e[8]=o*r+u*a,e[9]=i*r+d*a,e[10]=l*r+f*a,e[11]=s*r+p*a,e}var Loe=zoe;function zoe(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[0],i=t[1],l=t[2],s=t[3],u=t[4],d=t[5],f=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*a+u*r,e[1]=i*a+d*r,e[2]=l*a+f*r,e[3]=s*a+p*r,e[4]=u*a-o*r,e[5]=d*a-i*r,e[6]=f*a-l*r,e[7]=p*a-s*r,e}var Foe=Ioe;function Ioe(e,t,n){var r,a,o,i=n[0],l=n[1],s=n[2],u=Math.sqrt(i*i+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,i*=u,l*=u,s*=u,r=Math.sin(t),a=Math.cos(t),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+s*r,e[2]=s*i*o-l*r,e[3]=0,e[4]=i*l*o-s*r,e[5]=l*l*o+a,e[6]=s*l*o+i*r,e[7]=0,e[8]=i*s*o+l*r,e[9]=l*s*o-i*r,e[10]=s*s*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var Doe=Poe;function Poe(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3],l=r+r,s=a+a,u=o+o,d=r*l,f=r*s,p=r*u,g=a*s,h=a*u,y=o*u,b=i*l,v=i*s,x=i*u;return e[0]=1-(g+y),e[1]=f+x,e[2]=p-v,e[3]=0,e[4]=f-x,e[5]=1-(d+y),e[6]=h+b,e[7]=0,e[8]=p+v,e[9]=h-b,e[10]=1-(d+g),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}var Roe=Noe;function Noe(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Boe=joe;function joe(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var Voe=Hoe;function Hoe(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Uoe=qoe;function qoe(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Woe=Goe;function Goe(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,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 $3=Zoe;function Zoe(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=n+n,l=r+r,s=a+a,u=n*i,d=r*i,f=r*l,p=a*i,g=a*l,h=a*s,y=o*i,b=o*l,v=o*s;return e[0]=1-f-h,e[1]=d+v,e[2]=p-b,e[3]=0,e[4]=d-v,e[5]=1-u-h,e[6]=g+y,e[7]=0,e[8]=p+b,e[9]=g-y,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Koe=Yoe;function Yoe(e,t,n,r,a,o,i){var l=1/(n-t),s=1/(a-r),u=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*s,e[6]=0,e[7]=0,e[8]=(n+t)*l,e[9]=(a+r)*s,e[10]=(i+o)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*u,e[15]=0,e}var Joe=Qoe;function Qoe(e,t,n,r,a){var o=1/Math.tan(t/2),i=1/(r-a);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+r)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*r*i,e[15]=0,e}var Xoe=$oe;function $oe(e,t,n,r){var a=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),i=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(i+l),u=2/(a+o);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]=-((i-l)*s*.5),e[9]=(a-o)*u*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}var eie=tie;function tie(e,t,n,r,a,o,i){var l=1/(t-n),s=1/(r-a),u=1/(o-i);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]=(t+n)*l,e[13]=(a+r)*s,e[14]=(i+o)*u,e[15]=1,e}var nie=X3,rie=aie;function aie(e,t,n,r){var a,o,i,l,s,u,d,f,p,g,h=t[0],y=t[1],b=t[2],v=r[0],x=r[1],k=r[2],_=n[0],S=n[1],T=n[2];return Math.abs(h-_)<1e-6&&Math.abs(y-S)<1e-6&&Math.abs(b-T)<1e-6?nie(e):(d=h-_,f=y-S,p=b-T,g=1/Math.sqrt(d*d+f*f+p*p),d*=g,f*=g,p*=g,a=x*p-k*f,o=k*d-v*p,i=v*f-x*d,g=Math.sqrt(a*a+o*o+i*i),g?(g=1/g,a*=g,o*=g,i*=g):(a=0,o=0,i=0),l=f*i-p*o,s=p*a-d*i,u=d*o-f*a,g=Math.sqrt(l*l+s*s+u*u),g?(g=1/g,l*=g,s*=g,u*=g):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=d,e[3]=0,e[4]=o,e[5]=s,e[6]=f,e[7]=0,e[8]=i,e[9]=u,e[10]=p,e[11]=0,e[12]=-(a*h+o*y+i*b),e[13]=-(l*h+s*y+u*b),e[14]=-(d*h+f*y+p*b),e[15]=1,e)}var oie=iie;function iie(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var e4={create:aoe,clone:ioe,copy:soe,identity:X3,transpose:doe,invert:poe,adjoint:moe,determinant:yoe,multiply:boe,translate:woe,scale:koe,rotate:Soe,rotateX:Moe,rotateY:Ooe,rotateZ:Loe,fromRotation:Foe,fromRotationTranslation:Doe,fromScaling:Roe,fromTranslation:Boe,fromXRotation:Voe,fromYRotation:Uoe,fromZRotation:Woe,fromQuat:$3,frustum:Koe,perspective:Joe,perspectiveFromFieldOfView:Xoe,ortho:eie,lookAt:rie,str:oie};(function(e){var t=e4;e.init2dArray=function(n,r){for(var a=new Array(n),o=0;o<n;o++)a[o]=new Array(r);return a},e.transposeRagged=function(n){var r=0,a=n.length,o,i;for(o=0;o<a;o++)r=Math.max(r,n[o].length);var l=new Array(r);for(o=0;o<r;o++)for(l[o]=new Array(a),i=0;i<a;i++)l[o][i]=n[i][o];return l},e.dot=function(n,r){if(!(n.length&&r.length)||n.length!==r.length)return null;var a=n.length,o,i;if(n[0].length)for(o=new Array(a),i=0;i<a;i++)o[i]=e.dot(n[i],r);else if(r[0].length){var l=e.transposeRagged(r);for(o=new Array(l.length),i=0;i<l.length;i++)o[i]=e.dot(n,l[i])}else for(o=0,i=0;i<a;i++)o+=n[i]*r[i];return o},e.translationMatrix=function(n,r){return[[1,0,n],[0,1,r],[0,0,1]]},e.rotationMatrix=function(n){var r=n*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]},e.rotationXYMatrix=function(n,r,a){return e.dot(e.dot(e.translationMatrix(r,a),e.rotationMatrix(n)),e.translationMatrix(-r,-a))},e.apply3DTransform=function(n){return function(){var r=arguments,a=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return e.dot(n,[a[0],a[1],a[2],1]).slice(0,3)}},e.apply2DTransform=function(n){return function(){var r=arguments;r.length===3&&(r=r[0]);var a=arguments.length===1?r[0]:[r[0],r[1]];return e.dot(n,[a[0],a[1],1]).slice(0,2)}},e.apply2DTransform2=function(n){var r=e.apply2DTransform(n);return function(a){return r(a.slice(0,2)).concat(r(a.slice(2,4)))}},e.convertCssMatrix=function(n){if(n){var r=n.length;if(r===16)return n;if(r===6)return[n[0],n[1],0,0,n[2],n[3],0,0,0,0,1,0,n[4],n[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},e.inverseTransformMatrix=function(n){var r=[];return t.invert(r,n),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}})(Om);var lie=$t,sie=ou,cie=Om,uie=e4;function die(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function fie(e){var t=lie.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function t4(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function pie(e,t){n4("global",e,t)}function n4(e,t,n){var r="plotly.js-style-"+e,a=document.getElementById(r);a||(a=document.createElement("style"),a.setAttribute("id",r),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(t+"{"+n+"}",0):o.addRule?o.addRule(t,n,0):sie.warn("addStyleRule failed")}function hie(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&t4(n)}function mie(e){var t=a4(e),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(r){var a=r4(r);if(a){var o=cie.convertCssMatrix(a);n=uie.multiply(n,n,o)}}),n}function r4(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return n==="none"?null:n.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(r){return+r})}function a4(e){for(var t=[];gie(e);)t.push(e),e=e.parentNode;return t}function gie(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function yie(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}var Em={getGraphDiv:die,isPlotDiv:fie,removeElement:t4,addStyleRule:pie,addRelatedStyleRule:n4,deleteRelatedStyleRule:hie,getFullTransformMatrix:mie,getElementTransformMatrix:r4,getElementAndAncestors:a4,equalDomRects:yie},Lm={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},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",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}},o4=Zn.extendFlat,vie=Os,i4={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* (re)plots but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},l4={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* (re)plots but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},bie=i4.flags.slice().concat(["fullReplot"]),xie=l4.flags.slice().concat("layoutReplot"),Gi={traces:i4,layout:l4,traceFlags:function(){return s4(bie)},layoutFlags:function(){return s4(xie)},update:function(e,t){var n=t.editType;if(n&&n!=="none")for(var r=n.split("+"),a=0;a<r.length;a++)e[r[a]]=!0},overrideAll:c4};function s4(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!1;return t}function c4(e,t,n){var r=o4({},e);for(var a in r){var o=r[a];vie(o)&&(r[a]=u4(o,t,n,a))}return n==="from-root"&&(r.editType=t),r}function u4(e,t,n,r){if(e.valType){var a=o4({},e);if(a.editType=t,Array.isArray(e.items)){a.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)a.items[o]=u4(e.items[o],t)}return a}else return c4(e,t,r.charAt(0)==="_"?"nested":"from-root")}var ni={};ni.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")},ni.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style",description:["Sets the shape of the pattern fill.","By default, no pattern is used for filling the area."].join(" ")},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style",description:["Determines whether `marker.color` should be used","as a default to `bgcolor` or a `fgcolor`."].join(" ")},bgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of background pattern fill.","Defaults to a `marker.color` background when `fillmode` is *overlay*.","Otherwise, defaults to a transparent background."].join(" ")},fgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of foreground pattern fill.","Defaults to a `marker.color` background when `fillmode` is *replace*.","Otherwise, defaults to dark grey or white","to increase contrast with the `bgcolor`."].join(" ")},fgopacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the foreground pattern fill.","Defaults to a 0.5 when `fillmode` is *overlay*.","Otherwise, defaults to 1."].join(" ")},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style",description:["Sets the size of unit squares of the pattern fill in pixels,","which corresponds to the interval of repetition of the pattern."].join(" ")},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style",description:["Sets the solidity of the pattern fill.","Solidity is roughly the fraction of the area filled by the pattern.","Solidity of 0 shows only the background color without pattern","and solidty of 1 shows only the foreground color without pattern."].join(" ")},editType:"style",description:["Sets the pattern within the marker."].join(" ")};var So={},d4={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"},f4=d4,p4=f4.FORMAT_LINK,h4=f4.DATE_FORMAT_LINK;function m4(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" 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}".`,p4,"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}".`,h4,"for details on the date formatting syntax."].join(" ")}function wie(){return["Variables are inserted using %{variable},",'for example "x0: %{x0}".',`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See`,p4,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See`,h4,"for details on the date formatting syntax.","A single multiplication or division operation may be applied to numeric variables, and combined with",'d3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second."',"For log axes, variable values are given in log units.","For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms."].join(" ")}function tx(e){var t=e.description?" "+e.description:"",n=e.keys||[];if(n.length>0){for(var r=[],a=0;a<n.length;a++)r[a]="`"+n[a]+"`";t=t+"Finally, the template string has access to ",n.length===1?t=t+"variable "+r[0]:t=t+"variables "+r.slice(0,-1).join(", ")+" and "+r.slice(-1)+"."}return t}So.hovertemplateAttrs=function(e,t){e=e||{},t=t||{};var n=tx(t),r={valType:"string",dflt:"",editType:e.editType||"none",description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",m4({supportOther:!0}),"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n,'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',"To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" ")};return e.arrayOk!==!1&&(r.arrayOk=!0),r},So.texttemplateAttrs=function(e,t){e=e||{},t=t||{};var n=tx(t),r={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",m4(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n].join(" ")};return e.arrayOk!==!1&&(r.arrayOk=!0),r},So.shapeTexttemplateAttrs=function(e,t){e=e||{},t=t||{};var n=e.newshape?"new ":"",r=tx(t),a={valType:"string",dflt:"",editType:e.editType||"arraydraw",description:["Template string used for rendering the "+n+"shape's label.","Note that this will override `text`.",wie(),r].join(" ")};return a};function Tl(e,t){return t?t.d2l(e):e}function g4(e,t){return t?t.l2d(e):e}function _ie(e){return e.x0}function kie(e){return e.x1}function Tie(e){return e.y0}function Sie(e){return e.y1}function zm(e,t){return Tl(e.x1,t)-Tl(e.x0,t)}function Fm(e,t,n){return Tl(e.y1,n)-Tl(e.y0,n)}function Aie(e,t){return Math.abs(zm(e,t))}function Mie(e,t,n){return Math.abs(Fm(e,t,n))}function Cie(e,t,n){return e.type!=="line"?void 0:Math.sqrt(Math.pow(zm(e,t),2)+Math.pow(Fm(e,t,n),2))}function Oie(e,t){return g4((Tl(e.x1,t)+Tl(e.x0,t))/2,t)}function Eie(e,t,n){return g4((Tl(e.y1,n)+Tl(e.y0,n))/2,n)}function Lie(e,t,n){return e.type!=="line"?void 0:Fm(e,t,n)/zm(e,t)}var nx={x0:_ie,x1:kie,y0:Tie,y1:Sie,slope:Lie,dx:zm,dy:Fm,width:Aie,height:Mie,length:Cie,xcenter:Oie,ycenter:Eie},zie=Gi.overrideAll,Ls=ti,y4=Fr,Fie=ni.dash,Sl=Zn.extendFlat,Iie=So.shapeTexttemplateAttrs,Die=nx,Pie=zie({newshape:{visible:Sl({},Ls.visible,{description:["Determines whether or not new shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,description:["Determines whether or not new","shape is shown in the legend."].join(" ")},legend:Sl({},Ls.legend,{description:["Sets the reference to a legend to show new shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:Sl({},Ls.legendgroup,{description:["Sets the legend group for new shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:Sl({},Ls.legendgrouptitle.text,{}),font:y4({description:["Sets this legend group's title font."].join(" ")})},legendrank:Sl({},Ls.legendrank,{description:["Sets the legend rank for new shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")}),legendwidth:Sl({},Ls.legendwidth,{description:"Sets the width (in px or fraction) of the legend for new shape."}),line:{color:{valType:"color",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,description:"Sets the line width (in px)."},dash:Sl({},Fie,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},name:Sl({},Ls.name,{description:["Sets new shape name.","The name appears as the legend item."].join(" ")}),label:{text:{valType:"string",dflt:"",description:["Sets the text to display with the new shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:Iie({newshape:!0},{keys:Object.keys(Die)}),font:y4({description:"Sets the new shape label text font."}),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"],description:["Sets the position of the label text relative to the new shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","new shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","new shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,description:"Sets padding (in px) between edge of label and edge of new shape."}}},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,description:"Sets the opacity of the active shape."}}},"none","from-root"),Rie=ni.dash,Nie=Zn.extendFlat,Bie={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none",description:["Describes how a new selection is created.","If `immediate`, a new selection is created after first mouse up.","If `gradual`, a new selection is not created after first mouse.","By adding to and subtracting from the initial selection,","this option allows declaring extra outlines of the selection."].join(" ")},line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:1,dflt:1,editType:"none",description:"Sets the line width (in px)."},dash:Nie({},Rie,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:"Sets the color filling the active selection' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active selection."},editType:"none"}},rx=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}},ax=Fr,jie=Lm,Im=ca,v4=Pie,b4=Bie,Vie=rx,x4=Zn.extendFlat,Dm=ax({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});Dm.family.dflt='"Open Sans", verdana, arial, sans-serif',Dm.size.dflt=12,Dm.color.dflt=Im.defaultLine;var xf={font:Dm,title:{text:{valType:"string",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:ax({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:x4(Vie({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether the title can automatically push the figure margins.","If `yref='paper'` then the margin will expand to ensure that the title doesn’t","overlap with the edges of the container. If `yref='container'` then the margins","will ensure that the title doesn’t overlap with the plot area, tick labels,","and axis titles. If `automargin=true` and the margins need to be expanded,","then y will be set to a default 1 and yanchor will be set to an appropriate","default to ensure that minimal margin space is needed. Note that when `yref='paper'`,","only 1 or 0 are allowed y values. Invalid values will be reset to the default 1."].join(" ")},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum width of the plot with margin.automargin applied (in px)"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum height of the plot with margin.automargin applied (in px)"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:Im.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:Im.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:Im.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:v4.newshape,activeshape:v4.activeshape,newselection:b4.newselection,activeselection:b4.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:x4({},jie.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:ax({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}};(function(e){var t=ou,n=ex,r=Q3,a=Os,o=Em.addStyleRule,i=Zn,l=ti,s=xf,u=i.extendFlat,d=i.extendDeepAll;e.modules={},e.allCategories={},e.allTypes=[],e.subplotsRegistry={},e.transformsRegistry={},e.componentsRegistry={},e.layoutArrayContainers=[],e.layoutArrayRegexes=[],e.traceLayoutAttributes={},e.localeRegistry={},e.apiMethodRegistry={},e.collectableSubplotTypes=null,e.register=function(S){if(e.collectableSubplotTypes=null,S)S&&!Array.isArray(S)&&(S=[S]);else throw new Error("No argument passed to Plotly.register.");for(var T=0;T<S.length;T++){var C=S[T];if(!C)throw new Error("Invalid module was attempted to be registered!");switch(C.moduleType){case"trace":f(C);break;case"transform":h(C);break;case"component":g(C);break;case"locale":y(C);break;case"apiMethod":var A=C.name;e.apiMethodRegistry[A]=C.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},e.getModule=function(S){var T=e.modules[_(S)];return T?T._module:!1},e.traceIs=function(S,T){if(S=_(S),S==="various")return!1;var C=e.modules[S];return C||(S&&t.log("Unrecognized trace type "+S+"."),C=e.modules[l.type.dflt]),!!C.categories[T]},e.getTransformIndices=function(S,T){for(var C=[],A=S.transforms||[],O=0;O<A.length;O++)A[O].type===T&&C.push(O);return C},e.hasTransform=function(S,T){for(var C=S.transforms||[],A=0;A<C.length;A++)if(C[A].type===T)return!0;return!1},e.getComponentMethod=function(S,T){var C=e.componentsRegistry[S];return C&&C[T]||n},e.call=function(){var S=arguments[0],T=[].slice.call(arguments,1);return e.apiMethodRegistry[S].apply(null,T)};function f(S){var T=S.name,C=S.categories,A=S.meta;if(e.modules[T]){t.log("Type "+T+" already registered");return}e.subplotsRegistry[S.basePlotModule.name]||p(S.basePlotModule);for(var O={},F=0;F<C.length;F++)O[C[F]]=!0,e.allCategories[C[F]]=!0;e.modules[T]={_module:S,categories:O},A&&Object.keys(A).length&&(e.modules[T].meta=A),e.allTypes.push(T);for(var R in e.componentsRegistry)v(R,T);S.layoutAttributes&&u(e.traceLayoutAttributes,S.layoutAttributes);var N=S.basePlotModule,B=N.name;if(B==="mapbox"){var V=N.constants.styleRules;for(var Z in V)o(".js-plotly-plot .plotly .mapboxgl-"+Z,V[Z])}(B==="geo"||B==="mapbox")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function p(S){var T=S.name;if(e.subplotsRegistry[T]){t.log("Plot type "+T+" already registered.");return}b(S),e.subplotsRegistry[T]=S;for(var C in e.componentsRegistry)k(C,S.name)}function g(S){if(typeof S.name!="string")throw new Error("Component module *name* must be a string.");var T=S.name;e.componentsRegistry[T]=S,S.layoutAttributes&&(S.layoutAttributes._isLinkedToArray&&r(e.layoutArrayContainers,T),b(S));for(var C in e.modules)v(T,C);for(var A in e.subplotsRegistry)k(T,A);for(var O in e.transformsRegistry)x(T,O);S.schema&&S.schema.layout&&d(s,S.schema.layout)}function h(S){if(typeof S.name!="string")throw new Error("Transform module *name* must be a string.");var T="Transform module "+S.name,C=typeof S.transform=="function",A=typeof S.calcTransform=="function";if(!C&&!A)throw new Error(T+" is missing a *transform* or *calcTransform* method.");C&&A&&t.log([T+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),a(S.attributes)||t.log(T+" registered without an *attributes* object."),typeof S.supplyDefaults!="function"&&t.log(T+" registered without a *supplyDefaults* method."),e.transformsRegistry[S.name]=S;for(var O in e.componentsRegistry)x(O,S.name)}function y(S){var T=S.name,C=T.split("-")[0],A=S.dictionary,O=S.format,F=A&&Object.keys(A).length,R=O&&Object.keys(O).length,N=e.localeRegistry,B=N[T];if(B||(N[T]=B={}),C!==T){var V=N[C];V||(N[C]=V={}),F&&V.dictionary===B.dictionary&&(V.dictionary=A),R&&V.format===B.format&&(V.format=O)}F&&(B.dictionary=A),R&&(B.format=O)}function b(S){if(S.layoutAttributes){var T=S.layoutAttributes._arrayAttrRegexps;if(T)for(var C=0;C<T.length;C++)r(e.layoutArrayRegexes,T[C])}}function v(S,T){var C=e.componentsRegistry[S].schema;if(!(!C||!C.traces)){var A=C.traces[T];A&&d(e.modules[T]._module.attributes,A)}}function x(S,T){var C=e.componentsRegistry[S].schema;if(!(!C||!C.transforms)){var A=C.transforms[T];A&&d(e.transformsRegistry[T].attributes,A)}}function k(S,T){var C=e.componentsRegistry[S].schema;if(!(!C||!C.subplots)){var A=e.subplotsRegistry[T],O=A.layoutAttributes,F=A.attr==="subplot"?A.name:A.attr;Array.isArray(F)&&(F=F[0]);var R=C.subplots[F];O&&R&&d(O,R)}}function _(S){return typeof S=="object"&&(S=S.type),S}})(Dt),function(e){var t=ff.timeFormat,n=en,r=ou,a=mf.mod,o=Gn,i=o.BADNUM,l=o.ONEDAY,s=o.ONEHOUR,u=o.ONEMIN,d=o.ONESEC,f=o.EPOCHJD,p=Dt,g=ff.utcFormat,h=/^\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,y=/^\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,b=new Date().getFullYear()-70;function v(I){return I&&p.componentsRegistry.calendars&&typeof I=="string"&&I!=="gregorian"}e.dateTick0=function(I,P){var z=x(I,!!P);if(P<2)return z;var H=e.dateTime2ms(z,I);return H+=l*(P-1),e.ms2DateTime(H,0,I)};function x(I,P){return v(I)?P?p.getComponentMethod("calendars","CANONICAL_SUNDAY")[I]:p.getComponentMethod("calendars","CANONICAL_TICK")[I]:P?"2000-01-02":"2000-01-01"}e.dfltRange=function(I){return v(I)?p.getComponentMethod("calendars","DFLTRANGE")[I]:["2000-01-01","2001-01-01"]},e.isJSDate=function(I){return typeof I=="object"&&I!==null&&typeof I.getTime=="function"};var k,_;e.dateTime2ms=function(I,P){if(e.isJSDate(I)){var z=I.getTimezoneOffset()*u,H=(I.getUTCMinutes()-I.getMinutes())*u+(I.getUTCSeconds()-I.getSeconds())*d+(I.getUTCMilliseconds()-I.getMilliseconds());if(H){var j=3*u;z=z-j/2+a(H-z+j/2,j)}return I=Number(I)-z,I>=k&&I<=_?I:i}if(typeof I!="string"&&typeof I!="number")return i;I=String(I);var q=v(P),$=I.charAt(0);q&&($==="G"||$==="g")&&(I=I.substr(1),P="");var ne=q&&P.substr(0,7)==="chinese",te=I.match(ne?y:h);if(!te)return i;var ee=te[1],se=te[3]||"1",U=Number(te[5]||1),Y=Number(te[7]||0),J=Number(te[9]||0),re=Number(te[11]||0);if(q){if(ee.length===2)return i;ee=Number(ee);var oe;try{var he=p.getComponentMethod("calendars","getCal")(P);if(ne){var ve=se.charAt(se.length-1)==="i";se=parseInt(se,10),oe=he.newDate(ee,he.toMonthIndex(ee,se,ve),U)}else oe=he.newDate(ee,Number(se),U)}catch{return i}return oe?(oe.toJD()-f)*l+Y*s+J*u+re*d:i}ee.length===2?ee=(Number(ee)+2e3-b)%100+b:ee=Number(ee),se-=1;var ge=new Date(Date.UTC(2e3,se,U,Y,J));return ge.setUTCFullYear(ee),ge.getUTCMonth()!==se||ge.getUTCDate()!==U?i:ge.getTime()+re*d},k=e.MIN_MS=e.dateTime2ms("-9999"),_=e.MAX_MS=e.dateTime2ms("9999-12-31 23:59:59.9999"),e.isDateTime=function(I,P){return e.dateTime2ms(I,P)!==i};function S(I,P){return String(I+Math.pow(10,P)).substr(1)}var T=90*l,C=3*s,A=5*u;e.ms2DateTime=function(I,P,z){if(typeof I!="number"||!(I>=k&&I<=_))return i;P||(P=0);var H=Math.floor(a(I+.05,1)*10),j=Math.round(I-H/10),q,$,ne,te,ee,se;if(v(z)){var U=Math.floor(j/l)+f,Y=Math.floor(a(I,l));try{q=p.getComponentMethod("calendars","getCal")(z).fromJD(U).formatDate("yyyy-mm-dd")}catch{q=g("G%Y-%m-%d")(new Date(j))}if(q.charAt(0)==="-")for(;q.length<11;)q="-0"+q.substr(1);else for(;q.length<10;)q="0"+q;$=P<T?Math.floor(Y/s):0,ne=P<T?Math.floor(Y%s/u):0,te=P<C?Math.floor(Y%u/d):0,ee=P<A?Y%d*10+H:0}else se=new Date(j),q=g("%Y-%m-%d")(se),$=P<T?se.getUTCHours():0,ne=P<T?se.getUTCMinutes():0,te=P<C?se.getUTCSeconds():0,ee=P<A?se.getUTCMilliseconds()*10+H:0;return O(q,$,ne,te,ee)},e.ms2DateTimeLocal=function(I){if(!(I>=k+l&&I<=_-l))return i;var P=Math.floor(a(I+.05,1)*10),z=new Date(Math.round(I-P/10)),H=t("%Y-%m-%d")(z),j=z.getHours(),q=z.getMinutes(),$=z.getSeconds(),ne=z.getUTCMilliseconds()*10+P;return O(H,j,q,$,ne)};function O(I,P,z,H,j){if((P||z||H||j)&&(I+=" "+S(P,2)+":"+S(z,2),(H||j)&&(I+=":"+S(H,2),j))){for(var q=4;j%10===0;)q-=1,j/=10;I+="."+S(j,q)}return I}e.cleanDate=function(I,P,z){if(I===i)return P;if(e.isJSDate(I)||typeof I=="number"&&isFinite(I)){if(v(z))return r.error("JS Dates and milliseconds are incompatible with world calendars",I),P;if(I=e.ms2DateTimeLocal(+I),!I&&P!==void 0)return P}else if(!e.isDateTime(I,z))return r.error("unrecognized date",I),P;return I};var F=/%\d?f/g,R=/%h/g,N={1:"1",2:"1",3:"2",4:"2"};function B(I,P,z,H){I=I.replace(F,function(q){var $=Math.min(+q.charAt(1)||6,6),ne=(P/1e3%1+2).toFixed($).substr(2).replace(/0+$/,"")||"0";return ne});var j=new Date(Math.floor(P+.05));if(I=I.replace(R,function(){return N[z("%q")(j)]}),v(H))try{I=p.getComponentMethod("calendars","worldCalFmt")(I,P,H)}catch{return"Invalid"}return z(I)(j)}var V=[59,59.9,59.99,59.999,59.9999];function Z(I,P){var z=a(I+.05,l),H=S(Math.floor(z/s),2)+":"+S(a(Math.floor(z/u),60),2);if(P!=="M"){n(P)||(P=0);var j=Math.min(a(I/d,60),V[P]),q=(100+j).toFixed(P).substr(1);P>0&&(q=q.replace(/0+$/,"").replace(/[\.]$/,"")),H+=":"+q}return H}e.formatDate=function(I,P,z,H,j,q){if(j=v(j)&&j,!P)if(z==="y")P=q.year;else if(z==="m")P=q.month;else if(z==="d")P=q.dayMonth+`
403
+ `+q.year;else return Z(I,z)+`
404
+ `+B(q.dayMonthYear,I,H,j);return B(P,I,H,j)};var G=3*l;e.incrementMonth=function(I,P,z){z=v(z)&&z;var H=a(I,l);if(I=Math.round(I-H),z)try{var j=Math.round(I/l)+f,q=p.getComponentMethod("calendars","getCal")(z),$=q.fromJD(j);return P%12?q.add($,P,"m"):q.add($,P/12,"y"),($.toJD()-f)*l+H}catch{r.error("invalid ms "+I+" in calendar "+z)}var ne=new Date(I+G);return ne.setUTCMonth(ne.getUTCMonth()+P)+H-G},e.findExactDates=function(I,P){for(var z=0,H=0,j=0,q=0,$,ne,te=v(P)&&p.getComponentMethod("calendars","getCal")(P),ee=0;ee<I.length;ee++){if(ne=I[ee],!n(ne)){q++;continue}if(!(ne%l))if(te)try{$=te.fromJD(ne/l+f),$.day()===1?$.month()===1?z++:H++:j++}catch{}else $=new Date(ne),$.getUTCDate()===1?$.getUTCMonth()===0?z++:H++:j++}H+=z,j+=H;var se=I.length-q;return{exactYears:z/se,exactMonths:H/se,exactDays:j/se}}}(W3);var ox={},w4=function(e){return e};(function(e){var t=en,n=ou,r=w4,a=Gn.BADNUM,o=1e-9;e.findBin=function(d,f,p){if(t(f.start))return p?Math.ceil((d-f.start)/f.size-o)-1:Math.floor((d-f.start)/f.size+o);var g=0,h=f.length,y=0,b=h>1?(f[h-1]-f[0])/(h-1):1,v,x;for(b>=0?x=p?i:l:x=p?u:s,d+=b*o*(p?-1:1)*(b>=0?1:-1);g<h&&y++<100;)v=Math.floor((g+h)/2),x(f[v],d)?g=v+1:h=v;return y>90&&n.log("Long binary search..."),g-1};function i(d,f){return d<f}function l(d,f){return d<=f}function s(d,f){return d>f}function u(d,f){return d>=f}e.sorterAsc=function(d,f){return d-f},e.sorterDes=function(d,f){return f-d},e.distinctVals=function(d){var f=d.slice();f.sort(e.sorterAsc);var p;for(p=f.length-1;p>-1&&f[p]===a;p--);for(var g=f[p]-f[0]||1,h=g/(p||1)/1e4,y=[],b,v=0;v<=p;v++){var x=f[v],k=x-b;b===void 0?(y.push(x),b=x):k>h&&(g=Math.min(g,k),y.push(x),b=x)}return{vals:y,minDiff:g}},e.roundUp=function(d,f,p){for(var g=0,h=f.length-1,y,b=0,v=p?0:1,x=p?1:0,k=p?Math.ceil:Math.floor;g<h&&b++<100;)y=k((g+h)/2),f[y]<=d?g=y+v:h=y-x;return f[g]},e.sort=function(d,f){for(var p=0,g=0,h=1;h<d.length;h++){var y=f(d[h],d[h-1]);if(y<0?p=1:y>0&&(g=1),p&&g)return d.sort(f)}return g?d:d.reverse()},e.findIndexOfMin=function(d,f){f=f||r;for(var p=1/0,g,h=0;h<d.length;h++){var y=f(d[h]);y<p&&(p=y,g=h)}return g}})(ox);var _4=function(e){return Object.keys(e).sort()},k4={};(function(e){var t=en,n=$n.isArrayOrTypedArray;e.aggNums=function(r,a,o,i){var l,s;if((!i||i>o.length)&&(i=o.length),t(a)||(a=!1),n(o[0])){for(s=new Array(i),l=0;l<i;l++)s[l]=e.aggNums(r,a,o[l]);o=s}for(l=0;l<i;l++)t(a)?t(o[l])&&(a=r(+a,+o[l])):a=o[l];return a},e.len=function(r){return e.aggNums(function(a){return a+1},0,r)},e.mean=function(r,a){return a||(a=e.len(r)),e.aggNums(function(o,i){return o+i},0,r)/a},e.midRange=function(r){if(!(r===void 0||r.length===0))return(e.aggNums(Math.max,null,r)+e.aggNums(Math.min,null,r))/2},e.variance=function(r,a,o){return a||(a=e.len(r)),t(o)||(o=e.mean(r,a)),e.aggNums(function(i,l){return i+Math.pow(l-o,2)},0,r)/a},e.stdev=function(r,a,o){return Math.sqrt(e.variance(r,a,o))},e.median=function(r){var a=r.slice().sort();return e.interp(a,.5)},e.interp=function(r,a){if(!t(a))throw"n should be a finite number";if(a=a*r.length-.5,a<0)return r[0];if(a>r.length-1)return r[r.length-1];var o=a%1;return o*r[Math.ceil(a)]+(1-o)*r[Math.floor(a)]}})(k4);var T4=mf,ix=T4.mod,Hie=T4.modHalf,wf=Math.PI,Al=2*wf;function Uie(e){return e/180*wf}function qie(e){return e/wf*180}function lx(e){return Math.abs(e[1]-e[0])>Al-1e-14}function S4(e,t){return Hie(t-e,Al)}function Wie(e,t){return Math.abs(S4(e,t))}function A4(e,t){if(lx(t))return!0;var n,r;t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),n=ix(n,Al),r=ix(r,Al),n>r&&(r+=Al);var a=ix(e,Al),o=a+Al;return a>=n&&a<=r||o>=n&&o<=r}function Gie(e,t,n,r){if(!A4(t,r))return!1;var a,o;return n[0]<n[1]?(a=n[0],o=n[1]):(a=n[1],o=n[0]),e>=a&&e<=o}function sx(e,t,n,r,a,o,i){a=a||0,o=o||0;var l=lx([n,r]),s,u,d,f,p;l?(s=0,u=wf,d=Al):n<r?(s=n,d=r):(s=r,d=n),e<t?(f=e,p=t):(f=t,p=e);function g(v,x){return[v*Math.cos(x)+a,o-v*Math.sin(x)]}var h=Math.abs(d-s)<=wf?0:1;function y(v,x,k){return"A"+[v,v]+" "+[0,h,k]+" "+g(v,x)}var b;return l?f===null?b="M"+g(p,s)+y(p,u,0)+y(p,d,0)+"Z":b="M"+g(f,s)+y(f,u,0)+y(f,d,0)+"ZM"+g(p,s)+y(p,u,1)+y(p,d,1)+"Z":f===null?(b="M"+g(p,s)+y(p,d,0),i&&(b+="L0,0Z")):b="M"+g(f,s)+"L"+g(p,s)+y(p,d,0)+"L"+g(f,d)+y(f,s,1)+"Z",b}function Zie(e,t,n,r,a){return sx(null,e,t,n,r,a,0)}function Kie(e,t,n,r,a){return sx(null,e,t,n,r,a,1)}function Yie(e,t,n,r,a,o){return sx(e,t,n,r,a,o,1)}var Jie={deg2rad:Uie,rad2deg:qie,angleDelta:S4,angleDist:Wie,isFullCircle:lx,isAngleInsideSector:A4,isPtInsideSector:Gie,pathArc:Zie,pathSector:Kie,pathAnnulus:Yie},zs={};zs.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=1/3},zs.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>1/3&&e.x<2/3},zs.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=2/3},zs.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=2/3},zs.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>1/3&&e.y<2/3},zs.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=1/3};var Fs={},cx=mf.mod;Fs.segmentsIntersect=M4;function M4(e,t,n,r,a,o,i,l){var s=n-e,u=a-e,d=i-a,f=r-t,p=o-t,g=l-o,h=s*g-d*f;if(h===0)return null;var y=(u*g-d*p)/h,b=(u*f-s*p)/h;return b<0||b>1||y<0||y>1?null:{x:e+s*y,y:t+f*y}}Fs.segmentDistance=function(e,t,n,r,a,o,i,l){if(M4(e,t,n,r,a,o,i,l))return 0;var s=n-e,u=r-t,d=i-a,f=l-o,p=s*s+u*u,g=d*d+f*f,h=Math.min(Pm(s,u,p,a-e,o-t),Pm(s,u,p,i-e,l-t),Pm(d,f,g,e-a,t-o),Pm(d,f,g,n-a,r-o));return Math.sqrt(h)};function Pm(e,t,n,r,a){var o=r*e+a*t;if(o<0)return r*r+a*a;if(o>n){var i=r-e,l=a-t;return i*i+l*l}else{var s=r*t-a*e;return s*s/n}}var Rm,ux,C4;Fs.getTextLocation=function(e,t,n,r){if((e!==ux||r!==C4)&&(Rm={},ux=e,C4=r),Rm[n])return Rm[n];var a=e.getPointAtLength(cx(n-r/2,t)),o=e.getPointAtLength(cx(n+r/2,t)),i=Math.atan((o.y-a.y)/(o.x-a.x)),l=e.getPointAtLength(cx(n,t)),s=(l.x*4+a.x+o.x)/6,u=(l.y*4+a.y+o.y)/6,d={x:s,y:u,theta:i};return Rm[n]=d,d},Fs.clearLocationCache=function(){ux=null},Fs.getVisibleSegment=function(e,t,n){var r=t.left,a=t.right,o=t.top,i=t.bottom,l=0,s=e.getTotalLength(),u=s,d,f;function p(h){var y=e.getPointAtLength(h);h===0?d=y:h===s&&(f=y);var b=y.x<r?r-y.x:y.x>a?y.x-a:0,v=y.y<o?o-y.y:y.y>i?y.y-i:0;return Math.sqrt(b*b+v*v)}for(var g=p(l);g;){if(l+=g+n,l>u)return;g=p(l)}for(g=p(u);g;){if(u-=g+n,l>u)return;g=p(u)}return{min:l,max:u,len:u-l,total:s,isClosed:l===0&&u===s&&Math.abs(d.x-f.x)<.1&&Math.abs(d.y-f.y)<.1}},Fs.findPointOnPath=function(e,t,n,r){r=r||{};for(var a=r.pathLength||e.getTotalLength(),o=r.tolerance||.001,i=r.iterationLimit||30,l=e.getPointAtLength(0)[n]>e.getPointAtLength(a)[n]?-1:1,s=0,u=0,d=a,f,p,g;s<i;){if(f=(u+d)/2,p=e.getPointAtLength(f),g=p[n]-t,Math.abs(g)<o)return p;l*g>0?d=f:u=f,s++}return p};var Nm={};(function(e){var t={};e.throttle=function(r,a,o){var i=t[r],l=Date.now();if(!i){for(var s in t)t[s].ts<l-6e4&&delete t[s];i=t[r]={ts:0,timer:null}}n(i);function u(){o(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}if(l>i.ts+a){u();return}i.timer=setTimeout(function(){u(),i.timer=null},a)},e.done=function(r){var a=t[r];return!a||!a.timer?Promise.resolve():new Promise(function(o){var i=a.onDone;a.onDone=function(){i&&i(),o(),a.onDone=null}})},e.clear=function(r){if(r)n(t[r]),delete t[r];else for(var a in t)e.clear(a)};function n(r){r&&r.timer!==null&&(clearTimeout(r.timer),r.timer=null)}})(Nm);var Qie=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)},Bm={exports:{}};Bm.exports=dx,Bm.exports.isMobile=dx,Bm.exports.default=dx;const Xie=/(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|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,$ie=/CrOS/,ele=/android|ipad|playbook|silk/i;function dx(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let n=Xie.test(t)&&!$ie.test(t)||!!e.tablet&&ele.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(n=!0),n}var tle=Bm.exports,nle=en,rle=tle,ale=function(e){var t;if(e&&e.hasOwnProperty("userAgent")?t=e.userAgent:t=ole(),typeof t!="string")return!0;var n=rle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var r=t.split(" "),a=1;a<r.length;a++){var o=r[a];if(o.indexOf("Safari")!==-1)for(var i=a-1;i>-1;i--){var l=r[i];if(l.substr(0,8)==="Version/"){var s=l.substr(8).split(".")[0];if(nle(s)&&(s=+s),s>=13)return!0}}}return n};function ole(){var e;return typeof navigator<"u"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}var ile=$t,lle=function(e,t,n){var r=e.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});r.exit().remove(),r.enter().append("g").attr("class",n),r.order();var a=e.classed("rangeplot")?"nodeRangePlot3":"node3";return r.each(function(o){o[0][a]=ile.select(this)}),r},sle=Dt,cle=function(e,t){for(var n=e._context.locale,r=0;r<2;r++){for(var a=e._context.locales,o=0;o<2;o++){var i=(a[n]||{}).dictionary;if(i){var l=i[t];if(l)return l}a=sle.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t},ule=function(e){for(var t={},n=[],r=0,a=0;a<e.length;a++){var o=e[a];t[o]!==1&&(t[o]=1,n[r++]=o)}return n},dle=function(e){for(var t=hle(e)?ple:fle,n=[],r=0;r<e.length;r++){var a=e[r];t(a)&&n.push(a)}return n};function fle(e){return e.visible===!0}function ple(e){var t=e[0].trace;return t.visible===!0&&t._length!==0}function hle(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}var mle=function(e,t){if(!t)return e;var n=1/Math.abs(t),r=n>1?(n*e+n*t)/n:e+t,a=String(r).length;if(a>16){var o=String(t).length,i=String(e).length;if(a>=i+o){var l=parseFloat(r).toPrecision(12);l.indexOf("e+")===-1&&(r=+l)}}return r},gle=en,yle=Gn.BADNUM,vle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g,ble=function(e){return typeof e=="string"&&(e=e.replace(vle,"")),gle(e)?Number(e):yle},_f=$t,xle=ff.utcFormat,wle=A3.format,O4=en,E4=Gn,L4=E4.FP_SAFE,_le=-L4,z4=E4.BADNUM,Ae=AC.exports={};Ae.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:e==="0.f"?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var F4={};Ae.warnBadFormat=function(e){var t=String(e);F4[t]||(F4[t]=1,Ae.warn('encountered bad format: "'+t+'"'))},Ae.noFormat=function(e){return String(e)},Ae.numberFormat=function(e){var t;try{t=wle(Ae.adjustFormat(e))}catch{return Ae.warnBadFormat(e),Ae.noFormat}return t},Ae.nestedProperty=Ub,Ae.keyedContainer=Bae,Ae.relativeAttr=Hae,Ae.isPlainObject=Os,Ae.toLogRange=Wb,Ae.relinkPrivateKeys=qae;var Ml=$n;Ae.isArrayBuffer=Ml.isArrayBuffer,Ae.isTypedArray=Ml.isTypedArray,Ae.isArrayOrTypedArray=Ml.isArrayOrTypedArray,Ae.isArray1D=Ml.isArray1D,Ae.ensureArray=Ml.ensureArray,Ae.concat=Ml.concat,Ae.maxRowLength=Ml.maxRowLength,Ae.minRowLength=Ml.minRowLength;var I4=mf;Ae.mod=I4.mod,Ae.modHalf=I4.modHalf;var Cl=R3;Ae.valObjectMeta=Cl.valObjectMeta,Ae.coerce=Cl.coerce,Ae.coerce2=Cl.coerce2,Ae.coerceFont=Cl.coerceFont,Ae.coercePattern=Cl.coercePattern,Ae.coerceHoverinfo=Cl.coerceHoverinfo,Ae.coerceSelectionMarkerOpacity=Cl.coerceSelectionMarkerOpacity,Ae.validate=Cl.validate;var Ma=W3;Ae.dateTime2ms=Ma.dateTime2ms,Ae.isDateTime=Ma.isDateTime,Ae.ms2DateTime=Ma.ms2DateTime,Ae.ms2DateTimeLocal=Ma.ms2DateTimeLocal,Ae.cleanDate=Ma.cleanDate,Ae.isJSDate=Ma.isJSDate,Ae.formatDate=Ma.formatDate,Ae.incrementMonth=Ma.incrementMonth,Ae.dateTick0=Ma.dateTick0,Ae.dfltRange=Ma.dfltRange,Ae.findExactDates=Ma.findExactDates,Ae.MIN_MS=Ma.MIN_MS,Ae.MAX_MS=Ma.MAX_MS;var Is=ox;Ae.findBin=Is.findBin,Ae.sorterAsc=Is.sorterAsc,Ae.sorterDes=Is.sorterDes,Ae.distinctVals=Is.distinctVals,Ae.roundUp=Is.roundUp,Ae.sort=Is.sort,Ae.findIndexOfMin=Is.findIndexOfMin,Ae.sortObjectKeys=_4;var Ol=k4;Ae.aggNums=Ol.aggNums,Ae.len=Ol.len,Ae.mean=Ol.mean,Ae.median=Ol.median,Ae.midRange=Ol.midRange,Ae.variance=Ol.variance,Ae.stdev=Ol.stdev,Ae.interp=Ol.interp;var Ao=Om;Ae.init2dArray=Ao.init2dArray,Ae.transposeRagged=Ao.transposeRagged,Ae.dot=Ao.dot,Ae.translationMatrix=Ao.translationMatrix,Ae.rotationMatrix=Ao.rotationMatrix,Ae.rotationXYMatrix=Ao.rotationXYMatrix,Ae.apply3DTransform=Ao.apply3DTransform,Ae.apply2DTransform=Ao.apply2DTransform,Ae.apply2DTransform2=Ao.apply2DTransform2,Ae.convertCssMatrix=Ao.convertCssMatrix,Ae.inverseTransformMatrix=Ao.inverseTransformMatrix;var ri=Jie;Ae.deg2rad=ri.deg2rad,Ae.rad2deg=ri.rad2deg,Ae.angleDelta=ri.angleDelta,Ae.angleDist=ri.angleDist,Ae.isFullCircle=ri.isFullCircle,Ae.isAngleInsideSector=ri.isAngleInsideSector,Ae.isPtInsideSector=ri.isPtInsideSector,Ae.pathArc=ri.pathArc,Ae.pathSector=ri.pathSector,Ae.pathAnnulus=ri.pathAnnulus;var iu=zs;Ae.isLeftAnchor=iu.isLeftAnchor,Ae.isCenterAnchor=iu.isCenterAnchor,Ae.isRightAnchor=iu.isRightAnchor,Ae.isTopAnchor=iu.isTopAnchor,Ae.isMiddleAnchor=iu.isMiddleAnchor,Ae.isBottomAnchor=iu.isBottomAnchor;var lu=Fs;Ae.segmentsIntersect=lu.segmentsIntersect,Ae.segmentDistance=lu.segmentDistance,Ae.getTextLocation=lu.getTextLocation,Ae.clearLocationCache=lu.clearLocationCache,Ae.getVisibleSegment=lu.getVisibleSegment,Ae.findPointOnPath=lu.findPointOnPath;var jm=Zn;Ae.extendFlat=jm.extendFlat,Ae.extendDeep=jm.extendDeep,Ae.extendDeepAll=jm.extendDeepAll,Ae.extendDeepNoArrays=jm.extendDeepNoArrays;var fx=ou;Ae.log=fx.log,Ae.warn=fx.warn,Ae.error=fx.error;var kle=nu;Ae.counterRegex=kle.counter;var px=Nm;Ae.throttle=px.throttle,Ae.throttleDone=px.done,Ae.clearThrottle=px.clear;var ai=Em;Ae.getGraphDiv=ai.getGraphDiv,Ae.isPlotDiv=ai.isPlotDiv,Ae.removeElement=ai.removeElement,Ae.addStyleRule=ai.addStyleRule,Ae.addRelatedStyleRule=ai.addRelatedStyleRule,Ae.deleteRelatedStyleRule=ai.deleteRelatedStyleRule,Ae.getFullTransformMatrix=ai.getFullTransformMatrix,Ae.getElementTransformMatrix=ai.getElementTransformMatrix,Ae.getElementAndAncestors=ai.getElementAndAncestors,Ae.equalDomRects=ai.equalDomRects,Ae.clearResponsive=Qie,Ae.preserveDrawingBuffer=ale,Ae.makeTraceGroups=lle,Ae._=cle,Ae.notifier=J3,Ae.filterUnique=ule,Ae.filterVisible=dle,Ae.pushUnique=Q3,Ae.increment=mle,Ae.cleanNumber=ble,Ae.ensureNumber=function(e){return O4(e)?(e=Number(e),e>L4||e<_le?z4:e):z4},Ae.isIndex=function(e,t){return t!==void 0&&e>=t?!1:O4(e)&&e>=0&&e%1===0},Ae.noop=ex,Ae.identity=w4,Ae.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},Ae.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var o=t[a],i=Ae.nestedProperty(e,o.replace("?",n)),l=Ae.nestedProperty(e,o.replace("?",r)),s=i.get();i.set(l.get()),l.set(s)}},Ae.raiseToTop=function(e){e.parentNode.appendChild(e)},Ae.cancelTransition=function(e){return e.transition().duration(0)},Ae.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},Ae.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},Ae.simpleMap=function(e,t,n,r,a){for(var o=e.length,i=new Array(o),l=0;l<o;l++)i[l]=t(e[l],n,r,a);return i},Ae.randstr=function e(t,n,r,a){if(r||(r=16),n===void 0&&(n=24),n<=0)return"0";var o=Math.log(Math.pow(2,n))/Math.log(r),i="",l,s,u;for(l=2;o===1/0;l*=2)o=Math.log(Math.pow(2,n/l))/Math.log(r)*l;var d=o-Math.floor(o);for(l=0;l<Math.floor(o);l++)u=Math.floor(Math.random()*r).toString(r),i=u+i;d&&(s=Math.pow(r,d),u=Math.floor(Math.random()*s).toString(r),i=u+i);var f=parseInt(i,r);return t&&t[i]||f!==1/0&&f>=Math.pow(2,n)?a>10?(Ae.warn("randstr failed uniqueness"),i):e(t,n,r,(a||0)+1):i},Ae.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={};return n.optionList=[],n._newoption=function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)},n["_"+t]=e,n},Ae.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var n=e.length,r=2*n,a=2*t-1,o=new Array(a),i=new Array(n),l,s,u,d;for(l=0;l<a;l++)o[l]=(1-Math.cos(Math.PI*(l+1)/t))/(2*t);for(l=0;l<n;l++){for(d=0,s=0;s<a;s++)u=l+s+1-t,u<-n?u-=r*Math.round(u/r):u>=r&&(u-=r*Math.floor(u/r)),u<0?u=-1-u:u>=n&&(u=r-1-u),d+=e[u]*o[s];i[l]=d}return i},Ae.syncOrAsync=function(e,t,n){var r,a;function o(){return Ae.syncOrAsync(e,t,n)}for(;e.length;)if(a=e.splice(0,1)[0],r=a(t),r&&r.then)return r.then(o);return n&&n(t)},Ae.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e},Ae.noneOrAll=function(e,t,n){if(e){var r=!1,a=!0,o,i;for(o=0;o<n.length;o++)i=e[n[o]],i!=null?r=!0:a=!1;if(r&&!a)for(o=0;o<n.length;o++)e[n[o]]=t[n[o]]}},Ae.mergeArray=function(e,t,n,r){var a=typeof r=="function";if(Ae.isArrayOrTypedArray(e))for(var o=Math.min(e.length,t.length),i=0;i<o;i++){var l=e[i];t[i][n]=a?r(l):l}},Ae.mergeArrayCastPositive=function(e,t,n){return Ae.mergeArray(e,t,n,function(r){var a=+r;return isFinite(a)&&a>0?a:0})},Ae.fillArray=function(e,t,n,r){if(r=r||Ae.identity,Ae.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][n]=r(e[a])},Ae.castOption=function(e,t,n,r){r=r||Ae.identity;var a=Ae.nestedProperty(e,n).get();return Ae.isArrayOrTypedArray(a)?Array.isArray(t)&&Ae.isArrayOrTypedArray(a[t[0]])?r(a[t[0]][t[1]]):r(a[t]):a},Ae.extractOption=function(e,t,n,r){if(n in e)return e[n];var a=Ae.nestedProperty(t,r).get();if(!Array.isArray(a))return a};function D4(e){var t={};for(var n in e)for(var r=e[n],a=0;a<r.length;a++)t[r[a]]=+n;return t}Ae.tagSelected=function(e,t,n){var r=t.selectedpoints,a=t._indexToPoints,o;a&&(o=D4(a));function i(f){return f!==void 0&&f<e.length}for(var l=0;l<r.length;l++){var s=r[l];if(Ae.isIndex(s)||Ae.isArrayOrTypedArray(s)&&Ae.isIndex(s[0])&&Ae.isIndex(s[1])){var u=o?o[s]:s,d=n?n[u]:u;i(d)&&(e[d].selected=1)}}},Ae.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=D4(n),a=[],o=0;o<t.length;o++){var i=t[o];if(Ae.isIndex(i)){var l=r[i];Ae.isIndex(l)&&a.push(l)}}return a}else return t},Ae.getTargetArray=function(e,t){var n=t.target;if(typeof n=="string"&&n){var r=Ae.nestedProperty(e,n).get();return Ae.isArrayOrTypedArray(r)?r:!1}else if(Ae.isArrayOrTypedArray(n))return n;return!1};function P4(e,t,n){var r={};typeof t!="object"&&(t={});var a=n==="pieLike"?-1:3,o=Object.keys(e),i,l,s;for(i=0;i<o.length;i++)l=o[i],s=e[l],!(l.charAt(0)==="_"||typeof s=="function")&&(l==="module"?r[l]=s:Array.isArray(s)?l==="colorscale"||a===-1?r[l]=s.slice():r[l]=s.slice(0,a):Ae.isTypedArray(s)?a===-1?r[l]=s.subarray():r[l]=s.subarray(0,a):s&&typeof s=="object"?r[l]=P4(e[l],t[l],n):r[l]=s);for(o=Object.keys(t),i=0;i<o.length;i++)l=o[i],s=t[l],(typeof s!="object"||!(l in r)||typeof r[l]!="object")&&(r[l]=s);return r}Ae.minExtend=P4,Ae.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},Ae.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])!==-1)return!0;return!1},Ae.isIE=function(){return typeof window.navigator.msSaveBlob<"u"};var Tle=/Version\/[\d\.]+.*Safari/;Ae.isSafari=function(){return Tle.test(window.navigator.userAgent)};var Sle=/iPad|iPhone|iPod/;Ae.isIOS=function(){return Sle.test(window.navigator.userAgent)};var Ale=/Firefox\/(\d+)\.\d+/;Ae.getFirefoxVersion=function(){var e=Ale.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null},Ae.isD3Selection=function(e){return e instanceof _f.selection},Ae.ensureSingle=function(e,t,n,r){var a=e.select(t+(n?"."+n:""));if(a.size())return a;var o=e.append(t);return n&&o.classed(n,!0),r&&o.call(r),o},Ae.ensureSingleById=function(e,t,n,r){var a=e.select(t+"#"+n);if(a.size())return a;var o=e.append(t).attr("id",n);return r&&o.call(r),o},Ae.objectFromPath=function(e,t){for(var n=e.split("."),r,a=r={},o=0;o<n.length;o++){var i=n[o],l=null,s=n[o].match(/(.*)\[([0-9]+)\]/);s?(i=s[1],l=s[2],r=r[i]=[],o===n.length-1?r[l]=t:r[l]={},r=r[l]):(o===n.length-1?r[i]=t:r[i]={},r=r[i])}return a};var Mle=/^([^\[\.]+)\.(.+)?/,Cle=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Vm(e){return e.slice(0,2)==="__"}Ae.expandObjectPaths=function(e){var t,n,r,a,o,i,l;if(typeof e=="object"&&!Array.isArray(e)){for(n in e)if(e.hasOwnProperty(n))if(t=n.match(Mle)){if(a=e[n],r=t[1],Vm(r))continue;delete e[n],e[r]=Ae.extendDeepNoArrays(e[r]||{},Ae.objectFromPath(n,Ae.expandObjectPaths(a))[r])}else if(t=n.match(Cle)){if(a=e[n],r=t[1],Vm(r))continue;if(o=parseInt(t[2]),delete e[n],e[r]=e[r]||[],t[3]===".")l=t[4],i=e[r][o]=e[r][o]||{},Ae.extendDeepNoArrays(i,Ae.objectFromPath(l,Ae.expandObjectPaths(a)));else{if(Vm(r))continue;e[r][o]=Ae.expandObjectPaths(a)}}else{if(Vm(n))continue;e[n]=Ae.expandObjectPaths(e[n])}}return e},Ae.numSeparate=function(e,t,n){if(n||(n=!1),typeof t!="string"||t.length===0)throw new Error("Separator string required for formatting!");typeof e=="number"&&(e=String(e));var r=/(\d+)(\d{3})/,a=t.charAt(0),o=t.charAt(1),i=e.split("."),l=i[0],s=i.length>1?a+i[1]:"";if(o&&(i.length>1||l.length>4||n))for(;r.test(l);)l=l.replace(r,"$1"+o+"$2");return l+s},Ae.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var R4=/^\w*$/;Ae.templateString=function(e,t){var n={};return e.replace(Ae.TEMPLATE_STRING_REGEX,function(r,a){var o;return R4.test(a)?o=t[a]:(n[a]=n[a]||Ae.nestedProperty(t,a).get,o=n[a]()),Ae.isValidTextValue(o)?o:""})};var Ole={max:10,count:0,name:"hovertemplate"};Ae.hovertemplateString=function(){return hx.apply(Ole,arguments)};var Ele={max:10,count:0,name:"texttemplate"};Ae.texttemplateString=function(){return hx.apply(Ele,arguments)};var Lle=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function zle(e){var t=e.match(Lle);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Fle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ae.texttemplateStringForShapes=function(){return hx.apply(Fle,arguments)};var N4=/^[:|\|]/;function hx(e,t,n){var r=this,a=arguments;t||(t={});var o={};return e.replace(Ae.TEMPLATE_STRING_REGEX,function(i,l,s){var u=l==="xother"||l==="yother",d=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",p=l==="xother_"||l==="yother_",g=u||d||p||f,h=l;(d||f)&&(h=h.substring(1)),(p||f)&&(h=h.substring(0,h.length-1));var y=null,b=null;if(r.parseMultDiv){var v=zle(h);h=v.key,y=v.op,b=v.number}var x;if(g){if(x=t[h],x===void 0)return""}else{var k,_;for(_=3;_<a.length;_++)if(k=a[_],!!k){if(k.hasOwnProperty(h)){x=k[h];break}if(R4.test(h)||(x=Ae.nestedProperty(k,h).get(),x=o[h]||Ae.nestedProperty(k,h).get(),x&&(o[h]=x)),x!==void 0)break}}if(x!==void 0&&(y==="*"&&(x*=b),y==="/"&&(x/=b)),x===void 0&&r)return r.count<r.max&&(Ae.warn("Variable '"+h+"' in "+r.name+" could not be found!"),x=i),r.count===r.max&&Ae.warn("Too many "+r.name+" warnings - additional warnings will be suppressed"),r.count++,i;if(s){var S;if(s[0]===":"&&(S=n?n.numberFormat:Ae.numberFormat,x=S(s.replace(N4,""))(x)),s[0]==="|"){S=n?n.timeFormat:xle;var T=Ae.dateTime2ms(x);x=Ae.formatDate(T,s.replace(N4,""),!1,S)}}else{var C=h+"Label";t.hasOwnProperty(C)&&(x=t[C])}return g&&(x="("+x+")",(d||f)&&(x=" "+x),(p||f)&&(x=x+" ")),x})}var Hm=48,B4=57;Ae.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,a=0,o=0;o<n;o++){var i=e.charCodeAt(o)||0,l=t.charCodeAt(o)||0,s=i>=Hm&&i<=B4,u=l>=Hm&&l<=B4;if(s&&(r=10*r+i-Hm),u&&(a=10*a+l-Hm),!s||!u){if(r!==a)return r-a;if(i!==l)return i-l}}return a-r};var su=2e9;Ae.seedPseudoRandom=function(){su=2e9},Ae.pseudoRandom=function(){var e=su;return su=(69069*su+1)%4294967296,Math.abs(su-e)<429496729?Ae.pseudoRandom():su/4294967296},Ae.fillText=function(e,t,n){var r=Array.isArray(n)?function(i){n.push(i)}:function(i){n.text=i},a=Ae.extractOption(e,t,"htx","hovertext");if(Ae.isValidTextValue(a))return r(a);var o=Ae.extractOption(e,t,"tx","text");if(Ae.isValidTextValue(o))return r(o)},Ae.isValidTextValue=function(e){return e||e===0},Ae.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)n.indexOf(".")!==-1&&(n=n.replace("0%","%"),n=n.replace(".%","%"));return n},Ae.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||t==="none"},Ae.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},Ae.strRotate=function(e){return e?"rotate("+e+")":""},Ae.strScale=function(e){return e!==1?"scale("+e+")":""},Ae.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,a=e.targetX,o=e.targetY,i=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,Ae.strTranslate(a-u*(n+i),o-u*(r+l))+Ae.strScale(u)+(s?"rotate("+s+(t?"":" "+n+" "+r)+")":"")},Ae.setTransormAndDisplay=function(e,t){e.attr("transform",Ae.getTextTransform(t)),e.style("display",t.scale?null:"none")},Ae.ensureUniformFontSize=function(e,t){var n=Ae.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n},Ae.join2=function(e,t,n){var r=e.length;return r>1?e.slice(0,-1).join(t)+n+e[r-1]:e.join(t)},Ae.bigFont=function(e){return Math.round(1.2*e)};var j4=Ae.getFirefoxVersion(),Ile=j4!==null&&j4<86;Ae.getPositionFromD3Event=function(){return Ile?[_f.event.layerX,_f.event.layerY]:[_f.event.offsetX,_f.event.offsetY]};var Ge=AC.exports,Dle=Ge,V4={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding: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":"overflow:hidden;","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 .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","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;",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(var H4 in V4){var Ple=H4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");Dle.addStyleRule(Ple,V4[H4])}var An={},mx={},Rle=!0,Nle=Rle,gx;typeof tf.matchMedia=="function"?gx=!tf.matchMedia("(hover: none)").matches:gx=Nle;var U4=gx,yx={exports:{}},cu=typeof Reflect=="object"?Reflect:null,q4=cu&&typeof cu.apply=="function"?cu.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Um;cu&&typeof cu.ownKeys=="function"?Um=cu.ownKeys:Object.getOwnPropertySymbols?Um=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Um=function(e){return Object.getOwnPropertyNames(e)};function Ble(e){console&&console.warn&&console.warn(e)}var W4=Number.isNaN||function(e){return e!==e};function Mn(){Mn.init.call(this)}yx.exports=Mn,yx.exports.once=Ule,Mn.EventEmitter=Mn,Mn.prototype._events=void 0,Mn.prototype._eventsCount=0,Mn.prototype._maxListeners=void 0;var G4=10;function qm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Mn,"defaultMaxListeners",{enumerable:!0,get:function(){return G4},set:function(e){if(typeof e!="number"||e<0||W4(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");G4=e}}),Mn.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},Mn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||W4(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Z4(e){return e._maxListeners===void 0?Mn.defaultMaxListeners:e._maxListeners}Mn.prototype.getMaxListeners=function(){return Z4(this)},Mn.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r=e==="error",a=this._events;if(a!==void 0)r=r&&a.error===void 0;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var l=a[e];if(l===void 0)return!1;if(typeof l=="function")q4(l,this,t);else for(var s=l.length,u=X4(l,s),n=0;n<s;++n)q4(u[n],this,t);return!0};function K4(e,t,n,r){var a,o,i;if(qm(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),i===void 0)i=o[t]=n,++e._eventsCount;else if(typeof i=="function"?i=o[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),a=Z4(e),a>0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,Ble(l)}return e}Mn.prototype.addListener=function(e,t){return K4(this,e,t,!1)},Mn.prototype.on=Mn.prototype.addListener,Mn.prototype.prependListener=function(e,t){return K4(this,e,t,!0)};function jle(){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 Y4(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=jle.bind(r);return a.listener=n,r.wrapFn=a,a}Mn.prototype.once=function(e,t){return qm(t),this.on(e,Y4(this,e,t)),this},Mn.prototype.prependOnceListener=function(e,t){return qm(t),this.prependListener(e,Y4(this,e,t)),this},Mn.prototype.removeListener=function(e,t){var n,r,a,o,i;if(qm(t),r=this._events,r===void 0)return this;if(n=r[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Vle(n,a),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,i||t)}return this},Mn.prototype.off=Mn.prototype.removeListener,Mn.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var a=Object.keys(n),o;for(r=0;r<a.length;++r)o=a[r],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function J4(e,t,n){var r=e._events;if(r===void 0)return[];var a=r[t];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?Hle(a):X4(a,a.length)}Mn.prototype.listeners=function(e){return J4(this,e,!0)},Mn.prototype.rawListeners=function(e){return J4(this,e,!1)},Mn.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Q4.call(e,t)},Mn.prototype.listenerCount=Q4;function Q4(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Mn.prototype.eventNames=function(){return this._eventsCount>0?Um(this._events):[]};function X4(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function Vle(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Hle(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function Ule(e,t){return new Promise(function(n,r){function a(i){e.removeListener(t,o),r(i)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",a),n([].slice.call(arguments))}$4(e,t,o,{once:!0}),t!=="error"&&qle(e,a,{once:!0})})}function qle(e,t,n){typeof e.on=="function"&&$4(e,"error",t,n)}function $4(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(o){r.once&&e.removeEventListener(t,a),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var vx=yx.exports,bx=vx.EventEmitter,Wle={init:function(e){if(e._ev instanceof bx)return e;var t=new bx,n=new bx;return e._ev=t,e._internalEv=n,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(r,a){typeof jQuery<"u"&&jQuery(e).trigger(r,a),t.emit(r,a),n.emit(r,a)},e},triggerHandler:function(e,t,n){var r,a;typeof jQuery<"u"&&(r=jQuery(e).triggerHandler(t,n));var o=e._ev;if(!o)return r;var i=o._events[t];if(!i)return r;function l(u){if(u.listener){if(o.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(o,[n])}else return u.apply(o,[n])}i=Array.isArray(i)?i:[i];var s;for(s=0;s<i.length-1;s++)l(i[s]);return a=l(i[s]),r!==void 0?r:a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}},Wm=Wle,eO=Ge,Gle=ru.dfltConfig;function Zle(e,t){for(var n=[],r,a=0;a<t.length;a++)r=t[a],r===e?n[a]=r:typeof r=="object"?n[a]=Array.isArray(r)?eO.extendDeep([],r):eO.extendDeepAll({},r):n[a]=r;return n}var Zi={};Zi.add=function(e,t,n,r,a){var o,i;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},i=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(i,e.undoQueue.queue.length-i,o),e.undoQueue.index+=1):o=e.undoQueue.queue[i-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(n),o.redo.calls.push(r),o.redo.args.push(a)),e.undoQueue.queue.length>Gle.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},Zi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},Zi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},Zi.undo=function(e){var t,n;if(!(e.undoQueue===void 0||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)Zi.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},Zi.redo=function(e){var t,n;if(!(e.undoQueue===void 0||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)Zi.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}},Zi.plotDo=function(e,t,n){e.autoplay=!0,n=Zle(e,n),t.apply(null,n)};var Kle=Zi,uu={},tO={_isLinkedToArray:"frames_entry",group:{valType:"string",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}};(function(e){var t=Dt,n=Ge,r=ti,a=xf,o=tO,i=Lm,l=ru.configAttributes,s=Gi,u=n.extendDeepAll,d=n.isPlainObject,f=n.isArrayOrTypedArray,p=n.nestedProperty,g=n.valObjectMeta,h="_isSubplotObj",y="_isLinkedToArray",b="_arrayAttrRegexps",v="_deprecated",x=[h,y,b,v];e.IS_SUBPLOT_OBJ=h,e.IS_LINKED_TO_ARRAY=y,e.DEPRECATED=v,e.UNDERSCORE_ATTRS=x,e.get=function(){var G={};t.allTypes.forEach(function(P){G[P]=T(P)});var I={};return Object.keys(t.transformsRegistry).forEach(function(P){I[P]=A(P)}),{defs:{valObjects:g,metaKeys:x.concat(["description","role","editType","impliedEdits"]),editType:{traces:s.traces,layout:s.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:G,layout:C(),transforms:I,frames:O(),animation:F(i),config:F(l)}},e.crawl=function(G,I,P,z){var H=P||0;z=z||"",Object.keys(G).forEach(function(j){var q=G[j];if(x.indexOf(j)===-1){var $=(z?z+".":"")+j;I(q,j,G,H,$),!e.isValObject(q)&&d(q)&&j!=="impliedEdits"&&e.crawl(q,I,H+1,$)}})},e.isValObject=function(G){return G&&G.valType!==void 0},e.findArrayAttributes=function(G){var I=[],P=[],z=[],H,j;function q(U,Y,J,re){P=P.slice(0,re).concat([Y]),z=z.slice(0,re).concat([U&&U._isLinkedToArray]);var oe=U&&(U.valType==="data_array"||U.arrayOk===!0)&&!(P[re-1]==="colorbar"&&(Y==="ticktext"||Y==="tickvals"));oe&&$(H,0,"")}function $(U,Y,J){var re=U[P[Y]],oe=J+P[Y];if(Y===P.length-1)f(re)&&I.push(j+oe);else if(z[Y]){if(Array.isArray(re))for(var he=0;he<re.length;he++)d(re[he])&&$(re[he],Y+1,oe+"["+he+"].")}else d(re)&&$(re,Y+1,oe+".")}H=G,j="",e.crawl(r,q),G._module&&G._module.attributes&&e.crawl(G._module.attributes,q);var ne=G.transforms;if(ne)for(var te=0;te<ne.length;te++){var ee=ne[te],se=ee._module;se&&(j="transforms["+te+"].",H=ee,e.crawl(se.attributes,q))}return I},e.getTraceValObject=function(G,I){var P=I[0],z=1,H,j;if(P==="transforms"){if(I.length===1)return r.transforms;var q=G.transforms;if(!Array.isArray(q)||!q.length)return!1;var $=I[1];if(!S($)||$>=q.length)return!1;H=(t.transformsRegistry[q[$].type]||{}).attributes,j=H&&H[I[2]],z=3}else{var ne=G._module;if(ne||(ne=(t.modules[G.type||r.type.dflt]||{})._module),!ne)return!1;if(H=ne.attributes,j=H&&H[P],!j){var te=ne.basePlotModule;te&&te.attributes&&(j=te.attributes[P])}j||(j=r[P])}return _(j,I,z)},e.getLayoutValObject=function(G,I){var P=k(G,I[0]);return _(P,I,1)};function k(G,I){var P,z,H,j,q=G._basePlotModules;if(q){var $;for(P=0;P<q.length;P++){if(H=q[P],H.attrRegex&&H.attrRegex.test(I)){if(H.layoutAttrOverrides)return H.layoutAttrOverrides;!$&&H.layoutAttributes&&($=H.layoutAttributes)}var ne=H.baseLayoutAttrOverrides;if(ne&&I in ne)return ne[I]}if($)return $}var te=G._modules;if(te){for(P=0;P<te.length;P++)if(j=te[P].layoutAttributes,j&&I in j)return j[I]}for(z in t.componentsRegistry){if(H=t.componentsRegistry[z],H.name==="colorscale"&&I.indexOf("coloraxis")===0)return H.layoutAttributes[I];if(!H.schema&&I===H.name)return H.layoutAttributes}return I in a?a[I]:!1}function _(G,I,P){if(!G)return!1;if(G._isLinkedToArray){if(S(I[P]))P++;else if(P<I.length)return!1}for(;P<I.length;P++){var z=G[I[P]];if(d(z))G=z;else break;if(P===I.length-1)break;if(G._isLinkedToArray){if(P++,!S(I[P]))return!1}else if(G.valType==="info_array"){P++;var H=I[P];if(!S(H))return!1;var j=G.items;if(Array.isArray(j)){if(H>=j.length)return!1;if(G.dimensions===2){if(P++,I.length===P)return G;var q=I[P];if(!S(q))return!1;G=j[H][q]}else G=j[H]}else G=j}}return G}function S(G){return G===Math.round(G)&&G>=0}function T(G){var I,P;I=t.modules[G]._module,P=I.basePlotModule;var z={};z.type=null;var H=u({},r),j=u({},I.attributes);e.crawl(j,function(ne,te,ee,se,U){p(H,U).set(void 0),ne===void 0&&p(j,U).set(void 0)}),u(z,H),t.traceIs(G,"noOpacity")&&delete z.opacity,t.traceIs(G,"showLegend")||(delete z.showlegend,delete z.legendgroup),t.traceIs(G,"noHover")&&(delete z.hoverinfo,delete z.hoverlabel),I.selectPoints||delete z.selectedpoints,u(z,j),P.attributes&&u(z,P.attributes),z.type=G;var q={meta:I.meta||{},categories:I.categories||{},animatable:!!I.animatable,type:G,attributes:F(z)};if(I.layoutAttributes){var $={};u($,I.layoutAttributes),q.layoutAttributes=F($)}return I.animatable||e.crawl(q,function(ne){e.isValObject(ne)&&"anim"in ne&&delete ne.anim}),q}function C(){var G={},I,P;u(G,a);for(I in t.subplotsRegistry)if(P=t.subplotsRegistry[I],!!P.layoutAttributes)if(Array.isArray(P.attr))for(var z=0;z<P.attr.length;z++)V(G,P,P.attr[z]);else{var H=P.attr==="subplot"?P.name:P.attr;V(G,P,H)}for(I in t.componentsRegistry){P=t.componentsRegistry[I];var j=P.schema;if(j&&(j.subplots||j.layout)){var q=j.subplots;if(q&&q.xaxis&&!q.yaxis)for(var $ in q.xaxis)delete G.yaxis[$];delete G.xaxis.shift,delete G.xaxis.autoshift}else P.name==="colorscale"?u(G,P.layoutAttributes):P.layoutAttributes&&Z(G,P.layoutAttributes,P.name)}return{layoutAttributes:F(G)}}function A(G){var I=t.transformsRegistry[G],P=u({},I.attributes);return Object.keys(t.componentsRegistry).forEach(function(z){var H=t.componentsRegistry[z];H.schema&&H.schema.transforms&&H.schema.transforms[G]&&Object.keys(H.schema.transforms[G]).forEach(function(j){Z(P,H.schema.transforms[G][j],j)})}),{attributes:F(P)}}function O(){var G={frames:u({},o)};return F(G),G.frames}function F(G){return R(G),N(G),B(G),G}function R(G){function I(z){return{valType:"string",description:"Sets the source reference on Chart Studio Cloud for `"+z+"`.",editType:"none"}}function P(z,H,j){e.isValObject(z)?(z.arrayOk===!0||z.valType==="data_array")&&(j[H+"src"]=I(H)):d(z)&&(z.role="object")}e.crawl(G,P)}function N(G){function I(P,z,H){if(P){var j=P[y];j&&(delete P[y],H[z]={items:{}},H[z].items[j]=P,H[z].role="object")}}e.crawl(G,I)}function B(G){function I(P){for(var z in P)if(d(P[z]))I(P[z]);else if(Array.isArray(P[z]))for(var H=0;H<P[z].length;H++)I(P[z][H]);else P[z]instanceof RegExp&&(P[z]=P[z].toString())}I(G)}function V(G,I,P){var z=p(G,P),H=u({},I.layoutAttributes);H[h]=!0,z.set(H)}function Z(G,I,P){var z=p(G,P);z.set(u(z.get()||{},I))}})(uu);var nO={exports:{}},hn={},du=Ge,Yle=ti,El="templateitemname",xx={name:{valType:"string",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};xx[El]={valType:"string",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},hn.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=xx.name,t[El]=xx[El],t},hn.traceTemplater=function(e){var t={},n,r;for(n in e)r=e[n],Array.isArray(r)&&r.length&&(t[n]=0);function a(o){n=du.coerce(o,{},Yle,"type");var i={type:n,_template:null};if(n in t){r=e[n];var l=t[n]%r.length;t[n]++,i._template=r[l]}return i}return{newTrace:a}},hn.newContainer=function(e,t,n){var r=e._template,a=r&&(r[t]||n&&r[n]);du.isPlainObject(a)||(a=null);var o=e[t]={_template:a};return o},hn.arrayTemplater=function(e,t,n){var r=e._template,a=r&&r[aO(t)],o=r&&r[t];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(u){var d={name:u.name,_input:u},f=d[El]=u[El];if(!rO(f))return d._template=a,d;for(var p=0;p<o.length;p++){var g=o[p];if(g.name===f)return i[f]=1,d._template=g,d}return d[n]=u[n]||!1,d._template=!1,d}function s(){for(var u=[],d=0;d<o.length;d++){var f=o[d],p=f.name;if(rO(p)&&!i[p]){var g={_template:f,name:p,_input:{_templateitemname:p}};g[El]=f[El],u.push(g),i[p]=1}}return u}return{newItem:l,defaultItems:s}};function rO(e){return e&&typeof e=="string"}function aO(e){var t=e.length-1;return e.charAt(t)!=="s"&&du.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}hn.arrayDefaultKey=aO,hn.arrayEditor=function(e,t,n){var r=(du.nestedProperty(e,t).get()||[]).length,a=n._index,o=a>=r&&(n._input||{})._templateitemname;o&&(a=r);var i=t+"["+a+"]",l;function s(){l={},o&&(l[i]={},l[i][El]=o)}s();function u(g,h){l[g]=h}function d(g,h){o?du.nestedProperty(l[i],g).set(h):l[i+"."+g]=h}function f(){var g=l;return s(),g}function p(g,h){g&&d(g,h);var y=f();for(var b in y)du.nestedProperty(e,b).set(y[b])}return{modifyBase:u,modifyItem:d,getUpdateObj:f,applyUpdate:p}};var dr={},kf=nu.counter,Jr={idRegex:{x:kf("x","( domain)?"),y:kf("y","( domain)?")},attrRegex:kf("[xy]axis"),xAxisMatch:kf("xaxis"),yAxisMatch:kf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}};(function(e){var t=Dt,n=Jr;e.id2name=function(a){if(!(typeof a!="string"||!a.match(n.AX_ID_PATTERN))){var o=a.split(" ")[0].substr(1);return o==="1"&&(o=""),a.charAt(0)+"axis"+o}},e.name2id=function(a){if(a.match(n.AX_NAME_PATTERN)){var o=a.substr(5);return o==="1"&&(o=""),a.charAt(0)+o}},e.cleanId=function(a,o,i){var l=/( domain)$/.test(a);if(!(typeof a!="string"||!a.match(n.AX_ID_PATTERN))&&!(o&&a.charAt(0)!==o)&&!(l&&!i)){var s=a.split(" ")[0].substr(1).replace(/^0+/,"");return s==="1"&&(s=""),a.charAt(0)+s+(l&&i?" domain":"")}},e.list=function(a,o,i){var l=a._fullLayout;if(!l)return[];var s=e.listIds(a,o),u=new Array(s.length),d;for(d=0;d<s.length;d++){var f=s[d];u[d]=l[f.charAt(0)+"axis"+f.substr(1)]}if(!i){var p=l._subplots.gl3d||[];for(d=0;d<p.length;d++){var g=l[p[d]];o?u.push(g[o+"axis"]):u.push(g.xaxis,g.yaxis,g.zaxis)}}return u},e.listIds=function(a,o){var i=a._fullLayout;if(!i)return[];var l=i._subplots;return o?l[o+"axis"]:l.xaxis.concat(l.yaxis)},e.getFromId=function(a,o,i){var l=a._fullLayout;return o=o===void 0||typeof o!="string"?o:o.replace(" domain",""),i==="x"?o=o.replace(/y[0-9]*/,""):i==="y"&&(o=o.replace(/x[0-9]*/,"")),l[e.id2name(o)]},e.getFromTrace=function(a,o,i){var l=a._fullLayout,s=null;if(t.traceIs(o,"gl3d")){var u=o.scene;u.substr(0,5)==="scene"&&(s=l[u][i+"axis"])}else s=e.getFromId(a,o[i+"axis"]||i);return s},e.idSort=function(a,o){var i=a.charAt(0),l=o.charAt(0);return i!==l?i>l?1:-1:+(a.substr(1)||1)-+(o.substr(1)||1)},e.ref2id=function(a){return/^[xyz]/.test(a)?a.split(" ")[0]:!1};function r(a,o){if(o&&o.length){for(var i=0;i<o.length;i++)if(o[i][a])return!0}return!1}e.isLinked=function(a,o){return r(o,a._axisMatchGroups)||r(o,a._axisConstraintGroups)}})(dr);function Jle(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Qle(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}var Ds={clearOutlineControllers:Jle,clearOutline:Qle},wx={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc",description:["Determines how scatter points at the same location coordinate","are displayed on the graph.","With *group*, the scatter points are plotted next to one another","centered around the shared location.","With *overlay*, the scatter points are plotted over one another,","you might need to reduce *opacity* to see multiple scatter points."].join(" ")},scattergap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between scatter points of","adjacent location coordinates.","Defaults to `bargap`."].join(" ")}},Tf={},Sf=Dt,Xle=Jr.SUBPLOT_PATTERN;Tf.getSubplotCalcData=function(e,t,n){var r=Sf.subplotsRegistry[t];if(!r)return[];for(var a=r.attr,o=[],i=0;i<e.length;i++){var l=e[i],s=l[0].trace;s[a]===n&&o.push(l)}return o},Tf.getModuleCalcData=function(e,t){var n=[],r=[],a;if(typeof t=="string"?a=Sf.getModule(t).plot:typeof t=="function"?a=t:a=t.plot,!a)return[n,e];for(var o=0;o<e.length;o++){var i=e[o],l=i[0].trace;l.visible!==!0||l._length===0||(l._module&&l._module.plot===a?n.push(i):r.push(i))}return[n,r]},Tf.getSubplotData=function(e,t,n){if(!Sf.subplotsRegistry[t])return[];var r=Sf.subplotsRegistry[t].attr,a=[],o,i,l;if(t==="gl2d"){var s=n.match(Xle);i="x"+s[1],l="y"+s[2]}for(var u=0;u<e.length;u++)o=e[u],t==="gl2d"&&Sf.traceIs(o,"gl2d")?o[r[0]]===i&&o[r[1]]===l&&a.push(o):o[r]===n&&a.push(o);return a};var oO={},iO;function $le(){return iO||(iO=1,function(e){var t=Dt,n=Ge;e.manageCommandObserver=function(s,u,d,f){var p={},g=!0;u&&u._commandObserver&&(p=u._commandObserver),p.cache||(p.cache={}),p.lookupTable={};var h=e.hasSimpleAPICommandBindings(s,d,p.lookupTable);if(u&&u._commandObserver){if(h)return p;if(u._commandObserver.remove)return u._commandObserver.remove(),u._commandObserver=null,p}if(h){r(s,h,p.cache),p.check=function(){if(g){var v=r(s,h,p.cache);return v.changed&&f&&p.lookupTable[v.value]!==void 0&&(p.disable(),Promise.resolve(f({value:v.value,type:h.type,prop:h.prop,traces:h.traces,index:p.lookupTable[v.value]})).then(p.enable,p.enable)),v.changed}};for(var y=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],b=0;b<y.length;b++)s._internalOn(y[b],p.check);p.remove=function(){for(var v=0;v<y.length;v++)s._removeInternalListener(y[v],p.check)}}else n.log("Unable to automatically bind plot updates to API command"),p.lookupTable={},p.remove=function(){};return p.disable=function(){g=!1},p.enable=function(){g=!0},u&&(u._commandObserver=p),p},e.hasSimpleAPICommandBindings=function(s,u,d){var f,p=u.length,g;for(f=0;f<p;f++){var h,y=u[f],b=y.method,v=y.args;if(Array.isArray(v)||(v=[]),!b)return!1;var x=e.computeAPICommandBindings(s,b,v);if(x.length!==1)return!1;if(!g)g=x[0],Array.isArray(g.traces)&&g.traces.sort();else{if(h=x[0],h.type!==g.type||h.prop!==g.prop)return!1;if(Array.isArray(g.traces))if(Array.isArray(h.traces)){h.traces.sort();for(var k=0;k<g.traces.length;k++)if(g.traces[k]!==h.traces[k])return!1}else return!1;else if(h.prop!==g.prop)return!1}h=x[0];var _=h.value;if(Array.isArray(_))if(_.length===1)_=_[0];else return!1;d&&(d[_]=f)}return g};function r(s,u,d){var f,p,g,h=!1;if(u.type==="data")f=s._fullData[u.traces!==null?u.traces[0]:0];else if(u.type==="layout")f=s._fullLayout;else return!1;return p=n.nestedProperty(f,u.prop).get(),g=d[u.type]=d[u.type]||{},g.hasOwnProperty(u.prop)&&g[u.prop]!==p&&(h=!0),g[u.prop]=p,{changed:h,value:p}}e.executeAPICommand=function(s,u,d){if(u==="skip")return Promise.resolve();var f=t.apiMethodRegistry[u],p=[s];Array.isArray(d)||(d=[]);for(var g=0;g<d.length;g++)p.push(d[g]);return f.apply(null,p).catch(function(h){return n.warn("API call to Plotly."+u+" rejected.",h),Promise.reject(h)})},e.computeAPICommandBindings=function(s,u,d){var f;switch(Array.isArray(d)||(d=[]),u){case"restyle":f=i(s,d);break;case"relayout":f=o(s,d);break;case"update":f=i(s,[d[0],d[2]]).concat(o(s,[d[1]]));break;case"animate":f=a(s,d);break;default:f=[]}return f};function a(s,u){return Array.isArray(u[0])&&u[0].length===1&&["string","number"].indexOf(typeof u[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:u[0][0].toString()}]:[]}function o(s,u){var d=[],f=u[0],p={};if(typeof f=="string")p[f]=u[1];else if(n.isPlainObject(f))p=f;else return d;return l(p,function(g,h,y){d.push({type:"layout",prop:g,value:y})},"",0),d}function i(s,u){var d,f,p,g,h=[];if(f=u[0],p=u[1],d=u[2],g={},typeof f=="string")g[f]=p;else if(n.isPlainObject(f))g=f,d===void 0&&(d=p);else return h;return d===void 0&&(d=null),l(g,function(y,b,v){var x,k;if(Array.isArray(v)){k=v.slice();var _=Math.min(k.length,s.data.length);d&&(_=Math.min(_,d.length)),x=[];for(var S=0;S<_;S++)x[S]=d?d[S]:S}else k=v,x=d?d.slice():null;if(x===null)Array.isArray(k)&&(k=k[0]);else if(Array.isArray(x)){if(!Array.isArray(k)){var T=k;k=[];for(var C=0;C<x.length;C++)k[C]=T}k.length=Math.min(x.length,k.length)}h.push({type:"data",prop:y,traces:x,value:k})},"",0),h}function l(s,u,d,f){Object.keys(s).forEach(function(p){var g=s[p];if(p[0]!=="_"){var h=d+(f>0?".":"")+p;n.isPlainObject(g)?l(g,u,h,f+1):u(h,p,g)}})}}(oO)),oO}var lO=$t,ese=ff.timeFormatLocale,tse=A3.formatLocale,Af=en,nse=M3,an=Dt,sO=uu,rse=hn,vt=Ge,cO=Kt,uO=Gn.BADNUM,ua=dr,ase=Ds.clearOutline,ose=wx,_x=Lm,ise=tO,lse=Tf.getModuleCalcData,kx=vt.relinkPrivateKeys,fu=vt._,ct=nO.exports={};vt.extendFlat(ct,an),ct.attributes=ti,ct.attributes.type.values=ct.allTypes,ct.fontAttrs=Fr,ct.layoutAttributes=xf,ct.fontWeight="normal";var Gm=ct.transformsRegistry,Zm=$le();ct.executeAPICommand=Zm.executeAPICommand,ct.computeAPICommandBindings=Zm.computeAPICommandBindings,ct.manageCommandObserver=Zm.manageCommandObserver,ct.hasSimpleAPICommandBindings=Zm.hasSimpleAPICommandBindings,ct.redrawText=function(e){return e=vt.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(an.getComponentMethod("annotations","draw")(e),an.getComponentMethod("legend","draw")(e),an.getComponentMethod("colorbar","draw")(e),t(ct.previousPromises(e)))},300)})},ct.resize=function(e){e=vt.getGraphDiv(e);var t,n=new Promise(function(r,a){(!e||vt.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=r,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vt.isHidden(e)){r(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,an.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===r&&(delete e._resolveResize,r(e))})},100)});return t&&t(n),n},ct.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})},ct.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,n=vt.ensureSingle(t._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:cO.defaultLine,"pointer-events":"all"}).each(function(){var u=lO.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),r=n.node(),a={y:t._paper.attr("height")-9};document.body.contains(r)&&r.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),n.attr(a);var o=n.select(".js-link-to-tool"),i=n.select(".js-link-spacer"),l=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&sse(e,o),i.text(o.text()&&l.text()?" - ":"")}};function sse(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" »");if(e._context.sendData)n.on("click",function(){ct.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}ct.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=lO.select(e).append("div").attr("id","hiddenform").style("display","none"),r=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=r.append("input").attr({type:"text",name:"data"});return a.node().value=ct.graphJson(e,!1,"keepdata"),r.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var cse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],use=["year","month","dayMonth","dayMonthYear"];ct.supplyDefaults=function(e,t){var n=t&&t.skipUpdateCalc,r=e._fullLayout||{};if(r._skipDefaults){delete r._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],d=e._context||{},f;e._transitionData||ct.createTransitionData(e),a._dfltTitle={plot:fu(e,"Click to enter Plot title"),x:fu(e,"Click to enter X axis title"),y:fu(e,"Click to enter Y axis title"),colorbar:fu(e,"Click to enter Colorscale title"),annotation:fu(e,"new text")},a._traceWord=fu(e,"trace");var p=dO(e,cse);if(a._mapboxAccessToken=d.mapboxAccessToken,r._initialAutoSizeIsDone){var g=r.width,h=r.height;ct.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=g),o.height||(a.height=h),ct.sanitizeMargins(a)}else{ct.supplyLayoutGlobalDefaults(o,a,p);var y=!o.width||!o.height,b=a.autosize,v=d.autosizable,x=y&&(b||v);x?ct.plotAutoSize(e,o,a):y&&ct.sanitizeMargins(a),!b&&y&&(o.width=a.width,o.height=a.height)}a._d3locale=pse(p,a.separators),a._extraFormat=dO(e,use),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var k=a._subplots=fse(),_=a._splomAxes={x:{},y:{}},S=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=dse(i,s),a._globalTransforms=(e._context||{}).globalTransforms,ct.supplyDataDefaults(s,l,o,a);var T=Object.keys(_.x),C=Object.keys(_.y);if(T.length>1&&C.length>1){for(an.getComponentMethod("grid","sizeDefaults")(o,a),f=0;f<T.length;f++)vt.pushUnique(k.xaxis,T[f]);for(f=0;f<C.length;f++)vt.pushUnique(k.yaxis,C[f]);for(var A in S)vt.pushUnique(k.cartesian,A)}if(a._has=ct._hasPlotType.bind(a),i.length===l.length)for(f=0;f<l.length;f++)kx(l[f],i[f]);ct.supplyLayoutModuleDefaults(o,a,l,e._transitionData);var O=a._visibleModules,F=[];for(f=0;f<O.length;f++){var R=O[f].crossTraceDefaults;R&&vt.pushUnique(F,R)}for(f=0;f<F.length;f++)F[f](l,a);a._hasOnlyLargeSploms=a._basePlotModules.length===1&&a._basePlotModules[0].name==="splom"&&T.length>15&&C.length>15&&a.shapes.length===0&&a.images.length===0,ct.linkSubplots(l,a,i,r),ct.cleanPlot(l,a,i,r);var N=!!(r._has&&r._has("gl2d")),B=!!(a._has&&a._has("gl2d")),V=!!(r._has&&r._has("cartesian")),Z=!!(a._has&&a._has("cartesian")),G=V||N,I=Z||B;G&&!I?r._bgLayer.remove():I&&!G&&(a._shouldCreateBgLayer=!0),r._zoomlayer&&!e._dragging&&ase({_fullLayout:r}),hse(l,a),kx(a,r),an.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var P=a._tracePreGUI,z={},H;for(H in P)z[H]="old";for(f=0;f<l.length;f++)H=l[f]._fullInput.uid,z[H]||(P[H]={}),z[H]="new";for(H in z)z[H]==="old"&&delete P[H];pO(a),an.getComponentMethod("rangeslider","makeData")(a),!n&&u.length===l.length&&ct.supplyDefaultsUpdateCalc(u,l)},ct.supplyDefaultsUpdateCalc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=(e[n]||[])[0];if(a&&a.trace){var o=a.trace;if(o._hasCalcTransform){var i=o._arrayAttrs,l,s,u;for(l=0;l<i.length;l++)s=i[l],u=vt.nestedProperty(o,s).get().slice(),vt.nestedProperty(r,s).set(u)}a.trace=r}}};function dse(e,t){var n=t.length,r=[],a,o;for(a=0;a<e.length;a++){var i=e[a]._fullInput;i!==o&&r.push(i),o=i}var l=r.length,s=new Array(n),u={};function d(g,h){s[h]=g,u[g]=1}function f(g,h){if(g&&typeof g=="string"&&!u[g])return d(g,h),!0}for(a=0;a<n;a++){var p=t[a].uid;typeof p=="number"&&(p=String(p)),!f(p,a)&&(a<l&&f(r[a].uid,a)||d(vt.randstr(u),a))}return s}function fse(){var e=an.collectableSubplotTypes,t={},n,r;if(!e){e=[];var a=an.subplotsRegistry;for(var o in a){var i=a[o],l=i.attr;if(l&&(e.push(o),Array.isArray(l)))for(r=0;r<l.length;r++)vt.pushUnique(e,l[r])}}for(n=0;n<e.length;n++)t[e[n]]=[];return t}function dO(e,t){var n=e._context.locale;n||(n="en-US");var r=!1,a={};function o(f){for(var p=!0,g=0;g<t.length;g++){var h=t[g];a[h]||(f[h]?a[h]=f[h]:p=!1)}p&&(r=!0)}for(var i=0;i<2;i++){for(var l=e._context.locales,s=0;s<2;s++){var u=(l[n]||{}).format;if(u&&(o(u),r))break;l=an.localeRegistry}var d=n.split("-")[0];if(r||d===n)break;n=d}return r||o(an.localeRegistry.en.format),a}function pse(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(n){try{n=tse(e).format(vt.adjustFormat(n))}catch{return vt.warnBadFormat(n),vt.noFormat}return n},timeFormat:ese(e).utcFormat}}function hse(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var o=e[a];o.meta?r[o.index]=o._meta={meta:o.meta}:t.meta&&(o._meta={meta:t.meta}),t.meta&&(o._meta.layout={meta:t.meta})}r.length&&(n||(n=t._meta={}),n.data=r)}ct.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},ct._hasPlotType=function(e){var t,n=this._basePlotModules||[];for(t=0;t<n.length;t++)if(n[t].name===e)return!0;var r=this._modules||[];for(t=0;t<r.length;t++){var a=r[t].name;if(a===e)return!0;var o=an.modules[a];if(o&&o.categories[e])return!0}return!1},ct.cleanPlot=function(e,t,n,r){var a,o,i=r._basePlotModules||[];for(a=0;a<i.length;a++){var l=i[a];l.clean&&l.clean(e,t,n,r)}var s=r._has&&r._has("gl"),u=t._has&&t._has("gl");s&&!u&&r._glcontainer!==void 0&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.selectAll(".no-webgl").remove(),r._glcanvas=null);var d=!!r._infolayer;e:for(a=0;a<n.length;a++){var f=n[a],p=f.uid;for(o=0;o<e.length;o++){var g=e[o];if(p===g.uid)continue e}d&&r._infolayer.select(".cb"+p).remove()}},ct.linkSubplots=function(e,t,n,r){var a,o,i=r._plots||{},l=t._plots={},s=t._subplots,u={_fullData:e,_fullLayout:t},d=s.cartesian.concat(s.gl2d||[]);for(a=0;a<d.length;a++){var f=d[a],p=i[f],g=ua.getFromId(u,f,"x"),h=ua.getFromId(u,f,"y"),y;for(p?y=l[f]=p:(y=l[f]={},y.id=f),g._counterAxes.push(h._id),h._counterAxes.push(g._id),g._subplotsWith.push(f),h._subplotsWith.push(f),y.xaxis=g,y.yaxis=h,y._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var b=e[o];if(b.xaxis===y.xaxis._id&&b.yaxis===y.yaxis._id&&b.cliponaxis===!1){y._hasClipOnAxisFalse=!0;break}}}var v=ua.list(u,null,!0),x;for(a=0;a<v.length;a++){x=v[a];var k=null;x.overlaying&&(k=ua.getFromId(u,x.overlaying),k&&k.overlaying&&(x.overlaying=!1,k=null)),x._mainAxis=k||x,k&&(x.domain=k.domain.slice()),x._anchorAxis=x.anchor==="free"?null:ua.getFromId(u,x.anchor)}for(a=0;a<v.length;a++)if(x=v[a],x._counterAxes.sort(ua.idSort),x._subplotsWith.sort(vt.subplotSort),x._mainSubplot=mse(x,t),x._counterAxes.length&&(x.spikemode&&x.spikemode.indexOf("across")!==-1||x.automargin&&x.mirror&&x.anchor!=="free"||an.getComponentMethod("rangeslider","isVisible")(x))){var _=1,S=0;for(o=0;o<x._counterAxes.length;o++){var T=ua.getFromId(u,x._counterAxes[o]);_=Math.min(_,T.domain[0]),S=Math.max(S,T.domain[1])}_<S&&(x._counterDomainMin=_,x._counterDomainMax=S)}};function mse(e,t){var n={_fullLayout:t},r=e._id.charAt(0)==="x",a=e._mainAxis._anchorAxis,o="",i="",l="";if(a&&(l=a._mainAxis._id,o=r?e._id+l:l+e._id),!o||!t._plots[o]){o="";for(var s=e._counterAxes,u=0;u<s.length;u++){var d=s[u],f=r?e._id+d:d+e._id;i||(i=f);var p=ua.getFromId(n,d);if(l&&p.overlaying===l){o=f;break}}}return o||i}ct.clearExpandedTraceDefaultColors=function(e){var t,n,r;function a(i,l,s,u){n[u]=l,n.length=u+1,i.valType==="color"&&i.dflt===void 0&&t.push(n.join("."))}for(n=[],t=e._module._colorAttrs,t||(e._module._colorAttrs=t=[],sO.crawl(e._module.attributes,a)),r=0;r<t.length;r++){var o=vt.nestedProperty(e,"_input."+t[r]);o.get()||vt.nestedProperty(e,t[r]).set(null)}},ct.supplyDataDefaults=function(e,t,n,r){var a=r._modules,o=r._visibleModules,i=r._basePlotModules,l=0,s=0,u,d,f;r._transformModules=[];function p(C){t.push(C);var A=C._module;A&&(vt.pushUnique(a,A),C.visible===!0&&vt.pushUnique(o,A),vt.pushUnique(i,C._module.basePlotModule),l++,C._input.visible!==!1&&s++)}var g={},h=[],y=(n.template||{}).data||{},b=rse.traceTemplater(y);for(u=0;u<e.length;u++){if(f=e[u],d=b.newTrace(f),d.uid=r._traceUids[u],ct.supplyTraceDefaults(f,d,s,r,u),d.index=u,d._input=f,d._expandedIndex=l,d.transforms&&d.transforms.length)for(var v=f.visible!==!1&&d.visible===!1,x=gse(d,t,n,r),k=0;k<x.length;k++){var _=x[k],S={_template:d._template,type:d.type,uid:d.uid+k};v&&_.visible===!1&&delete _.visible,ct.supplyTraceDefaults(_,S,l,r,u),kx(S,_),S.index=u,S._input=f,S._fullInput=d,S._expandedIndex=l,S._expandedInput=_,p(S)}else d._fullInput=d,d._expandedInput=d,p(d);an.traceIs(d,"carpetAxis")&&(g[d.carpet]=d),an.traceIs(d,"carpetDependent")&&h.push(u)}for(u=0;u<h.length;u++)if(d=t[h[u]],!!d.visible){var T=g[d.carpet];if(d._carpet=T,!T||!T.visible){d.visible=!1;continue}d.xaxis=T.xaxis,d.yaxis=T.yaxis}},ct.supplyAnimationDefaults=function(e){e=e||{};var t,n={};function r(a,o){return vt.coerce(e||{},n,_x,a,o)}if(r("mode"),r("direction"),r("fromcurrent"),Array.isArray(e.frame))for(n.frame=[],t=0;t<e.frame.length;t++)n.frame[t]=ct.supplyAnimationFrameDefaults(e.frame[t]||{});else n.frame=ct.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(n.transition=[],t=0;t<e.transition.length;t++)n.transition[t]=ct.supplyAnimationTransitionDefaults(e.transition[t]||{});else n.transition=ct.supplyAnimationTransitionDefaults(e.transition||{});return n},ct.supplyAnimationFrameDefaults=function(e){var t={};function n(r,a){return vt.coerce(e||{},t,_x.frame,r,a)}return n("duration"),n("redraw"),t},ct.supplyAnimationTransitionDefaults=function(e){var t={};function n(r,a){return vt.coerce(e||{},t,_x.transition,r,a)}return n("duration"),n("easing"),t},ct.supplyFrameDefaults=function(e){var t={};function n(r,a){return vt.coerce(e,t,ise,r,a)}return n("group"),n("name"),n("traces"),n("baseframe"),n("data"),n("layout"),t},ct.supplyTraceDefaults=function(e,t,n,r,a){var o=r.colorway||cO.defaults,i=o[n%o.length],l;function s(k,_){return vt.coerce(e,t,ct.attributes,k,_)}var u=s("visible");s("type"),s("name",r._traceWord+" "+a),s("uirevision",r.uirevision);var d=ct.getModule(t);if(t._module=d,d){var f=d.basePlotModule,p=f.attr,g=f.attributes;if(p&&g){var h=r._subplots,y="";if(u||f.name!=="gl2d"){if(Array.isArray(p))for(l=0;l<p.length;l++){var b=p[l],v=vt.coerce(e,t,g,b);h[b]&&vt.pushUnique(h[b],v),y+=v}else y=vt.coerce(e,t,g,p);h[f.name]&&vt.pushUnique(h[f.name],y)}}}if(u){if(s("customdata"),s("ids"),s("meta"),an.traceIs(t,"showLegend")?(vt.coerce(e,t,d.attributes.showlegend?d.attributes:ct.attributes,"showlegend"),s("legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),s("legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,d&&d.supplyDefaults(e,t,i,r),an.traceIs(t,"noOpacity")||s("opacity"),an.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),an.traceIs(t,"noHover")||(t.hovertemplate||vt.coerceHoverinfo(e,t,r),t.type!=="parcats"&&an.getComponentMethod("fx","supplyDefaults")(e,t,i,r)),d&&d.selectPoints){var x=s("selectedpoints");vt.isTypedArray(x)&&(t.selectedpoints=Array.from(x))}ct.supplyTransformDefaults(e,t,r)}return t};function fO(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var n=0;n<t.length;n++){var r=t[n],a=r._module||Gm[r.type];if(a&&a.makesData)return!0}return!1}ct.hasMakesDataTransform=fO,ct.supplyTransformDefaults=function(e,t,n){if(t._length||fO(e)){var r=n._globalTransforms||[],a=n._transformModules||[];if(!(!Array.isArray(e.transforms)&&r.length===0))for(var o=e.transforms||[],i=r.concat(o),l=t.transforms=[],s=0;s<i.length;s++){var u=i[s],d=u.type,f=Gm[d],p,g=!(u._module&&u._module===f),h=f&&typeof f.transform=="function";f||vt.warn("Unrecognized transform type "+d+"."),f&&f.supplyDefaults&&(g||h)?(p=f.supplyDefaults(u,t,n,e),p.type=d,p._module=f,vt.pushUnique(a,f)):p=vt.extendFlat({},u),l.push(p)}}};function gse(e,t,n,r){for(var a=e.transforms,o=[e],i=0;i<a.length;i++){var l=a[i],s=Gm[l.type];s&&s.transform&&(o=s.transform(o,{transform:l,fullTrace:e,fullData:t,layout:n,fullLayout:r,transformIndex:i}))}return o}ct.supplyLayoutGlobalDefaults=function(e,t,n){function r(f,p){return vt.coerce(e,t,ct.layoutAttributes,f,p)}var a=e.template;vt.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data),r("autotypenumbers");var o=vt.coerceFont(r,"font"),i=o.size;vt.coerceFont(r,"title.font",vt.extendFlat({},o,{size:Math.round(i*1.4)})),r("title.text",t._dfltTitle.plot),r("title.xref");var l=r("title.yref");r("title.pad.t"),r("title.pad.r"),r("title.pad.b"),r("title.pad.l");var s=r("title.automargin");r("title.x"),r("title.xanchor"),r("title.y"),r("title.yanchor"),s&&(l==="paper"&&(t.title.y!==0&&(t.title.y=1),t.title.yanchor==="auto"&&(t.title.yanchor=t.title.y===0?"top":"bottom")),l==="container"&&(t.title.y==="auto"&&(t.title.y=1),t.title.yanchor==="auto"&&(t.title.yanchor=t.title.y<.5?"bottom":"top")));var u=r("uniformtext.mode");u&&r("uniformtext.minsize"),r("autosize",!(e.width&&e.height)),r("width"),r("height"),r("minreducedwidth"),r("minreducedheight"),r("margin.l"),r("margin.r"),r("margin.t"),r("margin.b"),r("margin.pad"),r("margin.autoexpand"),e.width&&e.height&&ct.sanitizeMargins(t),an.getComponentMethod("grid","sizeDefaults")(e,t),r("paper_bgcolor"),r("separators",n.decimal+n.thousands),r("hidesources"),r("colorway"),r("datarevision");var d=r("uirevision");r("editrevision",d),r("selectionrevision",d),an.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),an.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,r),an.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,t,r),r("meta"),vt.isPlainObject(e.transition)&&(r("transition.duration"),r("transition.easing"),r("transition.ordering")),an.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),an.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,r),vt.coerce(e,t,ose,"scattermode")};function Km(e){return typeof e=="string"&&e.substr(e.length-2)==="px"&&parseFloat(e)}ct.plotAutoSize=function(e,t,n){var r=e._context||{},a=r.frameMargins,o,i,l=vt.isPlotDiv(e);if(l&&e.emit("plotly_autosize"),r.fillFrame)o=window.innerWidth,i=window.innerHeight,document.body.style.overflow="hidden";else{var s=l?window.getComputedStyle(e):{};if(o=Km(s.width)||Km(s.maxWidth)||n.width,i=Km(s.height)||Km(s.maxHeight)||n.height,Af(a)&&a>0){var u=1-2*a;o=Math.round(u*o),i=Math.round(u*i)}}var d=ct.layoutAttributes.width.min,f=ct.layoutAttributes.height.min;o<d&&(o=d),i<f&&(i=f);var p=!t.width&&Math.abs(n.width-o)>1,g=!t.height&&Math.abs(n.height-i)>1;(g||p)&&(p&&(n.width=o),g&&(n.height=i)),e._initialAutoSize||(e._initialAutoSize={width:o,height:i}),ct.sanitizeMargins(n)},ct.supplyLayoutModuleDefaults=function(e,t,n,r){var a=an.componentsRegistry,o=t._basePlotModules,i,l,s,u=an.subplotsRegistry.cartesian;for(i in a)s=a[i],s.includeBasePlot&&s.includeBasePlot(e,t);o.length||o.push(u),t._has("cartesian")&&(an.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var d in t._subplots)t._subplots[d].sort(vt.subplotSort);for(l=0;l<o.length;l++)s=o[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,t,n);var f=t._modules;for(l=0;l<f.length;l++)s=f[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,t,n);var p=t._transformModules;for(l=0;l<p.length;l++)s=p[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,t,n,r);for(i in a)s=a[i],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,t,n)},ct.purge=function(e){var t=e._fullLayout||{};t._glcontainer!==void 0&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),vt.clearThrottle(),vt.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},ct.style=function(e){var t=e._fullLayout._visibleModules,n=[],r;for(r=0;r<t.length;r++){var a=t[r];a.style&&vt.pushUnique(n,a.style)}for(r=0;r<n.length;r++)n[r](e)},ct.sanitizeMargins=function(e){if(!(!e||!e.margin)){var t=e.width,n=e.height,r=e.margin,a=t-(r.l+r.r),o=n-(r.t+r.b),i;a<0&&(i=(t-1)/(r.l+r.r),r.l=Math.floor(i*r.l),r.r=Math.floor(i*r.r)),o<0&&(i=(n-1)/(r.t+r.b),r.t=Math.floor(i*r.t),r.b=Math.floor(i*r.b))}},ct.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},ct.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};function pO(e){var t=e.margin;if(!e._size){var n=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};n.w=Math.round(e.width)-n.l-n.r,n.h=Math.round(e.height)-n.t-n.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}var hO=2,mO=2;ct.autoMargin=function(e,t,n){var r=e._fullLayout,a=r.width,o=r.height,i=r.margin,l=r.minreducedwidth,s=r.minreducedheight,u=vt.constrain(a-i.l-i.r,hO,l),d=vt.constrain(o-i.t-i.b,mO,s),f=Math.max(0,a-u),p=Math.max(0,o-d),g=r._pushmargin,h=r._pushmarginIds;if(i.autoexpand!==!1){if(!n)delete g[t],delete h[t];else{var y=n.pad;if(y===void 0&&(y=Math.min(12,i.l,i.r,i.t,i.b)),f){var b=(n.l+n.r)/f;b>1&&(n.l/=b,n.r/=b)}if(p){var v=(n.t+n.b)/p;v>1&&(n.t/=v,n.b/=v)}var x=n.xl!==void 0?n.xl:n.x,k=n.xr!==void 0?n.xr:n.x,_=n.yt!==void 0?n.yt:n.y,S=n.yb!==void 0?n.yb:n.y;g[t]={l:{val:x,size:n.l+y},r:{val:k,size:n.r+y},b:{val:S,size:n.b+y},t:{val:_,size:n.t+y}},h[t]=1}if(!r._replotting)return ct.doAutoMargin(e)}};function yse(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=ua.list(e,"",!0);for(var n in t)if(t[n].autoshift||t[n].shift)return!0;return!1}ct.doAutoMargin=function(e){var t=e._fullLayout,n=t.width,r=t.height;t._size||(t._size={}),pO(t);var a=t._size,o=t.margin,i={t:0,b:0,l:0,r:0},l=vt.extendFlat({},a),s=o.l,u=o.r,d=o.t,f=o.b,p=t._pushmargin,g=t._pushmarginIds,h=t.minreducedwidth,y=t.minreducedheight;if(o.autoexpand!==!1){for(var b in p)g[b]||delete p[b];var v=e._fullLayout._reservedMargin;for(var x in v)for(var k in v[x]){var _=v[x][k];i[k]=Math.max(i[k],_)}p.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:d},b:{val:0,size:f}};for(var S in i){var T=0;for(var C in p)C!=="base"&&Af(p[C][S].size)&&(T=p[C][S].size>T?p[C][S].size:T);var A=Math.max(0,o[S]-T);i[S]=Math.max(0,i[S]-A)}for(var O in p){var F=p[O].l||{},R=p[O].b||{},N=F.val,B=F.size,V=R.val,Z=R.size,G=n-i.r-i.l,I=r-i.t-i.b;for(var P in p){if(Af(B)&&p[P].r){var z=p[P].r.val,H=p[P].r.size;if(z>N){var j=(B*z+(H-G)*N)/(z-N),q=(H*(1-N)+(B-G)*(1-z))/(z-N);j+q>s+u&&(s=j,u=q)}}if(Af(Z)&&p[P].t){var $=p[P].t.val,ne=p[P].t.size;if($>V){var te=(Z*$+(ne-I)*V)/($-V),ee=(ne*(1-V)+(Z-I)*(1-$))/($-V);te+ee>f+d&&(f=te,d=ee)}}}}}var se=vt.constrain(n-o.l-o.r,hO,h),U=vt.constrain(r-o.t-o.b,mO,y),Y=Math.max(0,n-se),J=Math.max(0,r-U);if(Y){var re=(s+u)/Y;re>1&&(s/=re,u/=re)}if(J){var oe=(f+d)/J;oe>1&&(f/=oe,d/=oe)}if(a.l=Math.round(s)+i.l,a.r=Math.round(u)+i.r,a.t=Math.round(d)+i.t,a.b=Math.round(f)+i.b,a.p=Math.round(o.pad),a.w=Math.round(n)-a.l-a.r,a.h=Math.round(r)-a.t-a.b,!t._replotting&&(ct.didMarginChange(l,a)||yse(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var he=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount<he)return an.call("_doPlot",e);t._size=l,vt.warn("Too many auto-margin redraws.")}vse(e)};function vse(e){var t=ua.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(n){for(var r=0;r<t.length;r++){var a=t[r][n];a&&a()}})}var gO=["l","r","t","b","p","w","h"];ct.didMarginChange=function(e,t){for(var n=0;n<gO.length;n++){var r=gO[n],a=e[r],o=t[r];if(!Af(a)||Math.abs(o-a)>1)return!0}return!1},ct.graphJson=function(e,t,n,r,a,o){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&ct.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(p,g){if(typeof p=="function")return g?"_function_":null;if(vt.isPlainObject(p)){var h={},y;return Object.keys(p).sort().forEach(function(k){if(["_","["].indexOf(k.charAt(0))===-1){if(typeof p[k]=="function"){g&&(h[k]="_function");return}if(n==="keepdata"){if(k.substr(k.length-3)==="src")return}else if(n==="keepstream"){if(y=p[k+"src"],typeof y=="string"&&y.indexOf(":")>0&&!vt.isPlainObject(p.stream))return}else if(n!=="keepall"&&(y=p[k+"src"],typeof y=="string"&&y.indexOf(":")>0))return;h[k]=u(p[k],g)}}),h}var b=Array.isArray(p),v=vt.isTypedArray(p);if((b||v)&&p.dtype&&p.shape){var x=p.bdata;return u({dtype:p.dtype,shape:p.shape,bdata:vt.isArrayBuffer(x)?nse.encode(x):x},g)}return b?p.map(function(k){return u(k,g)}):v?vt.simpleMap(p,vt.identity):vt.isJSDate(p)?vt.ms2DateTimeLocal(+p):p}var d={data:(i||[]).map(function(p){var g=u(p);return t&&delete g.fit,g})};if(!t&&(d.layout=u(l),a)){var f=l._size;d.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return s&&(d.frames=u(s)),o&&(d.config=u(e._context,!0)),r==="object"?d:JSON.stringify(d)},ct.modifyFrames=function(e,t){var n,r,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch(r=t[n],r.type){case"replace":a=r.value;var l=(o[r.index]||{}).name,s=a.name;o[r.index]=i[s]=a,s!==l&&(delete i[l],i[s]=a);break;case"insert":a=r.value,i[a.name]=a,o.splice(r.index,0,a);break;case"delete":a=o[r.index],delete i[a.name],o.splice(r.index,1);break}return Promise.resolve()},ct.computeFrame=function(e,t){var n=e._transitionData._frameHash,r,a,o,i;if(!t)throw new Error("computeFrame must be given a string frame name");var l=n[t.toString()];if(!l)return!1;for(var s=[l],u=[l.name];l.baseframe&&(l=n[l.baseframe.toString()])&&u.indexOf(l.name)===-1;)s.push(l),u.push(l.name);for(var d={};l=s.pop();)if(l.layout&&(d.layout=ct.extendLayout(d.layout,l.layout)),l.data){if(d.data||(d.data=[]),a=l.traces,!a)for(a=[],r=0;r<l.data.length;r++)a[r]=r;for(d.traces||(d.traces=[]),r=0;r<l.data.length;r++)o=a[r],o!=null&&(i=d.traces.indexOf(o),i===-1&&(i=d.data.length,d.traces[i]=o),d.data[i]=ct.extendTrace(d.data[i],l.data[r]))}return d},ct.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var a=n[r];a&&a.name&&(t[a.name]=a)}},ct.extendObjectWithContainers=function(e,t,n){var r,a,o,i,l,s,u,d,f=vt.extendDeepNoArrays({},t||{}),p=vt.expandObjectPaths(f),g={};if(n&&n.length)for(o=0;o<n.length;o++)r=vt.nestedProperty(p,n[o]),a=r.get(),a===void 0?vt.nestedProperty(g,n[o]).set(null):(r.set(null),vt.nestedProperty(g,n[o]).set(a));if(e=vt.extendDeepNoArrays(e||{},p),n&&n.length){for(o=0;o<n.length;o++)if(l=vt.nestedProperty(g,n[o]),u=l.get(),!!u){for(s=vt.nestedProperty(e,n[o]),d=s.get(),Array.isArray(d)||(d=[],s.set(d)),i=0;i<u.length;i++){var h=u[i];h===null?d[i]=null:d[i]=ct.extendObjectWithContainers(d[i],h)}s.set(d)}}return e},ct.dataArrayContainers=["transforms","dimensions"],ct.layoutArrayContainers=an.layoutArrayContainers,ct.extendTrace=function(e,t){return ct.extendObjectWithContainers(e,t,ct.dataArrayContainers)},ct.extendLayout=function(e,t){return ct.extendObjectWithContainers(e,t,ct.layoutArrayContainers)},ct.transition=function(e,t,n,r,a,o){var i={redraw:a.redraw},l={},s=[];return i.prepareFn=function(){for(var u=Array.isArray(t)?t.length:0,d=r.slice(0,u),f=0;f<d.length;f++){var p=d[f],g=e._fullData[p],h=g._module;if(h){if(h.animatable){var y=h.basePlotModule.name;l[y]||(l[y]=[]),l[y].push(p)}e.data[d[f]]=ct.extendTrace(e.data[d[f]],t[f])}}var b=vt.expandObjectPaths(vt.extendDeepNoArrays({},n)),v=/^[xy]axis[0-9]*$/;for(var x in b)v.test(x)&&delete b[x].range;ct.extendLayout(e.layout,b),delete e.calcdata,ct.supplyDefaults(e),ct.doCalcdata(e);var k=vt.expandObjectPaths(n);if(k){var _=e._fullLayout._plots;for(var S in _){var T=_[S],C=T.xaxis,A=T.yaxis,O=C.range.slice(),F=A.range.slice(),R=null,N=null,B=null,V=null;Array.isArray(k[C._name+".range"])?R=k[C._name+".range"].slice():Array.isArray((k[C._name]||{}).range)&&(R=k[C._name].range.slice()),Array.isArray(k[A._name+".range"])?N=k[A._name+".range"].slice():Array.isArray((k[A._name]||{}).range)&&(N=k[A._name].range.slice()),O&&R&&(C.r2l(O[0])!==C.r2l(R[0])||C.r2l(O[1])!==C.r2l(R[1]))&&(B={xr0:O,xr1:R}),F&&N&&(A.r2l(F[0])!==A.r2l(N[0])||A.r2l(F[1])!==A.r2l(N[1]))&&(V={yr0:F,yr1:N}),(B||V)&&s.push(vt.extendFlat({plotinfo:T},B,V))}}return Promise.resolve()},i.runFn=function(u){var d,f=e._fullLayout._basePlotModules,p=s.length,g;if(n)for(g=0;g<f.length;g++)f[g].transitionAxes&&f[g].transitionAxes(e,s,o,u);p?(d=vt.extendFlat({},o),d.duration=0,delete l.cartesian):d=o;for(var h in l){var y=l[h],b=e._fullData[y[0]]._module;b.basePlotModule.plot(e,y,d,u)}},yO(e,o,i)},ct.transitionFromReact=function(e,t,n,r){var a=e._fullLayout,o=a.transition,i={},l=[];return i.prepareFn=function(){var s=a._plots;i.redraw=!1,t.anim==="some"&&(i.redraw=!0),n.anim==="some"&&(i.redraw=!0);for(var u in s){var d=s[u],f=d.xaxis,p=d.yaxis,g=r[f._name].range.slice(),h=r[p._name].range.slice(),y=f.range.slice(),b=p.range.slice();f.setScale(),p.setScale();var v=null,x=null;(f.r2l(g[0])!==f.r2l(y[0])||f.r2l(g[1])!==f.r2l(y[1]))&&(v={xr0:g,xr1:y}),(p.r2l(h[0])!==p.r2l(b[0])||p.r2l(h[1])!==p.r2l(b[1]))&&(x={yr0:h,yr1:b}),(v||x)&&l.push(vt.extendFlat({plotinfo:d},v,x))}return Promise.resolve()},i.runFn=function(s){for(var u=e._fullData,d=e._fullLayout,f=d._basePlotModules,p,g,h,y=[],b=0;b<u.length;b++)y.push(b);function v(){if(e._fullLayout)for(var k=0;k<f.length;k++)f[k].transitionAxes&&f[k].transitionAxes(e,l,p,s)}function x(){if(e._fullLayout)for(var k=0;k<f.length;k++)f[k].plot(e,h,g,s)}l.length&&t.anim?o.ordering==="traces first"?(p=vt.extendFlat({},o,{duration:0}),h=y,g=o,setTimeout(v,o.duration),x()):(p=o,h=null,g=vt.extendFlat({},o,{duration:0}),setTimeout(x,p.duration),v()):l.length?(p=o,v()):t.anim&&(h=y,g=o,x())},yO(e,o,i)};function yO(e,t,n){var r=!1;function a(f){var p=Promise.resolve();if(!f)return p;for(;f.length;)p=p.then(f.shift());return p}function o(f){if(f)for(;f.length;)f.shift()}function i(){return e.emit("plotly_transitioning",[]),new Promise(function(f){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){r=!0}),n.redraw&&e._transitionData._interruptCallbacks.push(function(){return an.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,g=0;function h(){return p++,function(){g++,!r&&g===p&&l(f)}}n.runFn(h),setTimeout(h())})}function l(f){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(n.redraw)return an.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[ct.previousPromises,s,n.prepareFn,ct.rehover,ct.reselect,i],d=vt.syncOrAsync(u,e);return(!d||!d.then)&&(d=Promise.resolve()),d.then(function(){return e})}ct.doCalcdata=function(e,t){var n=ua.list(e),r=e._fullData,a=e._fullLayout,o,i,l,s,u=new Array(r.length),d=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l<r.length;l++)if(Array.isArray(t)&&t.indexOf(l)===-1){u[l]=d[l];continue}for(l=0;l<r.length;l++)o=r[l],o._arrayAttrs=sO.findArrayAttributes(o),o._extremes={};var f=a._subplots.polar||[];for(l=0;l<f.length;l++)n.push(a[f[l]].radialaxis,a[f[l]].angularaxis);for(var p in a._colorAxes){var g=a[p];g.cauto!==!1&&(delete g.cmin,delete g.cmax)}var h=!1;function y(x){if(o=r[x],i=o._module,o.visible===!0&&o.transforms){if(i&&i.calc){var k=i.calc(e,o);k[0]&&k[0].t&&k[0].t._scene&&delete k[0].t._scene.dirty}for(s=0;s<o.transforms.length;s++){var _=o.transforms[s];i=Gm[_.type],i&&i.calcTransform&&(o._hasCalcTransform=!0,h=!0,i.calcTransform(e,o,_))}}}function b(x,k){if(o=r[x],i=o._module,!!i.isContainer===k){var _=[];if(o.visible===!0&&o._length!==0){delete o._indexToPoints;var S=o.transforms||[];for(s=S.length-1;s>=0;s--)if(S[s].enabled){o._indexToPoints=S[s]._indexToPoints;break}i&&i.calc&&(_=i.calc(e,o))}(!Array.isArray(_)||!_[0])&&(_=[{x:uO,y:uO}]),_[0].t||(_[0].t={}),_[0].trace=o,u[x]=_}}for(vO(n,r,a),l=0;l<r.length;l++)b(l,!0);for(l=0;l<r.length;l++)y(l);for(h&&vO(n,r,a),l=0;l<r.length;l++)b(l,!0);for(l=0;l<r.length;l++)b(l,!1);bO(e);var v=xse(n,e);if(v.length){for(a._numBoxes=0,a._numViolins=0,l=0;l<v.length;l++)b(v[l],!0);for(l=0;l<v.length;l++)b(v[l],!1);bO(e)}an.getComponentMethod("fx","calc")(e),an.getComponentMethod("errorbars","calc")(e)};var bse=/(total|sum|min|max|mean|median) (ascending|descending)/;function xse(e,t){var n=[],r,a,o,i,l;function s(P,z,H){var j=z._id.charAt(0);if(P==="histogram2dcontour"){var q=z._counterAxes[0],$=ua.getFromId(t,q),ne=j==="x"||q==="x"&&$.type==="category",te=j==="y"||q==="y"&&$.type==="category";return function(ee,se){return ee===0||se===0||ne&&ee===H[se].length-1||te&&se===H.length-1?-1:(j==="y"?se:ee)-1}}else return function(ee,se){return j==="y"?se:ee}}var u={min:function(P){return vt.aggNums(Math.min,null,P)},max:function(P){return vt.aggNums(Math.max,null,P)},sum:function(P){return vt.aggNums(function(z,H){return z+H},null,P)},total:function(P){return vt.aggNums(function(z,H){return z+H},null,P)},mean:function(P){return vt.mean(P)},median:function(P){return vt.median(P)}};function d(P,z){return P[1]-z[1]}function f(P,z){return z[1]-P[1]}for(r=0;r<e.length;r++){var p=e[r];if(p.type==="category"){var g=p.categoryorder.match(bse);if(g){var h=g[1],y=g[2],b=p._id.charAt(0),v=b==="x",x=[];for(a=0;a<p._categories.length;a++)x.push([p._categories[a],[]]);for(a=0;a<p._traceIndices.length;a++){var k=p._traceIndices[a],_=t._fullData[k];if(_.visible===!0){var S=_.type;an.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=S==="splom",C=S==="scattergl",A=t.calcdata[k];for(o=0;o<A.length;o++){var O=A[o],F,R;if(T){var N=_._axesDim[p._id];if(!v){var B=_._diag[N][0];B&&(p=t._fullLayout[ua.id2name(B)])}var V=O.trace.dimensions[N].values;for(i=0;i<V.length;i++)for(F=p._categoriesMap[V[i]],l=0;l<O.trace.dimensions.length;l++)if(l!==N){var Z=O.trace.dimensions[l];x[F][1].push(Z.values[i])}}else if(C){for(i=0;i<O.t.x.length;i++)v?(F=O.t.x[i],R=O.t.y[i]):(F=O.t.y[i],R=O.t.x[i]),x[F][1].push(R);O.t&&O.t._scene&&delete O.t._scene.dirty}else if(O.hasOwnProperty("z")){R=O.z;var G=s(_.type,p,R);for(i=0;i<R.length;i++)for(l=0;l<R[i].length;l++)F=G(l,i),F+1&&x[F][1].push(R[i][l])}else for(F=O.p,F===void 0&&(F=O[b]),R=O.s,R===void 0&&(R=O.v),R===void 0&&(R=v?O.y:O.x),Array.isArray(R)||(R===void 0?R=[]:R=[R]),i=0;i<R.length;i++)x[F][1].push(R[i])}}}p._categoriesValue=x;var I=[];for(a=0;a<x.length;a++)I.push([x[a][0],u[h](x[a][1])]);I.sort(y==="descending"?f:d),p._categoriesAggregatedValue=I,p._initialCategories=I.map(function(P){return P[0]}),n=n.concat(p.sortByInitialCategories())}}}return n}function vO(e,t,n){var r={};function a(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(t),r[s._id]=1}vt.simpleMap(e,a);for(var o=n._axisMatchGroups||[],i=0;i<o.length;i++)for(var l in o[i])r[l]||a(n[ua.id2name(l)])}function bO(e){var t=e._fullLayout,n=t._visibleModules,r={},a,o,i;for(o=0;o<n.length;o++){var l=n[o],s=l.crossTraceCalc;if(s){var u=l.basePlotModule.name;r[u]?vt.pushUnique(r[u],s):r[u]=[s]}}for(i in r){var d=r[i],f=t._subplots[i];if(Array.isArray(f))for(a=0;a<f.length;a++){var p=f[a],g=i==="cartesian"?t._plots[p]:t[p];for(o=0;o<d.length;o++)d[o](e,g,p)}else for(o=0;o<d.length;o++)d[o](e)}}ct.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},ct.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},ct.reselect=function(e){var t=e._fullLayout,n=(e.layout||{}).selections,r=t._previousSelections;t._previousSelections=n;var a=t._reselect||JSON.stringify(n)!==JSON.stringify(r);an.getComponentMethod("selections","reselect")(e,a)},ct.generalUpdatePerTraceModule=function(e,t,n,r){var a=t.traceHash,o={},i;for(i=0;i<n.length;i++){var l=n[i],s=l[0].trace;s.visible&&(o[s.type]=o[s.type]||[],o[s.type].push(l))}for(var u in a)if(!o[u]){var d=a[u][0],f=d[0].trace;f.visible=!1,o[u]=[d]}for(var p in o){var g=o[p],h=g[0][0].trace._module;h.plot(e,t,vt.filterVisible(g),r)}t.traceHash=o},ct.plotBasePlot=function(e,t,n,r,a){var o=an.getModule(e),i=lse(t.calcdata,o)[0];o.plot(t,i,r,a)},ct.cleanBasePlot=function(e,t,n,r,a){var o=a._has&&a._has(e),i=n._has&&n._has(e);o&&!i&&a["_"+e+"layer"].selectAll("g.trace").remove()};var wr=nO.exports,xO={exports:{}},Ir={},Ll={};(function(e){e.xmlns="http://www.w3.org/2000/xmlns/",e.svg="http://www.w3.org/2000/svg",e.xlink="http://www.w3.org/1999/xlink",e.svgAttrs={xmlns:e.svg,"xmlns:xlink":e.xlink}})(Ll);var Br={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}};(function(e){var t=$t,n=Ge,r=n.strTranslate,a=Ll,o=Br.LINE_SPACING,i=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;e.convertToTspans=function(z,H,j){var q=z.text(),$=!z.attr("data-notex")&&H&&H._context.typesetMath&&typeof MathJax<"u"&&q.match(i),ne=t.select(z.node().parentNode);if(ne.empty())return;var te=z.attr("class")?z.attr("class").split(" ")[0]:"text";te+="-math",ne.selectAll("svg."+te).remove(),ne.selectAll("g."+te+"-group").remove(),z.style("display",null).attr({"data-unformatted":q,"data-math":"N"});function ee(){ne.empty()||(te=z.attr("class")+"-math",ne.select("svg."+te).remove()),z.text("").style("white-space","pre");var se=Z(z.node(),q);se&&z.style("pointer-events","all"),e.positionText(z),j&&j.call(z)}return $?(H&&H._promises||[]).push(new Promise(function(se){z.style("display","none");var U=parseInt(z.node().style.fontSize,10),Y={fontSize:U};f($[2],Y,function(J,re,oe){ne.selectAll("svg."+te).remove(),ne.selectAll("g."+te+"-group").remove();var he=J&&J.select("svg");if(!he||!he.node()){ee(),se();return}var ve=ne.append("g").classed(te+"-group",!0).attr({"pointer-events":"none","data-unformatted":q,"data-math":"Y"});ve.node().appendChild(he.node()),re&&re.node()&&he.node().insertBefore(re.node().cloneNode(!0),he.node().firstChild);var ge=oe.width,xe=oe.height;he.attr({class:te,height:xe,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Le=z.node().style.fill||"black",Ue=he.select("g");Ue.attr({fill:Le,stroke:Le});var Pe=Ue.node().getBoundingClientRect(),De=Pe.width,je=Pe.height;(De>ge||je>xe)&&(he.style("overflow","hidden"),Pe=he.node().getBoundingClientRect(),De=Pe.width,je=Pe.height);var qe=+z.attr("x"),Ee=+z.attr("y"),_e=U||z.node().getBoundingClientRect().height,we=-_e/4;if(te[0]==="y")ve.attr({transform:"rotate("+[-90,qe,Ee]+")"+r(-De/2,we-je/2)});else if(te[0]==="l")Ee=we-je/2;else if(te[0]==="a"&&te.indexOf("atitle")!==0)qe=0,Ee=we;else{var Re=z.attr("text-anchor");qe=qe-De*(Re==="middle"?.5:Re==="end"?1:0),Ee=Ee+we-je/2}he.attr({x:qe,y:Ee}),j&&j.call(z,ve),se(ve)})})):ee(),z};var l=/(<|&lt;|&#60;)/g,s=/(>|&gt;|&#62;)/g;function u(z){return z.replace(l,"\\lt ").replace(s,"\\gt ")}var d=[["$","$"],["\\(","\\)"]];function f(z,H,j){var q=parseInt((MathJax.version||"").split(".")[0]);if(q!==2&&q!==3){n.warn("No MathJax version:",MathJax.version);return}var $,ne,te,ee,se=function(){return ne=n.extendDeepAll({},MathJax.Hub.config),te=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:d},displayAlign:"left"})},U=function(){ne=n.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=d},Y=function(){if($=MathJax.Hub.config.menuSettings.renderer,$!=="SVG")return MathJax.Hub.setRenderer("SVG")},J=function(){$=MathJax.config.startup.output,$!=="svg"&&(MathJax.config.startup.output="svg")},re=function(){var Le="math-output-"+n.randstr({},64);ee=t.select("body").append("div").attr({id:Le}).style({visibility:"hidden",position:"absolute","font-size":H.fontSize+"px"}).text(u(z));var Ue=ee.node();return q===2?MathJax.Hub.Typeset(Ue):MathJax.typeset([Ue])},oe=function(){var Le=ee.select(q===2?".MathJax_SVG":".MathJax"),Ue=!Le.empty()&&ee.select("svg").node();if(!Ue)n.log("There was an error in the tex syntax.",z),j();else{var Pe=Ue.getBoundingClientRect(),De;q===2?De=t.select("body").select("#MathJax_SVG_glyphs"):De=Le.select("defs"),j(Le,De,Pe)}ee.remove()},he=function(){if($!=="SVG")return MathJax.Hub.setRenderer($)},ve=function(){$!=="svg"&&(MathJax.config.startup.output=$)},ge=function(){return te!==void 0&&(MathJax.Hub.processSectionDelay=te),MathJax.Hub.Config(ne)},xe=function(){MathJax.config=ne};q===2?MathJax.Hub.Queue(se,Y,re,oe,he,ge):q===3&&(U(),J(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){re(),oe(),ve(),xe()}))}var p={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},y="​",b=["http:","https:","mailto:","",void 0,":"],v=e.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,_=/<br(\s+.*)?>/i;e.BR_TAG_ALL=/<br(\s+.*)?>/gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,T=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,A=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(z,H){if(!z)return null;var j=z.match(H),q=j&&(j[3]||j[4]);return q&&B(q)}var F=/(^|;)\s*color:/;e.plainText=function(z,H){H=H||{};for(var j=H.len!==void 0&&H.len!==-1?H.len:1/0,q=H.allowedTags!==void 0?H.allowedTags:["br"],$="...",ne=$.length,te=z.split(x),ee=[],se="",U=0,Y=0;Y<te.length;Y++){var J=te[Y],re=J.match(k),oe=re&&re[2].toLowerCase();if(oe)q.indexOf(oe)!==-1&&(ee.push(J),se=oe);else{var he=J.length;if(U+he<j)ee.push(J),U+=he;else if(U<j){var ve=j-U;se&&(se!=="br"||ve<=ne||he<=ne)&&ee.pop(),j>ne?ee.push(J.substr(0,ve-ne)+$):ee.push(J.substr(0,ve));break}se=""}}return ee.join("")};var R={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},N=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function B(z){return z.replace(N,function(H,j){var q;return j.charAt(0)==="#"?q=V(j.charAt(1)==="x"?parseInt(j.substr(2),16):parseInt(j.substr(1),10)):q=R[j],q||H})}e.convertEntities=B;function V(z){if(!(z>1114111)){var H=String.fromCodePoint;if(H)return H(z);var j=String.fromCharCode;return z<=65535?j(z):j((z>>10)+55232,z%1024+56320)}}function Z(z,H){H=H.replace(v," ");var j=!1,q=[],$,ne=-1;function te(){ne++;var je=document.createElementNS(a.svg,"tspan");t.select(je).attr({class:"line",dy:ne*o+"em"}),z.appendChild(je),$=je;var qe=q;if(q=[{node:je}],qe.length>1)for(var Ee=1;Ee<qe.length;Ee++)ee(qe[Ee])}function ee(je){var qe=je.type,Ee={},_e;if(qe==="a"){_e="a";var we=je.target,Re=je.href,Je=je.popup;Re&&(Ee={"xlink:xlink:show":we==="_blank"||we.charAt(0)!=="_"?"new":"replace",target:we,"xlink:xlink:href":Re},Je&&(Ee.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Je+'");return false;'))}else _e="tspan";je.style&&(Ee.style=je.style);var it=document.createElementNS(a.svg,_e);if(qe==="sup"||qe==="sub"){se($,y),$.appendChild(it);var dt=document.createElementNS(a.svg,"tspan");se(dt,y),t.select(dt).attr("dy",h[qe]),Ee.dy=g[qe],$.appendChild(it),$.appendChild(dt)}else $.appendChild(it);t.select(it).attr(Ee),$=je.node=it,q.push(je)}function se(je,qe){je.appendChild(document.createTextNode(qe))}function U(je){if(q.length===1){n.log("Ignoring unexpected end tag </"+je+">.",H);return}var qe=q.pop();je!==qe.type&&n.log("Start tag <"+qe.type+"> doesnt match end tag <"+je+">. Pretending it did match.",H),$=q[q.length-1].node}var Y=_.test(H);Y?te():($=z,q=[{node:z}]);for(var J=H.split(x),re=0;re<J.length;re++){var oe=J[re],he=oe.match(k),ve=he&&he[2].toLowerCase(),ge=p[ve];if(ve==="br")te();else if(ge===void 0)se($,B(oe));else if(he[1])U(ve);else{var xe=he[4],Le={type:ve},Ue=O(xe,S);if(Ue?(Ue=Ue.replace(F,"$1 fill:"),ge&&(Ue+=";"+ge)):ge&&(Ue=ge),Ue&&(Le.style=Ue),ve==="a"){j=!0;var Pe=O(xe,T);if(Pe){var De=G(Pe);De&&(Le.href=De,Le.target=O(xe,C)||"_blank",Le.popup=O(xe,A))}}ee(Le)}}return j}function G(z){var H=encodeURI(decodeURI(z)),j=document.createElement("a"),q=document.createElement("a");j.href=z,q.href=H;var $=j.protocol,ne=q.protocol;return b.indexOf($)!==-1&&b.indexOf(ne)!==-1?H:""}e.sanitizeHTML=function(z){z=z.replace(v," ");for(var H=document.createElement("p"),j=H,q=[],$=z.split(x),ne=0;ne<$.length;ne++){var te=$[ne],ee=te.match(k),se=ee&&ee[2].toLowerCase();if(se in p)if(ee[1])q.length&&(j=q.pop());else{var U=ee[4],Y=O(U,S),J=Y?{style:Y}:{};if(se==="a"){var re=O(U,T);if(re){var oe=G(re);if(oe){J.href=oe;var he=O(U,C);he&&(J.target=he)}}}var ve=document.createElement(se);j.appendChild(ve),t.select(ve).attr(J),j=ve,q.push(ve)}else j.appendChild(document.createTextNode(B(te)))}var ge="innerHTML";return H[ge]},e.lineCount=function(z){return z.selectAll("tspan.line").size()||1},e.positionText=function(z,H,j){return z.each(function(){var q=t.select(this);function $(ee,se){return se===void 0?(se=q.attr(ee),se===null&&(q.attr(ee,0),se=0)):q.attr(ee,se),se}var ne=$("x",H),te=$("y",j);this.nodeName==="text"&&q.selectAll("tspan.line").attr({x:ne,y:te})})};function I(z,H,j){var q=j.horizontalAlign,$=j.verticalAlign||"top",ne=z.node().getBoundingClientRect(),te=H.node().getBoundingClientRect(),ee,se,U;return $==="bottom"?se=function(){return ne.bottom-ee.height}:$==="middle"?se=function(){return ne.top+(ne.height-ee.height)/2}:se=function(){return ne.top},q==="right"?U=function(){return ne.right-ee.width}:q==="center"?U=function(){return ne.left+(ne.width-ee.width)/2}:U=function(){return ne.left},function(){ee=this.node().getBoundingClientRect();var Y=U()-te.left,J=se()-te.top,re=j.gd||{};if(j.gd){re._fullLayout._calcInverseTransform(re);var oe=n.apply3DTransform(re._fullLayout._invTransform)(Y,J);Y=oe[0],J=oe[1]}return this.style({top:J+"px",left:Y+"px","z-index":1e3}),this}}var P="1px ";e.makeTextShadow=function(z){var H=P,j=P,q=P;return H+j+q+z+", -"+H+"-"+j+q+z+", "+H+"-"+j+q+z+", -"+H+j+q+z},e.makeEditable=function(z,H){var j=H.gd,q=H.delegate,$=t.dispatch("edit","input","cancel"),ne=q||z;if(z.style({"pointer-events":q?"none":"all"}),z.size()!==1)throw new Error("boo");function te(){se(),z.style({opacity:0});var U=ne.attr("class"),Y;U?Y="."+U.split(" ")[0]+"-math-group":Y="[class*=-math-group]",Y&&t.select(z.node().parentNode).select(Y).style({opacity:0})}function ee(U){var Y=U.node(),J=document.createRange();J.selectNodeContents(Y);var re=window.getSelection();re.removeAllRanges(),re.addRange(J),Y.focus()}function se(){var U=t.select(j),Y=U.select(".svg-container"),J=Y.append("div"),re=z.node().style,oe=parseFloat(re.fontSize||12),he=H.text;he===void 0&&(he=z.attr("data-unformatted")),J.classed("plugin-editable editable",!0).style({position:"absolute","font-family":re.fontFamily||"Arial","font-size":oe,color:H.fill||re.fill||"black",opacity:1,"background-color":H.background||"transparent",outline:"#ffffff33 1px solid",margin:[-oe/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(he).call(I(z,Y,H)).on("blur",function(){j._editing=!1,z.text(this.textContent).style({opacity:1});var ve=t.select(this).attr("class"),ge;ve?ge="."+ve.split(" ")[0]+"-math-group":ge="[class*=-math-group]",ge&&t.select(z.node().parentNode).select(ge).style({opacity:0});var xe=this.textContent;t.select(this).transition().duration(0).remove(),t.select(document).on("mouseup",null),$.edit.call(z,xe)}).on("focus",function(){var ve=this;j._editing=!0,t.select(document).on("mouseup",function(){if(t.event.target===ve)return!1;document.activeElement===J.node()&&J.node().blur()})}).on("keyup",function(){t.event.which===27?(j._editing=!1,z.style({opacity:1}),t.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),$.cancel.call(z,this.textContent)):($.input.call(z,this.textContent),t.select(this).call(I(z,Y,H)))}).on("keydown",function(){t.event.which===13&&this.blur()}).call(ee)}return H.immediate?te():ne.on("click",te),t.rebind(z,$,"on")}})(Ir);var wO={exports:{}},wse=$t,Ym=ko,Mf=en,Jm=Ge,_O=Kt,_se=tu.isValid;function kse(e,t,n){var r=t?Jm.nestedProperty(e,t).get()||{}:e,a=r[n||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(Jm.isArrayOrTypedArray(a)){for(var i=0;i<a.length;i++)if(Mf(a[i])){o=!0;break}}return Jm.isPlainObject(r)&&(o||r.showscale===!0||Mf(r.cmin)&&Mf(r.cmax)||_se(r.colorscale)||Jm.isPlainObject(r.colorbar))}var kO=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Cf=["min","max","mid","auto"];function TO(e){var t=e._colorAx,n=t||e,r={},a,o,i;for(o=0;o<kO.length;o++)i=kO[o],r[i]=n[i];if(t)for(a="c",o=0;o<Cf.length;o++)i=Cf[o],r[i]=n["c"+i];else{var l;for(o=0;o<Cf.length;o++){if(i=Cf[o],l="c"+i,l in n){r[i]=n[l];continue}l="z"+i,l in n&&(r[i]=n[l])}a=l.charAt(0)}return r._sync=function(s,u){var d=Cf.indexOf(s)!==-1?a+s:s;n[d]=n["_"+d]=u},r}function SO(e){for(var t=TO(e),n=t.min,r=t.max,a=t.reversescale?AO(t.colorscale):t.colorscale,o=a.length,i=new Array(o),l=new Array(o),s=0;s<o;s++){var u=a[s];i[s]=n+u[0]*(r-n),l[s]=u[1]}return{domain:i,range:l}}function AO(e){for(var t=e.length,n=new Array(t),r=t-1,a=0;r>=0;r--,a++){var o=e[r];n[a]=[1-o[0],o[1]]}return n}function MO(e,t){t=t||{};for(var n=e.domain,r=e.range,a=r.length,o=new Array(a),i=0;i<a;i++){var l=Ym(r[i]).toRgb();o[i]=[l.r,l.g,l.b,l.a]}var s=wse.scale.linear().domain(n).range(o).clamp(!0),u=t.noNumericCheck,d=t.returnArray,f;return u&&d?f=s:u?f=function(p){return CO(s(p))}:d?f=function(p){return Mf(p)?s(p):Ym(p).isValid()?p:_O.defaultLine}:f=function(p){return Mf(p)?CO(s(p)):Ym(p).isValid()?p:_O.defaultLine},f.domain=s.domain,f.range=function(){return r},f}function Tse(e,t){return MO(SO(e),t)}function CO(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return Ym(t).toRgbString()}var Mo={hasColorscale:kse,extractOpts:TO,extractScale:SO,flipScale:AO,makeColorScaleFunc:MO,makeColorScaleFuncFromTrace:Tse},OO=d4,Sse=OO.FORMAT_LINK,Ase=OO.DATE_FORMAT_LINK;function Mse(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Tx:EO)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Tx(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Sse+"."].join(" ")}function EO(e,t){return Tx(e,t)+[" And for dates see: "+Ase+".","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(" ")}var Qm={axisHoverFormat:Mse,descriptionOnlyNumbers:Tx,descriptionWithDates:EO},Sx=Fr,pu=ca,LO=ni.dash,Ax=Zn.extendFlat,zO=hn.templatedArray,FO=Qm.descriptionWithDates,Cse=Gn.ONEDAY,oi=Jr,Mx=oi.HOUR_PATTERN,Cx=oi.WEEKDAY_PATTERN,Xm={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},Ose=Ax({},Xm,{values:Xm.values.slice().concat(["sync"]),description:[Xm.description,"If *sync*, the number of ticks will sync with the overlayed axis","set by `overlaying` property."].join(" ")});function IO(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")}}var DO={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},PO={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},RO={valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},NO={valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")};function BO(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick length (in px)."};return e||(t.dflt=5),t}function jO(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick width (in px)."};return e||(t.dflt=1),t}var VO={valType:"color",dflt:pu.defaultLine,editType:"ticks",description:"Sets the tick color."},HO={valType:"color",dflt:pu.lightLine,editType:"ticks",description:"Sets the color of the grid lines."};function UO(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the width (in px) of the grid lines."};return e||(t.dflt=1),t}var qO=Ax({},LO,{editType:"ticks"}),WO={valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},ii={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:pu.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:Sx({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},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},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided and it has a value for both the","lower and upper bound, `autorange` is set to *false*.","Using *min* applies autorange only to set the minimum.","Using *max* applies autorange only to set the maximum.","Using *min reversed* applies autorange only to set the minimum on a reversed axis.","Using *max reversed* applies autorange only to set the maximum on a reversed axis.","Using *reversed* applies autorange on both ends and reverses the axis direction."].join(" ")},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange minimum."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange maximum."].join(" ")},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange minimum if it goes beyond this value.","Has no effect when `autorangeoptions.minallowed` is provided."].join(" ")},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange maximum if it goes beyond this value.","Has no effect when `autorangeoptions.maxallowed` is provided."].join(" ")},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Ensure this value is included in autorange."].join(" ")},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},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,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears.","Leaving either or both elements `null` impacts the default `autorange`."].join(" ")},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the minimum range of this axis."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the maximum range of this axis."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Could be used to set the desired inside range of this axis","(excluding the labels) when `ticklabelposition` of","the anchored axis has *inside*.","Not implemented for axes with `type` *log*.","This would be ignored when `range` is provided."].join(" ")},scaleanchor:{valType:"enumerated",values:[oi.idRegex.x.toString(),oi.idRegex.y.toString(),!1],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Setting `false` allows to remove a default constraint (occasionally,","you may need to prevent a default `scaleanchor` constraint from",'being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}`',"is set automatically in order for pixels to be rendered as squares,","setting `yaxis: {scaleanchor: false}` allows to remove the constraint)."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[oi.idRegex.x.toString(),oi.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:zO("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[Cx,Mx,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+Cx+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+Mx+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+Cx+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+Mx+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:Cse,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:Ose,nticks:IO(),tick0:DO,dtick:PO,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks",description:["Sets the spacing between tick labels as compared to the spacing between ticks.","A value of 1 (default) means each tick gets a label.","A value of 2 means shows every 2nd label.","A larger value n means only every nth tick is labeled.","`tick0` determines which labels are shown.","Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*."].join(" ")},tickvals:RO,ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:NO,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},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",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:BO(),tickwidth:jO(),tickcolor:VO,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},labelalias:{valType:"any",dflt:!1,editType:"ticks",description:["Replacement text for specific tick or hover labels.","For example using {US: 'USA', CA: 'Canada'} changes US to USA","and CA to Canada. The labels we would have shown must match","the keys exactly, after adding any tickprefix or ticksuffix.","For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash.","That means you need to use −1 instead of -1.","labelalias can be used with any axis type, and both keys (if needed)","and values (if desired) can include html-like tags or MathJax."].join(" ")},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:Ax({},LO,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:Sx({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:FO("tick label")},tickformatstops:zO("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:FO("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:pu.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:WO,gridcolor:HO,gridwidth:UO(),griddash:qO,zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:pu.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:pu.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",oi.idRegex.x.toString(),oi.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",oi.idRegex.x.toString(),oi.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},minor:{tickmode:Xm,nticks:IO("minor"),tick0:DO,dtick:PO,tickvals:RO,ticks:NO,ticklen:BO("minor"),tickwidth:jO("minor"),tickcolor:VO,gridcolor:HO,gridwidth:UO("minor"),griddash:qO,showgrid:WO,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},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",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},autoshift:{valType:"boolean",dflt:!1,editType:"plot",description:["Automatically reposition the axis to avoid","overlap with other axes with the same `overlaying` value.","This repositioning will account for any `shift` amount applied to other","axes on the same side with `autoshift` is set to true.","Only has an effect if `anchor` is set to *free*."].join(" ")},shift:{valType:"number",editType:"plot",description:["Moves the axis a given number of pixels from where it would have been otherwise.","Accepts both positive and negative values, which will shift the axis either right","or left, respectively.","If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to *left*.","and defaults to +3 if `side` is set to *right*. Defaults to 0 if `autoshift` is set to false.","Only has an effect if `anchor` is set to *free*."].join(" ")},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","median ascending","median descending"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:Sx({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}},Cn=ii,Ox=Fr,GO=Zn.extendFlat,Ese=Gi.overrideAll,Ex=Ese({orientation:{valType:"enumerated",values:["h","v"],dflt:"v",description:"Sets the orientation of the colorbar."},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",description:["Sets the x position with respect to `xref` of the color bar (in plot fraction).","When `xref` is *paper*, defaults to 1.02 when `orientation` is *v* and","0.5 when `orientation` is *h*.","When `xref` is *container*, defaults to *1* when `orientation` is *v* and","0.5 when `orientation` is *h*.","Must be between *0* and *1* if `xref` is *container*","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar.","Defaults to *left* when `orientation` is *v* and","*center* when `orientation` is *h*."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",description:["Sets the y position with respect to `yref` of the color bar (in plot fraction).","When `yref` is *paper*, defaults to 0.5 when `orientation` is *v* and","1.02 when `orientation` is *h*.","When `yref` is *container*, defaults to 0.5 when `orientation` is *v* and","1 when `orientation` is *h*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar.","Defaults to *middle* when `orientation` is *v* and","*bottom* when `orientation` is *h*."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:Cn.linecolor,outlinewidth:Cn.linewidth,bordercolor:Cn.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:Cn.minor.tickmode,nticks:Cn.nticks,tick0:Cn.tick0,dtick:Cn.dtick,tickvals:Cn.tickvals,ticktext:Cn.ticktext,ticks:GO({},Cn.ticks,{dflt:""}),ticklabeloverflow:GO({},Cn.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn relative to the ticks.","Left and right options are used when `orientation` is *h*,","top and bottom when `orientation` is *v*."].join(" ")},ticklen:Cn.ticklen,tickwidth:Cn.tickwidth,tickcolor:Cn.tickcolor,ticklabelstep:Cn.ticklabelstep,showticklabels:Cn.showticklabels,labelalias:Cn.labelalias,tickfont:Ox({description:"Sets the color bar's tick label font"}),tickangle:Cn.tickangle,tickformat:Cn.tickformat,tickformatstops:Cn.tickformatstops,tickprefix:Cn.tickprefix,showtickprefix:Cn.showtickprefix,ticksuffix:Cn.ticksuffix,showticksuffix:Cn.showticksuffix,separatethousands:Cn.separatethousands,exponentformat:Cn.exponentformat,minexponent:Cn.minexponent,showexponent:Cn.showexponent,title:{text:{valType:"string",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:Ox({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],description:["Determines the location of color bar's title","with respect to the color bar.","Defaults to *top* when `orientation` if *v* and ","defaults to *right* when `orientation` if *h*.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:Ox({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root"),Lse=Ex,zse=nu.counter,Fse=_4,ZO=tu.scales,Ise=Fse(ZO);function Of(e){return"`"+e+"`"}var Ef=function(e,t){e=e||"",t=t||{};var n=t.cLetter||"c",r="onlyIfNumerical"in t?t.onlyIfNumerical:!!e,a="noScale"in t?t.noScale:e==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",i=typeof t.colorscaleDflt=="string"?ZO[t.colorscaleDflt]:null,l=t.editTypeOverride||"",s=e?e+".":"",u,d;"colorAttr"in t?(u=t.colorAttr,d=t.colorAttr):(u={z:"z",c:"color"}[n],d="in "+Of(s+u));var f=r?" Has an effect only if "+d+" is set to a numerical array.":"",p=n+"auto",g=n+"min",h=n+"max",y=n+"mid",b=Of(s+p),v=Of(s+g),x=Of(s+h),k=v+" and "+x,_={};_[g]=_[h]=void 0;var S={};S[p]=!1;var T={};return u==="color"&&(T.color={valType:"color",arrayOk:!0,editType:l||"style",description:["Sets the",e,"color.","It accepts either a specific color","or an array of numbers that are mapped to the colorscale","relative to the max and min values of the array or relative to",k,"if set."].join(" ")},t.anim&&(T.color.anim=!0)),T[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_,description:["Determines whether or not the color domain is computed","with respect to the input data (here "+d+") or the bounds set in",k+f,"Defaults to `false` when",k,"are set by the user."].join(" ")},T[g]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:S,description:["Sets the lower bound of the color domain."+f,"Value should have the same units as",d,"and if set,",x,"must be set as well."].join(" ")},T[h]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:S,description:["Sets the upper bound of the color domain."+f,"Value should have the same units as",d,"and if set,",v,"must be set as well."].join(" ")},T[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:_,description:["Sets the mid-point of the color domain by scaling",v,"and/or",x,"to be equidistant to this point."+f,"Value should have the same units as",d+".","Has no effect when",b,"is `false`."].join(" ")},T.colorscale={valType:"colorscale",editType:"calc",dflt:i,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale."+f,"The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in color space,","use",k+".","Alternatively, `colorscale` may be a palette name string","of the following list: "+Ise+"."].join(" ")},T.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)","or the palette determined by",Of(s+"colorscale")+"."+f,"In case `colorscale` is unspecified or `autocolorscale` is true, the default","palette will be chosen according to whether numbers in the `color` array are","all positive, all negative or mixed."].join(" ")},T.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true."+f,"If true,",v,"will correspond to the last color","in the array and",x,"will correspond to the first color."].join(" ")},a||(T.showscale={valType:"boolean",dflt:o,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace."+f].join(" ")},T.colorbar=Lse),t.noColorAxis||(T.coloraxis={valType:"subplotid",regex:zse("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),T},Dse=Zn.extendFlat,Pse=Ef,Lx=tu.scales,zx="Note that `autocolorscale` must be true for this attribute to work.",KO={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Lx.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",zx].join(" ")},sequentialminus:{valType:"colorscale",dflt:Lx.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",zx].join(" ")},diverging:{valType:"colorscale",dflt:Lx.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",zx].join(" ")}},coloraxis:Dse({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},Pse("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))},Rse=Ge,YO=function(e){return Rse.isPlainObject(e.colorbar)},$m={},Fx=en,JO=Ge,QO=Gn,Nse=QO.ONEDAY,Bse=QO.ONEWEEK;$m.dtick=function(e,t){var n=t==="log",r=t==="date",a=t==="category",o=r?Nse:1;if(!e)return o;if(Fx(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):r?Math.max(.1,e):e;if(typeof e!="string"||!(r||n))return o;var i=e.charAt(0),l=e.substr(1);return l=Fx(l)?Number(l):0,l<=0||!(r&&i==="M"&&l===Math.round(l)||n&&i==="L"||n&&i==="D"&&(l===1||l===2))?o:e},$m.tick0=function(e,t,n,r){if(t==="date")return JO.cleanDate(e,JO.dateTick0(n,r%Bse===0?1:0));if(!(r==="D1"||r==="D2"))return Fx(e)?Number(e):0};var XO=$m,jse=Ge.isArrayOrTypedArray,Vse=$n.isTypedArraySpec,Hse=$n.decodeTypedArraySpec,$O=function(e,t,n,r,a){a||(a={});var o=a.isMinor,i=o?e.minor||{}:e,l=o?t.minor:t,s=o?"minor.":"";function u(v){var x=i[v];return Vse(x)&&(x=Hse(x)),x!==void 0?x:(l._template||{})[v]}var d=u("tick0"),f=u("dtick"),p=u("tickvals"),g=jse(p)?"array":f?"linear":"auto",h=n(s+"tickmode",g);if(h==="auto"||h==="sync")n(s+"nticks");else if(h==="linear"){var y=l.dtick=XO.dtick(f,r);l.tick0=XO.tick0(d,r,t.calendar,y)}else if(r!=="multicategory"){var b=n(s+"tickvals");b===void 0?l.tickmode="auto":o||n("ticktext")}},Ix=Ge,e8=ii,t8=function(e,t,n,r){var a=r.isMinor,o=a?e.minor||{}:e,i=a?t.minor:t,l=a?e8.minor:e8,s=a?"minor.":"",u=Ix.coerce2(o,i,l,"ticklen",a?(t.ticklen||5)*.6:void 0),d=Ix.coerce2(o,i,l,"tickwidth",a?t.tickwidth||1:void 0),f=Ix.coerce2(o,i,l,"tickcolor",(a?t.tickcolor:void 0)||i.color),p=n(s+"ticks",!a&&r.outerTicks||u||d||f?"outside":"");p||(delete i.ticklen,delete i.tickwidth,delete i.tickcolor)},n8=function(e){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(a){return e[a]!==void 0}),r=function(a){return e[a]===e[n[0]]};if(n.every(r)||n.length===1)return e[n[0]]},eg=Ge,Use=hn,li=function(e,t,n){var r=n.name,a=n.inclusionAttr||"visible",o=t[r],i=eg.isArrayOrTypedArray(e[r])?e[r]:[],l=t[r]=[],s=Use.arrayTemplater(t,r,a),u,d;for(u=0;u<i.length;u++){var f=i[u];eg.isPlainObject(f)?d=s.newItem(f):(d=s.newItem({}),d[a]=!1),d._index=u,d[a]!==!1&&n.handleItemDefaults(f,d,t,n),l.push(d)}var p=s.defaultItems();for(u=0;u<p.length;u++)d=p[u],d._index=l.length,n.handleItemDefaults({},d,t,n,{}),l.push(d);if(eg.isArrayOrTypedArray(o)){var g=Math.min(o.length,l.length);for(u=0;u<g;u++)eg.relinkPrivateKeys(l[u],o[u])}return l},Dx=Ge,qse=Kt.contrast,r8=ii,Wse=n8,Gse=li,a8=function(e,t,n,r,a){a||(a={});var o=n("labelalias");Dx.isPlainObject(o)||delete t.labelalias;var i=Wse(e),l=n("showticklabels");if(l){var s=a.font||{},u=t.color,d=t.ticklabelposition||"",f=d.indexOf("inside")!==-1?qse(a.bgColor):u&&u!==r8.color.dflt?u:s.color;if(Dx.coerceFont(n,"tickfont",{family:s.family,size:s.size,color:f}),!a.noTicklabelstep&&r!=="multicategory"&&r!=="log"&&n("ticklabelstep"),a.noAng||n("tickangle"),r!=="category"){var p=n("tickformat");Gse(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Zse}),t.tickformatstops.length||delete t.tickformatstops,!a.noExp&&!p&&r!=="date"&&(n("showexponent",i),n("exponentformat"),n("minexponent"),n("separatethousands"))}}};function Zse(e,t){function n(a,o){return Dx.coerce(e,t,r8.tickformatstops,a,o)}var r=n("enabled");r&&(n("dtickrange"),n("value"))}var Kse=n8,o8=function(e,t,n,r,a){a||(a={});var o=a.tickSuffixDflt,i=Kse(e),l=n("tickprefix");l&&n("showtickprefix",i);var s=n("ticksuffix",o);s&&n("showticksuffix",i)},zl=Ge,Yse=hn,Jse=$O,Qse=t8,Xse=a8,$se=o8,ece=Ex,i8=function(e,t,n){var r=Yse.newContainer(t,"colorbar"),a=e.colorbar||{};function o(F,R){return zl.coerce(a,r,ece,F,R)}var i=n.margin||{t:0,b:0,l:0,r:0},l=n.width-i.l-i.r,s=n.height-i.t-i.b,u=o("orientation"),d=u==="v",f=o("thicknessmode");o("thickness",f==="fraction"?30/(d?l:s):30);var p=o("lenmode");o("len",p==="fraction"?1:d?s:l);var g=o("yref"),h=o("xref"),y=g==="paper",b=h==="paper",v,x,k,_="left";d?(k="middle",_=b?"left":"right",v=b?1.02:1,x=.5):(k=y?"bottom":"top",_="center",v=.5,x=y?1.02:1),zl.coerce(a,r,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:v}},"x"),zl.coerce(a,r,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",_),o("xpad"),o("yanchor",k),o("ypad"),zl.noneOrAll(a,r,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var S=zl.coerce(a,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",S.indexOf("inside")!==-1?"hide past domain":"hide past div"),Jse(a,r,o,"linear");var T=n.font,C={outerTicks:!1,font:T};S.indexOf("inside")!==-1&&(C.bgColor="black"),$se(a,r,o,"linear",C),Xse(a,r,o,"linear",C),Qse(a,r,o,"linear"),o("title.text",n._dfltTitle.colorbar);var A=r.showticklabels?r.tickfont:T,O=zl.extendFlat({},A,{color:T.color,size:zl.bigFont(A.size)});zl.coerceFont(o,"title.font",O),o("title.side",d?"top":"right")},l8=en,Px=Ge,tce=YO,nce=i8,s8=tu.isValid,rce=Dt.traceIs;function Rx(e,t){var n=t.slice(0,t.length-1);return t?Px.nestedProperty(e,n).get()||{}:e}var hu=function e(t,n,r,a,o){var i=o.prefix,l=o.cLetter,s="_module"in n,u=Rx(t,i),d=Rx(n,i),f=Rx(n._template||{},i)||{},p=function(){return delete t.coloraxis,delete n.coloraxis,e(t,n,r,a,o)};if(s){var g=r._colorAxes||{},h=a(i+"coloraxis");if(h){var y=rce(n,"contour")&&Px.nestedProperty(n,"contours.coloring").get()||"heatmap",b=g[h];b?(b[2].push(p),b[0]!==y&&(b[0]=!1,Px.warn(["Ignoring coloraxis:",h,"setting","as it is linked to incompatible colorscales."].join(" ")))):g[h]=[y,n,[p]];return}}var v=u[l+"min"],x=u[l+"max"],k=l8(v)&&l8(x)&&v<x,_=a(i+l+"auto",!k);_?a(i+l+"mid"):(a(i+l+"min"),a(i+l+"max"));var S=u.colorscale,T=f.colorscale,C;if(S!==void 0&&(C=!s8(S)),T!==void 0&&(C=!s8(T)),a(i+"autocolorscale",C),a(i+"colorscale"),a(i+"reversescale"),i!=="marker.line."){var A;i&&s&&(A=tce(u));var O=a(i+"showscale",A);O&&(i&&f&&(d._template=f),nce(u,d,r))}},c8=Ge,ace=hn,u8=KO,oce=hu,ice=function(e,t){function n(d,f){return c8.coerce(e,t,u8,d,f)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var r=t._colorAxes,a,o;function i(d,f){return c8.coerce(a,o,u8.coloraxis,d,f)}for(var l in r){var s=r[l];if(s[0])a=e[l]||{},o=ace.newContainer(t,l,"coloraxis"),o._name=l,oce(a,o,t,i,{prefix:"",cLetter:"c"});else{for(var u=0;u<s[2].length;u++)s[2][u]();delete t._colorAxes[l]}}},lce=Ge,sce=Mo.hasColorscale,cce=Mo.extractOpts,uce=function(e,t){function n(u,d){var f=u["_"+d];f!==void 0&&(u[d]=f)}function r(u,d){var f=d.container?lce.nestedProperty(u,d.container).get():u;if(f)if(f.coloraxis)f._colorAx=t[f.coloraxis];else{var p=cce(f),g=p.auto;(g||p.min===void 0)&&n(f,d.min),(g||p.max===void 0)&&n(f,d.max),p.autocolorscale&&n(f,"colorscale")}}for(var a=0;a<e.length;a++){var o=e[a],i=o._module.colorbar;if(i)if(Array.isArray(i))for(var l=0;l<i.length;l++)r(o,i[l]);else r(o,i);sce(o,"marker.line")&&r(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var s in t._colorAxes)r(t[s],{min:"cmin",max:"cmax"})},d8=en,Nx=Ge,dce=Mo.extractOpts,tg=function(e,t,n){var r=e._fullLayout,a=n.vals,o=n.containerStr,i=o?Nx.nestedProperty(t,o).get():t,l=dce(i),s=l.auto!==!1,u=l.min,d=l.max,f=l.mid,p=function(){return Nx.aggNums(Math.min,null,a)},g=function(){return Nx.aggNums(Math.max,null,a)};if(u===void 0?u=p():s&&(i._colorAx&&d8(u)?u=Math.min(u,p()):u=p()),d===void 0?d=g():s&&(i._colorAx&&d8(d)?d=Math.max(d,g()):d=g()),s&&f!==void 0&&(d-f>f-u?u=f-(d-f):d-f<f-u&&(d=f+(f-u))),u===d&&(u-=.5,d+=.5),l._sync("min",u),l._sync("max",d),l.autocolorscale){var h;u*d<0?h=r.colorscale.diverging:u>=0?h=r.colorscale.sequential:h=r.colorscale.sequentialminus,l._sync("colorscale",h)}},ng=tu,mu=Mo,Lf={moduleType:"component",name:"colorscale",attributes:Ef,layoutAttributes:KO,supplyLayoutDefaults:ice,handleDefaults:hu,crossTraceDefaults:uce,calc:tg,scales:ng.scales,defaultScale:ng.defaultScale,getScale:ng.get,isValidScale:ng.isValid,hasColorscale:mu.hasColorscale,extractOpts:mu.extractOpts,extractScale:mu.extractScale,flipScale:mu.flipScale,makeColorScaleFunc:mu.makeColorScaleFunc,makeColorScaleFuncFromTrace:mu.makeColorScaleFuncFromTrace},f8=Ge,fce=$n.isTypedArraySpec,Wa={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 t=e.marker;return f8.isPlainObject(t)&&(f8.isArrayOrTypedArray(t.size)||fce(t.size))}},pce=en,hce=function(e,t){t||(t=2);var n=e.marker,r=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(i){return Math.sqrt(i/r)}:function(i){return i/r};return function(i){var l=o(i/t);return pce(l)&&l>0?Math.max(l,a):0}},Ki={};(function(e){var t=Ge;e.getSubplot=function(l){return l.subplot||l.xaxis+l.yaxis||l.geo},e.isTraceInSubplots=function(l,s){if(l.type==="splom"){for(var u=l.xaxes||[],d=l.yaxes||[],f=0;f<u.length;f++)for(var p=0;p<d.length;p++)if(s.indexOf(u[f]+d[p])!==-1)return!0;return!1}return s.indexOf(e.getSubplot(l))!==-1},e.flat=function(l,s){for(var u=new Array(l.length),d=0;d<l.length;d++)u[d]=s;return u},e.p2c=function(l,s){for(var u=new Array(l.length),d=0;d<l.length;d++)u[d]=l[d].p2c(s);return u},e.getDistanceFunction=function(l,s,u,d){return l==="closest"?d||e.quadrature(s,u):l.charAt(0)==="x"?s:u},e.getClosest=function(l,s,u){if(u.index!==!1)u.index>=0&&u.index<l.length?u.distance=0:u.index=!1;else for(var d=0;d<l.length;d++){var f=s(l[d]);f<=u.distance&&(u.index=d,u.distance=f)}return u},e.inbox=function(l,s,u){return l*s<0||l===0?u:1/0},e.quadrature=function(l,s){return function(u){var d=l(u),f=s(u);return Math.sqrt(d*d+f*f)}},e.makeEventData=function(l,s,u){var d="index"in l?l.index:l.pointNumber,f={data:s._input,fullData:s,curveNumber:s.index,pointNumber:d};if(s._indexToPoints){var p=s._indexToPoints[d];p.length===1?f.pointIndex=p[0]:f.pointIndices=p}else f.pointIndex=d;return s._module.eventData?f=s._module.eventData(f,l,s,u,d):("xVal"in l?f.x=l.xVal:"x"in l&&(f.x=l.x),"yVal"in l?f.y=l.yVal:"y"in l&&(f.y=l.y),l.xa&&(f.xaxis=l.xa),l.ya&&(f.yaxis=l.ya),l.zLabelVal!==void 0&&(f.z=l.zLabelVal)),e.appendArrayPointValue(f,s,d),f},e.appendArrayPointValue=function(l,s,u){var d=s._arrayAttrs;if(d)for(var f=0;f<d.length;f++){var p=d[f],g=r(p);if(l[g]===void 0){var h=t.nestedProperty(s,p).get(),y=a(h,u);y!==void 0&&(l[g]=y)}}},e.appendArrayMultiPointValues=function(l,s,u){var d=s._arrayAttrs;if(d)for(var f=0;f<d.length;f++){var p=d[f],g=r(p);if(l[g]===void 0){for(var h=t.nestedProperty(s,p).get(),y=new Array(u.length),b=0;b<u.length;b++)y[b]=a(h,u[b]);l[g]=y}}};var n={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function r(l){return n[l]||l}function a(l,s){if(Array.isArray(s)){if(Array.isArray(l)&&Array.isArray(l[s[0]]))return l[s[0]][s[1]]}else return l[s]}var o={x:!0,y:!0},i={"x unified":!0,"y unified":!0};e.isUnifiedHover=function(l){return typeof l!="string"?!1:!!i[l]},e.isXYhover=function(l){return typeof l!="string"?!1:!!o[l]}})(Ki);var p8=gce,Bx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},mce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function gce(e){var t=[];return e.replace(mce,function(n,r,a){var o=r.toLowerCase();for(a=vce(a),o=="m"&&a.length>2&&(t.push([r].concat(a.splice(0,2))),o="l",r=r=="m"?"l":"L");;){if(a.length==Bx[o])return a.unshift(r),t.push(a);if(a.length<Bx[o])throw new Error("malformed path data");t.push([r].concat(a.splice(0,Bx[o])))}}),t}var yce=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function vce(e){var t=e.match(yce);return t?t.map(Number):[]}var jx,h8;function bce(){if(h8)return jx;h8=1;var e=p8,t=$t.round,n="M0,0Z",r=Math.sqrt(2),a=Math.sqrt(3),o=Math.PI,i=Math.cos,l=Math.sin;jx={circle:{n:0,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x="M"+v+",0A"+v+","+v+" 0 1,1 0,-"+v+"A"+v+","+v+" 0 0,1 "+v+",0Z";return b?g(y,b,x):x}},square:{n:1,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+","+v+"H-"+v+"V-"+v+"H"+v+"Z")}},diamond:{n:2,f:function(h,y,b){if(s(y))return n;var v=t(h*1.3,2);return g(y,b,"M"+v+",0L0,"+v+"L-"+v+",0L0,-"+v+"Z")}},cross:{n:3,f:function(h,y,b){if(s(y))return n;var v=t(h*.4,2),x=t(h*1.2,2);return g(y,b,"M"+x+","+v+"H"+v+"V"+x+"H-"+v+"V"+v+"H-"+x+"V-"+v+"H-"+v+"V-"+x+"H"+v+"V-"+v+"H"+x+"Z")}},x:{n:4,f:function(h,y,b){if(s(y))return n;var v=t(h*.8/r,2),x="l"+v+","+v,k="l"+v+",-"+v,_="l-"+v+",-"+v,S="l-"+v+","+v;return g(y,b,"M0,"+v+x+k+_+k+_+S+_+S+x+S+x+"Z")}},"triangle-up":{n:5,f:function(h,y,b){if(s(y))return n;var v=t(h*2/a,2),x=t(h/2,2),k=t(h,2);return g(y,b,"M-"+v+","+x+"H"+v+"L0,-"+k+"Z")}},"triangle-down":{n:6,f:function(h,y,b){if(s(y))return n;var v=t(h*2/a,2),x=t(h/2,2),k=t(h,2);return g(y,b,"M-"+v+",-"+x+"H"+v+"L0,"+k+"Z")}},"triangle-left":{n:7,f:function(h,y,b){if(s(y))return n;var v=t(h*2/a,2),x=t(h/2,2),k=t(h,2);return g(y,b,"M"+x+",-"+v+"V"+v+"L-"+k+",0Z")}},"triangle-right":{n:8,f:function(h,y,b){if(s(y))return n;var v=t(h*2/a,2),x=t(h/2,2),k=t(h,2);return g(y,b,"M-"+x+",-"+v+"V"+v+"L"+k+",0Z")}},"triangle-ne":{n:9,f:function(h,y,b){if(s(y))return n;var v=t(h*.6,2),x=t(h*1.2,2);return g(y,b,"M-"+x+",-"+v+"H"+v+"V"+x+"Z")}},"triangle-se":{n:10,f:function(h,y,b){if(s(y))return n;var v=t(h*.6,2),x=t(h*1.2,2);return g(y,b,"M"+v+",-"+x+"V"+v+"H-"+x+"Z")}},"triangle-sw":{n:11,f:function(h,y,b){if(s(y))return n;var v=t(h*.6,2),x=t(h*1.2,2);return g(y,b,"M"+x+","+v+"H-"+v+"V-"+x+"Z")}},"triangle-nw":{n:12,f:function(h,y,b){if(s(y))return n;var v=t(h*.6,2),x=t(h*1.2,2);return g(y,b,"M-"+v+","+x+"V-"+v+"H"+x+"Z")}},pentagon:{n:13,f:function(h,y,b){if(s(y))return n;var v=t(h*.951,2),x=t(h*.588,2),k=t(-h,2),_=t(h*-.309,2),S=t(h*.809,2);return g(y,b,"M"+v+","+_+"L"+x+","+S+"H-"+x+"L-"+v+","+_+"L0,"+k+"Z")}},hexagon:{n:14,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h/2,2),k=t(h*a/2,2);return g(y,b,"M"+k+",-"+x+"V"+x+"L0,"+v+"L-"+k+","+x+"V-"+x+"L0,-"+v+"Z")}},hexagon2:{n:15,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h/2,2),k=t(h*a/2,2);return g(y,b,"M-"+x+","+k+"H"+x+"L"+v+",0L"+x+",-"+k+"H-"+x+"L-"+v+",0Z")}},octagon:{n:16,f:function(h,y,b){if(s(y))return n;var v=t(h*.924,2),x=t(h*.383,2);return g(y,b,"M-"+x+",-"+v+"H"+x+"L"+v+",-"+x+"V"+x+"L"+x+","+v+"H-"+x+"L-"+v+","+x+"V-"+x+"Z")}},star:{n:17,f:function(h,y,b){if(s(y))return n;var v=h*1.4,x=t(v*.225,2),k=t(v*.951,2),_=t(v*.363,2),S=t(v*.588,2),T=t(-v,2),C=t(v*-.309,2),A=t(v*.118,2),O=t(v*.809,2),F=t(v*.382,2);return g(y,b,"M"+x+","+C+"H"+k+"L"+_+","+A+"L"+S+","+O+"L0,"+F+"L-"+S+","+O+"L-"+_+","+A+"L-"+k+","+C+"H-"+x+"L0,"+T+"Z")}},hexagram:{n:18,f:function(h,y,b){if(s(y))return n;var v=t(h*.66,2),x=t(h*.38,2),k=t(h*.76,2);return g(y,b,"M-"+k+",0l-"+x+",-"+v+"h"+k+"l"+x+",-"+v+"l"+x+","+v+"h"+k+"l-"+x+","+v+"l"+x+","+v+"h-"+k+"l-"+x+","+v+"l-"+x+",-"+v+"h-"+k+"Z")}},"star-triangle-up":{n:19,f:function(h,y,b){if(s(y))return n;var v=t(h*a*.8,2),x=t(h*.8,2),k=t(h*1.6,2),_=t(h*4,2),S="A "+_+","+_+" 0 0 1 ";return g(y,b,"M-"+v+","+x+S+v+","+x+S+"0,-"+k+S+"-"+v+","+x+"Z")}},"star-triangle-down":{n:20,f:function(h,y,b){if(s(y))return n;var v=t(h*a*.8,2),x=t(h*.8,2),k=t(h*1.6,2),_=t(h*4,2),S="A "+_+","+_+" 0 0 1 ";return g(y,b,"M"+v+",-"+x+S+"-"+v+",-"+x+S+"0,"+k+S+v+",-"+x+"Z")}},"star-square":{n:21,f:function(h,y,b){if(s(y))return n;var v=t(h*1.1,2),x=t(h*2,2),k="A "+x+","+x+" 0 0 1 ";return g(y,b,"M-"+v+",-"+v+k+"-"+v+","+v+k+v+","+v+k+v+",-"+v+k+"-"+v+",-"+v+"Z")}},"star-diamond":{n:22,f:function(h,y,b){if(s(y))return n;var v=t(h*1.4,2),x=t(h*1.9,2),k="A "+x+","+x+" 0 0 1 ";return g(y,b,"M-"+v+",0"+k+"0,"+v+k+v+",0"+k+"0,-"+v+k+"-"+v+",0Z")}},"diamond-tall":{n:23,f:function(h,y,b){if(s(y))return n;var v=t(h*.7,2),x=t(h*1.4,2);return g(y,b,"M0,"+x+"L"+v+",0L0,-"+x+"L-"+v+",0Z")}},"diamond-wide":{n:24,f:function(h,y,b){if(s(y))return n;var v=t(h*1.4,2),x=t(h*.7,2);return g(y,b,"M0,"+x+"L"+v+",0L0,-"+x+"L-"+v+",0Z")}},hourglass:{n:25,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+","+v+"H-"+v+"L"+v+",-"+v+"H-"+v+"Z")},noDot:!0},bowtie:{n:26,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+","+v+"V-"+v+"L-"+v+","+v+"V-"+v+"Z")},noDot:!0},"circle-cross":{n:27,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M0,"+v+"V-"+v+"M"+v+",0H-"+v+"M"+v+",0A"+v+","+v+" 0 1,1 0,-"+v+"A"+v+","+v+" 0 0,1 "+v+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h/r,2);return g(y,b,"M"+x+","+x+"L-"+x+",-"+x+"M"+x+",-"+x+"L-"+x+","+x+"M"+v+",0A"+v+","+v+" 0 1,1 0,-"+v+"A"+v+","+v+" 0 0,1 "+v+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M0,"+v+"V-"+v+"M"+v+",0H-"+v+"M"+v+","+v+"H-"+v+"V-"+v+"H"+v+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+","+v+"L-"+v+",-"+v+"M"+v+",-"+v+"L-"+v+","+v+"M"+v+","+v+"H-"+v+"V-"+v+"H"+v+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(h,y,b){if(s(y))return n;var v=t(h*1.3,2);return g(y,b,"M"+v+",0L0,"+v+"L-"+v+",0L0,-"+v+"ZM0,-"+v+"V"+v+"M-"+v+",0H"+v)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(h,y,b){if(s(y))return n;var v=t(h*1.3,2),x=t(h*.65,2);return g(y,b,"M"+v+",0L0,"+v+"L-"+v+",0L0,-"+v+"ZM-"+x+",-"+x+"L"+x+","+x+"M-"+x+","+x+"L"+x+",-"+x)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(h,y,b){if(s(y))return n;var v=t(h*1.4,2);return g(y,b,"M0,"+v+"V-"+v+"M"+v+",0H-"+v)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+","+v+"L-"+v+",-"+v+"M"+v+",-"+v+"L-"+v+","+v)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(h,y,b){if(s(y))return n;var v=t(h*1.2,2),x=t(h*.85,2);return g(y,b,"M0,"+v+"V-"+v+"M"+v+",0H-"+v+"M"+x+","+x+"L-"+x+",-"+x+"M"+x+",-"+x+"L-"+x+","+x)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(h,y,b){if(s(y))return n;var v=t(h/2,2),x=t(h,2);return g(y,b,"M"+v+","+x+"V-"+x+"M"+(v-x)+",-"+x+"V"+x+"M"+x+","+v+"H-"+x+"M-"+x+","+(v-x)+"H"+x)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(h,y,b){if(s(y))return n;var v=t(h*1.2,2),x=t(h*1.6,2),k=t(h*.8,2);return g(y,b,"M-"+v+","+k+"L0,0M"+v+","+k+"L0,0M0,-"+x+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(h,y,b){if(s(y))return n;var v=t(h*1.2,2),x=t(h*1.6,2),k=t(h*.8,2);return g(y,b,"M-"+v+",-"+k+"L0,0M"+v+",-"+k+"L0,0M0,"+x+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(h,y,b){if(s(y))return n;var v=t(h*1.2,2),x=t(h*1.6,2),k=t(h*.8,2);return g(y,b,"M"+k+","+v+"L0,0M"+k+",-"+v+"L0,0M-"+x+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(h,y,b){if(s(y))return n;var v=t(h*1.2,2),x=t(h*1.6,2),k=t(h*.8,2);return g(y,b,"M-"+k+","+v+"L0,0M-"+k+",-"+v+"L0,0M"+x+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(h,y,b){if(s(y))return n;var v=t(h*1.4,2);return g(y,b,"M"+v+",0H-"+v)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(h,y,b){if(s(y))return n;var v=t(h*1.4,2);return g(y,b,"M0,"+v+"V-"+v)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+",-"+v+"L-"+v+","+v)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(h,y,b){if(s(y))return n;var v=t(h,2);return g(y,b,"M"+v+","+v+"L-"+v+",-"+v)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h*2,2);return g(y,b,"M0,0L-"+v+","+x+"H"+v+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h*2,2);return g(y,b,"M0,0L-"+v+",-"+x+"H"+v+"Z")},noDot:!0},"arrow-left":{n:47,f:function(h,y,b){if(s(y))return n;var v=t(h*2,2),x=t(h,2);return g(y,b,"M0,0L"+v+",-"+x+"V"+x+"Z")},noDot:!0},"arrow-right":{n:48,f:function(h,y,b){if(s(y))return n;var v=t(h*2,2),x=t(h,2);return g(y,b,"M0,0L-"+v+",-"+x+"V"+x+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h*2,2);return g(y,b,"M-"+v+",0H"+v+"M0,0L-"+v+","+x+"H"+v+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(h,y,b){if(s(y))return n;var v=t(h,2),x=t(h*2,2);return g(y,b,"M-"+v+",0H"+v+"M0,0L-"+v+",-"+x+"H"+v+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(h,y,b){if(s(y))return n;var v=t(h*2,2),x=t(h,2);return g(y,b,"M0,-"+x+"V"+x+"M0,0L"+v+",-"+x+"V"+x+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(h,y,b){if(s(y))return n;var v=t(h*2,2),x=t(h,2);return g(y,b,"M0,-"+x+"V"+x+"M0,0L-"+v+",-"+x+"V"+x+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(h,y,b){if(s(y))return n;var v=o/2.5,x=2*h*i(v),k=2*h*l(v);return g(y,b,"M0,0L"+-x+","+k+"L"+x+","+k+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(h,y,b){if(s(y))return n;var v=o/4,x=2*h*i(v),k=2*h*l(v);return g(y,b,"M0,0L"+-x+","+k+"A "+2*h+","+2*h+" 0 0 1 "+x+","+k+"Z")},backoff:.4,noDot:!0}};function s(h){return h===null}var u,d,f,p;function g(h,y,b){if((!h||h%360===0)&&!y)return b;if(f===h&&p===y&&u===b)return d;f=h,p=y,u=b;function v(V,Z){var G=i(V),I=l(V),P=Z[0],z=Z[1]+(y||0);return[P*G-z*I,P*I+z*G]}for(var x=h/180*o,k=0,_=0,S=e(b),T="",C=0;C<S.length;C++){var A=S[C],O=A[0],F=k,R=_;if(O==="M"||O==="L")k=+A[1],_=+A[2];else if(O==="m"||O==="l")k+=+A[1],_+=+A[2];else if(O==="H")k=+A[1];else if(O==="h")k+=+A[1];else if(O==="V")_=+A[1];else if(O==="v")_+=+A[1];else if(O==="A"){k=+A[1],_=+A[2];var N=v(x,[+A[6],+A[7]]);A[6]=N[0],A[7]=N[1],A[3]=+A[3]+h}(O==="H"||O==="V")&&(O="L"),(O==="h"||O==="v")&&(O="l"),(O==="m"||O==="l")&&(k-=F,_-=R);var B=v(x,[k,_]);(O==="H"||O==="V")&&(O="L"),(O==="M"||O==="L"||O==="m"||O==="l")&&(A[1]=B[0],A[2]=B[1]),A[0]=O,T+=A[0]+A.slice(1).join(",")}return d=T,T}return jx}var fr=$t,mn=Ge,xce=mn.numberFormat,Ps=en,Vx=ko,rg=Dt,Dr=Kt,wce=Lf,zf=mn.strTranslate,Hx=Ir,_ce=Ll,kce=Br,Tce=kce.LINE_SPACING,m8=Jb.DESELECTDIM,Sce=Wa,Ace=hce,Mce=Ki.appendArrayPointValue,ut=wO.exports={};ut.font=function(e,t,n,r){mn.isPlainObject(t)&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(Dr.fill,r)},ut.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},ut.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},ut.setRect=function(e,t,n,r,a){e.call(ut.setPosition,t,n).call(ut.setSize,r,a)},ut.translatePoint=function(e,t,n,r){var a=n.c2p(e.x),o=r.c2p(e.y);if(Ps(a)&&Ps(o)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",o):t.attr("transform",zf(a,o));else return!1;return!0},ut.translatePoints=function(e,t,n){e.each(function(r){var a=fr.select(this);ut.translatePoint(r,a,t,n)})},ut.hideOutsideRangePoint=function(e,t,n,r,a,o){t.attr("display",n.isPtWithinRange(e,a)&&r.isPtWithinRange(e,o)?null:"none")},ut.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,r=t.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,s=rg.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){ut.hideOutsideRangePoint(u,fr.select(this),n,r,i,l)})})}},ut.crispRound=function(e,t,n){return!t||!Ps(t)?n||0:e._context.staticPlot?t:t<1?1:Math.round(t)},ut.singleLineStyle=function(e,t,n,r,a){t.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=n||o.width||0,l=a||o.dash||"";Dr.stroke(t,r||o.color),ut.dashLine(t,l,i)},ut.lineGroupStyle=function(e,t,n,r){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=r||o.dash||"";fr.select(this).call(Dr.stroke,n||o.color).call(ut.dashLine,l,i)})},ut.dashLine=function(e,t,n){n=+n||0,t=ut.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},ut.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=n+"px,"+n+"px":e==="dash"?e=3*n+"px,"+3*n+"px":e==="longdash"?e=5*n+"px,"+5*n+"px":e==="dashdot"?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":e==="longdashdot"&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e};function g8(e,t,n){var r=t.fillpattern,a=r&&ut.getPatternAttr(r.shape,0,"");if(a){var o=ut.getPatternAttr(r.bgcolor,0,null),i=ut.getPatternAttr(r.fgcolor,0,null),l=r.fgopacity,s=ut.getPatternAttr(r.size,0,8),u=ut.getPatternAttr(r.solidity,0,.3),d=t.uid;ut.pattern(e,"point",n,d,a,s,u,void 0,r.fillmode,o,i,l)}else t.fillcolor&&e.call(Dr.fill,t.fillcolor)}ut.singleFillStyle=function(e,t){var n=fr.select(e.node()),r=n.data(),a=((r[0]||[])[0]||{}).trace||{};g8(e,a,t)},ut.fillGroupStyle=function(e,t){e.style("stroke-width",0).each(function(n){var r=fr.select(this);n[0].trace&&g8(r,n[0].trace,t)})};var y8=bce();ut.symbolNames=[],ut.symbolFuncs=[],ut.symbolBackOffs=[],ut.symbolNeedLines={},ut.symbolNoDot={},ut.symbolNoFill={},ut.symbolList=[],Object.keys(y8).forEach(function(e){var t=y8[e],n=t.n;ut.symbolList.push(n,String(n),e,n+100,String(n+100),e+"-open"),ut.symbolNames[n]=e,ut.symbolFuncs[n]=t.f,ut.symbolBackOffs[n]=t.backoff||0,t.needLine&&(ut.symbolNeedLines[n]=!0),t.noDot?ut.symbolNoDot[n]=!0:ut.symbolList.push(n+200,String(n+200),e+"-dot",n+300,String(n+300),e+"-open-dot"),t.noFill&&(ut.symbolNoFill[n]=!0)});var Cce=ut.symbolNames.length,Oce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ut.symbolNumber=function(e){if(Ps(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=ut.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Cce||e>=400?0:Math.floor(Math.max(e,0))};function v8(e,t,n,r){var a=e%100;return ut.symbolFuncs[a](t,n,r)+(e>=200?Oce:"")}var b8={x1:1,x2:0,y1:0,y2:0},x8={x1:0,x2:0,y1:1,y2:0},w8=xce("~f"),_8={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:b8},horizontalreversed:{node:"linearGradient",attrs:b8,reversed:!0},vertical:{node:"linearGradient",attrs:x8},verticalreversed:{node:"linearGradient",attrs:x8,reversed:!0}};ut.gradient=function(e,t,n,r,a,o){for(var i=a.length,l=_8[r],s=new Array(i),u=0;u<i;u++)l.reversed?s[i-1-u]=[w8((1-a[u][0])*100),a[u][1]]:s[u]=[w8(a[u][0]*100),a[u][1]];var d=t._fullLayout,f="g"+d._uid+"-"+n,p=d._defs.select(".gradients").selectAll("#"+f).data([r+s.join(";")],mn.identity);p.exit().remove(),p.enter().append(l.node).each(function(){var g=fr.select(this);l.attrs&&g.attr(l.attrs),g.attr("id",f);var h=g.selectAll("stop").data(s);h.exit().remove(),h.enter().append("stop"),h.each(function(y){var b=Vx(y[1]);fr.select(this).attr({offset:y[0]+"%","stop-color":Dr.tinyRGB(b),"stop-opacity":b.getAlpha()})})}),e.style(o,Wx(f,t)).style(o+"-opacity",null),e.classed("gradient_filled",!0)},ut.pattern=function(e,t,n,r,a,o,i,l,s,u,d,f){var p=t==="legend";l&&(s==="overlay"?(u=l,d=Dr.contrast(u)):(u=void 0,d=l));var g=n._fullLayout,h="p"+g._uid+"-"+r,y,b,v=function(B,V,Z,G,I){return G+(I-G)*(B-V)/(Z-V)},x,k,_,S,T={},C=Vx(d),A=Dr.tinyRGB(C),O=C.getAlpha(),F=f*O;switch(a){case"/":y=o*Math.sqrt(2),b=o*Math.sqrt(2),x="M-"+y/4+","+b/4+"l"+y/2+",-"+b/2+"M0,"+b+"L"+y+",0M"+y/4*3+","+b/4*5+"l"+y/2+",-"+b/2,k=i*o,S="path",T={d:x,opacity:F,stroke:A,"stroke-width":k+"px"};break;case"\\":y=o*Math.sqrt(2),b=o*Math.sqrt(2),x="M"+y/4*3+",-"+b/4+"l"+y/2+","+b/2+"M0,0L"+y+","+b+"M-"+y/4+","+b/4*3+"l"+y/2+","+b/2,k=i*o,S="path",T={d:x,opacity:F,stroke:A,"stroke-width":k+"px"};break;case"x":y=o*Math.sqrt(2),b=o*Math.sqrt(2),x="M-"+y/4+","+b/4+"l"+y/2+",-"+b/2+"M0,"+b+"L"+y+",0M"+y/4*3+","+b/4*5+"l"+y/2+",-"+b/2+"M"+y/4*3+",-"+b/4+"l"+y/2+","+b/2+"M0,0L"+y+","+b+"M-"+y/4+","+b/4*3+"l"+y/2+","+b/2,k=o-o*Math.sqrt(1-i),S="path",T={d:x,opacity:F,stroke:A,"stroke-width":k+"px"};break;case"|":y=o,b=o,S="path",x="M"+y/2+",0L"+y/2+","+b,k=i*o,S="path",T={d:x,opacity:F,stroke:A,"stroke-width":k+"px"};break;case"-":y=o,b=o,S="path",x="M0,"+b/2+"L"+y+","+b/2,k=i*o,S="path",T={d:x,opacity:F,stroke:A,"stroke-width":k+"px"};break;case"+":y=o,b=o,S="path",x="M"+y/2+",0L"+y/2+","+b+"M0,"+b/2+"L"+y+","+b/2,k=o-o*Math.sqrt(1-i),S="path",T={d:x,opacity:F,stroke:A,"stroke-width":k+"px"};break;case".":y=o,b=o,i<Math.PI/4?_=Math.sqrt(i*o*o/Math.PI):_=v(i,Math.PI/4,1,o/2,o/Math.sqrt(2)),S="circle",T={cx:y/2,cy:b/2,r:_,opacity:F,fill:A};break}var R=[a||"noSh",u||"noBg",d||"noFg",o,i].join(";"),N=g._defs.select(".patterns").selectAll("#"+h).data([R],mn.identity);N.exit().remove(),N.enter().append("pattern").each(function(){var B=fr.select(this);if(B.attr({id:h,width:y+"px",height:b+"px",patternUnits:"userSpaceOnUse",patternTransform:p?"scale(0.8)":""}),u){var V=Vx(u),Z=Dr.tinyRGB(V),G=V.getAlpha(),I=B.selectAll("rect").data([0]);I.exit().remove(),I.enter().append("rect").attr({width:y+"px",height:b+"px",fill:Z,"fill-opacity":G})}var P=B.selectAll(S).data([0]);P.exit().remove(),P.enter().append(S).attr(T)}),e.style("fill",Wx(h,n)).style("fill-opacity",null),e.classed("pattern_filled",!0)},ut.initGradients=function(e){var t=e._fullLayout,n=mn.ensureSingle(t._defs,"g","gradients");n.selectAll("linearGradient,radialGradient").remove(),fr.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)},ut.initPatterns=function(e){var t=e._fullLayout,n=mn.ensureSingle(t._defs,"g","patterns");n.selectAll("pattern").remove(),fr.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)},ut.getPatternAttr=function(e,t,n){return e&&mn.isArrayOrTypedArray(e)?t<e.length?e[t]:n:e},ut.pointStyle=function(e,t,n,r){if(e.size()){var a=ut.makePointStyleFns(t);e.each(function(o){ut.singlePointStyle(o,fr.select(this),t,a,n,r)})}},ut.singlePointStyle=function(e,t,n,r,a,o){var i=n.marker,l=i.line;if(o&&o.i>=0&&e.i===void 0&&(e.i=o.i),t.style("opacity",r.selectedOpacityFn?r.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),r.ms2mrc){var s;e.ms==="various"||i.size==="various"?s=3:s=r.ms2mrc(e.ms),e.mrc=s,r.selectedSizeFn&&(s=e.mrc=r.selectedSizeFn(e));var u=ut.symbolNumber(e.mx||i.symbol)||0;e.om=u%200>=100;var d=Yx(e,n),f=Gx(e,n);t.attr("d",v8(u,s,d,f))}var p=!1,g,h,y;if(e.so)y=l.outlierwidth,h=l.outliercolor,g=i.outliercolor;else{var b=(l||{}).width;y=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?h=e.mlcc=r.lineScale(e.mlc):mn.isArrayOrTypedArray(l.color)?h=Dr.defaultLine:h=l.color,mn.isArrayOrTypedArray(i.color)&&(g=Dr.defaultLine,p=!0),"mc"in e?g=e.mcc=r.markerScale(e.mc):g=i.color||i.colors||"rgba(0,0,0,0)",r.selectedColorFn&&(g=r.selectedColorFn(e))}if(e.om)t.call(Dr.stroke,g).style({"stroke-width":(y||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:y)+"px");var v=i.gradient,x=e.mgt;x?p=!0:x=v&&v.type,mn.isArrayOrTypedArray(x)&&(x=x[0],_8[x]||(x=0));var k=i.pattern,_=k&&ut.getPatternAttr(k.shape,e.i,"");if(x&&x!=="none"){var S=e.mgc;S?p=!0:S=v.color;var T=n.uid;p&&(T+="-"+e.i),ut.gradient(t,a,T,x,[[0,S],[1,g]],"fill")}else if(_){var C=!1,A=k.fgcolor;!A&&o&&o.color&&(A=o.color,C=!0);var O=ut.getPatternAttr(A,e.i,o&&o.color||null),F=ut.getPatternAttr(k.bgcolor,e.i,null),R=k.fgopacity,N=ut.getPatternAttr(k.size,e.i,8),B=ut.getPatternAttr(k.solidity,e.i,.3);C=C||e.mcc||mn.isArrayOrTypedArray(k.shape)||mn.isArrayOrTypedArray(k.bgcolor)||mn.isArrayOrTypedArray(k.fgcolor)||mn.isArrayOrTypedArray(k.size)||mn.isArrayOrTypedArray(k.solidity);var V=n.uid;C&&(V+="-"+e.i),ut.pattern(t,"point",a,V,_,N,B,e.mcc,k.fillmode,F,O,R)}else mn.isArrayOrTypedArray(g)?Dr.fill(t,g[e.i]):Dr.fill(t,g);y&&Dr.stroke(t,h)}},ut.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=ut.tryColorscale(n,""),t.lineScale=ut.tryColorscale(n,"line"),rg.traceIs(e,"symbols")&&(t.ms2mrc=Sce.isBubble(e)?Ace(e):function(){return(n.size||6)/2}),e.selectedpoints&&mn.extendFlat(t,ut.makeSelectedPointStyleFns(e)),t},ut.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.marker||{},o=n.marker||{},i=r.marker||{},l=a.opacity,s=o.opacity,u=i.opacity,d=s!==void 0,f=u!==void 0;(mn.isArrayOrTypedArray(l)||d||f)&&(t.selectedOpacityFn=function(_){var S=_.mo===void 0?a.opacity:_.mo;return _.selected?d?s:S:f?u:m8*S});var p=a.color,g=o.color,h=i.color;(g||h)&&(t.selectedColorFn=function(_){var S=_.mcc||p;return _.selected?g||S:h||S});var y=a.size,b=o.size,v=i.size,x=b!==void 0,k=v!==void 0;return rg.traceIs(e,"symbols")&&(x||k)&&(t.selectedSizeFn=function(_){var S=_.mrc||y/2;return _.selected?x?b/2:S:k?v/2:S}),t},ut.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.textfont||{},o=n.textfont||{},i=r.textfont||{},l=a.color,s=o.color,u=i.color;return t.selectedTextColorFn=function(d){var f=d.tc||l;return d.selected?s||f:u||(s?f:Dr.addOpacity(f,m8))},t},ut.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var n=ut.makeSelectedPointStyleFns(t),r=t.marker||{},a=[];n.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",n.selectedOpacityFn(i))}),n.selectedColorFn&&a.push(function(o,i){Dr.fill(o,n.selectedColorFn(i))}),n.selectedSizeFn&&a.push(function(o,i){var l=i.mx||r.symbol||0,s=n.selectedSizeFn(i);o.attr("d",v8(ut.symbolNumber(l),s,Yx(i,t),Gx(i,t))),i.mrc2=s}),a.length&&e.each(function(o){for(var i=fr.select(this),l=0;l<a.length;l++)a[l](i,o)})}},ut.tryColorscale=function(e,t){var n=t?mn.nestedProperty(e,t).get():e;if(n){var r=n.color;if((n.colorscale||n._colorAx)&&mn.isArrayOrTypedArray(r))return wce.makeColorScaleFuncFromTrace(n)}return mn.identity};var Ux={start:1,end:-1,middle:0,bottom:1,top:-1};function k8(e,t,n,r,a){var o=fr.select(e.node().parentNode),i=t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle",l=t.indexOf("left")!==-1?"end":t.indexOf("right")!==-1?"start":"middle",s=r?r/.8+1:0,u=(Hx.lineCount(e)-1)*Tce+1,d=Ux[l]*s,f=n*.75+Ux[i]*s+(Ux[i]-1)*u*n/2;e.attr("text-anchor",l),a||o.attr("transform",zf(d,f))}function T8(e,t){var n=e.ts||t.textfont.size;return Ps(n)&&n>0?n:0}ut.textPointStyle=function(e,t,n){if(e.size()){var r;if(t.selectedpoints){var a=ut.makeSelectedTextStyleFns(t);r=a.selectedTextColorFn}var o=t.texttemplate,i=n._fullLayout;e.each(function(l){var s=fr.select(this),u=o?mn.extractOption(l,t,"txt","texttemplate"):mn.extractOption(l,t,"tx","text");if(!u&&u!==0){s.remove();return}if(o){var d=t._module.formatLabels,f=d?d(l,t,i):{},p={};Mce(p,t,l.i);var g=t._meta||{};u=mn.texttemplateString(u,f,i._d3locale,p,l,g)}var h=l.tp||t.textposition,y=T8(l,t),b=r?r(l):l.tc||t.textfont.color;s.call(ut.font,l.tf||t.textfont.family,y,b).text(u).call(Hx.convertToTspans,n).call(k8,h,y,l.mrc)})}},ut.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var n=ut.makeSelectedTextStyleFns(t);e.each(function(r){var a=fr.select(this),o=n.selectedTextColorFn(r),i=r.tp||t.textposition,l=T8(r,t);Dr.fill(a,o);var s=rg.traceIs(t,"bar-like");k8(a,i,l,r.mrc2||r.mrc,s)})}};var S8=.5;ut.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n="M"+e[0],r=[],a;for(a=1;a<e.length-1;a++)r.push(ag(e[a-1],e[a],e[a+1],t));for(n+="Q"+r[0][0]+" "+e[1],a=2;a<e.length-1;a++)n+="C"+r[a-2][1]+" "+r[a-1][0]+" "+e[a];return n+="Q"+r[e.length-3][1]+" "+e[e.length-1],n},ut.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n="M"+e[0],r=e.length-1,a=[ag(e[r],e[0],e[1],t)],o;for(o=1;o<r;o++)a.push(ag(e[o-1],e[o],e[o+1],t));for(a.push(ag(e[r-1],e[r],e[0],t)),o=1;o<=r;o++)n+="C"+a[o-1][1]+" "+a[o][0]+" "+e[o];return n+="C"+a[r][1]+" "+a[0][0]+" "+e[0]+"Z",n};var A8,M8;function gu(e,t,n){return n&&(e=C8(e)),t?Ns(e[1]):Rs(e[0])}function Rs(e){var t=fr.round(e,2);return A8=t,t}function Ns(e){var t=fr.round(e,2);return M8=t,t}function ag(e,t,n,r){var a=e[0]-t[0],o=e[1]-t[1],i=n[0]-t[0],l=n[1]-t[1],s=Math.pow(a*a+o*o,S8/2),u=Math.pow(i*i+l*l,S8/2),d=(u*u*a-s*s*i)*r,f=(u*u*o-s*s*l)*r,p=3*u*(s+u),g=3*s*(s+u);return[[Rs(t[0]+(p&&d/p)),Ns(t[1]+(p&&f/p))],[Rs(t[0]-(g&&d/g)),Ns(t[1]-(g&&f/g))]]}var Ece={hv:function(e,t,n){return"H"+Rs(t[0])+"V"+gu(t,1,n)},vh:function(e,t,n){return"V"+Ns(t[1])+"H"+gu(t,0,n)},hvh:function(e,t,n){return"H"+Rs((e[0]+t[0])/2)+"V"+Ns(t[1])+"H"+gu(t,0,n)},vhv:function(e,t,n){return"V"+Ns((e[1]+t[1])/2)+"H"+Rs(t[0])+"V"+gu(t,1,n)}},Lce=function(e,t,n){return"L"+gu(t,0,n)+","+gu(t,1,n)};ut.steps=function(e){var t=Ece[e]||Lce;return function(n){for(var r="M"+Rs(n[0][0])+","+Ns(n[0][1]),a=n.length,o=1;o<a;o++)r+=t(n[o-1],n[o],o===a-1);return r}};function C8(e,t){var n=e.backoff,r=e.trace,a=e.d,o=e.i;if(n&&r&&r.marker&&r.marker.angle%360===0&&r.line&&r.line.shape!=="spline"){var i=mn.isArrayOrTypedArray(n),l=e,s=t?t[0]:A8||0,u=t?t[1]:M8||0,d=l[0],f=l[1],p=d-s,g=f-u,h=Math.atan2(g,p),y=i?n[o]:n;if(y==="auto"){var b=l.i;r.type==="scatter"&&b--;var v=l.marker,x=v.symbol;mn.isArrayOrTypedArray(x)&&(x=x[b]);var k=v.size;mn.isArrayOrTypedArray(k)&&(k=k[b]),y=v?ut.symbolBackOffs[ut.symbolNumber(x)]*k:0,y+=ut.getMarkerStandoff(a[b],r)||0}var _=d-y*Math.cos(h),S=f-y*Math.sin(h);(_<=d&&_>=s||_>=d&&_<=s)&&(S<=f&&S>=u||S>=f&&S<=u)&&(e=[_,S])}return e}ut.applyBackoff=C8,ut.makeTester=function(){var e=mn.ensureSingleById(fr.select("body"),"svg","js-plotly-tester",function(n){n.attr(_ce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=mn.ensureSingle(e,"path","js-reference-point",function(n){n.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ut.tester=e,ut.testref=t},ut.savedBBoxes={};var qx=0,zce=1e4;ut.bBox=function(e,t,n){n||(n=O8(e));var r;if(n){if(r=ut.savedBBoxes[n],r)return mn.extendFlat({},r)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(n=O8(a),n){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=ut.bBox(a,!1,n);return o&&(s.left+=o,s.right+=o),i&&(s.top+=i,s.bottom+=i),s}if(n+="~"+o+"~"+i+"~"+l,r=ut.savedBBoxes[n],r)return mn.extendFlat({},r)}}var u,d;t?u=e:(d=ut.tester.node(),u=e.cloneNode(!0),d.appendChild(u)),fr.select(u).attr("transform",null).call(Hx.positionText,0,0);var f=u.getBoundingClientRect(),p=ut.testref.node().getBoundingClientRect();t||d.removeChild(u);var g={height:f.height,width:f.width,left:f.left-p.left,top:f.top-p.top,right:f.right-p.left,bottom:f.bottom-p.top};return qx>=zce&&(ut.savedBBoxes={},qx=0),n&&(ut.savedBBoxes[n]=g),qx++,mn.extendFlat({},g)};function O8(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ut.setClipUrl=function(e,t,n){e.attr("clip-path",Wx(t,n))};function Wx(e,t){if(!e)return null;var n=t._context,r=n._exportedPlot?"":n._baseUrl||"";return r?"url('"+r+"#"+e+"')":"url(#"+e+")"}ut.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,n=e.attr?"attr":"getAttribute",r=e[n]("transform")||"",a=r.replace(t,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}},ut.setTranslate=function(e,t,n){var r=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||0,n=n||0,i=i.replace(r,"").trim(),i+=zf(t,n),i=i.trim(),e[o]("transform",i),i},ut.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,n=e.attr?"attr":"getAttribute",r=e[n]("transform")||"",a=r.replace(t,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}},ut.setScale=function(e,t,n){var r=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||1,n=n||1,i=i.replace(r,"").trim(),i+="scale("+t+","+n+")",i=i.trim(),e[o]("transform",i),i};var Fce=/\s*sc.*/;ut.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,!!e){var r=t===1&&n===1?"":"scale("+t+","+n+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(Fce,"");a+=r,a=a.trim(),this.setAttribute("transform",a)})}};var Ice=/translate\([^)]*\)\s*$/;ut.setTextPointsScale=function(e,t,n){e&&e.each(function(){var r,a=fr.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),s=(a.attr("transform")||"").match(Ice);t===1&&n===1?r=[]:r=[zf(i,l),"scale("+t+","+n+")",zf(-i,-l)],s&&r.push(s),a.attr("transform",r.join(""))}})};function Gx(e,t){var n;return e&&(n=e.mf),n===void 0&&(n=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-n:n}ut.getMarkerStandoff=Gx;var Ff=Math.atan2,Bs=Math.cos,yu=Math.sin;function E8(e,t){var n=t[0],r=t[1];return[n*Bs(e)-r*yu(e),n*yu(e)+r*Bs(e)]}var L8,z8,F8,I8,Zx,Kx;function Yx(e,t){var n=e.ma;n===void 0&&(n=t.marker.angle,(!n||mn.isArrayOrTypedArray(n))&&(n=0));var r,a,o=t.marker.angleref;if(o==="previous"||o==="north"){if(t._geo){var i=t._geo.project(e.lonlat);r=i[0],a=i[1]}else{var l=t._xA,s=t._yA;if(l&&s)r=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],d=e.lonlat[1],f=t._geo.project([u,d+1e-5]),p=t._geo.project([u+1e-5,d]),g=Ff(p[1]-a,p[0]-r),h=Ff(f[1]-a,f[0]-r),y;if(o==="north")y=n/180*Math.PI;else if(o==="previous"){var b=u/180*Math.PI,v=d/180*Math.PI,x=L8/180*Math.PI,k=z8/180*Math.PI,_=x-b,S=Bs(k)*yu(_),T=yu(k)*Bs(v)-Bs(k)*yu(v)*Bs(_);y=-Ff(S,T)-Math.PI,L8=u,z8=d}var C=E8(g,[Bs(y),0]),A=E8(h,[yu(y),0]);n=Ff(C[1]+A[1],C[0]+A[0])/Math.PI*180,o==="previous"&&!(Kx===t.uid&&e.i===Zx+1)&&(n=null)}if(o==="previous"&&!t._geo)if(Kx===t.uid&&e.i===Zx+1&&Ps(r)&&Ps(a)){var O=r-F8,F=a-I8,R=t.line&&t.line.shape||"",N=R.slice(R.length-1);N==="h"&&(F=0),N==="v"&&(O=0),n+=Ff(F,O)/Math.PI*180+90}else n=null}return F8=r,I8=a,Zx=e.i,Kx=t.uid,n}ut.getMarkerAngle=Yx;var gn=wO.exports,og=$t,Dce=en,D8=wr,P8=Dt,vu=Ge,R8=vu.strTranslate,N8=gn,B8=Kt,Jx=Ir,j8=Jb,Pce=Br.OPPOSITE_SIDE,V8=/ [XY][0-9]* /;function Rce(e,t,n){var r=n.propContainer,a=n.propName,o=n.placeholder,i=n.traceIndex,l=n.avoid||{},s=n.attributes,u=n.transform,d=n.containerGroup,f=e._fullLayout,p=1,g=!1,h=r.title,y=(h&&h.text?h.text:"").trim(),b=h&&h.font?h.font:{},v=b.family,x=b.size,k=b.color,_;a==="title.text"?_="titleText":a.indexOf("axis")!==-1?_="axisTitleText":a.indexOf("colorbar"!==-1)&&(_="colorbarTitleText");var S=e._context.edits[_];y===""?p=0:y.replace(V8," % ")===o.replace(V8," % ")&&(p=.2,g=!0,S||(y="")),n._meta?y=vu.templateString(y,n._meta):f._meta&&(y=vu.templateString(y,f._meta));var T=y||S,C;d||(d=vu.ensureSingle(f._infolayer,"g","g-"+t),C=f._hColorbarMoveTitle);var A=d.selectAll("text").data(T?[0]:[]);if(A.enter().append("text"),A.text(y).attr("class",t),A.exit().remove(),!T)return d;function O(B){vu.syncOrAsync([F,R],B)}function F(B){var V;return!u&&C&&(u={}),u?(V="",u.rotate&&(V+="rotate("+[u.rotate,s.x,s.y]+")"),(u.offset||C)&&(V+=R8(0,(u.offset||0)-(C||0)))):V=null,B.attr("transform",V),B.style({"font-family":v,"font-size":og.round(x,2)+"px",fill:B8.rgb(k),opacity:p*B8.opacity(k),"font-weight":D8.fontWeight}).attr(s).call(Jx.convertToTspans,e),D8.previousPromises(e)}function R(B){var V=og.select(B.node().parentNode);if(l&&l.selection&&l.side&&y){V.attr("transform",null);var Z=Pce[l.side],G=l.side==="left"||l.side==="top"?-1:1,I=Dce(l.pad)?l.pad:2,P=N8.bBox(V.node()),z={t:0,b:0,l:0,r:0},H=e._fullLayout._reservedMargin;for(var j in H)for(var q in H[j]){var $=H[j][q];z[q]=Math.max(z[q],$)}var ne={left:z.l,top:z.t,right:f.width-z.r,bottom:f.height-z.b},te=l.maxShift||G*(ne[l.side]-P[l.side]),ee=0;if(te<0)ee=te;else{var se=l.offsetLeft||0,U=l.offsetTop||0;P.left-=se,P.right-=se,P.top-=U,P.bottom-=U,l.selection.each(function(){var J=N8.bBox(this);vu.bBoxIntersect(P,J,I)&&(ee=Math.max(ee,G*(J[l.side]-P[Z])+I))}),ee=Math.min(te,ee),r._titleScoot=Math.abs(ee)}if(ee>0||te<0){var Y={left:[-ee,0],right:[ee,0],top:[0,-ee],bottom:[0,ee]}[l.side];V.attr("transform",R8(Y[0],Y[1]))}}}A.call(O);function N(){p=0,g=!0,A.text(o).on("mouseover.opacity",function(){og.select(this).transition().duration(j8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){og.select(this).transition().duration(j8.HIDE_PLACEHOLDER).style("opacity",0)})}return S&&(y?A.on(".opacity",null):N(),A.call(Jx.makeEditable,{gd:e}).on("edit",function(B){i!==void 0?P8.call("_guiRestyle",e,a,B,i):P8.call("_guiRelayout",e,a,B)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(O)}).on("input",function(B){this.text(B||" ").call(Jx.positionText,s.x,s.y)})),A.classed("js-placeholder",g),d}var ig={draw:Rce},Nce=$t,Bce=ff.utcFormat,kn=Ge,jce=kn.numberFormat,si=en,Fl=kn.cleanNumber,Vce=kn.ms2DateTime,H8=kn.dateTime2ms,ci=kn.ensureNumber,U8=kn.isArrayOrTypedArray,Il=Gn,lg=Il.FP_SAFE,Co=Il.BADNUM,Hce=Il.LOG_CLIP,Uce=Il.ONEWEEK,sg=Il.ONEDAY,cg=Il.ONEHOUR,q8=Il.ONEMIN,W8=Il.ONESEC,ug=dr,dg=Jr,fg=dg.HOUR_PATTERN,pg=dg.WEEKDAY_PATTERN;function If(e){return Math.pow(10,e)}function Qx(e){return e!=null}var Xx=function(e,t){t=t||{};var n=e._id||"x",r=n.charAt(0);function a(k,_){if(k>0)return Math.log(k)/Math.LN10;if(k<=0&&_&&e.range&&e.range.length===2){var S=e.range[0],T=e.range[1];return .5*(S+T-2*Hce*Math.abs(S-T))}else return Co}function o(k,_,S,T){if((T||{}).msUTC&&si(k))return+k;var C=H8(k,S||e.calendar);if(C===Co)if(si(k)){k=+k;var A=Math.floor(kn.mod(k+.05,1)*10),O=Math.round(k-A/10);C=H8(new Date(O))+A/10}else return Co;return C}function i(k,_,S){return Vce(k,_,S||e.calendar)}function l(k){return e._categories[Math.round(k)]}function s(k){if(Qx(k)){if(e._categoriesMap===void 0&&(e._categoriesMap={}),e._categoriesMap[k]!==void 0)return e._categoriesMap[k];e._categories.push(typeof k=="number"?String(k):k);var _=e._categories.length-1;return e._categoriesMap[k]=_,_}return Co}function u(k,_){for(var S=new Array(_),T=0;T<_;T++){var C=(k[0]||[])[T],A=(k[1]||[])[T];S[T]=d([C,A])}return S}function d(k){if(e._categoriesMap)return e._categoriesMap[k]}function f(k){var _=d(k);if(_!==void 0)return _;if(si(k))return+k}function p(k){return si(k)?+k:d(k)}function g(k,_,S){return Nce.round(S+_*k,2)}function h(k,_,S){return(k-S)/_}var y=function(k){return si(k)?g(k,e._m,e._b):Co},b=function(k){return h(k,e._m,e._b)};if(e.rangebreaks){var v=r==="y";y=function(k){if(!si(k))return Co;var _=e._rangebreaks.length;if(!_)return g(k,e._m,e._b);var S=v;e.range[0]>e.range[1]&&(S=!S);for(var T=S?-1:1,C=T*k,A=0,O=0;O<_;O++){var F=T*e._rangebreaks[O].min,R=T*e._rangebreaks[O].max;if(C<F)break;if(C>R)A=O+1;else{A=C<(F+R)/2?O:O+1;break}}var N=e._B[A]||0;return isFinite(N)?g(k,e._m2,N):0},b=function(k){var _=e._rangebreaks.length;if(!_)return h(k,e._m,e._b);for(var S=0,T=0;T<_&&!(k<e._rangebreaks[T].pmin);T++)k>e._rangebreaks[T].pmax&&(S=T+1);return h(k,e._m2,e._B[S])}}e.c2l=e.type==="log"?a:ci,e.l2c=e.type==="log"?If:ci,e.l2p=y,e.p2l=b,e.c2p=e.type==="log"?function(k,_){return y(a(k,_))}:y,e.p2c=e.type==="log"?function(k){return If(b(k))}:b,["linear","-"].indexOf(e.type)!==-1?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=Fl,e.c2d=e.c2r=e.l2d=e.l2r=ci,e.d2p=e.r2p=function(k){return e.l2p(Fl(k))},e.p2d=e.p2r=b,e.cleanPos=ci):e.type==="log"?(e.d2r=e.d2l=function(k,_){return a(Fl(k),_)},e.r2d=e.r2c=function(k){return If(Fl(k))},e.d2c=e.r2l=Fl,e.c2d=e.l2r=ci,e.c2r=a,e.l2d=If,e.d2p=function(k,_){return e.l2p(e.d2r(k,_))},e.p2d=function(k){return If(b(k))},e.r2p=function(k){return e.l2p(Fl(k))},e.p2r=b,e.cleanPos=ci):e.type==="date"?(e.d2r=e.r2d=kn.identity,e.d2c=e.r2c=e.d2l=e.r2l=o,e.c2d=e.c2r=e.l2d=e.l2r=i,e.d2p=e.r2p=function(k,_,S){return e.l2p(o(k,0,S))},e.p2d=e.p2r=function(k,_,S){return i(b(k),_,S)},e.cleanPos=function(k){return kn.cleanDate(k,Co,e.calendar)}):e.type==="category"?(e.d2c=e.d2l=s,e.r2d=e.c2d=e.l2d=l,e.d2r=e.d2l_noadd=f,e.r2c=function(k){var _=p(k);return _!==void 0?_:e.fraction2r(.5)},e.l2r=e.c2r=ci,e.r2l=p,e.d2p=function(k){return e.l2p(e.r2c(k))},e.p2d=function(k){return l(b(k))},e.r2p=e.d2p,e.p2r=b,e.cleanPos=function(k){return typeof k=="string"&&k!==""?k:ci(k)}):e.type==="multicategory"&&(e.r2d=e.c2d=e.l2d=l,e.d2r=e.d2l_noadd=f,e.r2c=function(k){var _=f(k);return _!==void 0?_:e.fraction2r(.5)},e.r2c_just_indices=d,e.l2r=e.c2r=ci,e.r2l=f,e.d2p=function(k){return e.l2p(e.r2c(k))},e.p2d=function(k){return l(b(k))},e.r2p=e.d2p,e.p2r=b,e.cleanPos=function(k){return Array.isArray(k)||typeof k=="string"&&k!==""?k:ci(k)},e.setupMultiCategory=function(k){var _=e._traceIndices,S,T,C=e._matchGroup;if(C&&e._categories.length===0){for(var A in C)if(A!==n){var O=t[ug.id2name(A)];_=_.concat(O._traceIndices)}}var F=[[0,{}],[0,{}]],R=[];for(S=0;S<_.length;S++){var N=k[_[S]];if(r in N){var B=N[r],V=N._length||kn.minRowLength(B);if(U8(B[0])&&U8(B[1]))for(T=0;T<V;T++){var Z=B[0][T],G=B[1][T];Qx(Z)&&Qx(G)&&(R.push([Z,G]),Z in F[0][1]||(F[0][1][Z]=F[0][0]++),G in F[1][1]||(F[1][1][G]=F[1][0]++))}}}for(R.sort(function(I,P){var z=F[0][1],H=z[I[0]]-z[P[0]];if(H)return H;var j=F[1][1];return j[I[1]]-j[P[1]]}),S=0;S<R.length;S++)s(R[S])}),e.fraction2r=function(k){var _=e.r2l(e.range[0]),S=e.r2l(e.range[1]);return e.l2r(_+k*(S-_))},e.r2fraction=function(k){var _=e.r2l(e.range[0]),S=e.r2l(e.range[1]);return(e.r2l(k)-_)/(S-_)},e.limitRange=function(k){var _=e.minallowed,S=e.maxallowed;if(!(_===void 0&&S===void 0)){k||(k="range");var T=kn.nestedProperty(e,k).get(),C=kn.simpleMap(T,e.r2l),A=C[1]<C[0];A&&C.reverse();var O=kn.simpleMap([_,S],e.r2l);if(_!==void 0&&C[0]<O[0]&&(T[A?1:0]=_),S!==void 0&&C[1]>O[1]&&(T[A?0:1]=S),T[0]===T[1]){var F=e.l2r(_),R=e.l2r(S);if(_!==void 0){var N=F+1;S!==void 0&&(N=Math.min(N,R)),T[A?1:0]=N}if(S!==void 0){var B=R+1;_!==void 0&&(B=Math.max(B,F)),T[A?0:1]=B}}}},e.cleanRange=function(k,_){e._cleanRange(k,_),e.limitRange(k)},e._cleanRange=function(k,_){_||(_={}),k||(k="range");var S=kn.nestedProperty(e,k).get(),T,C;if(e.type==="date"?C=kn.dfltRange(e.calendar):r==="y"?C=dg.DFLTRANGEY:e._name==="realaxis"?C=[0,1]:C=_.dfltRange||dg.DFLTRANGEX,C=C.slice(),(e.rangemode==="tozero"||e.rangemode==="nonnegative")&&(C[0]=0),!S||S.length!==2){kn.nestedProperty(e,k).set(C);return}var A=S[0]===null,O=S[1]===null;for(e.type==="date"&&!e.autorange&&(S[0]=kn.cleanDate(S[0],Co,e.calendar),S[1]=kn.cleanDate(S[1],Co,e.calendar)),T=0;T<2;T++)if(e.type==="date"){if(!kn.isDateTime(S[T],e.calendar)){e[k]=C;break}if(e.r2l(S[0])===e.r2l(S[1])){var F=kn.constrain(e.r2l(S[0]),kn.MIN_MS+1e3,kn.MAX_MS-1e3);S[0]=e.l2r(F-1e3),S[1]=e.l2r(F+1e3);break}}else{if(!si(S[T]))if(!(A||O)&&si(S[1-T]))S[T]=S[1-T]*(T?10:.1);else{e[k]=C;break}if(S[T]<-lg?S[T]=-lg:S[T]>lg&&(S[T]=lg),S[0]===S[1]){var R=Math.max(1,Math.abs(S[0]*1e-6));S[0]-=R,S[1]+=R}}},e.setScale=function(k){var _=t._size;if(e.overlaying){var S=ug.getFromId({_fullLayout:t},e.overlaying);e.domain=S.domain}var T=k&&e._r?"_r":"range",C=e.calendar;e.cleanRange(T);var A=e.r2l(e[T][0],C),O=e.r2l(e[T][1],C),F=r==="y";if(F?(e._offset=_.t+(1-e.domain[1])*_.h,e._length=_.h*(e.domain[1]-e.domain[0]),e._m=e._length/(A-O),e._b=-e._m*O):(e._offset=_.l+e.domain[0]*_.w,e._length=_.w*(e.domain[1]-e.domain[0]),e._m=e._length/(O-A),e._b=-e._m*A),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks){var R,N;if(e._rangebreaks=e.locateBreaks(Math.min(A,O),Math.max(A,O)),e._rangebreaks.length){for(R=0;R<e._rangebreaks.length;R++)N=e._rangebreaks[R],e._lBreaks+=Math.abs(N.max-N.min);var B=F;A>O&&(B=!B),B&&e._rangebreaks.reverse();var V=B?-1:1;for(e._m2=V*e._length/(Math.abs(O-A)-e._lBreaks),e._B.push(-e._m2*(F?O:A)),R=0;R<e._rangebreaks.length;R++)N=e._rangebreaks[R],e._B.push(e._B[e._B.length-1]-V*e._m2*(N.max-N.min));for(R=0;R<e._rangebreaks.length;R++)N=e._rangebreaks[R],N.pmin=y(N.min),N.pmax=y(N.max)}}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(k){var _=e.rangebreaks||[],S,T,C,A,O;_._cachedPatterns||(_._cachedPatterns=_.map(function(z){return z.enabled&&z.bounds?kn.simpleMap(z.bounds,z.pattern?Fl:e.d2c):null})),_._cachedValues||(_._cachedValues=_.map(function(z){return z.enabled&&z.values?kn.simpleMap(z.values,e.d2c).sort(kn.sorterAsc):null}));for(var F=0;F<_.length;F++){var R=_[F];if(R.enabled){if(R.bounds){var N=R.pattern;switch(S=_._cachedPatterns[F],T=S[0],C=S[1],N){case pg:O=new Date(k),A=O.getUTCDay(),T>C&&(C+=7,A<T&&(A+=7));break;case fg:O=new Date(k);var B=O.getUTCHours(),V=O.getUTCMinutes(),Z=O.getUTCSeconds(),G=O.getUTCMilliseconds();A=B+(V/60+Z/3600+G/36e5),T>C&&(C+=24,A<T&&(A+=24));break;case"":A=k;break}if(A>=T&&A<C)return Co}else for(var I=_._cachedValues[F],P=0;P<I.length;P++)if(T=I[P],C=T+R.dvalue,k>=T&&k<C)return Co}}return k},e.locateBreaks=function(k,_){var S,T,C,A,O=[];if(!e.rangebreaks)return O;var F=e.rangebreaks.slice().sort(function(j,q){return j.pattern===pg&&q.pattern===fg?-1:q.pattern===pg&&j.pattern===fg?1:0}),R=function(j,q){if(j=kn.constrain(j,k,_),q=kn.constrain(q,k,_),j!==q){for(var $=!0,ne=0;ne<O.length;ne++){var te=O[ne];j<te.max&&q>=te.min&&(j<te.min&&(te.min=j),q>te.max&&(te.max=q),$=!1)}$&&O.push({min:j,max:q})}};for(S=0;S<F.length;S++){var N=F[S];if(N.enabled)if(N.bounds){var B=k,V=_;N.pattern&&(B=Math.floor(B)),T=kn.simpleMap(N.bounds,N.pattern?Fl:e.r2l),C=T[0],A=T[1];var Z=new Date(B),G,I;switch(N.pattern){case pg:I=Uce,G=((A<C?7:0)+(A-C))*sg,B+=C*sg-(Z.getUTCDay()*sg+Z.getUTCHours()*cg+Z.getUTCMinutes()*q8+Z.getUTCSeconds()*W8+Z.getUTCMilliseconds());break;case fg:I=sg,G=((A<C?24:0)+(A-C))*cg,B+=C*cg-(Z.getUTCHours()*cg+Z.getUTCMinutes()*q8+Z.getUTCSeconds()*W8+Z.getUTCMilliseconds());break;default:B=Math.min(T[0],T[1]),V=Math.max(T[0],T[1]),I=V-B,G=I}for(var P=B;P<V;P+=I)R(P,P+G)}else for(var z=kn.simpleMap(N.values,e.d2c),H=0;H<z.length;H++)C=z[H],A=C+N.dvalue,R(C,A)}return O.sort(function(j,q){return j.min-q.min}),O},e.makeCalcdata=function(k,_,S){var T,C,A,O,F=e.type,R=F==="date"&&k[_+"calendar"];if(_ in k){if(T=k[_],O=k._length||kn.minRowLength(T),kn.isTypedArray(T)&&(F==="linear"||F==="log")){if(O===T.length)return T;if(T.subarray)return T.subarray(0,O)}if(F==="multicategory")return u(T,O);for(C=new Array(O),A=0;A<O;A++)C[A]=e.d2c(T[A],0,R,S)}else{var N=_+"0"in k?e.d2c(k[_+"0"],0,R):0,B=k["d"+_]?Number(k["d"+_]):1;for(T=k[{x:"y",y:"x"}[_]],O=k._length||T.length,C=new Array(O),A=0;A<O;A++)C[A]=N+A*B}if(e.rangebreaks)for(A=0;A<O;A++)C[A]=e.maskBreaks(C[A]);return C},e.isValidRange=function(k,_){return Array.isArray(k)&&k.length===2&&(_&&k[0]===null||si(e.r2l(k[0])))&&(_&&k[1]===null||si(e.r2l(k[1])))},e.getAutorangeDflt=function(k,_){var S=!e.isValidRange(k,"nullOk");return S&&_&&_.reverseDflt?S="reversed":k&&(k[0]===null&&k[1]===null?S=!0:k[0]===null&&k[1]!==null?S="min":k[0]!==null&&k[1]===null&&(S="max")),S},e.isReversed=function(){var k=e.autorange;return k==="reversed"||k==="min reversed"||k==="max reversed"},e.isPtWithinRange=function(k,_){var S=e.c2l(k[r],null,_),T=e.r2l(e.range[0]),C=e.r2l(e.range[1]);return T<C?T<=S&&S<=C:C<=S&&S<=T},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var k=e._matchGroup;if(k){var _=null,S=null;for(var T in k){var C=t[ug.id2name(T)];if(C._categories){_=C._categories,S=C._categoriesMap;break}}_&&S?(e._categories=_,e._categoriesMap=S):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var A=0;A<e._initialCategories.length;A++)s(e._initialCategories[A])},e.sortByInitialCategories=function(){var k=[];if(e._emptyCategories(),e._initialCategories)for(var _=0;_<e._initialCategories.length;_++)s(e._initialCategories[_]);k=k.concat(e._traceIndices);var S=e._matchGroup;for(var T in S)if(n!==T){var C=t[ug.id2name(T)];C._categories=e._categories,C._categoriesMap=e._categoriesMap,k=k.concat(C._traceIndices)}return k};var x=t._d3locale;e.type==="date"&&(e._dateFormat=x?x.timeFormat:Bce,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=x?x.numberFormat:jce,delete e._minDtick,delete e._forceTick0},G8=en,$x=Ge,qce=Gn.BADNUM,hg=$x.isArrayOrTypedArray,Wce=$x.isDateTime,Gce=$x.cleanNumber,Z8=Math.round,K8=function(e,t,n){var r=e,a=n.noMultiCategory;if(hg(r)&&!r.length)return"-";if(!a&&Qce(r))return"multicategory";if(a&&Array.isArray(r[0])){for(var o=[],i=0;i<r.length;i++)if(hg(r[i]))for(var l=0;l<r[i].length;l++)o.push(r[i][l]);r=o}if(Yce(r,t))return"date";var s=n.autotypenumbers!=="strict";return Jce(r,s)?"category":Kce(r,s)?"linear":"-"};function Zce(e,t){return t?G8(e):typeof e=="number"}function Kce(e,t){for(var n=e.length,r=0;r<n;r++)if(Zce(e[r],t))return!0;return!1}function Yce(e,t){for(var n=e.length,r=Y8(n),a=0,o=0,i={},l=0;l<n;l+=r){var s=Z8(l),u=e[s],d=String(u);i[d]||(i[d]=1,Wce(u,t)&&a++,G8(u)&&o++)}return a>o*2}function Y8(e){return Math.max(1,(e-1)/1e3)}function Jce(e,t){for(var n=e.length,r=Y8(n),a=0,o=0,i={},l=0;l<n;l+=r){var s=Z8(l),u=e[s],d=String(u);if(!i[d]){i[d]=1;var f=typeof u;f==="boolean"?o++:(t?Gce(u)!==qce:f==="number")?a++:f==="string"&&o++}}return o>a*2}function Qce(e){return hg(e[0])&&hg(e[1])}var Xce=$t,J8=en,Dl=Ge,mg=Gn.FP_SAFE,$ce=Dt,eue=gn,Q8=dr,tue=Q8.getFromId,nue=Q8.isLinked,gg={applyAutorangeOptions:n6,getAutoRange:e1,makePadFn:t1,doAutoRange:aue,findExtremes:oue,concatExtremes:n1};function e1(e,t){var n,r,a=[],o=e._fullLayout,i=t1(o,t,0),l=t1(o,t,1),s=n1(e,t),u=s.min,d=s.max;if(u.length===0||d.length===0)return Dl.simpleMap(t.range,t.r2l);var f=u[0].val,p=d[0].val;for(n=1;n<u.length&&f===p;n++)f=Math.min(f,u[n].val);for(n=1;n<d.length&&f===p;n++)p=Math.max(p,d[n].val);var g=t.autorange,h=g==="reversed"||g==="min reversed"||g==="max reversed";if(!h&&t.range){var y=Dl.simpleMap(t.range,t.r2l);h=y[1]<y[0]}t.autorange==="reversed"&&(t.autorange=!0);var b=t.rangemode,v=b==="tozero",x=b==="nonnegative",k=t._length,_=k/10,S=0,T,C,A,O,F,R;for(n=0;n<u.length;n++)for(T=u[n],r=0;r<d.length;r++)C=d[r],R=C.val-T.val-X8(t,T.val,C.val),R>0&&(F=k-i(T)-l(C),F>_?R/F>S&&(A=T,O=C,S=R/F):R/k>S&&(A={val:T.val,nopad:1},O={val:C.val,nopad:1},S=R/k));function N(I,P){return Math.max(I,l(P))}if(f===p){var B=f-1,V=f+1;if(v)if(f===0)a=[0,1];else{var Z=(f>0?d:u).reduce(N,0),G=f/(1-Math.min(.5,Z/k));a=f>0?[0,G]:[G,0]}else x?a=[Math.max(0,B),Math.max(1,V)]:a=[B,V]}else v?(A.val>=0&&(A={val:0,nopad:1}),O.val<=0&&(O={val:0,nopad:1})):x&&(A.val-S*i(A)<0&&(A={val:0,nopad:1}),O.val<=0&&(O={val:1,nopad:1})),S=(O.val-A.val-X8(t,T.val,C.val))/(k-i(A)-l(O)),a=[A.val-S*i(A),O.val+S*l(O)];return a=n6(a,t),t.limitRange&&t.limitRange(),h&&a.reverse(),Dl.simpleMap(a,t.l2r||Number)}function X8(e,t,n){var r=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,n),o=0;o<a.length;o++){var i=a[o];r+=i.max-i.min}return r}function t1(e,t,n){var r=.05*t._length,a=t._anchorAxis||{};if((t.ticklabelposition||"").indexOf("inside")!==-1||(a.ticklabelposition||"").indexOf("inside")!==-1){var o=t.isReversed();if(!o){var i=Dl.simpleMap(t.range,t.r2l);o=i[1]<i[0]}o&&(n=!n)}var l=0;return nue(e,t._id)||(l=rue(e,t,n)),r=Math.max(l,r),t.constrain==="domain"&&t._inputDomain&&(r*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(s){return s.nopad?0:s.pad+(s.extrapad?r:l)}}var $8=3;function rue(e,t,n){var r=0,a=t._id.charAt(0)==="x";for(var o in e._plots){var i=e._plots[o];if(!(t._id!==i.xaxis._id&&t._id!==i.yaxis._id)){var l=(a?i.yaxis:i.xaxis)||{};if((l.ticklabelposition||"").indexOf("inside")!==-1&&(!n&&(l.side==="left"||l.side==="bottom")||n&&(l.side==="top"||l.side==="right"))){if(l._vals){var s=Dl.deg2rad(l._tickAngles[l._id+"tick"]||0),u=Math.abs(Math.cos(s)),d=Math.abs(Math.sin(s));if(!l._vals[0].bb){var f=l._id+"tick",p=l._selections[f];p.each(function(x){var k=Xce.select(this),_=k.select(".text-math-group");_.empty()&&(x.bb=eue.bBox(k.node()))})}for(var g=0;g<l._vals.length;g++){var h=l._vals[g],y=h.bb;if(y){var b=2*$8+y.width,v=2*$8+y.height;r=Math.max(r,a?Math.max(b*u,v*d):Math.max(v*u,b*d))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(r+=l.ticklen||0)}}}return r}function n1(e,t,n){var r=t._id,a=e._fullData,o=e._fullLayout,i=[],l=[],s,u,d;function f(b,v){for(s=0;s<v.length;s++){var x=b[v[s]],k=(x._extremes||{})[r];if(x.visible===!0&&k){for(u=0;u<k.min.length;u++)d=k.min[u],r1(i,d.val,d.pad,{extrapad:d.extrapad});for(u=0;u<k.max.length;u++)d=k.max[u],a1(l,d.val,d.pad,{extrapad:d.extrapad})}}}if(f(a,t._traceIndices),f(o.annotations||[],t._annIndices||[]),f(o.shapes||[],t._shapeIndices||[]),t._matchGroup&&!n){for(var p in t._matchGroup)if(p!==t._id){var g=tue(e,p),h=n1(e,g,!0),y=t._length/g._length;for(u=0;u<h.min.length;u++)d=h.min[u],r1(i,d.val,d.pad*y,{extrapad:d.extrapad});for(u=0;u<h.max.length;u++)d=h.max[u],a1(l,d.val,d.pad*y,{extrapad:d.extrapad})}}return{min:i,max:l}}function aue(e,t,n){if(t.setScale(),t.autorange){t.range=n?n.slice():e1(e,t),t._r=t.range.slice(),t._rl=Dl.simpleMap(t._r,t.r2l);var r=t._input,a={};a[t._attr+".range"]=t.range,a[t._attr+".autorange"]=t.autorange,$ce.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),r.range=t.range.slice(),r.autorange=t.autorange}var o=t._anchorAxis;if(o&&o.rangeslider){var i=o.rangeslider[t._name];i&&i.rangemode==="auto"&&(i.range=e1(e,t)),o._input.rangeslider[t._name]=Dl.extendFlat({},i)}}function oue(e,t,n){n||(n={}),e._m||e.setScale();var r=[],a=[],o=t.length,i=n.padded||!1,l=n.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,d=n.vpadLinearized||!1,f,p,g,h,y,b,v,x,k;function _(N){if(Array.isArray(N))return u=!0,function(V){return Math.max(Number(N[V]||0),0)};var B=Math.max(Number(N||0),0);return function(){return B}}var S=_((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),T=_((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),C=_(n.vpadplus||n.vpad),A=_(n.vpadminus||n.vpad);if(!u){if(x=1/0,k=-1/0,s)for(f=0;f<o;f++)p=t[f],p<x&&p>0&&(x=p),p>k&&p<mg&&(k=p);else for(f=0;f<o;f++)p=t[f],p<x&&p>-mg&&(x=p),p>k&&p<mg&&(k=p);t=[x,k],o=2}var O={tozero:l,extrapad:i};function F(N){g=t[N],J8(g)&&(b=S(N),v=T(N),d?(h=e.c2l(g)-A(N),y=e.c2l(g)+C(N)):(x=g-A(N),k=g+C(N),s&&x<k/10&&(x=k/10),h=e.c2l(x),y=e.c2l(k)),l&&(h=Math.min(0,h),y=Math.max(0,y)),t6(h)&&r1(r,h,v,O),t6(y)&&a1(a,y,b,O))}var R=Math.min(6,o);for(f=0;f<R;f++)F(f);for(f=o-1;f>=R;f--)F(f);return{min:r,max:a,opts:n}}function r1(e,t,n,r){e6(e,t,n,r,iue)}function a1(e,t,n,r){e6(e,t,n,r,lue)}function e6(e,t,n,r,a){for(var o=r.tozero,i=r.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(a(u.val,t)&&u.pad>=n&&(u.extrapad||!i)){l=!1;break}else a(t,u.val)&&u.pad<=n&&(i||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var d=o&&t===0;e.push({val:t,pad:d?0:n,extrapad:d?!1:i})}}function t6(e){return J8(e)&&Math.abs(e)<mg}function iue(e,t){return e<=t}function lue(e,t){return e>=t}function sue(e,t){var n=t.autorangeoptions;return n&&n.minallowed!==void 0&&yg(t,n.minallowed,n.maxallowed)?n.minallowed:n&&n.clipmin!==void 0&&yg(t,n.clipmin,n.clipmax)?Math.max(e,t.d2l(n.clipmin)):e}function cue(e,t){var n=t.autorangeoptions;return n&&n.maxallowed!==void 0&&yg(t,n.minallowed,n.maxallowed)?n.maxallowed:n&&n.clipmax!==void 0&&yg(t,n.clipmin,n.clipmax)?Math.min(e,t.d2l(n.clipmax)):e}function yg(e,t,n){return t!==void 0&&n!==void 0?(t=e.d2l(t),n=e.d2l(n),t<n):!0}function n6(e,t){if(!t||!t.autorangeoptions)return e;var n=e[0],r=e[1],a=t.autorangeoptions.include;if(a!==void 0){var o=t.d2l(n),i=t.d2l(r);Dl.isArrayOrTypedArray(a)||(a=[a]);for(var l=0;l<a.length;l++){var s=t.d2l(a[l]);o>=s&&(o=s,n=s),i<=s&&(i=s,r=s)}}return n=sue(n,t),r=cue(r,t),[n,r]}var Ga=$t,Kn=en,bu=wr,Df=Dt,Nt=Ge,xu=Nt.strTranslate,Pf=Ir,uue=ig,Rf=Kt,Ca=gn,due=ii,r6=$m,jr=Gn,fue=jr.ONEMAXYEAR,vg=jr.ONEAVGYEAR,o1=jr.ONEMINYEAR,pue=jr.ONEMAXQUARTER,i1=jr.ONEAVGQUARTER,l1=jr.ONEMINQUARTER,hue=jr.ONEMAXMONTH,wu=jr.ONEAVGMONTH,s1=jr.ONEMINMONTH,Za=jr.ONEWEEK,Qr=jr.ONEDAY,js=Qr/2,Yi=jr.ONEHOUR,bg=jr.ONEMIN,c1=jr.ONESEC,Vs=jr.MINUS_SIGN,xg=jr.BADNUM,u1={K:"zeroline"},d1={K:"gridline",L:"path"},f1={K:"minor-gridline",L:"path"},a6={K:"tick",L:"path"},o6={K:"tick",L:"text"},i6={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},wg=Br,_g=wg.MID_SHIFT,Hs=wg.CAP_SHIFT,kg=wg.LINE_SPACING,mue=wg.OPPOSITE_SIDE,Tg=3,Xe=xO.exports={};Xe.setConvert=Xx;var gue=K8,Ji=dr,yue=Ji.idSort,vue=Ji.isLinked;Xe.id2name=Ji.id2name,Xe.name2id=Ji.name2id,Xe.cleanId=Ji.cleanId,Xe.list=Ji.list,Xe.listIds=Ji.listIds,Xe.getFromId=Ji.getFromId,Xe.getFromTrace=Ji.getFromTrace;var l6=gg;Xe.getAutoRange=l6.getAutoRange,Xe.findExtremes=l6.findExtremes;var bue=1e-4;function p1(e){var t=(e[1]-e[0])*bue;return[e[0]-t,e[1]+t]}Xe.coerceRef=function(e,t,n,r,a,o){var i=r.charAt(r.length-1),l=n._fullLayout._subplots[i+"axis"],s=r+"ref",u={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(d){return d+" domain"})),u[s]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Nt.coerce(e,t,u,s)},Xe.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"},Xe.coercePosition=function(e,t,n,r,a,o){var i,l,s=Xe.getRefType(r);if(s!=="range")i=Nt.ensureNumber,l=n(a,o);else{var u=Xe.getFromId(t,r);o=u.fraction2r(o),l=n(a,o),i=u.cleanPos}e[a]=i(l)},Xe.cleanPosition=function(e,t,n){var r=n==="paper"||n==="pixel"?Nt.ensureNumber:Xe.getFromId(t,n).cleanPos;return r(e)},Xe.redrawComponents=function(e,t){t=t||Xe.listIds(e);var n=e._fullLayout;function r(a,o,i,l){for(var s=Df.getComponentMethod(a,o),u={},d=0;d<t.length;d++)for(var f=n[Xe.id2name(t[d])],p=f[i],g=0;g<p.length;g++){var h=p[g];if(!u[h]&&(s(e,h),u[h]=1,l))return}}r("annotations","drawOne","_annIndices"),r("shapes","drawOne","_shapeIndices"),r("images","draw","_imgIndices",!0),r("selections","drawOne","_selectionIndices")};var xue=Xe.getDataConversions=function(e,t,n,r){var a,o=n==="x"||n==="y"||n==="z"?n:r;if(Nt.isArrayOrTypedArray(o)){if(a={type:gue(r,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},Xe.setConvert(a),a.type==="category")for(var i=0;i<r.length;i++)a.d2c(r[i])}else a=Xe.getFromTrace(e,t,o);return a?{d2c:a.d2c,c2d:a.c2d}:o==="ids"?{d2c:c6,c2d:c6}:{d2c:s6,c2d:s6}};function s6(e){return+e}function c6(e){return String(e)}Xe.getDataToCoordFunc=function(e,t,n,r){return xue(e,t,n,r).d2c},Xe.counterLetter=function(e){var t=e.charAt(0);if(t==="x")return"y";if(t==="y")return"x"},Xe.minDtick=function(e,t,n,r){["log","category","multicategory"].indexOf(e.type)!==-1||!r?e._minDtick=0:e._minDtick===void 0?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))},Xe.saveRangeInitial=function(e,t){for(var n=Xe.list(e,"",!0),r=!1,a=0;a<n.length;a++){var o=n[a],i=o._rangeInitial0===void 0&&o._rangeInitial1===void 0,l=i||o.range[0]!==o._rangeInitial0||o.range[1]!==o._rangeInitial1,s=o.autorange;(i&&s!==!0||t&&l)&&(o._rangeInitial0=s==="min"||s==="max reversed"?void 0:o.range[0],o._rangeInitial1=s==="max"||s==="min reversed"?void 0:o.range[1],o._autorangeInitial=s,r=!0)}return r},Xe.saveShowSpikeInitial=function(e,t){for(var n=Xe.list(e,"",!0),r=!1,a="on",o=0;o<n.length;o++){var i=n[o],l=i._showSpikeInitial===void 0,s=l||i.showspikes!==i._showspikes;(l||t&&s)&&(i._showSpikeInitial=i.showspikes,r=!0),a==="on"&&!i.showspikes&&(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,r},Xe.autoBin=function(e,t,n,r,a,o){var i=Nt.aggNums(Math.min,null,e),l=Nt.aggNums(Math.max,null,e);if(t.type==="category"||t.type==="multicategory")return{start:i-.5,end:l+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:l-i};a||(a=t.calendar);var s;if(t.type==="log"?s={type:"linear",range:[i,l]}:s={type:t.type,range:Nt.simpleMap([i,l],t.c2r,0,a),calendar:a},Xe.setConvert(s),o=o&&r6.dtick(o,s.type),o)s.dtick=o,s.tick0=r6.tick0(void 0,s.type,a);else{var u;if(n)u=(l-i)/n;else{var d=Nt.distinctVals(e),f=Math.pow(10,Math.floor(Math.log(d.minDiff)/Math.LN10)),p=f*Nt.roundUp(d.minDiff/f,[.9,1.9,4.9,9.9],!0);u=Math.max(p,2*Nt.stdev(e)/Math.pow(e.length,r?.25:.4)),Kn(u)||(u=1)}Xe.autoTicks(s,u)}var g=s.dtick,h=Xe.tickIncrement(Xe.tickFirst(s),g,"reverse",a),y,b;if(typeof g=="number")h=wue(h,e,s,i,l),b=1+Math.floor((l-h)/g),y=h+b*g;else for(s.dtick.charAt(0)==="M"&&(h=_ue(h,e,g,i,a)),y=h,b=0;y<=l;)y=Xe.tickIncrement(y,g,!1,a),b++;return{start:t.c2r(h,0,a),end:t.c2r(y,0,a),size:g,_dataSpan:l-i}};function wue(e,t,n,r,a){var o=0,i=0,l=0,s=0;function u(g){return(1+(g-e)*100/n.dtick)%100<2}for(var d=0;d<t.length;d++)t[d]%1===0?l++:Kn(t[d])||s++,u(t[d])&&o++,u(t[d]+n.dtick/2)&&i++;var f=t.length-s;if(l===f&&n.type!=="date")n.dtick<1?e=r-.5*n.dtick:(e-=.5,e+n.dtick<r&&(e+=n.dtick));else if(i<f*.1&&(o>f*.3||u(r)||u(a))){var p=n.dtick/2;e+=e+p<r?p:-p}return e}function _ue(e,t,n,r,a){var o=Nt.findExactDates(t,a),i=.8;if(o.exactDays>i){var l=Number(n.substr(1));o.exactYears>i&&l%12===0?e=Xe.tickIncrement(e,"M6","reverse")+Qr*1.5:o.exactMonths>i?e=Xe.tickIncrement(e,"M1","reverse")+Qr*15.5:e-=js;var s=Xe.tickIncrement(e,n);if(s<=r)return s}return e}Xe.prepMinorTicks=function(e,t,n){if(!t.minor.dtick){delete e.dtick;var r=t.dtick&&Kn(t._tmin),a;if(r){var o=Xe.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,o*.99+t._tmin*.01]}else{var i=Nt.simpleMap(t.range,t.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Nt.simpleMap(a,t.l2r),e._isMinor=!0,Xe.prepTicks(e,n),r){var l=Kn(t.dtick),s=Kn(e.dtick),u=l?t.dtick:+t.dtick.substring(1),d=s?e.dtick:+e.dtick.substring(1);l&&s?h1(u,d)?u===2*Za&&d===2*Qr&&(e.dtick=Za):u===2*Za&&d===3*Qr?e.dtick=Za:u===Za&&!(t._input.minor||{}).nticks?e.dtick=Qr:u6(u/d,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?s?e.dtick="M1":h1(u,d)?u>=12&&d===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?h1(u,d)||(e.dtick=u6(u/d,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function h1(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function u6(e,t){return Math.abs(e/t-1)<.001}Xe.prepTicks=function(e,t){var n=Nt.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var r=e.nticks,a;r||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Nt.bigFont(e.tickfont.size||12):15,r=e._length/a):(a=e._id.charAt(0)==="y"?40:80,r=Nt.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(r*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(r*=100),e._roughDTick=Math.abs(n[1]-n[0])/r,Xe.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<e._minDtick*2&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.ticklabelmode==="period"&&kue(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),y6(e)};function m1(e){return+e.substring(1)}function kue(e){var t;function n(){return!(Kn(e.dtick)||e.dtick.charAt(0)!=="M")}var r=n(),a=Xe.getTickFormat(e);if(a){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(t=Yi,o&&!r&&e.dtick<Yi&&(e.dtick=Yi)):/%p/.test(a)?(t=js,o&&!r&&e.dtick<js&&(e.dtick=js)):/%[Aadejuwx]/.test(a)?(t=Qr,o&&!r&&e.dtick<Qr&&(e.dtick=Qr)):/%[UVW]/.test(a)?(t=Za,o&&!r&&e.dtick<Za&&(e.dtick=Za)):/%[Bbm]/.test(a)?(t=wu,o&&(r?m1(e.dtick)<1:e.dtick<s1)&&(e.dtick="M1")):/%[q]/.test(a)?(t=i1,o&&(r?m1(e.dtick)<3:e.dtick<l1)&&(e.dtick="M3")):/%[Yy]/.test(a)&&(t=vg,o&&(r?m1(e.dtick)<12:e.dtick<o1)&&(e.dtick="M12")))}r=n(),r&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=t}function Tue(e,t,n){for(var r=0;r<e.length;r++){var a=e[r].value,o=r,i=r+1;r<e.length-1?(o=r,i=r+1):r>0?(o=r-1,i=r):(o=r,i=r);var l=e[o].value,s=e[i].value,u=Math.abs(s-l),d=n||u,f=0;d>=o1?u>=o1&&u<=fue?f=u:f=vg:n===i1&&d>=l1?u>=l1&&u<=pue?f=u:f=i1:d>=s1?u>=s1&&u<=hue?f=u:f=wu:n===Za&&d>=Za?f=Za:d>=Qr?f=Qr:n===js&&d>=js?f=js:n===Yi&&d>=Yi&&(f=Yi);var p;f>=u&&(f=u,p=!0);var g=a+f;if(t.rangebreaks&&f>0){for(var h=84,y=0,b=0;b<h;b++){var v=(b+.5)/h;t.maskBreaks(a*(1-v)+v*g)!==xg&&y++}f*=y/h,f||(e[r].drop=!0),p&&u>Za&&(f=u)}(f>0||r===0)&&(e[r].periodX=a+f/2)}}Xe.calcTicks=function(e,t){for(var n=e.type,r=e.calendar,a=e.ticklabelstep,o=e.ticklabelmode==="period",i=Nt.simpleMap(e.range,e.r2l,void 0,void 0,t),l=i[1]<i[0],s=Math.min(i[0],i[1]),u=Math.max(i[0],i[1]),d=Math.max(1e3,e._length||0),f=[],p=[],g=[],h=[],y=e.minor&&(e.minor.ticks||e.minor.showgrid),b=1;b>=(y?0:1);b--){var v=!b;b?(e._dtickInit=e.dtick,e._tick0Init=e.tick0):(e.minor._dtickInit=e.minor.dtick,e.minor._tick0Init=e.minor.tick0);var x=b?e:Nt.extendFlat({},e,e.minor);if(v?Xe.prepMinorTicks(x,e,t):Xe.prepTicks(x,t),x.tickmode==="array"){b?(g=[],f=f6(e,!v)):(h=[],p=f6(e,!v));continue}if(x.tickmode==="sync"){g=[],f=Sue(e);continue}var k=p1(i),_=k[0],S=k[1],T=Kn(x.dtick),C=n==="log"&&!(T||x.dtick.charAt(0)==="L"),A=Xe.tickFirst(x,t);if(b){if(e._tmin=A,A<_!==l)break;(n==="category"||n==="multicategory")&&(S=l?Math.max(-.5,S):Math.min(e._categories.length-.5,S))}var O=null,F=A,R;if(b){var N;T?N=e.dtick:n==="date"?typeof e.dtick=="string"&&e.dtick.charAt(0)==="M"&&(N=wu*e.dtick.substring(1)):N=e._roughDTick,R=Math.round((e.r2l(F)-e.r2l(e.tick0))/N)-1}var B=x.dtick;for(x.rangebreaks&&x._tick0Init!==x.tick0&&(F=k1(F,e),l||(F=Xe.tickIncrement(F,B,!l,r))),b&&o&&(F=Xe.tickIncrement(F,B,!l,r),R--);l?F>=S:F<=S;F=Xe.tickIncrement(F,B,l,r)){if(b&&R++,x.rangebreaks&&!l){if(F<_)continue;if(x.maskBreaks(F)===xg&&k1(F,x)>=u)break}if(g.length>d||F===O)break;O=F;var V={value:F};b?(C&&F!==(F|0)&&(V.simpleLabel=!0),a>1&&R%a&&(V.skipLabel=!0),g.push(V)):(V.minor=!0,h.push(V))}}if(y){var Z=e.minor.ticks==="inside"&&e.ticks==="outside"||e.minor.ticks==="outside"&&e.ticks==="inside";if(!Z){for(var G=g.map(function(ve){return ve.value}),I=[],P=0;P<h.length;P++){var z=h[P],H=z.value;if(G.indexOf(H)===-1){for(var j=!1,q=0;!j&&q<g.length;q++)1e7+g[q].value===1e7+H&&(j=!0);j||I.push(z)}}h=I}}o&&Tue(g,e,e._definedDelta);var $;if(e.rangebreaks){var ne=e._id.charAt(0)==="y",te=1;e.tickmode==="auto"&&(te=e.tickfont?e.tickfont.size:12);var ee=NaN;for($=g.length-1;$>-1;$--){if(g[$].drop){g.splice($,1);continue}g[$].value=k1(g[$].value,e);var se=e.c2p(g[$].value);(ne?ee>se-te:ee<se+te)?g.splice(l?$+1:$,1):ee=se}}_1(e)&&Math.abs(i[1]-i[0])===360&&g.pop(),e._tmax=(g[g.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var U,Y=function(ve){ve.text="",e._prevDateHead=U};g=g.concat(h);var J,re;for($=0;$<g.length;$++){var oe=g[$].minor,he=g[$].value;oe?p.push({x:he,minor:!0}):(U=e._prevDateHead,J=Xe.tickText(e,he,!1,g[$].simpleLabel),re=g[$].periodX,re!==void 0&&(J.periodX=re,(re>u||re<s)&&(re>u&&(J.periodX=u),re<s&&(J.periodX=s),Y(J))),g[$].skipLabel&&Y(J),f.push(J))}return f=f.concat(p),e._inCalcTicks=!1,o&&f.length&&(f[0].noTick=!0),f};function d6(e,t){return e.rangebreaks&&(t=t.filter(function(n){return e.maskBreaks(n.x)!==xg})),t}function Sue(e){var t=e._mainAxis,n=[];if(t._vals){for(var r=0;r<t._vals.length;r++)if(!t._vals[r].noTick){var a=t.l2p(t._vals[r].x),o=e.p2l(a),i=Xe.tickText(e,o);t._vals[r].minor&&(i.minor=!0,i.text=""),n.push(i)}}return n=d6(e,n),n}function f6(e,t){var n=Nt.simpleMap(e.range,e.r2l),r=p1(n),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]),i=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var l=[],s=0;s<=1;s++)if(!(t!==void 0&&(t&&s||t===!1&&!s))&&!(s&&!e.minor)){var u=s?e.minor.tickvals:e.tickvals,d=s?[]:e.ticktext;if(u){Nt.isArrayOrTypedArray(d)||(d=[]);for(var f=0;f<u.length;f++){var p=i(u[f]);if(p>a&&p<o){var g=d[f]===void 0?Xe.tickText(e,p):g1(e,p,String(d[f]));s&&(g.minor=!0,g.text=""),l.push(g)}}}}return l=d6(e,l),l}var Sg=[2,5,10],p6=[1,2,3,6,12],h6=[1,2,5,10,15,30],Aue=[1,2,3,7,14],m6=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],g6=[-.301,0,.301,.699,1],Mue=[15,30,45,90,180];function ui(e,t,n){return t*Nt.roundUp(e/t,n)}Xe.autoTicks=function(e,t,n){var r;function a(f){return Math.pow(f,Math.floor(Math.log(t)/Math.LN10))}if(e.type==="date"){e.tick0=Nt.dateTick0(e.calendar,0);var o=2*t;if(o>vg)t/=vg,r=a(10),e.dtick="M"+12*ui(t,r,Sg);else if(o>wu)t/=wu,e.dtick="M"+ui(t,1,p6);else if(o>Qr){if(e.dtick=ui(t,Qr,e._hasDayOfWeekBreaks?[1,2,7,14]:Aue),!n){var i=Xe.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Nt.dateTick0(e.calendar,2):e.tick0=Nt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Yi?e.dtick=ui(t,Yi,p6):o>bg?e.dtick=ui(t,bg,h6):o>c1?e.dtick=ui(t,c1,h6):(r=a(10),e.dtick=ui(t,r,Sg))}else if(e.type==="log"){e.tick0=0;var s=Nt.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/t);t=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,r=a(10),e.dtick="L"+ui(t,r,Sg)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):_1(e)?(e.tick0=0,r=1,e.dtick=ui(t,r,Mue)):(e.tick0=0,r=a(10),e.dtick=ui(t,r,Sg));if(e.dtick===0&&(e.dtick=1),!Kn(e.dtick)&&typeof e.dtick!="string"){var d=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(d)}};function y6(e){var t=e.dtick;if(e._tickexponent=0,!Kn(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var n=e.r2l(e.tick0),r=e.l2r(n).replace(/(^-|i)/g,""),a=r.length;if(String(t).charAt(0)==="M")a>10||r.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Qr&&a<=10||t>=Qr*15)e._tickround="d";else if(t>=bg&&a<=16||t>=Yi)e._tickround="M";else if(t>=c1&&a<=19||t>=bg)e._tickround="S";else{var o=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Kn(t)||t.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Kn(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Ag(e.exponentformat)&&!y1(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Xe.tickIncrement=function(e,t,n,r){var a=n?-1:1;if(Kn(t))return Nt.increment(e,a*t);var o=t.charAt(0),i=a*Number(t.substr(1));if(o==="M")return Nt.incrementMonth(e,i,r);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=t==="D2"?g6:m6,s=e+a*.01,u=Nt.roundUp(Nt.mod(s,1),l,n);return Math.floor(s)+Math.log(Ga.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)},Xe.tickFirst=function(e,t){var n=e.r2l||Number,r=Nt.simpleMap(e.range,n,void 0,void 0,t),a=r[1]<r[0],o=a?Math.floor:Math.ceil,i=p1(r)[0],l=e.dtick,s=n(e.tick0);if(Kn(l)){var u=o((i-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=Nt.constrain(u,0,e._categories.length-1)),u}var d=l.charAt(0),f=Number(l.substr(1));if(d==="M"){for(var p=0,g=s,h,y,b;p<10;){if(h=Xe.tickIncrement(g,l,a,e.calendar),(h-i)*(g-i)<=0)return a?Math.min(g,h):Math.max(g,h);y=(i-(g+h)/2)/(h-g),b=d+(Math.abs(Math.round(y))||1)*f,g=Xe.tickIncrement(g,b,y<0?!a:a,e.calendar),p++}return Nt.error("tickFirst did not converge",e),g}else{if(d==="L")return Math.log(o((Math.pow(10,i)-s)/f)*f+s)/Math.LN10;if(d==="D"){var v=l==="D2"?g6:m6,x=Nt.roundUp(Nt.mod(i,1),v,a);return Math.floor(i)+Math.log(Ga.round(Math.pow(10,x),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}},Xe.tickText=function(e,t,n,r){var a=g1(e,t),o=e.tickmode==="array",i=n||o,l=e.type,s=l==="category"?e.d2l_noadd:e.d2l,u;if(o&&Nt.isArrayOrTypedArray(e.ticktext)){var d=Nt.simpleMap(e.range,e.r2l),f=(Math.abs(d[1]-d[0])-(e._lBreaks||0))/1e4;for(u=0;u<e.ticktext.length&&!(Math.abs(t-s(e.tickvals[u]))<f);u++);if(u<e.ticktext.length)return a.text=String(e.ticktext[u]),a}function p(b){if(b===void 0)return!0;if(n)return b==="none";var v={first:e._tmin,last:e._tmax}[b];return b!=="all"&&t!==v}var g=n?"never":e.exponentformat!=="none"&&p(e.showexponent)?"hide":"";if(l==="date"?Cue(e,a,n,i):l==="log"?Oue(e,a,n,i,g):l==="category"?Eue(e,a):l==="multicategory"?Lue(e,a,n):_1(e)?Fue(e,a,n,i,g):zue(e,a,n,i,g),r||(e.tickprefix&&!p(e.showtickprefix)&&(a.text=e.tickprefix+a.text),e.ticksuffix&&!p(e.showticksuffix)&&(a.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(a.text)){var h=e.labelalias[a.text];typeof h=="string"&&(a.text=h)}if(e.tickson==="boundaries"||e.showdividers){var y=function(b){var v=e.l2p(b);return v>=0&&v<=e._length?b:null};a.xbnd=[y(a.x-.5),y(a.x+e.dtick-.5)]}return a},Xe.hoverLabelText=function(e,t,n){n&&(e=Nt.extendFlat({},e,{hoverformat:n}));var r=Nt.isArrayOrTypedArray(t)?t[0]:t,a=Nt.isArrayOrTypedArray(t)?t[1]:void 0;if(a!==void 0&&a!==r)return Xe.hoverLabelText(e,r,n)+" - "+Xe.hoverLabelText(e,a,n);var o=e.type==="log"&&r<=0,i=Xe.tickText(e,e.c2l(o?-r:r),"hover").text;return o?r===0?"0":Vs+i:i};function g1(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}function Cue(e,t,n,r){var a=e._tickround,o=n&&e.hoverformat||Xe.getTickFormat(e);r=!o&&r,r&&(Kn(a)?a=4:a={y:"m",m:"d",d:"M",M:"S",S:4}[a]);var i=Nt.formatDate(t.x,o,a,e._dateFormat,e.calendar,e._extraFormat),l,s=i.indexOf(`
405
+ `);if(s!==-1&&(l=i.substr(s+1),i=i.substr(0,s)),r&&(l!==void 0&&(i==="00:00:00"||i==="00:00")?(i=l,l=""):i.length===8&&(i=i.replace(/:00$/,""))),l)if(n)a==="d"?i+=", "+l:i=l+(i?", "+i:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,i+="<br>"+l;else{var u=Bf(e),d=e._trueSide||e.side;(!u&&d==="top"||u&&d==="bottom")&&(i+="<br> ")}t.text=i}function Oue(e,t,n,r,a){var o=e.dtick,i=t.x,l=e.tickformat,s=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),r&&s!=="L"&&(o="L3",s="L"),l||s==="L")t.text=Nf(Math.pow(10,i),e,a,r);else if(Kn(o)||s==="D"&&Nt.mod(i+.01,1)<.1){var u=Math.round(i),d=Math.abs(u),f=e.exponentformat;f==="power"||Ag(f)&&y1(u)?(u===0?t.text=1:u===1?t.text="10":t.text="10<sup>"+(u>1?"":Vs)+d+"</sup>",t.fontSize*=1.25):(f==="e"||f==="E")&&d>2?t.text="1"+f+(u>0?"+":Vs)+d:(t.text=Nf(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(s==="D")t.text=String(Math.round(Math.pow(10,Nt.mod(i,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var p=String(t.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(i<0?.5:.25)))}}function Eue(e,t){var n=e._categories[Math.round(t.x)];n===void 0&&(n=""),t.text=String(n)}function Lue(e,t,n){var r=Math.round(t.x),a=e._categories[r]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);n?t.text=i+" - "+o:(t.text=o,t.text2=i)}function zue(e,t,n,r,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=Nf(t.x,e,a,r)}function Fue(e,t,n,r,a){if(e.thetaunit==="radians"&&!n){var o=t.x/180;if(o===0)t.text="0";else{var i=Iue(o);if(i[1]>=100)t.text=Nf(Nt.deg2rad(t.x),e,a,r);else{var l=t.x<0;i[1]===1?i[0]===1?t.text="π":t.text=i[0]+"π":t.text=["<sup>",i[0],"</sup>","⁄","<sub>",i[1],"</sub>","π"].join(""),l&&(t.text=Vs+t.text)}}}else t.text=Nf(t.x,e,a,r)}function Iue(e){function t(l,s){return Math.abs(l-s)<=1e-6}function n(l,s){return t(s,0)?l:n(s,l%s)}function r(l){for(var s=1;!t(Math.round(l*s)/s,l);)s*=10;return s}var a=r(e),o=e*a,i=Math.abs(n(o,a));return[Math.round(o/i),Math.round(a/i)]}var Due=["f","p","n","μ","m","","k","M","G","T"];function Ag(e){return e==="SI"||e==="B"}function y1(e){return e>14||e<-15}function Nf(e,t,n,r){var a=e<0,o=t._tickround,i=n||t.exponentformat||"B",l=t._tickexponent,s=Xe.getTickFormat(t),u=t.separatethousands;if(r){var d={exponentformat:i,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Kn(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};y6(d),o=(Number(d._tickround)||0)+4,l=d._tickexponent,t.hoverformat&&(s=t.hoverformat)}if(s)return t._numFormat(s)(e).replace(/-/g,Vs);var f=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e<f)e="0",a=!1;else{if(e+=f,l&&(e*=Math.pow(10,-l),o+=l),o===0)e=String(Math.floor(e));else if(o<0){e=String(Math.round(e)),e=e.substr(0,e.length+o);for(var p=o;p<0;p++)e+="0"}else{e=String(e);var g=e.indexOf(".")+1;g&&(e=e.substr(0,g+o).replace(/\.?0+$/,""))}e=Nt.numSeparate(e,t._separators,u)}if(l&&i!=="hide"){Ag(i)&&y1(l)&&(i="power");var h;l<0?h=Vs+-l:i!=="power"?h="+"+l:h=String(l),i==="e"||i==="E"?e+=i+h:i==="power"?e+="×10<sup>"+h+"</sup>":i==="B"&&l===9?e+="B":Ag(i)&&(e+=Due[l/3+5])}return a?Vs+e:e}Xe.getTickFormat=function(e){var t;function n(s){return typeof s!="string"?s:Number(s.replace("M",""))*wu}function r(s,u){var d=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var f=d.indexOf(s.charAt(0)),p=d.indexOf(u.charAt(0));return f===p?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-p}else return typeof s=="number"?1:-1}function a(s,u,d){var f=d||function(h){return h},p=u[0],g=u[1];return(!p&&typeof p!="number"||f(p)<=f(s))&&(!g&&typeof g!="number"||f(g)>=f(s))}function o(s,u){var d=u[0]===null,f=u[1]===null,p=r(s,u[0])>=0,g=r(s,u[1])<=0;return(d||p)&&(f||g)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t<e.tickformatstops.length;t++)if(l=e.tickformatstops[t],l.enabled&&a(e.dtick,l.dtickrange,n)){i=l;break}break}case"log":{for(t=0;t<e.tickformatstops.length;t++)if(l=e.tickformatstops[t],l.enabled&&o(e.dtick,l.dtickrange)){i=l;break}break}}return i?i.value:e.tickformat},Xe.getSubplots=function(e,t){var n=e._fullLayout._subplots,r=n.cartesian.concat(n.gl2d||[]),a=t?Xe.findSubplotsWithAxis(r,t):r;return a.sort(function(o,i){var l=o.substr(1).split("y"),s=i.substr(1).split("y");return l[0]===s[0]?+l[1]-+s[1]:+l[0]-+s[0]}),a},Xe.findSubplotsWithAxis=function(e,t){for(var n=new RegExp(t._id.charAt(0)==="x"?"^"+t._id+"y":t._id+"$"),r=[],a=0;a<e.length;a++){var o=e[a];n.test(o)&&r.push(o)}return r},Xe.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var n={_offset:0,_length:t.width,_id:""},r={_offset:0,_length:t.height,_id:""},a=Xe.list(e,"x",!0),o=Xe.list(e,"y",!0),i=[],l,s;for(l=0;l<a.length;l++)for(i.push({x:a[l],y:r}),s=0;s<o.length;s++)l===0&&i.push({x:n,y:o[s]}),i.push({x:a[l],y:o[s]});var u=t._clips.selectAll(".axesclip").data(i,function(d){return d.x._id+d.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(d){return"clip"+t._uid+d.x._id+d.y._id}).append("rect"),u.exit().remove(),u.each(function(d){Ga.select(this).select("rect").attr({x:d.x._offset||0,y:d.y._offset||0,width:d.x._length||1,height:d.y._length||1})})}},Xe.draw=function(e,t,n){var r=e._fullLayout;t==="redraw"&&r._paper.selectAll("g.subplot").each(function(s){var u=s[0],d=r._plots[u];if(d){var f=d.xaxis,p=d.yaxis;d.xaxislayer.selectAll("."+f._id+"tick").remove(),d.yaxislayer.selectAll("."+p._id+"tick").remove(),d.xaxislayer.selectAll("."+f._id+"tick2").remove(),d.yaxislayer.selectAll("."+p._id+"tick2").remove(),d.xaxislayer.selectAll("."+f._id+"divider").remove(),d.yaxislayer.selectAll("."+p._id+"divider").remove(),d.minorGridlayer&&d.minorGridlayer.selectAll("path").remove(),d.gridlayer&&d.gridlayer.selectAll("path").remove(),d.zerolinelayer&&d.zerolinelayer.selectAll("path").remove(),r._infolayer.select(".g-"+f._id+"title").remove(),r._infolayer.select(".g-"+p._id+"title").remove()}});var a=!t||t==="redraw"?Xe.listIds(e):t,o=Xe.list(e),i=o.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});a.map(function(s){var u=Xe.getFromId(e,s);if(u.tickmode==="sync"&&u.overlaying){var d=a.findIndex(function(f){return f===u.overlaying});d>=0&&a.unshift(a.splice(d,1).shift())}});var l={false:{left:0,right:0}};return Nt.syncOrAsync(a.map(function(s){return function(){if(s){var u=Xe.getFromId(e,s);n||(n={}),n.axShifts=l,n.overlayingShiftedAx=i;var d=Xe.drawOne(e,u,n);return u._shiftPusher&&T1(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Nt.simpleMap(u._r,u.r2l),d}}}))},Xe.drawOne=function(e,t,n){n=n||{};var r=n.axShifts||{},a=n.overlayingShiftedAx||[],o,i,l;t.setScale();var s=e._fullLayout,u=t._id,d=u.charAt(0),f=Xe.counterLetter(u),p=s._plots[t._mainSubplot];if(!p)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var g=t.linewidth/2||0;t.ticks==="inside"&&(g+=t.ticklen),T1(t,g,r,!0),T1(t,t.shift||0,r,!1)}(n.skipTitle!==!0||t._shift===void 0)&&(t._shift=Kue(t,r));var h=p[d+"axislayer"],y=t._mainLinePosition,b=y+=t._shift,v=t._mainMirrorPosition,x=t._vals=Xe.calcTicks(t),k=[t.mirror,b,v].join("_");for(o=0;o<x.length;o++)x[o].axInfo=k;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var _={};function S(Pe){var De=u+(Pe||"tick");return _[De]||(_[De]=Bue(t,De)),_[De]}if(t.visible){var T=Xe.makeTransTickFn(t),C=Xe.makeTransTickLabelFn(t),A,O,F=t.ticks==="inside",R=t.ticks==="outside";if(t.tickson==="boundaries"){var N=Pue(t,x);O=Xe.clipEnds(t,N),A=F?O:N}else O=Xe.clipEnds(t,x),A=F&&t.ticklabelmode!=="period"?O:x;var B=t._gridVals=O,V=Nue(t,x);if(!s._hasOnlyLargeSploms){var Z=t._subplotsWith,G={};for(o=0;o<Z.length;o++){i=Z[o],l=s._plots[i];var I=l[f+"axis"],P=I._mainAxis._id;if(!G[P]){G[P]=1;var z=d==="x"?"M0,"+I._offset+"v"+I._length:"M"+I._offset+",0h"+I._length;Xe.drawGrid(e,t,{vals:B,counterAxis:I,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:z,transFn:T}),Xe.drawZeroLine(e,t,{counterAxis:I,layer:l.zerolinelayer,path:z,transFn:T})}}}var H,j=Xe.getTickSigns(t),q=Xe.getTickSigns(t,"minor");if(t.ticks||t.minor&&t.minor.ticks){var $=Xe.makeTickPath(t,b,j[2]),ne=Xe.makeTickPath(t,b,q[2],{minor:!0}),te,ee,se,U;if(t._anchorAxis&&t.mirror&&t.mirror!==!0?(te=Xe.makeTickPath(t,v,j[3]),ee=Xe.makeTickPath(t,v,q[3],{minor:!0}),se=$+te,U=ne+ee):(te="",ee="",se=$,U=ne),t.showdividers&&R&&t.tickson==="boundaries"){var Y={};for(o=0;o<V.length;o++)Y[V[o].x]=1;H=function(Pe){return Y[Pe.x]?te:se}}else H=function(Pe){return Pe.minor?U:se}}if(Xe.drawTicks(e,t,{vals:A,layer:h,path:H,transFn:T}),t.mirror==="allticks"){var J=Object.keys(t._linepositions||{});for(o=0;o<J.length;o++){i=J[o],l=s._plots[i];var re=t._linepositions[i]||[],oe=re[0],he=re[1],ve=re[2],ge=Xe.makeTickPath(t,oe,ve?j[0]:q[0],{minor:ve})+Xe.makeTickPath(t,he,ve?j[1]:q[1],{minor:ve});Xe.drawTicks(e,t,{vals:A,layer:l[d+"axislayer"],path:ge,transFn:T})}}var xe=[];if(xe.push(function(){return Xe.drawLabels(e,t,{vals:x,layer:h,plotinfo:l,transFn:C,labelFns:Xe.makeLabelFns(t,b)})}),t.type==="multicategory"){var Le={x:2,y:10}[d];xe.push(function(){var Pe={x:"height",y:"width"}[d],De=S()[Pe]+Le+(t._tickAngles[u+"tick"]?t.tickfont.size*kg:0);return Xe.drawLabels(e,t,{vals:Rue(t,x),layer:h,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:T,labelFns:Xe.makeLabelFns(t,b+De*j[4])})}),xe.push(function(){return t._depth=j[4]*(S("tick2")[t.side]-b),Vue(e,t,{vals:V,layer:h,path:Xe.makeTickPath(t,b,j[4],{len:t._depth}),transFn:T})})}else t.title.hasOwnProperty("standoff")&&xe.push(function(){t._depth=j[4]*(S()[t.side]-b)});var Ue=Df.getComponentMethod("rangeslider","isVisible")(t);return!n.skipTitle&&!(Ue&&t.side==="bottom")&&xe.push(function(){return Hue(e,t)}),xe.push(function(){var Pe=t.side.charAt(0),De=mue[t.side].charAt(0),je=Xe.getPxPosition(e,t),qe=R?t.ticklen:0,Ee,_e,we,Re;(t.automargin||Ue||t._shiftPusher)&&(t.type==="multicategory"?Ee=S("tick2"):(Ee=S(),d==="x"&&Pe==="b"&&(t._depth=Math.max(Ee.width>0?Ee.bottom-je:0,qe))));var Je=0,it=0;if(t._shiftPusher&&(Je=Math.max(qe,Ee.height>0?Pe==="l"?je-Ee.left:Ee.right-je:0),t.title.text!==s._dfltTitle[d]&&(it=(t._titleStandoff||0)+(t._titleScoot||0),Pe==="l"&&(it+=b1(t))),t._fullDepth=Math.max(Je,it)),t.automargin){_e={x:0,y:0,r:0,l:0,t:0,b:0};var dt=[0,1],at=typeof t._shift=="number"?t._shift:0;if(d==="x"){if(Pe==="b"?_e[Pe]=t._depth:(_e[Pe]=t._depth=Math.max(Ee.width>0?je-Ee.top:0,qe),dt.reverse()),Ee.width>0){var lt=Ee.right-(t._offset+t._length);lt>0&&(_e.xr=1,_e.r=lt);var He=t._offset-Ee.left;He>0&&(_e.xl=0,_e.l=He)}}else if(Pe==="l"?(t._depth=Math.max(Ee.height>0?je-Ee.left:0,qe),_e[Pe]=t._depth-at):(t._depth=Math.max(Ee.height>0?Ee.right-je:0,qe),_e[Pe]=t._depth+at,dt.reverse()),Ee.height>0){var Be=Ee.bottom-(t._offset+t._length);Be>0&&(_e.yb=0,_e.b=Be);var Ze=t._offset-Ee.top;Ze>0&&(_e.yt=1,_e.t=Ze)}_e[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[dt[0]],t.title.text!==s._dfltTitle[d]&&(_e[Pe]+=b1(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(we={x:0,y:0,r:0,l:0,t:0,b:0},we[De]=t.linewidth,t.mirror&&t.mirror!==!0&&(we[De]+=qe),t.mirror===!0||t.mirror==="ticks"?we[f]=t._anchorAxis.domain[dt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(we[f]=[t._counterDomainMin,t._counterDomainMax][dt[1]]))}Ue&&(Re=Df.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(v6(_e,t.automargin),v6(we,t.automargin)),bu.autoMargin(e,w1(t),_e),bu.autoMargin(e,x6(t),we),bu.autoMargin(e,w6(t),Re)}),Nt.syncOrAsync(xe)}};function v6(e,t){if(e){var n=Object.keys(i6).reduce(function(r,a){return t.indexOf(a)!==-1&&i6[a].forEach(function(o){r[o]=1}),r},{});Object.keys(e).forEach(function(r){n[r]||(r.length===1?e[r]=0:delete e[r])})}}function Pue(e,t){var n=[],r,a=function(o,i){var l=o.xbnd[i];l!==null&&n.push(Nt.extendFlat({},o,{x:l}))};if(t.length){for(r=0;r<t.length;r++)a(t[r],0);a(t[r-1],1)}return n}function Rue(e,t){for(var n=[],r={},a=0;a<t.length;a++){var o=t[a];r[o.text2]?r[o.text2].push(o.x):r[o.text2]=[o.x]}for(var i in r)n.push(g1(e,Nt.interp(r[i],.5),i));return n}function Nue(e,t){var n=[],r,a,o=t.length&&t[t.length-1].x<t[0].x,i=function(s,u){var d=s.xbnd[u];d!==null&&n.push(Nt.extendFlat({},s,{x:d}))};if(e.showdividers&&t.length){for(r=0;r<t.length;r++){var l=t[r];l.text2!==a&&i(l,o?1:0),a=l.text2}i(t[r-1],o?0:1)}return n}function Bue(e,t){var n,r,a,o;return e._selections[t].size()?(n=1/0,r=-1/0,a=1/0,o=-1/0,e._selections[t].each(function(){var i=x1(this),l=Ca.bBox(i.node().parentNode);n=Math.min(n,l.top),r=Math.max(r,l.bottom),a=Math.min(a,l.left),o=Math.max(o,l.right)})):(n=0,r=0,a=0,o=0),{top:n,bottom:r,left:a,right:o,height:r-n,width:o-a}}Xe.getTickSigns=function(e,t){var n=e._id.charAt(0),r={x:"top",y:"right"}[n],a=e.side===r?1:-1,o=[-1,1,a,-a],i=t?(e.minor||{}).ticks:e.ticks;return i!=="inside"==(n==="x")&&(o=o.map(function(l){return-l})),e.side&&o.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),o},Xe.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(t){return xu(e._offset+e.l2p(t.x),0)}:function(t){return xu(0,e._offset+e.l2p(t.x))}},Xe.makeTransTickLabelFn=function(e){var t=jue(e),n=t[0],r=t[1];return e._id.charAt(0)==="x"?function(a){return xu(n+e._offset+e.l2p(v1(a)),r)}:function(a){return xu(r,n+e._offset+e.l2p(v1(a)))}};function v1(e){return e.periodX!==void 0?e.periodX:e.x}function jue(e){var t=e.ticklabelposition||"",n=function(g){return t.indexOf(g)!==-1},r=n("top"),a=n("left"),o=n("right"),i=n("bottom"),l=n("inside"),s=i||a||r||o;if(!s&&!l)return[0,0];var u=e.side,d=s?(e.tickwidth||0)/2:0,f=Tg,p=e.tickfont?e.tickfont.size:12;return(i||r)&&(d+=p*Hs,f+=(e.linewidth||0)/2),(a||o)&&(d+=(e.linewidth||0)/2,f+=Tg),l&&u==="top"&&(f-=p*(1-Hs)),(a||r)&&(d=-d),(u==="bottom"||u==="right")&&(f=-f),[s?d:0,l?f:0]}Xe.makeTickPath=function(e,t,n,r){r||(r={});var a=r.minor;if(a&&!e.minor)return"";var o=r.len!==void 0?r.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(t+l*n)+"v"+o*n:"M"+(t+l*n)+",0h"+o*n},Xe.makeLabelFns=function(e,t,n){var r=e.ticklabelposition||"",a=function(N){return r.indexOf(N)!==-1},o=a("top"),i=a("left"),l=a("right"),s=a("bottom"),u=s||i||o||l,d=a("inside"),f=r==="inside"&&e.ticks==="inside"||!d&&e.ticks==="outside"&&e.tickson!=="boundaries",p=0,g=0,h=f?e.ticklen:0;if(d?h*=-1:u&&(h=0),f&&(p+=h,n)){var y=Nt.deg2rad(n);p=h*Math.cos(y)+1,g=h*Math.sin(y)}e.showticklabels&&(f||e.showline)&&(p+=.2*e.tickfont.size),p+=(e.linewidth||1)/2*(d?-1:1);var b={labelStandoff:p,labelShift:g},v,x,k,_,S=0,T=e.side,C=e._id.charAt(0),A=e.tickangle,O;if(C==="x")O=!d&&T==="bottom"||d&&T==="top",_=O?1:-1,d&&(_*=-1),v=g*_,x=t+p*_,k=O?1:-.2,Math.abs(A)===90&&(d?k+=_g:A===-90&&T==="bottom"?k=Hs:A===90&&T==="top"?k=_g:k=.5,S=_g/2*(A/90)),b.xFn=function(N){return N.dx+v+S*N.fontSize},b.yFn=function(N){return N.dy+x+N.fontSize*k},b.anchorFn=function(N,B){if(u){if(i)return"end";if(l)return"start"}return!Kn(B)||B===0||B===180?"middle":B*_<0!==d?"end":"start"},b.heightFn=function(N,B,V){return B<-60||B>60?-.5*V:e.side==="top"!==d?-V:0};else if(C==="y"){if(O=!d&&T==="left"||d&&T==="right",_=O?1:-1,d&&(_*=-1),v=p,x=g*_,k=0,!d&&Math.abs(A)===90&&(A===-90&&T==="left"||A===90&&T==="right"?k=Hs:k=.5),d){var F=Kn(A)?+A:0;if(F!==0){var R=Nt.deg2rad(F);S=Math.abs(Math.sin(R))*Hs*_,k=0}}b.xFn=function(N){return N.dx+t-(v+N.fontSize*k)*_+S*N.fontSize},b.yFn=function(N){return N.dy+x+N.fontSize*_g},b.anchorFn=function(N,B){return Kn(B)&&Math.abs(B)===90?"middle":O?"end":"start"},b.heightFn=function(N,B,V){return e.side==="right"&&(B*=-1),B<-30?-V:B<30?-.5*V:0}}return b};function Mg(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Xe.drawTicks=function(e,t,n){n=n||{};var r=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?n.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(t.ticks?n.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=n.layer.selectAll("path."+r).data(a,Mg);o.exit().remove(),o.enter().append("path").classed(r,1).classed("ticks",1).classed("crisp",n.crisp!==!1).each(function(i){return Rf.stroke(Ga.select(this),i.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(i){return Ca.crispRound(e,i.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",n.path).style("display",null),Og(t,[a6]),o.attr("transform",n.transFn)},Xe.drawGrid=function(e,t,n){if(n=n||{},t.tickmode!=="sync"){var r=t._id+"grid",a=t.minor&&t.minor.showgrid,o=a?n.vals.filter(function(v){return v.minor}):[],i=t.showgrid?n.vals.filter(function(v){return!v.minor}):[],l=n.counterAxis;if(l&&Xe.shouldShowZeroLine(e,t,l))for(var s=t.tickmode==="array",u=0;u<i.length;u++){var d=i[u].x;if(s?!d:Math.abs(d)<t.dtick/100)if(i=i.slice(0,u).concat(i.slice(u+1)),s)u--;else break}t._gw=Ca.crispRound(e,t.gridwidth,1);for(var f=a?Ca.crispRound(e,t.minor.gridwidth,1):0,p=n.layer,g=n.minorLayer,h=1;h>=0;h--){var y=h?p:g;if(y){var b=y.selectAll("path."+r).data(h?i:o,Mg);b.exit().remove(),b.enter().append("path").classed(r,1).classed("crisp",n.crisp!==!1),b.attr("transform",n.transFn).attr("d",n.path).each(function(v){return Rf.stroke(Ga.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Ca.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?f:t._gw)+"px"}).style("display",null),typeof n.path=="function"&&b.attr("d",n.path)}}Og(t,[d1,f1])}},Xe.drawZeroLine=function(e,t,n){n=n||n;var r=t._id+"zl",a=Xe.shouldShowZeroLine(e,t,n.counterAxis),o=n.layer.selectAll("path."+r).data(a?[{x:0,id:t._id}]:[]);o.exit().remove(),o.enter().append("path").classed(r,1).classed("zl",1).classed("crisp",n.crisp!==!1).each(function(){n.layer.selectAll("path").sort(function(i,l){return yue(i.id,l.id)})}),o.attr("transform",n.transFn).attr("d",n.path).call(Rf.stroke,t.zerolinecolor||Rf.defaultLine).style("stroke-width",Ca.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Og(t,[u1])},Xe.drawLabels=function(e,t,n){n=n||{};var r=e._fullLayout,a=t._id,o=a.charAt(0),i=n.cls||a+"tick",l=n.vals.filter(function(V){return V.text}),s=n.labelFns,u=n.secondary?0:t.tickangle,d=(t._prevTickAngles||{})[i],f=n.layer.selectAll("g."+i).data(t.showticklabels?l:[],Mg),p=[];f.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(V){var Z=Ga.select(this),G=e._promises.length;Z.call(Pf.positionText,s.xFn(V),s.yFn(V)).call(Ca.font,V.font,V.fontSize,V.fontColor).text(V.text).call(Pf.convertToTspans,e),e._promises[G]?p.push(e._promises.pop().then(function(){g(Z,u)})):g(Z,u)}),Og(t,[o6]),f.exit().remove(),n.repositionOnUpdate&&f.each(function(V){Ga.select(this).select("text").call(Pf.positionText,s.xFn(V),s.yFn(V))});function g(V,Z){V.each(function(G){var I=Ga.select(this),P=I.select(".text-math-group"),z=s.anchorFn(G,Z),H=n.transFn.call(I.node(),G)+(Kn(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(G)+","+(s.yFn(G)-G.fontSize/2)+")":""),j=Pf.lineCount(I),q=kg*G.fontSize,$=s.heightFn(G,Kn(Z)?+Z:0,(j-1)*q);if($&&(H+=xu(0,$)),P.empty()){var ne=I.select("text");ne.attr({transform:H,"text-anchor":z}),ne.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var te=Ca.bBox(P.node()).width,ee=te*{end:-.5,start:.5}[z];P.attr("transform",H+xu(ee,0))}})}t._adjustTickLabelsOverflow=function(){var V=t.ticklabeloverflow;if(!(!V||V==="allow")){var Z=V.indexOf("hide")!==-1,G=t._id.charAt(0)==="x",I=0,P=G?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var z=Nt.simpleMap(t.range,t.r2l);I=t.l2p(z[0])+t._offset,P=t.l2p(z[1])+t._offset}var H=Math.min(I,P),j=Math.max(I,P),q=t.side,$=1/0,ne=-1/0;f.each(function(U){var Y=Ga.select(this),J=Y.select(".text-math-group");if(J.empty()){var re=Ca.bBox(Y.node()),oe=0;G?(re.right>j||re.left<H)&&(oe=1):(re.bottom>j||re.top+(t.tickangle?0:U.fontSize/4)<H)&&(oe=1);var he=Y.select("text");oe?Z&&he.style("opacity",0):(he.style("opacity",1),q==="bottom"||q==="right"?$=Math.min($,G?re.top:re.left):$=-1/0,q==="top"||q==="left"?ne=Math.max(ne,G?re.bottom:re.right):ne=1/0)}});for(var te in r._plots){var ee=r._plots[te];if(!(t._id!==ee.xaxis._id&&t._id!==ee.yaxis._id)){var se=G?ee.yaxis:ee.xaxis;se&&(se["_visibleLabelMin_"+t._id]=$,se["_visibleLabelMax_"+t._id]=ne)}}}},t._hideCounterAxisInsideTickLabels=function(V){var Z=t._id.charAt(0)==="x",G=[];for(var I in r._plots){var P=r._plots[I];t._id!==P.xaxis._id&&t._id!==P.yaxis._id||G.push(Z?P.yaxis:P.xaxis)}G.forEach(function(z,H){z&&Bf(z)&&(V||[u1,f1,d1,a6,o6]).forEach(function(j){var q=j.K==="tick"&&j.L==="text"&&t.ticklabelmode==="period",$=r._plots[t._mainSubplot],ne;j.K===u1.K?ne=$.zerolinelayer.selectAll("."+t._id+"zl"):j.K===f1.K?ne=$.minorGridlayer.selectAll("."+t._id):j.K===d1.K?ne=$.gridlayer.selectAll("."+t._id):ne=$[t._id.charAt(0)+"axislayer"],ne.each(function(){var te=Ga.select(this);j.L&&(te=te.selectAll(j.L)),te.each(function(ee){var se=t.l2p(q?v1(ee):ee.x)+t._offset,U=Ga.select(this);se<t["_visibleLabelMax_"+z._id]&&se>t["_visibleLabelMin_"+z._id]?U.style("display","none"):j.K==="tick"&&!H&&U.style("display",null)})})})})},g(f,d+1?d:u);function h(){return p.length&&Promise.all(p)}var y=null;function b(){if(g(f,u),l.length&&o==="x"&&!Kn(u)&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){y=0;var V=0,Z=[],G;if(f.each(function(re){V=Math.max(V,re.fontSize);var oe=t.l2p(re.x),he=x1(this),ve=Ca.bBox(he.node());Z.push({top:0,bottom:10,height:10,left:oe-ve.width/2,right:oe+ve.width/2+2,width:ve.width+2})}),(t.tickson==="boundaries"||t.showdividers)&&!n.secondary){var I=2;for(t.ticks&&(I+=t.tickwidth/2),G=0;G<Z.length;G++){var P=l[G].xbnd,z=Z[G];if(P[0]!==null&&z.left-t.l2p(P[0])<I||P[1]!==null&&t.l2p(P[1])-z.right<I){y=90;break}}}else{var H=l.length,j=Math.abs((l[H-1].x-l[0].x)*t._m)/(H-1),q=t.ticklabelposition||"",$=function(re){return q.indexOf(re)!==-1},ne=$("top"),te=$("left"),ee=$("right"),se=$("bottom"),U=se||te||ne||ee,Y=U?(t.tickwidth||0)+2*Tg:0,J=j<V*2.5||t.type==="multicategory"||t._name==="realaxis";for(G=0;G<Z.length-1;G++)if(Nt.bBoxIntersect(Z[G],Z[G+1],Y)){y=J?90:30;break}}y&&g(f,y)}}t._selections&&(t._selections[i]=f);var v=[h];t.automargin&&r._redrawFromAutoMarginCount&&d===90?(y=90,v.push(function(){g(f,d)})):v.push(b),t._tickAngles&&v.push(function(){t._tickAngles[i]=y===null?Kn(u)?u:0:y});var x=function(){var V=0,Z=0;return f.each(function(G,I){var P=x1(this),z=P.select(".text-math-group");if(z.empty()){var H;t._vals[I]&&(H=t._vals[I].bb||Ca.bBox(P.node()),t._vals[I].bb=H),V=Math.max(V,H.width),Z=Math.max(Z,H.height)}}),{labelsMaxW:V,labelsMaxH:Z}},k=t._anchorAxis;if(k&&(k.autorange||k.insiderange)&&Bf(t)&&!vue(r,t._id)&&(r._insideTickLabelsUpdaterange||(r._insideTickLabelsUpdaterange={}),k.autorange&&(r._insideTickLabelsUpdaterange[k._name+".autorange"]=k.autorange,v.push(x)),k.insiderange)){var _=x(),S=t._id.charAt(0)==="y"?_.labelsMaxW:_.labelsMaxH;S+=2*Tg,t.ticklabelposition==="inside"&&(S+=t.ticklen||0);var T=t.side==="right"||t.side==="top"?1:-1,C=T===1?1:0,A=T===1?0:1,O=[];O[A]=k.range[A];var F=k.d2p(k.range[C]),R=k.d2p(k.range[A]),N=Math.abs(R-F);N-S>0?(N-=S,S*=1+S/N):S=0,t._id.charAt(0)!=="y"&&(S=-S),O[C]=k.p2d(k.d2p(k.range[C])+T*S),k.autorange==="min"||k.autorange==="max reversed"?(O[0]=null,k._rangeInitial0=void 0,k._rangeInitial1=void 0):(k.autorange==="max"||k.autorange==="min reversed")&&(O[1]=null,k._rangeInitial0=void 0,k._rangeInitial1=void 0),r._insideTickLabelsUpdaterange[k._name+".range"]=O}var B=Nt.syncOrAsync(v);return B&&B.then&&e._promises.push(B),B};function Vue(e,t,n){var r=t._id+"divider",a=n.vals,o=n.layer.selectAll("path."+r).data(a,Mg);o.exit().remove(),o.enter().insert("path",":first-child").classed(r,1).classed("crisp",1).call(Rf.stroke,t.dividercolor).style("stroke-width",Ca.crispRound(e,t.dividerwidth,1)+"px"),o.attr("transform",n.transFn).attr("d",n.path)}Xe.getPxPosition=function(e,t){var n=e._fullLayout._size,r=t._id.charAt(0),a=t.side,o;if(t.anchor!=="free"?o=t._anchorAxis:r==="x"?o={_offset:n.t+(1-(t.position||0))*n.h,_length:0}:r==="y"&&(o={_offset:n.l+(t.position||0)*n.w+t._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function b1(e){var t=e.title.font.size,n=(e.title.text.match(Pf.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?n?t*(Hs+n*kg):t*Hs:n?t*(n+1)*kg:t}function Hue(e,t){var n=e._fullLayout,r=t._id,a=r.charAt(0),o=t.title.font.size,i;if(t.title.hasOwnProperty("standoff"))i=t._depth+t.title.standoff+b1(t);else{var l=Bf(t);if(t.type==="multicategory")i=t._depth;else{var s=1.5*o;l&&(s=.5*o,t.ticks==="outside"&&(s+=t.ticklen)),i=10+s+(t.linewidth?t.linewidth-1:0)}l||(a==="x"?i+=t.side==="top"?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):i+=t.side==="right"?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var u=Xe.getPxPosition(e,t),d,f,p;a==="x"?(f=t._offset+t._length/2,p=t.side==="top"?u-i:u+i):(p=t._offset+t._length/2,f=t.side==="right"?u+i:u-i,d={rotate:"-90",offset:0});var g;if(t.type!=="multicategory"){var h=t._selections[t._id+"tick"];if(g={selection:h,side:t.side},h&&h.node()&&h.node().parentNode){var y=Ca.getTranslate(h.node().parentNode);g.offsetLeft=y.x,g.offsetTop=y.y}t.title.hasOwnProperty("standoff")&&(g.pad=0)}return t._titleStandoff=i,uue.draw(e,r+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[a],avoid:g,transform:d,attributes:{x:f,y:p,"text-anchor":"middle"}})}Xe.shouldShowZeroLine=function(e,t,n){var r=Nt.simpleMap(t.range,t.r2l);return r[0]*r[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===xg)&&(b6(t,0)||!Uue(e,t,n,r)||que(e,t))},Xe.clipEnds=function(e,t){return t.filter(function(n){return b6(e,n.x)})};function b6(e,t){var n=e.l2p(t);return n>1&&n<e._length-1}function Uue(e,t,n,r){var a=n._mainAxis;if(!a)return;var o=e._fullLayout,i=t._id.charAt(0),l=Xe.counterLetter(t._id),s=t._offset+(Math.abs(r[0])<Math.abs(r[1])==(i==="x")?0:t._length);function u(h){if(!h.showline||!h.linewidth)return!1;var y=Math.max((h.linewidth+t.zerolinewidth)/2,1);function b(k){return typeof k=="number"&&Math.abs(k-s)<y}if(b(h._mainLinePosition)||b(h._mainMirrorPosition))return!0;var v=h._linepositions||{};for(var x in v)if(b(v[x][0])||b(v[x][1]))return!0}var d=o._plots[n._mainSubplot];if(!(d.mainplotinfo||d).overlays.length)return u(n);for(var f=Xe.list(e,l),p=0;p<f.length;p++){var g=f[p];if(g._mainAxis===a&&u(g))return!0}}function que(e,t){for(var n=e._fullData,r=t._mainSubplot,a=t._id.charAt(0),o=0;o<n.length;o++){var i=n[o];if(i.visible===!0&&i.xaxis+i.yaxis===r&&(Df.traceIs(i,"bar-like")&&i.orientation==={x:"h",y:"v"}[a]||i.fill&&i.fill.charAt(i.fill.length-1)===a))return!0}return!1}function x1(e){var t=Ga.select(e),n=t.select(".text-math-group");return n.empty()?t.select("text"):n}Xe.allowAutoMargin=function(e){for(var t=Xe.list(e,"",!0),n=0;n<t.length;n++){var r=t[n];r.automargin&&(bu.allowAutoMargin(e,w1(r)),r.mirror&&bu.allowAutoMargin(e,x6(r))),Df.getComponentMethod("rangeslider","isVisible")(r)&&bu.allowAutoMargin(e,w6(r))}};function w1(e){return e._id+".automargin"}function x6(e){return w1(e)+".mirror"}function w6(e){return e._id+".rangeslider"}Xe.swap=function(e,t){for(var n=Wue(e,t),r=0;r<n.length;r++)Gue(e,n[r].x,n[r].y)};function Wue(e,t){var n=[],r,a;for(r=0;r<t.length;r++){var o=[],i=e._fullData[t[r]].xaxis,l=e._fullData[t[r]].yaxis;if(!(!i||!l)){for(a=0;a<n.length;a++)(n[a].x.indexOf(i)!==-1||n[a].y.indexOf(l)!==-1)&&o.push(a);if(!o.length){n.push({x:[i],y:[l]});continue}var s=n[o[0]],u;if(o.length>1)for(a=1;a<o.length;a++)u=n[o[a]],Cg(s.x,u.x),Cg(s.y,u.y);Cg(s.x,[i]),Cg(s.y,[l])}}return n}function Cg(e,t){for(var n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n])}function Gue(e,t,n){var r=[],a=[],o=e.layout,i,l;for(i=0;i<t.length;i++)r.push(Xe.getFromId(e,t[i]));for(i=0;i<n.length;i++)a.push(Xe.getFromId(e,n[i]));var s=Object.keys(due),u=["anchor","domain","overlaying","position","side","tickangle","editType"],d=["linear","log"];for(i=0;i<s.length;i++){var f=s[i],p=r[0][f],g=a[0][f],h=!0,y=!1,b=!1;if(!(f.charAt(0)==="_"||typeof p=="function"||u.indexOf(f)!==-1)){for(l=1;l<r.length&&h;l++){var v=r[l][f];f==="type"&&d.indexOf(p)!==-1&&d.indexOf(v)!==-1&&p!==v?y=!0:v!==p&&(h=!1)}for(l=1;l<a.length&&h;l++){var x=a[l][f];f==="type"&&d.indexOf(g)!==-1&&d.indexOf(x)!==-1&&g!==x?b=!0:a[l][f]!==g&&(h=!1)}h&&(y&&(o[r[0]._name].type="linear"),b&&(o[a[0]._name].type="linear"),Zue(o,f,r,a,e._fullLayout._dfltTitle))}}for(i=0;i<e._fullLayout.annotations.length;i++){var k=e._fullLayout.annotations[i];t.indexOf(k.xref)!==-1&&n.indexOf(k.yref)!==-1&&Nt.swapAttrs(o.annotations[i],["?"])}}function Zue(e,t,n,r,a){var o=Nt.nestedProperty,i=o(e[n[0]._name],t).get(),l=o(e[r[0]._name],t).get(),s;for(t==="title"&&(i&&i.text===a.x&&(i.text=a.y),l&&l.text===a.y&&(l.text=a.x)),s=0;s<n.length;s++)o(e,n[s]._name+"."+t).set(l);for(s=0;s<r.length;s++)o(e,r[s]._name+"."+t).set(i)}function _1(e){return e._id==="angularaxis"}function k1(e,t){for(var n=t._rangebreaks.length,r=0;r<n;r++){var a=t._rangebreaks[r];if(e>=a.min&&e<a.max)return a.max}return e}function Bf(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function Og(e,t){Bf(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}function T1(e,t,n,r){var a=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,o;r?o=e.side==="right"?t:-t:o=t,a in n||(n[a]={}),e.side in n[a]||(n[a][e.side]=0),n[a][e.side]+=o}function Kue(e,t){return e.autoshift?t[e.overlaying][e.side]:e.shift||0}var bn=xO.exports,Yue=function(e,t,n){var r,a;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";r=n[o?1:0],a=n[o?0:1]}var i=e("autorangeoptions.minallowed",a===null?r:void 0),l=e("autorangeoptions.maxallowed",r===null?a:void 0);i===void 0&&e("autorangeoptions.clipmin"),l===void 0&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")},Jue=Yue,_6=function(e,t,n,r){var a=t._template||{},o=t.type||a.type||"-";n("minallowed"),n("maxallowed");var i=n("range");if(!i){var l;!r.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(t.insiderange=!1,l=void 0),l&&(i=n("range",l)))}var s=t.getAutorangeDflt(i,r),u=n("autorange",s),d;i&&(i[0]===null&&i[1]===null||(i[0]===null||i[1]===null)&&(u==="reversed"||u===!0)||i[0]!==null&&(u==="min"||u==="max reversed")||i[1]!==null&&(u==="max"||u==="min reversed"))&&(i=void 0,delete t.range,t.autorange=!0,d=!0),d||(s=t.getAutorangeDflt(i,r),u=n("autorange",s)),u&&(Jue(n,u,i),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()},S1={},k6={exports:{}},Que={left:0,top:0},Xue=$ue;function $ue(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var r=e.clientX||0,a=e.clientY||0,o=ede(t);return n[0]=r-o.left,n[1]=a-o.top,n}function ede(e){return e===window||e===document||e===document.body?Que:e.getBoundingClientRect()}function tde(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var T6=tde(),nde=function(e,t,n,r,a){var o=(e-n)/(r-n),i=o+t/(r-n),l=(o+i)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?i:o<2/3-l?o:i>4/3-l?i:l},S6=Ge,rde=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]],ade=function(e,t,n,r){return n==="left"?e=0:n==="center"?e=1:n==="right"?e=2:e=S6.constrain(Math.floor(e*3),0,2),r==="bottom"?t=0:r==="middle"?t=1:r==="top"?t=2:t=S6.constrain(Math.floor(t*3),0,2),rde[t][e]},A6={exports:{}},ode=Wm,ide=Nm,lde=Em.getGraphDiv,sde=Tm,A1=A6.exports={};A1.wrapped=function(e,t,n){e=lde(e),e._fullLayout&&ide.clear(e._fullLayout._uid+sde.HOVERID),A1.raw(e,t,n)},A1.raw=function(e,t){var n=e._fullLayout,r=e._hoverdata;t||(t={}),!(t.target&&!e._dragged&&ode.triggerHandler(e,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&r&&e.emit("plotly_unhover",{event:t,points:r}))};var cde=A6.exports,ude=Xue,M1=U4,dde=T6,fde=Ge.removeElement,pde=Jr,Us=k6.exports={};Us.align=nde,Us.getCursor=ade;var M6=cde;Us.unhover=M6.wrapped,Us.unhoverRaw=M6.raw,Us.init=function(e){var t=e.gd,n=1,r=t._context.doubleClickDelay,a=e.element,o,i,l,s,u,d,f,p;t._mouseDownTime||(t._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=y,dde?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=y,a.addEventListener("touchstart",y,{passive:!1})):a.ontouchstart=y;function g(x,k,_){return Math.abs(x)<_&&(x=0),Math.abs(k)<_&&(k=0),[x,k]}var h=e.clampFn||g;function y(x){t._dragged=!1,t._dragging=!0;var k=C1(x);o=k[0],i=k[1],f=x.target,d=x,p=x.buttons===2||x.ctrlKey,typeof x.clientX>"u"&&typeof x.clientY>"u"&&(x.clientX=o,x.clientY=i),l=new Date().getTime(),l-t._mouseDownTime<r?n+=1:(n=1,t._mouseDownTime=l),e.prepFn&&e.prepFn(x,o,i),M1&&!p?(u=C6(),u.style.cursor=window.getComputedStyle(a).cursor):M1||(u=document,s=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(a).cursor),document.addEventListener("mouseup",v),document.addEventListener("touchend",v),e.dragmode!==!1&&(x.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(x){x.preventDefault();var k=C1(x),_=e.minDrag||pde.MINDRAG,S=h(k[0]-o,k[1]-i,_),T=S[0],C=S[1];(T||C)&&(t._dragged=!0,Us.unhover(t,x)),t._dragged&&e.moveFn&&!p&&(t._dragdata={element:a,dx:T,dy:C},e.moveFn(T,C))}function v(x){if(delete t._dragdata,e.dragmode!==!1&&(x.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",v),document.removeEventListener("touchend",v),M1?fde(u):s&&(u.documentElement.style.cursor=s,s=null),!t._dragging){t._dragged=!1;return}if(t._dragging=!1,new Date().getTime()-t._mouseDownTime>r&&(n=Math.max(n-1,1)),t._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(n,d),!p){var k;try{k=new MouseEvent("click",x)}catch{var _=C1(x);k=document.createEvent("MouseEvents"),k.initMouseEvent("click",x.bubbles,x.cancelable,x.view,x.detail,x.screenX,x.screenY,_[0],_[1],x.ctrlKey,x.altKey,x.shiftKey,x.metaKey,x.button,x.relatedTarget)}f.dispatchEvent(k)}t._dragging=!1,t._dragged=!1}};function C6(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Us.coverSlip=C6;function C1(e){return ude(e.changedTouches?e.changedTouches[0]:e,document.body)}var di=k6.exports,Eg={},qs=function(e,t){(e.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&e.classed(n,!1)}),t&&e.classed("cursor-"+t,!0)},O1=qs,jf="data-savedcursor",O6="!!",hde=function(e,t){var n=e.attr(jf);if(t){if(!n){for(var r=(e.attr("class")||"").split(" "),a=0;a<r.length;a++){var o=r[a];o.indexOf("cursor-")===0&&e.attr(jf,o.substr(7)).classed(o,!1)}e.attr(jf)||e.attr(jf,O6)}O1(e,t)}else n&&(e.attr(jf,null),n===O6?O1(e):O1(e,n))},E1=Fr,mde=ca,E6={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend",description:["Determines whether or not this legend is visible."].join(" ")},bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:mde.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:E1({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:E1({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},entrywidth:{valType:"number",min:0,editType:"legend",description:["Sets the width (in px or fraction) of the legend.","Use 0 to size the entry based on the text width,","when `entrywidthmode` is set to *pixels*."].join(" ")},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend",description:"Determines what entrywidth means."},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",editType:"legend",description:["Sets the x position with respect to `xref` (in normalized coordinates) of the legend.","When `xref` is *paper*, defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends.","When `xref` is *container*, defaults to *1* for vertical legends and","defaults to *0* for horizontal legends.","Must be between *0* and *1* if `xref` is *container*.","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",editType:"legend",description:["Sets the y position with respect to `yref` (in normalized coordinates) of the legend.","When `yref` is *paper*, defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders.","When `yref` is *container*, defaults to *1*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:E1({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","top center and top right are for horizontal alignment","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"},_u={};_u.isGrouped=function(e){return(e.traceorder||"").indexOf("grouped")!==-1},_u.isVertical=function(e){return e.orientation!=="h"},_u.isReversed=function(e){return(e.traceorder||"").indexOf("reversed")!==-1};var L1=Dt,da=Ge,gde=hn,yde=ti,vde=E6,bde=xf,z1=_u;function xde(e,t,n,r){var a=t[e]||{},o=gde.newContainer(n,e);function i(I,P){return da.coerce(a,o,vde,I,P)}var l=da.coerceFont(i,"font",n.font);i("bgcolor",n.paper_bgcolor),i("bordercolor");var s=i("visible");if(s){for(var u,d=function(I,P){var z=u._input,H=u;return da.coerce(z,H,yde,I,P)},f=n.font||{},p=da.coerceFont(i,"grouptitlefont",da.extendFlat({},f,{size:Math.round(f.size*1.1)})),g=0,h=!1,y="normal",b=(n.shapes||[]).filter(function(I){return I.showlegend}),v=r.concat(b).filter(function(I){return e===(I.legend||"legend")}),x=0;x<v.length;x++)if(u=v[x],!!u.visible){var k=u._isShape;(u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&u._module.attributes.showlegend.dflt===!1))&&(g++,u.showlegend&&(h=!0,(!k&&L1.traceIs(u,"pie-like")||u._input.showlegend===!0)&&g++),da.coerceFont(d,"legendgrouptitle.font",p)),(!k&&L1.traceIs(u,"bar")&&n.barmode==="stack"||["tonextx","tonexty"].indexOf(u.fill)!==-1)&&(y=z1.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),u.legendgroup!==void 0&&u.legendgroup!==""&&(y=z1.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var _=da.coerce(t,n,bde,"showlegend",h&&g>(e==="legend"?1:0));if(_===!1&&(n[e]=void 0),!(_===!1&&!a.uirevision)&&(i("uirevision",n.uirevision),_!==!1)){i("borderwidth");var S=i("orientation"),T=i("yref"),C=i("xref"),A=S==="h",O=T==="paper",F=C==="paper",R,N,B,V="left";A?(R=0,L1.getComponentMethod("rangeslider","isVisible")(t.xaxis)?O?(N=1.1,B="bottom"):(N=1,B="top"):O?(N=-.1,B="top"):(N=0,B="bottom")):(N=1,B="auto",F?R=1.02:(R=1,V="right")),da.coerce(a,o,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:R}},"x"),da.coerce(a,o,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:N}},"y"),i("traceorder",y),z1.isGrouped(n[e])&&i("tracegroupgap"),i("entrywidth"),i("entrywidthmode"),i("itemsizing"),i("itemwidth"),i("itemclick"),i("itemdoubleclick"),i("groupclick"),i("xanchor",V),i("yanchor",B),i("valign"),da.noneOrAll(a,o,["x","y"]);var Z=i("title.text");if(Z){i("title.side",A?"left":"top");var G=da.extendFlat({},l,{size:da.bigFont(l.size)});da.coerceFont(i,"title.font",G)}}}}var L6=function(e,t,n){var r,a=n.slice(),o=t.shapes;if(o)for(r=0;r<o.length;r++){var i=o[r];if(i.showlegend){var l={_input:i._input,visible:i.visible,showlegend:i.showlegend,legend:i.legend};a.push(l)}}var s=["legend"];for(r=0;r<a.length;r++)da.pushUnique(s,a[r].legend);for(t._legends=[],r=0;r<s.length;r++){var u=s[r];xde(u,e,t,a),t[u]&&t[u].visible&&(t[u]._id=u),t._legends.push(u)}},Pl=Dt,Lg=Ge,wde=Lg.pushUnique,z6=!0,_de=function(e,t,n){var r=t._fullLayout;if(t._dragged||t._editing)return;var a=r.legend.itemclick,o=r.legend.itemdoubleclick,i=r.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&z6&&t.data&&t._context.showTips&&Lg.notifier(Lg._(t,"Double-click on legend to isolate one trace"),"long"),z6=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var s=i==="togglegroup",u=r.hiddenlabels?r.hiddenlabels.slice():[],d=e.data()[0][0];if(d.groupTitle&&d.noClick)return;var f=t._fullData,p=(r.shapes||[]).filter(function(De){return De.showlegend}),g=f.concat(p),h=d.trace;h._isShape&&(h=h._fullInput);var y=h.legendgroup,b,v,x,k,_,S,T={},C=[],A=[],O=[];function F(De,je){var qe=C.indexOf(De),Ee=T.visible;return Ee||(Ee=T.visible=[]),C.indexOf(De)===-1&&(C.push(De),qe=C.length-1),Ee[qe]=je,qe}var R=(r.shapes||[]).map(function(De){return De._input}),N=!1;function B(De,je){R[De].visible=je,N=!0}function V(De,je){if(!(d.groupTitle&&!s)){var qe=De._fullInput||De,Ee=qe._isShape,_e=qe.index;if(_e===void 0&&(_e=qe._index),Pl.hasTransform(qe,"groupby")){var we=A[_e];if(!we){var Re=Pl.getTransformIndices(qe,"groupby"),Je=Re[Re.length-1];we=Lg.keyedContainer(qe,"transforms["+Je+"].styles","target","value.visible"),A[_e]=we}var it=we.get(De._group);it===void 0&&(it=!0),it!==!1&&we.set(De._group,je),O[_e]=F(_e,qe.visible!==!1)}else{var dt=qe.visible===!1?!1:je;Ee?B(_e,dt):F(_e,dt)}}}var Z=h.legend,G=h._fullInput,I=G&&G._isShape;if(!I&&Pl.traceIs(h,"pie-like")){var P=d.label,z=u.indexOf(P);if(l==="toggle")z===-1?u.push(P):u.splice(z,1);else if(l==="toggleothers"){var H=z!==-1,j=[];for(b=0;b<t.calcdata.length;b++){var q=t.calcdata[b];for(v=0;v<q.length;v++){var $=q[v],ne=$.label;Z===q[0].trace.legend&&P!==ne&&(u.indexOf(ne)===-1&&(H=!0),wde(u,ne),j.push(ne))}}if(!H)for(var te=0;te<j.length;te++){var ee=u.indexOf(j[te]);ee!==-1&&u.splice(ee,1)}}Pl.call("_guiRelayout",t,"hiddenlabels",u)}else{var se=y&&y.length,U=[],Y;if(se)for(b=0;b<g.length;b++)Y=g[b],Y.visible&&Y.legendgroup===y&&U.push(b);if(l==="toggle"){var J;switch(h.visible){case!0:J="legendonly";break;case!1:J=!1;break;case"legendonly":J=!0;break}if(se)if(s)for(b=0;b<g.length;b++){var re=g[b];re.visible!==!1&&re.legendgroup===y&&V(re,J)}else V(h,J);else V(h,J)}else if(l==="toggleothers"){var oe,he,ve,ge,xe,Le=!0;for(b=0;b<g.length;b++)if(xe=g[b],oe=xe===h,ve=xe.showlegend!==!0,!(oe||ve)&&(he=se&&xe.legendgroup===y,!he&&xe.legend===Z&&xe.visible===!0&&!Pl.traceIs(xe,"notLegendIsolatable"))){Le=!1;break}for(b=0;b<g.length;b++)if(xe=g[b],!(xe.visible===!1||xe.legend!==Z)&&!Pl.traceIs(xe,"notLegendIsolatable"))switch(h.visible){case"legendonly":V(xe,!0);break;case!0:ge=Le?!0:"legendonly",oe=xe===h,ve=xe.showlegend!==!0&&!xe.legendgroup,he=oe||se&&xe.legendgroup===y,V(xe,he||ve?!0:ge);break}}for(b=0;b<A.length;b++)if(x=A[b],!!x){var Ue=x.constructUpdate(),Pe=Object.keys(Ue);for(v=0;v<Pe.length;v++)k=Pe[v],S=T[k]=T[k]||[],S[O[b]]=Ue[k]}for(_=Object.keys(T),b=0;b<_.length;b++)for(k=_[b],v=0;v<C.length;v++)T[k].hasOwnProperty(v)||(T[k][v]=void 0);N?Pl.call("_guiUpdate",t,T,{shapes:R},C):Pl.call("_guiRestyle",t,T,C)}},F6={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5},I6=Dt,F1=_u,kde=function(e,t,n){var r=t._inHover,a=F1.isGrouped(t),o=F1.isReversed(t),i={},l=[],s=!1,u={},d=0,f=0,p,g;function h(G,I,P){if(t.visible!==!1&&!(n&&G!==t._id))if(I===""||!F1.isGrouped(t)){var z="~~i"+d;l.push(z),i[z]=[P],d++}else l.indexOf(I)===-1?(l.push(I),s=!0,i[I]=[P]):i[I].push(P)}for(p=0;p<e.length;p++){var y=e[p],b=y[0],v=b.trace,x=v.legend,k=v.legendgroup;if(!(!r&&(!v.visible||!v.showlegend)))if(I6.traceIs(v,"pie-like"))for(u[k]||(u[k]={}),g=0;g<y.length;g++){var _=y[g].label;u[k][_]||(h(x,k,{label:_,color:y[g].color,i:y[g].i,trace:v,pts:y[g].pts}),u[k][_]=!0,f=Math.max(f,(_||"").length))}else h(x,k,b),f=Math.max(f,(v.name||"").length)}if(!l.length)return[];var S=!s||!a,T=[];for(p=0;p<l.length;p++){var C=i[l[p]];S?T.push(C[0]):T.push(C)}for(S&&(T=[T]),p=0;p<T.length;p++){var A=1/0;for(g=0;g<T[p].length;g++){var O=T[p][g].trace.legendrank;A>O&&(A=O)}T[p][0]._groupMinRank=A,T[p][0]._preGroupSort=p}var F=function(G,I){return G[0]._groupMinRank-I[0]._groupMinRank||G[0]._preGroupSort-I[0]._preGroupSort},R=function(G,I){return G.trace.legendrank-I.trace.legendrank||G._preSort-I._preSort};for(T.forEach(function(G,I){G[0]._preGroupSort=I}),T.sort(F),p=0;p<T.length;p++){T[p].forEach(function(G,I){G._preSort=I}),T[p].sort(R);var N=T[p][0].trace,B=null;for(g=0;g<T[p].length;g++){var V=T[p][g].trace.legendgrouptitle;if(V&&V.text){B=V,r&&(V.font=t._groupTitleFont);break}}if(o&&T[p].reverse(),B){var Z=!1;for(g=0;g<T[p].length;g++)if(I6.traceIs(T[p][g].trace,"pie-like")){Z=!0;break}T[p].unshift({i:-1,groupTitle:B,noClick:Z,trace:{showlegend:N.showlegend,legendgroup:N.legendgroup,visible:t.groupclick==="toggleitem"?!0:N.visible}})}for(g=0;g<T[p].length;g++)T[p][g]=[T[p][g]]}return t._lgroupsLength=T.length,t._maxNameLength=f,T},I1={};(function(e){var t=Ge;function n(r){return r.indexOf("e")!==-1?r.replace(/[.]?0+e/,"e"):r.indexOf(".")!==-1?r.replace(/[.]?0+$/,""):r}e.formatPiePercent=function(r,a){var o=n((r*100).toPrecision(3));return t.numSeparate(o,a)+"%"},e.formatPieValue=function(r,a){var o=n(r.toPrecision(10));return t.numSeparate(o,a)},e.getFirstFilled=function(r,a){if(t.isArrayOrTypedArray(r))for(var o=0;o<a.length;o++){var i=r[a[o]];if(i||i===0||i==="")return i}},e.castOption=function(r,a){if(t.isArrayOrTypedArray(r))return e.getFirstFilled(r,a);if(r)return r},e.getRotationAngle=function(r){return(r==="auto"?0:r)*Math.PI/180}})(I1);var Tde=gn,Sde=Kt,Ade=function(e,t,n,r){var a=n.marker.pattern;a&&a.shape?Tde.pointStyle(e,n,r,t):Sde.fill(e,t.color)},D6=Kt,P6=I1.castOption,Mde=Ade,Cde=function(e,t,n,r){var a=n.marker.line,o=P6(a.color,t.pts)||D6.defaultLine,i=P6(a.width,t.pts)||0;e.call(Mde,t,n,r).style("stroke-width",i).call(D6.stroke,o)},Vr=$t,D1=Dt,Pr=Ge,R6=Pr.strTranslate,Xr=gn,Ka=Kt,P1=Mo.extractOpts,zg=Wa,Ode=Cde,Ede=I1.castOption,Lde=F6,N6=12,B6=5,Ws=2,zde=10,ku=5,j6=function(e,t,n){var r=t._fullLayout;n||(n=r.legend);var a=n.itemsizing==="constant",o=n.itemwidth,i=(o+Lde.itemGap*2)/2,l=R6(i,0),s=function(T,C,A,O){var F;if(T+1)F=T;else if(C&&C.width>0)F=C.width;else return 0;return a?O:Math.min(F,A)};e.each(function(T){var C=Vr.select(this),A=Pr.ensureSingle(C,"g","layers");A.style("opacity",T[0].trace.opacity);var O=n.valign,F=T[0].lineHeight,R=T[0].height;if(O==="middle"||!F||!R)A.attr("transform",null);else{var N={top:1,bottom:-1}[O],B=N*(.5*(F-R+3));A.attr("transform",R6(0,B))}var V=A.selectAll("g.legendfill").data([T]);V.enter().append("g").classed("legendfill",!0);var Z=A.selectAll("g.legendlines").data([T]);Z.enter().append("g").classed("legendlines",!0);var G=A.selectAll("g.legendsymbols").data([T]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([T]).enter().append("g").classed("legendpoints",!0)}).each(S).each(f).each(g).each(p).each(y).each(k).each(x).each(u).each(d).each(b).each(v);function u(T){var C=V6(T),A=C.showFill,O=C.showLine,F=C.showGradientLine,R=C.showGradientFill,N=C.anyFill,B=C.anyLine,V=T[0],Z=V.trace,G,I,P=P1(Z),z=P.colorscale,H=P.reversescale,j=function(U){if(U.size())if(A)Xr.fillGroupStyle(U,t);else{var Y="legendfill-"+Z.uid;Xr.gradient(U,t,Y,R1(H),z,"fill")}},q=function(U){if(U.size()){var Y="legendline-"+Z.uid;Xr.lineGroupStyle(U),Xr.gradient(U,t,Y,R1(H),z,"stroke")}},$=zg.hasMarkers(Z)||!N?"M5,0":B?"M5,-2":"M5,-3",ne=Vr.select(this),te=ne.select(".legendfill").selectAll("path").data(A||R?[T]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",$+"h"+o+"v6h-"+o+"z").call(j),O||F){var ee=s(void 0,Z.line,zde,B6);I=Pr.minExtend(Z,{line:{width:ee}}),G=[Pr.minExtend(V,{trace:I})]}var se=ne.select(".legendlines").selectAll("path").data(O||F?[G]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",$+(F?"l"+o+",0.0001":"h"+o)).call(O?Xr.lineGroupStyle:q)}function d(T){var C=V6(T),A=C.anyFill,O=C.anyLine,F=C.showLine,R=C.showMarker,N=T[0],B=N.trace,V=!R&&!O&&!A&&zg.hasText(B),Z,G;function I(te,ee,se,U){var Y=Pr.nestedProperty(B,te).get(),J=Pr.isArrayOrTypedArray(Y)&&ee?ee(Y):Y;if(a&&J&&U!==void 0&&(J=U),se){if(J<se[0])return se[0];if(J>se[1])return se[1]}return J}function P(te){return N._distinct&&N.index&&te[N.index]?te[N.index]:te[0]}if(R||V||F){var z={},H={};if(R){z.mc=I("marker.color",P),z.mx=I("marker.symbol",P),z.mo=I("marker.opacity",Pr.mean,[.2,1]),z.mlc=I("marker.line.color",P),z.mlw=I("marker.line.width",Pr.mean,[0,5],Ws),H.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var j=I("marker.size",Pr.mean,[2,16],N6);z.ms=j,H.marker.size=j}F&&(H.line={width:I("line.width",P,[0,10],B6)}),V&&(z.tx="Aa",z.tp=I("textposition",P),z.ts=10,z.tc=I("textfont.color",P),z.tf=I("textfont.family",P)),Z=[Pr.minExtend(N,z)],G=Pr.minExtend(B,H),G.selectedpoints=null,G.texttemplate=null}var q=Vr.select(this).select("g.legendpoints"),$=q.selectAll("path.scatterpts").data(R?Z:[]);$.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),$.exit().remove(),$.call(Xr.pointStyle,G,t),R&&(Z[0].mrc=3);var ne=q.selectAll("g.pointtext").data(V?Z:[]);ne.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ne.exit().remove(),ne.selectAll("text").call(Xr.textPointStyle,G,t)}function f(T){var C=T[0].trace,A=C.type==="waterfall";if(T[0]._distinct&&A){var O=T[0].trace[T[0].dir].marker;return T[0].mc=O.color,T[0].mlw=O.line.width,T[0].mlc=O.line.color,h(T,this,"waterfall")}var F=[];C.visible&&A&&(F=T[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=Vr.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(F);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N){var B=Vr.select(this),V=C[N[0]].marker,Z=s(void 0,V.line,ku,Ws);B.attr("d",N[1]).style("stroke-width",Z+"px").call(Ka.fill,V.color),Z&&B.call(Ka.stroke,V.line.color)})}function p(T){h(T,this)}function g(T){h(T,this,"funnel")}function h(T,C,A){var O=T[0].trace,F=O.marker||{},R=F.line||{},N=A?O.visible&&O.type===A:D1.traceIs(O,"bar"),B=Vr.select(C).select("g.legendpoints").selectAll("path.legend"+A).data(N?[T]:[]);B.enter().append("path").classed("legend"+A,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),B.exit().remove(),B.each(function(V){var Z=Vr.select(this),G=V[0],I=s(G.mlw,F.line,ku,Ws);Z.style("stroke-width",I+"px");var P=G.mcc;if(!n._inHover&&"mc"in G){var z=P1(F),H=z.mid;H===void 0&&(H=(z.max+z.min)/2),P=Xr.tryColorscale(F,"")(H)}var j=P||G.mc||F.color,q=F.pattern,$=q&&Xr.getPatternAttr(q.shape,0,"");if($){var ne=Xr.getPatternAttr(q.bgcolor,0,null),te=Xr.getPatternAttr(q.fgcolor,0,null),ee=q.fgopacity,se=H6(q.size,8,10),U=H6(q.solidity,.5,1),Y="legend-"+O.uid;Z.call(Xr.pattern,"legend",t,Y,$,se,U,P,q.fillmode,ne,te,ee)}else Z.call(Ka.fill,j);I&&Ka.stroke(Z,G.mlc||R.color)})}function y(T){var C=T[0].trace,A=Vr.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&D1.traceIs(C,"box-violin")?[T]:[]);A.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),A.exit().remove(),A.each(function(){var O=Vr.select(this);if((C.boxpoints==="all"||C.points==="all")&&Ka.opacity(C.fillcolor)===0&&Ka.opacity((C.line||{}).color)===0){var F=Pr.minExtend(C,{marker:{size:a?N6:Pr.constrain(C.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});A.call(Xr.pointStyle,F,t)}else{var R=s(void 0,C.line,ku,Ws);O.style("stroke-width",R+"px").call(Ka.fill,C.fillcolor),R&&Ka.stroke(O,C.line.color)}})}function b(T){var C=T[0].trace,A=Vr.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[T,T]:[]);A.enter().append("path").classed("legendcandle",!0).attr("d",function(O,F){return F?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(O,F){var R=Vr.select(this),N=C[F?"increasing":"decreasing"],B=s(void 0,N.line,ku,Ws);R.style("stroke-width",B+"px").call(Ka.fill,N.fillcolor),B&&Ka.stroke(R,N.line.color)})}function v(T){var C=T[0].trace,A=Vr.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[T,T]:[]);A.enter().append("path").classed("legendohlc",!0).attr("d",function(O,F){return F?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(O,F){var R=Vr.select(this),N=C[F?"increasing":"decreasing"],B=s(void 0,N.line,ku,Ws);R.style("fill","none").call(Xr.dashLine,N.line.dash,B),B&&Ka.stroke(R,N.line.color)})}function x(T){_(T,this,"pie")}function k(T){_(T,this,"funnelarea")}function _(T,C,A){var O=T[0],F=O.trace,R=A?F.visible&&F.type===A:D1.traceIs(F,A),N=Vr.select(C).select("g.legendpoints").selectAll("path.legend"+A).data(R?[T]:[]);if(N.enter().append("path").classed("legend"+A,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),N.exit().remove(),N.size()){var B=F.marker||{},V=s(Ede(B.line.width,O.pts),B.line,ku,Ws),Z="pieLike",G=Pr.minExtend(F,{marker:{line:{width:V}}},Z),I=Pr.minExtend(O,{trace:G},Z);Ode(N,I,G,t)}}function S(T){var C=T[0].trace,A,O=[];if(C.visible)switch(C.type){case"histogram2d":case"heatmap":O=[["M-15,-2V4H15V-2Z"]],A=!0;break;case"choropleth":case"choroplethmapbox":O=[["M-6,-6V6H6V-6Z"]],A=!0;break;case"densitymapbox":O=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],A="radial";break;case"cone":O=[["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"]],A=!1;break;case"streamtube":O=[["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"]],A=!1;break;case"surface":O=[["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"]],A=!0;break;case"mesh3d":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],A=!1;break;case"volume":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],A=!0;break;case"isosurface":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],A=!1;break}var F=Vr.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(O);F.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(R,N){var B=Vr.select(this),V=P1(C),Z=V.colorscale,G=V.reversescale,I=function(j){if(j.size()){var q="legendfill-"+C.uid;Xr.gradient(j,t,q,R1(G,A==="radial"),Z,"fill")}},P;if(Z){if(!A){var z=Z.length;P=N===0?Z[G?z-1:0][1]:N===1?Z[G?0:z-1][1]:Z[Math.floor((z-1)/2)][1]}}else{var H=C.vertexcolor||C.facecolor||C.color;P=Pr.isArrayOrTypedArray(H)?H[N]||H[0]:H}B.attr("d",R[0]),P?B.call(Ka.fill,P):B.call(I)})}};function R1(e,t){var n=t?"radial":"horizontal";return n+(e?"":"reversed")}function V6(e){var t=e[0].trace,n=t.contours,r=zg.hasLines(t),a=zg.hasMarkers(t),o=t.visible&&t.fill&&t.fill!=="none",i=!1,l=!1;if(n){var s=n.coloring;s==="lines"?i=!0:r=s==="none"||s==="heatmap"||n.showlines,n.type==="constraint"?o=n._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:r,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:r||i,anyFill:o||l}}function H6(e,t,n){return e&&Pr.isArrayOrTypedArray(e)?t:e>n?n:e}var fa=$t,Yn=Ge,N1=wr,Rl=Dt,U6=Wm,B1=di,er=gn,Fg=Kt,Gs=Ir,q6=_de,or=F6,j1=Br,W6=j1.LINE_SPACING,Tu=j1.FROM_TL,G6=j1.FROM_BR,Z6=kde,Fde=j6,K6=_u,Su=1,Ide=/^legend[0-9]*$/,Y6=function(e,t){if(t)J6(e,t);else{var n=e._fullLayout,r=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var s=fa.select(this),u=s.attr("class"),d=u.split(" ")[0];d.match(Ide)&&r.indexOf(d)===-1&&s.remove()});for(var o=0;o<r.length;o++){var i=r[o],l=e._fullLayout[i];J6(e,l)}}};function Dde(e,t,n){if(!(t.title.side!=="top center"&&t.title.side!=="top right")){var r=t.title.font,a=r.size*W6,o=0,i=e.node(),l=er.bBox(i).width;t.title.side==="top center"?o=.5*(t._width-2*n-2*or.titlePad-l):t.title.side==="top right"&&(o=t._width-2*n-2*or.titlePad-l),Gs.positionText(e,n+or.titlePad+o,n+a)}}function J6(e,t){var n=t||{},r=e._fullLayout,a=Ng(n),o,i,l=n._inHover;if(l?(i=n.layer,o="hover"):(i=r._infolayer,o=a),!!i){o+=r._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var s;if(l){if(!n.entries)return;s=Z6(n.entries,n)}else{for(var u=(e.calcdata||[]).slice(),d=r.shapes,f=0;f<d.length;f++){var p=d[f];if(p.showlegend){var g={_isShape:!0,_fullInput:p,index:p._index,name:p.name||p.label.text||"shape "+p._index,legend:p.legend,legendgroup:p.legendgroup,legendgrouptitle:p.legendgrouptitle,legendrank:p.legendrank,legendwidth:p.legendwidth,showlegend:p.showlegend,visible:p.visible,opacity:p.opacity,mode:p.type==="line"?"lines":"markers",line:p.line,marker:{line:p.line,color:p.fillcolor,size:12,symbol:p.type==="rect"?"square":p.type==="circle"?"circle":"hexagon2"}};u.push([{trace:g}])}}s=r.showlegend&&Z6(u,n,r._legends.length>1)}var h=r.hiddenlabels||[];if(!l&&(!r.showlegend||!s.length))return i.selectAll("."+a).remove(),r._topdefs.select("#"+o).remove(),N1.autoMargin(e,a);var y=Yn.ensureSingle(i,"g",a,function(A){l||A.attr("pointer-events","all")}),b=Yn.ensureSingleById(r._topdefs,"clipPath",o,function(A){A.append("rect")}),v=Yn.ensureSingle(y,"rect","bg",function(A){A.attr("shape-rendering","crispEdges")});v.call(Fg.stroke,n.bordercolor).call(Fg.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px");var x=Yn.ensureSingle(y,"g","scrollbox"),k=n.title;n._titleWidth=0,n._titleHeight=0;var _;k.text?(_=Yn.ensureSingle(x,"text",a+"titletext"),_.attr("text-anchor","start").call(er.font,k.font).text(k.text),Dg(_,x,e,n,Su)):x.selectAll("."+a+"titletext").remove();var S=Yn.ensureSingle(y,"rect","scrollbar",function(A){A.attr(or.scrollBarEnterAttrs).call(Fg.fill,or.scrollBarColor)}),T=x.selectAll("g.groups").data(s);T.enter().append("g").attr("class","groups"),T.exit().remove();var C=T.selectAll("g.traces").data(Yn.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(A){var O=A[0].trace;return Rl.traceIs(O,"pie-like")?h.indexOf(A[0].label)!==-1?.5:1:O.visible==="legendonly"?.5:1}).each(function(){fa.select(this).call(Pde,e,n)}).call(Fde,e,n).each(function(){l||fa.select(this).call(Rde,e,a)}),Yn.syncOrAsync([N1.previousPromises,function(){return jde(e,T,C,n)},function(){var A=r._size,O=n.borderwidth,F=n.xref==="paper",R=n.yref==="paper";if(k.text&&Dde(_,n,O),!l){var N,B;F?N=A.l+A.w*n.x-Tu[Pg(n)]*n._width:N=r.width*n.x-Tu[Pg(n)]*n._width,R?B=A.t+A.h*(1-n.y)-Tu[Rg(n)]*n._effHeight:B=r.height*(1-n.y)-Tu[Rg(n)]*n._effHeight;var V=Vde(e,a,N,B);if(V)return;if(r.margin.autoexpand){var Z=N,G=B;N=F?Yn.constrain(N,0,r.width-n._width):Z,B=R?Yn.constrain(B,0,r.height-n._effHeight):G,N!==Z&&Yn.log("Constrain "+a+".x to make legend fit inside graph"),B!==G&&Yn.log("Constrain "+a+".y to make legend fit inside graph")}er.setTranslate(y,N,B)}if(S.on(".drag",null),y.on("wheel",null),l||n._height<=n._maxHeight||e._context.staticPlot){var I=n._effHeight;l&&(I=n._height),v.attr({width:n._width-O,height:I-O,x:O/2,y:O/2}),er.setTranslate(x,0,0),b.select("rect").attr({width:n._width-2*O,height:I-2*O,x:O,y:O}),er.setClipUrl(x,o,e),er.setRect(S,0,0,0,0),delete n._scrollY}else{var P=Math.max(or.scrollBarMinHeight,n._effHeight*n._effHeight/n._height),z=n._effHeight-P-2*or.scrollBarMargin,H=n._height-n._effHeight,j=z/H,q=Math.min(n._scrollY||0,H);v.attr({width:n._width-2*O+or.scrollBarWidth+or.scrollBarMargin,height:n._effHeight-O,x:O/2,y:O/2}),b.select("rect").attr({width:n._width-2*O+or.scrollBarWidth+or.scrollBarMargin,height:n._effHeight-2*O,x:O,y:O+q}),er.setClipUrl(x,o,e),J(q,P,j),y.on("wheel",function(){q=Yn.constrain(n._scrollY+fa.event.deltaY/z*H,0,H),J(q,P,j),q!==0&&q!==H&&fa.event.preventDefault()});var $,ne,te,ee=function(ge,xe,Le){var Ue=(Le-xe)/j+ge;return Yn.constrain(Ue,0,H)},se=function(ge,xe,Le){var Ue=(xe-Le)/j+ge;return Yn.constrain(Ue,0,H)},U=fa.behavior.drag().on("dragstart",function(){var ge=fa.event.sourceEvent;ge.type==="touchstart"?$=ge.changedTouches[0].clientY:$=ge.clientY,te=q}).on("drag",function(){var ge=fa.event.sourceEvent;ge.buttons===2||ge.ctrlKey||(ge.type==="touchmove"?ne=ge.changedTouches[0].clientY:ne=ge.clientY,q=ee(te,$,ne),J(q,P,j))});S.call(U);var Y=fa.behavior.drag().on("dragstart",function(){var ge=fa.event.sourceEvent;ge.type==="touchstart"&&($=ge.changedTouches[0].clientY,te=q)}).on("drag",function(){var ge=fa.event.sourceEvent;ge.type==="touchmove"&&(ne=ge.changedTouches[0].clientY,q=se(te,$,ne),J(q,P,j))});x.call(Y)}function J(ge,xe,Le){n._scrollY=e._fullLayout[a]._scrollY=ge,er.setTranslate(x,0,-ge),er.setRect(S,n._width,or.scrollBarMargin+ge*Le,or.scrollBarWidth,xe),b.select("rect").attr("y",O+ge)}if(e._context.edits.legendPosition){var re,oe,he,ve;y.classed("cursor-move",!0),B1.init({element:y.node(),gd:e,prepFn:function(){var ge=er.getTranslate(y);he=ge.x,ve=ge.y},moveFn:function(ge,xe){var Le=he+ge,Ue=ve+xe;er.setTranslate(y,Le,Ue),re=B1.align(Le,n._width,A.l,A.l+A.w,n.xanchor),oe=B1.align(Ue+n._height,-n._height,A.t+A.h,A.t,n.yanchor)},doneFn:function(){if(re!==void 0&&oe!==void 0){var ge={};ge[a+".x"]=re,ge[a+".y"]=oe,Rl.call("_guiRelayout",e,ge)}},clickFn:function(ge,xe){var Le=i.selectAll("g.traces").filter(function(){var Ue=this.getBoundingClientRect();return xe.clientX>=Ue.left&&xe.clientX<=Ue.right&&xe.clientY>=Ue.top&&xe.clientY<=Ue.bottom});Le.size()>0&&Q6(e,y,Le,ge,xe)}})}}],e)}}function Ig(e,t,n){var r=e[0],a=r.width,o=t.entrywidthmode,i=r.trace.legendwidth||t.entrywidth;return o==="fraction"?t._maxWidth*i:n+(i||a)}function Q6(e,t,n,r,a){var o=n.data()[0][0].trace,i={event:a,node:n.node(),curveNumber:o.index,expandedIndex:o._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(i.group=o._group),Rl.traceIs(o,"pie-like")&&(i.label=n.datum()[0].label);var l=U6.triggerHandler(e,"plotly_legendclick",i);if(r===1){if(l===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&q6(n,e,r)},e._context.doubleClickDelay)}else if(r===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var s=U6.triggerHandler(e,"plotly_legenddoubleclick",i);s!==!1&&l!==!1&&q6(n,e,r)}}function Pde(e,t,n){var r=Ng(n),a=e.data()[0][0],o=a.trace,i=Rl.traceIs(o,"pie-like"),l=!n._inHover&&t._context.edits.legendText&&!i,s=n._maxNameLength,u,d;a.groupTitle?(u=a.groupTitle.text,d=a.groupTitle.font):(d=n.font,n.entries?u=a.text:(u=i?a.label:o.name,o._meta&&(u=Yn.templateString(u,o._meta))));var f=Yn.ensureSingle(e,"text",r+"text");f.attr("text-anchor","start").call(er.font,d).text(l?X6(u,s):u);var p=n.itemwidth+or.itemGap*2;Gs.positionText(f,p,0),l?f.call(Gs.makeEditable,{gd:t,text:u}).call(Dg,e,t,n).on("edit",function(g){this.text(X6(g,s)).call(Dg,e,t,n);var h=a.trace._fullInput||{},y={};if(Rl.hasTransform(h,"groupby")){var b=Rl.getTransformIndices(h,"groupby"),v=b[b.length-1],x=Yn.keyedContainer(h,"transforms["+v+"].styles","target","value.name");x.set(a.trace._group,g),y=x.constructUpdate()}else y.name=g;return h._isShape?Rl.call("_guiRelayout",t,"shapes["+o.index+"].name",y.name):Rl.call("_guiRestyle",t,y,o.index)}):Dg(f,e,t,n)}function X6(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;e=e||"";for(var r=n-e.length;r>0;r--)e+=" ";return e}function Rde(e,t,n){var r=t._context.doubleClickDelay,a,o=1,i=Yn.ensureSingle(e,"rect",n+"toggle",function(l){t._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Fg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTime<r?o+=1:(o=1,t._legendMouseDownTime=a)}),i.on("mouseup",function(){if(!(t._dragged||t._editing)){var l=t._fullLayout[n];new Date().getTime()-t._legendMouseDownTime>r&&(o=Math.max(o-1,1)),Q6(t,l,e,o,fa.event)}}))}function Dg(e,t,n,r,a){r._inHover&&e.attr("data-notex",!0),Gs.convertToTspans(e,n,function(){Nde(t,n,r,a)})}function Nde(e,t,n,r){var a=e.data()[0][0];if(!n._inHover&&a&&!a.trace.showlegend){e.remove();return}var o=e.select("g[class*=math-group]"),i=o.node(),l=Ng(n);n||(n=t._fullLayout[l]);var s=n.borderwidth,u;r===Su?u=n.title.font:a.groupTitle?u=a.groupTitle.font:u=n.font;var d=u.size*W6,f,p;if(i){var g=er.bBox(i);f=g.height,p=g.width,r===Su?er.setTranslate(o,s,s+f*.75):er.setTranslate(o,0,f*.25)}else{var h="."+l+(r===Su?"title":"")+"text",y=e.select(h),b=Gs.lineCount(y),v=y.node();if(f=d*b,p=v?er.bBox(v).width:0,r===Su)n.title.side==="left"&&(p+=or.itemGap*2),Gs.positionText(y,s+or.titlePad,s+d);else{var x=or.itemGap*2+n.itemwidth;a.groupTitle&&(x=or.itemGap,p-=n.itemwidth),Gs.positionText(y,x,-d*((b-1)/2-.3))}}r===Su?(n._titleWidth=p,n._titleHeight=f):(a.lineHeight=d,a.height=Math.max(f,16)+3,a.width=p)}function Bde(e){var t=0,n=0,r=e.title.side;return r&&(r.indexOf("left")!==-1&&(t=e._titleWidth),r.indexOf("top")!==-1&&(n=e._titleHeight)),[t,n]}function jde(e,t,n,r){var a=e._fullLayout,o=Ng(r);r||(r=a[o]);var i=a._size,l=K6.isVertical(r),s=K6.isGrouped(r),u=r.entrywidthmode==="fraction",d=r.borderwidth,f=2*d,p=or.itemGap,g=r.itemwidth+p*2,h=2*(d+p),y=Rg(r),b=r.y<0||r.y===0&&y==="top",v=r.y>1||r.y===1&&y==="bottom",x=r.tracegroupgap,k={};r._maxHeight=Math.max(b||v?a.height/2:i.h,30);var _=0;r._width=0,r._height=0;var S=Bde(r);if(l)n.each(function(te){var ee=te[0].height;er.setTranslate(this,d+S[0],d+S[1]+r._height+ee/2+p),r._height+=ee,r._width=Math.max(r._width,te[0].width)}),_=g+r._width,r._width+=p+g+f,r._height+=h,s&&(t.each(function(te,ee){er.setTranslate(this,0,ee*r.tracegroupgap)}),r._height+=(r._lgroupsLength-1)*r.tracegroupgap);else{var T=Pg(r),C=r.x<0||r.x===0&&T==="right",A=r.x>1||r.x===1&&T==="left",O=v||b,F=a.width/2;r._maxWidth=Math.max(C?O&&T==="left"?i.l+i.w:F:A?O&&T==="right"?i.r+i.w:F:i.w,2*g);var R=0,N=0;n.each(function(te){var ee=Ig(te,r,g);R=Math.max(R,ee),N+=ee}),_=null;var B=0;if(s){var V=0,Z=0,G=0;t.each(function(){var te=0,ee=0;fa.select(this).selectAll("g.traces").each(function(U){var Y=Ig(U,r,g),J=U[0].height;er.setTranslate(this,S[0],S[1]+d+p+J/2+ee),ee+=J,te=Math.max(te,Y),k[U[0].trace.legendgroup]=te});var se=te+p;Z>0&&se+d+Z>r._maxWidth?(B=Math.max(B,Z),Z=0,G+=V+x,V=ee):V=Math.max(V,ee),er.setTranslate(this,Z,G),Z+=se}),r._width=Math.max(B,Z)+d,r._height=G+V+h}else{var I=n.size(),P=N+f+(I-1)*p<r._maxWidth,z=0,H=0,j=0,q=0;n.each(function(te){var ee=te[0].height,se=Ig(te,r,g),U=P?se:R;u||(U+=p),U+d+H-p>=r._maxWidth&&(B=Math.max(B,q),H=0,j+=z,r._height+=z,z=0),er.setTranslate(this,S[0]+d+H,S[1]+d+j+ee/2+p),q=H+se+p,H+=U,z=Math.max(z,ee)}),P?(r._width=H+f,r._height=z+h):(r._width=Math.max(B,q)+f,r._height+=z+h)}}r._width=Math.ceil(Math.max(r._width+S[0],r._titleWidth+2*(d+or.titlePad))),r._height=Math.ceil(Math.max(r._height+S[1],r._titleHeight+2*(d+or.itemGap))),r._effHeight=Math.min(r._height,r._maxHeight);var $=e._context.edits,ne=$.legendText||$.legendPosition;n.each(function(te){var ee=fa.select(this).select("."+o+"toggle"),se=te[0].height,U=te[0].trace.legendgroup,Y=Ig(te,r,g);s&&U!==""&&(Y=k[U]);var J=ne?g:_||Y;!l&&!u&&(J+=p/2),er.setRect(ee,0,-se/2,J,se)})}function Vde(e,t,n,r){var a=e._fullLayout,o=a[t],i=Pg(o),l=Rg(o),s=o.xref==="paper",u=o.yref==="paper";e._fullLayout._reservedMargin[t]={};var d=o.y<.5?"b":"t",f=o.x<.5?"l":"r",p={r:a.width-n,l:n+o._width,b:a.height-r,t:r+o._effHeight};if(s&&u)return N1.autoMargin(e,t,{x:o.x,y:o.y,l:o._width*Tu[i],r:o._width*G6[i],b:o._effHeight*G6[l],t:o._effHeight*Tu[l]});s?e._fullLayout._reservedMargin[t][d]=p[d]:u||o.orientation==="v"?e._fullLayout._reservedMargin[t][f]=p[f]:e._fullLayout._reservedMargin[t][d]=p[d]}function Pg(e){return Yn.isRightAnchor(e)?"right":Yn.isCenterAnchor(e)?"center":"left"}function Rg(e){return Yn.isBottomAnchor(e)?"bottom":Yn.isMiddleAnchor(e)?"middle":"top"}function Ng(e){return e._id||"legend"}var Zs=$t,Qi=en,$6=ko,Jn=Ge,V1=Jn.strTranslate,Hde=Jn.strRotate,Ude=Wm,Ya=Ir,qde=hde,fi=gn,pr=Kt,Bg=di,Nl=bn,Au=Dt,Oo=Ki,Ks=Tm,Wde=L6,Gde=Y6,eE=Ks.YANGLE,H1=Math.PI*eE/180,Zde=1/Math.sin(H1),Kde=Math.cos(H1),Yde=Math.sin(H1),pn=Ks.HOVERARROWSIZE,Yt=Ks.HOVERTEXTPAD,tE={box:!0,ohlc:!0,violin:!0,candlestick:!0},Jde={scatter:!0,scattergl:!0,splom:!0};Eg.hover=function(e,t,n,r){e=Jn.getGraphDiv(e);var a=t.target;Jn.throttle(e._fullLayout._uid+Ks.HOVERID,Ks.HOVERMINTIME,function(){Qde(e,t,n,r,a)})},Eg.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var r=t.gd,a=dE(r),o=fE(r),i=e.map(function(y){var b=y._x0||y.x0||y.x||0,v=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,k=y._y1||y.y1||y.y||0,_=y.eventData;if(_){var S=Math.min(b,v),T=Math.max(b,v),C=Math.min(x,k),A=Math.max(x,k),O=y.trace;if(Au.traceIs(O,"gl3d")){var F=r._fullLayout[O.scene]._scene.container,R=F.offsetLeft,N=F.offsetTop;S+=R,T+=R,C+=N,A+=N}_.bbox={x0:S+o,x1:T+o,y0:C+a,y1:A+a},t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:y.color||pr.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:_}}),l=!1,s=rE(i,{gd:r,hovermode:"closest",rotateLabels:l,bgColor:t.bgColor||pr.background,container:Zs.select(t.container),outerContainer:t.outerContainer||t.container}),u=s.hoverLabels,d=5,f=0,p=0;u.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var v=y.y0-y.by/2;v-d<f?y.offset=f-v+d:y.offset=0,f=v+y.by+y.offset,b===t.anchorIndex&&(p=y.offset)}).each(function(y){y.offset-=p});var g=r._fullLayout._invScaleX,h=r._fullLayout._invScaleY;return iE(u,l,g,h),n?u:u.node()};function Qde(e,t,n,r,a){n||(n="xy");var o=Array.isArray(n)?n:[n],i=e._fullLayout,l=i._plots||[],s=l[n],u=i._has("cartesian");if(s){var d=s.overlays.map(function(ce){return ce.id});o=o.concat(d)}for(var f=o.length,p=new Array(f),g=new Array(f),h=!1,y=0;y<f;y++){var b=o[y];if(l[b])h=!0,p[y]=l[b].xaxis,g[y]=l[b].yaxis;else if(i[b]&&i[b]._subplot){var v=i[b]._subplot;p[y]=v.xaxis,g[y]=v.yaxis}else{Jn.warn("Unrecognized subplot: "+b);return}}var x=t.hovermode||i.hovermode;if(x&&!h&&(x="closest"),["x","y","closest","x unified","y unified"].indexOf(x)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Bg.unhoverRaw(e,t);var k=i.hoverdistance;k===-1&&(k=1/0);var _=i.spikedistance;_===-1&&(_=1/0);var S=[],T=[],C,A,O,F,R,N,B,V,Z,G,I,P,z,H={hLinePoint:null,vLinePoint:null},j=!1;if(Array.isArray(t))for(x="array",O=0;O<t.length;O++)R=e.calcdata[t[O].curveNumber||0],R&&(N=R[0].trace,R[0].trace.hoverinfo!=="skip"&&(T.push(R),N.orientation==="h"&&(j=!0)));else{for(F=0;F<e.calcdata.length;F++)R=e.calcdata[F],N=R[0].trace,N.hoverinfo!=="skip"&&Oo.isTraceInSubplots(N,o)&&(T.push(R),N.orientation==="h"&&(j=!0));var q=!a,$,ne;if(q)"xpx"in t?$=t.xpx:$=p[0]._length/2,"ypx"in t?ne=t.ypx:ne=g[0]._length/2;else{if(Ude.triggerHandler(e,"plotly_beforehover",t)===!1)return;var te=a.getBoundingClientRect();$=t.clientX-te.left,ne=t.clientY-te.top,i._calcInverseTransform(e);var ee=Jn.apply3DTransform(i._invTransform)($,ne);if($=ee[0],ne=ee[1],$<0||$>p[0]._length||ne<0||ne>g[0]._length)return Bg.unhoverRaw(e,t)}if(t.pointerX=$+p[0]._offset,t.pointerY=ne+g[0]._offset,"xval"in t?C=Oo.flat(o,t.xval):C=Oo.p2c(p,$),"yval"in t?A=Oo.flat(o,t.yval):A=Oo.p2c(g,ne),!Qi(C[0])||!Qi(A[0]))return Jn.warn("Fx.hover failed",t,e),Bg.unhoverRaw(e,t)}var se=1/0;function U(ce,Oe){for(F=0;F<T.length;F++)if(R=T[F],!(!R||!R[0]||!R[0].trace)&&(N=R[0].trace,!(N.visible!==!0||N._length===0)&&["carpet","contourcarpet"].indexOf(N._module.name)===-1)){if(N.type==="splom"?(V=0,B=o[V]):(B=Oo.getSubplot(N),V=o.indexOf(B)),Z=x,Oo.isUnifiedHover(Z)&&(Z=Z.charAt(0)),P={cd:R,trace:N,xa:p[V],ya:g[V],maxHoverDistance:k,maxSpikeDistance:_,index:!1,distance:Math.min(se,k),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:pr.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},i[B]&&(P.subplot=i[B]._subplot),i._splomScenes&&i._splomScenes[N.uid]&&(P.scene=i._splomScenes[N.uid]),z=S.length,Z==="array"){var Te=t[F];"pointNumber"in Te?(P.index=Te.pointNumber,Z="closest"):(Z="","xval"in Te&&(G=Te.xval,Z="x"),"yval"in Te&&(I=Te.yval,Z=Z?"closest":"y"))}else ce!==void 0&&Oe!==void 0?(G=ce,I=Oe):(G=C[V],I=A[V]);if(k!==0)if(N._module&&N._module.hoverPoints){var We=N._module.hoverPoints(P,G,I,Z,{finiteRange:!0,hoverLayer:i._hoverlayer});if(We)for(var ie,fe=0;fe<We.length;fe++)ie=We[fe],Qi(ie.x0)&&Qi(ie.y0)&&S.push(tfe(ie,x))}else Jn.log("Unrecognized trace type in hover:",N);if(x==="closest"&&S.length>z&&(S.splice(0,z),se=S[0].distance),u&&_!==0&&S.length===0){P.distance=_,P.index=!1;var be=N._module.hoverPoints(P,G,I,"closest",{hoverLayer:i._hoverlayer});if(be&&(be=be.filter(function(_t){return _t.spikeDistance<=_})),be&&be.length){var Ne,$e=be.filter(function(_t){return _t.xa.showspikes&&_t.xa.spikesnap!=="hovered data"});if($e.length){var ot=$e[0];Qi(ot.x0)&&Qi(ot.y0)&&(Ne=J(ot),(!H.vLinePoint||H.vLinePoint.spikeDistance>Ne.spikeDistance)&&(H.vLinePoint=Ne))}var St=be.filter(function(_t){return _t.ya.showspikes&&_t.ya.spikesnap!=="hovered data"});if(St.length){var Et=St[0];Qi(Et.x0)&&Qi(Et.y0)&&(Ne=J(Et),(!H.hLinePoint||H.hLinePoint.spikeDistance>Ne.spikeDistance)&&(H.hLinePoint=Ne))}}}}}U();function Y(ce,Oe,Te){for(var We=null,ie=1/0,fe,be=0;be<ce.length;be++)fe=ce[be].spikeDistance,Te&&be===0&&(fe=-1/0),fe<=ie&&fe<=Oe&&(We=ce[be],ie=fe);return We}function J(ce){return ce?{xa:ce.xa,ya:ce.ya,x:ce.xSpike!==void 0?ce.xSpike:(ce.x0+ce.x1)/2,y:ce.ySpike!==void 0?ce.ySpike:(ce.y0+ce.y1)/2,distance:ce.distance,spikeDistance:ce.spikeDistance,curveNumber:ce.trace.index,color:ce.color,pointNumber:ce.index}:null}var re={fullLayout:i,container:i._hoverlayer,event:t},oe=e._spikepoints,he={vLinePoint:H.vLinePoint,hLinePoint:H.hLinePoint};e._spikepoints=he;var ve=function(){S.sort(function(ce,Oe){return ce.distance-Oe.distance}),S=rfe(S,x)};ve();var ge=x.charAt(0),xe=(ge==="x"||ge==="y")&&S[0]&&Jde[S[0].trace.type];if(u&&_!==0&&S.length!==0){var Le=S.filter(function(ce){return ce.ya.showspikes}),Ue=Y(Le,_,xe);H.hLinePoint=J(Ue);var Pe=S.filter(function(ce){return ce.xa.showspikes}),De=Y(Pe,_,xe);H.vLinePoint=J(De)}if(S.length===0){var je=Bg.unhoverRaw(e,t);return u&&(H.hLinePoint!==null||H.vLinePoint!==null)&&sE(oe)&&lE(e,H,re),je}if(u&&sE(oe)&&lE(e,H,re),Oo.isXYhover(Z)&&S[0].length!==0&&S[0].trace.type!=="splom"){var qe=S[0];tE[qe.trace.type]?S=S.filter(function(ce){return ce.trace.index===qe.trace.index}):S=[qe];var Ee=S.length,_e=uE("x",qe,i),we=uE("y",qe,i);U(_e,we);var Re=[],Je={},it=0,dt=function(ce){var Oe=tE[ce.trace.type]?nE(ce):ce.trace.index;if(!Je[Oe])it++,Je[Oe]=it,Re.push(ce);else{var Te=Je[Oe]-1,We=Re[Te];Te>0&&Math.abs(ce.distance)<Math.abs(We.distance)&&(Re[Te]=ce)}},at;for(at=0;at<Ee;at++)dt(S[at]);for(at=S.length-1;at>Ee-1;at--)dt(S[at]);S=Re,ve()}var lt=e._hoverdata,He=[],Be=dE(e),Ze=fE(e);for(O=0;O<S.length;O++){var Ye=S[O],et=Oo.makeEventData(Ye,Ye.trace,Ye.cd);if(Ye.hovertemplate!==!1){var st=!1;Ye.cd[Ye.index]&&Ye.cd[Ye.index].ht&&(st=Ye.cd[Ye.index].ht),Ye.hovertemplate=st||Ye.trace.hovertemplate||!1}if(Ye.xa&&Ye.ya){var nt=Ye.x0+Ye.xa._offset,gt=Ye.x1+Ye.xa._offset,Ve=Ye.y0+Ye.ya._offset,rt=Ye.y1+Ye.ya._offset,ft=Math.min(nt,gt),wt=Math.max(nt,gt),tt=Math.min(Ve,rt),pt=Math.max(Ve,rt);et.bbox={x0:ft+Ze,x1:wt+Ze,y0:tt+Be,y1:pt+Be}}Ye.eventData=[et],He.push(et)}e._hoverdata=He;var Ke=x==="y"&&(T.length>1||S.length>1)||x==="closest"&&j&&S.length>1,Ot=pr.combine(i.plot_bgcolor||pr.background,i.paper_bgcolor),X=rE(S,{gd:e,hovermode:x,rotateLabels:Ke,bgColor:Ot,container:i._hoverlayer,outerContainer:i._paper.node(),commonLabelOpts:i.hoverlabel,hoverdistance:i.hoverdistance}),ue=X.hoverLabels;if(Oo.isUnifiedHover(x)||($de(ue,Ke,i,X.commonLabelBoundingBox),iE(ue,Ke,i._invScaleX,i._invScaleY)),a&&a.tagName){var de=Au.getComponentMethod("annotations","hasClickToShow")(e,He);qde(Zs.select(a),de?"pointer":"")}!a||r||!nfe(e,t,lt)||(lt&&e.emit("plotly_unhover",{event:t,points:lt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:p,yaxes:g,xvals:C,yvals:A}))}function nE(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 Xde=/<extra>([\s\S]*)<\/extra>/;function rE(e,t){var n=t.gd,r=n._fullLayout,a=t.hovermode,o=t.rotateLabels,i=t.bgColor,l=t.container,s=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var d=t.fontFamily||Ks.HOVERFONT,f=t.fontSize||Ks.HOVERFONTSIZE,p=e[0],g=p.xa,h=p.ya,y=a.charAt(0),b=y+"Label",v=p[b];if(v===void 0&&g.type==="multicategory")for(var x=0;x<e.length&&(v=e[x][b],v===void 0);x++);var k=Mu(n,s),_=k.top,S=k.width,T=k.height,C=v!==void 0&&p.distance<=t.hoverdistance&&(a==="x"||a==="y");if(C){var A=!0,O,F;for(O=0;O<e.length;O++)if(A&&e[O].zLabel===void 0&&(A=!1),F=e[O].hoverinfo||e[O].trace.hoverinfo,F){var R=Array.isArray(F)?F:F.split("+");if(R.indexOf("all")===-1&&R.indexOf(a)===-1){C=!1;break}}A&&(C=!1)}var N=l.selectAll("g.axistext").data(C?[0]:[]);N.enter().append("g").classed("axistext",!0),N.exit().remove();var B={minX:0,maxX:0,minY:0,maxY:0};if(N.each(function(){var Ee=Zs.select(this),_e=Jn.ensureSingle(Ee,"path","",function(tt){tt.style({"stroke-width":"1px"})}),we=Jn.ensureSingle(Ee,"text","",function(tt){tt.attr("data-notex",1)}),Re=u.bgcolor||pr.defaultLine,Je=u.bordercolor||pr.contrast(Re),it=pr.contrast(Re),dt={family:u.font.family||d,size:u.font.size||f,color:u.font.color||it};_e.style({fill:Re,stroke:Je}),we.text(v).call(fi.font,dt).call(Ya.positionText,0,0).call(Ya.convertToTspans,n),Ee.attr("transform","");var at=Mu(n,we.node()),lt,He;if(a==="x"){var Be=g.side==="top"?"-":"";we.attr("text-anchor","middle").call(Ya.positionText,0,g.side==="top"?_-at.bottom-pn-Yt:_-at.top+pn+Yt),lt=g._offset+(p.x0+p.x1)/2,He=h._offset+(g.side==="top"?0:h._length);var Ze=at.width/2+Yt;lt<Ze?(lt=Ze,_e.attr("d","M-"+(Ze-pn)+",0L-"+(Ze-pn*2)+","+Be+pn+"H"+Ze+"v"+Be+(Yt*2+at.height)+"H-"+Ze+"V"+Be+pn+"Z")):lt>r.width-Ze?(lt=r.width-Ze,_e.attr("d","M"+(Ze-pn)+",0L"+Ze+","+Be+pn+"v"+Be+(Yt*2+at.height)+"H-"+Ze+"V"+Be+pn+"H"+(Ze-pn*2)+"Z")):_e.attr("d","M0,0L"+pn+","+Be+pn+"H"+Ze+"v"+Be+(Yt*2+at.height)+"H-"+Ze+"V"+Be+pn+"H-"+pn+"Z"),B.minX=lt-Ze,B.maxX=lt+Ze,g.side==="top"?(B.minY=He-(Yt*2+at.height),B.maxY=He-Yt):(B.minY=He+Yt,B.maxY=He+(Yt*2+at.height))}else{var Ye,et,st;h.side==="right"?(Ye="start",et=1,st="",lt=g._offset+g._length):(Ye="end",et=-1,st="-",lt=g._offset),He=h._offset+(p.y0+p.y1)/2,we.attr("text-anchor",Ye),_e.attr("d","M0,0L"+st+pn+","+pn+"V"+(Yt+at.height/2)+"h"+st+(Yt*2+at.width)+"V-"+(Yt+at.height/2)+"H"+st+pn+"V-"+pn+"Z"),B.minY=He-(Yt+at.height/2),B.maxY=He+(Yt+at.height/2),h.side==="right"?(B.minX=lt+pn,B.maxX=lt+pn+(Yt*2+at.width)):(B.minX=lt-pn-(Yt*2+at.width),B.maxX=lt-pn);var nt=at.height/2,gt=_-at.top-nt,Ve="clip"+r._uid+"commonlabel"+h._id,rt;if(lt<at.width+2*Yt+pn){rt="M-"+(pn+Yt)+"-"+nt+"h-"+(at.width-Yt)+"V"+nt+"h"+(at.width-Yt)+"Z";var ft=at.width-lt+Yt;Ya.positionText(we,ft,gt),Ye==="end"&&we.selectAll("tspan").each(function(){var tt=Zs.select(this),pt=fi.tester.append("text").text(tt.text()).call(fi.font,dt),Ke=Mu(n,pt.node());Math.round(Ke.width)<Math.round(at.width)&&tt.attr("x",ft-Ke.width),pt.remove()})}else Ya.positionText(we,et*(Yt+pn),gt),rt=null;var wt=r._topclips.selectAll("#"+Ve).data(rt?[0]:[]);wt.enter().append("clipPath").attr("id",Ve).append("path"),wt.exit().remove(),wt.select("path").attr("d",rt),fi.setClipUrl(we,rt?Ve:null,n)}Ee.attr("transform",V1(lt,He))}),Oo.isUnifiedHover(a)){l.selectAll("g.hovertext").remove();var V=e.filter(function(Ee){return Ee.hoverinfo!=="none"});if(V.length===0)return[];var Z=r.hoverlabel,G=Z.font,I={showlegend:!0,legend:{title:{text:v,font:G},font:G,bgcolor:Z.bgcolor,bordercolor:Z.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:r.legend?r.legend.traceorder:void 0,orientation:"v"}},P={font:G};Wde(I,P,n._fullData);var z=P.legend;z.entries=[];for(var H=0;H<V.length;H++){var j=V[H];if(j.hoverinfo!=="none"){var q=aE(j,!0,a,r,v),$=q[0],ne=q[1];j.name=ne,ne!==""?j.text=ne+" : "+$:j.text=$;var te=j.cd[j.index];te&&(te.mc&&(j.mc=te.mc),te.mcc&&(j.mc=te.mcc),te.mlc&&(j.mlc=te.mlc),te.mlcc&&(j.mlc=te.mlcc),te.mlw&&(j.mlw=te.mlw),te.mrc&&(j.mrc=te.mrc),te.dir&&(j.dir=te.dir)),j._distinct=!0,z.entries.push([j])}}z.entries.sort(function(Ee,_e){return Ee[0].trace.index-_e[0].trace.index}),z.layer=l,z._inHover=!0,z._groupTitleFont=Z.grouptitlefont,Gde(n,z);var ee=l.select("g.legend"),se=Mu(n,ee.node()),U=se.width+2*Yt,Y=se.height+2*Yt,J=V[0],re=(J.x0+J.x1)/2,oe=(J.y0+J.y1)/2,he=!(Au.traceIs(J.trace,"bar-like")||Au.traceIs(J.trace,"box-violin")),ve,ge;y==="y"?he?(ge=oe-Yt,ve=oe+Yt):(ge=Math.min.apply(null,V.map(function(Ee){return Math.min(Ee.y0,Ee.y1)})),ve=Math.max.apply(null,V.map(function(Ee){return Math.max(Ee.y0,Ee.y1)}))):ge=ve=Jn.mean(V.map(function(Ee){return(Ee.y0+Ee.y1)/2}))-Y/2;var xe,Le;y==="x"?he?(xe=re+Yt,Le=re-Yt):(xe=Math.max.apply(null,V.map(function(Ee){return Math.max(Ee.x0,Ee.x1)})),Le=Math.min.apply(null,V.map(function(Ee){return Math.min(Ee.x0,Ee.x1)}))):xe=Le=Jn.mean(V.map(function(Ee){return(Ee.x0+Ee.x1)/2}))-U/2;var Ue=g._offset,Pe=h._offset;ve+=Pe,xe+=Ue,Le+=Ue-U,ge+=Pe-Y;var De,je;return xe+U<S&&xe>=0?De=xe:Le+U<S&&Le>=0?De=Le:Ue+U<S?De=Ue:xe-re<re-Le+U?De=S-U:De=0,De+=Yt,ve+Y<T&&ve>=0?je=ve:ge+Y<T&&ge>=0?je=ge:Pe+Y<T?je=Pe:ve-oe<oe-ge+Y?je=T-Y:je=0,je+=Yt,ee.attr("transform",V1(De-1,je-1)),ee}var qe=l.selectAll("g.hovertext").data(e,function(Ee){return nE(Ee)});return qe.enter().append("g").classed("hovertext",!0).each(function(){var Ee=Zs.select(this);Ee.append("rect").call(pr.fill,pr.addOpacity(i,.8)),Ee.append("text").classed("name",!0),Ee.append("path").style("stroke-width","1px"),Ee.append("text").classed("nums",!0).call(fi.font,d,f)}),qe.exit().remove(),qe.each(function(Ee){var _e=Zs.select(this).attr("transform",""),we=Ee.color;Array.isArray(we)&&(we=we[Ee.eventData[0].pointNumber]);var Re=Ee.bgcolor||we,Je=pr.combine(pr.opacity(Re)?Re:pr.defaultLine,i),it=pr.combine(pr.opacity(we)?we:pr.defaultLine,i),dt=Ee.borderColor||pr.contrast(Je),at=aE(Ee,C,a,r,v,_e),lt=at[0],He=at[1],Be=_e.select("text.nums").call(fi.font,Ee.fontFamily||d,Ee.fontSize||f,Ee.fontColor||dt).text(lt).attr("data-notex",1).call(Ya.positionText,0,0).call(Ya.convertToTspans,n),Ze=_e.select("text.name"),Ye=0,et=0;if(He&&He!==lt){Ze.call(fi.font,Ee.fontFamily||d,Ee.fontSize||f,it).text(He).attr("data-notex",1).call(Ya.positionText,0,0).call(Ya.convertToTspans,n);var st=Mu(n,Ze.node());Ye=st.width+2*Yt,et=st.height+2*Yt}else Ze.remove(),_e.select("rect").remove();_e.select("path").style({fill:Je,stroke:dt});var nt=Ee.xa._offset+(Ee.x0+Ee.x1)/2,gt=Ee.ya._offset+(Ee.y0+Ee.y1)/2,Ve=Math.abs(Ee.x1-Ee.x0),rt=Math.abs(Ee.y1-Ee.y0),ft=Mu(n,Be.node()),wt=ft.width/r._invScaleX,tt=ft.height/r._invScaleY;Ee.ty0=(_-ft.top)/r._invScaleY,Ee.bx=wt+2*Yt,Ee.by=Math.max(tt+2*Yt,et),Ee.anchor="start",Ee.txwidth=wt,Ee.tx2width=Ye,Ee.offset=0;var pt=(wt+pn+Yt+Ye)*r._invScaleX,Ke,Ot;if(o)Ee.pos=nt,Ke=gt+rt/2+pt<=T,Ot=gt-rt/2-pt>=0,(Ee.idealAlign==="top"||!Ke)&&Ot?(gt-=rt/2,Ee.anchor="end"):Ke?(gt+=rt/2,Ee.anchor="start"):Ee.anchor="middle",Ee.crossPos=gt;else{if(Ee.pos=gt,Ke=nt+Ve/2+pt<=S,Ot=nt-Ve/2-pt>=0,(Ee.idealAlign==="left"||!Ke)&&Ot)nt-=Ve/2,Ee.anchor="end";else if(Ke)nt+=Ve/2,Ee.anchor="start";else{Ee.anchor="middle";var X=pt/2,ue=nt+X-S,de=nt-X;ue>0&&(nt-=ue),de<0&&(nt+=-de)}Ee.crossPos=nt}Be.attr("text-anchor",Ee.anchor),Ye&&Ze.attr("text-anchor",Ee.anchor),_e.attr("transform",V1(nt,gt)+(o?Hde(eE):""))}),{hoverLabels:qe,commonLabelBoundingBox:B}}function aE(e,t,n,r,a,o){var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Jn.templateString(e.name,e.trace._meta)),i=cE(e.name,e.nameLength));var s=n.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&(l+=(l?"z: ":"")+e.zLabel)):t&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i);var d=e.hovertemplate||!1;if(d){var f=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(f[s+"other"]=f[s+"Val"],f[s+"otherLabel"]=f[s+"Label"]),l=Jn.hovertemplateString(d,f,r._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(Xde,function(p,g){return i=cE(g,e.nameLength),""})}return[l,i]}function $de(e,t,n,r){var a=t?"xa":"ya",o=t?"ya":"xa",i=0,l=1,s=e.size(),u=new Array(s),d=0,f=r.minX,p=r.maxX,g=r.minY,h=r.maxY,y=function(G){return G*n._invScaleX},b=function(G){return G*n._invScaleY};e.each(function(G){var I=G[a],P=G[o],z=I._id.charAt(0)==="x",H=I.range;d===0&&H&&H[0]>H[1]!==z&&(l=-1);var j=0,q=z?n.width:n.height;if(n.hovermode==="x"||n.hovermode==="y"){var $=oE(G,t),ne=G.anchor,te=ne==="end"?-1:1,ee,se;if(ne==="middle")ee=G.crossPos+(z?b($.y-G.by/2):y(G.bx/2+G.tx2width/2)),se=ee+(z?b(G.by):y(G.bx));else if(z)ee=G.crossPos+b(pn+$.y)-b(G.by/2-pn),se=ee+b(G.by);else{var U=y(te*pn+$.x),Y=U+y(te*G.bx);ee=G.crossPos+Math.min(U,Y),se=G.crossPos+Math.max(U,Y)}z?g!==void 0&&h!==void 0&&Math.min(se,h)-Math.max(ee,g)>1&&(P.side==="left"?(j=P._mainLinePosition,q=n.width):q=P._mainLinePosition):f!==void 0&&p!==void 0&&Math.min(se,p)-Math.max(ee,f)>1&&(P.side==="top"?(j=P._mainLinePosition,q=n.height):q=P._mainLinePosition)}u[d++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(z?Zde:1)/2,pmin:j,pmax:q}]}),u.sort(function(G,I){return G[0].posref-I[0].posref||l*(I[0].traceIndex-G[0].traceIndex)});var v,x,k,_,S,T,C;function A(G){var I=G[0],P=G[G.length-1];if(x=I.pmin-I.pos-I.dp+I.size,k=P.pos+P.dp+P.size-I.pmax,x>.01){for(S=G.length-1;S>=0;S--)G[S].dp+=x;v=!1}if(!(k<.01)){if(x<-.01){for(S=G.length-1;S>=0;S--)G[S].dp-=k;v=!1}if(v){var z=0;for(_=0;_<G.length;_++)T=G[_],T.pos+T.dp+T.size>I.pmax&&z++;for(_=G.length-1;_>=0&&!(z<=0);_--)T=G[_],T.pos>I.pmax-1&&(T.del=!0,z--);for(_=0;_<G.length&&!(z<=0);_++)if(T=G[_],T.pos<I.pmin+1)for(T.del=!0,z--,k=T.size*2,S=G.length-1;S>=0;S--)G[S].dp-=k;for(_=G.length-1;_>=0&&!(z<=0);_--)T=G[_],T.pos+T.dp+T.size>I.pmax&&(T.del=!0,z--)}}}for(;!v&&i<=s;){for(i++,v=!0,_=0;_<u.length-1;){var O=u[_],F=u[_+1],R=O[O.length-1],N=F[0];if(x=R.pos+R.dp+R.size-N.pos-N.dp+N.size,x>.01&&R.pmin===N.pmin&&R.pmax===N.pmax){for(S=F.length-1;S>=0;S--)F[S].dp+=x;for(O.push.apply(O,F),u.splice(_+1,1),C=0,S=O.length-1;S>=0;S--)C+=O[S].dp;for(k=C/O.length,S=O.length-1;S>=0;S--)O[S].dp-=k;v=!1}else _++}u.forEach(A)}for(_=u.length-1;_>=0;_--){var B=u[_];for(S=B.length-1;S>=0;S--){var V=B[S],Z=V.datum;Z.offset=V.dp,Z.del=V.del}}}function oE(e,t){var n=0,r=e.offset;return t&&(r*=-Yde,n=e.offset*Kde),{x:n,y:r}}function efe(e){var t={start:1,end:-1,middle:0}[e.anchor],n=t*(pn+Yt),r=n+t*(e.txwidth+Yt),a=e.anchor==="middle";return a&&(n-=e.tx2width/2,r+=e.txwidth/2+Yt),{alignShift:t,textShiftX:n,text2ShiftX:r}}function iE(e,t,n,r){var a=function(i){return i*n},o=function(i){return i*r};e.each(function(i){var l=Zs.select(this);if(i.del)return l.remove();var s=l.select("text.nums"),u=i.anchor,d=u==="end"?-1:1,f=efe(i),p=oE(i,t),g=p.x,h=p.y,y=u==="middle";l.select("path").attr("d",y?"M-"+a(i.bx/2+i.tx2width/2)+","+o(h-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":"M0,0L"+a(d*pn+g)+","+o(pn+h)+"v"+o(i.by/2-pn)+"h"+a(d*i.bx)+"v-"+o(i.by)+"H"+a(d*pn+g)+"V"+o(h-pn)+"Z");var b=g+f.textShiftX,v=h+i.ty0-i.by/2+Yt,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),b=y?-i.bx/2-i.tx2width/2+Yt:-i.bx-Yt):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),b=y?i.bx/2-i.tx2width/2-Yt:i.bx+Yt)),s.call(Ya.positionText,a(b),o(v)),i.tx2width&&(l.select("text.name").call(Ya.positionText,a(f.text2ShiftX+f.alignShift*Yt+g),o(h+i.ty0-i.by/2+Yt)),l.select("rect").call(fi.setRect,a(f.text2ShiftX+(f.alignShift-1)*i.tx2width/2+g),o(h-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function tfe(e,t){var n=e.index,r=e.trace||{},a=e.cd[0],o=e.cd[n]||{};function i(p){return p||Qi(p)&&p===0}var l=Array.isArray(n)?function(p,g){var h=Jn.castOption(a,n,p);return i(h)?h:Jn.extractOption({},r,"",g)}:function(p,g){return Jn.extractOption(o,r,p,g)};function s(p,g,h){var y=l(g,h);i(y)&&(e[p]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&r.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Jn.constrain(e.x0,0,e.xa._length),e.x1=Jn.constrain(e.x1,0,e.xa._length),e.y0=Jn.constrain(e.y0,0,e.ya._length),e.y1=Jn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Nl.hoverLabelText(e.xa,e.xLabelVal,r.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Nl.hoverLabelText(e.ya,e.yLabelVal,r.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=Nl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Nl.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var d=Nl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+d+" / -"+Nl.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function lE(e,t,n){var r=n.container,a=n.fullLayout,o=a._size,i=n.event,l=!!t.hLinePoint,s=!!t.vLinePoint,u,d;if(r.selectAll(".spikeline").remove(),!!(s||l)){var f=pr.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=t.hLinePoint,g,h;u=p&&p.xa,d=p&&p.ya;var y=d.spikesnap;y==="cursor"?(g=i.pointerX,h=i.pointerY):(g=u._offset+p.x,h=d._offset+p.y);var b=$6.readability(p.color,f)<1.5?pr.contrast(f):p.color,v=d.spikemode,x=d.spikethickness,k=d.spikecolor||b,_=Nl.getPxPosition(e,d),S,T;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(S=_,T=g),v.indexOf("across")!==-1){var C=d._counterDomainMin,A=d._counterDomainMax;d.anchor==="free"&&(C=Math.min(C,d.position),A=Math.max(A,d.position)),S=o.l+C*o.w,T=o.l+A*o.w}r.insert("line",":first-child").attr({x1:S,x2:T,y1:h,y2:h,"stroke-width":x,stroke:k,"stroke-dasharray":fi.dashStyle(d.spikedash,x)}).classed("spikeline",!0).classed("crisp",!0),r.insert("line",":first-child").attr({x1:S,x2:T,y1:h,y2:h,"stroke-width":x+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&r.insert("circle",":first-child").attr({cx:_+(d.side!=="right"?x:-x),cy:h,r:x,fill:k}).classed("spikeline",!0)}if(s){var O=t.vLinePoint,F,R;u=O&&O.xa,d=O&&O.ya;var N=u.spikesnap;N==="cursor"?(F=i.pointerX,R=i.pointerY):(F=u._offset+O.x,R=d._offset+O.y);var B=$6.readability(O.color,f)<1.5?pr.contrast(f):O.color,V=u.spikemode,Z=u.spikethickness,G=u.spikecolor||B,I=Nl.getPxPosition(e,u),P,z;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(P=I,z=R),V.indexOf("across")!==-1){var H=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(H=Math.min(H,u.position),j=Math.max(j,u.position)),P=o.t+(1-j)*o.h,z=o.t+(1-H)*o.h}r.insert("line",":first-child").attr({x1:F,x2:F,y1:P,y2:z,"stroke-width":Z,stroke:G,"stroke-dasharray":fi.dashStyle(u.spikedash,Z)}).classed("spikeline",!0).classed("crisp",!0),r.insert("line",":first-child").attr({x1:F,x2:F,y1:P,y2:z,"stroke-width":Z+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&r.insert("circle",":first-child").attr({cx:F,cy:I-(u.side!=="top"?Z:-Z),r:Z,fill:G}).classed("spikeline",!0)}}}function nfe(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],o=e._hoverdata[r];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers))return!0}return!1}function sE(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function cE(e,t){return Ya.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function rfe(e,t){for(var n=t.charAt(0),r=[],a=[],o=[],i=0;i<e.length;i++){var l=e[i];Au.traceIs(l.trace,"bar-like")||Au.traceIs(l.trace,"box-violin")?o.push(l):l.trace[n+"period"]?a.push(l):r.push(l)}return r.concat(a).concat(o)}function uE(e,t,n){var r=t[e+"a"],a=t[e+"Val"],o=t.cd[0];if(r.type==="category"||r.type==="multicategory")a=r._categoriesMap[a];else if(r.type==="date"){var i=t.trace[e+"periodalignment"];if(i){var l=t.cd[t.index],s=l[e+"Start"];s===void 0&&(s=l[e]);var u=l[e+"End"];u===void 0&&(u=l[e]);var d=u-s;i==="end"?a+=d:i==="middle"&&(a+=d/2)}a=r.d2c(a)}return o&&o.t&&o.t.posLetter===r._id&&(n.boxmode==="group"||n.violinmode==="group")&&(a+=o.t.dPos),a}function dE(e){return e.offsetTop+e.clientTop}function fE(e){return e.offsetLeft+e.clientLeft}function Mu(e,t){var n=e._fullLayout,r=t.getBoundingClientRect(),a=r.left,o=r.top,i=a+r.width,l=o+r.height,s=Jn.apply3DTransform(n._invTransform)(a,o),u=Jn.apply3DTransform(n._invTransform)(i,l),d=s[0],f=s[1],p=u[0],g=u[1];return{x:d,y:f,width:p-d,height:g-f,top:Math.min(f,g),left:Math.min(d,p),right:Math.max(d,p),bottom:Math.max(f,g)}}var afe=Ge,ofe=Kt,ife=Ki.isUnifiedHover,U1=function(e,t,n,r){r=r||{};var a=t.legend;function o(i){r.font[i]||(r.font[i]=a?t.legend.font[i]:t.font[i])}t&&ife(t.hovermode)&&(r.font||(r.font={}),o("size"),o("family"),o("color"),a?(r.bgcolor||(r.bgcolor=ofe.combine(t.legend.bgcolor,t.paper_bgcolor)),r.bordercolor||(r.bordercolor=t.legend.bordercolor)):r.bgcolor||(r.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",r.bgcolor),n("hoverlabel.bordercolor",r.bordercolor),n("hoverlabel.namelength",r.namelength),afe.coerceFont(n,"hoverlabel.font",r.font),n("hoverlabel.align",r.align)},lfe=Ge,sfe=U1,cfe=gf,ufe=function(e,t){function n(r,a){return lfe.coerce(e,t,cfe,r,a)}sfe(e,t,n)},pE=Ge,dfe=Zb,ffe=U1,pfe=function(e,t,n,r){function a(i,l){return pE.coerce(e,t,dfe,i,l)}var o=pE.extendFlat({},r.hoverlabel);t.hovertemplate&&(o.namelength=-1),ffe(e,t,a,o)},hfe=Ge,mfe=gf,hE=function(e,t){function n(r,a){return t[r]!==void 0?t[r]:hfe.coerce(e,t,mfe,r,a)}return n("clickmode"),n("hovermode")},mE=Ge,gfe=gf,yfe=hE,vfe=U1,bfe=function(e,t){function n(s,u){return mE.coerce(e,t,gfe,s,u)}var r=yfe(e,t);r&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=t._has("mapbox"),i=t._has("geo"),l=t._basePlotModules.length;t.dragmode==="zoom"&&((o||i)&&l===1||o&&i&&l===2)&&(t.dragmode="pan"),vfe(e,t,n),mE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)},q1=Ge,gE=Dt,xfe=function(e){var t=e.calcdata,n=e._fullLayout;function r(s){return function(u){return q1.coerceHoverinfo({hoverinfo:u},{_module:s._module},n)}}for(var a=0;a<t.length;a++){var o=t[a],i=o[0].trace;if(!gE.traceIs(i,"pie-like")){var l=gE.traceIs(i,"2dMap")?wfe:q1.fillArray;l(i.hoverinfo,o,"hi",r(i)),i.hovertemplate&&l(i.hovertemplate,o,"ht"),i.hoverlabel&&(l(i.hoverlabel.bgcolor,o,"hbg"),l(i.hoverlabel.bordercolor,o,"hbc"),l(i.hoverlabel.font.size,o,"hts"),l(i.hoverlabel.font.color,o,"htc"),l(i.hoverlabel.font.family,o,"htf"),l(i.hoverlabel.namelength,o,"hnl"),l(i.hoverlabel.align,o,"hta"))}}};function wfe(e,t,n,r){r=r||q1.identity,Array.isArray(e)&&(t[0][n]=r(e))}var _fe=Dt,kfe=Eg.hover,Tfe=function(e,t,n){var r=_fe.getComponentMethod("annotations","onClick")(e,e._hoverdata);n!==void 0&&kfe(e,t,n,!0);function a(){e.emit("plotly_click",{points:e._hoverdata,event:t})}e._hoverdata&&t&&t.target&&(r&&r.then?r.then(a):a(),t.stopImmediatePropagation&&t.stopImmediatePropagation())},Sfe=$t,jg=Ge,Afe=di,Vf=Ki,yE=gf,vE=Eg,Xi={moduleType:"component",name:"fx",constants:Tm,schema:{layout:yE},attributes:Zb,layoutAttributes:yE,supplyLayoutGlobalDefaults:ufe,supplyDefaults:pfe,supplyLayoutDefaults:bfe,calc:xfe,getDistanceFunction:Vf.getDistanceFunction,getClosest:Vf.getClosest,inbox:Vf.inbox,quadrature:Vf.quadrature,appendArrayPointValue:Vf.appendArrayPointValue,castHoverOption:Cfe,castHoverinfo:Ofe,hover:vE.hover,unhover:Afe.unhover,loneHover:vE.loneHover,loneUnhover:Mfe,click:Tfe};function Mfe(e){var t=jg.isD3Selection(e)?e:Sfe.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Cfe(e,t,n){return jg.castOption(e,t,"hoverlabel."+n)}function Ofe(e,t,n){function r(a){return jg.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return jg.castOption(e,n,"hoverinfo",r)}var Cu={};(function(e){e.selectMode=function(t){return t==="lasso"||t==="select"},e.drawMode=function(t){return t==="drawclosedpath"||t==="drawopenpath"||t==="drawline"||t==="drawrect"||t==="drawcircle"},e.openMode=function(t){return t==="drawline"||t==="drawopenpath"},e.rectMode=function(t){return t==="select"||t==="drawline"||t==="drawrect"||t==="drawcircle"},e.freeMode=function(t){return t==="lasso"||t==="drawclosedpath"||t==="drawopenpath"},e.selectingOrDrawing=function(t){return e.freeMode(t)||e.rectMode(t)}})(Cu);var W1=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})},Vg={},bE={exports:{}},G1={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)"},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)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}},Bl={},Hg=32,Z1={CIRCLE_SIDES:Hg,i000:0,i090:Hg/4,i180:Hg/2,i270:Hg/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)},Efe=Ge.strTranslate;function xE(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function Lfe(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function zfe(e){var t=e._id.charAt(0)==="y"?1:0;return function(n){return xE(e,n[t])}}function Ffe(e){return Efe(e.xaxis._offset,e.yaxis._offset)}var K1={p2r:xE,r2p:Lfe,axValue:zfe,getTransform:Ffe};(function(e){var t=p8,n=Z1,r=n.CIRCLE_SIDES,a=n.SQRT2,o=K1,i=o.p2r,l=o.r2p,s=[0,3,4,5,6,1,2],u=[0,3,4,1,2];e.writePaths=function(p){var g=p.length;if(!g)return"M0,0Z";for(var h="",y=0;y<g;y++)for(var b=p[y].length,v=0;v<b;v++){var x=p[y][v][0];if(x==="Z")h+="Z";else for(var k=p[y][v].length,_=0;_<k;_++){var S=_;x==="Q"||x==="S"?S=u[_]:x==="C"&&(S=s[_]),h+=p[y][v][S],_>0&&_<k-1&&(h+=",")}}return h},e.readPaths=function(p,g,h,y){var b=t(p),v=[],x=-1,k=function(){x++,v[x]=[]},_,S=0,T=0,C,A,O=function(){C=S,A=T};O();for(var F=0;F<b.length;F++){var R=[],N,B,V,Z,G=b[F][0],I=G;switch(G){case"M":k(),S=+b[F][1],T=+b[F][2],R.push([I,S,T]),O();break;case"Q":case"S":N=+b[F][1],V=+b[F][2],S=+b[F][3],T=+b[F][4],R.push([I,S,T,N,V]);break;case"C":N=+b[F][1],V=+b[F][2],B=+b[F][3],Z=+b[F][4],S=+b[F][5],T=+b[F][6],R.push([I,S,T,N,V,B,Z]);break;case"T":case"L":S=+b[F][1],T=+b[F][2],R.push([I,S,T]);break;case"H":I="L",S=+b[F][1],R.push([I,S,T]);break;case"V":I="L",T=+b[F][1],R.push([I,S,T]);break;case"A":I="L";var P=+b[F][1],z=+b[F][2];+b[F][4]||(P=-P,z=-z);var H=S-P,j=T;for(_=1;_<=r/2;_++){var q=2*Math.PI*_/r;R.push([I,H+P*Math.cos(q),j+z*Math.sin(q)])}break;case"Z":(S!==C||T!==A)&&(S=C,T=A,R.push([I,S,T]));break}for(var $=(h||{}).domain,ne=g._fullLayout._size,te=h&&h.xsizemode==="pixel",ee=h&&h.ysizemode==="pixel",se=y===!1,U=0;U<R.length;U++){for(_=0;_+2<7;_+=2){var Y=R[U][_+1],J=R[U][_+2];Y===void 0||J===void 0||(S=Y,T=J,h&&(h.xaxis&&h.xaxis.p2r?(se&&(Y-=h.xaxis._offset),te?Y=l(h.xaxis,h.xanchor)+Y:Y=i(h.xaxis,Y)):(se&&(Y-=ne.l),$?Y=$.x[0]+Y/ne.w:Y=Y/ne.w),h.yaxis&&h.yaxis.p2r?(se&&(J-=h.yaxis._offset),ee?J=l(h.yaxis,h.yanchor)-J:J=i(h.yaxis,J)):(se&&(J-=ne.t),$?J=$.y[1]-J/ne.h:J=1-J/ne.h)),R[U][_+1]=Y,R[U][_+2]=J)}v[x].push(R[U].slice())}}return v};function d(p,g){return Math.abs(p-g)<=1e-6}function f(p,g){var h=g[1]-p[1],y=g[2]-p[2];return Math.sqrt(h*h+y*y)}e.pointsOnRectangle=function(p){var g=p.length;if(g!==5)return!1;for(var h=1;h<3;h++){var y=p[0][h]-p[1][h],b=p[3][h]-p[2][h];if(!d(y,b))return!1;var v=p[0][h]-p[3][h],x=p[1][h]-p[2][h];if(!d(v,x))return!1}return!d(p[0][1],p[1][1])&&!d(p[0][1],p[3][1])?!1:!!(f(p[0],p[1])*f(p[0],p[3]))},e.pointsOnEllipse=function(p){var g=p.length;if(g!==r+1)return!1;g=r;for(var h=0;h<g;h++){var y=(g*2-h)%g,b=(g/2+y)%g,v=(g/2+h)%g;if(!d(f(p[h],p[v]),f(p[y],p[b])))return!1}return!0},e.handleEllipse=function(p,g,h){if(!p)return[g,h];var y=e.ellipseOver({x0:g[0],y0:g[1],x1:h[0],y1:h[1]}),b=(y.x1+y.x0)/2,v=(y.y1+y.y0)/2,x=(y.x1-y.x0)/2,k=(y.y1-y.y0)/2;x||(x=k=k/a),k||(k=x=x/a);for(var _=[],S=0;S<r;S++){var T=S*2*Math.PI/r;_.push([b+x*Math.cos(T),v+k*Math.sin(T)])}return _},e.ellipseOver=function(p){var g=p.x0,h=p.y0,y=p.x1,b=p.y1,v=y-g,x=b-h;g-=v,h-=x;var k=(g+y)/2,_=(h+b)/2,S=a;return v*=S,x*=S,{x0:k-v,y0:_-x,x1:k+v,y1:_+x}},e.fixDatesForPaths=function(p,g,h){var y=g.type==="date",b=h.type==="date";if(!y&&!b)return p;for(var v=0;v<p.length;v++)for(var x=0;x<p[v].length;x++)for(var k=0;k+2<p[v][x].length;k+=2)y&&(p[v][x][k+1]=p[v][x][k+1].replace(" ","_")),b&&(p[v][x][k+2]=p[v][x][k+2].replace(" ","_"));return p}})(Bl);var wE=Cu,Ife=wE.drawMode,Dfe=wE.openMode,Ou=Z1,_E=Ou.i000,kE=Ou.i090,TE=Ou.i180,SE=Ou.i270,Pfe=Ou.cos45,Rfe=Ou.sin45,AE=K1,Ug=AE.p2r,jl=AE.r2p,Nfe=Ds,Bfe=Nfe.clearOutline,qg=Bl,jfe=qg.readPaths,Vfe=qg.writePaths,Hfe=qg.ellipseOver,Ufe=qg.fixDatesForPaths;function qfe(e,t){if(e.length){var n=e[0][0];if(n){var r=t.gd,a=t.isActiveShape,o=t.dragmode,i=(r.layout||{}).shapes||[];if(!Ife(o)&&a!==void 0){var l=r._fullLayout._activeShapeIndex;if(l<i.length)switch(r._fullLayout.shapes[l].type){case"rect":o="drawrect";break;case"circle":o="drawcircle";break;case"line":o="drawline";break;case"path":var s=i[l].path||"";s[s.length-1]==="Z"?o="drawclosedpath":o="drawopenpath";break}}var u=ME(e,t,o);Bfe(r);for(var d=t.editHelpers,f=(d||{}).modifyItem,p=[],g=0;g<i.length;g++){var h=r._fullLayout.shapes[g];if(p[g]=h._input,a!==void 0&&g===r._fullLayout._activeShapeIndex){var y=u;switch(h.type){case"line":case"rect":case"circle":f("x0",y.x0),f("x1",y.x1),f("y0",y.y0),f("y1",y.y1);break;case"path":f("path",y.path);break}}}return a===void 0?(p.push(u),p):d?d.getUpdateObj():{}}}}function ME(e,t,n){var r=e[0][0],a=t.gd,o=r.getAttribute("d"),i=a._fullLayout.newshape,l=t.plotinfo,s=t.isActiveShape,u=l.xaxis,d=l.yaxis,f=!!l.domain||!l.xaxis,p=!!l.domain||!l.yaxis,g=Dfe(n),h=jfe(o,a,l,s),y={editable:!0,visible:i.visible,name:i.name,showlegend:i.showlegend,legend:i.legend,legendwidth:i.legendwidth,legendgroup:i.legendgroup,legendgrouptitle:{text:i.legendgrouptitle.text,font:i.legendgrouptitle.font},legendrank:i.legendrank,label:i.label,xref:f?"paper":u._id,yref:p?"paper":d._id,layer:i.layer,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}};g||(y.fillcolor=i.fillcolor,y.fillrule=i.fillrule);var b;if(h.length===1&&(b=h[0]),b&&b.length===5&&n==="drawrect")y.type="rect",y.x0=b[0][1],y.y0=b[0][2],y.x1=b[2][1],y.y1=b[2][2];else if(b&&n==="drawline")y.type="line",y.x0=b[0][1],y.y0=b[0][2],y.x1=b[1][1],y.y1=b[1][2];else if(b&&n==="drawcircle"){y.type="circle";var v=b[_E][1],x=b[kE][1],k=b[TE][1],_=b[SE][1],S=b[_E][2],T=b[kE][2],C=b[TE][2],A=b[SE][2],O=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),F=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");O&&(v=jl(l.xaxis,v),x=jl(l.xaxis,x),k=jl(l.xaxis,k),_=jl(l.xaxis,_)),F&&(S=jl(l.yaxis,S),T=jl(l.yaxis,T),C=jl(l.yaxis,C),A=jl(l.yaxis,A));var R=(x+_)/2,N=(S+C)/2,B=(_-x+k-v)/2,V=(A-T+C-S)/2,Z=Hfe({x0:R,y0:N,x1:R+B*Pfe,y1:N+V*Rfe});O&&(Z.x0=Ug(l.xaxis,Z.x0),Z.x1=Ug(l.xaxis,Z.x1)),F&&(Z.y0=Ug(l.yaxis,Z.y0),Z.y1=Ug(l.yaxis,Z.y1)),y.x0=Z.x0,y.y0=Z.y0,y.x1=Z.x1,y.y1=Z.y1}else y.type="path",u&&d&&Ufe(h,u,d),y.path=Vfe(h),b=null;return y}var Y1={newShapes:qfe,createShapeObj:ME},Wfe=Cu,Gfe=Wfe.selectMode,Zfe=Ds,Kfe=Zfe.clearOutline,J1=Bl,Yfe=J1.readPaths,Jfe=J1.writePaths,Qfe=J1.fixDatesForPaths,CE=function(e,t){if(e.length){var n=e[0][0];if(n){var r=n.getAttribute("d"),a=t.gd,o=a._fullLayout.newselection,i=t.plotinfo,l=i.xaxis,s=i.yaxis,u=t.isActiveSelection,d=t.dragmode,f=(a.layout||{}).selections||[];if(!Gfe(d)&&u!==void 0){var p=a._fullLayout._activeSelectionIndex;if(p<f.length)switch(a._fullLayout.selections[p].type){case"rect":d="select";break;case"path":d="lasso";break}}var g=Yfe(r,a,i,u),h={xref:l._id,yref:s._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;g.length===1&&(y=g[0]),y&&y.length===5&&d==="select"?(h.type="rect",h.x0=y[0][1],h.y0=y[0][2],h.x1=y[2][1],h.y1=y[2][2]):(h.type="path",l&&s&&Qfe(g,l,s),h.path=Jfe(g),y=null),Kfe(a);for(var b=t.editHelpers,v=(b||{}).modifyItem,x=[],k=0;k<f.length;k++){var _=a._fullLayout.selections[k];if(!_){x[k]=_;continue}if(x[k]=_._input,u!==void 0&&k===a._fullLayout._activeSelectionIndex){var S=h;switch(_.type){case"rect":v("x0",S.x0),v("x1",S.x1),v("y0",S.y0),v("y1",S.y1);break;case"path":v("path",S.path);break}}}return u===void 0?(x.push(h),x):b?b.getUpdateObj():{}}}},Vl={},Wg={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{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:{}},paramIsY:{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:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}};(function(e){var t=Wg,n=Ge,r=bn;e.rangeToShapePosition=function(o){return o.type==="log"?o.r2d:function(i){return i}},e.shapePositionToRange=function(o){return o.type==="log"?o.d2r:function(i){return i}},e.decodeDate=function(o){return function(i){return i.replace&&(i=i.replace("_"," ")),o(i)}},e.encodeDate=function(o){return function(i){return o(i).replace(" ","_")}},e.extractPathCoords=function(o,i,l){var s=[],u=o.match(t.segmentRE);return u.forEach(function(d){var f=i[d.charAt(0)].drawn;if(f!==void 0){var p=d.substr(1).match(t.paramRE);if(!(!p||p.length<f)){var g=p[f],h=l?g:n.cleanNumber(g);s.push(h)}}}),s},e.getDataToPixel=function(o,i,l,s){var u=o._fullLayout._size,d;if(i)if(s==="domain")d=function(p){return i._length*(l?1-p:p)+i._offset};else{var f=e.shapePositionToRange(i);d=function(p){return i._offset+i.r2p(f(p,!0))},i.type==="date"&&(d=e.decodeDate(d))}else l?d=function(p){return u.t+u.h*(1-p)}:d=function(p){return u.l+u.w*p};return d},e.getPixelToData=function(o,i,l,s){var u=o._fullLayout._size,d;if(i)if(s==="domain")d=function(p){var g=(p-i._offset)/i._length;return l?1-g:g};else{var f=e.rangeToShapePosition(i);d=function(p){return f(i.p2r(p-i._offset))}}else l?d=function(p){return 1-(p-u.t)/u.h}:d=function(p){return(p-u.l)/u.w};return d},e.roundPositionForSharpStrokeRendering=function(o,i){var l=Math.round(i%2)===1,s=Math.round(o);return l?s+.5:s},e.makeShapesOptionsAndPlotinfo=function(o,i){var l=o._fullLayout.shapes[i]||{},s=o._fullLayout._plots[l.xref+l.yref],u=!!s;return u?s._hadPlotinfo=!0:(s={},l.xref&&l.xref!=="paper"&&(s.xaxis=o._fullLayout[l.xref+"axis"]),l.yref&&l.yref!=="paper"&&(s.yaxis=o._fullLayout[l.yref+"axis"])),s.xsizemode=l.xsizemode,s.ysizemode=l.ysizemode,s.xanchor=l.xanchor,s.yanchor=l.yanchor,{options:l,plotinfo:s}},e.makeSelectionsOptionsAndPlotinfo=function(o,i){var l=o._fullLayout.selections[i]||{},s=o._fullLayout._plots[l.xref+l.yref],u=!!s;return u?s._hadPlotinfo=!0:(s={},l.xref&&(s.xaxis=o._fullLayout[l.xref+"axis"]),l.yref&&(s.yaxis=o._fullLayout[l.yref+"axis"])),{options:l,plotinfo:s}},e.getPathString=function(o,i){var l=i.type,s=r.getRefType(i.xref),u=r.getRefType(i.yref),d=r.getFromId(o,i.xref),f=r.getFromId(o,i.yref),p=o._fullLayout._size,g,h,y,b,v,x,k,_;if(d?s==="domain"?h=function(V){return d._offset+d._length*V}:(g=e.shapePositionToRange(d),h=function(V){return d._offset+d.r2p(g(V,!0))}):h=function(V){return p.l+p.w*V},f?u==="domain"?b=function(V){return f._offset+f._length*(1-V)}:(y=e.shapePositionToRange(f),b=function(V){return f._offset+f.r2p(y(V,!0))}):b=function(V){return p.t+p.h*(1-V)},l==="path")return d&&d.type==="date"&&(h=e.decodeDate(h)),f&&f.type==="date"&&(b=e.decodeDate(b)),a(i,h,b);if(i.xsizemode==="pixel"){var S=h(i.xanchor);v=S+i.x0,x=S+i.x1}else v=h(i.x0),x=h(i.x1);if(i.ysizemode==="pixel"){var T=b(i.yanchor);k=T-i.y0,_=T-i.y1}else k=b(i.y0),_=b(i.y1);if(l==="line")return"M"+v+","+k+"L"+x+","+_;if(l==="rect")return"M"+v+","+k+"H"+x+"V"+_+"H"+v+"Z";var C=(v+x)/2,A=(k+_)/2,O=Math.abs(C-v),F=Math.abs(A-k),R="A"+O+","+F,N=C+O+","+A,B=C+","+(A-F);return"M"+N+R+" 0 1,1 "+B+R+" 0 0,1 "+N+"Z"};function a(o,i,l){var s=o.path,u=o.xsizemode,d=o.ysizemode,f=o.xanchor,p=o.yanchor;return s.replace(t.segmentRE,function(g){var h=0,y=g.charAt(0),b=t.paramIsX[y],v=t.paramIsY[y],x=t.numParams[y],k=g.substr(1).replace(t.paramRE,function(_){return b[h]?u==="pixel"?_=i(f)+Number(_):_=i(_):v[h]&&(d==="pixel"?_=l(p)-Number(_):_=l(_)),h++,h>x&&(_="X"),_});return h>x&&(k=k.replace(/[\s,]*X.*/,""),n.log("Ignoring extra params in segment "+g)),y+k})}})(Vl);var Xfe=Ge,Eu=bn,OE=Ir,EE=gn,$fe=Bl.readPaths,Q1=Vl,epe=Q1.getPathString,LE=nx,tpe=Br.FROM_TL,zE=function(e,t,n,r){if(r.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var i=Eu.getFromId(e,n.xref),l=Eu.getFromId(e,n.yref);for(var s in LE){var u=LE[s](n,i,l);u!==void 0&&(o[s]=u)}}a=Xfe.texttemplateStringForShapes(n.label.texttemplate,{},e._fullLayout._d3locale,o)}else a=n.label.text;var d={"data-index":t},f=n.label.font,p={"data-notex":1},g=r.append("g").attr(d).classed("shape-label",!0),h=g.append("text").attr(p).classed("shape-label-text",!0).text(a),y,b,v,x;if(n.path){var k=epe(e,n),_=$fe(k,e);y=1/0,v=1/0,b=-1/0,x=-1/0;for(var S=0;S<_.length;S++)for(var T=0;T<_[S].length;T++)for(var C=_[S][T],A=1;A<C.length;A+=2){var O=C[A],F=C[A+1];y=Math.min(y,O),b=Math.max(b,O),v=Math.min(v,F),x=Math.max(x,F)}}else{var R=Eu.getFromId(e,n.xref),N=Eu.getRefType(n.xref),B=Eu.getFromId(e,n.yref),V=Eu.getRefType(n.yref),Z=Q1.getDataToPixel(e,R,!1,N),G=Q1.getDataToPixel(e,B,!0,V);y=Z(n.x0),b=Z(n.x1),v=G(n.y0),x=G(n.y1)}var I=n.label.textangle;I==="auto"&&(n.type==="line"?I=npe(y,v,b,x):I=0),h.call(function($){return $.call(EE.font,f).attr({}),OE.convertToTspans($,e),$});var P=EE.bBox(h.node()),z=rpe(y,v,b,x,n,I,P),H=z.textx,j=z.texty,q=z.xanchor;h.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[q],y:j,x:H,transform:"rotate("+I+","+H+","+j+")"}).call(OE.positionText,H,j)}};function npe(e,t,n,r){var a,o;return o=Math.abs(n-e),n>=e?a=t-r:a=r-t,-180/Math.PI*Math.atan2(a,o)}function rpe(e,t,n,r,a,o,i){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,d=a.type,f=Math.PI/180*o,p=Math.sin(f),g=Math.cos(f),h=a.label.xanchor,y=a.label.yanchor,b,v,x,k;if(d==="line"){l==="start"?(b=e,v=t):l==="end"?(b=n,v=r):(b=(e+n)/2,v=(t+r)/2),h==="auto"&&(l==="start"?s==="auto"?n>e?h="left":n<e?h="right":h="center":n>e?h="right":n<e?h="left":h="center":l==="end"?s==="auto"?n>e?h="right":n<e?h="left":h="center":n>e?h="left":n<e?h="right":h="center":h="center");var _={left:1,center:0,right:-1},S={bottom:-1,middle:0,top:1};if(s==="auto"){var T=S[y];x=-u*p*T,k=u*g*T}else{var C=_[h],A=S[y];x=u*C,k=u*A}b=b+x,v=v+k}else x=u+3,l.indexOf("right")!==-1?(b=Math.max(e,n)-x,h==="auto"&&(h="right")):l.indexOf("left")!==-1?(b=Math.min(e,n)+x,h==="auto"&&(h="left")):(b=(e+n)/2,h==="auto"&&(h="center")),l.indexOf("top")!==-1?v=Math.min(t,r):l.indexOf("bottom")!==-1?v=Math.max(t,r):v=(t+r)/2,k=u,y==="bottom"?v=v-k:y==="top"&&(v=v+k);var O=tpe[y],F=a.label.font.size,R=i.height,N=(R*O-F)*p,B=-(R*O-F)*g;return{textx:b+N,texty:v+B,xanchor:h}}var ape=Ge,ope=ape.strTranslate,FE=di,IE=Cu,ipe=IE.drawMode,DE=IE.selectMode,PE=Dt,RE=Kt,Gg=Z1,lpe=Gg.i000,spe=Gg.i090,cpe=Gg.i180,upe=Gg.i270,dpe=Ds,NE=dpe.clearOutlineControllers,X1=Bl,Zg=X1.pointsOnRectangle,$1=X1.pointsOnEllipse,fpe=X1.writePaths,ppe=Y1.newShapes,hpe=Y1.createShapeObj,mpe=CE,gpe=zE,ew=function e(t,n,r,a){a||(a=0);var o=r.gd;function i(){e(t,n,r,a++),($1(t[0])||r.hasText)&&l({redrawing:!0})}function l(I){var P={};r.isActiveShape!==void 0&&(r.isActiveShape=!1,P=ppe(n,r)),r.isActiveSelection!==void 0&&(r.isActiveSelection=!1,P=mpe(n,r),o._fullLayout._reselect=!0),Object.keys(P).length&&PE.call((I||{}).redrawing?"relayout":"_guiRelayout",o,P)}var s=o._fullLayout,u=s._zoomlayer,d=r.dragmode,f=ipe(d),p=DE(d);(f||p)&&(o._fullLayout._outlining=!0),NE(o),n.attr("d",fpe(t));var g,h,y,b,v;if(!a&&(r.isActiveShape||r.isActiveSelection)){v=ype([],t);var x=u.append("g").attr("class","outline-controllers");F(x),G()}if(f&&r.hasText){var k=u.select(".label-temp"),_=hpe(n,r,r.dragmode);gpe(o,"label-temp",_,k)}function S(I){y=+I.srcElement.getAttribute("data-i"),b=+I.srcElement.getAttribute("data-j"),g[y][b].moveFn=T}function T(I,P){if(t.length){var z=v[y][b][1],H=v[y][b][2],j=t[y],q=j.length;if(Zg(j)){var $=I,ne=P;if(r.isActiveSelection){var te=BE(j,b);te[1]===j[b][1]?ne=0:$=0}for(var ee=0;ee<q;ee++)if(ee!==b){var se=j[ee];se[1]===j[b][1]&&(se[1]=z+$),se[2]===j[b][2]&&(se[2]=H+ne)}if(j[b][1]=z+$,j[b][2]=H+ne,!Zg(j))for(var U=0;U<q;U++)for(var Y=0;Y<j[U].length;Y++)j[U][Y]=v[y][U][Y]}else j[b][1]=z+I,j[b][2]=H+P;i()}}function C(){l()}function A(){if(t.length&&t[y]&&t[y].length){for(var I=[],P=0;P<t[y].length;P++)P!==b&&I.push(t[y][P]);I.length>1&&!(I.length===2&&I[1][0]==="Z")&&(b===0&&(I[0][0]="M"),t[y]=I,i(),l())}}function O(I,P){if(I===2){y=+P.srcElement.getAttribute("data-i"),b=+P.srcElement.getAttribute("data-j");var z=t[y];!Zg(z)&&!$1(z)&&A()}}function F(I){g=[];for(var P=0;P<t.length;P++){var z=t[P],H=Zg(z),j=!H&&$1(z);g[P]=[];for(var q=z.length,$=0;$<q;$++)if(z[$][0]!=="Z"&&!(j&&$!==lpe&&$!==spe&&$!==cpe&&$!==upe)){var ne=H&&r.isActiveSelection,te;ne&&(te=BE(z,$));var ee=z[$][1],se=z[$][2],U=I.append(ne?"rect":"circle").attr("data-i",P).attr("data-j",$).style({fill:RE.background,stroke:RE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ne){var Y=te[1]-ee,J=te[2]-se,re=J?5:Math.max(Math.min(25,Math.abs(Y)-5),5),oe=Y?5:Math.max(Math.min(25,Math.abs(J)-5),5);U.classed(J?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",re).attr("height",oe).attr("x",ee-re/2).attr("y",se-oe/2).attr("transform",ope(Y/2,J/2))}else U.classed("cursor-grab",!0).attr("r",5).attr("cx",ee).attr("cy",se);g[P][$]={element:U.node(),gd:o,prepFn:S,doneFn:C,clickFn:O},FE.init(g[P][$])}}}function R(I,P){if(t.length)for(var z=0;z<t.length;z++)for(var H=0;H<t[z].length;H++)for(var j=0;j+2<t[z][H].length;j+=2)t[z][H][j+1]=v[z][H][j+1]+I,t[z][H][j+2]=v[z][H][j+2]+P}function N(I,P){R(I,P),i()}function B(I){y=+I.srcElement.getAttribute("data-i"),y||(y=0),h[y].moveFn=N}function V(){l()}function Z(I){I===2&&vpe(o)}function G(){if(h=[],!!t.length){var I=0;h[I]={element:n[0][0],gd:o,prepFn:B,doneFn:V,clickFn:Z},FE.init(h[I])}}};function ype(e,t){for(var n=0;n<t.length;n++){var r=t[n];e[n]=[];for(var a=0;a<r.length;a++){e[n][a]=[];for(var o=0;o<r[a].length;o++)e[n][a][o]=r[a][o]}}return e}function BE(e,t){var n=e[t][1],r=e[t][2],a=e.length,o,i,l;return o=(t+1)%a,i=e[o][1],l=e[o][2],i===n&&l===r&&(o=(t+2)%a,i=e[o][1],l=e[o][2]),[o,i,l]}function vpe(e){if(DE(e._fullLayout.dragmode)){NE(e);var t=e._fullLayout._activeSelectionIndex,n=(e.layout||{}).selections||[];if(t<n.length){for(var r=[],a=0;a<n.length;a++)a!==t&&r.push(n[a]);delete e._fullLayout._activeSelectionIndex;var o=e._fullLayout.selections[t];e._fullLayout._deselect={xref:o.xref,yref:o.yref},PE.call("_guiRelayout",e,{selections:r})}}}var bpe=$t,jE=Dt,VE=Ge,Lu=bn,xpe=Bl.readPaths,wpe=ew,Kg=zE,HE=Ds.clearOutlineControllers,tw=Kt,nw=gn,_pe=hn.arrayEditor,UE=di,qE=qs,Ys=Wg,pa=Vl,rw=pa.getPathString,aw={draw:ow,drawOne:WE,eraseActiveShape:Spe,drawLabel:Kg};function ow(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var n in t._plots){var r=t._plots[n].shapelayer;r&&(r.selectAll("path").remove(),r.selectAll("text").remove())}for(var a=0;a<t.shapes.length;a++)t.shapes[a].visible===!0&&WE(e,a)}function Yg(e){return!!e._fullLayout._outlining}function Jg(e){return!e._context.edits.shapePosition}function WE(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var n=pa.makeShapesOptionsAndPlotinfo(e,t),r=n.options,a=n.plotinfo;if(!r._input||r.visible!==!0)return;if(r.layer!=="below")i(e._fullLayout._shapeUpperLayer);else if(r.xref==="paper"||r.yref==="paper")i(e._fullLayout._shapeLowerLayer);else if(a._hadPlotinfo){var o=a.mainplotinfo||a;i(o.shapelayer)}else i(e._fullLayout._shapeLowerLayer);function i(l){var s=rw(e,r),u={"data-index":t,"fill-rule":r.fillrule,d:s},d=r.opacity,f=r.fillcolor,p=r.line.width?r.line.color:"rgba(0,0,0,0)",g=r.line.width,h=r.line.dash;!g&&r.editable===!0&&(g=5,h="solid");var y=s[s.length-1]!=="Z",b=Jg(e)&&r.editable&&e._fullLayout._activeShapeIndex===t;b&&(f=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,d=e._fullLayout.activeshape.opacity);var v=l.append("g").classed("shape-group",!0).attr({"data-index":t}),x=v.append("path").attr(u).style("opacity",d).call(tw.stroke,p).call(tw.fill,f).call(nw.dashLine,h,g);GE(v,e,r),Kg(e,t,r,v);var k;if((b||e._context.edits.shapePosition)&&(k=_pe(e.layout,"shapes",r)),b){x.style({cursor:"move"});var _={element:x.node(),plotinfo:a,gd:e,editHelpers:k,hasText:r.label.text||r.label.texttemplate,isActiveShape:!0},S=xpe(s,e);wpe(S,x,_)}else e._context.edits.shapePosition?kpe(e,x,r,t,l,k):r.editable===!0&&x.style("pointer-events",y||tw.opacity(f)*d<=.5?"stroke":"all");x.node().addEventListener("click",function(){return Tpe(e,x)})}}function GE(e,t,n){var r=(n.xref+n.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");nw.setClipUrl(e,r?"clip"+t._fullLayout._uid+r:null,t)}function kpe(e,t,n,r,a,o){var i=10,l=10,s=n.xsizemode==="pixel",u=n.ysizemode==="pixel",d=n.type==="line",f=n.type==="path",p=o.modifyItem,g,h,y,b,v,x,k,_,S,T,C,A,O,F,R,N=bpe.select(t.node().parentNode),B=Lu.getFromId(e,n.xref),V=Lu.getRefType(n.xref),Z=Lu.getFromId(e,n.yref),G=Lu.getRefType(n.yref),I=pa.getDataToPixel(e,B,!1,V),P=pa.getDataToPixel(e,Z,!0,G),z=pa.getPixelToData(e,B,!1,V),H=pa.getPixelToData(e,Z,!0,G),j=ne(),q={element:j.node(),gd:e,prepFn:se,doneFn:U,clickFn:Y},$;UE.init(q),j.node().onmousemove=ee;function ne(){return d?te():t}function te(){var ge=10,xe=Math.max(n.line.width,ge),Le=a.append("g").attr("data-index",r).attr("drag-helper",!0);Le.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":xe,"stroke-opacity":"0"});var Ue={"fill-opacity":"0"},Pe=Math.max(xe/2,ge);return Le.append("circle").attr({"data-line-point":"start-point",cx:s?I(n.xanchor)+n.x0:I(n.x0),cy:u?P(n.yanchor)-n.y0:P(n.y0),r:Pe}).style(Ue).classed("cursor-grab",!0),Le.append("circle").attr({"data-line-point":"end-point",cx:s?I(n.xanchor)+n.x1:I(n.x1),cy:u?P(n.yanchor)-n.y1:P(n.y1),r:Pe}).style(Ue).classed("cursor-grab",!0),Le}function ee(ge){if(Yg(e)){$=null;return}if(d)ge.target.tagName==="path"?$="move":$=ge.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var xe=q.element.getBoundingClientRect(),Le=xe.right-xe.left,Ue=xe.bottom-xe.top,Pe=ge.clientX-xe.left,De=ge.clientY-xe.top,je=!f&&Le>i&&Ue>l&&!ge.shiftKey?UE.getCursor(Pe/Le,1-De/Ue):"move";qE(t,je),$=je.split("-")[0]}}function se(ge){Yg(e)||(s&&(v=I(n.xanchor)),u&&(x=P(n.yanchor)),n.type==="path"?R=n.path:(g=s?n.x0:I(n.x0),h=u?n.y0:P(n.y0),y=s?n.x1:I(n.x1),b=u?n.y1:P(n.y1)),g<y?(S=g,O="x0",T=y,F="x1"):(S=y,O="x1",T=g,F="x0"),!u&&h<b||u&&h>b?(k=h,C="y0",_=b,A="y1"):(k=b,C="y1",_=h,A="y0"),ee(ge),oe(a,n),ve(t,n,e),q.moveFn=$==="move"?J:re,q.altKey=ge.altKey)}function U(){Yg(e)||(qE(t),he(a),GE(t,e,n),jE.call("_guiRelayout",e,o.getUpdateObj()))}function Y(){Yg(e)||he(a)}function J(ge,xe){if(n.type==="path"){var Le=function(De){return De},Ue=Le,Pe=Le;s?p("xanchor",n.xanchor=z(v+ge)):(Ue=function(De){return z(I(De)+ge)},B&&B.type==="date"&&(Ue=pa.encodeDate(Ue))),u?p("yanchor",n.yanchor=H(x+xe)):(Pe=function(De){return H(P(De)+xe)},Z&&Z.type==="date"&&(Pe=pa.encodeDate(Pe))),p("path",n.path=ZE(R,Ue,Pe))}else s?p("xanchor",n.xanchor=z(v+ge)):(p("x0",n.x0=z(g+ge)),p("x1",n.x1=z(y+ge))),u?p("yanchor",n.yanchor=H(x+xe)):(p("y0",n.y0=H(h+xe)),p("y1",n.y1=H(b+xe)));t.attr("d",rw(e,n)),oe(a,n),Kg(e,r,n,N)}function re(ge,xe){if(f){var Le=function(Be){return Be},Ue=Le,Pe=Le;s?p("xanchor",n.xanchor=z(v+ge)):(Ue=function(Be){return z(I(Be)+ge)},B&&B.type==="date"&&(Ue=pa.encodeDate(Ue))),u?p("yanchor",n.yanchor=H(x+xe)):(Pe=function(Be){return H(P(Be)+xe)},Z&&Z.type==="date"&&(Pe=pa.encodeDate(Pe))),p("path",n.path=ZE(R,Ue,Pe))}else if(d){if($==="resize-over-start-point"){var De=g+ge,je=u?h-xe:h+xe;p("x0",n.x0=s?De:z(De)),p("y0",n.y0=u?je:H(je))}else if($==="resize-over-end-point"){var qe=y+ge,Ee=u?b-xe:b+xe;p("x1",n.x1=s?qe:z(qe)),p("y1",n.y1=u?Ee:H(Ee))}}else{var _e=function(Be){return $.indexOf(Be)!==-1},we=_e("n"),Re=_e("s"),Je=_e("w"),it=_e("e"),dt=we?k+xe:k,at=Re?_+xe:_,lt=Je?S+ge:S,He=it?T+ge:T;u&&(we&&(dt=k-xe),Re&&(at=_-xe)),(!u&&at-dt>l||u&&dt-at>l)&&(p(C,n[C]=u?dt:H(dt)),p(A,n[A]=u?at:H(at))),He-lt>i&&(p(O,n[O]=s?lt:z(lt)),p(F,n[F]=s?He:z(He)))}t.attr("d",rw(e,n)),oe(a,n),Kg(e,r,n,N)}function oe(ge,xe){(s||u)&&Le();function Le(){var Ue=xe.type!=="path",Pe=ge.selectAll(".visual-cue").data([0]),De=1;Pe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var je=I(s?xe.xanchor:VE.midRange(Ue?[xe.x0,xe.x1]:pa.extractPathCoords(xe.path,Ys.paramIsX))),qe=P(u?xe.yanchor:VE.midRange(Ue?[xe.y0,xe.y1]:pa.extractPathCoords(xe.path,Ys.paramIsY)));if(je=pa.roundPositionForSharpStrokeRendering(je,De),qe=pa.roundPositionForSharpStrokeRendering(qe,De),s&&u){var Ee="M"+(je-1-De)+","+(qe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Pe.attr("d",Ee)}else if(s){var _e="M"+(je-1-De)+","+(qe-9-De)+"v18 h2 v-18 Z";Pe.attr("d",_e)}else{var we="M"+(je-9-De)+","+(qe-1-De)+"h18 v2 h-18 Z";Pe.attr("d",we)}}}function he(ge){ge.selectAll(".visual-cue").remove()}function ve(ge,xe,Le){var Ue=xe.xref,Pe=xe.yref,De=Lu.getFromId(Le,Ue),je=Lu.getFromId(Le,Pe),qe="";Ue!=="paper"&&!De.autorange&&(qe+=Ue),Pe!=="paper"&&!je.autorange&&(qe+=Pe),nw.setClipUrl(ge,qe?"clip"+Le._fullLayout._uid+qe:null,Le)}}function ZE(e,t,n){return e.replace(Ys.segmentRE,function(r){var a=0,o=r.charAt(0),i=Ys.paramIsX[o],l=Ys.paramIsY[o],s=Ys.numParams[o],u=r.substr(1).replace(Ys.paramRE,function(d){return a>=s||(i[a]?d=t(d):l[a]&&(d=n(d)),a++),d});return o+u})}function Tpe(e,t){if(Jg(e)){var n=t.node(),r=+n.getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex){KE(e);return}e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=KE,ow(e)}}}function KE(e){if(Jg(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(HE(e),delete e._fullLayout._activeShapeIndex,ow(e))}}function Spe(e){if(Jg(e)){HE(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t<n.length){for(var r=[],a=0;a<n.length;a++)a!==t&&r.push(n[a]);return delete e._fullLayout._activeShapeIndex,jE.call("_guiRelayout",e,{shapes:r})}}}var Ja=Dt,YE=wr,JE=dr,on=G1,Ape=aw.eraseActiveShape,zu=Ge,tn=zu._,ln=bE.exports={};ln.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},n=t.format||"png";return n==="png"?tn(e,"Download plot as a png"):tn(e,"Download plot")},icon:on.camera,click:function(e){var t=e._context.toImageButtonOptions,n={format:t.format||"png"};zu.notifier(tn(e,"Taking snapshot - this may take a few seconds"),"long"),n.format!=="svg"&&zu.isIE()&&(zu.notifier(tn(e,"IE only supports svg. Changing format to svg."),"long"),n.format="svg"),["filename","width","height","scale"].forEach(function(r){r in t&&(n[r]=t[r])}),Ja.call("downloadImage",e,n).then(function(r){zu.notifier(tn(e,"Snapshot succeeded")+" - "+r,"long")}).catch(function(){zu.notifier(tn(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}},ln.sendDataToCloud={name:"sendDataToCloud",title:function(e){return tn(e,"Edit in Chart Studio")},icon:on.disk,click:function(e){YE.sendDataToCloud(e)}},ln.editInChartStudio={name:"editInChartStudio",title:function(e){return tn(e,"Edit in Chart Studio")},icon:on.pencil,click:function(e){YE.sendDataToCloud(e)}},ln.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return tn(e,"Zoom")},attr:"dragmode",val:"zoom",icon:on.zoombox,click:Hr},ln.pan2d={name:"pan2d",_cat:"pan",title:function(e){return tn(e,"Pan")},attr:"dragmode",val:"pan",icon:on.pan,click:Hr},ln.select2d={name:"select2d",_cat:"select",title:function(e){return tn(e,"Box Select")},attr:"dragmode",val:"select",icon:on.selectbox,click:Hr},ln.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return tn(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:on.lasso,click:Hr},ln.drawclosedpath={name:"drawclosedpath",title:function(e){return tn(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:on.drawclosedpath,click:Hr},ln.drawopenpath={name:"drawopenpath",title:function(e){return tn(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:on.drawopenpath,click:Hr},ln.drawline={name:"drawline",title:function(e){return tn(e,"Draw line")},attr:"dragmode",val:"drawline",icon:on.drawline,click:Hr},ln.drawrect={name:"drawrect",title:function(e){return tn(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:on.drawrect,click:Hr},ln.drawcircle={name:"drawcircle",title:function(e){return tn(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:on.drawcircle,click:Hr},ln.eraseshape={name:"eraseshape",title:function(e){return tn(e,"Erase active shape")},icon:on.eraseshape,click:Ape},ln.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return tn(e,"Zoom in")},attr:"zoom",val:"in",icon:on.zoom_plus,click:Hr},ln.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return tn(e,"Zoom out")},attr:"zoom",val:"out",icon:on.zoom_minus,click:Hr},ln.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return tn(e,"Autoscale")},attr:"zoom",val:"auto",icon:on.autoscale,click:Hr},ln.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return tn(e,"Reset axes")},attr:"zoom",val:"reset",icon:on.home,click:Hr},ln.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return tn(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:on.tooltip_basic,gravity:"ne",click:Hr},ln.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return tn(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:on.tooltip_compare,gravity:"ne",click:Hr};function Hr(e,t){var n=t.currentTarget,r=n.getAttribute("data-attr"),a=n.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=JE.list(e,null,!0),s=o._cartesianSpikesEnabled,u,d;if(r==="zoom"){var f=a==="in"?.5:2,p=(1+f)/2,g=(1-f)/2,h;for(d=0;d<l.length;d++)if(u=l[d],!u.fixedrange)if(h=u._name,a==="auto")i[h+".autorange"]=!0;else if(a==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?i[h+".autorange"]=!0:u._rangeInitial0===void 0?(i[h+".autorange"]=u._autorangeInitial,i[h+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(i[h+".range"]=[u._rangeInitial0,null],i[h+".autorange"]=u._autorangeInitial):i[h+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(i[h+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[p*y[0]+g*y[1],p*y[1]+g*y[0]];i[h+".range[0]"]=u.l2r(b[0]),i[h+".range[1]"]=u.l2r(b[1])}}else r==="hovermode"&&(a==="x"||a==="y")&&(a=o._isHoriz?"y":"x",n.setAttribute("data-val",a)),i[r]=a;o._cartesianSpikesEnabled=s,Ja.call("_guiRelayout",e,i)}ln.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return tn(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:on.zoombox,click:Qg},ln.pan3d={name:"pan3d",_cat:"pan",title:function(e){return tn(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:on.pan,click:Qg},ln.orbitRotation={name:"orbitRotation",title:function(e){return tn(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:on["3d_rotate"],click:Qg},ln.tableRotation={name:"tableRotation",title:function(e){return tn(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:on["z-axis"],click:Qg};function Qg(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-attr"),a=n.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],i={},l=r.split("."),s=0;s<o.length;s++)i[o[s]+"."+l[1]]=a;var u=a==="pan"?a:"zoom";i.dragmode=u,Ja.call("_guiRelayout",e,i)}ln.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return tn(e,"Reset camera to default")},attr:"resetDefault",icon:on.home,click:iw},ln.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return tn(e,"Reset camera to last save")},attr:"resetLastSave",icon:on.movie,click:iw};function iw(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-attr"),a=r==="resetLastSave",o=r==="resetDefault",i=e._fullLayout,l=i._subplots.gl3d||[],s={},u=0;u<l.length;u++){var d=l[u],f=d+".camera",p=d+".aspectratio",g=d+".aspectmode",h=i[d]._scene,y;a?(s[f+".up"]=h.viewInitial.up,s[f+".eye"]=h.viewInitial.eye,s[f+".center"]=h.viewInitial.center,y=!0):o&&(s[f+".up"]=null,s[f+".eye"]=null,s[f+".center"]=null,y=!0),y&&(s[p+".x"]=h.viewInitial.aspectratio.x,s[p+".y"]=h.viewInitial.aspectratio.y,s[p+".z"]=h.viewInitial.aspectratio.z,s[g]=h.viewInitial.aspectmode)}Ja.call("_guiRelayout",e,s)}ln.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return tn(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:on.tooltip_basic,gravity:"ne",click:Mpe};function QE(e,t){var n=t.currentTarget,r=n._previousVal,a=e._fullLayout,o=a._subplots.gl3d||[],i=["xaxis","yaxis","zaxis"],l={},s={};if(r)s=r,n._previousVal=null;else{for(var u=0;u<o.length;u++){var d=o[u],f=a[d],p=d+".hovermode";l[p]=f.hovermode,s[p]=!1;for(var g=0;g<3;g++){var h=i[g],y=d+"."+h+".showspikes";s[y]=!1,l[y]=f[h].showspikes}}n._previousVal=l}return s}function Mpe(e,t){var n=QE(e,t);Ja.call("_guiRelayout",e,n)}ln.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return tn(e,"Zoom in")},attr:"zoom",val:"in",icon:on.zoom_plus,click:lw},ln.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return tn(e,"Zoom out")},attr:"zoom",val:"out",icon:on.zoom_minus,click:lw},ln.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return tn(e,"Reset")},attr:"reset",val:null,icon:on.autoscale,click:lw},ln.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return tn(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:on.tooltip_basic,gravity:"ne",click:sw};function lw(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-attr"),a=n.getAttribute("data-val")||!0,o=e._fullLayout,i=o._subplots.geo||[],l=0;l<i.length;l++){var s=i[l],u=o[s];if(r==="zoom"){var d=u.projection.scale,f=a==="in"?2*d:.5*d;Ja.call("_guiRelayout",e,s+".projection.scale",f)}}r==="reset"&&Xg(e,"geo")}ln.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(e){return tn(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:on.tooltip_basic,gravity:"ne",click:sw},ln.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return tn(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:on.tooltip_basic,gravity:"ne",click:sw};function XE(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function sw(e){var t=XE(e);Ja.call("_guiRelayout",e,"hovermode",t)}ln.resetViewSankey={name:"resetSankeyGroup",title:function(e){return tn(e,"Reset view")},icon:on.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},n=0;n<e._fullData.length;n++){var r=e._fullData[n]._viewInitial;t["node.groups"].push(r.node.groups.slice()),t["node.x"].push(r.node.x.slice()),t["node.y"].push(r.node.y.slice())}Ja.call("restyle",e,t)}},ln.toggleHover={name:"toggleHover",title:function(e){return tn(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:on.tooltip_basic,gravity:"ne",click:function(e,t){var n=QE(e,t);n.hovermode=XE(e),Ja.call("_guiRelayout",e,n)}},ln.resetViews={name:"resetViews",title:function(e){return tn(e,"Reset views")},icon:on.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),Hr(e,t),n.setAttribute("data-attr","resetLastSave"),iw(e,t),Xg(e,"geo"),Xg(e,"mapbox")}},ln.toggleSpikelines={name:"toggleSpikelines",title:function(e){return tn(e,"Toggle Spike Lines")},icon:on.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,n=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled=n==="on"?"off":"on",Ja.call("_guiRelayout",e,Cpe(e))}};function Cpe(e){for(var t=e._fullLayout,n=t._cartesianSpikesEnabled==="on",r=JE.list(e,null,!0),a={},o=0;o<r.length;o++){var i=r[o];a[i._name+".showspikes"]=n?!0:i._showSpikeInitial}return a}ln.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return tn(e,"Reset view")},attr:"reset",icon:on.home,click:function(e){Xg(e,"mapbox")}},ln.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return tn(e,"Zoom in")},attr:"zoom",val:"in",icon:on.zoom_plus,click:$E},ln.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return tn(e,"Zoom out")},attr:"zoom",val:"out",icon:on.zoom_minus,click:$E};function $E(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-val"),a=e._fullLayout,o=a._subplots.mapbox||[],i=1.05,l={},s=0;s<o.length;s++){var u=o[s],d=a[u].zoom,f=r==="in"?i*d:d/i;l[u+".zoom"]=f}Ja.call("_guiRelayout",e,l)}function Xg(e,t){for(var n=e._fullLayout,r=n._subplots[t]||[],a={},o=0;o<r.length;o++)for(var i=r[o],l=n[i]._subplot,s=l.viewInitial,u=Object.keys(s),d=0;d<u.length;d++){var f=u[d];a[i+"."+f]=s[f]}Ja.call("_guiRelayout",e,a)}var eL=bE.exports,tL=eL,Ope=Object.keys(tL),nL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],rL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(nL),Fu=[],Epe=function(e){if(rL.indexOf(e._cat||e.name)===-1){var t=e.name,n=(e._cat||e.name).toLowerCase();Fu.indexOf(t)===-1&&Fu.push(t),Fu.indexOf(n)===-1&&Fu.push(n)}};Ope.forEach(function(e){Epe(tL[e])}),Fu.sort();var aL={DRAW_MODES:nL,backButtons:rL,foreButtons:Fu},oL=aL,iL={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 *"+oL.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 *"+oL.foreButtons.join("*, *")+"*."].join(" ")}},Lpe=Ge,Hf=Kt,zpe=hn,Fpe=iL,Ipe=function(e,t){var n=e.modebar||{},r=zpe.newContainer(t,"modebar");function a(i,l){return Lpe.coerce(n,r,Fpe,i,l)}a("orientation"),a("bgcolor",Hf.addOpacity(t.paper_bgcolor,.5));var o=Hf.contrast(Hf.rgb(t.modebar.bgcolor));a("color",Hf.addOpacity(o,.3)),a("activecolor",Hf.addOpacity(o,.7)),a("uirevision",t.uirevision),a("add"),a("remove")},cw=$t,Dpe=en,$i=Ge,lL=G1,Ppe=cm.version,Rpe=new DOMParser;function sL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var pi=sL.prototype;pi.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context,r=this.graphInfo._fullLayout,a="modebar-"+r._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar",n.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),r.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var o=r.modebar,i=n.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";$i.deleteRelatedStyleRule(a),$i.addRelatedStyleRule(a,i+"#"+a+" .modebar-group","background-color: "+o.bgcolor),$i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),$i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),$i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var l=!this.hasButtons(t),s=this.hasLogo!==n.displaylogo,u=this.locale!==n.locale;if(this.locale=n.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(t),n.watermark||n.displaylogo)){var d=this.getLogo();n.watermark&&(d.className=d.className+" watermark"),r.modebar.orientation==="v"?this.element.insertBefore(d,this.element.childNodes[0]):this.element.appendChild(d),this.hasLogo=!0}this.updateActiveButton()},pi.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(n){var r=t.createGroup();n.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");t.buttonsNames.push(o);var i=t.createButton(a);t.buttonElements.push(i),r.appendChild(i)}),t.element.appendChild(r)})},pi.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},pi.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var r=e.title;r===void 0?r=e.name:typeof r=="function"&&(r=r(this.graphInfo)),(r||r===0)&&n.setAttribute("data-title",r),e.attr!==void 0&&n.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),n.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");n.addEventListener("click",function(l){e.click(t.graphInfo,l),t.updateActiveButton(l.currentTarget)}),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&cw.select(n).classed("active",!0);var i=e.icon;return typeof i=="function"?n.appendChild(i()):n.appendChild(this.createIcon(i||lL.question)),n.setAttribute("data-gravity",e.gravity||"n"),n},pi.createIcon=function(e){var t=Dpe(e.height)?Number(e.height):e.ascent-e.descent,n="http://www.w3.org/2000/svg",r;if(e.path){r=document.createElementNS(n,"svg"),r.setAttribute("viewBox",[0,0,e.width,t].join(" ")),r.setAttribute("class","icon");var a=document.createElementNS(n,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),r.appendChild(a)}if(e.svg){var o=Rpe.parseFromString(e.svg,"application/xml");r=o.childNodes[0]}return r.setAttribute("height","1em"),r.setAttribute("width","1em"),r},pi.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(r){var a=r.getAttribute("data-val")||!0,o=r.getAttribute("data-attr"),i=r.getAttribute("data-toggle")==="true",l=cw.select(r);if(i)o===n&&l.classed("active",!l.classed("active"));else{var s=o===null?o:$i.nestedProperty(t,o).get();l.classed("active",s===a)}})},pi.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0};function Npe(e){return e+" (v"+Ppe+")"}pi.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",Npe($i._(this.graphInfo,"Produced with Plotly.js"))),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(lL.newplotlylogo)),e.appendChild(t),e},pi.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},pi.destroy=function(){$i.removeElement(this.container.querySelector(".modebar")),$i.deleteRelatedStyleRule(this._uid)};function Bpe(e,t){var n=e._fullLayout,r=new sL({graphInfo:e,container:n._modebardiv.node(),buttons:t});return n._privateplot&&cw.select(r.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),r}var jpe=Bpe,Vpe=dr,cL=Wa,uw=Dt,Hpe=Ki.isUnifiedHover,Upe=jpe,$g=eL,qpe=aL.DRAW_MODES,Wpe=Ge.extendDeep,Gpe=function(e){var t=e._fullLayout,n=e._context,r=t._modeBar;if(!n.displayModeBar&&!n.watermark){r&&(r.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Xpe(a):!n.displayModeBar&&n.watermark?o=[]:o=Zpe(e),r?r.update(e,o):t._modeBar=Upe(e,o)};function Zpe(e){var t=e._fullLayout,n=e._fullData,r=e._context;function a(P,z){if(typeof z=="string"){if(z.toLowerCase()===P.toLowerCase())return!0}else{var H=z.name,j=z._cat||z.name;if(H===P||j===P.toLowerCase())return!0}return!1}var o=t.modebar.add;typeof o=="string"&&(o=[o]);var i=t.modebar.remove;typeof i=="string"&&(i=[i]);var l=r.modeBarButtonsToAdd.concat(o.filter(function(P){for(var z=0;z<r.modeBarButtonsToRemove.length;z++)if(a(P,r.modeBarButtonsToRemove[z]))return!1;return!0})),s=r.modeBarButtonsToRemove.concat(i.filter(function(P){for(var z=0;z<r.modeBarButtonsToAdd.length;z++)if(a(P,r.modeBarButtonsToAdd[z]))return!1;return!0})),u=t._has("cartesian"),d=t._has("gl3d"),f=t._has("geo"),p=t._has("pie"),g=t._has("funnelarea"),h=t._has("gl2d"),y=t._has("ternary"),b=t._has("mapbox"),v=t._has("polar"),x=t._has("smith"),k=t._has("sankey"),_=Kpe(t),S=Hpe(t.hovermode),T=[];function C(P){if(P.length){for(var z=[],H=0;H<P.length;H++){for(var j=P[H],q=$g[j],$=q.name.toLowerCase(),ne=(q._cat||q.name).toLowerCase(),te=!1,ee=0;ee<s.length;ee++){var se=s[ee].toLowerCase();if(se===$||se===ne){te=!0;break}}te||z.push($g[j])}T.push(z)}}var A=["toImage"];r.showEditInChartStudio?A.push("editInChartStudio"):r.showSendToCloud&&A.push("sendDataToCloud"),C(A);var O=[],F=[],R=[],N=[];(u||h||p||g||y)+f+d+b+v+x>1?(F=["toggleHover"],R=["resetViews"]):f?(O=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],R=["resetGeo"]):d?(F=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(O=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],R=["resetViewMapbox"]):h?F=["hoverClosestGl2d"]:p?F=["hoverClosestPie"]:k?(F=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):F=["toggleHover"],u&&(F=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(Jpe(n)||S)&&(F=[]),(u||h)&&!_&&(O=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),d?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:(u||h)&&!_||y?N=["zoom2d","pan2d"]:b||f?N=["pan2d"]:v&&(N=["zoom2d"]),Ype(n)&&N.push("select2d","lasso2d");var B=[],V=function(P){B.indexOf(P)===-1&&F.indexOf(P)!==-1&&B.push(P)};if(Array.isArray(l)){for(var Z=[],G=0;G<l.length;G++){var I=l[G];typeof I=="string"?(I=I.toLowerCase(),qpe.indexOf(I)!==-1?(t._has("mapbox")||t._has("cartesian"))&&N.push(I):I==="togglespikelines"?V("toggleSpikelines"):I==="togglehover"?V("toggleHover"):I==="hovercompare"?V("hoverCompareCartesian"):I==="hoverclosest"?(V("hoverClosestCartesian"),V("hoverClosestGeo"),V("hoverClosest3d"),V("hoverClosestGl2d"),V("hoverClosestPie")):I==="v1hovermode"&&(V("toggleHover"),V("hoverClosestCartesian"),V("hoverCompareCartesian"),V("hoverClosestGeo"),V("hoverClosest3d"),V("hoverClosestGl2d"),V("hoverClosestPie"))):Z.push(I)}l=Z}return C(N),C(O.concat(R)),C(B),Qpe(T,l)}function Kpe(e){for(var t=Vpe.list({_fullLayout:e},null,!0),n=0;n<t.length;n++)if(!t[n].fixedrange)return!1;return!0}function Ype(e){for(var t=!1,n=0;n<e.length&&!t;n++){var r=e[n];!r._module||!r._module.selectPoints||(uw.traceIs(r,"scatter-like")?(cL.hasMarkers(r)||cL.hasText(r))&&(t=!0):uw.traceIs(r,"box-violin")?(r.boxpoints==="all"||r.points==="all")&&(t=!0):t=!0)}return t}function Jpe(e){for(var t=0;t<e.length;t++)if(!uw.traceIs(e[t],"noHover"))return!1;return!0}function Qpe(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}function Xpe(e){for(var t=Wpe([],e),n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++){var o=r[a];if(typeof o=="string")if($g[o]!==void 0)t[n][a]=$g[o];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return t}var uL={moduleType:"component",name:"modebar",layoutAttributes:iL,supplyLayoutDefaults:Ipe,manage:Gpe},Hl={},$pe=Br.FROM_BL,dL=function(e,t,n){n===void 0&&(n=$pe[e.constraintoward||"center"]);var r=[e.r2l(e.range[0]),e.r2l(e.range[1])],a=r[0]+(r[1]-r[0])*n;e.range=e._input.range=[e.l2r(a+(r[0]-a)*t),e.l2r(a+(r[1]-a)*t)],e.setScale()},Js=Ge,dw=gg,Eo=dr.id2name,ehe=ii,fL=dL,the=Xx,nhe=Gn.ALMOST_EQUAL,rhe=Br.FROM_BL;Hl.handleDefaults=function(e,t,n){var r=n.axIds,a=n.axHasImage,o=t._axisConstraintGroups=[],i=t._axisMatchGroups=[],l,s,u,d,f,p,g,h;for(l=0;l<r.length;l++)d=Eo(r[l]),f=e[d],p=t[d],ahe(f,p,{axIds:r,layoutOut:t,hasImage:a[d]});function y(A,O){for(l=0;l<A.length;l++){s=A[l];for(u in s)t[Eo(u)][O]=s}}for(y(i,"_matchGroup"),l=0;l<o.length;l++){s=o[l];for(u in s)if(p=t[Eo(u)],p.fixedrange){for(var b in s){var v=Eo(b);(e[v]||{}).fixedrange===!1&&Js.warn("fixedrange was specified as false for axis "+v+" but was overridden because another axis in its constraint group has fixedrange true"),t[v].fixedrange=!0}break}}for(l=0;l<o.length;){s=o[l];for(u in s){p=t[Eo(u)],p._matchGroup&&Object.keys(p._matchGroup).length===Object.keys(s).length&&(o.splice(l,1),l--);break}l++}y(o,"_constraintGroup");var x=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],k=!1,_=!1;function S(){h=p[g],g==="rangebreaks"&&(_=p._hasDayOfWeekBreaks)}for(l=0;l<i.length;l++){s=i[l];for(var T=0;T<x.length;T++){g=x[T],h=null;var C;for(u in s)if(d=Eo(u),f=e[d],p=t[d],g in p){if(!p.matches&&(C=p,g in f)){S();break}h===null&&g in f&&S()}if(g==="range"&&h&&f.range&&f.range.length===2&&f.range[0]!==null&&f.range[1]!==null&&(k=!0),g==="autorange"&&h===null&&k&&(h=!1),h===null&&g in C&&(h=C[g]),h!==null)for(u in s)p=t[Eo(u)],p[g]=g==="range"?h.slice():h,g==="rangebreaks"&&(p._hasDayOfWeekBreaks=_,the(p,t))}}};function ahe(e,t,n){var r=n.axIds,a=n.layoutOut,o=n.hasImage,i=a._axisConstraintGroups,l=a._axisMatchGroups,s=t._id,u=s.charAt(0),d=((a._splomAxes||{})[u]||{})[s]||{},f=t._id,p=f.charAt(0)==="x";t._matchGroup=null,t._constraintGroup=null;function g(N,B){return Js.coerce(e,t,ehe,N,B)}g("constrain",o?"domain":"range"),Js.coerce(e,t,{constraintoward:{valType:"enumerated",values:p?["left","center","right"]:["bottom","middle","top"],dflt:p?"center":"middle"}},"constraintoward");var h=t.type,y,b,v=[];for(y=0;y<r.length;y++)if(b=r[y],b!==f){var x=a[Eo(b)];x.type===h&&v.push(b)}var k=hL(i,f);if(k){var _=[];for(y=0;y<v.length;y++)b=v[y],k[b]||_.push(b);v=_}var S=v.length,T,C;S&&(e.matches||d.matches)&&(T=Js.coerce(e,t,{matches:{valType:"enumerated",values:v,dflt:v.indexOf(d.matches)!==-1?d.matches:void 0}},"matches"));var A=o&&!p?t.anchor:void 0;if(S&&!T&&(e.scaleanchor||A)&&(C=Js.coerce(e,t,{scaleanchor:{valType:"enumerated",values:v.concat([!1])}},"scaleanchor",A)),T){t._matchGroup=fw(l,f,T,1);var O=a[Eo(T)],F=pL(a,t)/pL(a,O);p!==(T.charAt(0)==="x")&&(F=(p?"x":"y")+F),fw(i,f,T,F)}else e.matches&&r.indexOf(e.matches)!==-1&&Js.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(C){var R=g("scaleratio");R||(R=t.scaleratio=1),fw(i,f,C,R)}else e.scaleanchor&&r.indexOf(e.scaleanchor)!==-1&&Js.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function pL(e,t){var n=t.domain;return n||(n=e[Eo(t.overlaying)].domain),n[1]-n[0]}function hL(e,t){for(var n=0;n<e.length;n++)if(e[n][t])return e[n];return null}function fw(e,t,n,r){var a,o,i,l,s,u=hL(e,t);u===null?(u={},u[t]=1,s=e.length,e.push(u)):s=e.indexOf(u);var d=Object.keys(u);for(a=0;a<e.length;a++)if(i=e[a],a!==s&&i[n]){var f=i[n];for(o=0;o<d.length;o++)l=d[o],i[l]=pw(f,pw(r,u[l]));e.splice(s,1);return}if(r!==1)for(o=0;o<d.length;o++){var p=d[o];u[p]=pw(r,u[p])}u[n]=1}function pw(e,t){var n="",r="",a,o;typeof e=="string"&&(n=e.match(/^[xy]*/)[0],a=n.length,e=+e.substr(a)),typeof t=="string"&&(r=t.match(/^[xy]*/)[0],o=r.length,t=+t.substr(o));var i=e*t;return!a&&!o?i:!a||!o||n.charAt(0)===r.charAt(0)?n+r+e*t:a===o?i:(a>o?n.substr(o):r.substr(a))+i}function ohe(e,t){for(var n=t._size,r=n.h/n.w,a={},o=Object.keys(e),i=0;i<o.length;i++){var l=o[i],s=e[l];if(typeof s=="string"){var u=s.match(/^[xy]*/)[0],d=u.length;s=+s.substr(d);for(var f=u.charAt(0)==="y"?r:1/r,p=0;p<d;p++)s*=f}a[l]=s}return a}Hl.enforce=function(e){var t=e._fullLayout,n=t._axisConstraintGroups||[],r,a,o,i,l,s,u,d;for(r=0;r<n.length;r++){o=ohe(n[r],t);var f=Object.keys(o),p=1/0,g=0,h=1/0,y={},b={},v=!1;for(a=0;a<f.length;a++)i=f[a],b[i]=l=t[Eo(i)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),y[i]=s=Math.abs(l._m)/o[i],p=Math.min(p,s),(l.constrain==="domain"||!l._constraintShrinkable)&&(h=Math.min(h,s)),delete l._constraintShrinkable,g=Math.max(g,s),l.constrain==="domain"&&(v=!0);if(!(p>nhe*g&&!v)){for(a=0;a<f.length;a++)if(i=f[a],s=y[i],l=b[i],u=l.constrain,s!==h||u==="domain")if(d=s/h,u==="range")fL(l,d);else{var x=l._inputDomain,k=(l.domain[1]-l.domain[0])/(x[1]-x[0]),_=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if(d/=k,d*_<1){l.domain=l._input.domain=x.slice(),fL(l,d);continue}if(_<1&&(l.range=l._input.range=l._inputRange.slice(),d*=_),l.autorange){var S=l.r2l(l.range[0]),T=l.r2l(l.range[1]),C=(S+T)/2,A=C,O=C,F=Math.abs(T-C),R=C-F*d*1.0001,N=C+F*d*1.0001,B=dw.makePadFn(t,l,0),V=dw.makePadFn(t,l,1);mL(l,d);var Z=Math.abs(l._m),G=dw.concatExtremes(e,l),I=G.min,P=G.max,z,H;for(H=0;H<I.length;H++)z=I[H].val-B(I[H])/Z,z>R&&z<A&&(A=z);for(H=0;H<P.length;H++)z=P[H].val+V(P[H])/Z,z<N&&z>O&&(O=z);var j=(O-A)/(2*F);d/=j,A=l.l2r(A),O=l.l2r(O),l.range=l._input.range=S<T?[A,O]:[O,A]}mL(l,d)}}}},Hl.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++){var a=n[r];if(a[t])return"g"+r}return t},Hl.clean=function(e,t){if(t._inputDomain){for(var n=!1,r=t._id,a=e._fullLayout._axisConstraintGroups,o=0;o<a.length;o++)if(a[o][r]){n=!0;break}(!n||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function mL(e,t){var n=e._inputDomain,r=rhe[e.constraintoward],a=n[0]+(n[1]-n[0])*r;e.domain=e._input.domain=[a+(n[0]-a)/t,a+(n[1]-a)/t],e.setScale()}(function(e){var t=$t,n=Dt,r=wr,a=Ge,o=Ir,i=W1,l=Kt,s=gn,u=ig,d=uL,f=bn,p=Br,g=Hl,h=g.enforce,y=g.clean,b=gg.doAutoRange,v="start",x="middle",k="end";e.layoutStyles=function(P){return a.syncOrAsync([r.doAutoMargin,S],P)};function _(P,z,H){for(var j=0;j<H.length;j++){var q=H[j][0],$=H[j][1];if(!(q[0]>=P[1]||q[1]<=P[0])&&$[0]<z[1]&&$[1]>z[0])return!0}return!1}function S(P){var z=P._fullLayout,H=z._size,j=H.p,q=f.list(P,"",!0),$,ne,te,ee,se,U;if(z._paperdiv.style({width:P._context.responsive&&z.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":z.width+"px",height:P._context.responsive&&z.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":z.height+"px"}).selectAll(".main-svg").call(s.setSize,z.width,z.height),P._context.setBackground(P,z.paper_bgcolor),e.drawMainTitle(P),d.manage(P),!z._has("cartesian"))return r.previousPromises(P);function Y(pt,Ke,Ot){var X=pt._lw/2;if(pt._id.charAt(0)==="x"){if(Ke){if(Ot==="top")return Ke._offset-j-X}else return H.t+H.h*(1-(pt.position||0))+X%1;return Ke._offset+Ke._length+j+X}if(Ke){if(Ot==="right")return Ke._offset+Ke._length+j+X}else return H.l+H.w*(pt.position||0)+X%1;return Ke._offset-j-X}for($=0;$<q.length;$++){ee=q[$];var J=ee._anchorAxis;ee._linepositions={},ee._lw=s.crispRound(P,ee.linewidth,1),ee._mainLinePosition=Y(ee,J,ee.side),ee._mainMirrorPosition=ee.mirror&&J?Y(ee,J,p.OPPOSITE_SIDE[ee.side]):null}var re=[],oe=[],he=[],ve=l.opacity(z.paper_bgcolor)===1&&l.opacity(z.plot_bgcolor)===1&&z.paper_bgcolor===z.plot_bgcolor;for(ne in z._plots)if(te=z._plots[ne],te.mainplot)te.bg&&te.bg.remove(),te.bg=void 0;else{var ge=te.xaxis.domain,xe=te.yaxis.domain,Le=te.plotgroup;if(_(ge,xe,he)){var Ue=Le.node(),Pe=te.bg=a.ensureSingle(Le,"rect","bg");Ue.insertBefore(Pe.node(),Ue.childNodes[0]),oe.push(ne)}else Le.select("rect.bg").remove(),he.push([ge,xe]),ve||(re.push(ne),oe.push(ne))}var De=z._bgLayer.selectAll(".bg").data(re);for(De.enter().append("rect").classed("bg",!0),De.exit().remove(),De.each(function(pt){z._plots[pt].bg=t.select(this)}),$=0;$<oe.length;$++)te=z._plots[oe[$]],se=te.xaxis,U=te.yaxis,te.bg&&se._offset!==void 0&&U._offset!==void 0&&te.bg.call(s.setRect,se._offset-j,U._offset-j,se._length+2*j,U._length+2*j).call(l.fill,z.plot_bgcolor).style("stroke-width",0);if(!z._hasOnlyLargeSploms)for(ne in z._plots){te=z._plots[ne],se=te.xaxis,U=te.yaxis;var je=te.clipId="clip"+z._uid+ne+"plot",qe=a.ensureSingleById(z._clips,"clipPath",je,function(pt){pt.classed("plotclip",!0).append("rect")});te.clipRect=qe.select("rect").attr({width:se._length,height:U._length}),s.setTranslate(te.plot,se._offset,U._offset);var Ee,_e;te._hasClipOnAxisFalse?(Ee=null,_e=je):(Ee=je,_e=null),s.setClipUrl(te.plot,Ee,P),te.layerClipId=_e}var we,Re,Je,it,dt,at,lt,He,Be,Ze,Ye,et,st;function nt(pt){return"M"+we+","+pt+"H"+Re}function gt(pt){return"M"+se._offset+","+pt+"h"+se._length}function Ve(pt){return"M"+pt+","+He+"V"+lt}function rt(pt){return U._shift!==void 0&&(pt+=U._shift),"M"+pt+","+U._offset+"v"+U._length}function ft(pt,Ke,Ot){if(!pt.showline||ne!==pt._mainSubplot)return"";if(!pt._anchorAxis)return Ot(pt._mainLinePosition);var X=Ke(pt._mainLinePosition);return pt.mirror&&(X+=Ke(pt._mainMirrorPosition)),X}for(ne in z._plots){te=z._plots[ne],se=te.xaxis,U=te.yaxis;var wt="M0,0";T(se,ne)&&(dt=A(se,"left",U,q),we=se._offset-(dt?j+dt:0),at=A(se,"right",U,q),Re=se._offset+se._length+(at?j+at:0),Je=Y(se,U,"bottom"),it=Y(se,U,"top"),st=!se._anchorAxis||ne!==se._mainSubplot,st&&(se.mirror==="allticks"||se.mirror==="all")&&(se._linepositions[ne]=[Je,it]),wt=ft(se,nt,gt),st&&se.showline&&(se.mirror==="all"||se.mirror==="allticks")&&(wt+=nt(Je)+nt(it)),te.xlines.style("stroke-width",se._lw+"px").call(l.stroke,se.showline?se.linecolor:"rgba(0,0,0,0)")),te.xlines.attr("d",wt);var tt="M0,0";T(U,ne)&&(Ye=A(U,"bottom",se,q),lt=U._offset+U._length+(Ye?j:0),et=A(U,"top",se,q),He=U._offset-(et?j:0),Be=Y(U,se,"left"),Ze=Y(U,se,"right"),st=!U._anchorAxis||ne!==U._mainSubplot,st&&(U.mirror==="allticks"||U.mirror==="all")&&(U._linepositions[ne]=[Be,Ze]),tt=ft(U,Ve,rt),st&&U.showline&&(U.mirror==="all"||U.mirror==="allticks")&&(tt+=Ve(Be)+Ve(Ze)),te.ylines.style("stroke-width",U._lw+"px").call(l.stroke,U.showline?U.linecolor:"rgba(0,0,0,0)")),te.ylines.attr("d",tt)}return f.makeClipPaths(P),r.previousPromises(P)}function T(P,z){return(P.ticks||P.showline)&&(z===P._mainSubplot||P.mirror==="all"||P.mirror==="allticks")}function C(P,z,H){if(!H.showline||!H._lw)return!1;if(H.mirror==="all"||H.mirror==="allticks")return!0;var j=H._anchorAxis;if(!j)return!1;var q=p.FROM_BL[z];return H.side===z?j.domain[q]===P.domain[q]:H.mirror&&j.domain[1-q]===P.domain[1-q]}function A(P,z,H,j){if(C(P,z,H))return H._lw;for(var q=0;q<j.length;q++){var $=j[q];if($._mainAxis===H._mainAxis&&C(P,z,$))return $._lw}return 0}e.drawMainTitle=function(P){var z=P._fullLayout.title,H=P._fullLayout,j=G(H),q=I(H),$=V(H,q),ne=B(H,j);if(u.draw(P,"gtitle",{propContainer:H,propName:"title.text",placeholder:H._dfltTitle.plot,attributes:{x:ne,y:$,"text-anchor":j,dy:q}}),z.text&&z.automargin){var te=t.selectAll(".gtitle"),ee=s.bBox(te.node()).height,se=R(P,z,ee);if(se>0){N(P,$,se,ee),te.attr({x:ne,y:$,"text-anchor":j,dy:Z(z.yanchor)}).call(o.positionText,ne,$);var U=(z.text.match(o.BR_TAG_ALL)||[]).length;if(U){var Y=p.LINE_SPACING*U+p.MID_SHIFT;z.y===0&&(Y=-Y),te.selectAll(".line").each(function(){var J=+this.getAttribute("dy").slice(0,-2)-Y+"em";this.setAttribute("dy",J)})}}}};function O(P,z,H,j,q){var $=z.yref==="paper"?P._fullLayout._size.h:P._fullLayout.height,ne=a.isTopAnchor(z)?j:j-q,te=H==="b"?$-ne:ne;return a.isTopAnchor(z)&&H==="t"||a.isBottomAnchor(z)&&H==="b"?!1:te<q}function F(P,z,H,j,q){var $=0;return H==="middle"&&($+=q/2),P==="t"?(H==="top"&&($+=q),$+=j-z*j):(H==="bottom"&&($+=q),$+=z*j),$}function R(P,z,H){var j=z.y,q=z.yanchor,$=j>.5?"t":"b",ne=P._fullLayout.margin[$],te=0;return z.yref==="paper"?te=H+z.pad.t+z.pad.b:z.yref==="container"&&(te=F($,j,q,P._fullLayout.height,H)+z.pad.t+z.pad.b),te>ne?te:0}function N(P,z,H,j){var q="title.automargin",$=P._fullLayout.title,ne=$.y>.5?"t":"b",te={x:$.x,y:$.y,t:0,b:0},ee={};$.yref==="paper"&&O(P,$,ne,z,j)?te[ne]=H:$.yref==="container"&&(ee[ne]=H,P._fullLayout._reservedMargin[q]=ee),r.allowAutoMargin(P,q),r.autoMargin(P,q,te)}function B(P,z){var H=P.title,j=P._size,q=0;switch(z===v?q=H.pad.l:z===k&&(q=-H.pad.r),H.xref){case"paper":return j.l+j.w*H.x+q;case"container":default:return P.width*H.x+q}}function V(P,z){var H=P.title,j=P._size,q=0;if(z==="0em"||!z?q=-H.pad.b:z===p.CAP_SHIFT+"em"&&(q=H.pad.t),H.y==="auto")return j.t/2;switch(H.yref){case"paper":return j.t+j.h-j.h*H.y+q;case"container":default:return P.height-P.height*H.y+q}}function Z(P){return P==="top"?p.CAP_SHIFT+.3+"em":P==="bottom"?"-0.3em":p.MID_SHIFT+"em"}function G(P){var z=P.title,H=x;return a.isRightAnchor(z)?H=k:a.isLeftAnchor(z)&&(H=v),H}function I(P){var z=P.title,H="0em";return a.isTopAnchor(z)?H=p.CAP_SHIFT+"em":a.isMiddleAnchor(z)&&(H=p.MID_SHIFT+"em"),H}e.doTraceStyle=function(P){var z=P.calcdata,H=[],j;for(j=0;j<z.length;j++){var q=z[j],$=q[0]||{},ne=$.trace||{},te=ne._module||{},ee=te.arraysToCalcdata;ee&&ee(q,ne);var se=te.editStyle;se&&H.push({fn:se,cd0:$})}if(H.length){for(j=0;j<H.length;j++){var U=H[j];U.fn(P,U.cd0)}i(P),e.redrawReglTraces(P)}return r.style(P),n.getComponentMethod("legend","draw")(P),r.previousPromises(P)},e.doColorBars=function(P){return n.getComponentMethod("colorbar","draw")(P),r.previousPromises(P)},e.layoutReplot=function(P){var z=P.layout;return P.layout=void 0,n.call("_doPlot",P,"",z)},e.doLegend=function(P){return n.getComponentMethod("legend","draw")(P),r.previousPromises(P)},e.doTicksRelayout=function(P){return f.draw(P,"redraw"),P._fullLayout._hasOnlyLargeSploms&&(n.subplotsRegistry.splom.updateGrid(P),i(P),e.redrawReglTraces(P)),e.drawMainTitle(P),r.previousPromises(P)},e.doModeBar=function(P){var z=P._fullLayout;d.manage(P);for(var H=0;H<z._basePlotModules.length;H++){var j=z._basePlotModules[H].updateFx;j&&j(P)}return r.previousPromises(P)},e.doCamera=function(P){for(var z=P._fullLayout,H=z._subplots.gl3d,j=0;j<H.length;j++){var q=z[H[j]],$=q._scene;$.setViewport(q)}},e.drawData=function(P){var z=P._fullLayout;i(P);for(var H=z._basePlotModules,j=0;j<H.length;j++)H[j].plot(P);return e.redrawReglTraces(P),r.style(P),n.getComponentMethod("selections","draw")(P),n.getComponentMethod("shapes","draw")(P),n.getComponentMethod("annotations","draw")(P),n.getComponentMethod("images","draw")(P),z._replotting=!1,r.previousPromises(P)},e.redrawReglTraces=function(P){var z=P._fullLayout;if(z._has("regl")){var H=P._fullData,j=[],q=[],$,ne;for(z._hasOnlyLargeSploms&&z._splomGrid.draw(),$=0;$<H.length;$++){var te=H[$];te.visible===!0&&te._length!==0&&(te.type==="splom"?z._splomScenes[te.uid].draw():te.type==="scattergl"?a.pushUnique(j,te.xaxis+te.yaxis):te.type==="scatterpolargl"&&a.pushUnique(q,te.subplot))}for($=0;$<j.length;$++)ne=z._plots[j[$]],ne._scene&&ne._scene.draw();for($=0;$<q.length;$++)ne=z[q[$]]._subplot,ne._scene&&ne._scene.draw()}},e.doAutoRangeAndConstraints=function(P){for(var z=f.list(P,"",!0),H,j={},q=0;q<z.length;q++)if(H=z[q],!j[H._id]){j[H._id]=1,y(P,H),b(P,H);var $=H._matchGroup;if($)for(var ne in $){var te=f.getFromId(P,ne);b(P,te,H.range),j[ne]=1}}h(P)},e.finalDraw=function(P){n.getComponentMethod("rangeslider","draw")(P),n.getComponentMethod("rangeselector","draw")(P)},e.drawMarginPushers=function(P){n.getComponentMethod("legend","draw")(P),n.getComponentMethod("rangeselector","draw")(P),n.getComponentMethod("sliders","draw")(P),n.getComponentMethod("updatemenus","draw")(P),n.getComponentMethod("colorbar","draw")(P)}})(Vg);var ihe=Bl.readPaths,lhe=ew,gL=Ds.clearOutlineControllers,hw=Kt,yL=gn,she=hn.arrayEditor,vL=Vl,che=vL.getPathString,bL={draw:e0,drawOne:xL,activateLastSelection:fhe};function e0(e){var t=e._fullLayout;gL(e),t._selectionLayer.selectAll("path").remove();for(var n in t._plots){var r=t._plots[n].selectionLayer;r&&r.selectAll("path").remove()}for(var a=0;a<t.selections.length;a++)xL(e,a)}function t0(e){return e._context.editSelection}function xL(e,t){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+t+'"]').remove();var n=vL.makeSelectionsOptionsAndPlotinfo(e,t),r=n.options,a=n.plotinfo;if(!r._input)return;o(e._fullLayout._selectionLayer);function o(i){var l=che(e,r),s={"data-index":t,"fill-rule":"evenodd",d:l},u=r.opacity,d="rgba(0,0,0,0)",f=r.line.color||hw.contrast(e._fullLayout.plot_bgcolor),p=r.line.width,g=r.line.dash;p||(p=5,g="solid");var h=t0(e)&&e._fullLayout._activeSelectionIndex===t;h&&(d=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var y=[],b=1;b>=0;b--){var v=i.append("path").attr(s).style("opacity",b?.1:u).call(hw.stroke,f).call(hw.fill,d).call(yL.dashLine,b?"solid":g,b?4+p:p);if(uhe(v,e,r),h){var x=she(e.layout,"selections",r);v.style({cursor:"move"});var k={element:v.node(),plotinfo:a,gd:e,editHelpers:x,isActiveSelection:!0},_=ihe(l,e);lhe(_,v,k)}else v.style("pointer-events",b?"all":"none");y[b]=v}var S=y[0],T=y[1];T.node().addEventListener("click",function(){return dhe(e,S)})}}function uhe(e,t,n){var r=n.xref+n.yref;yL.setClipUrl(e,"clip"+t._fullLayout._uid+r,t)}function dhe(e,t){if(t0(e)){var n=t.node(),r=+n.getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeSelectionIndex){mw(e);return}e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=mw,e0(e)}}}function fhe(e){if(t0(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=mw,e0(e)}}function mw(e){if(t0(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(gL(e),delete e._fullLayout._activeSelectionIndex,e0(e))}}function phe(){var e,t=0,n=!1;function r(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,o){return r("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return r("div_seg",{seg:a,pt:o}),r("chop",{seg:a,pt:o})},statusRemove:function(a){return r("pop_seg",{seg:a})},segmentUpdate:function(a){return r("seg_update",{seg:a})},segmentNew:function(a,o){return r("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return r("rem_seg",{seg:a})},tempStatus:function(a,o,i){return r("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return r("rewind",{seg:a})},status:function(a,o,i){return r("status",{seg:a,above:o,below:i})},vert:function(a){return a===n?e:(n=a,r("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),r("log",{txt:a})},reset:function(){return r("reset")},selected:function(a){return r("selected",{segs:a})},chainStart:function(a){return r("chain_start",{seg:a})},chainRemoveHead:function(a,o){return r("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return r("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return r("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return r("chain_match",{index:a})},chainClose:function(a){return r("chain_close",{index:a})},chainAddHead:function(a,o){return r("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return r("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return r("chain_con",{index1:a,index2:o})},chainReverse:function(a){return r("chain_rev",{index:a})},chainJoin:function(a,o){return r("chain_join",{index1:a,index2:o})},done:function(){return r("done")}},e}var hhe=phe;function mhe(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(n){return typeof n=="number"&&(e=n),e},pointAboveOrOnLine:function(n,r,a){var o=r[0],i=r[1],l=a[0],s=a[1],u=n[0],d=n[1];return(l-o)*(d-i)-(s-i)*(u-o)>=-e},pointBetween:function(n,r,a){var o=n[1]-r[1],i=a[0]-r[0],l=n[0]-r[0],s=a[1]-r[1],u=l*i+o*s;if(u<e)return!1;var d=i*i+s*s;return!(u-d>-e)},pointsSameX:function(n,r){return Math.abs(n[0]-r[0])<e},pointsSameY:function(n,r){return Math.abs(n[1]-r[1])<e},pointsSame:function(n,r){return t.pointsSameX(n,r)&&t.pointsSameY(n,r)},pointsCompare:function(n,r){return t.pointsSameX(n,r)?t.pointsSameY(n,r)?0:n[1]<r[1]?-1:1:n[0]<r[0]?-1:1},pointsCollinear:function(n,r,a){var o=n[0]-r[0],i=n[1]-r[1],l=r[0]-a[0],s=r[1]-a[1];return Math.abs(o*s-l*i)<e},linesIntersect:function(n,r,a,o){var i=r[0]-n[0],l=r[1]-n[1],s=o[0]-a[0],u=o[1]-a[1],d=i*u-l*s;if(Math.abs(d)<e)return!1;var f=n[0]-a[0],p=n[1]-a[1],g=(s*p-u*f)/d,h=(i*p-l*f)/d,y={alongA:0,alongB:0,pt:[n[0]+g*i,n[1]+g*l]};return g<=-e?y.alongA=-2:g<e?y.alongA=-1:g-1<=-e?y.alongA=0:g-1<e?y.alongA=1:y.alongA=2,h<=-e?y.alongB=-2:h<e?y.alongB=-1:h-1<=-e?y.alongB=0:h-1<e?y.alongB=1:y.alongB=2,y},pointInsideRegion:function(n,r){for(var a=n[0],o=n[1],i=r[r.length-1][0],l=r[r.length-1][1],s=!1,u=0;u<r.length;u++){var d=r[u][0],f=r[u][1];f-o>e!=l-o>e&&(i-d)*(o-f)/(l-f)+d-a>e&&(s=!s),i=d,l=f}return s}};return t}var ghe=mhe,yhe={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,n){for(var r=e.root,a=e.root.next;a!==null;){if(n(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}r=a,a=a.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){for(var n=e.root,r=e.root.next;r!==null&&!t(r);)n=r,r=r.next;return{before:n===e.root?null:n,after:r,insert:function(a){return a.prev=n,a.next=r,n.next=a,r!==null&&(r.prev=a),a}}}};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}},vhe=yhe,Uf=vhe;function bhe(e,t,n){function r(h,y){return{id:n?n.segmentId():-1,start:h,end:y,myFill:{above:null,below:null},otherFill:null}}function a(h,y,b){return{id:n?n.segmentId():-1,start:h,end:y,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var o=Uf.create();function i(h,y,b,v,x,k){var _=t.pointsCompare(y,x);return _!==0?_:t.pointsSame(b,k)?0:h!==v?h?1:-1:t.pointAboveOrOnLine(b,v?x:k,v?k:x)?1:-1}function l(h,y){o.insertBefore(h,function(b){var v=i(h.isStart,h.pt,y,b.isStart,b.pt,b.other.pt);return v<0})}function s(h,y){var b=Uf.node({isStart:!0,pt:h.start,seg:h,primary:y,other:null,status:null});return l(b,h.end),b}function u(h,y,b){var v=Uf.node({isStart:!1,pt:y.end,seg:y,primary:b,other:h,status:null});h.other=v,l(v,h.pt)}function d(h,y){var b=s(h,y);return u(b,h,y),b}function f(h,y){n&&n.segmentChop(h.seg,y),h.other.remove(),h.seg.end=y,h.other.pt=y,l(h.other,h.pt)}function p(h,y){var b=a(y,h.seg.end,h.seg);return f(h,y),d(b,h.primary)}function g(h,y){var b=Uf.create();function v(V,Z){var G=V.seg.start,I=V.seg.end,P=Z.seg.start,z=Z.seg.end;return t.pointsCollinear(G,P,z)?t.pointsCollinear(I,P,z)||t.pointAboveOrOnLine(I,P,z)?1:-1:t.pointAboveOrOnLine(G,P,z)?1:-1}function x(V){return b.findTransition(function(Z){var G=v(V,Z.ev);return G>0})}function k(V,Z){var G=V.seg,I=Z.seg,P=G.start,z=G.end,H=I.start,j=I.end;n&&n.checkIntersection(G,I);var q=t.linesIntersect(P,z,H,j);if(q===!1){if(!t.pointsCollinear(P,z,H)||t.pointsSame(P,j)||t.pointsSame(z,H))return!1;var $=t.pointsSame(P,H),ne=t.pointsSame(z,j);if($&&ne)return Z;var te=!$&&t.pointBetween(P,H,j),ee=!ne&&t.pointBetween(z,H,j);if($)return ee?p(Z,z):p(V,j),Z;te&&(ne||(ee?p(Z,z):p(V,j)),p(Z,P))}else q.alongA===0&&(q.alongB===-1?p(V,H):q.alongB===0?p(V,q.pt):q.alongB===1&&p(V,j)),q.alongB===0&&(q.alongA===-1?p(Z,P):q.alongA===0?p(Z,q.pt):q.alongA===1&&p(Z,z));return!1}for(var _=[];!o.isEmpty();){var S=o.getHead();if(n&&n.vert(S.pt[0]),S.isStart){let V=function(){if(C){var Z=k(S,C);if(Z)return Z}return A?k(S,A):!1};n&&n.segmentNew(S.seg,S.primary);var T=x(S),C=T.before?T.before.ev:null,A=T.after?T.after.ev:null;n&&n.tempStatus(S.seg,C?C.seg:!1,A?A.seg:!1);var O=V();if(O){if(e){var F;S.seg.myFill.below===null?F=!0:F=S.seg.myFill.above!==S.seg.myFill.below,F&&(O.seg.myFill.above=!O.seg.myFill.above)}else O.seg.otherFill=S.seg.myFill;n&&n.segmentUpdate(O.seg),S.other.remove(),S.remove()}if(o.getHead()!==S){n&&n.rewind(S.seg);continue}if(e){var F;S.seg.myFill.below===null?F=!0:F=S.seg.myFill.above!==S.seg.myFill.below,A?S.seg.myFill.below=A.seg.myFill.above:S.seg.myFill.below=h,F?S.seg.myFill.above=!S.seg.myFill.below:S.seg.myFill.above=S.seg.myFill.below}else if(S.seg.otherFill===null){var R;A?S.primary===A.primary?R=A.seg.otherFill.above:R=A.seg.myFill.above:R=S.primary?y:h,S.seg.otherFill={above:R,below:R}}n&&n.status(S.seg,C?C.seg:!1,A?A.seg:!1),S.other.status=T.insert(Uf.node({ev:S}))}else{var N=S.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(N.prev)&&b.exists(N.next)&&k(N.prev.ev,N.next.ev),n&&n.statusRemove(N.ev.seg),N.remove(),!S.primary){var B=S.seg.myFill;S.seg.myFill=S.seg.otherFill,S.seg.otherFill=B}_.push(S.seg)}o.getHead().remove()}return n&&n.done(),_}return e?{addRegion:function(h){for(var y,b=h[h.length-1],v=0;v<h.length;v++){y=b,b=h[v];var x=t.pointsCompare(y,b);x!==0&&d(r(x<0?y:b,x<0?b:y),!0)}},calculate:function(h){return g(h,!1)}}:{calculate:function(h,y,b,v){return h.forEach(function(x){d(a(x.start,x.end,x),!0)}),b.forEach(function(x){d(a(x.start,x.end,x),!1)}),g(y,v)}}}var xhe=bhe;function whe(e,t,n){var r=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(t.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}n&&n.chainStart(o);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},d=s;function f(N,B,V){return d.index=N,d.matches_head=B,d.matches_pt1=V,d===s?(d=u,!1):(d=null,!0)}for(var p=0;p<r.length;p++){var g=r[p],h=g[0];g[1];var y=g[g.length-1];if(g[g.length-2],t.pointsSame(h,i)){if(f(p,!0,!0))break}else if(t.pointsSame(h,l)){if(f(p,!0,!1))break}else if(t.pointsSame(y,i)){if(f(p,!1,!0))break}else if(t.pointsSame(y,l)&&f(p,!1,!1))break}if(d===s){r.push([i,l]),n&&n.chainNew(i,l);return}if(d===u){n&&n.chainMatch(s.index);var b=s.index,v=s.matches_pt1?l:i,x=s.matches_head,g=r[b],k=x?g[0]:g[g.length-1],_=x?g[1]:g[g.length-2],S=x?g[g.length-1]:g[0],T=x?g[g.length-2]:g[1];if(t.pointsCollinear(_,k,v)&&(x?(n&&n.chainRemoveHead(s.index,v),g.shift()):(n&&n.chainRemoveTail(s.index,v),g.pop()),k=_),t.pointsSame(S,v)){r.splice(b,1),t.pointsCollinear(T,S,k)&&(x?(n&&n.chainRemoveTail(s.index,k),g.pop()):(n&&n.chainRemoveHead(s.index,k),g.shift())),n&&n.chainClose(s.index),a.push(g);return}x?(n&&n.chainAddHead(s.index,v),g.unshift(v)):(n&&n.chainAddTail(s.index,v),g.push(v));return}function C(N){n&&n.chainReverse(N),r[N].reverse()}function A(N,B){var V=r[N],Z=r[B],G=V[V.length-1],I=V[V.length-2],P=Z[0],z=Z[1];t.pointsCollinear(I,G,P)&&(n&&n.chainRemoveTail(N,G),V.pop(),G=I),t.pointsCollinear(G,P,z)&&(n&&n.chainRemoveHead(B,P),Z.shift()),n&&n.chainJoin(N,B),r[N]=V.concat(Z),r.splice(B,1)}var O=s.index,F=u.index;n&&n.chainConnect(O,F);var R=r[O].length<r[F].length;s.matches_head?u.matches_head?R?(C(O),A(O,F)):(C(F),A(F,O)):A(F,O):u.matches_head?A(O,F):R?(C(O),A(F,O)):(C(F),A(O,F))}),a}var _he=whe;function qf(e,t,n){var r=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[o]!==0&&r.push({id:n?n.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[o]===1,below:t[o]===2},otherFill:null})}),n&&n.selected(r),r}var khe={union:function(e,t){return qf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return qf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return qf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return qf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return qf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},The=khe,She={toPolygon:function(e,t){function n(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(u){var d=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=i(o[0]),s=1;s<o.length;s++)l=e.selectDifference(e.combine(l,i(o[s])));return l}if(t.type==="Polygon")return e.polygon(n(t.coordinates));if(t.type==="MultiPolygon"){for(var r=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)r=e.selectUnion(e.combine(r,n(t.coordinates[a])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){n=e.polygon(e.segments(n));function r(g,h){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],h)}function a(g){return{region:g,children:[]}}var o=a(null);function i(g,h){for(var y=0;y<g.children.length;y++){var b=g.children[y];if(r(h,b.region)){i(b,h);return}}for(var v=a(h),y=0;y<g.children.length;y++){var b=g.children[y];r(b.region,h)&&(v.children.push(b),g.children.splice(y,1),y--)}g.children.push(v)}for(var l=0;l<n.regions.length;l++){var s=n.regions[l];s.length<3||i(o,s)}function u(g,h){for(var y=0,b=g[g.length-1][0],v=g[g.length-1][1],x=[],k=0;k<g.length;k++){var _=g[k][0],S=g[k][1];x.push([_,S]),y+=S*b-_*v,b=_,v=S}var T=y<0;return T!==h&&x.reverse(),x.push([x[0][0],x[0][1]]),x}var d=[];function f(g){var h=[u(g.region,!1)];d.push(h);for(var y=0;y<g.children.length;y++)h.push(p(g.children[y]))}function p(g){for(var h=0;h<g.children.length;h++)f(g.children[h]);return u(g.region,!0)}for(var l=0;l<o.children.length;l++)f(o.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},Ahe=She;/*
406
+ * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
407
+ * @license MIT
408
+ * @preserve Project Home: https://github.com/voidqk/polybooljs
409
+ */var Mhe=hhe,Che=ghe,wL=xhe,Ohe=_he,Wf=The,_L=Ahe,Qa=!1,Gf=Che(),ha;ha={buildLog:function(e){return e===!0?Qa=Mhe():e===!1&&(Qa=!1),Qa===!1?!1:Qa.list},epsilon:function(e){return Gf.epsilon(e)},segments:function(e){var t=wL(!0,Gf,Qa);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var n=wL(!1,Gf,Qa);return{combined:n.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Wf.union(e.combined,Qa),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Wf.intersect(e.combined,Qa),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Wf.difference(e.combined,Qa),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Wf.differenceRev(e.combined,Qa),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Wf.xor(e.combined,Qa),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Ohe(e.segments,Gf,Qa),inverted:e.inverted}},polygonFromGeoJSON:function(e){return _L.toPolygon(ha,e)},polygonToGeoJSON:function(e){return _L.fromPolygon(ha,Gf,e)},union:function(e,t){return Zf(e,t,ha.selectUnion)},intersect:function(e,t){return Zf(e,t,ha.selectIntersect)},difference:function(e,t){return Zf(e,t,ha.selectDifference)},differenceRev:function(e,t){return Zf(e,t,ha.selectDifferenceRev)},xor:function(e,t){return Zf(e,t,ha.selectXor)}};function Zf(e,t,n){var r=ha.segments(e),a=ha.segments(t),o=ha.combine(r,a),i=n(o);return ha.polygon(i)}typeof window=="object"&&(window.PolyBool=ha);var Ehe=ha,Lhe=function(e,t,n,r){var a=e[0],o=e[1],i=!1;n===void 0&&(n=0),r===void 0&&(r=t.length);for(var l=r-n,s=0,u=l-1;s<l;u=s++){var d=t[s+n][0],f=t[s+n][1],p=t[u+n][0],g=t[u+n][1],h=f>o!=g>o&&a<(p-d)*(o-f)/(g-f)+d;h&&(i=!i)}return i},kL={exports:{}},gw=Om.dot,n0=Gn.BADNUM,r0=kL.exports={};r0.tester=function(e){var t=e.slice(),n=t[0][0],r=n,a=t[0][1],o=a,i;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),i=1;i<t.length;i++)n=Math.min(n,t[i][0]),r=Math.max(r,t[i][0]),a=Math.min(a,t[i][1]),o=Math.max(o,t[i][1]);var l=!1,s;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(l=!0,s=function(g){return g[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(l=!0,s=function(g){return g[1]===t[0][1]}));function u(g,h){var y=g[0],b=g[1];return!(y===n0||y<n||y>r||b===n0||b<a||b>o||h&&s(g))}function d(g,h){var y=g[0],b=g[1];if(y===n0||y<n||y>r||b===n0||b<a||b>o)return!1;var v=t.length,x=t[0][0],k=t[0][1],_=0,S,T,C,A,O;for(S=1;S<v;S++)if(T=x,C=k,x=t[S][0],k=t[S][1],A=Math.min(T,x),!(y<A||y>Math.max(T,x)||b>Math.max(C,k)))if(b<Math.min(C,k))y!==A&&_++;else{if(x===T?O=b:O=C+(y-T)*(k-C)/(x-T),b===O)return!(S===1&&h);b<=O&&y!==A&&_++}return _%2===1}var f=!0,p=t[0];for(i=1;i<t.length;i++)if(p[0]!==t[i][0]||p[1]!==t[i][1]){f=!1;break}return{xmin:n,xmax:r,ymin:a,ymax:o,pts:t,contains:l?u:d,isRect:l,degenerate:f}},r0.isSegmentBent=function(e,t,n,r){var a=e[t],o=[e[n][0]-a[0],e[n][1]-a[1]],i=gw(o,o),l=Math.sqrt(i),s=[-o[1]/l,o[0]/l],u,d,f;for(u=t+1;u<n;u++)if(d=[e[u][0]-a[0],e[u][1]-a[1]],f=gw(d,o),f<0||f>i||Math.abs(gw(d,s))>r)return!0;return!1},r0.filter=function(e,t){var n=[e[0]],r=0,a=0;function o(l){e.push(l);var s=n.length,u=r;n.splice(a+1);for(var d=u+1;d<e.length;d++)(d===e.length-1||r0.isSegmentBent(e,u,d+1,t))&&(n.push(e[d]),n.length<s-2&&(r=d,a=n.length-1),u=d)}if(e.length>1){var i=e.pop();o(i)}return{addPt:o,raw:e,filtered:n}};var TL=kL.exports,zhe={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"},SL=Ehe,Fhe=Lhe,Kf=Dt,Ihe=gn.dashStyle,Yf=Kt,Dhe=Xi,Phe=Ki.makeEventData,Jf=Cu,Rhe=Jf.freeMode,Nhe=Jf.rectMode,Qf=Jf.drawMode,yw=Jf.openMode,vw=Jf.selectMode,AL=Vl,ML=Wg,CL=ew,OL=Ds.clearOutline,EL=Bl,bw=EL.handleEllipse,Bhe=EL.readPaths,jhe=Y1.newShapes,Vhe=CE,Hhe=bL.activateLastSelection,a0=Ge,Uhe=a0.sorterAsc,LL=TL,Xf=Nm,Xa=dr.getFromId,qhe=W1,Whe=Vg.redrawReglTraces,o0=zhe,hi=o0.MINSELECT,Ghe=LL.filter,xw=LL.tester,ww=K1,zL=ww.p2r,Zhe=ww.axValue,Khe=ww.getTransform;function _w(e){return e.subplot!==void 0}function Yhe(e,t,n,r,a){var o=!_w(r),i=Rhe(a),l=Nhe(a),s=yw(a),u=Qf(a),d=vw(a),f=a==="drawline",p=a==="drawcircle",g=f||p,h=r.gd,y=h._fullLayout,b=d&&y.newselection.mode==="immediate"&&o,v=y._zoomlayer,x=r.element.getBoundingClientRect(),k=r.plotinfo,_=Khe(k),S=t-x.left,T=n-x.top;y._calcInverseTransform(h);var C=a0.apply3DTransform(y._invTransform)(S,T);S=C[0],T=C[1];var A=y._invScaleX,O=y._invScaleY,F=S,R=T,N="M"+S+","+T,B=r.xaxes[0],V=r.yaxes[0],Z=B._length,G=V._length,I=e.altKey&&!(Qf(a)&&s),P,z,H,j,q,$,ne;IL(e,h,r),i&&(P=Ghe([[S,T]],o0.BENDPX));var te=v.selectAll("path.select-outline-"+k.id).data([1]),ee=u?y.newshape:y.newselection;u&&(r.hasText=ee.label.text||ee.label.texttemplate);var se=u&&!s?ee.fillcolor:"rgba(0,0,0,0)",U=ee.line.color||(o?Yf.contrast(h._fullLayout.plot_bgcolor):"#7f7f7f");te.enter().append("path").attr("class","select-outline select-outline-"+k.id).style({opacity:u?ee.opacity/2:1,"stroke-dasharray":Ihe(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(Yf.stroke,U).call(Yf.fill,se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",N+"Z");var Y=v.append("path").attr("class","zoombox-corners").style({fill:Yf.background,stroke:Yf.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&r.hasText){var J=v.select(".label-temp");J.empty()&&(J=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var re=y._uid+o0.SELECTID,oe=[],he=i0(h,r.xaxes,r.yaxes,r.subplot);b&&!e.shiftKey&&(r._clearSubplotSelections=function(){if(o){var ge=B._id,xe=V._id;VL(h,ge,xe,he);for(var Le=(h.layout||{}).selections||[],Ue=[],Pe=!1,De=0;De<Le.length;De++){var je=y.selections[De];je.xref!==ge||je.yref!==xe?Ue.push(Le[De]):Pe=!0}Pe&&(h._fullLayout._noEmitSelectedAtStart=!0,Kf.call("_guiRelayout",h,{selections:Ue}))}});var ve=cme(r);r.moveFn=function(ge,xe){r._clearSubplotSelections&&(r._clearSubplotSelections(),r._clearSubplotSelections=void 0),F=Math.max(0,Math.min(Z,A*ge+S)),R=Math.max(0,Math.min(G,O*xe+T));var Le=Math.abs(F-S),Ue=Math.abs(R-T);if(l){var Pe,De,je;if(d){var qe=y.selectdirection;switch(qe==="any"?Ue<Math.min(Le*.6,hi)?Pe="h":Le<Math.min(Ue*.6,hi)?Pe="v":Pe="d":Pe=qe,Pe){case"h":De=p?G/2:0,je=G;break;case"v":De=p?Z/2:0,je=Z;break}}if(u)switch(y.newshape.drawdirection){case"vertical":Pe="h",De=p?G/2:0,je=G;break;case"horizontal":Pe="v",De=p?Z/2:0,je=Z;break;case"ortho":Le<Ue?(Pe="h",De=T,je=R):(Pe="v",De=S,je=F);break;default:Pe="d"}Pe==="h"?(j=g?bw(p,[F,De],[F,je]):[[S,De],[S,je],[F,je],[F,De]],j.xmin=g?F:Math.min(S,F),j.xmax=g?F:Math.max(S,F),j.ymin=Math.min(De,je),j.ymax=Math.max(De,je),Y.attr("d","M"+j.xmin+","+(T-hi)+"h-4v"+2*hi+"h4ZM"+(j.xmax-1)+","+(T-hi)+"h4v"+2*hi+"h-4Z")):Pe==="v"?(j=g?bw(p,[De,R],[je,R]):[[De,T],[De,R],[je,R],[je,T]],j.xmin=Math.min(De,je),j.xmax=Math.max(De,je),j.ymin=g?R:Math.min(T,R),j.ymax=g?R:Math.max(T,R),Y.attr("d","M"+(S-hi)+","+j.ymin+"v-4h"+2*hi+"v4ZM"+(S-hi)+","+(j.ymax-1)+"v4h"+2*hi+"v-4Z")):Pe==="d"&&(j=g?bw(p,[S,T],[F,R]):[[S,T],[S,R],[F,R],[F,T]],j.xmin=Math.min(S,F),j.xmax=Math.max(S,F),j.ymin=Math.min(T,R),j.ymax=Math.max(T,R),Y.attr("d","M0,0Z"))}else i&&(P.addPt([F,R]),j=P.filtered);if(r.selectionDefs&&r.selectionDefs.length?(H=RL(r.mergedPolygons,j,I),j.subtract=I,z=Tw(r.selectionDefs.concat([j]))):(H=[j],z=xw(j)),CL(BL(H,s),te,r),d){var Ee=Sw(h,!1),_e=Ee.eventData?Ee.eventData.points.slice():[];Ee=Sw(h,!1,z,he,r),z=Ee.selectionTesters,ne=Ee.eventData;var we;P?we=P.filtered:we=UL(H),Xf.throttle(re,o0.SELECTDELAY,function(){oe=jL(z,he);for(var Re=oe.slice(),Je=0;Je<_e.length;Je++){for(var it=_e[Je],dt=!1,at=0;at<Re.length;at++)if(Re[at].curveNumber===it.curveNumber&&Re[at].pointNumber===it.pointNumber){dt=!0;break}dt||Re.push(it)}Re.length&&(ne||(ne={}),ne.points=Re),ve(ne,we),ume(h,ne)})}},r.clickFn=function(ge,xe){if(Y.remove(),h._fullLayout._activeShapeIndex>=0){h._fullLayout._deactivateShape(h);return}if(!u){var Le=y.clickmode;Xf.done(re).then(function(){if(Xf.clear(re),ge===2){for(te.remove(),q=0;q<he.length;q++)$=he[q],$._module.selectPoints($,!1);if(ep(h,he),$f(r),Mw(h),he.length){var Ue=he[0].xaxis,Pe=he[0].yaxis;if(Ue&&Pe){for(var De=[],je=h._fullLayout.selections,qe=0;qe<je.length;qe++){var Ee=je[qe];Ee&&(Ee.xref!==Ue._id||Ee.yref!==Pe._id)&&De.push(Ee)}De.length<je.length&&(h._fullLayout._noEmitSelectedAtStart=!0,Kf.call("_guiRelayout",h,{selections:De}))}}}else Le.indexOf("select")>-1&&FL(xe,h,r.xaxes,r.yaxes,r.subplot,r,te),Le==="event"&&tp(h,void 0);Dhe.click(h,xe,k.id)}).catch(a0.error)}},r.doneFn=function(){Y.remove(),Xf.done(re).then(function(){Xf.clear(re),!b&&j&&r.selectionDefs&&(j.subtract=I,r.selectionDefs.push(j),r.mergedPolygons.length=0,[].push.apply(r.mergedPolygons,H)),(b||u)&&$f(r,b),r.doneFnCompleted&&r.doneFnCompleted(oe),d&&tp(h,ne)}).catch(a0.error)}}function FL(e,t,n,r,a,o,i){var l=t._hoverdata,s=t._fullLayout,u=s.clickmode,d=u.indexOf("event")>-1,f=[],p,g,h,y,b,v,x,k,_,S;if(eme(l)){IL(e,t,o),p=i0(t,n,r,a);var T=tme(l,p),C=T.pointNumbers.length>0;if(C?nme(p,T):rme(p)&&(x=PL(T))){for(i&&i.remove(),S=0;S<p.length;S++)g=p[S],g._module.selectPoints(g,!1);ep(t,p),$f(o),d&&Mw(t)}else{k=e.shiftKey&&(x!==void 0?x:PL(T)),h=Jhe(T.pointNumber,T.searchInfo,k);var A=o.selectionDefs.concat([h]);for(y=Tw(A),S=0;S<p.length;S++)if(b=p[S]._module.selectPoints(p[S],y),v=NL(b,p[S]),f.length)for(var O=0;O<v.length;O++)f.push(v[O]);else f=v;if(_={points:f},ep(t,p,_),h&&o&&o.selectionDefs.push(h),i){var F=o.mergedPolygons,R=yw(o.dragmode);CL(BL(F,R),i,o)}d&&tp(t,_)}}}function Jhe(e,t,n){return{pointNumber:e,searchInfo:t,subtract:!!n}}function kw(e){return"pointNumber"in e&&"searchInfo"in e}function Qhe(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,n,r,a){var o=e.searchInfo.cd[0].trace._expandedIndex,i=a.cd[0].trace._expandedIndex;return i===o&&r===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function Tw(e){if(!e.length)return;for(var t=[],n=kw(e[0])?0:e[0][0][0],r=n,a=kw(e[0])?0:e[0][0][1],o=a,i=0;i<e.length;i++)if(kw(e[i]))t.push(Qhe(e[i]));else{var l=xw(e[i]);l.subtract=!!e[i].subtract,t.push(l),n=Math.min(n,l.xmin),r=Math.max(r,l.xmax),a=Math.min(a,l.ymin),o=Math.max(o,l.ymax)}function s(u,d,f,p){for(var g=!1,h=0;h<t.length;h++)t[h].contains(u,d,f,p)&&(g=!t[h].subtract);return g}return{xmin:n,xmax:r,ymin:a,ymax:o,pts:[],contains:s,isRect:!1,degenerate:!1}}function IL(e,t,n){var r=t._fullLayout,a=n.plotinfo,o=n.dragmode,i=r._lastSelectedSubplot&&r._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(Qf(o)&&yw(o));i&&l&&a.selection&&a.selection.selectionDefs&&!n.selectionDefs?(n.selectionDefs=a.selection.selectionDefs,n.mergedPolygons=a.selection.mergedPolygons):(!l||!a.selection)&&$f(n),i||(OL(t),r._lastSelectedSubplot=a.id)}function Xhe(e){return e._fullLayout._activeShapeIndex>=0}function $he(e){return e._fullLayout._activeSelectionIndex>=0}function $f(e,t){var n=e.dragmode,r=e.plotinfo,a=e.gd;Xhe(a)&&a._fullLayout._deactivateShape(a),$he(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Qf(n),s=vw(n);if(l||s){var u=i.selectAll(".select-outline-"+r.id);if(u&&a._fullLayout._outlining){var d;l&&(d=jhe(u,e)),d&&Kf.call("_guiRelayout",a,{shapes:d});var f;s&&!_w(e)&&(f=Vhe(u,e)),f&&(a._fullLayout._noEmitSelectedAtStart=!0,Kf.call("_guiRelayout",a,{selections:f}).then(function(){t&&Hhe(a)})),a._fullLayout._outlining=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function DL(e){return e._id}function i0(e,t,n,r){if(!e.calcdata)return[];var a=[],o=t.map(DL),i=n.map(DL),l,s,u;for(u=0;u<e.calcdata.length;u++)if(l=e.calcdata[u],s=l[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(_w({subplot:r})&&(s.subplot===r||s.geo===r))a.push(l0(s._module,l,t[0],n[0]));else if(s.type==="splom"){if(s._xaxes[o[0]]&&s._yaxes[i[0]]){var d=l0(s._module,l,t[0],n[0]);d.scene=e._fullLayout._splomScenes[s.uid],a.push(d)}}else if(s.type==="sankey"){var f=l0(s._module,l,t[0],n[0]);a.push(f)}else{if(o.indexOf(s.xaxis)===-1||i.indexOf(s.yaxis)===-1)continue;a.push(l0(s._module,l,Xa(e,s.xaxis),Xa(e,s.yaxis)))}return a}function l0(e,t,n,r){return{_module:e,cd:t,xaxis:n,yaxis:r}}function eme(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function tme(e,t){var n=e[0],r=-1,a=[],o,i;for(i=0;i<t.length;i++)if(o=t[i],n.fullData._expandedIndex===o.cd[0].trace._expandedIndex){if(n.hoverOnBox===!0)break;n.pointNumber!==void 0?r=n.pointNumber:n.binNumber!==void 0&&(r=n.binNumber,a=n.pointNumbers);break}return{pointNumber:r,pointNumbers:a,searchInfo:o}}function PL(e){var t=e.searchInfo.cd[0].trace,n=e.pointNumber,r=e.pointNumbers,a=r.length>0,o=a?r[0]:n;return t.selectedpoints?t.selectedpoints.indexOf(o)>-1:!1}function nme(e,t){var n=[],r,a,o,i;for(i=0;i<e.length;i++)r=e[i],r.cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&n.push(r);if(n.length===1&&(o=n[0]===t.searchInfo,o&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(i=0;i<t.pointNumbers.length;i++)if(a.selectedpoints.indexOf(t.pointNumbers[i])<0)return!1;return!0}return!1}function rme(e){var t=0,n,r,a;for(a=0;a<e.length;a++)if(n=e[a],r=n.cd[0].trace,r.selectedpoints&&(r.selectedpoints.length>1||(t+=r.selectedpoints.length,t>1)))return!1;return t===1}function ep(e,t,n){var r;for(r=0;r<t.length;r++){var a=t[r].cd[0].trace._fullInput,o=e._fullLayout._tracePreGUI[a.uid]||{};o.selectedpoints===void 0&&(o.selectedpoints=a._input.selectedpoints||null)}var i;if(n){var l=n.points||[];for(r=0;r<t.length;r++)i=t[r].cd[0].trace,i._input.selectedpoints=i._fullInput.selectedpoints=[],i._fullInput!==i&&(i.selectedpoints=[]);for(var s=0;s<l.length;s++){var u=l[s],d=u.data,f=u.fullData,p=u.pointIndex,g=u.pointIndices;g?([].push.apply(d.selectedpoints,g),i._fullInput!==i&&[].push.apply(f.selectedpoints,g)):(d.selectedpoints.push(p),i._fullInput!==i&&f.selectedpoints.push(p))}}else for(r=0;r<t.length;r++)i=t[r].cd[0].trace,delete i.selectedpoints,delete i._input.selectedpoints,i._fullInput!==i&&delete i._fullInput.selectedpoints;ame(e,t)}function ame(e,t){for(var n=!1,r=0;r<t.length;r++){var a=t[r],o=a.cd;Kf.traceIs(o[0].trace,"regl")&&(n=!0);var i=a._module,l=i.styleOnSelect||i.style;l&&(l(e,o,o[0].node3),o[0].nodeRangePlot3&&l(e,o,o[0].nodeRangePlot3))}n&&(qhe(e),Whe(e))}function RL(e,t,n){for(var r=n?SL.difference:SL.union,a=r({regions:e},{regions:[t]}),o=a.regions.reverse(),i=0;i<o.length;i++){var l=o[i];l.subtract=Aw(l,o.slice(0,i))}return o}function NL(e,t){if(Array.isArray(e))for(var n=t.cd,r=t.cd[0].trace,a=0;a<e.length;a++)e[a]=Phe(e[a],r,n);return e}function BL(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var a=0;a<e[r].length;a++){n[r][a]=[],n[r][a][0]=a?"L":"M";for(var o=0;o<e[r][a].length;o++)n[r][a].push(e[r][a][o])}t||n[r].push(["Z",n[r][0][1],n[r][0][2]])}return n}function jL(e,t){for(var n=[],r,a,o=0;o<t.length;o++){var i=t[o];a=i._module.selectPoints(i,e),r=NL(a,i),n=n.concat(r)}return n}function Sw(e,t,n,r,a){var o=!!r,i,l,s;a&&(i=a.plotinfo,l=a.xaxes[0]._id,s=a.yaxes[0]._id);var u=[],d=[],f=HL(e),p=e._fullLayout;if(i){var g=p._zoomlayer,h=p.dragmode,y=Qf(h),b=vw(h);if(y||b){var v=Xa(e,l,"x"),x=Xa(e,s,"y");if(v&&x){var k=g.selectAll(".select-outline-"+i.id);if(k&&e._fullLayout._outlining&&k.length){for(var _=k[0][0],S=_.getAttribute("d"),T=Bhe(S,e,i),C=[],A=0;A<T.length;A++){for(var O=T[A],F=[],R=0;R<O.length;R++)F.push([Ul(v,O[R][1]),Ul(x,O[R][2])]);F.xref=l,F.yref=s,F.subtract=Aw(F,C),C.push(F)}f=f.concat(C)}}}}var N=l&&s?[l+s]:p._subplots.cartesian;ome(e);for(var B={},V=0;V<N.length;V++){var Z=N[V],G=Z.indexOf("y"),I=Z.slice(0,G),P=Z.slice(G),z=l&&s?n:void 0;if(z=lme(f,I,P,z),z){var H=r;if(!o){var j=Xa(e,I,"x"),q=Xa(e,P,"y");H=i0(e,[j],[q],Z);for(var $=0;$<H.length;$++){var ne=H[$],te=ne.cd[0],ee=te.trace;if(ne._module.name==="scattergl"&&!te.t.xpx){var se=ee.x,U=ee.y,Y=ee._length;te.t.xpx=[],te.t.ypx=[];for(var J=0;J<Y;J++)te.t.xpx[J]=j.c2p(se[J]),te.t.ypx[J]=q.c2p(U[J])}ne._module.name==="splom"&&(B[ee.uid]||(B[ee.uid]=!0))}}var re=jL(z,H);u=u.concat(re),d=d.concat(H)}}var oe={points:u};ep(e,d,oe);var he=p.clickmode,ve=he.indexOf("event")>-1&&t;if(!i&&t){var ge=HL(e,!0);if(ge.length){var xe=ge[0].xref,Le=ge[0].yref;if(xe&&Le){var Ue=UL(ge),Pe=qL([Xa(e,xe,"x"),Xa(e,Le,"y")]);Pe(oe,Ue)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ve&&tp(e,oe),p._reselect=!1}if(!i&&p._deselect){var De=p._deselect;l=De.xref,s=De.yref,ime(l,s,d)||VL(e,l,s,r),ve&&(oe.points.length?tp(e,oe):Mw(e)),p._deselect=!1}return{eventData:oe,selectionTesters:n}}function ome(e){var t=e.calcdata;if(t)for(var n=0;n<t.length;n++){var r=t[n][0],a=r.trace,o=e._fullLayout._splomScenes;if(o){var i=o[a.uid];i&&(i.selectBatch=[])}}}function ime(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];if(a.xaxis&&a.xaxis._id===e&&a.yaxis&&a.yaxis._id===t)return!0}return!1}function VL(e,t,n,r){r=i0(e,[Xa(e,t,"x")],[Xa(e,n,"y")],t+n);for(var a=0;a<r.length;a++){var o=r[a];o._module.selectPoints(o,!1)}ep(e,r)}function lme(e,t,n,r){for(var a,o=0;o<e.length;o++){var i=e[o];if(!(t!==i.xref||n!==i.yref))if(a){var l=!!i.subtract;a=RL(a,i,l),r=Tw(a)}else a=[i],r=xw(i)}return r}function HL(e,t){for(var n=[],r=e._fullLayout,a=r.selections,o=a.length,i=0;i<o;i++)if(!(t&&i!==r._activeSelectionIndex)){var l=a[i];if(l){var s=l.xref,u=l.yref,d=Xa(e,s,"x"),f=Xa(e,u,"y"),p,g,h,y,b;if(l.type==="rect"){b=[];var v=Ul(d,l.x0),x=Ul(d,l.x1),k=Ul(f,l.y0),_=Ul(f,l.y1);b=[[v,k],[v,_],[x,_],[x,k]],p=Math.min(v,x),g=Math.max(v,x),h=Math.min(k,_),y=Math.max(k,_),b.xmin=p,b.xmax=g,b.ymin=h,b.ymax=y,b.xref=s,b.yref=u,b.subtract=!1,b.isRect=!0,n.push(b)}else if(l.type==="path")for(var S=l.path.split("Z"),T=[],C=0;C<S.length;C++){var A=S[C];if(A){A+="Z";var O=AL.extractPathCoords(A,ML.paramIsX,"raw"),F=AL.extractPathCoords(A,ML.paramIsY,"raw");p=1/0,g=-1/0,h=1/0,y=-1/0,b=[];for(var R=0;R<O.length;R++){var N=Ul(d,O[R]),B=Ul(f,F[R]);b.push([N,B]),p=Math.min(N,p),g=Math.max(N,g),h=Math.min(B,h),y=Math.max(B,y)}b.xmin=p,b.xmax=g,b.ymin=h,b.ymax=y,b.xref=s,b.yref=u,b.subtract=Aw(b,T),T.push(b),n.push(b)}}}}return n}function Aw(e,t){for(var n=!1,r=0;r<t.length;r++)for(var a=t[r],o=0;o<e.length;o++)if(Fhe(e[o],a)){n=!n;break}return n}function Ul(e,t){return e.type==="date"&&(t=t.replace("_"," ")),e.type==="log"?e.c2p(t):e.r2p(t,null,e.calendar)}function UL(e){for(var t=e.length,n=[],r=0;r<t;r++){var a=e[r];n=n.concat(a),n=n.concat([a[0]])}return sme(n)}function sme(e){return e.isRect=e.length===5&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1])),e}function qL(e){return function(t,n){for(var r,a,o=0;o<e.length;o++){var i=e[o],l=i._id,s=l.charAt(0);if(n.isRect){r||(r={});var u=n[s+"min"],d=n[s+"max"];u!==void 0&&d!==void 0&&(r[l]=[zL(i,u),zL(i,d)].sort(Uhe))}else a||(a={}),a[l]=n.map(Zhe(i))}r&&(t.range=r),a&&(t.lassoPoints=a)}}function cme(e){var t=e.plotinfo;return t.fillRangeItems||qL(e.xaxes.concat(e.yaxes))}function ume(e,t){e.emit("plotly_selecting",t)}function tp(e,t){t&&(t.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",t)}function Mw(e){e.emit("plotly_deselect",null)}var dme={reselect:Sw,prepSelect:Yhe,clearOutline:OL,clearSelectionsCache:$f,selectOnClick:FL},WL=[{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}],s0={axisRefDescription:function(e,t,n){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",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+n+"). 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",t,"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",t,"and the",n,"of the domain of the","second",e,"axis."].join(" ")}},GL=WL,ZL=Fr,c0=Jr,fme=hn.templatedArray,u0=s0;function KL(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function YL(e,t,n){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",n,"to",t,"("+t,"to",n+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}var np=fme("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (<br>), bold (<b></b>), italics (<i></i>),","hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub>","<span> are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:ZL({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:GL.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:GL.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[YL("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[YL("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c0.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",u0.axisRefDescription("x","left","right"),KL("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c0.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",u0.axisRefDescription("y","bottom","top"),KL("y")].join(" ")},xref:{valType:"enumerated",values:["paper",c0.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",u0.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",c0.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",u0.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:ZL({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}}),Cw={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]},JL=Qm.axisHoverFormat,pme=So.texttemplateAttrs,hme=So.hovertemplateAttrs,QL=Ef,mme=Fr,gme=ni.dash,yme=ni.pattern,vme=gn,XL=Cw,Ow=Zn.extendFlat;function $L(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M<n>* on the "+e+" axis.","Special values in the form of *M<n>* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function ez(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function tz(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}var Qs={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:$L("x"),yperiod:$L("y"),xperiod0:ez("x0"),yperiod0:ez("y0"),xperiodalignment:tz("x"),yperiodalignment:tz("y"),xhoverformat:JL("x"),yhoverformat:JL("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant in the following cases:","1. when `scattermode` is set to *group*.","2. when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:pme({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+XL.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:hme({},{keys:XL.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:Ow({},gme,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot",description:["Sets the line back off from the end point of the nth line segment (in px).","This option is useful e.g. to avoid overlap with arrowhead markers.","With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*."].join(" ")},simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},fillpattern:yme,marker:Ow({symbol:{valType:"enumerated",values:vme.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1,description:["Sets the marker angle in respect to `angleref`."].join(" ")},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1,description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen."].join(" ")},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0,description:["Moves the marker away from the data point in the direction of `angle` (in px).","This can be useful for example if you have another marker at this","location and you want to point an arrowhead marker at it."].join(" ")},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:Ow({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},QL("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},QL("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},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",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:mme({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})},nz=np,rz=Qs.line,bme=ni.dash,d0=Zn.extendFlat,xme=Gi.overrideAll,wme=hn.templatedArray,az=s0,oz=xme(wme("selection",{type:{valType:"enumerated",values:["rect","path"],description:["Specifies the selection type to be drawn.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and (`x0`,`y1`).","If *path*, draw a custom SVG path using `path`."].join(" ")},xref:d0({},nz.xref,{description:["Sets the selection's x coordinate axis.",az.axisRefDescription("x","left","right")].join(" ")}),yref:d0({},nz.yref,{description:["Sets the selection's x coordinate axis.",az.axisRefDescription("y","bottom","top")].join(" ")}),x0:{valType:"any",description:"Sets the selection's starting x position."},x1:{valType:"any",description:"Sets the selection's end x position."},y0:{valType:"any",description:"Sets the selection's starting y position."},y1:{valType:"any",description:"Sets the selection's end y position."},path:{valType:"string",editType:"arraydraw",description:["For `type` *path* - a valid SVG path similar to `shapes.path` in data coordinates.","Allowed segments are: M, L and Z."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw",description:"Sets the opacity of the selection."},line:{color:rz.color,width:d0({},rz.width,{min:1,dflt:1}),dash:d0({},bme,{dflt:"dot"})}}),"arraydraw","from-root"),iz=Ge,f0=bn,_me=li,kme=oz,lz=Vl,Tme=function(e,t){_me(e,t,{name:"selections",handleItemDefaults:Sme});for(var n=t.selections,r=0;r<n.length;r++){var a=n[r];a&&a.path===void 0&&(a.x0===void 0||a.x1===void 0||a.y0===void 0||a.y1===void 0)&&(t.selections[r]=null)}};function Sme(e,t,n){function r(T,C){return iz.coerce(e,t,kme,T,C)}var a=r("path"),o=a?"path":"rect",i=r("type",o),l=i!=="path";l&&delete t.path,r("opacity"),r("line.color"),r("line.width"),r("line.dash");for(var s=["x","y"],u=0;u<2;u++){var d=s[u],f={_fullLayout:n},p,g,h,y=f0.coerceRef(e,t,f,d);if(p=f0.getFromId(f,y),p._selectionIndices.push(t._index),h=lz.rangeToShapePosition(p),g=lz.shapePositionToRange(p),l){var b=d+"0",v=d+"1",x=e[b],k=e[v];e[b]=g(e[b],!0),e[v]=g(e[v],!0),f0.coercePosition(t,f,r,y,b),f0.coercePosition(t,f,r,y,v);var _=t[b],S=t[v];_!==void 0&&S!==void 0&&(t[b]=h(_),t[v]=h(S),e[b]=x,e[v]=k)}}l&&iz.noneOrAll(e,t,["x0","x1","y0","y1"])}var Ame=function(e,t,n){n("newselection.mode");var r=n("newselection.line.width");r&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")},Mme=Dt,sz=Ge,cz=dr,p0=function(e){return function(t,n){var r=t[e];if(Array.isArray(r))for(var a=Mme.subplotsRegistry.cartesian,o=a.idRegex,i=n._subplots,l=i.xaxis,s=i.yaxis,u=i.cartesian,d=n._has("cartesian")||n._has("gl2d"),f=0;f<r.length;f++){var p=r[f];if(sz.isPlainObject(p)){var g=cz.cleanId(p.xref,"x",!1),h=cz.cleanId(p.yref,"y",!1),y=o.x.test(g),b=o.y.test(h);if(y||b){d||sz.pushUnique(n._basePlotModules,a);var v=!1;y&&l.indexOf(g)===-1&&(l.push(g),v=!0),b&&s.indexOf(h)===-1&&(s.push(h),v=!0),v&&y&&b&&u.push(g+h)}}}}},uz=bL,rp=dme,ap={moduleType:"component",name:"selections",layoutAttributes:oz,supplyLayoutDefaults:Tme,supplyDrawNewSelectionDefaults:Ame,includeBasePlot:p0("selections"),draw:uz.draw,drawOne:uz.drawOne,reselect:rp.reselect,prepSelect:rp.prepSelect,clearOutline:rp.clearOutline,clearSelectionsCache:rp.clearSelectionsCache,selectOnClick:rp.selectOnClick},Ew=$t,$a=Ge,dz=$a.numberFormat,Cme=ko,Ome=T6,h0=Dt,fz=$a.strTranslate,Eme=Ir,pz=Kt,ql=gn,Lme=Xi,hz=bn,zme=qs,Fme=di,mz=Cu,m0=mz.selectingOrDrawing,Ime=mz.freeMode,Dme=Br.FROM_TL,Pme=W1,Rme=Vg.redrawReglTraces,Nme=wr,Lw=dr.getFromId,Bme=ap.prepSelect,jme=ap.clearOutline,Vme=ap.selectOnClick,zw=dL,Fw=Jr,gz=Fw.MINDRAG,$r=Fw.MINZOOM,yz=!0;function Hme(e,t,n,r,a,o,i,l){var s=e._fullLayout._zoomlayer,u=i+l==="nsew",d=(i+l).length===1,f,p,g,h,y,b,v,x,k,_,S,T,C,A,O,F,R,N,B,V,Z,G,I;n+=t.yaxis._shift;function P(){if(f=t.xaxis,p=t.yaxis,k=f._length,_=p._length,v=f._offset,x=p._offset,g={},g[f._id]=f,h={},h[p._id]=p,i&&l)for(var He=t.overlays,Be=0;Be<He.length;Be++){var Ze=He[Be].xaxis;g[Ze._id]=Ze;var Ye=He[Be].yaxis;h[Ye._id]=Ye}y=Oz(g),b=Oz(h),C=xz(y,l),A=xz(b,i),O=!A&&!C,T=Mz(e,e._fullLayout._axisMatchGroups,g,h),S=Mz(e,e._fullLayout._axisConstraintGroups,g,h,T);var et=S.isSubplotConstrained||T.isSubplotConstrained;F=l||et,R=i||et;var st=e._fullLayout;N=st._has("scattergl"),B=st._has("splom"),V=st._has("svg")}P();var z=Wme(A+C,e._fullLayout.dragmode,u),H=bz(t,i+l+"drag",z,n,r,a,o);if(O&&!u)return H.onmousedown=null,H.style.pointerEvents="none",H;var j={element:H,gd:e,plotinfo:t};j.prepFn=function(He,Be,Ze){var Ye=j.dragmode,et=e._fullLayout.dragmode;et!==Ye&&(j.dragmode=et),P(),G=e._fullLayout._invScaleX,I=e._fullLayout._invScaleY,O||(u?He.shiftKey?et==="pan"?et="zoom":m0(et)||(et="pan"):He.ctrlKey&&(et="pan"):et="pan"),Ime(et)?j.minDrag=1:j.minDrag=void 0,m0(et)?(j.xaxes=y,j.yaxes=b,Bme(He,Be,Ze,j,et)):(j.clickFn=$,m0(Ye)&&q(),O||(et==="zoom"?(j.moveFn=ge,j.doneFn=Le,j.minDrag=1,ve(He,Be,Ze)):et==="pan"&&(j.moveFn=Ee,j.doneFn=Je))),e._fullLayout._redrag=function(){var st=e._dragdata;if(st&&st.element===H){var nt=e._fullLayout.dragmode;m0(nt)||(P(),it([0,0,k,_]),j.moveFn(st.dx,st.dy))}}};function q(){j.plotinfo.selection=!1,jme(e)}function $(He,Be){var Ze=j.gd;if(Ze._fullLayout._activeShapeIndex>=0){Ze._fullLayout._deactivateShape(Ze);return}var Ye=Ze._fullLayout.clickmode;if(Dw(Ze),He===2&&!d&&Re(),u)Ye.indexOf("select")>-1&&Vme(Be,Ze,y,b,t.id,j),Ye.indexOf("event")>-1&&Lme.click(Ze,Be,t.id);else if(He===1&&d){var et=i?p:f,st=i==="s"||l==="w"?0:1,nt=et._name+".range["+st+"]",gt=Ume(et,st),Ve="left",rt="middle";if(et.fixedrange)return;i?(rt=i==="n"?"top":"bottom",et.side==="right"&&(Ve="right")):l==="e"&&(Ve="right"),Ze._context.showAxisRangeEntryBoxes&&Ew.select(H).call(Eme.makeEditable,{gd:Ze,immediate:!0,background:Ze._fullLayout.paper_bgcolor,text:String(gt),fill:et.tickfont?et.tickfont.color:"#444",horizontalAlign:Ve,verticalAlign:rt}).on("edit",function(ft){var wt=et.d2r(ft);wt!==void 0&&h0.call("_guiRelayout",Ze,nt,wt)})}}Fme.init(j);var ne,te,ee,se,U,Y,J,re,oe,he;function ve(He,Be,Ze){var Ye=H.getBoundingClientRect();ne=Be-Ye.left,te=Ze-Ye.top,e._fullLayout._calcInverseTransform(e);var et=$a.apply3DTransform(e._fullLayout._invTransform)(ne,te);ne=et[0],te=et[1],ee={l:ne,r:ne,w:0,t:te,b:te,h:0},se=e._hmpixcount?e._hmlumcount/e._hmpixcount:Cme(e._fullLayout.plot_bgcolor).getLuminance(),U="M0,0H"+k+"V"+_+"H0V0",Y=!1,J="xy",he=!1,re=_z(s,se,v,x,U),oe=kz(s,v,x)}function ge(He,Be){if(e._transitioningWithDuration)return!1;var Ze=Math.max(0,Math.min(k,G*He+ne)),Ye=Math.max(0,Math.min(_,I*Be+te)),et=Math.abs(Ze-ne),st=Math.abs(Ye-te);ee.l=Math.min(ne,Ze),ee.r=Math.max(ne,Ze),ee.t=Math.min(te,Ye),ee.b=Math.max(te,Ye);function nt(){J="",ee.r=ee.l,ee.t=ee.b,oe.attr("d","M0,0Z")}if(S.isSubplotConstrained)et>$r||st>$r?(J="xy",et/k>st/_?(st=et*_/k,te>Ye?ee.t=te-st:ee.b=te+st):(et=st*k/_,ne>Ze?ee.l=ne-et:ee.r=ne+et),oe.attr("d",g0(ee))):nt();else if(T.isSubplotConstrained)if(et>$r||st>$r){J="xy";var gt=Math.min(ee.l/k,(_-ee.b)/_),Ve=Math.max(ee.r/k,(_-ee.t)/_);ee.l=gt*k,ee.r=Ve*k,ee.b=(1-gt)*_,ee.t=(1-Ve)*_,oe.attr("d",g0(ee))}else nt();else!A||st<Math.min(Math.max(et*.6,gz),$r)?et<gz||!C?nt():(ee.t=0,ee.b=_,J="x",oe.attr("d",Gme(ee,te))):!C||et<Math.min(st*.6,$r)?(ee.l=0,ee.r=k,J="y",oe.attr("d",Zme(ee,ne))):(J="xy",oe.attr("d",g0(ee)));ee.w=ee.r-ee.l,ee.h=ee.b-ee.t,J&&(he=!0),e._dragged=he,Tz(re,oe,ee,U,Y,se),xe(),e.emit("plotly_relayouting",Z),Y=!0}function xe(){Z={},(J==="xy"||J==="x")&&(Iw(y,ee.l/k,ee.r/k,Z,S.xaxes),_e("x",Z)),(J==="xy"||J==="y")&&(Iw(b,(_-ee.b)/_,(_-ee.t)/_,Z,S.yaxes),_e("y",Z))}function Le(){xe(),Dw(e),Je(),Az(e)}var Ue=[0,0,k,_],Pe=null,De=Fw.REDRAWDELAY,je=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function qe(He){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(q(),e._transitioningWithDuration){He.preventDefault(),He.stopPropagation();return}P(),clearTimeout(Pe);var Be=-He.deltaY;if(isFinite(Be)||(Be=He.wheelDelta/10),!isFinite(Be)){$a.log("Did not find wheel motion attributes: ",He);return}var Ze=Math.exp(-Math.min(Math.max(Be,-20),20)/200),Ye=je.draglayer.select(".nsewdrag").node().getBoundingClientRect(),et=(He.clientX-Ye.left)/Ye.width,st=(Ye.bottom-He.clientY)/Ye.height,nt;function gt(Ve,rt,ft){if(Ve.fixedrange)return;var wt=$a.simpleMap(Ve.range,Ve.r2l),tt=wt[0]+(wt[1]-wt[0])*rt;function pt(Ke){return Ve.l2r(tt+(Ke-tt)*ft)}Ve.range=wt.map(pt)}if(F){for(l||(et=.5),nt=0;nt<y.length;nt++)gt(y[nt],et,Ze);_e("x"),Ue[2]*=Ze,Ue[0]+=Ue[2]*et*(1/Ze-1)}if(R){for(i||(st=.5),nt=0;nt<b.length;nt++)gt(b[nt],st,Ze);_e("y"),Ue[3]*=Ze,Ue[1]+=Ue[3]*(1-st)*(1/Ze-1)}it(Ue),we(),e.emit("plotly_relayouting",Z),Pe=setTimeout(function(){e._fullLayout&&(Ue=[0,0,k,_],Je())},De),He.preventDefault()}i.length*l.length!==1&&Cz(H,qe);function Ee(He,Be){if(He=He*G,Be=Be*I,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,C==="ew"||A==="ns"){var Ze=C?-He:0,Ye=A?-Be:0;if(T.isSubplotConstrained){if(C&&A){var et=(He/k-Be/_)/2;He=et*k,Be=-et*_,Ze=-He,Ye=-Be}A?Ze=-Ye*k/_:Ye=-Ze*_/k}C&&(wz(y,He),_e("x")),A&&(wz(b,Be),_e("y")),it([Ze,Ye,k,_]),we(),e.emit("plotly_relayouting",Z);return}function st(pt,Ke,Ot){for(var X=1-Ke,ue,de,ce=0;ce<pt.length;ce++){var Oe=pt[ce];if(!Oe.fixedrange){ue=Oe,de=Oe._rl[X]+(Oe._rl[Ke]-Oe._rl[X])/qme(Ot/Oe._length);var Te=Oe.l2r(de);Te!==!1&&Te!==void 0&&(Oe.range[Ke]=Te)}}return ue._length*(ue._rl[Ke]-de)/(ue._rl[Ke]-ue._rl[X])}var nt=C==="w"==(A==="n")?1:-1;if(C&&A&&(S.isSubplotConstrained||T.isSubplotConstrained)){var gt=(He/k+nt*Be/_)/2;He=gt*k,Be=nt*gt*_}var Ve,rt;if(C==="w"?He=st(y,0,He):C==="e"?He=st(y,1,-He):C||(He=0),A==="n"?Be=st(b,1,Be):A==="s"?Be=st(b,0,-Be):A||(Be=0),Ve=C==="w"?He:0,rt=A==="n"?Be:0,S.isSubplotConstrained&&!T.isSubplotConstrained||T.isSubplotConstrained&&C&&A&&nt>0){var ft;if(T.isSubplotConstrained||!C&&A.length===1){for(ft=0;ft<y.length;ft++)y[ft].range=y[ft]._r.slice(),zw(y[ft],1-Be/_);He=Be*k/_,Ve=He/2}if(T.isSubplotConstrained||!A&&C.length===1){for(ft=0;ft<b.length;ft++)b[ft].range=b[ft]._r.slice(),zw(b[ft],1-He/k);Be=He*_/k,rt=Be/2}}(!T.isSubplotConstrained||!A)&&_e("x"),(!T.isSubplotConstrained||!C)&&_e("y");var wt=k-He,tt=_-Be;T.isSubplotConstrained&&!(C&&A)&&(C?(rt=Ve?0:He*_/k,tt=wt*_/k):(Ve=rt?0:Be*k/_,wt=tt*k/_)),it([Ve,rt,wt,tt]),we(),e.emit("plotly_relayouting",Z)}function _e(He,Be){for(var Ze=T.isSubplotConstrained?{x:b,y}[He]:T[He+"axes"],Ye=T.isSubplotConstrained?{x:y,y:b}[He]:[],et=0;et<Ze.length;et++){var st=Ze[et],nt=st._id,gt=T.xLinks[nt]||T.yLinks[nt],Ve=Ye[0]||g[gt]||h[gt];Ve&&(Be?(Be[st._name+".range[0]"]=Be[Ve._name+".range[0]"],Be[st._name+".range[1]"]=Be[Ve._name+".range[1]"]):st.range=Ve.range.slice())}}function we(){var He=[],Be;function Ze(nt){for(Be=0;Be<nt.length;Be++)nt[Be].fixedrange||He.push(nt[Be]._id)}function Ye(nt,gt){for(Be=0;Be<nt.length;Be++){var Ve=nt[Be],rt=Ve[gt];!Ve.fixedrange&&rt.tickmode==="sync"&&He.push(rt._id)}}for(F&&(Ze(y),Ze(S.xaxes),Ze(T.xaxes),Ye(t.overlays,"xaxis")),R&&(Ze(b),Ze(S.yaxes),Ze(T.yaxes),Ye(t.overlays,"yaxis")),Z={},Be=0;Be<He.length;Be++){var et=He[Be],st=Lw(e,et);hz.drawOne(e,st,{skipTitle:!0}),Z[st._name+".range[0]"]=st.range[0],Z[st._name+".range[1]"]=st.range[1]}hz.redrawComponents(e,He)}function Re(){if(!e._transitioningWithDuration){var He=e._context.doubleClick,Be=[];C&&(Be=Be.concat(y)),A&&(Be=Be.concat(b)),T.xaxes&&(Be=Be.concat(T.xaxes)),T.yaxes&&(Be=Be.concat(T.yaxes));var Ze={},Ye,et;if(He==="reset+autosize")for(He="autosize",et=0;et<Be.length;et++){Ye=Be[et];var st=Ye._rangeInitial0,nt=Ye._rangeInitial1,gt=st!==void 0||nt!==void 0;if(gt&&(st!==void 0&&st!==Ye.range[0]||nt!==void 0&&nt!==Ye.range[1])||!gt&&Ye.autorange!==!0){He="reset";break}}if(He==="autosize")for(et=0;et<Be.length;et++)Ye=Be[et],Ye.fixedrange||(Ze[Ye._name+".autorange"]=!0);else if(He==="reset"){for((C||S.isSubplotConstrained)&&(Be=Be.concat(S.xaxes)),A&&!S.isSubplotConstrained&&(Be=Be.concat(S.yaxes)),S.isSubplotConstrained&&(C?A||(Be=Be.concat(b)):Be=Be.concat(y)),et=0;et<Be.length;et++)if(Ye=Be[et],!Ye.fixedrange){var Ve=Ye._name,rt=Ye._autorangeInitial;Ye._rangeInitial0===void 0&&Ye._rangeInitial1===void 0?Ze[Ve+".autorange"]=!0:Ye._rangeInitial0===void 0?(Ze[Ve+".autorange"]=rt,Ze[Ve+".range"]=[null,Ye._rangeInitial1]):Ye._rangeInitial1===void 0?(Ze[Ve+".range"]=[Ye._rangeInitial0,null],Ze[Ve+".autorange"]=rt):Ze[Ve+".range"]=[Ye._rangeInitial0,Ye._rangeInitial1]}}e.emit("plotly_doubleclick",null),h0.call("_guiRelayout",e,Ze)}}function Je(){it([0,0,k,_]),$a.syncOrAsync([Nme.previousPromises,function(){e._fullLayout._replotting=!1,h0.call("_guiRelayout",e,Z)}],e)}function it(He){var Be=e._fullLayout,Ze=Be._plots,Ye=Be._subplots.cartesian,et,st,nt,gt;if(B&&h0.subplotsRegistry.splom.drag(e),N){for(et=0;et<Ye.length;et++)if(st=Ze[Ye[et]],nt=st.xaxis,gt=st.yaxis,st._scene){var Ve=$a.simpleMap(nt.range,nt.r2l),rt=$a.simpleMap(gt.range,gt.r2l);nt.limitRange&&nt.limitRange(),gt.limitRange&&gt.limitRange(),Ve=nt.range,rt=gt.range,st._scene.update({range:[Ve[0],rt[0],Ve[1],rt[1]]})}}if((B||N)&&(Pme(e),Rme(e)),V){var ft=He[2]/f._length,wt=He[3]/p._length;for(et=0;et<Ye.length;et++){st=Ze[Ye[et]],nt=st.xaxis,gt=st.yaxis;var tt=(F||T.isSubplotConstrained)&&!nt.fixedrange&&g[nt._id],pt=(R||T.isSubplotConstrained)&&!gt.fixedrange&&h[gt._id],Ke,Ot,X,ue;if(tt?(Ke=ft,X=l||T.isSubplotConstrained?He[0]:lt(nt,Ke)):T.xaHash[nt._id]?(Ke=ft,X=He[0]*nt._length/f._length):T.yaHash[nt._id]?(Ke=wt,X=A==="ns"?-He[1]*nt._length/p._length:lt(nt,Ke,{n:"top",s:"bottom"}[A])):(Ke=dt(nt,ft,wt),X=at(nt,Ke)),Ke>1&&(nt.maxallowed!==void 0&&F===(nt.range[0]<nt.range[1]?"e":"w")||nt.minallowed!==void 0&&F===(nt.range[0]<nt.range[1]?"w":"e"))&&(Ke=1,X=0),pt?(Ot=wt,ue=i||T.isSubplotConstrained?He[1]:lt(gt,Ot)):T.yaHash[gt._id]?(Ot=wt,ue=He[1]*gt._length/p._length):T.xaHash[gt._id]?(Ot=ft,ue=C==="ew"?-He[0]*gt._length/f._length:lt(gt,Ot,{e:"right",w:"left"}[C])):(Ot=dt(gt,ft,wt),ue=at(gt,Ot)),Ot>1&&(gt.maxallowed!==void 0&&R===(gt.range[0]<gt.range[1]?"n":"s")||gt.minallowed!==void 0&&R===(gt.range[0]<gt.range[1]?"s":"n"))&&(Ot=1,ue=0),!(!Ke&&!Ot)){Ke||(Ke=1),Ot||(Ot=1);var de=nt._offset-X/Ke,ce=gt._offset-ue/Ot;st.clipRect.call(ql.setTranslate,X,ue).call(ql.setScale,Ke,Ot),st.plot.call(ql.setTranslate,de,ce).call(ql.setScale,1/Ke,1/Ot),(Ke!==st.xScaleFactor||Ot!==st.yScaleFactor)&&(ql.setPointGroupScale(st.zoomScalePts,Ke,Ot),ql.setTextPointsScale(st.zoomScaleTxt,Ke,Ot)),ql.hideOutsideRangePoints(st.clipOnAxisFalseTraces,st),st.xScaleFactor=Ke,st.yScaleFactor=Ot}}}}function dt(He,Be,Ze){return He.fixedrange?0:F&&S.xaHash[He._id]?Be:R&&(S.isSubplotConstrained?S.xaHash:S.yaHash)[He._id]?Ze:0}function at(He,Be){return Be?(He.range=He._r.slice(),zw(He,Be),lt(He,Be)):0}function lt(He,Be,Ze){return He._length*(1-Be)*Dme[Ze||He.constraintoward||"middle"]}return H}function vz(e,t,n,r){var a=$a.ensureSingle(e.draglayer,t,n,function(o){o.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return a.call(zme,r),a.node()}function bz(e,t,n,r,a,o,i){var l=vz(e,"rect",t,n);return Ew.select(l).call(ql.setRect,r,a,o,i),l}function xz(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function Ume(e,t){var n=e.range[t],r=Math.abs(n-e.range[1-t]),a;return e.type==="date"?n:e.type==="log"?(a=Math.ceil(Math.max(0,-Math.log(r)/Math.LN10))+3,dz("."+a+"g")(Math.pow(10,n))):(a=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(r)/Math.LN10)+4,dz("."+String(a)+"g")(n))}function Iw(e,t,n,r,a){for(var o=0;o<e.length;o++){var i=e[o];if(!i.fixedrange)if(i.rangebreaks){var l=i._id.charAt(0)==="y",s=l?1-t:t,u=l?1-n:n;r[i._name+".range[0]"]=i.l2r(i.p2l(s*i._length)),r[i._name+".range[1]"]=i.l2r(i.p2l(u*i._length))}else{var d=i._rl[0],f=i._rl[1]-d;r[i._name+".range[0]"]=i.l2r(d+f*t),r[i._name+".range[1]"]=i.l2r(d+f*n)}}if(a&&a.length){var p=(t+(1-n))/2;Iw(a,p,1-p,r,[])}}function wz(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r.fixedrange){if(r.rangebreaks){var a=0,o=r._length,i=r.p2l(a+t)-r.p2l(a),l=r.p2l(o+t)-r.p2l(o),s=(i+l)/2;r.range=[r.l2r(r._rl[0]-s),r.l2r(r._rl[1]-s)]}else r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)];r.limitRange&&r.limitRange()}}}function qme(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Wme(e,t,n){return e?e==="nsew"?n?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function _z(e,t,n,r,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",fz(n,r)).attr("d",a+"Z")}function kz(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:pz.background,stroke:pz.defaultLine,"stroke-width":1,opacity:0}).attr("transform",fz(t,n)).attr("d","M0,0Z")}function Tz(e,t,n,r,a,o){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),Sz(e,t,a,o)}function Sz(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function Dw(e){Ew.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Az(e){yz&&e.data&&e._context.showTips&&($a.notifier($a._(e,"Double-click to zoom back out"),"long"),yz=!1)}function Gme(e,t){return"M"+(e.l-.5)+","+(t-$r-.5)+"h-3v"+(2*$r+1)+"h3ZM"+(e.r+.5)+","+(t-$r-.5)+"h3v"+(2*$r+1)+"h-3Z"}function Zme(e,t){return"M"+(t-$r-.5)+","+(e.t-.5)+"v-3h"+(2*$r+1)+"v3ZM"+(t-$r-.5)+","+(e.b+.5)+"v3h"+(2*$r+1)+"v-3Z"}function g0(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,$r)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Mz(e,t,n,r,a){for(var o=!1,i={},l={},s,u,d,f,p=(a||{}).xaHash,g=(a||{}).yaHash,h=0;h<t.length;h++){var y=t[h];for(s in n)if(y[s]){for(d in y)!(a&&(p[d]||g[d]))&&!(d.charAt(0)==="x"?n:r)[d]&&(i[d]=s);for(u in r)!(a&&(p[u]||g[u]))&&y[u]&&(o=!0)}for(u in r)if(y[u])for(f in y)!(a&&(p[f]||g[f]))&&!(f.charAt(0)==="x"?n:r)[f]&&(l[f]=u)}o&&($a.extendFlat(i,l),l={});var b={},v=[];for(d in i){var x=Lw(e,d);v.push(x),b[x._id]=x}var k={},_=[];for(f in l){var S=Lw(e,f);_.push(S),k[S._id]=S}return{xaHash:b,yaHash:k,xaxes:v,yaxes:_,xLinks:i,yLinks:l,isSubplotConstrained:o}}function Cz(e,t){if(!Ome)e.onwheel!==void 0?e.onwheel=t:e.onmousewheel!==void 0?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}));else{var n=e.onwheel!==void 0?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(n,e._onwheel),e._onwheel=t,e.addEventListener(n,t,{passive:!1})}}function Oz(e){var t=[];for(var n in e)t.push(e[n]);return t}var Kme={makeDragBox:Hme,makeDragger:vz,makeRectDragger:bz,makeZoombox:_z,makeCorners:kz,updateZoombox:Tz,xyCorners:g0,transitionZoombox:Sz,removeZoombox:Dw,showDoubleClickNotifier:Az,attachWheelEventHandler:Cz};(function(e){var t=$t,n=Xi,r=di,a=qs,o=Kme.makeDragBox,i=Jr.DRAGGERSIZE;e.initInteractions=function(l){var s=l._fullLayout;if(l._context.staticPlot){t.select(l).selectAll(".drag").remove();return}if(!(!s._has("cartesian")&&!s._has("splom"))){var u=Object.keys(s._plots||{}).sort(function(f,p){if((s._plots[f].mainplot&&!0)===(s._plots[p].mainplot&&!0)){var g=f.split("y"),h=p.split("y");return g[0]===h[0]?Number(g[1]||1)-Number(h[1]||1):Number(g[0]||1)-Number(h[0]||1)}return s._plots[f].mainplot?1:-1});u.forEach(function(f){var p=s._plots[f],g=p.xaxis,h=p.yaxis;if(!p.mainplot){var y=o(l,p,g._offset,h._offset,g._length,h._length,"ns","ew");y.onmousemove=function(x){l._fullLayout._rehover=function(){l._fullLayout._hoversubplot===f&&l._fullLayout._plots[f]&&n.hover(l,x,f)},n.hover(l,x,f),l._fullLayout._lasthover=y,l._fullLayout._hoversubplot=f},y.onmouseout=function(x){l._dragging||(l._fullLayout._hoversubplot=null,r.unhover(l,x))},l._context.showAxisDragHandles&&(o(l,p,g._offset-i,h._offset-i,i,i,"n","w"),o(l,p,g._offset+g._length,h._offset-i,i,i,"n","e"),o(l,p,g._offset-i,h._offset+h._length,i,i,"s","w"),o(l,p,g._offset+g._length,h._offset+h._length,i,i,"s","e"))}if(l._context.showAxisDragHandles){if(f===g._mainSubplot){var b=g._mainLinePosition;g.side==="top"&&(b-=i),o(l,p,g._offset+g._length*.1,b,g._length*.8,i,"","ew"),o(l,p,g._offset,b,g._length*.1,i,"","w"),o(l,p,g._offset+g._length*.9,b,g._length*.1,i,"","e")}if(f===h._mainSubplot){var v=h._mainLinePosition;h.side!=="right"&&(v-=i),o(l,p,v,h._offset+h._length*.1,i,h._length*.8,"ns",""),o(l,p,v,h._offset+h._length*.9,i,h._length*.1,"s",""),o(l,p,v,h._offset,i,h._length*.1,"n","")}}});var d=s._hoverlayer.node();d.onmousemove=function(f){f.target=l._fullLayout._lasthover,n.hover(l,f,s._hoversubplot)},d.onclick=function(f){f.target=l._fullLayout._lasthover,n.click(l,f)},d.onmousedown=function(f){l._fullLayout._lasthover.onmousedown(f)},e.updateFx(l)}},e.updateFx=function(l){var s=l._fullLayout,u=s.dragmode==="pan"?"move":"crosshair";a(s._draggers,u)}})(S1);var op={},Ez=Dt,Yme=function(e){for(var t=Ez.layoutArrayContainers,n=Ez.layoutArrayRegexes,r=e.split("[")[0],a,o,i=0;i<n.length;i++)if(o=e.match(n[i]),o&&o.index===0){a=o[0];break}if(a||(a=t[t.indexOf(r)]),!a)return!1;var l=e.substr(a.length);return l?(o=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:a,index:Number(o[1]),property:o[3]||""}:!1):{array:a,index:"",property:""}},Jme=Os,Pw=ex,ip=ou,Qme=ox.sorterAsc,Rw=Dt;op.containerArrayMatch=Yme;var Xme=op.isAddVal=function(e){return e==="add"||Jme(e)},Lz=op.isRemoveVal=function(e){return e===null||e==="remove"};op.applyContainerArrayChanges=function(e,t,n,r,a){var o=t.astr,i=Rw.getComponentMethod(o,"supplyLayoutDefaults"),l=Rw.getComponentMethod(o,"draw"),s=Rw.getComponentMethod(o,"drawOne"),u=r.replot||r.recalc||i===Pw||l===Pw,d=e.layout,f=e._fullLayout;if(n[""]){Object.keys(n).length>1&&ip.warn("Full array edits are incompatible with other edits",o);var p=n[""][""];if(Lz(p))t.set(null);else if(Array.isArray(p))t.set(p);else return ip.warn("Unrecognized full array edit value",o,p),!0;return u?!1:(i(d,f),l(e),!0)}var g=Object.keys(n).map(Number).sort(Qme),h=t.get(),y=h||[],b=a(f,o).get(),v=[],x=-1,k=y.length,_,S,T,C,A,O,F,R;for(_=0;_<g.length;_++){if(T=g[_],C=n[T],A=Object.keys(C),O=C[""],F=Xme(O),T<0||T>y.length-(F?0:1)){ip.warn("index out of range",o,T);continue}if(O!==void 0)A.length>1&&ip.warn("Insertion & removal are incompatible with edits to the same index.",o,T),Lz(O)?v.push(T):F?(O==="add"&&(O={}),y.splice(T,0,O),b&&b.splice(T,0,{})):ip.warn("Unrecognized full object edit value",o,T,O),x===-1&&(x=T);else for(S=0;S<A.length;S++)R=o+"["+T+"].",a(y[T],A[S],R).set(C[A[S]])}for(_=v.length-1;_>=0;_--)y.splice(v[_],1),b&&b.splice(v[_],1);if(y.length?h||t.set(y):t.set(null),u)return!1;if(i(d,f),s!==Pw){var N;if(x===-1)N=g;else{for(k=Math.max(y.length,k),N=[],_=0;_<g.length&&(T=g[_],!(T>=x));_++)N.push(T);for(_=x;_<k;_++)N.push(_)}for(_=0;_<N.length;_++)s(e,N[_])}else l(e);return!0};var zz={};(function(e){var t=en,n=$3,r=Dt,a=Ge,o=wr,i=dr,l=Kt,s=i.cleanId,u=i.getFromTrace,d=r.traceIs;e.clearPromiseQueue=function(_){Array.isArray(_._promises)&&_._promises.length>0&&a.log("Clearing previous rejected promises from queue."),_._promises=[]},e.cleanLayout=function(_){var S,T;_||(_={}),_.xaxis1&&(_.xaxis||(_.xaxis=_.xaxis1),delete _.xaxis1),_.yaxis1&&(_.yaxis||(_.yaxis=_.yaxis1),delete _.yaxis1),_.scene1&&(_.scene||(_.scene=_.scene1),delete _.scene1);var C=(o.subplotsRegistry.cartesian||{}).attrRegex,A=(o.subplotsRegistry.polar||{}).attrRegex,O=(o.subplotsRegistry.ternary||{}).attrRegex,F=(o.subplotsRegistry.gl3d||{}).attrRegex,R=Object.keys(_);for(S=0;S<R.length;S++){var N=R[S];if(C&&C.test(N)){var B=_[N];B.anchor&&B.anchor!=="free"&&(B.anchor=s(B.anchor)),B.overlaying&&(B.overlaying=s(B.overlaying)),B.type||(B.isdate?B.type="date":B.islog?B.type="log":B.isdate===!1&&B.islog===!1&&(B.type="linear")),(B.autorange==="withzero"||B.autorange==="tozero")&&(B.autorange=!0,B.rangemode="tozero"),B.insiderange&&delete B.range,delete B.islog,delete B.isdate,delete B.categories,b(B,"domain")&&delete B.domain,B.autotick!==void 0&&(B.tickmode===void 0&&(B.tickmode=B.autotick?"auto":"linear"),delete B.autotick),p(B)}else if(A&&A.test(N)){var V=_[N];p(V.radialaxis)}else if(O&&O.test(N)){var Z=_[N];p(Z.aaxis),p(Z.baxis),p(Z.caxis)}else if(F&&F.test(N)){var G=_[N],I=G.cameraposition;if(Array.isArray(I)&&I[0].length===4){var P=I[0],z=I[1],H=I[2],j=n([],P),q=[];for(T=0;T<3;++T)q[T]=z[T]+H*j[2+4*T];G.camera={eye:{x:q[0],y:q[1],z:q[2]},center:{x:z[0],y:z[1],z:z[2]},up:{x:0,y:0,z:1}},delete G.cameraposition}p(G.xaxis),p(G.yaxis),p(G.zaxis)}}var $=Array.isArray(_.annotations)?_.annotations.length:0;for(S=0;S<$;S++){var ne=_.annotations[S];a.isPlainObject(ne)&&(ne.ref&&(ne.ref==="paper"?(ne.xref="paper",ne.yref="paper"):ne.ref==="data"&&(ne.xref="x",ne.yref="y"),delete ne.ref),f(ne,"xref"),f(ne,"yref"))}var te=Array.isArray(_.shapes)?_.shapes.length:0;for(S=0;S<te;S++){var ee=_.shapes[S];a.isPlainObject(ee)&&(f(ee,"xref"),f(ee,"yref"))}var se=Array.isArray(_.images)?_.images.length:0;for(S=0;S<se;S++){var U=_.images[S];a.isPlainObject(U)&&(f(U,"xref"),f(U,"yref"))}var Y=_.legend;return Y&&(Y.x>3?(Y.x=1.02,Y.xanchor="left"):Y.x<-2&&(Y.x=-.02,Y.xanchor="right"),Y.y>3?(Y.y=1.02,Y.yanchor="bottom"):Y.y<-2&&(Y.y=-.02,Y.yanchor="top")),p(_),_.dragmode==="rotate"&&(_.dragmode="orbit"),l.clean(_),_.template&&_.template.layout&&e.cleanLayout(_.template.layout),_};function f(_,S){var T=_[S],C=S.charAt(0);T&&T!=="paper"&&(_[S]=s(T,C,!0))}function p(_){_&&((typeof _.title=="string"||typeof _.title=="number")&&(_.title={text:_.title}),S("titlefont","font"),S("titleposition","position"),S("titleside","side"),S("titleoffset","offset"));function S(T,C){var A=_[T],O=_.title&&_.title[C];A&&!O&&(_.title||(_.title={}),_.title[C]=_[T],delete _[T])}}e.cleanData=function(_){for(var S=0;S<_.length;S++){var T=_[S],C;if(T.type==="histogramy"&&"xbins"in T&&!("ybins"in T)&&(T.ybins=T.xbins,delete T.xbins),T.error_y&&"opacity"in T.error_y){var A=l.defaults,O=T.error_y.color||(d(T,"bar")?l.defaultLine:A[S%A.length]);T.error_y.color=l.addOpacity(l.rgb(O),l.opacity(O)*T.error_y.opacity),delete T.error_y.opacity}if("bardir"in T&&(T.bardir==="h"&&(d(T,"bar")||T.type.substr(0,9)==="histogram")&&(T.orientation="h",e.swapXYData(T)),delete T.bardir),T.type==="histogramy"&&e.swapXYData(T),(T.type==="histogramx"||T.type==="histogramy")&&(T.type="histogram"),"scl"in T&&!("colorscale"in T)&&(T.colorscale=T.scl,delete T.scl),"reversescl"in T&&!("reversescale"in T)&&(T.reversescale=T.reversescl,delete T.reversescl),T.xaxis&&(T.xaxis=s(T.xaxis,"x")),T.yaxis&&(T.yaxis=s(T.yaxis,"y")),d(T,"gl3d")&&T.scene&&(T.scene=o.subplotsRegistry.gl3d.cleanId(T.scene)),!d(T,"pie-like")&&!d(T,"bar-like"))if(Array.isArray(T.textposition))for(C=0;C<T.textposition.length;C++)T.textposition[C]=y(T.textposition[C]);else T.textposition&&(T.textposition=y(T.textposition));var F=r.getModule(T);if(F&&F.colorbar){var R=F.colorbar.container,N=R?T[R]:T;N&&N.colorscale&&(N.colorscale==="YIGnBu"&&(N.colorscale="YlGnBu"),N.colorscale==="YIOrRd"&&(N.colorscale="YlOrRd"))}if(T.type==="surface"&&a.isPlainObject(T.contours)){var B=["x","y","z"];for(C=0;C<B.length;C++){var V=T.contours[B[C]];a.isPlainObject(V)&&(V.highlightColor&&(V.highlightcolor=V.highlightColor,delete V.highlightColor),V.highlightWidth&&(V.highlightwidth=V.highlightWidth,delete V.highlightWidth))}}if(T.type==="candlestick"||T.type==="ohlc"){var Z=(T.increasing||{}).showlegend!==!1,G=(T.decreasing||{}).showlegend!==!1,I=g(T.increasing),P=g(T.decreasing);if(I!==!1&&P!==!1){var z=h(I,P,Z,G);z&&(T.name=z)}else(I||P)&&!T.name&&(T.name=I||P)}if(Array.isArray(T.transforms)){var H=T.transforms;for(C=0;C<H.length;C++){var j=H[C];if(a.isPlainObject(j))switch(j.type){case"filter":j.filtersrc&&(j.target=j.filtersrc,delete j.filtersrc),j.calendar&&(j.valuecalendar||(j.valuecalendar=j.calendar),delete j.calendar);break;case"groupby":if(j.styles=j.styles||j.style,j.styles&&!Array.isArray(j.styles)){var q=j.styles,$=Object.keys(q);j.styles=[];for(var ne=0;ne<$.length;ne++)j.styles.push({target:$[ne],value:q[$[ne]]})}break}}}b(T,"line")&&delete T.line,"marker"in T&&(b(T.marker,"line")&&delete T.marker.line,b(T,"marker")&&delete T.marker),l.clean(T),T.autobinx&&(delete T.autobinx,delete T.xbins),T.autobiny&&(delete T.autobiny,delete T.ybins),p(T),T.colorbar&&p(T.colorbar),T.marker&&T.marker.colorbar&&p(T.marker.colorbar),T.line&&T.line.colorbar&&p(T.line.colorbar),T.aaxis&&p(T.aaxis),T.baxis&&p(T.baxis)}};function g(_){if(!a.isPlainObject(_))return!1;var S=_.name;return delete _.name,delete _.showlegend,(typeof S=="string"||typeof S=="number")&&String(S)}function h(_,S,T,C){if(T&&!C)return _;if(C&&!T||!_.trim())return S;if(!S.trim())return _;var A=Math.min(_.length,S.length),O;for(O=0;O<A&&_.charAt(O)===S.charAt(O);O++);var F=_.substr(0,O);return F.trim()}function y(_){var S="middle",T="center";return typeof _=="string"&&(_.indexOf("top")!==-1?S="top":_.indexOf("bottom")!==-1&&(S="bottom"),_.indexOf("left")!==-1?T="left":_.indexOf("right")!==-1&&(T="right")),S+" "+T}function b(_,S){return S in _&&typeof _[S]=="object"&&Object.keys(_[S]).length===0}e.swapXYData=function(_){var S;if(a.swapAttrs(_,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(_.z)&&Array.isArray(_.z[0])&&(_.transpose?delete _.transpose:_.transpose=!0),_.error_x&&_.error_y){var T=_.error_y,C="copy_ystyle"in T?T.copy_ystyle:!(T.color||T.thickness||T.width);a.swapAttrs(_,["error_?.copy_ystyle"]),C&&a.swapAttrs(_,["error_?.color","error_?.thickness","error_?.width"])}if(typeof _.hoverinfo=="string"){var A=_.hoverinfo.split("+");for(S=0;S<A.length;S++)A[S]==="x"?A[S]="y":A[S]==="y"&&(A[S]="x");_.hoverinfo=A.join("+")}},e.coerceTraceIndices=function(_,S){if(t(S))return[S];if(!Array.isArray(S)||!S.length)return _.data.map(function(A,O){return O});if(Array.isArray(S)){for(var T=[],C=0;C<S.length;C++)a.isIndex(S[C],_.data.length)?T.push(S[C]):a.warn("trace index (",S[C],") is not a number or is out of bounds");return T}return S},e.manageArrayContainers=function(_,S,T){var C=_.obj,A=_.parts,O=A.length,F=A[O-1],R=t(F);if(R&&S===null){var N=A.slice(0,O-1).join("."),B=a.nestedProperty(C,N).get();B.splice(F,1)}else R&&_.get()===void 0&&_.get()===void 0&&(T[_.astr]=null),_.set(S)};var v=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function x(_){var S=_.search(v);if(S>0)return _.substr(0,S)}e.hasParent=function(_,S){for(var T=x(S);T;){if(T in _)return!0;T=x(T)}return!1};var k=["x","y","z"];e.clearAxisTypes=function(_,S,T){for(var C=0;C<S.length;C++)for(var A=_._fullData[C],O=0;O<3;O++){var F=u(_,A,k[O]);if(F&&F.type!=="log"){var R=F._name,N=F._id.substr(1);if(N.substr(0,5)==="scene"){if(T[N]!==void 0)continue;R=N+"."+R}var B=R+".type";T[R]===void 0&&T[B]===void 0&&a.nestedProperty(_.layout,B).set(null)}}}})(zz),function(e){var t=$t,n=en,r=U4,a=Ge,o=a.nestedProperty,i=Wm,l=Kle,s=Dt,u=uu,d=wr,f=bn,p=_6,g=ii,h=gn,y=Kt,b=S1.initInteractions,v=Ll,x=ap.clearOutline,k=ru.dfltConfig,_=op,S=zz,T=Vg,C=Gi,A=Jr.AX_NAME_PATTERN,O=0,F=5;function R(X,ue,de,ce){var Oe;if(X=a.getGraphDiv(X),i.init(X),a.isPlainObject(ue)){var Te=ue;ue=Te.data,de=Te.layout,ce=Te.config,Oe=Te.frames}var We=i.triggerHandler(X,"plotly_beforeplot",[ue,de,ce]);if(We===!1)return Promise.reject();!ue&&!de&&!a.isPlotDiv(X)&&a.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",X);function ie(){if(Oe)return e.addFrames(X,Oe)}G(X,ce),de||(de={}),t.select(X).classed("js-plotly-plot",!0),h.makeTester(),Array.isArray(X._promises)||(X._promises=[]);var fe=(X.data||[]).length===0&&Array.isArray(ue);Array.isArray(ue)&&(S.cleanData(ue),fe?X.data=ue:X.data.push.apply(X.data,ue),X.empty=!1),(!X.layout||fe)&&(X.layout=S.cleanLayout(de)),d.supplyDefaults(X);var be=X._fullLayout,Ne=be._has("cartesian");be._replotting=!0,(fe||be._shouldCreateBgLayer)&&(Ot(X),be._shouldCreateBgLayer&&delete be._shouldCreateBgLayer),h.initGradients(X),h.initPatterns(X),fe&&f.saveShowSpikeInitial(X);var $e=!X.calcdata||X.calcdata.length!==(X._fullData||[]).length;$e&&d.doCalcdata(X);for(var ot=0;ot<X.calcdata.length;ot++)X.calcdata[ot][0].trace=X._fullData[ot];X._context.responsive?X._responsiveChartHandler||(X._responsiveChartHandler=function(){a.isHidden(X)||d.resize(X)},window.addEventListener("resize",X._responsiveChartHandler)):a.clearResponsive(X);var St=a.extendFlat({},be._size),Et=0;function _t(){for(var Ft=be._basePlotModules,Tt=0;Tt<Ft.length;Tt++)Ft[Tt].drawFramework&&Ft[Tt].drawFramework(X);!be._glcanvas&&be._has("gl")&&(be._glcanvas=be._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(At){return At.key}),be._glcanvas.enter().append("canvas").attr("class",function(At){return"gl-canvas gl-canvas-"+At.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var Lt=X._context.plotGlPixelRatio;if(be._glcanvas){be._glcanvas.attr("width",be.width*Lt).attr("height",be.height*Lt).style("width",be.width+"px").style("height",be.height+"px");var jt=be._glcanvas.data()[0].regl;if(jt&&(Math.floor(be.width*Lt)!==jt._gl.drawingBufferWidth||Math.floor(be.height*Lt)!==jt._gl.drawingBufferHeight)){var rn="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(Et)a.error(rn);else return a.log(rn+" Clearing graph and plotting again."),d.cleanPlot([],{},X._fullData,be),d.supplyDefaults(X),be=X._fullLayout,d.doCalcdata(X),Et++,_t()}}return be.modebar.orientation==="h"?be._modebardiv.style("height",null).style("width","100%"):be._modebardiv.style("width",null).style("height",be.height+"px"),d.previousPromises(X)}function kt(){if(d.clearAutoMarginIds(X),T.drawMarginPushers(X),f.allowAutoMargin(X),X._fullLayout.title.text&&X._fullLayout.title.automargin&&d.allowAutoMargin(X,"title.automargin"),be._has("pie"))for(var Ft=X._fullData,Tt=0;Tt<Ft.length;Tt++){var Lt=Ft[Tt];Lt.type==="pie"&&Lt.automargin&&d.allowAutoMargin(X,"pie."+Lt.uid+".automargin")}return d.doAutoMargin(X),d.previousPromises(X)}function Jt(){if(d.didMarginChange(St,be._size))return a.syncOrAsync([kt,T.layoutStyles],X)}function Rt(){if(!$e){xt();return}return a.syncOrAsync([s.getComponentMethod("shapes","calcAutorange"),s.getComponentMethod("annotations","calcAutorange"),xt],X)}function xt(){X._transitioning||(T.doAutoRangeAndConstraints(X),fe&&f.saveRangeInitial(X),s.getComponentMethod("rangeslider","calcAutorange")(X))}function qt(){return f.draw(X,fe?"":"redraw")}var Wt=[d.previousPromises,ie,_t,kt,Jt];Ne&&Wt.push(Rt),Wt.push(T.layoutStyles),Ne&&Wt.push(qt,function(Ft){var Tt=Ft._fullLayout._insideTickLabelsUpdaterange;if(Tt)return Ft._fullLayout._insideTickLabelsUpdaterange=void 0,Pe(Ft,Tt).then(function(){f.saveRangeInitial(Ft,!0)})}),Wt.push(T.drawData,T.finalDraw,b,d.addLinks,d.rehover,d.redrag,d.reselect,d.doAutoMargin,d.previousPromises);var It=a.syncOrAsync(Wt,X);return(!It||!It.then)&&(It=Promise.resolve()),It.then(function(){return N(X),X})}function N(X){var ue=X._fullLayout;ue._redrawFromAutoMarginCount?ue._redrawFromAutoMarginCount--:X.emit("plotly_afterplot")}function B(X){return a.extendFlat(k,X)}function V(X,ue){try{X._fullLayout._paper.style("background",ue)}catch(de){a.error(de)}}function Z(X,ue){var de=y.combine(ue,"white");V(X,de)}function G(X,ue){if(!X._context){X._context=a.extendDeep({},k);var de=t.select("base");X._context._baseUrl=de.size()&&de.attr("href")?window.location.href.split("#")[0]:""}var ce=X._context,Oe,Te,We;if(ue){for(Te=Object.keys(ue),Oe=0;Oe<Te.length;Oe++)We=Te[Oe],!(We==="editable"||We==="edits")&&We in ce&&(We==="setBackground"&&ue[We]==="opaque"?ce[We]=Z:ce[We]=ue[We]);ue.plot3dPixelRatio&&!ce.plotGlPixelRatio&&(ce.plotGlPixelRatio=ce.plot3dPixelRatio);var ie=ue.editable;if(ie!==void 0)for(ce.editable=ie,Te=Object.keys(ce.edits),Oe=0;Oe<Te.length;Oe++)ce.edits[Te[Oe]]=ie;if(ue.edits)for(Te=Object.keys(ue.edits),Oe=0;Oe<Te.length;Oe++)We=Te[Oe],We in ce.edits&&(ce.edits[We]=ue.edits[We]);ce._exportedPlot=ue._exportedPlot}ce.staticPlot&&(ce.editable=!1,ce.edits={},ce.autosizable=!1,ce.scrollZoom=!1,ce.doubleClick=!1,ce.showTips=!1,ce.showLink=!1,ce.displayModeBar=!1),ce.displayModeBar==="hover"&&!r&&(ce.displayModeBar=!0),(ce.setBackground==="transparent"||typeof ce.setBackground!="function")&&(ce.setBackground=V),ce._hasZeroHeight=ce._hasZeroHeight||X.clientHeight===0,ce._hasZeroWidth=ce._hasZeroWidth||X.clientWidth===0;var fe=ce.scrollZoom,be=ce._scrollZoom={};if(fe===!0)be.cartesian=1,be.gl3d=1,be.geo=1,be.mapbox=1;else if(typeof fe=="string"){var Ne=fe.split("+");for(Oe=0;Oe<Ne.length;Oe++)be[Ne[Oe]]=1}else fe!==!1&&(be.gl3d=1,be.geo=1,be.mapbox=1)}function I(X){if(X=a.getGraphDiv(X),!a.isPlotDiv(X))throw new Error("This element is not a Plotly plot: "+X);return S.cleanData(X.data),S.cleanLayout(X.layout),X.calcdata=void 0,e._doPlot(X).then(function(){return X.emit("plotly_redraw"),X})}function P(X,ue,de,ce){return X=a.getGraphDiv(X),d.cleanPlot([],{},X._fullData||[],X._fullLayout||{}),d.purge(X),e._doPlot(X,ue,de,ce)}function z(X,ue){var de=ue+1,ce=[],Oe,Te;for(Oe=0;Oe<X.length;Oe++)Te=X[Oe],Te<0?ce.push(de+Te):ce.push(Te);return ce}function H(X,ue,de){var ce,Oe;for(ce=0;ce<ue.length;ce++){if(Oe=ue[ce],Oe!==parseInt(Oe,10))throw new Error("all values in "+de+" must be integers");if(Oe>=X.data.length||Oe<-X.data.length)throw new Error(de+" must be valid indices for gd.data.");if(ue.indexOf(Oe,ce+1)>-1||Oe>=0&&ue.indexOf(-X.data.length+Oe)>-1||Oe<0&&ue.indexOf(X.data.length+Oe)>-1)throw new Error("each index in "+de+" must be unique.")}}function j(X,ue,de){if(!Array.isArray(X.data))throw new Error("gd.data must be an array.");if(typeof ue>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(ue)||(ue=[ue]),H(X,ue,"currentIndices"),typeof de<"u"&&!Array.isArray(de)&&(de=[de]),typeof de<"u"&&H(X,de,"newIndices"),typeof de<"u"&&ue.length!==de.length)throw new Error("current and new indices must be of equal length.")}function q(X,ue,de){var ce,Oe;if(!Array.isArray(X.data))throw new Error("gd.data must be an array.");if(typeof ue>"u")throw new Error("traces must be defined.");for(Array.isArray(ue)||(ue=[ue]),ce=0;ce<ue.length;ce++)if(Oe=ue[ce],typeof Oe!="object"||Array.isArray(Oe)||Oe===null)throw new Error("all values in traces array must be non-array objects");if(typeof de<"u"&&!Array.isArray(de)&&(de=[de]),typeof de<"u"&&de.length!==ue.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function $(X,ue,de,ce){var Oe=a.isPlainObject(ce);if(!Array.isArray(X.data))throw new Error("gd.data must be an array");if(!a.isPlainObject(ue))throw new Error("update must be a key:value object");if(typeof de>"u")throw new Error("indices must be an integer or array of integers");H(X,de,"indices");for(var Te in ue){if(!Array.isArray(ue[Te])||ue[Te].length!==de.length)throw new Error("attribute "+Te+" must be an array of length equal to indices array length");if(Oe&&(!(Te in ce)||!Array.isArray(ce[Te])||ce[Te].length!==ue[Te].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function ne(X,ue,de,ce){var Oe=a.isPlainObject(ce),Te=[],We,ie,fe,be,Ne;Array.isArray(de)||(de=[de]),de=z(de,X.data.length-1);for(var $e in ue)for(var ot=0;ot<de.length;ot++){if(We=X.data[de[ot]],fe=o(We,$e),ie=fe.get(),be=ue[$e][ot],!a.isArrayOrTypedArray(be))throw new Error("attribute: "+$e+" index: "+ot+" must be an array");if(!a.isArrayOrTypedArray(ie))throw new Error("cannot extend missing or non-array attribute: "+$e);if(ie.constructor!==be.constructor)throw new Error("cannot extend array with an array of a different type: "+$e);Ne=Oe?ce[$e][ot]:ce,n(Ne)||(Ne=-1),Te.push({prop:fe,target:ie,insert:be,maxp:Math.floor(Ne)})}return Te}function te(X,ue,de,ce,Oe){$(X,ue,de,ce);for(var Te=ne(X,ue,de,ce),We={},ie={},fe=0;fe<Te.length;fe++){var be=Te[fe].prop,Ne=Te[fe].maxp,$e=Oe(Te[fe].target,Te[fe].insert,Ne);be.set($e[0]),Array.isArray(We[be.astr])||(We[be.astr]=[]),We[be.astr].push($e[1]),Array.isArray(ie[be.astr])||(ie[be.astr]=[]),ie[be.astr].push(Te[fe].target.length)}return{update:We,maxPoints:ie}}function ee(X,ue){var de=new X.constructor(X.length+ue.length);return de.set(X),de.set(ue,X.length),de}function se(X,ue,de,ce){X=a.getGraphDiv(X);function Oe(fe,be,Ne){var $e,ot;if(a.isTypedArray(fe))if(Ne<0){var St=new fe.constructor(0),Et=ee(fe,be);Ne<0?($e=Et,ot=St):($e=St,ot=Et)}else if($e=new fe.constructor(Ne),ot=new fe.constructor(fe.length+be.length-Ne),Ne===be.length)$e.set(be),ot.set(fe);else if(Ne<be.length){var _t=be.length-Ne;$e.set(be.subarray(_t)),ot.set(fe),ot.set(be.subarray(0,_t),fe.length)}else{var kt=Ne-be.length,Jt=fe.length-kt;$e.set(fe.subarray(Jt)),$e.set(be,kt),ot.set(fe.subarray(0,Jt))}else $e=fe.concat(be),ot=Ne>=0&&Ne<$e.length?$e.splice(0,$e.length-Ne):[];return[$e,ot]}var Te=te(X,ue,de,ce,Oe),We=e.redraw(X),ie=[X,Te.update,de,Te.maxPoints];return l.add(X,e.prependTraces,ie,se,arguments),We}function U(X,ue,de,ce){X=a.getGraphDiv(X);function Oe(fe,be,Ne){var $e,ot;if(a.isTypedArray(fe))if(Ne<=0){var St=new fe.constructor(0),Et=ee(be,fe);Ne<0?($e=Et,ot=St):($e=St,ot=Et)}else if($e=new fe.constructor(Ne),ot=new fe.constructor(fe.length+be.length-Ne),Ne===be.length)$e.set(be),ot.set(fe);else if(Ne<be.length){var _t=be.length-Ne;$e.set(be.subarray(0,_t)),ot.set(be.subarray(_t)),ot.set(fe,_t)}else{var kt=Ne-be.length;$e.set(be),$e.set(fe.subarray(0,kt),be.length),ot.set(fe.subarray(kt))}else $e=be.concat(fe),ot=Ne>=0&&Ne<$e.length?$e.splice(Ne,$e.length):[];return[$e,ot]}var Te=te(X,ue,de,ce,Oe),We=e.redraw(X),ie=[X,Te.update,de,Te.maxPoints];return l.add(X,e.extendTraces,ie,U,arguments),We}function Y(X,ue,de){X=a.getGraphDiv(X);var ce=[],Oe=e.deleteTraces,Te=Y,We=[X,ce],ie=[X,ue],fe,be;for(q(X,ue,de),Array.isArray(ue)||(ue=[ue]),ue=ue.map(function(Ne){return a.extendFlat({},Ne)}),S.cleanData(ue),fe=0;fe<ue.length;fe++)X.data.push(ue[fe]);for(fe=0;fe<ue.length;fe++)ce.push(-ue.length+fe);if(typeof de>"u")return be=e.redraw(X),l.add(X,Oe,We,Te,ie),be;Array.isArray(de)||(de=[de]);try{j(X,ce,de)}catch(Ne){throw X.data.splice(X.data.length-ue.length,ue.length),Ne}return l.startSequence(X),l.add(X,Oe,We,Te,ie),be=e.moveTraces(X,ce,de),l.stopSequence(X),be}function J(X,ue){X=a.getGraphDiv(X);var de=[],ce=e.addTraces,Oe=J,Te=[X,de,ue],We=[X,ue],ie,fe;if(typeof ue>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(ue)||(ue=[ue]),H(X,ue,"indices"),ue=z(ue,X.data.length-1),ue.sort(a.sorterDes),ie=0;ie<ue.length;ie+=1)fe=X.data.splice(ue[ie],1)[0],de.push(fe);var be=e.redraw(X);return l.add(X,ce,Te,Oe,We),be}function re(X,ue,de){X=a.getGraphDiv(X);var ce=[],Oe=[],Te=re,We=re,ie=[X,de,ue],fe=[X,ue,de],be;if(j(X,ue,de),ue=Array.isArray(ue)?ue:[ue],typeof de>"u")for(de=[],be=0;be<ue.length;be++)de.push(-ue.length+be);for(de=Array.isArray(de)?de:[de],ue=z(ue,X.data.length-1),de=z(de,X.data.length-1),be=0;be<X.data.length;be++)ue.indexOf(be)===-1&&ce.push(X.data[be]);for(be=0;be<ue.length;be++)Oe.push({newIndex:de[be],trace:X.data[ue[be]]});for(Oe.sort(function($e,ot){return $e.newIndex-ot.newIndex}),be=0;be<Oe.length;be+=1)ce.splice(Oe[be].newIndex,0,Oe[be].trace);X.data=ce;var Ne=e.redraw(X);return l.add(X,Te,ie,We,fe),Ne}function oe(X,ue,de,ce){X=a.getGraphDiv(X),S.clearPromiseQueue(X);var Oe={};if(typeof ue=="string")Oe[ue]=de;else if(a.isPlainObject(ue))Oe=a.extendFlat({},ue),ce===void 0&&(ce=de);else return a.warn("Restyle fail.",ue,de,ce),Promise.reject();Object.keys(Oe).length&&(X.changed=!0);var Te=S.coerceTraceIndices(X,ce),We=Le(X,Oe,Te),ie=We.flags;ie.calc&&(X.calcdata=void 0),ie.clearAxisTypes&&S.clearAxisTypes(X,Te,{});var fe=[];ie.fullReplot?fe.push(e._doPlot):(fe.push(d.previousPromises),d.supplyDefaults(X),ie.markerSize&&(d.doCalcdata(X),je(fe)),ie.style&&fe.push(T.doTraceStyle),ie.colorbars&&fe.push(T.doColorBars),fe.push(N)),fe.push(d.rehover,d.redrag,d.reselect),l.add(X,oe,[X,We.undoit,We.traces],oe,[X,We.redoit,We.traces]);var be=a.syncOrAsync(fe,X);return(!be||!be.then)&&(be=Promise.resolve()),be.then(function(){return X.emit("plotly_restyle",We.eventData),X})}function he(X){return X===void 0?null:X}function ve(X,ue){return ue?function(de,ce,Oe){var Te=o(de,ce),We=Te.set;return Te.set=function(ie){var fe=(Oe||"")+ce;ge(fe,Te.get(),ie,X),We(ie)},Te}:o}function ge(X,ue,de,ce){if(Array.isArray(ue)||Array.isArray(de))for(var Oe=Array.isArray(ue)?ue:[],Te=Array.isArray(de)?de:[],We=Math.max(Oe.length,Te.length),ie=0;ie<We;ie++)ge(X+"["+ie+"]",Oe[ie],Te[ie],ce);else if(a.isPlainObject(ue)||a.isPlainObject(de)){var fe=a.isPlainObject(ue)?ue:{},be=a.isPlainObject(de)?de:{},Ne=a.extendFlat({},fe,be);for(var $e in Ne)ge(X+"."+$e,fe[$e],be[$e],ce)}else ce[X]===void 0&&(ce[X]=he(ue))}function xe(X,ue,de){for(var ce in de){var Oe=o(X,ce);ge(ce,Oe.get(),de[ce],ue)}}function Le(X,ue,de){var ce=X._fullLayout,Oe=X._fullData,Te=X.data,We=ce._guiEditing,ie=ve(ce._preGUI,We),fe=a.extendDeepAll({},ue),be;Ue(ue);var Ne=C.traceFlags(),$e={},ot={},St;function Et(){return de.map(function(){})}function _t(En){var nr=f.id2name(En);St.indexOf(nr)===-1&&St.push(nr)}function kt(En){return"LAYOUT"+En+".autorange"}function Jt(En){return"LAYOUT"+En+".range"}function Rt(En){for(var nr=En;nr<Oe.length;nr++)if(Oe[nr]._input===Te[En])return Oe[nr]}function xt(En,nr,ba){if(Array.isArray(En)){En.forEach(function(za){xt(za,nr,ba)});return}if(!(En in ue||S.hasParent(ue,En))){var uo;if(En.substr(0,6)==="LAYOUT")uo=ie(X.layout,En.replace("LAYOUT",""));else{var wi=de[ba],xa=ce._tracePreGUI[Rt(wi)._fullInput.uid];uo=ve(xa,We)(Te[wi],En)}En in ot||(ot[En]=Et()),ot[En][ba]===void 0&&(ot[En][ba]=he(uo.get())),nr!==void 0&&uo.set(nr)}}function qt(En){return function(nr){return Oe[nr][En]}}function Wt(En){return function(nr,ba){return nr===!1?Oe[de[ba]][En]:null}}for(var It in ue){if(S.hasParent(ue,It))throw new Error("cannot set "+It+" and a parent attribute simultaneously");var Ft=ue[It],Tt,Lt,jt,rn,At,Qt;if((It==="autobinx"||It==="autobiny")&&(It=It.charAt(It.length-1)+"bins",Array.isArray(Ft)?Ft=Ft.map(Wt(It)):Ft===!1?Ft=de.map(qt(It)):Ft=null),$e[It]=Ft,It.substr(0,6)==="LAYOUT"){jt=ie(X.layout,It.replace("LAYOUT","")),ot[It]=[he(jt.get())],jt.set(Array.isArray(Ft)?Ft[0]:Ft),Ne.calc=!0;continue}for(ot[It]=Et(),be=0;be<de.length;be++){Tt=Te[de[be]],Lt=Rt(de[be]);var Bt=ce._tracePreGUI[Lt._fullInput.uid];if(jt=ve(Bt,We)(Tt,It),rn=jt.get(),At=Array.isArray(Ft)?Ft[be%Ft.length]:Ft,At!==void 0){var On=jt.parts[jt.parts.length-1],Xt=It.substr(0,It.length-On.length-1),Sn=Xt?Xt+".":"",Nn=Xt?o(Lt,Xt).get():Lt;if(Qt=u.getTraceValObject(Lt,jt.parts),Qt&&Qt.impliedEdits&&At!==null)for(var Zr in Qt.impliedEdits)xt(a.relativeAttr(It,Zr),Qt.impliedEdits[Zr],be);else if((On==="thicknessmode"||On==="lenmode")&&rn!==At&&(At==="fraction"||At==="pixels")&&Nn){var mr=ce._size,gr=Nn.orient,jo=gr==="top"||gr==="bottom";if(On==="thicknessmode"){var ol=jo?mr.h:mr.w;xt(Sn+"thickness",Nn.thickness*(At==="fraction"?1/ol:ol),be)}else{var sr=jo?mr.w:mr.h;xt(Sn+"len",Nn.len*(At==="fraction"?1/sr:sr),be)}}else if(It==="type"&&(At==="pie"!=(rn==="pie")||At==="funnelarea"!=(rn==="funnelarea"))){var va="x",il="y";(At==="bar"||rn==="bar")&&Tt.orientation==="h"&&(va="y",il="x"),a.swapAttrs(Tt,["?","?src"],"labels",va),a.swapAttrs(Tt,["d?","?0"],"label",va),a.swapAttrs(Tt,["?","?src"],"values",il),rn==="pie"||rn==="funnelarea"?(o(Tt,"marker.color").set(o(Tt,"marker.colors").get()),ce._pielayer.selectAll("g.trace").remove()):s.traceIs(Tt,"cartesian")&&o(Tt,"marker.colors").set(o(Tt,"marker.color").get())}ot[It][be]=he(rn);var so=["swapxy","swapxyaxes","orientation","orientationaxes"];if(so.indexOf(It)!==-1){if(It==="orientation"){jt.set(At);var cn=Tt.x&&!Tt.y?"h":"v";if((jt.get()||cn)===Lt.orientation)continue}else It==="orientationaxes"&&(Tt.orientation={v:"h",h:"v"}[Lt.orientation]);S.swapXYData(Tt),Ne.calc=Ne.clearAxisTypes=!0}else d.dataArrayContainers.indexOf(jt.parts[0])!==-1?(S.manageArrayContainers(jt,At,ot),Ne.calc=!0):(Qt?Qt.arrayOk&&!s.traceIs(Lt,"regl")&&(a.isArrayOrTypedArray(At)||a.isArrayOrTypedArray(rn))?Ne.calc=!0:C.update(Ne,Qt):Ne.calc=!0,jt.set(At))}}if(["swapxyaxes","orientationaxes"].indexOf(It)!==-1&&f.swap(X,de),It==="orientationaxes"){var co=o(X.layout,"hovermode"),Vo=co.get();Vo==="x"?co.set("y"):Vo==="y"?co.set("x"):Vo==="x unified"?co.set("y unified"):Vo==="y unified"&&co.set("x unified")}if(["orientation","type"].indexOf(It)!==-1){for(St=[],be=0;be<de.length;be++){var ll=Te[de[be]];s.traceIs(ll,"cartesian")&&(_t(ll.xaxis||"x"),_t(ll.yaxis||"y"))}xt(St.map(kt),!0,0),xt(St.map(Jt),[0,1],0)}}return(Ne.calc||Ne.plot)&&(Ne.fullReplot=!0),{flags:Ne,undoit:ot,redoit:$e,traces:de,eventData:a.extendDeepNoArrays([],[fe,de])}}function Ue(X){var ue=a.counterRegex("axis",".title",!1,!1),de=/colorbar\.title$/,ce=Object.keys(X),Oe,Te,We;for(Oe=0;Oe<ce.length;Oe++)Te=ce[Oe],We=X[Te],(Te==="title"||ue.test(Te)||de.test(Te))&&(typeof We=="string"||typeof We=="number")?ie(Te,Te.replace("title","title.text")):Te.indexOf("titlefont")>-1&&Te.indexOf("grouptitlefont")===-1?ie(Te,Te.replace("titlefont","title.font")):Te.indexOf("titleposition")>-1?ie(Te,Te.replace("titleposition","title.position")):Te.indexOf("titleside")>-1?ie(Te,Te.replace("titleside","title.side")):Te.indexOf("titleoffset")>-1&&ie(Te,Te.replace("titleoffset","title.offset"));function ie(fe,be){X[be]=X[fe],delete X[fe]}}function Pe(X,ue,de){X=a.getGraphDiv(X),S.clearPromiseQueue(X);var ce={};if(typeof ue=="string")ce[ue]=de;else if(a.isPlainObject(ue))ce=a.extendFlat({},ue);else return a.warn("Relayout fail.",ue,de),Promise.reject();Object.keys(ce).length&&(X.changed=!0);var Oe=we(X,ce),Te=Oe.flags;Te.calc&&(X.calcdata=void 0);var We=[d.previousPromises];Te.layoutReplot?We.push(T.layoutReplot):Object.keys(ce).length&&(De(X,Te,Oe)||d.supplyDefaults(X),Te.legend&&We.push(T.doLegend),Te.layoutstyle&&We.push(T.layoutStyles),Te.axrange&&je(We,Oe.rangesAltered),Te.ticks&&We.push(T.doTicksRelayout),Te.modebar&&We.push(T.doModeBar),Te.camera&&We.push(T.doCamera),Te.colorbars&&We.push(T.doColorBars),We.push(N)),We.push(d.rehover,d.redrag,d.reselect),l.add(X,Pe,[X,Oe.undoit],Pe,[X,Oe.redoit]);var ie=a.syncOrAsync(We,X);return(!ie||!ie.then)&&(ie=Promise.resolve(X)),ie.then(function(){return X.emit("plotly_relayout",Oe.eventData),X})}function De(X,ue,de){var ce=X._fullLayout;if(!ue.axrange)return!1;for(var Oe in ue)if(Oe!=="axrange"&&ue[Oe])return!1;var Te,We,ie=function(St,Et){return a.coerce(Te,We,g,St,Et)},fe={};for(var be in de.rangesAltered){var Ne=f.id2name(be);if(Te=X.layout[Ne],We=ce[Ne],p(Te,We,ie,fe),We._matchGroup){for(var $e in We._matchGroup)if($e!==be){var ot=ce[f.id2name($e)];ot.autorange=We.autorange,ot.range=We.range.slice(),ot._input.range=We.range.slice()}}}return!0}function je(X,ue){var de=ue?function(ce){var Oe=[],Te=!0;for(var We in ue){var ie=f.getFromId(ce,We);if(Oe.push(We),(ie.ticklabelposition||"").indexOf("inside")!==-1&&ie._anchorAxis&&Oe.push(ie._anchorAxis._id),ie._matchGroup)for(var fe in ie._matchGroup)ue[fe]||Oe.push(fe)}return f.draw(ce,Oe,{skipTitle:Te})}:function(ce){return f.draw(ce,"redraw")};X.push(x,T.doAutoRangeAndConstraints,de,T.drawData,T.finalDraw)}var qe=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ee=/^[xyz]axis[0-9]*\.autorange$/,_e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function we(X,ue){var de=X.layout,ce=X._fullLayout,Oe=ce._guiEditing,Te=ve(ce._preGUI,Oe),We=Object.keys(ue),ie=f.list(X),fe=a.extendDeepAll({},ue),be={},Ne,$e,ot;for(Ue(ue),We=Object.keys(ue),$e=0;$e<We.length;$e++)if(We[$e].indexOf("allaxes")===0){for(ot=0;ot<ie.length;ot++){var St=ie[ot]._id.substr(1),Et=St.indexOf("scene")!==-1?St+".":"",_t=We[$e].replace("allaxes",Et+ie[ot]._name);ue[_t]||(ue[_t]=ue[We[$e]])}delete ue[We[$e]]}var kt=C.layoutFlags(),Jt={},Rt={};function xt(xa,za){if(Array.isArray(xa)){xa.forEach(function(gy){xt(gy,za)});return}if(!(xa in ue||S.hasParent(ue,xa))){var hd=Te(de,xa);xa in Rt||(Rt[xa]=he(hd.get())),za!==void 0&&hd.set(za)}}var qt={},Wt;function It(xa){var za=f.name2id(xa.split(".")[0]);return qt[za]=1,za}for(var Ft in ue){if(S.hasParent(ue,Ft))throw new Error("cannot set "+Ft+" and a parent attribute simultaneously");for(var Tt=Te(de,Ft),Lt=ue[Ft],jt=Tt.parts.length,rn=jt-1;rn>0&&typeof Tt.parts[rn]!="string";)rn--;var At=Tt.parts[rn],Qt=Tt.parts[rn-1]+"."+At,Bt=Tt.parts.slice(0,rn).join("."),On=o(X.layout,Bt).get(),Xt=o(ce,Bt).get(),Sn=Tt.get();if(Lt!==void 0){Jt[Ft]=Lt,Rt[Ft]=At==="reverse"?Lt:he(Sn);var Nn=u.getLayoutValObject(ce,Tt.parts);if(Nn&&Nn.impliedEdits&&Lt!==null)for(var Zr in Nn.impliedEdits)xt(a.relativeAttr(Ft,Zr),Nn.impliedEdits[Zr]);if(["width","height"].indexOf(Ft)!==-1)if(Lt){xt("autosize",null);var mr=Ft==="height"?"width":"height";xt(mr,ce[mr])}else ce[Ft]=X._initialAutoSize[Ft];else if(Ft==="autosize")xt("width",Lt?null:ce.width),xt("height",Lt?null:ce.height);else if(Qt.match(qe))It(Qt),o(ce,Bt+"._inputRange").set(null);else if(Qt.match(Ee)){It(Qt),o(ce,Bt+"._inputRange").set(null);var gr=o(ce,Bt).get();gr._inputDomain&&(gr._input.domain=gr._inputDomain.slice())}else Qt.match(_e)&&o(ce,Bt+"._inputDomain").set(null);if(At==="type"){Wt=On;var jo=Xt.type==="linear"&&Lt==="log",ol=Xt.type==="log"&&Lt==="linear";if(jo||ol){if(!Wt||!Wt.range)xt(Bt+".autorange",!0);else if(Xt.autorange)jo&&(Wt.range=Wt.range[1]>Wt.range[0]?[1,2]:[2,1]);else{var sr=Wt.range[0],va=Wt.range[1];jo?(sr<=0&&va<=0&&xt(Bt+".autorange",!0),sr<=0?sr=va/1e6:va<=0&&(va=sr/1e6),xt(Bt+".range[0]",Math.log(sr)/Math.LN10),xt(Bt+".range[1]",Math.log(va)/Math.LN10)):(xt(Bt+".range[0]",Math.pow(10,sr)),xt(Bt+".range[1]",Math.pow(10,va)))}Array.isArray(ce._subplots.polar)&&ce._subplots.polar.length&&ce[Tt.parts[0]]&&Tt.parts[1]==="radialaxis"&&delete ce[Tt.parts[0]]._subplot.viewInitial["radialaxis.range"],s.getComponentMethod("annotations","convertCoords")(X,Xt,Lt,xt),s.getComponentMethod("images","convertCoords")(X,Xt,Lt,xt)}else xt(Bt+".autorange",!0),xt(Bt+".range",null);o(ce,Bt+"._inputRange").set(null)}else if(At.match(A)){var il=o(ce,Ft).get(),so=(Lt||{}).type;(!so||so==="-")&&(so="linear"),s.getComponentMethod("annotations","convertCoords")(X,il,so,xt),s.getComponentMethod("images","convertCoords")(X,il,so,xt)}var cn=_.containerArrayMatch(Ft);if(cn){Ne=cn.array,$e=cn.index;var co=cn.property,Vo=Nn||{editType:"calc"};$e!==""&&co===""&&(_.isAddVal(Lt)?Rt[Ft]=null:_.isRemoveVal(Lt)?Rt[Ft]=(o(de,Ne).get()||[])[$e]:a.warn("unrecognized full object value",ue)),C.update(kt,Vo),be[Ne]||(be[Ne]={});var ll=be[Ne][$e];ll||(ll=be[Ne][$e]={}),ll[co]=Lt,delete ue[Ft]}else At==="reverse"?(On.range?On.range.reverse():(xt(Bt+".autorange",!0),On.range=[1,0]),Xt.autorange?kt.calc=!0:kt.plot=!0):(Ft==="dragmode"&&(Lt===!1&&Sn!==!1||Lt!==!1&&Sn===!1)||ce._has("scatter-like")&&ce._has("regl")&&Ft==="dragmode"&&(Lt==="lasso"||Lt==="select")&&!(Sn==="lasso"||Sn==="select")||ce._has("gl2d")?kt.plot=!0:Nn?C.update(kt,Nn):kt.calc=!0,Tt.set(Lt))}}for(Ne in be){var En=_.applyContainerArrayChanges(X,Te(de,Ne),be[Ne],kt,Te);En||(kt.plot=!0)}for(var nr in qt){Wt=f.getFromId(X,nr);var ba=Wt&&Wt._constraintGroup;if(ba){kt.calc=!0;for(var uo in ba)qt[uo]||(f.getFromId(X,uo)._constraintShrinkable=!0)}}(Re(X)||ue.height||ue.width)&&(kt.plot=!0);var wi=ce.shapes;for($e=0;$e<wi.length;$e++)if(wi[$e].showlegend){kt.calc=!0;break}return(kt.plot||kt.calc)&&(kt.layoutReplot=!0),{flags:kt,rangesAltered:qt,undoit:Rt,redoit:Jt,eventData:fe}}function Re(X){var ue=X._fullLayout,de=ue.width,ce=ue.height;return X.layout.autosize&&d.plotAutoSize(X,X.layout,ue),ue.width!==de||ue.height!==ce}function Je(X,ue,de,ce){X=a.getGraphDiv(X),S.clearPromiseQueue(X),a.isPlainObject(ue)||(ue={}),a.isPlainObject(de)||(de={}),Object.keys(ue).length&&(X.changed=!0),Object.keys(de).length&&(X.changed=!0);var Oe=S.coerceTraceIndices(X,ce),Te=Le(X,a.extendFlat({},ue),Oe),We=Te.flags,ie=we(X,a.extendFlat({},de)),fe=ie.flags;(We.calc||fe.calc)&&(X.calcdata=void 0),We.clearAxisTypes&&S.clearAxisTypes(X,Oe,de);var be=[];fe.layoutReplot?be.push(T.layoutReplot):We.fullReplot?be.push(e._doPlot):(be.push(d.previousPromises),De(X,fe,ie)||d.supplyDefaults(X),We.style&&be.push(T.doTraceStyle),(We.colorbars||fe.colorbars)&&be.push(T.doColorBars),fe.legend&&be.push(T.doLegend),fe.layoutstyle&&be.push(T.layoutStyles),fe.axrange&&je(be,ie.rangesAltered),fe.ticks&&be.push(T.doTicksRelayout),fe.modebar&&be.push(T.doModeBar),fe.camera&&be.push(T.doCamera),be.push(N)),be.push(d.rehover,d.redrag,d.reselect),l.add(X,Je,[X,Te.undoit,ie.undoit,Te.traces],Je,[X,Te.redoit,ie.redoit,Te.traces]);var Ne=a.syncOrAsync(be,X);return(!Ne||!Ne.then)&&(Ne=Promise.resolve(X)),Ne.then(function(){return X.emit("plotly_update",{data:Te.eventData,layout:ie.eventData}),X})}function it(X){return function(ue){ue._fullLayout._guiEditing=!0;var de=X.apply(null,arguments);return ue._fullLayout._guiEditing=!1,de}}var dt=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],at=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function lt(X,ue){for(var de=0;de<ue.length;de++){var ce=ue[de],Oe=X.match(ce.pattern);if(Oe){var Te=Oe[1]||"";return{head:Te,tail:X.substr(Te.length+1),attr:ce.attr}}}}function He(X,ue){var de=o(ue,X).get();if(de!==void 0)return de;var ce=X.split(".");for(ce.pop();ce.length>1;)if(ce.pop(),de=o(ue,ce.join(".")+".uirevision").get(),de!==void 0)return de;return ue.uirevision}function Be(X,ue){for(var de=0;de<ue.length;de++)if(ue[de]._fullInput.uid===X)return de;return-1}function Ze(X,ue,de){for(var ce=0;ce<ue.length;ce++)if(ue[ce].uid===X)return ce;return!ue[de]||ue[de].uid?-1:de}function Ye(X,ue){var de=a.isPlainObject(X),ce=Array.isArray(X);return de||ce?(de&&a.isPlainObject(ue)||ce&&Array.isArray(ue))&&JSON.stringify(X)===JSON.stringify(ue):X===ue}function et(X,ue,de,ce){var Oe=ce._preGUI,Te,We,ie,fe,be,Ne,$e,ot,St,Et,_t=[],kt={},Jt={};for(Te in Oe){if(be=lt(Te,dt),be){if(St=be.head,Et=be.tail,We=be.attr||St+".uirevision",ie=o(ce,We).get(),fe=ie&&He(We,ue),fe&&fe===ie){if(Ne=Oe[Te],Ne===null&&(Ne=void 0),$e=o(ue,Te),ot=$e.get(),Ye(ot,Ne)){ot===void 0&&Et==="autorange"&&_t.push(St),$e.set(he(o(ce,Te).get()));continue}else if(Et==="autorange"||Et.substr(0,6)==="range["){var Rt=Oe[St+".range[0]"],xt=Oe[St+".range[1]"],qt=Oe[St+".autorange"];if(qt||qt===null&&Rt===null&&xt===null){if(!(St in kt)){var Wt=o(ue,St).get();kt[St]=Wt&&(Wt.autorange||Wt.autorange!==!1&&(!Wt.range||Wt.range.length!==2))}if(kt[St]){$e.set(he(o(ce,Te).get()));continue}}}}}else a.warn("unrecognized GUI edit: "+Te);delete Oe[Te],be&&be.tail.substr(0,6)==="range["&&(Jt[be.head]=1)}for(var It=0;It<_t.length;It++){var Ft=_t[It];if(Jt[Ft]){var Tt=o(ue,Ft).get();Tt&&delete Tt.autorange}}var Lt=ce._tracePreGUI;for(var jt in Lt){var rn=Lt[jt],At=null,Qt;for(Te in rn){if(!At){var Bt=Be(jt,de);if(Bt<0){delete Lt[jt];break}var On=de[Bt];Qt=On._fullInput;var Xt=Ze(jt,X,Qt.index);if(Xt<0){delete Lt[jt];break}At=X[Xt]}if(be=lt(Te,at),be){if(be.attr?(ie=o(ce,be.attr).get(),fe=ie&&He(be.attr,ue)):(ie=Qt.uirevision,fe=At.uirevision,fe===void 0&&(fe=ue.uirevision)),fe&&fe===ie&&(Ne=rn[Te],Ne===null&&(Ne=void 0),$e=o(At,Te),ot=$e.get(),Ye(ot,Ne))){$e.set(he(o(Qt,Te).get()));continue}}else a.warn("unrecognized GUI edit: "+Te+" in trace uid "+jt);delete rn[Te]}}}function st(X,ue,de,ce){var Oe,Te;function We(){return e.addFrames(X,Oe)}X=a.getGraphDiv(X),S.clearPromiseQueue(X);var ie=X._fullData,fe=X._fullLayout;if(!a.isPlotDiv(X)||!ie||!fe)Te=e.newPlot(X,ue,de,ce);else{if(a.isPlainObject(ue)){var be=ue;ue=be.data,de=be.layout,ce=be.config,Oe=be.frames}var Ne=!1;if(ce){var $e=a.extendDeep({},X._context);X._context=void 0,G(X,ce),Ne=rt($e,X._context)}X.data=ue||[],S.cleanData(X.data),X.layout=de||{},S.cleanLayout(X.layout),et(X.data,X.layout,ie,fe),d.supplyDefaults(X,{skipUpdateCalc:!0});var ot=X._fullData,St=X._fullLayout,Et=St.datarevision===void 0,_t=St.transition,kt=gt(X,fe,St,Et,_t),Jt=kt.newDataRevision,Rt=nt(X,ie,ot,Et,_t,Jt);if(Re(X)&&(kt.layoutReplot=!0),Rt.calc||kt.calc){X.calcdata=void 0;for(var xt=Object.getOwnPropertyNames(St),qt=0;qt<xt.length;qt++){var Wt=xt[qt],It=Wt.substring(0,5);if(It==="xaxis"||It==="yaxis"){var Ft=St[Wt]._emptyCategories;Ft&&Ft()}}}else d.supplyDefaultsUpdateCalc(X.calcdata,ot);var Tt=[];if(Oe&&(X._transitionData={},d.createTransitionData(X),Tt.push(We)),St.transition&&!Ne&&(Rt.anim||kt.anim))kt.ticks&&Tt.push(T.doTicksRelayout),d.doCalcdata(X),T.doAutoRangeAndConstraints(X),Tt.push(function(){return d.transitionFromReact(X,Rt,kt,fe)});else if(Rt.fullReplot||kt.layoutReplot||Ne)X._fullLayout._skipDefaults=!0,Tt.push(e._doPlot);else{for(var Lt in kt.arrays){var jt=kt.arrays[Lt];if(jt.length){var rn=s.getComponentMethod(Lt,"drawOne");if(rn!==a.noop)for(var At=0;At<jt.length;At++)rn(X,jt[At]);else{var Qt=s.getComponentMethod(Lt,"draw");if(Qt===a.noop)throw new Error("cannot draw components: "+Lt);Qt(X)}}}Tt.push(d.previousPromises),Rt.style&&Tt.push(T.doTraceStyle),(Rt.colorbars||kt.colorbars)&&Tt.push(T.doColorBars),kt.legend&&Tt.push(T.doLegend),kt.layoutstyle&&Tt.push(T.layoutStyles),kt.axrange&&je(Tt),kt.ticks&&Tt.push(T.doTicksRelayout),kt.modebar&&Tt.push(T.doModeBar),kt.camera&&Tt.push(T.doCamera),Tt.push(N)}Tt.push(d.rehover,d.redrag,d.reselect),Te=a.syncOrAsync(Tt,X),(!Te||!Te.then)&&(Te=Promise.resolve(X))}return Te.then(function(){return X.emit("plotly_react",{data:ue,layout:de}),X})}function nt(X,ue,de,ce,Oe,Te){var We=ue.length===de.length;if(!Oe&&!We)return{fullReplot:!0,calc:!0};var ie=C.traceFlags();ie.arrays={},ie.nChanges=0,ie.nChangesAnim=0;var fe,be;function Ne(St){var Et=u.getTraceValObject(be,St);return!be._module.animatable&&Et.anim&&(Et.anim=!1),Et}var $e={getValObject:Ne,flags:ie,immutable:ce,transition:Oe,newDataRevision:Te,gd:X},ot={};for(fe=0;fe<ue.length;fe++)if(de[fe]){if(be=de[fe]._fullInput,d.hasMakesDataTransform(be)&&(be=de[fe]),ot[be.uid])continue;ot[be.uid]=1,Ve(ue[fe]._fullInput,be,[],$e)}return(ie.calc||ie.plot)&&(ie.fullReplot=!0),Oe&&ie.nChanges&&ie.nChangesAnim&&(ie.anim=ie.nChanges===ie.nChangesAnim&&We?"all":"some"),ie}function gt(X,ue,de,ce,Oe){var Te=C.layoutFlags();Te.arrays={},Te.rangesAltered={},Te.nChanges=0,Te.nChangesAnim=0;function We(fe){return u.getLayoutValObject(de,fe)}var ie={getValObject:We,flags:Te,immutable:ce,transition:Oe,gd:X};return Ve(ue,de,[],ie),(Te.plot||Te.calc)&&(Te.layoutReplot=!0),Oe&&Te.nChanges&&Te.nChangesAnim&&(Te.anim=Te.nChanges===Te.nChangesAnim?"all":"some"),Te}function Ve(X,ue,de,ce){var Oe,Te,We,ie=ce.getValObject,fe=ce.flags,be=ce.immutable,Ne=ce.inArray,$e=ce.arrayIndex;function ot(){var Bt=Oe.editType;if(Ne&&Bt.indexOf("arraydraw")!==-1){a.pushUnique(fe.arrays[Ne],$e);return}C.update(fe,Oe),Bt!=="none"&&fe.nChanges++,ce.transition&&Oe.anim&&fe.nChangesAnim++,(qe.test(We)||Ee.test(We))&&(fe.rangesAltered[de[0]]=1),_e.test(We)&&o(ue,"_inputDomain").set(null),Te==="datarevision"&&(fe.newDataRevision=1)}function St(Bt){return Bt.valType==="data_array"||Bt.arrayOk}for(Te in X){if(fe.calc&&!ce.transition)return;var Et=X[Te],_t=ue[Te],kt=de.concat(Te);if(We=kt.join("."),!(Te.charAt(0)==="_"||typeof Et=="function"||Et===_t)){if((Te==="tick0"||Te==="dtick")&&de[0]!=="geo"){var Jt=ue.tickmode;if(Jt==="auto"||Jt==="array"||!Jt)continue}if(!(Te==="range"&&ue.autorange)&&!((Te==="zmin"||Te==="zmax")&&ue.type==="contourcarpet")&&(Oe=ie(kt),!!Oe&&!(Oe._compareAsJSON&&JSON.stringify(Et)===JSON.stringify(_t)))){var Rt=Oe.valType,xt,qt=St(Oe),Wt=Array.isArray(Et),It=Array.isArray(_t);if(Wt&&It){var Ft="_input_"+Te,Tt=X[Ft],Lt=ue[Ft];if(Array.isArray(Tt)&&Tt===Lt)continue}if(_t===void 0)qt&&Wt?fe.calc=!0:ot();else if(Oe._isLinkedToArray){var jt=[],rn=!1;Ne||(fe.arrays[Te]=jt);var At=Math.min(Et.length,_t.length),Qt=Math.max(Et.length,_t.length);if(At!==Qt)if(Oe.editType==="arraydraw")rn=!0;else{ot();continue}for(xt=0;xt<At;xt++)Ve(Et[xt],_t[xt],kt.concat(xt),a.extendFlat({inArray:Te,arrayIndex:xt},ce));if(rn)for(xt=At;xt<Qt;xt++)jt.push(xt)}else!Rt&&a.isPlainObject(Et)?Ve(Et,_t,kt,ce):qt?Wt&&It?(be&&(fe.calc=!0),(be||ce.newDataRevision)&&ot()):Wt!==It?fe.calc=!0:ot():Wt&&It?(Et.length!==_t.length||String(Et)!==String(_t))&&ot():ot()}}}for(Te in ue)if(!(Te in X||Te.charAt(0)==="_"||typeof ue[Te]=="function"))if(Oe=ie(de.concat(Te)),St(Oe)&&Array.isArray(ue[Te])){fe.calc=!0;return}else ot()}function rt(X,ue){var de;for(de in X)if(de.charAt(0)!=="_"){var ce=X[de],Oe=ue[de];if(ce!==Oe)if(a.isPlainObject(ce)&&a.isPlainObject(Oe)){if(rt(ce,Oe))return!0}else if(Array.isArray(ce)&&Array.isArray(Oe)){if(ce.length!==Oe.length)return!0;for(var Te=0;Te<ce.length;Te++)if(ce[Te]!==Oe[Te])if(a.isPlainObject(ce[Te])&&a.isPlainObject(Oe[Te])){if(rt(ce[Te],Oe[Te]))return!0}else return!0}else return!0}}function ft(X,ue,de){if(X=a.getGraphDiv(X),!a.isPlotDiv(X))throw new Error("This element is not a Plotly plot: "+X+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var ce=X._transitionData;ce._frameQueue||(ce._frameQueue=[]),de=d.supplyAnimationDefaults(de);var Oe=de.transition,Te=de.frame;ce._frameWaitingCnt===void 0&&(ce._frameWaitingCnt=0);function We(be){return Array.isArray(Oe)?be>=Oe.length?Oe[0]:Oe[be]:Oe}function ie(be){return Array.isArray(Te)?be>=Te.length?Te[0]:Te[be]:Te}function fe(be,Ne){var $e=0;return function(){if(be&&++$e===Ne)return be()}}return new Promise(function(be,Ne){function $e(){if(ce._frameQueue.length!==0){for(;ce._frameQueue.length;){var At=ce._frameQueue.pop();At.onInterrupt&&At.onInterrupt()}X.emit("plotly_animationinterrupted",[])}}function ot(At){if(At.length!==0){for(var Qt=0;Qt<At.length;Qt++){var Bt;At[Qt].type==="byname"?Bt=d.computeFrame(X,At[Qt].name):Bt=At[Qt].data;var On=ie(Qt),Xt=We(Qt);Xt.duration=Math.min(Xt.duration,On.duration);var Sn={frame:Bt,name:At[Qt].name,frameOpts:On,transitionOpts:Xt};Qt===At.length-1&&(Sn.onComplete=fe(be,2),Sn.onInterrupt=Ne),ce._frameQueue.push(Sn)}de.mode==="immediate"&&(ce._lastFrameAt=-1/0),ce._animationRaf||_t()}}function St(){X.emit("plotly_animated"),window.cancelAnimationFrame(ce._animationRaf),ce._animationRaf=null}function Et(){ce._currentFrame&&ce._currentFrame.onComplete&&ce._currentFrame.onComplete();var At=ce._currentFrame=ce._frameQueue.shift();if(At){var Qt=At.name?At.name.toString():null;X._fullLayout._currentFrame=Qt,ce._lastFrameAt=Date.now(),ce._timeToNext=At.frameOpts.duration,d.transition(X,At.frame.data,At.frame.layout,S.coerceTraceIndices(X,At.frame.traces),At.frameOpts,At.transitionOpts).then(function(){At.onComplete&&At.onComplete()}),X.emit("plotly_animatingframe",{name:Qt,frame:At.frame,animation:{frame:At.frameOpts,transition:At.transitionOpts}})}else St()}function _t(){X.emit("plotly_animating"),ce._lastFrameAt=-1/0,ce._timeToNext=0,ce._runningTransitions=0,ce._currentFrame=null;var At=function(){ce._animationRaf=window.requestAnimationFrame(At),Date.now()-ce._lastFrameAt>ce._timeToNext&&Et()};At()}var kt=0;function Jt(At){return Array.isArray(Oe)?kt>=Oe.length?At.transitionOpts=Oe[kt]:At.transitionOpts=Oe[0]:At.transitionOpts=Oe,kt++,At}var Rt,xt,qt=[],Wt=ue==null,It=Array.isArray(ue),Ft=!Wt&&!It&&a.isPlainObject(ue);if(Ft)qt.push({type:"object",data:Jt(a.extendFlat({},ue))});else if(Wt||["string","number"].indexOf(typeof ue)!==-1)for(Rt=0;Rt<ce._frames.length;Rt++)xt=ce._frames[Rt],xt&&(Wt||String(xt.group)===String(ue))&&qt.push({type:"byname",name:String(xt.name),data:Jt({name:xt.name})});else if(It)for(Rt=0;Rt<ue.length;Rt++){var Tt=ue[Rt];["number","string"].indexOf(typeof Tt)!==-1?(Tt=String(Tt),qt.push({type:"byname",name:Tt,data:Jt({name:Tt})})):a.isPlainObject(Tt)&&qt.push({type:"object",data:Jt(a.extendFlat({},Tt))})}for(Rt=0;Rt<qt.length;Rt++)if(xt=qt[Rt],xt.type==="byname"&&!ce._frameHash[xt.data.name]){a.warn('animate failure: frame not found: "'+xt.data.name+'"'),Ne();return}["next","immediate"].indexOf(de.mode)!==-1&&$e(),de.direction==="reverse"&&qt.reverse();var Lt=X._fullLayout._currentFrame;if(Lt&&de.fromcurrent){var jt=-1;for(Rt=0;Rt<qt.length;Rt++)if(xt=qt[Rt],xt.type==="byname"&&xt.name===Lt){jt=Rt;break}if(jt>0&&jt<qt.length-1){var rn=[];for(Rt=0;Rt<qt.length;Rt++)xt=qt[Rt],(qt[Rt].type!=="byname"||Rt>jt)&&rn.push(xt);qt=rn}}qt.length>0?ot(qt):(X.emit("plotly_animated"),be())})}function wt(X,ue,de){if(X=a.getGraphDiv(X),ue==null)return Promise.resolve();if(!a.isPlotDiv(X))throw new Error("This element is not a Plotly plot: "+X+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var ce,Oe,Te,We,ie=X._transitionData._frames,fe=X._transitionData._frameHash;if(!Array.isArray(ue))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+ue);var be=ie.length+ue.length*2,Ne=[],$e={};for(ce=ue.length-1;ce>=0;ce--)if(a.isPlainObject(ue[ce])){var ot=ue[ce].name,St=(fe[ot]||$e[ot]||{}).name,Et=ue[ce].name,_t=fe[St]||$e[St];St&&Et&&typeof Et=="number"&&_t&&O<F&&(O++,a.warn('addFrames: overwriting frame "'+(fe[St]||$e[St]).name+'" with a frame whose name of type "number" also equates to "'+St+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),O===F&&a.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),$e[ot]={name:ot},Ne.push({frame:d.supplyFrameDefaults(ue[ce]),index:de&&de[ce]!==void 0&&de[ce]!==null?de[ce]:be+ce})}Ne.sort(function(Ft,Tt){return Ft.index>Tt.index?-1:Ft.index<Tt.index?1:0});var kt=[],Jt=[],Rt=ie.length;for(ce=Ne.length-1;ce>=0;ce--){if(Oe=Ne[ce].frame,typeof Oe.name=="number"&&a.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Oe.name)for(;fe[Oe.name="frame "+X._transitionData._counter++];);if(fe[Oe.name]){for(Te=0;Te<ie.length&&(ie[Te]||{}).name!==Oe.name;Te++);kt.push({type:"replace",index:Te,value:Oe}),Jt.unshift({type:"replace",index:Te,value:ie[Te]})}else We=Math.max(0,Math.min(Ne[ce].index,Rt)),kt.push({type:"insert",index:We,value:Oe}),Jt.unshift({type:"delete",index:We}),Rt++}var xt=d.modifyFrames,qt=d.modifyFrames,Wt=[X,Jt],It=[X,kt];return l&&l.add(X,xt,Wt,qt,It),d.modifyFrames(X,kt)}function tt(X,ue){if(X=a.getGraphDiv(X),!a.isPlotDiv(X))throw new Error("This element is not a Plotly plot: "+X);var de,ce,Oe=X._transitionData._frames,Te=[],We=[];if(!ue)for(ue=[],de=0;de<Oe.length;de++)ue.push(de);for(ue=ue.slice(),ue.sort(),de=ue.length-1;de>=0;de--)ce=ue[de],Te.push({type:"delete",index:ce}),We.unshift({type:"insert",index:ce,value:Oe[ce]});var ie=d.modifyFrames,fe=d.modifyFrames,be=[X,We],Ne=[X,Te];return l&&l.add(X,ie,be,fe,Ne),d.modifyFrames(X,Te)}function pt(X){X=a.getGraphDiv(X);var ue=X._fullLayout||{},de=X._fullData||[];return d.cleanPlot([],{},de,ue),d.purge(X),i.purge(X),ue._container&&ue._container.remove(),delete X._context,X}function Ke(X){var ue=X._fullLayout,de=X.getBoundingClientRect();if(!a.equalDomRects(de,ue._lastBBox)){var ce=ue._invTransform=a.inverseTransformMatrix(a.getFullTransformMatrix(X));ue._invScaleX=Math.sqrt(ce[0][0]*ce[0][0]+ce[0][1]*ce[0][1]+ce[0][2]*ce[0][2]),ue._invScaleY=Math.sqrt(ce[1][0]*ce[1][0]+ce[1][1]*ce[1][1]+ce[1][2]*ce[1][2]),ue._lastBBox=de}}function Ot(X){var ue=t.select(X),de=X._fullLayout;if(de._calcInverseTransform=Ke,de._calcInverseTransform(X),de._container=ue.selectAll(".plot-container").data([0]),de._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),de._paperdiv=de._container.selectAll(".svg-container").data([0]),de._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),de._glcontainer=de._paperdiv.selectAll(".gl-container").data([{}]),de._glcontainer.enter().append("div").classed("gl-container",!0),de._paperdiv.selectAll(".main-svg").remove(),de._paperdiv.select(".modebar-container").remove(),de._paper=de._paperdiv.insert("svg",":first-child").classed("main-svg",!0),de._toppaper=de._paperdiv.append("svg").classed("main-svg",!0),de._modebardiv=de._paperdiv.append("div"),delete de._modeBar,de._hoverpaper=de._paperdiv.append("svg").classed("main-svg",!0),!de._uid){var ce={};t.selectAll("defs").each(function(){this.id&&(ce[this.id.split("-")[1]]=1)}),de._uid=a.randstr(ce)}de._paperdiv.selectAll(".main-svg").attr(v.svgAttrs),de._defs=de._paper.append("defs").attr("id","defs-"+de._uid),de._clips=de._defs.append("g").classed("clips",!0),de._topdefs=de._toppaper.append("defs").attr("id","topdefs-"+de._uid),de._topclips=de._topdefs.append("g").classed("clips",!0),de._bgLayer=de._paper.append("g").classed("bglayer",!0),de._draggers=de._paper.append("g").classed("draglayer",!0);var Oe=de._paper.append("g").classed("layer-below",!0);de._imageLowerLayer=Oe.append("g").classed("imagelayer",!0),de._shapeLowerLayer=Oe.append("g").classed("shapelayer",!0),de._cartesianlayer=de._paper.append("g").classed("cartesianlayer",!0),de._polarlayer=de._paper.append("g").classed("polarlayer",!0),de._smithlayer=de._paper.append("g").classed("smithlayer",!0),de._ternarylayer=de._paper.append("g").classed("ternarylayer",!0),de._geolayer=de._paper.append("g").classed("geolayer",!0),de._funnelarealayer=de._paper.append("g").classed("funnelarealayer",!0),de._pielayer=de._paper.append("g").classed("pielayer",!0),de._iciclelayer=de._paper.append("g").classed("iciclelayer",!0),de._treemaplayer=de._paper.append("g").classed("treemaplayer",!0),de._sunburstlayer=de._paper.append("g").classed("sunburstlayer",!0),de._indicatorlayer=de._toppaper.append("g").classed("indicatorlayer",!0),de._glimages=de._paper.append("g").classed("glimages",!0);var Te=de._toppaper.append("g").classed("layer-above",!0);de._imageUpperLayer=Te.append("g").classed("imagelayer",!0),de._shapeUpperLayer=Te.append("g").classed("shapelayer",!0),de._selectionLayer=de._toppaper.append("g").classed("selectionlayer",!0),de._infolayer=de._toppaper.append("g").classed("infolayer",!0),de._menulayer=de._toppaper.append("g").classed("menulayer",!0),de._zoomlayer=de._toppaper.append("g").classed("zoomlayer",!0),de._hoverlayer=de._hoverpaper.append("g").classed("hoverlayer",!0),de._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),X.emit("plotly_framework")}e.animate=ft,e.addFrames=wt,e.deleteFrames=tt,e.addTraces=Y,e.deleteTraces=J,e.extendTraces=se,e.moveTraces=re,e.prependTraces=U,e.newPlot=P,e._doPlot=R,e.purge=pt,e.react=st,e.redraw=I,e.relayout=Pe,e.restyle=oe,e.setPlotConfig=B,e.update=Je,e._guiRelayout=it(Pe),e._guiRestyle=it(oe),e._guiUpdate=it(Je),e._storeDirectGUIEdit=xe}(mx);var Ur={},$me=Dt;Ur.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},Ur.getRedrawFunc=function(e){return function(){$me.getComponentMethod("colorbar","draw")(e)}},Ur.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},Ur.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var Fz=window.URL||window.webkitURL;Ur.createObjectURL=function(e){return Fz.createObjectURL(e)},Ur.revokeObjectURL=function(e){return Fz.revokeObjectURL(e)},Ur.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var n=ege(window.atob(e));return new window.Blob([n],{type:"image/"+t})},Ur.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ege(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}Ur.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,Ur.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.";var Nw=$t,tge=Ge,nge=gn,rge=Kt,y0=Ll,Bw=/"/g,lp="TOBESTRIPPED",age=new RegExp('("'+lp+")|("+lp+'")',"g");function oge(e){var t=Nw.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,function(r){return r==="&lt;"?"&#60;":r==="&rt;"?"&#62;":r.indexOf("<")!==-1||r.indexOf(">")!==-1?"":t.html(r).text()});return t.remove(),n}function ige(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}var jw=function(e,t,n){var r=e._fullLayout,a=r._paper,o=r._toppaper,i=r.width,l=r.height,s;a.insert("rect",":first-child").call(nge.setRect,0,0,i,l).call(rge.fill,r.paper_bgcolor);var u=r._basePlotModules||[];for(s=0;s<u.length;s++){var d=u[s];d.toSVG&&d.toSVG(e)}if(o){var f=o.node().childNodes,p=Array.prototype.slice.call(f);for(s=0;s<p.length;s++){var g=p[s];g.childNodes.length&&a.node().appendChild(g)}}r._draggers&&r._draggers.remove(),a.node().style.background="",a.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=Nw.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&y.style("font-family",b.replace(Bw,lp))}),a.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=Nw.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(Bw,lp));var v=this.style.stroke;v&&v.indexOf("url(")!==-1&&y.style("stroke",v.replace(Bw,lp))}),(t==="pdf"||t==="eps")&&a.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),a.node().setAttributeNS(y0.xmlns,"xmlns",y0.svg),a.node().setAttributeNS(y0.xmlns,"xmlns:xlink",y0.xlink),t==="svg"&&n&&(a.attr("width",n*i),a.attr("height",n*l),a.attr("viewBox","0 0 "+i+" "+l));var h=new window.XMLSerializer().serializeToString(a.node());return h=oge(h),h=ige(h),h=h.replace(age,"'"),tge.isIE()&&(h=h.replace(/"/gi,"'"),h=h.replace(/(\('#)([^']*)('\))/gi,'("#$2")'),h=h.replace(/(\\')/gi,'"')),h},Iz=Ge,lge=vx.EventEmitter,Iu=Ur;function sge(e){var t=e.emitter||new lge,n=new Promise(function(r,a){var o=window.Image,i=e.svg,l=e.format||"png";if(Iz.isIE()&&l!=="svg"){var s=new Error(Iu.MSG_IE_BAD_FORMAT);return a(s),e.promise?n:t.emit("error",s)}var u=e.canvas,d=e.scale||1,f=e.width||300,p=e.height||150,g=d*f,h=d*p,y=u.getContext("2d",{willReadFrequently:!0}),b=new o,v,x;l==="svg"||Iz.isSafari()?x=Iu.encodeSVG(i):(v=Iu.createBlob(i,"svg"),x=Iu.createObjectURL(v)),u.width=g,u.height=h,b.onload=function(){var k;switch(v=null,Iu.revokeObjectURL(x),l!=="svg"&&y.drawImage(b,0,0,g,h),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(a(new Error(_)),!e.promise)return t.emit("error",_)}r(k),e.promise||t.emit("success",k)},b.onerror=function(k){if(v=null,Iu.revokeObjectURL(x),a(k),!e.promise)return t.emit("error",k)},b.src=x});return e.promise?n:t}var Vw=sge,Dz=en,Pz=mx,cge=wr,mi=Ge,sp=Ur,uge=jw,dge=Vw,fge=cm.version,Hw={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(" ")}};function pge(e,t){t=t||{};var n,r,a,o;mi.isPlainObject(e)?(n=e.data||[],r=e.layout||{},a=e.config||{},o={}):(e=mi.getGraphDiv(e),n=mi.extendDeep([],e.data),r=mi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(T){return!(T in t)||mi.validate(t[T],Hw[T])}if(!i("width")&&t.width!==null||!i("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+mi.join2(Hw.format.values,", "," or ")+".");var l={};function s(T,C){return mi.coerce(t,l,Hw,T,C)}var u=s("format"),d=s("width"),f=s("height"),p=s("scale"),g=s("setBackground"),h=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var b=mi.extendFlat({},r);d?b.width=d:t.width===null&&Dz(o.width)&&(b.width=o.width),f?b.height=f:t.height===null&&Dz(o.height)&&(b.height=o.height);var v=mi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:g}),x=sp.getRedrawFunc(y);function k(){return new Promise(function(T){setTimeout(T,sp.getDelay(y._fullLayout))})}function _(){return new Promise(function(T,C){var A=uge(y,u,p),O=y._fullLayout.width,F=y._fullLayout.height;function R(){Pz.purge(y),document.body.removeChild(y)}if(u==="full-json"){var N=cge.graphJson(y,!1,"keepdata","object",!0,!0);return N.version=fge,N=JSON.stringify(N),R(),T(h?N:sp.encodeJSON(N))}if(R(),u==="svg")return T(h?A:sp.encodeSVG(A));var B=document.createElement("canvas");B.id=mi.randstr(),dge({format:u,width:O,height:F,scale:p,canvas:B,svg:A,promise:!0}).then(T).catch(C)})}function S(T){return h?T.replace(sp.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,C){Pz.newPlot(y,n,b,v).then(x).then(k).then(_).then(function(A){T(S(A))}).catch(function(A){C(A)})})}var Rz=pge,eo=Ge,hge=wr,mge=uu,gge=ru.dfltConfig,to=eo.isPlainObject,Wl=Array.isArray,Nz=eo.isArrayOrTypedArray,yge=function(e,t){e===void 0&&(e=[]),t===void 0&&(t={});var n=mge.get(),r=[],a={_context:eo.extendFlat({},gge)},o,i;Wl(e)?(a.data=eo.extendDeep([],e),o=e):(a.data=[],o=[],r.push(tr("array","data"))),to(t)?(a.layout=eo.extendDeep({},t),i=t):(a.layout={},i={},arguments.length>1&&r.push(tr("object","layout"))),hge.supplyDefaults(a);for(var l=a._fullData,s=o.length,u=0;u<s;u++){var d=o[u],f=["data",u];if(!to(d)){r.push(tr("object",f));continue}var p=l[u],g=p.type,h=n.traces[g].attributes;h.type={valType:"enumerated",values:[g]},p.visible===!1&&d.visible!==!1&&r.push(tr("invisible",f)),cp(d,p,h,r,f);var y=d.transforms,b=p.transforms;if(y){Wl(y)||r.push(tr("array",f,["transforms"])),f.push("transforms");for(var v=0;v<y.length;v++){var x=["transforms",v],k=y[v].type;if(!to(y[v])){r.push(tr("object",f,x));continue}var _=n.transforms[k]?n.transforms[k].attributes:{};_.type={valType:"enumerated",values:Object.keys(n.transforms)},cp(y[v],b[v],_,r,f,x)}}}var S=a._fullLayout,T=vge(n,l);return cp(i,S,T,r,"layout"),r.length===0?void 0:r};function cp(e,t,n,r,a,o){o=o||[];for(var i=Object.keys(e),l=0;l<i.length;l++){var s=i[l];if(s!=="transforms"){var u=o.slice();u.push(s);var d=e[s],f=t[s],p=wge(n,s),g=(p||{}).valType,h=g==="info_array",y=g==="colorscale",b=(p||{}).items;if(!xge(n,s))r.push(tr("schema",a,u));else if(to(d)&&to(f)&&g!=="any")cp(d,f,p,r,a,u);else if(h&&Wl(d)){d.length>f.length&&r.push(tr("unused",a,u.concat(f.length)));var v=f.length,x=Array.isArray(b);x&&(v=Math.min(v,b.length));var k,_,S,T,C;if(p.dimensions===2)for(_=0;_<v;_++)if(Wl(d[_])){d[_].length>f[_].length&&r.push(tr("unused",a,u.concat(_,f[_].length)));var A=f[_].length;for(k=0;k<(x?Math.min(A,b[_].length):A);k++)S=x?b[_][k]:b,T=d[_][k],C=f[_][k],eo.validate(T,S)?C!==T&&C!==+T&&r.push(tr("dynamic",a,u.concat(_,k),T,C)):r.push(tr("value",a,u.concat(_,k),T))}else r.push(tr("array",a,u.concat(_),d[_]));else for(_=0;_<v;_++)S=x?b[_]:b,T=d[_],C=f[_],eo.validate(T,S)?C!==T&&C!==+T&&r.push(tr("dynamic",a,u.concat(_),T,C)):r.push(tr("value",a,u.concat(_),T))}else if(p.items&&!h&&Wl(d)){var O=b[Object.keys(b)[0]],F=[],R,N;for(R=0;R<f.length;R++){var B=f[R]._index||R;if(N=u.slice(),N.push(B),to(d[B])&&to(f[R])){F.push(B);var V=d[B],Z=f[R];to(V)&&V.visible!==!1&&Z.visible===!1?r.push(tr("invisible",a,N)):cp(V,Z,O,r,a,N)}}for(R=0;R<d.length;R++)N=u.slice(),N.push(R),to(d[R])?F.indexOf(R)===-1&&r.push(tr("unused",a,N)):r.push(tr("object",a,N,d[R]))}else!to(d)&&to(f)?r.push(tr("object",a,u,d)):!Nz(d)&&Nz(f)&&!h&&!y?r.push(tr("array",a,u,d)):s in t?eo.validate(d,p)?p.valType==="enumerated"&&(p.coerceNumber&&d!==+f||d!==f)&&r.push(tr("dynamic",a,u,d,f)):r.push(tr("value",a,u,d)):r.push(tr("unused",a,u,d))}}return r}function vge(e,t){for(var n=e.layout.layoutAttributes,r=0;r<t.length;r++){var a=t[r],o=e.traces[a.type],i=o.layoutAttributes;i&&(a.subplot?eo.extendFlat(n[o.attributes.subplot.dflt],i):eo.extendFlat(n,i))}return n}var bge={object:function(e,t){var n;return e==="layout"&&t===""?n="The layout argument":e[0]==="data"&&t===""?n="Trace "+e[1]+" in the data argument":n=Xs(e)+"key "+t,n+" must be linked to an object container"},array:function(e,t){var n;return e==="data"?n="The data argument":n=Xs(e)+"key "+t,n+" must be linked to an array container"},schema:function(e,t){return Xs(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=to(n)?"container":"key";return Xs(e)+r+" "+t+" did not get coerced"},dynamic:function(e,t,n,r){return[Xs(e)+"key",t,"(set to '"+n+"')","got reset to","'"+r+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?Xs(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,n){return[Xs(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}};function Xs(e){return Wl(e)?"In data trace "+e[1]+", ":"In "+e+", "}function tr(e,t,n,r,a){n=n||"";var o,i;Wl(t)?(o=t[0],i=t[1]):(o=t,i=null);var l=kge(n),s=bge[e](t,l,r,a);return eo.log(s),{code:e,container:o,trace:i,path:n,astr:l,msg:s}}function xge(e,t){var n=Bz(t),r=n.keyMinusId,a=n.id;return r in e&&e[r]._isSubplotObj&&a?!0:t in e}function wge(e,t){if(t in e)return e[t];var n=Bz(t);return e[n.keyMinusId]}var _ge=eo.counterRegex("([a-z]+)");function Bz(e){var t=e.match(_ge);return{keyMinusId:t&&t[1],id:t&&t[2]}}function kge(e){if(!Wl(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];typeof r=="number"?t=t.substr(0,t.length-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}var jz=Ge,up=Ur;function Tge(e,t,n){var r=document.createElement("a"),a="download"in r,o=new Promise(function(i,l){var s,u;if(jz.isIE())return s=up.createBlob(e,"svg"),window.navigator.msSaveBlob(s,t),s=null,i(t);if(a)return s=up.createBlob(e,n),u=up.createObjectURL(s),r.href=u,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),up.revokeObjectURL(u),s=null,i(t);if(jz.isSafari()){var d=n==="svg"?",":";base64,";return up.octetStream(d+encodeURIComponent(e)),i(t)}l(new Error("download error"))});return o}var Sge=Tge,Uw=Ge,Age=Rz,Mge=Sge,Cge=Ur;function Oge(e,t){var n;return Uw.isPlainObject(e)||(n=Uw.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(r,a){n&&n._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),Uw.isIE()&&t.format!=="svg"&&a(new Error(Cge.MSG_IE_BAD_FORMAT)),n&&(n._snapshotInProgress=!0);var o=Age(e,t),i=t.filename||e.fn||"newplot";i+="."+t.format.replace("-","."),o.then(function(l){return n&&(n._snapshotInProgress=!1),Mge(l,i,t.format)}).then(function(l){r(l)}).catch(function(l){n&&(n._snapshotInProgress=!1),a(l)})})}var Vz=Oge,qw={},ma=Ge,ga=ma.isPlainObject,Hz=uu,Uz=wr,Ege=ti,qz=hn,Wz=ru.dfltConfig;qw.makeTemplate=function(e){e=ma.isPlainObject(e)?e:ma.getGraphDiv(e),e=ma.extendDeep({_context:Wz},{data:e.data,layout:e.layout}),Uz.supplyDefaults(e);var t=e.data||[],n=e.layout||{};n._basePlotModules=e._fullLayout._basePlotModules,n._modules=e._fullLayout._modules;var r={data:{},layout:{}};t.forEach(function(g){var h={};dp(g,h,zge.bind(null,g));var y=ma.coerce(g,{},Ege,"type"),b=r.data[y];b||(b=r.data[y]=[]),b.push(h)}),dp(n,r.layout,Lge.bind(null,n)),delete r.layout.template;var a=n.template;if(ga(a)){var o=a.layout,i,l,s,u,d,f;ga(o)&&v0(o,r.layout);var p=a.data;if(ga(p)){for(l in r.data)if(s=p[l],Array.isArray(s)){for(d=r.data[l],f=d.length,u=s.length,i=0;i<f;i++)v0(s[i%u],d[i]);for(i=f;i<u;i++)d.push(ma.extendDeep({},s[i]))}for(l in p)l in r.data||(r.data[l]=ma.extendDeep([],p[l]))}}return r};function v0(e,t){e=ma.extendDeep({},e);var n=Object.keys(e).sort(),r,a;function o(d,f,p){if(ga(f)&&ga(d))v0(d,f);else if(Array.isArray(f)&&Array.isArray(d)){var g=qz.arrayTemplater({_template:e},p);for(a=0;a<f.length;a++){var h=f[a],y=g.newItem(h)._template;y&&v0(y,h)}var b=g.defaultItems();for(a=0;a<b.length;a++)f.push(b[a]._template);for(a=0;a<f.length;a++)delete f[a].templateitemname}}for(r=0;r<n.length;r++){var i=n[r],l=e[i];if(i in t?o(l,t[i],i):t[i]=l,b0(i)===i)for(var s in t){var u=b0(s);s!==u&&u===i&&!(s in e)&&o(l,t[s],i)}}}function b0(e){return e.replace(/[0-9]+$/,"")}function dp(e,t,n,r,a){var o=a&&n(a);for(var i in e){var l=e[i],s=no(e,i,r),u=no(e,i,a),d=n(u);if(!d){var f=b0(i);f!==i&&(u=no(e,f,a),d=n(u))}if(!(o&&o===d)&&!(!d||d._noTemplating||d.valType==="data_array"||d.arrayOk&&Array.isArray(l)))if(!d.valType&&ga(l))dp(l,t,n,s,u);else if(d._isLinkedToArray&&Array.isArray(l))for(var p=!1,g=0,h={},y=0;y<l.length;y++){var b=l[y];if(ga(b)){var v=b.name;if(v)h[v]||(dp(b,t,n,no(l,g,s),no(l,g,u)),g++,h[v]=1);else if(!p){var x=qz.arrayDefaultKey(i),k=no(e,x,r),_=no(l,g,s);dp(b,t,n,_,no(l,g,u));var S=ma.nestedProperty(t,_),T=ma.nestedProperty(t,k);T.set(S.get()),S.set(null),p=!0}}}else{var C=ma.nestedProperty(t,s);C.set(l)}}}function Lge(e,t){return Hz.getLayoutValObject(e,ma.nestedProperty({},t).parts)}function zge(e,t){return Hz.getTraceValObject(e,ma.nestedProperty({},t).parts)}function no(e,t,n){var r;return n?Array.isArray(e)?r=n+"["+t+"]":r=n+"."+t:r=t,r}qw.validateTemplate=function(e,t){var n=ma.extendDeep({},{_context:Wz,data:e.data,layout:e.layout}),r=n.layout||{};ga(t)||(t=r.template||{});var a=t.layout,o=t.data,i=[];n.layout=r,n.layout.template=t,Uz.supplyDefaults(n);var l=n._fullLayout,s=n._fullData,u={};function d(k,_){for(var S in k)if(S.charAt(0)!=="_"&&ga(k[S])){var T=b0(S),C=[],A;for(A=0;A<_.length;A++)C.push(no(k,S,_[A])),T!==S&&C.push(no(k,T,_[A]));for(A=0;A<C.length;A++)u[C[A]]=1;d(k[S],C)}}function f(k,_){for(var S in k)if(S.indexOf("defaults")===-1&&ga(k[S])){var T=no(k,S,_);u[T]?f(k[S],T):i.push({code:"unused",path:T})}}if(ga(a)?(d(l,["layout"]),f(a,"layout")):i.push({code:"layout"}),!ga(o))i.push({code:"data"});else{for(var p={},g,h=0;h<s.length;h++){var y=s[h];g=y.type,p[g]=(p[g]||0)+1,y._fullInput._template||i.push({code:"missing",index:y._fullInput.index,traceType:g})}for(g in o){var b=o[g].length,v=p[g]||0;b>v?i.push({code:"unused",traceType:g,templateCount:b,dataCount:v}):v>b&&i.push({code:"reused",traceType:g,templateCount:b,dataCount:v})}}function x(k,_){for(var S in k)if(S.charAt(0)!=="_"){var T=k[S],C=no(k,S,_);ga(T)?(Array.isArray(k)&&T._template===!1&&T.templateitemname&&i.push({code:"missing",path:C,templateitemname:T.templateitemname}),x(T,C)):Array.isArray(T)&&Fge(T)&&x(T,C)}}if(x({data:s,layout:l},""),i.length)return i.map(Ige)};function Fge(e){for(var t=0;t<e.length;t++)if(ga(e[t]))return!0}function Ige(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":e.path?t="There are no templates for item "+e.path+" with name "+e.templateitemname:t="There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":e.path?t="The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?t="Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":t="The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=t,e}var ir=mx;An._doPlot=ir._doPlot,An.newPlot=ir.newPlot,An.restyle=ir.restyle,An.relayout=ir.relayout,An.redraw=ir.redraw,An.update=ir.update,An._guiRestyle=ir._guiRestyle,An._guiRelayout=ir._guiRelayout,An._guiUpdate=ir._guiUpdate,An._storeDirectGUIEdit=ir._storeDirectGUIEdit,An.react=ir.react,An.extendTraces=ir.extendTraces,An.prependTraces=ir.prependTraces,An.addTraces=ir.addTraces,An.deleteTraces=ir.deleteTraces,An.moveTraces=ir.moveTraces,An.purge=ir.purge,An.addFrames=ir.addFrames,An.deleteFrames=ir.deleteFrames,An.animate=ir.animate,An.setPlotConfig=ir.setPlotConfig;var Dge=Em.getGraphDiv,Pge=aw.eraseActiveShape;An.deleteActiveShape=function(e){return Pge(Dge(e))},An.toImage=Rz,An.validate=yge,An.downloadImage=Vz;var Gz=qw;An.makeTemplate=Gz.makeTemplate,An.validateTemplate=Gz.validateTemplate;var Ww=Ge,Rge=Dt,Zz=function(e,t,n,r){var a=r("x"),o=r("y"),i,l=Rge.getComponentMethod("calendars","handleTraceDefaults");if(l(e,t,["x","y"],n),a){var s=Ww.minRowLength(a);o?i=Math.min(s,Ww.minRowLength(o)):(i=s,r("y0"),r("dy"))}else{if(!o)return 0;i=Ww.minRowLength(o),r("x0"),r("dx")}return t._length=i,i},Kz=Ge.dateTick0,Nge=Gn,Bge=Nge.ONEWEEK;function Yz(e,t){return e%Bge===0?Kz(t,1):Kz(t,0)}var Gw=function(e,t,n,r,a){if(a||(a={x:!0,y:!0}),a.x){var o=r("xperiod");o&&(r("xperiod0",Yz(o,t.xcalendar)),r("xperiodalignment"))}if(a.y){var i=r("yperiod");i&&(r("yperiod0",Yz(i,t.ycalendar)),r("yperiodalignment"))}},Jz=["orientation","groupnorm","stackgaps"],jge=function(e,t,n,r){var a=n._scatterStackOpts,o=r("stackgroup");if(o){var i=t.xaxis+t.yaxis,l=a[i];l||(l=a[i]={});var s=l[o],u=!1;s?s.traces.push(t):(s=l[o]={traceIndices:[],traces:[t]},u=!0);for(var d={orientation:t.x&&!t.y?"h":"v"},f=0;f<Jz.length;f++){var p=Jz[f],g=p+"Found";if(!s[g]){var h=e[p]!==void 0,y=p==="orientation";if((h||u)&&(s[p]=r(p,d[p]),y&&(s.fillDflt=s[p]==="h"?"tonextx":"tonexty"),h&&(s[g]=!0,!u&&(delete s.traces[0][p],y))))for(var b=0;b<s.traces.length-1;b++){var v=s.traces[b];v._input.fill!==v.fill&&(v.fill=s.fillDflt)}}}return s}},Qz=Kt,Xz=Mo.hasColorscale,$z=hu,Vge=Wa,Hge=function(e,t,n,r,a,o){var i=Vge.isBubble(e),l=(e.line||{}).color,s;if(o=o||{},l&&(n=l),a("marker.symbol"),a("marker.opacity",i?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Xz(e,"marker")&&$z(e,t,r,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&t.marker.color!==l?s=l:i?s=Qz.background:s=Qz.defaultLine,a("marker.line.color",s),Xz(e,"marker.line")&&$z(e,t,r,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",i?1:0)),i&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var u=a("marker.gradient.type");u!=="none"&&a("marker.gradient.color")}},Uge=Ge.isArrayOrTypedArray,qge=Mo.hasColorscale,Wge=hu,Gge=function(e,t,n,r,a,o){o||(o={});var i=(e.marker||{}).color;if(i&&i._inputArray&&(i=i._inputArray),a("line.color",n),qge(e,"line"))Wge(e,t,r,a,{prefix:"line.",cLetter:"c"});else{var l=(Uge(i)?!1:i)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")},Zge=function(e,t,n){var r=n("line.shape");r==="spline"&&n("line.smoothing")},Kge=Ge,Yge=function(e,t,n,r,a){a=a||{},r("textposition"),Kge.coerceFont(r,"textfont",a.font||n.font),a.noSelect||(r("selected.textfont.color"),r("unselected.textfont.color"))},Jge=Kt,eF=Ge.isArrayOrTypedArray,Qge=function(e,t,n,r){var a=!1;if(t.marker){var o=t.marker.color,i=(t.marker.line||{}).color;o&&!eF(o)?a=o:i&&!eF(i)&&(a=i)}r("fillcolor",Jge.addOpacity((t.line||{}).color||a||n,.5))},tF=Ge,Xge=Dt,$ge=Qs,e0e=Cw,Du=Wa,t0e=Zz,n0e=Gw,r0e=jge,a0e=Hge,o0e=Gge,nF=Zge,i0e=Yge,l0e=Qge,s0e=Ge.coercePattern,c0e=function(e,t,n,r){function a(p,g){return tF.coerce(e,t,$ge,p,g)}var o=t0e(e,t,r,a);if(o||(t.visible=!1),!!t.visible){n0e(e,t,r,a),a("xhoverformat"),a("yhoverformat");var i=r0e(e,t,r,a);r.scattermode==="group"&&t.orientation===void 0&&a("orientation","v");var l=!i&&o<e0e.PTS_LINESONLY?"lines+markers":"lines";a("text"),a("hovertext"),a("mode",l),Du.hasMarkers(t)&&a0e(e,t,n,r,a,{gradient:!0}),Du.hasLines(t)&&(o0e(e,t,n,r,a,{backoff:!0}),nF(e,t,a),a("connectgaps"),a("line.simplify")),Du.hasText(t)&&(a("texttemplate"),i0e(e,t,r,a));var s=[];(Du.hasMarkers(t)||Du.hasText(t))&&(a("cliponaxis"),a("marker.maxdisplayed"),s.push("points")),a("fill",i?i.fillDflt:"none"),t.fill!=="none"&&(l0e(e,t,n,a),Du.hasLines(t)||nF(e,t,a),s0e(a,"fillpattern",t.fillcolor,!1));var u=(t.line||{}).color,d=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),a("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&a("hovertemplate");var f=Xge.getComponentMethod("errorbars","supplyDefaults");f(e,t,u||d||n,{axis:"y"}),f(e,t,u||d||n,{axis:"x",inherit:"y"}),tF.coerceSelectionMarkerOpacity(t,a)}},u0e=Hl.getAxisGroup,rF=function(e,t,n,r){var a=t.orientation,o=t[{v:"x",h:"y"}[a]+"axis"],i=u0e(n,o)+a,l=n._alignmentOpts||{},s=r("alignmentgroup"),u=l[i];u||(u=l[i]={});var d=u[s];d?d.traces.push(t):d=u[s]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var f=r("offsetgroup"),p=d.offsetGroups,g=p[f];f&&(g||(g=p[f]={offsetIndex:Object.keys(p).length}),t._offsetIndex=g.offsetIndex)},d0e=Ge,f0e=rF,p0e=Qs,h0e=function(e,t){var n,r,a;function o(d){return d0e.coerce(r._input,r,p0e,d)}if(t.scattermode==="group")for(a=0;a<e.length;a++)r=e[a],r.type==="scatter"&&(n=r._input,f0e(n,r,t,o));for(a=0;a<e.length;a++){var i=e[a];if(i.type==="scatter"){var l=i.fill;if(!(l==="none"||l==="toself")&&(i.opacity=void 0,l==="tonexty"||l==="tonextx"))for(var s=a-1;s>=0;s--){var u=e[s];if(u.type==="scatter"&&u.xaxis===i.xaxis&&u.yaxis===i.yaxis){u.opacity=void 0;break}}}}},m0e=Ge,g0e=wx,y0e=function(e,t){function n(a,o){return m0e.coerce(e,t,g0e,a,o)}var r=t.barmode==="group";t.scattermode==="group"&&n("scattergap",r?t.bargap:.2)},v0e=en,aF=Ge,b0e=aF.dateTime2ms,x0=aF.incrementMonth,x0e=Gn,w0e=x0e.ONEAVGMONTH,w0=function(e,t,n,r){if(t.type!=="date")return{vals:r};var a=e[n+"periodalignment"];if(!a)return{vals:r};var o=e[n+"period"],i;if(v0e(o)){if(o=+o,o<=0)return{vals:r}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)i=l;else return{vals:r}}for(var s=t.calendar,u=a==="start",d=a==="end",f=e[n+"period0"],p=b0e(f,s)||0,g=[],h=[],y=[],b=r.length,v=0;v<b;v++){var x=r[v],k,_,S;if(i){for(k=Math.round((x-p)/(i*w0e)),S=x0(p,i*k,s);S>x;)S=x0(S,-i,s);for(;S<=x;)S=x0(S,i,s);_=x0(S,-i,s)}else{for(k=Math.round((x-p)/o),S=p+k*o;S>x;)S-=o;for(;S<=x;)S+=o;_=S-o}g[v]=u?_:d?S:(_+S)/2,h[v]=_,y[v]=S}return{vals:g,starts:h,ends:y}},Zw=Mo.hasColorscale,Kw=tg,oF=Wa,_0e=function(e,t){oF.hasLines(t)&&Zw(t,"line")&&Kw(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),oF.hasMarkers(t)&&(Zw(t,"marker")&&Kw(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Zw(t,"marker.line")&&Kw(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))},Sr=Ge,iF=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;Sr.mergeArray(t.text,e,"tx"),Sr.mergeArray(t.texttemplate,e,"txt"),Sr.mergeArray(t.hovertext,e,"htx"),Sr.mergeArray(t.customdata,e,"data"),Sr.mergeArray(t.textposition,e,"tp"),t.textfont&&(Sr.mergeArrayCastPositive(t.textfont.size,e,"ts"),Sr.mergeArray(t.textfont.color,e,"tc"),Sr.mergeArray(t.textfont.family,e,"tf"));var r=t.marker;if(r){Sr.mergeArrayCastPositive(r.size,e,"ms"),Sr.mergeArrayCastPositive(r.opacity,e,"mo"),Sr.mergeArray(r.symbol,e,"mx"),Sr.mergeArray(r.angle,e,"ma"),Sr.mergeArray(r.standoff,e,"mf"),Sr.mergeArray(r.color,e,"mc");var a=r.line;r.line&&(Sr.mergeArray(a.color,e,"mlc"),Sr.mergeArrayCastPositive(a.width,e,"mlw"));var o=r.gradient;o&&o.type!=="none"&&(Sr.mergeArray(o.type,e,"mgt"),Sr.mergeArray(o.color,e,"mgc"))}},lF=Ge,sF=function(e,t){lF.isArrayOrTypedArray(t.selectedpoints)&&lF.tagSelected(e,t)},cF=en,Yw=Ge,fp=bn,uF=w0,Jw=Gn.BADNUM,Qw=Wa,k0e=_0e,T0e=iF,S0e=sF;function A0e(e,t){var n=e._fullLayout,r=t._xA=fp.getFromId(e,t.xaxis||"x","x"),a=t._yA=fp.getFromId(e,t.yaxis||"y","y"),o=r.makeCalcdata(t,"x"),i=a.makeCalcdata(t,"y"),l=uF(t,r,"x",o),s=uF(t,a,"y",i),u=l.vals,d=s.vals,f=t._length,p=new Array(f),g=t.ids,h=Xw(t,n,r,a),y=!1,b,v,x,k,_,S;pF(n,t);var T="x",C="y",A;if(h)Yw.pushUnique(h.traceIndices,t._expandedIndex),b=h.orientation==="v",b?(C="s",A="x"):(T="s",A="y"),_=h.stackgaps==="interpolate";else{var O=fF(t,f);dF(e,t,r,a,u,d,O)}var F=!!t.xperiodalignment,R=!!t.yperiodalignment;for(v=0;v<f;v++){var N=p[v]={},B=cF(u[v]),V=cF(d[v]);B&&V?(N[T]=u[v],N[C]=d[v],F&&(N.orig_x=o[v],N.xEnd=l.ends[v],N.xStart=l.starts[v]),R&&(N.orig_y=i[v],N.yEnd=s.ends[v],N.yStart=s.starts[v])):h&&(b?B:V)?(N[A]=b?u[v]:d[v],N.gap=!0,_?(N.s=Jw,y=!0):N.s=0):N[T]=N[C]=Jw,g&&(N.id=String(g[v]))}if(T0e(p,t),k0e(e,t),S0e(p,t),h){for(v=0;v<p.length;)p[v][A]===Jw?p.splice(v,1):v++;if(Yw.sort(p,function(P,z){return P[A]-z[A]||P.i-z.i}),y){for(v=0;v<p.length-1&&p[v].gap;)v++;for(S=p[v].s,S||(S=p[v].s=0),x=0;x<v;x++)p[x].s=S;for(k=p.length-1;k>v&&p[k].gap;)k--;for(S=p[k].s,x=p.length-1;x>k;x--)p[x].s=S;for(;v<k;)if(v++,p[v].gap){for(x=v+1;p[x].gap;)x++;for(var Z=p[v-1][A],G=p[v-1].s,I=(p[x].s-G)/(p[x][A]-Z);v<x;)p[v].s=G+(p[v][A]-Z)*I,v++}}}return p}function dF(e,t,n,r,a,o,i){var l=t._length,s=e._fullLayout,u=n._id,d=r._id,f=s._firstScatter[hF(t)]===t.uid,p=(Xw(t,s,n,r)||{}).orientation,g=t.fill;n._minDtick=0,r._minDtick=0;var h={padded:!0},y={padded:!0};i&&(h.ppad=y.ppad=i);var b=l<2||a[0]!==a[l-1]||o[0]!==o[l-1];b&&(g==="tozerox"||g==="tonextx"&&(f||p==="h"))?h.tozero=!0:!(t.error_y||{}).visible&&(g==="tonexty"||g==="tozeroy"||!Qw.hasMarkers(t)&&!Qw.hasText(t))&&(h.padded=!1,h.ppad=0),b&&(g==="tozeroy"||g==="tonexty"&&(f||p==="v"))?y.tozero=!0:(g==="tonextx"||g==="tozerox")&&(y.padded=!1),u&&(t._extremes[u]=fp.findExtremes(n,a,h)),d&&(t._extremes[d]=fp.findExtremes(r,o,y))}function fF(e,t){if(Qw.hasMarkers(e)){var n=e.marker,r=1.6*(e.marker.sizeref||1),a;if(e.marker.sizemode==="area"?a=function(u){return Math.max(Math.sqrt((u||0)/r),3)}:a=function(u){return Math.max((u||0)/r,3)},Yw.isArrayOrTypedArray(n.size)){var o={type:"linear"};fp.setConvert(o);for(var i=o.makeCalcdata(e.marker,"size"),l=new Array(t),s=0;s<t;s++)l[s]=a(i[s]);return l}else return a(n.size)}}function pF(e,t){var n=hF(t),r=e._firstScatter;r[n]||(r[n]=t.uid)}function hF(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function Xw(e,t,n,r){var a=e.stackgroup;if(a){var o=t._scatterStackOpts[n._id+r._id][a],i=o.orientation==="v"?r:n;if(i.type==="linear"||i.type==="log")return o}}var mF={calc:A0e,calcMarkerSize:fF,calcAxisExpansion:dF,setFirstScatter:pF,getStackOpts:Xw},M0e=_0,C0e=Ge.distinctVals;function _0(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var n=1/0,r=t.posAxis._id.charAt(0),a=[],o=0;o<e.length;o++){for(var i=e[o],l=0;l<i.length;l++){var s=i[l],u=s.p;u===void 0&&(u=s[r]),u!==void 0&&a.push(u)}i[0]&&i[0].width1&&(n=Math.min(i[0].width1,n))}this.positions=a;var d=C0e(a);this.distinctPositions=d.vals,d.vals.length===1&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(d.minDiff,n);var f=(t.posAxis||{}).type;(f==="category"||f==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}_0.prototype.put=function(e,t){var n=this.getLabel(e,t),r=this.bins[n]||0;return this.bins[n]=r+t,r},_0.prototype.get=function(e,t){var n=this.getLabel(e,t);return this.bins[n]||0},_0.prototype.getLabel=function(e,t){var n=t<0&&this.sepNegVal?"v":"^",r=this.overlapNoMerge?e:Math.round(e/this.binWidth);return n+r};var Gl=en,Zl=Ge.isArrayOrTypedArray,Pu=Gn.BADNUM,O0e=Dt,pp=bn,E0e=Hl.getAxisGroup,k0=M0e;function L0e(e,t){for(var n=t.xaxis,r=t.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],s=[],u=0;u<o.length;u++){var d=o[u];if(d.visible===!0&&O0e.traceIs(d,"bar")&&d.xaxis===n._id&&d.yaxis===r._id&&(d.orientation==="h"?l.push(i[u]):s.push(i[u]),d._computePh))for(var f=e.calcdata[u],p=0;p<f.length;p++)typeof f[p].ph0=="function"&&(f[p].ph0=f[p].ph0()),typeof f[p].ph1=="function"&&(f[p].ph1=f[p].ph1())}var g={xCat:n.type==="category"||n.type==="multicategory",yCat:r.type==="category"||r.type==="multicategory",mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};$w(e,n,r,s,g),$w(e,r,n,l,g)}function $w(e,t,n,r,a){if(r.length){var o,i,l,s,u;switch(z0e(n,r),a.mode){case"overlay":e2(t,n,r,a);break;case"group":for(o=[],i=[],l=0;l<r.length;l++)s=r[l],u=s[0].trace,u.offset===void 0?i.push(s):o.push(s);i.length&&F0e(e,t,n,i,a),o.length&&e2(t,n,o,a);break;case"stack":case"relative":for(o=[],i=[],l=0;l<r.length;l++)s=r[l],u=s[0].trace,u.base===void 0?i.push(s):o.push(s);i.length&&I0e(e,t,n,i,a),o.length&&e2(t,n,o,a);break}N0e(r,t)}}function z0e(e,t){var n,r;for(n=0;n<t.length;n++){var a=t[n],o=a[0].trace,i=o.type==="funnel"?o._base:o.base,l,s=o.orientation==="h"?o.xcalendar:o.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Zl(i)){for(r=0;r<Math.min(i.length,a.length);r++)l=u(i[r],0,s),Gl(l)?(a[r].b=+l,a[r].hasB=1):a[r].b=0;for(;r<a.length;r++)a[r].b=0}else{l=u(i,0,s);var d=Gl(l);for(l=d?l:0,r=0;r<a.length;r++)a[r].b=l,d&&(a[r].hasB=1)}}}function e2(e,t,n,r){for(var a=0;a<n.length;a++){var o=n[a],i=new k0([o],{posAxis:e,sepNegVal:!1,overlapNoMerge:!r.norm});gF(e,i,r),r.norm?(wF(i),t2(t,i,r)):xF(t,i)}}function F0e(e,t,n,r,a){var o=new k0(r,{posAxis:t,sepNegVal:!1,overlapNoMerge:!a.norm});D0e(e,t,o,a),R0e(o,t),a.norm?(wF(o),t2(n,o,a)):xF(n,o)}function I0e(e,t,n,r,a){var o=new k0(r,{posAxis:t,sepNegVal:a.mode==="relative",overlapNoMerge:!(a.norm||a.mode==="stack"||a.mode==="relative")});gF(t,o,a),P0e(n,o,a);for(var i=0;i<r.length;i++)for(var l=r[i],s=0;s<l.length;s++){var u=l[s];if(u.s!==Pu){var d=u.b+u.s===o.get(u.p,u.s);d&&(u._outmost=!0)}}a.norm&&t2(n,o,a)}function gF(e,t,n){for(var r=t.minDiff,a=t.traces,o=r*(1-n.gap),i=o,l=i*(1-(n.groupgap||0)),s=-l/2,u=0;u<a.length;u++){var d=a[u],f=d[0].t;f.barwidth=l,f.poffset=s,f.bargroupwidth=o,f.bardelta=r}t.binWidth=a[0][0].t.barwidth/100,yF(t),vF(e,t),bF(e,t)}function D0e(e,t,n,r){for(var a=e._fullLayout,o=n.positions,i=n.distinctPositions,l=n.minDiff,s=n.traces,u=s.length,d=o.length!==i.length,f=l*(1-r.gap),p=E0e(a,t._id)+s[0][0].trace.orientation,g=a._alignmentOpts[p]||{},h=0;h<u;h++){var y=s[h],b=y[0].trace,v=g[b.alignmentgroup]||{},x=Object.keys(v.offsetGroups||{}).length,k;x?k=f/x:k=d?f/u:f;var _=k*(1-(r.groupgap||0)),S;x?S=((2*b._offsetIndex+1-x)*k-_)/2:S=d?((2*h+1-u)*k-_)/2:-_/2;var T=y[0].t;T.barwidth=_,T.poffset=S,T.bargroupwidth=f,T.bardelta=l}n.binWidth=s[0][0].t.barwidth/100,yF(n),vF(t,n),bF(t,n,d)}function yF(e){var t=e.traces,n,r;for(n=0;n<t.length;n++){var a=t[n],o=a[0],i=o.trace,l=o.t,s=i._offset||i.offset,u=l.poffset,d;if(Zl(s)){for(d=Array.prototype.slice.call(s,0,a.length),r=0;r<d.length;r++)Gl(d[r])||(d[r]=u);for(r=d.length;r<a.length;r++)d.push(u);l.poffset=d}else s!==void 0&&(l.poffset=s);var f=i._width||i.width,p=l.barwidth;if(Zl(f)){var g=Array.prototype.slice.call(f,0,a.length);for(r=0;r<g.length;r++)Gl(g[r])||(g[r]=p);for(r=g.length;r<a.length;r++)g.push(p);if(l.barwidth=g,s===void 0){for(d=[],r=0;r<a.length;r++)d.push(u+(p-g[r])/2);l.poffset=d}}else f!==void 0&&(l.barwidth=f,s===void 0&&(l.poffset=u+(p-f)/2))}}function vF(e,t){for(var n=t.traces,r=hp(e),a=0;a<n.length;a++)for(var o=n[a],i=o[0].t,l=i.poffset,s=Zl(l),u=i.barwidth,d=Zl(u),f=0;f<o.length;f++){var p=o[f],g=p.w=d?u[f]:u;p.p===void 0&&(p.p=p[r],p["orig_"+r]=p[r]);var h=(s?l[f]:l)+g/2;p[r]=p.p+h}}function bF(e,t,n){var r=t.traces,a=t.minDiff,o=a/2;pp.minDtick(e,t.minDiff,t.distinctPositions[0],n);for(var i=0;i<r.length;i++){var l=r[i],s=l[0],u=s.trace,d=[],f,p,g,h;for(h=0;h<l.length;h++)f=l[h],p=f.p-o,g=f.p+o,d.push(p,g);if(u.width||u.offset){var y=s.t,b=y.poffset,v=y.barwidth,x=Zl(b),k=Zl(v);for(h=0;h<l.length;h++){f=l[h];var _=x?b[h]:b,S=k?v[h]:v;p=f.p+_,g=p+S,d.push(p,g)}}u._extremes[e._id]=pp.findExtremes(e,d,{padded:!1})}}function xF(e,t){for(var n=t.traces,r=hp(e),a=0;a<n.length;a++){for(var o=n[a],i=o[0].trace,l=i.type==="scatter",s=i.orientation==="v",u=[],d=!1,f=0;f<o.length;f++){var p=o[f],g=l?0:p.b,h=l?s?p.y:p.x:g+p.s;p[r]=h,u.push(h),p.hasB&&u.push(g),(!p.hasB||!p.b)&&(d=!0)}i._extremes[e._id]=pp.findExtremes(e,u,{tozero:d,padded:!0})}}function P0e(e,t,n){var r=hp(e),a=t.traces,o,i,l,s,u,d;for(s=0;s<a.length;s++)if(o=a[s],i=o[0].trace,i.type==="funnel")for(u=0;u<o.length;u++)d=o[u],d.s!==Pu&&t.put(d.p,-.5*d.s);for(s=0;s<a.length;s++){o=a[s],i=o[0].trace,l=i.type==="funnel";var f=[];for(u=0;u<o.length;u++)if(d=o[u],d.s!==Pu){var p;l?p=d.s:p=d.s+d.b;var g=t.put(d.p,p),h=g+p;d.b=g,d[r]=h,n.norm||(f.push(h),d.hasB&&f.push(g))}n.norm||(i._extremes[e._id]=pp.findExtremes(e,f,{tozero:!0,padded:!0}))}}function wF(e){for(var t=e.traces,n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++){var o=r[a];o.s!==Pu&&e.put(o.p,o.b+o.s)}}function R0e(e,t){for(var n=e.traces,r=0;r<n.length;r++){var a=n[r],o=a[0].trace;if(o.base===void 0)for(var i=new k0([a],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),l=0;l<a.length;l++){var s=a[l];if(s.p!==Pu){var u=i.put(s.p,s.b+s.s);u&&(s.b=u)}}}}function t2(e,t,n){var r=t.traces,a=hp(e),o=n.norm==="fraction"?1:100,i=o/1e9,l=e.l2c(e.c2l(0)),s=n.mode==="stack"?o:l;function u(S){return Gl(e.c2l(S))&&(S<l-i||S>s+i||!Gl(l))}for(var d=0;d<r.length;d++){for(var f=r[d],p=f[0].trace,g=[],h=!1,y=!1,b=0;b<f.length;b++){var v=f[b];if(v.s!==Pu){var x=Math.abs(o/t.get(v.p,v.s));v.b*=x,v.s*=x;var k=v.b,_=k+v.s;v[a]=_,g.push(_),y=y||u(_),v.hasB&&(g.push(k),y=y||u(k)),(!v.hasB||!v.b)&&(h=!0)}}p._extremes[e._id]=pp.findExtremes(e,g,{tozero:h,padded:y})}}function N0e(e,t){var n=hp(t),r={},a,o,i,l=1/0,s=-1/0;for(a=0;a<e.length;a++)for(i=e[a],o=0;o<i.length;o++){var u=i[o].p;Gl(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var d=1e4/(s-l),f=r.round=function(x){return String(Math.round(d*(x-l)))};for(a=0;a<e.length;a++){i=e[a],i[0].t.extents=r;var p=i[0].t.poffset,g=Zl(p);for(o=0;o<i.length;o++){var h=i[o],y=h[n]-h.w/2;if(Gl(y)){var b=h[n]+h.w/2,v=f(h.p);r[v]?r[v]=[Math.min(y,r[v][0]),Math.max(b,r[v][1])]:r[v]=[y,b]}h.p0=h.p+(g?p[o]:p),h.p1=h.p0+h.w,h.s0=h.b,h.s1=h.s0+h.s}}}function hp(e){return e._id.charAt(0)}var _F={crossTraceCalc:L0e,setGroupPositions:$w},kF=mF,TF=_F.setGroupPositions;function B0e(e,t){for(var n=t.xaxis,r=t.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],s=[],u=0;u<o.length;u++){var d=o[u];d.visible===!0&&d.type==="scatter"&&d.xaxis===n._id&&d.yaxis===r._id&&(d.orientation==="h"?l.push(i[u]):d.orientation==="v"&&s.push(i[u]))}var f={mode:a.scattermode,gap:a.scattergap};TF(e,n,r,s,f),TF(e,r,n,l,f)}var j0e=function(e,t){e._fullLayout.scattermode==="group"&&B0e(e,t);var n=t.xaxis,r=t.yaxis,a=n._id+r._id,o=e._fullLayout._scatterStackOpts[a];if(o){var i=e.calcdata,l,s,u,d,f,p,g,h,y,b,v,x,k,_,S;for(var T in o){b=o[T];var C=b.traceIndices;if(C.length){for(v=b.stackgaps==="interpolate",x=b.groupnorm,b.orientation==="v"?(k="x",_="y"):(k="y",_="x"),S=new Array(C.length),l=0;l<S.length;l++)S[l]=!1;p=i[C[0]];var A=new Array(p.length);for(l=0;l<p.length;l++)A[l]=p[l][k];for(l=1;l<C.length;l++){for(f=i[C[l]],s=u=0;s<f.length;s++){for(g=f[s][k];g>A[u]&&u<A.length;u++)n2(f,s,A[u],l,S,v,k),s++;if(g!==A[u]){for(d=0;d<l;d++)n2(i[C[d]],u,g,d,S,v,k);A.splice(u,0,g)}u++}for(;u<A.length;u++)n2(f,s,A[u],l,S,v,k),s++}var O=A.length;for(s=0;s<p.length;s++){for(h=p[s][_]=p[s].s,l=1;l<C.length;l++)f=i[C[l]],f[0].trace._rawLength=f[0].trace._length,f[0].trace._length=O,h+=f[s].s,f[s][_]=h;if(x)for(y=(x==="fraction"?h:h/100)||1,l=0;l<C.length;l++){var F=i[C[l]][s];F[_]/=y,F.sNorm=F.s/y}}for(l=0;l<C.length;l++){f=i[C[l]];var R=f[0].trace,N=kF.calcMarkerSize(R,R._rawLength),B=Array.isArray(N);if(N&&S[l]||B){var V=N;for(N=new Array(O),s=0;s<O;s++)N[s]=f[s].gap?0:B?V[f[s].i]:V}var Z=new Array(O),G=new Array(O);for(s=0;s<O;s++)Z[s]=f[s].x,G[s]=f[s].y;kF.calcAxisExpansion(e,R,n,r,Z,G,N),f[0].t.orientation=b.orientation}}}}};function n2(e,t,n,r,a,o,i){a[r]=!0;var l={i:null,gap:!0,s:0};if(l[i]=n,e.splice(t,0,l),t&&n===e[t-1][i]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else o&&(l.s=V0e(e,t,n,i));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function V0e(e,t,n,r){var a=e[t-1],o=e[t+1];return o?a?a.s+(o.s-a.s)*(n-a[r])/(o[r]-a[r]):o.s:a.s}var H0e=gn,SF=Gn,mp=SF.BADNUM,AF=SF.LOG_CLIP,MF=AF+.5,CF=AF-.5,T0=Ge,U0e=T0.segmentsIntersect,OF=T0.constrain,r2=Cw,q0e=function(e,t){var n=t.trace||{},r=t.xaxis,a=t.yaxis,o=r.type==="log",i=a.type==="log",l=r._length,s=a._length,u=t.backoff,d=n.marker,f=t.connectGaps,p=t.baseTolerance,g=t.shape,h=g==="linear",y=n.fill&&n.fill!=="none",b=[],v=r2.minTolerance,x=e.length,k=new Array(x),_=0,S,T,C,A,O,F,R,N,B,V,Z,G,I,P,z,H;function j(Ve){var rt=e[Ve];if(!rt)return!1;var ft=t.linearized?r.l2p(rt.x):r.c2p(rt.x),wt=t.linearized?a.l2p(rt.y):a.c2p(rt.y);if(ft===mp){if(o&&(ft=r.c2p(rt.x,!0)),ft===mp)return!1;i&&wt===mp&&(ft*=Math.abs(r._m*s*(r._m>0?MF:CF)/(a._m*l*(a._m>0?MF:CF)))),ft*=1e3}if(wt===mp){if(i&&(wt=a.c2p(rt.y,!0)),wt===mp)return!1;wt*=1e3}return[ft,wt]}function q(Ve,rt,ft,wt){var tt=ft-Ve,pt=wt-rt,Ke=.5-Ve,Ot=.5-rt,X=tt*tt+pt*pt,ue=tt*Ke+pt*Ot;if(ue>0&&ue<X){var de=Ke*pt-Ot*tt;if(de*de<X)return!0}}var $,ne;function te(Ve,rt){var ft=Ve[0]/l,wt=Ve[1]/s,tt=Math.max(0,-ft,ft-1,-wt,wt-1);return tt&&$!==void 0&&q(ft,wt,$,ne)&&(tt=0),tt&&rt&&q(ft,wt,rt[0]/l,rt[1]/s)&&(tt=0),(1+r2.toleranceGrowth*tt)*p}function ee(Ve,rt){var ft=Ve[0]-rt[0],wt=Ve[1]-rt[1];return Math.sqrt(ft*ft+wt*wt)}var se=r2.maxScreensAway,U=-l*se,Y=l*(1+se),J=-s*se,re=s*(1+se),oe=[[U,J,Y,J],[Y,J,Y,re],[Y,re,U,re],[U,re,U,J]],he,ve,ge,xe,Le,Ue;function Pe(Ve,rt){for(var ft=[],wt=0,tt=0;tt<4;tt++){var pt=oe[tt],Ke=U0e(Ve[0],Ve[1],rt[0],rt[1],pt[0],pt[1],pt[2],pt[3]);Ke&&(!wt||Math.abs(Ke.x-ft[0][0])>1||Math.abs(Ke.y-ft[0][1])>1)&&(Ke=[Ke.x,Ke.y],wt&&ee(Ke,Ve)<ee(ft[0],Ve)?ft.unshift(Ke):ft.push(Ke),wt++)}return ft}function De(Ve){if(Ve[0]<U||Ve[0]>Y||Ve[1]<J||Ve[1]>re)return[OF(Ve[0],U,Y),OF(Ve[1],J,re)]}function je(Ve,rt){if(Ve[0]===rt[0]&&(Ve[0]===U||Ve[0]===Y)||Ve[1]===rt[1]&&(Ve[1]===J||Ve[1]===re))return!0}function qe(Ve,rt){var ft=[],wt=De(Ve),tt=De(rt);return wt&&tt&&je(wt,tt)||(wt&&ft.push(wt),tt&&ft.push(tt)),ft}function Ee(Ve,rt,ft){return function(wt,tt){var pt=De(wt),Ke=De(tt),Ot=[];if(pt&&Ke&&je(pt,Ke))return Ot;pt&&Ot.push(pt),Ke&&Ot.push(Ke);var X=2*T0.constrain((wt[Ve]+tt[Ve])/2,rt,ft)-((pt||wt)[Ve]+(Ke||tt)[Ve]);if(X){var ue;pt&&Ke?ue=X>0==pt[Ve]>Ke[Ve]?pt:Ke:ue=pt||Ke,ue[Ve]+=X}return Ot}}var _e;g==="linear"||g==="spline"?_e=Pe:g==="hv"||g==="vh"?_e=qe:g==="hvh"?_e=Ee(0,U,Y):g==="vhv"&&(_e=Ee(1,J,re));function we(Ve,rt){var ft=rt[0]-Ve[0],wt=(rt[1]-Ve[1])/ft,tt=(Ve[1]*rt[0]-rt[1]*Ve[0])/ft;return tt>0?[wt>0?U:Y,re]:[wt>0?Y:U,J]}function Re(Ve){var rt=Ve[0],ft=Ve[1],wt=rt===k[_-1][0],tt=ft===k[_-1][1];if(!(wt&&tt))if(_>1){var pt=rt===k[_-2][0],Ke=ft===k[_-2][1];wt&&(rt===U||rt===Y)&&pt?Ke?_--:k[_-1]=Ve:tt&&(ft===J||ft===re)&&Ke?pt?_--:k[_-1]=Ve:k[_++]=Ve}else k[_++]=Ve}function Je(Ve){k[_-1][0]!==Ve[0]&&k[_-1][1]!==Ve[1]&&Re([ge,xe]),Re(Ve),Le=null,ge=xe=0}var it=T0.isArrayOrTypedArray(d);function dt(Ve){if(Ve&&u&&(Ve.i=S,Ve.d=e,Ve.trace=n,Ve.marker=it?d[Ve.i]:d,Ve.backoff=u),$=Ve[0]/l,ne=Ve[1]/s,he=Ve[0]<U?U:Ve[0]>Y?Y:0,ve=Ve[1]<J?J:Ve[1]>re?re:0,he||ve){if(!_)k[_++]=[he||Ve[0],ve||Ve[1]];else if(Le){var rt=_e(Le,Ve);rt.length>1&&(Je(rt[0]),k[_++]=rt[1])}else Ue=_e(k[_-1],Ve)[0],k[_++]=Ue;var ft=k[_-1];he&&ve&&(ft[0]!==he||ft[1]!==ve)?(Le&&(ge!==he&&xe!==ve?Re(ge&&xe?we(Le,Ve):[ge||he,xe||ve]):ge&&xe&&Re([ge,xe])),Re([he,ve])):ge-he&&xe-ve&&Re([he||ge,ve||xe]),Le=Ve,ge=he,xe=ve}else Le&&Je(_e(Le,Ve)[0]),k[_++]=Ve}for(S=0;S<x;S++)if(T=j(S),!!T){for(_=0,Le=null,dt(T),S++;S<x;S++){if(A=j(S),!A){if(f)continue;break}if(!h||!t.simplify){dt(A);continue}var at=j(S+1);if(V=ee(A,T),!(!(y&&(_===0||_===x-1))&&V<te(A,at)*v)){for(N=[(A[0]-T[0])/V,(A[1]-T[1])/V],O=T,Z=V,G=P=z=0,R=!1,C=A,S++;S<e.length;S++){if(F=at,at=j(S+1),!F){if(f)continue;break}if(B=[F[0]-T[0],F[1]-T[1]],H=B[0]*N[1]-B[1]*N[0],P=Math.min(P,H),z=Math.max(z,H),z-P>te(F,at))break;C=F,I=B[0]*N[0]+B[1]*N[1],I>Z?(Z=I,A=F,R=!1):I<G&&(G=I,O=F,R=!0)}if(R?(dt(A),C!==O&&dt(O)):(O!==T&&dt(O),C!==A&&dt(A)),dt(C),S>=e.length||!F)break;dt(F),T=F}}Le&&Re([ge||Le[0],xe||Le[1]]),b.push(k.slice(0,_))}var lt=g.slice(g.length-1);if(u&&lt!=="h"&&lt!=="v"){for(var He=!1,Be=-1,Ze=[],Ye=0;Ye<b.length;Ye++)for(var et=0;et<b[Ye].length-1;et++){var st=b[Ye][et],nt=b[Ye][et+1],gt=H0e.applyBackoff(nt,st);(gt[0]!==nt[0]||gt[1]!==nt[1])&&(He=!0),Ze[Be+1]||(Be++,Ze[Be]=[st,[gt[0],gt[1]]])}return He?Ze:b}return b},EF={tonextx:1,tonexty:1,tonext:1},W0e=function(e,t,n){var r,a,o,i,l,s={},u=!1,d=-1,f=0,p=-1;for(a=0;a<n.length;a++)r=n[a][0].trace,o=r.stackgroup||"",o?o in s?l=s[o]:(l=s[o]=f,f++):r.fill in EF&&p>=0?l=p:(l=p=f,f++),l<d&&(u=!0),r._groupIndex=d=l;var g=n.slice();u&&g.sort(function(y,b){var v=y[0].trace,x=b[0].trace;return v._groupIndex-x._groupIndex||v.index-x.index});var h={};for(a=0;a<g.length;a++)r=g[a][0].trace,o=r.stackgroup||"",r.visible===!0?(r._nexttrace=null,r.fill in EF&&(i=h[o],r._prevtrace=i||null,i&&(i._nexttrace=r)),r._ownfill=r.fill&&(r.fill.substr(0,6)==="tozero"||r.fill==="toself"||r.fill.substr(0,2)==="to"&&!r._prevtrace),h[o]=r):r._prevtrace=r._nexttrace=r._ownfill=null;return g},Lo=$t,G0e=Dt,gp=Ge,Ru=gp.ensureSingle,LF=gp.identity,Hn=gn,Nu=Wa,Z0e=q0e,K0e=W0e,Y0e=TL.tester,J0e=function(e,t,n,r,a,o){var i,l,s=!a,u=!!a&&a.duration>0,d=K0e(e,t,n);if(i=r.selectAll("g.trace").data(d,function(p){return p[0].trace.uid}),i.enter().append("g").attr("class",function(p){return"trace scatter trace"+p[0].trace.uid}).style("stroke-miterlimit",2),i.order(),Q0e(e,i,t),u){o&&(l=o());var f=Lo.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});f.each(function(){r.selectAll("g.trace").each(function(p,g){zF(e,g,t,p,d,this,a)})})}else i.each(function(p,g){zF(e,g,t,p,d,this,a)});s&&i.exit().remove(),r.selectAll("path:not([d])").remove()};function Q0e(e,t,n){t.each(function(r){var a=Ru(Lo.select(this),"g","fills");Hn.setClipUrl(a,n.layerClipId,e);var o=r[0].trace,i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,LF);l.enter().append("g"),l.exit().each(function(s){o[s]=null}).remove(),l.order().each(function(s){o[s]=Ru(Lo.select(this),"path","js-fill")})})}function zF(e,t,n,r,a,o,i){var l=e._context.staticPlot,s;X0e(e,t,n,r,a);var u=!!i&&i.duration>0;function d(ve){return u?ve.transition():ve}var f=n.xaxis,p=n.yaxis,g=r[0].trace,h=g.line,y=Lo.select(o),b=Ru(y,"g","errorbars"),v=Ru(y,"g","lines"),x=Ru(y,"g","points"),k=Ru(y,"g","text");if(G0e.getComponentMethod("errorbars","plot")(e,b,n,i),g.visible!==!0)return;d(y).style("opacity",g.opacity);var _,S,T=g.fill.charAt(g.fill.length-1);T!=="x"&&T!=="y"&&(T=""),r[0][n.isRangePlot?"nodeRangePlot3":"node3"]=y;var C="",A=[],O=g._prevtrace;O&&(C=O._prevRevpath||"",S=O._nextFill,A=O._polygons);var F,R,N="",B="",V,Z,G,I,P,z,H,j=[],q=gp.noop;if(_=g._ownFill,Nu.hasLines(g)||g.fill!=="none"){for(S&&S.datum(r),["hv","vh","hvh","vhv"].indexOf(h.shape)!==-1?(V=Hn.steps(h.shape),Z=Hn.steps(h.shape.split("").reverse().join(""))):h.shape==="spline"?V=Z=function(ve){var ge=ve[ve.length-1];return ve.length>1&&ve[0][0]===ge[0]&&ve[0][1]===ge[1]?Hn.smoothclosed(ve.slice(1),h.smoothing):Hn.smoothopen(ve,h.smoothing)}:V=Z=function(ve){return"M"+ve.join("L")},G=function(ve){return Z(ve.reverse())},j=Z0e(r,{xaxis:f,yaxis:p,trace:g,connectGaps:g.connectgaps,baseTolerance:Math.max(h.width||1,3)/4,shape:h.shape,backoff:h.backoff,simplify:h.simplify,fill:g.fill}),H=g._polygons=new Array(j.length),s=0;s<j.length;s++)g._polygons[s]=Y0e(j[s]);j.length&&(I=j[0][0],P=j[j.length-1],z=P[P.length-1]),q=function(ve){return function(ge){if(F=V(ge),R=G(ge),N?T?(N+="L"+F.substr(1),B=R+("L"+B.substr(1))):(N+="Z"+F,B=R+"Z"+B):(N=F,B=R),Nu.hasLines(g)){var xe=Lo.select(this);if(xe.datum(r),ve)d(xe.style("opacity",0).attr("d",F).call(Hn.lineGroupStyle)).style("opacity",1);else{var Le=d(xe);Le.attr("d",F),Hn.singleLineStyle(r,Le)}}}}}var $=v.selectAll(".js-line").data(j);d($.exit()).style("opacity",0).remove(),$.each(q(!1)),$.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(Hn.lineGroupStyle).each(q(!0)),Hn.setClipUrl($,n.layerClipId,e);function ne(ve){d(ve).attr("d","M0,0Z")}j.length?(_?(_.datum(r),I&&z&&(T?(T==="y"?I[1]=z[1]=p.c2p(0,!0):T==="x"&&(I[0]=z[0]=f.c2p(0,!0)),d(_).attr("d","M"+z+"L"+I+"L"+N.substr(1)).call(Hn.singleFillStyle,e)):d(_).attr("d",N+"Z").call(Hn.singleFillStyle,e))):S&&(g.fill.substr(0,6)==="tonext"&&N&&C?(g.fill==="tonext"?d(S).attr("d",N+"Z"+C+"Z").call(Hn.singleFillStyle,e):d(S).attr("d",N+"L"+C.substr(1)+"Z").call(Hn.singleFillStyle,e),g._polygons=g._polygons.concat(A)):(ne(S),g._polygons=null)),g._prevRevpath=B,g._prevPolygons=H):(_?ne(_):S&&ne(S),g._polygons=g._prevRevpath=g._prevPolygons=null);function te(ve){return ve.filter(function(ge){return!ge.gap&&ge.vis})}function ee(ve){return ve.filter(function(ge){return ge.vis})}function se(ve){return ve.filter(function(ge){return!ge.gap})}function U(ve){return ve.id}function Y(ve){if(ve.ids)return U}function J(){return!1}function re(ve,ge,xe){var Le,Ue,Pe,De=xe[0].trace,je=Nu.hasMarkers(De),qe=Nu.hasText(De),Ee=Y(De),_e=J,we=J;if(je||qe){var Re=LF,Je=De.stackgroup,it=Je&&e._fullLayout._scatterStackOpts[f._id+p._id][Je].stackgaps==="infer zero";De.marker.maxdisplayed||De._needsCull?Re=it?ee:te:Je&&!it&&(Re=se),je&&(_e=Re),qe&&(we=Re)}Ue=ve.selectAll("path.point"),Le=Ue.data(_e,Ee);var dt=Le.enter().append("path").classed("point",!0);u&&dt.call(Hn.pointStyle,De,e).call(Hn.translatePoints,f,p).style("opacity",0).transition().style("opacity",1),Le.order();var at;je&&(at=Hn.makePointStyleFns(De)),Le.each(function(lt){var He=Lo.select(this),Be=d(He);Pe=Hn.translatePoint(lt,Be,f,p),Pe?(Hn.singlePointStyle(lt,Be,De,at,e),n.layerClipId&&Hn.hideOutsideRangePoint(lt,Be,f,p,De.xcalendar,De.ycalendar),De.customdata&&He.classed("plotly-customdata",lt.data!==null&&lt.data!==void 0)):Be.remove()}),u?Le.exit().transition().style("opacity",0).remove():Le.exit().remove(),Ue=ge.selectAll("g"),Le=Ue.data(we,Ee),Le.enter().append("g").classed("textpoint",!0).append("text"),Le.order(),Le.each(function(lt){var He=Lo.select(this),Be=d(He.select("text"));Pe=Hn.translatePoint(lt,Be,f,p),Pe?n.layerClipId&&Hn.hideOutsideRangePoint(lt,He,f,p,De.xcalendar,De.ycalendar):He.remove()}),Le.selectAll("text").call(Hn.textPointStyle,De,e).each(function(lt){var He=f.c2p(lt.x),Be=p.c2p(lt.y);Lo.select(this).selectAll("tspan.line").each(function(){d(Lo.select(this)).attr({x:He,y:Be})})}),Le.exit().remove()}x.datum(r),k.datum(r),re(x,k,r);var oe=g.cliponaxis===!1,he=oe?null:n.layerClipId;Hn.setClipUrl(x,he,e),Hn.setClipUrl(k,he,e)}function X0e(e,t,n,r,a){var o=n.xaxis,i=n.yaxis,l=Lo.extent(gp.simpleMap(o.range,o.r2c)),s=Lo.extent(gp.simpleMap(i.range,i.r2c)),u=r[0].trace;if(Nu.hasMarkers(u)){var d=u.marker.maxdisplayed;if(d!==0){var f=r.filter(function(y){return y.x>=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),p=Math.ceil(f.length/d),g=0;a.forEach(function(y,b){var v=y[0].trace;Nu.hasMarkers(v)&&v.marker.maxdisplayed>0&&b<t&&g++});var h=Math.round(g*p/3+Math.floor(g/3)*p/7.1);r.forEach(function(y){delete y.vis}),f.forEach(function(y,b){Math.round((b+h)%p)===0&&(y.vis=!0)})}}}var FF={container:"marker",min:"cmin",max:"cmax"},S0=bn,IF=function(e,t,n){var r={},a={_fullLayout:n},o=S0.getFromTrace(a,t,"x"),i=S0.getFromTrace(a,t,"y"),l=e.orig_x;l===void 0&&(l=e.x);var s=e.orig_y;return s===void 0&&(s=e.y),r.xLabel=S0.tickText(o,o.c2l(l),!0).text,r.yLabel=S0.tickText(i,i.c2l(s),!0).text,r},a2=$t,Bu=gn,$0e=Dt;function eye(e){var t=a2.select(e).selectAll("g.trace.scatter");t.style("opacity",function(n){return n[0].trace.opacity}),t.selectAll("g.points").each(function(n){var r=a2.select(this),a=n.trace||n[0].trace;o2(r,a,e)}),t.selectAll("g.text").each(function(n){var r=a2.select(this),a=n.trace||n[0].trace;i2(r,a,e)}),t.selectAll("g.trace path.js-line").call(Bu.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(Bu.fillGroupStyle,e),$0e.getComponentMethod("errorbars","style")(t)}function o2(e,t,n){Bu.pointStyle(e.selectAll("path.point"),t,n)}function i2(e,t,n){Bu.textPointStyle(e.selectAll("text"),t,n)}function tye(e,t,n){var r=t[0].trace;r.selectedpoints?(Bu.selectedPointStyle(n.selectAll("path.point"),r),Bu.selectedTextStyle(n.selectAll("text"),r)):(o2(n,r,e),i2(n,r,e))}var DF={style:eye,stylePoints:o2,styleText:i2,styleOnSelect:tye},ju=Kt,nye=Wa,rye=function(e,t){var n,r;if(e.mode==="lines")return n=e.line.color,n&&ju.opacity(n)?n:e.fillcolor;if(e.mode==="none")return e.fill?e.fillcolor:"";var a=t.mcc||(e.marker||{}).color,o=t.mlcc||((e.marker||{}).line||{}).color;return r=a&&ju.opacity(a)?a:o&&ju.opacity(o)&&(t.mlw||((e.marker||{}).line||{}).width)?o:"",r?ju.opacity(r)<.3?ju.addOpacity(r,.3):r:(n=(e.line||{}).color,n&&ju.opacity(n)&&nye.hasLines(e)&&e.line.width?n:e.fillcolor)},A0=Ge,PF=Xi,aye=Dt,oye=rye,l2=Kt,iye=A0.fillText,lye=function(e,t,n,r){var a=e.cd,o=a[0].trace,i=e.xa,l=e.ya,s=i.c2p(t),u=l.c2p(n),d=[s,u],f=o.hoveron||"",p=o.mode.indexOf("markers")!==-1?3:.5,g=!!o.xperiodalignment,h=!!o.yperiodalignment;if(f.indexOf("points")!==-1){var y=function(Y){if(g){var J=i.c2p(Y.xStart),re=i.c2p(Y.xEnd);return s>=Math.min(J,re)&&s<=Math.max(J,re)?0:1/0}var oe=Math.max(3,Y.mrc||0),he=1-1/oe,ve=Math.abs(i.c2p(Y.x)-s);return ve<oe?he*ve/oe:ve-oe+he},b=function(Y){if(h){var J=l.c2p(Y.yStart),re=l.c2p(Y.yEnd);return u>=Math.min(J,re)&&u<=Math.max(J,re)?0:1/0}var oe=Math.max(3,Y.mrc||0),he=1-1/oe,ve=Math.abs(l.c2p(Y.y)-u);return ve<oe?he*ve/oe:ve-oe+he},v=function(Y){var J=Math.max(p,Y.mrc||0),re=i.c2p(Y.x)-s,oe=l.c2p(Y.y)-u;return Math.max(Math.sqrt(re*re+oe*oe)-J,1-p/J)},x=PF.getDistanceFunction(r,y,b,v);if(PF.getClosest(a,x,e),e.index!==!1){var k=a[e.index],_=i.c2p(k.x,!0),S=l.c2p(k.y,!0),T=k.mrc||1;e.index=k.i;var C=a[0].t.orientation,A=C&&(k.sNorm||k.s),O=C==="h"?A:k.orig_x!==void 0?k.orig_x:k.x,F=C==="v"?A:k.orig_y!==void 0?k.orig_y:k.y;return A0.extendFlat(e,{color:oye(o,k),x0:_-T,x1:_+T,xLabelVal:O,y0:S-T,y1:S+T,yLabelVal:F,spikeDistance:v(k),hovertemplate:o.hovertemplate}),iye(k,o,e),aye.getComponentMethod("errorbars","hoverInfo")(k,o,e),[e]}}if(f.indexOf("fills")!==-1&&o._polygons){var R=o._polygons,N=[],B=!1,V=1/0,Z=-1/0,G=1/0,I=-1/0,P,z,H,j,q,$,ne,te,ee;for(P=0;P<R.length;P++)H=R[P],H.contains(d)&&(B=!B,N.push(H),G=Math.min(G,H.ymin),I=Math.max(I,H.ymax));if(B){G=Math.max(G,0),I=Math.min(I,l._length);var se=(G+I)/2;for(P=0;P<N.length;P++)for(j=N[P].pts,z=1;z<j.length;z++)te=j[z-1][1],ee=j[z][1],te>se!=ee>=se&&($=j[z-1][0],ne=j[z][0],ee-te&&(q=$+(ne-$)*(se-te)/(ee-te),V=Math.min(V,q),Z=Math.max(Z,q)));V=Math.max(V,0),Z=Math.min(Z,i._length);var U=l2.defaultLine;return l2.opacity(o.fillcolor)?U=o.fillcolor:l2.opacity((o.line||{}).color)&&(U=o.line.color),A0.extendFlat(e,{distance:e.maxHoverDistance,x0:V,x1:Z,y0:se,y1:se,color:U,hovertemplate:!1}),delete e.index,o.text&&!A0.isArrayOrTypedArray(o.text)?e.text=String(o.text):e.text=o.name,[e]}}},RF=Wa,sye=function(e,t){var n=e.cd,r=e.xaxis,a=e.yaxis,o=[],i=n[0].trace,l,s,u,d,f=!RF.hasMarkers(i)&&!RF.hasText(i);if(f)return[];if(t===!1)for(l=0;l<n.length;l++)n[l].selected=0;else for(l=0;l<n.length;l++)s=n[l],u=r.c2p(s.x),d=a.c2p(s.y),s.i!==null&&t.contains([u,d],!1,l,e)?(o.push({pointNumber:s.i,x:r.c2d(s.x),y:a.c2d(s.y)}),s.selected=1):s.selected=0;return o},hr={},NF,BF;function cye(){return BF||(BF=1,NF={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}),NF}var s2,jF;function uye(){if(jF)return s2;jF=1;var e=Dt.traceIs,t=K8;s2=function(i,l,s,u){s("autotypenumbers",u.autotypenumbersDflt);var d=s("type",(u.splomStash||{}).type);d==="-"&&(n(l,u.data),l.type==="-"?l.type="linear":i.type=l.type)};function n(i,l){if(i.type==="-"){var s=i._id,u=s.charAt(0),d;s.indexOf("scene")!==-1&&(s=u);var f=r(l,s,u);if(f){if(f.type==="histogram"&&u==={v:"y",h:"x"}[f.orientation||"v"]){i.type="linear";return}var p=u+"calendar",g=f[p],h={noMultiCategory:!e(f,"cartesian")||e(f,"noMultiCategory")};if(f.type==="box"&&f._hasPreCompStats&&u==={h:"x",v:"y"}[f.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=i.autotypenumbers,o(f,u)){var y=a(f),b=[];for(d=0;d<l.length;d++){var v=l[d];!e(v,"box-violin")||(v[u+"axis"]||u)!==s||(v[y]!==void 0?b.push(v[y][0]):v.name!==void 0?b.push(v.name):b.push("text"),v[p]!==g&&(g=void 0))}i.type=t(b,g,h)}else if(f.type==="splom"){var x=f.dimensions,k=x[f._axesDim[s]];k.visible&&(i.type=t(k.values,g,h))}else i.type=t(f[u]||[f[u+"0"]],g,h)}}}function r(i,l,s){for(var u=0;u<i.length;u++){var d=i[u];if(d.type==="splom"&&d._length>0&&(d["_"+s+"axes"]||{})[l]||(d[s+"axis"]||s)===l&&(o(d,s)||(d[s]||[]).length||d[s+"0"]))return d}}function a(i){return{v:"x",h:"y"}[i.orientation||"v"]}function o(i,l){var s=a(i),u=e(i,"box-violin"),d=e(i._fullInput||{},"candlestick");return u&&!d&&l===s&&i[s]===void 0&&i[s+"0"]===void 0}return s2}var dye=$n.isTypedArraySpec;function fye(e,t){var n=t.dataAttr||e._id.charAt(0),r={},a,o,i;if(t.axData)a=t.axData;else for(a=[],o=0;o<t.data.length;o++){var l=t.data[o];l[n+"axis"]===e._id&&a.push(l)}for(o=0;o<a.length;o++){var s=a[o][n];for(i=0;i<s.length;i++){var u=s[i];u!=null&&(r[u]=1)}}return Object.keys(r)}var pye=function(e,t,n,r){if(t.type==="category"){var a=e.categoryarray,o=Array.isArray(a)&&a.length>0||dye(a),i;o&&(i="array");var l=n("categoryorder",i),s;l==="array"&&(s=n("categoryarray")),!o&&l==="array"&&(l=t.categoryorder="trace"),l==="trace"?t._initialCategories=[]:l==="array"?t._initialCategories=s.slice():(s=fye(t,r).sort(),l==="category ascending"?t._initialCategories=s:l==="category descending"&&(t._initialCategories=s.reverse()))}},VF=ko.mix,hye=ca,mye=Ge,gye=function(e,t,n,r){r=r||{};var a=r.dfltColor;function o(T,C){return mye.coerce2(e,t,r.attributes,T,C)}var i=o("linecolor",a),l=o("linewidth"),s=n("showline",r.showLine||!!i||!!l);s||(delete t.linecolor,delete t.linewidth);var u=VF(a,r.bgColor,r.blend||hye.lightFraction).toRgbString(),d=o("gridcolor",u),f=o("gridwidth"),p=o("griddash"),g=n("showgrid",r.showGrid||!!d||!!f||!!p);if(g||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),r.hasMinor){var h=VF(t.gridcolor,r.bgColor,67).toRgbString(),y=o("minor.gridcolor",h),b=o("minor.gridwidth",t.gridwidth||1),v=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!b||!!v);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!r.noZeroLine){var k=o("zerolinecolor",a),_=o("zerolinewidth"),S=n("zeroline",r.showGrid||!!k||!!_);S||(delete t.zerolinecolor,delete t.zerolinewidth)}},HF=en,yye=Dt,yp=Ge,vye=hn,bye=li,c2=ii,UF=$O,qF=t8,xye=a8,wye=o8,_ye=pye,kye=gye,Tye=_6,WF=Xx,M0=Jr.WEEKDAY_PATTERN,Sye=Jr.HOUR_PATTERN,GF=function(e,t,n,r,a){var o=r.letter,i=r.font||{},l=r.splomStash||{},s=n("visible",!r.visibleDflt),u=t._template||{},d=t.type||u.type||"-",f;if(d==="date"){var p=yye.getComponentMethod("calendars","handleDefaults");p(e,t,"calendar",r.calendar),r.noTicklabelmode||(f=n("ticklabelmode"))}var g="";(!r.noTicklabelposition||d==="multicategory")&&(g=yp.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f==="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")),r.noTicklabeloverflow||n("ticklabeloverflow",g.indexOf("inside")!==-1?"hide past domain":d==="category"||d==="multicategory"?"allow":"hide past div"),WF(t,a),Tye(e,t,n,r),_ye(e,t,n,r),d!=="category"&&!r.noHover&&n("hoverformat");var h=n("color"),y=h!==c2.color.dflt?h:i.color,b=l.label||a._dfltTitle[o];if(wye(e,t,n,d,r),!s)return t;n("title.text",b),yp.coerceFont(n,"title.font",{family:i.family,size:yp.bigFont(i.size),color:y}),UF(e,t,n,d);var v=r.hasMinor;if(v&&(vye.newContainer(t,"minor"),UF(e,t,n,d,{isMinor:!0})),xye(e,t,n,d,r),qF(e,t,n,r),v){var x=r.isMinor;r.isMinor=!0,qF(e,t,n,r),r.isMinor=x}kye(e,t,n,{dfltColor:h,bgColor:r.bgColor,showGrid:r.showGrid,hasMinor:v,attributes:c2}),v&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var k=d==="multicategory";if(!r.noTickson&&(d==="category"||k)&&(t.ticks||t.showgrid)){var _;k&&(_="boundaries");var S=n("tickson",_);S==="boundaries"&&delete t.ticklabelposition}if(k){var T=n("showdividers");T&&(n("dividercolor"),n("dividerwidth"))}if(d==="date")if(bye(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Aye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C<t.rangebreaks.length;C++)if(t.rangebreaks[C].pattern===M0){t._hasDayOfWeekBreaks=!0;break}if(WF(t,a),a._has("scattergl")||a._has("splom"))for(var A=0;A<r.data.length;A++){var O=r.data[A];(O.type==="scattergl"||O.type==="splom")&&(O.visible=!1,yp.warn(O.type+" traces do not work on axes with rangebreaks. Setting trace "+O.index+" to `visible: false`."))}}return t};function Aye(e,t,n){function r(p,g){return yp.coerce(e,t,c2.rangebreaks,p,g)}var a=r("enabled");if(a){var o=r("bounds");if(o&&o.length>=2){var i="",l,s;if(o.length===2){for(l=0;l<2;l++)if(s=ZF(o[l]),s){i=M0;break}}var u=r("pattern",i);if(u===M0)for(l=0;l<2;l++)s=ZF(o[l]),s&&(t.bounds[l]=o[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=o[l],u){case M0:if(!HF(s)){t.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){t.enabled=!1;return}t.bounds[l]=o[l]=s;break;case Sye:if(!HF(s)){t.enabled=!1;return}if(s=+s,s<0||s>24){t.enabled=!1;return}t.bounds[l]=o[l]=s;break}if(n.autorange===!1){var d=n.range;if(d[0]<d[1]){if(o[0]<d[0]&&o[1]>d[1]){t.enabled=!1;return}}else if(o[0]>d[0]&&o[1]<d[1]){t.enabled=!1;return}}}else{var f=r("values");if(f&&f.length)r("dvalue");else{t.enabled=!1;return}}}}var Mye={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function ZF(e){if(typeof e=="string")return Mye[e.substr(0,3).toLowerCase()]}var Cye=en,C0=Ge,KF=function(e,t,n,r){var a=r.counterAxes||[],o=r.overlayableAxes||[],i=r.letter,l=r.grid,s=r.overlayingDomain,u,d,f,p,g,h;l&&(d=l._domains[i][l._axisMap[t._id]],u=l._anchors[t._id],d&&(f=l[i+"side"].split(" ")[0],p=l.domain[i][f==="right"||f==="top"?1:0])),d=d||[0,1],u=u||(Cye(e.position)?"free":a[0]||"free"),f=f||(i==="x"?"bottom":"left"),p=p||0,g=0,h=!1;var y=C0.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:u}},"anchor"),b=C0.coerce(e,t,{side:{valType:"enumerated",values:i==="x"?["bottom","top"]:["left","right"],dflt:f}},"side");if(y==="free"){if(i==="y"){var v=n("autoshift");v&&(p=b==="left"?s[0]:s[1],h=t.automargin?t.automargin:!0,g=b==="left"?-3:3),n("shift",g)}n("position",p)}n("automargin",h);var x=!1;if(o.length&&(x=C0.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var k=n("domain",d);k[0]>k[1]-1/4096&&(t.domain=d),C0.noneOrAll(e.domain,t.domain,d),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t},u2,YF;function Oye(){if(YF)return u2;YF=1;var e=Ge,t=Kt,n=Ki.isUnifiedHover,r=hE,a=hn,o=xf,i=ii,l=uye(),s=GF,u=Hl,d=KF,f=dr,p=f.id2name,g=f.name2id,h=Jr.AX_ID_PATTERN,y=Dt,b=y.traceIs,v=y.getComponentMethod;function x(k,_,S){Array.isArray(k[_])?k[_].push(S):k[_]=[S]}return u2=function(k,_,S){var T=_.autotypenumbers,C={},A={},O={},F={},R={},N={},B={},V={},Z={},G={},I,P;for(I=0;I<S.length;I++){var z=S[I];if(!(!b(z,"cartesian")&&!b(z,"gl2d"))){var H;if(z.xaxis)H=p(z.xaxis),x(C,H,z);else if(z.xaxes)for(P=0;P<z.xaxes.length;P++)x(C,p(z.xaxes[P]),z);var j;if(z.yaxis)j=p(z.yaxis),x(C,j,z);else if(z.yaxes)for(P=0;P<z.yaxes.length;P++)x(C,p(z.yaxes[P]),z);if(z.type==="funnel"?z.orientation==="h"?(H&&(A[H]=!0),j&&(B[j]=!0)):j&&(O[j]=!0):z.type==="image"?(j&&(V[j]=!0),H&&(V[H]=!0)):(j&&(R[j]=!0,N[j]=!0),(!b(z,"carpet")||z.type==="carpet"&&!z._cheater)&&H&&(F[H]=!0)),z.type==="carpet"&&z._cheater&&H&&(A[H]=!0),b(z,"2dMap")&&(Z[H]=!0,Z[j]=!0),b(z,"oriented")){var q=z.orientation==="h"?j:H;G[q]=!0}}}var $=_._subplots,ne=$.xaxis,te=$.yaxis,ee=e.simpleMap(ne,p),se=e.simpleMap(te,p),U=ee.concat(se),Y=t.background;ne.length&&te.length&&(Y=e.coerce(k,_,o,"plot_bgcolor"));var J=t.combine(Y,_.paper_bgcolor),re,oe,he,ve,ge;function xe(){var Ke=C[re]||[];ge._traceIndices=Ke.map(function(Ot){return Ot._expandedIndex}),ge._annIndices=[],ge._shapeIndices=[],ge._selectionIndices=[],ge._imgIndices=[],ge._subplotsWith=[],ge._counterAxes=[],ge._name=ge._attr=re,ge._id=oe}function Le(Ke,Ot){return e.coerce(ve,ge,i,Ke,Ot)}function Ue(Ke,Ot){return e.coerce2(ve,ge,i,Ke,Ot)}function Pe(Ke){return Ke==="x"?te:ne}function De(Ke,Ot){for(var X=Ke==="x"?ee:se,ue=[],de=0;de<X.length;de++){var ce=X[de];ce!==Ot&&!(k[ce]||{}).overlaying&&ue.push(g(ce))}return ue}var je={x:Pe("x"),y:Pe("y")},qe=je.x.concat(je.y),Ee={},_e=[];function we(){var Ke=ve.matches;h.test(Ke)&&qe.indexOf(Ke)===-1&&(Ee[Ke]=ve.type,_e=Object.keys(Ee))}var Re=r(k,_),Je=n(Re);for(I=0;I<U.length;I++){re=U[I],oe=g(re),he=re.charAt(0),e.isPlainObject(k[re])||(k[re]={}),ve=k[re],ge=a.newContainer(_,re,he+"axis"),xe();var it=he==="x"&&!F[re]&&A[re]||he==="y"&&!R[re]&&O[re],dt=he==="y"&&(!N[re]&&B[re]||V[re]),at={hasMinor:!0,letter:he,font:_.font,outerTicks:Z[re],showGrid:!G[re],data:C[re]||[],bgColor:J,calendar:_.calendar,automargin:!0,visibleDflt:it,reverseDflt:dt,autotypenumbersDflt:T,splomStash:((_._splomAxes||{})[he]||{})[oe]};Le("uirevision",_.uirevision),l(ve,ge,Le,at),s(ve,ge,Le,at,_);var lt=Je&&he===Re.charAt(0),He=Ue("spikecolor",Je?ge.color:void 0),Be=Ue("spikethickness",Je?1.5:void 0),Ze=Ue("spikedash",Je?"dot":void 0),Ye=Ue("spikemode",Je?"across":void 0),et=Ue("spikesnap"),st=Le("showspikes",!!lt||!!He||!!Be||!!Ze||!!Ye||!!et);st||(delete ge.spikecolor,delete ge.spikethickness,delete ge.spikedash,delete ge.spikemode,delete ge.spikesnap);var nt=p(ve.overlaying),gt=[0,1];if(_[nt]!==void 0){var Ve=p(_[nt].anchor);_[Ve]!==void 0&&(gt=_[Ve].domain)}d(ve,ge,Le,{letter:he,counterAxes:je[he],overlayableAxes:De(he,re),grid:_.grid,overlayingDomain:gt}),Le("title.standoff"),we(),ge._input=ve}for(I=0;I<_e.length;){oe=_e[I++],re=p(oe),he=re.charAt(0),e.isPlainObject(k[re])||(k[re]={}),ve=k[re],ge=a.newContainer(_,re,he+"axis"),xe();var rt={letter:he,font:_.font,outerTicks:Z[re],showGrid:!G[re],data:[],bgColor:J,calendar:_.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((_._splomAxes||{})[he]||{})[oe]};Le("uirevision",_.uirevision),ge.type=Ee[oe]||"linear",s(ve,ge,Le,rt,_),d(ve,ge,Le,{letter:he,counterAxes:je[he],overlayableAxes:De(he,re),grid:_.grid}),Le("fixedrange"),we(),ge._input=ve}var ft=v("rangeslider","handleDefaults"),wt=v("rangeselector","handleDefaults");for(I=0;I<ee.length;I++)re=ee[I],ve=k[re],ge=_[re],ft(k,_,re),ge.type==="date"&&wt(ve,ge,_,se,ge.calendar),Le("fixedrange");for(I=0;I<se.length;I++){re=se[I],ve=k[re],ge=_[re];var tt=_[p(ge.anchor)],pt=v("rangeslider","isVisible")(tt);Le("fixedrange",pt)}u.handleDefaults(k,_,{axIds:qe.concat(_e).sort(f.idSort),axHasImage:V})},u2}var d2,JF;function Eye(){if(JF)return d2;JF=1;var e=$t,t=Dt,n=Ge,r=gn,a=bn;return d2=function(o,i,l,s){var u=o._fullLayout;if(i.length===0){a.redrawComponents(o);return}function d(_){var S=_.xaxis,T=_.yaxis;u._defs.select("#"+_.clipId+"> rect").call(r.setTranslate,0,0).call(r.setScale,1,1),_.plot.call(r.setTranslate,S._offset,T._offset).call(r.setScale,1,1);var C=_.plot.selectAll(".scatterlayer .trace");C.selectAll(".point").call(r.setPointGroupScale,1,1),C.selectAll(".textpoint").call(r.setTextPointsScale,1,1),C.call(r.hideOutsideRangePoints,_)}function f(_,S){var T=_.plotinfo,C=T.xaxis,A=T.yaxis,O=C._length,F=A._length,R=!!_.xr1,N=!!_.yr1,B=[];if(R){var V=n.simpleMap(_.xr0,C.r2l),Z=n.simpleMap(_.xr1,C.r2l),G=V[1]-V[0],I=Z[1]-Z[0];B[0]=(V[0]*(1-S)+S*Z[0]-V[0])/(V[1]-V[0])*O,B[2]=O*(1-S+S*I/G),C.range[0]=C.l2r(V[0]*(1-S)+S*Z[0]),C.range[1]=C.l2r(V[1]*(1-S)+S*Z[1])}else B[0]=0,B[2]=O;if(N){var P=n.simpleMap(_.yr0,A.r2l),z=n.simpleMap(_.yr1,A.r2l),H=P[1]-P[0],j=z[1]-z[0];B[1]=(P[1]*(1-S)+S*z[1]-P[1])/(P[0]-P[1])*F,B[3]=F*(1-S+S*j/H),A.range[0]=C.l2r(P[0]*(1-S)+S*z[0]),A.range[1]=A.l2r(P[1]*(1-S)+S*z[1])}else B[1]=0,B[3]=F;a.drawOne(o,C,{skipTitle:!0}),a.drawOne(o,A,{skipTitle:!0}),a.redrawComponents(o,[C._id,A._id]);var q=R?O/B[2]:1,$=N?F/B[3]:1,ne=R?B[0]:0,te=N?B[1]:0,ee=R?B[0]/B[2]*O:0,se=N?B[1]/B[3]*F:0,U=C._offset-ee,Y=A._offset-se;T.clipRect.call(r.setTranslate,ne,te).call(r.setScale,1/q,1/$),T.plot.call(r.setTranslate,U,Y).call(r.setScale,q,$),r.setPointGroupScale(T.zoomScalePts,1/q,1/$),r.setTextPointsScale(T.zoomScaleTxt,1/q,1/$)}var p;s&&(p=s());function g(){for(var _={},S=0;S<i.length;S++){var T=i[S],C=T.plotinfo.xaxis,A=T.plotinfo.yaxis;T.xr1&&(_[C._name+".range"]=T.xr1.slice()),T.yr1&&(_[A._name+".range"]=T.yr1.slice())}return p&&p(),t.call("relayout",o,_).then(function(){for(var O=0;O<i.length;O++)d(i[O].plotinfo)})}function h(){for(var _={},S=0;S<i.length;S++){var T=i[S],C=T.plotinfo.xaxis,A=T.plotinfo.yaxis;T.xr0&&(_[C._name+".range"]=T.xr0.slice()),T.yr0&&(_[A._name+".range"]=T.yr0.slice())}return t.call("relayout",o,_).then(function(){for(var O=0;O<i.length;O++)d(i[O].plotinfo)})}var y,b,v,x=e.ease(l.easing);o._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(v),v=null,h()});function k(){b=Date.now();for(var _=Math.min(1,(b-y)/l.duration),S=x(_),T=0;T<i.length;T++)f(i[T],S);b-y>l.duration?(g(),v=window.cancelAnimationFrame(k)):v=window.requestAnimationFrame(k)}return y=Date.now(),v=window.requestAnimationFrame(k),Promise.resolve()},d2}var O0=$t,QF=Dt,E0=Ge,Lye=wr,zye=gn,XF=Tf.getModuleCalcData,Kl=dr,gi=Jr,Fye=Ll,yn=E0.ensureSingle;function L0(e,t,n){return E0.ensureSingle(e,t,n,function(r){r.datum(n)})}hr.name="cartesian",hr.attr=["xaxis","yaxis"],hr.idRoot=["x","y"],hr.idRegex=gi.idRegex,hr.attrRegex=gi.attrRegex,hr.attributes=cye(),hr.layoutAttributes=ii,hr.supplyLayoutDefaults=Oye(),hr.transitionAxes=Eye(),hr.finalizeSubplots=function(e,t){var n=t._subplots,r=n.xaxis,a=n.yaxis,o=n.cartesian,i=o.concat(n.gl2d||[]),l={},s={},u,d,f;for(u=0;u<i.length;u++){var p=i[u].split("y");l[p[0]]=1,s["y"+p[1]]=1}for(u=0;u<r.length;u++)d=r[u],l[d]||(f=(e[Kl.id2name(d)]||{}).anchor,gi.idRegex.y.test(f)||(f="y"),o.push(d+f),i.push(d+f),s[f]||(s[f]=1,E0.pushUnique(a,f)));for(u=0;u<a.length;u++)f=a[u],s[f]||(d=(e[Kl.id2name(f)]||{}).anchor,gi.idRegex.x.test(d)||(d="x"),o.push(d+f),i.push(d+f),l[d]||(l[d]=1,E0.pushUnique(r,d)));if(!i.length){d="",f="";for(var g in e)if(gi.attrRegex.test(g)){var h=g.charAt(0);h==="x"?(!d||+g.substr(5)<+d.substr(5))&&(d=g):(!f||+g.substr(5)<+f.substr(5))&&(f=g)}d=d?Kl.name2id(d):"x",f=f?Kl.name2id(f):"y",r.push(d),a.push(f),o.push(d+f)}},hr.plot=function(e,t,n,r){var a=e._fullLayout,o=a._subplots.cartesian,i=e.calcdata,l;if(!Array.isArray(t))for(t=[],l=0;l<i.length;l++)t.push(l);for(l=0;l<o.length;l++){for(var s=o[l],u=a._plots[s],d=[],f,p=0;p<i.length;p++){var g=i[p],h=g[0].trace;h.xaxis+h.yaxis===s&&((t.indexOf(h.index)!==-1||h.carpet)&&(f&&f[0].trace.xaxis+f[0].trace.yaxis===s&&["tonextx","tonexty","tonext"].indexOf(h.fill)!==-1&&d.indexOf(f)===-1&&d.push(f),d.push(g)),f=g)}$F(e,u,d,n,r)}};function $F(e,t,n,r,a){for(var o=gi.traceLayerClasses,i=e._fullLayout,l=i._modules,s,u,d,f=[],p=[],g=0;g<l.length;g++){s=l[g];var h=s.name,y=QF.modules[h].categories;if(y.svg){var b=s.layerName||h+"layer",v=s.plot;u=XF(n,v),d=u[0],n=u[1],d.length&&f.push({i:o.indexOf(b),className:b,plotMethod:v,cdModule:d}),y.zoomScale&&p.push("."+b)}}f.sort(function(_,S){return _.i-S.i});var x=t.plot.selectAll("g.mlayer").data(f,function(_){return _.className});if(x.enter().append("g").attr("class",function(_){return _.className}).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),x.exit().remove(),x.order(),x.each(function(_){var S=O0.select(this),T=_.className;_.plotMethod(e,t,_.cdModule,S,r,a),gi.clipOnAxisFalseQuery.indexOf("."+T)===-1&&zye.setClipUrl(S,t.layerClipId,e)}),i._has("scattergl")&&(s=QF.getModule("scattergl"),d=XF(n,s)[0],s.plot(e,t,d)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(gi.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),p.length)){var k=t.plot.selectAll(p.join(",")).selectAll(".trace");t.zoomScalePts=k.selectAll("path.point"),t.zoomScaleTxt=k.selectAll(".textpoint")}}hr.clean=function(e,t,n,r){var a=r._plots||{},o=t._plots||{},i=r._subplots||{},l,s,u;if(r._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(u in a)l=a[u],l.plotgroup&&l.plotgroup.remove();var d=r._has&&r._has("gl"),f=t._has&&t._has("gl");if(d&&!f)for(u in a)l=a[u],l._scene&&l._scene.destroy();if(i.xaxis&&i.yaxis){var p=Kl.listIds({_fullLayout:r});for(s=0;s<p.length;s++){var g=p[s];t[Kl.id2name(g)]||r._infolayer.selectAll(".g-"+g+"title").remove()}}var h=r._has&&r._has("cartesian"),y=t._has&&t._has("cartesian");if(h&&!y)tI(r._cartesianlayer.selectAll(".subplot"),r),r._defs.selectAll(".axesclip").remove(),delete r._axisConstraintGroups,delete r._axisMatchGroups;else if(i.cartesian)for(s=0;s<i.cartesian.length;s++){var b=i.cartesian[s];if(!o[b]){var v="."+b+",."+b+"-x,."+b+"-y";r._cartesianlayer.selectAll(v).remove(),nI(b,r)}}},hr.drawFramework=function(e){var t=e._fullLayout,n=Iye(e),r=t._cartesianlayer.selectAll(".subplot").data(n,String);r.enter().append("g").attr("class",function(a){return"subplot "+a[0]}),r.order(),r.exit().call(tI,t),r.each(function(a){var o=a[0],i=t._plots[o];i.plotgroup=O0.select(this),eI(e,i),i.draglayer=yn(t._draggers,"g",o)})},hr.rangePlot=function(e,t,n){eI(e,t),$F(e,t,n),Lye.style(e)};function Iye(e){var t=e._fullLayout,n=t._subplots.cartesian,r=n.length,a,o,i,l,s,u,d=[],f=[];for(a=0;a<r;a++){i=n[a],l=t._plots[i],s=l.xaxis,u=l.yaxis;var p=s._mainAxis,g=u._mainAxis,h=p._id+g._id,y=t._plots[h];l.overlays=[],h!==i&&y?(l.mainplot=h,l.mainplotinfo=y,f.push(i)):(l.mainplot=void 0,l.mainplotinfo=void 0,d.push(i))}for(a=0;a<f.length;a++)i=f[a],l=t._plots[i],l.mainplotinfo.overlays.push(l);var b=d.concat(f),v=new Array(r);for(a=0;a<r;a++){i=b[a],l=t._plots[i],s=l.xaxis,u=l.yaxis;var x=[i,s.layer,u.layer,s.overlaying||"",u.overlaying||""];for(o=0;o<l.overlays.length;o++)x.push(l.overlays[o].id);v[a]=x}return v}function eI(e,t){var n=t.plotgroup,r=t.id,a=gi.layerValue2layerClass[t.xaxis.layer],o=gi.layerValue2layerClass[t.yaxis.layer],i=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,u=r+"-x",d=r+"-y";t.minorGridlayer=l.minorGridlayer,t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,yn(l.overlinesBelow,"path",u),yn(l.overlinesBelow,"path",d),yn(l.overaxesBelow,"g",u),yn(l.overaxesBelow,"g",d),t.plot=yn(l.overplot,"g",r),yn(l.overlinesAbove,"path",u),yn(l.overlinesAbove,"path",d),yn(l.overaxesAbove,"g",u),yn(l.overaxesAbove,"g",d),t.xlines=s.select(".overlines-"+a).select("."+u),t.ylines=s.select(".overlines-"+o).select("."+d),t.xaxislayer=s.select(".overaxes-"+a).select("."+u),t.yaxislayer=s.select(".overaxes-"+o).select("."+d)}else if(i)t.xlines=yn(n,"path","xlines-above"),t.ylines=yn(n,"path","ylines-above"),t.xaxislayer=yn(n,"g","xaxislayer-above"),t.yaxislayer=yn(n,"g","yaxislayer-above");else{var f=yn(n,"g","layer-subplot");t.shapelayer=yn(f,"g","shapelayer"),t.imagelayer=yn(f,"g","imagelayer"),t.minorGridlayer=yn(n,"g","minor-gridlayer"),t.gridlayer=yn(n,"g","gridlayer"),t.zerolinelayer=yn(n,"g","zerolinelayer"),yn(n,"path","xlines-below"),yn(n,"path","ylines-below"),t.overlinesBelow=yn(n,"g","overlines-below"),yn(n,"g","xaxislayer-below"),yn(n,"g","yaxislayer-below"),t.overaxesBelow=yn(n,"g","overaxes-below"),t.plot=yn(n,"g","plot"),t.overplot=yn(n,"g","overplot"),t.xlines=yn(n,"path","xlines-above"),t.ylines=yn(n,"path","ylines-above"),t.overlinesAbove=yn(n,"g","overlines-above"),yn(n,"g","xaxislayer-above"),yn(n,"g","yaxislayer-above"),t.overaxesAbove=yn(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+a),t.ylines=n.select(".ylines-"+o),t.xaxislayer=n.select(".xaxislayer-"+a),t.yaxislayer=n.select(".yaxislayer-"+o)}i||(L0(t.minorGridlayer,"g",t.xaxis._id),L0(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(Kl.idSort),L0(t.gridlayer,"g",t.xaxis._id),L0(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(Kl.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function tI(e,t){if(e){var n={};e.each(function(s){var u=s[0],d=O0.select(this);d.remove(),nI(u,t),n[u]=!0});for(var r in t._plots)for(var a=t._plots[r],o=a.overlays||[],i=0;i<o.length;i++){var l=o[i];n[l.id]&&l.plot.selectAll(".trace").remove()}}}function nI(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}hr.toSVG=function(e){var t=e._fullLayout._glimages,n=O0.select(e).selectAll(".svg-container"),r=n.filter(function(o,i){return i===n.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function a(){var o=this,i=o.toDataURL("image/png"),l=t.append("svg:image");l.attr({xmlns:Fye.svg,"xlink:href":i,preserveAspectRatio:"none",x:0,y:0,width:o.style.width,height:o.style.height})}r.each(a)},hr.updateFx=S1.updateFx;var z0=Wa,rI={hasLines:z0.hasLines,hasMarkers:z0.hasMarkers,hasText:z0.hasText,isBubble:z0.isBubble,attributes:Qs,layoutAttributes:wx,supplyDefaults:c0e,crossTraceDefaults:h0e,supplyLayoutDefaults:y0e,calc:mF.calc,crossTraceCalc:j0e,arraysToCalcdata:iF,plot:J0e,colorbar:FF,formatLabels:IF,style:DF.style,styleOnSelect:DF.styleOnSelect,hoverPoints:lye,selectPoints:sye,animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:hr,categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}},Dye=$t,Pye=Kt,aI=WL,f2=Ge,Rye=f2.strScale,Nye=f2.strRotate,Bye=f2.strTranslate,jye=function(e,t,n){var r=e.node(),a=aI[n.arrowhead||0],o=aI[n.startarrowhead||0],i=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,u=t.indexOf("end")>=0,d=a.backoff*i+n.standoff,f=o.backoff*l+n.startstandoff,p,g,h,y;if(r.nodeName==="line"){p={x:+e.attr("x1"),y:+e.attr("y1")},g={x:+e.attr("x2"),y:+e.attr("y2")};var b=p.x-g.x,v=p.y-g.y;if(h=Math.atan2(v,b),y=h+Math.PI,d&&f&&d+f>Math.sqrt(b*b+v*v)){B();return}if(d){if(d*d>b*b+v*v){B();return}var x=d*Math.cos(h),k=d*Math.sin(h);g.x+=x,g.y+=k,e.attr({x2:g.x,y2:g.y})}if(f){if(f*f>b*b+v*v){B();return}var _=f*Math.cos(h),S=f*Math.sin(h);p.x-=_,p.y-=S,e.attr({x1:p.x,y1:p.y})}}else if(r.nodeName==="path"){var T=r.getTotalLength(),C="";if(T<d+f){B();return}var A=r.getPointAtLength(0),O=r.getPointAtLength(.1);h=Math.atan2(A.y-O.y,A.x-O.x),p=r.getPointAtLength(Math.min(f,T)),C="0px,"+f+"px,";var F=r.getPointAtLength(T),R=r.getPointAtLength(T-.1);y=Math.atan2(F.y-R.y,F.x-R.x),g=r.getPointAtLength(Math.max(0,T-d));var N=C?f+d:d;C+=T-N+"px,"+T+"px",e.style("stroke-dasharray",C)}function B(){e.style("stroke-dasharray","0px,100px")}function V(Z,G,I,P){Z.path&&(Z.noRotate&&(I=0),Dye.select(r.parentNode).append("path").attr({class:e.attr("class"),d:Z.path,transform:Bye(G.x,G.y)+Nye(I*180/Math.PI)+Rye(P)}).style({fill:Pye.rgb(n.arrowcolor),"stroke-width":0}))}s&&V(o,p,h,l),u&&V(a,g,y,i)},oI=$t,p2=Dt,Vye=wr,Yl=Ge,h2=Yl.strTranslate,vp=bn,$s=Kt,el=gn,iI=Xi,m2=Ir,g2=qs,bp=di,Hye=hn.arrayEditor,Uye=jye,y2={draw:qye,drawOne:lI,drawRaw:sI};function qye(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n<t.annotations.length;n++)t.annotations[n].visible&&lI(e,n);return Vye.previousPromises(e)}function lI(e,t){var n=e._fullLayout,r=n.annotations[t]||{},a=vp.getFromId(e,r.xref),o=vp.getFromId(e,r.yref);a&&a.setScale(),o&&o.setScale(),sI(e,r,t,!1,a,o)}function Jl(e,t,n,r,a){var o=a[n],i=a[n+"ref"],l=n.indexOf("y")!==-1,s=vp.getRefType(i)==="domain",u=l?r.h:r.w;return e?s?o+(l?-t:t)/e._length:e.p2r(e.r2p(o)+t):o+(l?-t:t)/u}function sI(e,t,n,r,a,o){var i=e._fullLayout,l=e._fullLayout._size,s=e._context.edits,u,d;r?(u="annotation-"+r,d=r+".annotations"):(u="annotation",d="annotations");var f=Hye(e.layout,d,t),p=f.modifyBase,g=f.modifyItem,h=f.getUpdateObj;i._infolayer.selectAll("."+u+'[data-index="'+n+'"]').remove();var y="clip"+i._uid+"_ann"+n;if(!t._input||t.visible===!1){oI.selectAll("#"+y).remove();return}var b={x:{},y:{}},v=+t.textangle||0,x=i._infolayer.append("g").classed(u,!0).attr("data-index",String(n)).style("opacity",t.opacity),k=x.append("g").classed("annotation-text-g",!0),_=s[t.showarrow?"annotationTail":"annotationPosition"],S=t.captureevents||s.annotationText||_;function T(z){var H={index:n,annotation:t._input,fullAnnotation:t,event:z};return r&&(H.subplotId=r),H}var C=k.append("g").style("pointer-events",S?"all":null).call(g2,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",T(oI.event))});t.hovertext&&C.on("mouseover",function(){var z=t.hoverlabel,H=z.font,j=this.getBoundingClientRect(),q=e.getBoundingClientRect();iI.loneHover({x0:j.left-q.left,x1:j.right-q.left,y:(j.top+j.bottom)/2-q.top,text:t.hovertext,color:z.bgcolor,borderColor:z.bordercolor,fontFamily:H.family,fontSize:H.size,fontColor:H.color},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:e})}).on("mouseout",function(){iI.loneUnhover(i._hoverlayer.node())});var A=t.borderwidth,O=t.borderpad,F=A+O,R=C.append("rect").attr("class","bg").style("stroke-width",A+"px").call($s.stroke,t.bordercolor).call($s.fill,t.bgcolor),N=t.width||t.height,B=i._topclips.selectAll("#"+y).data(N?[0]:[]);B.enter().append("clipPath").classed("annclip",!0).attr("id",y).append("rect"),B.exit().remove();var V=t.font,Z=i._meta?Yl.templateString(t.text,i._meta):t.text,G=C.append("text").classed("annotation-text",!0).text(Z);function I(z){return z.call(el.font,V).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),m2.convertToTspans(z,e,P),z}function P(){var z=G.selectAll("a");if(z.size()===1&&z.text()===G.text()){var H=C.insert("a",":first-child").attr({"xlink:xlink:href":z.attr("xlink:href"),"xlink:xlink:show":z.attr("xlink:show")}).style({cursor:"pointer"});H.node().appendChild(R.node())}var j=C.select(".annotation-text-math-group"),q=!j.empty(),$=el.bBox((q?j:G).node()),ne=$.width,te=$.height,ee=t.width||ne,se=t.height||te,U=Math.round(ee+2*F),Y=Math.round(se+2*F);function J(tt,pt){return pt==="auto"&&(tt<1/3?pt="left":tt>2/3?pt="right":pt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[pt]}for(var re=!1,oe=["x","y"],he=0;he<oe.length;he++){var ve=oe[he],ge=t[ve+"ref"]||ve,xe=t["a"+ve+"ref"],Le={x:a,y:o}[ve],Ue=(v+(ve==="x"?0:-90))*Math.PI/180,Pe=U*Math.cos(Ue),De=Y*Math.sin(Ue),je=Math.abs(Pe)+Math.abs(De),qe=t[ve+"anchor"],Ee=t[ve+"shift"]*(ve==="x"?1:-1),_e=b[ve],we,Re,Je,it,dt,at=vp.getRefType(ge);if(Le&&at!=="domain"){var lt=Le.r2fraction(t[ve]);(lt<0||lt>1)&&(xe===ge?(lt=Le.r2fraction(t["a"+ve]),(lt<0||lt>1)&&(re=!0)):re=!0),we=Le._offset+Le.r2p(t[ve]),it=.5}else{var He=at==="domain";ve==="x"?(Je=t[ve],we=He?Le._offset+Le._length*Je:we=l.l+l.w*Je):(Je=1-t[ve],we=He?Le._offset+Le._length*Je:we=l.t+l.h*Je),it=t.showarrow?.5:Je}if(t.showarrow){_e.head=we;var Be=t["a"+ve];if(dt=Pe*J(.5,t.xanchor)-De*J(.5,t.yanchor),xe===ge){var Ze=vp.getRefType(xe);Ze==="domain"?(ve==="y"&&(Be=1-Be),_e.tail=Le._offset+Le._length*Be):Ze==="paper"?ve==="y"?(Be=1-Be,_e.tail=l.t+l.h*Be):_e.tail=l.l+l.w*Be:_e.tail=Le._offset+Le.r2p(Be),Re=dt}else _e.tail=we+Be,Re=dt+Be;_e.text=_e.tail+dt;var Ye=i[ve==="x"?"width":"height"];if(ge==="paper"&&(_e.head=Yl.constrain(_e.head,1,Ye-1)),xe==="pixel"){var et=-Math.max(_e.tail-3,_e.text),st=Math.min(_e.tail+3,_e.text)-Ye;et>0?(_e.tail+=et,_e.text+=et):st>0&&(_e.tail-=st,_e.text-=st)}_e.tail+=Ee,_e.head+=Ee}else dt=je*J(it,qe),Re=dt,_e.text=we+dt;_e.text+=Ee,dt+=Ee,Re+=Ee,t["_"+ve+"padplus"]=je/2+Re,t["_"+ve+"padminus"]=je/2-Re,t["_"+ve+"size"]=je,t["_"+ve+"shift"]=dt}if(re){C.remove();return}var nt=0,gt=0;if(t.align!=="left"&&(nt=(ee-ne)*(t.align==="center"?.5:1)),t.valign!=="top"&&(gt=(se-te)*(t.valign==="middle"?.5:1)),q)j.select("svg").attr({x:F+nt-1,y:F+gt}).call(el.setClipUrl,N?y:null,e);else{var Ve=F+gt-$.top,rt=F+nt-$.left;G.call(m2.positionText,rt,Ve).call(el.setClipUrl,N?y:null,e)}B.select("rect").call(el.setRect,F,F,ee,se),R.call(el.setRect,A/2,A/2,U-A,Y-A),C.call(el.setTranslate,Math.round(b.x.text-U/2),Math.round(b.y.text-Y/2)),k.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var ft=function(tt,pt){x.selectAll(".annotation-arrow-g").remove();var Ke=b.x.head,Ot=b.y.head,X=b.x.tail+tt,ue=b.y.tail+pt,de=b.x.text+tt,ce=b.y.text+pt,Oe=Yl.rotationXYMatrix(v,de,ce),Te=Yl.apply2DTransform(Oe),We=Yl.apply2DTransform2(Oe),ie=+R.attr("width"),fe=+R.attr("height"),be=de-.5*ie,Ne=be+ie,$e=ce-.5*fe,ot=$e+fe,St=[[be,$e,be,ot],[be,ot,Ne,ot],[Ne,ot,Ne,$e],[Ne,$e,be,$e]].map(We);if(!St.reduce(function(Lt,jt){return Lt^!!Yl.segmentsIntersect(Ke,Ot,Ke+1e6,Ot+1e6,jt[0],jt[1],jt[2],jt[3])},!1)){St.forEach(function(Lt){var jt=Yl.segmentsIntersect(X,ue,Ke,Ot,Lt[0],Lt[1],Lt[2],Lt[3]);jt&&(X=jt.x,ue=jt.y)});var Et=t.arrowwidth,_t=t.arrowcolor,kt=t.arrowside,Jt=x.append("g").style({opacity:$s.opacity(_t)}).classed("annotation-arrow-g",!0),Rt=Jt.append("path").attr("d","M"+X+","+ue+"L"+Ke+","+Ot).style("stroke-width",Et+"px").call($s.stroke,$s.rgb(_t));if(Uye(Rt,kt,t),s.annotationPosition&&Rt.node().parentNode&&!r){var xt=Ke,qt=Ot;if(t.standoff){var Wt=Math.sqrt(Math.pow(Ke-X,2)+Math.pow(Ot-ue,2));xt+=t.standoff*(X-Ke)/Wt,qt+=t.standoff*(ue-Ot)/Wt}var It=Jt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(X-xt)+","+(ue-qt),transform:h2(xt,qt)}).style("stroke-width",Et+6+"px").call($s.stroke,"rgba(0,0,0,0)").call($s.fill,"rgba(0,0,0,0)"),Ft,Tt;bp.init({element:It.node(),gd:e,prepFn:function(){var Lt=el.getTranslate(C);Ft=Lt.x,Tt=Lt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(Lt,jt){var rn=Te(Ft,Tt),At=rn[0]+Lt,Qt=rn[1]+jt;C.call(el.setTranslate,At,Qt),g("x",Jl(a,Lt,"x",l,t)),g("y",Jl(o,jt,"y",l,t)),t.axref===t.xref&&g("ax",Jl(a,Lt,"ax",l,t)),t.ayref===t.yref&&g("ay",Jl(o,jt,"ay",l,t)),Jt.attr("transform",h2(Lt,jt)),k.attr({transform:"rotate("+v+","+At+","+Qt+")"})},doneFn:function(){p2.call("_guiRelayout",e,h());var Lt=document.querySelector(".js-notes-box-panel");Lt&&Lt.redraw(Lt.selectedObj)}})}}};if(t.showarrow&&ft(0,0),_){var wt;bp.init({element:C.node(),gd:e,prepFn:function(){wt=k.attr("transform")},moveFn:function(tt,pt){var Ke="pointer";if(t.showarrow)t.axref===t.xref?g("ax",Jl(a,tt,"ax",l,t)):g("ax",t.ax+tt),t.ayref===t.yref?g("ay",Jl(o,pt,"ay",l.w,t)):g("ay",t.ay+pt),ft(tt,pt);else{if(r)return;var Ot,X;if(a)Ot=Jl(a,tt,"x",l,t);else{var ue=t._xsize/l.w,de=t.x+(t._xshift-t.xshift)/l.w-ue/2;Ot=bp.align(de+tt/l.w,ue,0,1,t.xanchor)}if(o)X=Jl(o,pt,"y",l,t);else{var ce=t._ysize/l.h,Oe=t.y-(t._yshift+t.yshift)/l.h-ce/2;X=bp.align(Oe-pt/l.h,ce,0,1,t.yanchor)}g("x",Ot),g("y",X),(!a||!o)&&(Ke=bp.getCursor(a?.5:Ot,o?.5:X,t.xanchor,t.yanchor))}k.attr({transform:h2(tt,pt)+wt}),g2(C,Ke)},clickFn:function(tt,pt){t.captureevents&&e.emit("plotly_clickannotation",T(pt))},doneFn:function(){g2(C),p2.call("_guiRelayout",e,h());var tt=document.querySelector(".js-notes-box-panel");tt&&tt.redraw(tt.selectedObj)}})}}s.annotationText?G.call(m2.makeEditable,{delegate:C,gd:e}).call(I).on("edit",function(z){t.text=z,this.call(I),g("text",z),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),p2.call("_guiRelayout",e,h())}):G.call(I)}var cI=Ge,Wye=Dt,uI=hn.arrayEditor,Gye={hasClickToShow:Zye,onClick:Kye};function Zye(e,t){var n=dI(e,t);return n.on.length>0||n.explicitOff.length>0}function Kye(e,t){var n=dI(e,t),r=n.on,a=n.off.concat(n.explicitOff),o={},i=e._fullLayout.annotations,l,s;if(r.length||a.length){for(l=0;l<r.length;l++)s=uI(e.layout,"annotations",i[r[l]]),s.modifyItem("visible",!0),cI.extendFlat(o,s.getUpdateObj());for(l=0;l<a.length;l++)s=uI(e.layout,"annotations",i[a[l]]),s.modifyItem("visible",!1),cI.extendFlat(o,s.getUpdateObj());return Wye.call("update",e,{},o)}}function dI(e,t){var n=e._fullLayout.annotations,r=[],a=[],o=[],i=(t||[]).length,l,s,u,d,f,p,g,h;for(l=0;l<n.length;l++)if(u=n[l],d=u.clicktoshow,d){for(s=0;s<i;s++)if(f=t[s],p=f.xaxis,g=f.yaxis,p._id===u.xref&&g._id===u.yref&&p.d2r(f.x)===fI(u._xclick,p)&&g.d2r(f.y)===fI(u._yclick,g)){u.visible?d==="onout"?h=a:h=o:h=r,h.push(l);break}s===i&&u.visible&&d==="onout"&&a.push(l)}return{on:r,off:a,explicitOff:o}}function fI(e,t){return t.type==="log"?t.l2r(e):t.d2r(e)}var pI=Ge,Vu=Kt,hI=function(e,t,n,r){r("opacity");var a=r("bgcolor"),o=r("bordercolor"),i=Vu.opacity(o);r("borderpad");var l=r("borderwidth"),s=r("showarrow");r("text",s?" ":n._dfltTitle.annotation),r("textangle"),pI.coerceFont(r,"font",n.font),r("width"),r("align");var u=r("height");if(u&&r("valign"),s){var d=r("arrowside"),f,p;d.indexOf("end")!==-1&&(f=r("arrowhead"),p=r("arrowsize")),d.indexOf("start")!==-1&&(r("startarrowhead",f),r("startarrowsize",p)),r("arrowcolor",i?t.bordercolor:Vu.defaultLine),r("arrowwidth",(i&&l||1)*2),r("standoff"),r("startstandoff")}var g=r("hovertext"),h=n.hoverlabel||{};if(g){var y=r("hoverlabel.bgcolor",h.bgcolor||(Vu.opacity(a)?Vu.rgb(a):Vu.defaultLine)),b=r("hoverlabel.bordercolor",h.bordercolor||Vu.contrast(y));pI.coerceFont(r,"hoverlabel.font",{family:h.font.family,size:h.font.size,color:h.font.color||b})}r("captureevents",!!g)},v2=Ge,ec=bn,Yye=li,Jye=hI,Qye=np,Xye=function(e,t){Yye(e,t,{name:"annotations",handleItemDefaults:$ye})};function $ye(e,t,n){function r(k,_){return v2.coerce(e,t,Qye,k,_)}var a=r("visible"),o=r("clicktoshow");if(a||o){Jye(e,t,n,r);for(var i=t.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:n},d=0;d<2;d++){var f=l[d],p=ec.coerceRef(e,t,u,f,"","paper");if(p!=="paper"){var g=ec.getFromId(u,p);g._annIndices.push(t._index)}if(ec.coercePosition(t,u,r,p,f,.5),i){var h="a"+f,y=ec.coerceRef(e,t,u,h,"pixel",["pixel","paper"]);y!=="pixel"&&y!==p&&(y=t[h]="pixel");var b=y==="pixel"?s[d]:.4;ec.coercePosition(t,u,r,y,h,b)}r(f+"anchor"),r(f+"shift")}if(v2.noneOrAll(e,t,["x","y"]),i&&v2.noneOrAll(e,t,["ax","ay"]),o){var v=r("xclick"),x=r("yclick");t._xclick=v===void 0?t.x:ec.cleanPosition(v,u,t.xref),t._yclick=x===void 0?t.y:ec.cleanPosition(x,u,t.yref)}}}var b2=Ge,tc=bn,eve=y2.draw,tve=function(e){var t=e._fullLayout,n=b2.filterVisible(t.annotations);if(n.length&&e._fullData.length)return b2.syncOrAsync([eve,nve],e)};function nve(e){var t=e._fullLayout;b2.filterVisible(t.annotations).forEach(function(n){var r=tc.getFromId(e,n.xref),a=tc.getFromId(e,n.yref),o=tc.getRefType(n.xref),i=tc.getRefType(n.yref);n._extremes={},o==="range"&&mI(n,r),i==="range"&&mI(n,a)})}function mI(e,t){var n=t._id,r=n.charAt(0),a=e[r],o=e["a"+r],i=e[r+"ref"],l=e["a"+r+"ref"],s=e["_"+r+"padplus"],u=e["_"+r+"padminus"],d={x:1,y:-1}[r]*e[r+"shift"],f=3*e.arrowsize*e.arrowwidth||0,p=f+d,g=f-d,h=3*e.startarrowsize*e.arrowwidth||0,y=h+d,b=h-d,v;if(l===i){var x=tc.findExtremes(t,[t.r2c(a)],{ppadplus:p,ppadminus:g}),k=tc.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,b)});v={min:[x.min[0],k.min[0]],max:[x.max[0],k.max[0]]}}else y=o?y+o:y,b=o?b-o:b,v=tc.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(s,p,y),ppadminus:Math.max(u,g,b)});e._extremes[n]=v}var rve=en,ave=Wb,ove=function(e,t,n,r){t=t||{};var a=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(a||o))return;var i=e._fullLayout.annotations,l=t._id.charAt(0),s,u;function d(p){var g=s[p],h=null;a?h=ave(g,t.range):h=Math.pow(10,g),rve(h)||(h=null),r(u+p,h)}for(var f=0;f<i.length;f++)s=i[f],u="annotations["+f+"].",s[l+"ref"]===t._id&&d(l),s["a"+l+"ref"]===t._id&&d("a"+l)},x2=y2,gI=Gye,ive={moduleType:"component",name:"annotations",layoutAttributes:np,supplyLayoutDefaults:Xye,includeBasePlot:p0("annotations"),calcAutorange:tve,draw:x2.draw,drawOne:x2.drawOne,drawRaw:x2.drawRaw,hasClickToShow:gI.hasClickToShow,onClick:gI.onClick,convertCoords:ove},Tn=np,lve=Gi.overrideAll,sve=hn.templatedArray,w2=lve(sve("annotation",{visible:Tn.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:Tn.xanchor,xshift:Tn.xshift,yanchor:Tn.yanchor,yshift:Tn.yshift,text:Tn.text,textangle:Tn.textangle,font:Tn.font,width:Tn.width,height:Tn.height,opacity:Tn.opacity,align:Tn.align,valign:Tn.valign,bgcolor:Tn.bgcolor,bordercolor:Tn.bordercolor,borderpad:Tn.borderpad,borderwidth:Tn.borderwidth,showarrow:Tn.showarrow,arrowcolor:Tn.arrowcolor,arrowhead:Tn.arrowhead,startarrowhead:Tn.startarrowhead,arrowside:Tn.arrowside,arrowsize:Tn.arrowsize,startarrowsize:Tn.startarrowsize,arrowwidth:Tn.arrowwidth,standoff:Tn.standoff,startstandoff:Tn.startstandoff,hovertext:Tn.hovertext,hoverlabel:Tn.hoverlabel,captureevents:Tn.captureevents}),"calc","from-root"),_2=Ge,cve=bn,uve=li,dve=hI,fve=w2,pve=function(e,t,n){uve(e,t,{name:"annotations",handleItemDefaults:hve,fullLayout:n.fullLayout})};function hve(e,t,n,r){function a(l,s){return _2.coerce(e,t,fve,l,s)}function o(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=n[s],cve.coercePosition(t,u,a,l,l,.5)}var i=a("visible");i&&(dve(e,t,r.fullLayout,a),o("x"),o("y"),o("z"),_2.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),_2.noneOrAll(e,t,["ax","ay"])))}var yI=Ge,vI=bn,mve=function(e){for(var t=e.fullSceneLayout,n=t.annotations,r=0;r<n.length;r++)gve(n[r],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()};function gve(e,t){var n=t.fullSceneLayout,r=n.domain,a=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},yI.extendFlat(e._xa,o),vI.setConvert(e._xa),e._xa._offset=a.l+r.x[0]*a.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*a.w*(r.x[1]-r.x[0])},e._ya={},yI.extendFlat(e._ya,o),vI.setConvert(e._ya),e._ya._offset=a.t+(1-r.y[1])*a.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*a.h*(r.y[1]-r.y[0])}}function k2(e,t){var n=[0,0,0,0],r,a;for(r=0;r<4;++r)for(a=0;a<4;++a)n[a]+=e[4*r+a]*t[r];return n}function yve(e,t){var n=k2(e.projection,k2(e.view,k2(e.model,[t[0],t[1],t[2],1])));return n}var vve=yve,bve=y2.drawRaw,xve=vve,wve=["x","y","z"],_ve=function(e){for(var t=e.fullSceneLayout,n=e.dataScale,r=t.annotations,a=0;a<r.length;a++){for(var o=r[a],i=!1,l=0;l<3;l++){var s=wve[l],u=o[s],d=t[s+"axis"],f=d.r2fraction(u);if(f<0||f>1){i=!0;break}}i?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+a+'"]').remove():(o._pdata=xve(e.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),bve(e.graphDiv,o,a,e.id,o._xa,o._ya))}},kve=Dt,bI=Ge,Tve={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:w2}}},layoutAttributes:w2,handleDefaults:pve,includeBasePlot:Sve,convert:mve,draw:_ve};function Sve(e,t){var n=kve.subplotsRegistry.gl3d;if(n)for(var r=n.attrRegex,a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];r.test(i)&&(e[i].annotations||[]).length&&(bI.pushUnique(t._basePlotModules,n),bI.pushUnique(t._subplots.gl3d,i))}}var xI=np,wI=Fr,_I=Qs.line,Ave=ni.dash,zo=Zn.extendFlat,Mve=hn.templatedArray,kI=s0,Hu=ti,Cve=So.shapeTexttemplateAttrs,Ove=nx,TI=Mve("shape",{visible:zo({},Hu.visible,{editType:"calc+arraydraw",description:["Determines whether or not this shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether or not this","shape is shown in the legend."].join(" ")},legend:zo({},Hu.legend,{editType:"calc+arraydraw",description:["Sets the reference to a legend to show this shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:zo({},Hu.legendgroup,{editType:"calc+arraydraw",description:["Sets the legend group for this shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:zo({},Hu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:wI({editType:"calc+arraydraw",description:["Sets this legend group's title font."].join(" ")}),editType:"calc+arraydraw"},legendrank:zo({},Hu.legendrank,{editType:"calc+arraydraw",description:["Sets the legend rank for this shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")}),legendwidth:zo({},Hu.legendwidth,{editType:"calc+arraydraw",description:"Sets the width (in px or fraction) of the legend for this shape."}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:zo({},xI.xref,{description:["Sets the shape's x coordinate axis.",kI.axisRefDescription("x","left","right")].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:zo({},xI.yref,{description:["Sets the shape's y coordinate axis.",kI.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:zo({},_I.color,{editType:"arraydraw"}),width:zo({},_I.width,{editType:"calc+arraydraw"}),dash:zo({},Ave,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},label:{text:{valType:"string",dflt:"",editType:"arraydraw",description:["Sets the text to display with shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:Cve({},{keys:Object.keys(Ove)}),font:wI({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the shape label text font."}),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",description:["Sets the position of the label text relative to the shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw",description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw",description:"Sets padding (in px) between edge of label and edge of shape."},editType:"arraydraw"},editType:"arraydraw"}),xp=Ge,Uu=bn,Eve=li,Lve=TI,SI=Vl,zve=function(e,t){Eve(e,t,{name:"shapes",handleItemDefaults:Ive})};function Fve(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Ive(e,t,n){function r(z,H){return xp.coerce(e,t,Lve,z,H)}t._isShape=!0;var a=r("visible");if(a){var o=r("showlegend");o&&(r("legend"),r("legendwidth"),r("legendgroup"),r("legendgrouptitle.text"),xp.coerceFont(r,"legendgrouptitle.font"),r("legendrank"));var i=r("path"),l=i?"path":"rect",s=r("type",l),u=s!=="path";u&&delete t.path,r("editable"),r("layer"),r("opacity"),r("fillcolor"),r("fillrule");var d=r("line.width");d&&(r("line.color"),r("line.dash"));for(var f=r("xsizemode"),p=r("ysizemode"),g=["x","y"],h=0;h<2;h++){var y=g[h],b=y+"anchor",v=y==="x"?f:p,x={_fullLayout:n},k,_,S,T=Uu.coerceRef(e,t,x,y,void 0,"paper"),C=Uu.getRefType(T);if(C==="range"?(k=Uu.getFromId(x,T),k._shapeIndices.push(t._index),S=SI.rangeToShapePosition(k),_=SI.shapePositionToRange(k)):_=S=xp.identity,u){var A=.25,O=.75,F=y+"0",R=y+"1",N=e[F],B=e[R];e[F]=_(e[F],!0),e[R]=_(e[R],!0),v==="pixel"?(r(F,0),r(R,10)):(Uu.coercePosition(t,x,r,T,F,A),Uu.coercePosition(t,x,r,T,R,O)),t[F]=S(t[F]),t[R]=S(t[R]),e[F]=N,e[R]=B}if(v==="pixel"){var V=e[b];e[b]=_(e[b],!0),Uu.coercePosition(t,x,r,T,b,.25),t[b]=S(t[b]),e[b]=V}}u&&xp.noneOrAll(e,t,["x0","x1","y0","y1"]);var Z=s==="line",G,I;if(u&&(G=r("label.texttemplate")),G||(I=r("label.text")),I||G){r("label.textangle");var P=r("label.textposition",Z?"middle":"middle center");r("label.xanchor"),r("label.yanchor",Fve(Z,P)),r("label.padding"),xp.coerceFont(r,"label.font",n.font)}}}var Dve=Kt,AI=Ge;function Pve(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}var Rve=function(e,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),AI.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var r=n("newshape.line.width");if(r){var a=(e||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Dve.contrast(a)),n("newshape.line.dash")}var o=e.dragmode==="drawline",i=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(i||l){n("newshape.label.textangle");var s=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Pve(o,s)),n("newshape.label.padding"),AI.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")},T2=Ge,qu=bn,Wu=Wg,MI=Vl,Nve=function(e){var t=e._fullLayout,n=T2.filterVisible(t.shapes);if(!(!n.length||!e._fullData.length))for(var r=0;r<n.length;r++){var a=n[r];a._extremes={};var o,i,l=qu.getRefType(a.xref),s=qu.getRefType(a.yref);if(a.xref!=="paper"&&l!=="domain"){var u=a.xsizemode==="pixel"?a.xanchor:a.x0,d=a.xsizemode==="pixel"?a.xanchor:a.x1;o=qu.getFromId(e,a.xref),i=OI(o,u,d,a.path,Wu.paramIsX),i&&(a._extremes[o._id]=qu.findExtremes(o,i,Bve(a)))}if(a.yref!=="paper"&&s!=="domain"){var f=a.ysizemode==="pixel"?a.yanchor:a.y0,p=a.ysizemode==="pixel"?a.yanchor:a.y1;o=qu.getFromId(e,a.yref),i=OI(o,f,p,a.path,Wu.paramIsY),i&&(a._extremes[o._id]=qu.findExtremes(o,i,jve(a)))}}};function Bve(e){return CI(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function jve(e){return CI(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function CI(e,t,n,r,a,o){var i=e/2,l=o;if(t==="pixel"){var s=a?MI.extractPathCoords(a,o?Wu.paramIsY:Wu.paramIsX):[n,r],u=T2.aggNums(Math.max,null,s),d=T2.aggNums(Math.min,null,s),f=d<0?Math.abs(d)+i:i,p=u>0?u+i:i;return{ppad:i,ppadplus:l?f:p,ppadminus:l?p:f}}else return{ppad:i}}function OI(e,t,n,r,a){var o=e.type==="category"||e.type==="multicategory"?e.r2c:e.d2c;if(t!==void 0)return[o(t),o(n)];if(r){var i=1/0,l=-1/0,s=r.match(Wu.segmentRE),u,d,f,p,g;for(e.type==="date"&&(o=MI.decodeDate(o)),u=0;u<s.length;u++)d=s[u],f=a[d.charAt(0)].drawn,f!==void 0&&(p=s[u].substr(1).match(Wu.paramRE),!(!p||p.length<f)&&(g=o(p[f]),g<i&&(i=g),g>l&&(l=g)));if(l>=i)return[i,l]}}var EI=aw,Vve={moduleType:"component",name:"shapes",layoutAttributes:TI,supplyLayoutDefaults:zve,supplyDrawNewShapeDefaults:Rve,includeBasePlot:p0("shapes"),calcAutorange:Nve,draw:EI.draw,drawOne:EI.drawOne},LI=Jr,Hve=hn.templatedArray,zI=s0,FI=Hve("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",LI.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",zI.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",LI.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",zI.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"}),Uve=Ge,S2=bn,qve=li,Wve=FI,Gve="images",Zve=function(e,t){var n={name:Gve,handleItemDefaults:Kve};qve(e,t,n)};function Kve(e,t,n){function r(p,g){return Uve.coerce(e,t,Wve,p,g)}var a=r("source"),o=r("visible",!!a);if(!o)return t;r("layer"),r("xanchor"),r("yanchor"),r("sizex"),r("sizey"),r("sizing"),r("opacity");for(var i={_fullLayout:n},l=["x","y"],s=0;s<2;s++){var u=l[s],d=S2.coerceRef(e,t,i,u,"paper",void 0);if(d!=="paper"){var f=S2.getFromId(i,d);f._imgIndices.push(t._index)}S2.coercePosition(t,i,r,d,u,0)}return t}var II=$t,Yve=gn,Gu=bn,DI=dr,Jve=Ll,Qve=function(e){var t=e._fullLayout,n=[],r={},a=[],o,i;for(i=0;i<t.images.length;i++){var l=t.images[i];if(l.visible)if(l.layer==="below"&&l.xref!=="paper"&&l.yref!=="paper"){o=DI.ref2id(l.xref)+DI.ref2id(l.yref);var s=t._plots[o];if(!s){a.push(l);continue}s.mainplot&&(o=s.mainplot.id),r[o]||(r[o]=[]),r[o].push(l)}else l.layer==="above"?n.push(l):a.push(l)}var u={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function d(v){var x=II.select(this);if(this._imgSrc!==v.source)if(x.attr("xmlns",Jve.svg),v.source&&v.source.slice(0,5)==="data:")x.attr("xlink:href",v.source),this._imgSrc=v.source;else{var k=new Promise((function(_){var S=new Image;this.img=S,S.setAttribute("crossOrigin","anonymous"),S.onerror=T,S.onload=function(){var C=document.createElement("canvas");C.width=this.width,C.height=this.height;var A=C.getContext("2d",{willReadFrequently:!0});A.drawImage(this,0,0);var O=C.toDataURL("image/png");x.attr("xlink:href",O),_()},x.on("error",T),S.src=v.source,this._imgSrc=v.source;function T(){x.remove(),_()}}).bind(this));e._promises.push(k)}}function f(v){var x=II.select(this),k=Gu.getFromId(e,v.xref),_=Gu.getFromId(e,v.yref),S=Gu.getRefType(v.xref)==="domain",T=Gu.getRefType(v.yref)==="domain",C=t._size,A,O;k!==void 0?A=typeof v.xref=="string"&&S?k._length*v.sizex:Math.abs(k.l2p(v.sizex)-k.l2p(0)):A=v.sizex*C.w,_!==void 0?O=typeof v.yref=="string"&&T?_._length*v.sizey:Math.abs(_.l2p(v.sizey)-_.l2p(0)):O=v.sizey*C.h;var F=A*u.x[v.xanchor].offset,R=O*u.y[v.yanchor].offset,N=u.x[v.xanchor].sizing+u.y[v.yanchor].sizing,B,V;switch(k!==void 0?B=typeof v.xref=="string"&&S?k._length*v.x+k._offset:k.r2p(v.x)+k._offset:B=v.x*C.w+C.l,B+=F,_!==void 0?V=typeof v.yref=="string"&&T?_._length*(1-v.y)+_._offset:_.r2p(v.y)+_._offset:V=C.h-v.y*C.h+C.t,V+=R,v.sizing){case"fill":N+=" slice";break;case"stretch":N="none";break}x.attr({x:B,y:V,width:A,height:O,preserveAspectRatio:N,opacity:v.opacity});var Z=k&&Gu.getRefType(v.xref)!=="domain"?k._id:"",G=_&&Gu.getRefType(v.yref)!=="domain"?_._id:"",I=Z+G;Yve.setClipUrl(x,I?"clip"+t._uid+I:null,e)}var p=t._imageLowerLayer.selectAll("image").data(a),g=t._imageUpperLayer.selectAll("image").data(n);p.enter().append("image"),g.enter().append("image"),p.exit().remove(),g.exit().remove(),p.each(function(v){d.bind(this)(v),f.bind(this)(v)}),g.each(function(v){d.bind(this)(v),f.bind(this)(v)});var h=Object.keys(t._plots);for(i=0;i<h.length;i++){o=h[i];var y=t._plots[o];if(y.imagelayer){var b=y.imagelayer.selectAll("image").data(r[o]||[]);b.enter().append("image"),b.exit().remove(),b.each(function(v){d.bind(this)(v),f.bind(this)(v)})}}},PI=en,Xve=Wb,$ve=function(e,t,n,r){t=t||{};var a=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(a||o){for(var i=e._fullLayout.images,l=t._id.charAt(0),s,u,d=0;d<i.length;d++)if(s=i[d],u="images["+d+"].",s[l+"ref"]===t._id){var f=s[l],p=s["size"+l],g=null,h=null;if(a){g=Xve(f,t.range);var y=p/Math.pow(10,g)/2;h=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else g=Math.pow(10,f),h=g*(Math.pow(10,p/2)-Math.pow(10,-p/2));PI(g)?PI(h)||(h=null):(g=null,h=null),r(u+l,g),r(u+"size"+l,h)}}},ebe={moduleType:"component",name:"images",layoutAttributes:FI,supplyLayoutDefaults:Zve,includeBasePlot:p0("images"),draw:Qve,convertCoords:$ve},A2={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}},tbe=Fr,nbe=ca,rbe=Zn.extendFlat,abe=Gi.overrideAll,obe=rx,RI=hn.templatedArray,ibe=RI("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}}),NI=abe(RI("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:ibe,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:rbe(obe({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:tbe({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:nbe.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root"),F0=Ge,BI=li,jI=NI,lbe=A2,sbe=lbe.name,cbe=jI.buttons,ube=function(e,t){var n={name:sbe,handleItemDefaults:dbe};BI(e,t,n)};function dbe(e,t,n){function r(i,l){return F0.coerce(e,t,jI,i,l)}var a=BI(e,t,{name:"buttons",handleItemDefaults:fbe}),o=r("visible",a.length>0);o&&(r("active"),r("direction"),r("type"),r("showactive"),r("x"),r("y"),F0.noneOrAll(e,t,["x","y"]),r("xanchor"),r("yanchor"),r("pad.t"),r("pad.r"),r("pad.b"),r("pad.l"),F0.coerceFont(r,"font",n.font),r("bgcolor",n.paper_bgcolor),r("bordercolor"),r("borderwidth"))}function fbe(e,t){function n(a,o){return F0.coerce(e,t,cbe,a,o)}var r=n("visible",e.method==="skip"||Array.isArray(e.args));r&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}var pbe=Fn,Fo=$t,VI=Kt,Zu=gn,I0=Ge;function Fn(e,t,n){this.gd=e,this.container=t,this.id=n,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})}Fn.barWidth=2,Fn.barLength=20,Fn.barRadius=2,Fn.barPad=1,Fn.barColor="#808BA4",Fn.prototype.enable=function(e,t,n){var r=this.gd._fullLayout,a=r.width,o=r.height;this.position=e;var i=this.position.l,l=this.position.w,s=this.position.t,u=this.position.h,d=this.position.direction,f=d==="down",p=d==="left",g=d==="right",h=d==="up",y=l,b=u,v,x,k,_;!f&&!p&&!g&&!h&&(this.position.direction="down",f=!0);var S=f||h;S?(v=i,x=v+y,f?(k=s,_=Math.min(k+b,o),b=_-k):(_=s+b,k=Math.max(_-b,0),b=_-k)):(k=s,_=k+b,p?(x=i+y,v=Math.max(x-y,0),y=x-v):(v=i,x=Math.min(v+y,a),y=x-v)),this._box={l:v,t:k,w:y,h:b};var T=l>y,C=Fn.barLength+2*Fn.barPad,A=Fn.barWidth+2*Fn.barPad,O=i,F=s+u;F+A>o&&(F=o-A);var R=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(VI.fill,Fn.barColor),T?(this.hbar=R.attr({rx:Fn.barRadius,ry:Fn.barRadius,x:O,y:F,width:C,height:A}),this._hbarXMin=O+C/2,this._hbarTranslateMax=y-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var N=u>b,B=Fn.barWidth+2*Fn.barPad,V=Fn.barLength+2*Fn.barPad,Z=i+l,G=s;Z+B>a&&(Z=a-B);var I=this.container.selectAll("rect.scrollbar-vertical").data(N?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-vertical",!0).call(VI.fill,Fn.barColor),N?(this.vbar=I.attr({rx:Fn.barRadius,ry:Fn.barRadius,x:Z,y:G,width:B,height:V}),this._vbarYMin=G+V/2,this._vbarTranslateMax=b-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,z=v-.5,H=N?x+B+.5:x+.5,j=k-.5,q=T?_+A+.5:_+.5,$=r._topdefs.selectAll("#"+P).data(T||N?[0]:[]);if($.exit().remove(),$.enter().append("clipPath").attr("id",P).append("rect"),T||N?(this._clipRect=$.select("rect").attr({x:Math.floor(z),y:Math.floor(j),width:Math.ceil(H)-Math.floor(z),height:Math.ceil(q)-Math.floor(j)}),this.container.call(Zu.setClipUrl,P,this.gd),this.bg.attr({x:i,y:s,width:l,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Zu.setClipUrl,null),delete this._clipRect),T||N){var ne=Fo.behavior.drag().on("dragstart",function(){Fo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var te=Fo.behavior.drag().on("dragstart",function(){Fo.event.sourceEvent.preventDefault(),Fo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(te),N&&this.vbar.on(".drag",null).call(te)}this.setTranslate(t,n)},Fn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Zu.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)},Fn.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=Fo.event.dx),this.vbar&&(t-=Fo.event.dy),this.setTranslate(e,t)},Fn.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=Fo.event.deltaY),this.vbar&&(t+=Fo.event.deltaY),this.setTranslate(e,t)},Fn.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,r=n+this._hbarTranslateMax,a=I0.constrain(Fo.event.x,n,r),o=(a-n)/(r-n),i=this.position.w-this._box.w;e=o*i}if(this.vbar){var l=t+this._vbarYMin,s=l+this._vbarTranslateMax,u=I0.constrain(Fo.event.y,l,s),d=(u-l)/(s-l),f=this.position.h-this._box.h;t=d*f}this.setTranslate(e,t)},Fn.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=I0.constrain(e||0,0,n),t=I0.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(Zu.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/n;this.hbar.call(Zu.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var o=t/r;this.vbar.call(Zu.setTranslate,e,t+o*this._vbarTranslateMax)}};var Ku=$t,wp=wr,_p=Kt,Yu=gn,Oa=Ge,D0=Ir,hbe=hn.arrayEditor,HI=Br.LINE_SPACING,Pt=A2,mbe=pbe,gbe=function(e){var t=e._fullLayout,n=Oa.filterVisible(t[Pt.name]);function r(f){wp.autoMargin(e,KI(f))}var a=t._menulayer.selectAll("g."+Pt.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Pt.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){Ku.select(this).selectAll("g."+Pt.headerGroupClassName).each(r)}).remove(),n.length!==0){var o=a.selectAll("g."+Pt.headerGroupClassName).data(n,ybe);o.enter().append("g").classed(Pt.headerGroupClassName,!0);for(var i=Oa.ensureSingle(a,"g",Pt.dropdownButtonGroupClassName,function(f){f.style("pointer-events","all")}),l=0;l<n.length;l++){var s=n[l];kbe(e,s)}var u="updatemenus"+t._uid,d=new mbe(e,i,u);o.enter().size()&&(i.node().parentNode.appendChild(i.node()),i.call(O2)),o.exit().each(function(f){i.call(O2),r(f)}).remove(),o.each(function(f){var p=Ku.select(this),g=f.type==="dropdown"?i:null;wp.manageCommandObserver(e,f,f.buttons,function(h){M2(e,f,f.buttons[h.index],p,g,d,h.index,!0)}),f.type==="dropdown"?(qI(e,p,i,d,f),UI(i,f)&&kp(e,p,i,d,f)):kp(e,p,null,null,f)})}};function ybe(e){return e._index}function vbe(e){return+e.attr(Pt.menuIndexAttrName)==-1}function UI(e,t){return+e.attr(Pt.menuIndexAttrName)===t._index}function M2(e,t,n,r,a,o,i,l){t.active=i,hbe(e.layout,Pt.name,t).applyUpdate("active",i),t.type==="buttons"?kp(e,r,null,null,t):t.type==="dropdown"&&(a.attr(Pt.menuIndexAttrName,"-1"),qI(e,r,a,o,t),l||kp(e,r,a,o,t))}function qI(e,t,n,r,a){var o=Oa.ensureSingle(t,"g",Pt.headerClassName,function(p){p.style("pointer-events","all")}),i=a._dims,l=a.active,s=a.buttons[l]||Pt.blankHeaderOpts,u={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},d={width:i.headerWidth,height:i.headerHeight};o.call(C2,a,s,e).call(YI,a,u,d);var f=Oa.ensureSingle(t,"text",Pt.headerArrowClassName,function(p){p.attr("text-anchor","end").call(Yu.font,a.font).text(Pt.arrowSymbol[a.direction])});f.attr({x:i.headerWidth-Pt.arrowOffsetX+a.pad.l,y:i.headerHeight/2+Pt.textOffsetY+a.pad.t}),o.on("click",function(){n.call(O2,String(UI(n,a)?-1:a._index)),kp(e,t,n,r,a)}),o.on("mouseover",function(){o.call(GI)}),o.on("mouseout",function(){o.call(ZI,a)}),Yu.setTranslate(t,i.lx,i.ly)}function kp(e,t,n,r,a){n||(n=t,n.attr("pointer-events","all"));var o=!vbe(n)||a.type==="buttons"?a.buttons:[],i=a.type==="dropdown"?Pt.dropdownButtonClassName:Pt.buttonClassName,l=n.selectAll("g."+i).data(Oa.filterVisible(o)),s=l.enter().append("g").classed(i,!0),u=l.exit();a.type==="dropdown"?(s.attr("opacity","0").transition().attr("opacity","1"),u.transition().attr("opacity","0").remove()):u.remove();var d=0,f=0,p=a._dims,g=["up","down"].indexOf(a.direction)!==-1;a.type==="dropdown"&&(g?f=p.headerHeight+Pt.gapButtonHeader:d=p.headerWidth+Pt.gapButtonHeader),a.type==="dropdown"&&a.direction==="up"&&(f=-Pt.gapButtonHeader+Pt.gapButton-p.openHeight),a.type==="dropdown"&&a.direction==="left"&&(d=-Pt.gapButtonHeader+Pt.gapButton-p.openWidth);var h={x:p.lx+d+a.pad.l,y:p.ly+f+a.pad.t,yPad:Pt.gapButton,xPad:Pt.gapButton,index:0},y={l:h.x+a.borderwidth,t:h.y+a.borderwidth};l.each(function(b,v){var x=Ku.select(this);x.call(C2,a,b,e).call(YI,a,h),x.on("click",function(){Ku.event.defaultPrevented||(b.execute&&(b.args2&&a.active===v?(M2(e,a,b,t,n,r,-1),wp.executeAPICommand(e,b.method,b.args2)):(M2(e,a,b,t,n,r,v),wp.executeAPICommand(e,b.method,b.args))),e.emit("plotly_buttonclicked",{menu:a,button:b,active:a.active}))}),x.on("mouseover",function(){x.call(GI)}),x.on("mouseout",function(){x.call(ZI,a),l.call(WI,a)})}),l.call(WI,a),g?(y.w=Math.max(p.openWidth,p.headerWidth),y.h=h.y-y.t):(y.w=h.x-y.l,y.h=Math.max(p.openHeight,p.headerHeight)),y.direction=a.direction,r&&(l.size()?bbe(e,t,n,r,a,y):xbe(r))}function bbe(e,t,n,r,a,o){var i=a.direction,l=i==="up"||i==="down",s=a._dims,u=a.active,d,f,p;if(l)for(f=0,p=0;p<u;p++)f+=s.heights[p]+Pt.gapButton;else for(d=0,p=0;p<u;p++)d+=s.widths[p]+Pt.gapButton;r.enable(o,d,f),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1"),r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}function xbe(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",function(){t=!1,n||e.disable()}),n&&e.vbar.transition().attr("opacity","0").each("end",function(){n=!1,t||e.disable()})}function C2(e,t,n,r){e.call(wbe,t).call(_be,t,n,r)}function wbe(e,t){var n=Oa.ensureSingle(e,"rect",Pt.itemRectClassName,function(r){r.attr({rx:Pt.rx,ry:Pt.ry,"shape-rendering":"crispEdges"})});n.call(_p.stroke,t.bordercolor).call(_p.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function _be(e,t,n,r){var a=Oa.ensureSingle(e,"text",Pt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),o=n.label,i=r._fullLayout._meta;i&&(o=Oa.templateString(o,i)),a.call(Yu.font,t.font).text(o).call(D0.convertToTspans,r)}function WI(e,t){var n=t.active;e.each(function(r,a){var o=Ku.select(this);a===n&&t.showactive&&o.select("rect."+Pt.itemRectClassName).call(_p.fill,Pt.activeColor)})}function GI(e){e.select("rect."+Pt.itemRectClassName).call(_p.fill,Pt.hoverColor)}function ZI(e,t){e.select("rect."+Pt.itemRectClassName).call(_p.fill,t.bgcolor)}function kbe(e,t){var n=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},r=Yu.tester.selectAll("g."+Pt.dropdownButtonClassName).data(Oa.filterVisible(t.buttons));r.enter().append("g").classed(Pt.dropdownButtonClassName,!0);var a=["up","down"].indexOf(t.direction)!==-1;r.each(function(d,f){var p=Ku.select(this);p.call(C2,t,d,e);var g=p.select("."+Pt.itemTextClassName),h=g.node()&&Yu.bBox(g.node()).width,y=Math.max(h+Pt.textPadX,Pt.minWidth),b=t.font.size*HI,v=D0.lineCount(g),x=Math.max(b*v,Pt.minHeight)+Pt.textOffsetY;x=Math.ceil(x),y=Math.ceil(y),n.widths[f]=y,n.heights[f]=x,n.height1=Math.max(n.height1,x),n.width1=Math.max(n.width1,y),a?(n.totalWidth=Math.max(n.totalWidth,y),n.openWidth=n.totalWidth,n.totalHeight+=x+Pt.gapButton,n.openHeight+=x+Pt.gapButton):(n.totalWidth+=y+Pt.gapButton,n.openWidth+=y+Pt.gapButton,n.totalHeight=Math.max(n.totalHeight,x),n.openHeight=n.totalHeight)}),a?n.totalHeight-=Pt.gapButton:n.totalWidth-=Pt.gapButton,n.headerWidth=n.width1+Pt.arrowPadX,n.headerHeight=n.height1,t.type==="dropdown"&&(a?(n.width1+=Pt.arrowPadX,n.totalHeight=n.height1):n.totalWidth=n.width1,n.totalWidth+=Pt.arrowPadX),r.remove();var o=n.totalWidth+t.pad.l+t.pad.r,i=n.totalHeight+t.pad.t+t.pad.b,l=e._fullLayout._size;n.lx=l.l+l.w*t.x,n.ly=l.t+l.h*(1-t.y);var s="left";Oa.isRightAnchor(t)&&(n.lx-=o,s="right"),Oa.isCenterAnchor(t)&&(n.lx-=o/2,s="center");var u="top";Oa.isBottomAnchor(t)&&(n.ly-=i,u="bottom"),Oa.isMiddleAnchor(t)&&(n.ly-=i/2,u="middle"),n.totalWidth=Math.ceil(n.totalWidth),n.totalHeight=Math.ceil(n.totalHeight),n.lx=Math.round(n.lx),n.ly=Math.round(n.ly),wp.autoMargin(e,KI(t),{x:t.x,y:t.y,l:o*({right:1,center:.5}[s]||0),r:o*({left:1,center:.5}[s]||0),b:i*({top:1,middle:.5}[u]||0),t:i*({bottom:1,middle:.5}[u]||0)})}function KI(e){return Pt.autoMarginIdRoot+e._index}function YI(e,t,n,r){r=r||{};var a=e.select("."+Pt.itemRectClassName),o=e.select("."+Pt.itemTextClassName),i=t.borderwidth,l=n.index,s=t._dims;Yu.setTranslate(e,i+n.x,i+n.y);var u=["up","down"].indexOf(t.direction)!==-1,d=r.height||(u?s.heights[l]:s.height1);a.attr({x:0,y:0,width:r.width||(u?s.width1:s.widths[l]),height:d});var f=t.font.size*HI,p=D0.lineCount(o),g=(p-1)*f/2;D0.positionText(o,Pt.textOffsetX,d/2-g+Pt.textOffsetY),u?n.y+=s.heights[l]+n.yPad:n.x+=s.widths[l]+n.xPad,n.index++}function O2(e,t){e.attr(Pt.menuIndexAttrName,t||"-1").selectAll("g."+Pt.dropdownButtonClassName).remove()}var Tbe=A2,Sbe={moduleType:"component",name:Tbe.name,layoutAttributes:NI,supplyLayoutDefaults:ube,draw:gbe},P0={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0},JI=Fr,Abe=rx,Mbe=Zn.extendDeepAll,Cbe=Gi.overrideAll,Obe=Lm,QI=hn.templatedArray,nc=P0,Ebe=QI("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}}),XI=Cbe(QI("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:Ebe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:Mbe(Abe({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:Obe.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:JI({description:"Sets the font of the current value label text."})},font:JI({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:nc.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:nc.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:nc.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:nc.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:nc.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:nc.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:nc.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root"),Ju=Ge,$I=li,eD=XI,Lbe=P0,zbe=Lbe.name,Fbe=eD.steps,Ibe=function(e,t){$I(e,t,{name:zbe,handleItemDefaults:Dbe})};function Dbe(e,t,n){function r(f,p){return Ju.coerce(e,t,eD,f,p)}for(var a=$I(e,t,{name:"steps",handleItemDefaults:Pbe}),o=0,i=0;i<a.length;i++)a[i].visible&&o++;var l;if(o<2?l=t.visible=!1:l=r("visible"),!!l){t._stepCount=o;var s=t._visibleSteps=Ju.filterVisible(a),u=r("active");(a[u]||{}).visible||(t.active=s[0]._index),r("x"),r("y"),Ju.noneOrAll(e,t,["x","y"]),r("xanchor"),r("yanchor"),r("len"),r("lenmode"),r("pad.t"),r("pad.r"),r("pad.b"),r("pad.l"),Ju.coerceFont(r,"font",n.font);var d=r("currentvalue.visible");d&&(r("currentvalue.xanchor"),r("currentvalue.prefix"),r("currentvalue.suffix"),r("currentvalue.offset"),Ju.coerceFont(r,"currentvalue.font",t.font)),r("transition.duration"),r("transition.easing"),r("bgcolor"),r("activebgcolor"),r("bordercolor"),r("borderwidth"),r("ticklen"),r("tickwidth"),r("tickcolor"),r("minorticklen")}}function Pbe(e,t){function n(o,i){return Ju.coerce(e,t,Fbe,o,i)}var r;if(e.method!=="skip"&&!Array.isArray(e.args)?r=t.visible=!1:r=n("visible"),r){n("method"),n("args");var a=n("label","step-"+t._index);n("value",a),n("execute")}}var Io=$t,R0=wr,Ql=Kt,Do=gn,Ea=Ge,Rbe=Ea.strTranslate,Tp=Ir,Nbe=hn.arrayEditor,Gt=P0,E2=Br,tD=E2.LINE_SPACING,L2=E2.FROM_TL,z2=E2.FROM_BR,Bbe=function(e){var t=e._context.staticPlot,n=e._fullLayout,r=jbe(n,e),a=n._infolayer.selectAll("g."+Gt.containerClassName).data(r.length>0?[0]:[]);a.enter().append("g").classed(Gt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),R0.autoMargin(e,nD(u))}if(a.exit().each(function(){Io.select(this).selectAll("g."+Gt.groupClassName).each(o)}).remove(),r.length!==0){var i=a.selectAll("g."+Gt.groupClassName).data(r,Vbe);i.enter().append("g").classed(Gt.groupClassName,!0),i.exit().each(o).remove();for(var l=0;l<r.length;l++){var s=r[l];Hbe(e,s)}i.each(function(u){var d=Io.select(this);Zbe(u),R0.manageCommandObserver(e,u,u._visibleSteps,function(f){var p=d.data()[0];p.active!==f.index&&(p._dragging||oD(e,d,p,f.index,!1,!0))}),Ube(e,Io.select(this),u)})}};function nD(e){return Gt.autoMarginIdRoot+e._index}function jbe(e,t){for(var n=e[Gt.name],r=[],a=0;a<n.length;a++){var o=n[a];o.visible&&(o._gd=t,r.push(o))}return r}function Vbe(e){return e._index}function Hbe(e,t){var n=Do.tester.selectAll("g."+Gt.labelGroupClass).data(t._visibleSteps);n.enter().append("g").classed(Gt.labelGroupClass,!0);var r=0,a=0;n.each(function(h){var y=Io.select(this),b=rD(y,{step:h},t),v=b.node();if(v){var x=Do.bBox(v);a=Math.max(a,x.height),r=Math.max(r,x.width)}}),n.remove();var o=t._dims={};o.inputAreaWidth=Math.max(Gt.railWidth,Gt.gripHeight);var i=e._fullLayout._size;o.lx=i.l+i.w*t.x,o.ly=i.t+i.h*(1-t.y),t.lenmode==="fraction"?o.outerLength=Math.round(i.w*t.len):o.outerLength=t.len,o.inputAreaStart=0,o.inputAreaLength=Math.round(o.outerLength-t.pad.l-t.pad.r);var l=o.inputAreaLength-2*Gt.stepInset,s=l/(t._stepCount-1),u=r+Gt.labelPadding;if(o.labelStride=Math.max(1,Math.ceil(u/s)),o.labelHeight=a,o.currentValueMaxWidth=0,o.currentValueHeight=0,o.currentValueTotalHeight=0,o.currentValueMaxLines=1,t.currentvalue.visible){var d=Do.tester.append("g");n.each(function(h){var y=N0(d,t,h.label),b=y.node()&&Do.bBox(y.node())||{width:0,height:0},v=Tp.lineCount(y);o.currentValueMaxWidth=Math.max(o.currentValueMaxWidth,Math.ceil(b.width)),o.currentValueHeight=Math.max(o.currentValueHeight,Math.ceil(b.height)),o.currentValueMaxLines=Math.max(o.currentValueMaxLines,v)}),o.currentValueTotalHeight=o.currentValueHeight+t.currentvalue.offset,d.remove()}o.height=o.currentValueTotalHeight+Gt.tickOffset+t.ticklen+Gt.labelOffset+o.labelHeight+t.pad.t+t.pad.b;var f="left";Ea.isRightAnchor(t)&&(o.lx-=o.outerLength,f="right"),Ea.isCenterAnchor(t)&&(o.lx-=o.outerLength/2,f="center");var p="top";Ea.isBottomAnchor(t)&&(o.ly-=o.height,p="bottom"),Ea.isMiddleAnchor(t)&&(o.ly-=o.height/2,p="middle"),o.outerLength=Math.ceil(o.outerLength),o.height=Math.ceil(o.height),o.lx=Math.round(o.lx),o.ly=Math.round(o.ly);var g={y:t.y,b:o.height*z2[p],t:o.height*L2[p]};t.lenmode==="fraction"?(g.l=0,g.xl=t.x-t.len*L2[f],g.r=0,g.xr=t.x+t.len*z2[f]):(g.x=t.x,g.l=o.outerLength*L2[f],g.r=o.outerLength*z2[f]),R0.autoMargin(e,nD(t),g)}function Ube(e,t,n){(n.steps[n.active]||{}).visible||(n.active=n._visibleSteps[0]._index),t.call(N0,n).call(Ybe,n).call(Wbe,n).call(Gbe,n).call(Kbe,e,n).call(qbe,e,n);var r=n._dims;Do.setTranslate(t,r.lx+n.pad.l,r.ly+n.pad.t),t.call(lD,n,!1),t.call(N0,n)}function N0(e,t,n){if(t.currentvalue.visible){var r=t._dims,a,o;switch(t.currentvalue.xanchor){case"right":a=r.inputAreaLength-Gt.currentValueInset-r.currentValueMaxWidth,o="left";break;case"center":a=r.inputAreaLength*.5,o="middle";break;default:a=Gt.currentValueInset,o="left"}var i=Ea.ensureSingle(e,"text",Gt.labelClass,function(p){p.attr({"text-anchor":o,"data-notex":1})}),l=t.currentvalue.prefix?t.currentvalue.prefix:"";if(typeof n=="string")l+=n;else{var s=t.steps[t.active].label,u=t._gd._fullLayout._meta;u&&(s=Ea.templateString(s,u)),l+=s}t.currentvalue.suffix&&(l+=t.currentvalue.suffix),i.call(Do.font,t.currentvalue.font).text(l).call(Tp.convertToTspans,t._gd);var d=Tp.lineCount(i),f=(r.currentValueMaxLines+1-d)*t.currentvalue.font.size*tD;return Tp.positionText(i,a,f),i}}function qbe(e,t,n){var r=Ea.ensureSingle(e,"rect",Gt.gripRectClass,function(a){a.call(iD,t,e,n).style("pointer-events","all")});r.attr({width:Gt.gripWidth,height:Gt.gripHeight,rx:Gt.gripRadius,ry:Gt.gripRadius}).call(Ql.stroke,n.bordercolor).call(Ql.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function rD(e,t,n){var r=Ea.ensureSingle(e,"text",Gt.labelClass,function(i){i.attr({"text-anchor":"middle","data-notex":1})}),a=t.step.label,o=n._gd._fullLayout._meta;return o&&(a=Ea.templateString(a,o)),r.call(Do.font,n.font).text(a).call(Tp.convertToTspans,n._gd),r}function Wbe(e,t){var n=Ea.ensureSingle(e,"g",Gt.labelsClass),r=t._dims,a=n.selectAll("g."+Gt.labelGroupClass).data(r.labelSteps);a.enter().append("g").classed(Gt.labelGroupClass,!0),a.exit().remove(),a.each(function(o){var i=Io.select(this);i.call(rD,o,t),Do.setTranslate(i,F2(t,o.fraction),Gt.tickOffset+t.ticklen+t.font.size*tD+Gt.labelOffset+r.currentValueTotalHeight)})}function aD(e,t,n,r,a){var o=Math.round(r*(n._stepCount-1)),i=n._visibleSteps[o]._index;i!==n.active&&oD(e,t,n,i,!0,a)}function oD(e,t,n,r,a,o){var i=n.active;n.active=r,Nbe(e.layout,Gt.name,n).applyUpdate("active",r);var l=n.steps[n.active];t.call(lD,n,o),t.call(N0,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.active],interaction:a,previousActive:i}),l&&l.method&&a&&(t._nextMethod?(t._nextMethod.step=l,t._nextMethod.doCallback=a,t._nextMethod.doTransition=o):(t._nextMethod={step:l,doCallback:a,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame(function(){var s=t._nextMethod.step;s.method&&(s.execute&&R0.executeAPICommand(e,s.method,s.args),t._nextMethod=null,t._nextMethodRaf=null)})))}function iD(e,t,n){if(t._context.staticPlot)return;var r=n.node(),a=Io.select(t);function o(){return n.data()[0]}function i(){var l=o();t.emit("plotly_sliderstart",{slider:l});var s=n.select("."+Gt.gripRectClass);Io.event.stopPropagation(),Io.event.preventDefault(),s.call(Ql.fill,l.activebgcolor);var u=sD(l,Io.mouse(r)[0]);aD(t,n,l,u,!0),l._dragging=!0;function d(){var p=o(),g=sD(p,Io.mouse(r)[0]);aD(t,n,p,g,!1)}a.on("mousemove",d),a.on("touchmove",d);function f(){var p=o();p._dragging=!1,s.call(Ql.fill,p.bgcolor),a.on("mouseup",null),a.on("mousemove",null),a.on("touchend",null),a.on("touchmove",null),t.emit("plotly_sliderend",{slider:p,step:p.steps[p.active]})}a.on("mouseup",f),a.on("touchend",f)}e.on("mousedown",i),e.on("touchstart",i)}function Gbe(e,t){var n=e.selectAll("rect."+Gt.tickRectClass).data(t._visibleSteps),r=t._dims;n.enter().append("rect").classed(Gt.tickRectClass,!0),n.exit().remove(),n.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),n.each(function(a,o){var i=o%r.labelStride===0,l=Io.select(this);l.attr({height:i?t.ticklen:t.minorticklen}).call(Ql.fill,t.tickcolor),Do.setTranslate(l,F2(t,o/(t._stepCount-1))-.5*t.tickwidth,(i?Gt.tickOffset:Gt.minorTickOffset)+r.currentValueTotalHeight)})}function Zbe(e){var t=e._dims;t.labelSteps=[];for(var n=e._stepCount,r=0;r<n;r+=t.labelStride)t.labelSteps.push({fraction:r/(n-1),step:e._visibleSteps[r]})}function lD(e,t,n){for(var r=e.select("rect."+Gt.gripRectClass),a=0,o=0;o<t._stepCount;o++)if(t._visibleSteps[o]._index===t.active){a=o;break}var i=F2(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=r;n&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",Rbe(i-Gt.gripWidth*.5,t._dims.currentValueTotalHeight))}}function F2(e,t){var n=e._dims;return n.inputAreaStart+Gt.stepInset+(n.inputAreaLength-2*Gt.stepInset)*Math.min(1,Math.max(0,t))}function sD(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-Gt.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*Gt.stepInset-2*n.inputAreaStart)))}function Kbe(e,t,n){var r=n._dims,a=Ea.ensureSingle(e,"rect",Gt.railTouchRectClass,function(o){o.call(iD,t,e,n).style("pointer-events","all")});a.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,Gt.tickOffset+n.ticklen+r.labelHeight)}).call(Ql.fill,n.bgcolor).attr("opacity",0),Do.setTranslate(a,0,r.currentValueTotalHeight)}function Ybe(e,t){var n=t._dims,r=n.inputAreaLength-Gt.railInset*2,a=Ea.ensureSingle(e,"rect",Gt.railRectClass);a.attr({width:r,height:Gt.railWidth,rx:Gt.railRadius,ry:Gt.railRadius,"shape-rendering":"crispEdges"}).call(Ql.stroke,t.bordercolor).call(Ql.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Do.setTranslate(a,Gt.railInset,(n.inputAreaWidth-Gt.railWidth)*.5+n.currentValueTotalHeight)}var Jbe=P0,Qbe={moduleType:"component",name:Jbe.name,layoutAttributes:XI,supplyLayoutDefaults:Ibe,draw:Bbe},cD=ca,I2={bgcolor:{valType:"color",dflt:cD.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:cD.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"},uD={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"},B0={},D2={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15},Xbe=dr,$be=Ir,dD=D2,exe=Br.LINE_SPACING,j0=dD.name;function fD(e){var t=e&&e[j0];return t&&t.visible}B0.isVisible=fD,B0.makeData=function(e){var t=Xbe.list({_fullLayout:e},"x",!0),n=e.margin,r=[];if(!e._has("gl2d"))for(var a=0;a<t.length;a++){var o=t[a];if(fD(o)){r.push(o);var i=o[j0];i._id=j0+o._id,i._height=(e.height-n.b-n.t)*i.thickness,i._offsetShift=Math.floor(i.borderwidth/2)}}e._rangeSliderData=r},B0.autoMarginOpts=function(e,t){var n=e._fullLayout,r=t[j0],a=t._id.charAt(0),o=0,i=0;if(t.side==="bottom"&&(o=t._depth,t.title.text!==n._dfltTitle[a])){i=1.5*t.title.font.size+10+r._offsetShift;var l=(t.title.text.match($be.BR_TAG_ALL)||[]).length;i+=l*t.title.font.size*exe}return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:r._height+o+Math.max(n.margin.b,i),pad:dD.extraPad+r._offsetShift*2}};var P2,pD;function txe(){if(pD)return P2;pD=1;var e=Ge,t=hn,n=dr,r=I2,a=uD;return P2=function(o,i,l){var s=o[l],u=i[l];if(!(s.rangeslider||i._requestRangeslider[u._id]))return;e.isPlainObject(s.rangeslider)||(s.rangeslider={});var d=s.rangeslider,f=t.newContainer(u,"rangeslider");function p(O,F){return e.coerce(d,f,r,O,F)}var g,h;function y(O,F){return e.coerce(g,h,a,O,F)}var b=p("visible");if(b){p("bgcolor",i.plot_bgcolor),p("bordercolor"),p("borderwidth"),p("thickness"),p("autorange",!u.isValidRange(d.range)),p("range");var v=i._subplots;if(v)for(var x=v.cartesian.filter(function(O){return O.substr(0,O.indexOf("y"))===n.name2id(l)}).map(function(O){return O.substr(O.indexOf("y"),O.length)}),k=e.simpleMap(x,n.id2name),_=0;_<k.length;_++){var S=k[_];g=d[S]||{},h=t.newContainer(f,S,"yaxis");var T=i[S],C;g.range&&T.isValidRange(g.range)&&(C="fixed");var A=y("rangemode",C);A!=="match"&&y("range",T.range.slice())}f._input=d}},P2}var R2,hD;function nxe(){if(hD)return R2;hD=1;var e=dr.list,t=gg.getAutoRange,n=D2;return R2=function(r){for(var a=e(r,"x",!0),o=0;o<a.length;o++){var i=a[o],l=i[n.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=t(r,i))}},R2}var N2,mD;function rxe(){if(mD)return N2;mD=1;var e=$t,t=Dt,n=wr,r=Ge,a=r.strTranslate,o=gn,i=Kt,l=ig,s=hr,u=dr,d=di,f=qs,p=D2;N2=function(A){for(var O=A._fullLayout,F=O._rangeSliderData,R=0;R<F.length;R++){var N=F[R][p.name];N._clipId=N._id+"-"+O._uid}function B(Z){return Z._name}var V=O._infolayer.selectAll("g."+p.containerClassName).data(F,B);V.exit().each(function(Z){var G=Z[p.name];O._topdefs.select("#"+G._clipId).remove()}).remove(),F.length!==0&&(V.enter().append("g").classed(p.containerClassName,!0).attr("pointer-events","all"),V.each(function(Z){var G=e.select(this),I=Z[p.name],P=O[u.id2name(Z.anchor)],z=I[u.id2name(Z.anchor)];if(I.range){var H=r.simpleMap(I.range,Z.r2l),j=r.simpleMap(Z.range,Z.r2l),q;j[0]<j[1]?q=[Math.min(H[0],j[0]),Math.max(H[1],j[1])]:q=[Math.max(H[0],j[0]),Math.min(H[1],j[1])],I.range=I._input.range=r.simpleMap(q,Z.l2r)}Z.cleanRange("rangeslider.range");var $=O._size,ne=Z.domain;I._width=$.w*(ne[1]-ne[0]);var te=Math.round($.l+$.w*ne[0]),ee=Math.round($.t+$.h*(1-Z._counterDomainMin)+(Z.side==="bottom"?Z._depth:0)+I._offsetShift+p.extraPad);G.attr("transform",a(te,ee)),I._rl=r.simpleMap(I.range,Z.r2l);var se=I._rl[0],U=I._rl[1],Y=U-se;if(I.p2d=function(Pe){return Pe/I._width*Y+se},I.d2p=function(Pe){return(Pe-se)/Y*I._width},Z.rangebreaks){var J=Z.locateBreaks(se,U);if(J.length){var re,oe,he=0;for(re=0;re<J.length;re++)oe=J[re],he+=oe.max-oe.min;var ve=I._width/(U-se-he),ge=[-ve*se];for(re=0;re<J.length;re++)oe=J[re],ge.push(ge[ge.length-1]-ve*(oe.max-oe.min));for(I.d2p=function(Pe){for(var De=ge[0],je=0;je<J.length;je++){var qe=J[je];if(Pe>=qe.max)De=ge[je+1];else if(Pe<qe.min)break}return De+ve*Pe},re=0;re<J.length;re++)oe=J[re],oe.pmin=I.d2p(oe.min),oe.pmax=I.d2p(oe.max);I.p2d=function(Pe){for(var De=ge[0],je=0;je<J.length;je++){var qe=J[je];if(Pe>=qe.pmax)De=ge[je+1];else if(Pe<qe.pmin)break}return(Pe-De)/ve}}}if(z.rangemode!=="match"){var xe=P.r2l(z.range[0]),Le=P.r2l(z.range[1]),Ue=Le-xe;I.d2pOppAxis=function(Pe){return(Pe-xe)/Ue*I._height}}G.call(v,A,Z,I).call(x,A,Z,I).call(k,A,Z,I).call(S,A,Z,I,z).call(T,A,Z,I).call(C,A,Z,I),h(G,A,Z,I),b(G,A,Z,I,P,z),Z.side==="bottom"&&l.draw(A,Z._id+"title",{propContainer:Z,propName:Z._name+".title",placeholder:O._dfltTitle.x,attributes:{x:Z._offset+Z._length/2,y:ee+I._height+I._offsetShift+10+1.5*Z.title.font.size,"text-anchor":"middle"}})}))};function g(A){return typeof A.clientX=="number"?A.clientX:A.touches&&A.touches.length>0?A.touches[0].clientX:0}function h(A,O,F,R){if(O._context.staticPlot)return;var N=A.select("rect."+p.slideBoxClassName).node(),B=A.select("rect."+p.grabAreaMinClassName).node(),V=A.select("rect."+p.grabAreaMaxClassName).node();function Z(){var G=e.event,I=G.target,P=g(G),z=P-A.node().getBoundingClientRect().left,H=R.d2p(F._rl[0]),j=R.d2p(F._rl[1]),q=d.coverSlip();this.addEventListener("touchmove",$),this.addEventListener("touchend",ne),q.addEventListener("mousemove",$),q.addEventListener("mouseup",ne);function $(te){var ee=g(te),se=+ee-P,U,Y,J;switch(I){case N:if(J="ew-resize",H+se>F._length||j+se<0)return;U=H+se,Y=j+se;break;case B:if(J="col-resize",H+se>F._length)return;U=H+se,Y=j;break;case V:if(J="col-resize",j+se<0)return;U=H,Y=j+se;break;default:J="ew-resize",U=z,Y=z+se;break}if(Y<U){var re=Y;Y=U,U=re}R._pixelMin=U,R._pixelMax=Y,f(e.select(q),J),y(A,O,F,R)}function ne(){q.removeEventListener("mousemove",$),q.removeEventListener("mouseup",ne),this.removeEventListener("touchmove",$),this.removeEventListener("touchend",ne),r.removeElement(q)}}A.on("mousedown",Z),A.on("touchstart",Z)}function y(A,O,F,R){function N(Z){return F.l2r(r.constrain(Z,R._rl[0],R._rl[1]))}var B=N(R.p2d(R._pixelMin)),V=N(R.p2d(R._pixelMax));window.requestAnimationFrame(function(){t.call("_guiRelayout",O,F._name+".range",[B,V])})}function b(A,O,F,R,N,B){var V=p.handleWidth/2;function Z(te){return r.constrain(te,0,R._width)}function G(te){return r.constrain(te,0,R._height)}function I(te){return r.constrain(te,-V,R._width+V)}var P=Z(R.d2p(F._rl[0])),z=Z(R.d2p(F._rl[1]));if(A.select("rect."+p.slideBoxClassName).attr("x",P).attr("width",z-P),A.select("rect."+p.maskMinClassName).attr("width",P),A.select("rect."+p.maskMaxClassName).attr("x",z).attr("width",R._width-z),B.rangemode!=="match"){var H=R._height-G(R.d2pOppAxis(N._rl[1])),j=R._height-G(R.d2pOppAxis(N._rl[0]));A.select("rect."+p.maskMinOppAxisClassName).attr("x",P).attr("height",H).attr("width",z-P),A.select("rect."+p.maskMaxOppAxisClassName).attr("x",P).attr("y",j).attr("height",R._height-j).attr("width",z-P),A.select("rect."+p.slideBoxClassName).attr("y",H).attr("height",j-H)}var q=.5,$=Math.round(I(P-V))-q,ne=Math.round(I(z-V))+q;A.select("g."+p.grabberMinClassName).attr("transform",a($,q)),A.select("g."+p.grabberMaxClassName).attr("transform",a(ne,q))}function v(A,O,F,R){var N=r.ensureSingle(A,"rect",p.bgClassName,function(G){G.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),B=R.borderwidth%2===0?R.borderwidth:R.borderwidth-1,V=-R._offsetShift,Z=o.crispRound(O,R.borderwidth);N.attr({width:R._width+B,height:R._height+B,transform:a(V,V),"stroke-width":Z}).call(i.stroke,R.bordercolor).call(i.fill,R.bgcolor)}function x(A,O,F,R){var N=O._fullLayout,B=r.ensureSingleById(N._topdefs,"clipPath",R._clipId,function(V){V.append("rect").attr({x:0,y:0})});B.select("rect").attr({width:R._width,height:R._height})}function k(A,O,F,R){var N=O.calcdata,B=A.selectAll("g."+p.rangePlotClassName).data(F._subplotsWith,r.identity);B.enter().append("g").attr("class",function(Z){return p.rangePlotClassName+" "+Z}).call(o.setClipUrl,R._clipId,O),B.order(),B.exit().remove();var V;B.each(function(Z,G){var I=e.select(this),P=G===0,z=u.getFromId(O,Z,"y"),H=z._name,j=R[H],q={data:[],layout:{xaxis:{type:F.type,domain:[0,1],range:R.range.slice(),calendar:F.calendar},width:R._width,height:R._height,margin:{t:0,b:0,l:0,r:0}},_context:O._context};F.rangebreaks&&(q.layout.xaxis.rangebreaks=F.rangebreaks),q.layout[H]={type:z.type,domain:[0,1],range:j.rangemode!=="match"?j.range.slice():z.range.slice(),calendar:z.calendar},z.rangebreaks&&(q.layout[H].rangebreaks=z.rangebreaks),n.supplyDefaults(q);var $=q._fullLayout.xaxis,ne=q._fullLayout[H];$.clearCalc(),$.setScale(),ne.clearCalc(),ne.setScale();var te={id:Z,plotgroup:I,xaxis:$,yaxis:ne,isRangePlot:!0};P?V=te:(te.mainplot="xy",te.mainplotinfo=V),s.rangePlot(O,te,_(N,Z))})}function _(A,O){for(var F=[],R=0;R<A.length;R++){var N=A[R],B=N[0].trace;B.xaxis+B.yaxis===O&&F.push(N)}return F}function S(A,O,F,R,N){var B=r.ensureSingle(A,"rect",p.maskMinClassName,function(I){I.attr({x:0,y:0,"shape-rendering":"crispEdges"})});B.attr("height",R._height).call(i.fill,p.maskColor);var V=r.ensureSingle(A,"rect",p.maskMaxClassName,function(I){I.attr({y:0,"shape-rendering":"crispEdges"})});if(V.attr("height",R._height).call(i.fill,p.maskColor),N.rangemode!=="match"){var Z=r.ensureSingle(A,"rect",p.maskMinOppAxisClassName,function(I){I.attr({y:0,"shape-rendering":"crispEdges"})});Z.attr("width",R._width).call(i.fill,p.maskOppAxisColor);var G=r.ensureSingle(A,"rect",p.maskMaxOppAxisClassName,function(I){I.attr({y:0,"shape-rendering":"crispEdges"})});G.attr("width",R._width).style("border-top",p.maskOppBorder).call(i.fill,p.maskOppAxisColor)}}function T(A,O,F,R){if(!O._context.staticPlot){var N=r.ensureSingle(A,"rect",p.slideBoxClassName,function(B){B.attr({y:0,cursor:p.slideBoxCursor,"shape-rendering":"crispEdges"})});N.attr({height:R._height,fill:p.slideBoxFill})}}function C(A,O,F,R){var N=r.ensureSingle(A,"g",p.grabberMinClassName),B=r.ensureSingle(A,"g",p.grabberMaxClassName),V={x:0,width:p.handleWidth,rx:p.handleRadius,fill:i.background,stroke:i.defaultLine,"stroke-width":p.handleStrokeWidth,"shape-rendering":"crispEdges"},Z={y:Math.round(R._height/4),height:Math.round(R._height/2)},G=r.ensureSingle(N,"rect",p.handleMinClassName,function(j){j.attr(V)});G.attr(Z);var I=r.ensureSingle(B,"rect",p.handleMaxClassName,function(j){j.attr(V)});I.attr(Z);var P={width:p.grabAreaWidth,x:0,y:0,fill:p.grabAreaFill,cursor:O._context.staticPlot?void 0:p.grabAreaCursor},z=r.ensureSingle(N,"rect",p.grabAreaMinClassName,function(j){j.attr(P)});z.attr("height",R._height);var H=r.ensureSingle(B,"rect",p.grabAreaMaxClassName,function(j){j.attr(P)});H.attr("height",R._height)}return N2}var axe=Ge,oxe=I2,ixe=uD,B2=B0,lxe={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:axe.extendFlat({},oxe,{yaxis:ixe})}}},layoutAttributes:I2,handleDefaults:txe(),calcAutorange:nxe(),draw:rxe(),isVisible:B2.isVisible,makeData:B2.makeData,autoMarginOpts:B2.autoMarginOpts},sxe=Fr,gD=ca,cxe=hn.templatedArray,uxe=cxe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")}),j2={visible:{valType:"boolean",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:uxe,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:sxe({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:gD.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:gD.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"},yD={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10},V0=Ge,dxe=Kt,fxe=hn,pxe=li,vD=j2,V2=yD,hxe=function(e,t,n,r,a){var o=e.rangeselector||{},i=fxe.newContainer(t,"rangeselector");function l(p,g){return V0.coerce(o,i,vD,p,g)}var s=pxe(o,i,{name:"buttons",handleItemDefaults:mxe,calendar:a}),u=l("visible",s.length>0);if(u){var d=gxe(t,n,r);l("x",d[0]),l("y",d[1]),V0.noneOrAll(e,t,["x","y"]),l("xanchor"),l("yanchor"),V0.coerceFont(l,"font",n.font);var f=l("bgcolor");l("activecolor",dxe.contrast(f,V2.lightAmount,V2.darkAmount)),l("bordercolor"),l("borderwidth")}};function mxe(e,t,n,r){var a=r.calendar;function o(s,u){return V0.coerce(e,t,vD.buttons,s,u)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?t.stepmode="backward":o("stepmode"),o("count")),o("label")}}function gxe(e,t,n){for(var r=n.filter(function(l){return t[l].anchor===e._id}),a=0,o=0;o<r.length;o++){var i=t[r[o]].domain;i&&(a=Math.max(i[1],a))}return[e.domain[0],a+V2.yPad]}var yxe=om(ore),vxe=Ge.titleCase,bxe=function(e,t){var n=e._name,r={};if(t.step==="all")r[n+".autorange"]=!0;else{var a=xxe(e,t);r[n+".range[0]"]=a[0],r[n+".range[1]"]=a[1]}return r};function xxe(e,t){var n=e.range,r=new Date(e.r2l(n[1])),a=t.step,o=yxe["utc"+vxe(a)],i=t.count,l;switch(t.stepmode){case"backward":l=e.l2r(+o.offset(r,-i));break;case"todate":var s=o.offset(r,-i);l=e.l2r(+o.ceil(s));break}var u=n[1];return[l,u]}var H0=$t,wxe=Dt,_xe=wr,bD=Kt,xD=gn,tl=Ge,wD=tl.strTranslate,U0=Ir,kxe=dr,H2=Br,_D=H2.LINE_SPACING,kD=H2.FROM_TL,TD=H2.FROM_BR,U2=yD,Txe=bxe,Sxe=function(e){var t=e._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Axe(e),Mxe);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(r){var a=H0.select(this),o=r,i=o.rangeselector,l=a.selectAll("g.button").data(tl.filterVisible(i.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(s){var u=H0.select(this),d=Txe(o,s);s._isActive=Cxe(o,s,d),u.call(q2,i,s),u.call(Exe,i,s,e),u.on("click",function(){e._dragged||wxe.call("_guiRelayout",e,d)}),u.on("mouseover",function(){s._isHovered=!0,u.call(q2,i,s)}),u.on("mouseout",function(){s._isHovered=!1,u.call(q2,i,s)})}),zxe(e,l,i,o._name,a)})};function Axe(e){for(var t=kxe.list(e,"x",!0),n=[],r=0;r<t.length;r++){var a=t[r];a.rangeselector&&a.rangeselector.visible&&n.push(a)}return n}function Mxe(e){return e._id}function Cxe(e,t,n){if(t.step==="all")return e.autorange===!0;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}function q2(e,t,n){var r=tl.ensureSingle(e,"rect","selector-rect",function(a){a.attr("shape-rendering","crispEdges")});r.attr({rx:U2.rx,ry:U2.ry}),r.call(bD.stroke,t.bordercolor).call(bD.fill,Oxe(t,n)).style("stroke-width",t.borderwidth+"px")}function Oxe(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}function Exe(e,t,n,r){function a(i){U0.convertToTspans(i,r)}var o=tl.ensureSingle(e,"text","selector-text",function(i){i.attr("text-anchor","middle")});o.call(xD.font,t.font).text(Lxe(n,r._fullLayout._meta)).call(a)}function Lxe(e,t){return e.label?t?tl.templateString(e.label,t):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function zxe(e,t,n,r,a){var o=0,i=0,l=n.borderwidth;t.each(function(){var g=H0.select(this),h=g.select(".selector-text"),y=n.font.size*_D,b=Math.max(y*U0.lineCount(h),16)+3;i=Math.max(i,b)}),t.each(function(){var g=H0.select(this),h=g.select(".selector-rect"),y=g.select(".selector-text"),b=y.node()&&xD.bBox(y.node()).width,v=n.font.size*_D,x=U0.lineCount(y),k=Math.max(b+10,U2.minButtonWidth);g.attr("transform",wD(l+o,l)),h.attr({x:0,y:0,width:k,height:i}),U0.positionText(y,k/2,i/2-(x-1)*v/2+3),o+=k+5});var s=e._fullLayout._size,u=s.l+s.w*n.x,d=s.t+s.h*(1-n.y),f="left";tl.isRightAnchor(n)&&(u-=o,f="right"),tl.isCenterAnchor(n)&&(u-=o/2,f="center");var p="top";tl.isBottomAnchor(n)&&(d-=i,p="bottom"),tl.isMiddleAnchor(n)&&(d-=i/2,p="middle"),o=Math.ceil(o),i=Math.ceil(i),u=Math.round(u),d=Math.round(d),_xe.autoMargin(e,r+"-range-selector",{x:n.x,y:n.y,l:o*kD[f],r:o*TD[f],b:i*TD[p],t:i*kD[p]}),a.attr("transform",wD(u,d))}var Fxe={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:j2}}},layoutAttributes:j2,handleDefaults:hxe,draw:Sxe},W2={},SD=Zn.extendFlat;W2.attributes=function(e,t){e=e||{},t=t||{};var n={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]},r=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=t.description?" "+t.description:"",i={x:SD({},n,{description:["Sets the horizontal domain of this ",r,a,"(in plot fraction).",o].join("")}),y:SD({},n,{description:["Sets the vertical domain of this ",r,a,"(in plot fraction).",o].join("")}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",r,a,".",o].join("")},i.column={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",r,a,".",o].join("")}),i},W2.defaults=function(e,t,n,r){var a=r&&r.x||[0,1],o=r&&r.y||[0,1],i=t.grid;if(i){var l=n("domain.column");l!==void 0&&(l<i.columns?a=i._domains.x[l]:delete e.domain.column);var s=n("domain.row");s!==void 0&&(s<i.rows?o=i._domains.y[s]:delete e.domain.row)}var u=n("domain.x",a),d=n("domain.y",o);u[0]<u[1]||(e.domain.x=a.slice()),d[0]<d[1]||(e.domain.y=o.slice())};var Ixe=Ge,Dxe=nu.counter,Pxe=W2.attributes,AD=Jr.idRegex,Rxe=hn,G2={rows:{valType:"integer",min:1,editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Dxe("xy").toString(),""],editType:"plot"},editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[AD.x.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[AD.y.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:Pxe({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function q0(e,t,n){var r=t[n+"axes"],a=Object.keys((e._splomAxes||{})[n]||{});if(Array.isArray(r))return r;if(a.length)return a}function Nxe(e,t){var n=e.grid||{},r=q0(t,n,"x"),a=q0(t,n,"y");if(!e.grid&&!r&&!a)return;var o=Array.isArray(n.subplots)&&Array.isArray(n.subplots[0]),i=Array.isArray(r),l=Array.isArray(a),s=i&&r!==n.xaxes&&l&&a!==n.yaxes,u,d;o?(u=n.subplots.length,d=n.subplots[0].length):(l&&(u=a.length),i&&(d=r.length));var f=Rxe.newContainer(t,"grid");function p(T,C){return Ixe.coerce(n,f,G2,T,C)}var g=p("rows",u),h=p("columns",d);if(!(g*h>1)){delete t.grid;return}if(!o&&!i&&!l){var y=p("pattern")==="independent";y&&(o=!0)}f._hasSubplotGrid=o;var b=p("roworder"),v=b==="top to bottom",x=o?.2:.1,k=o?.3:.1,_,S;s&&t._splomGridDflt&&(_=t._splomGridDflt.xside,S=t._splomGridDflt.yside),f._domains={x:MD("x",p,x,_,h),y:MD("y",p,k,S,g,v)}}function MD(e,t,n,r,a,o){var i=t(e+"gap",n),l=t("domain."+e);t(e+"side",r);for(var s=new Array(a),u=l[0],d=(l[1]-u)/(a-i),f=d*(1-i),p=0;p<a;p++){var g=u+d*p;s[o?a-1-p:p]=[g,g+f]}return s}function Bxe(e,t){var n=t.grid;if(!(!n||!n._domains)){var r=e.grid||{},a=t._subplots,o=n._hasSubplotGrid,i=n.rows,l=n.columns,s=n.pattern==="independent",u,d,f,p,g,h,y,b=n._axisMap={};if(o){var v=r.subplots||[];h=n.subplots=new Array(i);var x=1;for(u=0;u<i;u++){var k=h[u]=new Array(l),_=v[u]||[];for(d=0;d<l;d++)if(s?(g=x===1?"xy":"x"+x+"y"+x,x++):g=_[d],k[d]="",a.cartesian.indexOf(g)!==-1){if(y=g.indexOf("y"),f=g.slice(0,y),p=g.slice(y),b[f]!==void 0&&b[f]!==d||b[p]!==void 0&&b[p]!==u)continue;k[d]=g,b[f]=d,b[p]=u}}}else{var S=q0(t,r,"x"),T=q0(t,r,"y");n.xaxes=CD(S,a.xaxis,l,b,"x"),n.yaxes=CD(T,a.yaxis,i,b,"y")}var C=n._anchors={},A=n.roworder==="top to bottom";for(var O in b){var F=O.charAt(0),R=n[F+"side"],N,B,V;if(R.length<8)C[O]="free";else if(F==="x"){if(R.charAt(0)==="t"===A?(N=0,B=1,V=i):(N=i-1,B=-1,V=-1),o){var Z=b[O];for(u=N;u!==V;u+=B)if(g=h[u][Z],!!g&&(y=g.indexOf("y"),g.slice(0,y)===O)){C[O]=g.slice(y);break}}else for(u=N;u!==V;u+=B)if(p=n.yaxes[u],a.cartesian.indexOf(O+p)!==-1){C[O]=p;break}}else if(R.charAt(0)==="l"?(N=0,B=1,V=l):(N=l-1,B=-1,V=-1),o){var G=b[O];for(u=N;u!==V;u+=B)if(g=h[G][u],!!g&&(y=g.indexOf("y"),g.slice(y)===O)){C[O]=g.slice(0,y);break}}else for(u=N;u!==V;u+=B)if(f=n.xaxes[u],a.cartesian.indexOf(f+O)!==-1){C[O]=f;break}}}}function CD(e,t,n,r,a){var o=new Array(n),i;function l(s,u){t.indexOf(u)!==-1&&r[u]===void 0?(o[s]=u,r[u]=s):o[s]=""}if(Array.isArray(e))for(i=0;i<n;i++)l(i,e[i]);else for(l(0,a),i=1;i<n;i++)l(i,a+(i+1));return o}var jxe={moduleType:"component",name:"grid",schema:{layout:{grid:G2}},layoutAttributes:G2,sizeDefaults:Nxe,contentDefaults:Bxe},OD={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},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",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}},Z2,ED;function Vxe(){if(ED)return Z2;ED=1;var e=en,t=Dt,n=Ge,r=hn,a=OD;return Z2=function(o,i,l,s){var u="error_"+s.axis,d=r.newContainer(i,u),f=o[u]||{};function p(k,_){return n.coerce(f,d,a,k,_)}var g=f.array!==void 0||f.value!==void 0||f.type==="sqrt",h=p("visible",g);if(h!==!1){var y=p("type","array"in f?"data":"percent"),b=!0;y!=="sqrt"&&(b=p("symmetric",!((y==="data"?"arrayminus":"valueminus")in f))),y==="data"?(p("array"),p("traceref"),b||(p("arrayminus"),p("tracerefminus"))):(y==="percent"||y==="constant")&&(p("value"),b||p("valueminus"));var v="copy_"+s.inherit+"style";if(s.inherit){var x=i["error_"+s.inherit];(x||{}).visible&&p(v,!(f.color||e(f.thickness)||e(f.width)))}(!s.inherit||!d[v])&&(p("color",l),p("thickness"),p("width",t.traceIs(i,"gl3d")?0:4))}},Z2}var K2,LD;function zD(){if(LD)return K2;LD=1,K2=function(t){var n=t.type,r=t.symmetric;if(n==="data"){var a=t.array||[];if(r)return function(s,u){var d=+a[u];return[d,d]};var o=t.arrayminus||[];return function(s,u){var d=+a[u],f=+o[u];return!isNaN(d)||!isNaN(f)?[f||0,d||0]:[NaN,NaN]}}else{var i=e(n,t.value),l=e(n,t.valueminus);return r||t.valueminus===void 0?function(s){var u=i(s);return[u,u]}:function(s){return[l(s),i(s)]}}};function e(t,n){if(t==="percent")return function(r){return Math.abs(r*n/100)};if(t==="constant")return function(){return Math.abs(n)};if(t==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}return K2}var Y2,FD;function Hxe(){if(FD)return Y2;FD=1;var e=en,t=Dt,n=bn,r=Ge,a=zD();Y2=function(i){for(var l=i.calcdata,s=0;s<l.length;s++){var u=l[s],d=u[0].trace;if(d.visible===!0&&t.traceIs(d,"errorBarsOK")){var f=n.getFromId(i,d.xaxis),p=n.getFromId(i,d.yaxis);o(u,d,f,"x"),o(u,d,p,"y")}}};function o(i,l,s,u){var d=l["error_"+u]||{},f=d.visible&&["linear","log"].indexOf(s.type)!==-1,p=[];if(f){for(var g=a(d),h=0;h<i.length;h++){var y=i[h],b=y.i;if(b===void 0)b=h;else if(b===null)continue;var v=y[u];if(e(s.c2l(v))){var x=g(v,b);if(e(x[0])&&e(x[1])){var k=y[u+"s"]=v-x[0],_=y[u+"h"]=v+x[1];p.push(k,_)}}}var S=s._id,T=l._extremes[S],C=n.findExtremes(s,p,r.extendFlat({tozero:T.opts.tozero},{padded:!0}));T.min=T.min.concat(C.min),T.max=T.max.concat(C.max)}}return Y2}var J2,ID;function Uxe(){if(ID)return J2;ID=1;var e=$t,t=en,n=gn,r=Wa;J2=function(o,i,l,s){var u,d=l.xaxis,f=l.yaxis,p=s&&s.duration>0,g=o._context.staticPlot;i.each(function(h){var y=h[0].trace,b=y.error_x||{},v=y.error_y||{},x;y.ids&&(x=function(T){return T.id});var k=r.hasMarkers(y)&&y.marker.maxdisplayed>0;!v.visible&&!b.visible&&(h=[]);var _=e.select(this).selectAll("g.errorbar").data(h,x);if(_.exit().remove(),!!h.length){b.visible||_.selectAll("path.xerror").remove(),v.visible||_.selectAll("path.yerror").remove(),_.style("opacity",1);var S=_.enter().append("g").classed("errorbar",!0);p&&S.style("opacity",0).transition().duration(s.duration).style("opacity",1),n.setClipUrl(_,l.layerClipId,o),_.each(function(T){var C=e.select(this),A=a(T,d,f);if(!(k&&!T.vis)){var O,F=C.select("path.yerror");if(v.visible&&t(A.x)&&t(A.yh)&&t(A.ys)){var R=v.width;O="M"+(A.x-R)+","+A.yh+"h"+2*R+"m-"+R+",0V"+A.ys,A.noYS||(O+="m-"+R+",0h"+2*R),u=!F.size(),u?F=C.append("path").style("vector-effect",g?"none":"non-scaling-stroke").classed("yerror",!0):p&&(F=F.transition().duration(s.duration).ease(s.easing)),F.attr("d",O)}else F.remove();var N=C.select("path.xerror");if(b.visible&&t(A.y)&&t(A.xh)&&t(A.xs)){var B=(b.copy_ystyle?v:b).width;O="M"+A.xh+","+(A.y-B)+"v"+2*B+"m0,-"+B+"H"+A.xs,A.noXS||(O+="m0,-"+B+"v"+2*B),u=!N.size(),u?N=C.append("path").style("vector-effect",g?"none":"non-scaling-stroke").classed("xerror",!0):p&&(N=N.transition().duration(s.duration).ease(s.easing)),N.attr("d",O)}else N.remove()}})}})};function a(o,i,l){var s={x:i.c2p(o.x),y:l.c2p(o.y)};return o.yh!==void 0&&(s.yh=l.c2p(o.yh),s.ys=l.c2p(o.ys),t(s.ys)||(s.noYS=!0,s.ys=l.c2p(o.ys,!0))),o.xh!==void 0&&(s.xh=i.c2p(o.xh),s.xs=i.c2p(o.xs),t(s.xs)||(s.noXS=!0,s.xs=i.c2p(o.xs,!0))),s}return J2}var Q2,DD;function qxe(){if(DD)return Q2;DD=1;var e=$t,t=Kt;return Q2=function(n){n.each(function(r){var a=r[0].trace,o=a.error_y||{},i=a.error_x||{},l=e.select(this);l.selectAll("path.yerror").style("stroke-width",o.thickness+"px").call(t.stroke,o.color),i.copy_ystyle&&(i=o),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(t.stroke,i.color)})},Q2}var Sp=Ge,PD=Gi.overrideAll,Ap=OD,rc={error_x:Sp.extendFlat({},Ap),error_y:Sp.extendFlat({},Ap)};delete rc.error_x.copy_zstyle,delete rc.error_y.copy_zstyle,delete rc.error_y.copy_ystyle;var Mp={error_x:Sp.extendFlat({},Ap),error_y:Sp.extendFlat({},Ap),error_z:Sp.extendFlat({},Ap)};delete Mp.error_x.copy_ystyle,delete Mp.error_y.copy_ystyle,delete Mp.error_z.copy_ystyle,delete Mp.error_z.copy_zstyle;var Wxe={moduleType:"component",name:"errorbars",schema:{traces:{scatter:rc,bar:rc,histogram:rc,scatter3d:PD(Mp,"calc","nested"),scattergl:PD(rc,"calc","nested")}},supplyDefaults:Vxe(),calc:Hxe(),makeComputeError:zD(),plot:Uxe(),style:qxe(),hoverInfo:Gxe};function Gxe(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}var Zxe={cn:{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"}},Xl=$t,X2=ko,W0=wr,RD=Dt,nl=bn,G0=di,ro=Ge,Po=ro.strTranslate,ND=Zn.extendFlat,$2=qs,Ro=gn,e_=Kt,Kxe=ig,Yxe=Ir,Jxe=Mo.flipScale,Qxe=GF,Xxe=KF,$xe=ii,t_=Br,BD=t_.LINE_SPACING,jD=t_.FROM_TL,VD=t_.FROM_BR,Ln=Zxe.cn;function e1e(e){var t=e._fullLayout,n=t._infolayer.selectAll("g."+Ln.colorbar).data(t1e(e),function(r){return r._id});n.enter().append("g").attr("class",function(r){return r._id}).classed(Ln.colorbar,!0),n.each(function(r){var a=Xl.select(this);ro.ensureSingle(a,"rect",Ln.cbbg),ro.ensureSingle(a,"g",Ln.cbfills),ro.ensureSingle(a,"g",Ln.cblines),ro.ensureSingle(a,"g",Ln.cbaxis,function(i){i.classed(Ln.crisp,!0)}),ro.ensureSingle(a,"g",Ln.cbtitleunshift,function(i){i.append("g").classed(Ln.cbtitle,!0)}),ro.ensureSingle(a,"rect",Ln.cboutline);var o=n1e(a,r,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&r1e(a,r,e)}),n.exit().each(function(r){W0.autoMargin(e,r._id)}).remove(),n.order()}function t1e(e){var t=e._fullLayout,n=e.calcdata,r=[],a,o,i,l;function s(k){return ND(k,{_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,i,a):(a._fillgradient=o.reversescale?Jxe(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var d=0;d<n.length;d++){var f=n[d];if(i=f[0].trace,!!i._module){var p=i._module.colorbar;if(i.visible===!0&&p)for(var g=Array.isArray(p),h=g?p:[p],y=0;y<h.length;y++){l=h[y];var b=l.container;o=b?i[b]:i,o&&o.showscale&&(a=s(o.colorbar),a._id="cb"+i.uid+(g&&b?"-"+b:""),a._traceIndex=i.index,a._propPrefix=(b?b+".":"")+"colorbar.",a._meta=i._meta,u(),r.push(a))}}}for(var v in t._colorAxes)if(o=t[v],o.showscale){var x=t._colorAxes[v];a=s(o.colorbar),a._id="cb"+v,a._propPrefix=v+".colorbar.",a._meta=t._meta,l={min:"cmin",max:"cmax"},x[0]!=="heatmap"&&(i=x[1],l.calc=i._module.colorbar.calc),u(),r.push(a)}return r}function n1e(e,t,n){var r=t.orientation==="v",a=t.len,o=t.lenmode,i=t.thickness,l=t.thicknessmode,s=t.outlinewidth,u=t.borderwidth,d=t.bgcolor,f=t.xanchor,p=t.yanchor,g=t.xpad,h=t.ypad,y=t.x,b=r?t.y:1-t.y,v=t.yref==="paper",x=t.xref==="paper",k=n._fullLayout,_=k._size,S=t._fillcolor,T=t._line,C=t.title,A=C.side,O=t._zrange||Xl.extent((typeof S=="function"?S:T.color).domain()),F=typeof T.color=="function"?T.color:function(){return T.color},R=typeof S=="function"?S:function(){return S},N=t._levels,B=a1e(n,t,O),V=B.fill,Z=B.line,G=Math.round(i*(l==="fraction"?r?_.w:_.h:1)),I=G/(r?_.w:_.h),P=Math.round(a*(o==="fraction"?r?_.h:_.w:1)),z=P/(r?_.h:_.w),H=x?_.w:n._fullLayout.width,j=v?_.h:n._fullLayout.height,q=Math.round(r?y*H+g:b*j+h),$={center:.5,right:1}[f]||0,ne={top:1,middle:.5}[p]||0,te=r?y-$*I:b-ne*I,ee=r?b-ne*z:y-$*z,se=Math.round(r?j*(1-ee):H*ee);t._lenFrac=z,t._thickFrac=I,t._uFrac=te,t._vFrac=ee;var U=t._axis=o1e(n,t,O);U.position=I+(r?y+g/_.w:b+h/_.h);var Y=["top","bottom"].indexOf(A)!==-1;if(r&&Y&&(U.title.side=A,U.titlex=y+g/_.w,U.titley=ee+(C.side==="top"?z-h/_.h:h/_.h)),!r&&!Y&&(U.title.side=A,U.titley=b+h/_.h,U.titlex=ee+g/_.w),T.color&&t.tickmode==="auto"){U.tickmode="linear",U.tick0=N.start;var J=N.size,re=ro.constrain(P/50,4,15)+1,oe=(O[1]-O[0])/((t.nticks||re)*J);if(oe>1){var he=Math.pow(10,Math.floor(Math.log(oe)/Math.LN10));J*=he*ro.roundUp(oe/he,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(U.tick0=0)}U.dtick=J}U.domain=r?[ee+h/_.h,ee+z-h/_.h]:[ee+g/_.w,ee+z-g/_.w],U.setScale(),e.attr("transform",Po(Math.round(_.l),Math.round(_.t)));var ve=e.select("."+Ln.cbtitleunshift).attr("transform",Po(-Math.round(_.l),-Math.round(_.t))),ge=U.ticklabelposition,xe=U.title.font.size,Le=e.select("."+Ln.cbaxis),Ue,Pe=0,De=0;function je(Re,Je){var it={propContainer:U,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:k._dfltTitle.colorbar,containerGroup:e.select("."+Ln.cbtitle)},dt=Re.charAt(0)==="h"?Re.substr(1):"h"+Re;e.selectAll("."+dt+",."+dt+"-math-group").remove(),Kxe.draw(n,Re,ND(it,Je||{}))}function qe(){if(r&&Y||!r&&!Y){var Re,Je;A==="top"&&(Re=g+_.l+H*y,Je=h+_.t+j*(1-ee-z)+3+xe*.75),A==="bottom"&&(Re=g+_.l+H*y,Je=h+_.t+j*(1-ee)-3-xe*.25),A==="right"&&(Je=h+_.t+j*b+3+xe*.75,Re=g+_.l+H*ee),je(U._id+"title",{attributes:{x:Re,y:Je,"text-anchor":r?"start":"middle"}})}}function Ee(){if(r&&!Y||!r&&Y){var Re=U.position||0,Je=U._offset+U._length/2,it,dt;if(A==="right")dt=Je,it=_.l+H*Re+10+xe*(U.showticklabels?1:.5);else if(it=Je,A==="bottom"&&(dt=_.t+j*Re+10+(ge.indexOf("inside")===-1?U.tickfont.size:0)+(U.ticks!=="intside"&&t.ticklen||0)),A==="top"){var at=C.text.split("<br>").length;dt=_.t+j*Re+10-G-BD*xe*at}je((r?"h":"v")+U._id+"title",{avoid:{selection:Xl.select(n).selectAll("g."+U._id+"tick"),side:A,offsetTop:r?0:_.t,offsetLeft:r?_.l:0,maxShift:r?k.width:k.height},attributes:{x:it,y:dt,"text-anchor":"middle"},transform:{rotate:r?-90:0,offset:0}})}}function _e(){if(!r&&!Y||r&&Y){var Re=e.select("."+Ln.cbtitle),Je=Re.select("text"),it=[-s/2,s/2],dt=Re.select(".h"+U._id+"title-math-group").node(),at=15.6;Je.node()&&(at=parseInt(Je.node().style.fontSize,10)*BD);var lt;if(dt?(lt=Ro.bBox(dt),De=lt.width,Pe=lt.height,Pe>at&&(it[1]-=(Pe-at)/2)):Je.node()&&!Je.classed(Ln.jsPlaceholder)&&(lt=Ro.bBox(Je.node()),De=lt.width,Pe=lt.height),r){if(Pe){if(Pe+=5,A==="top")U.domain[1]-=Pe/_.h,it[1]*=-1;else{U.domain[0]+=Pe/_.h;var He=Yxe.lineCount(Je);it[1]+=(1-He)*at}Re.attr("transform",Po(it[0],it[1])),U.setScale()}}else De&&(A==="right"&&(U.domain[0]+=(De+xe/2)/_.w),Re.attr("transform",Po(it[0],it[1])),U.setScale())}e.selectAll("."+Ln.cbfills+",."+Ln.cblines).attr("transform",r?Po(0,Math.round(_.h*(1-U.domain[1]))):Po(Math.round(_.w*U.domain[0]),0)),Le.attr("transform",r?Po(0,Math.round(-_.t)):Po(Math.round(-_.l),0));var Be=e.select("."+Ln.cbfills).selectAll("rect."+Ln.cbfill).attr("style","").data(V);Be.enter().append("rect").classed(Ln.cbfill,!0).attr("style",""),Be.exit().remove();var Ze=O.map(U.c2p).map(Math.round).sort(function(gt,Ve){return gt-Ve});Be.each(function(gt,Ve){var rt=[Ve===0?O[0]:(V[Ve]+V[Ve-1])/2,Ve===V.length-1?O[1]:(V[Ve]+V[Ve+1])/2].map(U.c2p).map(Math.round);r&&(rt[1]=ro.constrain(rt[1]+(rt[1]>rt[0])?1:-1,Ze[0],Ze[1]));var ft=Xl.select(this).attr(r?"x":"y",q).attr(r?"y":"x",Xl.min(rt)).attr(r?"width":"height",Math.max(G,2)).attr(r?"height":"width",Math.max(Xl.max(rt)-Xl.min(rt),2));if(t._fillgradient)Ro.gradient(ft,n,t._id,r?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var wt=R(gt).replace("e-","");ft.attr("fill",X2(wt).toHexString())}});var Ye=e.select("."+Ln.cblines).selectAll("path."+Ln.cbline).data(T.color&&T.width?Z:[]);Ye.enter().append("path").classed(Ln.cbline,!0),Ye.exit().remove(),Ye.each(function(gt){var Ve=q,rt=Math.round(U.c2p(gt))+T.width/2%1;Xl.select(this).attr("d","M"+(r?Ve+","+rt:rt+","+Ve)+(r?"h":"v")+G).call(Ro.lineGroupStyle,T.width,F(gt),T.dash)}),Le.selectAll("g."+U._id+"tick,path").remove();var et=q+G+(s||0)/2-(t.ticks==="outside"?1:0),st=nl.calcTicks(U),nt=nl.getTickSigns(U)[2];return nl.drawTicks(n,U,{vals:U.ticks==="inside"?nl.clipEnds(U,st):st,layer:Le,path:nl.makeTickPath(U,et,nt),transFn:nl.makeTransTickFn(U)}),nl.drawLabels(n,U,{vals:st,layer:Le,transFn:nl.makeTransTickLabelFn(U),labelFns:nl.makeLabelFns(U,et)})}function we(){var Re,Je=G+s/2;ge.indexOf("inside")===-1&&(Re=Ro.bBox(Le.node()),Je+=r?Re.width:Re.height),Ue=ve.select("text");var it=0,dt=r&&A==="top",at=!r&&A==="right",lt=0;if(Ue.node()&&!Ue.classed(Ln.jsPlaceholder)){var He,Be=ve.select(".h"+U._id+"title-math-group").node();Be&&(r&&Y||!r&&!Y)?(Re=Ro.bBox(Be),it=Re.width,He=Re.height):(Re=Ro.bBox(ve.node()),it=Re.right-_.l-(r?q:se),He=Re.bottom-_.t-(r?se:q),!r&&A==="top"&&(Je+=Re.height,lt=Re.height)),at&&(Ue.attr("transform",Po(it/2+xe/2,0)),it*=2),Je=Math.max(Je,r?it:He)}var Ze=(r?g:h)*2+Je+u+s/2,Ye=0;!r&&C.text&&p==="bottom"&&b<=0&&(Ye=Ze/2,Ze+=Ye,lt+=Ye),k._hColorbarMoveTitle=Ye,k._hColorbarMoveCBTitle=lt;var et=u+s,st=(r?q:se)-et/2-(r?g:0),nt=(r?se:q)-(r?P:h+lt-Ye);e.select("."+Ln.cbbg).attr("x",st).attr("y",nt).attr(r?"width":"height",Math.max(Ze-Ye,2)).attr(r?"height":"width",Math.max(P+et,2)).call(e_.fill,d).call(e_.stroke,t.bordercolor).style("stroke-width",u);var gt=at?Math.max(it-10,0):0;e.selectAll("."+Ln.cboutline).attr("x",(r?q:se+g)+gt).attr("y",(r?se+h-P:q)+(dt?Pe:0)).attr(r?"width":"height",Math.max(G,2)).attr(r?"height":"width",Math.max(P-(r?2*h+Pe:2*g+gt),2)).call(e_.stroke,t.outlinecolor).style({fill:"none","stroke-width":s});var Ve=r?$*Ze:0,rt=r?0:(1-ne)*Ze-lt;if(Ve=x?_.l-Ve:-Ve,rt=v?_.t-rt:-rt,e.attr("transform",Po(Ve,rt)),!r&&(u||X2(d).getAlpha()&&!X2.equals(k.paper_bgcolor,d))){var ft=Le.selectAll("text"),wt=ft[0].length,tt=e.select("."+Ln.cbbg).node(),pt=Ro.bBox(tt),Ke=Ro.getTranslate(e),Ot=2;ft.each(function(be,Ne){var $e=0,ot=wt-1;if(Ne===$e||Ne===ot){var St=Ro.bBox(this),Et=Ro.getTranslate(this),_t;if(Ne===ot){var kt=St.right+Et.x,Jt=pt.right+Ke.x+se-u-Ot+y;_t=Jt-kt,_t>0&&(_t=0)}else if(Ne===$e){var Rt=St.left+Et.x,xt=pt.left+Ke.x+se+u+Ot;_t=xt-Rt,_t<0&&(_t=0)}_t&&(wt<3?this.setAttribute("transform","translate("+_t+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var X={},ue=jD[f],de=VD[f],ce=jD[p],Oe=VD[p],Te=Ze-G;r?(o==="pixels"?(X.y=b,X.t=P*ce,X.b=P*Oe):(X.t=X.b=0,X.yt=b+a*ce,X.yb=b-a*Oe),l==="pixels"?(X.x=y,X.l=Ze*ue,X.r=Ze*de):(X.l=Te*ue,X.r=Te*de,X.xl=y-i*ue,X.xr=y+i*de)):(o==="pixels"?(X.x=y,X.l=P*ue,X.r=P*de):(X.l=X.r=0,X.xl=y+a*ue,X.xr=y-a*de),l==="pixels"?(X.y=1-b,X.t=Ze*ce,X.b=Ze*Oe):(X.t=Te*ce,X.b=Te*Oe,X.yt=b-i*ce,X.yb=b+i*Oe));var We=t.y<.5?"b":"t",ie=t.x<.5?"l":"r";n._fullLayout._reservedMargin[t._id]={};var fe={r:k.width-st-Ve,l:st+X.r,b:k.height-nt-rt,t:nt+X.b};x&&v?W0.autoMargin(n,t._id,X):x?n._fullLayout._reservedMargin[t._id][We]=fe[We]:v||r?n._fullLayout._reservedMargin[t._id][ie]=fe[ie]:n._fullLayout._reservedMargin[t._id][We]=fe[We]}return ro.syncOrAsync([W0.previousPromises,qe,_e,Ee,W0.previousPromises,we],n)}function r1e(e,t,n){var r=t.orientation==="v",a=n._fullLayout,o=a._size,i,l,s;G0.init({element:e.node(),gd:n,prepFn:function(){i=e.attr("transform"),$2(e)},moveFn:function(u,d){e.attr("transform",i+Po(u,d)),l=G0.align((r?t._uFrac:t._vFrac)+u/o.w,r?t._thickFrac:t._lenFrac,0,1,t.xanchor),s=G0.align((r?t._vFrac:1-t._uFrac)-d/o.h,r?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=G0.getCursor(l,s,t.xanchor,t.yanchor);$2(e,f)},doneFn:function(){if($2(e),l!==void 0&&s!==void 0){var u={};u[t._propPrefix+"x"]=l,u[t._propPrefix+"y"]=s,t._traceIndex!==void 0?RD.call("_guiRestyle",n,u,t._traceIndex):RD.call("_guiRelayout",n,u)}}})}function a1e(e,t,n){var r=t._levels,a=[],o=[],i,l,s=r.end+r.size/100,u=r.size,d=1.001*n[0]-.001*n[1],f=1.001*n[1]-.001*n[0];for(l=0;l<1e5&&(i=r.start+l*u,!(u>0?i>=s:i<=s));l++)i>d&&i<f&&a.push(i);if(t._fillgradient)o=[0];else if(typeof t._fillcolor=="function"){var p=t._filllevels;if(p)for(s=p.end+p.size/100,u=p.size,l=0;l<1e5&&(i=p.start+l*u,!(u>0?i>=s:i<=s));l++)i>n[0]&&i<n[1]&&o.push(i);else o=a.map(function(g){return g-r.size/2}),o.push(o[o.length-1]+r.size)}else t._fillcolor&&typeof t._fillcolor=="string"&&(o=[0]);return r.size<0&&(a.reverse(),o.reverse()),{line:a,fill:o}}function o1e(e,t,n){var r=e._fullLayout,a=t.orientation==="v",o={type:"linear",range:n,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,labelalias:t.labelalias,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:a?"right":"bottom",position:1},i=a?"y":"x",l={type:"linear",_id:i+t._id},s={letter:i,font:r.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:r.calendar};function u(d,f){return ro.coerce(o,l,$xe,d,f)}return Qxe(o,l,u,s,r),Xxe(o,l,u,s),l}var i1e={draw:e1e},l1e={moduleType:"component",name:"colorbar",attributes:Ex,supplyDefaults:i8,draw:i1e.draw,hasColorbar:YO},s1e={moduleType:"component",name:"legend",layoutAttributes:E6,supplyLayoutDefaults:L6,draw:Y6,style:j6},c1e={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"}},u1e={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}},d1e=Dt,HD=Ge,n_=HD.extendFlat,UD=HD.extendDeep;function qD(e){var t;switch(e){case"themes__thumb":t={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":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function f1e(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}var WD=function(e,t){var n,r=e.data,a=e.layout,o=UD([],r),i=UD({},a,qD(t.tileClass)),l=e._context||{};if(t.width&&(i.width=t.width),t.height&&(i.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){i.annotations=[];var s=Object.keys(i);for(n=0;n<s.length;n++)f1e(s[n])&&(i[s[n]].title={text:""});for(n=0;n<o.length;n++){var u=o[n];u.showscale=!1,u.marker&&(u.marker.showscale=!1),d1e.traceIs(u,"pie-like")&&(u.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)i.annotations.push(t.annotations[n]);var d=Object.keys(i).filter(function(y){return y.match(/^scene\d*$/)});if(d.length){var f={};for(t.tileClass==="thumbnail"&&(f={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<d.length;n++){var p=i[d[n]];p.xaxis||(p.xaxis={}),p.yaxis||(p.yaxis={}),p.zaxis||(p.zaxis={}),n_(p.xaxis,f),n_(p.yaxis,f),n_(p.zaxis,f),p._scene=null}}var g=document.createElement("div");t.tileClass&&(g.className=t.tileClass);var h={gd:g,td:g,layout:i,data:o,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:l.mapboxAccessToken}};return t.setBackground!=="transparent"&&(h.config.setBackground=t.setBackground||"opaque"),h.gd.defaultLayout=qD(t.tileClass),h},p1e=vx.EventEmitter,h1e=Dt,m1e=Ge,GD=Ur,g1e=WD,y1e=jw,v1e=Vw;function b1e(e,t){var n=new p1e,r=g1e(e,{format:"png"}),a=r.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=GD.getDelay(a._fullLayout);setTimeout(function(){var s=y1e(a),u=document.createElement("canvas");u.id=m1e.randstr(),n=v1e({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:n,svg:s}),n.clean=function(){a&&document.body.removeChild(a)}},l)}var i=GD.getRedrawFunc(a);return h1e.call("_doPlot",a,r.data,r.layout,r.config).then(i).then(o).catch(function(l){n.emit("error",l)}),n}var x1e=b1e,ZD=Ur,w1e={getDelay:ZD.getDelay,getRedrawFunc:ZD.getRedrawFunc,clone:WD,toSVG:jw,svgToImg:Vw,toImage:x1e,downloadImage:Vz},_1e=w1e;(function(e){e.version=cm.version;for(var t=Dt,n=e.register=t.register,r=An,a=Object.keys(r),o=0;o<a.length;o++){var i=a[o];i.charAt(0)!=="_"&&(e[i]=r[i]),n({moduleType:"apiMethod",name:i,fn:r[i]})}n(rI),n([ive,Tve,ap,Vve,ebe,Sbe,Qbe,lxe,Fxe,jxe,Wxe,Lf,l1e,s1e,Xi,uL]),n([c1e,u1e]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(n(window.PlotlyLocales),delete window.PlotlyLocales),e.Icons=G1;var l=Xi,s=wr;e.Plots={resize:s.resize,graphJson:s.graphJson,sendDataToCloud:s.sendDataToCloud},e.Fx={hover:l.hover,unhover:l.unhover,loneHover:l.loneHover,loneUnhover:l.loneUnhover},e.Snapshot=_1e,e.PlotSchema=uu})(SC);var k1e=SC;const Cp=nf(k1e);var T1e=rI;const S1e=nf(T1e);var KD={TEXTPAD:3,eventDataKeys:["value","label"]},Un=Qs,YD=Qm.axisHoverFormat,A1e=So.hovertemplateAttrs,M1e=So.texttemplateAttrs,JD=Ef,C1e=Fr,QD=KD,O1e=ni.pattern,ac=Zn.extendFlat,r_=C1e({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),E1e=Un.marker,L1e=E1e.line,z1e=ac({},L1e.width,{dflt:0}),F1e=ac({width:z1e,editType:"calc"},JD("marker.line")),I1e=ac({line:F1e,editType:"calc"},JD("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:O1e}),Z0={x:Un.x,x0:Un.x0,dx:Un.dx,y:Un.y,y0:Un.y0,dy:Un.dy,xperiod:Un.xperiod,yperiod:Un.yperiod,xperiod0:Un.xperiod0,yperiod0:Un.yperiod0,xperiodalignment:Un.xperiodalignment,yperiodalignment:Un.yperiodalignment,xhoverformat:YD("x"),yhoverformat:YD("y"),text:Un.text,texttemplate:M1e({editType:"plot"},{keys:QD.eventDataKeys}),hovertext:Un.hovertext,hovertemplate:A1e({},{keys:QD.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside.","If *none*, no text appears."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:ac({},r_,{description:"Sets the font used for `text`."}),insidetextfont:ac({},r_,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:ac({},r_,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:ac({},Un.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:I1e,offsetgroup:Un.offsetgroup,alignmentgroup:Un.alignmentgroup,selected:{marker:{opacity:Un.selected.marker.opacity,color:Un.selected.marker.color,editType:"style"},textfont:Un.selected.textfont,editType:"style"},unselected:{marker:{opacity:Un.unselected.marker.opacity,color:Un.unselected.marker.color,editType:"style"},textfont:Un.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}},XD={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}},D1e=Kt,$D=Mo.hasColorscale,e9=hu,P1e=Ge.coercePattern,R1e=function(e,t,n,r,a){var o=n("marker.color",r),i=$D(e,"marker");i&&e9(e,t,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",D1e.defaultLine),$D(e,"marker.line")&&e9(e,t,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),P1e(n,"marker.pattern",o,i),n("selected.marker.color"),n("unselected.marker.color")},Qu=Ge,t9=Kt,N1e=Dt,B1e=Zz,j1e=Gw,V1e=R1e,H1e=rF,n9=Z0,K0=Qu.coerceFont;function U1e(e,t,n,r){function a(u,d){return Qu.coerce(e,t,n9,u,d)}var o=B1e(e,t,r,a);if(!o){t.visible=!1;return}j1e(e,t,r,a),a("xhoverformat"),a("yhoverformat"),a("orientation",t.x&&!t.y?"h":"v"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate");var i=a("textposition");r9(e,t,r,a,i,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),V1e(e,t,a,n,r);var l=(t.marker.line||{}).color,s=N1e.getComponentMethod("errorbars","supplyDefaults");s(e,t,l||t9.defaultLine,{axis:"y"}),s(e,t,l||t9.defaultLine,{axis:"x",inherit:"y"}),Qu.coerceSelectionMarkerOpacity(t,a)}function q1e(e,t){var n,r;function a(i){return Qu.coerce(r._input,r,n9,i)}if(t.barmode==="group")for(var o=0;o<e.length;o++)r=e[o],r.type==="bar"&&(n=r._input,H1e(n,r,t,a))}function r9(e,t,n,r,a,o){o=o||{};var i=o.moduleHasSelected!==!1,l=o.moduleHasUnselected!==!1,s=o.moduleHasConstrain!==!1,u=o.moduleHasCliponaxis!==!1,d=o.moduleHasTextangle!==!1,f=o.moduleHasInsideanchor!==!1,p=!!o.hasPathbar,g=Array.isArray(a)||a==="auto",h=g||a==="inside",y=g||a==="outside";if(h||y){var b=K0(r,"textfont",n.font),v=Qu.extendFlat({},b),x=e.textfont&&e.textfont.color,k=!x;if(k&&delete v.color,K0(r,"insidetextfont",v),p){var _=Qu.extendFlat({},b);k&&delete _.color,K0(r,"pathbar.textfont",_)}y&&K0(r,"outsidetextfont",b),i&&r("selected.textfont.color"),l&&r("unselected.textfont.color"),s&&r("constraintext"),u&&r("cliponaxis"),d&&r("textangle"),r("texttemplate")}h&&f&&r("insidetextanchor")}var a9={supplyDefaults:U1e,crossTraceDefaults:q1e,handleText:r9},W1e=Dt,G1e=bn,Z1e=Ge,K1e=XD,Y1e=function(e,t,n){function r(g,h){return Z1e.coerce(e,t,K1e,g,h)}for(var a=!1,o=!1,i=!1,l={},s=r("barmode"),u=0;u<n.length;u++){var d=n[u];if(W1e.traceIs(d,"bar")&&d.visible)a=!0;else continue;if(s==="group"){var f=d.xaxis+d.yaxis;l[f]&&(i=!0),l[f]=!0}if(d.visible&&d.type==="histogram"){var p=G1e.getFromId({_fullLayout:t},d[d.orientation==="v"?"xaxis":"yaxis"]);p.type!=="category"&&(o=!0)}}if(!a){delete t.barmode;return}s!=="overlay"&&r("barnorm"),r("bargap",o&&!i?0:.2),r("bargroupgap")},Xu=Ge,a_=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;Xu.mergeArray(t.text,e,"tx"),Xu.mergeArray(t.hovertext,e,"htx");var r=t.marker;if(r){Xu.mergeArray(r.opacity,e,"mo",!0),Xu.mergeArray(r.color,e,"mc");var a=r.line;a&&(Xu.mergeArray(a.color,e,"mlc"),Xu.mergeArrayCastPositive(a.width,e,"mlw"))}},o9=bn,i9=w0,l9=Mo.hasColorscale,s9=tg,J1e=a_,Q1e=sF,X1e=function(e,t){var n=o9.getFromId(e,t.xaxis||"x"),r=o9.getFromId(e,t.yaxis||"y"),a,o,i,l,s,u,d={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(a=n.makeCalcdata(t,"x",d),i=r.makeCalcdata(t,"y"),l=i9(t,r,"y",i),s=!!t.yperiodalignment,u="y"):(a=r.makeCalcdata(t,"y",d),i=n.makeCalcdata(t,"x"),l=i9(t,n,"x",i),s=!!t.xperiodalignment,u="x"),o=l.vals;for(var f=Math.min(o.length,a.length),p=new Array(f),g=0;g<f;g++)p[g]={p:o[g],s:a[g]},s&&(p[g].orig_p=i[g],p[g][u+"End"]=l.ends[g],p[g][u+"Start"]=l.starts[g]),t.ids&&(p[g].id=String(t.ids[g]));return l9(t,"marker")&&s9(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),l9(t,"marker.line")&&s9(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),J1e(p,t),Q1e(p,t),p},$1e=$t,ewe=Ge;function twe(e,t,n){var r=e._fullLayout,a=r["_"+n+"Text_minsize"];if(a){var o=r.uniformtext.mode==="hide",i;switch(n){case"funnelarea":case"pie":case"sunburst":i="g.slice";break;case"treemap":case"icicle":i="g.slice, g.pathbar";break;default:i="g.points > g.point"}t.selectAll(i).each(function(l){var s=l.transform;if(s){s.scale=o&&s.hide?0:a/s.fontSize;var u=$1e.select(this).select("text");ewe.setTransormAndDisplay(u,s)}})}}function nwe(e,t,n){if(n.uniformtext.mode){var r=c9(e),a=n.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<a,n[r]=n[r]||1/0,t.hide||(n[r]=Math.min(n[r],Math.max(o,a)))}}function rwe(e,t){var n=c9(e);t[n]=void 0}function c9(e){return"_"+e+"Text_minsize"}var u9={recordMinTextSize:nwe,clearMinTextSize:rwe,resizeText:twe},rl={},awe=en,owe=ko,d9=Ge.isArrayOrTypedArray;rl.coerceString=function(e,t,n){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return n!==void 0?n:e.dflt},rl.coerceNumber=function(e,t,n){if(awe(t)){t=+t;var r=e.min,a=e.max,o=r!==void 0&&t<r||a!==void 0&&t>a;if(!o)return t}return n!==void 0?n:e.dflt},rl.coerceColor=function(e,t,n){return owe(t).isValid()?t:n!==void 0?n:e.dflt},rl.coerceEnumerated=function(e,t,n){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:n!==void 0?n:e.dflt},rl.getValue=function(e,t){var n;return d9(e)?t<e.length&&(n=e[t]):n=e,n},rl.getLineWidth=function(e,t){var n=0<t.mlw?t.mlw:d9(e.marker.line.width)?0:e.marker.line.width;return n};var Op=$t,iwe=Kt,Ep=gn,f9=Ge,p9=Dt,h9=u9.resizeText,o_=Z0,lwe=o_.textfont,swe=o_.insidetextfont,cwe=o_.outsidetextfont,$u=rl;function uwe(e){var t=Op.select(e).selectAll("g.barlayer").selectAll("g.trace");h9(e,t,"bar");var n=t.size(),r=e._fullLayout;t.style("opacity",function(a){return a[0].trace.opacity}).each(function(a){(r.barmode==="stack"&&n>1||r.bargap===0&&r.bargroupgap===0&&!a[0].trace.marker.line.width)&&Op.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(a){var o=Op.select(this),i=a[0].trace;m9(o,i,e)}),p9.getComponentMethod("errorbars","style")(t)}function m9(e,t,n){Ep.pointStyle(e.selectAll("path"),t,n),g9(e,t,n)}function g9(e,t,n){e.selectAll("text").each(function(r){var a=Op.select(this),o=f9.ensureUniformFontSize(n,y9(a,r,t,n));Ep.font(a,o)})}function dwe(e,t,n){var r=t[0].trace;r.selectedpoints?fwe(n,r,e):(m9(n,r,e),p9.getComponentMethod("errorbars","style")(n))}function fwe(e,t,n){Ep.selectedPointStyle(e.selectAll("path"),t),pwe(e.selectAll("text"),t,n)}function pwe(e,t,n){e.each(function(r){var a=Op.select(this),o;if(r.selected){o=f9.ensureUniformFontSize(n,y9(a,r,t,n));var i=t.selected.textfont&&t.selected.textfont.color;i&&(o.color=i),Ep.font(a,o)}else Ep.selectedTextStyle(a,t)})}function y9(e,t,n,r){var a=r._fullLayout.font,o=n.textfont;if(e.classed("bartext-inside")){var i=w9(t,n);o=b9(n,t.i,a,i)}else e.classed("bartext-outside")&&(o=x9(n,t.i,a));return o}function v9(e,t,n){return i_(lwe,e.textfont,t,n)}function b9(e,t,n,r){var a=v9(e,t,n),o=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return o&&(a={color:iwe.contrast(r),family:a.family,size:a.size}),i_(swe,e.insidetextfont,t,a)}function x9(e,t,n){var r=v9(e,t,n);return i_(cwe,e.outsidetextfont,t,r)}function i_(e,t,n,r){t=t||{};var a=$u.getValue(t.family,n),o=$u.getValue(t.size,n),i=$u.getValue(t.color,n);return{family:$u.coerceString(e.family,a,r.family),size:$u.coerceNumber(e.size,o,r.size),color:$u.coerceColor(e.color,i,r.color)}}function w9(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}var l_={style:uwe,styleTextPoints:g9,styleOnSelect:dwe,getInsideTextFont:b9,getOutsideTextFont:x9,getBarColor:w9,resizeText:h9},Y0=$t,J0=en,_r=Ge,hwe=Ir,mwe=Kt,$l=gn,gwe=Dt,Q0=bn.tickText,_9=u9,ywe=_9.recordMinTextSize,vwe=_9.clearMinTextSize,s_=l_,ed=rl,bwe=KD,k9=Z0,xwe=k9.text,wwe=k9.textposition,_we=Ki.appendArrayPointValue,No=bwe.TEXTPAD;function kwe(e){return e.id}function Twe(e){if(e.ids)return kwe}function es(e,t){return e<t?1:-1}function Swe(e,t,n,r){var a=[],o=[],i=r?t:n,l=r?n:t;return a[0]=i.c2p(e.s0,!0),o[0]=l.c2p(e.p0,!0),a[1]=i.c2p(e.s1,!0),o[1]=l.c2p(e.p1,!0),r?[a,o]:[o,a]}function T9(e,t,n,r){if(!t.uniformtext.mode&&S9(n)){var a;return r&&(a=r()),e.transition().duration(n.duration).ease(n.easing).each("end",function(){a&&a()}).each("interrupt",function(){a&&a()})}else return e}function S9(e){return e&&e.duration>0}function Awe(e,t,n,r,a,o){var i=t.xaxis,l=t.yaxis,s=e._fullLayout,u=e._context.staticPlot;a||(a={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},vwe("bar",s));var d=_r.makeTraceGroups(r,n,"trace bars").each(function(f){var p=Y0.select(this),g=f[0].trace,h=g.type==="waterfall",y=g.type==="funnel",b=g.type==="bar",v=b||y,x=0;h&&g.connector.visible&&g.connector.mode==="between"&&(x=g.connector.line.width/2);var k=g.orientation==="h",_=S9(a),S=_r.ensureSingle(p,"g","points"),T=Twe(g),C=S.selectAll("g.point").data(_r.identity,T);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(O,F){var R=Y0.select(this),N=Swe(O,i,l,k),B=N[0][0],V=N[0][1],Z=N[1][0],G=N[1][1],I=(k?V-B:G-Z)===0;I&&v&&ed.getLineWidth(g,O)&&(I=!1),I||(I=!J0(B)||!J0(V)||!J0(Z)||!J0(G)),O.isBlank=I,I&&(k?V=B:G=Z),x&&!I&&(k?(B-=es(B,V)*x,V+=es(B,V)*x):(Z-=es(Z,G)*x,G+=es(Z,G)*x));var P,z;if(g.type==="waterfall"){if(!I){var H=g[O.dir].marker;P=H.line.width,z=H.color}}else P=ed.getLineWidth(g,O),z=O.mc||g.marker.color;function j(se){var U=Y0.round(P/2%1,2);return a.gap===0&&a.groupgap===0?Y0.round(Math.round(se)-U,2):se}function q(se,U,Y){return Y&&se===U?se:Math.abs(se-U)>=2?j(se):se>U?Math.ceil(se):Math.floor(se)}if(!e._context.staticPlot){var $=mwe.opacity(z),ne=$<1||P>.01?j:q;B=ne(B,V,k),V=ne(V,B,k),Z=ne(Z,G,!k),G=ne(G,Z,!k)}var te=T9(_r.ensureSingle(R,"path"),s,a,o);if(te.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((V-B)*(G-Z))||I&&e._context.staticPlot?"M0,0Z":"M"+B+","+Z+"V"+G+"H"+V+"V"+Z+"Z").call($l.setClipUrl,t.layerClipId,e),!s.uniformtext.mode&&_){var ee=$l.makePointStyleFns(g);$l.singlePointStyle(O,te,g,ee,e)}Mwe(e,t,R,f,F,B,V,Z,G,a,o),t.layerClipId&&$l.hideOutsideRangePoint(O,R.select("text"),i,l,g.xcalendar,g.ycalendar)});var A=g.cliponaxis===!1;$l.setClipUrl(p,A?null:t.layerClipId,e)});gwe.getComponentMethod("errorbars","plot")(e,d,t,a)}function Mwe(e,t,n,r,a,o,i,l,s,u,d){var f=t.xaxis,p=t.yaxis,g=e._fullLayout,h;function y(se,U,Y){var J=_r.ensureSingle(se,"text").text(U).attr({class:"bartext bartext-"+h,"text-anchor":"middle","data-notex":1}).call($l.font,Y).call(hwe.convertToTspans,e);return J}var b=r[0].trace,v=b.orientation==="h",x=Owe(g,r,a,f,p);h=Ewe(b,a);var k=u.mode==="stack"||u.mode==="relative",_=r[a],S=!k||_._outmost;if(!x||h==="none"||(_.isBlank||o===i||l===s)&&(h==="auto"||h==="inside")){n.select("text").remove();return}var T=g.font,C=s_.getBarColor(r[a],b),A=s_.getInsideTextFont(b,a,T,C),O=s_.getOutsideTextFont(b,a,T),F=n.datum();v?f.type==="log"&&F.s0<=0&&(f.range[0]<f.range[1]?o=0:o=f._length):p.type==="log"&&F.s0<=0&&(p.range[0]<p.range[1]?l=p._length:l=0);var R=Math.abs(i-o)-2*No,N=Math.abs(s-l)-2*No,B,V,Z,G,I;if(h==="outside"&&!S&&!_.hasB&&(h="inside"),h==="auto")if(S){h="inside",I=_r.ensureUniformFontSize(e,A),B=y(n,x,I),V=$l.bBox(B.node()),Z=V.width,G=V.height;var P=Z>0&&G>0,z=Z<=R&&G<=N,H=Z<=N&&G<=R,j=v?R>=Z*(N/G):N>=G*(R/Z);P&&(z||H||j)?h="inside":(h="outside",B.remove(),B=null)}else h="inside";if(!B){I=_r.ensureUniformFontSize(e,h==="outside"?O:A),B=y(n,x,I);var q=B.attr("transform");if(B.attr("transform",""),V=$l.bBox(B.node()),Z=V.width,G=V.height,B.attr("transform",q),Z<=0||G<=0){B.remove();return}}var $=b.textangle,ne,te;h==="outside"?(te=b.constraintext==="both"||b.constraintext==="outside",ne=Cwe(o,i,l,s,V,{isHorizontal:v,constrained:te,angle:$})):(te=b.constraintext==="both"||b.constraintext==="inside",ne=C9(o,i,l,s,V,{isHorizontal:v,constrained:te,angle:$,anchor:b.insidetextanchor})),ne.fontSize=I.size,ywe(b.type==="histogram"?"bar":b.type,ne,g),_.transform=ne;var ee=T9(B,g,u,d);_r.setTransormAndDisplay(ee,ne)}function A9(e){return e==="auto"?0:e}function M9(e,t){var n=Math.PI/180*t,r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));return{x:e.width*a+e.height*r,y:e.width*r+e.height*a}}function C9(e,t,n,r,a,o){var i=!!o.isHorizontal,l=!!o.constrained,s=o.angle||0,u=o.anchor||"end",d=u==="end",f=u==="start",p=o.leftToRight||0,g=(p+1)/2,h=1-g,y=a.width,b=a.height,v=Math.abs(t-e),x=Math.abs(r-n),k=v>2*No&&x>2*No?No:0;v-=2*k,x-=2*k;var _=A9(s);s==="auto"&&!(y<=v&&b<=x)&&(y>v||b>x)&&(!(y>x||b>v)||y<b!=v<x)&&(_+=90);var S=M9(a,_),T=1;l&&(T=Math.min(1,v/S.x,x/S.y));var C=a.left*h+a.right*g,A=(a.top+a.bottom)/2,O=(e+No)*h+(t-No)*g,F=(n+r)/2,R=0,N=0;if(f||d){var B=(i?S.x:S.y)/2,V=i?es(e,t):es(n,r);i?f?(O=e+V*k,R=-V*B):(O=t-V*k,R=V*B):f?(F=n+V*k,N=-V*B):(F=r-V*k,N=V*B)}return{textX:C,textY:A,targetX:O,targetY:F,anchorX:R,anchorY:N,scale:T,rotate:_}}function Cwe(e,t,n,r,a,o){var i=!!o.isHorizontal,l=!!o.constrained,s=o.angle||0,u=a.width,d=a.height,f=Math.abs(t-e),p=Math.abs(r-n),g;i?g=p>2*No?No:0:g=f>2*No?No:0;var h=1;l&&(h=i?Math.min(1,p/d):Math.min(1,f/u));var y=A9(s),b=M9(a,y),v=(i?b.x:b.y)/2,x=(a.left+a.right)/2,k=(a.top+a.bottom)/2,_=(e+t)/2,S=(n+r)/2,T=0,C=0,A=i?es(t,e):es(n,r);return i?(_=t-A*g,T=A*v):(S=r+A*g,C=-A*v),{textX:x,textY:k,targetX:_,targetY:S,anchorX:T,anchorY:C,scale:h,rotate:y}}function Owe(e,t,n,r,a){var o=t[0].trace,i=o.texttemplate,l;return i?l=Lwe(e,t,n,r,a):o.textinfo?l=zwe(t,n,r,a):l=ed.getValue(o.text,n),ed.coerceString(xwe,l)}function Ewe(e,t){var n=ed.getValue(e.textposition,t);return ed.coerceEnumerated(wwe,n)}function Lwe(e,t,n,r,a){var o=t[0].trace,i=_r.castOption(o,n,"texttemplate");if(!i)return"";var l=o.type==="histogram",s=o.type==="waterfall",u=o.type==="funnel",d=o.orientation==="h",f,p,g,h;d?(f="y",p=a,g="x",h=r):(f="x",p=r,g="y",h=a);function y(T){return Q0(p,p.c2l(T),!0).text}function b(T){return Q0(h,h.c2l(T),!0).text}var v=t[n],x={};x.label=v.p,x.labelLabel=x[f+"Label"]=y(v.p);var k=_r.castOption(o,v.i,"text");(k===0||k)&&(x.text=k),x.value=v.s,x.valueLabel=x[g+"Label"]=b(v.s);var _={};_we(_,o,v.i),(l||_.x===void 0)&&(_.x=d?x.value:x.label),(l||_.y===void 0)&&(_.y=d?x.label:x.value),(l||_.xLabel===void 0)&&(_.xLabel=d?x.valueLabel:x.labelLabel),(l||_.yLabel===void 0)&&(_.yLabel=d?x.labelLabel:x.valueLabel),s&&(x.delta=+v.rawS||v.s,x.deltaLabel=b(x.delta),x.final=v.v,x.finalLabel=b(x.final),x.initial=x.final-x.delta,x.initialLabel=b(x.initial)),u&&(x.value=v.s,x.valueLabel=b(x.value),x.percentInitial=v.begR,x.percentInitialLabel=_r.formatPercent(v.begR),x.percentPrevious=v.difR,x.percentPreviousLabel=_r.formatPercent(v.difR),x.percentTotal=v.sumR,x.percenTotalLabel=_r.formatPercent(v.sumR));var S=_r.castOption(o,v.i,"customdata");return S&&(x.customdata=S),_r.texttemplateString(i,x,e._d3locale,_,x,o._meta||{})}function zwe(e,t,n,r){var a=e[0].trace,o=a.orientation==="h",i=a.type==="waterfall",l=a.type==="funnel";function s(S){var T=o?r:n;return Q0(T,S,!0).text}function u(S){var T=o?n:r;return Q0(T,+S,!0).text}var d=a.textinfo,f=e[t],p=d.split("+"),g=[],h,y=function(S){return p.indexOf(S)!==-1};if(y("label")&&g.push(s(e[t].p)),y("text")&&(h=_r.castOption(a,f.i,"text"),(h===0||h)&&g.push(h)),i){var b=+f.rawS||f.s,v=f.v,x=v-b;y("initial")&&g.push(u(x)),y("delta")&&g.push(u(b)),y("final")&&g.push(u(v))}if(l){y("value")&&g.push(u(f.s));var k=0;y("percent initial")&&k++,y("percent previous")&&k++,y("percent total")&&k++;var _=k>1;y("percent initial")&&(h=_r.formatPercent(f.begR),_&&(h+=" of initial"),g.push(h)),y("percent previous")&&(h=_r.formatPercent(f.difR),_&&(h+=" of previous"),g.push(h)),y("percent total")&&(h=_r.formatPercent(f.sumR),_&&(h+=" of total"),g.push(h))}return g.join("<br>")}var Fwe={plot:Awe,toMoveInsideBar:C9},Lp=Xi,Iwe=Dt,O9=Kt,Dwe=Ge.fillText,Pwe=rl.getLineWidth,c_=bn.hoverLabelText,Rwe=Gn.BADNUM;function Nwe(e,t,n,r,a){var o=E9(e,t,n,r,a);if(o){var i=o.cd,l=i[0].trace,s=i[o.index];return o.color=L9(l,s),Iwe.getComponentMethod("errorbars","hoverInfo")(s,l,o),[o]}}function E9(e,t,n,r,a){var o=e.cd,i=o[0].trace,l=o[0].t,s=r==="closest",u=i.type==="waterfall",d=e.maxHoverDistance,f=e.maxSpikeDistance,p,g,h,y,b,v,x;i.orientation==="h"?(p=n,g=t,h="y",y="x",b=Z,v=N):(p=t,g=n,h="x",y="y",v=Z,b=N);var k=i[h+"period"],_=s||k;function S(ee){return C(ee,-1)}function T(ee){return C(ee,1)}function C(ee,se){var U=ee.w;return ee[h]+se*U/2}function A(ee){return ee[h+"End"]-ee[h+"Start"]}var O=s?S:k?function(ee){return ee.p-A(ee)/2}:function(ee){return Math.min(S(ee),ee.p-l.bardelta/2)},F=s?T:k?function(ee){return ee.p+A(ee)/2}:function(ee){return Math.max(T(ee),ee.p+l.bardelta/2)};function R(ee,se,U){return a.finiteRange&&(U=0),Lp.inbox(ee-p,se-p,U+Math.min(1,Math.abs(se-ee)/x)-1)}function N(ee){return R(O(ee),F(ee),d)}function B(ee){return R(S(ee),T(ee),f)}function V(ee){var se=ee[y];if(u){var U=Math.abs(ee.rawS)||0;g>0?se+=U:g<0&&(se-=U)}return se}function Z(ee){var se=g,U=ee.b,Y=V(ee);return Lp.inbox(U-se,Y-se,d+(Y-se)/(Y-U)-1)}function G(ee){var se=g,U=ee.b,Y=V(ee);return Lp.inbox(U-se,Y-se,f+(Y-se)/(Y-U)-1)}var I=e[h+"a"],P=e[y+"a"];x=Math.abs(I.r2c(I.range[1])-I.r2c(I.range[0]));function z(ee){return(b(ee)+v(ee))/2}var H=Lp.getDistanceFunction(r,b,v,z);if(Lp.getClosest(o,H,e),e.index!==!1&&o[e.index].p!==Rwe){_||(O=function(ee){return Math.min(S(ee),ee.p-l.bargroupwidth/2)},F=function(ee){return Math.max(T(ee),ee.p+l.bargroupwidth/2)});var j=e.index,q=o[j],$=i.base?q.b+q.s:q.s;e[y+"0"]=e[y+"1"]=P.c2p(q[y],!0),e[y+"LabelVal"]=$;var ne=l.extents[l.extents.round(q.p)];e[h+"0"]=I.c2p(s?O(q):ne[0],!0),e[h+"1"]=I.c2p(s?F(q):ne[1],!0);var te=q.orig_p!==void 0;return e[h+"LabelVal"]=te?q.orig_p:q.p,e.labelLabel=c_(I,e[h+"LabelVal"],i[h+"hoverformat"]),e.valueLabel=c_(P,e[y+"LabelVal"],i[y+"hoverformat"]),e.baseLabel=c_(P,q.b,i[y+"hoverformat"]),e.spikeDistance=(G(q)+B(q))/2,e[h+"Spike"]=I.c2p(q.p,!0),Dwe(q,i,e),e.hovertemplate=i.hovertemplate,e}}function L9(e,t){var n=t.mcc||e.marker.color,r=t.mlcc||e.marker.line.color,a=Pwe(e,t);if(O9.opacity(n))return n;if(O9.opacity(r)&&a)return r}var Bwe={hoverPoints:Nwe,hoverOnBars:E9,getTraceColor:L9},jwe=function(e,t,n){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),n.orientation==="h"?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e},Vwe=function(e,t){var n=e.cd,r=e.xaxis,a=e.yaxis,o=n[0].trace,i=o.type==="funnel",l=o.orientation==="h",s=[],u;if(t===!1)for(u=0;u<n.length;u++)n[u].selected=0;else for(u=0;u<n.length;u++){var d=n[u],f="ct"in d?d.ct:Hwe(d,r,a,l,i);t.contains(f,!1,u,e)?(s.push({pointNumber:u,x:r.c2d(d.x),y:a.c2d(d.y)}),d.selected=1):d.selected=0}return s};function Hwe(e,t,n,r,a){var o=t.c2p(r?e.s0:e.p0,!0),i=t.c2p(r?e.s1:e.p1,!0),l=n.c2p(r?e.p0:e.s0,!0),s=n.c2p(r?e.p1:e.s1,!0);return a?[(o+i)/2,(l+s)/2]:r?[i,(l+s)/2]:[(o+i)/2,s]}var Uwe={attributes:Z0,layoutAttributes:XD,supplyDefaults:a9.supplyDefaults,crossTraceDefaults:a9.crossTraceDefaults,supplyLayoutDefaults:Y1e,calc:X1e,crossTraceCalc:_F.crossTraceCalc,colorbar:FF,arraysToCalcdata:a_,plot:Fwe.plot,style:l_.style,styleOnSelect:l_.styleOnSelect,hoverPoints:Bwe.hoverPoints,eventData:jwe,selectPoints:Vwe,moduleType:"trace",name:"bar",basePlotModule:hr,categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set to *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}},qwe=Uwe;const Wwe=nf(qwe);var ao=Qs,Gwe=ti,Zwe=Fr,u_=Qm.axisHoverFormat,Kwe=So.hovertemplateAttrs,Ywe=So.texttemplateAttrs,Jwe=Ef,ya=Zn.extendFlat,z9=ya({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:ya({},ao.x,{impliedEdits:{xtype:"array"}}),x0:ya({},ao.x0,{impliedEdits:{xtype:"scaled"}}),dx:ya({},ao.dx,{impliedEdits:{xtype:"scaled"}}),y:ya({},ao.y,{impliedEdits:{ytype:"array"}}),y0:ya({},ao.y0,{impliedEdits:{ytype:"scaled"}}),dy:ya({},ao.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:ya({},ao.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:ya({},ao.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:ya({},ao.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:ya({},ao.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:ya({},ao.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:ya({},ao.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"calc",description:"Same as `text`."},transpose:{valType:"boolean",dflt:!1,editType:"calc",description:"Transposes the z data."},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's x coordinates are given by *x*","(the default behavior when `x` is provided).","If *scaled*, the heatmap's x coordinates are given by *x0* and *dx*","(the default behavior when `x` is not provided)."].join(" ")},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's y coordinates are given by *y*","(the default behavior when `y` is provided)","If *scaled*, the heatmap's y coordinates are given by *y0* and *dy*","(the default behavior when `y` is not provided)"].join(" ")},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc",description:["Picks a smoothing algorithm use to smooth `z` data."].join(" ")},hoverongaps:{valType:"boolean",dflt:!0,editType:"none",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data have hover labels associated with them."].join(" ")},connectgaps:{valType:"boolean",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array and `zsmooth` is not false;","otherwise it is defaulted to false."].join(" ")},xgap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the horizontal gap (in pixels) between bricks."},ygap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the vertical gap (in pixels) between bricks."},xhoverformat:u_("x"),yhoverformat:u_("y"),zhoverformat:u_("z",1),hovertemplate:Kwe(),texttemplate:Ywe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:Zwe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style",description:"Sets the text font."}),showlegend:ya({},Gwe.showlegend,{dflt:!1})},{transforms:void 0},Jwe("",{cLetter:"z",autoColorDflt:!1})),Qwe=en,X0=Ge,Xwe=Dt,$we=function(e,t,n,r,a,o){var i=n("z");a=a||"x",o=o||"y";var l,s;if(i===void 0||!i.length)return 0;if(X0.isArray1D(i)){l=n(a),s=n(o);var u=X0.minRowLength(l),d=X0.minRowLength(s);if(u===0||d===0)return 0;t._length=Math.min(u,d,i.length)}else{if(l=F9(a,n),s=F9(o,n),!e2e(i))return 0;n("transpose"),t._length=null}if(e.type==="heatmapgl")return!0;var f=Xwe.getComponentMethod("calendars","handleTraceDefaults");return f(e,t,[a,o],r),!0};function F9(e,t){var n=t(e),r=n?t(e+"type","array"):"scaled";return r==="scaled"&&(t(e+"0"),t("d"+e)),n}function e2e(e){for(var t=!0,n=!1,r=!1,a,o=0;o<e.length;o++){if(a=e[o],!X0.isArrayOrTypedArray(a)){t=!1;break}a.length>0&&(n=!0);for(var i=0;i<a.length;i++)if(Qwe(a[i])){r=!0;break}}return t&&n&&r}var I9=Ge,t2e=function(e,t){e("texttemplate");var n=I9.extendFlat({},t.font,{color:"auto",size:"auto"});I9.coerceFont(e,"textfont",n)},n2e=function(e,t,n){var r=n("zsmooth");r===!1&&(n("xgap"),n("ygap")),n("zhoverformat")},D9=Ge,r2e=$we,a2e=t2e,o2e=Gw,i2e=n2e,l2e=hu,s2e=z9,c2e=function(e,t,n,r){function a(i,l){return D9.coerce(e,t,s2e,i,l)}var o=r2e(e,t,a,r);if(!o){t.visible=!1;return}o2e(e,t,r,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a2e(a,r),i2e(e,t,a),a("hoverongaps"),a("connectgaps",D9.isArray1D(t.z)&&t.zsmooth!==!1),l2e(e,t,r,a,{prefix:"",cLetter:"z"})},td=en,P9={count:function(e,t,n){return n[e]++,1},sum:function(e,t,n,r){var a=r[t];return td(a)?(a=Number(a),n[e]+=a,a):0},avg:function(e,t,n,r,a){var o=r[t];return td(o)&&(o=Number(o),n[e]+=o,a[e]++),0},min:function(e,t,n,r){var a=r[t];if(td(a))if(a=Number(a),td(n[e])){if(n[e]>a){var o=a-n[e];return n[e]=a,o}}else return n[e]=a,a;return 0},max:function(e,t,n,r){var a=r[t];if(td(a))if(a=Number(a),td(n[e])){if(n[e]<a){var o=a-n[e];return n[e]=a,o}}else return n[e]=a,a;return 0}},R9={percent:function(e,t){for(var n=e.length,r=100/t,a=0;a<n;a++)e[a]*=r},probability:function(e,t){for(var n=e.length,r=0;r<n;r++)e[r]/=t},density:function(e,t,n,r){var a=e.length;r=r||1;for(var o=0;o<a;o++)e[o]*=n[o]*r},"probability density":function(e,t,n,r){var a=e.length;r&&(t/=r);for(var o=0;o<a;o++)e[o]*=n[o]/t}},N9=function(e,t){for(var n=e.length,r=0,a=0;a<n;a++)t[a]?(e[a]/=t[a],r+=e[a]):e[a]=null;return r},nd=Gn,oc=nd.ONEAVGYEAR,B9=nd.ONEAVGMONTH,$0=nd.ONEDAY,j9=nd.ONEHOUR,V9=nd.ONEMIN,H9=nd.ONESEC,U9=bn.tickIncrement,q9=function(e,t,n,r,a){var o=-1.1*t,i=-.1*t,l=e-i,s=n[0],u=n[1],d=Math.min(ey(s+i,s+l,r,a),ey(u+i,u+l,r,a)),f=Math.min(ey(s+o,s+i,r,a),ey(u+o,u+i,r,a)),p,g;if(d>f&&f<Math.abs(u-s)/4e3?(p=d,g=!1):(p=Math.min(d,f),g=!0),r.type==="date"&&p>$0){var h=p===oc?1:6,y=p===oc?"M12":"M1";return function(b,v){var x=r.c2d(b,oc,a),k=x.indexOf("-",h);k>0&&(x=x.substr(0,k));var _=r.d2c(x,0,a);if(_<b){var S=U9(_,y,!1,a);(_+S)/2<b+e&&(_=S)}return v&&g?U9(_,y,!0,a):_}}return function(b,v){var x=p*Math.round(b/p);return x+p/10<b&&x+p*.9<b+e&&(x+=p),v&&g&&(x-=p),x}};function ey(e,t,n,r){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),o=n.type==="date",i=W9(a,o),l=0;l<10;l++){var s=W9(i*80,o);if(i===s)break;if(u2e(s,e,t,o,n,r))i=s;else break}return i}function W9(e,t){return t&&e>H9?e>$0?e>oc*1.1?oc:e>B9*1.1?B9:$0:e>j9?j9:e>V9?V9:H9:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function u2e(e,t,n,r,a,o){if(r&&e>$0){var i=G9(t,a,o),l=G9(n,a,o),s=e===oc?0:1;return i[s]!==l[s]}return Math.floor(n/e)-Math.floor(t/e)>.1}function G9(e,t,n){var r=t.c2d(e,oc,n).split("-");return r[0]===""&&(r.unshift(),r[0]="-"+r[0]),r}var d_=en,qr=Ge,Z9=Dt,oo=bn,d2e=a_,K9=P9,f2e=R9,p2e=N9,h2e=q9;function m2e(e,t){var n=[],r=[],a=t.orientation==="h",o=oo.getFromId(e,a?t.yaxis:t.xaxis),i=a?"y":"x",l={x:"y",y:"x"}[i],s=t[i+"calendar"],u=t.cumulative,d,f=f_(e,t,o,i),p=f[0],g=f[1],h=typeof p.size=="string",y=[],b=h?y:p,v=[],x=[],k=[],_=0,S=t.histnorm,T=t.histfunc,C=S.indexOf("density")!==-1,A,O,F;u.enabled&&C&&(S=S.replace(/ ?density$/,""),C=!1);var R=T==="max"||T==="min",N=R?null:0,B=K9.count,V=f2e[S],Z=!1,G=function(oe){return o.r2c(oe,0,s)},I;for(qr.isArrayOrTypedArray(t[l])&&T!=="count"&&(I=t[l],Z=T==="avg",B=K9[T]),d=G(p.start),O=G(p.end)+(d-oo.tickIncrement(d,p.size,!1,s))/1e6;d<O&&n.length<1e6&&(A=oo.tickIncrement(d,p.size,!1,s),n.push((d+A)/2),r.push(N),k.push([]),y.push(d),C&&v.push(1/(A-d)),Z&&x.push(0),!(A<=d));)d=A;y.push(d),!h&&o.type==="date"&&(b={start:G(b.start),end:G(b.end),size:b.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var P=t["_"+i+"bingroup"],z={leftGap:1/0,rightGap:1/0};P&&(e._fullLayout._roundFnOpts[P]||(e._fullLayout._roundFnOpts[P]=z),z=e._fullLayout._roundFnOpts[P]);var H=r.length,j=!0,q=z.leftGap,$=z.rightGap,ne={};for(d=0;d<g.length;d++){var te=g[d];F=qr.findBin(te,b),F>=0&&F<H&&(_+=B(F,d,r,I,x),j&&k[F].length&&te!==g[k[F][0]]&&(j=!1),k[F].push(d),ne[d]=F,q=Math.min(q,te-y[F]),$=Math.min($,y[F+1]-te))}z.leftGap=q,z.rightGap=$;var ee;j||(ee=function(oe,he){return function(){var ve=e._fullLayout._roundFnOpts[P];return h2e(ve.leftGap,ve.rightGap,y,o,s)(oe,he)}}),Z&&(_=p2e(r,x)),V&&V(r,_,v),u.enabled&&v2e(r,u.direction,u.currentbin);var se=Math.min(n.length,r.length),U=[],Y=0,J=se-1;for(d=0;d<se;d++)if(r[d]){Y=d;break}for(d=se-1;d>=Y;d--)if(r[d]){J=d;break}for(d=Y;d<=J;d++)if(d_(n[d])&&d_(r[d])){var re={p:n[d],s:r[d],b:0};u.enabled||(re.pts=k[d],j?re.ph0=re.ph1=k[d].length?g[k[d][0]]:n[d]:(t._computePh=!0,re.ph0=ee(y[d]),re.ph1=ee(y[d+1],!0))),U.push(re)}return U.length===1&&(U[0].width1=oo.tickIncrement(U[0].p,p.size,!1,s)-U[0].p),d2e(U,t),qr.isArrayOrTypedArray(t.selectedpoints)&&qr.tagSelected(U,t,ne),U}function f_(e,t,n,r,a){var o=r+"bins",i=e._fullLayout,l=t["_"+r+"bingroup"],s=i._histogramBinOpts[l],u=i.barmode==="overlay",d,f,p,g,h,y,b,v=function(te){return n.r2c(te,0,g)},x=function(te){return n.c2r(te,0,g)},k=n.type==="date"?function(te){return te||te===0?qr.cleanDate(te,null,g):null}:function(te){return d_(te)?Number(te):null};function _(te,ee,se){ee[te+"Found"]?(ee[te]=k(ee[te]),ee[te]===null&&(ee[te]=se[te])):(y[te]=ee[te]=se[te],qr.nestedProperty(f[0],o+"."+te).set(se[te]))}if(t["_"+r+"autoBinFinished"])delete t["_"+r+"autoBinFinished"];else{f=s.traces;var S=[],T=!0,C=!1,A=!1;for(d=0;d<f.length;d++)if(p=f[d],p.visible){var O=s.dirs[d];h=p["_"+O+"pos0"]=n.makeCalcdata(p,O),S=qr.concat(S,h),delete p["_"+r+"autoBinFinished"],t.visible===!0&&(T?T=!1:(delete p._autoBin,p["_"+r+"autoBinFinished"]=1),Z9.traceIs(p,"2dMap")&&(C=!0),p.type==="histogram2dcontour"&&(A=!0))}g=f[0][r+"calendar"];var F=oo.autoBin(S,n,s.nbins,C,g,s.sizeFound&&s.size),R=f[0]._autoBin={};if(y=R[s.dirs[0]]={},A&&(s.size||(F.start=x(oo.tickIncrement(v(F.start),F.size,!0,g))),s.end===void 0&&(F.end=x(oo.tickIncrement(v(F.end),F.size,!1,g)))),u&&!Z9.traceIs(t,"2dMap")&&F._dataSpan===0&&n.type!=="category"&&n.type!=="multicategory"&&t.bingroup===""&&typeof t.xbins>"u"){if(a)return[F,h,!0];F=g2e(e,t,n,r,o)}b=p.cumulative||{},b.enabled&&b.currentbin!=="include"&&(b.direction==="decreasing"?F.start=x(oo.tickIncrement(v(F.start),F.size,!0,g)):F.end=x(oo.tickIncrement(v(F.end),F.size,!1,g))),s.size=F.size,s.sizeFound||(y.size=F.size,qr.nestedProperty(f[0],o+".size").set(F.size)),_("start",s,F),_("end",s,F)}h=t["_"+r+"pos0"],delete t["_"+r+"pos0"];var N=t._input[o]||{},B=qr.extendFlat({},s),V=s.start,Z=n.r2l(N.start),G=Z!==void 0;if((s.startFound||G)&&Z!==n.r2l(V)){var I=G?Z:qr.aggNums(Math.min,null,h),P={type:n.type==="category"||n.type==="multicategory"?"linear":n.type,r2l:n.r2l,dtick:s.size,tick0:V,calendar:g,range:[I,oo.tickIncrement(I,s.size,!1,g)].map(n.l2r)},z=oo.tickFirst(P);z>n.r2l(I)&&(z=oo.tickIncrement(z,s.size,!0,g)),B.start=n.l2r(z),G||qr.nestedProperty(t,o+".start").set(B.start)}var H=s.end,j=n.r2l(N.end),q=j!==void 0;if((s.endFound||q)&&j!==n.r2l(H)){var $=q?j:qr.aggNums(Math.max,null,h);B.end=n.l2r($),q||qr.nestedProperty(t,o+".start").set(B.end)}var ne="autobin"+r;return t._input[ne]===!1&&(t._input[o]=qr.extendFlat({},t[o]||{}),delete t._input[ne],delete t[ne]),[B,h]}function g2e(e,t,n,r,a){var o=e._fullLayout,i=y2e(e,t),l=!1,s=1/0,u=[t],d,f,p;for(d=0;d<i.length;d++)if(f=i[d],f===t)l=!0;else if(!l)p=o._histogramBinOpts[f["_"+r+"bingroup"]],s=Math.min(s,p.size||f[a].size);else{var g=f_(e,f,n,r,!0),h=g[0],y=g[2];f["_"+r+"autoBinFinished"]=1,f["_"+r+"pos0"]=g[1],y?u.push(f):s=Math.min(s,h.size)}var b=new Array(u.length);for(d=0;d<u.length;d++)for(var v=u[d]["_"+r+"pos0"],x=0;x<v.length;x++)if(v[x]!==void 0){b[d]=v[x];break}for(isFinite(s)||(s=qr.distinctVals(b).minDiff),d=0;d<u.length;d++){f=u[d];var k=f[r+"calendar"],_={start:n.c2r(b[d]-s/2,0,k),end:n.c2r(b[d]+s/2,0,k),size:s};f._input[a]=f[a]=_,p=o._histogramBinOpts[f["_"+r+"bingroup"]],p&&qr.extendFlat(p,_)}return t[a]}function y2e(e,t){for(var n=t.xaxis,r=t.yaxis,a=t.orientation,o=[],i=e._fullData,l=0;l<i.length;l++){var s=i[l];s.type==="histogram"&&s.visible===!0&&s.orientation===a&&s.xaxis===n&&s.yaxis===r&&o.push(s)}return o}function v2e(e,t,n){var r,a,o;function i(s){o=e[s],e[s]/=2}function l(s){a=e[s],e[s]=o+a/2,o+=a}if(n==="half")if(t==="increasing")for(i(0),r=1;r<e.length;r++)l(r);else for(i(e.length-1),r=e.length-2;r>=0;r--)l(r);else if(t==="increasing"){for(r=1;r<e.length;r++)e[r]+=e[r-1];n==="exclude"&&(e.unshift(0),e.pop())}else{for(r=e.length-2;r>=0;r--)e[r]+=e[r+1];n==="exclude"&&(e.push(0),e.shift())}}var b2e={calc:m2e,calcAllAutoBins:f_},Y9=Ge,rd=bn,J9=P9,x2e=R9,w2e=N9,_2e=q9,Q9=b2e.calcAllAutoBins,k2e=function(e,t){var n=rd.getFromId(e,t.xaxis),r=rd.getFromId(e,t.yaxis),a=t.xcalendar,o=t.ycalendar,i=function(lt){return n.r2c(lt,0,a)},l=function(lt){return r.r2c(lt,0,o)},s=function(lt){return n.c2r(lt,0,a)},u=function(lt){return r.c2r(lt,0,o)},d,f,p,g,h=Q9(e,t,n,"x"),y=h[0],b=h[1],v=Q9(e,t,r,"y"),x=v[0],k=v[1],_=t._length;b.length>_&&b.splice(_,b.length-_),k.length>_&&k.splice(_,k.length-_);var S=[],T=[],C=[],A=typeof y.size=="string",O=typeof x.size=="string",F=[],R=[],N=A?F:y,B=O?R:x,V=0,Z=[],G=[],I=t.histnorm,P=t.histfunc,z=I.indexOf("density")!==-1,H=P==="max"||P==="min",j=H?null:0,q=J9.count,$=x2e[I],ne=!1,te=[],ee=[],se="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";se&&P!=="count"&&(ne=P==="avg",q=J9[P]);var U=y.size,Y=i(y.start),J=i(y.end)+(Y-rd.tickIncrement(Y,U,!1,a))/1e6;for(d=Y;d<J;d=rd.tickIncrement(d,U,!1,a))T.push(j),F.push(d),ne&&C.push(0);F.push(d);var re=T.length,oe=(d-Y)/re,he=s(Y+oe/2),ve=x.size,ge=l(x.start),xe=l(x.end)+(ge-rd.tickIncrement(ge,ve,!1,o))/1e6;for(d=ge;d<xe;d=rd.tickIncrement(d,ve,!1,o)){S.push(T.slice()),R.push(d);var Le=new Array(re);for(f=0;f<re;f++)Le[f]=[];G.push(Le),ne&&Z.push(C.slice())}R.push(d);var Ue=S.length,Pe=(d-ge)/Ue,De=u(ge+Pe/2);z&&(te=X9(T.length,N,oe,A),ee=X9(S.length,B,Pe,O)),!A&&n.type==="date"&&(N=$9(i,N)),!O&&r.type==="date"&&(B=$9(l,B));var je=!0,qe=!0,Ee=new Array(re),_e=new Array(Ue),we=1/0,Re=1/0,Je=1/0,it=1/0;for(d=0;d<_;d++){var dt=b[d],at=k[d];p=Y9.findBin(dt,N),g=Y9.findBin(at,B),p>=0&&p<re&&g>=0&&g<Ue&&(V+=q(p,d,S[g],se,Z[g]),G[g][p].push(d),je&&(Ee[p]===void 0?Ee[p]=dt:Ee[p]!==dt&&(je=!1)),qe&&(_e[g]===void 0?_e[g]=at:_e[g]!==at&&(qe=!1)),we=Math.min(we,dt-F[p]),Re=Math.min(Re,F[p+1]-dt),Je=Math.min(Je,at-R[g]),it=Math.min(it,R[g+1]-at))}if(ne)for(g=0;g<Ue;g++)V+=w2e(S[g],Z[g]);if($)for(g=0;g<Ue;g++)$(S[g],V,te,ee[g]);return{x:b,xRanges:eP(F,je&&Ee,we,Re,n,a),x0:he,dx:oe,y:k,yRanges:eP(R,qe&&_e,Je,it,r,o),y0:De,dy:Pe,z:S,pts:G}};function X9(e,t,n,r){var a=new Array(e),o;if(r)for(o=0;o<e;o++)a[o]=1/(t[o+1]-t[o]);else{var i=1/n;for(o=0;o<e;o++)a[o]=i}return a}function $9(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function eP(e,t,n,r,a,o){var i,l=e.length-1,s=new Array(l),u=_2e(n,r,e,a,o);for(i=0;i<l;i++){var d=(t||[])[i];s[i]=d===void 0?[u(e[i]),u(e[i+1],!0)]:[d,d]}return s}var yi=Ge,tP=Gn.BADNUM,nP=w0,T2e=function(e,t,n,r,a,o){var i=e._length,l=t.makeCalcdata(e,r),s=n.makeCalcdata(e,a);l=nP(e,t,r,l).vals,s=nP(e,n,a,s).vals;var u=e.text,d=u!==void 0&&yi.isArray1D(u),f=e.hovertext,p=f!==void 0&&yi.isArray1D(f),g,h,y=yi.distinctVals(l),b=y.vals,v=yi.distinctVals(s),x=v.vals,k=[],_,S,T=x.length,C=b.length;for(g=0;g<o.length;g++)k[g]=yi.init2dArray(T,C);d&&(_=yi.init2dArray(T,C)),p&&(S=yi.init2dArray(T,C));var A=yi.init2dArray(T,C);for(g=0;g<i;g++)if(l[g]!==tP&&s[g]!==tP){var O=yi.findBin(l[g]+y.minDiff/2,b),F=yi.findBin(s[g]+v.minDiff/2,x);for(h=0;h<o.length;h++){var R=o[h],N=e[R],B=k[h];B[F][O]=N[g],A[F][O]=g}d&&(_[F][O]=u[g]),p&&(S[F][O]=f[g])}for(e["_"+r]=b,e["_"+a]=x,h=0;h<o.length;h++)e["_"+o[h]]=k[h];d&&(e._text=_),p&&(e._hovertext=S),t&&t.type==="category"&&(e["_"+r+"CategoryMap"]=b.map(function(V){return t._categories[V]})),n&&n.type==="category"&&(e["_"+a+"CategoryMap"]=x.map(function(V){return n._categories[V]})),e._after2before=A},S2e=en,A2e=Ge,ty=Gn.BADNUM,M2e=function(e,t,n,r){var a,o,i,l,s,u;function d(b){if(S2e(b))return+b}if(t&&t.transpose){for(a=0,s=0;s<e.length;s++)a=Math.max(a,e[s].length);if(a===0)return!1;i=function(b){return b.length},l=function(b,v,x){return(b[x]||[])[v]}}else a=e.length,i=function(b,v){return b[v].length},l=function(b,v,x){return(b[v]||[])[x]};var f=function(b,v,x){return v===ty||x===ty?ty:l(b,v,x)};function p(b){if(t&&t.type!=="carpet"&&t.type!=="contourcarpet"&&b&&b.type==="category"&&t["_"+b._id.charAt(0)].length){var v=b._id.charAt(0),x={},k=t["_"+v+"CategoryMap"]||t[v];for(s=0;s<k.length;s++)x[k[s]]=s;return function(_){var S=x[b._categories[_]];return S+1?S:ty}}else return A2e.identity}var g=p(n),h=p(r);r&&r.type==="category"&&(a=r._categories.length);var y=new Array(a);for(s=0;s<a;s++)for(n&&n.type==="category"?o=n._categories.length:o=i(e,s),y[s]=new Array(o),u=0;u<o;u++)y[s][u]=d(f(e,h(s),g(u)));return y},C2e=Ge,rP=.01,O2e=[[-1,0],[1,0],[0,-1],[0,1]];function E2e(e){return .5-.25*Math.min(1,e*.5)}var L2e=function(e,t){var n=1,r;for(aP(e,t),r=0;r<t.length&&!(t[r][2]<4);r++);for(t=t.slice(r),r=0;r<100&&n>rP;r++)n=aP(e,t,E2e(n));return n>rP&&C2e.log("interp2d didn't converge quickly",n),e};function aP(e,t,n){var r=0,a,o,i,l,s,u,d,f,p,g,h,y,b;for(l=0;l<t.length;l++){for(a=t[l],o=a[0],i=a[1],h=e[o][i],g=0,p=0,s=0;s<4;s++)u=O2e[s],d=e[o+u[0]],d&&(f=d[i+u[1]],f!==void 0&&(g===0?y=b=f:(y=Math.min(y,f),b=Math.max(b,f)),p++,g+=f));if(p===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[o][i]=g/p,h===void 0?p<4&&(r=1):(e[o][i]=(1+n)*e[o][i]-n*h,b>y&&(r=Math.max(r,Math.abs(e[o][i]-h)/(b-y))))}return r}var z2e=Ge.maxRowLength,F2e=function(e){var t=[],n={},r=[],a=e[0],o=[],i=[0,0,0],l=z2e(e),s,u,d,f,p,g,h,y;for(u=0;u<e.length;u++)for(s=o,o=a,a=e[u+1]||[],d=0;d<l;d++)o[d]===void 0&&(g=(o[d-1]!==void 0?1:0)+(o[d+1]!==void 0?1:0)+(s[d]!==void 0?1:0)+(a[d]!==void 0?1:0),g?(u===0&&g++,d===0&&g++,u===e.length-1&&g++,d===o.length-1&&g++,g<4&&(n[[u,d]]=[u,d,g]),t.push([u,d,g])):r.push([u,d]));for(;r.length;){for(h={},y=!1,p=r.length-1;p>=0;p--)f=r[p],u=f[0],d=f[1],g=((n[[u-1,d]]||i)[2]+(n[[u+1,d]]||i)[2]+(n[[u,d-1]]||i)[2]+(n[[u,d+1]]||i)[2])/20,g&&(h[f]=[u,d,g],r.splice(p,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(f in h)n[f]=h[f],t.push(h[f])}return t.sort(function(b,v){return v[2]-b[2]})},p_=Dt,oP=Ge.isArrayOrTypedArray,I2e=function(e,t,n,r,a,o){var i=[],l=p_.traceIs(e,"contour"),s=p_.traceIs(e,"histogram"),u=p_.traceIs(e,"gl2d"),d,f,p,g=oP(t)&&t.length>1;if(g&&!s&&o.type!=="category"){var h=t.length;if(h<=a){if(l||u)i=Array.from(t).slice(0,a);else if(a===1)i=[t[0]-.5,t[0]+.5];else{for(i=[1.5*t[0]-.5*t[1]],p=1;p<h;p++)i.push((t[p-1]+t[p])*.5);i.push(1.5*t[h-1]-.5*t[h-2])}if(h<a){var y=i[i.length-1],b=y-i[i.length-2];for(p=h;p<a;p++)y+=b,i.push(y)}}else return l?t.slice(0,a):t.slice(0,a+1)}else{var v=e[o._id.charAt(0)+"calendar"];if(s)d=o.r2c(n,0,v);else if(oP(t)&&t.length===1)d=t[0];else if(n===void 0)d=0;else{var x=o.type==="log"?o.d2c:o.r2c;d=x(n,0,v)}for(f=r||1,p=l||u?0:-.5;p<a;p++)i.push(d+f*p)}return i},h_=Dt,m_=Ge,ny=bn,iP=w0,D2e=k2e,P2e=tg,R2e=T2e,N2e=M2e,B2e=L2e,j2e=F2e,ry=I2e,g_=Gn.BADNUM,V2e=function(e,t){var n=ny.getFromId(e,t.xaxis||"x"),r=ny.getFromId(e,t.yaxis||"y"),a=h_.traceIs(t,"contour"),o=h_.traceIs(t,"histogram"),i=h_.traceIs(t,"gl2d"),l=a?"best":t.zsmooth,s,u,d,f,p,g,h,y,b,v,x;if(n._minDtick=0,r._minDtick=0,o)x=D2e(e,t),f=x.orig_x,s=x.x,u=x.x0,d=x.dx,y=x.orig_y,p=x.y,g=x.y0,h=x.dy,b=x.z;else{var k=t.z;m_.isArray1D(k)?(R2e(t,n,r,"x","y",["z"]),s=t._x,p=t._y,k=t._z):(f=t.x?n.makeCalcdata(t,"x"):[],y=t.y?r.makeCalcdata(t,"y"):[],s=iP(t,n,"x",f).vals,p=iP(t,r,"y",y).vals,t._x=s,t._y=p),u=t.x0,d=t.dx,g=t.y0,h=t.dy,b=N2e(k,t,n,r)}(n.rangebreaks||r.rangebreaks)&&(b=H2e(s,p,b),o||(s=lP(s),p=lP(p),t._x=s,t._y=p)),!o&&(a||t.connectgaps)&&(t._emptypoints=j2e(b),B2e(b,t._emptypoints));function _(B){l=t._input.zsmooth=t.zsmooth=!1,m_.warn('cannot use zsmooth: "fast": '+B)}function S(B){if(B.length>1){var V=(B[B.length-1]-B[0])/(B.length-1),Z=Math.abs(V/100);for(v=0;v<B.length-1;v++)if(Math.abs(B[v+1]-B[v]-V)>Z)return!1}return!0}t._islinear=!1,n.type==="log"||r.type==="log"?l==="fast"&&_("log axis found"):S(s)?S(p)?t._islinear=!0:l==="fast"&&_("y scale is not linear"):l==="fast"&&_("x scale is not linear");var T=m_.maxRowLength(b),C=t.xtype==="scaled"?"":s,A=ry(t,C,u,d,T,n),O=t.ytype==="scaled"?"":p,F=ry(t,O,g,h,b.length,r);i||(t._extremes[n._id]=ny.findExtremes(n,A),t._extremes[r._id]=ny.findExtremes(r,F));var R={x:A,y:F,z:b,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&f&&(R.orig_x=f),t.yperiodalignment&&y&&(R.orig_y=y),C&&C.length===A.length-1&&(R.xCenter=C),O&&O.length===F.length-1&&(R.yCenter=O),o&&(R.xRanges=x.xRanges,R.yRanges=x.yRanges,R.pts=x.pts),a||P2e(e,t,{vals:b,cLetter:"z"}),a&&t.contours&&t.contours.coloring==="heatmap"){var N={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};R.xfill=ry(N,C,u,d,T,n),R.yfill=ry(N,O,g,h,b.length,r)}return[R]};function lP(e){for(var t=[],n=e.length,r=0;r<n;r++){var a=e[r];a!==g_&&t.push(a)}return t}function H2e(e,t,n){for(var r=[],a=-1,o=0;o<n.length;o++)if(t[o]!==g_){a++,r[a]=[];for(var i=0;i<n[o].length;i++)e[i]!==g_&&r[a].push(n[o][i])}return r}var y_={};(function(e){e.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],e.STYLE=e.CSS_DECLARATIONS.map(function(t){return t.join(": ")+"; "}).join("")})(y_);var sP=y_,U2e=gn,v_=Ge,ad=null;function q2e(){if(ad!==null)return ad;ad=!1;var e=v_.isIE()||v_.isSafari()||v_.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(sP.CSS_DECLARATIONS).reverse(),n=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof n=="function")ad=t.some(function(i){return n.apply(null,i)});else{var r=U2e.tester.append("image").attr("style",sP.STYLE),a=window.getComputedStyle(r.node()),o=a.imageRendering;ad=t.some(function(i){var l=i[1];return o===l||o===l.toLowerCase()}),r.remove()}}return ad}var W2e=q2e,cP=$t,G2e=ko,Z2e=Dt,K2e=gn,Y2e=bn,io=Ge,uP=Ir,J2e=IF,Q2e=Kt,X2e=Lf.extractOpts,$2e=Lf.makeColorScaleFuncFromTrace,e_e=Ll,t_e=Br,b_=t_e.LINE_SPACING,n_e=W2e,r_e=y_.STYLE,dP="heatmap-label";function fP(e){return e.selectAll("g."+dP)}function pP(e){fP(e).remove()}var a_e=function(e,t,n,r){var a=t.xaxis,o=t.yaxis;io.makeTraceGroups(r,n,"hm").each(function(i){var l=cP.select(this),s=i[0],u=s.trace,d=u.xgap||0,f=u.ygap||0,p=s.z,g=s.x,h=s.y,y=s.xCenter,b=s.yCenter,v=Z2e.traceIs(u,"contour"),x=v?"best":u.zsmooth,k=p.length,_=io.maxRowLength(p),S=!1,T=!1,C,A,O,F,R,N,B,V;for(N=0;C===void 0&&N<g.length-1;)C=a.c2p(g[N]),N++;for(N=g.length-1;A===void 0&&N>0;)A=a.c2p(g[N]),N--;for(A<C&&(O=A,A=C,C=O,S=!0),N=0;F===void 0&&N<h.length-1;)F=o.c2p(h[N]),N++;for(N=h.length-1;R===void 0&&N>0;)R=o.c2p(h[N]),N--;R<F&&(O=F,F=R,R=O,T=!0),v&&(y=g,b=h,g=s.xfill,h=s.yfill);var Z="default";if(x?Z=x==="best"?"smooth":"fast":u._islinear&&d===0&&f===0&&n_e()&&(Z="fast"),Z!=="fast"){var G=x==="best"?0:.5;C=Math.max(-G*a._length,C),A=Math.min((1+G)*a._length,A),F=Math.max(-G*o._length,F),R=Math.min((1+G)*o._length,R)}var I=Math.round(A-C),P=Math.round(R-F),z=C>=a._length||A<=0||F>=o._length||R<=0;if(z){var H=l.selectAll("image").data([]);H.exit().remove(),pP(l);return}var j,q;Z==="fast"?(j=_,q=k):(j=I,q=P);var $=document.createElement("canvas");$.width=j,$.height=q;var ne=$.getContext("2d",{willReadFrequently:!0}),te=$2e(u,{noNumericCheck:!0,returnArray:!0}),ee,se;Z==="fast"?(ee=S?function(Bt){return _-1-Bt}:io.identity,se=T?function(Bt){return k-1-Bt}:io.identity):(ee=function(Bt){return io.constrain(Math.round(a.c2p(g[Bt])-C),0,I)},se=function(Bt){return io.constrain(Math.round(o.c2p(h[Bt])-F),0,P)});var U=se(0),Y=[U,U],J=S?0:1,re=T?0:1,oe=0,he=0,ve=0,ge=0,xe,Le,Ue,Pe,De;function je(Bt,On){if(Bt!==void 0){var Xt=te(Bt);return Xt[0]=Math.round(Xt[0]),Xt[1]=Math.round(Xt[1]),Xt[2]=Math.round(Xt[2]),oe+=On,he+=Xt[0]*On,ve+=Xt[1]*On,ge+=Xt[2]*On,Xt}return[0,0,0,0]}function qe(Bt,On,Xt,Sn){var Nn=Bt[Xt.bin0];if(Nn===void 0)return je(void 0,1);var Zr=Bt[Xt.bin1],mr=On[Xt.bin0],gr=On[Xt.bin1],jo=Zr-Nn||0,ol=mr-Nn||0,sr;return Zr===void 0?gr===void 0?sr=0:mr===void 0?sr=2*(gr-Nn):sr=(2*gr-mr-Nn)*2/3:gr===void 0?mr===void 0?sr=0:sr=(2*Nn-Zr-mr)*2/3:mr===void 0?sr=(2*gr-Zr-Nn)*2/3:sr=gr+Nn-Zr-mr,je(Nn+Xt.frac*jo+Sn.frac*(ol+Xt.frac*sr))}if(Z!=="default"){var Ee=0,_e;try{_e=new Uint8Array(j*q*4)}catch{_e=new Array(j*q*4)}if(Z==="smooth"){var we=y||g,Re=b||h,Je=new Array(we.length),it=new Array(Re.length),dt=new Array(I),at=y?mP:hP,lt=b?mP:hP,He,Be,Ze;for(N=0;N<we.length;N++)Je[N]=Math.round(a.c2p(we[N])-C);for(N=0;N<Re.length;N++)it[N]=Math.round(o.c2p(Re[N])-F);for(N=0;N<I;N++)dt[N]=at(N,Je);for(B=0;B<P;B++)for(He=lt(B,it),Be=p[He.bin0],Ze=p[He.bin1],N=0;N<I;N++,Ee+=4)De=qe(Be,Ze,dt[N],He),gP(_e,Ee,De)}else for(B=0;B<k;B++)for(Pe=p[B],Y=se(B),N=0;N<_;N++)De=je(Pe[N],1),Ee=(Y*_+ee(N))*4,gP(_e,Ee,De);var Ye=ne.createImageData(j,q);try{Ye.data.set(_e)}catch{var et=Ye.data,st=et.length;for(B=0;B<st;B++)et[B]=_e[B]}ne.putImageData(Ye,0,0)}else{var nt=Math.floor(d/2),gt=Math.floor(f/2);for(B=0;B<k;B++)if(Pe=p[B],Y.reverse(),Y[re]=se(B+1),!(Y[0]===Y[1]||Y[0]===void 0||Y[1]===void 0))for(Le=ee(0),xe=[Le,Le],N=0;N<_;N++)xe.reverse(),xe[J]=ee(N+1),!(xe[0]===xe[1]||xe[0]===void 0||xe[1]===void 0)&&(Ue=Pe[N],De=je(Ue,(xe[1]-xe[0])*(Y[1]-Y[0])),ne.fillStyle="rgba("+De.join(",")+")",ne.fillRect(xe[0]+nt,Y[0]+gt,xe[1]-xe[0]-d,Y[1]-Y[0]-f))}he=Math.round(he/oe),ve=Math.round(ve/oe),ge=Math.round(ge/oe);var Ve=G2e("rgb("+he+","+ve+","+ge+")");e._hmpixcount=(e._hmpixcount||0)+oe,e._hmlumcount=(e._hmlumcount||0)+oe*Ve.getLuminance();var rt=l.selectAll("image").data(i);rt.enter().append("svg:image").attr({xmlns:e_e.svg,preserveAspectRatio:"none"}),rt.attr({height:P,width:I,x:C,y:F,"xlink:href":$.toDataURL("image/png")}),Z==="fast"&&!x&&rt.attr("style",r_e),pP(l);var ft=u.texttemplate;if(ft){var wt=X2e(u),tt={type:"linear",range:[wt.min,wt.max],_separators:a._separators,_numFormat:a._numFormat},pt=u.type==="histogram2dcontour",Ke=u.type==="contour",Ot=Ke?1:0,X=Ke?k-1:k,ue=Ke?1:0,de=Ke?_-1:_,ce=[];for(N=Ot;N<X;N++){var Oe;if(Ke)Oe=s.y[N];else if(pt){if(N===0||N===k-1)continue;Oe=s.y[N]}else if(s.yCenter)Oe=s.yCenter[N];else{if(N+1===k&&s.y[N+1]===void 0)continue;Oe=(s.y[N]+s.y[N+1])/2}var Te=Math.round(o.c2p(Oe));if(!(0>Te||Te>o._length))for(B=ue;B<de;B++){var We;if(Ke)We=s.x[B];else if(pt){if(B===0||B===_-1)continue;We=s.x[B]}else if(s.xCenter)We=s.xCenter[B];else{if(B+1===_&&s.x[B+1]===void 0)continue;We=(s.x[B]+s.x[B+1])/2}var ie=Math.round(a.c2p(We));if(!(0>ie||ie>a._length)){var fe=J2e({x:We,y:Oe},u,e._fullLayout);fe.x=We,fe.y=Oe;var be=s.z[N][B];be===void 0?(fe.z="",fe.zLabel=""):(fe.z=be,fe.zLabel=Y2e.tickText(tt,be,"hover").text);var Ne=s.text&&s.text[N]&&s.text[N][B];(Ne===void 0||Ne===!1)&&(Ne=""),fe.text=Ne;var $e=io.texttemplateString(ft,fe,e._fullLayout._d3locale,fe,u._meta||{});if($e){var ot=$e.split("<br>"),St=ot.length,Et=0;for(V=0;V<St;V++)Et=Math.max(Et,ot[V].length);ce.push({l:St,c:Et,t:$e,x:ie,y:Te,z:be})}}}}var _t=u.textfont,kt=_t.family,Jt=_t.size,Rt=e._fullLayout.font.size;if(!Jt||Jt==="auto"){var xt=1/0,qt=1/0,Wt=0,It=0;for(V=0;V<ce.length;V++){var Ft=ce[V];if(Wt=Math.max(Wt,Ft.l),It=Math.max(It,Ft.c),V<ce.length-1){var Tt=ce[V+1],Lt=Math.abs(Tt.x-Ft.x),jt=Math.abs(Tt.y-Ft.y);Lt&&(xt=Math.min(xt,Lt)),jt&&(qt=Math.min(qt,jt))}}!isFinite(xt)||!isFinite(qt)?Jt=Rt:(xt-=d,qt-=f,xt/=It,qt/=Wt,xt/=b_/2,qt/=b_,Jt=Math.min(Math.floor(xt),Math.floor(qt),Rt))}if(Jt<=0||!isFinite(Jt))return;var rn=function(Bt){return Bt.x},At=function(Bt){return Bt.y-Jt*(Bt.l*b_/2-1)},Qt=fP(l).data(ce);Qt.enter().append("g").classed(dP,1).append("text").attr("text-anchor","middle").each(function(Bt){var On=cP.select(this),Xt=_t.color;(!Xt||Xt==="auto")&&(Xt=Q2e.contrast("rgba("+te(Bt.z).join()+")")),On.attr("data-notex",1).call(uP.positionText,rn(Bt),At(Bt)).call(K2e.font,kt,Jt,Xt).text(Bt.t).call(uP.convertToTspans,e)})}})};function hP(e,t){var n=t.length-2,r=io.constrain(io.findBin(e,t),0,n),a=t[r],o=t[r+1],i=io.constrain(r+(e-a)/(o-a)-.5,0,n),l=Math.round(i),s=Math.abs(i-l);return!i||i===n||!s?{bin0:l,bin1:l,frac:0}:{bin0:l,frac:s,bin1:Math.round(l+s/(i-l))}}function mP(e,t){var n=t.length-1,r=io.constrain(io.findBin(e,t),0,n),a=t[r],o=t[r+1],i=(e-a)/(o-a)||0;return i<=0?{bin0:r,bin1:r,frac:0}:i<.5?{bin0:r,bin1:r+1,frac:i}:{bin0:r+1,bin1:r,frac:1-i}}function gP(e,t,n){e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=Math.round(n[3]*255)}var o_e={min:"zmin",max:"zmax"},i_e=$t,l_e=function(e){i_e.select(e).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})},yP=Xi,zp=Ge,ay=zp.isArrayOrTypedArray,s_e=bn,c_e=Lf.extractOpts,u_e=function(e,t,n,r,a){a||(a={});var o=a.isContour,i=e.cd[0],l=i.trace,s=e.xa,u=e.ya,d=i.x,f=i.y,p=i.z,g=i.xCenter,h=i.yCenter,y=i.zmask,b=l.zhoverformat,v=d,x=f,k,_,S,T;if(e.index!==!1){try{S=Math.round(e.index[1]),T=Math.round(e.index[0])}catch{zp.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index);return}if(S<0||S>=p[0].length||T<0||T>p.length)return}else{if(yP.inbox(t-d[0],t-d[d.length-1],0)>0||yP.inbox(n-f[0],n-f[f.length-1],0)>0)return;if(o){var C;for(v=[2*d[0]-d[1]],C=1;C<d.length;C++)v.push((d[C]+d[C-1])/2);for(v.push([2*d[d.length-1]-d[d.length-2]]),x=[2*f[0]-f[1]],C=1;C<f.length;C++)x.push((f[C]+f[C-1])/2);x.push([2*f[f.length-1]-f[f.length-2]])}S=Math.max(0,Math.min(v.length-2,zp.findBin(t,v))),T=Math.max(0,Math.min(x.length-2,zp.findBin(n,x)))}var A=s.c2p(d[S]),O=s.c2p(d[S+1]),F=u.c2p(f[T]),R=u.c2p(f[T+1]),N,B;o?(N=i.orig_x||d,B=i.orig_y||f,O=A,k=N[S],R=F,_=B[T]):(N=i.orig_x||g||d,B=i.orig_y||h||f,k=g?N[S]:(N[S]+N[S+1])/2,_=h?B[T]:(B[T]+B[T+1])/2,s&&s.type==="category"&&(k=d[S]),u&&u.type==="category"&&(_=f[T]),l.zsmooth&&(A=O=s.c2p(k),F=R=u.c2p(_)));var V=p[T][S];if(y&&!y[T][S]&&(V=void 0),!(V===void 0&&!l.hoverongaps)){var Z;ay(i.hovertext)&&ay(i.hovertext[T])?Z=i.hovertext[T][S]:ay(i.text)&&ay(i.text[T])&&(Z=i.text[T][S]);var G=c_e(l),I={type:"linear",range:[G.min,G.max],hoverformat:b,_separators:s._separators,_numFormat:s._numFormat},P=s_e.tickText(I,V,"hover").text;return[zp.extendFlat(e,{index:l._after2before?l._after2before[T][S]:[T,S],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:A,x1:O,y0:F,y1:R,xLabelVal:k,yLabelVal:_,zLabelVal:V,zLabel:P,text:Z})]}},d_e={attributes:z9,supplyDefaults:c2e,calc:V2e,plot:a_e,colorbar:o_e,style:l_e,hoverPoints:u_e,moduleType:"trace",name:"heatmap",basePlotModule:hr,categories:["cartesian","svg","2dMap","showLegend"],meta:{description:["The data that describes the heatmap value-to-color mapping","is set in `z`.","Data in `z` can either be a {2D array} of values (ragged or not)","or a 1D array of values.","In the case where `z` is a {2D array},","say that `z` has N rows and M columns.","Then, by default, the resulting heatmap will have N partitions along","the y axis and M partitions along the x axis.","In other words, the i-th row/ j-th column cell in `z`","is mapped to the i-th partition of the y axis","(starting from the bottom of the plot) and the j-th partition","of the x-axis (starting from the left of the plot).","This behavior can be flipped by using `transpose`.","Moreover, `x` (`y`) can be provided with M or M+1 (N or N+1) elements.","If M (N), then the coordinates correspond to the center of the","heatmap cells and the cells have equal width.","If M+1 (N+1), then the coordinates correspond to the edges of the","heatmap cells.","In the case where `z` is a 1D {array}, the x and y coordinates must be","provided in `x` and `y` respectively to form data triplets."].join(" ")}},f_e=d_e;const p_e=nf(f_e);Cp.register([S1e,Wwe,p_e]);var vP={exports:{}};/* @license
410
+ Papa Parse
411
+ v5.4.1
412
+ https://github.com/mholt/PapaParse
413
+ License: MIT
414
+ */(function(e,t){(function(n,r){e.exports=r()})(tf,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},a=!r.document&&!!r.postMessage,o=r.IS_PAPA_WORKER||!1,i={},l=0,s={parse:function(A,O){var F=(O=O||{}).dynamicTyping||!1;if(C(F)&&(O.dynamicTypingFunction=F,F={}),O.dynamicTyping=F,O.transform=!!C(O.transform)&&O.transform,O.worker&&s.WORKERS_SUPPORTED){var R=function(){if(!s.WORKERS_SUPPORTED)return!1;var B=(Z=r.URL||r.webkitURL||null,G=n.toString(),s.BLOB_URL||(s.BLOB_URL=Z.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",G,")();"],{type:"text/javascript"})))),V=new r.Worker(B),Z,G;return V.onmessage=x,V.id=l++,i[V.id]=V}();return R.userStep=O.step,R.userChunk=O.chunk,R.userComplete=O.complete,R.userError=O.error,O.step=C(O.step),O.chunk=C(O.chunk),O.complete=C(O.complete),O.error=C(O.error),delete O.worker,void R.postMessage({input:A,config:O,workerId:R.id})}var N=null;return s.NODE_STREAM_INPUT,typeof A=="string"?(A=function(B){return B.charCodeAt(0)===65279?B.slice(1):B}(A),N=O.download?new f(O):new g(O)):A.readable===!0&&C(A.read)&&C(A.on)?N=new h(O):(r.File&&A instanceof File||A instanceof Object)&&(N=new p(O)),N.stream(A)},unparse:function(A,O){var F=!1,R=!0,N=",",B=`\r
415
+ `,V='"',Z=V+V,G=!1,I=null,P=!1;(function(){if(typeof O=="object"){if(typeof O.delimiter!="string"||s.BAD_DELIMITERS.filter(function(q){return O.delimiter.indexOf(q)!==-1}).length||(N=O.delimiter),(typeof O.quotes=="boolean"||typeof O.quotes=="function"||Array.isArray(O.quotes))&&(F=O.quotes),typeof O.skipEmptyLines!="boolean"&&typeof O.skipEmptyLines!="string"||(G=O.skipEmptyLines),typeof O.newline=="string"&&(B=O.newline),typeof O.quoteChar=="string"&&(V=O.quoteChar),typeof O.header=="boolean"&&(R=O.header),Array.isArray(O.columns)){if(O.columns.length===0)throw new Error("Option columns is empty");I=O.columns}O.escapeChar!==void 0&&(Z=O.escapeChar+V),(typeof O.escapeFormulae=="boolean"||O.escapeFormulae instanceof RegExp)&&(P=O.escapeFormulae instanceof RegExp?O.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var z=new RegExp(b(V),"g");if(typeof A=="string"&&(A=JSON.parse(A)),Array.isArray(A)){if(!A.length||Array.isArray(A[0]))return H(null,A,G);if(typeof A[0]=="object")return H(I||Object.keys(A[0]),A,G)}else if(typeof A=="object")return typeof A.data=="string"&&(A.data=JSON.parse(A.data)),Array.isArray(A.data)&&(A.fields||(A.fields=A.meta&&A.meta.fields||I),A.fields||(A.fields=Array.isArray(A.data[0])?A.fields:typeof A.data[0]=="object"?Object.keys(A.data[0]):[]),Array.isArray(A.data[0])||typeof A.data[0]=="object"||(A.data=[A.data])),H(A.fields||[],A.data||[],G);throw new Error("Unable to serialize unrecognized input");function H(q,$,ne){var te="";typeof q=="string"&&(q=JSON.parse(q)),typeof $=="string"&&($=JSON.parse($));var ee=Array.isArray(q)&&0<q.length,se=!Array.isArray($[0]);if(ee&&R){for(var U=0;U<q.length;U++)0<U&&(te+=N),te+=j(q[U],U);0<$.length&&(te+=B)}for(var Y=0;Y<$.length;Y++){var J=ee?q.length:$[Y].length,re=!1,oe=ee?Object.keys($[Y]).length===0:$[Y].length===0;if(ne&&!ee&&(re=ne==="greedy"?$[Y].join("").trim()==="":$[Y].length===1&&$[Y][0].length===0),ne==="greedy"&&ee){for(var he=[],ve=0;ve<J;ve++){var ge=se?q[ve]:ve;he.push($[Y][ge])}re=he.join("").trim()===""}if(!re){for(var xe=0;xe<J;xe++){0<xe&&!oe&&(te+=N);var Le=ee&&se?q[xe]:xe;te+=j($[Y][Le],xe)}Y<$.length-1&&(!ne||0<J&&!oe)&&(te+=B)}}return te}function j(q,$){if(q==null)return"";if(q.constructor===Date)return JSON.stringify(q).slice(1,25);var ne=!1;P&&typeof q=="string"&&P.test(q)&&(q="'"+q,ne=!0);var te=q.toString().replace(z,Z);return(ne=ne||F===!0||typeof F=="function"&&F(q,$)||Array.isArray(F)&&F[$]||function(ee,se){for(var U=0;U<se.length;U++)if(-1<ee.indexOf(se[U]))return!0;return!1}(te,s.BAD_DELIMITERS)||-1<te.indexOf(N)||te.charAt(0)===" "||te.charAt(te.length-1)===" ")?V+te+V:te}}};if(s.RECORD_SEP="",s.UNIT_SEP="",s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
416
+ `,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!a&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=v,s.ParserHandle=y,s.NetworkStreamer=f,s.FileStreamer=p,s.StringStreamer=g,s.ReadableStreamStreamer=h,r.jQuery){var u=r.jQuery;u.fn.parse=function(A){var O=A.config||{},F=[];return this.each(function(B){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var V=0;V<this.files.length;V++)F.push({file:this.files[V],inputElem:this,instanceConfig:u.extend({},O)})}),R(),this;function R(){if(F.length!==0){var B,V,Z,G,I=F[0];if(C(A.before)){var P=A.before(I.file,I.inputElem);if(typeof P=="object"){if(P.action==="abort")return B="AbortError",V=I.file,Z=I.inputElem,G=P.reason,void(C(A.error)&&A.error({name:B},V,Z,G));if(P.action==="skip")return void N();typeof P.config=="object"&&(I.instanceConfig=u.extend(I.instanceConfig,P.config))}else if(P==="skip")return void N()}var z=I.instanceConfig.complete;I.instanceConfig.complete=function(H){C(z)&&z(H,I.file,I.inputElem),N()},s.parse(I.file,I.instanceConfig)}else C(A.complete)&&A.complete()}function N(){F.splice(0,1),R()}}}function d(A){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(O){var F=S(O);F.chunkSize=parseInt(F.chunkSize),O.step||O.chunk||(F.chunkSize=null),this._handle=new y(F),(this._handle.streamer=this)._config=F}).call(this,A),this.parseChunk=function(O,F){if(this.isFirstChunk&&C(this._config.beforeFirstChunk)){var R=this._config.beforeFirstChunk(O);R!==void 0&&(O=R)}this.isFirstChunk=!1,this._halted=!1;var N=this._partialLine+O;this._partialLine="";var B=this._handle.parse(N,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var V=B.meta.cursor;this._finished||(this._partialLine=N.substring(V-this._baseIndex),this._baseIndex=V),B&&B.data&&(this._rowCount+=B.data.length);var Z=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)r.postMessage({results:B,workerId:s.WORKER_ID,finished:Z});else if(C(this._config.chunk)&&!F){if(this._config.chunk(B,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);B=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(B.data),this._completeResults.errors=this._completeResults.errors.concat(B.errors),this._completeResults.meta=B.meta),this._completed||!Z||!C(this._config.complete)||B&&B.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Z||B&&B.meta.paused||this._nextChunk(),B}this._halted=!0},this._sendError=function(O){C(this._config.error)?this._config.error(O):o&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:O,finished:!1})}}function f(A){var O;(A=A||{}).chunkSize||(A.chunkSize=s.RemoteChunkSize),d.call(this,A),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(F){this._input=F,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(O=new XMLHttpRequest,this._config.withCredentials&&(O.withCredentials=this._config.withCredentials),a||(O.onload=T(this._chunkLoaded,this),O.onerror=T(this._chunkError,this)),O.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var F=this._config.downloadRequestHeaders;for(var R in F)O.setRequestHeader(R,F[R])}if(this._config.chunkSize){var N=this._start+this._config.chunkSize-1;O.setRequestHeader("Range","bytes="+this._start+"-"+N)}try{O.send(this._config.downloadRequestBody)}catch(B){this._chunkError(B.message)}a&&O.status===0&&this._chunkError()}},this._chunkLoaded=function(){O.readyState===4&&(O.status<200||400<=O.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:O.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(F){var R=F.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(O),this.parseChunk(O.responseText)))},this._chunkError=function(F){var R=O.statusText||F;this._sendError(new Error(R))}}function p(A){var O,F;(A=A||{}).chunkSize||(A.chunkSize=s.LocalChunkSize),d.call(this,A);var R=typeof FileReader<"u";this.stream=function(N){this._input=N,F=N.slice||N.webkitSlice||N.mozSlice,R?((O=new FileReader).onload=T(this._chunkLoaded,this),O.onerror=T(this._chunkError,this)):O=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var N=this._input;if(this._config.chunkSize){var B=Math.min(this._start+this._config.chunkSize,this._input.size);N=F.call(N,this._start,B)}var V=O.readAsText(N,this._config.encoding);R||this._chunkLoaded({target:{result:V}})},this._chunkLoaded=function(N){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(N.target.result)},this._chunkError=function(){this._sendError(O.error)}}function g(A){var O;d.call(this,A=A||{}),this.stream=function(F){return O=F,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var F,R=this._config.chunkSize;return R?(F=O.substring(0,R),O=O.substring(R)):(F=O,O=""),this._finished=!O,this.parseChunk(F)}}}function h(A){d.call(this,A=A||{});var O=[],F=!0,R=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(N){this._input=N,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){R&&O.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),O.length?this.parseChunk(O.shift()):F=!0},this._streamData=T(function(N){try{O.push(typeof N=="string"?N:N.toString(this._config.encoding)),F&&(F=!1,this._checkIsFinished(),this.parseChunk(O.shift()))}catch(B){this._streamError(B)}},this),this._streamError=T(function(N){this._streamCleanUp(),this._sendError(N)},this),this._streamEnd=T(function(){this._streamCleanUp(),R=!0,this._streamData("")},this),this._streamCleanUp=T(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(A){var O,F,R,N=Math.pow(2,53),B=-N,V=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Z=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,G=this,I=0,P=0,z=!1,H=!1,j=[],q={data:[],errors:[],meta:{}};if(C(A.step)){var $=A.step;A.step=function(Y){if(q=Y,ee())te();else{if(te(),q.data.length===0)return;I+=Y.data.length,A.preview&&I>A.preview?F.abort():(q.data=q.data[0],$(q,G))}}}function ne(Y){return A.skipEmptyLines==="greedy"?Y.join("").trim()==="":Y.length===1&&Y[0].length===0}function te(){return q&&R&&(U("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),R=!1),A.skipEmptyLines&&(q.data=q.data.filter(function(Y){return!ne(Y)})),ee()&&function(){if(!q)return;function Y(re,oe){C(A.transformHeader)&&(re=A.transformHeader(re,oe)),j.push(re)}if(Array.isArray(q.data[0])){for(var J=0;ee()&&J<q.data.length;J++)q.data[J].forEach(Y);q.data.splice(0,1)}else q.data.forEach(Y)}(),function(){if(!q||!A.header&&!A.dynamicTyping&&!A.transform)return q;function Y(re,oe){var he,ve=A.header?{}:[];for(he=0;he<re.length;he++){var ge=he,xe=re[he];A.header&&(ge=he>=j.length?"__parsed_extra":j[he]),A.transform&&(xe=A.transform(xe,ge)),xe=se(ge,xe),ge==="__parsed_extra"?(ve[ge]=ve[ge]||[],ve[ge].push(xe)):ve[ge]=xe}return A.header&&(he>j.length?U("FieldMismatch","TooManyFields","Too many fields: expected "+j.length+" fields but parsed "+he,P+oe):he<j.length&&U("FieldMismatch","TooFewFields","Too few fields: expected "+j.length+" fields but parsed "+he,P+oe)),ve}var J=1;return!q.data.length||Array.isArray(q.data[0])?(q.data=q.data.map(Y),J=q.data.length):q.data=Y(q.data,0),A.header&&q.meta&&(q.meta.fields=j),P+=J,q}()}function ee(){return A.header&&j.length===0}function se(Y,J){return re=Y,A.dynamicTypingFunction&&A.dynamicTyping[re]===void 0&&(A.dynamicTyping[re]=A.dynamicTypingFunction(re)),(A.dynamicTyping[re]||A.dynamicTyping)===!0?J==="true"||J==="TRUE"||J!=="false"&&J!=="FALSE"&&(function(oe){if(V.test(oe)){var he=parseFloat(oe);if(B<he&&he<N)return!0}return!1}(J)?parseFloat(J):Z.test(J)?new Date(J):J===""?null:J):J;var re}function U(Y,J,re,oe){var he={type:Y,code:J,message:re};oe!==void 0&&(he.row=oe),q.errors.push(he)}this.parse=function(Y,J,re){var oe=A.quoteChar||'"';if(A.newline||(A.newline=function(ge,xe){ge=ge.substring(0,1048576);var Le=new RegExp(b(xe)+"([^]*?)"+b(xe),"gm"),Ue=(ge=ge.replace(Le,"")).split("\r"),Pe=ge.split(`
417
+ `),De=1<Pe.length&&Pe[0].length<Ue[0].length;if(Ue.length===1||De)return`
418
+ `;for(var je=0,qe=0;qe<Ue.length;qe++)Ue[qe][0]===`
419
+ `&&je++;return je>=Ue.length/2?`\r
420
+ `:"\r"}(Y,oe)),R=!1,A.delimiter)C(A.delimiter)&&(A.delimiter=A.delimiter(Y),q.meta.delimiter=A.delimiter);else{var he=function(ge,xe,Le,Ue,Pe){var De,je,qe,Ee;Pe=Pe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var _e=0;_e<Pe.length;_e++){var we=Pe[_e],Re=0,Je=0,it=0;qe=void 0;for(var dt=new v({comments:Ue,delimiter:we,newline:xe,preview:10}).parse(ge),at=0;at<dt.data.length;at++)if(Le&&ne(dt.data[at]))it++;else{var lt=dt.data[at].length;Je+=lt,qe!==void 0?0<lt&&(Re+=Math.abs(lt-qe),qe=lt):qe=lt}0<dt.data.length&&(Je/=dt.data.length-it),(je===void 0||Re<=je)&&(Ee===void 0||Ee<Je)&&1.99<Je&&(je=Re,De=we,Ee=Je)}return{successful:!!(A.delimiter=De),bestDelimiter:De}}(Y,A.newline,A.skipEmptyLines,A.comments,A.delimitersToGuess);he.successful?A.delimiter=he.bestDelimiter:(R=!0,A.delimiter=s.DefaultDelimiter),q.meta.delimiter=A.delimiter}var ve=S(A);return A.preview&&A.header&&ve.preview++,O=Y,F=new v(ve),q=F.parse(O,J,re),te(),z?{meta:{paused:!0}}:q||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,F.abort(),O=C(A.chunk)?"":O.substring(F.getCharIndex())},this.resume=function(){G.streamer._halted?(z=!1,G.streamer.parseChunk(O,!0)):setTimeout(G.resume,3)},this.aborted=function(){return H},this.abort=function(){H=!0,F.abort(),q.meta.aborted=!0,C(A.complete)&&A.complete(q),O=""}}function b(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(A){var O,F=(A=A||{}).delimiter,R=A.newline,N=A.comments,B=A.step,V=A.preview,Z=A.fastMode,G=O=A.quoteChar===void 0||A.quoteChar===null?'"':A.quoteChar;if(A.escapeChar!==void 0&&(G=A.escapeChar),(typeof F!="string"||-1<s.BAD_DELIMITERS.indexOf(F))&&(F=","),N===F)throw new Error("Comment character same as delimiter");N===!0?N="#":(typeof N!="string"||-1<s.BAD_DELIMITERS.indexOf(N))&&(N=!1),R!==`
421
+ `&&R!=="\r"&&R!==`\r
422
+ `&&(R=`
423
+ `);var I=0,P=!1;this.parse=function(z,H,j){if(typeof z!="string")throw new Error("Input must be a string");var q=z.length,$=F.length,ne=R.length,te=N.length,ee=C(B),se=[],U=[],Y=[],J=I=0;if(!z)return He();if(A.header&&!H){var re=z.split(R)[0].split(F),oe=[],he={},ve=!1;for(var ge in re){var xe=re[ge];C(A.transformHeader)&&(xe=A.transformHeader(xe,ge));var Le=xe,Ue=he[xe]||0;for(0<Ue&&(ve=!0,Le=xe+"_"+Ue),he[xe]=Ue+1;oe.includes(Le);)Le=Le+"_"+Ue;oe.push(Le)}if(ve){var Pe=z.split(R);Pe[0]=oe.join(F),z=Pe.join(R)}}if(Z||Z!==!1&&z.indexOf(O)===-1){for(var De=z.split(R),je=0;je<De.length;je++){if(Y=De[je],I+=Y.length,je!==De.length-1)I+=R.length;else if(j)return He();if(!N||Y.substring(0,te)!==N){if(ee){if(se=[],it(Y.split(F)),Be(),P)return He()}else it(Y.split(F));if(V&&V<=je)return se=se.slice(0,V),He(!0)}}return He()}for(var qe=z.indexOf(F,I),Ee=z.indexOf(R,I),_e=new RegExp(b(G)+b(O),"g"),we=z.indexOf(O,I);;)if(z[I]!==O)if(N&&Y.length===0&&z.substring(I,I+te)===N){if(Ee===-1)return He();I=Ee+ne,Ee=z.indexOf(R,I),qe=z.indexOf(F,I)}else if(qe!==-1&&(qe<Ee||Ee===-1))Y.push(z.substring(I,qe)),I=qe+$,qe=z.indexOf(F,I);else{if(Ee===-1)break;if(Y.push(z.substring(I,Ee)),lt(Ee+ne),ee&&(Be(),P))return He();if(V&&se.length>=V)return He(!0)}else for(we=I,I++;;){if((we=z.indexOf(O,we+1))===-1)return j||U.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:se.length,index:I}),at();if(we===q-1)return at(z.substring(I,we).replace(_e,O));if(O!==G||z[we+1]!==G){if(O===G||we===0||z[we-1]!==G){qe!==-1&&qe<we+1&&(qe=z.indexOf(F,we+1)),Ee!==-1&&Ee<we+1&&(Ee=z.indexOf(R,we+1));var Re=dt(Ee===-1?qe:Math.min(qe,Ee));if(z.substr(we+1+Re,$)===F){Y.push(z.substring(I,we).replace(_e,O)),z[I=we+1+Re+$]!==O&&(we=z.indexOf(O,I)),qe=z.indexOf(F,I),Ee=z.indexOf(R,I);break}var Je=dt(Ee);if(z.substring(we+1+Je,we+1+Je+ne)===R){if(Y.push(z.substring(I,we).replace(_e,O)),lt(we+1+Je+ne),qe=z.indexOf(F,I),we=z.indexOf(O,I),ee&&(Be(),P))return He();if(V&&se.length>=V)return He(!0);break}U.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:se.length,index:I}),we++}}else we++}return at();function it(Ze){se.push(Ze),J=I}function dt(Ze){var Ye=0;if(Ze!==-1){var et=z.substring(we+1,Ze);et&&et.trim()===""&&(Ye=et.length)}return Ye}function at(Ze){return j||(Ze===void 0&&(Ze=z.substring(I)),Y.push(Ze),I=q,it(Y),ee&&Be()),He()}function lt(Ze){I=Ze,it(Y),Y=[],Ee=z.indexOf(R,I)}function He(Ze){return{data:se,errors:U,meta:{delimiter:F,linebreak:R,aborted:P,truncated:!!Ze,cursor:J+(H||0)}}}function Be(){B(He()),se=[],U=[]}},this.abort=function(){P=!0},this.getCharIndex=function(){return I}}function x(A){var O=A.data,F=i[O.workerId],R=!1;if(O.error)F.userError(O.error,O.file);else if(O.results&&O.results.data){var N={abort:function(){R=!0,k(O.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(C(F.userStep)){for(var B=0;B<O.results.data.length&&(F.userStep({data:O.results.data[B],errors:O.results.errors,meta:O.results.meta},N),!R);B++);delete O.results}else C(F.userChunk)&&(F.userChunk(O.results,N,O.file),delete O.results)}O.finished&&!R&&k(O.workerId,O.results)}function k(A,O){var F=i[A];C(F.userComplete)&&F.userComplete(O),F.terminate(),delete i[A]}function _(){throw new Error("Not implemented.")}function S(A){if(typeof A!="object"||A===null)return A;var O=Array.isArray(A)?[]:{};for(var F in A)O[F]=S(A[F]);return O}function T(A,O){return function(){A.apply(O,arguments)}}function C(A){return typeof A=="function"}return o&&(r.onmessage=function(A){var O=A.data;if(s.WORKER_ID===void 0&&O&&(s.WORKER_ID=O.workerId),typeof O.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(O.input,O.config),finished:!0});else if(r.File&&O.input instanceof File||O.input instanceof Object){var F=s.parse(O.input,O.config);F&&r.postMessage({workerId:s.WORKER_ID,results:F,finished:!0})}}),(f.prototype=Object.create(d.prototype)).constructor=f,(p.prototype=Object.create(d.prototype)).constructor=p,(g.prototype=Object.create(g.prototype)).constructor=g,(h.prototype=Object.create(d.prototype)).constructor=h,s})})(vP);var h_e=vP.exports;const m_e=nf(h_e),g_e=(e,t)=>m_e.parse(e,{download:!0,complete:t}),x_={loadFile:g_e},bP={components:{PlotControls:of},props:{metadata:{type:Object,required:!0},sourceData:{type:Object,required:!0},plotLayout:{type:Object,required:!0},supplementalData:{type:Array,required:!0},version:{type:String,required:!0}},data:function(){return{layout:{paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)"},loading:!1,options:{responsive:!0,scrollZoom:!0}}},computed:{title(){return this.sourceData.url.split("\\").pop().split("/").pop().split(".")[0]}}},y_e={name:"TimeseriesPlot",components:{PlotControls:of,ElSelect:rf,ElButton:ef,ElOption:af},mixins:[bP],data:function(){return{dataValues:[],filterX:[],parsedData:null,time:[],traceData:null,traceNames:[],xAxisLabel:"time"}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e["y-axes-columns"]||(e["y-axes-columns"]=[]),e["x-axis-column"]||(e["x-axis-column"]=0),e["no-header"]||(e["no-header"]=!1),e["row-major"]||(e["row-major"]=!1),e}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,x_.loadFile(e.url,this.dataReady)):Cp.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.fullMetadata["no-header"]&&x_.loadFile(this.supplementalData[0].url,this.headerDataReady),this.loading=!1,this.parsedData=e,this.findYaxesCols(),this.populateTime(),this.populateDataValues(),this.fullMetadata["no-header"]||(this.populateXaxisLabel(),this.populateTraceNames()),this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},headerDataReady(e){this.traceData=e,this.populateXaxisLabel(),this.populateTraceNames(),this.loading||this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},filterPlot(){let e=this.filterX;if(e.length===0){this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames);return}let t=[];for(let a of e)t.push(this.fullMetadata["y-axes-columns"][this.traceNames.indexOf(a)]);let n=[...this.parsedData.data];this.fullMetadata["no-header"]||(n=n.slice(1));let r=[];for(let a of t){const o=n.map(i=>i[a]);r.push(o)}this.createPlot(this.time,this.xAxisLabel,r,e)},createPlot(e,t,n,r){let a=[];for(let i=0;i<n.length;i++)a.push({type:"scatter",mode:"lines",name:r[i],x:e,y:n[i]});const o={title:{text:this.title},xaxis:{title:{text:t}}};Cp.react(this.$refs.plotlyplot,a,{...this.layout,...o,...this.plotLayout},this.options)},findYaxesCols(){if(this.fullMetadata["y-axes-columns"].length===0){let e=[...Array(this.parsedData.data[0].length).keys()];e.shift(),e.shift(),console.log("seeting to:",e),this.fullMetadata["y-axes-columns"]=e}},populateXaxisLabel(){this.fullMetadata["no-header"]?this.xAxisLabel=this.traceData.data[0][this.fullMetadata["x-axis-column"]]:this.xAxisLabel=this.parsedData.data[0][this.fullMetadata["x-axis-column"]]},populateTraceNames(){if(this.fullMetadata["no-header"]){window.traceNames=this.traceNames,this.traceNames.splice(0,this.traceNames.length),window.traceData=this.traceData;for(let e of this.fullMetadata["y-axes-columns"])this.traceNames.push(this.traceData.data[0][e]),console.log("pushing:",this.traceData.data[0][e]);this.$set(this.traceNames,0,this.traceNames[0])}else{this.traceNames=[];for(let e of this.fullMetadata["y-axes-columns"])this.traceNames.push(this.parsedData.data[0][e])}},populateTime(){const e=this;let t=[...this.parsedData.data];this.fullMetadata["no-header"]||(t=t.slice(1)),this.time=t.map(function(n){return n[e.fullMetadata["x-axis-column"]]})},populateDataValues(){let e=[...this.parsedData.data];this.fullMetadata["no-header"]||(e=e.slice(1));let t=[];for(let n of this.fullMetadata["y-axes-columns"]){const r=e.map(a=>a[n]);t.push(r)}this.dataValues=t}}},v_e={class:"container"},b_e={ref:"plotlyplot",class:"vue-plotly"};function x_e(e,t,n,r,a,o){const i=af,l=rf,s=ef,u=of;return c.openBlock(),c.createElementBlock("div",v_e,[c.createElementVNode("div",b_e,null,512),c.createElementVNode("div",{class:c.normalizeClass(["chooser-container",{inactive:e.loading}])},[c.createElementVNode("span",null,[c.createVNode(l,{modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=d=>e.filterX=d),class:"channel-select",size:"large",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",teleported:!1,placeholder:"select"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.traceNames,d=>(c.openBlock(),c.createBlock(i,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),c.createElementVNode("span",null,[c.createVNode(s,{class:"view-heatmap-button",onClick:o.filterPlot},{default:c.withCtx(()=>[c.createTextVNode("Filter plot")]),_:1},8,["onClick"])])],2),c.createVNode(u,{"parent-element":{element:e.$refs.plotlyplot},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])])}const w_e=sm(y_e,[["render",x_e],["__scopeId","data-v-39f6dfd4"]]),__e={name:"HeatmapPlot",components:{PlotControls:of,ElSelect:rf,ElOption:af,ElCollapse:H5,ElCollapseItem:U5,ElButton:ef,ElPopover:zb},mixins:[bP],data:function(){return{columnHeaders:[],rowHeaders:[],dataValues:[],filterX:[],filterY:[],parsedData:null,loading:!1,logScale:!1,logDataValues:[]}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e.columnHeaderSize||(e.columnHeaderSize=1),e.columnHeaderIndex||(e.columnHeaderIndex=0),e.rowHeaderSize||(e.rowHeaderSize=1),e.rowHeaderIndex||(e.rowHeaderIndex=0),e},logScaleEnabled(){return!!JSON.parse(JSON.stringify(this.metadata)).logScale},plotTitle(){return this.logScale?this.title+" (Log scale)":this.title}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,x_.loadFile(e.url,this.dataReady)):Cp.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.loading=!1,this.parsedData=e,this.populateColumnHeaders(),this.populateRowHeaders(),this.populateDataValues(),this.logScaleEnabled?(this.logValues(),this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap")):this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")},logValues(){this.dataValues.forEach((e,t)=>{this.logDataValues.push([]),e.forEach(n=>{this.logDataValues[t].push(Math.log10(n))})})},logToggle(){this.logScale?(this.logScale=!1,this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")):(this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap"))},filterPlot(){let e=this.filterX,t=this.filterY;if(e.length===0&&t.length===0){this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap");return}e.length===0&&(e=this.columnHeaders),t.length===0&&(t=this.rowHeaders);let n=[];for(let o of e)n.push(this.columnHeaders.indexOf(o));let r=[];for(let o of t)r.push(this.rowHeaders.indexOf(o));let a=[];for(let o of n){const i=this.dataValues.map(s=>s[o]);let l=[];for(let s of r)l.push(i[s]);a.push(l)}a=a[0].map((o,i)=>a.map(l=>l[i])),this.createPlot(e,t,a,"heatmap")},createPlot(e,t,n,r){var a=[{x:e,y:t,z:n,type:r}];const o={title:{text:this.plotTitle}};Cp.react(this.$refs.plotlyplot,a,{...this.layout,...o,...this.plotLayout},this.options)},populateColumnHeaders(){let e=[...[...this.parsedData.data][this.fullMetadata.columnHeaderIndex]];this.columnHeaders=e.slice(this.fullMetadata.rowHeaderSize)},populateRowHeaders(){const e=[...[...this.parsedData.data].map(t=>t[this.fullMetadata.rowHeaderIndex])];this.rowHeaders=e.slice(this.fullMetadata.columnHeaderSize)},populateDataValues(){const e=this,t=[...this.parsedData.data].slice(this.fullMetadata.columnHeaderSize);this.dataValues=t.map(function(n){return n.slice(e.fullMetadata.rowHeaderSize)})}}},k_e={class:"container"},T_e={ref:"plotlyplot",class:"vue-plotly"},S_e={key:0};function A_e(e,t,n,r,a,o){const i=af,l=rf,s=ef,u=of;return c.openBlock(),c.createElementBlock("div",k_e,[c.createElementVNode("div",T_e,null,512),c.createElementVNode("div",{class:c.normalizeClass(["chooser-container",{inactive:e.loading}])},[c.createElementVNode("span",null,[c.createVNode(l,{modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=d=>e.filterX=d),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.columnHeaders,d=>(c.openBlock(),c.createBlock(i,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),c.createElementVNode("span",null,[c.createVNode(l,{modelValue:e.filterY,"onUpdate:modelValue":t[1]||(t[1]=d=>e.filterY=d),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rowHeaders,d=>(c.openBlock(),c.createBlock(i,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),c.createElementVNode("span",null,[c.createVNode(s,{class:"view-heatmap-button",onClick:o.filterPlot},{default:c.withCtx(()=>[c.createTextVNode("Filter plot")]),_:1},8,["onClick"])]),o.logScaleEnabled?(c.openBlock(),c.createElementBlock("span",S_e,[c.createVNode(s,{class:"view-heatmap-button",onClick:o.logToggle},{default:c.withCtx(()=>[c.createTextVNode("Toggle log")]),_:1},8,["onClick"])])):c.createCommentVNode("",!0)],2),c.createVNode(u,{"parent-element":{element:e.$refs.plotlyplot},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])])}const M_e=sm(__e,[["render",A_e],["__scopeId","data-v-b959c7dc"]]),C_e=["1.2.0","1.1.0"],O_e={name:"PlotVuer",components:{TimeseriesPlot:w_e,HeatmapPlot:M_e},props:{dataSource:{type:Object,default:()=>{}},metadata:{type:Object,required:!0,validator:function(e){return C_e.includes(e.version)&&e.type==="plot"}},plotLayout:{type:Object,default:()=>({height:667})},supplementalData:{type:Array,default:()=>[]},helpMode:{type:Boolean,default:!1}},computed:{plotType:function(){return this.metadata.attrs.style+"-plot"},layout:function(){let e=this.metadata?this.metadata.attrs?this.metadata.attrs.layout?this.metadata.attrs.layout:this.plotLayout:this.plotLayout:this.plotLayout;return e.height=e.height?e.height:667,e}}},E_e={class:"plotvuer_parent"};function L_e(e,t,n,r,a,o){return c.openBlock(),c.createElementBlock("div",E_e,[o.plotType!="-plot"?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(o.plotType),{key:0,sourceData:n.dataSource,plotLayout:o.layout,version:n.metadata.version,metadata:n.metadata.attrs,supplementalData:n.supplementalData},null,8,["sourceData","plotLayout","version","metadata","supplementalData"])):c.createCommentVNode("",!0)])}const z_e=sm(O_e,[["render",L_e],["__scopeId","data-v-a5e06718"]]);var ts={},oy={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */oy.exports,function(e,t){(function(n){var r=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,o=typeof Sh=="object"&&Sh;(o.global===o||o.window===o||o.self===o)&&(n=o);var i,l=2147483647,s=36,u=1,d=26,f=38,p=700,g=72,h=128,y="-",b=/^xn--/,v=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=s-u,S=Math.floor,T=String.fromCharCode,C;function A(H){throw new RangeError(k[H])}function O(H,j){for(var q=H.length,$=[];q--;)$[q]=j(H[q]);return $}function F(H,j){var q=H.split("@"),$="";q.length>1&&($=q[0]+"@",H=q[1]),H=H.replace(x,".");var ne=H.split("."),te=O(ne,j).join(".");return $+te}function R(H){for(var j=[],q=0,$=H.length,ne,te;q<$;)ne=H.charCodeAt(q++),ne>=55296&&ne<=56319&&q<$?(te=H.charCodeAt(q++),(te&64512)==56320?j.push(((ne&1023)<<10)+(te&1023)+65536):(j.push(ne),q--)):j.push(ne);return j}function N(H){return O(H,function(j){var q="";return j>65535&&(j-=65536,q+=T(j>>>10&1023|55296),j=56320|j&1023),q+=T(j),q}).join("")}function B(H){return H-48<10?H-22:H-65<26?H-65:H-97<26?H-97:s}function V(H,j){return H+22+75*(H<26)-((j!=0)<<5)}function Z(H,j,q){var $=0;for(H=q?S(H/p):H>>1,H+=S(H/j);H>_*d>>1;$+=s)H=S(H/_);return S($+(_+1)*H/(H+f))}function G(H){var j=[],q=H.length,$,ne=0,te=h,ee=g,se,U,Y,J,re,oe,he,ve,ge;for(se=H.lastIndexOf(y),se<0&&(se=0),U=0;U<se;++U)H.charCodeAt(U)>=128&&A("not-basic"),j.push(H.charCodeAt(U));for(Y=se>0?se+1:0;Y<q;){for(J=ne,re=1,oe=s;Y>=q&&A("invalid-input"),he=B(H.charCodeAt(Y++)),(he>=s||he>S((l-ne)/re))&&A("overflow"),ne+=he*re,ve=oe<=ee?u:oe>=ee+d?d:oe-ee,!(he<ve);oe+=s)ge=s-ve,re>S(l/ge)&&A("overflow"),re*=ge;$=j.length+1,ee=Z(ne-J,$,J==0),S(ne/$)>l-te&&A("overflow"),te+=S(ne/$),ne%=$,j.splice(ne++,0,te)}return N(j)}function I(H){var j,q,$,ne,te,ee,se,U,Y,J,re,oe=[],he,ve,ge,xe;for(H=R(H),he=H.length,j=h,q=0,te=g,ee=0;ee<he;++ee)re=H[ee],re<128&&oe.push(T(re));for($=ne=oe.length,ne&&oe.push(y);$<he;){for(se=l,ee=0;ee<he;++ee)re=H[ee],re>=j&&re<se&&(se=re);for(ve=$+1,se-j>S((l-q)/ve)&&A("overflow"),q+=(se-j)*ve,j=se,ee=0;ee<he;++ee)if(re=H[ee],re<j&&++q>l&&A("overflow"),re==j){for(U=q,Y=s;J=Y<=te?u:Y>=te+d?d:Y-te,!(U<J);Y+=s)xe=U-J,ge=s-J,oe.push(T(V(J+xe%ge,0))),U=S(xe/ge);oe.push(T(V(U,0))),te=Z(q,ve,$==ne),q=0,++$}++q,++j}return oe.join("")}function P(H){return F(H,function(j){return b.test(j)?G(j.slice(4).toLowerCase()):j})}function z(H){return F(H,function(j){return v.test(j)?"xn--"+I(j):j})}if(i={version:"1.4.1",ucs2:{decode:R,encode:N},decode:G,encode:I,toASCII:z,toUnicode:P},r&&a)if(e.exports==r)a.exports=i;else for(C in i)i.hasOwnProperty(C)&&(r[C]=i[C]);else n.punycode=i})(Sh)}(oy,oy.exports);var F_e=oy.exports,I_e=Error,D_e=EvalError,P_e=RangeError,R_e=ReferenceError,xP=SyntaxError,Fp=TypeError,N_e=URIError,B_e=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,n);if(i.value!==a||i.enumerable!==!0)return!1}return!0},wP=typeof Symbol<"u"&&Symbol,j_e=B_e,V_e=function(){return typeof wP!="function"||typeof Symbol!="function"||typeof wP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:j_e()},_P={foo:{}},H_e=Object,U_e=function(){return{__proto__:_P}.foo===_P.foo&&!({__proto__:null}instanceof H_e)},q_e="Function.prototype.bind called on incompatible ",W_e=Object.prototype.toString,G_e=Math.max,Z_e="[object Function]",kP=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},K_e=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},Y_e=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},J_e=function(t){var n=this;if(typeof n!="function"||W_e.apply(n)!==Z_e)throw new TypeError(q_e+n);for(var r=K_e(arguments,1),a,o=function(){if(this instanceof a){var d=n.apply(this,kP(r,arguments));return Object(d)===d?d:this}return n.apply(t,kP(r,arguments))},i=G_e(0,n.length-r.length),l=[],s=0;s<i;s++)l[s]="$"+s;if(a=Function("binder","return function ("+Y_e(l,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},Q_e=J_e,X_e=Function.prototype.bind||Q_e,$_e="Function.prototype.bind called on incompatible ",eke=Object.prototype.toString,tke=Math.max,nke="[object Function]",TP=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},rke=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},ake=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},oke=function(t){var n=this;if(typeof n!="function"||eke.apply(n)!==nke)throw new TypeError($_e+n);for(var r=rke(arguments,1),a,o=function(){if(this instanceof a){var d=n.apply(this,TP(r,arguments));return Object(d)===d?d:this}return n.apply(t,TP(r,arguments))},i=tke(0,n.length-r.length),l=[],s=0;s<i;s++)l[s]="$"+s;if(a=Function("binder","return function ("+ake(l,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},ike=oke,lke=Function.prototype.bind||ike,ske=Function.prototype.call,cke=Object.prototype.hasOwnProperty,uke=lke,dke=uke.call(ske,cke),fn,fke=I_e,pke=D_e,hke=P_e,mke=R_e,od=xP,id=Fp,gke=N_e,SP=Function,w_=function(e){try{return SP('"use strict"; return ('+e+").constructor;")()}catch{}},ic=Object.getOwnPropertyDescriptor;if(ic)try{ic({},"")}catch{ic=null}var __=function(){throw new id},yke=ic?function(){try{return arguments.callee,__}catch{try{return ic(arguments,"callee").get}catch{return __}}}():__,ld=V_e(),vke=U_e(),Ar=Object.getPrototypeOf||(vke?function(e){return e.__proto__}:null),sd={},bke=typeof Uint8Array>"u"||!Ar?fn:Ar(Uint8Array),lc={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?fn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?fn:ArrayBuffer,"%ArrayIteratorPrototype%":ld&&Ar?Ar([][Symbol.iterator]()):fn,"%AsyncFromSyncIteratorPrototype%":fn,"%AsyncFunction%":sd,"%AsyncGenerator%":sd,"%AsyncGeneratorFunction%":sd,"%AsyncIteratorPrototype%":sd,"%Atomics%":typeof Atomics>"u"?fn:Atomics,"%BigInt%":typeof BigInt>"u"?fn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?fn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?fn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?fn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fke,"%eval%":eval,"%EvalError%":pke,"%Float32Array%":typeof Float32Array>"u"?fn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?fn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?fn:FinalizationRegistry,"%Function%":SP,"%GeneratorFunction%":sd,"%Int8Array%":typeof Int8Array>"u"?fn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?fn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?fn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ld&&Ar?Ar(Ar([][Symbol.iterator]())):fn,"%JSON%":typeof JSON=="object"?JSON:fn,"%Map%":typeof Map>"u"?fn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ld||!Ar?fn:Ar(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?fn:Promise,"%Proxy%":typeof Proxy>"u"?fn:Proxy,"%RangeError%":hke,"%ReferenceError%":mke,"%Reflect%":typeof Reflect>"u"?fn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?fn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ld||!Ar?fn:Ar(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?fn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ld&&Ar?Ar(""[Symbol.iterator]()):fn,"%Symbol%":ld?Symbol:fn,"%SyntaxError%":od,"%ThrowTypeError%":yke,"%TypedArray%":bke,"%TypeError%":id,"%Uint8Array%":typeof Uint8Array>"u"?fn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?fn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?fn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?fn:Uint32Array,"%URIError%":gke,"%WeakMap%":typeof WeakMap>"u"?fn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?fn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?fn:WeakSet};if(Ar)try{null.error}catch(e){var xke=Ar(Ar(e));lc["%Error.prototype%"]=xke}var wke=function e(t){var n;if(t==="%AsyncFunction%")n=w_("async function () {}");else if(t==="%GeneratorFunction%")n=w_("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=w_("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ar&&(n=Ar(a.prototype))}return lc[t]=n,n},AP={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ip=X_e,iy=dke,_ke=Ip.call(Function.call,Array.prototype.concat),kke=Ip.call(Function.apply,Array.prototype.splice),MP=Ip.call(Function.call,String.prototype.replace),ly=Ip.call(Function.call,String.prototype.slice),Tke=Ip.call(Function.call,RegExp.prototype.exec),Ske=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ake=/\\(\\)?/g,Mke=function(t){var n=ly(t,0,1),r=ly(t,-1);if(n==="%"&&r!=="%")throw new od("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new od("invalid intrinsic syntax, expected opening `%`");var a=[];return MP(t,Ske,function(o,i,l,s){a[a.length]=l?MP(s,Ake,"$1"):i||o}),a},Cke=function(t,n){var r=t,a;if(iy(AP,r)&&(a=AP[r],r="%"+a[0]+"%"),iy(lc,r)){var o=lc[r];if(o===sd&&(o=wke(r)),typeof o>"u"&&!n)throw new id("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new od("intrinsic "+t+" does not exist!")},sc=function(t,n){if(typeof t!="string"||t.length===0)throw new id("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new id('"allowMissing" argument must be a boolean');if(Tke(/^%?[^%]*%?$/,t)===null)throw new od("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Mke(t),a=r.length>0?r[0]:"",o=Cke("%"+a+"%",n),i=o.name,l=o.value,s=!1,u=o.alias;u&&(a=u[0],kke(r,_ke([0,1],u)));for(var d=1,f=!0;d<r.length;d+=1){var p=r[d],g=ly(p,0,1),h=ly(p,-1);if((g==='"'||g==="'"||g==="`"||h==='"'||h==="'"||h==="`")&&g!==h)throw new od("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(s=!0),a+="."+p,i="%"+a+"%",iy(lc,i))l=lc[i];else if(l!=null){if(!(p in l)){if(!n)throw new id("base intrinsic for "+t+" exists, but the property is not available.");return}if(ic&&d+1>=r.length){var y=ic(l,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[p]}else f=iy(l,p),l=l[p];f&&!s&&(lc[i]=l)}}return l},CP={exports:{}},Oke="Function.prototype.bind called on incompatible ",Eke=Object.prototype.toString,Lke=Math.max,zke="[object Function]",OP=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},Fke=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},Ike=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Dke=function(t){var n=this;if(typeof n!="function"||Eke.apply(n)!==zke)throw new TypeError(Oke+n);for(var r=Fke(arguments,1),a,o=function(){if(this instanceof a){var d=n.apply(this,OP(r,arguments));return Object(d)===d?d:this}return n.apply(t,OP(r,arguments))},i=Lke(0,n.length-r.length),l=[],s=0;s<i;s++)l[s]="$"+s;if(a=Function("binder","return function ("+Ike(l,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},Pke=Dke,Rke=Function.prototype.bind||Pke,Nke=sc,k_=Nke("%Object.defineProperty%",!0),T_=function(){if(k_)try{return k_({},"a",{value:1}),!0}catch{return!1}return!1};T_.hasArrayLengthDefineBug=function(){if(!T_())return null;try{return k_([],"length",{value:1}).length!==1}catch{return!0}};var EP=T_,Bke=sc,sy=Bke("%Object.getOwnPropertyDescriptor%",!0);if(sy)try{sy([],"length")}catch{sy=null}var LP=sy,jke=EP(),Vke=sc,Dp=jke&&Vke("%Object.defineProperty%",!0);if(Dp)try{Dp({},"a",{value:1})}catch{Dp=!1}var Hke=xP,cd=Fp,zP=LP,Uke=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new cd("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new cd("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cd("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cd("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cd("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cd("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!zP&&zP(t,n);if(Dp)Dp(t,n,{configurable:i===null&&s?s.configurable:!i,enumerable:a===null&&s?s.enumerable:!a,value:r,writable:o===null&&s?s.writable:!o});else if(l||!a&&!o&&!i)t[n]=r;else throw new Hke("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qke=sc,FP=Uke,Wke=EP(),IP=LP,DP=Fp,Gke=qke("%Math.floor%"),Zke=function(t,n){if(typeof t!="function")throw new DP("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Gke(n)!==n)throw new DP("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&IP){var i=IP(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!r)&&(Wke?FP(t,"length",n,!0,!0):FP(t,"length",n)),t};(function(e){var t=Rke,n=sc,r=Zke,a=Fp,o=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(i,o),s=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var g=l(t,i,arguments);return r(g,1+u(0,p.length-(arguments.length-1)),!0)};var d=function(){return l(t,o,arguments)};s?s(e.exports,"apply",{value:d}):e.exports.apply=d})(CP);var Kke=CP.exports,PP=sc,RP=Kke,Yke=RP(PP("String.prototype.indexOf")),Jke=function(t,n){var r=PP(t,!!n);return typeof r=="function"&&Yke(t,".prototype.")>-1?RP(r):r};const Qke=DW(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var S_=typeof Map=="function"&&Map.prototype,A_=Object.getOwnPropertyDescriptor&&S_?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,cy=S_&&A_&&typeof A_.get=="function"?A_.get:null,NP=S_&&Map.prototype.forEach,M_=typeof Set=="function"&&Set.prototype,C_=Object.getOwnPropertyDescriptor&&M_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,uy=M_&&C_&&typeof C_.get=="function"?C_.get:null,BP=M_&&Set.prototype.forEach,Xke=typeof WeakMap=="function"&&WeakMap.prototype,Pp=Xke?WeakMap.prototype.has:null,$ke=typeof WeakSet=="function"&&WeakSet.prototype,Rp=$ke?WeakSet.prototype.has:null,eTe=typeof WeakRef=="function"&&WeakRef.prototype,jP=eTe?WeakRef.prototype.deref:null,tTe=Boolean.prototype.valueOf,nTe=Object.prototype.toString,rTe=Function.prototype.toString,aTe=String.prototype.match,O_=String.prototype.slice,ns=String.prototype.replace,oTe=String.prototype.toUpperCase,VP=String.prototype.toLowerCase,HP=RegExp.prototype.test,UP=Array.prototype.concat,vi=Array.prototype.join,iTe=Array.prototype.slice,qP=Math.floor,E_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,L_=Object.getOwnPropertySymbols,z_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ud=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Wr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ud||!0)?Symbol.toStringTag:null,WP=Object.prototype.propertyIsEnumerable,GP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ZP(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||HP.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-qP(-e):qP(e);if(r!==e){var a=String(r),o=O_.call(t,a.length+1);return ns.call(a,n,"$&_")+"."+ns.call(ns.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ns.call(t,n,"$&_")}var F_=Qke,KP=F_.custom,YP=XP(KP)?KP:null,lTe=function e(t,n,r,a){var o=n||{};if(rs(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(rs(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=rs(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(rs(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(rs(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return eR(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?ZP(t,s):s}if(typeof t=="bigint"){var u=String(t)+"n";return l?ZP(t,u):u}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return I_(t)?"[Array]":"[Object]";var f=STe(o,r);if(typeof a>"u")a=[];else if($P(a,t)>=0)return"[Circular]";function p(B,V,Z){if(V&&(a=iTe.call(a),a.push(V)),Z){var G={depth:o.depth};return rs(o,"quoteStyle")&&(G.quoteStyle=o.quoteStyle),e(B,G,r+1,a)}return e(B,o,r+1,a)}if(typeof t=="function"&&!QP(t)){var g=gTe(t),h=dy(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(h.length>0?" { "+vi.call(h,", ")+" }":"")}if(XP(t)){var y=ud?ns.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):z_.call(t);return typeof t=="object"&&!ud?Np(y):y}if(_Te(t)){for(var b="<"+VP.call(String(t.nodeName)),v=t.attributes||[],x=0;x<v.length;x++)b+=" "+v[x].name+"="+JP(sTe(v[x].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+VP.call(String(t.nodeName))+">",b}if(I_(t)){if(t.length===0)return"[]";var k=dy(t,p);return f&&!TTe(k)?"["+P_(k,f)+"]":"[ "+vi.call(k,", ")+" ]"}if(uTe(t)){var _=dy(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!WP.call(t,"cause")?"{ ["+String(t)+"] "+vi.call(UP.call("[cause]: "+p(t.cause),_),", ")+" }":_.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vi.call(_,", ")+" }"}if(typeof t=="object"&&i){if(YP&&typeof t[YP]=="function"&&F_)return F_(t,{depth:d-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yTe(t)){var S=[];return NP&&NP.call(t,function(B,V){S.push(p(V,t,!0)+" => "+p(B,t))}),tR("Map",cy.call(t),S,f)}if(xTe(t)){var T=[];return BP&&BP.call(t,function(B){T.push(p(B,t))}),tR("Set",uy.call(t),T,f)}if(vTe(t))return D_("WeakMap");if(wTe(t))return D_("WeakSet");if(bTe(t))return D_("WeakRef");if(fTe(t))return Np(p(Number(t)));if(hTe(t))return Np(p(E_.call(t)));if(pTe(t))return Np(tTe.call(t));if(dTe(t))return Np(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Sh)return"{ [object globalThis] }";if(!cTe(t)&&!QP(t)){var C=dy(t,p),A=GP?GP(t)===Object.prototype:t instanceof Object||t.constructor===Object,O=t instanceof Object?"":"null prototype",F=!A&&Wr&&Object(t)===t&&Wr in t?O_.call(as(t),8,-1):O?"Object":"",R=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",N=R+(F||O?"["+vi.call(UP.call([],F||[],O||[]),": ")+"] ":"");return C.length===0?N+"{}":f?N+"{"+P_(C,f)+"}":N+"{ "+vi.call(C,", ")+" }"}return String(t)};function JP(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function sTe(e){return ns.call(String(e),/"/g,"&quot;")}function I_(e){return as(e)==="[object Array]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function cTe(e){return as(e)==="[object Date]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function QP(e){return as(e)==="[object RegExp]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function uTe(e){return as(e)==="[object Error]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function dTe(e){return as(e)==="[object String]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function fTe(e){return as(e)==="[object Number]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function pTe(e){return as(e)==="[object Boolean]"&&(!Wr||!(typeof e=="object"&&Wr in e))}function XP(e){if(ud)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!z_)return!1;try{return z_.call(e),!0}catch{}return!1}function hTe(e){if(!e||typeof e!="object"||!E_)return!1;try{return E_.call(e),!0}catch{}return!1}var mTe=Object.prototype.hasOwnProperty||function(e){return e in this};function rs(e,t){return mTe.call(e,t)}function as(e){return nTe.call(e)}function gTe(e){if(e.name)return e.name;var t=aTe.call(rTe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $P(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function yTe(e){if(!cy||!e||typeof e!="object")return!1;try{cy.call(e);try{uy.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function vTe(e){if(!Pp||!e||typeof e!="object")return!1;try{Pp.call(e,Pp);try{Rp.call(e,Rp)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function bTe(e){if(!jP||!e||typeof e!="object")return!1;try{return jP.call(e),!0}catch{}return!1}function xTe(e){if(!uy||!e||typeof e!="object")return!1;try{uy.call(e);try{cy.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function wTe(e){if(!Rp||!e||typeof e!="object")return!1;try{Rp.call(e,Rp);try{Pp.call(e,Pp)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function _Te(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function eR(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return eR(O_.call(e,0,t.maxStringLength),t)+r}var a=ns.call(ns.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kTe);return JP(a,"single",t)}function kTe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+oTe.call(t.toString(16))}function Np(e){return"Object("+e+")"}function D_(e){return e+" { ? }"}function tR(e,t,n,r){var a=r?P_(n,r):vi.call(n,", ");return e+" ("+t+") {"+a+"}"}function TTe(e){for(var t=0;t<e.length;t++)if($P(e[t],`
424
+ `)>=0)return!1;return!0}function STe(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=vi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:vi.call(Array(t+1),n)}}function P_(e,t){if(e.length===0)return"";var n=`
425
+ `+t.prev+t.base;return n+vi.call(e,","+n)+`
426
+ `+t.prev}function dy(e,t){var n=I_(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=rs(e,a)?t(e[a],e):""}var o=typeof L_=="function"?L_(e):[],i;if(ud){i={};for(var l=0;l<o.length;l++)i["$"+o[l]]=o[l]}for(var s in e)rs(e,s)&&(n&&String(Number(s))===s&&s<e.length||ud&&i["$"+s]instanceof Symbol||(HP.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof L_=="function")for(var u=0;u<o.length;u++)WP.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var nR=sc,dd=Jke,ATe=lTe,MTe=Fp,fy=nR("%WeakMap%",!0),py=nR("%Map%",!0),CTe=dd("WeakMap.prototype.get",!0),OTe=dd("WeakMap.prototype.set",!0),ETe=dd("WeakMap.prototype.has",!0),LTe=dd("Map.prototype.get",!0),zTe=dd("Map.prototype.set",!0),FTe=dd("Map.prototype.has",!0),R_=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},ITe=function(e,t){var n=R_(e,t);return n&&n.value},DTe=function(e,t,n){var r=R_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},PTe=function(e,t){return!!R_(e,t)},RTe=function(){var t,n,r,a={assert:function(o){if(!a.has(o))throw new MTe("Side channel does not contain "+ATe(o))},get:function(o){if(fy&&o&&(typeof o=="object"||typeof o=="function")){if(t)return CTe(t,o)}else if(py){if(n)return LTe(n,o)}else if(r)return ITe(r,o)},has:function(o){if(fy&&o&&(typeof o=="object"||typeof o=="function")){if(t)return ETe(t,o)}else if(py){if(n)return FTe(n,o)}else if(r)return PTe(r,o);return!1},set:function(o,i){fy&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new fy),OTe(t,o,i)):py?(n||(n=new py),zTe(n,o,i)):(r||(r={key:{},next:null}),DTe(r,o,i))}};return a},NTe=String.prototype.replace,BTe=/%20/g,N_={RFC1738:"RFC1738",RFC3986:"RFC3986"},B_={default:N_.RFC3986,formatters:{RFC1738:function(e){return NTe.call(e,BTe,"+")},RFC3986:function(e){return String(e)}},RFC1738:N_.RFC1738,RFC3986:N_.RFC3986},jTe=B_,j_=Object.prototype.hasOwnProperty,cc=Array.isArray,bi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),VTe=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(cc(r)){for(var a=[],o=0;o<r.length;++o)typeof r[o]<"u"&&a.push(r[o]);n.obj[n.prop]=a}}},rR=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(r[a]=t[a]);return r},HTe=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(cc(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!j_.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return cc(t)&&!cc(n)&&(a=rR(t,r)),cc(t)&&cc(n)?(n.forEach(function(o,i){if(j_.call(t,i)){var l=t[i];l&&typeof l=="object"&&o&&typeof o=="object"?t[i]=e(l,o,r):t.push(o)}else t[i]=o}),t):Object.keys(n).reduce(function(o,i){var l=n[i];return j_.call(o,i)?o[i]=e(o[i],l,r):o[i]=l,o},a)},UTe=function(t,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},t)},qTe=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},WTe=function(t,n,r,a,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",s=0;s<i.length;++s){var u=i.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===jTe.RFC1738&&(u===40||u===41)){l+=i.charAt(s);continue}if(u<128){l=l+bi[u];continue}if(u<2048){l=l+(bi[192|u>>6]+bi[128|u&63]);continue}if(u<55296||u>=57344){l=l+(bi[224|u>>12]+bi[128|u>>6&63]+bi[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|i.charCodeAt(s)&1023),l+=bi[240|u>>18]+bi[128|u>>12&63]+bi[128|u>>6&63]+bi[128|u&63]}return l},GTe=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],a=0;a<n.length;++a)for(var o=n[a],i=o.obj[o.prop],l=Object.keys(i),s=0;s<l.length;++s){var u=l[s],d=i[u];typeof d=="object"&&d!==null&&r.indexOf(d)===-1&&(n.push({obj:i,prop:u}),r.push(d))}return VTe(n),t},ZTe=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},KTe=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},YTe=function(t,n){return[].concat(t,n)},JTe=function(t,n){if(cc(t)){for(var r=[],a=0;a<t.length;a+=1)r.push(n(t[a]));return r}return n(t)},aR={arrayToObject:rR,assign:UTe,combine:YTe,compact:GTe,decode:qTe,encode:WTe,isBuffer:KTe,isRegExp:ZTe,maybeMap:JTe,merge:HTe},oR=RTe,hy=aR,Bp=B_,QTe=Object.prototype.hasOwnProperty,iR={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},al=Array.isArray,XTe=Array.prototype.push,lR=function(e,t){XTe.apply(e,al(t)?t:[t])},$Te=Date.prototype.toISOString,sR=Bp.default,Gr={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hy.encode,encodeValuesOnly:!1,format:sR,formatter:Bp.formatters[sR],indices:!1,serializeDate:function(t){return $Te.call(t)},skipNulls:!1,strictNullHandling:!1},eSe=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},V_={},tSe=function e(t,n,r,a,o,i,l,s,u,d,f,p,g,h,y,b){for(var v=t,x=b,k=0,_=!1;(x=x.get(V_))!==void 0&&!_;){var S=x.get(t);if(k+=1,typeof S<"u"){if(S===k)throw new RangeError("Cyclic object value");_=!0}typeof x.get(V_)>"u"&&(k=0)}if(typeof s=="function"?v=s(n,v):v instanceof Date?v=f(v):r==="comma"&&al(v)&&(v=hy.maybeMap(v,function(G){return G instanceof Date?f(G):G})),v===null){if(o)return l&&!h?l(n,Gr.encoder,y,"key",p):n;v=""}if(eSe(v)||hy.isBuffer(v)){if(l){var T=h?n:l(n,Gr.encoder,y,"key",p);return[g(T)+"="+g(l(v,Gr.encoder,y,"value",p))]}return[g(n)+"="+g(String(v))]}var C=[];if(typeof v>"u")return C;var A;if(r==="comma"&&al(v))h&&l&&(v=hy.maybeMap(v,l)),A=[{value:v.length>0?v.join(",")||null:void 0}];else if(al(s))A=s;else{var O=Object.keys(v);A=u?O.sort(u):O}for(var F=a&&al(v)&&v.length===1?n+"[]":n,R=0;R<A.length;++R){var N=A[R],B=typeof N=="object"&&typeof N.value<"u"?N.value:v[N];if(!(i&&B===null)){var V=al(v)?typeof r=="function"?r(F,N):F:F+(d?"."+N:"["+N+"]");b.set(t,k);var Z=oR();Z.set(V_,b),lR(C,e(B,V,r,a,o,i,r==="comma"&&h&&al(v)?null:l,s,u,d,f,p,g,h,y,Z))}}return C},nSe=function(t){if(!t)return Gr;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Gr.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Bp.default;if(typeof t.format<"u"){if(!QTe.call(Bp.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var a=Bp.formatters[r],o=Gr.filter;return(typeof t.filter=="function"||al(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Gr.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Gr.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Gr.charsetSentinel,delimiter:typeof t.delimiter>"u"?Gr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Gr.encode,encoder:typeof t.encoder=="function"?t.encoder:Gr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Gr.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Gr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Gr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Gr.strictNullHandling}},rSe=function(e,t){var n=e,r=nSe(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):al(r.filter)&&(o=r.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in iR?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var s=iR[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=s==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var d=oR(),f=0;f<a.length;++f){var p=a[f];r.skipNulls&&n[p]===null||lR(i,tSe(n[p],p,s,u,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}var g=i.join(r.delimiter),h=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),g.length>0?h+g:""},fd=aR,H_=Object.prototype.hasOwnProperty,aSe=Array.isArray,Mr={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:fd.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},oSe=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},cR=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},iSe="utf8=%26%2310003%3B",lSe="utf8=%E2%9C%93",sSe=function(t,n){var r={__proto__:null},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,i=a.split(n.delimiter,o),l=-1,s,u=n.charset;if(n.charsetSentinel)for(s=0;s<i.length;++s)i[s].indexOf("utf8=")===0&&(i[s]===lSe?u="utf-8":i[s]===iSe&&(u="iso-8859-1"),l=s,s=i.length);for(s=0;s<i.length;++s)if(s!==l){var d=i[s],f=d.indexOf("]="),p=f===-1?d.indexOf("="):f+1,g,h;p===-1?(g=n.decoder(d,Mr.decoder,u,"key"),h=n.strictNullHandling?null:""):(g=n.decoder(d.slice(0,p),Mr.decoder,u,"key"),h=fd.maybeMap(cR(d.slice(p+1),n),function(y){return n.decoder(y,Mr.decoder,u,"value")})),h&&n.interpretNumericEntities&&u==="iso-8859-1"&&(h=oSe(h)),d.indexOf("[]=")>-1&&(h=aSe(h)?[h]:h),H_.call(r,g)?r[g]=fd.combine(r[g],h):r[g]=h}return r},cSe=function(e,t,n,r){for(var a=r?t:cR(t,n),o=e.length-1;o>=0;--o){var i,l=e[o];if(l==="[]"&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=parseInt(s,10);!n.parseArrays&&s===""?i={0:a}:!isNaN(u)&&l!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[],i[u]=a):s!=="__proto__"&&(i[s]=a)}a=i}return a},uSe=function(t,n,r,a){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&i.exec(o),u=s?o.slice(0,s.index):o,d=[];if(u){if(!r.plainObjects&&H_.call(Object.prototype,u)&&!r.allowPrototypes)return;d.push(u)}for(var f=0;r.depth>0&&(s=l.exec(o))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&H_.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;d.push(s[1])}return s&&d.push("["+o.slice(s.index)+"]"),cSe(d,n,r,a)}},dSe=function(t){if(!t)return Mr;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Mr.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Mr.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Mr.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Mr.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Mr.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Mr.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Mr.comma,decoder:typeof t.decoder=="function"?t.decoder:Mr.decoder,delimiter:typeof t.delimiter=="string"||fd.isRegExp(t.delimiter)?t.delimiter:Mr.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Mr.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Mr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Mr.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Mr.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Mr.strictNullHandling}},fSe=function(e,t){var n=dSe(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?sSe(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var l=o[i],s=uSe(l,r[l],n,typeof e=="string");a=fd.merge(a,s,n)}return n.allowSparse===!0?a:fd.compact(a)},pSe=rSe,hSe=fSe,mSe=B_,gSe={formats:mSe,parse:hSe,stringify:pSe},ySe=F_e;function lo(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var vSe=/^([a-z0-9.+-]+:)/i,bSe=/:[0-9]*$/,xSe=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,wSe=["<",">",'"',"`"," ","\r",`
427
+ `," "],_Se=["{","}","|","\\","^","`"].concat(wSe),U_=["'"].concat(_Se),uR=["%","/","?",";","#"].concat(U_),dR=["/","?","#"],kSe=255,fR=/^[+a-z0-9A-Z_-]{0,63}$/,TSe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,SSe={javascript:!0,"javascript:":!0},q_={javascript:!0,"javascript:":!0},pd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W_=gSe;function jp(e,t,n){if(e&&typeof e=="object"&&e instanceof lo)return e;var r=new lo;return r.parse(e,t,n),r}lo.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),a=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(a),i=/\\/g;o[0]=o[0].replace(i,"/"),e=o.join(a);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var s=xSe.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=W_.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=vSe.exec(l);if(u){u=u[0];var d=u.toLowerCase();this.protocol=d,l=l.substr(u.length)}if(n||u||l.match(/^\/\/[^@/]+@[^@/]+/)){var f=l.substr(0,2)==="//";f&&!(u&&q_[u])&&(l=l.substr(2),this.slashes=!0)}if(!q_[u]&&(f||u&&!pd[u])){for(var p=-1,g=0;g<dR.length;g++){var h=l.indexOf(dR[g]);h!==-1&&(p===-1||h<p)&&(p=h)}var y,b;p===-1?b=l.lastIndexOf("@"):b=l.lastIndexOf("@",p),b!==-1&&(y=l.slice(0,b),l=l.slice(b+1),this.auth=decodeURIComponent(y)),p=-1;for(var g=0;g<uR.length;g++){var h=l.indexOf(uR[g]);h!==-1&&(p===-1||h<p)&&(p=h)}p===-1&&(p=l.length),this.host=l.slice(0,p),l=l.slice(p),this.parseHost(),this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v)for(var x=this.hostname.split(/\./),g=0,k=x.length;g<k;g++){var _=x[g];if(_&&!_.match(fR)){for(var S="",T=0,C=_.length;T<C;T++)_.charCodeAt(T)>127?S+="x":S+=_[T];if(!S.match(fR)){var A=x.slice(0,g),O=x.slice(g+1),F=_.match(TSe);F&&(A.push(F[1]),O.unshift(F[2])),O.length&&(l="/"+O.join(".")+l),this.hostname=A.join(".");break}}}this.hostname.length>kSe?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=ySe.toASCII(this.hostname));var R=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+R,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!SSe[d])for(var g=0,k=U_.length;g<k;g++){var B=U_[g];if(l.indexOf(B)!==-1){var V=encodeURIComponent(B);V===B&&(V=escape(B)),l=l.split(B).join(V)}}var Z=l.indexOf("#");Z!==-1&&(this.hash=l.substr(Z),l=l.slice(0,Z));var G=l.indexOf("?");if(G!==-1?(this.search=l.substr(G),this.query=l.substr(G+1),t&&(this.query=W_.parse(this.query)),l=l.slice(0,G)):t&&(this.search="",this.query={}),l&&(this.pathname=l),pd[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var R=this.pathname||"",I=this.search||"";this.path=R+I}return this.href=this.format(),this};function ASe(e){return typeof e=="string"&&(e=jp(e)),e instanceof lo?e.format():lo.prototype.format.call(e)}lo.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=W_.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var i=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||pd[t])&&a!==!1?(a="//"+(a||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):a||(a=""),r&&r.charAt(0)!=="#"&&(r="#"+r),i&&i.charAt(0)!=="?"&&(i="?"+i),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),i=i.replace("#","%23"),t+a+n+i+r};function MSe(e,t){return jp(e,!1,!0).resolve(t)}lo.prototype.resolve=function(e){return this.resolveObject(jp(e,!1,!0)).format()};function CSe(e,t){return e?jp(e,!1,!0).resolveObject(t):t}lo.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new lo;t.parse(e,!1,!0),e=t}for(var n=new lo,r=Object.keys(this),a=0;a<r.length;a++){var o=r[a];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),l=0;l<i.length;l++){var s=i[l];s!=="protocol"&&(n[s]=e[s])}return pd[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!pd[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var f=u[d];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!q_[e.protocol]){for(var k=(e.pathname||"").split("/");k.length&&!(e.host=k.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),k[0]!==""&&k.unshift(""),k.length<2&&k.unshift(""),n.pathname=k.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",g=n.search||"";n.path=p+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var h=n.pathname&&n.pathname.charAt(0)==="/",y=e.host||e.pathname&&e.pathname.charAt(0)==="/",b=y||h||n.host&&e.pathname,v=b,x=n.pathname&&n.pathname.split("/")||[],k=e.pathname&&e.pathname.split("/")||[],_=n.protocol&&!pd[n.protocol];if(_&&(n.hostname="",n.port=null,n.host&&(x[0]===""?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(k[0]===""?k[0]=e.host:k.unshift(e.host)),e.host=null),b=b&&(k[0]===""||x[0]==="")),y)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=k;else if(k.length)x||(x=[]),x.pop(),x=x.concat(k),n.search=e.search,n.query=e.query;else if(e.search!=null){if(_){n.host=x.shift(),n.hostname=n.host;var S=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;S&&(n.auth=S.shift(),n.hostname=S.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=x.slice(-1)[0],C=(n.host||e.host||x.length>1)&&(T==="."||T==="..")||T==="",A=0,O=x.length;O>=0;O--)T=x[O],T==="."?x.splice(O,1):T===".."?(x.splice(O,1),A++):A&&(x.splice(O,1),A--);if(!b&&!v)for(;A--;A)x.unshift("..");b&&x[0]!==""&&(!x[0]||x[0].charAt(0)!=="/")&&x.unshift(""),C&&x.join("/").substr(-1)!=="/"&&x.push("");var F=x[0]===""||x[0]&&x[0].charAt(0)==="/";if(_){n.hostname=F?"":x.length?x.shift():"",n.host=n.hostname;var S=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;S&&(n.auth=S.shift(),n.hostname=S.shift(),n.host=n.hostname)}return b=b||n.host&&x.length,b&&!F&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},lo.prototype.parseHost=function(){var e=this.host,t=bSe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},ts.parse=jp,ts.resolve=MSe,ts.resolveObject=CSe,ts.format=ASe,ts.Url=lo;var lr={},pR=ts,G_=lr.ValidationError=function(t,n,r,a,o,i){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(s,u){return s+mR(u)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),r){var l=r.$id||r.id;this.schema=l||r}n!==void 0&&(this.instance=n),this.name=o,this.argument=i,this.stack=this.toString()};G_.prototype.toString=function(){return this.property+" "+this.message};var my=lr.ValidatorResult=function(t,n,r,a){this.instance=t,this.schema=n,this.options=r,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&r.disableFormat===!0};my.prototype.addError=function(t){var n;if(typeof t=="string")n=new G_(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");n=new G_(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(n),this.throwFirst)throw new uc(this);if(this.throwError)throw n;return n},my.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function OSe(e,t){return t+": "+e.toString()+`
428
+ `}my.prototype.toString=function(t){return this.errors.map(OSe).join("")},Object.defineProperty(my.prototype,"valid",{get:function(){return!this.errors.length}}),lr.ValidatorResultError=uc;function uc(e){Error.captureStackTrace&&Error.captureStackTrace(this,uc),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}uc.prototype=new Error,uc.prototype.constructor=uc,uc.prototype.name="Validation Error";var hR=lr.SchemaError=function e(t,n){this.message=t,this.schema=n,Error.call(this,t),Error.captureStackTrace(this,e)};hR.prototype=Object.create(Error.prototype,{constructor:{value:hR,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var Z_=lr.SchemaContext=function(t,n,r,a,o){this.schema=t,this.options=n,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce(function(i,l){return i+mR(l)},"instance")):this.propertyPath=r,this.base=a,this.schemas=o};Z_.prototype.resolve=function(t){return pR.resolve(this.base,t)},Z_.prototype.makeChild=function(t,n){var r=n===void 0?this.path:this.path.concat([n]),a=t.$id||t.id,o=pR.resolve(this.base,a||""),i=new Z_(t,this.options,r,o,Object.create(this.schemas));return a&&!i.schemas[o]&&(i.schemas[o]=t),i};var Bo=lr.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};Bo.regexp=Bo.regex,Bo.pattern=Bo.regex,Bo.ipv4=Bo["ip-address"],lr.isFormat=function(t,n,r){if(typeof t=="string"&&Bo[n]!==void 0){if(Bo[n]instanceof RegExp)return Bo[n].test(t);if(typeof Bo[n]=="function")return Bo[n](t)}else if(r&&r.customFormats&&typeof r.customFormats[n]=="function")return r.customFormats[n](t);return!0};var mR=lr.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};lr.deepCompareStrict=function e(t,n){if(typeof t!=typeof n)return!1;if(Array.isArray(t))return!Array.isArray(n)||t.length!==n.length?!1:t.every(function(o,i){return e(t[i],n[i])});if(typeof t=="object"){if(!t||!n)return t===n;var r=Object.keys(t),a=Object.keys(n);return r.length!==a.length?!1:r.every(function(o){return e(t[o],n[o])})}return t===n};function ESe(e,t,n,r){typeof n=="object"?t[r]=K_(e[r],n):e.indexOf(n)===-1&&t.push(n)}function LSe(e,t,n){t[n]=e[n]}function zSe(e,t,n,r){typeof t[r]!="object"||!t[r]?n[r]=t[r]:e[r]?n[r]=K_(e[r],t[r]):n[r]=t[r]}function K_(e,t){var n=Array.isArray(t),r=n&&[]||{};return n?(e=e||[],r=r.concat(e),t.forEach(ESe.bind(null,e,r))):(e&&typeof e=="object"&&Object.keys(e).forEach(LSe.bind(null,e,r)),Object.keys(t).forEach(zSe.bind(null,e,t,r))),r}lr.deepMerge=K_,lr.objectGetPath=function(t,n){for(var r=n.split("/").slice(1),a;typeof(a=r.shift())=="string";){var o=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(o in t))return;t=t[o]}return t};function FSe(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}lr.encodePath=function(t){return t.map(FSe).join("")},lr.getDecimalPlaces=function(t){var n=0;if(isNaN(t))return n;typeof t!="number"&&(t=Number(t));var r=t.toString().split("e");if(r.length===2){if(r[1][0]!=="-")return n;n=Number(r[1].slice(1))}var a=r[0].split(".");return a.length===2&&(n+=a[1].length),n},lr.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var La=lr,wn=La.ValidatorResult,os=La.SchemaError,Y_={};Y_.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var _n=Y_.validators={};_n.type=function(t,n,r,a){if(t===void 0)return null;var o=new wn(t,n,r,a),i=Array.isArray(n.type)?n.type:[n.type];if(!i.some(this.testType.bind(this,t,n,r,a))){var l=i.map(function(s){if(s){var u=s.$id||s.id;return u?"<"+u+">":s+""}});o.addError({name:"type",argument:l,message:"is not of a type(s) "+l})}return o};function J_(e,t,n,r,a){var o=t.throwError,i=t.throwAll;t.throwError=!1,t.throwAll=!1;var l=this.validateSchema(e,a,t,n);return t.throwError=o,t.throwAll=i,!l.valid&&r instanceof Function&&r(l),l.valid}_n.anyOf=function(t,n,r,a){if(t===void 0)return null;var o=new wn(t,n,r,a),i=new wn(t,n,r,a);if(!Array.isArray(n.anyOf))throw new os("anyOf must be an array");if(!n.anyOf.some(J_.bind(this,t,r,a,function(s){i.importErrors(s)}))){var l=n.anyOf.map(function(s,u){var d=s.$id||s.id;return d?"<"+d+">":s.title&&JSON.stringify(s.title)||s.$ref&&"<"+s.$ref+">"||"[subschema "+u+"]"});r.nestedErrors&&o.importErrors(i),o.addError({name:"anyOf",argument:l,message:"is not any of "+l.join(",")})}return o},_n.allOf=function(t,n,r,a){if(t===void 0)return null;if(!Array.isArray(n.allOf))throw new os("allOf must be an array");var o=new wn(t,n,r,a),i=this;return n.allOf.forEach(function(l,s){var u=i.validateSchema(t,l,r,a);if(!u.valid){var d=l.$id||l.id,f=d||l.title&&JSON.stringify(l.title)||l.$ref&&"<"+l.$ref+">"||"[subschema "+s+"]";o.addError({name:"allOf",argument:{id:f,length:u.errors.length,valid:u},message:"does not match allOf schema "+f+" with "+u.errors.length+" error[s]:"}),o.importErrors(u)}}),o},_n.oneOf=function(t,n,r,a){if(t===void 0)return null;if(!Array.isArray(n.oneOf))throw new os("oneOf must be an array");var o=new wn(t,n,r,a),i=new wn(t,n,r,a),l=n.oneOf.filter(J_.bind(this,t,r,a,function(u){i.importErrors(u)})).length,s=n.oneOf.map(function(u,d){var f=u.$id||u.id;return f||u.title&&JSON.stringify(u.title)||u.$ref&&"<"+u.$ref+">"||"[subschema "+d+"]"});return l!==1&&(r.nestedErrors&&o.importErrors(i),o.addError({name:"oneOf",argument:s,message:"is not exactly one from "+s.join(",")})),o},_n.if=function(t,n,r,a){if(t===void 0)return null;if(!La.isSchema(n.if))throw new Error('Expected "if" keyword to be a schema');var o=J_.call(this,t,r,a,null,n.if),i=new wn(t,n,r,a),l;if(o){if(n.then===void 0)return;if(!La.isSchema(n.then))throw new Error('Expected "then" keyword to be a schema');l=this.validateSchema(t,n.then,r,a.makeChild(n.then)),i.importErrors(l)}else{if(n.else===void 0)return;if(!La.isSchema(n.else))throw new Error('Expected "else" keyword to be a schema');l=this.validateSchema(t,n.else,r,a.makeChild(n.else)),i.importErrors(l)}return i};function Q_(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}_n.propertyNames=function(t,n,r,a){if(this.types.object(t)){var o=new wn(t,n,r,a),i=n.propertyNames!==void 0?n.propertyNames:{};if(!La.isSchema(i))throw new os('Expected "propertyNames" to be a schema (object or boolean)');for(var l in t)if(Q_(t,l)!==void 0){var s=this.validateSchema(l,i,r,a.makeChild(i));o.importErrors(s)}return o}},_n.properties=function(t,n,r,a){if(this.types.object(t)){var o=new wn(t,n,r,a),i=n.properties||{};for(var l in i){var s=i[l];if(s!==void 0){if(s===null)throw new os('Unexpected null, expected schema in "properties"');typeof r.preValidateProperty=="function"&&r.preValidateProperty(t,l,s,r,a);var u=Q_(t,l),d=this.validateSchema(u,s,r,a.makeChild(s,l));d.instance!==o.instance[l]&&(o.instance[l]=d.instance),o.importErrors(d)}}return o}};function gR(e,t,n,r,a,o){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)o.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var i=t.additionalProperties||{};typeof n.preValidateProperty=="function"&&n.preValidateProperty(e,a,i,n,r);var l=this.validateSchema(e[a],i,n,r.makeChild(i,a));l.instance!==o.instance[a]&&(o.instance[a]=l.instance),o.importErrors(l)}}_n.patternProperties=function(t,n,r,a){if(this.types.object(t)){var o=new wn(t,n,r,a),i=n.patternProperties||{};for(var l in t){var s=!0;for(var u in i){var d=i[u];if(d!==void 0){if(d===null)throw new os('Unexpected null, expected schema in "patternProperties"');try{var f=new RegExp(u,"u")}catch{f=new RegExp(u)}if(f.test(l)){s=!1,typeof r.preValidateProperty=="function"&&r.preValidateProperty(t,l,d,r,a);var p=this.validateSchema(t[l],d,r,a.makeChild(d,l));p.instance!==o.instance[l]&&(o.instance[l]=p.instance),o.importErrors(p)}}}s&&gR.call(this,t,n,r,a,l,o)}return o}},_n.additionalProperties=function(t,n,r,a){if(this.types.object(t)){if(n.patternProperties)return null;var o=new wn(t,n,r,a);for(var i in t)gR.call(this,t,n,r,a,i,o);return o}},_n.minProperties=function(t,n,r,a){if(this.types.object(t)){var o=new wn(t,n,r,a),i=Object.keys(t);return i.length>=n.minProperties||o.addError({name:"minProperties",argument:n.minProperties,message:"does not meet minimum property length of "+n.minProperties}),o}},_n.maxProperties=function(t,n,r,a){if(this.types.object(t)){var o=new wn(t,n,r,a),i=Object.keys(t);return i.length<=n.maxProperties||o.addError({name:"maxProperties",argument:n.maxProperties,message:"does not meet maximum property length of "+n.maxProperties}),o}},_n.items=function(t,n,r,a){var o=this;if(this.types.array(t)&&n.items!==void 0){var i=new wn(t,n,r,a);return t.every(function(l,s){if(Array.isArray(n.items))var u=n.items[s]===void 0?n.additionalItems:n.items[s];else var u=n.items;if(u===void 0)return!0;if(u===!1)return i.addError({name:"items",message:"additionalItems not permitted"}),!1;var d=o.validateSchema(l,u,r,a.makeChild(u,s));return d.instance!==i.instance[s]&&(i.instance[s]=d.instance),i.importErrors(d),!0}),i}},_n.contains=function(t,n,r,a){var o=this;if(this.types.array(t)&&n.contains!==void 0){if(!La.isSchema(n.contains))throw new Error('Expected "contains" keyword to be a schema');var i=new wn(t,n,r,a),l=t.some(function(s,u){var d=o.validateSchema(s,n.contains,r,a.makeChild(n.contains,u));return d.errors.length===0});return l===!1&&i.addError({name:"contains",argument:n.contains,message:"must contain an item matching given schema"}),i}},_n.minimum=function(t,n,r,a){if(this.types.number(t)){var o=new wn(t,n,r,a);return n.exclusiveMinimum&&n.exclusiveMinimum===!0?t>n.minimum||o.addError({name:"minimum",argument:n.minimum,message:"must be greater than "+n.minimum}):t>=n.minimum||o.addError({name:"minimum",argument:n.minimum,message:"must be greater than or equal to "+n.minimum}),o}},_n.maximum=function(t,n,r,a){if(this.types.number(t)){var o=new wn(t,n,r,a);return n.exclusiveMaximum&&n.exclusiveMaximum===!0?t<n.maximum||o.addError({name:"maximum",argument:n.maximum,message:"must be less than "+n.maximum}):t<=n.maximum||o.addError({name:"maximum",argument:n.maximum,message:"must be less than or equal to "+n.maximum}),o}},_n.exclusiveMinimum=function(t,n,r,a){if(typeof n.exclusiveMinimum!="boolean"&&this.types.number(t)){var o=new wn(t,n,r,a),i=t>n.exclusiveMinimum;return i||o.addError({name:"exclusiveMinimum",argument:n.exclusiveMinimum,message:"must be strictly greater than "+n.exclusiveMinimum}),o}},_n.exclusiveMaximum=function(t,n,r,a){if(typeof n.exclusiveMaximum!="boolean"&&this.types.number(t)){var o=new wn(t,n,r,a),i=t<n.exclusiveMaximum;return i||o.addError({name:"exclusiveMaximum",argument:n.exclusiveMaximum,message:"must be strictly less than "+n.exclusiveMaximum}),o}};var yR=function(t,n,r,a,o,i){if(this.types.number(t)){var l=n[o];if(l==0)throw new os(o+" cannot be zero");var s=new wn(t,n,r,a),u=La.getDecimalPlaces(t),d=La.getDecimalPlaces(l),f=Math.max(u,d),p=Math.pow(10,f);return Math.round(t*p)%Math.round(l*p)!==0&&s.addError({name:o,argument:l,message:i+JSON.stringify(l)}),s}};_n.multipleOf=function(t,n,r,a){return yR.call(this,t,n,r,a,"multipleOf","is not a multiple of (divisible by) ")},_n.divisibleBy=function(t,n,r,a){return yR.call(this,t,n,r,a,"divisibleBy","is not divisible by (multiple of) ")},_n.required=function(t,n,r,a){var o=new wn(t,n,r,a);return t===void 0&&n.required===!0?o.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(n.required)&&n.required.forEach(function(i){Q_(t,i)===void 0&&o.addError({name:"required",argument:i,message:"requires property "+JSON.stringify(i)})}),o},_n.pattern=function(t,n,r,a){if(this.types.string(t)){var o=new wn(t,n,r,a),i=n.pattern;try{var l=new RegExp(i,"u")}catch{l=new RegExp(i)}return t.match(l)||o.addError({name:"pattern",argument:n.pattern,message:"does not match pattern "+JSON.stringify(n.pattern.toString())}),o}},_n.format=function(t,n,r,a){if(t!==void 0){var o=new wn(t,n,r,a);return!o.disableFormat&&!La.isFormat(t,n.format,this)&&o.addError({name:"format",argument:n.format,message:"does not conform to the "+JSON.stringify(n.format)+" format"}),o}},_n.minLength=function(t,n,r,a){if(this.types.string(t)){var o=new wn(t,n,r,a),i=t.match(/[\uDC00-\uDFFF]/g),l=t.length-(i?i.length:0);return l>=n.minLength||o.addError({name:"minLength",argument:n.minLength,message:"does not meet minimum length of "+n.minLength}),o}},_n.maxLength=function(t,n,r,a){if(this.types.string(t)){var o=new wn(t,n,r,a),i=t.match(/[\uDC00-\uDFFF]/g),l=t.length-(i?i.length:0);return l<=n.maxLength||o.addError({name:"maxLength",argument:n.maxLength,message:"does not meet maximum length of "+n.maxLength}),o}},_n.minItems=function(t,n,r,a){if(this.types.array(t)){var o=new wn(t,n,r,a);return t.length>=n.minItems||o.addError({name:"minItems",argument:n.minItems,message:"does not meet minimum length of "+n.minItems}),o}},_n.maxItems=function(t,n,r,a){if(this.types.array(t)){var o=new wn(t,n,r,a);return t.length<=n.maxItems||o.addError({name:"maxItems",argument:n.maxItems,message:"does not meet maximum length of "+n.maxItems}),o}};function ISe(e,t,n){var r,a=n.length;for(r=t+1,a;r<a;r++)if(La.deepCompareStrict(e,n[r]))return!1;return!0}_n.uniqueItems=function(t,n,r,a){if(n.uniqueItems===!0&&this.types.array(t)){var o=new wn(t,n,r,a);return t.every(ISe)||o.addError({name:"uniqueItems",message:"contains duplicate item"}),o}},_n.dependencies=function(t,n,r,a){if(this.types.object(t)){var o=new wn(t,n,r,a);for(var i in n.dependencies)if(t[i]!==void 0){var l=n.dependencies[i],s=a.makeChild(l,i);if(typeof l=="string"&&(l=[l]),Array.isArray(l))l.forEach(function(d){t[d]===void 0&&o.addError({name:"dependencies",argument:s.propertyPath,message:"property "+d+" not found, required by "+s.propertyPath})});else{var u=this.validateSchema(t,l,r,s);o.instance!==u.instance&&(o.instance=u.instance),u&&u.errors.length&&(o.addError({name:"dependencies",argument:s.propertyPath,message:"does not meet dependency required by "+s.propertyPath}),o.importErrors(u))}}return o}},_n.enum=function(t,n,r,a){if(t===void 0)return null;if(!Array.isArray(n.enum))throw new os("enum expects an array",n);var o=new wn(t,n,r,a);return n.enum.some(La.deepCompareStrict.bind(null,t))||o.addError({name:"enum",argument:n.enum,message:"is not one of enum values: "+n.enum.map(String).join(",")}),o},_n.const=function(t,n,r,a){if(t===void 0)return null;var o=new wn(t,n,r,a);return La.deepCompareStrict(n.const,t)||o.addError({name:"const",argument:n.const,message:"does not exactly match expected constant: "+n.const}),o},_n.not=_n.disallow=function(t,n,r,a){var o=this;if(t===void 0)return null;var i=new wn(t,n,r,a),l=n.not||n.disallow;return l?(Array.isArray(l)||(l=[l]),l.forEach(function(s){if(o.testType(t,n,r,a,s)){var u=s&&(s.$id||s.id),d=u||s;i.addError({name:"not",argument:d,message:"is of prohibited type "+d})}}),i):null};var DSe=Y_,X_={},vR=ts,PSe=lr;X_.SchemaScanResult=bR;function bR(e,t){this.id=e,this.ref=t}X_.scan=function(t,n){function r(s,u){if(!(!u||typeof u!="object")){if(u.$ref){var d=vR.resolve(s,u.$ref);l[d]=l[d]?l[d]+1:0;return}var f=u.$id||u.id,p=f?vR.resolve(s,f):s;if(p){if(p.indexOf("#")<0&&(p+="#"),i[p]){if(!PSe.deepCompareStrict(i[p],u))throw new Error("Schema <"+p+"> already exists with different definition");return i[p]}i[p]=u,p[p.length-1]=="#"&&(i[p.substring(0,p.length-1)]=u)}a(p+"/items",Array.isArray(u.items)?u.items:[u.items]),a(p+"/extends",Array.isArray(u.extends)?u.extends:[u.extends]),r(p+"/additionalItems",u.additionalItems),o(p+"/properties",u.properties),r(p+"/additionalProperties",u.additionalProperties),o(p+"/definitions",u.definitions),o(p+"/patternProperties",u.patternProperties),o(p+"/dependencies",u.dependencies),a(p+"/disallow",u.disallow),a(p+"/allOf",u.allOf),a(p+"/anyOf",u.anyOf),a(p+"/oneOf",u.oneOf),r(p+"/not",u.not)}}function a(s,u){if(Array.isArray(u))for(var d=0;d<u.length;d++)r(s+"/"+d,u[d])}function o(s,u){if(!(!u||typeof u!="object"))for(var d in u)r(s+"/"+d,u[d])}var i={},l={};return r(t,n),new bR(i,l)};var xR=ts,wR=DSe,dc=lr,_R=X_.scan,kR=dc.ValidatorResult,RSe=dc.ValidatorResultError,Vp=dc.SchemaError,TR=dc.SchemaContext,SR="/",Cr=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(xi),this.attributes=Object.create(wR.validators)};Cr.prototype.customFormats={},Cr.prototype.schemas=null,Cr.prototype.types=null,Cr.prototype.attributes=null,Cr.prototype.unresolvedRefs=null,Cr.prototype.addSchema=function(t,n){var r=this;if(!t)return null;var a=_R(n||SR,t),o=n||t.$id||t.id;for(var i in a.id)this.schemas[i]=a.id[i];for(var i in a.ref)this.unresolvedRefs.push(i);return this.unresolvedRefs=this.unresolvedRefs.filter(function(l){return typeof r.schemas[l]>"u"}),this.schemas[o]},Cr.prototype.addSubSchemaArray=function(t,n){if(Array.isArray(n))for(var r=0;r<n.length;r++)this.addSubSchema(t,n[r])},Cr.prototype.addSubSchemaObject=function(t,n){if(!(!n||typeof n!="object"))for(var r in n)this.addSubSchema(t,n[r])},Cr.prototype.setSchemas=function(t){this.schemas=t},Cr.prototype.getSchema=function(t){return this.schemas[t]},Cr.prototype.validate=function(t,n,r,a){if(typeof n!="boolean"&&typeof n!="object"||n===null)throw new Vp("Expected `schema` to be an object or boolean");r||(r={});var o=n.$id||n.id,i=xR.resolve(r.base||SR,o||"");if(!a){a=new TR(n,r,[],i,Object.create(this.schemas)),a.schemas[i]||(a.schemas[i]=n);var l=_R(i,n);for(var s in l.id){var u=l.id[s];a.schemas[s]=u}}if(r.required&&t===void 0){var d=new kR(t,n,r,a);return d.addError("is required, but is undefined"),d}var d=this.validateSchema(t,n,r,a);if(d){if(r.throwAll&&d.errors.length)throw new RSe(d)}else throw new Error("Result undefined");return d};function AR(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}Cr.prototype.validateSchema=function(t,n,r,a){var o=new kR(t,n,r,a);if(typeof n=="boolean")n===!0?n={}:n===!1&&(n={type:[]});else if(!n)throw new Error("schema is undefined");if(n.extends)if(Array.isArray(n.extends)){var i={schema:n,ctx:a};n.extends.forEach(this.schemaTraverser.bind(this,i)),n=i.schema,i.schema=null,i.ctx=null,i=null}else n=dc.deepMerge(n,this.superResolve(n.extends,a));var l=AR(n);if(l){var s=this.resolve(n,l,a),u=new TR(s.subschema,r,a.path,s.switchSchema,a.schemas);return this.validateSchema(t,s.subschema,r,u)}var d=r&&r.skipAttributes||[];for(var f in n)if(!wR.ignoreProperties[f]&&d.indexOf(f)<0){var p=null,g=this.attributes[f];if(g)p=g.call(this,t,n,r,a);else if(r.allowUnknownAttributes===!1)throw new Vp("Unsupported attribute: "+f,n);p&&o.importErrors(p)}if(typeof r.rewrite=="function"){var h=r.rewrite.call(this,t,n,r,a);o.instance=h}return o},Cr.prototype.schemaTraverser=function(t,n){t.schema=dc.deepMerge(t.schema,this.superResolve(n,t.ctx))},Cr.prototype.superResolve=function(t,n){var r=AR(t);return r?this.resolve(t,r,n).subschema:t},Cr.prototype.resolve=function(t,n,r){if(n=r.resolve(n),r.schemas[n])return{subschema:r.schemas[n],switchSchema:n};var a=xR.parse(n),o=a&&a.hash,i=o&&o.length&&n.substr(0,n.length-o.length);if(!i||!r.schemas[i])throw new Vp("no such schema <"+n+">",t);var l=dc.objectGetPath(r.schemas[i],o.substr(1));if(l===void 0)throw new Vp("no such schema "+o+" located in <"+i+">",t);return{subschema:l,switchSchema:n}},Cr.prototype.testType=function(t,n,r,a,o){if(o!==void 0){if(o===null)throw new Vp('Unexpected null in "type" keyword');if(typeof this.types[o]=="function")return this.types[o].call(this,t);if(o&&typeof o=="object"){var i=this.validateSchema(t,o,r,a);return i===void 0||!(i&&i.errors.length)}return!0}};var xi=Cr.prototype.types={};xi.string=function(t){return typeof t=="string"},xi.number=function(t){return typeof t=="number"&&isFinite(t)},xi.integer=function(t){return typeof t=="number"&&t%1===0},xi.boolean=function(t){return typeof t=="boolean"},xi.array=function(t){return Array.isArray(t)},xi.null=function(t){return t===null},xi.date=function(t){return t instanceof Date},xi.any=function(t){return!0},xi.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var NSe=Cr,MR;MR=NSe,lr.ValidatorResult,lr.ValidatorResultError,lr.ValidationError,lr.SchemaError;function BSe(e){let t=new MR,n={additionalProperties:!1,properties:{input:{items:{oneOf:[{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{type:"string"},name:{required:!0,type:"string"},possibleValues:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"number"}},type:"object"},minItems:1,required:!0,type:"array"},visible:{type:"string"}}},{additionalProperties:!1,properties:{defaultValue:{required:!0,type:"number"},id:{type:"string"},maximumValue:{required:!0,type:"number"},minimumValue:{required:!0,type:"number"},name:{required:!0,type:"string"},stepValue:{type:"number"},visible:{type:"string"}}}],type:"object"},minItems:1,required:!0,type:"array"},output:{additionalProperties:!1,minItems:1,properties:{data:{items:{additionalProperties:!1,properties:{id:{required:!0,type:"string"},name:{required:!0,type:"string"}},type:"object"},minItems:1,required:!0,type:"array"},plots:{items:{additionalProperties:!1,properties:{xAxisTitle:{required:!0,type:"string"},xValue:{required:!0,type:"string"},yAxisTitle:{required:!0,type:"string"},yValue:{required:!0,type:"string"}},type:"object"},maxItems:9,minItems:1,required:!0,type:"array"}},required:!0,type:"object"},parameters:{items:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"string"}},type:"object"},type:"array"},simulation:{additionalProperties:!1,properties:{opencor:{additionalProperties:!1,properties:{endingPoint:{type:"number"},pointInterval:{type:"number"},resource:{required:!0,type:"string"}},type:"object"},solvers:{items:{additionalProperties:!1,properties:{if:{type:"string"},input:{additionalProperties:!1,properties:{name:{required:!0,type:"string"},value:{required:!0,type:"string"}},type:"object"},name:{required:!0,type:"string"},version:{required:!0,type:"string"}},type:"object"},minItems:1,required:!0,type:"array"}},required:!0,type:"object"}},type:"object"},r=t.validate(e,n,{nestedErrors:!0});if(!r.valid)return console.warn(r.toString()),!1;let a=[];if(!e.input.every(d=>{if(d.id!==void 0){if(d.id==="")return console.warn("JSON: the input id must not be empty."),!1;if(a[d.id])return console.warn("JSON: the input id must be unique ("+d.id+" is used more than once)."),!1;a[d.id]=!0}if(d.name==="")return console.warn("JSON: the input name must not be empty."),!1;if(d.possibleValues!==void 0){if(!d.possibleValues.every(g=>g.name===""?(console.warn("JSON: an input possible value must not be empty."),!1):!0))return!1;let f=d.possibleValues.map(g=>g.value),p=[];if(!f.every(g=>p[g]?(console.warn("JSON: an input possible value must have a unique value ("+g+" is used more than once)."),!1):(p[g]=!0,!0)))return!1;if(!f.includes(d.defaultValue))return console.warn("JSON: the input default value ("+d.defaultValue+") must be one of the possible values ("+f.join(", ")+")."),!1}if(d.minimumValue!==void 0&&d.maximumValue!==void 0){if(d.minimumValue>=d.maximumValue)return console.warn("JSON: the input minimum value ("+d.minimumValue+") must be lower than the maximum value ("+d.maximumValue+")."),!1;if(d.defaultValue<d.minimumValue||d.defaultValue>d.maximumValue)return console.warn("JSON: the input default value ("+d.defaultValue+") must be greater or equal than the minimum value ("+d.minimumValue+") and lower or equal than the maximum value ("+d.maximumValue+")."),!1;let f=d.maximumValue-d.minimumValue;if(d.stepValue!==void 0){if(d.stepValue<=0||d.stepValue>f)return console.warn("JSON: the input step value ("+d.stepValue+") must be greater than zero and lower or equal than the range value ("+f+")."),!1;if(!Number.isInteger(f/d.stepValue))return console.warn("JSON: the input step value ("+d.stepValue+") must be a factor of the range value ("+f+")."),!1}else if(!Number.isInteger(f))return console.warn("JSON: the (default) input step value (1) must be a factor of the range value ("+f+")."),!1}return d.visible!==void 0&&d.visible===""?(console.warn("JSON: the input visible must not be empty."),!1):!0}))return!1;let i=[];if(!e.output.data.every(d=>{if(d.id!==void 0){if(d.id==="")return console.warn("JSON: the output data id must not be empty."),!1;if(i[d.id])return console.warn("JSON: the output data id must be unique ("+d.id+" is used more than once)."),!1;i[d.id]=!0}return d.name===""?(console.warn("JSON: the output data name must not be empty."),!1):!0})||!e.output.plots.every(d=>d.xAxisTitle===""?(console.warn("JSON: the output plot X axis title must not be empty."),!1):d.xValue===""?(console.warn("JSON: the output plot X value must not be empty."),!1):d.yAxisTitle===""?(console.warn("JSON: the output plot Y axis title must not be empty."),!1):d.yValue===""?(console.warn("JSON: the output plot Y value must not be empty."),!1):!0)||e.parameters!==void 0&&!e.parameters.every(f=>f.name===""?(console.warn("JSON: the parameter name must not be empty."),!1):f.value===""?(console.warn("JSON: the parameter value must not be empty."),!1):!0))return!1;let u=!1;if(!e.simulation.solvers.every(d=>{if(d.if!==void 0&&d.if==="")return console.warn("JSON: a simulation solver if must not be empty."),!1;if(d.input!==void 0){if(d.input.name==="")return console.warn("JSON: a simulation solver input name must not be empty."),!1;if(d.input.value==="")return console.warn("JSON: a simulation solver input value must not be empty."),!1}return d.name===""?(console.warn("JSON: a simulation solver name must not be empty."),!1):(u=u||d.name===hA,d.version===""?(console.warn("JSON: a simulation solver version must not be empty."),!1):!0)}))return!1;if(u&&e.simulation.opencor===void 0)return console.warn("JSON: the simulation solver for OpenCOR is specified so simulation OpenCOR settings must also be specified."),!1;if(e.simulation.opencor!==void 0){if(e.simulation.opencor.resource==="")return console.warn("JSON: the simulation OpenCOR resource must not be empty."),!1;if(e.simulation.opencor.endingPoint!==void 0)if(e.simulation.opencor.pointInterval!==void 0){if(e.simulation.opencor.endingPoint<=0)return console.warn("JSON: the simulation OpenCOR ending point ("+e.simulation.opencor.endingPoint+") must be greater than zero."),!1;if(e.simulation.opencor.pointInterval<=0)return console.warn("JSON: the simulation OpenCOR point interval ("+e.simulation.opencor.pointInterval+") must be greater than zero."),!1}else return console.warn("JSON: a simulation OpenCOR ending point is specified so a simulation OpenCOR point interval must also be specified."),!1;else if(e.simulation.opencor.pointInterval!==void 0)return console.warn("JSON: a simulation OpenCOR point interval is specified so a simulation OpenCOR ending point must also be specified."),!1}return!0}const jSe={name:"SimulationVuer",components:{PlotVuer:z_e,SimulationVuerInput:xA,ElButton:XS,ElDivider:rA,ElLoading:$G},props:{apiLocation:{required:!0,type:String},id:{required:!0,type:Number}},data:function(){let e=new XMLHttpRequest,t,n;return e.open("GET",this.apiLocation+"/sim/dataset/"+this.id,!1),e.setRequestHeader("Content-type","application/json"),e.onreadystatechange=()=>{if(e.readyState===4&&e.status===200){let r=JSON.parse(e.responseText);t=r.name,n=r.study!==void 0?r.study.uuid:void 0}},e.send(),{plotMetadata:{version:"1.1.0",type:"plot",attrs:{style:"timeseries"}},errorMessage:"",hasFinalisedUi:!1,hasValidSimulationUiInfo:!1,isMounted:!1,isSimulationValid:!0,layout:[],name:t,perfectScollbarOptions:{suppressScrollX:!0},showUserMessage:!1,simulationData:[],simulationDataId:{},simulationUiInfo:{},userMessage:"",ui:null,uuid:n}},methods:{retrieveAndBuildSimulationUi(e){this.simulationUiInfo=e,this.hasValidSimulationUiInfo=BSe(this.simulationUiInfo),this.hasValidSimulationUiInfo&&(eZ(this),this.$nextTick(()=>{yA(this)}))},runOnOsparc(){window.open(`https://osparc.io/study/${this.uuid}`,"_blank")},viewDataset(){window.open(`https://sparc.science/datasets/${this.id}?type=dataset`,"_blank")},retrieveRequest(e){let t=e.solver.name===hA;if(t?e.opencor={model_url:this.simulationUiInfo.simulation.opencor.resource,json_config:{}}:e.osparc={},t&&this.simulationUiInfo.simulation.opencor.endingPoint!==void 0&&this.simulationUiInfo.simulation.opencor.pointInterval!==void 0&&(e.opencor.json_config.simulation={"Ending point":this.simulationUiInfo.simulation.opencor.endingPoint,"Point interval":this.simulationUiInfo.simulation.opencor.pointInterval}),this.simulationUiInfo.parameters!==void 0){let n={};this.simulationUiInfo.parameters.forEach(r=>{n[r.name]=Fv(this,r.value)}),t?e.opencor.json_config.parameters=n:e.osparc.job_inputs=n}if(t&&this.simulationUiInfo.output.data!==void 0){let n=-1;e.opencor.json_config.output=[],this.simulationUiInfo.output.data.forEach(r=>{e.opencor.json_config.output[++n]=r.name})}return e},processSimulationResults(e){if(typeof e=="string"){const r=/[ \t]+/g;let a=e.trim().split(`
429
+ `),o=a[0].trim().split(r).length;e={};for(let l=0;l<o;++l)e[l]=[];let i=-1;a.forEach(l=>{++i;let s=-1;l.trim().split(r).forEach(d=>{e[++s][i]=Number(d)})})}let t=-1,n=e[this.simulationDataId[Object.keys(this.simulationDataId)[0]]].length;this.simulationUiInfo.output.plots.forEach(r=>{let a=[],o=[];for(let i=0;i<n;++i)a[i]=gA(this,e,r.xValue,i),o[i]=gA(this,e,r.yValue,i);this.simulationData[++t]=[{x:a,y:o,type:"scatter"}]})},checkSimulation(e){let t=new XMLHttpRequest;t.open("POST",this.apiLocation+"/check_simulation",!0),t.setRequestHeader("Content-type","application/json"),t.onreadystatechange=()=>{if(t.readyState===4)if(t.status===200){let n=JSON.parse(t.responseText);if(this.isSimulationValid=n.status==="ok",this.isSimulationValid)if(n.results!==void 0)this.showUserMessage=!1,this.processSimulationResults(n.results);else{let r=this;setTimeout(function(){r.checkSimulation(e)},1e3)}else this.showUserMessage=!1,this.errorMessage=n.description}else this.isSimulationValid=!1,this.showUserMessage=!1,this.errorMessage=t.statusText.toLowerCase()+" (<a href='https://httpstatuses.com/"+t.status+"/' target='_blank'>"+t.status+"</a>)"},t.send(JSON.stringify(e))},startSimulation(){let e;if(this.simulationUiInfo.simulation.solvers.forEach(t=>{(t.if===void 0||Fv(this,t.if))&&(e=t)}),e===void 0){console.warn("SIMULATION: no solver name and/or solver version specified.");return}this.userMessage="Loading simulation results...",this.showUserMessage=!0,this.$nextTick(()=>{this.simulationData=[];let t=new XMLHttpRequest;t.open("POST",this.apiLocation+"/start_simulation",!0),t.setRequestHeader("Content-type","application/json"),t.onreadystatechange=()=>{if(t.readyState===4)if(t.status===200){let n=JSON.parse(t.responseText);this.isSimulationValid=n.status==="ok",this.isSimulationValid?this.checkSimulation(n.data):(this.showUserMessage=!1,this.errorMessage=n.description)}else this.isSimulationValid=!1,this.showUserMessage=!1,this.errorMessage=t.statusText.toLowerCase()+" (<a href='https://httpstatuses.com/"+t.status+"/' target='_blank'>"+t.status+"</a>)"},t.send(JSON.stringify(this.retrieveRequest({solver:e})))})}},created:function(){this.name!==void 0&&(this.userMessage="Retrieving UI information...",this.showUserMessage=!0,this.$nextTick(()=>{let e=new XMLHttpRequest;e.open("GET",this.apiLocation+"/simulation_ui_file/"+this.id,!0),e.setRequestHeader("Content-type","application/json"),e.onreadystatechange=()=>{e.readyState===4&&(this.showUserMessage=!1,e.status===200&&this.retrieveAndBuildSimulationUi(JSON.parse(e.responseText)))},e.send()}))},mounted:function(){this.isMounted=!0,yA(this)}},$_=e=>(c.pushScopeId("data-v-10754c90"),e=e(),c.popScopeId(),e),VSe=["element-loading-text"],HSe={key:0,class:"default error"},USe=$_(()=>c.createElementVNode("span",{class:"error"},"Error:",-1)),qSe={key:1,class:"main"},WSe={class:"main-left"},GSe={class:"default name"},ZSe=$_(()=>c.createElementVNode("p",{class:"default input-parameters"},"Input parameters",-1)),KSe={class:"input scrollbar"},YSe={class:"primary-button"},JSe={key:0,class:"secondary-button"},QSe={class:"secondary-button"},XSe={key:1,class:"default note"},$Se={class:"main-right",ref:"output"},eAe={class:"main-right"},tAe={class:"default error"},nAe=$_(()=>c.createElementVNode("span",{class:"error"},"Error:",-1)),rAe=["innerHTML"];function aAe(e,t,n,r,a,o){const i=rA,l=xA,s=XS,u=c.resolveComponent("PlotVuer"),d=zv;return c.withDirectives((c.openBlock(),c.createElementBlock("div",{class:"simulation-vuer","element-loading-text":e.userMessage},[!e.hasValidSimulationUiInfo&&!e.showUserMessage?(c.openBlock(),c.createElementBlock("p",HSe,[USe,c.createTextVNode(" an unknown or invalid model was provided.")])):c.createCommentVNode("",!0),e.hasValidSimulationUiInfo?(c.openBlock(),c.createElementBlock("div",qSe,[c.createElementVNode("div",WSe,[c.createElementVNode("p",GSe,c.toDisplayString(e.name),1),c.createVNode(i),ZSe,c.createElementVNode("div",KSe,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.simulationUiInfo.input,(f,p)=>(c.openBlock(),c.createBlock(l,{ref_for:!0,ref:"simInput",defaultValue:f.defaultValue,key:`input-${p}`,name:f.name,maximumValue:f.maximumValue,minimumValue:f.minimumValue,possibleValues:f.possibleValues,stepValue:f.stepValue},null,8,["defaultValue","name","maximumValue","minimumValue","possibleValues","stepValue"]))),128))]),c.createElementVNode("div",YSe,[c.createVNode(s,{type:"primary",size:"small",onClick:t[0]||(t[0]=f=>o.startSimulation())},{default:c.withCtx(()=>[c.createTextVNode("Run Simulation")]),_:1})]),e.uuid?(c.openBlock(),c.createElementBlock("div",JSe,[c.createVNode(s,{size:"small",onClick:t[1]||(t[1]=f=>o.runOnOsparc())},{default:c.withCtx(()=>[c.createTextVNode("Run on oSPARC")]),_:1})])):c.createCommentVNode("",!0),c.createElementVNode("div",QSe,[c.createVNode(s,{size:"small",onClick:t[2]||(t[2]=f=>o.viewDataset())},{default:c.withCtx(()=>[c.createTextVNode("View Dataset")]),_:1})]),e.uuid?(c.openBlock(),c.createElementBlock("p",XSe,"Additional parameters are available on oSPARC")):c.createCommentVNode("",!0)]),c.withDirectives(c.createElementVNode("div",$Se,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.simulationUiInfo.output.plots,(f,p)=>(c.openBlock(),c.createBlock(u,{key:`output-${p}`,metadata:e.plotMetadata,"layout-input":e.layout[p],"data-source":{data:e.simulationData[p]},plotType:"plotly-only"},null,8,["metadata","layout-input","data-source"]))),128))],512),[[c.vShow,e.isSimulationValid]]),c.withDirectives(c.createElementVNode("div",eAe,[c.createElementVNode("p",tAe,[nAe,c.createTextVNode(),c.createElementVNode("span",{innerHTML:e.errorMessage},null,8,rAe),c.createTextVNode(".")])],512),[[c.vShow,!e.isSimulationValid]])])):c.createCommentVNode("",!0)],8,VSe)),[[d,e.showUserMessage]])}const oAe=bA(jSe,[["render",aAe],["__scopeId","data-v-10754c90"]]);qn.SimulationVuer=oAe,Object.defineProperty(qn,Symbol.toStringTag,{value:"Module"})});