All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.b6fe2bb5-626.d26e765202129868f630.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
/*! For license information please see b6fe2bb5-626.d26e765202129868f630.js.LICENSE.txt */
(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["b6fe2bb5-626"],{iLyfqyU4:(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeDay:()=>m.Z,timeDays:()=>m.a,timeFriday:()=>y.mC,timeFridays:()=>y.b$,timeHour:()=>v,timeHours:()=>g,timeInterval:()=>a.Z,timeMillisecond:()=>i,timeMilliseconds:()=>o,timeMinute:()=>f,timeMinutes:()=>h,timeMonday:()=>y.wA,timeMondays:()=>y.bJ,timeMonth:()=>b,timeMonths:()=>_,timeSaturday:()=>y.EY,timeSaturdays:()=>y.Ff,timeSecond:()=>c,timeSeconds:()=>d,timeSunday:()=>y.OM,timeSundays:()=>y.vm,timeThursday:()=>y.bL,timeThursdays:()=>y.$t,timeTuesday:()=>y.sy,timeTuesdays:()=>y.aU,timeWednesday:()=>y.zg,timeWednesdays:()=>y.Ld,timeWeek:()=>y.OM,timeWeeks:()=>y.vm,timeYear:()=>w.Z,timeYears:()=>w.g,utcDay:()=>z.Z,utcDays:()=>z.y,utcFriday:()=>O.QQ,utcFridays:()=>O.fz,utcHour:()=>S,utcHours:()=>L,utcMillisecond:()=>i,utcMilliseconds:()=>o,utcMinute:()=>T,utcMinutes:()=>A,utcMonday:()=>O.l6,utcMondays:()=>O.$3,utcMonth:()=>F,utcMonths:()=>P,utcSaturday:()=>O.g4,utcSaturdays:()=>O.Q_,utcSecond:()=>c,utcSeconds:()=>d,utcSunday:()=>O.Ox,utcSundays:()=>O.SU,utcThursday:()=>O.hB,utcThursdays:()=>O.xj,utcTuesday:()=>O.J1,utcTuesdays:()=>O.DK,utcWednesday:()=>O.b3,utcWednesdays:()=>O.uy,utcWeek:()=>O.Ox,utcWeeks:()=>O.SU,utcYear:()=>I.Z,utcYears:()=>I.D});var a=r("DdlSpyTa"),n=(0,a.Z)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));n.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,a.Z)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):n:null};const i=n;var o=n.range,l=r("h+JB5gVg"),s=(0,a.Z)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*l.Ym)}),(function(e,t){return(t-e)/l.Ym}),(function(e){return e.getUTCSeconds()}));const c=s;var d=s.range,u=(0,a.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.Ym)}),(function(e,t){e.setTime(+e+t*l.yB)}),(function(e,t){return(t-e)/l.yB}),(function(e){return e.getMinutes()}));const f=u;var h=u.range,p=(0,a.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.Ym-e.getMinutes()*l.yB)}),(function(e,t){e.setTime(+e+t*l.Y2)}),(function(e,t){return(t-e)/l.Y2}),(function(e){return e.getHours()}));const v=p;var g=p.range,m=r("htLgzOB+"),y=r("7awNiCFD"),x=(0,a.Z)((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()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const b=x;var _=x.range,w=r("zYBkz/oj"),k=(0,a.Z)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l.yB)}),(function(e,t){return(t-e)/l.yB}),(function(e){return e.getUTCMinutes()}));const T=k;var A=k.range,M=(0,a.Z)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*l.Y2)}),(function(e,t){return(t-e)/l.Y2}),(function(e){return e.getUTCHours()}));const S=M;var L=M.range,z=r("R30TlNij"),O=r("WH5fkU/w"),C=(0,a.Z)((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()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const F=C;var P=C.range,I=r("oATDRkZV")},CVZcSkmN:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,a=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,a){function n(r){e.removeListener(t,i),a(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,n,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,r,a){var n,i,o,c;if(l(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=a?[r,o]:[o,r]:a?o.unshift(r):o.push(r),(n=s(e))>0&&o.length>n&&!o.warned){o.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=o.length,c=d,console&&console.warn&&console.warn(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,r){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=d.bind(a);return n.listener=r,a.wrapFn=n,n}function f(e,t,r){var a=e._events;if(void 0===a)return[];var n=a[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var c=s.length,d=p(s,c);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,n=i;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"7rWsZTkl":(e,t,r)=>{"use strict";var a,n=r("TGWj3pqf");a="function"==typeof r.g.matchMedia?!r.g.matchMedia("(hover: none)").matches:n,e.exports=a},uORtHUsV:(e,t,r)=>{"use strict";var a=r("TGWj3pqf");e.exports=a&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},TGWj3pqf:e=>{e.exports=!0},jwlPSdji:e=>{var t={left:0,top:0};e.exports=function(e,r,a){r=r||e.currentTarget||e.srcElement,Array.isArray(a)||(a=[0,0]);var n=e.clientX||0,i=e.clientY||0,o=(l=r,l===window||l===document||l===document.body?t:l.getBoundingClientRect());var l;return a[0]=n-o.left,a[1]=i-o.top,a}},"3WWdj8FQ":function(e,exports,t){var r,a,n,i;a="Promise",n=void 0!==t.g?t.g:this,i=function(){"use strict";var e,t,r,a=Object.prototype.toString,n="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,a){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==a})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function i(e,a){r.add(e,a),t||(t=n(r.drain))}function o(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function l(){for(var e=0;e0&&i(l,r))}catch(e){d.call(new f(r),e)}}}function d(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(l,t))}function u(e,t,r,a){for(var n=0;n{e.exports=function(e){var n=[];return e.replace(r,(function(e,r,i){var o=r.toLowerCase();for(i=function(e){var t=e.match(a);return t?t.map(Number):[]}(i),"m"==o&&i.length>2&&(n.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==t[o])return i.unshift(r),n.push(i);if(i.length{"use strict";var a=r("0Ft3SWJB"),n={"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:transparent;border:6px solid transparent;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 transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:#fff;","X .select-outline-2":"stroke:#000;stroke-dasharray:2px 2px;",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 i in n){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");a.addStyleRule(o,n[i])}},il84Cq12:(e,t,r)=>{"use strict";e.exports=r("fa9voUu+")},X1MamdAD:(e,t,r)=>{"use strict";e.exports=r("RPvPhHjM")},uzqM94tz:(e,t,r)=>{"use strict";e.exports=r("9GSMkjhW")},"Kh7UOp+d":(e,t,r)=>{"use strict";e.exports=r("h93+eFZa")},"cCyvnl/b":(e,t,r)=>{"use strict";e.exports=r("d82zWuQF")},"JWkd8+G/":e=>{"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},L1qB4u9y:(e,t,r)=>{"use strict";var a=r("JWkd8+G/"),n=r("lf8+9Xc7"),i=r("Vq8+Ip3e"),o=r("A5P9b9BX").templatedArray,l=r("SWM1uxTh");function s(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 c(e,t,r){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",r,"to",t,"("+t,"to",r+").","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(" ")}e.exports=o("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 (
), bold (), italics (),","hyperlinks (). Tags , , "," 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:n({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
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
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:a.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:a.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:[c("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[c("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",l.axisRefDescription("ax","left","right"),s("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",l.axisRefDescription("ay","bottom","top"),s("y")].join(" ")},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",l.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",i.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",l.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:n({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(" ")}}})},BoYXVIMs:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("2DFxFphq").draw;function o(e){var t=e._fullLayout;a.filterVisible(t.annotations).forEach((function(t){var r=n.getFromId(e,t.xref),a=n.getFromId(e,t.yref),i=n.getRefType(t.xref),o=n.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,a)}))}function l(e,t){var r,a=t._id,i=a.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],d=e["_"+i+"padplus"],u=e["_"+i+"padminus"],f={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+f,v=h-f,g=3*e.startarrowsize*e.arrowwidth||0,m=g+f,y=g-f;if(c===s){var x=n.findExtremes(t,[t.r2c(o)],{ppadplus:p,ppadminus:v}),b=n.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(d,m),ppadminus:Math.max(u,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else m=l?m+l:m,y=l?y-l:y,r=n.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(d,p,m),ppadminus:Math.max(u,v,y)});e._extremes[a]=r}e.exports=function(e){var t=e._fullLayout;if(a.filterVisible(t.annotations).length&&e._fullData.length)return a.syncOrAsync([i,o],e)}},ahf7RkTy:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("R5um7Wku"),i=r("A5P9b9BX").arrayEditor;function o(e,t){var r,a,n,i,o,s,c,d=e._fullLayout.annotations,u=[],f=[],h=[],p=(t||[]).length;for(r=0;r0||r.explicitOff.length>0},onClick:function(e,t){var r,l,s=o(e,t),c=s.on,d=s.off.concat(s.explicitOff),u={},f=e._fullLayout.annotations;if(!c.length&&!d.length)return;for(r=0;r{"use strict";var a=r("0Ft3SWJB"),n=r("/oRevOrA");e.exports=function(e,t,r,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=n.opacity(l);i("borderpad");var c=i("borderwidth"),d=i("showarrow");if(i("text",d?" ":r._dfltTitle.annotation),i("textangle"),a.coerceFont(i,"font",r.font),i("width"),i("align"),i("height")&&i("valign"),d){var u,f,h=i("arrowside");-1!==h.indexOf("end")&&(u=i("arrowhead"),f=i("arrowsize")),-1!==h.indexOf("start")&&(i("startarrowhead",u),i("startarrowsize",f)),i("arrowcolor",s?t.bordercolor:n.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var p=i("hovertext"),v=r.hoverlabel||{};if(p){var g=i("hoverlabel.bgcolor",v.bgcolor||(n.opacity(o)?n.rgb(o):n.defaultLine)),m=i("hoverlabel.bordercolor",v.bordercolor||n.contrast(g));a.coerceFont(i,"hoverlabel.font",{family:v.font.family,size:v.font.size,color:v.font.color||m})}i("captureevents",!!p)}},a7EoPXLN:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("wJP3FIsq");e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,d=e._fullLayout.annotations,u=t._id.charAt(0),f=0;f{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("JdrF9yG0"),o=r("IXuaY1uE"),l=r("L1qB4u9y");function s(e,t,r){function i(r,n){return a.coerce(e,t,l,r,n)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,r,i);for(var d=t.showarrow,u=["x","y"],f=[-10,-30],h={_fullLayout:r},p=0;p<2;p++){var v=u[p],g=n.coerceRef(e,t,h,v,"","paper");if("paper"!==g)n.getFromId(h,g)._annIndices.push(t._index);if(n.coercePosition(t,h,i,g,v,.5),d){var m="a"+v,y=n.coerceRef(e,t,h,m,"pixel",["pixel","paper"]);"pixel"!==y&&y!==g&&(y=t[m]="pixel");var x="pixel"===y?f[p]:.4;n.coercePosition(t,h,i,y,m,x)}i(v+"anchor"),i(v+"shift")}if(a.noneOrAll(e,t,["x","y"]),d&&a.noneOrAll(e,t,["ax","ay"]),c){var b=i("xclick"),_=i("yclick");t._xclick=void 0===b?t.x:n.cleanPosition(b,h,t.xref),t._yclick=void 0===_?t.y:n.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},"2DFxFphq":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("R5um7Wku"),i=r("8MlMO9wt"),o=r("0Ft3SWJB"),l=o.strTranslate,s=r("4JfnfFRI"),c=r("/oRevOrA"),d=r("+ELfTWmT"),u=r("9fFWTih4"),f=r("7k8rh0sJ"),h=r("LnvsDkyo"),p=r("WFvnZ06c"),v=r("A5P9b9BX").arrayEditor,g=r("pSCZUchz");function m(e,t){var r=e._fullLayout.annotations[t]||{},a=s.getFromId(e,r.xref),n=s.getFromId(e,r.yref);a&&a.setScale(),n&&n.setScale(),x(e,r,t,!1,a,n)}function y(e,t,r,a,n){var i=n[r],o=n[r+"ref"],l=-1!==r.indexOf("y"),c="domain"===s.getRefType(o),d=l?a.h:a.w;return e?c?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/d}function x(e,t,r,i,m,x){var b,_,w=e._fullLayout,k=e._fullLayout._size,T=e._context.edits;i?(b="annotation-"+i,_=i+".annotations"):(b="annotation",_="annotations");var A=v(e.layout,_,t),M=A.modifyBase,S=A.modifyItem,L=A.getUpdateObj;w._infolayer.selectAll("."+b+'[data-index="'+r+'"]').remove();var z="clip"+w._uid+"_ann"+r;if(t._input&&!1!==t.visible){var O={x:{},y:{}},C=+t.textangle||0,F=w._infolayer.append("g").classed(b,!0).attr("data-index",String(r)).style("opacity",t.opacity),P=F.append("g").classed("annotation-text-g",!0),I=T[t.showarrow?"annotationTail":"annotationPosition"],D=t.captureevents||T.annotationText||I,R=P.append("g").style("pointer-events",D?"all":null).call(h,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",q(a.event))}));t.hovertext&&R.on("mouseover",(function(){var r=t.hoverlabel,a=r.font,n=this.getBoundingClientRect(),i=e.getBoundingClientRect();u.loneHover({x0:n.left-i.left,x1:n.right-i.left,y:(n.top+n.bottom)/2-i.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:a.family,fontSize:a.size,fontColor:a.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})})).on("mouseout",(function(){u.loneUnhover(w._hoverlayer.node())}));var E=t.borderwidth,j=t.borderpad,B=E+j,N=R.append("rect").attr("class","bg").style("stroke-width",E+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),H=t.width||t.height,W=w._topclips.selectAll("#"+z).data(H?[0]:[]);W.enter().append("clipPath").classed("annclip",!0).attr("id",z).append("rect"),W.exit().remove();var V=t.font,G=w._meta?o.templateString(t.text,w._meta):t.text,U=R.append("text").classed("annotation-text",!0).text(G);T.annotationText?U.call(f.makeEditable,{delegate:R,gd:e}).call(Z).on("edit",(function(r){t.text=r,this.call(Z),S("text",r),m&&m.autorange&&M(m._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0),n.call("_guiRelayout",e,L())})):U.call(Z)}else a.selectAll("#"+z).remove();function q(e){var a={index:r,annotation:t._input,fullAnnotation:t,event:e};return i&&(a.subplotId=i),a}function Z(r){return r.call(d.font,V).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),f.convertToTspans(r,e,X),r}function X(){var r=U.selectAll("a");1===r.size()&&r.text()===U.text()&&R.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(N.node());var a=R.select(".annotation-text-math-group"),u=!a.empty(),v=d.bBox((u?a:U).node()),b=v.width,_=v.height,A=t.width||b,D=t.height||_,j=Math.round(A+2*B),V=Math.round(D+2*B);function G(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Z=!1,X=["x","y"],J=0;J1)&&(ne===ae?((pe=ie.r2fraction(t["a"+re]))<0||pe>1)&&(Z=!0):Z=!0),Y=ie._offset+ie.r2p(t[re]),ee=.5}else{var ve="domain"===he;"x"===re?(K=t[re],Y=ve?ie._offset+ie._length*K:Y=k.l+k.w*K):(K=1-t[re],Y=ve?ie._offset+ie._length*K:Y=k.t+k.h*K),ee=t.showarrow?.5:K}if(t.showarrow){fe.head=Y;var ge=t["a"+re];if(te=le*G(.5,t.xanchor)-se*G(.5,t.yanchor),ne===ae){var me=s.getRefType(ne);"domain"===me?("y"===re&&(ge=1-ge),fe.tail=ie._offset+ie._length*ge):"paper"===me?"y"===re?(ge=1-ge,fe.tail=k.t+k.h*ge):fe.tail=k.l+k.w*ge:fe.tail=ie._offset+ie.r2p(ge),Q=te}else fe.tail=Y+ge,Q=te+ge;fe.text=fe.tail+te;var ye=w["x"===re?"width":"height"];if("paper"===ae&&(fe.head=o.constrain(fe.head,1,ye-1)),"pixel"===ne){var xe=-Math.max(fe.tail-3,fe.text),be=Math.min(fe.tail+3,fe.text)-ye;xe>0?(fe.tail+=xe,fe.text+=xe):be>0&&(fe.tail-=be,fe.text-=be)}fe.tail+=ue,fe.head+=ue}else Q=te=ce*G(ee,de),fe.text=Y+te;fe.text+=ue,te+=ue,Q+=ue,t["_"+re+"padplus"]=ce/2+Q,t["_"+re+"padminus"]=ce/2-Q,t["_"+re+"size"]=ce,t["_"+re+"shift"]=te}if(Z)R.remove();else{var _e=0,we=0;if("left"!==t.align&&(_e=(A-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(we=(D-_)*("middle"===t.valign?.5:1)),u)a.select("svg").attr({x:B+_e-1,y:B+we}).call(d.setClipUrl,H?z:null,e);else{var ke=B+we-v.top,Te=B+_e-v.left;U.call(f.positionText,Te,ke).call(d.setClipUrl,H?z:null,e)}W.select("rect").call(d.setRect,B,B,A,D),N.call(d.setRect,E/2,E/2,j-E,V-E),R.call(d.setTranslate,Math.round(O.x.text-j/2),Math.round(O.y.text-V/2)),P.attr({transform:"rotate("+C+","+O.x.text+","+O.y.text+")"});var Ae,Me=function(r,a){F.selectAll(".annotation-arrow-g").remove();var s=O.x.head,u=O.y.head,f=O.x.tail+r,h=O.y.tail+a,v=O.x.text+r,b=O.y.text+a,_=o.rotationXYMatrix(C,v,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),z=+N.attr("width"),I=+N.attr("height"),D=v-.5*z,E=D+z,j=b-.5*I,B=j+I,H=[[D,j,D,B],[D,B,E,B],[E,B,E,j],[E,j,D,j]].map(A);if(!H.reduce((function(e,t){return e^!!o.segmentsIntersect(s,u,s+1e6,u+1e6,t[0],t[1],t[2],t[3])}),!1)){H.forEach((function(e){var t=o.segmentsIntersect(f,h,s,u,e[0],e[1],e[2],e[3]);t&&(f=t.x,h=t.y)}));var W=t.arrowwidth,V=t.arrowcolor,G=t.arrowside,U=F.append("g").style({opacity:c.opacity(V)}).classed("annotation-arrow-g",!0),q=U.append("path").attr("d","M"+f+","+h+"L"+s+","+u).style("stroke-width",W+"px").call(c.stroke,c.rgb(V));if(g(q,G,t),T.annotationPosition&&q.node().parentNode&&!i){var Z=s,X=u;if(t.standoff){var J=Math.sqrt(Math.pow(s-f,2)+Math.pow(u-h,2));Z+=t.standoff*(f-s)/J,X+=t.standoff*(h-u)/J}var Y,Q,K=U.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-Z)+","+(h-X),transform:l(Z,X)}).style("stroke-width",W+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");p.init({element:K.node(),gd:e,prepFn:function(){var e=d.getTranslate(R);Y=e.x,Q=e.y,m&&m.autorange&&M(m._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0)},moveFn:function(e,r){var a=w(Y,Q),n=a[0]+e,i=a[1]+r;R.call(d.setTranslate,n,i),S("x",y(m,e,"x",k,t)),S("y",y(x,r,"y",k,t)),t.axref===t.xref&&S("ax",y(m,e,"ax",k,t)),t.ayref===t.yref&&S("ay",y(x,r,"ay",k,t)),U.attr("transform",l(e,r)),P.attr({transform:"rotate("+C+","+n+","+i+")"})},doneFn:function(){n.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Me(0,0),I)p.init({element:R.node(),gd:e,prepFn:function(){Ae=P.attr("transform")},moveFn:function(e,r){var a="pointer";if(t.showarrow)t.axref===t.xref?S("ax",y(m,e,"ax",k,t)):S("ax",t.ax+e),t.ayref===t.yref?S("ay",y(x,r,"ay",k.w,t)):S("ay",t.ay+r),Me(e,r);else{if(i)return;var n,o;if(m)n=y(m,e,"x",k,t);else{var s=t._xsize/k.w,c=t.x+(t._xshift-t.xshift)/k.w-s/2;n=p.align(c+e/k.w,s,0,1,t.xanchor)}if(x)o=y(x,r,"y",k,t);else{var d=t._ysize/k.h,u=t.y-(t._yshift+t.yshift)/k.h-d/2;o=p.align(u-r/k.h,d,0,1,t.yanchor)}S("x",n),S("y",o),m&&x||(a=p.getCursor(m?.5:n,x?.5:o,t.xanchor,t.yanchor))}P.attr({transform:l(e,r)+Ae}),h(R,a)},clickFn:function(r,a){t.captureevents&&e.emit("plotly_clickannotation",q(a))},doneFn:function(){h(R),n.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r{"use strict";var a=r("Lou4tdh8"),n=r("/oRevOrA"),i=r("JWkd8+G/"),o=r("0Ft3SWJB"),l=o.strScale,s=o.strRotate,c=o.strTranslate;e.exports=function(e,t,r){var o,d,u,f,h=e.node(),p=i[r.arrowhead||0],v=i[r.startarrowhead||0],g=(r.arrowwidth||1)*(r.arrowsize||1),m=(r.arrowwidth||1)*(r.startarrowsize||1),y=t.indexOf("start")>=0,x=t.indexOf("end")>=0,b=p.backoff*g+r.standoff,_=v.backoff*m+r.startstandoff;if("line"===h.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},d={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-d.x,k=o.y-d.y;if(f=(u=Math.atan2(k,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+k*k))return void I();if(b){if(b*b>w*w+k*k)return void I();var T=b*Math.cos(u),A=b*Math.sin(u);d.x+=T,d.y+=A,e.attr({x2:d.x,y2:d.y})}if(_){if(_*_>w*w+k*k)return void I();var M=_*Math.cos(u),S=_*Math.sin(u);o.x-=M,o.y-=S,e.attr({x1:o.x,y1:o.y})}}else if("path"===h.nodeName){var L=h.getTotalLength(),z="";if(L{"use strict";var a=r("2DFxFphq"),n=r("ahf7RkTy");e.exports={moduleType:"component",name:"annotations",layoutAttributes:r("L1qB4u9y"),supplyLayoutDefaults:r("cotHwVXk"),includeBasePlot:r("lGy/M/Cj")("annotations"),calcAutorange:r("BoYXVIMs"),draw:a.draw,drawOne:a.drawOne,drawRaw:a.drawRaw,hasClickToShow:n.hasClickToShow,onClick:n.onClick,convertCoords:r("a7EoPXLN")}},zbkQ6RHY:(e,t,r)=>{"use strict";var a=r("L1qB4u9y"),n=r("Oq1Cqb7p").overrideAll,i=r("A5P9b9BX").templatedArray;e.exports=n(i("annotation",{visible:a.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:a.xanchor,xshift:a.xshift,yanchor:a.yanchor,yshift:a.yshift,text:a.text,textangle:a.textangle,font:a.font,width:a.width,height:a.height,opacity:a.opacity,align:a.align,valign:a.valign,bgcolor:a.bgcolor,bordercolor:a.bordercolor,borderpad:a.borderpad,borderwidth:a.borderwidth,showarrow:a.showarrow,arrowcolor:a.arrowcolor,arrowhead:a.arrowhead,startarrowhead:a.startarrowhead,arrowside:a.arrowside,arrowsize:a.arrowsize,startarrowsize:a.startarrowsize,arrowwidth:a.arrowwidth,standoff:a.standoff,startstandoff:a.startstandoff,hovertext:a.hovertext,hoverlabel:a.hoverlabel,captureevents:a.captureevents}),"calc","from-root")},IKUISRI1:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI");function i(e,t){var r=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},a.extendFlat(e._xa,o),n.setConvert(e._xa),e._xa._offset=i.l+r.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(r.x[1]-r.x[0])},e._ya={},a.extendFlat(e._ya,o),n.setConvert(e._ya),e._ya._offset=i.t+(1-r.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(r.y[1]-r.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,r=0;r{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("JdrF9yG0"),o=r("IXuaY1uE"),l=r("zbkQ6RHY");function s(e,t,r,i){function s(r,n){return a.coerce(e,t,l,r,n)}function c(e){var a=e+"axis",i={_fullLayout:{}};return i._fullLayout[a]=r[a],n.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),a.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),a.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,r){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}},"rdGQvf+P":(e,t,r)=>{"use strict";var a=r("2DFxFphq").drawRaw,n=r("Wwi6Xwm4"),i=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,l=0;l1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=n(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),a(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},"4xVj9wTF":(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB");e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:r("zbkQ6RHY")}}},layoutAttributes:r("zbkQ6RHY"),handleDefaults:r("dC7VvZKe"),includeBasePlot:function(e,t){var r=a.subplotsRegistry.gl3d;if(!r)return;for(var i=r.attrRegex,o=Object.keys(e),l=0;l{"use strict";e.exports={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"}}},Vyghum2a:(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("VDpxHpeA"),i=r("8MlMO9wt"),o=r("R5um7Wku"),l=r("4JfnfFRI"),s=r("WFvnZ06c"),c=r("0Ft3SWJB"),d=c.strTranslate,u=r("xE+ZFgwY").extendFlat,f=r("LnvsDkyo"),h=r("+ELfTWmT"),p=r("/oRevOrA"),v=r("xjYqbXs+"),g=r("7k8rh0sJ"),m=r("s48LrSF+").flipScale,y=r("vg6lu/AO"),x=r("kAv/b5aV"),b=r("zSF5pjBO"),_=r("kca9bvt+"),w=_.LINE_SPACING,k=_.FROM_TL,T=_.FROM_BR,A=r("PvkztHxu").cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(e){var t,r,a,n,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return u(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof n.calc?n.calc(e,a,t):(t._fillgradient=r.reversescale?m(r.colorscale):r.colorscale,t._zrange=[r[n.min],r[n.max]])}for(var d=0;d0?a>=s:a<=s));n++)a>d&&a0?a>=s:a<=s));n++)a>r[0]&&a1){var de=Math.pow(10,Math.floor(Math.log(ce)/Math.LN10));le*=de*c.roundUp(ce/de,[2,5,10]),(Math.abs(G.start)/G.size+1e-6)%1<2e-6&&(ie.tick0=0)}ie.dtick=le}ie.domain=o?[ae+F/R.h,ae+Q-F/R.h]:[ae+C/R.w,ae+Q-C/R.w],ie.setScale(),e.attr("transform",d(Math.round(R.l),Math.round(R.t)));var ue,fe=e.select("."+A.cbtitleunshift).attr("transform",d(-Math.round(R.l),-Math.round(R.t))),he=ie.ticklabelposition,pe=ie.title.font.size,ve=e.select("."+A.cbaxis),ge=0,me=0;function ye(a,n){var i={propContainer:ie,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:D._dfltTitle.colorbar,containerGroup:e.select("."+A.cbtitle)},o="h"===a.charAt(0)?a.substr(1):"h"+a;e.selectAll("."+o+",."+o+"-math-group").remove(),v.draw(r,a,u(i,n||{}))}function xe(){var e,t;(o&&oe||!o&&!oe)&&("top"===N&&(e=C+R.l+R.w*P,t=F+R.t+R.h*(1-ae-Q)+3+.75*pe),"bottom"===N&&(e=C+R.l+R.w*P,t=F+R.t+R.h*(1-ae)-3-.25*pe),"right"===N&&(t=F+R.t+R.h*I+3+.75*pe,e=C+R.l+R.w*ae),ye(ie._id+"title",{attributes:{x:e,y:t,"text-anchor":o?"start":"middle"}}))}function be(){if(o&&!oe||!o&&oe){var e,n,i=ie.position||0,l=ie._offset+ie._length/2;if("right"===N)n=l,e=R.l+R.w*i+10+pe*(ie.showticklabels?1:.5);else if(e=l,"bottom"===N&&(n=R.t+R.h*i+10+(-1===he.indexOf("inside")?ie.tickfont.size:0)+("intside"!==ie.ticks&&t.ticklen||0)),"top"===N){var s=B.text.split("
").length;n=R.t+R.h*i+10-X-w*pe*s}ye((o?"h":"v")+ie._id+"title",{avoid:{selection:a.select(r).selectAll("g."+ie._id+"tick"),side:N,offsetTop:o?0:R.t,offsetLeft:o?R.l:0,maxShift:o?D.width:D.height},attributes:{x:e,y:n,"text-anchor":"middle"},transform:{rotate:o?-90:0,offset:0}})}}function _e(){if(!o&&!oe||o&&oe){var i,s=e.select("."+A.cbtitle),u=s.select("text"),f=[-M/2,M/2],p=s.select(".h"+ie._id+"title-math-group").node(),v=15.6;if(u.node()&&(v=parseInt(u.node().style.fontSize,10)*w),p?(i=h.bBox(p),me=i.width,(ge=i.height)>v&&(f[1]-=(ge-v)/2)):u.node()&&!u.classed(A.jsPlaceholder)&&(i=h.bBox(u.node()),me=i.width,ge=i.height),o){if(ge){if(ge+=5,"top"===N)ie.domain[1]-=ge/R.h,f[1]*=-1;else{ie.domain[0]+=ge/R.h;var m=g.lineCount(u);f[1]+=(1-m)*v}s.attr("transform",d(f[0],f[1])),ie.setScale()}}else me&&("right"===N&&(ie.domain[0]+=(me+pe/2)/R.w),s.attr("transform",d(f[0],f[1])),ie.setScale())}e.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",o?d(0,Math.round(R.h*(1-ie.domain[1]))):d(Math.round(R.w*ie.domain[0]),0)),ve.attr("transform",o?d(0,Math.round(-R.t)):d(Math.round(-R.l),0));var y=e.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(q);y.enter().append("rect").classed(A.cbfill,!0).style("stroke","none"),y.exit().remove();var x=H.map(ie.c2p).map(Math.round).sort((function(e,t){return e-t}));y.each((function(e,i){var l=[0===i?H[0]:(q[i]+q[i-1])/2,i===q.length-1?H[1]:(q[i]+q[i+1])/2].map(ie.c2p).map(Math.round);o&&(l[1]=c.constrain(l[1]+(l[1]>l[0])?1:-1,x[0],x[1]));var s=a.select(this).attr(o?"x":"y",K).attr(o?"y":"x",a.min(l)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(a.max(l)-a.min(l),2));if(t._fillgradient)h.gradient(s,r,t._id,o?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var d=V(e).replace("e-","");s.attr("fill",n(d).toHexString())}}));var b=e.select("."+A.cblines).selectAll("path."+A.cbline).data(j.color&&j.width?Z:[]);b.enter().append("path").classed(A.cbline,!0),b.exit().remove(),b.each((function(e){var t=K,r=Math.round(ie.c2p(e))+j.width/2%1;a.select(this).attr("d","M"+(o?t+","+r:r+","+t)+(o?"h":"v")+X).call(h.lineGroupStyle,j.width,W(e),j.dash)})),ve.selectAll("g."+ie._id+"tick,path").remove();var _=K+X+(M||0)/2-("outside"===t.ticks?1:0),k=l.calcTicks(ie),T=l.getTickSigns(ie)[2];return l.drawTicks(r,ie,{vals:"inside"===ie.ticks?l.clipEnds(ie,k):k,layer:ve,path:l.makeTickPath(ie,_,T),transFn:l.makeTransTickFn(ie)}),l.drawLabels(r,ie,{vals:k,layer:ve,transFn:l.makeTransTickLabelFn(ie),labelFns:l.makeLabelFns(ie,_)})}function we(){var a,l=X+M/2;-1===he.indexOf("inside")&&(a=h.bBox(ve.node()),l+=o?a.width:a.height),ue=fe.select("text");var c=0,u=o&&"top"===N,v=!o&&"right"===N,g=0;if(ue.node()&&!ue.classed(A.jsPlaceholder)){var y,x=fe.select(".h"+ie._id+"title-math-group").node();x&&(o&&oe||!o&&!oe)?(c=(a=h.bBox(x)).width,y=a.height):(c=(a=h.bBox(fe.node())).right-R.l-(o?K:ne),y=a.bottom-R.t-(o?ne:K),o||"top"!==N||(l+=a.height,g=a.height)),v&&(ue.attr("transform",d(c/2+pe/2,0)),c*=2),l=Math.max(l,o?c:y)}var b=2*(o?C:F)+l+S+M/2,w=0;!o&&B.text&&"bottom"===O&&I<=0&&(b+=w=b/2,g+=w),D._hColorbarMoveTitle=w,D._hColorbarMoveCBTitle=g;var E=S+M;e.select("."+A.cbbg).attr("x",(o?K:ne)-E/2-(o?C:0)).attr("y",(o?ne:K)-(o?Y:F+g-w)).attr(o?"width":"height",Math.max(b-w,2)).attr(o?"height":"width",Math.max(Y+E,2)).call(p.fill,L).call(p.stroke,t.bordercolor).style("stroke-width",S);var j=v?Math.max(c-10,0):0;if(e.selectAll("."+A.cboutline).attr("x",(o?K:ne+C)+j).attr("y",(o?ne+F-Y:K)+(u?ge:0)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(Y-(o?2*F+ge:2*C+j),2)).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":M}),e.attr("transform",d(R.l-(o?ee*b:0),R.t-(o?0:(1-te)*b-g))),!o&&(S||n(L).getAlpha()&&!n.equals(D.paper_bgcolor,L))){var H=ve.selectAll("text"),W=H[0].length,V=e.select("."+A.cbbg).node(),G=h.bBox(V),U=h.getTranslate(e),q=2;H.each((function(e,t){var r=0,a=W-1;if(t===r||t===a){var n,i=h.bBox(this),o=h.getTranslate(this);if(t===a){var l=i.right+o.x;(n=G.right+U.x+ne-S-q+P-l)>0&&(n=0)}else if(t===r){var s=i.left+o.x;(n=G.left+U.x+ne+S+q-s)<0&&(n=0)}n&&(W<3?this.setAttribute("transform","translate("+n+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var Z={},J=k[z],Q=T[z],re=k[O],ae=T[O],le=b-X;o?("pixels"===f?(Z.y=I,Z.t=Y*re,Z.b=Y*ae):(Z.t=Z.b=0,Z.yt=I+s*re,Z.yb=I-s*ae),"pixels"===_?(Z.x=P,Z.l=b*J,Z.r=b*Q):(Z.l=le*J,Z.r=le*Q,Z.xl=P-m*J,Z.xr=P+m*Q)):("pixels"===f?(Z.x=P,Z.l=Y*J,Z.r=Y*Q):(Z.l=Z.r=0,Z.xl=P+s*J,Z.xr=P-s*Q),"pixels"===_?(Z.y=1-I,Z.t=b*re,Z.b=b*ae):(Z.t=le*re,Z.b=le*ae,Z.yt=I-m*re,Z.yb=I+m*ae)),i.autoMargin(r,t._id,Z)}return c.syncOrAsync([i.previousPromises,xe,_e,be,i.previousPromises,we],r)}(r,t,e);m&&m.then&&(e._promises||[]).push(m),e._context.edits.colorbarPosition&&function(e,t,r){var a,n,i,l="v"===t.orientation,c=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){a=e.attr("transform"),f(e)},moveFn:function(r,o){e.attr("transform",a+d(r,o)),n=s.align((l?t._uFrac:t._vFrac)+r/c.w,l?t._thickFrac:t._lenFrac,0,1,t.xanchor),i=s.align((l?t._vFrac:1-t._uFrac)-o/c.h,l?t._lenFrac:t._thickFrac,0,1,t.yanchor);var u=s.getCursor(n,i,t.xanchor,t.yanchor);f(e,u)},doneFn:function(){if(f(e),void 0!==n&&void 0!==i){var a={};a[t._propPrefix+"x"]=n,a[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,a,t._traceIndex):o.call("_guiRelayout",r,a)}}})}(r,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},sp1wNnHl:(e,t,r)=>{"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:r("jyzIzA3P"),supplyDefaults:r("5tOsSiMj"),draw:r("Vyghum2a").draw,hasColorbar:r("NU9E/CzI")}},fX4OMiqf:e=>{"use strict";e.exports=function(e,t,r,a,n){var i=(e-r)/(a-r),o=i+t/(a-r),l=(i+o)/2;return"left"===n||"bottom"===n?i:"center"===n||"middle"===n?l:"right"===n||"top"===n?o:i<2/3-l?i:o>4/3-l?o:l}},"Re/WlV4b":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,r,i){return e="left"===r?0:"center"===r?1:"right"===r?2:a.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:a.constrain(Math.floor(3*t),0,2),n[t][e]}},"rC/dcWPV":(e,exports)=>{"use strict";exports.selectMode=function(e){return"lasso"===e||"select"===e},exports.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},exports.openMode=function(e){return"drawline"===e||"drawopenpath"===e},exports.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},exports.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},exports.selectingOrDrawing=function(e){return exports.freeMode(e)||exports.rectMode(e)}},WFvnZ06c:(e,t,r)=>{"use strict";var a=r("jwlPSdji"),n=r("7rWsZTkl"),i=r("uORtHUsV"),o=r("0Ft3SWJB").removeElement,l=r("Vq8+Ip3e"),s=e.exports={};s.align=r("fX4OMiqf"),s.getCursor=r("Re/WlV4b");var c=r("jGgz+pfT");function d(){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}function u(e){return a(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,r,a,c,f,h,p,v,g=e.gd,m=1,y=g._context.doubleClickDelay,x=e.element;g._mouseDownTime||(g._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,r){return Math.abs(e)y&&(m=Math.max(m-1,1)),g._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(m,h),!v){var r;try{r=new MouseEvent("click",t)}catch(e){var a=u(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,a[0],a[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}g._dragging=!1,g._dragged=!1}else g._dragged=!1}},s.coverSlip=d},"jGgz+pfT":(e,t,r)=>{"use strict";var a=r("6NEikfh9"),n=r("9bxIX4ke"),i=r("5u0twCBb").getGraphDiv,o=r("HoF8EwuB"),l=e.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&n.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,n=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===a.triggerHandler(e,"plotly_beforehover",t)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&n&&e.emit("plotly_unhover",{event:t,points:n}))}},"+ELfTWmT":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("0Ft3SWJB"),i=n.numberFormat,o=r("yAcToaBS"),l=r("VDpxHpeA"),s=r("R5um7Wku"),c=r("/oRevOrA"),d=r("n/pWmEhD"),u=n.strTranslate,f=r("7k8rh0sJ"),h=r("nfwe4Djo"),p=r("kca9bvt+").LINE_SPACING,v=r("Tdks4qa7").DESELECTDIM,g=r("FAQM5QER"),m=r("swYnW0Uh"),y=r("ErV1Ibqz").appendArrayPointValue,x=e.exports={};x.font=function(e,t,r,a){n.isPlainObject(t)&&(a=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),a&&e.call(c.fill,a)},x.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},x.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},x.setRect=function(e,t,r,a,n){e.call(x.setPosition,t,r).call(x.setSize,a,n)},x.translatePoint=function(e,t,r,a){var n=r.c2p(e.x),i=a.c2p(e.y);return!!(o(n)&&o(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",n).attr("y",i):t.attr("transform",u(n,i)),!0)},x.translatePoints=function(e,t,r){e.each((function(e){var n=a.select(this);x.translatePoint(e,n,t,r)}))},x.hideOutsideRangePoint=function(e,t,r,a,n,i){t.attr("display",r.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")},x.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each((function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,c=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){x.hideOutsideRangePoint(e,a.select(this),r,n,o,l)}))}))}},x.crispRound=function(e,t,r){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},x.singleLineStyle=function(e,t,r,a,n){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";c.stroke(t,a||i.color),x.dashLine(t,l,o)},x.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";a.select(this).call(c.stroke,r||i.color).call(x.dashLine,l,o)}))},x.dashLine=function(e,t,r){r=+r||0,t=x.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},x.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},x.singleFillStyle=function(e){var t=(((a.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(c.fill,t)},x.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=a.select(this);e[0].trace&&t.call(c.fill,e[0].trace.fillcolor)}))};var b=r("Oq3NKwwJ");x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(b).forEach((function(e){var t=b[e],r=t.n;x.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),x.symbolNames[r]=e,x.symbolFuncs[r]=t.f,t.needLine&&(x.symbolNeedLines[r]=!0),t.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(x.symbolNoFill[r]=!0)}));var _=x.symbolNames.length;function w(e,t){var r=e%100;return x.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(e){if(o(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=x.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=_||e>=400?0:Math.floor(Math.max(e,0))};var k={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},A=i("~f"),M={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:k},horizontalreversed:{node:"linearGradient",attrs:k,reversed:!0},vertical:{node:"linearGradient",attrs:T},verticalreversed:{node:"linearGradient",attrs:T,reversed:!0}};x.gradient=function(e,t,r,i,o,s){for(var d=o.length,u=M[i],f=new Array(d),h=0;h"+m(e);p._gradientUrlQueryParts[y]=1},x.pattern=function(e,t,r,i,o,l,s,d,u,f,h,p){var v="legend"===t;d&&("overlay"===u?(f=d,h=c.contrast(f)):(f=void 0,h=d));var g,m,y,x,b,_,w,k,T,A,M,S=r._fullLayout,L="p"+S._uid+"-"+i,z={};switch(o){case"/":g=l*Math.sqrt(2),m=l*Math.sqrt(2),_="path",z={d:y="M-"+g/4+","+m/4+"l"+g/2+",-"+m/2+"M0,"+m+"L"+g+",0M"+g/4*3+","+m/4*5+"l"+g/2+",-"+m/2,opacity:p,stroke:h,"stroke-width":(x=s*l)+"px"};break;case"\\":g=l*Math.sqrt(2),m=l*Math.sqrt(2),_="path",z={d:y="M"+g/4*3+",-"+m/4+"l"+g/2+","+m/2+"M0,0L"+g+","+m+"M-"+g/4+","+m/4*3+"l"+g/2+","+m/2,opacity:p,stroke:h,"stroke-width":(x=s*l)+"px"};break;case"x":g=l*Math.sqrt(2),m=l*Math.sqrt(2),y="M-"+g/4+","+m/4+"l"+g/2+",-"+m/2+"M0,"+m+"L"+g+",0M"+g/4*3+","+m/4*5+"l"+g/2+",-"+m/2+"M"+g/4*3+",-"+m/4+"l"+g/2+","+m/2+"M0,0L"+g+","+m+"M-"+g/4+","+m/4*3+"l"+g/2+","+m/2,x=l-l*Math.sqrt(1-s),_="path",z={d:y,opacity:p,stroke:h,"stroke-width":x+"px"};break;case"|":_="path",_="path",z={d:y="M"+(g=l)/2+",0L"+g/2+","+(m=l),opacity:p,stroke:h,"stroke-width":(x=s*l)+"px"};break;case"-":_="path",_="path",z={d:y="M0,"+(m=l)/2+"L"+(g=l)+","+m/2,opacity:p,stroke:h,"stroke-width":(x=s*l)+"px"};break;case"+":_="path",y="M"+(g=l)/2+",0L"+g/2+","+(m=l)+"M0,"+m/2+"L"+g+","+m/2,x=l-l*Math.sqrt(1-s),_="path",z={d:y,opacity:p,stroke:h,"stroke-width":x+"px"};break;case".":g=l,m=l,s.pattern_filled";S._patternUrlQueryParts[F]=1},x.initGradients=function(e){var t=e._fullLayout;n.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},x.initPatterns=function(e){var t=e._fullLayout;n.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),t._patternUrlQueryParts={}},x.getPatternAttr=function(e,t,r){return e&&n.isArrayOrTypedArray(e)?t=100,t.attr("d",w(d,s))}var u,f,h,p=!1;if(e.so)h=l.outlierwidth,f=l.outliercolor,u=o.outliercolor;else{var v=(l||{}).width;h=(e.mlw+1||v+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,f="mlc"in e?e.mlcc=a.lineScale(e.mlc):n.isArrayOrTypedArray(l.color)?c.defaultLine:l.color,n.isArrayOrTypedArray(o.color)&&(u=c.defaultLine,p=!0),u="mc"in e?e.mcc=a.markerScale(e.mc):o.color||"rgba(0,0,0,0)",a.selectedColorFn&&(u=a.selectedColorFn(e))}if(e.om)t.call(c.stroke,u).style({"stroke-width":(h||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:h)+"px");var g=o.gradient,m=e.mgt;m?p=!0:m=g&&g.type,n.isArrayOrTypedArray(m)&&(m=m[0],M[m]||(m=0));var y=o.pattern,b=y&&x.getPatternAttr(y.shape,e.i,"");if(m&&"none"!==m){var _=e.mgc;_?p=!0:_=g.color;var k=r.uid;p&&(k+="-"+e.i),x.gradient(t,i,k,m,[[0,_],[1,u]],"fill")}else if(b){var T=x.getPatternAttr(y.bgcolor,e.i,null),A=x.getPatternAttr(y.fgcolor,e.i,null),S=y.fgopacity,L=x.getPatternAttr(y.size,e.i,8),z=x.getPatternAttr(y.solidity,e.i,.3),O=e.mcc||n.isArrayOrTypedArray(y.shape)||n.isArrayOrTypedArray(y.bgcolor)||n.isArrayOrTypedArray(y.size)||n.isArrayOrTypedArray(y.solidity),C=r.uid;O&&(C+="-"+e.i),x.pattern(t,"point",i,C,b,L,z,e.mcc,y.fillmode,T,A,S)}else c.fill(t,u);h&&c.stroke(t,f)}},x.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=x.tryColorscale(r,""),t.lineScale=x.tryColorscale(r,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=g.isBubble(e)?m(e):function(){return(r.size||6)/2}),e.selectedpoints&&n.extendFlat(t,x.makeSelectedPointStyleFns(e)),t},x.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},i=e.marker||{},o=r.marker||{},l=a.marker||{},c=i.opacity,d=o.opacity,u=l.opacity,f=void 0!==d,h=void 0!==u;(n.isArrayOrTypedArray(c)||f||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?f?d:t:h?u:v*t});var p=i.color,g=o.color,m=l.color;(g||m)&&(t.selectedColorFn=function(e){var t=e.mcc||p;return e.selected?g||t:m||t});var y=i.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return s.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?_?x/2:t:w?b/2:t}),t},x.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=r.textfont||{},o=a.textfont||{},l=n.color,s=i.color,d=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?s||t:d||(s?t:c.addOpacity(t,v))},t},x.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&i.push((function(e,t){c.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&i.push((function(e,t){var a=t.mx||n.symbol||0,i=r.selectedSizeFn(t);e.attr("d",w(x.symbolNumber(a),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=a.select(this),r=0;r0?r:0}x.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var o=x.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var l=t.texttemplate,s=r._fullLayout;e.each((function(e){var o=a.select(this),c=l?n.extractOption(e,t,"txt","texttemplate"):n.extractOption(e,t,"tx","text");if(c||0===c){if(l){var d=t._module.formatLabels,u=d?d(e,t,s):{},h={};y(h,t,e.i);var p=t._meta||{};c=n.texttemplateString(c,u,s._d3locale,h,e,p)}var v=e.tp||t.textposition,g=z(e,t),m=i?i(e):e.tc||t.textfont.color;o.call(x.font,e.tf||t.textfont.family,g,m).text(c).call(f.convertToTspans,r).call(L,v,g,e.mrc)}else o.remove()}))}},x.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedTextStyleFns(t);e.each((function(e){var n=a.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,l=z(e,t);c.fill(n,i);var d=s.traceIs(t,"bar-like");L(n,o,l,e.mrc2||e.mrc,d)}))}};function O(e,t,r,n){var i=e[0]-t[0],o=e[1]-t[1],l=r[0]-t[0],s=r[1]-t[1],c=Math.pow(i*i+o*o,.25),d=Math.pow(l*l+s*s,.25),u=(d*d*i-c*c*l)*n,f=(d*d*o-c*c*s)*n,h=3*d*(c+d),p=3*c*(c+d);return[[a.round(t[0]+(h&&u/h),2),a.round(t[1]+(h&&f/h),2)],[a.round(t[0]-(p&&u/p),2),a.round(t[1]-(p&&f/p),2)]]}x.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,a="M"+e[0],n=[];for(r=1;r=1e4&&(x.savedBBoxes={},P=0),r&&(x.savedBBoxes[r]=g),P++,n.extendFlat({},g)},x.setClipUrl=function(e,t,r){e.attr("clip-path",D(t,r))},x.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},x.setTranslate=function(e,t,r){var a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=u(t,r)).trim(),e[n]("transform",i),i},x.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},x.setScale=function(e,t,r){var a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[n]("transform",i),i};var R=/\s*sc.*/;x.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var a=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(R,"");e=(e+=a).trim(),this.setAttribute("transform",e)}))}};var E=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,n=a.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(E);e=1===t&&1===r?[]:[u(o,l),"scale("+t+","+r+")",u(-o,-l)],s&&e.push(s),n.attr("transform",e.join(""))}}))}},Oq3NKwwJ:(e,t,r)=>{"use strict";var a=r("Lou4tdh8");e.exports={circle:{n:0,f:function(e){var t=a.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=a.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=a.round(.4*e,2),r=a.round(1.2*e,2);return"M"+r+","+t+"H"+t+"V"+r+"H-"+t+"V"+t+"H-"+r+"V-"+t+"H-"+t+"V-"+r+"H"+t+"V-"+t+"H"+r+"Z"}},x:{n:4,f:function(e){var t=a.round(.8*e/Math.sqrt(2),2),r="l"+t+","+t,n="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+r+n+i+n+i+o+i+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M-"+t+","+a.round(e/2,2)+"H"+t+"L0,-"+a.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+a.round(e/2,2)+"H"+t+"L0,"+a.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M"+a.round(e/2,2)+",-"+t+"V"+t+"L-"+a.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M-"+a.round(e/2,2)+",-"+t+"V"+t+"L"+a.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M-"+r+",-"+t+"H"+t+"V"+r+"Z"}},"triangle-se":{n:10,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M"+t+",-"+r+"V"+t+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M"+r+","+t+"H-"+t+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M-"+t+","+r+"V-"+t+"H"+r+"Z"}},pentagon:{n:13,f:function(e){var t=a.round(.951*e,2),r=a.round(.588*e,2),n=a.round(-e,2),i=a.round(-.309*e,2);return"M"+t+","+i+"L"+r+","+a.round(.809*e,2)+"H-"+r+"L-"+t+","+i+"L0,"+n+"Z"}},hexagon:{n:14,f:function(e){var t=a.round(e,2),r=a.round(e/2,2),n=a.round(e*Math.sqrt(3)/2,2);return"M"+n+",-"+r+"V"+r+"L0,"+t+"L-"+n+","+r+"V-"+r+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=a.round(e,2),r=a.round(e/2,2),n=a.round(e*Math.sqrt(3)/2,2);return"M-"+r+","+n+"H"+r+"L"+t+",0L"+r+",-"+n+"H-"+r+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=a.round(.924*e,2),r=a.round(.383*e,2);return"M-"+r+",-"+t+"H"+r+"L"+t+",-"+r+"V"+r+"L"+r+","+t+"H-"+r+"L-"+t+","+r+"V-"+r+"Z"}},star:{n:17,f:function(e){var t=1.4*e,r=a.round(.225*t,2),n=a.round(.951*t,2),i=a.round(.363*t,2),o=a.round(.588*t,2),l=a.round(-t,2),s=a.round(-.309*t,2),c=a.round(.118*t,2),d=a.round(.809*t,2);return"M"+r+","+s+"H"+n+"L"+i+","+c+"L"+o+","+d+"L0,"+a.round(.382*t,2)+"L-"+o+","+d+"L-"+i+","+c+"L-"+n+","+s+"H-"+r+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=a.round(.66*e,2),r=a.round(.38*e,2),n=a.round(.76*e,2);return"M-"+n+",0l-"+r+",-"+t+"h"+n+"l"+r+",-"+t+"l"+r+","+t+"h"+n+"l-"+r+","+t+"l"+r+","+t+"h-"+n+"l-"+r+","+t+"l-"+r+",-"+t+"h-"+n+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=a.round(e*Math.sqrt(3)*.8,2),r=a.round(.8*e,2),n=a.round(1.6*e,2),i=a.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+r+o+t+","+r+o+"0,-"+n+o+"-"+t+","+r+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=a.round(e*Math.sqrt(3)*.8,2),r=a.round(.8*e,2),n=a.round(1.6*e,2),i=a.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+r+o+"-"+t+",-"+r+o+"0,"+n+o+t+",-"+r+"Z"}},"star-square":{n:21,f:function(e){var t=a.round(1.1*e,2),r=a.round(2*e,2),n="A "+r+","+r+" 0 0 1 ";return"M-"+t+",-"+t+n+"-"+t+","+t+n+t+","+t+n+t+",-"+t+n+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=a.round(1.4*e,2),r=a.round(1.9*e,2),n="A "+r+","+r+" 0 0 1 ";return"M-"+t+",0"+n+"0,"+t+n+t+",0"+n+"0,-"+t+n+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=a.round(.7*e,2),r=a.round(1.4*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=a.round(1.4*e,2),r=a.round(.7*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=a.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=a.round(e,2),r=a.round(e/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=a.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=a.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=a.round(1.3*e,2),r=a.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=a.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=a.round(1.2*e,2),r=a.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=a.round(e/2,2),r=a.round(e,2);return"M"+t+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+t+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M-"+t+","+n+"L0,0M"+t+","+n+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M-"+t+",-"+n+"L0,0M"+t+",-"+n+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M"+n+","+t+"L0,0M"+n+",-"+t+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M-"+n+","+t+"L0,0M-"+n+",-"+t+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=a.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=a.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=a.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=a.round(e,2);return"M0,0L-"+t+","+a.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=a.round(e,2);return"M0,0L-"+t+",-"+a.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,0L"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,0L-"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=a.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+a.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=a.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+a.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,-"+r+"V"+r+"M0,0L"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,-"+r+"V"+r+"M0,0L-"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},uLuh32aH:e=>{"use strict";e.exports={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(" ")}}}},"B2+59IWp":(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("R5um7Wku"),i=r("4JfnfFRI"),o=r("0Ft3SWJB"),l=r("Oetmuozk");function s(e,t,r,n){var s=t["error_"+n]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var d=l(s),u=0;u{"use strict";function t(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var r=e.type,a=e.symmetric;if("data"===r){var n=e.array||[];if(a)return function(e,t){var r=+n[t];return[r,r]};var i=e.arrayminus||[];return function(e,t){var r=+n[t],a=+i[t];return isNaN(r)&&isNaN(a)?[NaN,NaN]:[a||0,r||0]}}var o=t(r,e.value),l=t(r,e.valueminus);return a||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},VC0JglZ3:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("R5um7Wku"),i=r("0Ft3SWJB"),o=r("A5P9b9BX"),l=r("uLuh32aH");e.exports=function(e,t,r,s){var c="error_"+s.axis,d=o.newContainer(t,c),u=e[c]||{};function f(e,t){return i.coerce(u,d,l,e,t)}if(!1!==f("visible",void 0!==u.array||void 0!==u.value||"sqrt"===u.type)){var h=f("type","array"in u?"data":"percent"),p=!0;"sqrt"!==h&&(p=f("symmetric",!(("data"===h?"arrayminus":"valueminus")in u))),"data"===h?(f("array"),f("traceref"),p||(f("arrayminus"),f("tracerefminus"))):"percent"!==h&&"constant"!==h||(f("value"),p||f("valueminus"));var v="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&f(v,!(u.color||a(u.thickness)||a(u.width)));s.inherit&&d[v]||(f("color",r),f("thickness"),f("width",n.traceIs(t,"gl3d")?0:4))}}},UAdAo3EU:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("Oq1Cqb7p").overrideAll,i=r("uLuh32aH"),o={error_x:a.extendFlat({},i),error_y:a.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:a.extendFlat({},i),error_y:a.extendFlat({},i),error_z:a.extendFlat({},i)};delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:n(l,"calc","nested"),scattergl:n(o,"calc","nested")}},supplyDefaults:r("VC0JglZ3"),calc:r("B2+59IWp"),makeComputeError:r("Oetmuozk"),plot:r("naJ7bfx/"),style:r("+8FAZV0x"),hoverInfo:function(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}}},"naJ7bfx/":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("yAcToaBS"),i=r("+ELfTWmT"),o=r("FAQM5QER");e.exports=function(e,t,r,l){var s=r.xaxis,c=r.yaxis,d=l&&l.duration>0;t.each((function(t){var u,f=t[0].trace,h=f.error_x||{},p=f.error_y||{};f.ids&&(u=function(e){return e.id});var v=o.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||h.visible||(t=[]);var g=a.select(this).selectAll("g.errorbar").data(t,u);if(g.exit().remove(),t.length){h.visible||g.selectAll("path.xerror").remove(),p.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var m=g.enter().append("g").classed("errorbar",!0);d&&m.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(g,r.layerClipId,e),g.each((function(e){var t=a.select(this),r=function(e,t,r){var a={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(a.yh=r.c2p(e.yh),a.ys=r.c2p(e.ys),n(a.ys)||(a.noYS=!0,a.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(a.xh=t.c2p(e.xh),a.xs=t.c2p(e.xs),n(a.xs)||(a.noXS=!0,a.xs=t.c2p(e.xs,!0)));return a}(e,s,c);if(!v||e.vis){var i,o=t.select("path.yerror");if(p.visible&&n(r.x)&&n(r.yh)&&n(r.ys)){var u=p.width;i="M"+(r.x-u)+","+r.yh+"h"+2*u+"m-"+u+",0V"+r.ys,r.noYS||(i+="m-"+u+",0h"+2*u),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):d&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var f=t.select("path.xerror");if(h.visible&&n(r.y)&&n(r.xh)&&n(r.xs)){var g=(h.copy_ystyle?p:h).width;i="M"+r.xh+","+(r.y-g)+"v"+2*g+"m0,-"+g+"H"+r.xs,r.noXS||(i+="m0,-"+g+"v"+2*g),!f.size()?f=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):d&&(f=f.transition().duration(l.duration).ease(l.easing)),f.attr("d",i)}else f.remove()}}))}}))}},"+8FAZV0x":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("/oRevOrA");e.exports=function(e){e.each((function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=a.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(n.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(n.stroke,i.color)}))}},"iimf+fXS":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("R5um7Wku");function i(e,t,r,n){n=n||a.identity,Array.isArray(e)&&(t[0][r]=n(e))}e.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return a.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l{"use strict";var a=r("R5um7Wku"),n=r("E0Erayg3").hover;e.exports=function(e,t,r){var i=a.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==r&&n(e,t,r,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},ATH0WTii:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("CPF8cYDb"),i=r("FW/+9MgV");e.exports=function(e,t,r,o){var l=a.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(r,i){return a.coerce(e,t,n,r,i)}),l)}},ErV1Ibqz:(e,exports,t)=>{"use strict";var r=t("0Ft3SWJB");exports.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},exports.isTraceInSubplots=function(e,t){if("splom"===e.type){for(var r=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&r.index{"use strict";var r=t("Lou4tdh8"),a=t("yAcToaBS"),n=t("VDpxHpeA"),i=t("0Ft3SWJB"),o=i.strTranslate,l=i.strRotate,s=t("6NEikfh9"),c=t("7k8rh0sJ"),d=t("FLLMPlzg"),u=t("+ELfTWmT"),f=t("/oRevOrA"),h=t("WFvnZ06c"),p=t("4JfnfFRI"),v=t("R5um7Wku"),g=t("ErV1Ibqz"),m=t("HoF8EwuB"),y=t("sAx/oUxG"),x=t("2Lvd5/R9"),b=m.YANGLE,_=Math.PI*b/180,w=1/Math.sin(_),k=Math.cos(_),T=Math.sin(_),A=m.HOVERARROWSIZE,M=m.HOVERTEXTPAD,S={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function z(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(",")}exports.hover=function(e,t,n,o){e=i.getGraphDiv(e);var l=t.target;i.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,(function(){!function(e,t,n,o,l){n||(n="xy");var c=Array.isArray(n)?n:[n],u=e._fullLayout,p=u._plots||[],m=p[n],y=u._has("cartesian");if(m){var x=m.overlays.map((function(e){return e.id}));c=c.concat(x)}for(var b=c.length,_=new Array(b),k=new Array(b),T=!1,A=0;A_[0]._length||le<0||le>k[0]._length)return h.unhoverRaw(e,t)}if(t.pointerX=oe+_[0]._offset,t.pointerY=le+k[0]._offset,W="xval"in t?g.flat(c,t.xval):g.p2c(_,oe),V="yval"in t?g.flat(c,t.yval):g.p2c(k,le),!a(W[0])||!a(V[0]))return i.warn("Fx.hover failed",t,e),h.unhoverRaw(e,t)}var de=1/0;function ue(e,r){for(U=0;Ute&&(re.splice(0,te),de=re[0].distance),y&&0!==H&&0===re.length){ee.distance=H,ee.index=!1;var d=Z._module.hoverPoints(ee,Q,K,"closest",{hoverLayer:u._hoverlayer});if(d&&(d=d.filter((function(e){return e.spikeDistance<=H}))),d&&d.length){var h,p=d.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(p.length){var v=p[0];a(v.x0)&&a(v.y0)&&(h=he(v),(!ne.vLinePoint||ne.vLinePoint.spikeDistance>h.spikeDistance)&&(ne.vLinePoint=h))}var m=d.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(m.length){var x=m[0];a(x.x0)&&a(x.y0)&&(h=he(x),(!ne.hLinePoint||ne.hLinePoint.spikeDistance>h.spikeDistance)&&(ne.hLinePoint=h))}}}}}function fe(e,t,r){for(var a,n=null,i=1/0,o=0;o0&&Math.abs(e.distance)Te-1;Ae--)ze(re[Ae]);re=Me,me()}var Oe=e._hoverdata,Ce=[],Fe=B(e),Pe=N(e);for(G=0;G1||re.length>1)||"closest"===F&&ie&&re.length>1,qe=f.combine(u.plot_bgcolor||f.background,u.paper_bgcolor),Ze=C(re,{gd:e,hovermode:F,rotateLabels:Ue,bgColor:qe,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance});g.isUnifiedHover(F)||(!function(e,t,r){var a,n,i,o,l,s,c,d=0,u=1,f=e.size(),h=new Array(f),p=0;function v(e){var t=e[0],r=e[e.length-1];if(n=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,n>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=n;a=!1}if(!(i<.01)){if(n<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;a=!1}if(a){var c=0;for(o=0;ot.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}e.each((function(e){var a=e[t],n="x"===a._id.charAt(0),i=a.range;0===p&&i&&i[0]>i[1]!==n&&(u=-1),h[p++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(n?w:1)/2,pmin:0,pmax:n?r.width:r.height}]})),h.sort((function(e,t){return e[0].posref-t[0].posref||u*(t[0].traceIndex-e[0].traceIndex)}));for(;!a&&d<=f;){for(d++,a=!0,o=0;o.01&&y.pmin===x.pmin&&y.pmax===x.pmax){for(l=m.length-1;l>=0;l--)m[l].dp+=n;for(g.push.apply(g,m),h.splice(o+1,1),c=0,l=g.length-1;l>=0;l--)c+=g[l].dp;for(i=c/g.length,l=g.length-1;l>=0;l--)g[l].dp-=i;a=!1}else o++}h.forEach(v)}for(o=h.length-1;o>=0;o--){var b=h[o];for(l=b.length-1;l>=0;l--){var _=b[l],k=_.datum;k.offset=_.dp,k.del=_.del}}}(Ze,Ue?"xa":"ya",u),P(Ze,Ue,u._invScaleX,u._invScaleY));if(l&&l.tagName){var Xe=v.getComponentMethod("annotations","hasClickToShow")(e,Ce);d(r.select(l),Xe?"pointer":"")}if(!l||o||!function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var a=r.length-1;a>=0;a--){var n=r[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,Oe))return;Oe&&e.emit("plotly_unhover",{event:t,points:Oe});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:_,yaxes:k,xvals:W,yvals:V})}(e,t,n,o,l)}))},exports.loneHover=function(e,t){var a=!0;Array.isArray(e)||(a=!1,e=[e]);var n=t.gd,i=B(n),o=N(n),l=C(e.map((function(e){var r=e._x0||e.x0||e.x||0,a=e._x1||e.x1||e.x||0,l=e._y0||e.y0||e.y||0,s=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var d=Math.min(r,a),u=Math.max(r,a),h=Math.min(l,s),p=Math.max(l,s),g=e.trace;if(v.traceIs(g,"gl3d")){var m=n._fullLayout[g.scene]._scene.container,y=m.offsetLeft,x=m.offsetTop;d+=y,u+=y,h+=x,p+=x}c.bbox={x0:d+o,x1:u+o,y0:h+i,y1:p+i},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||f.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}})),{gd:n,hovermode:"closest",rotateLabels:false,bgColor:t.bgColor||f.background,container:r.select(t.container),outerContainer:t.outerContainer||t.container}),s=0,c=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var a=e.y0-e.by/2;e.offset=a-5([\s\S]*)<\/extra>/;function C(e,t){var a=t.gd,n=a._fullLayout,s=t.hovermode,d=t.rotateLabels,h=t.bgColor,p=t.container,_=t.outerContainer,w=t.commonLabelOpts||{};if(0===e.length)return[[]];var k=t.fontFamily||m.HOVERFONT,T=t.fontSize||m.HOVERFONTSIZE,S=e[0],L=S.xa,O=S.ya,C=s.charAt(0),P=S[C+"Label"],I=H(a,_),D=I.top,R=I.width,E=I.height,j=void 0!==P&&S.distance<=t.hoverdistance&&("x"===s||"y"===s);if(j){var B,N,W=!0;for(B=0;Bn.width-b?(g=n.width-b,t.attr("d","M"+(b-A)+",0L"+b+","+x+A+"v"+x+(2*M+y.height)+"H-"+b+"V"+x+A+"H"+(b-2*A)+"Z")):t.attr("d","M0,0L"+A+","+x+A+"H"+(M+y.width/2)+"v"+x+(2*M+y.height)+"H-"+(M+y.width/2)+"V"+x+A+"H-"+A+"Z")}else{var _,z,C;"right"===O.side?(_="start",z=1,C="",g=L._offset+L._length):(_="end",z=-1,C="-",g=L._offset),m=O._offset+(S.y0+S.y1)/2,l.attr("text-anchor",_),t.attr("d","M0,0L"+C+A+","+A+"V"+(M+y.height/2)+"h"+C+(2*M+y.width)+"V-"+(M+y.height/2)+"H"+C+A+"V-"+A+"Z");var F,I=y.height/2,R=D-y.top-I,E="clip"+n._uid+"commonlabel"+O._id;if(g=0?oe:le+de=0?le:ye+de=0?ne:ie+ue=0?ie:xe+ue=0,"top"!==e.idealAlign&&U||!q?U?(I+=N/2,e.anchor="start"):e.anchor="middle":(I-=N/2,e.anchor="end");else if(e.pos=I,U=C+B/2+Z<=R,q=C-B/2-Z>=0,"left"!==e.idealAlign&&U||!q)if(U)C+=B/2,e.anchor="start";else{e.anchor="middle";var X=Z/2,J=C+X-R,Y=C-X;J>0&&(C-=J),Y<0&&(C+=-Y)}else C-=B/2,e.anchor="end";w.attr("text-anchor",e.anchor),L&&S.attr("text-anchor",e.anchor),t.attr("transform",o(C,I)+(d?l(b):""))})),be}function F(e,t,r,a,n,o){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=i.templateString(e.name,e.trace._meta)),l=E(e.name,e.nameLength));var c=r.charAt(0),d="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"
"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===n?s=e[d+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"
":"")+e.text),void 0!==e.extraText&&(s+=(s?"
":"")+e.extraText),o&&""===s&&!e.hovertemplate&&(""===l&&o.remove(),s=l);var u=e.hovertemplate||!1;if(u){var f=e.hovertemplateLabels||e;e[c+"Label"]!==n&&(f[c+"other"]=f[c+"Val"],f[c+"otherLabel"]=f[c+"Label"]),s=(s=i.hovertemplateString(u,f,a._d3locale,e.eventData[0]||{},e.trace._meta)).replace(O,(function(t,r){return l=E(r,e.nameLength),""}))}return[s,l]}function P(e,t,a,n){var i=function(e){return e*a},o=function(e){return e*n};e.each((function(e){var a=r.select(this);if(e.del)return a.remove();var n=a.select("text.nums"),l=e.anchor,s="end"===l?-1:1,d={start:1,end:-1,middle:0}[l],f=d*(A+M),h=f+d*(e.txwidth+M),p=0,v=e.offset,g="middle"===l;g&&(f-=e.tx2width/2,h+=e.txwidth/2+M),t&&(v*=-T,p=e.offset*k),a.select("path").attr("d",g?"M-"+i(e.bx/2+e.tx2width/2)+","+o(v-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(s*A+p)+","+o(A+v)+"v"+o(e.by/2-A)+"h"+i(s*e.bx)+"v-"+o(e.by)+"H"+i(s*A+p)+"V"+o(v-A)+"Z");var m=p+f,y=v+e.ty0-e.by/2+M,x=e.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==l?(n.attr("text-anchor","start"),m=g?-e.bx/2-e.tx2width/2+M:-e.bx-M):"right"===x&&"end"!==l&&(n.attr("text-anchor","end"),m=g?e.bx/2-e.tx2width/2-M:e.bx+M)),n.call(c.positionText,i(m),o(y)),e.tx2width&&(a.select("text.name").call(c.positionText,i(h+d*M+p),o(v+e.ty0-e.by/2+M)),a.select("rect").call(u.setRect,i(h+(d-1)*e.tx2width/2+p),o(v-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function I(e,t){var r=e.index,n=e.trace||{},o=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(r)?function(e,t){var a=i.castOption(o,r,e);return s(a)?a:i.extractOption({},n,"",t)}:function(e,t){return i.extractOption(l,n,e,t)};function d(t,r,a){var n=c(r,a);s(n)&&(e[t]=n)}if(d("hoverinfo","hi","hoverinfo"),d("bgcolor","hbg","hoverlabel.bgcolor"),d("borderColor","hbc","hoverlabel.bordercolor"),d("fontFamily","htf","hoverlabel.font.family"),d("fontSize","hts","hoverlabel.font.size"),d("fontColor","htc","hoverlabel.font.color"),d("nameLength","hnl","hoverlabel.namelength"),d("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=i.constrain(e.x0,0,e.xa._length),e.x1=i.constrain(e.x1,0,e.xa._length),e.y0=i.constrain(e.y0,0,e.ya._length),e.y1=i.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:p.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:p.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var u=p.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+u+" / -"+p.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+u,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var f=p.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+f+" / -"+p.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+f,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function D(e,t,r){var a,i,o=r.container,l=r.fullLayout,s=l._size,c=r.event,d=!!t.hLinePoint,h=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),h||d){var v=f.combine(l.plot_bgcolor,l.paper_bgcolor);if(d){var g,m,y=t.hLinePoint;a=y&&y.xa,"cursor"===(i=y&&y.ya).spikesnap?(g=c.pointerX,m=c.pointerY):(g=a._offset+y.x,m=i._offset+y.y);var x,b,_=n.readability(y.color,v)<1.5?f.contrast(v):y.color,w=i.spikemode,k=i.spikethickness,T=i.spikecolor||_,A=p.getPxPosition(e,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=A,b=g),-1!==w.indexOf("across")){var M=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=s.l+M*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:m,y2:m,"stroke-width":k,stroke:T,"stroke-dasharray":u.dashStyle(i.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:m,y2:m,"stroke-width":k+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==i.side?k:-k),cy:m,r:k,fill:T}).classed("spikeline",!0)}if(h){var L,z,O=t.vLinePoint;a=O&&O.xa,i=O&&O.ya,"cursor"===a.spikesnap?(L=c.pointerX,z=c.pointerY):(L=a._offset+O.x,z=i._offset+O.y);var C,F,P=n.readability(O.color,v)<1.5?f.contrast(v):O.color,I=a.spikemode,D=a.spikethickness,R=a.spikecolor||P,E=p.getPxPosition(e,a);if(-1!==I.indexOf("toaxis")||-1!==I.indexOf("across")){if(-1!==I.indexOf("toaxis")&&(C=E,F=z),-1!==I.indexOf("across")){var j=a._counterDomainMin,B=a._counterDomainMax;"free"===a.anchor&&(j=Math.min(j,a.position),B=Math.max(B,a.position)),C=s.t+(1-B)*s.h,F=s.t+(1-j)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:C,y2:F,"stroke-width":D,stroke:R,"stroke-dasharray":u.dashStyle(a.spikedash,D)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:C,y2:F,"stroke-width":D+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}-1!==I.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:E-("top"!==a.side?D:-D),r:D,fill:R}).classed("spikeline",!0)}}}function R(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function E(e,t){return c.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function j(e,t,r){var a=t[e+"a"],n=t[e+"Val"],i=t.cd[0];if("category"===a.type)n=a._categoriesMap[n];else if("date"===a.type){var o=t.trace[e+"periodalignment"];if(o){var l=t.cd[t.index],s=l[e+"Start"];void 0===s&&(s=l[e]);var c=l[e+"End"];void 0===c&&(c=l[e]);var d=c-s;"end"===o?n+=d:"middle"===o&&(n+=d/2)}n=a.d2c(n)}return i&&i.t&&i.t.posLetter===a._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(n+=i.t.dPos)),n}function B(e){return e.offsetTop+e.clientTop}function N(e){return e.offsetLeft+e.clientLeft}function H(e,t){var r=e._fullLayout,a=t.getBoundingClientRect(),n=a.x,o=a.y,l=n+a.width,s=o+a.height,c=i.apply3DTransform(r._invTransform)(n,o),d=i.apply3DTransform(r._invTransform)(l,s),u=c[0],f=c[1],h=d[0],p=d[1];return{x:u,y:f,width:h-u,height:p-f,top:Math.min(f,p),left:Math.min(u,h),right:Math.max(u,h),bottom:Math.max(f,p)}}},"FW/+9MgV":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("/oRevOrA"),i=r("ErV1Ibqz").isUnifiedHover;e.exports=function(e,t,r,o){o=o||{};var l=t.legend;function s(e){o.font[e]||(o.font[e]=l?t.legend.font[e]:t.font[e])}t&&i(t.hovermode)&&(o.font||(o.font={}),s("size"),s("family"),s("color"),l?(o.bgcolor||(o.bgcolor=n.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),a.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},"4FumUcA6":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("v1szbzNU");e.exports=function(e,t){function r(r,i){return void 0!==t[r]?t[r]:a.coerce(e,t,n,r,i)}return r("clickmode"),r("hovermode")}},"9fFWTih4":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("0Ft3SWJB"),i=r("WFvnZ06c"),o=r("ErV1Ibqz"),l=r("v1szbzNU"),s=r("E0Erayg3");e.exports={moduleType:"component",name:"fx",constants:r("HoF8EwuB"),schema:{layout:l},attributes:r("CPF8cYDb"),layoutAttributes:l,supplyLayoutGlobalDefaults:r("hjRUfPJm"),supplyDefaults:r("ATH0WTii"),supplyLayoutDefaults:r("jPmVXeCo"),calc:r("iimf+fXS"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return n.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return n.castOption(e,r,"hoverinfo",(function(r){return n.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=n.isD3Selection(e)?e:a.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:r("PEbxUAGz")}},jPmVXeCo:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("v1szbzNU"),i=r("4FumUcA6"),o=r("FW/+9MgV");e.exports=function(e,t){function r(r,i){return a.coerce(e,t,n,r,i)}i(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var l=t._has("mapbox"),s=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((l||s)&&1===c||l&&s&&2===c)&&(t.dragmode="pan"),o(e,t,r),a.coerceFont(r,"hoverlabel.grouptitlefont",t.hoverlabel.font)}},hjRUfPJm:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("FW/+9MgV"),i=r("v1szbzNU");e.exports=function(e,t){n(e,t,(function(r,n){return a.coerce(e,t,i,r,n)}))}},D93E4Uqr:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("oaJ8xVPa").counter,i=r("qxp2i9QF").Y,o=r("Vq8+Ip3e").idRegex,l=r("A5P9b9BX"),s={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:[n("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:[o.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:[o.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:i({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 c(e,t,r){var a=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(a)?a:n.length?n:void 0}function d(e,t,r,a,n,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",a);for(var s=new Array(n),c=l[0],d=(l[1]-c)/(n-o),u=d*(1-o),f=0;f1){if(!f&&!h&&!p)"independent"===T("pattern")&&(f=!0);g._hasSubplotGrid=f;var x,b,_="top to bottom"===T("roworder"),w=f?.2:.1,k=f?.3:.1;v&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),g._domains={x:d("x",T,w,x,y),y:d("y",T,k,b,m,_)}}else delete t.grid}function T(e,t){return a.coerce(r,g,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var a,n,i,o,l,s,d,f=e.grid||{},h=t._subplots,p=r._hasSubplotGrid,v=r.rows,g=r.columns,m="independent"===r.pattern,y=r._axisMap={};if(p){var x=f.subplots||[];s=r.subplots=new Array(v);var b=1;for(a=0;a{"use strict";var a=r("Vq8+Ip3e"),n=r("A5P9b9BX").templatedArray,i=r("SWM1uxTh");e.exports=n("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",a.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",i.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",i.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})},LdzhoiNW:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("wJP3FIsq");e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,d=e._fullLayout.images,u=t._id.charAt(0),f=0;f{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("JdrF9yG0"),o=r("a6BPHvoN");function l(e,t,r){function i(r,n){return a.coerce(e,t,o,r,n)}var l=i("source");if(!i("visible",!!l))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var s={_fullLayout:r},c=["x","y"],d=0;d<2;d++){var u=c[d],f=n.coerceRef(e,t,s,u,"paper",void 0);if("paper"!==f)n.getFromId(s,f)._imgIndices.push(t._index);n.coercePosition(t,s,i,f,u,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},YBg4gvmH:(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("+ELfTWmT"),i=r("4JfnfFRI"),o=r("nXHY852p"),l=r("nfwe4Djo");e.exports=function(e){var t,r,s=e._fullLayout,c=[],d={},u=[];for(r=0;r{"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:r("a6BPHvoN"),supplyLayoutDefaults:r("723cH3qU"),includeBasePlot:r("lGy/M/Cj")("images"),draw:r("YBg4gvmH"),convertCoords:r("LdzhoiNW")}},"r3XL/zg0":(e,t,r)=>{"use strict";var a=r("lf8+9Xc7"),n=r("Khpmx9F5");e.exports={bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:n.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:a({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:a({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(" ")},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",min:-2,max:3,editType:"legend",description:["Sets the x position (in normalized coordinates) of the legend.","Defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends."].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",min:-2,max:3,editType:"legend",description:["Sets the y position (in normalized coordinates) of the legend.","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."].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:a({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"],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","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}},MQxNBUFm:e=>{"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},"sAx/oUxG":(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB"),i=r("A5P9b9BX"),o=r("FDg8C/At"),l=r("r3XL/zg0"),s=r("JEbHibKP"),c=r("YnvAs8Q/");e.exports=function(e,t,r){var d,u=e.legend||{},f=i.newContainer(t,"legend");function h(e,t){return n.coerce(u,f,l,e,t)}for(var p=function(e,t){var r=d._input,a=d;return n.coerce(r,a,o,e,t)},v=t.font||{},g=n.coerceFont(h,"grouptitlefont",n.extendFlat({},v,{size:Math.round(1.1*v.size)})),m=0,y=!1,x="normal",b=0;b1);if(!1===_&&(t.legend=void 0),(!1!==_||u.uirevision)&&(h("uirevision",t.uirevision),!1!==_)){h("bgcolor",t.paper_bgcolor),h("bordercolor"),h("borderwidth");var w,k,T,A=n.coerceFont(h,"font",t.font),M="h"===h("orientation");if(M?(w=0,a.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(k=1.1,T="bottom"):(k=-.1,T="top")):(w=1.02,k=1,T="auto"),h("traceorder",x),c.isGrouped(t.legend)&&h("tracegroupgap"),h("itemsizing"),h("itemwidth"),h("itemclick"),h("itemdoubleclick"),h("groupclick"),h("x",w),h("xanchor"),h("y",k),h("yanchor",T),h("valign"),n.noneOrAll(u,f,["x","y"]),h("title.text")){h("title.side",M?"left":"top");var S=n.extendFlat({},A,{size:n.bigFont(A.size)});n.coerceFont(h,"title.font",S)}}}},"2Lvd5/R9":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("0Ft3SWJB"),i=r("8MlMO9wt"),o=r("R5um7Wku"),l=r("6NEikfh9"),s=r("WFvnZ06c"),c=r("+ELfTWmT"),d=r("/oRevOrA"),u=r("7k8rh0sJ"),f=r("PjPVug0c"),h=r("MQxNBUFm"),p=r("kca9bvt+"),v=p.LINE_SPACING,g=p.FROM_TL,m=p.FROM_BR,y=r("le1xiBFF"),x=r("3yii3GsE"),b=r("YnvAs8Q/");function _(e,t,r,a,n){var i=r.data()[0][0].trace,s={event:n,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};if(i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s))if(1===a)t._clickTimeout=setTimeout((function(){e._fullLayout&&f(r,e,a)}),e._context.doubleClickDelay);else if(2===a){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&f(r,e,a)}}function w(e,t,r){var a,i,l=e.data()[0][0],s=l.trace,d=o.traceIs(s,"pie-like"),f=!r._inHover&&t._context.edits.legendText&&!d,p=r._maxNameLength;l.groupTitle?(a=l.groupTitle.text,i=l.groupTitle.font):(i=r.font,r.entries?a=l.text:(a=d?l.label:s.name,s._meta&&(a=n.templateString(a,s._meta))));var v=n.ensureSingle(e,"text","legendtext");v.attr("text-anchor","start").call(c.font,i).text(f?k(a,p):a);var g=r.itemwidth+2*h.itemGap;u.positionText(v,g,0),f?v.call(u.makeEditable,{gd:t,text:a}).call(A,e,t,r).on("edit",(function(a){this.text(k(a,p)).call(A,e,t,r);var i=l.trace._fullInput||{},c={};if(o.hasTransform(i,"groupby")){var d=o.getTransformIndices(i,"groupby"),u=d[d.length-1],f=n.keyedContainer(i,"transforms["+u+"].styles","target","value.name");f.set(l.trace._group,a),c=f.constructUpdate()}else c.name=a;return o.call("_guiRestyle",t,c,s.index)})):A(v,e,t,r)}function k(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var a=r-(e=e||"").length;a>0;a--)e+=" ";return e}function T(e,t){var r,i=t._context.doubleClickDelay,o=1,l=n.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(d.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(r=(new Date).getTime())-t._legendMouseDownTimei&&(o=Math.max(o-1,1)),_(t,r,e,o,a.event)}})))}function A(e,t,r,a,n){a._inHover&&e.attr("data-notex",!0),u.convertToTspans(e,r,(function(){!function(e,t,r,a){var n=e.data()[0][0];if(!r._inHover&&n&&!n.trace.showlegend)return void e.remove();var i=e.select("g[class*=math-group]"),o=i.node();r||(r=t._fullLayout.legend);var l,s=r.borderwidth;l=1===a?r.title.font:n.groupTitle?n.groupTitle.font:r.font;var d,f,p=l.size*v;if(o){var g=c.bBox(o);d=g.height,f=g.width,1===a?c.setTranslate(i,s,s+.75*d):c.setTranslate(i,0,.25*d)}else{var m=e.select(1===a?".legendtitletext":".legendtext"),y=u.lineCount(m),x=m.node();if(d=p*y,f=x?c.bBox(x).width:0,1===a)"left"===r.title.side&&(f+=2*h.itemGap),u.positionText(m,s+h.titlePad,s+p);else{var b=2*h.itemGap+r.itemwidth;n.groupTitle&&(b=h.itemGap,f-=r.itemwidth),u.positionText(m,b,-p*((y-1)/2-.3))}}1===a?(r._titleWidth=f,r._titleHeight=d):(n.lineHeight=p,n.height=Math.max(d,16)+3,n.width=f)}(t,r,a,n)}))}function M(e){return n.isRightAnchor(e)?"right":n.isCenterAnchor(e)?"center":"left"}function S(e){return n.isBottomAnchor(e)?"bottom":n.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){return t||(t=e._fullLayout.legend||{}),function(e,t){var r,l,u=e._fullLayout,f="legend"+u._uid,p=t._inHover;p?(r=t.layer,f+="-hover"):r=u._infolayer;if(!r)return;e._legendMouseDownTime||(e._legendMouseDownTime=0);if(p){if(!t.entries)return;l=y(t.entries,t)}else{if(!e.calcdata)return;l=u.showlegend&&y(e.calcdata,t)}var v=u.hiddenlabels||[];if(!(p||u.showlegend&&l.length))return r.selectAll(".legend").remove(),u._topdefs.select("#"+f).remove(),i.autoMargin(e,"legend");var k=n.ensureSingle(r,"g","legend",(function(e){p||e.attr("pointer-events","all")})),L=n.ensureSingleById(u._topdefs,"clipPath",f,(function(e){e.append("rect")})),z=n.ensureSingle(k,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));z.call(d.stroke,t.bordercolor).call(d.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var O=n.ensureSingle(k,"g","scrollbox"),C=t.title;if(t._titleWidth=0,t._titleHeight=0,C.text){var F=n.ensureSingle(O,"text","legendtitletext");F.attr("text-anchor","start").call(c.font,C.font).text(C.text),A(F,O,e,t,1)}else O.selectAll(".legendtitletext").remove();var P=n.ensureSingle(k,"rect","scrollbar",(function(e){e.attr(h.scrollBarEnterAttrs).call(d.fill,h.scrollBarColor)})),I=O.selectAll("g.groups").data(l);I.enter().append("g").attr("class","groups"),I.exit().remove();var D=I.selectAll("g.traces").data(n.identity);D.enter().append("g").attr("class","traces"),D.exit().remove(),D.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==v.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){a.select(this).call(w,e,t)})).call(x,e,t).each((function(){p||a.select(this).call(T,e)})),n.syncOrAsync([i.previousPromises,function(){return function(e,t,r,n){var i=e._fullLayout;n||(n=i.legend);var o=i._size,l=b.isVertical(n),s=b.isGrouped(n),d=n.borderwidth,u=2*d,f=h.itemGap,p=n.itemwidth+2*f,v=2*(d+f),g=S(n),m=n.y<0||0===n.y&&"top"===g,y=n.y>1||1===n.y&&"bottom"===g,x=n.tracegroupgap;n._maxHeight=Math.max(m||y?i.height/2:o.h,30);var _=0;n._width=0,n._height=0;var w=function(e){var t=0,r=0,a=e.title.side;a&&(-1!==a.indexOf("left")&&(t=e._titleWidth),-1!==a.indexOf("top")&&(r=e._titleHeight));return[t,r]}(n);if(l)r.each((function(e){var t=e[0].height;c.setTranslate(this,d+w[0],d+w[1]+n._height+t/2+f),n._height+=t,n._width=Math.max(n._width,e[0].width)})),_=p+n._width,n._width+=f+p+u,n._height+=v,s&&(t.each((function(e,t){c.setTranslate(this,0,t*n.tracegroupgap)})),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var k=M(n),T=n.x<0||0===n.x&&"right"===k,A=n.x>1||1===n.x&&"left"===k,L=y||m,z=i.width/2;n._maxWidth=Math.max(T?L&&"left"===k?o.l+o.w:z:A?L&&"right"===k?o.r+o.w:z:o.w,2*p);var O=0,C=0;r.each((function(e){var t=e[0].width+p;O=Math.max(O,t),C+=t})),_=null;var F=0;if(s){var P=0,I=0,D=0;t.each((function(){var e=0,t=0;a.select(this).selectAll("g.traces").each((function(r){var a=r[0].width,n=r[0].height;c.setTranslate(this,w[0],w[1]+d+f+n/2+t),t+=n,e=Math.max(e,p+a)}));var r=e+f;I>0&&r+d+I>n._maxWidth?(F=Math.max(F,I),I=0,D+=P+x,P=t):P=Math.max(P,t),c.setTranslate(this,I,D),I+=r})),n._width=Math.max(F,I)+d,n._height=D+P+v}else{var R=r.size(),E=C+u+(R-1)*f=n._maxWidth&&(F=Math.max(F,H),B=0,N+=j,n._height+=j,j=0),c.setTranslate(this,w[0]+d+B,w[1]+d+N+t/2+f),H=B+r+f,B+=a,j=Math.max(j,t)})),E?(n._width=B+u,n._height=j+v):(n._width=Math.max(F,H)+u,n._height+=j+v)}}n._width=Math.ceil(Math.max(n._width+w[0],n._titleWidth+2*(d+h.titlePad))),n._height=Math.ceil(Math.max(n._height+w[1],n._titleHeight+2*(d+h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var W=e._context.edits,V=W.legendText||W.legendPosition;r.each((function(e){var t=a.select(this).select(".legendtoggle"),r=e[0].height,n=V?p:_||p+e[0].width;l||(n+=f/2),c.setRect(t,0,-r/2,n,r)}))}(e,I,D,t)},function(){var l,d,v,y,x=u._size,b=t.borderwidth;if(!p){var w=function(e){var t=e._fullLayout.legend,r=M(t),a=S(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*g[r],r:t._width*m[r],b:t._effHeight*m[a],t:t._effHeight*g[a]})}(e);if(w)return;var T=x.l+x.w*t.x-g[M(t)]*t._width,A=x.t+x.h*(1-t.y)-g[S(t)]*t._effHeight;if(u.margin.autoexpand){var C=T,F=A;T=n.constrain(T,0,u.width-t._width),A=n.constrain(A,0,u.height-t._effHeight),T!==C&&n.log("Constrain legend.x to make legend fit inside graph"),A!==F&&n.log("Constrain legend.y to make legend fit inside graph")}c.setTranslate(k,T,A)}if(P.on(".drag",null),k.on("wheel",null),p||t._height<=t._maxHeight||e._context.staticPlot){var I=t._effHeight;p&&(I=t._height),z.attr({width:t._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(O,0,0),L.select("rect").attr({width:t._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(O,f,e),c.setRect(P,0,0,0,0),delete t._scrollY}else{var D,R,E,j=Math.max(h.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),B=t._effHeight-j-2*h.scrollBarMargin,N=t._height-t._effHeight,H=B/N,W=Math.min(t._scrollY||0,N);z.attr({width:t._width-2*b+h.scrollBarWidth+h.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),L.select("rect").attr({width:t._width-2*b+h.scrollBarWidth+h.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+W}),c.setClipUrl(O,f,e),Z(W,j,H),k.on("wheel",(function(){Z(W=n.constrain(t._scrollY+a.event.deltaY/B*N,0,N),j,H),0!==W&&W!==N&&a.event.preventDefault()}));var V=function(e,t,r){var a=(r-t)/H+e;return n.constrain(a,0,N)},G=function(e,t,r){var a=(t-r)/H+e;return n.constrain(a,0,N)},U=a.behavior.drag().on("dragstart",(function(){var e=a.event.sourceEvent;D="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,E=W})).on("drag",(function(){var e=a.event.sourceEvent;2===e.buttons||e.ctrlKey||(R="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,Z(W=V(E,D,R),j,H))}));P.call(U);var q=a.behavior.drag().on("dragstart",(function(){var e=a.event.sourceEvent;"touchstart"===e.type&&(D=e.changedTouches[0].clientY,E=W)})).on("drag",(function(){var e=a.event.sourceEvent;"touchmove"===e.type&&(R=e.changedTouches[0].clientY,Z(W=G(E,D,R),j,H))}));O.call(q)}function Z(r,a,n){t._scrollY=e._fullLayout.legend._scrollY=r,c.setTranslate(O,0,-r),c.setRect(P,t._width,h.scrollBarMargin+r*n,h.scrollBarWidth,a),L.select("rect").attr("y",b+r)}e._context.edits.legendPosition&&(k.classed("cursor-move",!0),s.init({element:k.node(),gd:e,prepFn:function(){var e=c.getTranslate(k);v=e.x,y=e.y},moveFn:function(e,r){var a=v+e,n=y+r;c.setTranslate(k,a,n),l=s.align(a,0,x.l,x.l+x.w,t.xanchor),d=s.align(n,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==l&&void 0!==d&&o.call("_guiRelayout",e,{"legend.x":l,"legend.y":d})},clickFn:function(t,a){var n=r.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return a.clientX>=e.left&&a.clientX<=e.right&&a.clientY>=e.top&&a.clientY<=e.bottom}));n.size()>0&&_(e,k,n,t,a)}}))}],e)}(e,t)}},le1xiBFF:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("YnvAs8Q/");e.exports=function(e,t){var r,i,o=t._inHover,l=n.isGrouped(t),s=n.isReversed(t),c={},d=[],u=!1,f={},h=0,p=0;function v(e,r){if(""!==e&&n.isGrouped(t))-1===d.indexOf(e)?(d.push(e),u=!0,c[e]=[r]):c[e].push(r);else{var a="~~i"+h;d.push(a),c[a]=[r],h++}}for(r=0;rA&&(T=A)}w[r][0]._groupMinRank=T,w[r][0]._preGroupSort=r}var M=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(w.forEach((function(e,t){e[0]._preGroupSort=t})),w.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),r=0;r{"use strict";var a=r("0Ft3SWJB"),n=r("R5um7Wku"),i=!0;e.exports=function(e,t,r){var o=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=o.legend.itemclick,c=o.legend.itemdoubleclick,d=o.legend.groupclick;if(1===r&&"toggle"===s&&"toggleothers"===c&&i&&t.data&&t._context.showTips?(a.notifier(a._(t,"Double-click on legend to isolate one trace"),"long"),i=!1):i=!1,1===r?l=s:2===r&&(l=c),l){var u="togglegroup"===d,f=o.hiddenlabels?o.hiddenlabels.slice():[],h=e.data()[0][0];if(!h.groupTitle||!h.noClick){var p,v,g,m,y,x=t._fullData,b=h.trace,_=b.legendgroup,w={},k=[],T=[],A=[];if(n.traceIs(b,"pie-like")){var M=h.label,S=f.indexOf(M);"toggle"===l?-1===S?f.push(M):f.splice(S,1):"toggleothers"===l&&(f=[],t.calcdata[0].forEach((function(e){M!==e.label&&f.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===f.length&&-1===S&&(f=[])),n.call("_guiRelayout",t,"hiddenlabels",f)}else{var L,z=_&&_.length,O=[];if(z)for(p=0;p{"use strict";exports.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},exports.isVertical=function(e){return"h"!==e.orientation},exports.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},RnBYM1RH:(e,t,r)=>{"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:r("r3XL/zg0"),supplyLayoutDefaults:r("sAx/oUxG"),draw:r("2Lvd5/R9"),style:r("3yii3GsE")}},"3yii3GsE":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("R5um7Wku"),i=r("0Ft3SWJB"),o=i.strTranslate,l=r("+ELfTWmT"),s=r("/oRevOrA"),c=r("s48LrSF+").extractOpts,d=r("FAQM5QER"),u=r("4R47EHYh"),f=r("cscO2DHv").castOption,h=r("MQxNBUFm");function p(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function v(e){var t=e[0].trace,r=t.contours,a=d.hasLines(t),n=d.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,o=!1,l=!1;if(r){var s=r.coloring;"lines"===s?o=!0:a="none"===s||"heatmap"===s||r.showlines,"constraint"===r.type?i="="!==r._operation:"fill"!==s&&"heatmap"!==s||(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function g(e,t,r){return e&&i.isArrayOrTypedArray(e)?t:e>r?r:e}e.exports=function(e,t,r){var m=t._fullLayout;r||(r=m.legend);var y="constant"===r.itemsizing,x=r.itemwidth,b=(x+2*h.itemGap)/2,_=o(b,0),w=function(e,t,r,a){var n;if(e+1)n=e;else{if(!(t&&t.width>0))return 0;n=t.width}return y?a:Math.min(n,r)};function k(e,i,o){var d=e[0].trace,u=d.marker||{},f=u.line||{},h=o?d.visible&&d.type===o:n.traceIs(d,"bar"),p=a.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(h?[e]:[]);p.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),p.exit().remove(),p.each((function(e){var n=a.select(this),i=e[0],o=w(i.mlw,u.line,5,2);n.style("stroke-width",o+"px");var h=i.mcc;if(!r._inHover&&"mc"in i){var p=c(u),v=p.mid;void 0===v&&(v=(p.max+p.min)/2),h=l.tryColorscale(u,"")(v)}var m=h||i.mc||u.color,y=u.pattern,x=y&&l.getPatternAttr(y.shape,0,"");if(x){var b=l.getPatternAttr(y.bgcolor,0,null),_=l.getPatternAttr(y.fgcolor,0,null),k=y.fgopacity,T=g(y.size,8,10),A=g(y.solidity,.5,1),M="legend-"+d.uid;n.call(l.pattern,"legend",t,M,x,T,A,h,y.fillmode,b,_,k)}else n.call(s.fill,m);o&&s.stroke(n,i.mlc||f.color)}))}function T(e,t,r){var o=e[0],l=o.trace,s=r?l.visible&&l.type===r:n.traceIs(l,r),c=a.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),c.exit().remove(),c.size()){var d=(l.marker||{}).line,h=w(f(d.width,o.pts),d,5,2),p=i.minExtend(l,{marker:{line:{width:h}}});p.marker.line.color=d.color;var v=i.minExtend(o,{trace:p});u(c,v,p)}}e.each((function(e){var t=a.select(this),n=i.ensureSingle(t,"g","layers");n.style("opacity",e[0].trace.opacity);var l=r.valign,s=e[0].lineHeight,c=e[0].height;if("middle"!==l&&s&&c){var d={top:1,bottom:-1}[l]*(.5*(s-c+3));n.attr("transform",o(0,d))}else n.attr("transform",null);n.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),n.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var u=n.selectAll("g.legendsymbols").data([e]);u.enter().append("g").classed("legendsymbols",!0),u.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,n=e[0].trace,o=[];if(n.visible)switch(n.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="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"]],r=!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"]],r=!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"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!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"]],r=!1}var d=a.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),d.exit().remove(),d.each((function(e,o){var d,u=a.select(this),f=c(n),h=f.colorscale,v=f.reversescale;if(h){if(!r){var g=h.length;d=0===o?h[v?g-1:0][1]:1===o?h[v?0:g-1][1]:h[Math.floor((g-1)/2)][1]}}else{var m=n.vertexcolor||n.facecolor||n.color;d=i.isArrayOrTypedArray(m)?m[o]||m[0]:m}u.attr("d",e[0]),d?u.call(s.fill,d):u.call((function(e){if(e.size()){var a="legendfill-"+n.uid;l.gradient(e,t,a,p(v,"radial"===r),h,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var n=e[0].trace[e[0].dir].marker;return e[0].mc=n.color,e[0].mlw=n.line.width,e[0].mlc=n.line.color,k(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=a.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=a.select(this),n=t[e[0]].marker,i=w(void 0,n.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,n.color),i&&r.call(s.stroke,n.line.color)}))})).each((function(e){k(e,this,"funnel")})).each((function(e){k(e,this)})).each((function(e){var r=e[0].trace,o=a.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&n.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),o.exit().remove(),o.each((function(){var e=a.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var n=w(void 0,r.line,5,2);e.style("stroke-width",n+"px").call(s.fill,r.fillcolor),n&&s.stroke(e,r.line.color)}else{var c=i.minExtend(r,{marker:{size:y?12:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,c,t)}}))})).each((function(e){T(e,this,"funnelarea")})).each((function(e){T(e,this,"pie")})).each((function(e){var r,n,o=v(e),s=o.showFill,u=o.showLine,f=o.showGradientLine,h=o.showGradientFill,g=o.anyFill,m=o.anyLine,y=e[0],b=y.trace,_=c(b),k=_.colorscale,T=_.reversescale,A=d.hasMarkers(b)||!g?"M5,0":m?"M5,-2":"M5,-3",M=a.select(this),S=M.select(".legendfill").selectAll("path").data(s||h?[e]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",A+"h"+x+"v6h-"+x+"z").call(s?l.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+b.uid;l.gradient(e,t,r,p(T),k,"fill")}}),u||f){var L=w(void 0,b.line,10,5);n=i.minExtend(b,{line:{width:L}}),r=[i.minExtend(y,{trace:n})]}var z=M.select(".legendlines").selectAll("path").data(u||f?[r]:[]);z.enter().append("path").classed("js-line",!0),z.exit().remove(),z.attr("d",A+(f?"l"+x+",0.0001":"h"+x)).call(u?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+b.uid;l.lineGroupStyle(e),l.gradient(e,t,r,p(T),k,"stroke")}})})).each((function(e){var r,n,o=v(e),s=o.anyFill,c=o.anyLine,u=o.showLine,f=o.showMarker,h=e[0],p=h.trace,g=!f&&!c&&!s&&d.hasText(p);function m(e,t,r,a){var n=i.nestedProperty(p,e).get(),o=i.isArrayOrTypedArray(n)&&t?t(n):n;if(y&&o&&void 0!==a&&(o=a),r){if(or[1])return r[1]}return o}function x(e){return h._distinct&&h.index&&e[h.index]?e[h.index]:e[0]}if(f||g||u){var b={},w={};if(f){b.mc=m("marker.color",x),b.mx=m("marker.symbol",x),b.mo=m("marker.opacity",i.mean,[.2,1]),b.mlc=m("marker.line.color",x),b.mlw=m("marker.line.width",i.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var k=m("marker.size",i.mean,[2,16],12);b.ms=k,w.marker.size=k}u&&(w.line={width:m("line.width",x,[0,10],5)}),g&&(b.tx="Aa",b.tp=m("textposition",x),b.ts=10,b.tc=m("textfont.color",x),b.tf=m("textfont.family",x)),r=[i.minExtend(h,b)],(n=i.minExtend(p,w)).selectedpoints=null,n.texttemplate=null}var T=a.select(this).select("g.legendpoints"),A=T.selectAll("path.scatterpts").data(f?r:[]);A.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),A.exit().remove(),A.call(l.pointStyle,n,t),f&&(r[0].mrc=3);var M=T.selectAll("g.pointtext").data(g?r:[]);M.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),M.exit().remove(),M.selectAll("text").call(l.textPointStyle,n,t)})).each((function(e){var t=e[0].trace,r=a.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var n=a.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);n.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(n,i.line.color)}))})).each((function(e){var t=e[0].trace,r=a.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var n=a.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);n.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(n,i.line.color)}))}))}},FE0A7nss:(e,t,r)=>{"use strict";var a=r("MgwEFEmX");e.exports={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 *"+a.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 *"+a.foreButtons.join("*, *")+"*."].join(" ")}}},SO8H7QHz:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("8MlMO9wt"),i=r("nXHY852p"),o=r("lziZQePk"),l=r("SBrs2Paq").eraseActiveShape,s=r("0Ft3SWJB"),c=s._,d=e.exports={};function u(e,t){var r,n,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,d={},u=i.list(e,null,!0),f=c._cartesianSpikesEnabled;if("zoom"===l){var h,p="in"===s?.5:2,v=(1+p)/2,g=(1-p)/2;for(n=0;n{"use strict";var a=r("SO8H7QHz"),n=Object.keys(a),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),l=[];n.forEach((function(e){!function(e){if(-1===o.indexOf(e._cat||e.name)){var t=e.name,r=(e._cat||e.name).toLowerCase();-1===l.indexOf(t)&&l.push(t),-1===l.indexOf(r)&&l.push(r)}}(a[e])})),l.sort(),e.exports={DRAW_MODES:i,backButtons:o,foreButtons:l}},kqsGewO0:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("/oRevOrA"),i=r("A5P9b9BX"),o=r("FE0A7nss");e.exports=function(e,t){var r=e.modebar||{},l=i.newContainer(t,"modebar");function s(e,t){return a.coerce(r,l,o,e,t)}s("orientation"),s("bgcolor",n.addOpacity(t.paper_bgcolor,.5));var c=n.contrast(n.rgb(t.modebar.bgcolor));s("color",n.addOpacity(c,.3)),s("activecolor",n.addOpacity(c,.7)),s("uirevision",t.uirevision),s("add"),s("remove")}},ElYFxeqq:(e,t,r)=>{"use strict";e.exports={moduleType:"component",name:"modebar",layoutAttributes:r("FE0A7nss"),supplyLayoutDefaults:r("kqsGewO0"),manage:r("A12AxPBT")}},A12AxPBT:(e,t,r)=>{"use strict";var a=r("nXHY852p"),n=r("FAQM5QER"),i=r("R5um7Wku"),o=r("ErV1Ibqz").isUnifiedHover,l=r("xsJ/SW1t"),s=r("SO8H7QHz"),c=r("MgwEFEmX").DRAW_MODES;e.exports=function(e){var t=e._fullLayout,r=e._context,d=t._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var u,f=r.modeBarButtons;u=Array.isArray(f)&&f.length?function(e){for(var t=0;t1?(F=["toggleHover"],P=["resetViews"]):m?(C=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],P=["resetGeo"]):g?(F=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(C=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],P=["resetViewMapbox"]):b?F=["hoverClosestGl2d"]:y?F=["hoverClosestPie"]:A?(F=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):F=["toggleHover"];v&&(F=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t{"use strict";var a=r("Lou4tdh8"),n=r("yAcToaBS"),i=r("0Ft3SWJB"),o=r("lziZQePk"),l=r("dH7CFEq5").version,s=new DOMParser;function c(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var d=c.prototype;d.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===a.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=a.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(n),i.addRelatedStyleRule(n,l+"#"+n+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(n,"#"+n+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(n,"#"+n+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(n,"#"+n+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,d=this.locale!==r.locale;if(this.locale=r.locale,(s||c||d)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var u=this.getLogo();r.watermark&&(u.className=u.className+" watermark"),"v"===a.modebar.orientation?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton()},d.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var r=t.createGroup();e.forEach((function(e){var a=e.name;if(!a)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(a))throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var n=t.createButton(e);t.buttonElements.push(n),r.appendChild(n)})),t.element.appendChild(r)}))},d.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},d.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;void 0===n?n=e.name:"function"==typeof n&&(n=n(this.graphInfo)),(n||0===n)&&r.setAttribute("data-title",n),void 0!==e.attr&&r.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),r.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",(function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)})),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&a.select(r).classed("active",!0);var l=e.icon;return"function"==typeof l?r.appendChild(l()):r.appendChild(this.createIcon(l||o.question)),r.setAttribute("data-gravity",e.gravity||"n"),r},d.createIcon=function(e){var t,r=n(e.height)?Number(e.height):e.ascent-e.descent,a="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(a,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(a,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=s.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},d.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var n=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=a.select(e);if(l)o===r&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===n)}}))},d.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r{"use strict";var a=r("lf8+9Xc7"),n=r("Khpmx9F5"),i=(0,r("A5P9b9BX").templatedArray)("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(" ")});e.exports={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:i,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:a({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:n.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:n.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"}},E7jFWnz0:e=>{"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},GFRpkpH7:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("/oRevOrA"),i=r("A5P9b9BX"),o=r("JdrF9yG0"),l=r("3oxsHAjo"),s=r("E7jFWnz0");function c(e,t,r,n){var i=n.calendar;function o(r,n){return a.coerce(e,t,l.buttons,r,n)}if(o("visible")){var s=o("step");"all"!==s&&(!i||"gregorian"===i||"month"!==s&&"year"!==s?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}e.exports=function(e,t,r,d,u){var f=e.rangeselector||{},h=i.newContainer(t,"rangeselector");function p(e,t){return a.coerce(f,h,l,e,t)}if(p("visible",o(f,h,{name:"buttons",handleItemDefaults:c,calendar:u}).length>0)){var v=function(e,t,r){for(var a=r.filter((function(r){return t[r].anchor===e._id})),n=0,i=0;i{"use strict";var a=r("Lou4tdh8"),n=r("R5um7Wku"),i=r("8MlMO9wt"),o=r("/oRevOrA"),l=r("+ELfTWmT"),s=r("0Ft3SWJB"),c=s.strTranslate,d=r("7k8rh0sJ"),u=r("nXHY852p"),f=r("kca9bvt+"),h=f.LINE_SPACING,p=f.FROM_TL,v=f.FROM_BR,g=r("E7jFWnz0"),m=r("gx2D5Jbc");function y(e){return e._id}function x(e,t,r){var a=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));a.attr({rx:g.rx,ry:g.ry}),a.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,r)).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,a){s.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(l.font,t.font).text(function(e,t){if(e.label)return t?s.templateString(e.label,t):e.label;return"all"===e.step?"all":e.count+e.step.charAt(0)}(r,a._fullLayout._meta)).call((function(e){d.convertToTspans(e,a)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=u.list(e,"x",!0),r=[],a=0;a{"use strict";var a=r("iLyfqyU4"),n=r("0Ft3SWJB").titleCase;e.exports=function(e,t){var r=e._name,i={};if("all"===t.step)i[r+".autorange"]=!0;else{var o=function(e,t){var r,i=e.range,o=new Date(e.r2l(i[1])),l=t.step,s=a["utc"+n(l)],c=t.count;switch(t.stepmode){case"backward":r=e.l2r(+s.offset(o,-c));break;case"todate":var d=s.offset(o,-c);r=e.l2r(+s.ceil(d))}var u=i[1];return[r,u]}(e,t);i[r+".range[0]"]=o[0],i[r+".range[1]"]=o[1]}return i}},fuud1Mda:(e,t,r)=>{"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:r("3oxsHAjo")}}},layoutAttributes:r("3oxsHAjo"),handleDefaults:r("GFRpkpH7"),draw:r("eEVZOYEb")}},BUYsAOqp:(e,t,r)=>{"use strict";var a=r("Khpmx9F5");e.exports={bgcolor:{valType:"color",dflt:a.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:a.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"}},hdoc7R6p:(e,t,r)=>{"use strict";var a=r("nXHY852p").list,n=r("IaNOhRG8").getAutoRange,i=r("eWxD8Nou");e.exports=function(e){for(var t=a(e,"x",!0),r=0;r{"use strict";e.exports={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}},tulWVaVZ:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("A5P9b9BX"),i=r("nXHY852p"),o=r("BUYsAOqp"),l=r("rEizEXXv");e.exports=function(e,t,r){var s=e[r],c=t[r];if(s.rangeslider||t._requestRangeslider[c._id]){a.isPlainObject(s.rangeslider)||(s.rangeslider={});var d,u,f=s.rangeslider,h=n.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(f.range)),_("range");var p=t._subplots;if(p)for(var v=p.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(r)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),g=a.simpleMap(v,i.id2name),m=0;m{"use strict";var a=r("Lou4tdh8"),n=r("R5um7Wku"),i=r("8MlMO9wt"),o=r("0Ft3SWJB"),l=o.strTranslate,s=r("+ELfTWmT"),c=r("/oRevOrA"),d=r("xjYqbXs+"),u=r("42xT/S4m"),f=r("nXHY852p"),h=r("WFvnZ06c"),p=r("LnvsDkyo"),v=r("eWxD8Nou");function g(e,t,r,a){var n=o.ensureSingle(e,"rect",v.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=a.borderwidth%2==0?a.borderwidth:a.borderwidth-1,c=-a._offsetShift,d=s.crispRound(t,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:l(c,c),fill:a.bgcolor,stroke:a.bordercolor,"stroke-width":d})}function m(e,t,r,a){var n=t._fullLayout;o.ensureSingleById(n._topdefs,"clipPath",a._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:a._width,height:a._height})}function y(e,t,r,n){var l,c=t.calcdata,d=e.selectAll("g."+v.rangePlotClassName).data(r._subplotsWith,o.identity);d.enter().append("g").attr("class",(function(e){return v.rangePlotClassName+" "+e})).call(s.setClipUrl,n._clipId,t),d.order(),d.exit().remove(),d.each((function(e,o){var s=a.select(this),d=0===o,h=f.getFromId(t,e,"y"),p=h._name,v=n[p],g={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:n.range.slice(),calendar:r.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(g.layout.xaxis.rangebreaks=r.rangebreaks),g.layout[p]={type:h.type,domain:[0,1],range:"match"!==v.rangemode?v.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(g.layout[p].rangebreaks=h.rangebreaks),i.supplyDefaults(g);var m=g._fullLayout.xaxis,y=g._fullLayout[p];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var x={id:e,plotgroup:s,xaxis:m,yaxis:y,isRangePlot:!0};d?l=x:(x.mainplot="xy",x.mainplotinfo=l),u.rangePlot(t,x,function(e,t){for(var r=[],a=0;a=a.max)t=E[r+1];else if(e=a.pmax)t=E[r+1];else if(e{"use strict";var r=t("nXHY852p"),a=t("7k8rh0sJ"),n=t("eWxD8Nou"),i=t("kca9bvt+").LINE_SPACING,o=n.name;function l(e){var t=e&&e[o];return t&&t.visible}exports.isVisible=l,exports.makeData=function(e){var t=r.list({_fullLayout:e},"x",!0),a=e.margin,n=[];if(!e._has("gl2d"))for(var i=0;i{"use strict";var a=r("0Ft3SWJB"),n=r("BUYsAOqp"),i=r("rEizEXXv"),o=r("tcKspEK1");e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:a.extendFlat({},n,{yaxis:i})}}},layoutAttributes:r("BUYsAOqp"),handleDefaults:r("tulWVaVZ"),calcAutorange:r("hdoc7R6p"),draw:r("Ynsi9ipj"),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},rEizEXXv:e=>{"use strict";e.exports={_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"}},wZSGLMqc:(e,t,r)=>{"use strict";var a=r("L1qB4u9y"),n=r("SncXPNSm").line,i=r("LZ3mZdqo").P,o=r("xE+ZFgwY").extendFlat,l=r("A5P9b9BX").templatedArray,s=r("SWM1uxTh");e.exports=l("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},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:o({},a.xref,{description:["Sets the shape's x coordinate axis.",s.axisRefDescription("x","left","right"),"If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].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:o({},a.yref,{description:["Sets the annotation's y coordinate axis.",s.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:o({},n.color,{editType:"arraydraw"}),width:o({},n.width,{editType:"calc+arraydraw"}),dash:o({},i,{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(" ")},editType:"arraydraw"})},rFx0PDKK:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("nDS+kLOj"),o=r("ETO16RmN");function l(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,r,n,l,s){var c=e/2,d=s;if("pixel"===t){var u=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[r,n],f=a.aggNums(Math.max,null,u),h=a.aggNums(Math.min,null,u),p=h<0?Math.abs(h)+c:c,v=f>0?f+c:c;return{ppad:c,ppadplus:d?p:v,ppadminus:d?v:p}}return{ppad:c}}function d(e,t,r,a,n){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(a){var s,c,d,u,f=1/0,h=-1/0,p=a.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;sh&&(h=u)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,r=a.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o{"use strict";e.exports={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}}},VHfnmPJe:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("JdrF9yG0"),o=r("wZSGLMqc"),l=r("ETO16RmN");function s(e,t,r){function i(r,n){return a.coerce(e,t,o,r,n)}if(i("visible")){var s=i("path"),c=i("type",s?"path":"rect");"path"!==t.type&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var d=i("xsizemode"),u=i("ysizemode"),f=["x","y"],h=0;h<2;h++){var p,v,g,m=f[h],y=m+"anchor",x="x"===m?d:u,b={_fullLayout:r},_=n.coerceRef(e,t,b,m,void 0,"paper");if("range"===n.getRefType(_)?((p=n.getFromId(b,_))._shapeIndices.push(t._index),g=l.rangeToShapePosition(p),v=l.shapePositionToRange(p)):v=g=a.identity,"path"!==c){var w=m+"0",k=m+"1",T=e[w],A=e[k];e[w]=v(e[w],!0),e[k]=v(e[k],!0),"pixel"===x?(i(w,0),i(k,10)):(n.coercePosition(t,b,i,_,w,.25),n.coercePosition(t,b,i,_,k,.75)),t[w]=g(t[w]),t[k]=g(t[k]),e[w]=T,e[k]=A}if("pixel"===x){var M=e[y];e[y]=v(e[y],!0),n.coercePosition(t,b,i,_,y,.25),t[y]=g(t[y]),e[y]=M}}"path"===c?i("path"):a.noneOrAll(e,t,["x0","x1","y0","y1"])}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},SBrs2Paq:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB"),i=r("4JfnfFRI"),o=r("FaAFECtK").readPaths,l=r("Fl5XEEXl"),s=r("jH0PU/G+").clearOutlineControllers,c=r("/oRevOrA"),d=r("+ELfTWmT"),u=r("A5P9b9BX").arrayEditor,f=r("WFvnZ06c"),h=r("LnvsDkyo"),p=r("nDS+kLOj"),v=r("ETO16RmN");function g(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var a=t._plots[r].shapelayer;a&&a.selectAll("path").remove()}for(var n=0;nI&&i>D&&!r.shiftKey?f.getCursor(o/n,1-l/i):"move";h(t,s),P=s.split("-")[0]}}function te(a){m(e)||(R&&(x=U(r.xanchor)),E&&(k=q(r.yanchor)),"path"===r.type?F=r.path:(c=R?r.x0:U(r.x0),u=E?r.y0:q(r.y0),g=R?r.x1:U(r.x1),y=E?r.y1:q(r.y1)),cy?(T=u,L="y0",A=y,z="y1"):(T=y,L="y1",A=u,z="y0"),ee(a),oe(l,r),se(t,r,e),Y.moveFn="move"===P?ne:ie,Y.altKey=a.altKey)}function re(){m(e)||(h(t),le(l),b(t,e,r),a.call("_guiRelayout",e,s.getUpdateObj()))}function ae(){m(e)||le(l)}function ne(a,n){if("path"===r.type){var i=function(e){return e},o=i,s=i;R?N("xanchor",r.xanchor=Z(x+a)):(o=function(e){return Z(U(e)+a)},H&&"date"===H.type&&(o=v.encodeDate(o))),E?N("yanchor",r.yanchor=X(k+n)):(s=function(e){return X(q(e)+n)},V&&"date"===V.type&&(s=v.encodeDate(s))),N("path",r.path=w(F,o,s))}else R?N("xanchor",r.xanchor=Z(x+a)):(N("x0",r.x0=Z(c+a)),N("x1",r.x1=Z(g+a))),E?N("yanchor",r.yanchor=X(k+n)):(N("y0",r.y0=X(u+n)),N("y1",r.y1=X(y+n)));t.attr("d",_(e,r)),oe(l,r)}function ie(a,n){if(B){var i=function(e){return e},o=i,s=i;R?N("xanchor",r.xanchor=Z(x+a)):(o=function(e){return Z(U(e)+a)},H&&"date"===H.type&&(o=v.encodeDate(o))),E?N("yanchor",r.yanchor=X(k+n)):(s=function(e){return X(q(e)+n)},V&&"date"===V.type&&(s=v.encodeDate(s))),N("path",r.path=w(F,o,s))}else if(j){if("resize-over-start-point"===P){var d=c+a,f=E?u-n:u+n;N("x0",r.x0=R?d:Z(d)),N("y0",r.y0=E?f:X(f))}else if("resize-over-end-point"===P){var h=g+a,p=E?y-n:y+n;N("x1",r.x1=R?h:Z(h)),N("y1",r.y1=E?p:X(p))}}else{var m=function(e){return-1!==P.indexOf(e)},b=m("n"),W=m("s"),G=m("w"),J=m("e"),Y=b?T+n:T,Q=W?A+n:A,K=G?M+a:M,ee=J?S+a:S;E&&(b&&(Y=T-n),W&&(Q=A-n)),(!E&&Q-Y>D||E&&Y-Q>D)&&(N(L,r[L]=E?Y:X(Y)),N(z,r[z]=E?Q:X(Q))),ee-K>I&&(N(O,r[O]=R?K:Z(K)),N(C,r[C]=R?ee:Z(ee)))}t.attr("d",_(e,r)),oe(l,r)}function oe(e,t){function r(){var r="path"!==t.type,a=e.selectAll(".visual-cue").data([0]),i=1;a.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":i}).classed("visual-cue",!0);var o=U(R?t.xanchor:n.midRange(r?[t.x0,t.x1]:v.extractPathCoords(t.path,p.paramIsX))),l=q(E?t.yanchor:n.midRange(r?[t.y0,t.y1]:v.extractPathCoords(t.path,p.paramIsY)));if(o=v.roundPositionForSharpStrokeRendering(o,i),l=v.roundPositionForSharpStrokeRendering(l,i),R&&E){var s="M"+(o-1-i)+","+(l-1-i)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";a.attr("d",s)}else if(R){var c="M"+(o-1-i)+","+(l-9-i)+"v18 h2 v-18 Z";a.attr("d",c)}else{var d="M"+(o-9-i)+","+(l-1-i)+"h18 v2 h-18 Z";a.attr("d",d)}}(R||E)&&r()}function le(e){e.selectAll(".visual-cue").remove()}function se(e,t,r){var a=t.xref,n=t.yref,o=i.getFromId(r,a),l=i.getFromId(r,n),s="";"paper"===a||o.autorange||(s+=a),"paper"===n||l.autorange||(s+=n),d.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}f.init(Y),J.node().onmousemove=ee}(e,I,s,t,r,P):!0===s.editable&&I.style("pointer-events",C||c.opacity(S)*M<=.5?"stroke":"all");I.node().addEventListener("click",(function(){return function(e,t){if(!y(e))return;var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void k(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=k,g(e)}}(e,I)}))}}function b(e,t,r){var a=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");d.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}function _(e,t){var r,a,o,l,s,c,d,u,f=t.type,h=i.getRefType(t.xref),g=i.getRefType(t.yref),m=i.getFromId(e,t.xref),y=i.getFromId(e,t.yref),x=e._fullLayout._size;if(m?"domain"===h?a=function(e){return m._offset+m._length*e}:(r=v.shapePositionToRange(m),a=function(e){return m._offset+m.r2p(r(e,!0))}):a=function(e){return x.l+x.w*e},y?"domain"===g?l=function(e){return y._offset+y._length*(1-e)}:(o=v.shapePositionToRange(y),l=function(e){return y._offset+y.r2p(o(e,!0))}):l=function(e){return x.t+x.h*(1-e)},"path"===f)return m&&"date"===m.type&&(a=v.decodeDate(a)),y&&"date"===y.type&&(l=v.decodeDate(l)),function(e,t,r){var a=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return a.replace(p.segmentRE,(function(e){var a=0,c=e.charAt(0),d=p.paramIsX[c],u=p.paramIsY[c],f=p.numParams[c],h=e.substr(1).replace(p.paramRE,(function(e){return d[a]?e="pixel"===i?t(l)+Number(e):t(e):u[a]&&(e="pixel"===o?r(s)-Number(e):r(e)),++a>f&&(e="X"),e}));return a>f&&(h=h.replace(/[\s,]*X.*/,""),n.log("Ignoring extra params in segment "+e)),c+h}))}(t,a,l);if("pixel"===t.xsizemode){var b=a(t.xanchor);s=b+t.x0,c=b+t.x1}else s=a(t.x0),c=a(t.x1);if("pixel"===t.ysizemode){var _=l(t.yanchor);d=_-t.y0,u=_-t.y1}else d=l(t.y0),u=l(t.y1);if("line"===f)return"M"+s+","+d+"L"+c+","+u;if("rect"===f)return"M"+s+","+d+"H"+c+"V"+u+"H"+s+"Z";var w=(s+c)/2,k=(d+u)/2,T=Math.abs(w-s),A=Math.abs(k-d),M="A"+T+","+A,S=w+T+","+k;return"M"+S+M+" 0 1,1 "+(w+","+(k-A))+M+" 0 0,1 "+S+"Z"}function w(e,t,r){return e.replace(p.segmentRE,(function(e){var a=0,n=e.charAt(0),i=p.paramIsX[n],o=p.paramIsY[n],l=p.numParams[n];return n+e.substr(1).replace(p.paramRE,(function(e){return a>=l||(i[a]?e=t(e):o[a]&&(e=r(e)),a++),e}))}))}function k(e){y(e)&&(e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,g(e)))}e.exports={draw:g,drawOne:x,eraseActiveShape:function(e){if(!y(e))return;s(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},RnBLVGpd:(e,t,r)=>{"use strict";var a=r("/oRevOrA");e.exports=function(e,t,r){if(r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var n=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",a.contrast(n)),r("newshape.line.dash")}r("activeshape.fillcolor"),r("activeshape.opacity")}},Fl5XEEXl:(e,t,r)=>{"use strict";var a=r("WFvnZ06c"),n=r("rC/dcWPV").drawMode,i=r("R5um7Wku"),o=r("rMN7jolB"),l=o.i000,s=o.i090,c=o.i180,d=o.i270,u=r("jH0PU/G+").clearOutlineControllers,f=r("FaAFECtK"),h=f.pointsShapeRectangle,p=f.pointsShapeEllipse,v=f.writePaths,g=r("FRK4tLaG");e.exports=function e(t,r,o,f){f||(f=0);var m=o.gd;function y(){e(t,r,o,f++),p(t[0])&&x({redrawing:!0})}function x(e){o.isActiveShape=!1;var t=g(r,o);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",m,t)}var b,_,w,k,T,A=o.isActiveShape,M=m._fullLayout._zoomlayer,S=o.dragmode;(n(S)?m._fullLayout._drawing=!0:m._fullLayout._activeShapeIndex>=0&&u(m),r.attr("d",v(t)),A&&!f)&&(T=function(e,t){for(var r=0;r1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[w]=e,y(),x())}}()}}function F(e,r){!function(e,r){if(t.length)for(var a=0;a{"use strict";var r=t("W2eyfIL2"),a=t("rMN7jolB"),n=a.CIRCLE_SIDES,i=a.SQRT2,o=t("Z/5I/swV"),l=o.p2r,s=o.r2p,c=[0,3,4,5,6,1,2],d=[0,3,4,1,2];function u(e,t){return Math.abs(e-t)<=1e-6}function f(e,t){var r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(r*r+a*a)}exports.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",a=0;a0&&s{"use strict";var a=r("rC/dcWPV"),n=a.drawMode,i=a.openMode,o=r("rMN7jolB"),l=o.i000,s=o.i090,c=o.i180,d=o.i270,u=o.cos45,f=o.sin45,h=r("Z/5I/swV"),p=h.p2r,v=h.r2p,g=r("jH0PU/G+").clearSelect,m=r("FaAFECtK"),y=m.readPaths,x=m.writePaths,b=m.ellipseOver;e.exports=function(e,t){if(e.length){var r=e[0][0];if(r){var a=r.getAttribute("d"),o=t.gd,h=o._fullLayout.newshape,m=t.plotinfo,_=m.xaxis,w=m.yaxis,k=!!m.domain||!m.xaxis,T=!!m.domain||!m.yaxis,A=t.isActiveShape,M=t.dragmode,S=(o.layout||{}).shapes||[];if(!n(M)&&void 0!==A){var L=o._fullLayout._activeShapeIndex;if(L{"use strict";var r=t("nDS+kLOj"),a=t("0Ft3SWJB");exports.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},exports.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},exports.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},exports.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},exports.extractPathCoords=function(e,t){var n=[];return e.match(r.segmentRE).forEach((function(e){var i=t[e.charAt(0)].drawn;if(void 0!==i){var o=e.substr(1).match(r.paramRE);!o||o.length{"use strict";var a=r("SBrs2Paq");e.exports={moduleType:"component",name:"shapes",layoutAttributes:r("wZSGLMqc"),supplyLayoutDefaults:r("VHfnmPJe"),supplyDrawNewShapeDefaults:r("RnBLVGpd"),includeBasePlot:r("lGy/M/Cj")("shapes"),calcAutorange:r("rFx0PDKK"),draw:a.draw,drawOne:a.drawOne}},bz6mKfuP:(e,t,r)=>{"use strict";var a=r("lf8+9Xc7"),n=r("3dGlwK5L"),i=r("xE+ZFgwY").extendDeepAll,o=r("Oq1Cqb7p").overrideAll,l=r("HlG8UEh+"),s=r("A5P9b9BX").templatedArray,c=r("GEN9BI7z"),d=s("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(" ")}});e.exports=o(s("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:d,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:i(n({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:l.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:a({description:"Sets the font of the current value label text."})},font:a({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.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:c.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},GEN9BI7z:e=>{"use strict";e.exports={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}},"9y2XjxqJ":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("JdrF9yG0"),i=r("bz6mKfuP"),o=r("GEN9BI7z").name,l=i.steps;function s(e,t,r){function o(r,n){return a.coerce(e,t,i,r,n)}for(var l=n(e,t,{name:"steps",handleItemDefaults:c}),s=0,d=0;d{"use strict";var a=r("Lou4tdh8"),n=r("8MlMO9wt"),i=r("/oRevOrA"),o=r("+ELfTWmT"),l=r("0Ft3SWJB"),s=l.strTranslate,c=r("7k8rh0sJ"),d=r("A5P9b9BX").arrayEditor,u=r("GEN9BI7z"),f=r("kca9bvt+"),h=f.LINE_SPACING,p=f.FROM_TL,v=f.FROM_BR;function g(e){return u.autoMarginIdRoot+e._index}function m(e){return e._index}function y(e,t){var r=o.tester.selectAll("g."+u.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(u.labelGroupClass,!0);var i=0,s=0;r.each((function(e){var r=_(a.select(this),{step:e},t).node();if(r){var n=o.bBox(r);s=Math.max(s,n.height),i=Math.max(i,n.width)}})),r.remove();var d=t._dims={};d.inputAreaWidth=Math.max(u.railWidth,u.gripHeight);var f=e._fullLayout._size;d.lx=f.l+f.w*t.x,d.ly=f.t+f.h*(1-t.y),"fraction"===t.lenmode?d.outerLength=Math.round(f.w*t.len):d.outerLength=t.len,d.inputAreaStart=0,d.inputAreaLength=Math.round(d.outerLength-t.pad.l-t.pad.r);var h=(d.inputAreaLength-2*u.stepInset)/(t._stepCount-1),m=i+u.labelPadding;if(d.labelStride=Math.max(1,Math.ceil(m/h)),d.labelHeight=s,d.currentValueMaxWidth=0,d.currentValueHeight=0,d.currentValueTotalHeight=0,d.currentValueMaxLines=1,t.currentvalue.visible){var y=o.tester.append("g");r.each((function(e){var r=x(y,t,e.label),a=r.node()&&o.bBox(r.node())||{width:0,height:0},n=c.lineCount(r);d.currentValueMaxWidth=Math.max(d.currentValueMaxWidth,Math.ceil(a.width)),d.currentValueHeight=Math.max(d.currentValueHeight,Math.ceil(a.height)),d.currentValueMaxLines=Math.max(d.currentValueMaxLines,n)})),d.currentValueTotalHeight=d.currentValueHeight+t.currentvalue.offset,y.remove()}d.height=d.currentValueTotalHeight+u.tickOffset+t.ticklen+u.labelOffset+d.labelHeight+t.pad.t+t.pad.b;var b="left";l.isRightAnchor(t)&&(d.lx-=d.outerLength,b="right"),l.isCenterAnchor(t)&&(d.lx-=d.outerLength/2,b="center");var w="top";l.isBottomAnchor(t)&&(d.ly-=d.height,w="bottom"),l.isMiddleAnchor(t)&&(d.ly-=d.height/2,w="middle"),d.outerLength=Math.ceil(d.outerLength),d.height=Math.ceil(d.height),d.lx=Math.round(d.lx),d.ly=Math.round(d.ly);var k={y:t.y,b:d.height*v[w],t:d.height*p[w]};"fraction"===t.lenmode?(k.l=0,k.xl=t.x-t.len*p[b],k.r=0,k.xr=t.x+t.len*v[b]):(k.x=t.x,k.l=d.outerLength*p[b],k.r=d.outerLength*v[b]),n.autoMargin(e,g(t),k)}function x(e,t,r){if(t.currentvalue.visible){var a,n,i=t._dims;switch(t.currentvalue.xanchor){case"right":a=i.inputAreaLength-u.currentValueInset-i.currentValueMaxWidth,n="left";break;case"center":a=.5*i.inputAreaLength,n="middle";break;default:a=u.currentValueInset,n="left"}var s=l.ensureSingle(e,"text",u.labelClass,(function(e){e.attr({"text-anchor":n,"data-notex":1})})),d=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof r)d+=r;else{var f=t.steps[t.active].label,p=t._gd._fullLayout._meta;p&&(f=l.templateString(f,p)),d+=f}t.currentvalue.suffix&&(d+=t.currentvalue.suffix),s.call(o.font,t.currentvalue.font).text(d).call(c.convertToTspans,t._gd);var v=c.lineCount(s),g=(i.currentValueMaxLines+1-v)*t.currentvalue.font.size*h;return c.positionText(s,a,g),s}}function b(e,t,r){l.ensureSingle(e,"rect",u.gripRectClass,(function(a){a.call(A,t,e,r).style("pointer-events","all")})).attr({width:u.gripWidth,height:u.gripHeight,rx:u.gripRadius,ry:u.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function _(e,t,r){var a=l.ensureSingle(e,"text",u.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),n=t.step.label,i=r._gd._fullLayout._meta;return i&&(n=l.templateString(n,i)),a.call(o.font,r.font).text(n).call(c.convertToTspans,r._gd),a}function w(e,t){var r=l.ensureSingle(e,"g",u.labelsClass),n=t._dims,i=r.selectAll("g."+u.labelGroupClass).data(n.labelSteps);i.enter().append("g").classed(u.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var r=a.select(this);r.call(_,e,t),o.setTranslate(r,L(t,e.fraction),u.tickOffset+t.ticklen+t.font.size*h+u.labelOffset+n.currentValueTotalHeight)}))}function k(e,t,r,a,n){var i=Math.round(a*(r._stepCount-1)),o=r._visibleSteps[i]._index;o!==r.active&&T(e,t,r,o,!0,n)}function T(e,t,r,a,i,o){var l=r.active;r.active=a,d(e.layout,u.name,r).applyUpdate("active",a);var s=r.steps[r.active];t.call(S,r,o),t.call(x,r),e.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:i,previousActive:l}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:s,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame((function(){var r=t._nextMethod.step;r.method&&(r.execute&&n.executeAPICommand(e,r.method,r.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function A(e,t,r){var n=r.node(),o=a.select(t);function l(){return r.data()[0]}function s(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=r.select("."+u.gripRectClass);a.event.stopPropagation(),a.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=z(e,a.mouse(n)[0]);function d(){var e=l(),i=z(e,a.mouse(n)[0]);k(t,r,e,i,!1)}function f(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}k(t,r,e,c,!0),e._dragging=!0,o.on("mousemove",d),o.on("touchmove",d),o.on("mouseup",f),o.on("touchend",f)}e.on("mousedown",s),e.on("touchstart",s)}function M(e,t){var r=e.selectAll("rect."+u.tickRectClass).data(t._visibleSteps),n=t._dims;r.enter().append("rect").classed(u.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each((function(e,r){var l=r%n.labelStride==0,s=a.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,L(t,r/(t._stepCount-1))-.5*t.tickwidth,(l?u.tickOffset:u.minorTickOffset)+n.currentValueTotalHeight)}))}function S(e,t,r){for(var a=e.select("rect."+u.gripRectClass),n=0,i=0;i0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*u.gripWidth,t._dims.currentValueTotalHeight))}}function L(e,t){var r=e._dims;return r.inputAreaStart+u.stepInset+(r.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function z(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-u.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*u.stepInset-2*r.inputAreaStart)))}function O(e,t,r){var a=r._dims,n=l.ensureSingle(e,"rect",u.railTouchRectClass,(function(a){a.call(A,t,e,r).style("pointer-events","all")}));n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,u.tickOffset+r.ticklen+a.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(n,0,a.currentValueTotalHeight)}function C(e,t){var r=t._dims,a=r.inputAreaLength-2*u.railInset,n=l.ensureSingle(e,"rect",u.railRectClass);n.attr({width:a,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(n,u.railInset,.5*(r.inputAreaWidth-u.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,r=function(e,t){for(var r=e[u.name],a=[],n=0;n0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),n.autoMargin(e,g(t))}if(i.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){a.select(this).selectAll("g."+u.groupClassName).each(l)})).remove(),0!==r.length){var s=i.selectAll("g."+u.groupClassName).data(r,m);s.enter().append("g").classed(u.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c{"use strict";var a=r("GEN9BI7z");e.exports={moduleType:"component",name:a.name,layoutAttributes:r("bz6mKfuP"),supplyLayoutDefaults:r("9y2XjxqJ"),draw:r("k24puNjE")}},"xjYqbXs+":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("yAcToaBS"),i=r("8MlMO9wt"),o=r("R5um7Wku"),l=r("0Ft3SWJB"),s=l.strTranslate,c=r("+ELfTWmT"),d=r("/oRevOrA"),u=r("7k8rh0sJ"),f=r("Tdks4qa7"),h=r("kca9bvt+").OPPOSITE_SIDE,p=/ [XY][0-9]* /;e.exports={draw:function(e,t,r){var v,g=r.propContainer,m=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,k=r.containerGroup,T=e._fullLayout,A=1,M=!1,S=g.title,L=(S&&S.text?S.text:"").trim(),z=S&&S.font?S.font:{},O=z.family,C=z.size,F=z.color;"title.text"===m?v="titleText":-1!==m.indexOf("axis")?v="axisTitleText":m.indexOf(!0)&&(v="colorbarTitleText");var P=e._context.edits[v];""===L?A=0:L.replace(p," % ")===y.replace(p," % ")&&(A=.2,M=!0,P||(L="")),r._meta?L=l.templateString(L,r._meta):T._meta&&(L=l.templateString(L,T._meta));var I,D=L||P;k||(k=l.ensureSingle(T._infolayer,"g","g-"+t),I=T._hColorbarMoveTitle);var R=k.selectAll("text").data(D?[0]:[]);if(R.enter().append("text"),R.text(L).attr("class",t),R.exit().remove(),!D)return k;function E(e){l.syncOrAsync([j,B],e)}function j(t){var r;return!w&&I&&(w={}),w?(r="",w.rotate&&(r+="rotate("+[w.rotate,_.x,_.y]+")"),(w.offset||I)&&(r+=s(0,(w.offset||0)-(I||0)))):r=null,t.attr("transform",r),t.style({"font-family":O,"font-size":a.round(C,2)+"px",fill:d.rgb(F),opacity:A*d.opacity(F),"font-weight":i.fontWeight}).attr(_).call(u.convertToTspans,e),i.previousPromises(e)}function B(e){var t=a.select(e.node().parentNode);if(b&&b.selection&&b.side&&L){t.attr("transform",null);var r=h[b.side],i="left"===b.side||"top"===b.side?-1:1,o=n(b.pad)?b.pad:2,d=c.bBox(t.node()),u={left:0,top:0,right:T.width,bottom:T.height},f=b.maxShift||i*(u[b.side]-d[b.side]),p=0;if(f<0)p=f;else{var v=b.offsetLeft||0,g=b.offsetTop||0;d.left-=v,d.right-=v,d.top-=g,d.bottom-=g,b.selection.each((function(){var e=c.bBox(this);l.bBoxIntersect(d,e,o)&&(p=Math.max(p,i*(e[b.side]-d[r])+o))})),p=Math.min(f,p)}if(p>0||f<0){var m={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[b.side];t.attr("transform",s(m[0],m[1]))}}}return R.call(E),P&&(L?R.on(".opacity",null):(A=0,M=!0,R.text(y).on("mouseover.opacity",(function(){a.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){a.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))),R.call(u.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?o.call("_guiRestyle",e,m,t,x):o.call("_guiRelayout",e,m,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(E)})).on("input",(function(e){this.text(e||" ").call(u.positionText,_.x,_.y)}))),R.classed("js-placeholder",M),k}}},"3C3qwmq/":(e,t,r)=>{"use strict";var a=r("lf8+9Xc7"),n=r("Khpmx9F5"),i=r("xE+ZFgwY").extendFlat,o=r("Oq1Cqb7p").overrideAll,l=r("3dGlwK5L"),s=r("A5P9b9BX").templatedArray,c=s("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(" ")}});e.exports=o(s("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:c,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:i(l({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:a({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:n.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")},Zf49CTZG:e=>{"use strict";e.exports={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:"▼"}}},"J+WNd9JU":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("JdrF9yG0"),i=r("3C3qwmq/"),o=r("Zf49CTZG").name,l=i.buttons;function s(e,t,r){function o(r,n){return a.coerce(e,t,i,r,n)}o("visible",n(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),a.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),a.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,n){return a.coerce(e,t,l,r,n)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(e,t){n(e,t,{name:o,handleItemDefaults:s})}},"0Ed4c6gV":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("8MlMO9wt"),i=r("/oRevOrA"),o=r("+ELfTWmT"),l=r("0Ft3SWJB"),s=r("7k8rh0sJ"),c=r("A5P9b9BX").arrayEditor,d=r("kca9bvt+").LINE_SPACING,u=r("Zf49CTZG"),f=r("Y84ol+tU");function h(e){return e._index}function p(e,t){return+e.attr(u.menuIndexAttrName)===t._index}function v(e,t,r,a,n,i,o,l){t.active=o,c(e.layout,u.name,t).applyUpdate("active",o),"buttons"===t.type?m(e,a,null,null,t):"dropdown"===t.type&&(n.attr(u.menuIndexAttrName,"-1"),g(e,a,n,i,t),l||m(e,a,n,i,t))}function g(e,t,r,a,n){var i=l.ensureSingle(t,"g",u.headerClassName,(function(e){e.style("pointer-events","all")})),s=n._dims,c=n.active,d=n.buttons[c]||u.blankHeaderOpts,f={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},h={width:s.headerWidth,height:s.headerHeight};i.call(y,n,d,e).call(M,n,f,h),l.ensureSingle(t,"text",u.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,n.font).text(u.arrowSymbol[n.direction])})).attr({x:s.headerWidth-u.arrowOffsetX+n.pad.l,y:s.headerHeight/2+u.textOffsetY+n.pad.t}),i.on("click",(function(){r.call(S,String(p(r,n)?-1:n._index)),m(e,t,r,a,n)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(k,n)})),o.setTranslate(t,s.lx,s.ly)}function m(e,t,r,i,o){r||(r=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(u.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?u.dropdownButtonClassName:u.buttonClassName,d=r.selectAll("g."+c).data(l.filterVisible(s)),f=d.enter().append("g").classed(c,!0),h=d.exit();"dropdown"===o.type?(f.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var p=0,g=0,m=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?g=m.headerHeight+u.gapButtonHeader:p=m.headerWidth+u.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(g=-u.gapButtonHeader+u.gapButton-m.openHeight),"dropdown"===o.type&&"left"===o.direction&&(p=-u.gapButtonHeader+u.gapButton-m.openWidth);var b={x:m.lx+p+o.pad.l,y:m.ly+g+o.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};d.each((function(l,s){var c=a.select(this);c.call(y,o,l,e).call(M,o,b),c.on("click",(function(){a.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(v(e,o,0,t,r,i,-1),n.executeAPICommand(e,l.method,l.args2)):(v(e,o,0,t,r,i,s),n.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(k,o),d.call(_,o)}))})),d.call(_,o),x?(T.w=Math.max(m.openWidth,m.headerWidth),T.h=b.y-T.t):(T.w=b.x-T.l,T.h=Math.max(m.openHeight,m.headerHeight)),T.direction=o.direction,i&&(d.size()?function(e,t,r,a,n,i){var o,l,s,c=n.direction,d="up"===c||"down"===c,f=n._dims,h=n.active;if(d)for(l=0,s=0;s0?[0]:[]);if(o.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){a.select(this).selectAll("g."+u.headerGroupClassName).each(i)})).remove(),0!==r.length){var s=o.selectAll("g."+u.headerGroupClassName).data(r,h);s.enter().append("g").classed(u.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",u.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),d=0;d{"use strict";var a=r("Zf49CTZG");e.exports={moduleType:"component",name:a.name,layoutAttributes:r("3C3qwmq/"),supplyLayoutDefaults:r("J+WNd9JU"),draw:r("0Ed4c6gV")}},"Y84ol+tU":(e,t,r)=>{"use strict";e.exports=l;var a=r("Lou4tdh8"),n=r("/oRevOrA"),i=r("+ELfTWmT"),o=r("0Ft3SWJB");function l(e,t,r){this.gd=e,this.container=t,this.id=r,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})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,r){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var d,u,f,h,p=this.position.l,v=this.position.w,g=this.position.t,m=this.position.h,y=this.position.direction,x="down"===y,b="left"===y,_="up"===y,w=v,k=m;x||b||"right"===y||_||(this.position.direction="down",x=!0),x||_?(u=(d=p)+w,x?(f=g,k=(h=Math.min(f+k,c))-f):k=(h=g+k)-(f=Math.max(h-k,0))):(h=(f=g)+k,b?w=(u=p+w)-(d=Math.max(u-w,0)):(d=p,w=(u=Math.min(d+w,s))-d)),this._box={l:d,t:f,w,h:k};var T=v>w,A=l.barLength+2*l.barPad,M=l.barWidth+2*l.barPad,S=p,L=g+m;L+M>c&&(L=c-M);var z=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(n.fill,l.barColor),T?(this.hbar=z.attr({rx:l.barRadius,ry:l.barRadius,x:S,y:L,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=m>k,C=l.barWidth+2*l.barPad,F=l.barLength+2*l.barPad,P=p+v,I=g;P+C>s&&(P=s-C);var D=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-vertical",!0).call(n.fill,l.barColor),O?(this.vbar=D.attr({rx:l.barRadius,ry:l.barRadius,x:P,y:I,width:C,height:F}),this._vbarYMin=I+F/2,this._vbarTranslateMax=k-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,E=d-.5,j=O?u+C+.5:u+.5,B=f-.5,N=T?h+M+.5:h+.5,H=o._topdefs.selectAll("#"+R).data(T||O?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",R).append("rect"),T||O?(this._clipRect=H.select("rect").attr({x:Math.floor(E),y:Math.floor(B),width:Math.ceil(j)-Math.floor(E),height:Math.ceil(N)-Math.floor(B)}),this.container.call(i.setClipUrl,R,this.gd),this.bg.attr({x:p,y:g,width:v,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||O){var W=a.behavior.drag().on("dragstart",(function(){a.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(W);var V=a.behavior.drag().on("dragstart",(function(){a.event.sourceEvent.preventDefault(),a.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(V),O&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,r)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.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)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=a.event.dx),this.vbar&&(t-=a.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=a.event.deltaY),this.vbar&&(t+=a.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,n=r+this._hbarTranslateMax;e=(o.constrain(a.event.x,r,n)-r)/(n-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(a.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,a=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,a),this.translateX=e,this.translateY=t,this.container.call(i.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 n=e/r;this.hbar.call(i.setTranslate,e+n*this._hbarTranslateMax,t)}if(this.vbar){var l=t/a;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},"kca9bvt+":e=>{"use strict";e.exports={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"}}},SWM1uxTh:e=>{"use strict";e.exports={axisRefDescription:function(e,t,r){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,"("+r+"). 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",r,"of the domain of the","second",e,"axis."].join(" ")}}},nfwe4Djo:(e,exports)=>{"use strict";exports.xmlns="http://www.w3.org/2000/xmlns/",exports.svg="http://www.w3.org/2000/svg",exports.xlink="http://www.w3.org/1999/xlink",exports.svgAttrs={xmlns:exports.svg,"xmlns:xlink":exports.xlink}},RPvPhHjM:(e,exports,t)=>{"use strict";exports.version=t("dH7CFEq5").version,t("3WWdj8FQ"),t("3nJE6OHK");for(var r=t("R5um7Wku"),a=exports.register=r.register,n=t("rDEaHUTK"),i=Object.keys(n),o=0;o{"use strict";e.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},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:"plotly-logomark"}}},NLf4w7dD:e=>{"use strict";e.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each((function(e){e.regl&&e.regl.clear({color:!0,depth:!0})}))}},"6NEikfh9":(e,t,r)=>{"use strict";var a=r("CVZcSkmN").EventEmitter,n={init:function(e){if(e._ev instanceof a)return e;var t=new a,r=new a;return e._ev=t,e._internalEv=r,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=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(a,n){"undefined"!=typeof jQuery&&jQuery(e).trigger(a,n),t.emit(a,n),r.emit(a,n)},e},triggerHandler:function(e,t,r){var a,n;"undefined"!=typeof jQuery&&(a=jQuery(e).triggerHandler(t,r));var i=e._ev;if(!i)return a;var o,l=i._events[t];if(!l)return a;function s(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[r]))):e.apply(i,[r])}for(l=Array.isArray(l)?l:[l],o=0;o{"use strict";var a=r("LnvsDkyo"),n="data-savedcursor";e.exports=function(e,t){var r=e.attr(n);if(t){if(!r){for(var i=(e.attr("class")||"").split(" "),o=0;o{"use strict";var a=r("mi7jljcm").dot,n=r("46lPXjlm").BADNUM,i=e.exports={};i.tester=function(e){var t,r=e.slice(),a=r[0][0],i=a,o=r[0][1],l=o;for(r.push(r[0]),t=1;ti||c===n||cl)&&(!t||!s(e))}:function(e,t){var s=e[0],c=e[1];if(s===n||si||c===n||cl)return!1;var d,u,f,h,p,v=r.length,g=r[0][0],m=r[0][1],y=0;for(d=1;dMath.max(u,g)||c>Math.max(f,m)))if(cd||Math.abs(a(o,f))>n)return!0;return!1},i.filter=function(e,t){var r=[e[0]],a=0,n=0;function o(o){e.push(o);var l=r.length,s=a;r.splice(n+1);for(var c=s+1;c1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},nA340hA2:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("OrkhUD6z").dfltConfig;var i={add:function(e,t,r,a,i){var o,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,o),e.undoQueue.index+=1):o=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(r),o.redo.calls.push(a),o.redo.args.push(i)),e.undoQueue.queue.length>n.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r{"use strict";e.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},"7k8rh0sJ":(e,exports,t)=>{"use strict";var r=t("Lou4tdh8"),a=t("0Ft3SWJB"),n=a.strTranslate,i=t("nfwe4Djo"),o=t("kca9bvt+").LINE_SPACING,l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;exports.convertToTspans=function(e,t,p){var A=e.text(),M=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&A.match(l),z=r.select(e.node().parentNode);if(!z.empty()){var O=e.attr("class")?e.attr("class").split(" ")[0]:"text";return O+="-math",z.selectAll("svg."+O).remove(),z.selectAll("g."+O+"-group").remove(),e.style("display",null).attr({"data-unformatted":A,"data-math":"N"}),M?(t&&t._promises||[]).push(new Promise((function(t){e.style("display","none");var i=parseInt(e.node().style.fontSize,10),o={fontSize:i};!function(e,t,n){var i,o,l,d;MathJax.Hub.Queue((function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),(function(){var n="math-output-"+a.randstr({},64);return d=r.select("body").append("div").attr({id:n}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(s,"\\lt ").replace(c,"\\gt ")),MathJax.Hub.Typeset(d.node())}),(function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(d.select(".MathJax_SVG").empty()||!d.select("svg").node())a.log("There was an error in the tex syntax.",e),n();else{var o=d.select("svg").node().getBoundingClientRect();n(d.select(".MathJax_SVG"),t,o)}if(d.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)}))}(M[2],o,(function(r,a,o){z.selectAll("svg."+O).remove(),z.selectAll("g."+O+"-group").remove();var l=r&&r.select("svg");if(!l||!l.node())return C(),void t();var s=z.append("g").classed(O+"-group",!0).attr({"pointer-events":"none","data-unformatted":A,"data-math":"Y"});s.node().appendChild(l.node()),a&&a.node()&&l.node().insertBefore(a.node().cloneNode(!0),l.node().firstChild);var c=o.width,d=o.height;l.attr({class:O,height:d,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.node().style.fill||"black",f=l.select("g");f.attr({fill:u,stroke:u});var h=f.node().getBoundingClientRect(),v=h.width,g=h.height;(v>c||g>d)&&(l.style("overflow","hidden"),v=(h=l.node().getBoundingClientRect()).width,g=h.height);var m=+e.attr("x"),y=+e.attr("y"),x=-(i||e.node().getBoundingClientRect().height)/4;if("y"===O[0])s.attr({transform:"rotate("+[-90,m,y]+")"+n(-v/2,x-g/2)});else if("l"===O[0])y=x-g/2;else if("a"===O[0]&&0!==O.indexOf("atitle"))m=0,y=x;else{var b=e.attr("text-anchor");m-=v*("middle"===b?.5:"end"===b?1:0),y=y+x-g/2}l.attr({x:m,y}),p&&p.call(e,s),t(s)}))}))):C(),e}function C(){z.empty()||(O=e.attr("class")+"-math",z.select("svg."+O).remove()),e.text("").style("white-space","pre");var t=function(e,t){t=t.replace(v," ");var n,l=!1,s=[],c=-1;function p(){c++;var t=document.createElementNS(i.svg,"tspan");r.select(t).attr({class:"line",dy:c*o+"em"}),e.appendChild(t),n=t;var a=s;if(s=[{node:t}],a.length>1)for(var l=1;l doesnt match end tag <"+e+">. Pretending it did match.",t),n=s[s.length-1].node}else a.log("Ignoring unexpected end tag .",t)}y.test(t)?p():(n=e,s=[{node:e}]);for(var O=t.split(g),C=0;C|>|>)/g;var d={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"},u={sub:"0.3em",sup:"-0.6em"},f={sub:"-0.21em",sup:"0.42em"},h="​",p=["http:","https:","mailto:","",void 0,":"],v=exports.NEWLINES=/(\r\n?|\n)/g,g=/(<[^<>]*>)/,m=/<(\/?)([^ >]*)(\s+(.*))?>/i,y=//i;exports.BR_TAG_ALL=//gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,b=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,w=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var r=e.match(t),a=r&&(r[3]||r[4]);return a&&S(a)}var T=/(^|;)\s*color:/;exports.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,a=void 0!==t.allowedTags?t.allowedTags:["br"],n="...".length,i=e.split(g),o=[],l="",s=0,c=0;cn?o.push(d.substr(0,p-n)+"..."):o.push(d.substr(0,p));break}l=""}}return o.join("")};var A={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},M=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function S(e){return e.replace(M,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):A[t])||e}))}function L(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),a=document.createElement("a");r.href=e,a.href=t;var n=r.protocol,i=a.protocol;return-1!==p.indexOf(n)&&-1!==p.indexOf(i)?t:""}function z(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),d=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-n.height}:"middle"===s?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-n.width}:"center"===l?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-d.left,t=i()-d.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}exports.convertEntities=S,exports.sanitizeHTML=function(e){e=e.replace(v," ");for(var t=document.createElement("p"),a=t,n=[],i=e.split(g),o=0;o{"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},tpTRgu4b:e=>{"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},"/uZtpOd0":(e,t,r)=>{"use strict";var a=r("R5um7Wku");e.exports=function(e){for(var t,r,n=a.layoutArrayContainers,i=a.layoutArrayRegexes,o=e.split("[")[0],l=0;l{"use strict";var r=t("yAcToaBS"),a=t("UACaFdP/"),n=t("R5um7Wku"),i=t("0Ft3SWJB"),o=t("8MlMO9wt"),l=t("nXHY852p"),s=t("/oRevOrA"),c=l.cleanId,d=l.getFromTrace,u=n.traceIs;function f(e,t){var r=e[t],a=t.charAt(0);r&&"paper"!==r&&(e[t]=c(r,a,!0))}function h(e){function t(t,r){var a=e[t],n=e.title&&e.title[r];a&&!n&&(e.title||(e.title={}),e.title[r]=e[t],delete e[t])}e&&("string"!=typeof e.title&&"number"!=typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function p(e){if(!i.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"==typeof t||"number"==typeof t)&&String(t)}function v(e,t,r,a){if(r&&!a)return e;if(a&&!r)return t;if(!e.trim())return t;if(!t.trim())return e;var n,i=Math.min(e.length,t.length);for(n=0;n0&&i.log("Clearing previous rejected promises from queue."),e._promises=[]},exports.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(o.subplotsRegistry.cartesian||{}).attrRegex,l=(o.subplotsRegistry.polar||{}).attrRegex,d=(o.subplotsRegistry.ternary||{}).attrRegex,u=(o.subplotsRegistry.gl3d||{}).attrRegex,p=Object.keys(e);for(t=0;t3?(F.x=1.02,F.xanchor="left"):F.x<-2&&(F.x=-.02,F.xanchor="right"),F.y>3?(F.y=1.02,F.yanchor="bottom"):F.y<-2&&(F.y=-.02,F.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),s.clean(e),e.template&&e.template.layout&&exports.cleanLayout(e.template.layout),e},exports.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}exports.hasParent=function(e,t){for(var r=x(t);r;){if(r in e)return!0;r=x(r)}return!1};var b=["x","y","z"];exports.clearAxisTypes=function(e,t,r){for(var a=0;a{"use strict";var r=t("rQ2OQY7Q");exports._doPlot=r._doPlot,exports.newPlot=r.newPlot,exports.restyle=r.restyle,exports.relayout=r.relayout,exports.redraw=r.redraw,exports.update=r.update,exports._guiRestyle=r._guiRestyle,exports._guiRelayout=r._guiRelayout,exports._guiUpdate=r._guiUpdate,exports._storeDirectGUIEdit=r._storeDirectGUIEdit,exports.react=r.react,exports.extendTraces=r.extendTraces,exports.prependTraces=r.prependTraces,exports.addTraces=r.addTraces,exports.deleteTraces=r.deleteTraces,exports.moveTraces=r.moveTraces,exports.purge=r.purge,exports.addFrames=r.addFrames,exports.deleteFrames=r.deleteFrames,exports.animate=r.animate,exports.setPlotConfig=r.setPlotConfig,exports.toImage=t("wIoo18WF"),exports.validate=t("TcVG9fhs"),exports.downloadImage=t("FUuDuW8n");var a=t("X7w0xA8Y");exports.makeTemplate=a.makeTemplate,exports.validateTemplate=a.validateTemplate},kgrieRGX:(e,exports,t)=>{"use strict";var r=t("btK4Orgn"),a=t("lHLBDM7v"),n=t("jGt2471r"),i=t("WoUvVyRa").sorterAsc,o=t("R5um7Wku");exports.containerArrayMatch=t("/uZtpOd0");var l=exports.isAddVal=function(e){return"add"===e||r(e)},s=exports.isRemoveVal=function(e){return null===e||"remove"===e};exports.applyContainerArrayChanges=function(e,t,r,c,d){var u=t.astr,f=o.getComponentMethod(u,"supplyLayoutDefaults"),h=o.getComponentMethod(u,"draw"),p=o.getComponentMethod(u,"drawOne"),v=c.replot||c.recalc||f===a||h===a,g=e.layout,m=e._fullLayout;if(r[""]){Object.keys(r).length>1&&n.warn("Full array edits are incompatible with other edits",u);var y=r[""][""];if(s(y))t.set(null);else{if(!Array.isArray(y))return n.warn("Unrecognized full array edit value",u,y),!0;t.set(y)}return!v&&(f(g,m),h(e),!0)}var x,b,_,w,k,T,A,M,S=Object.keys(r).map(Number).sort(i),L=t.get(),z=L||[],O=d(m,u).get(),C=[],F=-1,P=z.length;for(x=0;xz.length-(A?0:1))n.warn("index out of range",u,_);else if(void 0!==T)k.length>1&&n.warn("Insertion & removal are incompatible with edits to the same index.",u,_),s(T)?C.push(_):A?("add"===T&&(T={}),z.splice(_,0,T),O&&O.splice(_,0,{})):n.warn("Unrecognized full object edit value",u,_,T),-1===F&&(F=_);else for(b=0;b=0;x--)z.splice(C[x],1),O&&O.splice(C[x],1);if(z.length?L||t.set(z):t.set(null),v)return!1;if(f(g,m),p!==a){var I;if(-1===F)I=S;else{for(P=Math.max(z.length,P),I=[],x=0;x=F);x++)I.push(_);for(x=F;x{"use strict";var r=t("Lou4tdh8"),a=t("yAcToaBS"),n=t("7rWsZTkl"),i=t("0Ft3SWJB"),o=i.nestedProperty,l=t("6NEikfh9"),s=t("nA340hA2"),c=t("R5um7Wku"),d=t("dbVsU3X7"),u=t("8MlMO9wt"),f=t("4JfnfFRI"),h=t("+ELfTWmT"),p=t("/oRevOrA"),v=t("Fi1vqbI+").initInteractions,g=t("nfwe4Djo"),m=t("TXQQh07e").clearSelect,y=t("OrkhUD6z").dfltConfig,x=t("kgrieRGX"),b=t("Hti1TomT"),_=t("PM37TqjZ"),w=t("Oq1Cqb7p"),k=t("Vq8+Ip3e").AX_NAME_PATTERN,T=0;function A(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function M(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){i.error(e)}}function S(e,t){M(e,p.combine(t,"white"))}function L(e,t){if(!e._context){e._context=i.extendDeep({},y);var a=r.select("base");e._context._baseUrl=a.size()&&a.attr("href")?window.location.href.split("#")[0]:""}var o,l,s,c=e._context;if(t){for(l=Object.keys(t),o=0;o=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,a+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function C(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),O(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&O(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function F(e,t,r,n,l){!function(e,t,r,a){var n=i.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!i.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var o in O(e,r,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==r.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(n&&(!(o in a)||!Array.isArray(a[o])||a[o].length!==t[o].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")}}(e,t,r,n);for(var s=function(e,t,r,n){var l,s,c,d,u,f=i.isPlainObject(n),h=[];for(var p in Array.isArray(r)||(r=[r]),r=z(r,e.data.length-1),t)for(var v=0;v-1&&-1===r.indexOf("grouptitlefont")?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(t,r){e[r]=e[t],delete e[t]}}function N(e,t,r){e=i.getGraphDiv(e),b.clearPromiseQueue(e);var a={};if("string"==typeof t)a[t]=r;else{if(!i.isPlainObject(t))return i.warn("Relayout fail.",t,r),Promise.reject();a=i.extendFlat({},t)}Object.keys(a).length&&(e.changed=!0);var n=q(e,a),o=n.flags;o.calc&&(e.calcdata=void 0);var l=[u.previousPromises];o.layoutReplot?l.push(_.layoutReplot):Object.keys(a).length&&(H(e,o,n)||u.supplyDefaults(e),o.legend&&l.push(_.doLegend),o.layoutstyle&&l.push(_.layoutStyles),o.axrange&&W(l,n.rangesAltered),o.ticks&&l.push(_.doTicksRelayout),o.modebar&&l.push(_.doModeBar),o.camera&&l.push(_.doCamera),o.colorbars&&l.push(_.doColorBars),l.push(A)),l.push(u.rehover,u.redrag),s.add(e,N,[e,n.undoit],N,[e,n.redoit]);var c=i.syncOrAsync(l,e);return c&&c.then||(c=Promise.resolve(e)),c.then((function(){return e.emit("plotly_relayout",n.eventData),e}))}function H(e,t,r){var a=e._fullLayout;if(!t.axrange)return!1;for(var n in t)if("axrange"!==n&&t[n])return!1;for(var i in r.rangesAltered){var o=f.id2name(i),l=e.layout[o],s=a[o];if(s.autorange=l.autorange,l.range&&(s.range=l.range.slice()),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var d=a[f.id2name(c)];d.autorange=s.autorange,d.range=s.range.slice(),d._input.range=s.range.slice()}}return!0}function W(e,t){var r=t?function(e){var r=[],a=!0;for(var n in t){var i=f.getFromId(e,n);if(r.push(n),-1!==(i.ticklabelposition||"").indexOf("inside")&&i._anchorAxis&&r.push(i._anchorAxis._id),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(a=!1)}return f.draw(e,r,{skipTitle:a})}:function(e){return f.draw(e,"redraw")};e.push(m,_.doAutoRangeAndConstraints,r,_.drawData,_.finalDraw)}var V=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,G=/^[xyz]axis[0-9]*\.autorange$/,U=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function q(e,t){var r,a,n,l=e.layout,s=e._fullLayout,u=s._guiEditing,h=R(s._preGUI,u),p=Object.keys(t),v=f.list(e),g=i.extendDeepAll({},t),m={};for(B(t),p=Object.keys(t),a=0;a0&&"string"!=typeof P.parts[E];)E--;var j=P.parts[E],N=P.parts[E-1]+"."+j,H=P.parts.slice(0,E).join("."),W=o(e.layout,H).get(),q=o(s,H).get(),X=P.get();if(void 0!==I){M[F]=I,S[F]="reverse"===j?I:D(X);var J=d.getLayoutValObject(s,P.parts);if(J&&J.impliedEdits&&null!==I)for(var Y in J.impliedEdits)L(i.relativeAttr(F,Y),J.impliedEdits[Y]);if(-1!==["width","height"].indexOf(F))if(I){L("autosize",null);var Q="height"===F?"width":"height";L(Q,s[Q])}else s[F]=e._initialAutoSize[F];else if("autosize"===F)L("width",I?null:s.width),L("height",I?null:s.height);else if(N.match(V))C(N),o(s,H+"._inputRange").set(null);else if(N.match(G)){C(N),o(s,H+"._inputRange").set(null);var K=o(s,H).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else N.match(U)&&o(s,H+"._inputDomain").set(null);if("type"===j){z=W;var ee="linear"===q.type&&"log"===I,te="log"===q.type&&"linear"===I;if(ee||te){if(z&&z.range)if(q.autorange)ee&&(z.range=z.range[1]>z.range[0]?[1,2]:[2,1]);else{var re=z.range[0],ae=z.range[1];ee?(re<=0&&ae<=0&&L(H+".autorange",!0),re<=0?re=ae/1e6:ae<=0&&(ae=re/1e6),L(H+".range[0]",Math.log(re)/Math.LN10),L(H+".range[1]",Math.log(ae)/Math.LN10)):(L(H+".range[0]",Math.pow(10,re)),L(H+".range[1]",Math.pow(10,ae)))}else L(H+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[P.parts[0]]&&"radialaxis"===P.parts[1]&&delete s[P.parts[0]]._subplot.viewInitial["radialaxis.range"],c.getComponentMethod("annotations","convertCoords")(e,q,I,L),c.getComponentMethod("images","convertCoords")(e,q,I,L)}else L(H+".autorange",!0),L(H+".range",null);o(s,H+"._inputRange").set(null)}else if(j.match(k)){var ne=o(s,F).get(),ie=(I||{}).type;ie&&"-"!==ie||(ie="linear"),c.getComponentMethod("annotations","convertCoords")(e,ne,ie,L),c.getComponentMethod("images","convertCoords")(e,ne,ie,L)}var oe=x.containerArrayMatch(F);if(oe){r=oe.array,a=oe.index;var le=oe.property,se=J||{editType:"calc"};""!==a&&""===le&&(x.isAddVal(I)?S[F]=null:x.isRemoveVal(I)?S[F]=(o(l,r).get()||[])[a]:i.warn("unrecognized full object value",t)),w.update(A,se),m[r]||(m[r]={});var ce=m[r][a];ce||(ce=m[r][a]={}),ce[le]=I,delete t[F]}else"reverse"===j?(W.range?W.range.reverse():(L(H+".autorange",!0),W.range=[1,0]),q.autorange?A.calc=!0:A.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===F&&("lasso"===I||"select"===I)&&"lasso"!==X&&"select"!==X||s._has("gl2d")?A.plot=!0:J?w.update(A,J):A.calc=!0,P.set(I))}}for(r in m){x.applyContainerArrayChanges(e,h(l,r),m[r],A,h)||(A.plot=!0)}for(var de in O){var ue=(z=f.getFromId(e,de))&&z._constraintGroup;if(ue)for(var fe in A.calc=!0,ue)O[fe]||(f.getFromId(e,fe)._constraintShrinkable=!0)}return(Z(e)||t.height||t.width)&&(A.plot=!0),(A.plot||A.calc)&&(A.layoutReplot=!0),{flags:A,rangesAltered:O,undoit:S,redoit:M,eventData:g}}function Z(e){var t=e._fullLayout,r=t.width,a=t.height;return e.layout.autosize&&u.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==a}function X(e,t,r,a){e=i.getGraphDiv(e),b.clearPromiseQueue(e),i.isPlainObject(t)||(t={}),i.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var n=b.coerceTraceIndices(e,a),o=j(e,i.extendFlat({},t),n),l=o.flags,c=q(e,i.extendFlat({},r)),d=c.flags;(l.calc||d.calc)&&(e.calcdata=void 0),l.clearAxisTypes&&b.clearAxisTypes(e,n,r);var f=[];d.layoutReplot?f.push(_.layoutReplot):l.fullReplot?f.push(exports._doPlot):(f.push(u.previousPromises),H(e,d,c)||u.supplyDefaults(e),l.style&&f.push(_.doTraceStyle),(l.colorbars||d.colorbars)&&f.push(_.doColorBars),d.legend&&f.push(_.doLegend),d.layoutstyle&&f.push(_.layoutStyles),d.axrange&&W(f,c.rangesAltered),d.ticks&&f.push(_.doTicksRelayout),d.modebar&&f.push(_.doModeBar),d.camera&&f.push(_.doCamera),f.push(A)),f.push(u.rehover,u.redrag),s.add(e,X,[e,o.undoit,c.undoit,o.traces],X,[e,o.redoit,c.redoit,o.traces]);var h=i.syncOrAsync(f,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:o.eventData,layout:c.eventData}),e}))}function J(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var Y=[{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"}],Q=[{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 K(e,t){for(var r=0;r1;)if(a.pop(),void 0!==(r=o(t,a.join(".")+".uirevision").get()))return r;return t.uirevision}function te(e,t){for(var r=0;r=n.length?n[0]:n[e]:n}function s(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===a._frameWaitingCnt&&(a._frameWaitingCnt=0),new Promise((function(o,d){function f(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var t=a._currentFrame=a._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,a._lastFrameAt=Date.now(),a._timeToNext=t.frameOpts.duration,u.transition(e,t.frame.data,t.frame.layout,b.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function h(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var t=function(){a._animationRaf=window.requestAnimationFrame(t),Date.now()-a._lastFrameAt>a._timeToNext&&f()};t()}var p,v,g=0;function m(e){return Array.isArray(n)?g>=n.length?e.transitionOpts=n[g]:e.transitionOpts=n[0]:e.transitionOpts=n,g++,e}var y=[],x=null==t,_=Array.isArray(t);if(!x&&!_&&i.isPlainObject(t))y.push({type:"object",data:m(i.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&TT)&&A.push(v);y=A}}y.length>0?function(t){if(0!==t.length){for(var n=0;n=0;a--)if(i.isPlainObject(t[a])){var v=t[a].name,g=(d[v]||p[v]||{}).name,m=t[a].name,y=d[g]||p[g];g&&m&&"number"==typeof m&&y&&T<5&&(T++,i.warn('addFrames: overwriting frame "'+(d[g]||p[g]).name+'" with a frame whose name of type "number" also equates to "'+g+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===T&&i.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.")),p[v]={name:v},h.push({frame:u.supplyFrameDefaults(t[a]),index:r&&void 0!==r[a]&&null!==r[a]?r[a]:f+a})}h.sort((function(e,t){return e.index>t.index?-1:e.index=0;a--){if("number"==typeof(n=h[a].frame).name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;d[n.name="frame "+e._transitionData._counter++];);if(d[n.name]){for(o=0;o=0;r--)a=t[r],o.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var c=u.modifyFrames,d=u.modifyFrames,f=[e,l],h=[e,o];return s&&s.add(e,c,f,d,h),u.modifyFrames(e,o)},exports.addTraces=function e(t,r,a){t=i.getGraphDiv(t);var n,o,l=[],c=exports.deleteTraces,d=e,u=[t,l],f=[t,r];for(function(e,t,r){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),a=0;a=0&&r=0&&r{"use strict";var r=t("R5um7Wku"),a=t("0Ft3SWJB"),n=t("FDg8C/At"),i=t("JEbHibKP"),o=t("IejtdMW5"),l=t("HlG8UEh+"),s=t("OrkhUD6z").configAttributes,c=t("Oq1Cqb7p"),d=a.extendDeepAll,u=a.isPlainObject,f=a.isArrayOrTypedArray,h=a.nestedProperty,p=a.valObjectMeta,v="_isSubplotObj",g="_isLinkedToArray",m="_deprecated",y=[v,g,"_arrayAttrRegexps",m];function x(e,t,r){if(!e)return!1;if(e._isLinkedToArray)if(b(t[r]))r++;else if(r=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!b(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function b(e){return e===Math.round(e)&&e>=0}function _(){var e,t,a={};for(e in d(a,i),r.subplotsRegistry){if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n=s.length)return!1;i=(a=(r.transformsRegistry[s[c].type]||{}).attributes)&&a[t[2]],l=3}else{var d=e._module;if(d||(d=(r.modules[e.type||n.type.dflt]||{})._module),!d)return!1;if(!(i=(a=d.attributes)&&a[o])){var u=d.basePlotModule;u&&u.attributes&&(i=u.attributes[o])}i||(i=n[o])}return x(i,t,l)},exports.getLayoutValObject=function(e,t){var a=function(e,t){var a,n,o,l,s=e._basePlotModules;if(s){var c;for(a=0;a{"use strict";var r=t("Lou4tdh8"),a=t("R5um7Wku"),n=t("8MlMO9wt"),i=t("0Ft3SWJB"),o=t("NLf4w7dD"),l=t("/oRevOrA"),s=t("+ELfTWmT"),c=t("xjYqbXs+"),d=t("ElYFxeqq"),u=t("4JfnfFRI"),f=t("kca9bvt+"),h=t("6hRdzyd8"),p=h.enforce,v=h.clean,g=t("IaNOhRG8").doAutoRange,m="start",y="middle",x="end";function b(e,t,r){for(var a=0;a=e[1]||n[1]<=e[0])&&(i[0]t[0]))return!0}return!1}function _(e){var t,a,o,c,h,p,v=e._fullLayout,g=v._size,m=g.p,y=u.list(e,"",!0);if(v._paperdiv.style({width:e._context.responsive&&v.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":v.width+"px",height:e._context.responsive&&v.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":v.height+"px"}).selectAll(".main-svg").call(s.setSize,v.width,v.height),e._context.setBackground(e,v.paper_bgcolor),exports.drawMainTitle(e),d.manage(e),!v._has("cartesian"))return n.previousPromises(e);function x(e,t,r){var a=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-m-a:t._offset+t._length+m+a:g.t+g.h*(1-(e.position||0))+a%1:t?"right"===r?t._offset+t._length+m+a:t._offset-m-a:g.l+g.w*(e.position||0)+a%1}for(t=0;t{"use strict";var r=t("0Ft3SWJB"),a=r.isPlainObject,n=t("dbVsU3X7"),i=t("8MlMO9wt"),o=t("FDg8C/At"),l=t("A5P9b9BX"),s=t("OrkhUD6z").dfltConfig;function c(e,t){e=r.extendDeep({},e);var n,i,o=Object.keys(e).sort();function s(t,r,n){if(a(r)&&a(t))c(t,r);else if(Array.isArray(r)&&Array.isArray(t)){var o=l.arrayTemplater({_template:e},n);for(i=0;ik?u.push({code:"unused",traceType:y,templateCount:w,dataCount:k}):k>w&&u.push({code:"reused",traceType:y,templateCount:w,dataCount:k})}}else u.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=p(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&v(i)&&e(i,o)}}({data:h,layout:f},""),u.length)return u.map(g)}},wIoo18WF:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("rQ2OQY7Q"),i=r("8MlMO9wt"),o=r("0Ft3SWJB"),l=r("/1xV6pOg"),s=r("qYUMvhEP"),c=r("P1XCdGWS"),d=r("dH7CFEq5").version,u={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(" ")}};e.exports=function(e,t){var r,f,h,p;function v(e){return!(e in t)||o.validate(t[e],u[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],f=e.layout||{},h=e.config||{},p={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),f=o.extendDeep({},e.layout),h=e._context,p=e._fullLayout||{}),!v("width")&&null!==t.width||!v("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!v("format"))throw new Error("Export format is not "+o.join2(u.format.values,", "," or ")+".");var g={};function m(e,r){return o.coerce(t,g,u,e,r)}var y=m("format"),x=m("width"),b=m("height"),_=m("scale"),w=m("setBackground"),k=m("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var A=o.extendFlat({},f);x?A.width=x:null===t.width&&a(p.width)&&(A.width=p.width),b?A.height=b:null===t.height&&a(p.height)&&(A.height=p.height);var M=o.extendFlat({},h,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=l.getRedrawFunc(T);function L(){return new Promise((function(e){setTimeout(e,l.getDelay(T._fullLayout))}))}function z(){return new Promise((function(e,t){var r=s(T,y,_),a=T._fullLayout.width,u=T._fullLayout.height;function f(){n.purge(T),document.body.removeChild(T)}if("full-json"===y){var h=i.graphJson(T,!1,"keepdata","object",!0,!0);return h.version=d,h=JSON.stringify(h),f(),e(k?h:l.encodeJSON(h))}if(f(),"svg"===y)return e(k?r:l.encodeSVG(r));var p=document.createElement("canvas");p.id=o.randstr(),c({format:y,width:a,height:u,scale:_,canvas:p,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){n.newPlot(T,r,A,M).then(S).then(L).then(z).then((function(t){e(function(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},TcVG9fhs:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("8MlMO9wt"),i=r("dbVsU3X7"),o=r("OrkhUD6z").dfltConfig,l=a.isPlainObject,s=Array.isArray,c=a.isArrayOrTypedArray;function d(e,t,r,n,i,o){o=o||[];for(var u=Object.keys(e),f=0;fx.length&&n.push(p("unused",i,m.concat(x.length)));var A,M,S,L,z,O=x.length,C=Array.isArray(T);if(C&&(O=Math.min(O,T.length)),2===b.dimensions)for(M=0;Mx[M].length&&n.push(p("unused",i,m.concat(M,x[M].length)));var F=x[M].length;for(A=0;A<(C?Math.min(F,T[M].length):F);A++)S=C?T[M][A]:T,L=y[M][A],z=x[M][A],a.validate(L,S)?z!==L&&z!==+L&&n.push(p("dynamic",i,m.concat(M,A),L,z)):n.push(p("value",i,m.concat(M,A),L))}else n.push(p("array",i,m.concat(M),y[M]));else for(M=0;M1&&h.push(p("object","layout"))),n.supplyDefaults(v);for(var g=v._fullData,m=r.length,y=0;y{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=n.dateTime2ms,o=n.incrementMonth,l=r("46lPXjlm").ONEAVGMONTH;e.exports=function(e,t,r,n){if("date"!==t.type)return{vals:n};var s=e[r+"periodalignment"];if(!s)return{vals:n};var c,d=e[r+"period"];if(a(d)){if((d=+d)<=0)return{vals:n}}else if("string"==typeof d&&"M"===d.charAt(0)){var u=+d.substring(1);if(!(u>0&&Math.round(u)===u))return{vals:n};c=u}for(var f=t.calendar,h="start"===s,p="end"===s,v=e[r+"period0"],g=i(v,f)||0,m=[],y=[],x=[],b=n.length,_=0;_A;)T=o(T,-c,f);for(;T<=A;)T=o(T,c,f);k=o(T,-c,f)}else{for(T=g+(w=Math.round((A-g)/d))*d;T>A;)T-=d;for(;T<=A;)T+=d;k=T-d}m[_]=h?k:p?T:(k+T)/2,y[_]=k,x[_]=T}return{vals:m,starts:y,ends:x}}},"zWdj+er5":e=>{"use strict";e.exports={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(" ")}}},IaNOhRG8:(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("yAcToaBS"),i=r("0Ft3SWJB"),o=r("46lPXjlm").FP_SAFE,l=r("R5um7Wku"),s=r("+ELfTWmT"),c=r("nXHY852p"),d=c.getFromId,u=c.isLinked;function f(e,t){var r,a,n=[],o=e._fullLayout,l=p(o,t,0),s=p(o,t,1),c=v(e,t),d=c.min,u=c.max;if(0===d.length||0===u.length)return i.simpleMap(t.range,t.r2l);var f=d[0].val,g=u[0].val;for(r=1;r0&&((k=L-l(x)-s(b))>z?T/k>O&&(_=x,w=b,O=T/k):T/L>O&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},O=T/L));if(f===g){var C=f-1,F=f+1;if(M)if(0===f)n=[0,1];else{var P=(f>0?u:d).reduce((function(e,t){return Math.max(e,s(t))}),0),I=f/(1-Math.min(.5,P/L));n=f>0?[0,I]:[I,0]}else n=S?[Math.max(0,C),Math.max(1,F)]:[C,F]}else M?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):S&&(_.val-O*l(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),O=(w.val-_.val-h(t,x.val,b.val))/(L-l(_)-s(w)),n=[_.val-O*l(_),w.val+O*s(w)];return m&&n.reverse(),i.simpleMap(n,t.l2r||Number)}function h(e,t,r){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),i=0;i0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),L=A(r.vpadplus||r.vpad),z=A(r.vpadminus||r.vpad);if(!k){if(f=1/0,h=-1/0,w)for(a=0;a0&&(f=i),i>h&&i-o&&(f=i),i>h&&i=F;a--)C(a);return{min:p,max:v,opts:r}},concatExtremes:v};function v(e,t,r){var a,n,i,o=t._id,l=e._fullData,s=e._fullLayout,c=[],u=[];function f(e,t){for(a=0;a=r&&(c.extrapad||!o)){l=!1;break}n(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var d=i&&0===t;e.push({val:t,pad:d?0:r,extrapad:!d&&o})}}function x(e){return n(e)&&Math.abs(e)=t}},"4JfnfFRI":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("yAcToaBS"),i=r("8MlMO9wt"),o=r("R5um7Wku"),l=r("0Ft3SWJB"),s=l.strTranslate,c=r("7k8rh0sJ"),d=r("xjYqbXs+"),u=r("/oRevOrA"),f=r("+ELfTWmT"),h=r("zSF5pjBO"),p=r("EW1eGdmB"),v=r("46lPXjlm"),g=v.ONEMAXYEAR,m=v.ONEAVGYEAR,y=v.ONEMINYEAR,x=v.ONEMAXQUARTER,b=v.ONEAVGQUARTER,_=v.ONEMINQUARTER,w=v.ONEMAXMONTH,k=v.ONEAVGMONTH,T=v.ONEMINMONTH,A=v.ONEWEEK,M=v.ONEDAY,S=M/2,L=v.ONEHOUR,z=v.ONEMIN,O=v.ONESEC,C=v.MINUS_SIGN,F=v.BADNUM,P={K:"zeroline"},I={K:"gridline",L:"path"},D={K:"tick",L:"path"},R={K:"tick",L:"text"},E=r("kca9bvt+"),j=E.MID_SHIFT,B=E.CAP_SHIFT,N=E.LINE_SPACING,H=E.OPPOSITE_SIDE,W=e.exports={};W.setConvert=r("R+8I7jNJ");var V=r("qv1FlERR"),G=r("nXHY852p"),U=G.idSort,q=G.isLinked;W.id2name=G.id2name,W.name2id=G.name2id,W.cleanId=G.cleanId,W.list=G.list,W.listIds=G.listIds,W.getFromId=G.getFromId,W.getFromTrace=G.getFromTrace;var Z=r("IaNOhRG8");W.getAutoRange=Z.getAutoRange,W.findExtremes=Z.findExtremes;function X(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}W.coerceRef=function(e,t,r,a,n,i){var o=a.charAt(a.length-1),s=r._fullLayout._subplots[o+"axis"],c=a+"ref",d={};return n||(n=s[0]||("string"==typeof i?i:i[0])),i||(i=n),s=s.concat(s.map((function(e){return e+" domain"}))),d[c]={valType:"enumerated",values:s.concat(i?"string"==typeof i?[i]:i:[]),dflt:n},l.coerce(e,t,d,c)},W.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},W.coercePosition=function(e,t,r,a,n,i){var o,s;if("range"!==W.getRefType(a))o=l.ensureNumber,s=r(n,i);else{var c=W.getFromId(t,a);s=r(n,i=c.fraction2r(i)),o=c.cleanPos}e[n]=o(s)},W.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:W.getFromId(t,r).cleanPos)(e)},W.redrawComponents=function(e,t){t=t||W.listIds(e);var r=e._fullLayout;function a(a,n,i,l){for(var s=o.getComponentMethod(a,n),c={},d=0;d2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},W.saveRangeInitial=function(e,t){for(var r=W.list(e,"",!0),a=!1,n=0;n.3*f||d(a)||d(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));i.exactYears>o&&s%12==0?e=W.tickIncrement(e,"M6","reverse")+1.5*M:i.exactMonths>o?e=W.tickIncrement(e,"M1","reverse")+15.5*M:e-=S;var c=W.tickIncrement(e,r);if(c<=a)return c}return e}(y,e,m,c,i)),g=y,0;g<=d;)g=W.tickIncrement(g,m,!1,i);return{start:t.c2r(y,0,i),end:t.c2r(g,0,i),size:m,_dataSpan:d-c}},W.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var a,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(a=e.tickfont?l.bigFont(e.tickfont.size||12):15,i=e._length/a):(a="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/a,4,9)+1),"radialaxis"===e._name&&(i*=2)),"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,W.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(n(e.dtick)||"M"!==e.dtick.charAt(0))}var a=r(),i=W.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=L,o&&!a&&e.dticki&&u=o:p<=o;p=W.tickIncrement(p,e.dtick,s,e.calendar)){if(R++,e.rangebreaks&&!s){if(p=d)break}if(C.length>O||p===P)break;P=p;var E=!1;f&&p!==(0|p)&&(E=!0);var j={minor:E,value:p};z>1&&R%z&&(j.skipLabel=!0),C.push(j)}if(h&&function(e,t,r){for(var a=0;a0?(i=a-1,o=a):(i=a,o=a);var l,s=e[i].value,c=e[o].value,d=Math.abs(c-s),u=r||d,f=0;u>=y?f=d>=y&&d<=g?d:m:r===b&&u>=_?f=d>=_&&d<=x?d:b:u>=T?f=d>=T&&d<=w?d:k:r===A&&u>=A?f=A:u>=M?f=M:r===S&&u>=S?f=S:r===L&&u>=L&&(f=L),f>=d&&(f=d,l=!0);var h=n+f;if(t.rangebreaks&&f>0){for(var p=0,v=0;v<84;v++){var z=(v+.5)/84;t.maskBreaks(n*(1-z)+z*h)!==F&&p++}(f*=p/84)||(e[a].drop=!0),l&&d>A&&(f=d)}(f>0||0===a)&&(e[a].periodX=n+f/2)}}(C,e,e._definedDelta),e.rangebreaks){var B="y"===e._id.charAt(0),N=1;"auto"===e.tickmode&&(N=e.tickfont?e.tickfont.size:12);var H=NaN;for(I=C.length-1;I>-1;I--)if(C[I].drop)C.splice(I,1);else{C[I].value=Se(C[I].value,e);var V=e.c2p(C[I].value);(B?H>V-N:Hd||Ud&&(G.periodX=d),U10||"01-01"!==a.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=M&&i<=10||t>=15*M)e._tickround="d";else if(t>=z&&i<=16||t>=L)e._tickround="M";else if(t>=O&&i<=19||t>=z)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(n(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);n(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),d=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>d&&(ue(e.exponentformat)&&!fe(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ce(e,t,r){var a=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:a.size,font:a.family,fontColor:a.color}}W.autoTicks=function(e,t){var r;function a(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var i=2*t;if(i>m)t/=m,r=a(10),e.dtick="M"+12*le(t,r,ee);else if(i>k)t/=k,e.dtick="M"+le(t,1,te);else if(i>M){e.dtick=le(t,M,e._hasDayOfWeekBreaks?[1,2,7,14]:ae);var o=W.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else i>L?e.dtick=le(t,L,te):i>z?e.dtick=le(t,z,re):i>O?e.dtick=le(t,O,re):(r=a(10),e.dtick=le(t,r,ee))}else if("log"===e.type){e.tick0=0;var c=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var d=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/d,r=a(10),e.dtick="L"+le(t,r,ee)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Me(e)?(e.tick0=0,r=1,e.dtick=le(t,r,oe)):(e.tick0=0,r=a(10),e.dtick=le(t,r,ee));if(0===e.dtick&&(e.dtick=1),!n(e.dtick)&&"string"!=typeof e.dtick){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}},W.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(n(t))return l.increment(e,o*t);var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var d="D2"===t?ie:ne,u=e+.01*o,f=l.roundUp(l.mod(u,1),d,r);return Math.floor(u)+Math.log(a.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},W.tickFirst=function(e,t){var r=e.r2l||Number,i=l.simpleMap(e.range,r,void 0,void 0,t),o=i[1] ")}else e._prevDateHead=s,c+="
"+s;t.text=c}(e,o,r,c):"log"===d?function(e,t,r,a,i){var o=e.dtick,s=t.x,c=e.tickformat,d="string"==typeof o&&o.charAt(0);"never"===i&&(i="");a&&"L"!==d&&(o="L3",d="L");if(c||"L"===d)t.text=he(Math.pow(10,s),e,i,a);else if(n(o)||"D"===d&&l.mod(s+.01,1)<.1){var u=Math.round(s),f=Math.abs(u),h=e.exponentformat;"power"===h||ue(h)&&fe(u)?(t.text=0===u?1:1===u?"10":"10"+(u>1?"":C)+f+"",t.fontSize*=1.25):("e"===h||"E"===h)&&f>2?t.text="1"+h+(u>0?"+":C)+f:(t.text=he(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==d)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,v):"category"===d?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,o):"multicategory"===d?function(e,t,r){var a=Math.round(t.x),n=e._categories[a]||[],i=void 0===n[1]?"":String(n[1]),o=void 0===n[0]?"":String(n[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):Me(e)?function(e,t,r,a,n){if("radians"!==e.thetaunit||r)t.text=he(t.x,e,n,a);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function r(e,a){return t(a,0)?e:r(a,e%a)}function a(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}var n=a(e),i=e*n,o=Math.abs(r(i,n));return[Math.round(i/o),Math.round(n/o)]}(i);if(o[1]>=100)t.text=he(l.deg2rad(t.x),e,n,a);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["",o[0],"","⁄","",o[1],"","π"].join(""),s&&(t.text=C+t.text)}}}}(e,o,r,c,v):function(e,t,r,a,n){"never"===n?n="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide");t.text=he(t.x,e,n,a)}(e,o,0,c,v),a||(e.tickprefix&&!p(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!p(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var g=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};o.xbnd=[g(o.x-.5),g(o.x+e.dtick-.5)]}return o},W.hoverLabelText=function(e,t,r){r&&(e=l.extendFlat({},e,{hoverformat:r}));var a=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:void 0;if(void 0!==n&&n!==a)return W.hoverLabelText(e,a,r)+" - "+W.hoverLabelText(e,n,r);var i="log"===e.type&&a<=0,o=W.tickText(e,e.c2l(i?-a:a),"hover").text;return i?0===a?"0":C+o:o};var de=["f","p","n","μ","m","","k","M","G","T"];function ue(e){return"SI"===e||"B"===e}function fe(e){return e>14||e<-15}function he(e,t,r,a){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,d=W.getTickFormat(t),u=t.separatethousands;if(a){var f={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:n(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};se(f),o=(Number(f._tickround)||0)+4,c=f._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return t._numFormat(d)(e).replace(/-/g,C);var h,p=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))"+h+"
":"B"===s&&9===c?e+="B":ue(s)&&(e+=de[c/3+5]));return i?C+e:e}function pe(e,t){for(var r=[],a={},n=0;n1&&r=n.min&&e=0,i=d(e,t[1])<=0;return(r||n)&&(a||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t=o(n)))){r=a;break}break;case"log":for(t=0;t0?r.bottom-u:0,f)))),t.automargin){a={x:0,y:0,r:0,l:0,t:0,b:0};var h=[0,1];if("x"===p){if("b"===s?a[s]=t._depth:(a[s]=t._depth=Math.max(r.width>0?u-r.top:0,f),h.reverse()),r.width>0){var g=r.right-(t._offset+t._length);g>0&&(a.xr=1,a.r=g);var m=t._offset-r.left;m>0&&(a.xl=0,a.l=m)}}else if("l"===s?a[s]=t._depth=Math.max(r.height>0?u-r.left:0,f):(a[s]=t._depth=Math.max(r.height>0?r.right-u:0,f),h.reverse()),r.height>0){var y=r.bottom-(t._offset+t._length);y>0&&(a.yb=0,a.b=y);var x=t._offset-r.top;x>0&&(a.yt=1,a.t=x)}a[v]="free"===t.anchor?t.position:t._anchorAxis.domain[h[0]],t.title.text!==c._dfltTitle[p]&&(a[s]+=me(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((n={x:0,y:0,r:0,l:0,t:0,b:0})[d]=t.linewidth,t.mirror&&!0!==t.mirror&&(n[d]+=f),!0===t.mirror||"ticks"===t.mirror?n[v]=t._anchorAxis.domain[h[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(n[v]=[t._counterDomainMin,t._counterDomainMax][h[1]]))}Q&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,be(t),a),i.autoMargin(e,_e(t),n),i.autoMargin(e,we(t),l)})),r.skipTitle||Q&&"bottom"===t.side||J.push((function(){return function(e,t){var r,a=e._fullLayout,n=t._id,i=n.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+me(t);else{var l=Le(t);if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,u,h,p,v=W.getPxPosition(e,t);"x"===i?(u=t._offset+t._length/2,h="top"===t.side?v-r:v+r):(h=t._offset+t._length/2,u="right"===t.side?v+r:v-r,c={rotate:"-90",offset:0});if("multicategory"!==t.type){var g=t._selections[t._id+"tick"];if(p={selection:g,side:t.side},g&&g.node()&&g.node().parentNode){var m=f.getTranslate(g.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return d.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:a._dfltTitle[i],avoid:p,transform:c,attributes:{x:u,y:h,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(J)}}function K(e){var r=h+(e||"tick");return w[r]||(w[r]=function(e,t){var r,a,n,i;e._selections[t].size()?(r=1/0,a=-1/0,n=1/0,i=-1/0,e._selections[t].each((function(){var e=xe(this),t=f.bBox(e.node().parentNode);r=Math.min(r,t.top),a=Math.max(a,t.bottom),n=Math.min(n,t.left),i=Math.max(i,t.right)}))):(r=0,a=0,n=0,i=0);return{top:r,bottom:a,left:n,right:i,height:a-r,width:i-n}}(t,r)),w[r]}},W.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],a=e.side===r?1:-1,n=[-1,1,a,-a];return"inside"!==e.ticks==("x"===t)&&(n=n.map((function(e){return-e}))),e.side&&n.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),n},W.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},W.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},a=r("top"),n=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||n||a||i;if(!s&&!l)return[0,0];var c=e.side,d=s?(e.tickwidth||0)/2:0,u=3,f=e.tickfont?e.tickfont.size:12;(o||a)&&(d+=f*B,u+=(e.linewidth||0)/2);(n||i)&&(d+=(e.linewidth||0)/2,u+=3);l&&"top"===c&&(u-=f*(1-B));(n||a)&&(d=-d);"bottom"!==c&&"right"!==c||(u=-u);return[s?d:0,l?u:0]}(e),r=t[0],a=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(ve(t)),a)}:function(t){return s(a,r+e._offset+e.l2p(ve(t)))}},W.makeTickPath=function(e,t,r,a){a=void 0!==a?a:e.ticklen;var n=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===n?"M0,"+(t+i*r)+"v"+a*r:"M"+(t+i*r)+",0h"+a*r},W.makeLabelFns=function(e,t,r){var a=e.ticklabelposition||"",i=function(e){return-1!==a.indexOf(e)},o=i("top"),s=i("left"),c=i("right"),d=i("bottom")||s||o||c,u=i("inside"),f="inside"===a&&"inside"===e.ticks||!u&&"outside"===e.ticks&&"boundaries"!==e.tickson,h=0,p=0,v=f?e.ticklen:0;if(u?v*=-1:d&&(v=0),f&&(h+=v,r)){var g=l.deg2rad(r);h=v*Math.cos(g)+1,p=v*Math.sin(g)}e.showticklabels&&(f||e.showline)&&(h+=.2*e.tickfont.size);var m,y,x,b,_,w={labelStandoff:h+=(e.linewidth||1)/2*(u?-1:1),labelShift:p},k=0,T=e.side,A=e._id.charAt(0),M=e.tickangle;if("x"===A)b=(_=!u&&"bottom"===T||u&&"top"===T)?1:-1,u&&(b*=-1),m=p*b,y=t+h*b,x=_?1:-.2,90===Math.abs(M)&&(u?x+=j:x=-90===M&&"bottom"===T?B:90===M&&"top"===T?j:.5,k=j/2*(M/90)),w.xFn=function(e){return e.dx+m+k*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*x},w.anchorFn=function(e,t){if(d){if(s)return"end";if(c)return"start"}return n(t)&&0!==t&&180!==t?t*b<0!==u?"end":"start":"middle"},w.heightFn=function(t,r,a){return r<-60||r>60?-.5*a:"top"===e.side!==u?-a:0};else if("y"===A){if(b=(_=!u&&"left"===T||u&&"right"===T)?1:-1,u&&(b*=-1),m=h,y=p*b,x=0,u||90!==Math.abs(M)||(x=-90===M&&"left"===T||90===M&&"right"===T?B:.5),u){var S=n(M)?+M:0;if(0!==S){var L=l.deg2rad(S);k=Math.abs(Math.sin(L))*B*b,x=0}}w.xFn=function(e){return e.dx+t-(m+e.fontSize*x)*b+k*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*j},w.anchorFn=function(e,t){return n(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,a){return"right"===e.side&&(r*=-1),r<-30?-a:r<30?-.5*a:0}}return w},W.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",n=r.vals;"period"===t.ticklabelmode&&(n=n.slice()).shift();var i=r.layer.selectAll("path."+a).data(t.ticks?n:[],ge);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(u.stroke,t.tickcolor).style("stroke-width",f.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path).style("display",null),ze(t,[D]),i.attr("transform",r.transFn)},W.drawGrid=function(e,t,r){r=r||{};var a=t._id+"grid",n=r.vals,i=r.counterAxis;if(!1===t.showgrid)n=[];else if(i&&W.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;lh||i.lefth||i.top+(t.tickangle?0:e.fontSize/4)t["_visibleLabelMin_"+r._id]?s.style("display","none"):"tick"!==e.K||n||s.style("display",null)}))}))}))}))},x(m,g+1?g:v);var b=null;t._selections&&(t._selections[u]=m);var _=[function(){return y.length&&Promise.all(y)}];t.automargin&&i._redrawFromAutoMarginCount&&90===g?(b=90,_.push((function(){x(m,g)}))):_.push((function(){if(x(m,v),h.length&&"x"===d&&!n(v)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){b=0;var e,a=0,i=[];if(m.each((function(e){a=Math.max(a,e.fontSize);var r=t.l2p(e.x),n=xe(this),o=f.bBox(n.node());i.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=h.length,s=Math.abs((h[o-1].x-h[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",u=function(e){return-1!==c.indexOf(e)},p=u("top"),g=u("left"),y=u("right"),_=u("bottom")||g||p||y?(t.tickwidth||0)+6:0,w=s<2.5*a||"multicategory"===t.type||"realaxis"===t._name;for(e=0;e1)for(a=1;a{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=r("46lPXjlm").BADNUM,o=n.isArrayOrTypedArray,l=n.isDateTime,s=n.cleanNumber,c=Math.round;function d(e,t){return t?a(e):"number"==typeof e}function u(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,r){var n=e,f=r.noMultiCategory;if(o(n)&&!n.length)return"-";if(!f&&function(e){return o(e[0])&&o(e[1])}(n))return"multicategory";if(f&&Array.isArray(n[0])){for(var h=[],p=0;p2*o}(n,t))return"date";var g="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,a=u(r),n=0,o=0,l={},d=0;d2*n}(n,g)?"category":function(e,t){for(var r=e.length,a=0;a{"use strict";var a=r("yAcToaBS"),n=r("R5um7Wku"),i=r("0Ft3SWJB"),o=r("JdrF9yG0"),l=r("zSF5pjBO"),s=r("/Llx+klj"),c=r("NycC/quU"),d=r("pyDFBVwV"),u=r("HuQua9xW"),f=r("2vMGT4U+"),h=r("eiAwyOh4"),p=r("R+8I7jNJ"),v=r("Vq8+Ip3e").WEEKDAY_PATTERN,g=r("Vq8+Ip3e").HOUR_PATTERN;function m(e,t,r){function n(r,a){return i.coerce(e,t,l.rangebreaks,r,a)}if(n("enabled")){var o=n("bounds");if(o&&o.length>=2){var s,c,d="";if(2===o.length)for(s=0;s<2;s++)if(c=x(o[s])){d=v;break}var u=n("pattern",d);if(u===v)for(s=0;s<2;s++)(c=x(o[s]))&&(t.bounds[s]=o[s]=c-1);if(u)for(s=0;s<2;s++)switch(c=o[s],u){case v:if(!a(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=o[s]=c;break;case g:if(!a(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=o[s]=c}if(!1===r.autorange){var f=r.range;if(f[0]f[1])return void(t.enabled=!1)}else if(o[0]>f[0]&&o[1]{"use strict";var r=t("R5um7Wku"),a=t("Vq8+Ip3e");function n(e,t){if(t&&t.length)for(var r=0;ra?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},exports.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},exports.isLinked=function(e,t){return n(t,e._axisMatchGroups)||n(t,e._axisConstraintGroups)}},"2vMGT4U+":e=>{"use strict";e.exports=function(e,t,r,a){if("category"===t.type){var n,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(n="array");var l,s=r("categoryorder",n);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var r,a,n,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],a=0;a{"use strict";var r=t("0Ft3SWJB"),a=t("IaNOhRG8"),n=t("nXHY852p").id2name,i=t("zSF5pjBO"),o=t("gfz/NZnA"),l=t("R+8I7jNJ"),s=t("46lPXjlm").ALMOST_EQUAL,c=t("kca9bvt+").FROM_BL;function d(e,t,a){var o=a.axIds,l=a.layoutOut,s=a.hasImage,c=l._axisConstraintGroups,d=l._axisMatchGroups,p=t._id,v=p.charAt(0),g=((l._splomAxes||{})[v]||{})[p]||{},m=t._id,y="x"===m.charAt(0);function x(a,n){return r.coerce(e,t,i,a,n)}t._matchGroup=null,t._constraintGroup=null,x("constrain",s?"domain":"range"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:y?["left","center","right"]:["bottom","middle","top"],dflt:y?"center":"middle"}},"constraintoward");var b,_,w=t.type,k=[];for(b=0;ba?n.substr(a):i.substr(r))+o:n+i+e*t:o}function v(e,t){for(var r=t._size,a=r.h/r.w,n={},i=Object.keys(e),o=0;os*x)||k)for(r=0;rP&&EC&&(C=E);f/=(C-O)/(2*F),O=c.l2r(O),C=c.l2r(C),c.range=c._input.range=S{"use strict";var a=r("Lou4tdh8"),n=r("0Ft3SWJB"),i=n.numberFormat,o=r("VDpxHpeA"),l=r("uORtHUsV"),s=r("R5um7Wku"),c=n.strTranslate,d=r("7k8rh0sJ"),u=r("/oRevOrA"),f=r("+ELfTWmT"),h=r("9fFWTih4"),p=r("4JfnfFRI"),v=r("LnvsDkyo"),g=r("WFvnZ06c"),m=r("rC/dcWPV"),y=m.selectingOrDrawing,x=m.freeMode,b=r("kca9bvt+").FROM_TL,_=r("NLf4w7dD"),w=r("PM37TqjZ").redrawReglTraces,k=r("8MlMO9wt"),T=r("nXHY852p").getFromId,A=r("TXQQh07e").prepSelect,M=r("TXQQh07e").clearSelect,S=r("TXQQh07e").selectOnClick,L=r("gfz/NZnA"),z=r("Vq8+Ip3e"),O=z.MINDRAG,C=z.MINZOOM,F=!0;function P(e,t,r,a){var i=n.ensureSingle(e.draglayer,t,r,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return i.call(v,a),i.node()}function I(e,t,r,n,i,o,l){var s=P(e,"rect",t,r);return a.select(s).call(f.setRect,n,i,o,l),s}function D(e,t){for(var r=0;r=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function B(e,t,r,a,n){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",c(r,a)).attr("d",n+"Z")}function N(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,r)).attr("d","M0,0Z")}function H(e,t,r,a,n,i){e.attr("d",a+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),W(e,t,n,i)}function W(e,t,r,a){r||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function V(e){a.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function G(e){F&&e.data&&e._context.showTips&&(n.notifier(n._(e,"Double-click to zoom back out"),"long"),F=!1)}function U(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/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 q(e,t,r,a,i){for(var o,l,s,c,d=!1,u={},f={},h=(i||{}).xaHash,p=(i||{}).yaHash,v=0;v=0)n._fullLayout._deactivateShape(n);else{var o=n._fullLayout.clickmode;if(V(n),2!==e||ye||Ue(),me)o.indexOf("select")>-1&&S(r,n,Y,Q,t.id,Fe),o.indexOf("event")>-1&&h.click(n,r,t.id);else if(1===e&&ye){var l=v?P:F,c="s"===v||"w"===m?0:1,u=l._name+".range["+c+"]",f=function(e,t){var r,a=e.range[t],n=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(n)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,a))):(r=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(n)/Math.LN10)+4,i("."+String(r)+"g")(a))}(l,c),p="left",g="middle";if(l.fixedrange)return;v?(g="n"===v?"top":"bottom","right"===l.side&&(p="right")):"e"===m&&(p="right"),n._context.showAxisRangeEntryBoxes&&a.select(_e).call(d.makeEditable,{gd:n,immediate:!0,background:n._fullLayout.paper_bgcolor,text:String(f),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:p,verticalAlign:g}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&s.call("_guiRelayout",n,u,t)}))}}}function De(t,r){if(e._transitioningWithDuration)return!1;var a=Math.max(0,Math.min(te,pe*t+we)),n=Math.max(0,Math.min(re,ve*r+ke)),i=Math.abs(a-we),o=Math.abs(n-ke);function l(){Le="",Te.r=Te.l,Te.t=Te.b,Oe.attr("d","M0,0Z")}if(Te.l=Math.min(we,a),Te.r=Math.max(we,a),Te.t=Math.min(ke,n),Te.b=Math.max(ke,n),ae.isSubplotConstrained)i>C||o>C?(Le="xy",i/te>o/re?(o=i*re/te,ke>n?Te.t=ke-o:Te.b=ke+o):(i=o*te/re,we>a?Te.l=we-i:Te.r=we+i),Oe.attr("d",U(Te))):l();else if(ne.isSubplotConstrained)if(i>C||o>C){Le="xy";var s=Math.min(Te.l/te,(re-Te.b)/re),c=Math.max(Te.r/te,(re-Te.t)/re);Te.l=s*te,Te.r=c*te,Te.b=(1-s)*re,Te.t=(1-c)*re,Oe.attr("d",U(Te))}else l();else!oe||o0){var d;if(ne.isSubplotConstrained||!ie&&1===oe.length){for(d=0;d{"use strict";var r=t("Lou4tdh8"),a=t("9fFWTih4"),n=t("WFvnZ06c"),i=t("LnvsDkyo"),o=t("7TYI5MTh").makeDragBox,l=t("Vq8+Ip3e").DRAGGERSIZE;exports.initInteractions=function(e){var t=e._fullLayout;if(e._context.staticPlot)r.select(e).selectAll(".drag").remove();else if(t._has("cartesian")||t._has("splom")){Object.keys(t._plots||{}).sort((function(e,r){if((t._plots[e].mainplot&&!0)===(t._plots[r].mainplot&&!0)){var a=e.split("y"),n=r.split("y");return a[0]===n[0]?Number(a[1]||1)-Number(n[1]||1):Number(a[0]||1)-Number(n[0]||1)}return t._plots[e].mainplot?1:-1})).forEach((function(r){var i=t._plots[r],s=i.xaxis,c=i.yaxis;if(!i.mainplot){var d=o(e,i,s._offset,c._offset,s._length,c._length,"ns","ew");d.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===r&&e._fullLayout._plots[r]&&a.hover(e,t,r)},a.hover(e,t,r),e._fullLayout._lasthover=d,e._fullLayout._hoversubplot=r},d.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,n.unhover(e,t))},e._context.showAxisDragHandles&&(o(e,i,s._offset-l,c._offset-l,l,l,"n","w"),o(e,i,s._offset+s._length,c._offset-l,l,l,"n","e"),o(e,i,s._offset-l,c._offset+c._length,l,l,"s","w"),o(e,i,s._offset+s._length,c._offset+c._length,l,l,"s","e"))}if(e._context.showAxisDragHandles){if(r===s._mainSubplot){var u=s._mainLinePosition;"top"===s.side&&(u-=l),o(e,i,s._offset+.1*s._length,u,.8*s._length,l,"","ew"),o(e,i,s._offset,u,.1*s._length,l,"","w"),o(e,i,s._offset+.9*s._length,u,.1*s._length,l,"","e")}if(r===c._mainSubplot){var f=c._mainLinePosition;"right"!==c.side&&(f-=l),o(e,i,f,c._offset+.1*c._length,l,.8*c._length,"ns",""),o(e,i,f,c._offset+.9*c._length,l,.1*c._length,"s",""),o(e,i,f,c._offset,l,.1*c._length,"n","")}}}));var i=t._hoverlayer.node();i.onmousemove=function(r){r.target=e._fullLayout._lasthover,a.hover(e,r,t._hoversubplot)},i.onclick=function(t){t.target=e._fullLayout._lasthover,a.click(e,t)},i.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},exports.updateFx(e)}},exports.updateFx=function(e){var t=e._fullLayout,r="pan"===t.dragmode?"move":"crosshair";i(t._draggers,r)}},"jH0PU/G+":e=>{"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearSelect:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._drawing=!1}}},"Z/5I/swV":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB").strTranslate;function n(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)}}e.exports={p2r:n,r2p:function(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)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(r){return n(e,r[t])}},getTransform:function(e){return a(e.xaxis._offset,e.yaxis._offset)}}},"lGy/M/Cj":(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB"),i=r("nXHY852p");e.exports=function(e){return function(t,r){var o=t[e];if(Array.isArray(o))for(var l=a.subplotsRegistry.cartesian,s=l.idRegex,c=r._subplots,d=c.xaxis,u=c.yaxis,f=c.cartesian,h=r._has("cartesian")||r._has("gl2d"),p=0;p{"use strict";var r=t("Lou4tdh8"),a=t("R5um7Wku"),n=t("0Ft3SWJB"),i=t("8MlMO9wt"),o=t("+ELfTWmT"),l=t("JvoEnJDT").a0,s=t("nXHY852p"),c=t("Vq8+Ip3e"),d=t("nfwe4Djo"),u=n.ensureSingle;function f(e,t,r){return n.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function h(e,t,n,i,s){for(var d,u,f,h=c.traceLayerClasses,p=e._fullLayout,v=p._modules,g=[],m=[],y=0;y{"use strict";var a=r("0Ft3SWJB"),n=r("/oRevOrA"),i=r("ErV1Ibqz").isUnifiedHover,o=r("4FumUcA6"),l=r("A5P9b9BX"),s=r("JEbHibKP"),c=r("zSF5pjBO"),d=r("xxu9688R"),u=r("vg6lu/AO"),f=r("6hRdzyd8"),h=r("kAv/b5aV"),p=r("nXHY852p"),v=p.id2name,g=p.name2id,m=r("Vq8+Ip3e").AX_ID_PATTERN,y=r("R5um7Wku"),x=y.traceIs,b=y.getComponentMethod;function _(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,r){var y,w,k=t.autotypenumbers,T={},A={},M={},S={},L={},z={},O={},C={},F={},P={};for(y=0;y{"use strict";var a=r("VDpxHpeA").mix,n=r("Khpmx9F5").lightFraction,i=r("0Ft3SWJB");e.exports=function(e,t,r,o){var l=(o=o||{}).dfltColor;function s(r,a){return i.coerce2(e,t,o.attributes,r,a)}var c=s("linecolor",l),d=s("linewidth");r("showline",o.showLine||!!c||!!d)||(delete t.linecolor,delete t.linewidth);var u=s("gridcolor",a(l,o.bgColor,o.blend||n).toRgbString()),f=s("gridwidth");if(r("showgrid",o.showGrid||!!u||!!f)||(delete t.gridcolor,delete t.gridwidth),!o.noZeroLine){var h=s("zerolinecolor",l),p=s("zerolinewidth");r("zeroline",o.showGrid||!!h||!!p)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},"kAv/b5aV":(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB");e.exports=function(e,t,r,i){var o,l,s,c,d=i.counterAxes||[],u=i.overlayableAxes||[],f=i.letter,h=i.grid;h&&(l=h._domains[f][h._axisMap[t._id]],o=h._anchors[t._id],l&&(s=h[f+"side"].split(" ")[0],c=h.domain[f]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(a(e.position)?"free":d[0]||"free"),s=s||("x"===f?"bottom":"left"),c=c||0,"free"===n.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(d),dflt:o}},"anchor")&&r("position",c),n.coerce(e,t,{side:{valType:"enumerated",values:"x"===f?["bottom","top"]:["left","right"],dflt:s}},"side");var p=!1;if(u.length&&(p=n.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(u),dflt:!1}},"overlaying")),!p){var v=r("domain",l);v[0]>v[1]-1/4096&&(t.domain=l),n.noneOrAll(e.domain,t.domain,l)}return r("layer"),t}},"gfz/NZnA":(e,t,r)=>{"use strict";var a=r("kca9bvt+").FROM_BL;e.exports=function(e,t,r){void 0===r&&(r=a[e.constraintoward||"center"]);var n=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=n[0]+(n[1]-n[0])*r;e.range=e._input.range=[e.l2r(i+(n[0]-i)*t),e.l2r(i+(n[1]-i)*t)],e.setScale()}},TXQQh07e:(e,t,r)=>{"use strict";var a=r("nuD6RlFT"),n=r("R5um7Wku"),i=r("+ELfTWmT").dashStyle,o=r("/oRevOrA"),l=r("9fFWTih4"),s=r("ErV1Ibqz").makeEventData,c=r("rC/dcWPV"),d=c.freeMode,u=c.rectMode,f=c.drawMode,h=c.openMode,p=c.selectMode,v=r("Fl5XEEXl"),g=r("FaAFECtK").handleEllipse,m=r("FRK4tLaG"),y=r("0Ft3SWJB"),x=r("fhYYOvxE"),b=r("9bxIX4ke"),_=r("nXHY852p").getFromId,w=r("NLf4w7dD"),k=r("PM37TqjZ").redrawReglTraces,T=r("Vq8+Ip3e"),A=T.MINSELECT,M=x.filter,S=x.tester,L=r("jH0PU/G+").clearSelect,z=r("Z/5I/swV"),O=z.p2r,C=z.axValue,F=z.getTransform;function P(e,t,r,a,n,i,o){var l,s,c,d,u,f,p,g,m,y=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(y)){E(e,t,i);var _=function(e,t){var r,a,n=e[0],i=-1,o=[];for(a=0;a0?function(e,t){var r,a,n,i=[];for(n=0;n0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(a=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(n=0;n1)return!1;if((a+=t.selectedpoints.length)>1)return!1}return 1===a}(l)&&(f=N(_))){for(o&&o.remove(),m=0;m=0&&a._fullLayout._deactivateShape(a),f(t)){var i=a._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(i&&a._fullLayout._drawing){var o=m(i,e);o&&n.call("_guiRelayout",a,{shapes:o}),a._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function B(e,t,r,a){var n,i,o,l=[],s=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o0?a[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(n)>-1}function H(e,t,r){var a,i,o,l;for(a=0;a=0)z._fullLayout._deactivateShape(z);else if(!_){var r=I.clickmode;b.done(ge).then((function(){if(b.clear(ge),2===e){for(fe.remove(),ee=0;ee-1&&P(t,z,n.xaxes,n.yaxes,n.subplot,n,fe),"event"===r&&z.emit("plotly_selected",void 0);l.click(z,t)})).catch(y.error)}},n.doneFn=function(){ve.remove(),b.done(ge).then((function(){b.clear(ge),n.gd.emit("plotly_selected",re),K&&n.selectionDefs&&(K.subtract=ue,n.selectionDefs.push(K),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,Q)),n.doneFnCompleted&&n.doneFnCompleted(me)})).catch(y.error),_&&j(n)}},clearSelect:L,clearSelectionsCache:j,selectOnClick:P}},"R+8I7jNJ":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("ICZj06Ga").g0,i=r("0Ft3SWJB"),o=i.numberFormat,l=r("yAcToaBS"),s=i.cleanNumber,c=i.ms2DateTime,d=i.dateTime2ms,u=i.ensureNumber,f=i.isArrayOrTypedArray,h=r("46lPXjlm"),p=h.FP_SAFE,v=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,y=h.ONEDAY,x=h.ONEHOUR,b=h.ONEMIN,_=h.ONESEC,w=r("nXHY852p"),k=r("Vq8+Ip3e"),T=k.HOUR_PATTERN,A=k.WEEKDAY_PATTERN;function M(e){return Math.pow(10,e)}function S(e){return null!=e}e.exports=function(e,t){t=t||{};var r=e._id||"x",h=r.charAt(0);function L(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var a=e.range[0],n=e.range[1];return.5*(a+n-2*g*Math.abs(a-n))}return v}function z(t,r,a,n){if((n||{}).msUTC&&l(t))return+t;var o=d(t,a||e.calendar);if(o===v){if(!l(t))return v;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-s/10);o=d(new Date(c))+s/10}return o}function O(t,r,a){return c(t,r,a||e.calendar)}function C(t){return e._categories[Math.round(t)]}function F(t){if(S(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return v}function P(t){if(e._categoriesMap)return e._categoriesMap[t]}function I(e){var t=P(e);return void 0!==t?t:l(e)?+e:void 0}function D(e){return l(e)?+e:P(e)}function R(e,t,r){return a.round(r+t*e,2)}function E(e,t,r){return(e-r)/t}var j=function(t){return l(t)?R(t,e._m,e._b):v},B=function(t){return E(t,e._m,e._b)};if(e.rangebreaks){var N="y"===h;j=function(t){if(!l(t))return v;var r=e._rangebreaks.length;if(!r)return R(t,e._m,e._b);var a=N;e.range[0]>e.range[1]&&(a=!a);for(var n=a?-1:1,i=n*t,o=0,s=0;sd)){o=i<(c+d)/2?s:s+1;break}o=s+1}var u=e._B[o]||0;return isFinite(u)?R(t,e._m2,u):0},B=function(t){var r=e._rangebreaks.length;if(!r)return E(t,e._m,e._b);for(var a=0,n=0;ne._rangebreaks[n].pmax&&(a=n+1);return E(t,e._m2,e._B[a])}}e.c2l="log"===e.type?L:u,e.l2c="log"===e.type?M:u,e.l2p=j,e.p2l=B,e.c2p="log"===e.type?function(e,t){return j(L(e,t))}:j,e.p2c="log"===e.type?function(e){return M(B(e))}:B,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=u,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=B,e.cleanPos=u):"log"===e.type?(e.d2r=e.d2l=function(e,t){return L(s(e),t)},e.r2d=e.r2c=function(e){return M(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=u,e.c2r=L,e.l2d=M,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return M(B(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=B,e.cleanPos=u):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=z,e.c2d=e.c2r=e.l2d=e.l2r=O,e.d2p=e.r2p=function(t,r,a){return e.l2p(z(t,0,a))},e.p2d=e.p2r=function(e,t,r){return O(B(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,v,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=F,e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=I,e.r2c=function(t){var r=D(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=u,e.r2l=D,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(B(e))},e.r2p=e.d2p,e.p2r=B,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:u(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=I,e.r2c=function(t){var r=I(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=P,e.l2r=e.c2r=u,e.r2l=I,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(B(e))},e.r2p=e.d2p,e.p2r=B,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:u(e)},e.setupMultiCategory=function(a){var n,o,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var c in s)if(c!==r){var d=t[w.id2name(c)];l=l.concat(d._traceIndices)}var u=[[0,{}],[0,{}]],p=[];for(n=0;np&&(o[a]=p),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else i.nestedProperty(e,t).set(n)},e.setScale=function(r){var a=t._size;if(e.overlaying){var n=w.getFromId({_fullLayout:t},e.overlaying);e.domain=n.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),d=e.r2l(e[i][1],o),u="y"===h;if((u?(e._offset=a.t+(1-e.domain[1])*a.h,e._length=a.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-d),e._b=-e._m*d):(e._offset=a.l+e.domain[0]*a.w,e._length=a.w*(e.domain[1]-e.domain[0]),e._m=e._length/(d-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,d),Math.max(c,d)),e._rangebreaks.length)){for(l=0;ld&&(f=!f),f&&e._rangebreaks.reverse();var p=f?-1:1;for(e._m2=p*e._length/(Math.abs(d-c)-e._lBreaks),e._B.push(-e._m2*(u?d:c)),l=0;ln&&(n+=7,on&&(n+=24,o=a&&o=a&&t=l.min&&(el.max&&(l.max=a),n=!1)}n&&c.push({min:e,max:a})}};for(a=0;a{"use strict";var a=r("Lou4tdh8"),n=r("R5um7Wku"),i=r("0Ft3SWJB"),o=r("+ELfTWmT"),l=r("4JfnfFRI");e.exports=function(e,t,r,s){var c=e._fullLayout;if(0!==t.length){var d,u,f,h;s&&(d=s());var p=a.ease(r.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(h),h=null,function(){for(var r={},a=0;ar.duration?(!function(){for(var r={},a=0;a rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var a=e.plot.selectAll(".scatterlayer .trace");a.selectAll(".point").call(o.setPointGroupScale,1,1),a.selectAll(".textpoint").call(o.setTextPointsScale,1,1),a.call(o.hideOutsideRangePoints,e)}function g(t,r){var a=t.plotinfo,n=a.xaxis,s=a.yaxis,c=n._length,d=s._length,u=!!t.xr1,f=!!t.yr1,h=[];if(u){var p=i.simpleMap(t.xr0,n.r2l),v=i.simpleMap(t.xr1,n.r2l),g=p[1]-p[0],m=v[1]-v[0];h[0]=(p[0]*(1-r)+r*v[0]-p[0])/(p[1]-p[0])*c,h[2]=c*(1-r+r*m/g),n.range[0]=n.l2r(p[0]*(1-r)+r*v[0]),n.range[1]=n.l2r(p[1]*(1-r)+r*v[1])}else h[0]=0,h[2]=c;if(f){var y=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=y[1]-y[0],_=x[1]-x[0];h[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*d,h[3]=d*(1-r+r*_/b),s.range[0]=n.l2r(y[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(y[1]*(1-r)+r*x[1])}else h[1]=0,h[3]=d;l.drawOne(e,n,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[n._id,s._id]);var w=u?c/h[2]:1,k=f?d/h[3]:1,T=u?h[0]:0,A=f?h[1]:0,M=u?h[0]/h[2]*c:0,S=f?h[1]/h[3]*d:0,L=n._offset-M,z=s._offset-S;a.clipRect.call(o.setTranslate,T,A).call(o.setScale,1/w,1/k),a.plot.call(o.setTranslate,L,z).call(o.setScale,w,k),o.setPointGroupScale(a.zoomScalePts,1/w,1/k),o.setTextPointsScale(a.zoomScaleTxt,1/w,1/k)}l.redrawComponents(e)}},xxu9688R:(e,t,r)=>{"use strict";var a=r("R5um7Wku").traceIs,n=r("qv1FlERR");function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var r=i(e),n=a(e,"box-violin"),o=a(e._fullInput||{},"candlestick");return n&&!o&&t===r&&void 0===e[r]&&void 0===e[r+"0"]}e.exports=function(e,t,r,l){r("autotypenumbers",l.autotypenumbersDflt),"-"===r("type",(l.splomStash||{}).type)&&(!function(e,t){if("-"!==e.type)return;var r,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(e,t,r){for(var a=0;a0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(o(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}(t,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var d=s+"calendar",u=c[d],f={noMultiCategory:!a(c,"cartesian")||a(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(f.noMultiCategory=!0);if(f.autotypenumbers=e.autotypenumbers,o(c,s)){var h=i(c),p=[];for(r=0;r{"use strict";var r=t("R5um7Wku"),a=t("0Ft3SWJB");function n(e,t,r){var n,i,o,l=!1;if("data"===t.type)n=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;n=e._fullLayout}return i=a.nestedProperty(n,t.prop).get(),(o=r[t.type]=r[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(l=!0),o[t.prop]=i,{changed:l,value:i}}function i(e,t){var r=[],n=t[0],i={};if("string"==typeof n)i[n]=t[1];else{if(!a.isPlainObject(n))return r;i=n}return l(i,(function(e,t,a){r.push({type:"layout",prop:e,value:a})}),"",0),r}function o(e,t){var r,n,i,o,s=[];if(n=t[0],i=t[1],r=t[2],o={},"string"==typeof n)o[n]=i;else{if(!a.isPlainObject(n))return s;o=n,void 0===r&&(r=i)}return void 0===r&&(r=null),l(o,(function(t,a,n){var i,o;if(Array.isArray(n)){o=n.slice();var l=Math.min(o.length,e.data.length);r&&(l=Math.min(l,r.length)),i=[];for(var c=0;c0?".":"")+i;a.isPlainObject(o)?l(o,t,s,n+1):t(s,i,o)}}))}exports.manageCommandObserver=function(e,t,r,i){var o={},l=!0;t&&t._commandObserver&&(o=t._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var s=exports.hasSimpleAPICommandBindings(e,r,o.lookupTable);if(t&&t._commandObserver){if(s)return o;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,o}if(s){n(e,s,o.cache),o.check=function(){if(l){var t=n(e,s,o.cache);return t.changed&&i&&void 0!==o.lookupTable[t.value]&&(o.disable(),Promise.resolve(i({value:t.value,type:s.type,prop:s.prop,traces:s.traces,index:o.lookupTable[t.value]})).then(o.enable,o.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d{"use strict";var r=t("xE+ZFgwY").extendFlat;exports.Y=function(e,t){t=t||{};var a={valType:"info_array",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",o=t.description?" "+t.description:"",l={x:r({},a,{description:["Sets the horizontal domain of this ",n,i,"(in plot fraction).",o].join("")}),y:r({},a,{description:["Sets the vertical domain of this ",n,i,"(in plot fraction).",o].join("")}),editType:e.editType};return e.noGridCell||(l.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 ",n,i,".",o].join("")},l.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 ",n,i,".",o].join("")}),l},exports.c=function(e,t,r,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=t.grid;if(o){var l=r("domain.column");void 0!==l&&(l{"use strict";e.exports={_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(" ")}}},JvoEnJDT:(e,exports,t)=>{"use strict";var r=t("R5um7Wku"),a=t("Vq8+Ip3e").SUBPLOT_PATTERN;exports.a0=function(e,t){var a,n=[],i=[];if(!(a="string"==typeof t?r.getModule(t).plot:"function"==typeof t?t:t.plot))return[n,e];for(var o=0;o{"use strict";function t(e,t){var r,a,n=[0,0,0,0];for(r=0;r<4;++r)for(a=0;a<4;++a)n[a]+=e[4*r+a]*t[r];return n}e.exports=function(e,r){return t(e.projection,t(e.view,t(e.model,[r[0],r[1],r[2],1])))}},"8MlMO9wt":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("ICZj06Ga").Dq,i=r("9bSA6I2Q").FF,o=r("yAcToaBS"),l=r("R5um7Wku"),s=r("dbVsU3X7"),c=r("A5P9b9BX"),d=r("0Ft3SWJB"),u=r("/oRevOrA"),f=r("46lPXjlm").BADNUM,h=r("nXHY852p"),p=r("jH0PU/G+").clearSelect,v=r("HlG8UEh+"),g=r("IejtdMW5"),m=r("JvoEnJDT").a0,y=d.relinkPrivateKeys,x=d._,b=e.exports={};d.extendFlat(b,l),b.attributes=r("FDg8C/At"),b.attributes.type.values=b.allTypes,b.fontAttrs=r("lf8+9Xc7"),b.layoutAttributes=r("JEbHibKP"),b.fontWeight="normal";var _=b.transformsRegistry,w=r("UNxolM8i");b.executeAPICommand=w.executeAPICommand,b.computeAPICommandBindings=w.computeAPICommandBindings,b.manageCommandObserver=w.manageCommandObserver,b.hasSimpleAPICommandBindings=w.hasSimpleAPICommandBindings,b.redrawText=function(e){return e=d.getGraphDiv(e),new Promise((function(t){setTimeout((function(){e._fullLayout&&(l.getComponentMethod("annotations","draw")(e),l.getComponentMethod("legend","draw")(e),l.getComponentMethod("colorbar","draw")(e),t(b.previousPromises(e)))}),300)}))},b.resize=function(e){var t;e=d.getGraphDiv(e);var r=new Promise((function(r,a){e&&!d.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||d.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,l.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))}))}}),100)}));return t&&t(r),r},b.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},b.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=d.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:u.defaultLine,"pointer-events":"all"}).each((function(){var e=a.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",(function(){b.sendDataToCloud(e)}));else{var a=window.location.pathname.split("/"),n=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},b.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=a.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return n.append("input").attr({type:"text",name:"data"}).node().value=b.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var k=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],T=["year","month","dayMonth","dayMonthYear"];function A(e,t){var r=e._context.locale;r||(r="en-US");var a=!1,n={};function i(e){for(var r=!0,i=0;i1&&I.length>1){for(l.getComponentMethod("grid","sizeDefaults")(c,s),o=0;o15&&I.length>15&&0===s.shapes.length&&0===s.images.length,b.linkSubplots(f,s,u,a),b.cleanPlot(f,s,u,a);var B=!(!a._has||!a._has("gl2d")),N=!(!s._has||!s._has("gl2d")),H=!(!a._has||!a._has("cartesian"))||B,W=!(!s._has||!s._has("cartesian"))||N;H&&!W?a._bgLayer.remove():W&&!H&&(s._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&p({_fullLayout:a}),function(e,t){var r,a=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var n=0;n0){var u=1-2*l;a=Math.round(u*a),n=Math.round(u*n)}}var f=b.layoutAttributes.width.min,h=b.layoutAttributes.height.min;a1,v=!t.height&&Math.abs(r.height-n)>1;(v||p)&&(p&&(r.width=a),v&&(r.height=n)),e._initialAutoSize||(e._initialAutoSize={width:a,height:n}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(e,t,r,a){var n,i,o,s=l.componentsRegistry,c=t._basePlotModules,u=l.subplotsRegistry.cartesian;for(n in s)(o=s[n]).includeBasePlot&&o.includeBasePlot(e,t);for(var f in c.length||c.push(u),t._has("cartesian")&&(l.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(d.subplotSort);for(i=0;i1&&(r.l/=v,r.r/=v)}if(u){var g=(r.t+r.b)/u;g>1&&(r.t/=g,r.b/=g)}var m=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;f[t]={l:{val:m,size:r.l+p},r:{val:y,size:r.r+p},b:{val:_,size:r.b+p},t:{val:x,size:r.t+p}},h[t]=1}else delete f[t],delete h[t];if(!a._replotting)return b.doAutoMargin(e)}},b.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,a=t.height;t._size||(t._size={}),O(t);var n=t._size,i=t.margin,s=d.extendFlat({},n),c=i.l,u=i.r,f=i.t,p=i.b,v=t._pushmargin,g=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var m in v)g[m]||delete v[m];for(var y in v.base={l:{val:0,size:c},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:p}},v){var x=v[y].l||{},_=v[y].b||{},w=x.val,k=x.size,T=_.val,A=_.size;for(var M in v){if(o(k)&&v[M].r){var S=v[M].r.val,L=v[M].r.size;if(S>w){var z=(k*S+(L-r)*w)/(S-w),C=(L*(1-w)+(k-r)*(1-S))/(S-w);z+C>c+u&&(c=z,u=C)}}if(o(A)&&v[M].t){var F=v[M].t.val,P=v[M].t.size;if(F>T){var I=(A*F+(P-a)*T)/(F-T),D=(P*(1-T)+(A-a)*(1-F))/(F-T);I+D>p+f&&(p=I,f=D)}}}}}var R=d.constrain(r-i.l-i.r,2,64),E=d.constrain(a-i.t-i.b,2,64),j=Math.max(0,r-R),B=Math.max(0,a-E);if(j){var N=(c+u)/j;N>1&&(c/=N,u/=N)}if(B){var H=(p+f)/B;H>1&&(p/=H,f/=H)}if(n.l=Math.round(c),n.r=Math.round(u),n.t=Math.round(f),n.b=Math.round(p),n.p=Math.round(i.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!t._replotting&&b.didMarginChange(s,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var W=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){a=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return l.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,o=0;function s(){return i++,function(){o++,a||o!==i||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return l.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(n)}}r.runFn(s),setTimeout(s())}))}],i=d.syncOrAsync(n,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}b.didMarginChange=function(e,t){for(var r=0;r1)return!0}return!1},b.graphJson=function(e,t,r,a,n,i){(n&&t&&!e._fullData||n&&!t&&!e._fullLayout)&&b.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function c(e,t){if("function"==typeof e)return t?"_function_":null;if(d.isPlainObject(e)){var a,n={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"==typeof(a=e[i+"src"])&&a.indexOf(":")>0&&!d.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(a=e[i+"src"])&&a.indexOf(":")>0)return;n[i]=c(e[i],t)}else t&&(n[i]="_function")})),n}return Array.isArray(e)?e.map((function(e){return c(e,t)})):d.isTypedArray(e)?d.simpleMap(e,d.identity):d.isJSDate(e)?d.ms2DateTimeLocal(+e):e}var u={data:(o||[]).map((function(e){var r=c(e);return t&&delete r.fit,r}))};if(!t&&(u.layout=c(l),n)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return s&&(u.frames=c(s)),i&&(u.config=c(e._context,!0)),"object"===a?u:JSON.stringify(u)},b.modifyFrames=function(e,t){var r,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r=0;i--)if(l[i].enabled){r._indexToPoints=l[i]._indexToPoints;break}a&&a.calc&&(o=a.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,p[t]=o}}for(I(o,c,u),n=0;n{"use strict";var r=t("RX8/LKUw"),a=r.FORMAT_LINK,n=r.DATE_FORMAT_LINK;function i(e){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e&&e.supportOther?" 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}".',a,"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}".',n,"for details on the date formatting syntax."].join(" ")}function o(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var a=[],n=0;n` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return!1!==e.arrayOk&&(a.arrayOk=!0),a},exports.s=function(e,t){e=e||{};var r=o(t=t||{}),a={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`.",i(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return!1!==e.arrayOk&&(a.arrayOk=!0),a}},WznuVG2f:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB"),i=n.extendFlat,o=n.extendDeep;function l(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}e.exports=function(e,t){var r,n,s=e.data,c=e.layout,d=o([],s),u=o({},c,l(t.tileClass)),f=e._context||{};if(t.width&&(u.width=t.width),t.height&&(u.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){u.annotations=[];var h=Object.keys(u);for(r=0;r-1&&(u[h[r]].title={text:""});for(r=0;r{"use strict";var a=r("0Ft3SWJB"),n=r("wIoo18WF"),i=r("0ljOLJdO"),o=r("/1xV6pOg");e.exports=function(e,t){var r;return a.isPlainObject(e)||(r=a.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise((function(l,s){r&&r._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),a.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var c=n(e,t),d=t.filename||e.fn||"newplot";d+="."+t.format.replace("-","."),c.then((function(e){return r&&(r._snapshotInProgress=!1),i(e,d,t.format)})).then((function(e){l(e)})).catch((function(e){r&&(r._snapshotInProgress=!1),s(e)}))}))}},"0ljOLJdO":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("/1xV6pOg");e.exports=function(e,t,r){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var c,d;if(a.isIE())return c=n.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t);if(o)return c=n.createBlob(e,r),d=n.createObjectURL(c),i.href=d,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),n.revokeObjectURL(d),c=null,l(t);if(a.isSafari()){var u="svg"===r?",":";base64,";return n.octetStream(u+encodeURIComponent(e)),l(t)}s(new Error("download error"))}))}},"/1xV6pOg":(e,exports,t)=>{"use strict";var r=t("R5um7Wku");exports.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},exports.getRedrawFunc=function(e){return function(){r.getComponentMethod("colorbar","draw")(e)}},exports.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},exports.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var a=window.URL||window.webkitURL;exports.createObjectURL=function(e){return a.createObjectURL(e)},exports.revokeObjectURL=function(e){return a.revokeObjectURL(e)},exports.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=function(e){for(var t=e.length,r=new ArrayBuffer(t),a=new Uint8Array(r),n=0;n{"use strict";var a=r("/1xV6pOg"),n={getDelay:a.getDelay,getRedrawFunc:a.getRedrawFunc,clone:r("WznuVG2f"),toSVG:r("qYUMvhEP"),svgToImg:r("P1XCdGWS"),toImage:r("O2jLtYfi"),downloadImage:r("FUuDuW8n")};e.exports=n},P1XCdGWS:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("CVZcSkmN").EventEmitter,i=r("/1xV6pOg");e.exports=function(e){var t=e.emitter||new n,r=new Promise((function(n,o){var l=window.Image,s=e.svg,c=e.format||"png";if(a.isIE()&&"svg"!==c){var d=new Error(i.MSG_IE_BAD_FORMAT);return o(d),e.promise?r:t.emit("error",d)}var u,f,h=e.canvas,p=e.scale||1,v=e.width||300,g=e.height||150,m=p*v,y=p*g,x=h.getContext("2d"),b=new l;"svg"===c||a.isSafari()?f=i.encodeSVG(s):(u=i.createBlob(s,"svg"),f=i.createObjectURL(u)),h.width=m,h.height=y,b.onload=function(){var r;switch(u=null,i.revokeObjectURL(f),"svg"!==c&&x.drawImage(b,0,0,m,y),c){case"jpeg":r=h.toDataURL("image/jpeg");break;case"png":r=h.toDataURL("image/png");break;case"webp":r=h.toDataURL("image/webp");break;case"svg":r=f;break;default:var a="Image format is not jpeg, png, svg or webp.";if(o(new Error(a)),!e.promise)return t.emit("error",a)}n(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(u=null,i.revokeObjectURL(f),o(r),!e.promise)return t.emit("error",r)},b.src=f}));return e.promise?r:t}},O2jLtYfi:(e,t,r)=>{"use strict";var a=r("CVZcSkmN").EventEmitter,n=r("R5um7Wku"),i=r("0Ft3SWJB"),o=r("/1xV6pOg"),l=r("WznuVG2f"),s=r("qYUMvhEP"),c=r("P1XCdGWS");e.exports=function(e,t){var r=new a,d=l(e,{format:"png"}),u=d.gd;u.style.position="absolute",u.style.left="-5000px",document.body.appendChild(u);var f=o.getRedrawFunc(u);return n.call("_doPlot",u,d.data,d.layout,d.config).then(f).then((function(){var e=o.getDelay(u._fullLayout);setTimeout((function(){var e=s(u),a=document.createElement("canvas");a.id=i.randstr(),(r=c({format:t.format,width:u._fullLayout.width,height:u._fullLayout.height,canvas:a,emitter:r,svg:e})).clean=function(){u&&document.body.removeChild(u)}}),e)})).catch((function(e){r.emit("error",e)})),r}},qYUMvhEP:(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("0Ft3SWJB"),i=r("+ELfTWmT"),o=r("/oRevOrA"),l=r("nfwe4Djo"),s=/"/g,c="TOBESTRIPPED",d=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,r){var u,f,h=e._fullLayout,p=h._paper,v=h._toppaper,g=h.width,m=h.height;p.insert("rect",":first-child").call(i.setRect,0,0,g,m).call(o.fill,h.paper_bgcolor);var y=h._basePlotModules||[];for(u=0;u")?"":t.html(e).text()}));return t.remove(),r}(T),T=(T=T.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(d,"'"),n.isIE()&&(T=(T=(T=T.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),T}},QwKhVvvj:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB");e.exports=function(e,t){for(var r=0;r{"use strict";var a=r("SncXPNSm"),n=r("0xRk82sZ").axisHoverFormat,i=r("OzUSSj1k").f,o=r("OzUSSj1k").s,l=r("kwWFMz5J"),s=r("lf8+9Xc7"),c=r("MzXAamq8"),d=r("LZ3mZdqo").u,u=r("xE+ZFgwY").extendFlat,f=s({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),h=u({},a.marker.line.width,{dflt:0}),p=u({width:h,editType:"calc"},l("marker.line")),v=u({line:p,editType:"calc"},l("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:d});e.exports={x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,xhoverformat:n("x"),yhoverformat:n("y"),text:a.text,texttemplate:o({editType:"plot"},{keys:c.eventDataKeys}),hovertext:a.hovertext,hovertemplate:i({},{keys:c.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:u({},f,{description:"Sets the font used for `text`."}),insidetextfont:u({},f,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:u({},f,{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:u({},a.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:v,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(" ")},selected:{marker:{opacity:a.selected.marker.opacity,color:a.selected.marker.color,editType:"style"},textfont:a.selected.textfont,editType:"style"},unselected:{marker:{opacity:a.unselected.marker.opacity,color:a.unselected.marker.color,editType:"style"},textfont:a.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}},lMsElyWC:(e,t,r)=>{"use strict";var a=r("4JfnfFRI"),n=r("qPokwaSi"),i=r("s48LrSF+").hasColorscale,o=r("lNueT97u"),l=r("QwKhVvvj"),s=r("ArZ24uYa");e.exports=function(e,t){var r,c,d,u,f,h,p=a.getFromId(e,t.xaxis||"x"),v=a.getFromId(e,t.yaxis||"y"),g={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(r=p.makeCalcdata(t,"x",g),d=v.makeCalcdata(t,"y"),u=n(t,v,"y",d),f=!!t.yperiodalignment,h="y"):(r=v.makeCalcdata(t,"y",g),d=p.makeCalcdata(t,"x"),u=n(t,p,"x",d),f=!!t.xperiodalignment,h="x"),c=u.vals;for(var m=Math.min(c.length,r.length),y=new Array(m),x=0;x{"use strict";e.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},i6LEMeab:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB").isArrayOrTypedArray,i=r("46lPXjlm").BADNUM,o=r("R5um7Wku"),l=r("4JfnfFRI"),s=r("6hRdzyd8").getAxisGroup,c=r("zQAeQVgh");function d(e,t,r,o,d){if(o.length){var b,_,w,k;switch(function(e,t){var r,i;for(r=0;ru+c||!a(d))}for(var h=0;h{"use strict";var a=r("0Ft3SWJB"),n=r("/oRevOrA"),i=r("R5um7Wku"),o=r("0QKf0MkS"),l=r("tAeBVoBa"),s=r("lMmI2ALB"),c=r("6hRdzyd8").getAxisGroup,d=r("msRxLST1"),u=a.coerceFont;function f(e,t,r,a){var n=t.orientation,i=t[{v:"x",h:"y"}[n]+"axis"],o=c(r,i)+n,l=r._alignmentOpts||{},s=a("alignmentgroup"),d=l[o];d||(d=l[o]={});var u=d[s];u?u.traces.push(t):u=d[s]={traces:[t],alignmentIndex:Object.keys(d).length,offsetGroups:{}};var f=a("offsetgroup"),h=u.offsetGroups,p=h[f];f&&(p||(p=h[f]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}function h(e,t,r,n,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),d=!(!1===o.moduleHasCliponaxis),f=!(!1===o.moduleHasTextangle),h=!(!1===o.moduleHasInsideanchor),p=!!o.hasPathbar,v=Array.isArray(i)||"auto"===i,g=v||"inside"===i,m=v||"outside"===i;if(g||m){var y=u(n,"textfont",r.font),x=a.extendFlat({},y),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,u(n,"insidetextfont",x),p){var _=a.extendFlat({},y);b&&delete _.color,u(n,"pathbar.textfont",_)}m&&u(n,"outsidetextfont",y),l&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),c&&n("constraintext"),d&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}g&&h&&n("insidetextanchor")}e.exports={supplyDefaults:function(e,t,r,c){function u(r,n){return a.coerce(e,t,d,r,n)}if(o(e,t,c,u)){l(e,t,c,u),u("xhoverformat"),u("yhoverformat"),u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var f=u("textposition");h(e,t,c,u,f,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),s(e,t,u,r,c);var p=(t.marker.line||{}).color,v=i.getComponentMethod("errorbars","supplyDefaults");v(e,t,p||n.defaultLine,{axis:"y"}),v(e,t,p||n.defaultLine,{axis:"x",inherit:"y"}),a.coerceSelectionMarkerOpacity(t,u)}else t.visible=!1},crossTraceDefaults:function(e,t){var r;function n(e){return a.coerce(r._input,r,d,e)}if("group"===t.barmode)for(var i=0;i{"use strict";e.exports=function(e,t,r){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),"h"===r.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},"Lpym/Kdp":(e,exports,t)=>{"use strict";var r=t("yAcToaBS"),a=t("VDpxHpeA"),n=t("0Ft3SWJB").isArrayOrTypedArray;exports.coerceString=function(e,t,r){if("string"==typeof t){if(t||!e.noBlank)return t}else if(("number"==typeof t||!0===t)&&!e.strict)return String(t);return void 0!==r?r:e.dflt},exports.coerceNumber=function(e,t,a){if(r(t)){t=+t;var n=e.min,i=e.max;if(!(void 0!==n&&ti))return t}return void 0!==a?a:e.dflt},exports.coerceColor=function(e,t,r){return a(t).isValid()?t:void 0!==r?r:e.dflt},exports.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},exports.getValue=function(e,t){var r;return Array.isArray(e)?t{"use strict";var a=r("9fFWTih4"),n=r("R5um7Wku"),i=r("/oRevOrA"),o=r("0Ft3SWJB").fillText,l=r("Lpym/Kdp").getLineWidth,s=r("4JfnfFRI").hoverLabelText,c=r("46lPXjlm").BADNUM;function d(e,t,r,n,i){var l,d,u,f,h,p,v,g=e.cd,m=g[0].trace,y=g[0].t,x="closest"===n,b="waterfall"===m.type,_=e.maxHoverDistance,w=e.maxSpikeDistance;"h"===m.orientation?(l=r,d=t,u="y",f="x",h=I,p=F):(l=t,d=r,u="x",f="y",p=I,h=F);var k=m[u+"period"],T=x||k;function A(e){return S(e,-1)}function M(e){return S(e,1)}function S(e,t){var r=e.w;return e[u]+t*r/2}function L(e){return e[u+"End"]-e[u+"Start"]}var z=x?A:k?function(e){return e.p-L(e)/2}:function(e){return Math.min(A(e),e.p-y.bardelta/2)},O=x?M:k?function(e){return e.p+L(e)/2}:function(e){return Math.max(M(e),e.p+y.bardelta/2)};function C(e,t,r){return i.finiteRange&&(r=0),a.inbox(e-l,t-l,r+Math.min(1,Math.abs(t-e)/v)-1)}function F(e){return C(z(e),O(e),_)}function P(e){var t=e[f];if(b){var r=Math.abs(e.rawS)||0;d>0?t+=r:d<0&&(t-=r)}return t}function I(e){var t=d,r=e.b,n=P(e);return a.inbox(r-t,n-t,_+(n-t)/(n-r)-1)}var D=e[u+"a"],R=e[f+"a"];v=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var E=a.getDistanceFunction(n,h,p,(function(e){return(h(e)+p(e))/2}));if(a.getClosest(g,E,e),!1!==e.index&&g[e.index].p!==c){T||(z=function(e){return Math.min(A(e),e.p-y.bargroupwidth/2)},O=function(e){return Math.max(M(e),e.p+y.bargroupwidth/2)});var j=g[e.index],B=m.base?j.b+j.s:j.s;e[f+"0"]=e[f+"1"]=R.c2p(j[f],!0),e[f+"LabelVal"]=B;var N=y.extents[y.extents.round(j.p)];e[u+"0"]=D.c2p(x?z(j):N[0],!0),e[u+"1"]=D.c2p(x?O(j):N[1],!0);var H=void 0!==j.orig_p;return e[u+"LabelVal"]=H?j.orig_p:j.p,e.labelLabel=s(D,e[u+"LabelVal"],m[u+"hoverformat"]),e.valueLabel=s(R,e[f+"LabelVal"],m[f+"hoverformat"]),e.baseLabel=s(R,j.b,m[f+"hoverformat"]),e.spikeDistance=(function(e){var t=d,r=e.b,n=P(e);return a.inbox(r-t,n-t,w+(n-t)/(n-r)-1)}(j)+function(e){return C(A(e),M(e),w)}(j))/2,e[u+"Spike"]=D.c2p(j.p,!0),o(j,m,e),e.hovertemplate=m.hovertemplate,e}}function u(e,t){var r=t.mcc||e.marker.color,a=t.mlcc||e.marker.line.color,n=l(e,t);return i.opacity(r)?r:i.opacity(a)&&n?a:void 0}e.exports={hoverPoints:function(e,t,r,a,i){var o=d(e,t,r,a,i);if(o){var l=o.cd,s=l[0].trace,c=l[o.index];return o.color=u(s,c),n.getComponentMethod("errorbars","hoverInfo")(c,s,o),[o]}},hoverOnBars:d,getTraceColor:u}},"fa9voUu+":(e,t,r)=>{"use strict";e.exports={attributes:r("msRxLST1"),layoutAttributes:r("IOfsZqdi"),supplyDefaults:r("jOyGAhAZ").supplyDefaults,crossTraceDefaults:r("jOyGAhAZ").crossTraceDefaults,supplyLayoutDefaults:r("bC7Gw71F"),calc:r("lMsElyWC"),crossTraceCalc:r("i6LEMeab").crossTraceCalc,colorbar:r("WHVwkmN9"),arraysToCalcdata:r("QwKhVvvj"),plot:r("E+KwxggA").plot,style:r("Vs67SwPF").style,styleOnSelect:r("Vs67SwPF").styleOnSelect,hoverPoints:r("Uq+I87MH").hoverPoints,eventData:r("fjTE3x/z"),selectPoints:r("y9T6CtE5"),moduleType:"trace",name:"bar",basePlotModule:r("42xT/S4m"),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 th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},IOfsZqdi:e=>{"use strict";e.exports={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 an *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(" ")}}},bC7Gw71F:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("4JfnfFRI"),i=r("0Ft3SWJB"),o=r("IOfsZqdi");e.exports=function(e,t,r){function l(r,a){return i.coerce(e,t,o,r,a)}for(var s=!1,c=!1,d=!1,u={},f=l("barmode"),h=0;h{"use strict";var a=r("Lou4tdh8"),n=r("yAcToaBS"),i=r("0Ft3SWJB"),o=r("7k8rh0sJ"),l=r("/oRevOrA"),s=r("+ELfTWmT"),c=r("R5um7Wku"),d=r("4JfnfFRI").tickText,u=r("5jl4DkMq"),f=u.recordMinTextSize,h=u.clearMinTextSize,p=r("Vs67SwPF"),v=r("Lpym/Kdp"),g=r("MzXAamq8"),m=r("msRxLST1"),y=m.text,x=m.textposition,b=r("ErV1Ibqz").appendArrayPointValue,_=g.TEXTPAD;function w(e){return e.id}function k(e){if(e.ids)return w}function T(e,t){return e0}function S(e){return"auto"===e?0:e}function L(e,t){var r=Math.PI/180*t,a=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function z(e,t,r,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",d="end"===c,u="start"===c,f=((i.leftToRight||0)+1)/2,h=1-f,p=n.width,v=n.height,g=Math.abs(t-e),m=Math.abs(a-r),y=g>2*_&&m>2*_?_:0;g-=2*y,m-=2*y;var x=S(s);"auto"!==s||p<=g&&v<=m||!(p>g||v>m)||(p>m||v>g)&&p.01?G:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?G(e):e>t?Math.ceil(e):Math.floor(e)};j=U(j,B,D),B=U(B,j,D),N=U(N,H,!D),H=U(H,N,!D)}var q=A(i.ensureSingle(F,"path"),C,g,m);if(q.style("vector-effect","non-scaling-stroke").attr("d",isNaN((B-j)*(H-N))||W&&e._context.staticPlot?"M0,0Z":"M"+j+","+N+"V"+H+"H"+B+"V"+N+"Z").call(s.setClipUrl,t.layerClipId,e),!C.uniformtext.mode&&R){var Z=s.makePointStyleFns(u);s.singlePointStyle(c,q,u,Z,e)}!function(e,t,r,a,n,l,c,u,h,g,m){var w,k=t.xaxis,M=t.yaxis,O=e._fullLayout;function C(t,r,a){return i.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(s.font,a).call(o.convertToTspans,e)}var F=a[0].trace,P="h"===F.orientation,I=function(e,t,r,a,n){var o,l=t[0].trace;o=l.texttemplate?function(e,t,r,a,n){var o=t[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,u,f,h="histogram"===o.type,p="waterfall"===o.type,v="funnel"===o.type,g="h"===o.orientation;g?(s="y",c=n,u="x",f=a):(s="x",c=a,u="y",f=n);function m(e){return d(c,c.c2l(e),!0).text}function y(e){return d(f,f.c2l(e),!0).text}var x=t[r],_={};_.label=x.p,_.labelLabel=_[s+"Label"]=m(x.p);var w=i.castOption(o,x.i,"text");(0===w||w)&&(_.text=w);_.value=x.s,_.valueLabel=_[u+"Label"]=y(x.s);var k={};b(k,o,x.i),(h||void 0===k.x)&&(k.x=g?_.value:_.label);(h||void 0===k.y)&&(k.y=g?_.label:_.value);(h||void 0===k.xLabel)&&(k.xLabel=g?_.valueLabel:_.labelLabel);(h||void 0===k.yLabel)&&(k.yLabel=g?_.labelLabel:_.valueLabel);p&&(_.delta=+x.rawS||x.s,_.deltaLabel=y(_.delta),_.final=x.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial));v&&(_.value=x.s,_.valueLabel=y(_.value),_.percentInitial=x.begR,_.percentInitialLabel=i.formatPercent(x.begR),_.percentPrevious=x.difR,_.percentPreviousLabel=i.formatPercent(x.difR),_.percentTotal=x.sumR,_.percenTotalLabel=i.formatPercent(x.sumR));var T=i.castOption(o,x.i,"customdata");T&&(_.customdata=T);return i.texttemplateString(l,_,e._d3locale,k,_,o._meta||{})}(e,t,r,a,n):l.textinfo?function(e,t,r,a){var n=e[0].trace,o="h"===n.orientation,l="waterfall"===n.type,s="funnel"===n.type;function c(e){return d(o?a:r,e,!0).text}function u(e){return d(o?r:a,+e,!0).text}var f,h=n.textinfo,p=e[t],v=h.split("+"),g=[],m=function(e){return-1!==v.indexOf(e)};m("label")&&g.push(c(e[t].p));m("text")&&(0===(f=i.castOption(n,p.i,"text"))||f)&&g.push(f);if(l){var y=+p.rawS||p.s,x=p.v,b=x-y;m("initial")&&g.push(u(b)),m("delta")&&g.push(u(y)),m("final")&&g.push(u(x))}if(s){m("value")&&g.push(u(p.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var w=_>1;m("percent initial")&&(f=i.formatPercent(p.begR),w&&(f+=" of initial"),g.push(f)),m("percent previous")&&(f=i.formatPercent(p.difR),w&&(f+=" of previous"),g.push(f)),m("percent total")&&(f=i.formatPercent(p.sumR),w&&(f+=" of total"),g.push(f))}return g.join("
")}(t,r,a,n):v.getValue(l.text,r);return v.coerceString(y,o)}(O,a,n,k,M);w=function(e,t){var r=v.getValue(e.textposition,t);return v.coerceEnumerated(x,r)}(F,n);var D="stack"===g.mode||"relative"===g.mode,R=a[n],E=!D||R._outmost;if(!I||"none"===w||(R.isBlank||l===c||u===h)&&("auto"===w||"inside"===w))return void r.select("text").remove();var j=O.font,B=p.getBarColor(a[n],F),N=p.getInsideTextFont(F,n,j,B),H=p.getOutsideTextFont(F,n,j),W=r.datum();P?"log"===k.type&&W.s0<=0&&(l=k.range[0]0&&q>0&&(U<=X&&q<=J||U<=J&&q<=X||(P?X>=U*(J/q):J>=q*(X/U)))?w="inside":(w="outside",V.remove(),V=null);else w="inside"}if(!V){var Y=(V=C(r,I,Z=i.ensureUniformFontSize(e,"outside"===w?H:N))).attr("transform");if(V.attr("transform",""),U=(G=s.bBox(V.node())).width,q=G.height,V.attr("transform",Y),U<=0||q<=0)return void V.remove()}var Q,K=F.textangle;Q="outside"===w?function(e,t,r,a,n,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,d=n.width,u=n.height,f=Math.abs(t-e),h=Math.abs(a-r);o=l?h>2*_?_:0:f>2*_?_:0;var p=1;s&&(p=l?Math.min(1,h/u):Math.min(1,f/d));var v=S(c),g=L(n,v),m=(l?g.x:g.y)/2,y=(n.left+n.right)/2,x=(n.top+n.bottom)/2,b=(e+t)/2,w=(r+a)/2,k=0,A=0,M=l?T(t,e):T(r,a);l?(b=t-M*o,k=M*m):(w=a+M*o,A=-M*m);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:k,anchorY:A,scale:p,rotate:v}}(l,c,u,h,G,{isHorizontal:P,constrained:"both"===F.constraintext||"outside"===F.constraintext,angle:K}):z(l,c,u,h,G,{isHorizontal:P,constrained:"both"===F.constraintext||"inside"===F.constraintext,angle:K,anchor:F.insidetextanchor});Q.fontSize=Z.size,f("histogram"===F.type?"bar":F.type,Q,O),R.transform=Q,A(V,O,g,m).attr("transform",i.getTextTransform(Q))}(e,t,F,r,h,j,B,N,H,g,m),t.layerClipId&&s.hideOutsideRangePoint(c,F.select("text"),w,O,u.xcalendar,u.ycalendar)}));var N=!1===u.cliponaxis;s.setClipUrl(c,N?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,F,t,g)},toMoveInsideBar:z}},y9T6CtE5:e=>{"use strict";function t(e,t,r,a,n){var i=t.c2p(a?e.s0:e.p0,!0),o=t.c2p(a?e.s1:e.p1,!0),l=r.c2p(a?e.p0:e.s0,!0),s=r.c2p(a?e.p1:e.s1,!0);return n?[(i+o)/2,(l+s)/2]:a?[o,(l+s)/2]:[(i+o)/2,s]}e.exports=function(e,r){var a,n=e.cd,i=e.xaxis,o=e.yaxis,l=n[0].trace,s="funnel"===l.type,c="h"===l.orientation,d=[];if(!1===r)for(a=0;a{"use strict";e.exports=i;var a=r("0Ft3SWJB").distinctVals,n=r("46lPXjlm").BADNUM;function i(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=[],o=0;o{"use strict";var a=r("Lou4tdh8"),n=r("/oRevOrA"),i=r("+ELfTWmT"),o=r("0Ft3SWJB"),l=r("R5um7Wku"),s=r("5jl4DkMq").resizeText,c=r("msRxLST1"),d=c.textfont,u=c.insidetextfont,f=c.outsidetextfont,h=r("Lpym/Kdp");function p(e,t,r){i.pointStyle(e.selectAll("path"),t,r),v(e,t,r)}function v(e,t,r){e.selectAll("text").each((function(e){var n=a.select(this),l=o.ensureUniformFontSize(r,g(n,e,t,r));i.font(n,l)}))}function g(e,t,r,a){var n=a._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=_(t,r);i=y(r,t.i,n,o)}else e.classed("bartext-outside")&&(i=x(r,t.i,n));return i}function m(e,t,r){return b(d,e.textfont,t,r)}function y(e,t,r,a){var i=m(e,t,r);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(i={color:n.contrast(a),family:i.family,size:i.size}),b(u,e.insidetextfont,t,i)}function x(e,t,r){var a=m(e,t,r);return b(f,e.outsidetextfont,t,a)}function b(e,t,r,a){t=t||{};var n=h.getValue(t.family,r),i=h.getValue(t.size,r),o=h.getValue(t.color,r);return{family:h.coerceString(e.family,n,a.family),size:h.coerceNumber(e.size,i,a.size),color:h.coerceColor(e.color,o,a.color)}}function _(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}e.exports={style:function(e){var t=a.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===n.barmode&&r>1||0===n.bargap&&0===n.bargroupgap&&!e[0].trace.marker.line.width)&&a.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){p(a.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:v,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?function(e,t,r){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each((function(e){var n,l=a.select(this);if(e.selected){n=o.ensureUniformFontSize(r,g(l,e,t,r));var s=t.selected.textfont&&t.selected.textfont.color;s&&(n.color=s),i.font(l,n)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,r)}(r,n,e):(p(r,n,e),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:s}},lMmI2ALB:(e,t,r)=>{"use strict";var a=r("/oRevOrA"),n=r("s48LrSF+").hasColorscale,i=r("NfKInJuD"),o=r("0Ft3SWJB").coercePattern;e.exports=function(e,t,r,l,s){var c=r("marker.color",l),d=n(e,"marker");d&&i(e,t,s,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",a.defaultLine),n(e,"marker.line")&&i(e,t,s,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,d),r("selected.marker.color"),r("unselected.marker.color")}},"5jl4DkMq":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("0Ft3SWJB");function i(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var a=i(e),n=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o{"use strict";var a=r("SncXPNSm"),n=r("FDg8C/At"),i=r("lf8+9Xc7"),o=r("0xRk82sZ").axisHoverFormat,l=r("OzUSSj1k").f,s=r("OzUSSj1k").s,c=r("kwWFMz5J"),d=r("xE+ZFgwY").extendFlat;e.exports=d({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:d({},a.x,{impliedEdits:{xtype:"array"}}),x0:d({},a.x0,{impliedEdits:{xtype:"scaled"}}),dx:d({},a.dx,{impliedEdits:{xtype:"scaled"}}),y:d({},a.y,{impliedEdits:{ytype:"array"}}),y0:d({},a.y0,{impliedEdits:{ytype:"scaled"}}),dy:d({},a.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:d({},a.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:d({},a.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:d({},a.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:d({},a.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:d({},a.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:d({},a.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:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:l(),texttemplate:s({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style",description:"Sets the text font."}),showlegend:d({},n.showlegend,{dflt:!1})},{transforms:void 0},c("",{cLetter:"z",autoColorDflt:!1}))},IhK9L9VC:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB"),i=r("4JfnfFRI"),o=r("qPokwaSi"),l=r("ixeefcrV"),s=r("lNueT97u"),c=r("RF44uHEW"),d=r("tLYo6Exq"),u=r("bujHEgrl"),f=r("6J/IMU+T"),h=r("ZPYyNz95"),p=r("46lPXjlm").BADNUM;function v(e){for(var t=[],r=e.length,a=0;aD){P("x scale is not linear");break}}if(x.length&&"fast"===C){var R=(x[x.length-1]-x[0])/(x.length-1),E=Math.abs(R/100);for(T=0;TE){P("y scale is not linear");break}}}var j=n.maxRowLength(k),B="scaled"===t.xtype?"":r,N=h(t,B,g,m,j,M),H="scaled"===t.ytype?"":x,W=h(t,H,b,_,k.length,S);O||(t._extremes[M._id]=i.findExtremes(M,N),t._extremes[S._id]=i.findExtremes(S,W));var V={x:N,y:W,z:k,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&y&&(V.orig_x=y),t.yperiodalignment&&w&&(V.orig_y=w),B&&B.length===N.length-1&&(V.xCenter=B),H&&H.length===W.length-1&&(V.yCenter=H),z&&(V.xRanges=A.xRanges,V.yRanges=A.yRanges,V.pts=A.pts),L||s(e,t,{vals:k,cLetter:"z"}),L&&t.contours&&"heatmap"===t.contours.coloring){var G={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};V.xfill=h(G,B,g,m,j,M),V.yfill=h(G,H,b,_,k.length,S)}return[V]}},tLYo6Exq:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=r("46lPXjlm").BADNUM;e.exports=function(e,t,r,o){var l,s,c,d,u,f;function h(e){if(a(e))return+e}if(t&&t.transpose){for(l=0,u=0;u{"use strict";e.exports={min:"zmin",max:"zmax"}},RF44uHEW:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("46lPXjlm").BADNUM,i=r("qPokwaSi");e.exports=function(e,t,r,o,l,s){var c=e._length,d=t.makeCalcdata(e,o),u=r.makeCalcdata(e,l);d=i(e,t,o,d).vals,u=i(e,r,l,u).vals;var f,h,p,v,g=e.text,m=void 0!==g&&a.isArray1D(g),y=e.hovertext,x=void 0!==y&&a.isArray1D(y),b=a.distinctVals(d),_=b.vals,w=a.distinctVals(u),k=w.vals,T=[],A=k.length,M=_.length;for(f=0;f{"use strict";var a=r("0Ft3SWJB"),n=r("KLK9Jo/k"),i=r("0gNlF56V"),o=r("tAeBVoBa"),l=r("9I23neXE"),s=r("NfKInJuD"),c=r("Or77eklz");e.exports=function(e,t,r,d){function u(r,n){return a.coerce(e,t,c,r,n)}n(e,t,u,d)?(o(e,t,d,u),u("xhoverformat"),u("yhoverformat"),u("text"),u("hovertext"),u("hovertemplate"),i(u,d),l(e,t,u,d),u("hoverongaps"),u("connectgaps",a.isArray1D(t.z)&&!1!==t.zsmooth),s(e,t,d,u,{prefix:"",cLetter:"z"})):t.visible=!1}},"6J/IMU+T":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB").maxRowLength;e.exports=function(e){var t,r,n,i,o,l,s,c,d=[],u={},f=[],h=e[0],p=[],v=[0,0,0],g=a(e);for(r=0;r=0;o--)(l=((u[[(r=(i=f[o])[0])-1,n=i[1]]]||v)[2]+(u[[r+1,n]]||v)[2]+(u[[r,n-1]]||v)[2]+(u[[r,n+1]]||v)[2])/20)&&(s[i]=[r,n,l],f.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)u[i]=s[i],d.push(s[i])}return d.sort((function(e,t){return t[2]-e[2]}))}},VGS0kEp2:(e,t,r)=>{"use strict";var a=r("9fFWTih4"),n=r("0Ft3SWJB"),i=r("4JfnfFRI"),o=r("n/pWmEhD").extractOpts;e.exports=function(e,t,r,l,s){s||(s={});var c,d,u,f,h=s.isContour,p=e.cd[0],v=p.trace,g=e.xa,m=e.ya,y=p.x,x=p.y,b=p.z,_=p.xCenter,w=p.yCenter,k=p.zmask,T=v.zhoverformat,A=y,M=x;if(!1!==e.index){try{u=Math.round(e.index[1]),f=Math.round(e.index[0])}catch(t){return void n.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(u<0||u>=b[0].length||f<0||f>b.length)return}else{if(a.inbox(t-y[0],t-y[y.length-1],0)>0||a.inbox(r-x[0],r-x[x.length-1],0)>0)return;if(h){var S;for(A=[2*y[0]-y[1]],S=1;S{"use strict";e.exports={attributes:r("Or77eklz"),supplyDefaults:r("/sGUa8Uv"),calc:r("IhK9L9VC"),plot:r("G3ZEvGr3"),colorbar:r("vmsnrO39"),style:r("BK0VDAOs"),hoverPoints:r("VGS0kEp2"),moduleType:"trace",name:"heatmap",basePlotModule:r("42xT/S4m"),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(" ")}}},bujHEgrl:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=[[-1,0],[1,0],[0,-1],[0,1]];function i(e){return.5-.25*Math.min(1,.5*e)}function o(e,t,r){var a,i,o,l,s,c,d,u,f,h,p,v,g,m=0;for(l=0;lv&&(m=Math.max(m,Math.abs(e[i][o]-p)/(g-v))))}return m}e.exports=function(e,t){var r,n=1;for(o(e,t),r=0;r.01;r++)n=o(e,t,i(n));return n>.01&&a.log("interp2d didn't converge quickly",n),e}},"0gNlF56V":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB");e.exports=function(e,t){e("texttemplate");var r=a.extendFlat({},t.font,{color:"auto",size:"auto"});a.coerceFont(e,"textfont",r)}},ZPYyNz95:(e,t,r)=>{"use strict";var a=r("R5um7Wku"),n=r("0Ft3SWJB").isArrayOrTypedArray;e.exports=function(e,t,r,i,o,l){var s,c,d,u=[],f=a.traceIs(e,"contour"),h=a.traceIs(e,"histogram"),p=a.traceIs(e,"gl2d");if(n(t)&&t.length>1&&!h&&"category"!==l.type){var v=t.length;if(!(v<=o))return f?t.slice(0,o):t.slice(0,o+1);if(f||p)u=t.slice(0,o);else if(1===o)u=[t[0]-.5,t[0]+.5];else{for(u=[1.5*t[0]-.5*t[1]],d=1;d{"use strict";var a=r("Lou4tdh8"),n=r("VDpxHpeA"),i=r("R5um7Wku"),o=r("+ELfTWmT"),l=r("4JfnfFRI"),s=r("0Ft3SWJB"),c=r("7k8rh0sJ"),d=r("QJJZmdtL"),u=r("/oRevOrA"),f=r("n/pWmEhD").extractOpts,h=r("n/pWmEhD").makeColorScaleFuncFromTrace,p=r("nfwe4Djo"),v=r("kca9bvt+").LINE_SPACING,g="heatmap-label";function m(e){return e.selectAll("g."+g)}function y(e){m(e).remove()}function x(e,t){var r=t.length-2,a=s.constrain(s.findBin(e,t),0,r),n=t[a],i=t[a+1],o=s.constrain(a+(e-n)/(i-n)-.5,0,r),l=Math.round(o),c=Math.abs(o-l);return o&&o!==r&&c?{bin0:l,frac:c,bin1:Math.round(l+c/(o-l))}:{bin0:l,bin1:l,frac:0}}function b(e,t){var r=t.length-1,a=s.constrain(s.findBin(e,t),0,r),n=t[a],i=(e-n)/(t[a+1]-n)||0;return i<=0?{bin0:a,bin1:a,frac:0}:i<.5?{bin0:a,bin1:a+1,frac:i}:{bin0:a+1,bin1:a,frac:1-i}}function _(e,t,r){e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=Math.round(255*r[3])}e.exports=function(e,t,r,w){var k=t.xaxis,T=t.yaxis;s.makeTraceGroups(w,r,"hm").each((function(t){var r,w,A,M,S,L,z,O,C=a.select(this),F=t[0],P=F.trace,I=P.xgap||0,D=P.ygap||0,R=F.z,E=F.x,j=F.y,B=F.xCenter,N=F.yCenter,H=i.traceIs(P,"contour"),W=H?"best":P.zsmooth,V=R.length,G=s.maxRowLength(R),U=!1,q=!1;for(L=0;void 0===r&&L0;)w=k.c2p(E[L]),L--;for(w0;)S=T.c2p(j[L]),L--;if(SZe||Ze>T._length))for(z=Ve;zJe||Je>k._length)){var Ye=d({x:Xe,y:qe},P,e._fullLayout);Ye.x=Xe,Ye.y=qe;var Qe=F.z[L][z];void 0===Qe?(Ye.z="",Ye.zLabel=""):(Ye.z=Qe,Ye.zLabel=l.tickText(Be,Qe,"hover").text);var Ke=F.text&&F.text[L]&&F.text[L][z];void 0!==Ke&&!1!==Ke||(Ke=""),Ye.text=Ke;var $e=s.texttemplateString(Ee,Ye,e._fullLayout._d3locale,Ye,P._meta||{});if($e){var et=$e.split("
"),tt=et.length,rt=0;for(O=0;O{"use strict";var a=r("Lou4tdh8");e.exports=function(e){a.select(e).selectAll(".hm image").style("opacity",(function(e){return e.trace.opacity}))}},"9I23neXE":e=>{"use strict";e.exports=function(e,t,r){!1===r("zsmooth")&&(r("xgap"),r("ygap")),r("zhoverformat")}},"KLK9Jo/k":(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=r("R5um7Wku");function o(e,t){var r=t(e);return"scaled"===(r?t(e+"type","array"):"scaled")&&(t(e+"0"),t("d"+e)),r}e.exports=function(e,t,r,l,s,c){var d,u,f=r("z");if(s=s||"x",c=c||"y",void 0===f||!f.length)return 0;if(n.isArray1D(e.z)){d=r(s),u=r(c);var h=n.minRowLength(d),p=n.minRowLength(u);if(0===h||0===p)return 0;t._length=Math.min(h,p,f.length)}else{if(d=o(s,r),u=o(c,r),!function(e){for(var t,r=!0,i=!1,o=!1,l=0;l0&&(i=!0);for(var s=0;s{"use strict";e.exports=function(e,t){for(var r=e.length,a=0,n=0;n{"use strict";var a=r("yAcToaBS");e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return a(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var o=n[t];return a(o)&&(o=Number(o),r[e]+=o,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(a(i)){if(i=Number(i),!a(r[e]))return r[e]=i,i;if(r[e]>i){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,n){var i=n[t];if(a(i)){if(i=Number(i),!a(r[e]))return r[e]=i,i;if(r[e]{"use strict";var a=r("46lPXjlm"),n=a.ONEAVGYEAR,i=a.ONEAVGMONTH,o=a.ONEDAY,l=a.ONEHOUR,s=a.ONEMIN,c=a.ONESEC,d=r("4JfnfFRI").tickIncrement;function u(e,t,r,a){if(e*t<=0)return 1/0;for(var n=Math.abs(t-e),i="date"===r.type,o=f(n,i),l=0;l<10;l++){var s=f(80*o,i);if(o===s)break;if(!h(s,e,t,i,r,a))break;o=s}return o}function f(e,t){return t&&e>c?e>o?e>1.1*n?n:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function h(e,t,r,a,i,l){if(a&&e>o){var s=p(t,i,l),c=p(r,i,l),d=e===n?0:1;return s[d]!==c[d]}return Math.floor(r/e)-Math.floor(t/e)>.1}function p(e,t,r){var a=t.c2d(e,n,r).split("-");return""===a[0]&&(a.unshift(),a[0]="-"+a[0]),a}e.exports=function(e,t,r,a,i){var l,s,c=-1.1*t,f=-.1*t,h=e-f,p=r[0],v=r[1],g=Math.min(u(p+f,p+h,a,i),u(v+f,v+h,a,i)),m=Math.min(u(p+c,p+f,a,i),u(v+c,v+f,a,i));if(g>m&&mo){var y=l===n?1:6,x=l===n?"M12":"M1";return function(t,r){var o=a.c2d(t,n,i),l=o.indexOf("-",y);l>0&&(o=o.substr(0,l));var c=a.d2c(o,0,i);if(c{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=r("R5um7Wku"),o=r("4JfnfFRI"),l=r("QwKhVvvj"),s=r("zGjfuAgi"),c=r("E0ymBWcp"),d=r("8WyRVZ33"),u=r("2RQvW7Lc");function f(e,t,r,l,s){var c,d,u,h,p,v,g,m=l+"bins",y=e._fullLayout,x=t["_"+l+"bingroup"],b=y._histogramBinOpts[x],_="overlay"===y.barmode,w=function(e){return r.r2c(e,0,h)},k=function(e){return r.c2r(e,0,h)},T="date"===r.type?function(e){return e||0===e?n.cleanDate(e,null,h):null}:function(e){return a(e)?Number(e):null};function A(e,t,r){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=r[e])):(v[e]=t[e]=r[e],n.nestedProperty(d[0],m+"."+e).set(r[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{d=b.traces;var M=[],S=!0,L=!1,z=!1;for(c=0;cr.r2l(j)&&(N=o.tickIncrement(N,b.size,!0,h)),I.start=r.l2r(N),E||n.nestedProperty(t,m+".start").set(I.start)}var H=b.end,W=r.r2l(P.end),V=void 0!==W;if((b.endFound||V)&&W!==r.r2l(H)){var G=V?W:n.aggNums(Math.max,null,p);I.end=r.l2r(G),V||n.nestedProperty(t,m+".start").set(I.end)}var U="autobin"+l;return!1===t._input[U]&&(t._input[m]=n.extendFlat({},t[m]||{}),delete t._input[U],delete t[U]),[I,p]}e.exports={calc:function(e,t){var r,i,h,p,v=[],g=[],m="h"===t.orientation,y=o.getFromId(e,m?t.yaxis:t.xaxis),x=m?"y":"x",b={x:"y",y:"x"}[x],_=t[x+"calendar"],w=t.cumulative,k=f(e,t,y,x),T=k[0],A=k[1],M="string"==typeof T.size,S=[],L=M?S:T,z=[],O=[],C=[],F=0,P=t.histnorm,I=t.histfunc,D=-1!==P.indexOf("density");w.enabled&&D&&(P=P.replace(/ ?density$/,""),D=!1);var R,E="max"===I||"min"===I?null:0,j=s.count,B=c[P],N=!1,H=function(e){return y.r2c(e,0,_)};for(n.isArrayOrTypedArray(t[b])&&"count"!==I&&(R=t[b],N="avg"===I,j=s[I]),r=H(T.start),h=H(T.end)+(r-o.tickIncrement(r,T.size,!1,_))/1e6;r=0&&p=0;a--)l(a);else if("increasing"===t){for(a=1;a=0;a--)e[a]+=e[a+1];"exclude"===r&&(e.push(0),e.shift())}}(g,w.direction,w.currentbin);var Q=Math.min(v.length,g.length),K=[],ee=0,te=Q-1;for(r=0;r=ee;r--)if(g[r]){te=r;break}for(r=ee;r<=te;r++)if(a(v[r])&&a(g[r])){var re={p:v[r],s:g[r],b:0};w.enabled||(re.pts=C[r],q?re.ph0=re.ph1=C[r].length?A[C[r][0]]:v[r]:(t._computePh=!0,re.ph0=G(S[r]),re.ph1=G(S[r+1],!0))),K.push(re)}return 1===K.length&&(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,_)-K[0].p),l(K,t),n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(K,t,J),K},calcAllAutoBins:f}},E0ymBWcp:e=>{"use strict";e.exports={percent:function(e,t){for(var r=e.length,a=100/t,n=0;n{"use strict";var a=r("0Ft3SWJB"),n=r("4JfnfFRI"),i=r("zGjfuAgi"),o=r("E0ymBWcp"),l=r("8WyRVZ33"),s=r("2RQvW7Lc"),c=r("Ib4Cm2pX").calcAllAutoBins;function d(e,t,r,a){var n,i=new Array(e);if(a)for(n=0;nS&&k.splice(S,k.length-S),M.length>S&&M.splice(S,M.length-S);var L=[],z=[],O=[],C="string"==typeof w.size,F="string"==typeof A.size,P=[],I=[],D=C?P:w,R=F?I:A,E=0,j=[],B=[],N=t.histnorm,H=t.histfunc,W=-1!==N.indexOf("density"),V="max"===H||"min"===H?null:0,G=i.count,U=o[N],q=!1,Z=[],X=[],J="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";J&&"count"!==H&&(q="avg"===H,G=i[H]);var Y=w.size,Q=x(w.start),K=x(w.end)+(Q-n.tickIncrement(Q,Y,!1,m))/1e6;for(r=Q;r=0&&h=0&&p{"use strict";var a=r("FDg8C/At"),n=r("qxp2i9QF").Y,i=r("lf8+9Xc7"),o=r("Khpmx9F5"),l=r("OzUSSj1k").f,s=r("OzUSSj1k").s,c=r("xE+ZFgwY").extendFlat,d=i({editType:"plot",arrayOk:!0,colorEditType:"plot",description:"Sets the font used for `textinfo`."});e.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the sector labels.","If `labels` entries are duplicated, we sum associated `values`","or simply count occurrences if `values` is not provided.","For other array attributes (including color) we use the first","non-empty entry among all occurrences of the label."].join(" ")},label0:{valType:"number",dflt:0,editType:"calc",description:["Alternate to `labels`.","Builds a numeric set of labels.","Use with `dlabel`","where `label0` is the starting label and `dlabel` the step."].join(" ")},dlabel:{valType:"number",dflt:1,editType:"calc",description:"Sets the label step. See `label0` for more info."},values:{valType:"data_array",editType:"calc",description:["Sets the values of the sectors.","If omitted, we count occurrences of each label."].join(" ")},marker:{colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0,editType:"style",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot",description:["Sets text elements associated with each sector.","If trace `textinfo` contains a *text* flag, these elements will be seen","on the chart.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each sector.","If a single string, the same string appears for","all data points.","If an array of string, the items are mapped in order of","this trace's sectors.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},scalegroup:{valType:"string",dflt:"",editType:"calc",description:["If there are multiple pie charts that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc",description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:c({},a.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:l({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot",description:["Specifies the location of the `textinfo`."].join(" ")},textfont:c({},d,{description:"Sets the font used for `textinfo`."}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot",description:["Controls the orientation of the text inside chart sectors.","When set to *auto*, text may be oriented in any direction in order","to be as big as possible in the middle of a sector.","The *horizontal* option orients text to be parallel with the bottom","of the chart, and may make text smaller in order to achieve that goal.","The *radial* option orients text along the radius of the sector.","The *tangential* option orients text perpendicular to the radius of the sector."].join(" ")},insidetextfont:c({},d,{description:"Sets the font used for `textinfo` lying inside the sector."}),outsidetextfont:c({},d,{description:"Sets the font used for `textinfo` lying outside the sector."}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether outside text labels can push the margins."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"plot",description:["Sets the title of the chart.","If it is empty, no title is displayed.","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:c({},d,{description:["Sets the font used for `title`.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot",description:["Specifies the location of the `title`.","Note that the title's position used to be set","by the now deprecated `titleposition` attribute."].join(" ")},editType:"plot"},domain:n({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the fraction of the radius to cut out of the pie.","Use this to make a donut chart."].join(" ")},sort:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc",description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"number",min:-360,max:360,dflt:0,editType:"calc",description:["Instead of the first slice starting at 12 o'clock,","rotate to some other angle."].join(" ")},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc",description:["Sets the fraction of larger radius to pull the sectors","out from the center. This can be a constant","to pull all slices apart from each other equally","or an array to highlight one or more slices."].join(" ")},_deprecated:{title:{valType:"string",dflt:"",editType:"calc",description:["Deprecated in favor of `title.text`.","Note that value of `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:c({},d,{description:"Deprecated in favor of `title.font`."}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc",description:"Deprecated in favor of `title.position`."}}}},"+ulG1EUY":(e,exports,t)=>{"use strict";var r=t("8MlMO9wt");exports.name="pie",exports.plot=function(e,t,a,n){r.plotBasePlot(exports.name,e,t,a,n)},exports.clean=function(e,t,a,n){r.cleanBasePlot(exports.name,e,t,a,n)}},QeXGuGcX:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("VDpxHpeA"),i=r("/oRevOrA"),o={};function l(e){return function(t,r){return!!t&&(!!(t=n(t)).isValid()&&(t=i.addOpacity(t,t.getAlpha()),e[r]||(e[r]=t),t))}}function s(e,t){var r,a=JSON.stringify(e),i=t[a];if(!i){for(i=e.slice(),r=0;r=0})),("funnelarea"===t.type?m:t.sort)&&i.sort((function(e,t){return t.v-e.v})),i[0]&&(i[0].vTotal=g),i},crossTraceCalc:function(e,t){var r=(t||{}).type;r||(r="pie");var a=e._fullLayout,n=e.calcdata,i=a[r+"colorway"],l=a["_"+r+"colormap"];a["extend"+r+"colors"]&&(i=s(i,o));for(var c=0,d=0;d{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=r("G7pMMARu"),o=r("qxp2i9QF").c,l=r("jOyGAhAZ").handleText;function s(e,t){var r=Array.isArray(e),i=n.isArrayOrTypedArray(t),o=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}e.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,r,a){function c(r,a){return n.coerce(e,t,i,r,a)}var d=s(c("labels"),c("values")),u=d.len;if(t._hasLabels=d.hasLabels,t._hasValues=d.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),u){t._length=u,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var f,h=c("text"),p=c("texttemplate");if(p||(f=c("textinfo",Array.isArray(h)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),p||f&&"none"!==f){var v=c("textposition");l(e,t,a,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(v)||"auto"===v||"outside"===v)&&c("automargin"),("inside"===v||"auto"===v||Array.isArray(v))&&c("insidetextorientation")}o(t,a,c);var g=c("hole");if(c("title.text")){var m=c("title.position",g?"middle center":"top center");g||"middle center"!==m||(t.title.position="top center"),n.coerceFont(c,"title.font",a.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},"JPrGcRM+":(e,t,r)=>{"use strict";var a=r("ErV1Ibqz").appendArrayMultiPointValues;e.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,bbox:e.bbox,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),a(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}},cscO2DHv:(e,exports,t)=>{"use strict";var r=t("0Ft3SWJB");function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}exports.formatPiePercent=function(e,t){var n=a((100*e).toPrecision(3));return r.numSeparate(n,t)+"%"},exports.formatPieValue=function(e,t){var n=a(e.toPrecision(10));return r.numSeparate(n,t)},exports.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r{"use strict";e.exports={attributes:r("G7pMMARu"),supplyDefaults:r("ZGlDDGbb").supplyDefaults,supplyLayoutDefaults:r("LdHlM4it"),layoutAttributes:r("K+tMoKu9"),calc:r("QeXGuGcX").calc,crossTraceCalc:r("QeXGuGcX").crossTraceCalc,plot:r("hiPtikdV").plot,style:r("Q/CxhveK"),styleOne:r("4R47EHYh"),moduleType:"trace",name:"pie",basePlotModule:r("+ulG1EUY"),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}},"K+tMoKu9":e=>{"use strict";e.exports={hiddenlabels:{valType:"data_array",editType:"calc",description:["hiddenlabels is the funnelarea & pie chart analog of","visible:'legendonly'","but it can contain many labels, and can simultaneously","hide slices from several pies/funnelarea charts"].join(" ")},piecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default pie slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendpiecolors`."].join(" ")},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the pie slice colors (whether given by `piecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},LdHlM4it:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("K+tMoKu9");e.exports=function(e,t){function r(r,i){return a.coerce(e,t,n,r,i)}r("hiddenlabels"),r("piecolorway",t.colorway),r("extendpiecolors")}},hiPtikdV:(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("8MlMO9wt"),i=r("9fFWTih4"),o=r("/oRevOrA"),l=r("+ELfTWmT"),s=r("0Ft3SWJB"),c=s.strScale,d=s.strTranslate,u=r("7k8rh0sJ"),f=r("5jl4DkMq"),h=f.recordMinTextSize,p=f.clearMinTextSize,v=r("MzXAamq8").TEXTPAD,g=r("cscO2DHv"),m=r("JPrGcRM+"),y=r("0Ft3SWJB").isValidTextValue;function x(e,t,r){var n=r[0],o=n.cx,l=n.cy,c=n.trace,d="funnelarea"===c.type;"_hasHoverLabel"in c||(c._hasHoverLabel=!1),"_hasHoverEvent"in c||(c._hasHoverEvent=!1),e.on("mouseover",(function(e){var r=t._fullLayout,u=t._fullData[c.index];if(!t._dragging&&!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&&(f=i.castHoverinfo({hoverinfo:[g.castOption(f,e.pts)],_module:c._module},r,0)),"all"===f&&(f="label+text+value+percent+name"),u.hovertemplate||"none"!==f&&"skip"!==f&&f){var h=e.rInscribed||0,p=o+e.pxmid[0]*(1-h),v=l+e.pxmid[1]*(1-h),y=r.separators,x=[];if(f&&-1!==f.indexOf("label")&&x.push(e.label),e.text=g.castOption(u.hovertext||u.text,e.pts),f&&-1!==f.indexOf("text")){var b=e.text;s.isValidTextValue(b)&&x.push(b)}e.value=e.v,e.valueLabel=g.formatPieValue(e.v,y),f&&-1!==f.indexOf("value")&&x.push(e.valueLabel),e.percent=e.v/n.vTotal,e.percentLabel=g.formatPiePercent(e.percent,y),f&&-1!==f.indexOf("percent")&&x.push(e.percentLabel);var _=u.hoverlabel,w=_.font,k=[];i.loneHover({trace:c,x0:p-h*n.r,x1:p+h*n.r,y:v,_x0:d?o+e.TL[0]:p-h*n.r,_x1:d?o+e.TR[0]:p+h*n.r,_y0:d?l+e.TL[1]:v-h*n.r,_y1:d?l+e.BL[1]:v+h*n.r,text:x.join("
"),name:u.hovertemplate||-1!==f.indexOf("name")?u.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:g.castOption(_.bgcolor,e.pts)||e.color,borderColor:g.castOption(_.bordercolor,e.pts),fontFamily:g.castOption(w.family,e.pts),fontSize:g.castOption(w.size,e.pts),fontColor:g.castOption(w.color,e.pts),nameLength:g.castOption(_.namelength,e.pts),textAlign:g.castOption(_.align,e.pts),hovertemplate:g.castOption(u.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[m(e,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:k}),e.bbox=k[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[m(e,u)],event:a.event})}})),e.on("mouseout",(function(e){var r=t._fullLayout,n=t._fullData[c.index],o=a.select(this).datum();c._hasHoverEvent&&(e.originalEvent=a.event,t.emit("plotly_unhover",{points:[m(o,n)],event:a.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),e.on("click",(function(e){var r=t._fullLayout,n=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[m(e,n)],i.click(t,a.event))}))}function b(e,t,r){var a=g.castOption(e.insidetextfont.color,t.pts);!a&&e._input.textfont&&(a=g.castOption(e._input.textfont.color,t.pts));var n=g.castOption(e.insidetextfont.family,t.pts)||g.castOption(e.textfont.family,t.pts)||r.family,i=g.castOption(e.insidetextfont.size,t.pts)||g.castOption(e.textfont.size,t.pts)||r.size;return{color:a||o.contrast(t.color),family:n,size:i}}function _(e,t){for(var r,a,n=0;nt&&t>a||r=-4;g-=2)m(Math.PI*g,"tan");for(g=4;g>=-4;g-=2)m(Math.PI*(g+1),"tan")}if(u||h){for(g=4;g>=-4;g-=2)m(Math.PI*(g+1.5),"rad");for(g=4;g>=-4;g-=2)m(Math.PI*(g+.5),"rad")}}if(l||p||u){var y=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:n*a*2/y,rCenter:1-n,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;v.push(i)}(p||h)&&((i=k(e,a,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,v.push(i)),(p||f)&&((i=T(e,a,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,v.push(i));for(var x=0,b=0,_=0;_=1)break}return v[x]}function k(e,t,r,a,n){t=Math.max(0,t-2*v);var i=e.width/e.height,o=S(i,a,t,r);return{scale:2*o/e.height,rCenter:A(i,o/t),rotate:M(n)}}function T(e,t,r,a,n){t=Math.max(0,t-2*v);var i=e.height/e.width,o=S(i,a,t,r);return{scale:2*o/e.width,rCenter:A(i,o/t),rotate:M(n+Math.PI/2)}}function A(e,t){return Math.cos(t)-e*t}function M(e){return(180/Math.PI*e+720)%180-90}function S(e,t,r,a){var n=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(n*n+.5)+n),a/(Math.sqrt(e*e+a/2)+e))}function L(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function z(e,t){var r=t.pxmid[0],a=t.pxmid[1],n=e.width/2,i=e.height/2;return r<0&&(n*=-1),a<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:n+Math.abs(i)*(n>0?1:-1)/2,y:i/(1+r*r/(a*a)),outside:!0}}function O(e,t){var r,a,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=F(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+n)*e.r);var s,c,d=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),u=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(u+=d,o.x-=(1+n)*d,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?u*=2:-1!==i.title.position.indexOf("right")&&(u+=d,o.x+=(1+n)*d,l.tx-=e.titleBox.width/2),r=u/e.titleBox.width,a=C(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,a),tx:l.tx,ty:l.ty}}function C(e,t){var r=e.trace,a=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function F(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function P(e,t){for(var r=[],a=0;a1?d=(c=r.r)/n.aspectratio:c=(d=r.r)*n.aspectratio,s=(c*=(1+n.baseratio)/2)*d}o=Math.min(o,s/r.vTotal)}for(a=0;a")}if(i){var x=s.castOption(n,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:g.formatPieValue(e.v,a.separators),percent:e.v/r.vTotal,percentLabel:g.formatPiePercent(e.v/r.vTotal,a.separators),color:e.color,text:e.text,customdata:s.castOption(n,e.i,"customdata")}}(t),_=g.getFirstFilled(n.text,t.pts);(y(_)||""===_)&&(b.text=_),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,n._meta||{})}else t.text=""}}function R(e,t){var r=e.rotate*Math.PI/180,a=Math.cos(r),n=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}e.exports={plot:function(e,t){var r=e._fullLayout,i=r._size;p("pie",r),_(t,e),P(t,i);var f=s.makeTraceGroups(r._pielayer,t,"trace").each((function(t){var f=a.select(this),p=t[0],v=p.trace;!function(e){var t,r,a,n=e[0],i=n.r,o=n.trace,l=g.getRotationAngle(o.rotation),s=2*Math.PI/n.vTotal,c="px0",d="px1";if("counterclockwise"===o.direction){for(t=0;tn.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/n.vTotal,.5),r.ring=1-o.hole,r.rInscribed=L(r,n))}(t),f.attr("stroke-linejoin","round"),f.each((function(){var m=a.select(this).selectAll("g.slice").data(t);m.enter().append("g").classed("slice",!0),m.exit().remove();var y=[[[],[]],[[],[]]],_=!1;m.each((function(n,i){if(n.hidden)a.select(this).selectAll("path,g").remove();else{n.pointNumber=n.i,n.curveNumber=v.index,y[n.pxmid[1]<0?0:1][n.pxmid[0]<0?0:1].push(n);var o=p.cx,c=p.cy,d=a.select(this),f=d.selectAll("path.surface").data([n]);if(f.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),d.call(x,e,t),v.pull){var m=+g.castOption(v.pull,n.pts)||0;m>0&&(o+=m*n.pxmid[0],c+=m*n.pxmid[1])}n.cxFinal=o,n.cyFinal=c;var k=v.hole;if(n.v===p.vTotal){var T="M"+(o+n.px0[0])+","+(c+n.px0[1])+O(n.px0,n.pxmid,!0,1)+O(n.pxmid,n.px0,!0,1)+"Z";k?f.attr("d","M"+(o+k*n.px0[0])+","+(c+k*n.px0[1])+O(n.px0,n.pxmid,!1,k)+O(n.pxmid,n.px0,!1,k)+"Z"+T):f.attr("d",T)}else{var A=O(n.px0,n.px1,!0,1);if(k){var M=1-k;f.attr("d","M"+(o+k*n.px1[0])+","+(c+k*n.px1[1])+O(n.px1,n.px0,!1,k)+"l"+M*n.px0[0]+","+M*n.px0[1]+A+"Z")}else f.attr("d","M"+o+","+c+"l"+n.px0[0]+","+n.px0[1]+A+"Z")}D(e,n,p);var S=g.castOption(v.textposition,n.pts),L=d.selectAll("g.slicetext").data(n.text&&"none"!==S?[0]:[]);L.enter().append("g").classed("slicetext",!0),L.exit().remove(),L.each((function(){var d=s.ensureSingle(a.select(this),"text","",(function(e){e.attr("data-notex",1)})),f=s.ensureUniformFontSize(e,"outside"===S?function(e,t,r){var a=g.castOption(e.outsidetextfont.color,t.pts)||g.castOption(e.textfont.color,t.pts)||r.color,n=g.castOption(e.outsidetextfont.family,t.pts)||g.castOption(e.textfont.family,t.pts)||r.family,i=g.castOption(e.outsidetextfont.size,t.pts)||g.castOption(e.textfont.size,t.pts)||r.size;return{color:a,family:n,size:i}}(v,n,r.font):b(v,n,r.font));d.text(n.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,f).call(u.convertToTspans,e);var m,y=l.bBox(d.node());if("outside"===S)m=z(y,n);else if(m=w(y,n,p),"auto"===S&&m.scale<1){var x=s.ensureUniformFontSize(e,v.outsidetextfont);d.call(l.font,x),m=z(y=l.bBox(d.node()),n)}var k=m.textPosAngle,T=void 0===k?n.pxmid:I(p.r,k);if(m.targetX=o+T[0]*m.rCenter+(m.x||0),m.targetY=c+T[1]*m.rCenter+(m.y||0),R(m,y),m.outside){var A=m.targetY;n.yLabelMin=A-y.height/2,n.yLabelMid=A,n.yLabelMax=A+y.height/2,n.labelExtraX=0,n.labelExtraY=0,_=!0}m.fontSize=f.size,h(v.type,m,r),t[i].transform=m,d.attr("transform",s.getTextTransform(m))}))}function O(e,t,r,a){var i=a*(t[0]-e[0]),o=a*(t[1]-e[1]);return"a"+a*p.r+","+a*p.r+" 0 "+n.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var k=a.select(this).selectAll("g.titletext").data(v.title.text?[0]:[]);if(k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each((function(){var t,r=s.ensureSingle(a.select(this),"text","",(function(e){e.attr("data-notex",1)})),n=v.title.text;v._meta&&(n=s.templateString(n,v._meta)),r.text(n).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,v.title.font).call(u.convertToTspans,e),t="middle center"===v.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(p):O(p,i),r.attr("transform",d(t.x,t.y)+c(Math.min(1,t.scale))+d(t.tx,t.ty))})),_&&function(e,t){var r,a,n,i,o,l,s,c,d,u,f,h,p;function v(e,t){return e.pxmid[1]-t.pxmid[1]}function m(e,t){return t.pxmid[1]-e.pxmid[1]}function y(e,r){r||(r={});var n,c,d,f,h=r.labelExtraY+(a?r.yLabelMax:r.yLabelMin),p=a?e.yLabelMin:e.yLabelMax,v=a?e.yLabelMax:e.yLabelMin,m=e.cyFinal+o(e.px0[1],e.px1[1]),y=h-p;if(y*s>0&&(e.labelExtraY=y),Array.isArray(t.pull))for(c=0;c=(g.castOption(t.pull,d.pts)||0)||((e.pxmid[1]-d.pxmid[1])*s>0?(y=d.cyFinal+o(d.px0[1],d.px1[1])-p-e.labelExtraY)*s>0&&(e.labelExtraY+=y):(v+e.labelExtraY-m)*s>0&&(n=3*l*Math.abs(c-u.indexOf(e)),(f=d.cxFinal+i(d.px0[0],d.px1[0])+n-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=f)))}for(a=0;a<2;a++)for(n=a?v:m,o=a?Math.max:Math.min,s=a?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[a][r]).sort(n),d=e[1-a][r],u=d.concat(c),h=[],f=0;fMath.abs(u)?l+="l"+u*e.pxmid[0]/e.pxmid[1]+","+u+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+d+"v"+(u-d)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else r.select("path.textline").remove()}))}(m,v),_&&v.automargin){var T=l.bBox(f.node()),A=v.domain,M=i.w*(A.x[1]-A.x[0]),S=i.h*(A.y[1]-A.y[0]),L=(.5*M-p.r)/i.w,C=(.5*S-p.r)/i.h;n.autoMargin(e,"pie."+v.uid+".automargin",{xl:A.x[0]-L,xr:A.x[1]+L,yb:A.y[0]-C,yt:A.y[1]+C,l:Math.max(p.cx-p.r-T.left,0),r:Math.max(T.right-(p.cx+p.r),0),b:Math.max(T.bottom-(p.cy+p.r),0),t:Math.max(p.cy-p.r-T.top,0),pad:5})}}))}));setTimeout((function(){f.selectAll("tspan").each((function(){var e=a.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:O,prerenderTitles:_,layoutAreas:P,attachFxHandlers:x,computeTransform:R}},"Q/CxhveK":(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("4R47EHYh"),i=r("5jl4DkMq").resizeText;e.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each((function(e){var t=e[0].trace,r=a.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){a.select(this).call(n,e,t)}))}))}},"4R47EHYh":(e,t,r)=>{"use strict";var a=r("/oRevOrA"),n=r("cscO2DHv").castOption;e.exports=function(e,t,r){var i=r.marker.line,o=n(i.color,t.pts)||a.defaultLine,l=n(i.width,t.pts)||0;e.style("stroke-width",l).call(a.fill,t.color).call(a.stroke,o)}},"kh0qQ2F+":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB");e.exports=function(e,t){for(var r=0;r{"use strict";var a=r("0xRk82sZ").axisHoverFormat,n=r("OzUSSj1k").s,i=r("OzUSSj1k").f,o=r("kwWFMz5J"),l=r("lf8+9Xc7"),s=r("LZ3mZdqo").P,c=r("+ELfTWmT"),d=r("It6vW0T+"),u=r("xE+ZFgwY").extendFlat;function f(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* on the "+e+" axis.","Special values in the form of *M* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function h(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 p(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(" ")}}e.exports={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:f("x"),yperiod:f("y"),xperiod0:h("x0"),yperiod0:h("y0"),xperiodalignment:p("x"),yperiodalignment:p("y"),xhoverformat:a("x"),yhoverformat:a("y"),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 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:n({},{}),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 "+d.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:i({},{keys:d.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:u({},s,{editType:"style"}),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(" ")},marker:u({symbol:{valType:"enumerated",values:c.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."},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:u({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"},o("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"},o("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:l({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})}},i1GgYbcZ:(e,t,r)=>{"use strict";var a=r("yAcToaBS"),n=r("0Ft3SWJB"),i=r("4JfnfFRI"),o=r("qPokwaSi"),l=r("46lPXjlm").BADNUM,s=r("FAQM5QER"),c=r("SeoPvd/E"),d=r("kh0qQ2F+"),u=r("ArZ24uYa");function f(e,t,r,a,n,o,l){var c=t._length,d=e._fullLayout,u=r._id,f=a._id,h=d._firstScatter[v(t)]===t.uid,p=(g(t,d,r,a)||{}).orientation,m=t.fill;r._minDtick=0,a._minDtick=0;var y={padded:!0},x={padded:!0};l&&(y.ppad=x.ppad=l);var b=c<2||n[0]!==n[c-1]||o[0]!==o[c-1];b&&("tozerox"===m||"tonextx"===m&&(h||"h"===p))?y.tozero=!0:(t.error_y||{}).visible||"tonexty"!==m&&"tozeroy"!==m&&(s.hasMarkers(t)||s.hasText(t))||(y.padded=!1,y.ppad=0),b&&("tozeroy"===m||"tonexty"===m&&(h||"v"===p))?x.tozero=!0:"tonextx"!==m&&"tozerox"!==m||(x.padded=!1),u&&(t._extremes[u]=i.findExtremes(r,n,y)),f&&(t._extremes[f]=i.findExtremes(a,o,x))}function h(e,t){if(s.hasMarkers(e)){var r,a=e.marker,o=1.6*(e.marker.sizeref||1);if(r="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},n.isArrayOrTypedArray(a.size)){var l={type:"linear"};i.setConvert(l);for(var c=l.makeCalcdata(e.marker,"size"),d=new Array(t),u=0;us&&O[m].gap;)m--;for(x=O[m].s,v=O.length-1;v>m;v--)O[v].s=x;for(;s{"use strict";var a=r("0Ft3SWJB");e.exports=function(e,t){a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(e,t)}},"SeoPvd/E":(e,t,r)=>{"use strict";var a=r("s48LrSF+").hasColorscale,n=r("lNueT97u"),i=r("FAQM5QER");e.exports=function(e,t){i.hasLines(t)&&a(t,"line")&&n(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(a(t,"marker")&&n(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a(t,"marker.line")&&n(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},"It6vW0T+":e=>{"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},pJrJ3hmH:(e,t,r)=>{"use strict";var a=r("i1GgYbcZ");function n(e,t,r,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=r,e.splice(t,0,l),t&&r===e[t-1][o]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=function(e,t,r,a){var n=e[t-1],i=e[t+1];return i?n?n.s+(i.s-n.s)*(r-n[a])/(i[a]-n[a]):i.s:n.s}(e,t,r,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}e.exports=function(e,t){var r=t.xaxis,i=t.yaxis,o=r._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,d,u,f,h,p,v,g,m,y,x,b,_,w,k=e.calcdata;for(var T in l){var A=(m=l[T]).traceIndices;if(A.length){for(y="interpolate"===m.stackgaps,x=m.groupnorm,"v"===m.orientation?(b="x",_="y"):(b="y",_="x"),w=new Array(A.length),s=0;sM[d]&&d{"use strict";e.exports=function(e){for(var t=0;t=0;n--){var i=e[n];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},a4YJmYyA:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("R5um7Wku"),i=r("SncXPNSm"),o=r("It6vW0T+"),l=r("FAQM5QER"),s=r("0QKf0MkS"),c=r("tAeBVoBa"),d=r("EuDGb/SN"),u=r("R+/Bph75"),f=r("aG60Ih3s"),h=r("33aGI41/"),p=r("/4PO5Ykb"),v=r("nPXyX0+C");e.exports=function(e,t,r,g){function m(r,n){return a.coerce(e,t,i,r,n)}var y=s(e,t,g,m);if(y||(t.visible=!1),t.visible){c(e,t,g,m),m("xhoverformat"),m("yhoverformat");var x=d(e,t,g,m),b=!x&&y{"use strict";var a=r("/oRevOrA"),n=r("0Ft3SWJB").isArrayOrTypedArray;e.exports=function(e,t,r,i){var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!n(l)?o=l:s&&!n(s)&&(o=s)}i("fillcolor",a.addOpacity((t.line||{}).color||o||r,.5))}},QJJZmdtL:(e,t,r)=>{"use strict";var a=r("4JfnfFRI");e.exports=function(e,t,r){var n={},i={_fullLayout:r},o=a.getFromTrace(i,t,"x"),l=a.getFromTrace(i,t,"y");return n.xLabel=a.tickText(o,o.c2l(e.x),!0).text,n.yLabel=a.tickText(l,l.c2l(e.y),!0).text,n}},pE0BHGKt:(e,t,r)=>{"use strict";var a=r("/oRevOrA"),n=r("FAQM5QER");e.exports=function(e,t){var r,i;if("lines"===e.mode)return(r=e.line.color)&&a.opacity(r)?r:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,l=t.mlcc||((e.marker||{}).line||{}).color;return(i=o&&a.opacity(o)?o:l&&a.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?a.opacity(i)<.3?a.addOpacity(i,.3):i:(r=(e.line||{}).color)&&a.opacity(r)&&n.hasLines(e)&&e.line.width?r:e.fillcolor}},DNc9q72I:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("9fFWTih4"),i=r("R5um7Wku"),o=r("pE0BHGKt"),l=r("/oRevOrA"),s=a.fillText;e.exports=function(e,t,r,c){var d=e.cd,u=d[0].trace,f=e.xa,h=e.ya,p=f.c2p(t),v=h.c2p(r),g=[p,v],m=u.hoveron||"",y=-1!==u.mode.indexOf("markers")?3:.5,x=!!u.xperiodalignment,b=!!u.yperiodalignment;if(-1!==m.indexOf("points")){var _=function(e){var t=Math.max(y,e.mrc||0),r=f.c2p(e.x)-p,a=h.c2p(e.y)-v;return Math.max(Math.sqrt(r*r+a*a)-t,1-y/t)},w=n.getDistanceFunction(c,(function(e){if(x){var t=f.c2p(e.xStart),r=f.c2p(e.xEnd);return p>=Math.min(t,r)&&p<=Math.max(t,r)?0:1/0}var a=Math.max(3,e.mrc||0),n=1-1/a,i=Math.abs(f.c2p(e.x)-p);return i=Math.min(t,r)&&v<=Math.max(t,r)?0:1/0}var a=Math.max(3,e.mrc||0),n=1-1/a,i=Math.abs(h.c2p(e.y)-v);return iZ!=(B=I[F][1])>=Z&&(R=I[F-1][0],E=I[F][0],B-j&&(D=R+(E-R)*(Z-j)/(B-j),V=Math.min(V,D),G=Math.max(G,D)));V=Math.max(V,0),G=Math.min(G,f._length);var X=l.defaultLine;return l.opacity(u.fillcolor)?X=u.fillcolor:l.opacity((u.line||{}).color)&&(X=u.line.color),a.extendFlat(e,{distance:e.maxHoverDistance,x0:V,x1:G,y0:Z,y1:Z,color:X,hovertemplate:!1}),delete e.index,u.text&&!Array.isArray(u.text)?e.text=String(u.text):e.text=u.name,[e]}}}},d82zWuQF:(e,t,r)=>{"use strict";var a=r("FAQM5QER");e.exports={hasLines:a.hasLines,hasMarkers:a.hasMarkers,hasText:a.hasText,isBubble:a.isBubble,attributes:r("SncXPNSm"),supplyDefaults:r("a4YJmYyA"),crossTraceDefaults:r("ujGUE5BE"),calc:r("i1GgYbcZ").calc,crossTraceCalc:r("pJrJ3hmH"),arraysToCalcdata:r("kh0qQ2F+"),plot:r("tGjzYLAA"),colorbar:r("WHVwkmN9"),formatLabels:r("QJJZmdtL"),style:r("DaHMLOVM").style,styleOnSelect:r("DaHMLOVM").styleOnSelect,hoverPoints:r("DNc9q72I"),selectPoints:r("UoPKlQhU"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r("42xT/S4m"),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(" ")}}},aG60Ih3s:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB").isArrayOrTypedArray,n=r("s48LrSF+").hasColorscale,i=r("NfKInJuD");e.exports=function(e,t,r,o,l,s){var c=(e.marker||{}).color;(l("line.color",r),n(e,"line"))?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!a(c)&&c||r);l("line.width"),(s||{}).noDash||l("line.dash")}},"Yvx+zdsp":(e,t,r)=>{"use strict";var a=r("46lPXjlm"),n=a.BADNUM,i=a.LOG_CLIP,o=i+.5,l=i-.5,s=r("0Ft3SWJB"),c=s.segmentsIntersect,d=s.constrain,u=r("It6vW0T+");e.exports=function(e,t){var r,a,i,f,h,p,v,g,m,y,x,b,_,w,k,T,A,M,S=t.xaxis,L=t.yaxis,z="log"===S.type,O="log"===L.type,C=S._length,F=L._length,P=t.connectGaps,I=t.baseTolerance,D=t.shape,R="linear"===D,E=t.fill&&"none"!==t.fill,j=[],B=u.minTolerance,N=e.length,H=new Array(N),W=0;function V(r){var a=e[r];if(!a)return!1;var i=t.linearized?S.l2p(a.x):S.c2p(a.x),s=t.linearized?L.l2p(a.y):L.c2p(a.y);if(i===n){if(z&&(i=S.c2p(a.x,!0)),i===n)return!1;O&&s===n&&(i*=Math.abs(S._m*F*(S._m>0?o:l)/(L._m*C*(L._m>0?o:l)))),i*=1e3}if(s===n){if(O&&(s=L.c2p(a.y,!0)),s===n)return!1;s*=1e3}return[i,s]}function G(e,t,r,a){var n=r-e,i=a-t,o=.5-e,l=.5-t,s=n*n+i*i,c=n*o+i*l;if(c>0&&cae||e[1]ie)return[d(e[0],re,ae),d(e[1],ne,ie)]}function se(e,t){return e[0]===t[0]&&(e[0]===re||e[0]===ae)||(e[1]===t[1]&&(e[1]===ne||e[1]===ie)||void 0)}function ce(e,t,r){return function(a,n){var i=le(a),o=le(n),l=[];if(i&&o&&se(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((a[e]+n[e])/2,t,r)-((i||a)[e]+(o||n)[e]);c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c);return l}}function de(e){var t=e[0],r=e[1],a=t===H[W-1][0],n=r===H[W-1][1];if(!a||!n)if(W>1){var i=t===H[W-2][0],o=r===H[W-2][1];a&&(t===re||t===ae)&&i?o?W--:H[W-1]=e:n&&(r===ne||r===ie)&&o?i?W--:H[W-1]=e:H[W++]=e}else H[W++]=e}function ue(e){H[W-1][0]!==e[0]&&H[W-1][1]!==e[1]&&de([J,Y]),de(e),Q=null,J=Y=0}function fe(e){if(A=e[0]/C,M=e[1]/F,Z=e[0]ae?ae:0,X=e[1]ie?ie:0,Z||X){if(W)if(Q){var t=ee(Q,e);t.length>1&&(ue(t[0]),H[W++]=t[1])}else K=ee(H[W-1],e)[0],H[W++]=K;else H[W++]=[Z||e[0],X||e[1]];var r=H[W-1];Z&&X&&(r[0]!==Z||r[1]!==X)?(Q&&(J!==Z&&Y!==X?de(J&&Y?(a=Q,i=(n=e)[0]-a[0],o=(n[1]-a[1])/i,(a[1]*n[0]-n[1]*a[0])/i>0?[o>0?re:ae,ie]:[o>0?ae:re,ne]):[J||Z,Y||X]):J&&Y&&de([J,Y])),de([Z,X])):J-Z&&Y-X&&de([Z||J,X||Y]),Q=e,J=Z,Y=X}else Q&&ue(ee(Q,e)[0]),H[W++]=e;var a,n,i,o}for("linear"===D||"spline"===D?ee=function(e,t){for(var r=[],a=0,n=0;n<4;n++){var i=oe[n],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!a||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],a&&q(o,e)U(p,he))break;i=p,(_=m[0]*g[0]+m[1]*g[1])>x?(x=_,f=p,v=!1):_=e.length||!p)break;fe(p),a=p}}else fe(f)}Q&&de([J||Q[0],Y||Q[1]]),j.push(H.slice(0,W))}return j}},"33aGI41/":e=>{"use strict";e.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},veoEbvwu:e=>{"use strict";var t={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,r,a){var n,i,o,l,s,c={},d=!1,u=-1,f=0,h=-1;for(i=0;i=0?s=h:(s=h=f,f++),s{"use strict";var a=r("yAcToaBS");e.exports=function(e,t){t||(t=2);var r=e.marker,n=r.sizeref||1,i=r.sizemin||0,o="area"===r.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var r=o(e/t);return a(r)&&r>0?Math.max(r,i):0}}},WHVwkmN9:e=>{"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},"R+/Bph75":(e,t,r)=>{"use strict";var a=r("/oRevOrA"),n=r("s48LrSF+").hasColorscale,i=r("NfKInJuD"),o=r("FAQM5QER");e.exports=function(e,t,r,l,s,c){var d=o.isBubble(e),u=(e.line||{}).color;(c=c||{},u&&(r=u),s("marker.symbol"),s("marker.opacity",d?.7:1),s("marker.size"),s("marker.color",r),n(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",u&&!Array.isArray(u)&&t.marker.color!==u?u:d?a.background:a.defaultLine),n(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",d?1:0)),d&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},tAeBVoBa:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB").dateTick0,n=r("46lPXjlm").ONEWEEK;function i(e,t){return a(t,e%n==0?1:0)}e.exports=function(e,t,r,a,n){if(n||(n={x:!0,y:!0}),n.x){var o=a("xperiod");o&&(a("xperiod0",i(o,t.xcalendar)),a("xperiodalignment"))}if(n.y){var l=a("yperiod");l&&(a("yperiod0",i(l,t.ycalendar)),a("yperiodalignment"))}}},tGjzYLAA:(e,t,r)=>{"use strict";var a=r("Lou4tdh8"),n=r("R5um7Wku"),i=r("0Ft3SWJB"),o=i.ensureSingle,l=i.identity,s=r("+ELfTWmT"),c=r("FAQM5QER"),d=r("Yvx+zdsp"),u=r("veoEbvwu"),f=r("fhYYOvxE").tester;function h(e,t,r,u,h,p,v){var g;!function(e,t,r,n,o){var l=r.xaxis,s=r.yaxis,d=a.extent(i.simpleMap(l.range,l.r2c)),u=a.extent(i.simpleMap(s.range,s.r2c)),f=n[0].trace;if(!c.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=n.filter((function(e){return e.x>=d[0]&&e.x<=d[1]&&e.y>=u[0]&&e.y<=u[1]})),v=Math.ceil(p.length/h),g=0;o.forEach((function(e,r){var a=e[0].trace;c.hasMarkers(a)&&a.marker.maxdisplayed>0&&r0;function y(e){return m?e.transition():e}var x=r.xaxis,b=r.yaxis,_=u[0].trace,w=_.line,k=a.select(p),T=o(k,"g","errorbars"),A=o(k,"g","lines"),M=o(k,"g","points"),S=o(k,"g","text");if(n.getComponentMethod("errorbars","plot")(e,T,r,v),!0===_.visible){var L,z;y(k).style("opacity",_.opacity);var O=_.fill.charAt(_.fill.length-1);"x"!==O&&"y"!==O&&(O=""),u[0][r.isRangePlot?"nodeRangePlot3":"node3"]=k;var C,F,P="",I=[],D=_._prevtrace;D&&(P=D._prevRevpath||"",z=D._nextFill,I=D._polygons);var R,E,j,B,N,H,W,V="",G="",U=[],q=i.noop;if(L=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(z&&z.datum(u),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(R=s.steps(w.shape),E=s.steps(w.shape.split("").reverse().join(""))):R=E="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),w.smoothing):s.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},j=function(e){return E(e.reverse())},U=d(u,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),W=_._polygons=new Array(U.length),g=0;g1){var r=a.select(this);if(r.datum(u),e)y(r.style("opacity",0).attr("d",C).call(s.lineGroupStyle)).style("opacity",1);else{var n=y(r);n.attr("d",C),s.singleLineStyle(u,n)}}}}}var Z=A.selectAll(".js-line").data(U);y(Z.exit()).style("opacity",0).remove(),Z.each(q(!1)),Z.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(q(!0)),s.setClipUrl(Z,r.layerClipId,e),U.length?(L?(L.datum(u),B&&H&&(O?("y"===O?B[1]=H[1]=b.c2p(0,!0):"x"===O&&(B[0]=H[0]=x.c2p(0,!0)),y(L).attr("d","M"+H+"L"+B+"L"+V.substr(1)).call(s.singleFillStyle)):y(L).attr("d",V+"Z").call(s.singleFillStyle))):z&&("tonext"===_.fill.substr(0,6)&&V&&P?("tonext"===_.fill?y(z).attr("d",V+"Z"+P+"Z").call(s.singleFillStyle):y(z).attr("d",V+"L"+P.substr(1)+"Z").call(s.singleFillStyle),_._polygons=_._polygons.concat(I)):(J(z),_._polygons=null)),_._prevRevpath=G,_._prevPolygons=W):(L?J(L):z&&J(z),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(u),S.datum(u),function(t,n,i){var o,d=i[0].trace,u=c.hasMarkers(d),f=c.hasText(d),h=te(d),p=re,v=re;if(u||f){var g=l,_=d.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;d.marker.maxdisplayed||d._needsCull?g=w?Q:Y:_&&!w&&(g=K),u&&(p=g),f&&(v=g)}var k,T=(o=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);m&&T.call(s.pointStyle,d,e).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),u&&(k=s.makePointStyleFns(d)),o.each((function(t){var n=a.select(this),i=y(n);s.translatePoint(t,i,x,b)?(s.singlePointStyle(t,i,d,k,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,x,b,d.xcalendar,d.ycalendar),d.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),m?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=n.selectAll("g").data(v,h)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=a.select(this),n=y(t.select("text"));s.translatePoint(e,n,x,b)?r.layerClipId&&s.hideOutsideRangePoint(e,t,x,b,d.xcalendar,d.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,d,e).each((function(e){var t=x.c2p(e.x),r=b.c2p(e.y);a.select(this).selectAll("tspan.line").each((function(){y(a.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(M,S,u);var X=!1===_.cliponaxis?null:r.layerClipId;s.setClipUrl(M,X,e),s.setClipUrl(S,X,e)}function J(e){y(e).attr("d","M0,0Z")}function Y(e){return e.filter((function(e){return!e.gap&&e.vis}))}function Q(e){return e.filter((function(e){return e.vis}))}function K(e){return e.filter((function(e){return!e.gap}))}function ee(e){return e.id}function te(e){if(e.ids)return ee}function re(){return!1}}e.exports=function(e,t,r,n,i,c){var d,f,p=!i,v=!!i&&i.duration>0,g=u(e,t,r);((d=n.selectAll("g.trace").data(g,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),d.order(),function(e,t,r){t.each((function(t){var n=o(a.select(this),"g","fills");s.setClipUrl(n,r.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var d=n.selectAll("g").data(c,l);d.enter().append("g"),d.exit().each((function(e){i[e]=null})).remove(),d.order().each((function(e){i[e]=o(a.select(this),"path","js-fill")}))}))}(e,d,t),v)?(c&&(f=c()),a.transition().duration(i.duration).ease(i.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){n.selectAll("g.trace").each((function(r,a){h(e,a,t,r,g,this,i)}))}))):d.each((function(r,a){h(e,a,t,r,g,this,i)}));p&&d.exit().remove(),n.selectAll("path:not([d])").remove()}},UoPKlQhU:(e,t,r)=>{"use strict";var a=r("FAQM5QER");e.exports=function(e,t){var r,n,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,d=[],u=l[0].trace;if(!a.hasMarkers(u)&&!a.hasText(u))return[];if(!1===t)for(r=0;r{"use strict";var t=["orientation","groupnorm","stackgaps"];e.exports=function(e,r,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=r.xaxis+r.yaxis,s=i[l];s||(s=i[l]={});var c=s[o],d=!1;c?c.traces.push(r):(c=s[o]={traceIndices:[],traces:[r]},d=!0);for(var u={orientation:r.x&&!r.y?"h":"v"},f=0;f{"use strict";var a=r("Lou4tdh8"),n=r("+ELfTWmT"),i=r("R5um7Wku");function o(e,t,r){n.pointStyle(e.selectAll("path.point"),t,r)}function l(e,t,r){n.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=a.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(a.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){l(a.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(n.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(n.fillGroupStyle),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?(n.selectedPointStyle(r.selectAll("path.point"),a),n.selectedTextStyle(r.selectAll("text"),a)):(o(r,a,e),l(r,a,e))}}},FAQM5QER:(e,t,r)=>{"use strict";var a=r("0Ft3SWJB");e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return a.isPlainObject(e.marker)&&a.isArrayOrTypedArray(e.marker.size)}}},"/4PO5Ykb":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB");e.exports=function(e,t,r,n,i){i=i||{},n("textposition"),a.coerceFont(n,"textfont",r.font),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}},"0QKf0MkS":(e,t,r)=>{"use strict";var a=r("0Ft3SWJB"),n=r("R5um7Wku");e.exports=function(e,t,r,i){var o,l=i("x"),s=i("y");if(n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],r),l){var c=a.minRowLength(l);s?o=Math.min(c,a.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=a.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},dH7CFEq5:(e,exports)=>{"use strict";exports.version="2.9.0"},nuD6RlFT:(e,t,r)=>{var a,n=r("Y3NUXw+c"),i=r("pEIGVlOg"),o=r("XLNBrVO3"),l=r("ipaMYO3e"),s=r("D/sHMWhy"),c=r("zMQrMJO6"),d=!1,u=i();function f(e,t,r){var n=a.segments(e),i=a.segments(t),o=r(a.combine(n,i));return a.polygon(o)}a={buildLog:function(e){return!0===e?d=n():!1===e&&(d=!1),!1!==d&&d.list},epsilon:function(e){return u.epsilon(e)},segments:function(e){var t=o(!0,u,d);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,u,d).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,d),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,d),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,d),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,d),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,d),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,u,d),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(a,e)},polygonToGeoJSON:function(e){return c.fromPolygon(a,u,e)},union:function(e,t){return f(e,t,a.selectUnion)},intersect:function(e,t){return f(e,t,a.selectIntersect)},difference:function(e,t){return f(e,t,a.selectDifference)},differenceRev:function(e,t){return f(e,t,a.selectDifferenceRev)},xor:function(e,t){return f(e,t,a.selectXor)}},"object"==typeof window&&(window.PolyBool=a),e.exports=a},"Y3NUXw+c":e=>{e.exports=function(){var e,t=0,r=!1;function a(t,r){return e.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return a("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return a("div_seg",{seg:e,pt:t}),a("chop",{seg:e,pt:t})},statusRemove:function(e){return a("pop_seg",{seg:e})},segmentUpdate:function(e){return a("seg_update",{seg:e})},segmentNew:function(e,t){return a("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return a("rem_seg",{seg:e})},tempStatus:function(e,t,r){return a("temp_status",{seg:e,above:t,below:r})},rewind:function(e){return a("rewind",{seg:e})},status:function(e,t,r){return a("status",{seg:e,above:t,below:r})},vert:function(t){return t===r?e:(r=t,a("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),a("log",{txt:e})},reset:function(){return a("reset")},selected:function(e){return a("selected",{segs:e})},chainStart:function(e){return a("chain_start",{seg:e})},chainRemoveHead:function(e,t){return a("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return a("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return a("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return a("chain_match",{index:e})},chainClose:function(e){return a("chain_close",{index:e})},chainAddHead:function(e,t){return a("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return a("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return a("chain_con",{index1:e,index2:t})},chainReverse:function(e){return a("chain_rev",{index:e})},chainJoin:function(e,t){return a("chain_join",{index1:e,index2:t})},done:function(){return a("done")}}}},pEIGVlOg:e=>{e.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,r,a){var n=r[0],i=r[1],o=a[0],l=a[1],s=t[0];return(o-n)*(t[1]-i)-(l-i)*(s-n)>=-e},pointBetween:function(t,r,a){var n=t[1]-r[1],i=a[0]-r[0],o=t[0]-r[0],l=a[1]-r[1],s=o*i+n*l;return!(s-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])e!=o-n>e&&(i-c)*(n-d)/(o-d)+c-a>e&&(l=!l),i=c,o=d}return l}};return t}},zMQrMJO6:e=>{var t={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var a=r(t[0]),n=1;n{var a=r("tz4yzA4w");e.exports=function(e,t,r){function n(e,t,a){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:a.myFill.above,below:a.myFill.below},otherFill:null}}var i=a.create();function o(e,r){i.insertBefore(e,(function(a){return function(e,r,a,n,i,o){var l=t.pointsCompare(r,i);return 0!==l?l:t.pointsSame(a,o)?0:e!==n?e?1:-1:t.pointAboveOrOnLine(a,n?i:o,n?o:i)?1:-1}(e.isStart,e.pt,r,a.isStart,a.pt,a.other.pt)<0}))}function l(e,t){var r=function(e,t){var r=a.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(r,e.end),r}(e,t);return function(e,t,r){var n=a.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=n,o(n,e.pt)}(r,e,t),r}function s(e,t){var a=n(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(a,e.primary)}function c(n,o){var l=a.create();function c(e){return l.findTransition((function(r){var a,n,i,o,l,s;return(a=e,n=r.ev,i=a.seg.start,o=a.seg.end,l=n.seg.start,s=n.seg.end,t.pointsCollinear(i,l,s)?t.pointsCollinear(o,l,s)||t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0}))}function d(e,a){var n=e.seg,i=a.seg,o=n.start,l=n.end,c=i.start,d=i.end;r&&r.checkIntersection(n,i);var u=t.linesIntersect(o,l,c,d);if(!1===u){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,d)||t.pointsSame(l,c))return!1;var f=t.pointsSame(o,c),h=t.pointsSame(l,d);if(f&&h)return a;var p=!f&&t.pointBetween(o,c,d),v=!h&&t.pointBetween(l,c,d);if(f)return v?s(a,l):s(e,d),a;p&&(h||(v?s(a,l):s(e,d)),s(a,o))}else 0===u.alongA&&(-1===u.alongB?s(e,c):0===u.alongB?s(e,u.pt):1===u.alongB&&s(e,d)),0===u.alongB&&(-1===u.alongA?s(a,o):0===u.alongA?s(a,u.pt):1===u.alongA&&s(a,l));return!1}for(var u=[];!i.isEmpty();){var f=i.getHead();if(r&&r.vert(f.pt[0]),f.isStart){r&&r.segmentNew(f.seg,f.primary);var h=c(f),p=h.before?h.before.ev:null,v=h.after?h.after.ev:null;function g(){if(p){var e=d(f,p);if(e)return e}return!!v&&d(f,v)}r&&r.tempStatus(f.seg,!!p&&p.seg,!!v&&v.seg);var m,y=g();if(y){var x;if(e)(x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=f.seg.myFill;r&&r.segmentUpdate(y.seg),f.other.remove(),f.remove()}if(i.getHead()!==f){r&&r.rewind(f.seg);continue}if(e)x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below,f.seg.myFill.below=v?v.seg.myFill.above:n,f.seg.myFill.above=x?!f.seg.myFill.below:f.seg.myFill.below;else if(null===f.seg.otherFill)m=v?f.primary===v.primary?v.seg.otherFill.above:v.seg.myFill.above:f.primary?o:n,f.seg.otherFill={above:m,below:m};r&&r.status(f.seg,!!p&&p.seg,!!v&&v.seg),f.other.status=h.insert(a.node({ev:f}))}else{var b=f.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&d(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!f.primary){var _=f.seg.myFill;f.seg.myFill=f.seg.otherFill,f.seg.otherFill=_}u.push(f.seg)}i.getHead().remove()}return r&&r.done(),u}return e?{addRegion:function(e){for(var a,n,i,o=e[e.length-1],s=0;s{e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var a=e.root,n=e.root.next;null!==n;){if(r(n))return t.prev=n.prev,t.next=n,n.prev.next=t,void(n.prev=t);a=n,n=n.next}a.next=t,t.prev=a,t.next=null},findTransition:function(t){for(var r=e.root,a=e.root.next;null!==a&&!t(a);)r=a,a=a.next;return{before:r===e.root?null:r,after:a,insert:function(e){return e.prev=r,e.next=a,r.next=e,null!==a&&(a.prev=e),e}}}};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}}},ipaMYO3e:e=>{e.exports=function(e,t,r){var a=[],n=[];return e.forEach((function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},c=l,d=0;d{function t(e,t,r){var a=[];return e.forEach((function(e){var n=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[n]&&a.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[n],below:2===t[n]},otherFill:null})})),r&&r.selected(a),a}var r={union:function(e,r){return t(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return t(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return t(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return t(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return t(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};e.exports=r},tqCChFA3:(e,exports,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}exports.Z=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(o,t);var r,a,i=(r=o,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(a){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).p=Promise.resolve(),t.resizeHandler=null,t.handlers={},t.syncWindowResize=t.syncWindowResize.bind(d(t)),t.syncEventHandlers=t.syncEventHandlers.bind(d(t)),t.attachUpdateEvents=t.attachUpdateEvents.bind(d(t)),t.getRef=t.getRef.bind(d(t)),t.handleUpdate=t.handleUpdate.bind(d(t)),t.figureCallback=t.figureCallback.bind(d(t)),t.updatePlotly=t.updatePlotly.bind(d(t)),t}return function(e,t,r){t&&l(e.prototype,t);r&&l(e,r)}(o,[{key:"updatePlotly",value:function(t,r,a){var n=this;this.p=this.p.then((function(){if(!n.unmounting){if(!n.el)throw new Error("Missing element reference");return e.react(n.el,{data:n.props.data,layout:n.props.layout,config:n.props.config,frames:n.props.frames})}})).then((function(){n.unmounting||(n.syncWindowResize(t),n.syncEventHandlers(),n.figureCallback(r),a&&n.attachUpdateEvents())})).catch((function(e){n.props.onError&&n.props.onError(e)}))}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(e){this.unmounting=!1;var t=e.frames&&e.frames.length?e.frames.length:0,r=this.props.frames&&this.props.frames.length?this.props.frames.length:0,a=!(e.layout===this.props.layout&&e.data===this.props.data&&e.config===this.props.config&&r===t),n=void 0!==e.revision,i=e.revision!==this.props.revision;(a||n&&(!n||i))&&this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&p&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),e.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.on(t,e.handleUpdate)}))}},{key:"removeUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.removeListener(t,e.handleUpdate)}))}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(e){if("function"==typeof e){var t=this.el;e({data:t.data,layout:t.layout,frames:this.el._transitionData?this.el._transitionData._frames:null},this.el)}}},{key:"syncWindowResize",value:function(t){var r=this;p&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return e.Plots.resize(r.el)},window.addEventListener("resize",this.resizeHandler),t&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(e){this.el=e,this.props.debug&&p&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var e=this;f.forEach((function(t){var r=e.props["on"+t],a=e.handlers[t],n=Boolean(a);r&&!n?e.addEventHandler(t,r):!r&&n?e.removeEventHandler(t):r&&n&&r!==a&&(e.removeEventHandler(t),e.addEventHandler(t,r))}))}},{key:"addEventHandler",value:function(e,t){this.handlers[e]=t,this.el.on(this.getPlotlyEventName(e),this.handlers[e])}},{key:"removeEventHandler",value:function(e){this.el.removeListener(this.getPlotlyEventName(e),this.handlers[e]),delete this.handlers[e]}},{key:"getPlotlyEventName",value:function(e){return"plotly_"+e.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),o}(n.Component);return t.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},f.forEach((function(e){t.propTypes["on"+e]=i.default.func})),t.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},t};var a,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}a.default=e,t&&t.set(e,a);return a}(t("Z7aTuO5B")),i=(a=t("ii0bleBb"))&&a.__esModule?a:{default:a};function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function l(e,t){for(var r=0;r